fix(ce-core): resolve tsc type errors in subagent tools and tests#2
Merged
Conversation
- Add "parallel" to SubagentLiveDetails.mode union type - Bridge AgentToolUpdateCallback to SubagentLiveDetails in onUpdate - Accept SubagentRunner alongside SubagentLiveRunner in parallel-subagent - Fix pi.cwd access and SingleResult import path - Fix unknown type assertions in subagent-events tests
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.
变更说明
修复 5 处
bunx tsc --noEmit类型错误,零功能变更。根因
类型演进不完整 — 代码从
string返回值的旧SubagentRunner迁移到SingleResult的SubagentLiveRunner,但多处类型定义和测试没有同步。修复清单
tools/subagent.tsSubagentLiveDetails.mode添加"parallel"tools/parallel-subagent.tsexecute的 runner 参数改为SubagentLiveRunner | SubagentRunnerindex.tsonUpdate回调桥接、pi.cwd类型断言、renderCall类型适配tests/subagent-events.test.tsunknown类型断言修复tests/subagent-live-updates.test.tsSingleResult导入路径修复测试