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:
1 parent
22a5d372be
commit
ddb66c9c08
12 files changed
+251
-135
No files matched your search
@@ -310,6 +310,12 @@ The GitHub topic [`dsh-better-sidebar`](https://github.com/topics/dsh-better-sid
|
||||
|
||||
**Supported DSH versions**: <a href="https://www.npmjs.com/package/@deepseek-ai/dsh?activeTab=versions"><img alt="Supported DSH versions: 0.1.0-rc.8 · 0.1.1-rc.1 · 0.1.1-rc.2" src="https://img.shields.io/badge/DSH-0.1.0--rc.8_%C2%B7_0.1.1--rc.1_%C2%B7_0.1.1--rc.2-4d6bfe" /></a> · full release history on the [Releases](https://github.com/omdsh-dev/DSH-better-sidebar/releases) page
|
||||
|
||||
### v0.15.2
|
||||
|
||||
- 🛒 **DSH marketplace managed-install compatibility**: the public `cordis` entry was removed from `peerDependencies` (the market preview hard-rejects `cordis` in any dependency field — optional does not help), so the npm package now satisfies the [dsh-community-market install rules](https://github.com/anywhere-labs/deepseek-harness-desktop/blob/master/dsh-community-market/docs/install-and-uninstall.zh.md) — catalog sources (dshfind / 1024Store) can re-issue the `repository_backlink` verified target and the plugin becomes installable through the Desktop market
|
||||
- 🔤 **Type base migrated to `@deepseek-ai/cordis`**: the declaration surface (`src/context-types.ts`) no longer depends on or restates the public `cordis` — `Context` is now an **intersection** of the real vendored cordis Context with the structural service faces, and the `ctx.betterSidebar` type merge lives on `@deepseek-ai/cordis`. **Consumer migration**: change `import type { Context } from 'cordis'` to `import type { Context } from '@deepseek-ai/cordis'` (the `import type {} from 'dsh-better-sidebar'` merge path is unchanged); plugins that never used that import are unaffected
|
||||
- 🍃 **Strict `ctx.effect` also fixed 4 latent sites**: interception/IME-guard effect bodies returned `undefined` on failure instead of a disposer (invalid shape under the vendored cordis effect contract) — now a no-op disposer
|
||||
|
||||
### v0.15.1
|
||||
|
||||
All changes since v0.15.0:
|
||||
|
||||
Reference in new issue
Block a user