objectRoot dropped any anyOf/oneOf branch that was itself a union. Codex desktop's automation_update (zod 4: root anyOf of view, delete, and create and update, each a union on kind) folded to only view's mode and id, both required, so the model was offered a tool that could only view. Found while fixing the same fold in magpie's built-in for #1271. A nested union branch is now folded first (up to 8 deep); a field the root doesn't define takes every distinct schema the branches give it, as anyOf when they differ; a field every branch requires stays required. Verified: schema.test.mjs's new test fails on 0.1.9 (no "name" among [id mode]) and passes now; HOME=$(mktemp -d) bun test in packages/devin: 39 pass, 0 fail.
13 lines
504 B
JSON
13 lines
504 B
JSON
{
|
|
"name": "@magpie-community/opencode-devin-auth",
|
|
"version": "0.1.10",
|
|
"description": "Devin subscriptions (the devin CLI's account) in OpenCode and magpie",
|
|
"type": "module",
|
|
"main": "./index.mjs",
|
|
"exports": "./index.mjs",
|
|
"files": ["index.mjs", "README.md"],
|
|
"keywords": ["opencode", "opencode-plugin", "magpie", "devin", "windsurf"],
|
|
"license": "MIT",
|
|
"repository": { "type": "git", "url": "git+https://github.com/magpie-community/plugins.git", "directory": "packages/devin" }
|
|
}
|