@cloop/runner 0.2.10 → 0.3.1

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 (32) hide show
  1. package/README.md +4 -2
  2. package/dist/{box-P6LMNVYG.js → box-2SVXFDHE.js} +16 -15
  3. package/dist/{chunk-UL2WHOQJ.js → chunk-4H4SIIUH.js} +1 -1
  4. package/dist/{chunk-J6AEO3GT.js → chunk-5FZAHWPX.js} +1 -1
  5. package/dist/{chunk-NX2LAKNU.js → chunk-5LDFFQ4O.js} +712 -45
  6. package/dist/{chunk-HI3HDN35.js → chunk-6LC5XH3S.js} +3 -5
  7. package/dist/{chunk-C6EODIE5.js → chunk-DH6IJQG6.js} +8 -10
  8. package/dist/{chunk-AEWIRLRS.js → chunk-E5CKL2Q3.js} +1 -1
  9. package/dist/{chunk-3DIGCVL4.js → chunk-IKCGVBHA.js} +11 -0
  10. package/dist/{chunk-PRJBCKRP.js → chunk-N24VQSNB.js} +3 -3
  11. package/dist/{chunk-VNX4VJAM.js → chunk-NALGGZM6.js} +3 -3
  12. package/dist/{chunk-JX6VG5FE.js → chunk-NUU4GXGV.js} +1 -1
  13. package/dist/{chunk-AG6SI6I2.js → chunk-NYGELUTR.js} +1 -1
  14. package/dist/{chunk-MWWA2VH7.js → chunk-RPWSWVKD.js} +5 -2
  15. package/dist/{chunk-EN7WRLSI.js → chunk-TJXXWEJW.js} +192 -40
  16. package/dist/{connect-GURZFURZ.js → connect-NAHKIUBI.js} +9 -9
  17. package/dist/disconnect-KTTVOO6R.js +28 -0
  18. package/dist/{hook-activity-LBYV4WJW.js → hook-activity-I7TV7YG7.js} +4 -4
  19. package/dist/{hook-session-start-YSEV5DCB.js → hook-session-start-MFX6HR3W.js} +3 -3
  20. package/dist/index.js +17 -17
  21. package/dist/{install-HTDTCELB.js → install-EMEZBBK7.js} +1 -1
  22. package/dist/{login-DXPJ3ZOA.js → login-37QE2AGW.js} +4 -4
  23. package/dist/{mcp-server-4UMYMJ5P.js → mcp-server-FLCNIW4C.js} +6 -6
  24. package/dist/runner-EHVMTKAA.js +13 -0
  25. package/dist/{runs-HRDQ7YCY.js → runs-IDFJ3Z2K.js} +3 -4
  26. package/dist/{statusline-AV2F2IM4.js → statusline-HGIHZJY2.js} +3 -3
  27. package/dist/{takeover-PDYTQY5D.js → takeover-YUBFKEKJ.js} +7 -8
  28. package/dist/{use-52LTRRXJ.js → use-OLC3RTIL.js} +14 -10
  29. package/package.json +1 -1
  30. package/dist/chunk-DHUZXAK2.js +0 -640
  31. package/dist/disconnect-HGQW7TVG.js +0 -159
  32. package/dist/runner-SPOKUMLM.js +0 -13
package/README.md CHANGED
@@ -12,6 +12,8 @@ cloop install # register the MCP server with Claude Code / others
12
12
 
13
13
  Credentials live in `~/.cloop/credentials.json`. The API origin comes from `CLOOP_ORIGIN`, the stored value, or the staging default.
14
14
 
15
+ To disconnect a runner, use Disconnect in its ⋯ menu on the Threads page.
16
+
15
17
  ## Commands
16
18
 
17
19
  | Command | What it does |
@@ -49,8 +51,8 @@ user to run `cloop login`.
49
51
 
50
52
  On start, `serve` opens a WebSocket to the cloop-mesh Worker's per-user Durable
51
53
  Object at `{CLOOP_MESH_URL}/mesh/agent?session_key=…` (default
52
- `https://mcp-staging.mycloop.com`; override via `CLOOP_MESH_URL` or the stored
53
- `meshUrl`). The device token rides the first `Sec-WebSocket-Protocol` entry, never
54
+ `https://mcp.mycloop.com`; `--staging` or `CLOOP_MESH_URL` selects another
55
+ mesh, and the choice is stored as `meshUrl`). The device token rides the first `Sec-WebSocket-Protocol` entry, never
54
56
  the URL (query strings leak into edge logs). While it's up, presence
55
57
  beats ride the socket (the DO mirrors them into the heartbeat route) and the HTTP
