very-happy-cli 0.2.115 → 0.2.117

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 (37) hide show
  1. package/dist/{AcpBackend-DEZTWZZu.mjs → AcpBackend-C4RMHt0I.mjs} +1 -1
  2. package/dist/{AcpBackend-BrZN8KM-.cjs → AcpBackend-CrbXvcgQ.cjs} +1 -1
  3. package/dist/{AcpSessionManager-DjulpKY0.cjs → AcpSessionManager-CjAVO4RX.cjs} +1 -1
  4. package/dist/{AcpSessionManager-BzP3eiOG.mjs → AcpSessionManager-Cnc8Jatl.mjs} +1 -1
  5. package/dist/{config-CMgRBQMS.mjs → config-CnA3JIUn.mjs} +2 -2
  6. package/dist/{config-BNAsx9Wg.cjs → config-O9quMfxg.cjs} +2 -2
  7. package/dist/{index-B2KfhNku.mjs → index-B0o3H6_x.mjs} +2 -2
  8. package/dist/{index-BHNEb4bc.mjs → index-BYZKuQoy.mjs} +590 -41
  9. package/dist/{index-tPXwlc_t.cjs → index-DcESl4cI.cjs} +601 -43
  10. package/dist/{index-CpGR7rIw.mjs → index-DiRN0Rv8.mjs} +78 -8
  11. package/dist/{index-B3UkbonP.cjs → index-DqmVH6R5.cjs} +2 -2
  12. package/dist/{index-ClR0jhjm.cjs → index-W-O4xR_O.cjs} +77 -7
  13. package/dist/index.cjs +2 -2
  14. package/dist/index.mjs +2 -2
  15. package/dist/{installTerminalHooks-DD6QuHfT.mjs → installTerminalHooks-DeYqyjCB.mjs} +2 -2
  16. package/dist/{installTerminalHooks-CWfCF68p.cjs → installTerminalHooks-zfsWSotO.cjs} +2 -2
  17. package/dist/lib.cjs +1 -1
  18. package/dist/lib.d.cts +66 -1
  19. package/dist/lib.d.mts +66 -1
  20. package/dist/lib.mjs +1 -1
  21. package/dist/{mcp-CiNrjYox.mjs → mcp-D_5aOK0I.mjs} +62 -17
  22. package/dist/{mcp-CqjiDRnG.cjs → mcp-nYqC4FYm.cjs} +62 -16
  23. package/dist/{runGemini-DdJqpywr.mjs → runGemini-CEURRmM4.mjs} +4 -4
  24. package/dist/{runGemini-UN5IznJp.cjs → runGemini-DYf3ntib.cjs} +4 -4
  25. package/dist/{runOpenClaw-CM5UrVBy.mjs → runOpenClaw-BozfKWng.mjs} +3 -3
  26. package/dist/{runOpenClaw-9hhfGllZ.cjs → runOpenClaw-CNKjAw-H.cjs} +3 -3
  27. package/dist/{send-CnVtXOj0.cjs → send-BZLhRZb-.cjs} +2 -2
  28. package/dist/{send-C6G2jsQp.mjs → send-CYznZGrp.mjs} +2 -2
  29. package/dist/sessions-DYPB3Peg.mjs +317 -0
  30. package/dist/sessions-YWt9YEN8.cjs +322 -0
  31. package/dist/{spawn-qb344Y5E.mjs → spawn-CsrHZd3y.mjs} +3 -4
  32. package/dist/{spawn-CfYddkS_.cjs → spawn-tSvo3stN.cjs} +6 -7
  33. package/dist/{types-CpnzfHHS.cjs → types-DD3AK6Nb.cjs} +189 -26
  34. package/dist/{types-B3qx8Ga1.mjs → types-jSfU_0o1.mjs} +187 -26
  35. package/package.json +7 -7
  36. package/dist/sessions-CGdcF05T.cjs +0 -204
  37. package/dist/sessions-CmabJzYS.mjs +0 -200
