Repository navigation
fix: 适配 dsh 0.2.2-rc.3(移除对已删 isOwnedBy 的依赖,devDeps 对齐) - #149
Merged
Merged
Conversation
- src/index.ts:子代理回退扫描改用 Session header 的 parentSession (0.2.1-rc.3 删除了 AgentRegistry.isOwnedBy()/roots()),回退只覆盖直接子级 - test/index.spec.ts:桩与断言同步;listing 抛错时回退能数出直接子代理 - package.json:devDeps 提到 dsh 0.2.2-rc.3 / cordis 4.1.0(peer 地板保持不变) - docs/RELEASING.md:重写 engines.dsh 判定规则,新增 devDeps 对齐条目 - lib/ 随构建产物同步
Merged
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 0.2.2-rc.3(项目上次适配基线是 0.2.0-rc.2)。
真正需要改代码的只有一处:
AgentRegistry.isOwnedBy()/roots()在 dsh 0.2.1-rc.3 被删除(guidev0.2.1-rc.3/subagent-runtime-ownership,运行时树归属改由 subagent Activations 持有)。inspectSubagentTree的 live-registry 回退分支会在subagents服务缺失(CLI/headless profile)或listDescendants抛错时 TypeError,被上层 catch 吞成一条 warn —— 表现为runningSubagents恒 0、tree/settled不再 arm。src/index.ts:回退扫描改用 Session header 的parentSession(只覆盖直接子级,主路径仍是subagents.listDescendants);AgentsLike拆出AgentLike。test/index.spec.ts:桩加session.header.parentSession;listing throws用例期望改为回退能数出直接子代理;新增「列出成功但为空时不扫注册表」断言。package.json:devDependencies 对齐运行版 ——dsh-session/dsh-client-ui-{renderer,settings,slots}→^0.2.2-rc.3,cordis→^4.1.0(typecheck 才会对着新宿主类型)。docs/RELEASING.md:第 8 条重写为「包写了engines.dsh则它单独决定并忽略 DSH peer,否则退回 peer 判定」(0.2.1-alpha.3 起;更早只看 peer),并新增一条「devDeps 也要对齐运行版」的踩坑记录。lib/随构建产物同步。peerDependencies与engines.dsh故意未改:^0.2.0-rc.2在宿主evaluatePluginCompatibility的includePrerelease判定下对 0.2.2-rc.3 仍通过,保持低地板兼容面更宽(规则已写进 RELEASING)。已逐项核对、无需改动的面:Session 事件/header/访问器(
session/event、created|disposed、snapshotEvents/ownEvents、7 种TurnEndReason)、agent 事件载荷、webServer.register({kind,path,handler})、systemPrompt.section、subagents.listDescendants(新增parentId/depth/path/activity不影响kind过滤)、clientslots.inject/register与settings.section契约、window.__ModuleLoader__C6 契约、patchinsert方言。自查清单
pnpm run check全绿(typecheck + typecheck:test + vitest 526/526 + build)lib/已随构建产物同步提交