模拟 DSH host 的 bundle 解析,验证 apes-sidebar 在 profile node_modules:
- package.json 可解析 (name=apes-sidebar v2.0.0)
- host entry 命名导出 { name, inject:['logger'], apply } 无 default
- invariant surface 可用 (assert)
- client entry 是 __ModuleLoader__ browser bundle(line 1 window)
- peer dsh-better-sidebar 满足 ^0.18.0
用法:node scripts/verify-mount.cjs(或 pnpm verify:mount)
依赖 profile 环境(~/.dsh/profiles/desktop 已装 apes-sidebar),
非单测门禁的一部分——CI 无 DSH profile 时跳过。
验收结果:14/14 通过(apes-sidebar 2.0.0 已挂载进
~/.dsh/profiles/desktop,dsh-better-sidebar 升级 ^0.17.1→0.18.0,
无新增 peer 冲突——所有 warning 为预存 runtime-provided peer)
门禁:typecheck rc=0 · build rc=0 · test 29/29
64 lines
1.6 KiB
JSON
64 lines
1.6 KiB
JSON
{
|
|
"name": "apes-sidebar",
|
|
"version": "2.0.0",
|
|
"description": "WorkBuddy/Tutti 风格右侧边栏增强(构建在 dsh-better-sidebar 之上:任务 / Agent / 消息 / 应用 / Profile 五面板信息层)",
|
|
"type": "module",
|
|
"main": "lib/index.js",
|
|
"exports": {
|
|
".": "./lib/index.js",
|
|
"./invariant": "./lib/invariant.js",
|
|
"./client": "./lib/client.js",
|
|
"./src/*": "./src/*",
|
|
"./package.json": "./package.json"
|
|
},
|
|
"files": [
|
|
"lib",
|
|
"src",
|
|
"cordis.patch.yml",
|
|
"scripts",
|
|
"AGENTS.md",
|
|
"README.md"
|
|
],
|
|
"scripts": {
|
|
"build": "rm -rf lib && tsc -p tsconfig.build.json && tsdown",
|
|
"typecheck": "tsc --noEmit -p tsconfig.json",
|
|
"test": "vitest run",
|
|
"verify:mount": "node scripts/verify-mount.cjs",
|
|
"lint:ts": "oxlint src tests tsdown.config.ts vitest.config.ts",
|
|
"dev": "tsdown --watch",
|
|
"pack:plugin": "pnpm build && pnpm pack --pack-destination dist"
|
|
},
|
|
"peerDependencies": {
|
|
"dsh-better-sidebar": "^0.18.0"
|
|
},
|
|
"peerDependenciesMeta": {
|
|
"dsh-better-sidebar": {
|
|
"optional": true
|
|
}
|
|
},
|
|
"devDependencies": {
|
|
"@deepseek-ai/cordis": "^4.0.2",
|
|
"@types/node": "^22.0.0",
|
|
"@types/react": "~18.3.1",
|
|
"dsh-better-sidebar": "^0.18.0",
|
|
"lightningcss": "^1.32.0",
|
|
"oxlint": "^0.15.0",
|
|
"react": "~18.3.1",
|
|
"tsdown": "^0.22.2",
|
|
"typescript": "^5.6.0",
|
|
"vitest": "^4.1.8"
|
|
},
|
|
"engines": {
|
|
"node": ">=20"
|
|
},
|
|
"packageManager": "pnpm@11.8.0",
|
|
"dsh.bundle.patch": "./cordis.patch.yml",
|
|
"dsh.client.inject": [
|
|
"betterSidebar",
|
|
"locale",
|
|
"sessions"
|
|
],
|
|
"dsh.client.platform": "web",
|
|
"license": "MIT"
|
|
}
|