@@ -0,0 +1,322 @@
1
+ 'use strict';
2
+
3
+ var chalk = require('chalk');
4
+ var index = require('./index-DcESl4cI.cjs');
5
+ var persistence = require('./types-DD3AK6Nb.cjs');
6
+ require('node:os');
7
+ require('node:crypto');
8
+ require('cross-spawn');
9
+ require('node:path');
10
+ require('node:readline');
11
+ require('node:fs');
12
+ require('./agentGuidance-BifkGXdE.cjs');
13
+ require('node:fs/promises');
14
+ require('fs/promises');
15
+ require('ink');
16
+ require('react');
17
+ require('@anthropic-ai/claude-agent-sdk');
18
+ require('axios');
19
+ require('node:events');
20
+ require('socket.io-client');
21
+ require('tweetnacl');
22
+ require('os');
23
+ require('child_process');
24
+ require('@paralleldrive/cuid2');
25
+ require('node:child_process');
26
+ require('fs');
27
+ require('path');
28
+ require('@anthropic-ai/sandbox-runtime');
29
+ require('expo-server-sdk');
30
+ require('crypto');
31
+ require('ps-list');
32
+ require('tmp');
33
+ require('open');
34
+ require('fastify');
35
+ require('zod');
36
+ require('fastify-type-provider-zod');
37
+ require('node:module');
38
+ require('@modelcontextprotocol/sdk/server/mcp.js');
39
+ require('node:http');
40
+ require('@modelcontextprotocol/sdk/server/streamableHttp.js');
41
+ require('./limits-KdWKmwtH.cjs');
42
+ require('http');
43
+ require('util');
44
+ require('inquirer');
45
+ require('node:url');
46
+ require('node:readline/promises');
47
+ require('node:util');
48
+ require('url');
49
+ require('node-pty');
50
+
51
+ const ACTIONS = ["list", "read", "stop", "archive", "approve", "deny"];
52
+ const ACTIONS_NEEDING_ID = /* @__PURE__ */ new Set(["read", "stop", "archive", "approve", "deny"]);
53
+ const ACTIONS_NEEDING_REQUEST_ID = /* @__PURE__ */ new Set(["approve", "deny"]);
54
+ const REQUEST_ID_RE = /^[a-zA-Z0-9_.:-]{1,128}$/;
55
+ function defaultOptions() {
56
+ return { action: "help", all: false, includeArchived: false, forSession: false, json: false };
57
+ }
58
+ function parseSessionsArgs(args) {
59
+ const options = defaultOptions();
60
+ let actionSeen = false;
61
+ const positionals = [];
62
+ for (let i = 0; i < args.length; i++) {
63
+ const arg = args[i];
64
+ if (arg === "--help" || arg === "-h") {
65
+ return defaultOptions();
66
+ } else if (arg === "--json") {
67
+ options.json = true;
68
+ } else if (arg === "--all") {
69
+ options.all = true;
70
+ } else if (arg === "--include-archived") {
71
+ options.includeArchived = true;
72
+ } else if (arg === "--for-session") {
73
+ options.forSession = true;
74
+ } else if (arg === "--reason") {
75
+ const value = args[++i];
76
+ if (value === void 0) throw new Error("--reason requires a value");
77
+ options.reason = value;
78
+ } else if (arg === "--tag") {
79
+ const value = args[++i];
80
+ if (value === void 0) throw new Error("--tag requires a value");
81
+ options.tag = value;
82
+ } else if (arg === "--limit") {
83
+ const value = args[++i];
84
+ if (value === void 0) throw new Error("--limit requires a value");
85
+ const parsed = Number(value);
86
+ if (!Number.isInteger(parsed) || parsed < 1) throw new Error("--limit must be a positive integer");
87
+ options.limit = parsed;
88
+ } else if (arg.startsWith("-")) {
89
+ throw new Error(`Unknown argument: ${arg}`);
90
+ } else if (!actionSeen) {
91
+ if (!ACTIONS.includes(arg)) {
92
+ throw new Error(`Unknown action: ${arg} (expected ${ACTIONS.join(", ")})`);
93
+ }
94
+ options.action = arg;
95
+ actionSeen = true;
96
+ } else {
97
+ positionals.push(arg);
98
+ }
99
+ }
100
+ if (!actionSeen) return defaultOptions();
101
+ const expectedPositionals = ACTIONS_NEEDING_REQUEST_ID.has(options.action) ? 2 : ACTIONS_NEEDING_ID.has(options.action) ? 1 : 0;
102
+ if (positionals.length > expectedPositionals) {
103
+ throw new Error(`Unexpected ${expectedPositionals > 0 ? "extra " : ""}argument: ${positionals[expectedPositionals]}`);
104
+ }
105
+ if (ACTIONS_NEEDING_ID.has(options.action)) {
106
+ const id = positionals[0];
107
+ if (id === void 0) throw new Error(`${options.action} requires a session id`);
108
+ if (!persistence.isValidSessionId(id)) throw new Error(`Invalid session id: ${id}`);
109
+ options.sessionId = id;
110
+ }
111
+ if (ACTIONS_NEEDING_REQUEST_ID.has(options.action)) {
112
+ const requestId = positionals[1];
113
+ if (requestId === void 0) throw new Error(`${options.action} requires a session id and a request id`);
114
+ if (!REQUEST_ID_RE.test(requestId)) throw new Error(`Invalid request id: ${requestId}`);
115
+ options.requestId = requestId;
116
+ }
117
+ if (options.action !== "list") {
118
+ if (options.tag !== void 0) throw new Error("--tag only applies to `sessions list`");
119
+ if (options.all) throw new Error("--all only applies to `sessions list`");
120
+ if (options.includeArchived) throw new Error("--include-archived only applies to `sessions list --all`");
121
+ } else if (options.includeArchived && !options.all) {
122
+ throw new Error("--include-archived only applies to `sessions list --all`");
123
+ }
124
+ if (options.forSession && options.action !== "approve") throw new Error("--for-session only applies to `sessions approve`");
125
+ if (options.reason !== void 0 && options.action !== "deny") throw new Error("--reason only applies to `sessions deny`");
126
+ return options;
127
+ }
128
+ const SESSIONS_HELP = `
129
+ ${chalk.bold("very-happy sessions")} - Inspect and control sessions on this machine (for automation)
130
+
131
+ ${chalk.bold("Usage:")}
132
+ very-happy sessions list [--all [--include-archived]] [--tag <name>] [--limit <n>] [--json]
133
+ very-happy sessions read <id> [--limit <n>] [--json]
134
+ very-happy sessions stop <id> [--json]
135
+ very-happy sessions archive <id> [--json]
136
+ very-happy sessions approve <id> <requestId> [--for-session] [--json]
137
+ very-happy sessions deny <id> <requestId> [--reason <text>] [--json]
138
+
139
+ ${chalk.bold("Actions:")}
140
+ list Running sessions plus recently seen ones, newest first.
141
+ With --all: every session on the account (newest 150, server
142
+ REST), attention first. Each row says whether this machine could
143
+ decrypt it (\`decryptable\`); rows from other machines show only
144
+ id / active / archived / timestamps / url.
145
+ read The tail of a session as a role-tagged transcript.
146
+ stop SIGTERM the session's process via the local daemon.
147
+ archive Mark the session inactive server-side (it stays resumable).
148
+ approve Answer a pending permission request \`requestId\` with approve \u2014
149
+ the same RPC the web permission card sends. --for-session makes
150
+ it \`approved_for_session\` (the card's "allow for this session").
151
+ deny Answer it with deny (optional --reason is shown to the agent).
152
+
153
+ ${chalk.bold("Options:")}
154
+ --all list only: account-wide over REST instead of this
155
+ machine's daemon + local keys.
156
+ --include-archived list --all only: also show server-archived rows.
157
+ --tag <name> list only: keep sessions carrying this origin tag (see
158
+ \`spawn --spawned-by\`). With --all only decryptable rows
159
+ can match.
160
+ --limit <n> list: how many NOT-running / not-attention sessions to
161
+ include (default ${index.DEFAULT_RECENT_LIMIT}; running and attention rows are
162
+ never cut). read: how many messages (default 20, max ${index.MAX_READ_LIMIT}).
163
+ --for-session approve only: approved_for_session instead of approved.
164
+ --reason <text> deny only: reason forwarded to the wrapper.
165
+ --json Machine-readable output.
166
+ -h, --help Show this help
167
+
168
+ ${chalk.bold("Scope:")}
169
+ read / approve / deny need the session key from ~/.happy/sessions.json,
170
+ which exists for sessions this machine's daemon spawned and is pruned after
171
+ 14 days (the message payloads and the permission RPC are encrypted with it).
172
+ \`list --all\` sees every session on the account but can only decrypt those
173
+ same ones; the rest come back with decryptable=false. Reading, listing in
174
+ full and answering another machine's session from here needs the CLI to hold
175
+ the account content key \u2014 a credentials change, not a flag.
176
+
177
+ ${chalk.bold("Exit codes:")}
178
+ 0 success (approve/deny: the wrapper acknowledged the verdict; check
179
+ \`settled\` in --json to see whether the request has left the pending set)
180
+ 1 bad arguments, unknown session, no local key, request not pending,
181
+ session not online, or the operation failed (including \`stop\` on a
182
+ session the daemon is not running)
183
+ `;
184
+ function formatWait(ms) {
185
+ const minutes = Math.floor(ms / 6e4);
186
+ if (minutes < 1) return `${Math.floor(ms / 1e3)}s`;
187
+ if (minutes < 60) return `${minutes}m`;
188
+ return `${Math.floor(minutes / 60)}h${minutes % 60}m`;
189
+ }
190
+ function formatAccountSummaryLine(summary) {
191
+ const state = summary.attention ? "[attention]" : summary.live ? "[running here]" : summary.active ? "[active elsewhere]" : summary.archived ? "[archived]" : "[idle]";
192
+ const parts = [summary.id, state];
193
+ if (!summary.decryptable) {
194
+ parts.push("(not decryptable from this machine)");
195
+ } else {
196
+ if (summary.title) parts.push(`title="${summary.title}"`);
197
+ if (summary.flavor) parts.push(`agent=${summary.flavor}`);
198
+ if (summary.tags?.length) parts.push(`tags=${summary.tags.join(",")}`);
199
+ if (summary.variant) parts.push(`variant=${summary.variant}`);
200
+ if (summary.machineId) parts.push(`machine=${summary.machineId}`);
201
+ if (summary.cwd) parts.push(`cwd=${summary.cwd}`);
202
+ for (const request of summary.pending ?? []) {
203
+ parts.push(`pending=${request.id}:${request.tool}${request.waitingMs !== void 0 ? `(${formatWait(request.waitingMs)})` : ""}`);
204
+ }
205
+ }
206
+ parts.push(summary.url);
207
+ return parts.join(" ");
208
+ }
209
+ function permissionFailureRecord(sessionId, requestId, error) {
210
+ return { sessionId, requestId, error: error instanceof Error ? error.message : String(error) };
211
+ }
212
+ function formatSummaryLine(summary) {
213
+ const parts = [summary.id, summary.live ? "[running]" : "[not running]"];
214
+ if (summary.title) parts.push(`title="${summary.title}"`);
215
+ if (summary.flavor) parts.push(`agent=${summary.flavor}`);
216
+ if (summary.tags?.length) parts.push(`tags=${summary.tags.join(",")}`);
217
+ if (summary.variant) parts.push(`variant=${summary.variant}`);
218
+ if (summary.cwd) parts.push(`cwd=${summary.cwd}`);
219
+ if (summary.pid !== void 0) parts.push(`pid=${summary.pid}`);
220
+ parts.push(summary.url);
221
+ return parts.join(" ");
222
+ }
223
+ async function handleSessionsCommand(args) {
224
+ let options;
225
+ try {
226
+ options = parseSessionsArgs(args);
227
+ } catch (error) {
228
+ console.error(chalk.red("Error:"), error instanceof Error ? error.message : String(error));
229
+ console.error(`Run ${chalk.cyan("very-happy sessions --help")} for usage.`);
230
+ process.exit(1);
231
+ }
232
+ if (options.action === "help") {
233
+ console.log(SESSIONS_HELP);
234
+ process.exit(0);
235
+ }
236
+ try {
237
+ if (options.action === "list" && options.all) {
238
+ const sessions = await index.listAccountSessions({ tag: options.tag, recentLimit: options.limit, includeArchived: options.includeArchived });
239
+ if (options.json) {
240
+ console.log(JSON.stringify({ sessions, scope: "account" }));
241
+ } else if (sessions.length === 0) {
242
+ console.log(options.tag ? `No decryptable sessions tagged "${options.tag}" on this account.` : "No sessions found on this account.");
243
+ } else {
244
+ for (const summary of sessions) console.log(formatAccountSummaryLine(summary));
245
+ const foreign = sessions.filter((summary) => !summary.decryptable).length;
246
+ if (foreign > 0) {
247
+ console.log(chalk.dim(`${foreign} session(s) belong to another machine and cannot be decrypted here (no local key).`));
248
+ }
249
+ }
250
+ process.exit(0);
251
+ }
252
+ if (options.action === "list") {
253
+ const sessions = await index.listSessions({ tag: options.tag, recentLimit: options.limit });
254
+ if (options.json) {
255
+ console.log(JSON.stringify({ sessions }));
256
+ } else if (sessions.length === 0) {
257
+ console.log(options.tag ? `No sessions tagged "${options.tag}" on this machine.` : "No sessions found on this machine.");
258
+ } else {
259
+ for (const summary of sessions) console.log(formatSummaryLine(summary));
260
+ }
261
+ process.exit(0);
262
+ }
263
+ const sessionId = options.sessionId;
264
+ if (options.action === "read") {
265
+ const result = await index.readSessionTranscript(sessionId, options.limit ?? 20);
266
+ if (options.json) {
267
+ console.log(JSON.stringify(result));
268
+ } else {
269
+ console.log(formatSummaryLine(result.summary));
270
+ console.log(`--- last ${result.messageCount} message(s) ---`);
271
+ console.log(result.transcript.length > 0 ? result.transcript : "(no readable conversation content in this range)");
272
+ }
273
+ process.exit(0);
274
+ }
275
+ if (options.action === "stop") {
276
+ const stopped = await index.stopSession(sessionId);
277
+ if (!stopped) {
278
+ if (options.json) console.log(JSON.stringify({ sessionId, stopped: false }));
279
+ console.error(chalk.red("Error:"), `Session ${sessionId} is not among the daemon's running sessions.`);
280
+ process.exit(1);
281
+ }
282
+ if (options.json) console.log(JSON.stringify({ sessionId, stopped: true }));
283
+ else console.log(`Stopped ${sessionId}`);
284
+ process.exit(0);
285
+ }
286
+ if (options.action === "approve" || options.action === "deny") {
287
+ const requestId = options.requestId;
288
+ const verdict = options.action === "approve" ? { kind: "approve", forSession: options.forSession } : { kind: "deny", reason: options.reason };
289
+ let result;
290
+ try {
291
+ result = await index.resolvePermissionRequest(sessionId, requestId, verdict);
292
+ } catch (error) {
293
+ if (options.json) console.log(JSON.stringify(permissionFailureRecord(sessionId, requestId, error)));
294
+ throw error;
295
+ }
296
+ if (result.outcome.status !== "acknowledged") {
297
+ if (options.json) console.log(JSON.stringify(result));
298
+ console.error(chalk.red("Error:"), `${options.action} of ${requestId} on ${sessionId} was not delivered (${result.outcome.status}): ${result.outcome.message}`);
299
+ process.exit(1);
300
+ }
301
+ if (options.json) {
302
+ console.log(JSON.stringify(result));
303
+ } else {
304
+ const verb = options.action === "approve" ? "Approved" : "Denied";
305
+ console.log(`${verb} ${requestId} on ${sessionId} (${result.payload.decision})${result.settled ? "" : " \u2014 wrapper acknowledged, but the request was still listed as pending when we stopped waiting"}`);
306
+ }
307
+ process.exit(0);
308
+ }
309
+ await index.archiveSession(sessionId);
310
+ if (options.json) console.log(JSON.stringify({ sessionId, archived: true }));
311
+ else console.log(`Archived ${sessionId}`);
312
+ process.exit(0);
313
+ } catch (error) {
314
+ console.error(chalk.red("Error:"), error instanceof Error ? error.message : String(error));
315
+ process.exit(1);
316
+ }
317
+ }
318
+
319
+ exports.SESSIONS_HELP = SESSIONS_HELP;
320
+ exports.handleSessionsCommand = handleSessionsCommand;
321
+ exports.parseSessionsArgs = parseSessionsArgs;
322
+ exports.permissionFailureRecord = permissionFailureRecord;
@@ -1,8 +1,8 @@
1
1
  import chalk from 'chalk';
