fix(factory): 保留联合工具 schema 的参数约束 (#12)
Factory 的 Anthropic 接口拒绝顶层联合工具 schema,导致 Codex 请求返回 400。 通过内部参数包装、响应解包及历史转换兼容该接口,保留分支约束、引用作用域和参数精度。 新增 21 项回归测试,覆盖流式分片、多轮调用、异常、并发和精度。 全库 420 项测试通过,并以 Factory Opus 5.5 验证三种联合 schema、流式调用及第二轮对话。
This commit is contained in:
@@ -4,7 +4,7 @@
|
||||
"description": "Sign in to a Factory (Droid) subscription from OpenCode or magpie",
|
||||
"type": "module",
|
||||
"main": "./index.mjs",
|
||||
"files": ["index.mjs", "README.md"],
|
||||
"files": ["index.mjs", "anthropic-tools.mjs", "README.md"],
|
||||
"keywords": ["opencode", "opencode-plugin", "magpie", "factory", "droid"],
|
||||
"license": "MIT",
|
||||
"repository": { "type": "git", "url": "git+https://github.com/magpie-community/plugins.git", "directory": "packages/factory" }
|
||||
|
||||
Reference in New Issue
Block a user