@cloop/runner 0.2.6 → 0.2.8

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.
@@ -9,6 +9,8 @@ import {
9
9
  T3Driver,
10
10
  defaultT3BinSources,
11
11
  isLocal,
12
+ isYes,
13
+ otherThreadsChoice,
12
14
  pickT3Bin,
13
15
  questionLine,
14
16
  readRunnerConfig,
@@ -16,7 +18,7 @@ import {
16
18
  t3BaseDirArgs,
17
19
  t3Candidates,
18
20
  writeBoxConfig
19
- } from "./chunk-H7ZCXBNW.js";
21
+ } from "./chunk-L5R7QXIB.js";
20
22
  import {
21
23
  getMachine,
22
24
  shortMachineName
@@ -27,17 +29,17 @@ import {
27
29
  } from "./chunk-R3CLO2FB.js";
28
30
  import {
29
31
  connectWebhook
30
- } from "./chunk-52VJGOLJ.js";
32
+ } from "./chunk-YVMU3GCX.js";
31
33
  import {
32
34
  ConnectFailure,
33
35
  connectReport,
34
36
  deviceLogin,
35
37
  newAttempt,
36
38
  sendConnectReport
37
- } from "./chunk-2SZUL2B6.js";
39
+ } from "./chunk-SQLFEVGP.js";
38
40
  import {
39
41
  VERSION
40
- } from "./chunk-GTE4QSTR.js";
42
+ } from "./chunk-JXVCUFUB.js";
41
43
  import {
42
44
  STAGING_ORIGIN,
43
45
  getOrigin
@@ -352,26 +354,6 @@ var SUBSCRIPTIONS = {
352
354
  team: "Claude Team",
353
355
  enterprise: "Claude Enterprise"
354
356
  };
355
- var YES_WORDS = /* @__PURE__ */ new Set([
356
- "y",
357
- "yes",
358
- "yep",
359
- "yeah",
360
- "allow",
361
- "allow it",
362
- "ok",
363
- "okay",
364
- "approve",
365
- "approved",
366
- "go ahead",
367
- "sure",
368
- "do it"
369
- ]);
370
- function isYes(reply) {
371
- return YES_WORDS.has(
372
- reply.trim().toLowerCase().replace(/[.!\s]+$/, "")
373
- );
374
- }
375
357
  function exec(bin, args) {
376
358
  return new Promise(
377
359
  (resolve3) => execFile(
@@ -1411,7 +1393,7 @@ async function connectT3(argv, attempt, fallback, chosen, services) {
1411
1393
  writeBoxConfig: (cfg2) => writeBoxConfig({
1412
1394
  ...cfg2,
1413
1395
  origin: getOrigin(),
1414
- showOtherThreads: argv.includes("--show-other-threads"),
1396
+ hideOtherThreads: otherThreadsChoice(argv, previous),
1415
1397
  ...chosen ? { chosenDriver: chosen } : {}
1416
1398
  })
1417
1399
  });
@@ -1460,7 +1442,7 @@ async function connectLocal(driver, found, argv, attempt, chosen, services) {
1460
1442
  const deviceToken = await deviceLogin({ origin: getOrigin(), deviceName, device });
1461
1443
  attempt.deviceToken = deviceToken;
1462
1444
  const cfg = {
1463
- showOtherThreads: argv.includes("--show-other-threads"),
1445
+ hideOtherThreads: otherThreadsChoice(argv, previous),
1464
1446
  driver,
1465
1447
  environmentId: device.environmentId,
1466
1448
  label: deviceName,
@@ -2,7 +2,7 @@
2
2
  import {
3
3
  ConnectFailure,
4
4
  deviceLogin
5
- } from "./chunk-2SZUL2B6.js";
5
+ } from "./chunk-SQLFEVGP.js";
6
6
  import {
7
7
  ApiError,
8
8
  ReauthError,
@@ -38,15 +38,16 @@ import {
38
38
  tilde,
39
39
  unitEnv,
40
40
  unitFor
41
- } from "./chunk-SXV4JF5H.js";
41
+ } from "./chunk-WKJBZKUO.js";
42
42
  import "./chunk-MWWA2VH7.js";
43
- import "./chunk-H7ZCXBNW.js";
43
+ import "./chunk-L5R7QXIB.js";
44
44
  import "./chunk-JX6VG5FE.js";
45
+ import "./chunk-VK6GV757.js";
45
46
  import "./chunk-R3CLO2FB.js";
46
- import "./chunk-52VJGOLJ.js";
47
- import "./chunk-2SZUL2B6.js";
47
+ import "./chunk-YVMU3GCX.js";
48
+ import "./chunk-SQLFEVGP.js";
48
49
  import "./chunk-AG6SI6I2.js";
49
- import "./chunk-GTE4QSTR.js";
50
+ import "./chunk-JXVCUFUB.js";
50
51
  import "./chunk-3DIGCVL4.js";
51
52
  export {
52
53
  DEFAULT_T3_URL,
@@ -1,14 +1,13 @@
1
1
  #!/usr/bin/env node
2
2
  import {
3
3
  localRunsFilePath
4
- } from "./chunk-E3V2PRVS.js";
5
- import "./chunk-VK6GV757.js";
4
+ } from "./chunk-5GPCD7HI.js";
6
5
  import {
7
6
  installedService,
8
7
  revokeOwnDevice,
9
8
  runSteps,
10
9
  tokenGone
11
- } from "./chunk-SXV4JF5H.js";
10
+ } from "./chunk-WKJBZKUO.js";
12
11
  import {
13
12
  runnerStatePath,
14
13
  threadsFilePath
@@ -16,13 +15,14 @@ import {
16
15
  import {
17
16
  boxPath,
18
17
  readRunnerConfig
19
- } from "./chunk-H7ZCXBNW.js";
18
+ } from "./chunk-L5R7QXIB.js";
20
19
  import "./chunk-JX6VG5FE.js";
20
+ import "./chunk-VK6GV757.js";
21
21
  import "./chunk-R3CLO2FB.js";
22
- import "./chunk-52VJGOLJ.js";
23
- import "./chunk-2SZUL2B6.js";
22
+ import "./chunk-YVMU3GCX.js";
23
+ import "./chunk-SQLFEVGP.js";
24
24
  import "./chunk-AG6SI6I2.js";
25
- import "./chunk-GTE4QSTR.js";
25
+ import "./chunk-JXVCUFUB.js";
26
26
  import {
27
27
  getOrigin
28
28
  } from "./chunk-3DIGCVL4.js";
package/dist/index.js CHANGED
@@ -1,7 +1,7 @@
1
1
  #!/usr/bin/env node
2
2
  import {
3
3
  VERSION
4
- } from "./chunk-GTE4QSTR.js";
4
+ } from "./chunk-JXVCUFUB.js";
5
5
  import {
6
6
  applyEnvironmentFlag
7
7
  } from "./chunk-3DIGCVL4.js";
@@ -23,12 +23,14 @@ Usage:
23
23
  cloop hook activity Lifecycle hook: records what this session is doing
24
24
  cloop connect [--repo <path>]... [--driver t3|claude-code|codex] [--fallback-model <list>]
25
25
  [--no-service] [--no-start] [--ask-everything] [--t3-pair <link>]
26
+ [--hide-other-threads | --show-other-threads]
26
27
  Make this machine a Cloop runner: T3 Code, else
27
28
  Claude Code or Codex in the repos you name.
28
29
  When T3 Code will not pair by itself, paste a
29
30
  link from T3 Code (Settings, Connections,
30
31
  Create pairing link) at the question, or pass
31
- it with --t3-pair
32
+ it with --t3-pair. Cloop shows the threads you
33
+ started yourself; --hide-other-threads hides them
32
34
  cloop use t3|claude-code|codex Run Cloop work here with that harness. It reconnects
33
35
  this machine, swaps its service, and keeps the choice
34
36
  cloop disconnect [--yes] Stop being a Cloop runner: revoke this computer on
@@ -55,7 +57,7 @@ async function main() {
55
57
  switch (command) {
56
58
  case "login":
57
59
  case "auth": {
58
- const { loginCommand } = await import("./login-ZKPZEFCV.js");
60
+ const { loginCommand } = await import("./login-262MCIQ4.js");
59
61
  await loginCommand(argv);
60
62
  break;
61
63
  }
@@ -65,57 +67,57 @@ async function main() {
65
67
  break;
66
68
  }
67
69
  case "serve": {
68
- const { startMcpServer } = await import("./mcp-server-TINABFRL.js");
70
+ const { startMcpServer } = await import("./mcp-server-R5LX4ER5.js");
69
71
  await startMcpServer();
70
72
  break;
71
73
  }
72
74
  case "statusline": {
73
- const { statuslineCommand } = await import("./statusline-BWUUERD5.js");
75
+ const { statuslineCommand } = await import("./statusline-LDW7RBT6.js");
74
76
  statuslineCommand();
75
77
  break;
76
78
  }
77
79
  case "connect": {
78
- const { connectCommand } = await import("./connect-FG5VDH5N.js");
80
+ const { connectCommand } = await import("./connect-RLDBBQI7.js");
79
81
  await connectCommand(argv.slice(1));
80
82
  break;
81
83
  }
82
84
  case "use": {
83
- const { useCommand } = await import("./use-ALFEOPLY.js");
85
+ const { useCommand } = await import("./use-2W7Y42JQ.js");
84
86
  process.exitCode = await useCommand(argv.slice(1));
85
87
  break;
86
88
  }
87
89
  case "disconnect": {
88
- const { disconnectCommand } = await import("./disconnect-ZV32O475.js");
90
+ const { disconnectCommand } = await import("./disconnect-UYN2G7CO.js");
89
91
  await disconnectCommand(argv.slice(1));
90
92
  break;
91
93
  }
92
94
  case "box": {
93
- const { boxCommand } = await import("./box-Q5AA4S2T.js");
95
+ const { boxCommand } = await import("./box-TMEYQ5AN.js");
94
96
  await boxCommand(argv.slice(1));
95
97
  break;
96
98
  }
97
99
  case "runs": {
98
- const { runsCommand } = await import("./runs-QLO2XZVZ.js");
100
+ const { runsCommand } = await import("./runs-UV7GEDGW.js");
99
101
  process.exitCode = runsCommand();
100
102
  break;
101
103
  }
102
104
  case "watch": {
103
- const { watchCommand } = await import("./runs-QLO2XZVZ.js");
105
+ const { watchCommand } = await import("./runs-UV7GEDGW.js");
104
106
  process.exitCode = await watchCommand(argv.slice(1));
105
107
  break;
106
108
  }
107
109
  case "takeover": {
108
- const { takeoverCommand } = await import("./takeover-TKQ5V4KV.js");
110
+ const { takeoverCommand } = await import("./takeover-KTRIOB3P.js");
109
111
  process.exitCode = await takeoverCommand(argv.slice(1));
110
112
  break;
111
113
  }
112
114
  case "resume": {
113
- const { resumeCommand } = await import("./runs-QLO2XZVZ.js");
115
+ const { resumeCommand } = await import("./runs-UV7GEDGW.js");
114
116
  process.exitCode = await resumeCommand(argv.slice(1));
115
117
  break;
116
118
  }
117
119
  case "runner": {
118
- const { runnerCommand } = await import("./runner-VY3HK7L4.js");
120
+ const { runnerCommand } = await import("./runner-ML437F74.js");
119
121
  await runnerCommand(argv.slice(1));
120
122
  break;
121
123
  }
@@ -124,10 +126,10 @@ async function main() {
124
126
  const { runnerPermissionHook } = await import("./read-permissions-SPOKGVLO.js");
125
127
  await runnerPermissionHook();
126
128
  } else if (argv[1] === "session-start") {
127
- const { hookSessionStart } = await import("./hook-session-start-GEBGA63R.js");
129
+ const { hookSessionStart } = await import("./hook-session-start-YSEV5DCB.js");
128
130
  await hookSessionStart();
129
131
  } else if (argv[1] === "activity") {
130
- const { hookActivity } = await import("./hook-activity-R7OPEYBX.js");
132
+ const { hookActivity } = await import("./hook-activity-LBYV4WJW.js");
131
133
  await hookActivity();
132
134
  } else {
133
135
  console.error(`Unknown hook: ${argv[1] ?? "(none)"}`);
@@ -3,9 +3,9 @@ import {
3
3
  deviceLogin,
4
4
  loginCommand,
5
5
  refusalSentence
6
- } from "./chunk-2SZUL2B6.js";
6
+ } from "./chunk-SQLFEVGP.js";
7
7
  import "./chunk-AG6SI6I2.js";
8
- import "./chunk-GTE4QSTR.js";
8
+ import "./chunk-JXVCUFUB.js";
9
9
  import "./chunk-3DIGCVL4.js";
10
10
  export {
11
11
  deviceLogin,
@@ -15,10 +15,6 @@ import {
15
15
  syncInboxPending,
16
16
  writeState
17
17
  } from "./chunk-J6AEO3GT.js";
18
- import {
19
- sanitizeLabel,
20
- sanitizeUntrusted
21
- } from "./chunk-VK6GV757.js";
22
18
  import {
23
19
  HeartbeatClient,
24
20
  detectPlatform,
@@ -27,13 +23,17 @@ import {
27
23
  getSurface,
28
24
  newSessionKey
29
25
  } from "./chunk-JX6VG5FE.js";
26
+ import {
27
+ sanitizeLabel,
28
+ sanitizeUntrusted
29
+ } from "./chunk-VK6GV757.js";
30
30
  import {
31
31
  ReauthError,
32
32
  api
33
33
  } from "./chunk-AG6SI6I2.js";
34
34
  import {
35
35
  VERSION
36
- } from "./chunk-GTE4QSTR.js";
36
+ } from "./chunk-JXVCUFUB.js";
37
37
  import {
38
38
  getMeshUrl,
39
39
  getToken
@@ -2,10 +2,10 @@
2
2
  import {
3
3
  connectWebhook,
4
4
  runnerCommand
5
- } from "./chunk-52VJGOLJ.js";
6
- import "./chunk-2SZUL2B6.js";
5
+ } from "./chunk-YVMU3GCX.js";
6
+ import "./chunk-SQLFEVGP.js";
7
7
  import "./chunk-AG6SI6I2.js";
8
- import "./chunk-GTE4QSTR.js";
8
+ import "./chunk-JXVCUFUB.js";
9
9
  import "./chunk-3DIGCVL4.js";
10
10
  export {
11
11
  connectWebhook,
@@ -8,10 +8,10 @@ import {
8
8
  runsCommand,
9
9
  sessionFolder,
10
10
  watchCommand
11
- } from "./chunk-UEV7ARIT.js";
12
- import "./chunk-E3V2PRVS.js";
11
+ } from "./chunk-GGK4FLAH.js";
12
+ import "./chunk-5GPCD7HI.js";
13
+ import "./chunk-L5R7QXIB.js";
13
14
  import "./chunk-VK6GV757.js";
14
- import "./chunk-H7ZCXBNW.js";
15
15
  import "./chunk-3DIGCVL4.js";
16
16
  export {
17
17
  findRun,
@@ -7,7 +7,7 @@ import {
7
7
  } from "./chunk-VK6GV757.js";
8
8
  import {
9
9
  VERSION
10
- } from "./chunk-GTE4QSTR.js";
10
+ } from "./chunk-JXVCUFUB.js";
11
11
  import {
12
12
  getToken
13
13
  } from "./chunk-3DIGCVL4.js";
@@ -9,13 +9,13 @@ import {
9
9
  takeoverDir,
10
10
  writeTakeoverReply,
11
11
  writeTakeoverRequest
12
- } from "./chunk-V4IYJUCC.js";
13
- import "./chunk-UEV7ARIT.js";
14
- import "./chunk-E3V2PRVS.js";
15
- import "./chunk-VK6GV757.js";
12
+ } from "./chunk-LJTAYH6Q.js";
13
+ import "./chunk-GGK4FLAH.js";
14
+ import "./chunk-5GPCD7HI.js";
16
15
  import "./chunk-MWWA2VH7.js";
17
- import "./chunk-H7ZCXBNW.js";
16
+ import "./chunk-L5R7QXIB.js";
18
17
  import "./chunk-JX6VG5FE.js";
18
+ import "./chunk-VK6GV757.js";
19
19
  import "./chunk-AG6SI6I2.js";
20
20
  import "./chunk-3DIGCVL4.js";
21
21
  export {
@@ -2,18 +2,19 @@
2
2
  import {
3
3
  DRIVER_NAME,
4
4
  runConnect
5
- } from "./chunk-SXV4JF5H.js";
5
+ } from "./chunk-WKJBZKUO.js";
6
6
  import "./chunk-MWWA2VH7.js";
7
7
  import {
8
8
  isLocal,
9
9
  readRunnerConfig
10
- } from "./chunk-H7ZCXBNW.js";
10
+ } from "./chunk-L5R7QXIB.js";
11
11
  import "./chunk-JX6VG5FE.js";
12
+ import "./chunk-VK6GV757.js";
12
13
  import "./chunk-R3CLO2FB.js";
13
- import "./chunk-52VJGOLJ.js";
14
- import "./chunk-2SZUL2B6.js";
14
+ import "./chunk-YVMU3GCX.js";
15
+ import "./chunk-SQLFEVGP.js";
15
16
  import "./chunk-AG6SI6I2.js";
16
- import "./chunk-GTE4QSTR.js";
17
+ import "./chunk-JXVCUFUB.js";
17
18
  import "./chunk-3DIGCVL4.js";
18
19
 
19
20
  // src/commands/use.ts
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cloop/runner",
3
- "version": "0.2.6",
3
+ "version": "0.2.8",
4
4
  "private": false,
5
5
  "license": "MIT",
6
6
  "description": "Make your machine and your agents Cloop runners: device login, the runner daemon, the Cloop MCP server, and Claude Code hooks.",
@@ -5,7 +5,6 @@ import {
5
5
  toolPhrase,
6
6
  writeSessionState
7
7
  } from "./chunk-AEWIRLRS.js";
8
- import "./chunk-VK6GV757.js";
9
8
  import {
10
9
  HeartbeatClient,
11
10
  detectPlatform,
@@ -14,6 +13,7 @@ import {
14
13
  getSurface,
15
14
  sanitizeSessionKey
16
15
  } from "./chunk-JX6VG5FE.js";
16
+ import "./chunk-VK6GV757.js";
17
17
  import "./chunk-AG6SI6I2.js";
18
18
  import {
19
19
  getToken
@@ -1,7 +1,4 @@
1
1
  #!/usr/bin/env node
2
- import {
3
- sanitizeLabel
4
- } from "./chunk-VK6GV757.js";
5
2
  import {
6
3
  HeartbeatClient,
7
4
  detectPlatform,
@@ -10,6 +7,9 @@ import {
10
7
  getSurface,
11
8
  newSessionKey
12
9
  } from "./chunk-JX6VG5FE.js";
10
+ import {
11
+ sanitizeLabel
12
+ } from "./chunk-VK6GV757.js";
13
13
  import {
14
14
  api
15
15
  } from "./chunk-AG6SI6I2.js";