@cloop/runner 0.3.50 → 0.3.51

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,8 +1,8 @@
1
1
  #!/usr/bin/env node
2
2
  import {
3
3
  serveTakeovers
4
- } from "./chunk-YQPEI7JQ.js";
5
- import "./chunk-U2WMOXXK.js";
4
+ } from "./chunk-HKBCXZEN.js";
5
+ import "./chunk-AJYEMEDD.js";
6
6
  import {
7
7
  CAPTURE_TICK_MS,
8
8
  DEFAULT_FALLBACK_MODEL,
@@ -39,7 +39,7 @@ import {
39
39
  systemServices,
40
40
  unitFor,
41
41
  which
42
- } from "./chunk-C5AX6WHQ.js";
42
+ } from "./chunk-32QS7Z6O.js";
43
43
  import {
44
44
  MeshSocket,
45
45
  WAKE_TICK_MS,
@@ -57,7 +57,7 @@ import {
57
57
  runnerStatePath,
58
58
  threadsFilePath,
59
59
  writeRunnerState
60
- } from "./chunk-QVN7U4PK.js";
60
+ } from "./chunk-GKF42NV7.js";
61
61
  import {
62
62
  BackgroundReading,
63
63
  BoxToolError,
@@ -106,20 +106,20 @@ import {
106
106
  utcWindow,
107
107
  windowsPowerShellEnv,
108
108
  writeBoxConfig
109
- } from "./chunk-E2FGYM4K.js";
109
+ } from "./chunk-JZEKIGZK.js";
110
110
  import "./chunk-VK6GV757.js";
111
111
  import {
112
112
  olderThan
113
113
  } from "./chunk-365HFCQQ.js";
114
114
  import "./chunk-PKIEWBR7.js";
115
- import "./chunk-KMNIEPH4.js";
116
- import "./chunk-I3IX5CWA.js";
115
+ import "./chunk-4GIAU7FP.js";
116
+ import "./chunk-JJHU3MCK.js";
117
117
  import {
118
118
  getMachine
119
119
  } from "./chunk-SBYSVZ7J.js";
120
120
  import {
121
121
  VERSION
122
- } from "./chunk-BQAW4SH3.js";
122
+ } from "./chunk-4QA7C2HC.js";
123
123
  import {
124
124
  getMeshUrl,
125
125
  getOrigin,
@@ -9,7 +9,7 @@ import {
9
9
  readRunnerState,
10
10
  runnerStatePath,
11
11
  threadsFilePath
12
- } from "./chunk-QVN7U4PK.js";
12
+ } from "./chunk-GKF42NV7.js";
13
13
  import {
14
14
  BoxToolError,
15
15
  CLOOP_THREAD_PREFIX,
@@ -49,7 +49,7 @@ import {
49
49
  windowsExecutable,
50
50
  windowsPowerShellEnv,
51
51
  writeBoxConfig
52
- } from "./chunk-E2FGYM4K.js";
52
+ } from "./chunk-JZEKIGZK.js";
53
53
  import {
54
54
  CLAUDE_FLOOR,
55
55
  CODEX_FLOOR,
@@ -63,14 +63,14 @@ import {
63
63
  } from "./chunk-PKIEWBR7.js";
64
64
  import {
65
65
  connectWebhook
66
- } from "./chunk-KMNIEPH4.js";
66
+ } from "./chunk-4GIAU7FP.js";
67
67
  import {
68
68
  ConnectFailure,
69
69
  connectReport,
70
70
  deviceLogin,
71
71
  newAttempt,
72
72
  sendConnectReport
73
- } from "./chunk-I3IX5CWA.js";
73
+ } from "./chunk-JJHU3MCK.js";
74
74
  import {
75
75
  defaultDeviceName,
76
76
  getMachine,
@@ -78,7 +78,7 @@ import {
78
78
  } from "./chunk-SBYSVZ7J.js";
79
79
  import {
80
80
  VERSION
81
- } from "./chunk-BQAW4SH3.js";
81
+ } from "./chunk-4QA7C2HC.js";
82
82
  import {
83
83
  STAGING_ORIGIN,
84
84
  getOrigin,
@@ -1153,6 +1153,40 @@ function taskAction(tool, input) {
1153
1153
  }
1154
1154
  return null;
1155
1155
  }
