根因:package.json 用扁平键 dsh.bundle.patch / dsh.client.inject /
dsh.client.platform,但 DSH loadRecoveryFilteredProfile 只认嵌套
dsh 对象({ bundle: { patch }, client: { inject, platform } })。
扁平格式导致 DSH 报 'profile bundle apes-sidebar declares no
dsh.bundle' → 恢复模式循环。
修正为与 dsh-better-sidebar 0.18.0 一致的嵌套格式:
dsh: {
bundle: { patch: './cordis.patch.yml' },
client: { inject: [betterSidebar, locale, sessions], platform: web }
}
验证:node_modules/apes-sidebar 的 dsh.bundle 字段存在,
格式与 better-sidebar 逐键一致(Object.keys 比对 true)。
门禁:typecheck rc=0 · build rc=0 · test 29/29
70 lines
1.7 KiB
JSON
70 lines
1.7 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"
|
|
},
|
|
"client": {
|
|
"inject": [
|
|
"betterSidebar",
|
|
"locale",
|
|
"sessions"
|
|
],
|
|
"platform": "web"
|
|
}
|
|
},
|
|
"license": "MIT"
|
|
}
|