@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.
- package/README.md +4 -2
- package/dist/{box-P6LMNVYG.js → box-2SVXFDHE.js} +16 -15
- package/dist/{chunk-UL2WHOQJ.js → chunk-4H4SIIUH.js} +1 -1
- package/dist/{chunk-J6AEO3GT.js → chunk-5FZAHWPX.js} +1 -1
- package/dist/{chunk-NX2LAKNU.js → chunk-5LDFFQ4O.js} +712 -45
- package/dist/{chunk-HI3HDN35.js → chunk-6LC5XH3S.js} +3 -5
- package/dist/{chunk-C6EODIE5.js → chunk-DH6IJQG6.js} +8 -10
- package/dist/{chunk-AEWIRLRS.js → chunk-E5CKL2Q3.js} +1 -1
- package/dist/{chunk-3DIGCVL4.js → chunk-IKCGVBHA.js} +11 -0
- package/dist/{chunk-PRJBCKRP.js → chunk-N24VQSNB.js} +3 -3
- package/dist/{chunk-VNX4VJAM.js → chunk-NALGGZM6.js} +3 -3
- package/dist/{chunk-JX6VG5FE.js → chunk-NUU4GXGV.js} +1 -1
- package/dist/{chunk-AG6SI6I2.js → chunk-NYGELUTR.js} +1 -1
- package/dist/{chunk-MWWA2VH7.js → chunk-RPWSWVKD.js} +5 -2
- package/dist/{chunk-EN7WRLSI.js → chunk-TJXXWEJW.js} +192 -40
- package/dist/{connect-GURZFURZ.js → connect-NAHKIUBI.js} +9 -9
- package/dist/disconnect-KTTVOO6R.js +28 -0
- package/dist/{hook-activity-LBYV4WJW.js → hook-activity-I7TV7YG7.js} +4 -4
- package/dist/{hook-session-start-YSEV5DCB.js → hook-session-start-MFX6HR3W.js} +3 -3
- package/dist/index.js +17 -17
- package/dist/{install-HTDTCELB.js → install-EMEZBBK7.js} +1 -1
- package/dist/{login-DXPJ3ZOA.js → login-37QE2AGW.js} +4 -4
- package/dist/{mcp-server-4UMYMJ5P.js → mcp-server-FLCNIW4C.js} +6 -6
- package/dist/runner-EHVMTKAA.js +13 -0
- package/dist/{runs-HRDQ7YCY.js → runs-IDFJ3Z2K.js} +3 -4
- package/dist/{statusline-AV2F2IM4.js → statusline-HGIHZJY2.js} +3 -3
- package/dist/{takeover-PDYTQY5D.js → takeover-YUBFKEKJ.js} +7 -8
- package/dist/{use-52LTRRXJ.js → use-OLC3RTIL.js} +14 -10
- package/package.json +1 -1
- package/dist/chunk-DHUZXAK2.js +0 -640
- package/dist/disconnect-HGQW7TVG.js +0 -159
- 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
|
|
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-
|
|
5
|
-
import "./chunk-
|
|
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-
|
|
21
|
+
} from "./chunk-TJXXWEJW.js";
|
|
25
22
|
import {
|
|
26
23
|
BoxWatch,
|
|
27
24
|
lockThreadsFile,
|
|
28
25
|
threadsFilePath,
|
|
29
26
|
writeRunnerState
|
|
30
|
-
} from "./chunk-
|
|
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-
|
|
35
|
+
} from "./chunk-5LDFFQ4O.js";
|
|
38
36
|
import "./chunk-UBXT5IDU.js";
|
|
39
37
|
import {
|
|
40
38
|
getMachine
|
|
41
|
-
} from "./chunk-
|
|
39
|
+
} from "./chunk-NUU4GXGV.js";
|
|
42
40
|
import "./chunk-VK6GV757.js";
|
|
43
41
|
import "./chunk-R3CLO2FB.js";
|
|
44
|
-
import "./chunk-
|
|
45
|
-
import "./chunk-
|
|
46
|
-
import "./chunk-
|
|
42
|
+
import "./chunk-NALGGZM6.js";
|
|
43
|
+
import "./chunk-N24VQSNB.js";
|
|
44
|
+
import "./chunk-NYGELUTR.js";
|
|
47
45
|
import {
|
|
48
46
|
VERSION
|
|
49
|
-
} from "./chunk-
|
|
47
|
+
} from "./chunk-4H4SIIUH.js";
|
|
50
48
|
import {
|
|
51
49
|
getMeshUrl,
|
|
52
50
|
getToken,
|
|
53
51
|
readCredentials
|
|
54
|
-
} from "./chunk-
|
|
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
|
-
|
|
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
|