@conveno/cli 0.2.0-rc.10 → 0.2.0-rc.11

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 CHANGED
@@ -39,7 +39,7 @@ Or run `conveno` with no arguments. It opens a full-screen app (Sessions, New, D
39
39
  | `conveno send <to> <text...> [--urgent]` | Send a message as you to a session name or id, `lead`, or `device:name`. `-` reads the text from standard input. |
40
40
  | `conveno rename <session> <new-name>` | Rename an online session. |
41
41
  | `conveno lead <session>` | Make a session the lead. `conveno lead --clear` leaves no lead. |
42
- | `conveno spawn <cli> [--cwd <dir>] [--name <name>] [--task <text> \| --task-file <path>] [--window] [--allow <kinds>] [--yes]` | Start a worker session of `claude`, `codex`, `opencode`, `cursor`, `copilot`, `antigravity` or `grok`, and print its name once it registers. The CLI must be installed. By default the worker runs in the background through the CLI's Agent Client Protocol server, with `conveno acp-host` driving it. It keeps running: each message sent to it becomes its next prompt at once when it is idle, or when its current turn ends. `--window` opens the real CLI in a new terminal instead, so you can watch it and take over: Windows Terminal (`wt -w 0 new-tab`, else a new console window) on Windows, Terminal.app (iTerm2 when it is your terminal) on macOS, and on Linux a new tmux window when you are inside tmux, else the first of `x-terminal-emulator`, `gnome-terminal`, `konsole`, `kitty`, `wezterm`, `alacritty` and `xterm`. The ACP commands are `claude-agent-acp` (install `@agentclientprotocol/claude-agent-acp`), `codex-acp` (install `@agentclientprotocol/codex-acp`), `opencode acp`, `agent acp` (Cursor), `copilot --acp --stdio`, `agy acp` and `grok agent stdio`; a missing one is an error that says what to install. For Claude Code and Codex, `conveno init` can allow running the adapter with `npx -y <package>@<pinned version>`, and `CONVENO_ACP_CODEX_CMD` / `CONVENO_ACP_CLAUDE_CMD` replace the command. In the background a tool call that needs approval is denied unless `--allow` covers it: comma-separated ACP tool kinds (`read`, `edit`, `delete`, `move`, `search`, `execute`, `think`, `fetch`, `switch_mode`, `other`, or `*`), each optionally with `:` and a title glob (`execute:npm test*`). Allowed calls are answered "allow once", never "always". The first task is optional. `--name` sets the session name (a taken or reserved one is refused); otherwise the usual `<cli>@<repo>-<n>` name is used. `--cwd` defaults to the current folder, which must be inside your home folder; an explicit `--cwd` can be anywhere. It asks first and `--yes` skips the question; without a terminal it exits 2 unless `--yes` is given. At most 8 spawned sessions run at once (`CONVENO_SPAWN_MAX` changes that), and a spawned session cannot spawn more than 3 levels deep. A task is at most 16000 characters. See `packages/protocol/PROTOCOL.md`. |
42
+ | `conveno spawn <cli> [--cwd <dir>] [--name <name>] [--task <text> \| --task-file <path>] [--window] [--allow <kinds>] [--yes]` | Start a worker session of `claude`, `codex`, `opencode`, `antigravity` or `grok`, and print its name once it registers. The CLI must be installed. By default the worker runs in the background through the CLI's Agent Client Protocol server, with `conveno acp-host` driving it. It keeps running: each message sent to it becomes its next prompt at once when it is idle, or when its current turn ends. `--window` opens the real CLI in a new terminal instead, so you can watch it and take over: Windows Terminal (`wt -w 0 new-tab`, else a new console window) on Windows, Terminal.app (iTerm2 when it is your terminal) on macOS, and on Linux a new tmux window when you are inside tmux, else the first of `x-terminal-emulator`, `gnome-terminal`, `konsole`, `kitty`, `wezterm`, `alacritty` and `xterm`. The ACP commands are `claude-agent-acp` (install `@agentclientprotocol/claude-agent-acp`), `codex-acp` (install `@agentclientprotocol/codex-acp`), `opencode acp`, `agy acp` and `grok agent stdio`; a missing one is an error that says what to install. For Claude Code and Codex, `conveno init` can allow running the adapter with `npx -y <package>@<pinned version>`, and `CONVENO_ACP_CODEX_CMD` / `CONVENO_ACP_CLAUDE_CMD` replace the command. In the background a tool call that needs approval is denied unless `--allow` covers it: comma-separated ACP tool kinds (`read`, `edit`, `delete`, `move`, `search`, `execute`, `think`, `fetch`, `switch_mode`, `other`, or `*`), each optionally with `:` and a title glob (`execute:npm test*`). Allowed calls are answered "allow once", never "always". The first task is optional. `--name` sets the session name (a taken or reserved one is refused); otherwise the usual `<cli>@<repo>-<n>` name is used. `--cwd` defaults to the current folder, which must be inside your home folder; an explicit `--cwd` can be anywhere. It asks first and `--yes` skips the question; without a terminal it exits 2 unless `--yes` is given. At most 8 spawned sessions run at once (`CONVENO_SPAWN_MAX` changes that), and a spawned session cannot spawn more than 3 levels deep. A task is at most 16000 characters. See `packages/protocol/PROTOCOL.md`. |
43
43
  | `conveno stop <worker>` | Stop a background worker. It cancels a running turn, ends its CLI and the processes it started, tells the spawning session why, and goes offline. A worker in a window is yours to close. |
44
44
  | `conveno doctor [--cli <list>]` | Check each CLI and the daemon, and say how to fix what is wrong. `--cli claude,codex` checks only those CLIs, so problems in the others do not count. |
45
45
  | `conveno devices [pair\|join\|revoke\|rename\|accept\|reset]` | Pro. List your devices, or pair a new machine: `pair` on one device and `join` on the new one at the same time, then type the 8-digit code each screen shows. `revoke` removes a device for good. Needs a Pro login on both. |
@@ -57,8 +57,6 @@ Or run `conveno` with no arguments. It opens a full-screen app (Sessions, New, D
57
57
  | Claude Code | Next turn (hook), or `inbox` | Yes |
58
58
  | OpenCode | `inbox`, plus the plugin at the end of a turn | Yes (plugin) |
59
59
  | Codex | Next turn (hook), or `inbox` | Coming in the next release |
60
- | Cursor CLI | After the next tool call (hook), or `inbox` | Coming in the next release |
61
- | GitHub Copilot CLI | Next turn (hook), or `inbox` | Coming in the next release |
62
60
  | Antigravity | Before each model call (hook), or `inbox` | Coming in the next release |
63
61
  | Grok | `inbox`, plus a hook at the end of a turn | Coming in the next release |
64
62
 
@@ -1,7 +1,7 @@
1
1
  import { writeFileSync } from "node:fs";
2
- import { n as runAcpHostFromFile, r as stopRequestPath, t as killProcessTree } from "./dist-BLfduOoT.js";
3
- import { At as readSpawnRecord, Wt as spawnRecordPath } from "./dist-STNJjbNH.js";
4
- import { a as parseFlags, n as COMMANDS } from "./args-B3Cj2Ie4.js";
2
+ import { n as runAcpHostFromFile, r as stopRequestPath, t as killProcessTree } from "./dist-Rdj5ogAX.js";
3
+ import { At as readSpawnRecord, Ut as spawnRecordPath } from "./dist-qONHJRJk.js";
4
+ import { a as parseFlags, n as COMMANDS } from "./args-C1eX8Ixk.js";
5
5
  import { a as fail, n as cmd } from "./fmt-C2SsP5Y0.js";
6
6
  // src/acp.ts
7
7
  /** How long `conveno stop` waits for a worker to end by itself before it ends the process tree. */
@@ -1,6 +1,6 @@
1
1
  import { execFile } from "node:child_process";
2
- import { t as RELAY_SUBCOMMAND } from "./dist-VOS92iqO.js";
3
- import { Vt as runWaker } from "./dist-STNJjbNH.js";
2
+ import { t as RELAY_SUBCOMMAND } from "./dist-KWlFKO7H.js";
3
+ import { Bt as runWaker } from "./dist-qONHJRJk.js";
4
4
  import { n as connectOpts } from "./ctx-tYftvhz_.js";
5
5
  // src/agy-relay.ts
6
6
  /**
@@ -19,7 +19,7 @@ const SETUP_FLAGS = {
19
19
  accept: {
20
20
  type: "string",
21
21
  value: "<ids>",
22
- help: "Say yes to these extras without asking, such as copilot-idle-wake"
22
+ help: "Say yes to these extras without asking, such as codex-trust-hooks"
23
23
  },
24
24
  "acp-adapters": {
25
25
  type: "boolean",
@@ -46,7 +46,7 @@ const COMMANDS = [
46
46
  notes: [
47
47
  "In a terminal, setup walks you through it. With --yes, or without a terminal, it applies the changes without a walk-through.",
48
48
  "Setup shows every file it will change and asks first. Without a terminal it needs --yes, and exits 2 without it.",
49
- "Approving Conveno inside Codex and Antigravity is asked as yes/no, default yes. Extras, such as Copilot idle wake (it turns on Copilot's experimental mode), default no. --yes takes the defaults; --accept <ids> says yes to only those.",
49
+ "Approving Conveno inside Codex and Antigravity is asked as yes/no, default yes. Extras default no. --yes takes the defaults; --accept <ids> says yes to only those.",
50
50
  "Undo any time with conveno uninstall."
51
51
  ]
52
52
  },
@@ -58,7 +58,7 @@ const COMMANDS = [
58
58
  notes: [
59
59
  "init is the older name for setup. It shows every file it will change, with a diff, and asks first.",
60
60
  "Without a terminal it needs --yes, and exits 2 without it.",
61
- "Approving Conveno inside Codex and Antigravity is asked as yes/no, default yes. Other optional setups, such as Copilot idle wake (it turns on Copilot's experimental mode), default no. --yes takes the defaults; --accept <ids> says yes to only those.",
61
+ "Approving Conveno inside Codex and Antigravity is asked as yes/no, default yes. Other optional setups default no. --yes takes the defaults; --accept <ids> says yes to only those.",
62
62
  "When Codex or Claude Code is installed without its ACP adapter, init asks once whether npx may fetch it (third-party npm packages, pinned versions). The answer is kept; the two adapter flags change it."
63
63
  ],
64
64
  hidden: true
package/dist/bin.js CHANGED
@@ -26,9 +26,9 @@ for (const stream of [process.stdout, process.stderr]) stream.on("error", (err)
26
26
  });
27
27
  try {
28
28
  let code;
29
- if (isHook) code = await (await import("./hook-entry-C0bPssOy.js")).runHookEntry(argv.slice(1));
29
+ if (isHook) code = await (await import("./hook-entry-D2CAJsq-.js")).runHookEntry(argv.slice(1));
30
30
  else {
31
- const [{ main }, { createRuntimeCtx }] = await Promise.all([import("./main-BhKTG0AI.js"), import("./runtime-BGPlr8CI.js")]);
31
+ const [{ main }, { createRuntimeCtx }] = await Promise.all([import("./main-EqfI0btx.js"), import("./runtime-BDNmkbsS.js")]);
32
32
  code = await main(argv, createRuntimeCtx());
33
33
  }
34
34
  if (isHook) process.exit(code);
package/dist/daemon.js CHANGED
@@ -1,12 +1,12 @@
1
1
  #!/usr/bin/env node
2
2
  import { homedir, hostname, userInfo } from "node:os";
3
- import { t as codexAdapter } from "./dist-MK-cK1JY.js";
4
- import { An as newSessionId, C as bindAccountDevice, Ct as proofsMatch, D as clientProof, Dn as makeResult, E as clearOrchestrator, En as makeEventNotification, Et as readAncestry, F as dataPaths, Fn as socketPathTooLongMessage, I as decideAutoContinue, J as formatHookContext, L as defaultProcessIo, M as currentAccessToken, Mn as parseRelayFrame, N as daemonProof, Nn as safeParse, On as newDeviceId, Ot as readInbox, P as dataDir, Pn as sanitizeLine, Pt as requeueEntries, Qt as turnHops, R as detectRepo, Rt as resolveRecipient, S as baseName, Sn as encodeFrame, Tn as makeError, Tt as readAccountTokens, U as evaluateLiveness, V as effectiveHolder, X as generateSessionName, Xt as takeWithinChars, Yt as takeWithinBytes, Z as holderAfterDeparture, Zt as tooManyUnreadMessage, b as autoCandidates, bn as createLineDecoder, cn as EVENT_NAMES, ct as markDelivered, dn as Message, gn as RpcErrorCode, gt as pendingForInjection, hn as RelayPayload, j as createWmiWalker, jn as parseIpcRequest, kn as newMessageId, kt as readSettings, l as RESPONSE_BUDGET_BYTES, mn as PROTOCOL_VERSION, n as AccountError, nt as jwtClaim, p as ackEntries, pn as OWNER_SESSION_ID, q as formatContinuation, qt as statusAfterLiveness, r as ConvenoError, sn as DeviceId, tn as validateRename, tt as isOnline, ut as newAuthNonce, w as claimOrchestrator, wn as isSocketPathTooLong, x as autoLimitsFromEnv, xn as defaultSocketPath, xt as planSpawn, yn as SessionId } from "./dist-STNJjbNH.js";
3
+ import { t as codexAdapter } from "./dist-DEjU_KXC.js";
4
+ import { An as parseIpcRequest, C as bindAccountDevice, Cn as isSocketPathTooLong, Ct as proofsMatch, D as clientProof, Dn as newDeviceId, E as clearOrchestrator, En as makeResult, Et as readAncestry, F as dataPaths, I as decideAutoContinue, J as formatHookContext, Jt as takeWithinBytes, Kt as statusAfterLiveness, L as defaultProcessIo, Lt as resolveRecipient, M as currentAccessToken, Mn as safeParse, N as daemonProof, Nn as sanitizeLine, On as newMessageId, Ot as readInbox, P as dataDir, Pn as socketPathTooLongMessage, Pt as requeueEntries, R as detectRepo, S as baseName, Tn as makeEventNotification, Tt as readAccountTokens, U as evaluateLiveness, V as effectiveHolder, X as generateSessionName, Xt as tooManyUnreadMessage, Yt as takeWithinChars, Z as holderAfterDeparture, Zt as turnHops, b as autoCandidates, bn as defaultSocketPath, ct as markDelivered, en as validateRename, fn as OWNER_SESSION_ID, gt as pendingForInjection, hn as RpcErrorCode, j as createWmiWalker, jn as parseRelayFrame, kn as newSessionId, kt as readSettings, l as RESPONSE_BUDGET_BYTES, mn as RelayPayload, n as AccountError, nt as jwtClaim, on as DeviceId, p as ackEntries, pn as PROTOCOL_VERSION, q as formatContinuation, r as ConvenoError, sn as EVENT_NAMES, tt as isOnline, un as Message, ut as newAuthNonce, vn as SessionId, w as claimOrchestrator, wn as makeError, x as autoLimitsFromEnv, xn as encodeFrame, xt as planSpawn, yn as createLineDecoder } from "./dist-qONHJRJk.js";
5
5
  import { randomBytes } from "node:crypto";
6
6
  import { appendFileSync, chmodSync, existsSync, mkdirSync, readFileSync, renameSync, rmSync, statSync, unlinkSync, writeFileSync } from "node:fs";
7
7
  import { connect, createServer } from "node:net";
8
8
  import { dirname, join, posix, win32 } from "node:path";
9
- import { _ as sasMatches, a as JoinerPairing, b as signRelayHello, c as decodePairMessage, d as forkPoint, f as generateIdentity, g as publicRecord, h as parseIdentity, i as InviterPairing, l as deviceFingerprint, m as openEnvelope, n as ENVELOPE_MAX_AGE_MS, o as appendRevoke, p as headMatches, r as ENVELOPE_MAX_FUTURE_MS, s as chainHead, t as CryptoError, u as encodePairMessage, v as sealEnvelope, x as verifyChain, y as serializeIdentity } from "./dist-CVdpCNJo.js";
9
+ import { _ as sasMatches, a as JoinerPairing, b as signRelayHello, c as decodePairMessage, d as forkPoint, f as generateIdentity, g as publicRecord, h as parseIdentity, i as InviterPairing, l as deviceFingerprint, m as openEnvelope, n as ENVELOPE_MAX_AGE_MS, o as appendRevoke, p as headMatches, r as ENVELOPE_MAX_FUTURE_MS, s as chainHead, t as CryptoError, u as encodePairMessage, v as sealEnvelope, x as verifyChain, y as serializeIdentity } from "./dist-Dg2IY9OA.js";
10
10
  import { execFileSync } from "node:child_process";
11
11
  import { DatabaseSync } from "node:sqlite";
12
12
  // ../daemon/src/lifecycle.ts
@@ -1944,7 +1944,7 @@ var Store = class {
1944
1944
  }
1945
1945
  };
1946
1946
  // ../daemon/src/server.ts
1947
- const DAEMON_VERSION = "0.2.0-rc.10";
1947
+ const DAEMON_VERSION = "0.2.0-rc.11";
1948
1948
  /** A connection that has not finished the handshake by then is closed. */
1949
1949
  const AUTH_TIMEOUT_MS = 5e3;
1950
1950
  /** Unread messages one session may hold. */
@@ -1969,8 +1969,6 @@ const DAEMON_SENDER_ID = SessionId.parse("0".repeat(26));
1969
1969
  const CLI_TIER = {
1970
1970
  claude: "next_turn",
1971
1971
  codex: "next_turn",
1972
- cursor: "next_turn",
1973
- copilot: "next_turn",
1974
1972
  antigravity: "next_turn"
1975
1973
  };
1976
1974
  var Daemon = class {
@@ -1,4 +1,4 @@
1
- import { t as ClientError } from "./dist-D_O_JLLq.js";
1
+ import { t as ClientError } from "./dist-n6XMTlyN.js";
2
2
  import { n as cmd, s as plainError } from "./fmt-C2SsP5Y0.js";
3
3
  // src/daemonError.ts
4
4
  /**
@@ -2,7 +2,7 @@ import { execFile, spawn } from "node:child_process";
2
2
  import { readFileSync, statSync } from "node:fs";
3
3
  import { readFile } from "node:fs/promises";
4
4
  import { join } from "node:path";
5
- import { H as endTurnContinuation, K as findOnPath, Kt as startTurnContext, _t as pendingHookContext, bt as planProgram, dt as ownSession, pt as parseCliVersion, xt as planSpawn } from "./dist-STNJjbNH.js";
5
+ import { Gt as startTurnContext, H as endTurnContinuation, K as findOnPath, _t as pendingHookContext, bt as planProgram, dt as ownSession, pt as parseCliVersion, xt as planSpawn } from "./dist-qONHJRJk.js";
6
6
  import { n as cs, t as Za } from "./toml-patch-DGzVRdd1.js";
7
7
  // ../adapters/codex/dist/index.js
8
8
  const SERVER_NAME = "conveno";
@@ -2,7 +2,7 @@ import { randomBytes as randomBytes$1 } from "@noble/ciphers/utils.js";
2
2
  import { equalBytes } from "@noble/curves/utils.js";
3
3
  import { sha256 } from "@noble/hashes/sha2.js";
4
4
  import { bytesToHex, concatBytes, utf8ToBytes } from "@noble/hashes/utils.js";
5
- import { Bn as literal, Hn as object, In as _enum, Ln as array, Un as string, Vn as number, sn as DeviceId, zn as discriminatedUnion } from "./dist-STNJjbNH.js";
5
+ import { Bn as number, Fn as _enum, Hn as string, In as array, Rn as discriminatedUnion, Vn as object, on as DeviceId, zn as literal } from "./dist-qONHJRJk.js";
6
6
  import { ed25519, x25519 } from "@noble/curves/ed25519.js";
7
7
  import { chacha20poly1305 } from "@noble/ciphers/chacha.js";
8
8
  import { expand, extract } from "@noble/hashes/hkdf.js";
@@ -1,6 +1,6 @@
1
1
  import { readFile, readdir } from "node:fs/promises";
2
2
  import { join } from "node:path";
3
- import { $t as uninstallLauncher, B as editJson, H as endTurnContinuation, Ht as sameJson, O as compareVersions, P as dataDir, W as existedBefore, _ as agentCommand, _t as pendingHookContext, dt as ownSession, et as isObject, lt as needsQuoting, ot as loadJson, pt as parseCliVersion, rt as late, v as askedMarker, yt as planLauncher, z as dropFromList } from "./dist-STNJjbNH.js";
3
+ import { B as editJson, H as endTurnContinuation, O as compareVersions, P as dataDir, Qt as uninstallLauncher, Vt as sameJson, W as existedBefore, _ as agentCommand, _t as pendingHookContext, dt as ownSession, et as isObject, lt as needsQuoting, ot as loadJson, pt as parseCliVersion, rt as late, v as askedMarker, yt as planLauncher, z as dropFromList } from "./dist-qONHJRJk.js";
4
4
  // ../adapters/antigravity/dist/index.js
5
5
  const SERVER_NAME = "conveno";
6
6
  /** The name of our entry in hooks.json. Antigravity keys hooks by an arbitrary name. */
@@ -1,5 +1,5 @@
1
- import { n as connect } from "./dist-D_O_JLLq.js";
2
- import { Jt as takeAcpLaunchFile, Q as isAllowed, en as updateSpawnRecord, ft as parseAllowPatterns, gn as RpcErrorCode, i as DEFAULT_ALLOW_RULES, on as CliKind, q as formatContinuation, r as ConvenoError, yn as SessionId } from "./dist-STNJjbNH.js";
1
+ import { n as connect } from "./dist-n6XMTlyN.js";
2
+ import { $t as updateSpawnRecord, Q as isAllowed, an as CliKind, ft as parseAllowPatterns, hn as RpcErrorCode, i as DEFAULT_ALLOW_RULES, q as formatContinuation, qt as takeAcpLaunchFile, r as ConvenoError, vn as SessionId } from "./dist-qONHJRJk.js";
3
3
  import { randomBytes } from "node:crypto";
4
4
  import { existsSync, rmSync } from "node:fs";
5
5
  import { Readable, Writable } from "node:stream";
@@ -71,7 +71,7 @@ var ToolTracker = class {
71
71
  return u.sessionUpdate === "tool_call" ? next.title ?? next.kind ?? "tool" : void 0;
72
72
  }
73
73
  };
74
- const HOST_VERSION = "0.2.0-rc.10";
74
+ const HOST_VERSION = "0.2.0-rc.11";
75
75
  /** A stop request file: `conveno stop` writes it next to the spawn record. */
76
76
  const stopRequestPath = (recordPath) => recordPath.replace(/\.json$/, ".stop");
77
77
  function withTimeout(p, ms, what) {
@@ -551,8 +551,8 @@ function killProcessTree(pid, platform = process.platform) {
551
551
  /**
552
552
  * Start a CLI's ACP server with piped stdio. On POSIX it gets its own process group, so stopping
553
553
  * it ends the tools it started too. Whatever happens to the host, the server's stdin closes when
554
- * the host exits, and an ACP server on stdio exits when its input closes (OpenCode, Copilot and
555
- * the SDK-based adapters document this), so a crashed host leaves no worker behind.
554
+ * the host exits, and an ACP server on stdio exits when its input closes (OpenCode and the
555
+ * SDK-based adapters document this), so a crashed host leaves no worker behind.
556
556
  */
557
557
  function startAgentProcess(opts) {
558
558
  const platform = opts.platform ?? process.platform;
@@ -1,6 +1,6 @@
1
1
  import { readFile } from "node:fs/promises";
2
2
  import { join } from "node:path";
3
- import { $t as uninstallLauncher, B as editJson, Dt as readCommandLine, H as endTurnContinuation, Ht as sameJson, L as defaultProcessIo, W as existedBefore, _ as agentCommand, _t as pendingHookContext, a as FROM_USER_NOTICE, c as ORCHESTRATOR_TASK_NOTICE, dt as ownSession, et as isObject, lt as needsQuoting, ot as loadJson, pt as parseCliVersion, rt as late, s as NOT_FROM_USER_NOTICE, v as askedMarker, wt as putInList, yt as planLauncher, z as dropFromList } from "./dist-STNJjbNH.js";
3
+ import { B as editJson, Dt as readCommandLine, H as endTurnContinuation, L as defaultProcessIo, Qt as uninstallLauncher, Vt as sameJson, W as existedBefore, _ as agentCommand, _t as pendingHookContext, a as FROM_USER_NOTICE, c as ORCHESTRATOR_TASK_NOTICE, dt as ownSession, et as isObject, lt as needsQuoting, ot as loadJson, pt as parseCliVersion, rt as late, s as NOT_FROM_USER_NOTICE, v as askedMarker, wt as putInList, yt as planLauncher, z as dropFromList } from "./dist-qONHJRJk.js";
4
4
  import { n as cs, t as Za } from "./toml-patch-DGzVRdd1.js";
5
5
  // ../adapters/grok/dist/index.js
6
6
  const SERVER_NAME = "conveno";
@@ -3,7 +3,7 @@ import { mkdir, open, readFile, rm, stat } from "node:fs/promises";
3
3
  import { createConnection } from "node:net";
4
4
  import { homedir } from "node:os";
5
5
  import { dirname, join } from "node:path";
6
- import { Cn as ipcMethods, Ct as proofsMatch, D as clientProof, F as dataPaths, Fn as socketPathTooLongMessage, N as daemonProof, P as dataDir, Sn as encodeFrame, _n as RpcResponse, bn as createLineDecoder, gn as RpcErrorCode, mn as PROTOCOL_VERSION, r as ConvenoError, un as EventPayload, ut as newAuthNonce, wn as isSocketPathTooLong, xn as defaultSocketPath } from "./dist-STNJjbNH.js";
6
+ import { Cn as isSocketPathTooLong, Ct as proofsMatch, D as clientProof, F as dataPaths, N as daemonProof, P as dataDir, Pn as socketPathTooLongMessage, Sn as ipcMethods, bn as defaultSocketPath, gn as RpcResponse, hn as RpcErrorCode, ln as EventPayload, pn as PROTOCOL_VERSION, r as ConvenoError, ut as newAuthNonce, xn as encodeFrame, yn as createLineDecoder } from "./dist-qONHJRJk.js";
7
7
  // ../client/dist/index.js
8
8
  const DEFAULT_REQUEST_TIMEOUT_MS = 5e3;
9
9
  const DEFAULT_START_TIMEOUT_MS = 1e4;
@@ -5816,8 +5816,6 @@ const CLI_KINDS = [
5816
5816
  "claude",
5817
5817
  "codex",
5818
5818
  "antigravity",
5819
- "cursor",
5820
- "copilot",
5821
5819
  "opencode",
5822
5820
  "grok"
5823
5821
  ];
@@ -7450,14 +7448,6 @@ var clis = {
7450
7448
  "verified": "2.4.3",
7451
7449
  "minimum": "1.19.6"
7452
7450
  },
7453
- "cursor": {
7454
- "verified": "2026.11.22-e9042b2",
7455
- "minimum": "2026.11.22-e9042b2"
7456
- },
7457
- "copilot": {
7458
- "verified": "1.0.117",
7459
- "minimum": "1.0.117"
7460
- },
7461
7451
  "antigravity": {
7462
7452
  "verified": "1.5.20",
7463
7453
  "minimum": "1.5.20"
@@ -7483,8 +7473,8 @@ function versionParts(version) {
7483
7473
  }
7484
7474
  /**
7485
7475
  * Negative when `a` is older than `b`, 0 when equal, positive when newer; undefined when either
7486
- * has no numeric version. Only the dotted numbers count: a suffix such as `-e9042b2` (Cursor's
7487
- * commit) or `-alpha.3` is ignored, and a missing part is 0 (`1.2` equals `1.2.0`).
7476
+ * has no numeric version. Only the dotted numbers count: a suffix such as `-e9042b2` (a
7477
+ * commit hash) or `-alpha.3` is ignored, and a missing part is 0 (`1.2` equals `1.2.0`).
7488
7478
  */
7489
7479
  function compareVersions(a, b) {
7490
7480
  const pa = versionParts(a);
@@ -7712,15 +7702,13 @@ const MAX_RECONNECT_MS = 6e4;
7712
7702
  /**
7713
7703
  * The session that owns the hook's host process, when it is a session of the hook's own CLI. Every
7714
7704
  * helper below goes through here before taking messages, so a hook running inside another CLI
7715
- * (which would print a format that CLI discards) never marks anything delivered. With
7716
- * `includeOffline`, a session that just went offline (still in the daemon's removal grace) counts.
7705
+ * (which would print a format that CLI discards) never marks anything delivered.
7717
7706
  */
7718
- async function ownSession(ctx, opts = {}) {
7707
+ async function ownSession(ctx) {
7719
7708
  const { session } = await ctx.client["session.byHost"]({
7720
7709
  pid: ctx.hostPid,
7721
7710
  ...ctx.cwd === void 0 ? {} : { cwd: ctx.cwd },
7722
- ...ctx.nativeId === void 0 ? {} : { nativeId: ctx.nativeId },
7723
- ...opts.includeOffline ? { includeOffline: true } : {}
7711
+ ...ctx.nativeId === void 0 ? {} : { nativeId: ctx.nativeId }
7724
7712
  });
7725
7713
  if (session && ctx.cli !== void 0 && session.cli !== ctx.cli) return null;
7726
7714
  return session;
@@ -7806,29 +7794,6 @@ async function endTurnContinuation(ctx, opts = {}) {
7806
7794
  return null;
7807
7795
  }
7808
7796
  }
7809
- /**
7810
- * Put messages the hook took back to queued, for a hook that learns its CLI will not show them
7811
- * (Copilot stopping). Finds the session even when it went offline a moment ago, as a CLI that is
7812
- * exiting often unregisters it first. Returns how many went back; 0 on any failure.
7813
- */
7814
- async function requeueOwnMessages(ctx, ids) {
7815
- try {
7816
- if (ids.length === 0) return 0;
7817
- const session = await ownSession(ctx, { includeOffline: true });
7818
- if (!session) return 0;
7819
- let n = 0;
7820
- for (let i = 0; i < ids.length; i += 100) {
7821
- const r = await ctx.client["message.requeue"]({
7822
- sessionId: session.id,
7823
- ids: ids.slice(i, i + 100)
7824
- });
7825
- n += r.requeued;
7826
- }
7827
- return n;
7828
- } catch {
7829
- return 0;
7830
- }
7831
- }
7832
7797
  const DEFAULT_REGISTER_POLL_MS = 1e3;
7833
7798
  /**
7834
7799
  * The idle-wake listener of a hook. Waits until the daemon hands this session messages through
@@ -9581,30 +9546,6 @@ const SPAWN_TABLE = {
9581
9546
  docs: ["https://opencode.ai/docs/cli/acp/ (opencode acp, stdio, protocol version 1)", "reference/src/opencode/packages/opencode/src/cli/cmd/acp.ts"]
9582
9547
  }
9583
9548
  },
9584
- cursor: {
9585
- binaries: ["cursor-agent", "agent"],
9586
- interactive: (task) => task === void 0 ? [] : [task],
9587
- interactivePrompt: true,
9588
- docs: ["https://cursor.com/docs/cli/using.md (agent \"prompt\")"],
9589
- acp: {
9590
- binaries: ["cursor-agent", "agent"],
9591
- args: ["acp"],
9592
- note: "Sign in once with `agent login` first.",
9593
- docs: ["https://cursor.com/docs/cli/acp (agent acp, stdio)"]
9594
- }
9595
- },
9596
- copilot: {
9597
- binaries: ["copilot"],
9598
- interactive: (task) => task === void 0 ? [] : [`--interactive=${task}`],
9599
- interactivePrompt: true,
9600
- docs: ["https://docs.github.com/en/copilot/reference/copilot-cli-reference/cli-command-reference (-i/--interactive PROMPT)"],
9601
- acp: {
9602
- binaries: ["copilot"],
9603
- args: ["--acp", "--stdio"],
9604
- note: "ACP support in Copilot CLI is in public preview.",
9605
- docs: ["https://docs.github.com/en/copilot/reference/copilot-cli-reference/acp-server (copilot --acp --stdio)"]
9606
- }
9607
- },
9608
9549
  antigravity: {
9609
9550
  binaries: ["agy"],
9610
9551
  interactive: () => [],
@@ -10081,4 +10022,4 @@ async function waitForRegistration(deps, w) {
10081
10022
  await deps.sleep(250);
10082
10023
  }
10083
10024
  }
10084
- export { isFromOwner as $, uninstallLauncher as $t, completeLogin as A, newSessionId as An, readSpawnRecord as At, editJson as B, literal as Bn, runLaunchFile as Bt, bindAccountDevice as C, ipcMethods as Cn, proofsMatch as Ct, clientProof as D, makeResult as Dn, readCommandLine as Dt, clearOrchestrator as E, makeEventNotification as En, readAncestry as Et, dataPaths as F, socketPathTooLongMessage as Fn, requeueMessages as Ft, fetchAccountStatus as G, spawnSession as Gt, endTurnContinuation as H, object as Hn, sameJson as Ht, decideAutoContinue as I, _enum as In, requeueOwnMessages as It, formatHookContext as J, takeAcpLaunchFile as Jt, findOnPath as K, startTurnContext as Kt, defaultProcessIo as L, array as Ln, resolveAcpProgram as Lt, currentAccessToken as M, parseRelayFrame as Mn, renderBody as Mt, daemonProof as N, safeParse as Nn, requestDeviceCode as Nt, compareVersions as O, newDeviceId as On, readInbox as Ot, dataDir as P, sanitizeLine as Pn, requeueEntries as Pt, isAllowed as Q, turnHops as Qt, detectRepo as R, boolean as Rn, resolveRecipient as Rt, baseName as S, encodeFrame as Sn, pollDeviceCode as St, claimSpawnRecord as T, makeError as Tn, readAccountTokens as Tt, evaluateLiveness as U, string as Un, senderOf as Ut, effectiveHolder as V, number as Vn, runWaker as Vt, existedBefore as W, spawnRecordPath as Wt, generateSessionName as X, takeWithinChars as Xt, formatInbox as Y, takeWithinBytes as Yt, holderAfterDeparture as Z, tooManyUnreadMessage as Zt, agentCommand as _, RpcResponse as _n, pendingHookContext as _t, FROM_USER_NOTICE as a, CLI_KINDS as an, launcherText as at, autoCandidates as b, createLineDecoder as bn, planProgram as bt, ORCHESTRATOR_TASK_NOTICE as c, EVENT_NAMES as cn, markDelivered as ct, SPAWN_TABLE as d, Message as dn, ownSession as dt, updateSpawnRecord as en, isObject as et, SpawnError as f, MessageId as fn, parseAllowPatterns as ft, adapterNpxCommand as g, RpcErrorCode as gn, pendingForInjection as gt, adapterInstallCommand as h, RelayPayload as hn, parsePs1ShimTarget as ht, DEFAULT_ALLOW_RULES as i, writeSettings as in, launcherPath as it, createWmiWalker as j, parseIpcRequest as jn, realSpawnDeps as jt, compatStatus as k, newMessageId as kn, readSettings as kt, RESPONSE_BUDGET_BYTES as l, EVENT_NOTIFICATION_METHOD as ln, needsQuoting as lt, acpOverrideVar as m, PROTOCOL_VERSION as mn, parseCmdShimTarget as mt, AccountError as n, waitForWork as nn, jwtClaim as nt, HEARTBEAT_INTERVAL_MS as o, CliKind as on, loadJson as ot, ackEntries as p, OWNER_SESSION_ID as pn, parseCliVersion as pt, formatContinuation as q, statusAfterLiveness as qt, ConvenoError as r, waitForWorkBatch as rn, late as rt, NOT_FROM_USER_NOTICE as s, DeviceId as sn, logoutAccount as st, ACCOUNT_API as t, validateRename as tn, isOnline as tt, SPAWN_CLIS as u, EventPayload as un, newAuthNonce as ut, askedMarker as v, SESSION_NAME_PATTERN as vn, pinnedAdapter as vt, claimOrchestrator as w, isSocketPathTooLong as wn, putInList as wt, autoLimitsFromEnv as x, defaultSocketPath as xn, planSpawn as xt, attachAcpSession as y, SessionId as yn, planLauncher as yt, dropFromList as z, discriminatedUnion as zn, resolveWindowsCommand as zt };
10025
+ export { isFromOwner as $, updateSpawnRecord as $t, completeLogin as A, parseIpcRequest as An, readSpawnRecord as At, editJson as B, number as Bn, runWaker as Bt, bindAccountDevice as C, isSocketPathTooLong as Cn, proofsMatch as Ct, clientProof as D, newDeviceId as Dn, readCommandLine as Dt, clearOrchestrator as E, makeResult as En, readAncestry as Et, dataPaths as F, _enum as Fn, requeueMessages as Ft, fetchAccountStatus as G, startTurnContext as Gt, endTurnContinuation as H, string as Hn, senderOf as Ht, decideAutoContinue as I, array as In, resolveAcpProgram as It, formatHookContext as J, takeWithinBytes as Jt, findOnPath as K, statusAfterLiveness as Kt, defaultProcessIo as L, boolean as Ln, resolveRecipient as Lt, currentAccessToken as M, safeParse as Mn, renderBody as Mt, daemonProof as N, sanitizeLine as Nn, requestDeviceCode as Nt, compareVersions as O, newMessageId as On, readInbox as Ot, dataDir as P, socketPathTooLongMessage as Pn, requeueEntries as Pt, isAllowed as Q, uninstallLauncher as Qt, detectRepo as R, discriminatedUnion as Rn, resolveWindowsCommand as Rt, baseName as S, ipcMethods as Sn, pollDeviceCode as St, claimSpawnRecord as T, makeEventNotification as Tn, readAccountTokens as Tt, evaluateLiveness as U, spawnRecordPath as Ut, effectiveHolder as V, object as Vn, sameJson as Vt, existedBefore as W, spawnSession as Wt, generateSessionName as X, tooManyUnreadMessage as Xt, formatInbox as Y, takeWithinChars as Yt, holderAfterDeparture as Z, turnHops as Zt, agentCommand as _, SESSION_NAME_PATTERN as _n, pendingHookContext as _t, FROM_USER_NOTICE as a, CliKind as an, launcherText as at, autoCandidates as b, defaultSocketPath as bn, planProgram as bt, ORCHESTRATOR_TASK_NOTICE as c, EVENT_NOTIFICATION_METHOD as cn, markDelivered as ct, SPAWN_TABLE as d, MessageId as dn, ownSession as dt, validateRename as en, isObject as et, SpawnError as f, OWNER_SESSION_ID as fn, parseAllowPatterns as ft, adapterNpxCommand as g, RpcResponse as gn, pendingForInjection as gt, adapterInstallCommand as h, RpcErrorCode as hn, parsePs1ShimTarget as ht, DEFAULT_ALLOW_RULES as i, CLI_KINDS as in, launcherPath as it, createWmiWalker as j, parseRelayFrame as jn, realSpawnDeps as jt, compatStatus as k, newSessionId as kn, readSettings as kt, RESPONSE_BUDGET_BYTES as l, EventPayload as ln, needsQuoting as lt, acpOverrideVar as m, RelayPayload as mn, parseCmdShimTarget as mt, AccountError as n, waitForWorkBatch as nn, jwtClaim as nt, HEARTBEAT_INTERVAL_MS as o, DeviceId as on, loadJson as ot, ackEntries as p, PROTOCOL_VERSION as pn, parseCliVersion as pt, formatContinuation as q, takeAcpLaunchFile as qt, ConvenoError as r, writeSettings as rn, late as rt, NOT_FROM_USER_NOTICE as s, EVENT_NAMES as sn, logoutAccount as st, ACCOUNT_API as t, waitForWork as tn, isOnline as tt, SPAWN_CLIS as u, Message as un, newAuthNonce as ut, askedMarker as v, SessionId as vn, pinnedAdapter as vt, claimOrchestrator as w, makeError as wn, putInList as wt, autoLimitsFromEnv as x, encodeFrame as xn, planSpawn as xt, attachAcpSession as y, createLineDecoder as yn, planLauncher as yt, dropFromList as z, literal as zn, runLaunchFile as zt };