1156
+ var NONE = { kind: "none" };
1157
+ var ONCE = { kind: "once" };
1158
+ function pullRequest(input) {
1159
+ if (typeof input.url === "string") return input.url.match(PR_URL)?.[0] ?? str(input.url);
1160
+ const repo = str(input.repository);
1161
+ const number = input.number;
1162
+ return repo && (typeof number === "number" || typeof number === "string") ? `https://github.com/${repo}/pull/${number}` : void 0;
1163
+ }
1164
+ function background(input) {
1165
+ return input.run_in_background === true ? ONCE : NONE;
1166
+ }
1167
+ var WAKE_TOOLS = {
1168
+ t3_background_wait: () => ONCE,
1169
+ watch_pull_request: (input) => {
1170
+ const url = pullRequest(input);
1171
+ return url ? { kind: "watch", url } : NONE;
1172
+ },
1173
+ unwatch_pull_request: (input) => {
1174
+ const url = pullRequest(input);
1175
+ return url ? { kind: "unwatch", url } : NONE;
1176
+ },
1177
+ // `{ stop: true }` ends a /loop: it cancels the wakeup instead.
1178
+ ScheduleWakeup: (input) => input.stop === true ? NONE : ONCE,
1179
+ Monitor: () => ONCE,
1180
+ Bash: background,
1181
+ Agent: background
1182
+ };
1183
+ function toolWake(name, input) {
1184
+ const short = name.split("__").at(-1);
1185
+ if (!Object.hasOwn(WAKE_TOOLS, short)) return NONE;
1186
+ return WAKE_TOOLS[short](
1187
+ isRecord(input) ? input : {}
1188
+ );
1189
+ }
1156
1190
  function isRecord(value) {
1157
1191
  return typeof value === "object" && value !== null && !Array.isArray(value);
1158
1192
  }
