Skip to content

适配 DSH v0.1.2-alpha.1 - #1

Open
HuanLinOTO wants to merge 5 commits into
CC19990113:mainfrom
HuanLinOTO:adapt/v0.1.2-alpha.1
Open

适配 DSH v0.1.2-alpha.1#1
HuanLinOTO wants to merge 5 commits into
CC19990113:mainfrom
HuanLinOTO:adapt/v0.1.2-alpha.1

Conversation

@HuanLinOTO

@HuanLinOTO HuanLinOTO commented Aug 28, 2026

Copy link
Copy Markdown

适配 DSH v0.1.2-alpha.1

针对宿主 dsh-v0.1.1-rc.1dsh-v0.1.2-alpha.1 升级的兼容性适配。本插件为纯 host 侧插件(service / sqlite / tree-sitter / tool 四包 + bundle 元包,无 client bundle),逐包对照 alpha.1 源码核对后,src 无需改动,实际改动集中在测试与依赖声明:

改动内容

  • CallIdToolCallId@deepseek-ai/dsh-llm 将品牌类型 CallId 更名为 ToolCallId(构造器形状不变)。同步更新三个测试文件的 import 与全部调用点:
    • packages/tool/tests/tool-codegraph.spec.ts
    • packages/tool/tests/loader-composition.spec.ts
    • packages/tool/tests/live-tool.spec.ts
  • pnpm-workspace.yamlautoInstallPeers: false:避免 pnpm 自动从 registry 安装 rc.6 的 @deepseek-ai/* peer 副本,peer 统一由宿主安装提供(本地验证时用 junction 指向 alpha.1 源码 checkout)。
  • pnpm-lock.yaml 随之刷新。

核对过但未改动的 API(alpha.1 中契约不变)

defineTool / ToolExecutionagentsignalcallId 仅类型改名)/ presentCallcard: 'generic' + kind: 'search' 视图 / output.render / ctx.systemPrompt.section({name, order, text}) / HarnessError(message, code) / assertNever / MAX_TIMER_DELAY_MS / dsh-invariantsInvariantRegistry / cordis Context 服务增强。FIRST_PARTY_SECTION_ORDER 新值与本插件自有的 order: 111 无冲突。

验证

在 Windows(node 22, pnpm 11)上以 alpha.1 源码 junction 作为 @deepseek-ai/* 依赖验证三件套:

  • pnpm typecheck(tsc -b):✅ 通过
  • pnpm test:523 passed / 11 failed / 1 skipped。11 个失败全部为 win32 平台假设(EBUSY/EPERM 操作持有中连接的 codegraph.db、git hook 可执行位、4 个显式标注 "on Linux" 的 watcher 用例、worktree 用例的 / 路径分隔符假设),与 alpha.1 无关,未改动。
  • pnpm run build(tsc -b):✅ 通过

备注

  • 0.1.2-alpha.1 尚未发布到 npm,故 devDependencies 维持 0.1.0-rc.6 pin;alpha 发包后建议将各包 devDeps 的 @deepseek-ai/* 提到 0.1.2-alpha.1(或更高),届时上游 CI 即可脱离本地 junction 验证。
  • 无 default 导出,bundle 形式不变(根 dsh.bundle.patchpackages/bundle/cordis.patch.yml)。

- dsh-llm renamed CallId to ToolCallId: switch the three tool test files
  to the new export (constructor shape unchanged)
- pnpm-workspace: autoInstallPeers false, so @deepseek-ai peers resolve
  from the host install instead of auto-installed rc.6 copies
- refresh pnpm-lock.yaml accordingly

Host-side APIs used by this plugin (defineTool, ToolExecution,
presentCall card views, systemPrompt.section, HarnessError, invariants)
are unchanged in alpha.1; no src changes were needed.
Copilot AI lite review requested due to automatic review settings August 28, 2026 06:14

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

…s v4

The codegraph CLI >=1.5 stamps schema v8 (new project_metadata and name_segment_vocab tables, reshaped unresolved_refs, extra nodes columns); the store's queries touch only nodes/edges/files/nodes_fts, which v8 keeps in the exact shape v4 had. Gate accepts {4, 8}; status now reports the version actually recorded on disk instead of the support ceiling.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants