@conveno/cli 0.2.0-rc.12 → 0.2.0-rc.14

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.
@@ -1,6 +1,6 @@
1
1
  import { readFile, readdir } from "node:fs/promises";
2
2
  import { join } from "node:path";
3
- import { Ct as pendingHookContext, Et as planLauncher, G as endTurnContinuation, H as dropFromList, Jt as sameJson, L as dataDir, U as editJson, _t as ownSession, an as uninstallLauncher, at as isObject, ct as late, dt as loadJson, j as compareVersions, mt as needsQuoting, q as existedBefore, v as agentCommand, x as askedMarker, yt as parseCliVersion } from "./dist-CRj_cuHc.js";
3
+ import { At as pendingHookContext, B as dataDir, G as dropFromList, J as endTurnContinuation, K as editJson, P as compareVersions, Pt as planLauncher, Tt as parseCliVersion, X as existedBefore, mn as uninstallLauncher, pt as late, rn as sameJson, ut as isObject, vt as loadJson, w as askedMarker, wt as ownSession, x as agentCommand, xt as needsQuoting } from "./dist-1k5b8UGF.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. */
@@ -577,6 +577,40 @@ async function sessionOf(ctx) {
577
577
  return null;
578
578
  }
579
579
  }
580
+ /** The folder the hook says the agent works in: the first of `workspacePaths`, else `cwd`. */
581
+ function workspaceOf(input) {
582
+ if (!isObject(input)) return void 0;
583
+ const paths = input.workspacePaths;
584
+ const first = Array.isArray(paths) ? paths[0] : void 0;
585
+ const dir = typeof first === "string" && first !== "" ? first : input.cwd;
586
+ return typeof dir === "string" && dir !== "" ? dir : void 0;
587
+ }
588
+ /**
589
+ * Is the transcript in the Antigravity desktop app's product folder (`antigravity/`), not the CLI's
590
+ * (`antigravity-cli/`) or the IDE's (`antigravity-ide/`)? A second signal next to the process chain.
591
+ */
592
+ function appTranscript(input) {
593
+ const t = isObject(input) ? input.transcriptPath : void 0;
594
+ return typeof t === "string" && t.split(/[\\/]/).includes("antigravity");
595
+ }
596
+ /**
597
+ * The desktop app starts Conveno in its install folder; a hook knows the workspace. Tell the daemon
598
+ * when an app session works elsewhere, and the row moves there. A CLI row is never sent: it already
599
+ * runs in the folder the user opened. Never throws.
600
+ */
601
+ async function followWorkspace(input, ctx, session) {
602
+ const app = session.variant === "app" || appTranscript(input);
603
+ const dir = workspaceOf(input);
604
+ if (!app || dir === void 0) return;
605
+ if (session.variant === "app" && dir === session.cwd) return;
606
+ try {
607
+ await ctx.client["session.setCwd"]({
608
+ sessionId: session.id,
609
+ cwd: dir,
610
+ ...session.variant === "app" ? {} : { variant: "app" }
611
+ });
612
+ } catch {}
613
+ }
580
614
  /** What the Stop hook asks once per turn while no relay is connected. */
581
615
  /** The relay request is asked once per Conveno session (a one-shot `agy -p` run counts each retry as a new turn). */
582
616
  const relayAsk = askedMarker("agy-relay-asked");
