From cfc9d3c8845b435ab83342344defa265ce092836 Mon Sep 17 00:00:00 2001 From: figmar Date: Fri, 4 Sep 2026 21:08:09 +0800 Subject: [PATCH] =?UTF-8?q?fix(apes-sidebar):=20dsh=20=E5=A3=B0=E6=98=8E?= =?UTF-8?q?=E6=94=B9=E5=B5=8C=E5=A5=97=E6=A0=BC=E5=BC=8F=EF=BC=88=E4=BF=AE?= =?UTF-8?q?=20DSH=20=E6=8B=92=E7=BB=9D=E5=8A=A0=E8=BD=BD=EF=BC=89?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 根因: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 --- package.json | 20 +++++++++++++------- 1 file changed, 13 insertions(+), 7 deletions(-) diff --git a/package.json b/package.json index b040130..ca7377f 100644 --- a/package.json +++ b/package.json @@ -52,12 +52,18 @@ "node": ">=20" }, "packageManager": "pnpm@11.8.0", - "dsh.bundle.patch": "./cordis.patch.yml", - "dsh.client.inject": [ - "betterSidebar", - "locale", - "sessions" - ], - "dsh.client.platform": "web", + "dsh": { + "bundle": { + "patch": "./cordis.patch.yml" + }, + "client": { + "inject": [ + "betterSidebar", + "locale", + "sessions" + ], + "platform": "web" + } + }, "license": "MIT" }