2
2
  import { readFileSync, statSync } from 'node:fs';
3
3
  import { resolve } from 'node:path';
4
- import { c as checkIfDaemonRunningAndCleanupStaleState, s as spawnDaemonSession, a as sessionWebUrl, i as isValidSpawnOrigin, b as sanitizeSpawnPermissionMode, A as ALLOWED_SPAWN_PERMISSION_MODES, w as waitForSessionKey, d as sendUserMessage } from './index-BHNEb4bc.mjs';
5
- import { l as logger } from './types-B3qx8Ga1.mjs';
4
+ import { c as checkIfDaemonRunningAndCleanupStaleState, s as spawnDaemonSession, a as sessionWebUrl, i as isValidSpawnOrigin, b as sanitizeSpawnPermissionMode, A as ALLOWED_SPAWN_PERMISSION_MODES, S as SPAWN_AGENTS, w as waitForSessionKey, d as sendUserMessage } from './index-BYZKuQoy.mjs';
5
+ import { l as logger } from './types-jSfU_0o1.mjs';
6
6
  import 'node:os';
7
7
  import 'node:crypto';
8
8
  import 'cross-spawn';
@@ -46,7 +46,6 @@ import 'node:util';
46
46
  import 'url';
47
47
  import 'node-pty';
48
48
 
