refactor: remove obsolete code and compatibility paths - #20
Conversation
|
@sourcery-ai review |
Reviewer's GuideThis refactor removes orphaned code, legacy compatibility APIs, unused dependencies, and completed design documents; it also standardizes tool-cache execution, tightens several constructor and context APIs, enables unused-local detection, and adds cache behavior tests while simplifying CI checks. Sequence diagram for unified tool-cache executionsequenceDiagram
participant Caller
participant ToolManager
participant ToolExecutor
participant Cache
participant ToolSet
Caller->>ToolManager: executeTool(name, args, context)
ToolManager->>Cache: executeWithToolCache(name, args, shouldCache, operation)
alt cached result
Cache-->>ToolManager: cached result
else cache miss or caching disabled
Cache->>ToolSet: execute(name, args, context)
ToolSet-->>Cache: result
Cache-->>ToolManager: result
end
Caller->>ToolExecutor: executeToolCall(...)
ToolExecutor->>Cache: executeWithToolCache(name, args, shouldCache, operation)
Cache->>ToolSet: execute(name, args, context)
ToolSet-->>Cache: result
Cache-->>ToolExecutor: result
File-Level Changes
Tips and commandsInteracting with Sourcery
Customizing Your ExperienceAccess your dashboard to:
Getting Help
|
There was a problem hiding this comment.
Hey - I've reviewed your changes and they look great!
Sourcery assessment
Needs a human reviewer. This changes the release and CI gates while removing several compatibility APIs and refactoring shared tool-cache behavior. If the removed type check or compatibility paths were still needed, a broken release could be published or downstream callers could fail; reverting fixes future runs but does not undo an already-published artifact or its effects.
Help me be more useful! Please click 👍 or 👎 on each comment and I'll use the feedback to improve your reviews.
清理未被引用的孤儿代码和兼容路径,删除已经完成的历史设计文档
Summary by Sourcery
Remove obsolete compatibility paths and unused project artifacts while standardizing shared tool caching and tightening build configuration.
Enhancements:
Build:
Documentation:
Tests:
Chores: