@conveno/cli 0.2.0-rc.13 → 0.2.0-rc.15

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.
@@ -6196,6 +6196,8 @@ const Session = object({
6196
6196
  unreadCount: number().int().min(0).optional(),
6197
6197
  startedAt: IsoTimestamp,
6198
6198
  lastSeenAt: IsoTimestamp,
6199
+ /** When the session last sent a message. Absent until it has sent one. */
6200
+ lastSentAt: IsoTimestamp.optional(),
6199
6201
  /**
6200
6202
  * The CLI's own id for this session (Codex's thread id), set by its hooks with
6201
6203
  * `session.setNative`. Hooks of a CLI that runs many sessions in one process find theirs by it.
@@ -6501,12 +6503,52 @@ const ipcMethods = {
6501
6503
  result: object({ sessions: array(Session) })
6502
6504
  },
6503
6505
  "orchestrator.claim": {
6504
- params: object(sid),
6506
+ params: object({
6507
+ ...sid,
6508
+ via: _enum([
6509
+ "tool",
6510
+ "cli",
6511
+ "home"
6512
+ ]).optional()
6513
+ }),
6505
6514
  result: object({
6506
6515
  orchestrator: SessionId,
6507
6516
  previous: SessionId.nullable()
6508
6517
  })
6509
6518
  },
6519
+ "permission.ask": {
6520
+ params: object({
6521
+ ...sid,
6522
+ title: string().max(500).optional(),
6523
+ kind: string().max(100).optional(),
6524
+ timeoutMs: number().int().min(1).max(3e5),
6525
+ /** What happens when nobody answers, for the notice to the spawner. Default deny. */
6526
+ unanswered: _enum(["deny", "allow"]).optional()
6527
+ }),
6528
+ result: object({
6529
+ answer: _enum([
6530
+ "allow_once",
6531
+ "allow_always",
6532
+ "deny",
6533
+ "unanswered",
6534
+ "worker_offline",
6535
+ "no_spawner"
6536
+ ]),
6537
+ by: SessionId.optional()
6538
+ })
6539
+ },
6540
+ "permission.answer": {
6541
+ params: object({
6542
+ ...sid,
6543
+ requestId: string().min(1).max(64),
6544
+ answer: _enum([
6545
+ "allow_once",
6546
+ "allow_always",
6547
+ "deny"
6548
+ ])
6549
+ }),
6550
+ result: object({ ok: literal(true) })
6551
+ },
6510
6552
  "orchestrator.clear": {
6511
6553
  params: object({}),
6512
6554
  result: object({ previous: SessionId.nullable() })
@@ -8026,19 +8068,26 @@ async function waitForWorkBatch(ctx, opts = {}) {
8026
8068
  const HOOK_LOG_MAX_BYTES = 1e6;
8027
8069
  /** `<data dir>/logs/hooks.log`. */
8028
8070
  const hookLogPath = (dataDir) => join(dataDir, "logs", "hooks.log");
8071
+ /** `<data dir>/logs/lead.log`: one line per change of the lead (see `leadLogLine`). */
8072
+ const leadLogPath = (dataDir) => join(dataDir, "logs", "lead.log");
8029
8073
  /** Keep a logged word to plain characters, so one entry is one line and nothing is injected. */
8030
8074
  const plain = (v, max, extra = "") => v.replace(new RegExp(`[^A-Za-z0-9_.@:${extra}-]`, "g"), "_").slice(0, max);
8031
8075
  /** A duration in whole ms, or `-` when there is none. */
8032
8076
  const num = (v) => v === void 0 || !Number.isFinite(v) ? "-" : String(Math.max(0, Math.round(v)));
8033
8077
  /**
8034
- * One line: `<iso time> cli=<cli> event=<event> conv=<first 8 of the conversation id> session=<name
8078
+ * One line: `<iso time> cli=<cli> event=<event> conv=<the conversation id> session=<name
8035
8079
  * or none> result=<result> host_ms=<n or -> ms=<n or ->`. No message text and no tokens: only ids the CLI hands to hooks and the
8036
8080
  * session's name.
8037
8081
  */
8038
8082
  function hookLogLine(e) {
8039
- const conv = e.conversationId ? plain(e.conversationId, 8) : "-";
8083
+ const conv = e.conversationId ? plain(e.conversationId, 64) : "-";
8040
8084
  return `${(e.at ?? /* @__PURE__ */ new Date()).toISOString()} cli=${plain(e.cli, 16)} event=${plain(e.event, 32)} conv=${conv} session=${e.session ? plain(e.session, 64) : "none"} result=${plain(e.result, 40, " ")} host_ms=${num(e.hostMs)} ms=${num(e.ms)}\n`;
8041
8085
  }
8086
+ /** One line: `<iso time> lead=<name or none> previous=<name or none> via=<how>`. */
8087
+ function leadLogLine(e) {
8088
+ const name = (v) => v ? plain(v, 64) : "none";
8089
+ return `${(e.at ?? /* @__PURE__ */ new Date()).toISOString()} lead=${name(e.lead)} previous=${name(e.previous)} via=${plain(e.via, 16)}\n`;
8090
+ }
8042
8091
  /**
8043
8092
  * Append one line to the hook log, rotating at `HOOK_LOG_MAX_BYTES`. Synchronous and tiny so a hook
8044
8093
  * is not made slower, and it never throws: a log that cannot be written must not change a hook.
@@ -9095,6 +9144,103 @@ async function detectRepo(cwd, fs) {
9095
9144
  basename: baseName(cwd)
9096
9145
  };
9097
9146
  }
9147
+ function globMatch(glob, text) {
9148
+ return new RegExp(`^${glob.split("*").map((part) => part.replace(/[.+?^${}()|[\]\\]/g, "\\$&")).join(".*")}$`, "s").test(text);
9149
+ }
9150
+ /** Does any rule allow a tool call of this kind and title? A call with no kind is `other`. */
9151
+ function isAllowed(rules, call) {
9152
+ const kind = call.kind ?? "other";
9153
+ const title = call.title ?? "";
9154
+ return rules.some((r) => (r.kind === "*" || r.kind === kind) && (r.title === void 0 || globMatch(r.title, title)));
9155
+ }
9156
+ const WORKER_ACCESS = [
9157
+ "read",
9158
+ "edit",
9159
+ "full"
9160
+ ];
9161
+ function parseWorkerAccess(s) {
9162
+ const v = s.trim().toLowerCase();
9163
+ return WORKER_ACCESS.includes(v) ? v : void 0;
9164
+ }
9165
+ const READ_KINDS = [
9166
+ "read",
9167
+ "search",
9168
+ "think"
9169
+ ];
9170
+ const EDIT_KINDS = [
9171
+ ...READ_KINDS,
9172
+ "edit",
9173
+ "move",
9174
+ "fetch"
9175
+ ];
9176
+ /** The allow rules a preset stands for. */
9177
+ function accessRules(access) {
9178
+ if (access === "full") return [{ kind: "*" }];
9179
+ return (access === "read" ? READ_KINDS : EDIT_KINDS).map((kind) => ({ kind }));
9180
+ }
9181
+ const SAFE_READ_COMMANDS = new Set([
9182
+ "ls",
9183
+ "dir",
9184
+ "pwd",
9185
+ "cat",
9186
+ "type",
9187
+ "head",
9188
+ "tail",
9189
+ "wc",
9190
+ "tree",
9191
+ "stat",
9192
+ "Get-ChildItem",
9193
+ "gci",
9194
+ "Get-Content",
9195
+ "Get-Item",
9196
+ "Get-Location",
9197
+ "Test-Path",
9198
+ "Resolve-Path"
9199
+ ].map((c) => c.toLowerCase()));
9200
+ const MAX_COMMAND_CHARS = 500;
9201
+ const TITLE_VERB = /^(?:execute|executing|run|running|command|shell)\b:?\s+/i;
9202
+ const SHELL_WRAPPER = /^(?:cmd\s+\/c|powershell\s+-command|pwsh\s+-c|bash\s+-lc|sh\s+-c)\s+/i;
9203
+ /**
9204
+ * Is the whole title one simple read-only command, such as `ls -la` or `bash -lc "cat a.txt"`?
9205
+ * Anything that chains, redirects, pipes or substitutes is not.
9206
+ */
9207
+ function isSafeReadCommand(title) {
9208
+ if (title.length > MAX_COMMAND_CHARS) return false;
9209
+ let inner = title.trim();
9210
+ inner = inner.replace(TITLE_VERB, "");
9211
+ if (/^`[^`]+`$/.test(inner)) inner = inner.slice(1, -1).trim();
9212
+ if (/[;&|><`()\n\r]/.test(inner) || inner.includes("${")) return false;
9213
+ if (/-exec/i.test(inner)) return false;
9214
+ const wrapper = SHELL_WRAPPER.exec(inner);
9215
+ if (wrapper) {
9216
+ inner = inner.slice(wrapper[0].length).trim();
9217
+ const q = inner[0];
9218
+ if ((q === "\"" || q === "'") && inner.length >= 2 && inner.endsWith(q)) inner = inner.slice(1, -1).trim();
9219
+ }
9220
+ const first = inner.split(/\s+/)[0] ?? "";
9221
+ return SAFE_READ_COMMANDS.has(first.toLowerCase());
9222
+ }
9223
+ /** May a worker with this access, make this tool call without asking? */
9224
+ function accessAllows(access, call) {
9225
+ if (access === "full") return true;
9226
+ return isAllowed(accessRules(access), call) || call.kind === "execute" && isSafeReadCommand(call.title ?? "");
9227
+ }
9228
+ const WORKER_UNANSWERED = ["deny", "allow"];
9229
+ /** What workers may do, with the default when it was never chosen. */
9230
+ function workerAccessOf(s) {
9231
+ return s.workerAccess ?? "full";
9232
+ }
9233
+ /** What happens to an unanswered request, with the default when it was never chosen. */
9234
+ function workerUnansweredOf(s) {
9235
+ return s.workerUnanswered ?? "deny";
9236
+ }
9237
+ const WORKER_ASK_TIMEOUT_CHOICES = [
9238
+ 60,
9239
+ 120,
9240
+ 300
9241
+ ];
9242
+ /** Seconds a worker waits for its spawner's answer. */
9243
+ const workerAskTimeoutOf = (s) => s.workerAskTimeoutSec ?? 120;
9098
9244
  /** Read the settings. A missing, unreadable or malformed file gives no settings. */
