opencode-claude-code-acpbridge 0.10.1 → 0.11.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/CHANGELOG.md +61 -0
- package/README.md +80 -46
- package/dist/acp/claude-config.d.ts +3 -2
- package/dist/acp/claude-config.d.ts.map +1 -1
- package/dist/acp/claude-config.js +5 -1
- package/dist/acp/claude-config.js.map +1 -1
- package/dist/plugin/compat.d.ts +1 -1
- package/dist/plugin/compat.d.ts.map +1 -1
- package/dist/plugin/compat.js +1 -1
- package/dist/plugin/compat.js.map +1 -1
- package/dist/plugin/discover.d.ts.map +1 -1
- package/dist/plugin/discover.js +9 -6
- package/dist/plugin/discover.js.map +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 +28 -0
- package/dist/provider/model.d.ts.map +1 -1
- package/dist/provider/model.js +215 -20
- 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
|
@@ -20,16 +20,17 @@
|
|
|
20
20
|
],
|
|
21
21
|
"agents": {
|
|
22
22
|
// Maximum quality for the built-in agent: Opus with the maximum effort.
|
|
23
|
-
"claude-
|
|
23
|
+
"claude-default": { "model": "acp/default#max" },
|
|
24
24
|
// A fast extra agent, declared in OpenCode's own `agents` section: Haiku with low
|
|
25
25
|
// effort. It runs on the acp provider with the plain profile (OpenCode's tools, no
|
|
26
|
-
// native Claude Code extras such as skills or native subagents).
|
|
27
|
-
|
|
26
|
+
// native Claude Code extras such as skills or native subagents). An agent configured
|
|
27
|
+
// with an `acp/…` model counts as a Claude Code agent for the model pairing.
|
|
28
|
+
"claude-fast": {
|
|
28
29
|
"description": "Fast Claude Code (Haiku, low effort)",
|
|
29
30
|
"mode": "primary",
|
|
30
31
|
"model": "acp/haiku#low"
|
|
31
32
|
}
|
|
32
33
|
}
|
|
33
34
|
// Don't add agents through the plugin's `options.agents` just to get an extra one:
|
|
34
|
-
// that list REPLACES the built-in claude
|
|
35
|
+
// that list REPLACES the built-in claude-<mode> agents (see 05-custom-agents.jsonc).
|
|
35
36
|
}
|
|
@@ -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.1",
|
|
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",
|