适配 DSH v0.1.2-alpha.1 - #1
Open
HuanLinOTO wants to merge 5 commits into
Open
Conversation
- 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.
…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.
…sSeeded, bump deps
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
适配 DSH v0.1.2-alpha.1
针对宿主
dsh-v0.1.1-rc.1→dsh-v0.1.2-alpha.1升级的兼容性适配。本插件为纯 host 侧插件(service / sqlite / tree-sitter / tool 四包 + bundle 元包,无 client bundle),逐包对照 alpha.1 源码核对后,src 无需改动,实际改动集中在测试与依赖声明:改动内容
CallId→ToolCallId:@deepseek-ai/dsh-llm将品牌类型CallId更名为ToolCallId(构造器形状不变)。同步更新三个测试文件的 import 与全部调用点:packages/tool/tests/tool-codegraph.spec.tspackages/tool/tests/loader-composition.spec.tspackages/tool/tests/live-tool.spec.tspnpm-workspace.yaml加autoInstallPeers: false:避免 pnpm 自动从 registry 安装 rc.6 的@deepseek-ai/*peer 副本,peer 统一由宿主安装提供(本地验证时用 junction 指向 alpha.1 源码 checkout)。pnpm-lock.yaml随之刷新。核对过但未改动的 API(alpha.1 中契约不变)
defineTool/ToolExecution(agent、signal、callId仅类型改名)/presentCall的card: 'generic'+kind: 'search'视图 /output.render/ctx.systemPrompt.section({name, order, text})/HarnessError(message, code)/assertNever/MAX_TIMER_DELAY_MS/dsh-invariants的InvariantRegistry/ cordisContext服务增强。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.6pin;alpha 发包后建议将各包 devDeps 的@deepseek-ai/*提到0.1.2-alpha.1(或更高),届时上游 CI 即可脱离本地 junction 验证。dsh.bundle.patch→packages/bundle/cordis.patch.yml)。