9099
9245
  function readSettings(path) {
9100
9246
  try {
@@ -9105,7 +9251,10 @@ function readSettings(path) {
9105
9251
  ...typeof o.acpAdapterNpx === "boolean" ? { acpAdapterNpx: o.acpAdapterNpx } : {},
9106
9252
  ...typeof o.leadCli === "string" && CLI_KINDS.includes(o.leadCli) ? { leadCli: o.leadCli } : {},
9107
9253
  ...Array.isArray(o.tools) ? { tools: [...new Set(o.tools.filter((t) => typeof t === "string" && CLI_KINDS.includes(t)))] } : {},
9108
- ...typeof o.wakeBeforeFirstPrompt === "boolean" ? { wakeBeforeFirstPrompt: o.wakeBeforeFirstPrompt } : {}
9254
+ ...typeof o.wakeBeforeFirstPrompt === "boolean" ? { wakeBeforeFirstPrompt: o.wakeBeforeFirstPrompt } : {},
9255
+ ...typeof o.workerAccess === "string" && parseWorkerAccess(o.workerAccess) ? { workerAccess: parseWorkerAccess(o.workerAccess) } : {},
9256
+ ...WORKER_ASK_TIMEOUT_CHOICES.includes(o.workerAskTimeoutSec) ? { workerAskTimeoutSec: o.workerAskTimeoutSec } : {},
9257
+ ...WORKER_UNANSWERED.includes(o.workerUnanswered) ? { workerUnanswered: o.workerUnanswered } : {}
9109
9258
  };
9110
9259
  } catch {
9111
9260
  return {};
@@ -9321,7 +9470,6 @@ function decodeAcpLaunchSpec(text) {
9321
9470
  return x;
9322
9471
  };
9323
9472
  if (!strings(o.args)) throw new Error("The ACP launch file has no \"args\".");
9324
- if (!strings(o.allow)) throw new Error("The ACP launch file has no \"allow\".");
9325
9473
  const mcp = o.mcp;
9326
9474
  return {
9327
9475
  file: str("file"),
@@ -9334,12 +9482,14 @@ function decodeAcpLaunchSpec(text) {
9334
9482
  ...typeof o.task === "string" && o.task !== "" ? { task: o.task } : {},
9335
9483
  ...typeof o.spawnedBy === "string" ? { spawnedBy: o.spawnedBy } : {},
9336
9484
  from: str("from"),
9337
- allow: o.allow,
9338
- ...typeof o.fullAccessMode === "string" && o.fullAccessMode !== "" ? { fullAccessMode: o.fullAccessMode } : {},
9485
+ access: (typeof o.access === "string" ? parseWorkerAccess(o.access) : void 0) ?? "full",
9486
+ ...typeof o.mode === "string" && o.mode !== "" ? { mode: o.mode } : {},
9339
9487
  ...mcp && typeof mcp.command === "string" && strings(mcp.args) ? { mcp: {
9340
9488
  command: mcp.command,
9341
9489
  args: mcp.args
9342
9490
  } } : {},
9491
+ askTimeoutMs: typeof o.askTimeoutMs === "number" && o.askTimeoutMs > 0 ? o.askTimeoutMs : 12e4,
9492
+ ...o.unanswered === "allow" || o.unanswered === "deny" ? { unanswered: o.unanswered } : {},
9343
9493
  ...typeof o.setupTimeoutMs === "number" && o.setupTimeoutMs > 0 ? { setupTimeoutMs: o.setupTimeoutMs } : {}
9344
9494
  };
9345
9495
  }
@@ -9353,65 +9503,6 @@ function takeAcpLaunchFile(path) {
9353
9503
  rmSync(path, { force: true });
9354
9504
  return spec;
9355
9505
  }
9356
- const ACP_TOOL_KINDS = [
9357
- "read",
9358
- "edit",
9359
- "delete",
9360
- "move",
9361
- "search",
9362
- "execute",
9363
- "think",
9364
- "fetch",
9365
- "switch_mode",
9366
- "other"
9367
- ];
9368
- const MAX_RULES = 32;
9369
- /**
9370
- * Parse `--allow` patterns: comma separated, each `<kind>` or `<kind>:<title glob>`, where kind is
9371
- * an ACP tool kind or `*`. Examples: `read,search`, `execute:npm test*`, `*`.
9372
- */
9373
- function parseAllowPatterns(input) {
9374
- const rules = [];
9375
- for (const raw of input.flatMap((s) => s.split(","))) {
9376
- const item = raw.trim();
9377
- if (item === "") continue;
9378
- const colon = item.indexOf(":");
9379
- const kind = (colon === -1 ? item : item.slice(0, colon)).trim();
9380
- const title = colon === -1 ? void 0 : item.slice(colon + 1).trim();
9381
- if (kind !== "*" && !ACP_TOOL_KINDS.includes(kind)) return {
9382
- ok: false,
9383
- message: `"${kind}" is not a tool kind. Use one of: ${ACP_TOOL_KINDS.join(", ")}, or *.`
9384
- };
9385
- if (title === "") return {
9386
- ok: false,
9387
- message: `"${item}" has an empty title pattern.`
9388
- };
9389
- rules.push({
9390
- kind,
9391
- ...title !== void 0 ? { title } : {}
9392
- });
9393
- }
9394
- if (rules.length > MAX_RULES) return {
9395
- ok: false,
9396
- message: `At most ${MAX_RULES} allow patterns.`
9397
- };
9398
- return {
9399
- ok: true,
9400
- rules
9401
- };
9402
- }
9403
- const formatAllowRule = (r) => r.title === void 0 ? r.kind : `${r.kind}:${r.title}`;
9404
- function globMatch(glob, text) {
9405
- return new RegExp(`^${glob.split("*").map((part) => part.replace(/[.+?^${}()|[\]\\]/g, "\\$&")).join(".*")}$`, "s").test(text);
9406
- }
9407
- /** Does any rule allow a tool call of this kind and title? A call with no kind is `other`. */
9408
- function isAllowed(rules, call) {
9409
- const kind = call.kind ?? "other";
9410
- const title = call.title ?? "";
9411
- return rules.some((r) => (r.kind === "*" || r.kind === kind) && (r.title === void 0 || globMatch(r.title, title)));
9412
- }
9413
- /** The allow rules a worker gets when none were given: every kind of tool call. */
9414
- const DEFAULT_ALLOW_RULES = [{ kind: "*" }];
9415
9506
  /** Why a CLI cannot be started the way the caller asked. The message is shown to the user. */
9416
9507
  var SpawnError = class extends Error {
9417
9508
  fix;
@@ -9675,6 +9766,9 @@ function realSpawnDeps(opts) {
9675
9766
  isDir: isDirectory,
9676
9767
  which: (name) => findOnPath(name, env, platform, platform === "win32" ? entryExists : void 0),
9677
9768
  acpNpxConsent: () => readSettings(dataPaths(platform, opts.dataDir).settings).acpAdapterNpx === true,
9769
+ workerAccess: () => readSettings(dataPaths(platform, opts.dataDir).settings).workerAccess,
9770
+ workerUnanswered: () => readSettings(dataPaths(platform, opts.dataDir).settings).workerUnanswered ?? "deny",
9771
+ workerAskTimeoutSec: () => workerAskTimeoutOf(readSettings(dataPaths(platform, opts.dataDir).settings)),
9678
9772
  repoExists: existsSync,
9679
9773
  killProcess: (pid) => killProcessTree(pid, platform),
9680
9774
  prepareFiles: (dataDir) => {
@@ -9761,7 +9855,11 @@ const SPAWN_TABLE = {
9761
9855
  binaries: ["claude-agent-acp"],
9762
9856
  args: [],
9763
9857
  adapterPackage: "@agentclientprotocol/claude-agent-acp",
9764
- fullAccessMode: "bypassPermissions",
9858
+ modes: {
9859
+ read: "plan",
9860
+ edit: "acceptEdits",
9861
+ full: "bypassPermissions"
9862
+ },
9765
9863
  note: "Claude Code has no ACP server of its own. The ACP project's npm package @agentclientprotocol/claude-agent-acp provides one and uses the Claude Code sign-in. Run conveno init to let Conveno fetch it with npx, or install it yourself.",
9766
9864
  docs: ["https://github.com/agentclientprotocol/claude-agent-acp (Apache-2.0, maintained by the ACP project)", "https://www.npmjs.com/package/@agentclientprotocol/claude-agent-acp (bin claude-agent-acp)"]
9767
9865
  }
@@ -9775,7 +9873,11 @@ const SPAWN_TABLE = {
9775
9873
  binaries: ["codex-acp"],
9776
9874
  args: [],
9777
9875
  adapterPackage: "@agentclientprotocol/codex-acp",
9778
- fullAccessMode: "agent-full-access",
9876
+ modes: {
9877
+ read: "read-only",
9878
+ edit: "workspace-write",
9879
+ full: "agent-full-access"
9880
+ },
9779
9881
  note: "Codex has no ACP server of its own. The ACP project's npm package @agentclientprotocol/codex-acp provides one and uses the Codex sign-in. Run conveno init to let Conveno fetch it with npx, or install it yourself.",
9780
9882
  docs: [
9781
9883
  "https://github.com/agentclientprotocol/codex-acp (Apache-2.0, built on the Codex app server)",
@@ -9792,6 +9894,11 @@ const SPAWN_TABLE = {
9792
9894
  acp: {
9793
9895
  binaries: ["opencode"],
9794
9896
  args: ["acp"],
9897
+ modes: {
9898
+ read: "plan",
9899
+ edit: "build",
9900
+ full: "build"
9901
+ },
9795
9902
  note: "",
9796
9903
  docs: ["https://opencode.ai/docs/cli/acp/ (opencode acp, stdio, protocol version 1)", "reference/src/opencode/packages/opencode/src/cli/cmd/acp.ts"]
9797
9904
  }
@@ -9804,6 +9911,11 @@ const SPAWN_TABLE = {
9804
9911
  acp: {
9805
9912
  binaries: ["agy"],
9806
9913
  args: ["acp"],
9914
+ modes: {
9915
+ read: "plan",
9916
+ edit: "accept-edits",
9917
+ full: "default"
9918
+ },
9807
9919
  note: "Uses the sign-in cached by an interactive `agy`.",
9808
9920
  docs: ["https://antigravity.google/docs/cli/acp (agy acp, stdio)"]
9809
9921
  }
@@ -10061,10 +10173,8 @@ async function spawnSession(deps, req) {
10061
10173
  isDir: deps.isDir,
10062
10174
  confineToHome: req.confineToHome
10063
10175
  });
10064
- const allow = parseAllowPatterns(req.allow ?? []);
10065
- if (!allow.ok) throw new SpawnError(allow.message, "Fix the --allow patterns.");
10066
10176
  const window = req.window === true;
10067
- if (window && allow.rules.length > 0) throw new SpawnError("--allow only applies to a background worker.", "Drop --window, or drop --allow.");
10177
+ const access = req.access ?? deps.workerAccess?.() ?? "full";
10068
10178
  const acpResolved = spec.acp ? resolveAcpProgram(cli, spec.acp, {
10069
10179
  env: deps.env,
10070
10180
  which: deps.which,
@@ -10134,8 +10244,8 @@ async function spawnSession(deps, req) {
10134
10244
  ...task !== void 0 ? { task } : {},
10135
10245
  ...req.requester ? { spawnedBy: req.requester.id } : {},
10136
10246
  from: req.requester?.name ?? "the user",
10137
- allow: allow.rules.map(formatAllowRule),
10138
- ...allow.rules.length === 0 && spec.acp?.fullAccessMode ? { fullAccessMode: spec.acp.fullAccessMode } : {},
10247
+ access,
10248
+ ...spec.acp?.modes?.[access] ? { mode: spec.acp.modes[access] } : {},
10139
10249
  mcp: {
10140
10250
  command: node,
10141
10251
  args: [
@@ -10145,6 +10255,8 @@ async function spawnSession(deps, req) {
10145
10255
  cli
10146
10256
  ]
10147
10257
  },
10258
+ unanswered: deps.workerUnanswered?.() === "allow" ? "allow" : "deny",
10259
+ askTimeoutMs: (deps.workerAskTimeoutSec?.() ?? 120) * 1e3,
10148
10260
  ...acpRun?.source.startsWith("npx:") ? { setupTimeoutMs: NPX_SETUP_TIMEOUT_MS } : {}
10149
10261
  });
10150
10262
  run = await deps.launchBackground({
@@ -10191,7 +10303,7 @@ async function spawnSession(deps, req) {
10191
10303
  }
10192
10304
  req.onProgress?.(window ? `Opened ${terminal}. Waiting for ${cli} to register.` : `Started ${cli} over ACP in the background (host pid ${run?.pid}). Waiting for it to register.`);
10193
10305
  const viaNpx = !window && acpRun?.source.startsWith("npx:") === true;
10194
- if (viaNpx) req.onProgress?.(`Fetching the ${cli} adapter with npx (first run downloads it and can take a few minutes).`);
10306
+ if (viaNpx) req.onProgress?.(`Starting the ${cli} adapter with npx (only the first run downloads it).`);
10195
10307
  const session = await waitForRegistration(deps, {
10196
10308
  name,
10197
10309
  cli,
@@ -10272,4 +10384,4 @@ async function waitForRegistration(deps, w) {
10272
10384
  await deps.sleep(250);
10273
10385
  }
10274
10386
  }
10275
- export { formatInbox as $, literal as $n, runWaker as $t, clearOrchestrator as A, SESSION_ENDED_TEXT as An, pinnedAdapter as At, decideAutoContinue as B, makeResult as Bn, readInbox as Bt, attachAcpSession as C, Message as Cn, parseCliVersion as Ct, bindAccountDevice as D, RelayPayload as Dn, pendingHookContext as Dt, baseName as E, PROTOCOL_VERSION as En, pendingForInjection as Et, createWmiWalker as F, encodeFrame as Fn, proofsMatch as Ft, effectiveHolder as G, parseRelayFrame as Gn, renderBody as Gt, detectRepo as H, newMessageId as Hn, readSettings as Ht, currentAccessToken as I, ipcMethods as In, putInList as It, existedBefore as J, socketPathTooLongMessage as Jn, requeueMessages as Jt, endTurnContinuation as K, safeParse as Kn, requestDeviceCode as Kt, daemonProof as L, isSocketPathTooLong as Ln, readAccountTokens as Lt, compareVersions as M, SessionId as Mn, planProgram as Mt, compatStatus as N, createLineDecoder as Nn, planSpawn as Nt, claimOrchestrator as O, RpcErrorCode as On, pendingTurn as Ot, completeLogin as P, defaultSocketPath as Pn, pollDeviceCode as Pt, formatHookContext as Q, discriminatedUnion as Qn, runLaunchFile as Qt, dataDir as R, makeError as Rn, readAncestry as Rt, askedMarker as S, EventPayload as Sn, parseAllowPatterns as St, autoLimitsFromEnv as T, OWNER_SESSION_ID as Tn, parsePs1ShimTarget as Tt, dropFromList as U, newSessionId as Un, readSpawnRecord as Ut, defaultProcessIo as V, newDeviceId as Vn, readProcessList as Vt, editJson as W, parseIpcRequest as Wn, realSpawnDeps as Wt, findOnPath as X, array as Xn, resolveRecipient as Xt, fetchAccountStatus as Y, _enum as Yn, resolveAcpProgram as Yt, formatContinuation as Z, boolean as Zn, resolveWindowsCommand as Zt, adapterInstallCommand as _, CLI_KINDS as _n, markDelivered as _t, ConvenoError as a, statusAfterLiveness as an, hostPidOf as at, appendHookLog as b, EVENT_NAMES as bn, oneWindowPerHost as bt, HEARTBEAT_INTERVAL_MS as c, takeWithinChars as cn, isFromOwner as ct, RESPONSE_BUDGET_BYTES as d, uninstallLauncher as dn, jwtClaim as dt, sameJson as en, number as er, generateSessionName as et, SPAWN_CLIS as f, updateSpawnRecord as fn, late as ft, acpOverrideVar as g, writeSettings as gn, logoutAccount as gt, ackEntries as h, waitForWorkBatch as hn, loadJson as ht, CLAUDE_PENDING_TURN_FOLDER as i, startTurnContext as in, hostAlive as it, clientProof as j, SESSION_NAME_PATTERN as jn, planLauncher as jt, claimSpawnRecord as k, RpcResponse as kn, pidAlive as kt, NOT_FROM_USER_NOTICE as l, tooManyUnreadMessage as ln, isObject as lt, SpawnError as m, waitForWork as mn, launcherText as mt, ACP_TOOL_KINDS as n, spawnRecordPath as nn, string as nr, hookLogLine as nt, DEFAULT_ALLOW_RULES as o, takeAcpLaunchFile as on, isAllowed as ot, SPAWN_TABLE as p, validateRename as pn, launcherPath as pt, evaluateLiveness as q, sanitizeLine as qn, requeueEntries as qt, AccountError as r, spawnSession as rn, hookLogPath as rt, FROM_USER_NOTICE as s, takeWithinBytes as sn, isAntigravityApp as st, ACCOUNT_API as t, senderOf as tn, object as tr, holderAfterDeparture as tt, ORCHESTRATOR_TASK_NOTICE as u, turnHops as un, isOnline as ut, adapterNpxCommand as v, CliKind as vn, needsQuoting as vt, autoCandidates as w, MessageId as wn, parseCmdShimTarget as wt, askedKey as x, EVENT_NOTIFICATION_METHOD as xn, ownSession as xt, agentCommand as y, DeviceId as yn, newAuthNonce as yt, dataPaths as z, makeEventNotification as zn, readCommandLine as zt };
10387
+ export { formatContinuation as $, sanitizeLine as $n, resolveRecipient as $t, claimOrchestrator as A, MessageId as An, pendingHookContext as At, dataDir as B, defaultSocketPath as Bn, readAccountTokens as Bt, askedKey as C, CLI_KINDS as Cn, oneWindowPerHost as Ct, autoLimitsFromEnv as D, EVENT_NOTIFICATION_METHOD as Dn, parsePs1ShimTarget as Dt, autoCandidates as E, EVENT_NAMES as En, parseCmdShimTarget as Et, compatStatus as F, RpcResponse as Fn, planProgram as Ft, dropFromList as G, makeEventNotification as Gn, readSettings as Gt, decideAutoContinue as H, ipcMethods as Hn, readCommandLine as Ht, completeLogin as I, SESSION_ENDED_TEXT as In, planSpawn as It, endTurnContinuation as J, newMessageId as Jn, renderBody as Jt, editJson as K, makeResult as Kn, readSpawnRecord as Kt, createWmiWalker as L, SESSION_NAME_PATTERN as Ln, pollDeviceCode as Lt, clearOrchestrator as M, PROTOCOL_VERSION as Mn, pidAlive as Mt, clientProof as N, RelayPayload as Nn, pinnedAdapter as Nt, baseName as O, EventPayload as On, parseWorkerAccess as Ot, compareVersions as P, RpcErrorCode as Pn, planLauncher as Pt, findOnPath as Q, safeParse as Qn, resolveAcpProgram as Qt, currentAccessToken as R, SessionId as Rn, proofsMatch as Rt, appendHookLog as S, writeSettings as Sn, newAuthNonce as St, attachAcpSession as T, DeviceId as Tn, parseCliVersion as Tt, defaultProcessIo as U, isSocketPathTooLong as Un, readInbox as Ut, dataPaths as V, encodeFrame as Vn, readAncestry as Vt, detectRepo as W, makeError as Wn, readProcessList as Wt, existedBefore as X, parseIpcRequest as Xn, requeueEntries as Xt, evaluateLiveness as Y, newSessionId as Yn, requestDeviceCode as Yt, fetchAccountStatus as Z, parseRelayFrame as Zn, requeueMessages as Zt, ackEntries as _, waitForWork as _n, leadLogPath as _t, FROM_USER_NOTICE as a, spawnRecordPath as an, literal as ar, hookLogPath as at, adapterNpxCommand as b, workerAskTimeoutOf as bn, markDelivered as bt, ORCHESTRATOR_TASK_NOTICE as c, statusAfterLiveness as cn, string as cr, isAntigravityApp as ct, SPAWN_TABLE as d, takeWithinChars as dn, isOnline as dt, resolveWindowsCommand as en, socketPathTooLongMessage as er, formatHookContext as et, SpawnError as f, tooManyUnreadMessage as fn, jwtClaim as ft, accessAllows as g, validateRename as gn, leadLogLine as gt, WORKER_UNANSWERED as h, updateSpawnRecord as hn, launcherText as ht, ConvenoError as i, senderOf as in, discriminatedUnion as ir, hookLogLine as it, claimSpawnRecord as j, OWNER_SESSION_ID as jn, pendingTurn as jt, bindAccountDevice as k, Message as kn, pendingForInjection as kt, RESPONSE_BUDGET_BYTES as l, takeAcpLaunchFile as ln, isFromOwner as lt, WORKER_ASK_TIMEOUT_CHOICES as m, uninstallLauncher as mn, launcherPath as mt, AccountError as n, runWaker as nn, array as nr, generateSessionName as nt, HEARTBEAT_INTERVAL_MS as o, spawnSession as on, number as or, hostAlive as ot, WORKER_ACCESS as p, turnHops as pn, late as pt, effectiveHolder as q, newDeviceId as qn, realSpawnDeps as qt, CLAUDE_PENDING_TURN_FOLDER as r, sameJson as rn, boolean as rr, holderAfterDeparture as rt, NOT_FROM_USER_NOTICE as s, startTurnContext as sn, object as sr, hostPidOf as st, ACCOUNT_API as t, runLaunchFile as tn, _enum as tr, formatInbox as tt, SPAWN_CLIS as u, takeWithinBytes as un, isObject as ut, acpOverrideVar as v, waitForWorkBatch as vn, loadJson as vt, askedMarker as w, CliKind as wn, ownSession as wt, agentCommand as x, workerUnansweredOf as xn, needsQuoting as xt, adapterInstallCommand as y, workerAccessOf as yn, logoutAccount as yt, daemonProof as z, createLineDecoder as zn, putInList as zt };