@khalilgharbaoui/opencode-claude-code-plugin 0.21.0 → 0.22.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +3 -3
- package/dist/index.d.ts +38 -15
- package/dist/index.js +108 -38
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
- package/skills/claude-code-plugin/SKILL.md +9 -5
package/package.json
CHANGED
|
@@ -95,8 +95,8 @@ Defaults below describe normal headless opencode use when the key is absent.
|
|
|
95
95
|
| `mcpConfig` | string or string[] | unset | Extra `--mcp-config` paths or inline JSON passed alongside the bridged config. |
|
|
96
96
|
| `strictMcpConfig` | boolean | `false` | Headless `--strict-mcp-config`: use only explicitly supplied MCP configs, ignoring other MCP sources, not all settings/credentials/hooks. The interactive wrapper adds it whenever it passes MCP paths, independently of this option. |
|
|
97
97
|
| `hotReloadMcp` | boolean | `true` | With bridging on, compare merged MCP config/status at turn start and respawn on drift after pending proxy calls resolve. Keeps the session via headless `--resume`. Does not reload arbitrary provider options or watch explicit `mcpConfig` contents. |
|
|
98
|
-
| `proxyOpencodeMcpTools` | boolean | `
|
|
99
|
-
| `proxyOpencodeTools` | string[] | `[]` | Forward named opencode tools through the proxy by registry id (`client.tool.list()`, matched case-insensitively). Covers tools another opencode plugin declares directly, which belong to no MCP server and so are
|
|
98
|
+
| `proxyOpencodeMcpTools` | boolean | `false` | Route opencode's MCP-backed tools through opencode's executor instead of Claude's own `--mcp-config` child, so each call is permission-prompted and rendered as an opencode tool row. Default changed `true` to `false` here, with no behaviour change: at `true` it routed nothing, because discovery read opencode's tool registry, which never contains MCP tools. Discovery now reads the model tool set opencode passes the provider, verified live on opencode 1.18.31 / Claude Code 2.1.263. **Tell the user to set `strictMcpConfig: true` alongside it**: a server also present in Claude Code's own config is reached directly and the proxy is bypassed, which looks exactly like the option doing nothing. A routed call runs with the calling agent's permissions. Servers whose tools are not found stay on the direct bridge and log a warning. Do not promise exactly-once side effects across failures, retries or opencode versions; verify routing before using write-capable tools. |
|
|
99
|
+
| `proxyOpencodeTools` | string[] | `[]` | Forward named opencode tools through the proxy by registry id (`client.tool.list()`, matched case-insensitively). Covers tools another opencode plugin declares directly, which belong to no MCP server and so are never matched by `proxyOpencodeMcpTools`: opencode-dcp's `compress` is the motivating case. Same broker as every other proxy tool, so the same events release the call. Unknown name is skipped with a warning; a name a proxy def already holds is dropped with a warning and the existing tool keeps it. Explicit allowlist only, because a forwarded tool runs in opencode with the calling agent's permissions. |
|
|
100
100
|
| `stripContextReminders` | boolean | `false` | Strip opencode-dcp `<dcp-system-reminder>` blocks from user/assistant message text, including the fresh-session rebuild. Only when no `compress` is proxied via `proxyTools` or `proxyOpencodeTools`; reachable compress makes it inert. Resolved from config, so a configured-but-unregistered name still counts as reachable. Leaves opencode's own `<system-reminder>` blocks alone. |
|
|
101
101
|
| `multiStepContinuation` | boolean | `true` | Append a system-prompt hint to chain tool calls in one turn instead of stopping between subtasks. |
|
|
102
102
|
| `autoContinueIncompleteTurns` | boolean or `"smart"` | `"smart"` | `true`/`"smart"` continue a turn truncated at `max_tokens`, bounded by 8 attempts and 10 minutes, and otherwise run the keyword heuristic only when stop reason is missing. Every other stop reason, plus error, abort or latched question, stops it. Current measured CLIs always report a reason, so truncation is the only case that resumes in practice. |
|
|
@@ -307,9 +307,13 @@ on a long call; they never extend a deadline). Do not present a raised deadline
|
|
|
307
307
|
fix for a long subagent; the default already waits for it. A deadline-free call is not
|
|
308
308
|
silent while it waits: it logs `proxy call still waiting, no deadline` at WARN after
|
|
309
309
|
five minutes and every five minutes after, with tool, call id and elapsed time. That
|
|
310
|
-
line is a status report, never a failure; it does not end the call
|
|
311
|
-
deadline
|
|
312
|
-
|
|
310
|
+
line is a status report, never a failure; it does not end the call. A call that HAS a
|
|
311
|
+
deadline instead logs `proxy call still waiting, deadline approaching` once, at 60% of
|
|
312
|
+
that deadline, carrying `remainingMs` and naming `proxyToolTimeoutMs`; deadlines under
|
|
313
|
+
a minute are not announced, because there the notice and the rejection would arrive
|
|
314
|
+
together. Neither line means something is wrong and neither ends a call. Use them, or
|
|
315
|
+
`/claude-code-doctor`, to tell a working subagent from a wedged one before suggesting
|
|
316
|
+
any timeout change.
|
|
313
317
|
|
|
314
318
|
### Let Claude load the user's opencode skills
|
|
315
319
|
|