fix(market): 移除公开版 cordis peer 并迁移类型基底到 @deepseek-ai/cordis

DSH 市场(dsh-community-market)预览硬拒依赖字段出现 'cordis'
(dependencies/peerDependencies/optionalDependencies 任一字段、
optional 均无效),导致 dshfind/1024Store 目录拿不到
repository_backlink 验证目标,点击安装报
"This catalog item has no verified install target"。

- package.json: 删除 cordis peer + peerDependenciesMeta;版本 0.15.2
- context-types.ts: Context 基底改 @deepseek-ai/cordis,结构服务面改
  交集(避免 DS host/client 对同一成员类型不同导致的 TS2717 merge
  冲突),仅保留 betterSidebar 的 module augmentation;删除
  declare module 'cordis'
- client/index.tsx: 4 处 effect 体失败分支改返回 no-op disposer
  (vendored cordis effect 契约拒绝 undefined 形状)
- 新增 tests/market-manifest.spec.ts:无 cordis 依赖字段、打包产物
  无生命周期脚本、bundle patch 安全路径、仓库身份、精确稳定版本
- 消费者检查扩展:@deepseek-ai/cordis 路径的 Context augmentation
  断言;文档示例同步迁移
This commit is contained in:
Menghuan1918
2026-08-23 00:26:39 +08:00
parent 22a5d372be
commit ddb66c9c08
12 changed files with 251 additions and 135 deletions
+4 -4
View File
@@ -259,7 +259,7 @@ export function apply(ctx: Context): void {
return registerTurnTailInterception(ctx, sidebarStore)
} catch (error) {
fail('interception', error)
return undefined
return () => {}
}
},
'dsh-better-sidebar: turn-tail interception',
@@ -271,7 +271,7 @@ export function apply(ctx: Context): void {
return registerOpenPathInterception(ctx, sidebarStore)
} catch (error) {
fail('interception', error)
return undefined
return () => {}
}
},
'dsh-better-sidebar: open-path interception',
@@ -315,7 +315,7 @@ export function apply(ctx: Context): void {
})
} catch (error) {
fail('interception', error)
return undefined
return () => {}
}
},
'dsh-better-sidebar: link interception',
@@ -335,7 +335,7 @@ export function apply(ctx: Context): void {
return registerImeGuard()
} catch (error) {
fail('ime guard', error)
return undefined
return () => {}
}
},
'dsh-better-sidebar: IME composition guard',
+1 -1
View File
@@ -470,7 +470,7 @@ export function matchUrlTarget(tabs: readonly TabDescriptor[], url: URL): TabDes
* The plugin version this service instance reports. Keep in lockstep with
* `package.json`'s version — `tests/service.spec.ts` asserts the pair.
*/
export const SIDEBAR_SERVICE_VERSION = '0.15.1'
export const SIDEBAR_SERVICE_VERSION = '0.15.2'
/**
* Monotonic capability list consumers use to gate new API usage (features