@cloop/runner 0.2.0 → 0.2.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/dist/{box-SQVB3OUM.js → box-HBQ4ZM2Y.js} +13 -12
- package/dist/{chunk-IIUHGZKX.js → chunk-2ZVYM4JU.js} +561 -122
- package/dist/{chunk-SQJ7ZO4G.js → chunk-3DIGCVL4.js} +1 -0
- package/dist/{chunk-4UE33DYW.js → chunk-AG6SI6I2.js} +1 -1
- package/dist/{chunk-CMOMRXTA.js → chunk-AQGBNKUG.js} +92 -14
- package/dist/{chunk-UYTSOW2C.js → chunk-J6AEO3GT.js} +1 -1
- package/dist/{chunk-HS5CIDQF.js → chunk-JX6VG5FE.js} +5 -1
- package/dist/{chunk-IR3P526R.js → chunk-OJ5AREUC.js} +1 -1
- package/dist/{chunk-7K5W6ELQ.js → chunk-OKF4BDBH.js} +1 -1
- package/dist/connect-LRQ4C3KK.js +66 -0
- package/dist/disconnect-FQ6ODTTE.js +143 -0
- package/dist/{hook-activity-JHLSVNFG.js → hook-activity-O2NNKTOE.js} +4 -4
- package/dist/{hook-session-start-BIO5QJKT.js → hook-session-start-MT67MMDM.js} +3 -3
- package/dist/index.js +20 -12
- package/dist/{install-2AYAXFYF.js → install-HTDTCELB.js} +1 -1
- package/dist/{login-TLO4ZXLI.js → login-4GUYT5MR.js} +4 -3
- package/dist/{mcp-server-VGCZ6AGJ.js → mcp-server-TV7MHVHZ.js} +8 -8
- package/dist/{runner-TOCZ4RXC.js → runner-5H7ECAZ6.js} +2 -2
- package/dist/{statusline-YIRFJQWY.js → statusline-6JMHIL54.js} +3 -3
- package/package.json +1 -1
- package/dist/connect-SFXN3UHJ.js +0 -41
|
@@ -3,11 +3,9 @@ import {
|
|
|
3
3
|
MeshSocket,
|
|
4
4
|
defaultSocketFactory
|
|
5
5
|
} from "./chunk-ZILLDYL4.js";
|
|
6
|
-
import {
|
|
7
|
-
getMachine
|
|
8
|
-
} from "./chunk-HS5CIDQF.js";
|
|
9
6
|
import {
|
|
10
7
|
BoxWatch,
|
|
8
|
+
DEFAULT_FALLBACK_MODEL,
|
|
11
9
|
LocalDriver,
|
|
12
10
|
T3Client,
|
|
13
11
|
T3Driver,
|
|
@@ -20,20 +18,22 @@ import {
|
|
|
20
18
|
probeClaude,
|
|
21
19
|
probeCodex,
|
|
22
20
|
readRunnerConfig,
|
|
23
|
-
resolveT3Bin,
|
|
24
21
|
runBoxTool,
|
|
25
22
|
threadsFilePath,
|
|
26
23
|
writeBoxConfig,
|
|
27
24
|
writeRunnerState
|
|
28
|
-
} from "./chunk-
|
|
29
|
-
import "./chunk-
|
|
30
|
-
import
|
|
31
|
-
|
|
25
|
+
} from "./chunk-2ZVYM4JU.js";
|
|
26
|
+
import "./chunk-AQGBNKUG.js";
|
|
27
|
+
import {
|
|
28
|
+
getMachine
|
|
29
|
+
} from "./chunk-JX6VG5FE.js";
|
|
30
|
+
import "./chunk-AG6SI6I2.js";
|
|
31
|
+
import "./chunk-OKF4BDBH.js";
|
|
32
32
|
import {
|
|
33
33
|
getMeshUrl,
|
|
34
34
|
getToken,
|
|
35
35
|
readCredentials
|
|
36
|
-
} from "./chunk-
|
|
36
|
+
} from "./chunk-3DIGCVL4.js";
|
|
37
37
|
|
|
38
38
|
// src/commands/box.ts
|
|
39
39
|
var BEAT_MS = 6e4;
|
|
@@ -62,7 +62,7 @@ async function machineHarnesses(cfg) {
|
|
|
62
62
|
function localDriver(cfg, name) {
|
|
63
63
|
const bin = cfg.driver === name ? cfg.bin : void 0;
|
|
64
64
|
return new LocalDriver({
|
|
65
|
-
dialect: name === "claude-code" ? claudeDialect(bin) : codexDialect(bin),
|
|
65
|
+
dialect: name === "claude-code" ? claudeDialect(bin, cfg.fallbackModels ?? DEFAULT_FALLBACK_MODEL) : codexDialect(bin),
|
|
66
66
|
repos: cfg.repos,
|
|
67
67
|
label: cfg.label,
|
|
68
68
|
harnesses: () => machineHarnesses(cfg),
|
|
@@ -175,9 +175,10 @@ async function run() {
|
|
|
175
175
|
try {
|
|
176
176
|
const disk = readRunnerConfig();
|
|
177
177
|
const renewed = {
|
|
178
|
-
...await mintSession(cfg.t3Url,
|
|
178
|
+
...await mintSession(cfg.t3Url, { stored: cfg.t3Bin }),
|
|
179
179
|
// Read from disk: `cloop connect` may have replaced it since.
|
|
180
|
-
deviceToken: disk?.deviceToken ?? cfg.deviceToken
|
|
180
|
+
deviceToken: disk?.deviceToken ?? cfg.deviceToken,
|
|
181
|
+
...disk?.origin ?? cfg.origin ? { origin: disk?.origin ?? cfg.origin } : {}
|
|
181
182
|
};
|
|
182
183
|
cfg = renewed;
|
|
183
184
|
writeBoxConfig(renewed);
|