49
- const SPAWN_AGENTS = ["claude", "codex", "gemini", "openclaw"];
50
49
  function parseEnvAssignment(raw) {
51
50
  const eq = raw.indexOf("=");
52
51
  if (eq <= 0) throw new Error(`--env expects KEY=VALUE, got: ${raw}`);
@@ -132,7 +131,7 @@ ${chalk.bold("Options:")}
132
131
  to approve \u2014 if nothing is watching, it just hangs.
133
132
  Unattended dispatchers want bypassPermissions.
134
133
  --agent <name> Backend to run: claude (default), codex, gemini,
135
- openclaw.
134
+ openclaw, pi (needs pi-acp on the daemon's PATH).
136
135
  --env KEY=VALUE Extra environment for the session process. Repeatable.
137
136
  \${VAR} is expanded against the daemon's environment;
138
137
  an unresolved reference fails the spawn.
@@ -3,8 +3,8 @@
3
3
  var chalk = require('chalk');
4
4
  var node_fs = require('node:fs');
5
5
  var path = require('node:path');
6
- var index = require('./index-tPXwlc_t.cjs');
7
- var persistence = require('./types-CpnzfHHS.cjs');
6
+ var index = require('./index-DcESl4cI.cjs');
7
+ var persistence = require('./types-DD3AK6Nb.cjs');
8
8
  require('node:os');
9
9
  require('node:crypto');
10
10
  require('cross-spawn');
@@ -48,7 +48,6 @@ require('node:util');
48
48
  require('url');
49
49
  require('node-pty');
50
50
 
51
- const SPAWN_AGENTS = ["claude", "codex", "gemini", "openclaw"];
52
51
  function parseEnvAssignment(raw) {
53
52
  const eq = raw.indexOf("=");
54
53
  if (eq <= 0) throw new Error(`--env expects KEY=VALUE, got: ${raw}`);
@@ -89,8 +88,8 @@ function parseSpawnArgs(args) {
89
88
  } else if (arg === "--agent") {
90
89
  const value = args[++i];
91
90
  if (value === void 0) throw new Error("--agent requires a value");
92
- if (!SPAWN_AGENTS.includes(value)) {
93
- throw new Error(`--agent must be one of: ${SPAWN_AGENTS.join(", ")}`);
91
+ if (!index.SPAWN_AGENTS.includes(value)) {
92
+ throw new Error(`--agent must be one of: ${index.SPAWN_AGENTS.join(", ")}`);
94
93
  }
95
94
  options.agent = value;
96
95
  } else if (arg === "--env") {
@@ -134,7 +133,7 @@ ${chalk.bold("Options:")}
134
133
  to approve \u2014 if nothing is watching, it just hangs.
135
134
  Unattended dispatchers want bypassPermissions.
136
135
  --agent <name> Backend to run: claude (default), codex, gemini,
137
- openclaw.
136
+ openclaw, pi (needs pi-acp on the daemon's PATH).
138
137
  --env KEY=VALUE Extra environment for the session process. Repeatable.
139
138
  \${VAR} is expanded against the daemon's environment;
140
139
  an unresolved reference fails the spawn.
@@ -257,8 +256,8 @@ async function handleSpawnCommand(args) {
257
256
  process.exit(0);
258
257
  }
259
258
 
259
+ exports.SPAWN_AGENTS = index.SPAWN_AGENTS;
260
260
  exports.sessionWebUrl = index.sessionWebUrl;
261
- exports.SPAWN_AGENTS = SPAWN_AGENTS;
262
261
  exports.handleSpawnCommand = handleSpawnCommand;
263
262
  exports.parseEnvAssignment = parseEnvAssignment;
264
263
  exports.parseSpawnArgs = parseSpawnArgs;