Files
yetone 21c3f948f1 factory 0.1.52: "harness" reads runtime in a client's prompt and tool descriptions, and Claude Code's tool search goes as tools declared in full
@DennisYan4 on X (2026-11-19): Claude Code, Pi and Codex through Factory
answer 400 content_policy_rejected since 11-17, and Claude Code's deferred
tools fail. Factory's policy check refuses a client describing itself as an
agent harness; Pi passed once its prompt said "runtime" for "harness". The
word alone changes (names like harness_key and the user's own turns are
left), in system prompts, system messages, the update-config entry and tool
descriptions. Claude Code's tool search (defer_loading, the
DeferredToolPlaceholder tool, tool_reference/tool_definition/tool_addition
blocks) is turned into what its own no-tool-search path sends: every loaded
tool declared in full, a reference answered as text so the pairing stays.

Run: bun test packages/factory on mote (226 tests, green); the 5 new
harness tests are red on the previous index.mjs. The root `bun test` was
left to CI (a one-hour run on mote).
2026-11-19 22:26:35 +08:00

13 lines
617 B
JSON

{
"name": "@magpie-community/opencode-factory-auth",
"version": "0.1.52",
"description": "Sign in to a Factory (Droid) subscription from OpenCode or magpie",
"type": "module",
"main": "./opencode.mjs",
"exports": { ".": "./opencode2.mjs" },
"files": ["index.mjs", "opencode.mjs", "opencode2.mjs", "anthropic-tools.mjs", "tool-names.mjs", "client-phrases.json", "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" }
}