@@ -600,6 +634,7 @@ async function hook(event, input, ctx) {
600
634
  if (!isHookEvent(event)) return EMPTY;
601
635
  ctx = withConversation(input, ctx, event !== "Stop");
602
636
  const session = await sessionOf(ctx);
637
+ if (session !== null) await followWorkspace(input, ctx, session);
603
638
  if (event === "Stop") {
604
639
  const stop = isObject(input) ? input : {};
605
640
  const completed = (stop.terminationReason === void 0 || stop.terminationReason === "NO_TOOL_CALL") && (stop.error === void 0 || stop.error === "");
@@ -646,6 +681,7 @@ const antigravityAdapter = {
646
681
  detect,
647
682
  plan,
648
683
  optional: [relayOption],
684
+ doctorNotes: async () => ["The Antigravity app shares the CLI's settings, so Conveno is set up in both. App sessions show as \"Antigravity app\"."],
649
685
  uninstallPlan,
650
686
  hook
651
687
  };
@@ -1,13 +1,13 @@
1
1
  import { homedir } from "node:os";
2
- import { n as antigravityAdapter } from "./dist-Du1hwaux.js";
2
+ import { n as antigravityAdapter } from "./dist-vefQHFb-.js";
3
3
  import { isAbsolute, join } from "node:path";
4
- import { Ct as pendingHookContext, G as endTurnContinuation, Ht as requeueMessages, It as readSettings, L as dataDir, Nt as readAncestry, Qt as startTurnContext, R as dataPaths, _t as ownSession, cn as waitForWork, ln as waitForWorkBatch, nt as hookLogPath, r as CLAUDE_PENDING_TURN_FOLDER, wt as pendingTurn, yt as parseCliVersion } from "./dist-CRj_cuHc.js";
4
+ import { At as pendingHookContext, B as dataDir, Gt as readSettings, J as endTurnContinuation, Tt as parseCliVersion, V as dataPaths, Vt as readAncestry, Zt as requeueMessages, _n as waitForWork, at as hookLogPath, jt as pendingTurn, ot as hostAlive, r as CLAUDE_PENDING_TURN_FOLDER, sn as startTurnContext, vn as waitForWorkBatch, wt as ownSession } from "./dist-1k5b8UGF.js";
5
5
  import { readFile } from "node:fs/promises";
6
6
  import { applyEdits, modify, parse, printParseErrorCode } from "jsonc-parser";
7
- import { t as codexAdapter } from "./dist-BjATai4T.js";
8
- import { t as grokAdapter } from "./dist-DF0nL8wE.js";
9
- import { n as connect } from "./dist-B3YYLzKS.js";
10
- import { t as runHook } from "./hook-ByduyOom.js";
7
+ import { t as codexAdapter } from "./dist-Cv5et1iE.js";
8
+ import { t as grokAdapter } from "./dist-D-PhGsuL.js";
9
+ import { n as connect } from "./dist-BYkDv29h.js";
10
+ import { t as runHook } from "./hook-mvifUk0K.js";
11
11
  // ../adapters/claude/dist/index.js
12
12
  const isObject = (v) => typeof v === "object" && v !== null && !Array.isArray(v);
13
13
  /** Read a JSON object file. Missing or blank files give `{}`; anything else that is not a JSON object throws. */
@@ -467,7 +467,7 @@ async function mayListen(ctx, input) {
467
467
  for (let i = 0; i < 20; i++) {
468
468
  const session = await ownSession(ctx).catch(() => null);
469
469
  if (session) return session.spawned;
470
- if (ctx.isAlive && !ctx.isAlive(ctx.hostPid)) return false;
470
+ if (!await hostAlive(ctx)) return false;
471
471
  await new Promise((r) => setTimeout(r, 500));
472
472
  }
473
473
  return false;
@@ -537,7 +537,7 @@ async function hook$1(event, input, ctx) {
537
537
  maxChars: WAKE_MAX_CHARS
538
538
  });
539
539
  if (r === null) return EMPTY$1;
540
- if (ctx.isAlive && !ctx.isAlive(ctx.hostPid)) {
540
+ if (!await hostAlive(ctx)) {
541
541
  await requeueMessages(ctx.client, r.sessionId, r.batch.messages);
542
542
  return EMPTY$1;
543
543
  }
@@ -1330,7 +1330,7 @@ function createHookCtx() {
1330
1330
  launcherPaths
1331
1331
  },
1332
1332
  isAlive: isProcessAlive,
1333
- hookTimeoutMs: 2e3,
1333
+ hookTimeoutMs: process.platform === "win32" ? 3500 : 2e3,
1334
1334
  ...process.env.CONVENO_HOOK_TIMING_LOG ? {
1335
1335
  timingLog: process.env.CONVENO_HOOK_TIMING_LOG,
1336
1336
  uptimeMs: () => process.uptime() * 1e3
@@ -0,0 +1 @@
1
+ export { i as runHookEntry } from "./hook-entry-Cxh3yIdT.js";
@@ -1,5 +1,5 @@
1
1
  import { appendFileSync } from "node:fs";
2
- import { tt as hookLogLine, y as appendHookLog } from "./dist-CRj_cuHc.js";
2
+ import { S as appendHookLog, it as hookLogLine } from "./dist-1k5b8UGF.js";
3
3
  import { n as connectOpts } from "./ctx-tYftvhz_.js";
4
4
  // src/hook.ts
5
5
  /**
@@ -85,6 +85,14 @@ function conversationIn(input) {
85
85
  }
86
86
  /** After a timeout, the hook gets this many more timeouts' worth of time to finish recording. */
87
87
  const FINISH_GRACE_FACTOR = 2;
88
+ /**
89
+ * Every CLI kills a hook 5 s after it starts (`HOOK_TIMEOUT_SECONDS` in each adapter). The budget
90
+ * and the finish grace together stay under this, so the process ends by itself with its outcome
91
+ * logged instead of being killed mid-write. The rest is left for process start-up.
92
+ */
93
+ const HOOK_TOTAL_MAX_MS = 4800;
94
+ /** How long a timed-out hook may keep running to record its turn: capped so budget + grace fits. */
95
+ const finishGraceMs = (timeoutMs) => Math.max(0, Math.min(timeoutMs * FINISH_GRACE_FACTOR, HOOK_TOTAL_MAX_MS - timeoutMs));
88
96
  /** How long before the hook's timeout its messages count as too late to print. */
89
97
  const DEADLINE_MARGIN_MS = 300;
90
98
  /**
@@ -103,10 +111,15 @@ async function runHook(ctx, argv) {
103
111
  if (!adapter || !event) return 0;
104
112
  const listener = adapter.listenEvents?.includes(event) === true;
105
113
  const deadline = listener ? void 0 : Date.now() + ctx.hookTimeoutMs - DEADLINE_MARGIN_MS;
106
- const t0 = ctx.timingLog && !listener ? Date.now() : void 0;
114
+ const started = Date.now();
115
+ const t0 = ctx.timingLog && !listener ? started : void 0;
107
116
  const trace = { delivered: 0 };
108
117
  let conversation;
109
118
  let timedOut = false;
119
+ let workDone = false;
120
+ let hostMs;
121
+ let hostResolved = false;
122
+ let hostMissing = false;
110
123
  let client;
111
124
  let timer;
112
125
  const early = ctx.hostLookup ? void 0 : ctx.ancestry(HOOK_ANCESTRY_TIMEOUT_MS);
@@ -122,19 +135,37 @@ async function runHook(ctx, argv) {
122
135
  const [input, connected] = await Promise.all([readInput(), ctx.connect(connectOpts(ctx, false))]);
123
136
  client = ctx.hookLog ? traced(connected, trace) : connected;
124
137
  if (ctx.hookLog) conversation = conversationIn(input);
125
- const hostPid = await findHostPid(ctx, connected, adapter.cli, () => early ?? ctx.ancestry(1200));
126
- if (hostPid === void 0) {
127
- await adapter.hookWithoutSession?.(event, input).catch(() => {});
128
- return NOTHING;
129
- }
130
- return adapter.hook(event, input, {
138
+ let hostPid;
139
+ const resolveHostPid = () => {
140
+ hostPid ??= (async () => {
141
+ const t = Date.now();
142
+ try {
143
+ const pid = await findHostPid(ctx, connected, adapter.cli, () => early ?? ctx.ancestry(1200));
144
+ if (pid === void 0) hostMissing = true;
145
+ return pid;
146
+ } finally {
147
+ hostMs = Date.now() - t;
148
+ hostResolved = true;
149
+ }
150
+ })();
151
+ return hostPid;
152
+ };
153
+ const out = await adapter.hook(event, input, {
131
154
  client,
132
- hostPid,
155
+ resolveHostPid,
156
+ ...ctx.hostLookup ? { ppid: ctx.hostLookup.ppid } : {},
133
157
  cli: adapter.cli,
134
158
  isAlive: ctx.isAlive,
135
159
  ...deadline === void 0 ? {} : { deadline }
136
160
  });
161
+ if (hostResolved && hostMissing) await adapter.hookWithoutSession?.(event, input).catch(() => {});
162
+ return out;
137
163
  })();
164
+ work.then(() => {
165
+ workDone = true;
166
+ }, () => {
167
+ workDone = true;
168
+ });
138
169
  const timeout = listener ? new Promise(() => void 0) : new Promise((resolve) => {
139
170
  timer = setTimeout(() => {
140
171
  timedOut = true;
@@ -144,19 +175,22 @@ async function runHook(ctx, argv) {
144
175
  let code = 0;
145
176
  try {
146
177
  const out = await Promise.race([work, timeout]);
147
- if (out === NOTHING && !listener) await Promise.race([work.catch(() => void 0), new Promise((r) => setTimeout(r, ctx.hookTimeoutMs * FINISH_GRACE_FACTOR))]);
178
+ if (out === NOTHING && !listener) await Promise.race([work.catch(() => void 0), new Promise((r) => setTimeout(r, finishGraceMs(ctx.hookTimeoutMs)))]);
148
179
  if (out.stdout) ctx.out(out.stdout.endsWith("\n") ? out.stdout : `${out.stdout}\n`);
149
180
  if (listener && out.stderr) ctx.err(out.stderr.endsWith("\n") ? out.stderr : `${out.stderr}\n`);
150
181
  if (listener) code = out.exitCode;
151
182
  } catch {} finally {
152
183
  if (ctx.hookLog) {
153
- const result = timedOut ? "timeout" : trace.error ?? (trace.delivered > 0 ? `delivered ${trace.delivered}` : trace.turn ?? "nothing");
184
+ const done = trace.error ?? (trace.delivered > 0 ? `delivered ${trace.delivered}` : trace.turn ?? "nothing");
185
+ const result = timedOut ? workDone ? `${done} late` : "timeout" : done;
154
186
  appendHookLog(ctx.hookLog, hookLogLine({
155
187
  cli: adapter.cli,
156
188
  event,
157
189
  conversationId: conversation,
158
190
  session: trace.session,
159
- result
191
+ result,
192
+ hostMs,
193
+ ms: Date.now() - started
160
194
  }));
161
195
  }
162
196
  if (t0 !== void 0 && ctx.timingLog) {
@@ -1,16 +1,14 @@
1
- import { Kt as runLaunchFile, R as dataPaths, Rt as realSpawnDeps, Zt as spawnSession, d as SPAWN_CLIS, dn as CLI_KINDS, f as SPAWN_TABLE, p as SpawnError } from "./dist-CRj_cuHc.js";
2
- import { C as runRelay, D as runAccount, O as runLogin, S as runDevices, i as runDoctor, k as runLogout, m as runSetup, p as runInit, t as runUninstall, w as runDaemon } from "./uninstall-MaS5t1CK.js";
3
- import { a as parseFlags, i as commandHelp, n as COMMANDS, r as COMMAND_NAMES, t as ALL_COMMAND_NAMES } from "./args-C1eX8Ixk.js";
4
- import { t as daemonProblem } from "./daemonError-0KnkgIRo.js";
1
+ import { Cn as CLI_KINDS, Ot as parseWorkerAccess, V as dataPaths, d as SPAWN_TABLE, f as SpawnError, on as spawnSession, p as WORKER_ACCESS, qt as realSpawnDeps, tn as runLaunchFile, u as SPAWN_CLIS } from "./dist-1k5b8UGF.js";
2
+ import { A as runRelay, I as runAccount, L as runLogin, M as runDaemon, P as VERSION, R as runLogout, b as workerAccessLine, i as runDoctor, k as runDevices, m as runSetup, p as runInit, t as runUninstall } from "./uninstall-CQoGVhp3.js";
3
+ import { a as parseFlags, i as commandHelp, n as COMMANDS, r as COMMAND_NAMES, t as ALL_COMMAND_NAMES } from "./args-DmUsbNu9.js";
4
+ import { t as daemonProblem } from "./daemonError-CUE_dVn-.js";
5
5
  import { chmod, mkdir, writeFile } from "node:fs/promises";
6
6
  import { join, resolve } from "node:path";
7
7
  import { a as fail, c as plural, d as warnBlock, n as cmd, r as columns, s as plainError, t as closest, u as tilde } from "./fmt-C2SsP5Y0.js";
8
- import { t as runHook } from "./hook-ByduyOom.js";
8
+ import { t as runHook } from "./hook-mvifUk0K.js";
9
9
  import { n as connectOpts, t as adapterEnv } from "./ctx-tYftvhz_.js";
10
- import { t as findSession } from "./pick-BmZuv9yQ.js";
10
+ import { t as findSession } from "./pick-ClIK4l8K.js";
11
11
  import { readFileSync } from "node:fs";
12
- // src/version.ts
13
- const VERSION = "0.2.0-rc.12";
14
12
  // src/errorLog.ts
15
13
  /** The message of an unexpected error, as it is. Not the softened text `plainError` gives. */
16
14
  function rawMessage(e) {
@@ -98,7 +96,10 @@ async function runLead(ctx, argv) {
98
96
  exit: 1,
99
97
  ref: "e_session"
100
98
  });
101
- await client["orchestrator.claim"]({ sessionId: found.id });
99
+ await client["orchestrator.claim"]({
100
+ sessionId: found.id,
101
+ via: "cli"
102
+ });
102
103
  ctx.out(`${t.status("ok")} ${t.bold(found.name)} is the lead now.\n`);
103
104
  return 0;
104
105
  } catch (e) {
@@ -248,6 +249,13 @@ async function runSpawn(ctx, argv) {
248
249
  const t = ctx.theme;
249
250
  const spec = COMMANDS.find((c) => c.name === "spawn");
250
251
  if (!spec) return 2;
252
+ if (argv.slice(0, argv.indexOf("--") === -1 ? void 0 : argv.indexOf("--")).some((a) => a === "--allow" || a.startsWith("--allow="))) return fail(ctx, {
253
+ what: "--allow was removed",
254
+ detail: ["Use --access read, edit or full."],
255
+ fix: `Run ${cmd(ctx.theme, "conveno spawn --help")} to see the options.`,
256
+ exit: 2,
257
+ ref: "e_usage"
258
+ });
251
259
  const parsed = parseFlags(ctx, spec, argv);
252
260
  if (typeof parsed === "number") return parsed;
253
261
  const help = `Run ${cmd(t, "conveno spawn --help")} to see the options.`;
@@ -280,9 +288,16 @@ async function runSpawn(ctx, argv) {
280
288
  if (typeof text === "number") return text;
281
289
  task = text;
282
290
  }
291
+ const accessFlag = str("access");
292
+ const access = accessFlag === void 0 ? void 0 : parseWorkerAccess(accessFlag);
293
+ if (accessFlag !== void 0 && access === void 0) return fail(ctx, {
294
+ what: `"${accessFlag}" is not an access preset`,
295
+ detail: [`Use one of: ${WORKER_ACCESS.join(", ")}.`],
296
+ fix: help,
297
+ exit: 2,
298
+ ref: "e_usage"
299
+ });
283
300
  const window = parsed.values.window === true;
284
- const allowFlag = str("allow");
285
- const allow = allowFlag === void 0 ? void 0 : [allowFlag];
286
301
  const yes = parsed.values.yes === true;
287
302
  const adapter = ctx.adapters.find((a) => a.cli === cli);
288
303
  if (adapter && !(await adapter.detect(adapterEnv(ctx))).installed) return fail(ctx, {
@@ -320,7 +335,7 @@ async function runSpawn(ctx, argv) {
320
335
  });
321
336
  }
322
337
  try {
323
- const { hostPid } = await ctx.ancestry(2e3);
338
+ const { hostPid } = await ctx.ancestry(8e3);
324
339
  const requester = hostPid === void 0 ? void 0 : (await client["session.byHost"]({ pid: hostPid }).catch(() => void 0))?.session ?? void 0;
325
340
  const runner = ctx.spawnRunner ?? [process.execPath, process.argv[1] ?? "conveno"];
326
341
  const deps = realSpawnDeps({
@@ -338,13 +353,13 @@ async function runSpawn(ctx, argv) {
338
353
  name: str("name"),
339
354
  task,
340
355
  window,
341
- allow,
356
+ access,
342
357
  requester,
343
358
  confineToHome: false,
344
359
  onProgress: (line) => ctx.err(`${t.paint("quiet", line)}\n`)
345
360
  });
346
361
  const how = res.window ? res.terminal ?? "terminal" : "background";
347
- ctx.out(`${t.status("ok")} ${t.bold(`Started ${res.name}`)} ${t.paint("quiet", `(${res.cli}, ${how}) in ${tilde(res.cwd, ctx.home)}`)}\n`);
362
+ ctx.out(`${t.status("ok")} ${t.bold(`Started ${res.name}`)} ${t.paint("quiet", `(${res.cli}, ${how}) in ${tilde(res.cwd, ctx.home)}${requester ? ` for ${requester.name}` : ""}`)}\n`);
348
363
  if (res.task === "message") ctx.out(` The first task was sent to it as a Conveno message.\n`);
349
364
  if (!res.window) {
350
365
  ctx.out(` End it with ${cmd(t, `conveno stop ${res.name}`)}.\n`);
@@ -431,7 +446,7 @@ function renderSessions(ctx, sessions) {
431
446
  const tags = [...s.isOrchestrator ? [t.paint("entry", "lead")] : [], ...s.spawned || s.spawnedBy ? [q("spawned")] : []];
432
447
  return [
433
448
  `${st.glyph} ${t.bold(s.name)}${tags.length > 0 ? ` ${tags.join(" ")}` : ""}`,
434
- toolName(s.cli),
449
+ s.variant === "app" ? "Antigravity app" : toolName(s.cli),
435
450
  st.word,
436
451
  ...waiting ? [s.unreadCount ? String(s.unreadCount) : q("none")] : [],
437
452
  ...doing ? [s.statusText ?? ""] : []
@@ -483,6 +498,7 @@ async function runStatus(ctx, argv = []) {
483
498
  const projects = new Set(sessions.map((s) => s.repo?.root ?? s.cwd)).size;
484
499
  const relay = await (async () => client["relay.status"]({}))().catch(() => void 0);
485
500
  ctx.out(`${t.status("ok")} Conveno is running. ${plural(sessions.length, "session")} online.\n`);
501
+ ctx.out(` ${t.paint("quiet", workerAccessLine(ctx))}\n`);
486
502
  if (relay && [
487
503
  "connected",
488
504
  "connecting",
@@ -572,11 +588,11 @@ async function dispatch(name, rest, ctx) {
572
588
  case "rename": return runRename(ctx, rest);
573
589
  case "lead": return runLead(ctx, rest);
574
590
  case "spawn": return runSpawn(ctx, rest);
575
- case "acp-host": return (await import("./acp-CIzgcCp9.js")).runAcpHostCmd(ctx, rest);
576
- case "stop": return (await import("./acp-CIzgcCp9.js")).runStop(ctx, rest);
591
+ case "acp-host": return (await import("./acp-OHqthTVC.js")).runAcpHostCmd(ctx, rest);
592
+ case "stop": return (await import("./acp-OHqthTVC.js")).runStop(ctx, rest);
577
593
  case "spawn-run": return runSpawnRun(ctx, rest);
578
- case "agy-relay": return (await import("./agy-relay-Y9o-Pw9U.js")).runAgyRelay(ctx, rest);
579
- case "watch": return (await import("./watch-CPkilo9L.js")).runWatch(ctx, rest);
594
+ case "agy-relay": return (await import("./agy-relay-DLP2H1Rj.js")).runAgyRelay(ctx, rest);
595
+ case "watch": return (await import("./watch-CaC2G2cT.js")).runWatch(ctx, rest);
580
596
  case "devices": return runDevices(ctx, rest);
581
597
  case "relay": return runRelay(ctx, rest);
582
598
  case "doctor": return runDoctor(ctx, rest);
@@ -615,7 +631,7 @@ function opensApp(env, tty = {
615
631
  async function main(argv, ctx) {
616
632
  const [command, ...rest] = argv;
617
633
  if (command === void 0 && opensApp(ctx.env)) try {
618
- return await (await import("./run-Df6vFm9n.js")).runTui(ctx);
634
+ return await (await import("./run-BYmOjvDF.js")).runTui(ctx);
619
635
  } catch (e) {
620
636
  ctx.err(`The app could not start (${rawMessage(e)}). Showing the help instead.\n`);
621
637
  ctx.out(helpText(ctx));
@@ -1,4 +1,4 @@
1
- import { Tn as SessionId } from "./dist-CRj_cuHc.js";
1
+ import { Rn as SessionId } from "./dist-1k5b8UGF.js";
2
2
  // src/pick.ts
3
3
  /** The online session a name or id means, or undefined when nothing matches. */
4
4
  async function findSession(client, text) {