opencode-claude-code-acpbridge 0.10.1 → 0.11.0
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/CHANGELOG.md +34 -0
- package/README.md +77 -44
- package/dist/acp/claude-config.d.ts +1 -1
- package/dist/plugin/index.d.ts +8 -0
- package/dist/plugin/index.d.ts.map +1 -1
- package/dist/plugin/index.js +115 -27
- package/dist/plugin/index.js.map +1 -1
- package/dist/plugin/pairing.d.ts +66 -0
- package/dist/plugin/pairing.d.ts.map +1 -0
- package/dist/plugin/pairing.js +110 -0
- package/dist/plugin/pairing.js.map +1 -0
- package/dist/provider/factory.d.ts.map +1 -1
- package/dist/provider/factory.js +10 -1
- package/dist/provider/factory.js.map +1 -1
- package/dist/provider/model.d.ts +5 -0
- package/dist/provider/model.d.ts.map +1 -1
- package/dist/provider/model.js +36 -8
- package/dist/provider/model.js.map +1 -1
- package/docs/DEVELOPMENT.md +36 -13
- package/examples/01-minimal.jsonc +7 -5
- package/examples/02-per-agent-permissions.jsonc +2 -2
- package/examples/04-model-and-effort.jsonc +5 -4
- package/examples/05-custom-agents.jsonc +1 -1
- package/examples/08-permission-bridge.jsonc +2 -2
- package/examples/README.md +3 -3
- package/package.json +1 -1
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
{ "package": "opencode-claude-code-acpbridge",
|
|
7
7
|
"options": {
|
|
8
8
|
"command": "claude-agent-acp",
|
|
9
|
-
// This list REPLACES the built-in agents (claude-
|
|
9
|
+
// This list REPLACES the built-in agents (claude-default, claude-plan, …).
|
|
10
10
|
// Your agents get exactly the `options` you write here: they do NOT inherit the
|
|
11
11
|
// built-in native profile (native subagents, skills, project memory…). Add those
|
|
12
12
|
// options yourself if you want them, e.g. "nativeSkills": true.
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
// Permission bridge (OpenCode V2 only).
|
|
3
3
|
//
|
|
4
|
-
// The built-in `claude
|
|
4
|
+
// The built-in `claude-*` agents keep a few NATIVE Claude Code tools that
|
|
5
5
|
// OpenCode has no equivalent for: Skill, NotebookEdit, WebSearch, native subagents
|
|
6
6
|
// (Task), MCP resource search, and ExitPlanMode. When Claude wants to use one of
|
|
7
7
|
// them, Claude Code asks for permission, and the plugin answers like this:
|
|
@@ -23,7 +23,7 @@
|
|
|
23
23
|
{ "package": "opencode-claude-code-acpbridge", "options": { "command": "claude-agent-acp" } }
|
|
24
24
|
],
|
|
25
25
|
"agents": {
|
|
26
|
-
"claude-
|
|
26
|
+
"claude-default": {
|
|
27
27
|
"permissions": [
|
|
28
28
|
{ "action": "Skill", "resource": "*", "effect": "allow" }, // any skill: allow
|
|
29
29
|
{ "action": "WebSearch", "resource": "*", "effect": "allow" }, // native web search: allow
|
package/examples/README.md
CHANGED
|
@@ -33,8 +33,8 @@ Notes for all of them:
|
|
|
33
33
|
- Refresh the model list: `npx opencode-claude-code-acpbridge sync claude-agent-acp`.
|
|
34
34
|
- **Requirement.** The ACP agent is `@agentclientprotocol/claude-agent-acp` (binary
|
|
35
35
|
`claude-agent-acp`); install it with `npm i -g @agentclientprotocol/claude-agent-acp`.
|
|
36
|
-
- **CLI.** `opencode run --agent claude-
|
|
36
|
+
- **CLI.** `opencode run --agent claude-default -m acp/default "…"`. Without `-m`, `run` ignores
|
|
37
37
|
the agent's `model` and uses the global model from your config: that's how the V2 CLI works.
|
|
38
|
-
- **Agent definitions.** The plugin's `options.agents` **replaces** the built-in `claude
|
|
39
|
-
|
|
38
|
+
- **Agent definitions.** The plugin's `options.agents` **replaces** the built-in `claude-<mode>`
|
|
39
|
+
agents. To add an extra agent and keep the built-in ones, declare it in OpenCode's
|
|
40
40
|
own `agents` section with an `acp/…` model (example 04).
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "opencode-claude-code-acpbridge",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.11.0",
|
|
4
4
|
"description": "Use Claude Code inside OpenCode. An OpenCode plugin + model provider that bridges Claude Code over ACP (Agent Client Protocol): run it on your Claude subscription while OpenCode orchestrates the tools, permissions and TUI.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": "Antonio Orizondo Leyva",
|