优化 Tool Bridge skill:精简主流程并对齐当前运行时契约 - #5
Merged
Conversation
旧指引把 compact 搜索当成完整 schema,并混淆设备调用的 wire body 与 CLI 输出,容易让 agent 猜参或误报完成。主入口保留最短调用路径,条件细节按需加载,在降低常用上下文开销的同时补齐管理、离线设备和文件处理的验收边界。
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.
旧 skill 把
search --json当成包含完整参数 schema 的结果,并把设备调用的 HTTP body 当成 CLI 输出,可能导致猜参或把入队误报为完成。新版按当前运行时契约选择发现与调用路径,并把设备、数据、管理和恢复细节改为按需加载。search --schemas --json;正确处理 compact、联邦路径、缺失 delivery 和鉴权失败。{delivery, result|operation}读取显式 delivery 结果,保留单次 fallback、无默认轮询和执行未知不重试的边界。验证:
quick_validate.py通过;npx --yes skills add . --list仅发现预期 skill;12 个本地文档链接有效。pnpm verify通过,typecheck/Vitest 命中 Turbo 缓存,lint 与仓库 Node tests 实跑。验证使用本地模拟网关,未调用生产网关或真实上游;场景验证不代表真实部署的端到端验收。
配套主仓库接入指南同步:TokenRollAI/tool-bridge#134