@qlairoslabs/acp-client 0.3.3 → 0.3.4

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.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/src/adapters.ts +26 -6
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@qlairoslabs/acp-client",
3
- "version": "0.3.3",
3
+ "version": "0.3.4",
4
4
  "description": "Embeddable Agent Client Protocol (ACP) client library with degraded PTY fallback.",
5
5
  "type": "module",
6
6
  "module": "src/index.ts",
package/src/adapters.ts CHANGED
@@ -21,15 +21,35 @@ export interface Adapter {
21
21
  * nothing about what the agent supports.
22
22
  *
23
23
  * A wrong command here surfaces as a connect timeout, which reads like a library fault, so
24
- * the marked entries are the ones actually spawned and verified. `claude` was
25
- * `claude-agent-acp` until it wasn't: the ACP bridge for Claude Code ships as
26
- * `@zed-industries/claude-code-acp`, and the `claude` CLI itself speaks no ACP. Check
27
- * `which <command>` before assuming the library is at fault.
24
+ * the marked entries are the ones actually spawned and verified. Check `which <command>`
25
+ * before assuming the library is at fault.
28
26
  */
29
27
  export const ADAPTERS = {
30
28
  kimi: { command: ["kimi", "acp"], ptyCommand: ["kimi"], displayName: "Kimi" }, // verified
31
- // verified — @zed-industries/claude-code-acp. NOT `claude-agent-acp`, and not the `claude` CLI.
32
- claude: { command: ["claude-code-acp"], ptyCommand: ["claude"], displayName: "Claude" },
29
+ // verified — @agentclientprotocol/claude-agent-acp. Not the `claude` CLI, which speaks no
30
+ // ACP. If the binary isn't on PATH: `npm i -g @agentclientprotocol/claude-agent-acp`, or
31
+ // pass `{ command: ["bunx", "@agentclientprotocol/claude-agent-acp"] }` and skip installing.
32
+ claude: { command: ["claude-agent-acp"], ptyCommand: ["claude"], displayName: "Claude" },
33
+ /**
34
+ * @deprecated The same bridge under its old name. npm marks it renamed to
35
+ * `@agentclientprotocol/claude-agent-acp`, and it has been left far behind (0.16.x against
36
+ * 0.64.x), so it is frozen rather than merely older. Use `claude` above.
37
+ *
38
+ * Kept, and NOT quietly redirected, because a preset names a program to spawn: silently
39
+ * launching a different binary than the key says would be the harder failure to diagnose
40
+ * of the two. It is here so an existing install keeps working while it is migrated.
41
+ *
42
+ * The versions behave differently in ways that reach the caller. Most sharply, the ORDER
43
+ * of the permission options they offer is reversed — `allow_always` first here,
44
+ * `reject_once` first in the current package — so a client that picked an option by
45
+ * POSITION granted standing permission against one and refused everything against the
46
+ * other. Both are covered by smoke-tests/test4-permission.
47
+ */
48
+ claudeCode: {
49
+ command: ["claude-code-acp"],
50
+ ptyCommand: ["claude"],
51
+ displayName: "Claude (deprecated bridge)",
52
+ },
33
53
  // verified — @agentclientprotocol/codex-acp. The `codex` CLI has no `acp` subcommand.
34
54
  codex: { command: ["codex-acp"], ptyCommand: ["codex"], displayName: "Codex" },
35
55
  // Below: from each project's docs, not spawned here. Correct at time of writing, unverified.