56
58
  `HeartbeatClient` is the fallback; it reconnects with 1s→60s backoff + jitter.
@@ -1,11 +1,8 @@
1
1
  #!/usr/bin/env node
2
2
  import {
3
3
  serveTakeovers
4
- } from "./chunk-C6EODIE5.js";
5
- import "./chunk-HI3HDN35.js";
6
- import {
7
- LocalDriver
8
- } from "./chunk-DHUZXAK2.js";
4
+ } from "./chunk-DH6IJQG6.js";
5
+ import "./chunk-6LC5XH3S.js";
9
6
  import {
10
7
  MeshSocket,
11
8
  defaultSocketFactory
@@ -21,37 +18,38 @@ import {
21
18
  probeClaudePermissions,
22
19
  probeCodex,
23
20
  runBoxTool
24
- } from "./chunk-EN7WRLSI.js";
21
+ } from "./chunk-TJXXWEJW.js";
25
22
  import {
26
23
  BoxWatch,
27
24
  lockThreadsFile,
28
25
  threadsFilePath,
29
26
  writeRunnerState
30
- } from "./chunk-MWWA2VH7.js";
27
+ } from "./chunk-RPWSWVKD.js";
31
28
  import {
29
+ LocalDriver,
32
30
  T3Driver,
33
31
  isLocal,
34
32
  readRunnerConfig,
35
33
  showsOtherThreads,
36
34
  writeBoxConfig
37
- } from "./chunk-NX2LAKNU.js";
35
+ } from "./chunk-5LDFFQ4O.js";
38
36
  import "./chunk-UBXT5IDU.js";
39
37
  import {
40
38
  getMachine
41
- } from "./chunk-JX6VG5FE.js";
39
+ } from "./chunk-NUU4GXGV.js";
42
40
  import "./chunk-VK6GV757.js";
43
41
  import "./chunk-R3CLO2FB.js";
44
- import "./chunk-VNX4VJAM.js";
45
- import "./chunk-PRJBCKRP.js";
46
- import "./chunk-AG6SI6I2.js";
42
+ import "./chunk-NALGGZM6.js";
43
+ import "./chunk-N24VQSNB.js";
44
+ import "./chunk-NYGELUTR.js";
47
45
  import {
48
46
  VERSION
49
- } from "./chunk-UL2WHOQJ.js";
47
+ } from "./chunk-4H4SIIUH.js";
50
48
  import {
51
49
  getMeshUrl,
52
50
  getToken,
53
51
  readCredentials
54
- } from "./chunk-3DIGCVL4.js";
52
+ } from "./chunk-IKCGVBHA.js";
55
53
 
56
54
  // src/outside-sessions.ts
57
55
  import { createReadStream } from "fs";
@@ -179,7 +177,7 @@ async function machineHarnesses(cfg) {
179
177
  }
180
178
  async function localDriver(cfg, name) {
181
179
  const bin = cfg.driver === name ? cfg.bin : void 0;
182
- return new LocalDriver({
180
+ const driver = new LocalDriver({
183
181
  dialect: name === "claude-code" ? claudeDialect(bin, cfg.fallbackModels ?? DEFAULT_FALLBACK_MODEL, cfg.askEverything, {
184
182
  ...await probeClaudePermissions(bin)
185
183
  }) : codexDialect(bin),
@@ -188,6 +186,8 @@ async function localDriver(cfg, name) {
188
186
  harnesses: () => machineHarnesses(cfg),
189
187
  log
190
188
  });
189
+ driver.warmHarnesses();
190
+ return driver;
191
191
  }
192
192
  function recordConnected(logLine, write = writeRunnerState) {
193
193
  try {
@@ -390,6 +390,7 @@ export {
390
390
  awaitNewDeviceToken,
391
391
  boxCommand,
392
392
  boxPresence,
393
+ machineHarnesses,
393
394
  recordConnected,
394
395
  run,
395
396
  t3Presence
@@ -1,7 +1,7 @@
1
1
  #!/usr/bin/env node
2
2
 
3
3
  // src/version.ts
4
- var VERSION = true ? "0.2.10" : "0.0.0-dev";
4
+ var VERSION = true ? "0.3.1" : "0.0.0-dev";
5
5
 
6
6
  export {
7
7
  VERSION
@@ -1,7 +1,7 @@
1
1
  #!/usr/bin/env node
2
2
  import {
3
3
  CONFIG_DIR
4
- } from "./chunk-3DIGCVL4.js";
4
+ } from "./chunk-IKCGVBHA.js";
5
5
 
6
6
  // src/inbox.ts
7
7
  import { appendFileSync, mkdirSync, readFileSync, rmSync } from "fs";