@@ -1238,17 +1272,20 @@ function assistantSignals(r, at) {
1238
1272
  const message = isRecord(r.message) ? r.message : {};
1239
1273
  const blocks = Array.isArray(message.content) ? message.content.filter(isRecord) : [];
1240
1274
  const text = blocks.filter((b) => b.type === "text" && typeof b.text === "string").map((b) => b.text).join("\n\n").trim();
1275
+ const uses = blocks.filter((b) => b.type === "tool_use");
1241
1276
  const actions = [
1242
- ...blocks.filter((b) => b.type === "tool_use").map(toolAction).filter((a) => a !== null),
1277
+ ...uses.map(toolAction).filter((a) => a !== null),
1243
1278
  ...foundActions(text)
1244
1279
  ];
1280
+ const calls = uses.map((b) => toolWake(str(b.name) ?? "", b.input));
1245
1281
  const signals = [];
1246
- if (text || actions.length)
1282
+ if (text || actions.length || calls.length)
1247
1283
  signals.push({
1248
1284
  kind: "agent",
1249
1285
  at,
1250
1286
  ...text ? { text } : {},
1251
- ...actions.length ? { actions } : {}
1287
+ ...actions.length ? { actions } : {},
1288
+ ...calls.length ? { calls } : {}
1252
1289
  });
1253
1290
  const stop = message.stop_reason;
1254
1291
  if (text && (stop === "end_turn" || stop === "stop_sequence")) signals.push({ kind: "end", at });
@@ -1380,6 +1417,12 @@ function mcpTaskAction(call) {
1380
1417
  const action = taskAction(tool, args);
1381
1418
  return action ? [action] : [];
1382
1419
  }
1420
+ function mcpWake(call) {
1421
+ return toolWake(
1422
+ str(call.tool) ?? "",
1423
+ typeof call.arguments === "string" ? parseArgs(call.arguments) : call.arguments
1424
+ );
1425
+ }
1383
1426
  function parseArgs(raw) {
1384
1427
  if (typeof raw !== "string") return {};
1385
1428
  try {
@@ -1434,8 +1477,8 @@ function itemActions(item) {
1434
1477
  }
1435
1478
  return [];
1436
1479
  }
1437
- function agent(at, actions) {
1438
- return actions.length ? [{ kind: "agent", at, actions }] : [];
1480
+ function agent(at, actions, calls = []) {
1481
+ return actions.length || calls.length ? [{ kind: "agent", at, actions, ...calls.length ? { calls } : {} }] : [];
1439
1482
  }
1440
1483
  function responseItem(r, p, at) {
1441
1484
  switch (p.type) {
@@ -1453,7 +1496,7 @@ function responseItem(r, p, at) {
1453
1496
  case "function_call":
1454
1497
  case "custom_tool_call":
1455
1498
  case "local_shell_call":
1456
- return agent(at, callActions(p));
1499
+ return agent(at, callActions(p), [toolWake(str(p.name) ?? "", parseArgs(p.arguments))]);
1457
1500
  case "function_call_output":
1458
1501
  case "custom_tool_call_output":
1459
1502
  return agent(at, foundActions(outputText(p.output)));
@@ -1467,11 +1510,12 @@ function eventMsg(p, at) {
1467
1510
  case "turn_aborted":
1468
1511
  return [{ kind: "end", at }];
1469
1512
  case "mcp_tool_call_end":
1470
- return isRecord(p.invocation) ? agent(at, mcpTaskAction(p.invocation)) : [];
1513
+ return isRecord(p.invocation) ? agent(at, mcpTaskAction(p.invocation), [mcpWake(p.invocation)]) : [];
1471
1514
  case "patch_apply_end":
1472
1515
  return agent(at, changedPaths(p.changes));
1473
1516
  case "item_completed":
1474
- return isRecord(p.item) ? agent(at, itemActions(p.item)) : [];
1517
+ if (!isRecord(p.item)) return [];
1518
+ return agent(at, itemActions(p.item), p.item.type === "McpToolCall" ? [mcpWake(p.item)] : []);
1475
1519
  default:
1476
1520
  return [];
1477
1521
  }
@@ -1804,6 +1848,12 @@ function addAction(turn, action) {
1804
1848
  const key = JSON.stringify(action);
1805
1849
  if (!turn.actions.some((a) => JSON.stringify(a) === key)) turn.actions.push(action);
1806
1850
  }
1851
+ function follow(cursor, call) {
1852
+ cursor.wakeArmed = call.kind === "once";
1853
+ if (call.kind !== "watch" && call.kind !== "unwatch") return;
1854
+ const others = (cursor.watching ?? []).filter((url) => url !== call.url);
1855
+ cursor.watching = call.kind === "watch" ? [...others, call.url] : others;
1856
+ }
1807
1857
  function fold(cursor, signals, out2) {
1808
1858
  for (const signal of signals) {
1809
1859
  switch (signal.kind) {
@@ -1818,6 +1868,7 @@ function fold(cursor, signals, out2) {
1818
1868
  break;
1819
1869
  case "owner":
1820
1870
  cursor.live = { at: signal.at, state: "working" };
1871
+ cursor.wakeArmed = false;
1821
1872
  cursor.ownerTurns++;
1822
1873
  if (cursor.ownerTurns === 1 && CLOOP_OPENERS.some((o) => signal.text.startsWith(o))) {
1823
1874
  cursor.verdict = "cloop";
@@ -1838,6 +1889,8 @@ function fold(cursor, signals, out2) {
1838
1889
  });
1839
1890
  break;
1840
1891
  case "agent": {
1892
+ for (const call of signal.calls ?? []) follow(cursor, call);
1893
+ if (!signal.text && !signal.actions?.length) break;
1841
1894
  cursor.live = { at: signal.at, state: "working" };
1842
1895
  if (cursor.verdict !== "owner") break;
1843
1896
  if (!cursor.open) cursor.open = { seq: cursor.seq++, at: signal.at, text: "", actions: [] };
@@ -1853,7 +1906,9 @@ ${said}` : said);
1853
1906
  }
1854
1907
  case "end": {
1855
1908
  const at = signal.at ?? cursor.live?.at;
1856
- if (at) cursor.live = { at, state: "your_turn" };
1909
+ const waits = cursor.wakeArmed || (cursor.watching?.length ?? 0) > 0;
1910
+ if (at) cursor.live = { at, state: waits ? "waiting" : "your_turn" };
1911
+ cursor.wakeArmed = false;
1857
1912
  if (cursor.verdict === "owner") close(cursor, out2);
1858
1913
  break;
1859
1914
  }
@@ -2502,7 +2557,7 @@ async function connectBox(steps) {
2502
2557
  steps.writeBoxConfig(cfg);
2503
2558
  return cfg;
2504
2559
  }
2505
- var NONE = "No coding agent found on this machine. Install Claude Code or the ChatGPT desktop app, sign in, then run `cloop connect` again.";
2560
+ var NONE2 = "No coding agent found on this machine. Install Claude Code or the ChatGPT desktop app, sign in, then run `cloop connect` again.";
2506
2561
  var SIGNED_OUT = {
2507
2562
  "claude-code": "Claude Code is installed but not signed in. Run `claude` once and sign in, then run `cloop connect` again.",
2508
2563
  codex: "Codex is installed but not signed in. Run `codex login`, then run `cloop connect` again."
@@ -2528,7 +2583,7 @@ function chooseDriver(found, forced, workstation = false) {
2528
2583
  if (found.codex?.signedIn) return local("codex");
2529
2584
  if (found.claude) return local("claude-code");
2530
2585
  if (found.codex) return local("codex");
2531
- return { ok: false, code: "no_harness", line: NONE };
2586
+ return { ok: false, code: "no_harness", line: NONE2 };
2532
2587
  }
2533
2588
  var HARNESS_NAME = {
2534
2589
  "claude-code": "Claude Code",
@@ -2,7 +2,7 @@
2
2
  import {
3
3
  ConnectFailure,
4
4
  deviceLogin
5
- } from "./chunk-I3IX5CWA.js";
5
+ } from "./chunk-JJHU3MCK.js";
6
6
  import {
7
7
  ApiError,
8
8
  ReauthError,
@@ -1,7 +1,7 @@
1
1
  #!/usr/bin/env node
2
2
 
3
3
  // src/version.ts
4
- var VERSION = true ? "0.3.50" : "0.0.0-dev";
4
+ var VERSION = true ? "0.3.51" : "0.0.0-dev";
5
5
 
6
6
  export {
7
7
  VERSION
@@ -9,7 +9,7 @@ import {
9
9
  runHarness,
10
10
  runLogDir,
11
11
  runLogPath
12
- } from "./chunk-E2FGYM4K.js";
12
+ } from "./chunk-JZEKIGZK.js";
13
13
  import {
14
14
  sanitizeLabel,
15
15
  stripControl
@@ -9,7 +9,7 @@ import {
9
9
  commandFor,
10
10
  imageExt,
11
11
  runnerPath
12
- } from "./chunk-E2FGYM4K.js";
12
+ } from "./chunk-JZEKIGZK.js";
13
13
 
14
14
  // src/run-previews.ts
15
15
  import { execFile as execFile2, spawn } from "child_process";
@@ -2,17 +2,17 @@
2
2
  import {
3
3
  findRun,
4
4
  ownHarness
5
- } from "./chunk-U2WMOXXK.js";
5
+ } from "./chunk-AJYEMEDD.js";
6
6
  import {
7
7
  lockThreadsFile,
8
8
  threadsFilePath
9
- } from "./chunk-QVN7U4PK.js";
9
+ } from "./chunk-GKF42NV7.js";
10
10
  import {
11
11
  localRunsFilePath,
12
12
  readRunRecords,
13
13
  runHarness,
14
14
  takeoverSummary
15
- } from "./chunk-E2FGYM4K.js";
15
+ } from "./chunk-JZEKIGZK.js";
16
16
  import {
17
17
  sanitizeLabel
18
18
  } from "./chunk-VK6GV757.js";
@@ -6,7 +6,7 @@ import {
6
6
  } from "./chunk-SBYSVZ7J.js";
7
7
  import {
8
8
  VERSION
9
- } from "./chunk-BQAW4SH3.js";
9
+ } from "./chunk-4QA7C2HC.js";
10
10
  import {
11
11
  getOrigin,
12
12
  readCredentials,
@@ -805,6 +805,7 @@ var RUN_MEDIA_KEY = runMediaPattern("[0-9a-f-]{36}\\/[0-9a-f-]{36}\\/");
805
805
  var RUN_MEDIA_FILE = runMediaPattern("");
806
806
  var RUN_PREVIEWS_MAX = 3;
807
807
  var PREVIEW_HOURS = 24;
808
+ var BOX_PREVIEW_HOURS = 6;
808
809
  var PREVIEW_ID = /^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/;
809
810
  function isPort(v) {
810
811
  return typeof v === "number" && Number.isInteger(v) && v >= 1 && v <= 65535;
@@ -829,7 +830,7 @@ var RESULT_INSTRUCTION = [
829
830
  var MACHINE_RESULT_INSTRUCTION = [
830
831
  RESULT_INSTRUCTION,
831
832
  `To show the owner a picture, such as a screenshot of a UI change or a result a picture explains better than words, save it as a PNG, JPEG or WebP file outside the repository (for example in /tmp) and list it as an output: {"kind": "image", "title": "The new sign-in page", "path": "/tmp/sign-in.png"}, with the file's absolute path. Cloop uploads the file and shows it on the run. At most ${RUN_IMAGES_MAX} images, each under ${RUN_IMAGE_MAX_BYTES / (1024 * 1024)} MB. On a Cloop Box, take a picture of a website with the cloop \`browser\` tool: action screenshot shows you the page, and with a title Cloop also attaches the picture to this run and shows it to the owner. You need not list it in your outputs. Use the Playwright browser tool only for a page on localhost, and list its file by path.`,
832
- `To let the owner open a web app or page you are running on this machine, such as a dev server, leave the server running after your turn ends: start it in the background, detached from your shell (for example \`nohup npm run dev -- --port 5173 > /tmp/dev.log 2>&1 &\`), and check it answers on its port. Then list it as an output: {"kind": "preview", "title": "The new sign-in page", "port": 5173, "path": "/sign-in"}, with the port it listens on and an optional path to open first. Cloop gives the owner a private link to it for ${PREVIEW_HOURS} hours, while this machine is on. At most ${RUN_PREVIEWS_MAX} previews a run.`,
833
+ `To let the owner open a web app or page you are running on this machine, such as a dev server, leave the server running after your turn ends: start it in the background, detached from your shell (for example \`nohup npm run dev -- --port 5173 > /tmp/dev.log 2>&1 &\`), and check it answers on its port. Then list it as an output: {"kind": "preview", "title": "The new sign-in page", "port": 5173, "path": "/sign-in"}, with the port it listens on and an optional path to open first. Cloop gives the owner a private link to it for ${PREVIEW_HOURS} hours while this machine is on, or ${BOX_PREVIEW_HOURS} hours on a Cloop Box, where a live preview keeps the box awake: say how long when you give the link. At most ${RUN_PREVIEWS_MAX} previews a run.`,
833
834
  `When you started something that keeps running after this turn (a build, a deploy, a long job) or you wait on something outside, do not wait in the turn: add "check_back": {"in_minutes": 120, "why": "Read the training log and report the score."} to the block. Cloop sends you a message in this conversation then, with your why, and you carry on from there. Give ${CHECK_BACK_MIN_MINUTES} to ${CHECK_BACK_MAX_MINUTES} minutes. Leave it out when the work is done.`
834
835
  ].join("\n");
835
836
  var SUMMARY_MAX = 4e3;
@@ -53,17 +53,17 @@ import {
53
53
  which,
54
54
  workFolder,
55
55
  workFolderLine
56
- } from "./chunk-C5AX6WHQ.js";
56
+ } from "./chunk-32QS7Z6O.js";
57
57
  import "./chunk-BI2Y5ZCL.js";
58
- import "./chunk-QVN7U4PK.js";
59
- import "./chunk-E2FGYM4K.js";
58
+ import "./chunk-GKF42NV7.js";
59
+ import "./chunk-JZEKIGZK.js";
60
60
  import "./chunk-VK6GV757.js";
61
61
  import "./chunk-365HFCQQ.js";
62
62
  import "./chunk-PKIEWBR7.js";
63
- import "./chunk-KMNIEPH4.js";
64
- import "./chunk-I3IX5CWA.js";
63
+ import "./chunk-4GIAU7FP.js";
64
+ import "./chunk-JJHU3MCK.js";
65
65
  import "./chunk-SBYSVZ7J.js";
66
- import "./chunk-BQAW4SH3.js";
66
+ import "./chunk-4QA7C2HC.js";
67
67
  import "./chunk-D5UZW42X.js";
68
68
  export {
69
69
  DEFAULT_T3_URL,
@@ -7,17 +7,17 @@ import {
7
7
  runnerOrigin,
8
8
  stopService,
9
9
  unitOrigin
10
- } from "./chunk-C5AX6WHQ.js";
10
+ } from "./chunk-32QS7Z6O.js";
11
11
  import "./chunk-BI2Y5ZCL.js";
12
- import "./chunk-QVN7U4PK.js";
13
- import "./chunk-E2FGYM4K.js";
12
+ import "./chunk-GKF42NV7.js";
13
+ import "./chunk-JZEKIGZK.js";
14
14
  import "./chunk-VK6GV757.js";
15
15
  import "./chunk-365HFCQQ.js";
16
16
  import "./chunk-PKIEWBR7.js";
17
- import "./chunk-KMNIEPH4.js";
18
- import "./chunk-I3IX5CWA.js";
17
+ import "./chunk-4GIAU7FP.js";
18
+ import "./chunk-JJHU3MCK.js";
19
19
  import "./chunk-SBYSVZ7J.js";
20
- import "./chunk-BQAW4SH3.js";
20
+ import "./chunk-4QA7C2HC.js";
21
21
  import "./chunk-D5UZW42X.js";
22
22
  export {
23
23
  disconnect,
@@ -2,17 +2,17 @@
2
2
  import {
3
3
  existingRunnerEnvironment,
4
4
  pinExistingRunner
5
- } from "./chunk-C5AX6WHQ.js";
5
+ } from "./chunk-32QS7Z6O.js";
6
6
  import "./chunk-BI2Y5ZCL.js";
7
- import "./chunk-QVN7U4PK.js";
8
- import "./chunk-E2FGYM4K.js";
7
+ import "./chunk-GKF42NV7.js";
8
+ import "./chunk-JZEKIGZK.js";
9
9
  import "./chunk-VK6GV757.js";
10
10
  import "./chunk-365HFCQQ.js";
11
11
  import "./chunk-PKIEWBR7.js";
12
- import "./chunk-KMNIEPH4.js";
13
- import "./chunk-I3IX5CWA.js";
12
+ import "./chunk-4GIAU7FP.js";
13
+ import "./chunk-JJHU3MCK.js";
14
14
  import "./chunk-SBYSVZ7J.js";
15
- import "./chunk-BQAW4SH3.js";
15
+ import "./chunk-4QA7C2HC.js";
16
16
  import "./chunk-D5UZW42X.js";
17
17
  export {
18
18
  existingRunnerEnvironment,
package/dist/index.js CHANGED
@@ -4,7 +4,7 @@ import {
4
4
  } from "./chunk-365HFCQQ.js";
5
5
  import {
6
6
  VERSION
7
- } from "./chunk-BQAW4SH3.js";
7
+ } from "./chunk-4QA7C2HC.js";
8
8
  import {
9
9
  applyEnvironmentFlag
10
10
  } from "./chunk-D5UZW42X.js";
@@ -69,7 +69,7 @@ Add --staging to any command to use Cloop staging instead of production.
69
69
  A production machine and a staging machine can run side by side on one computer.
70
70
  `;
71
71
  async function pinExistingRunner() {
72
- const { pinExistingRunner: pin } = await import("./existing-runner-5SRUVRID.js");
72
+ const { pinExistingRunner: pin } = await import("./existing-runner-S5KF2X5U.js");
73
73
  const { note } = pin();
74
74
  if (note) console.error(note);
75
75
  }
@@ -77,7 +77,7 @@ async function main() {
77
77
  switch (command) {
78
78
  case "login":
79
79
  case "auth": {
80
- const { loginCommand } = await import("./login-WZQB2TLE.js");
80
+ const { loginCommand } = await import("./login-X4AXZ2WJ.js");
81
81
  await loginCommand(argv);
82
82
  break;
83
83
  }
@@ -87,61 +87,61 @@ async function main() {
87
87
  break;
88
88
  }
89
89
  case "serve": {
90
- const { startMcpServer } = await import("./mcp-server-BBSOR4IK.js");
90
+ const { startMcpServer } = await import("./mcp-server-3IF7UADF.js");
91
91
  await startMcpServer();
92
92
  break;
93
93
  }
94
94
  case "statusline": {
95
- const { statuslineCommand } = await import("./statusline-Q6ATXZTV.js");
95
+ const { statuslineCommand } = await import("./statusline-5PNHXGJA.js");
96
96
  statuslineCommand();
97
97
  break;
98
98
  }
99
99
  case "connect": {
100
- const { connectCommand } = await import("./connect-NMJ5LSRD.js");
100
+ const { connectCommand } = await import("./connect-QPOXGHB2.js");
101
101
  await connectCommand(argv.slice(1));
102
102
  break;
103
103
  }
104
104
  case "use": {
105
- const { useCommand } = await import("./use-VGOEBSXJ.js");
105
+ const { useCommand } = await import("./use-UZX25PBH.js");
106
106
  process.exitCode = await useCommand(argv.slice(1));
107
107
  break;
108
108
  }
109
109
  case "disconnect": {
110
- const { disconnectCommand } = await import("./disconnect-XOLKYHJX.js");
110
+ const { disconnectCommand } = await import("./disconnect-LCZBLJUA.js");
111
111
  await disconnectCommand(argv.slice(1));
112
112
  break;
113
113
  }
114
114
  case "box": {
115
- const { boxCommand } = await import("./box-LLBHRFVQ.js");
115
+ const { boxCommand } = await import("./box-DE5DPHI5.js");
116
116
  await boxCommand(argv.slice(1));
117
117
  break;
118
118
  }
119
119
  case "runs": {
120
120
  await pinExistingRunner();
121
- const { runsCommand } = await import("./runs-GFEAMAYU.js");
121
+ const { runsCommand } = await import("./runs-2TRTCKEC.js");
122
122
  process.exitCode = runsCommand();
123
123
  break;
124
124
  }
125
125
  case "watch": {
126
126
  await pinExistingRunner();
127
- const { watchCommand } = await import("./runs-GFEAMAYU.js");
127
+ const { watchCommand } = await import("./runs-2TRTCKEC.js");
128
128
  process.exitCode = await watchCommand(argv.slice(1));
129
129
  break;
130
130
  }
131
131
  case "takeover": {
132
132
  await pinExistingRunner();
133
- const { takeoverCommand } = await import("./takeover-SYLAMSOC.js");
133
+ const { takeoverCommand } = await import("./takeover-L7LAGCN6.js");
134
134
  process.exitCode = await takeoverCommand(argv.slice(1));
135
135
  break;
136
136
  }
137
137
  case "resume": {
138
138
  await pinExistingRunner();
139
- const { resumeCommand } = await import("./runs-GFEAMAYU.js");
139
+ const { resumeCommand } = await import("./runs-2TRTCKEC.js");
140
140
  process.exitCode = await resumeCommand(argv.slice(1));
141
141
  break;
142
142
  }
143
143
  case "runner": {
144
- const { runnerCommand } = await import("./runner-66QRLG7Y.js");
144
+ const { runnerCommand } = await import("./runner-HIK3BKSV.js");
145
145
  await runnerCommand(argv.slice(1));
146
146
  break;
147
147
  }
@@ -3,9 +3,9 @@ import {
3
3
  deviceLogin,
4
4
  loginCommand,
5
5
  refusalSentence
6
- } from "./chunk-I3IX5CWA.js";
6
+ } from "./chunk-JJHU3MCK.js";
7
7
  import "./chunk-SBYSVZ7J.js";
8
- import "./chunk-BQAW4SH3.js";
8
+ import "./chunk-4QA7C2HC.js";
9
9
  import "./chunk-D5UZW42X.js";
10
10
  export {
11
11
  deviceLogin,
@@ -31,7 +31,7 @@ import {
31
31
  } from "./chunk-SBYSVZ7J.js";
32
32
  import {
33
33
  VERSION
34
- } from "./chunk-BQAW4SH3.js";
34
+ } from "./chunk-4QA7C2HC.js";
35
35
  import {
36
36
  getMeshUrl,
37
37
  getToken
@@ -2,10 +2,10 @@
2
2
  import {
3
3
  connectWebhook,
4
4
  runnerCommand
5
- } from "./chunk-KMNIEPH4.js";
6
- import "./chunk-I3IX5CWA.js";
5
+ } from "./chunk-4GIAU7FP.js";
6
+ import "./chunk-JJHU3MCK.js";
7
7
  import "./chunk-SBYSVZ7J.js";
8
- import "./chunk-BQAW4SH3.js";
8
+ import "./chunk-4QA7C2HC.js";
9
9
  import "./chunk-D5UZW42X.js";
10
10
  export {
11
11
  connectWebhook,
@@ -9,8 +9,8 @@ import {
9
9
  runsCommand,
10
10
  sessionFolder,
11
11
  watchCommand
12
- } from "./chunk-U2WMOXXK.js";
13
- import "./chunk-E2FGYM4K.js";
12
+ } from "./chunk-AJYEMEDD.js";
13
+ import "./chunk-JZEKIGZK.js";
14
14
  import "./chunk-VK6GV757.js";
15
15
  import "./chunk-D5UZW42X.js";
16
16
  export {
@@ -7,7 +7,7 @@ import {
7
7
  } from "./chunk-VK6GV757.js";
8
8
  import {
9
9
  VERSION
10
- } from "./chunk-BQAW4SH3.js";
10
+ } from "./chunk-4QA7C2HC.js";
11
11
  import {
12
12
  getToken
13
13
  } from "./chunk-D5UZW42X.js";
@@ -9,10 +9,10 @@ import {
9
9
  takeoverDir,
10
10
  writeTakeoverReply,
11
11
  writeTakeoverRequest
12
- } from "./chunk-YQPEI7JQ.js";
13
- import "./chunk-U2WMOXXK.js";
14
- import "./chunk-QVN7U4PK.js";
15
- import "./chunk-E2FGYM4K.js";
12
+ } from "./chunk-HKBCXZEN.js";
13
+ import "./chunk-AJYEMEDD.js";
14
+ import "./chunk-GKF42NV7.js";
15
+ import "./chunk-JZEKIGZK.js";
16
16
  import "./chunk-VK6GV757.js";
17
17
  import "./chunk-SBYSVZ7J.js";
18
18
  import "./chunk-D5UZW42X.js";
@@ -3,20 +3,20 @@ import {
3
3
  DRIVER_NAME,
4
4
  pinExistingRunner,
5
5
  runConnect
6
- } from "./chunk-C5AX6WHQ.js";
6
+ } from "./chunk-32QS7Z6O.js";
7
7
  import "./chunk-BI2Y5ZCL.js";
8
- import "./chunk-QVN7U4PK.js";
8
+ import "./chunk-GKF42NV7.js";
9
9
  import {
10
10
  isLocal,
11
11
  readRunnerConfig
12
- } from "./chunk-E2FGYM4K.js";
12
+ } from "./chunk-JZEKIGZK.js";
13
13
  import "./chunk-VK6GV757.js";
14
14
  import "./chunk-365HFCQQ.js";
15
15
  import "./chunk-PKIEWBR7.js";
16
- import "./chunk-KMNIEPH4.js";
17
- import "./chunk-I3IX5CWA.js";
16
+ import "./chunk-4GIAU7FP.js";
17
+ import "./chunk-JJHU3MCK.js";
18
18
  import "./chunk-SBYSVZ7J.js";
19
- import "./chunk-BQAW4SH3.js";
19
+ import "./chunk-4QA7C2HC.js";
20
20
  import "./chunk-D5UZW42X.js";
21
21
 
22
22
  // src/commands/use.ts
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cloop/runner",
3
- "version": "0.3.50",
3
+ "version": "0.3.51",
4
4
  "private": false,
5
5
  "license": "MIT",
6
6
  "description": "Make your computer and your agents Cloop machines: device login, the machine daemon, the Cloop MCP server, and Claude Code hooks.",