@cloop/runner 0.3.1 → 0.3.2
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-2SVXFDHE.js → box-VE2WJH3A.js} +10 -8
- package/dist/{chunk-TJXXWEJW.js → chunk-23ZHP4EN.js} +5 -5
- package/dist/{chunk-6LC5XH3S.js → chunk-43GTYT5U.js} +1 -1
- package/dist/{chunk-DH6IJQG6.js → chunk-6SRPPUR2.js} +3 -3
- package/dist/{chunk-RPWSWVKD.js → chunk-CKFWWGDD.js} +1 -1
- package/dist/{chunk-N24VQSNB.js → chunk-LAQSZU6I.js} +1 -1
- package/dist/{chunk-NALGGZM6.js → chunk-LOSZGPY4.js} +1 -1
- package/dist/{chunk-5LDFFQ4O.js → chunk-NEGKYXHS.js} +99 -19
- package/dist/{chunk-4H4SIIUH.js → chunk-UIFPQQCQ.js} +1 -1
- package/dist/{connect-NAHKIUBI.js → connect-YCCLIBTL.js} +6 -6
- package/dist/{disconnect-KTTVOO6R.js → disconnect-TVAN3LLV.js} +6 -6
- package/dist/index.js +13 -13
- package/dist/{login-37QE2AGW.js → login-OF62R2RQ.js} +2 -2
- package/dist/{mcp-server-FLCNIW4C.js → mcp-server-V2M6VOQP.js} +1 -1
- package/dist/{runner-EHVMTKAA.js → runner-64HZZDG6.js} +3 -3
- package/dist/{runs-IDFJ3Z2K.js → runs-4DXIUYDF.js} +2 -2
- package/dist/{statusline-HGIHZJY2.js → statusline-354ALD5T.js} +1 -1
- package/dist/{takeover-YUBFKEKJ.js → takeover-Y7ZKSHGQ.js} +4 -4
- package/dist/{use-OLC3RTIL.js → use-AECELCU6.js} +6 -6
- package/package.json +1 -1
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import {
|
|
3
3
|
serveTakeovers
|
|
4
|
-
} from "./chunk-
|
|
5
|
-
import "./chunk-
|
|
4
|
+
} from "./chunk-6SRPPUR2.js";
|
|
5
|
+
import "./chunk-43GTYT5U.js";
|
|
6
6
|
import {
|
|
7
7
|
MeshSocket,
|
|
8
8
|
defaultSocketFactory
|
|
@@ -18,13 +18,13 @@ import {
|
|
|
18
18
|
probeClaudePermissions,
|
|
19
19
|
probeCodex,
|
|
20
20
|
runBoxTool
|
|
21
|
-
} from "./chunk-
|
|
21
|
+
} from "./chunk-23ZHP4EN.js";
|
|
22
22
|
import {
|
|
23
23
|
BoxWatch,
|
|
24
24
|
lockThreadsFile,
|
|
25
25
|
threadsFilePath,
|
|
26
26
|
writeRunnerState
|
|
27
|
-
} from "./chunk-
|
|
27
|
+
} from "./chunk-CKFWWGDD.js";
|
|
28
28
|
import {
|
|
29
29
|
LocalDriver,
|
|
30
30
|
T3Driver,
|
|
@@ -32,19 +32,19 @@ import {
|
|
|
32
32
|
readRunnerConfig,
|
|
33
33
|
showsOtherThreads,
|
|
34
34
|
writeBoxConfig
|
|
35
|
-
} from "./chunk-
|
|
35
|
+
} from "./chunk-NEGKYXHS.js";
|
|
36
36
|
import "./chunk-UBXT5IDU.js";
|
|
37
37
|
import {
|
|
38
38
|
getMachine
|
|
39
39
|
} from "./chunk-NUU4GXGV.js";
|
|
40
40
|
import "./chunk-VK6GV757.js";
|
|
41
41
|
import "./chunk-R3CLO2FB.js";
|
|
42
|
-
import "./chunk-
|
|
43
|
-
import "./chunk-
|
|
42
|
+
import "./chunk-LOSZGPY4.js";
|
|
43
|
+
import "./chunk-LAQSZU6I.js";
|
|
44
44
|
import "./chunk-NYGELUTR.js";
|
|
45
45
|
import {
|
|
46
46
|
VERSION
|
|
47
|
-
} from "./chunk-
|
|
47
|
+
} from "./chunk-UIFPQQCQ.js";
|
|
48
48
|
import {
|
|
49
49
|
getMeshUrl,
|
|
50
50
|
getToken,
|
|
@@ -181,6 +181,8 @@ async function localDriver(cfg, name) {
|
|
|
181
181
|
dialect: name === "claude-code" ? claudeDialect(bin, cfg.fallbackModels ?? DEFAULT_FALLBACK_MODEL, cfg.askEverything, {
|
|
182
182
|
...await probeClaudePermissions(bin)
|
|
183
183
|
}) : codexDialect(bin),
|
|
184
|
+
// Codex on the same machine takes Claude Code's runs while its account is at its usage limit.
|
|
185
|
+
...name === "claude-code" ? { fallbackHarness: codexDialect() } : {},
|
|
184
186
|
repos: cfg.repos,
|
|
185
187
|
label: cfg.label,
|
|
186
188
|
harnesses: () => machineHarnesses(cfg),
|
|
@@ -3,7 +3,7 @@ import {
|
|
|
3
3
|
readRunnerState,
|
|
4
4
|
runnerStatePath,
|
|
5
5
|
threadsFilePath
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-CKFWWGDD.js";
|
|
7
7
|
import {
|
|
8
8
|
BoxToolError,
|
|
9
9
|
CLOOP_THREAD_PREFIX,
|
|
@@ -22,7 +22,7 @@ import {
|
|
|
22
22
|
t3BaseDirArgs,
|
|
23
23
|
t3Candidates,
|
|
24
24
|
writeBoxConfig
|
|
25
|
-
} from "./chunk-
|
|
25
|
+
} from "./chunk-NEGKYXHS.js";
|
|
26
26
|
import {
|
|
27
27
|
CLAUDE_FLOOR,
|
|
28
28
|
claudeTooOld,
|
|
@@ -38,17 +38,17 @@ import {
|
|
|
38
38
|
} from "./chunk-R3CLO2FB.js";
|
|
39
39
|
import {
|
|
40
40
|
connectWebhook
|
|
41
|
-
} from "./chunk-
|
|
41
|
+
} from "./chunk-LOSZGPY4.js";
|
|
42
42
|
import {
|
|
43
43
|
ConnectFailure,
|
|
44
44
|
connectReport,
|
|
45
45
|
deviceLogin,
|
|
46
46
|
newAttempt,
|
|
47
47
|
sendConnectReport
|
|
48
|
-
} from "./chunk-
|
|
48
|
+
} from "./chunk-LAQSZU6I.js";
|
|
49
49
|
import {
|
|
50
50
|
VERSION
|
|
51
|
-
} from "./chunk-
|
|
51
|
+
} from "./chunk-UIFPQQCQ.js";
|
|
52
52
|
import {
|
|
53
53
|
STAGING_ORIGIN,
|
|
54
54
|
getOrigin,
|
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import {
|
|
3
3
|
findRun
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-43GTYT5U.js";
|
|
5
5
|
import {
|
|
6
6
|
lockThreadsFile,
|
|
7
7
|
threadsFilePath
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-CKFWWGDD.js";
|
|
9
9
|
import {
|
|
10
10
|
isLocal,
|
|
11
11
|
localRunsFilePath,
|
|
12
12
|
readRunRecords,
|
|
13
13
|
readRunnerConfig,
|
|
14
14
|
takeoverSummary
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-NEGKYXHS.js";
|
|
16
16
|
import {
|
|
17
17
|
shortMachineName
|
|
18
18
|
} from "./chunk-NUU4GXGV.js";
|
|
@@ -12,7 +12,8 @@ var RESULT_INSTRUCTION = [
|
|
|
12
12
|
"```cloop-result",
|
|
13
13
|
'{"summary": "One or two sentences on what you did.", "outputs": [{"kind": "pr", "title": "fix: the thing", "url": "https://github.com/org/repo/pull/1"}], "checks": [{"name": "Tests", "outcome": "passed"}]}',
|
|
14
14
|
"```",
|
|
15
|
-
"An output kind is one of: pr or link (title, url), draft (title, body, optional to), doc (title, optional url or body), file (title, path). A check outcome is passed, failed or skipped.",
|
|
15
|
+
"An output kind is one of: pr or link (title, url), draft (title, body, optional to, optional url), doc (title, optional url or body), file (title, path). A check outcome is passed, failed or skipped.",
|
|
16
|
+
"A draft's body is the message itself, as the recipient will read it; if you saved it somewhere (a Gmail draft), put that link in url, never in body. A doc's body is the whole page in Markdown; give every product, page or source you mention as a full https link.",
|
|
16
17
|
"List as outputs only what this run made. A PR or page you only read, checked or cited goes in the summary, never in outputs."
|
|
17
18
|
].join("\n");
|
|
18
19
|
var text = (v, max) => typeof v === "string" && v.length <= max;
|
|
@@ -58,11 +59,12 @@ function cleanOutput(o) {
|
|
|
58
59
|
case "link":
|
|
59
60
|
return https(out.url) ? { kind: out.kind, title, url: out.url } : null;
|
|
60
61
|
case "draft":
|
|
61
|
-
return text(out.body, 4e3) && optionalText(out.to, 200) ? {
|
|
62
|
+
return text(out.body, 4e3) && optionalText(out.to, 200) && (out.url === void 0 || https(out.url)) ? {
|
|
62
63
|
kind: "draft",
|
|
63
64
|
title,
|
|
64
65
|
body: out.body,
|
|
65
|
-
...out.to !== void 0 ? { to: out.to } : {}
|
|
66
|
+
...out.to !== void 0 ? { to: out.to } : {},
|
|
67
|
+
...out.url !== void 0 ? { url: out.url } : {}
|
|
66
68
|
} : null;
|
|
67
69
|
case "doc": {
|
|
68
70
|
const body = typeof out.body === "string" && out.body.length > DOC_BODY_MAX ? `${out.body.slice(0, DOC_BODY_MAX - 1)}\u2026` : out.body;
|
|
@@ -1195,6 +1197,16 @@ var COMMANDS_KEPT = 50;
|
|
|
1195
1197
|
var SUMMARY_MAX2 = 200;
|
|
1196
1198
|
var HARNESS_NAMES = { "claude-code": "Claude Code", codex: "Codex" };
|
|
1197
1199
|
var HARNESS_LIMIT = /usage limit|reached your [\w .-]{0,40}limit|hit your [\w .-]{0,40}limit|out of (usage )?credits/i;
|
|
1200
|
+
function limitedModel(said) {
|
|
1201
|
+
const name = /reached your ([\w .-]{1,40}?) limit/i.exec(said ?? "")?.[1];
|
|
1202
|
+
return name && !/usage|weekly|daily|session|hour|month/i.test(name) ? name : null;
|
|
1203
|
+
}
|
|
1204
|
+
var LIMIT_HOLD_MS = 60 * 6e4;
|
|
1205
|
+
function handoverPrompt(prompt, from) {
|
|
1206
|
+
return `${prompt}
|
|
1207
|
+
|
|
1208
|
+
${from} started this work and stopped at its usage limit. Its changes, if any, are in this checkout. Read \`git status\` and \`git log\` first, and carry on from there.`;
|
|
1209
|
+
}
|
|
1198
1210
|
function failedEnd(harness, run2) {
|
|
1199
1211
|
const said = run2.result?.text?.trim() || run2.lastText;
|
|
1200
1212
|
const limited = HARNESS_LIMIT.test(run2.result?.text ?? "");
|
|
@@ -1299,6 +1311,8 @@ var LocalDriver = class {
|
|
|
1299
1311
|
logDir;
|
|
1300
1312
|
logFailed = false;
|
|
1301
1313
|
harnessCheck;
|
|
1314
|
+
/** Until then, the runner's own harness is at an account-wide limit and new runs start on the fallback. */
|
|
1315
|
+
limitedUntil = 0;
|
|
1302
1316
|
get repo() {
|
|
1303
1317
|
return this.deps.repo ?? gitProbe;
|
|
1304
1318
|
}
|
|
@@ -1375,7 +1389,7 @@ var LocalDriver = class {
|
|
|
1375
1389
|
settled: Boolean(r.end),
|
|
1376
1390
|
pr_url: r.end?.pr_url ?? null,
|
|
1377
1391
|
last_assistant_text: r.end?.summary ?? r.last_text ?? null,
|
|
1378
|
-
resume: this.
|
|
1392
|
+
resume: this.dialectOf(r).name === "claude-code" && r.session_id ? { cwd: r.repo, session_id: r.session_id } : null
|
|
1379
1393
|
};
|
|
1380
1394
|
}
|
|
1381
1395
|
async launch(a) {
|
|
@@ -1387,11 +1401,13 @@ var LocalDriver = class {
|
|
|
1387
1401
|
permission: existing.used_permission,
|
|
1388
1402
|
takeover: true
|
|
1389
1403
|
};
|
|
1390
|
-
const
|
|
1391
|
-
if (a.harness && !
|
|
1404
|
+
const own = this.deps.dialect;
|
|
1405
|
+
if (a.harness && !own.aliases.includes(a.harness))
|
|
1392
1406
|
throw new BoxToolError("harness_unavailable");
|
|
1393
1407
|
const repo = pickRepo(this.deps.repos, a.repository);
|
|
1394
1408
|
this.refuseBusy(repo.path);
|
|
1409
|
+
const moved = a.harness ? null : await this.heldOver(a);
|
|
1410
|
+
const dialect = moved ?? own;
|
|
1395
1411
|
const harness = await dialect.probe();
|
|
1396
1412
|
if (!harness) throw new BoxToolError("harness_unavailable");
|
|
1397
1413
|
if (!harness.signedIn) throw new BoxToolError("harness_signed_out");
|
|
@@ -1410,8 +1426,14 @@ var LocalDriver = class {
|
|
|
1410
1426
|
session_id: dialect.name === "claude-code" ? a.work_id : null,
|
|
1411
1427
|
repo: repo.path,
|
|
1412
1428
|
title: a.title,
|
|
1413
|
-
|
|
1429
|
+
prompt: a.prompt,
|
|
1430
|
+
...a.model && !moved ? { model: a.model } : {},
|
|
1414
1431
|
...a.runtime_mode ? { runtime_mode: a.runtime_mode } : {},
|
|
1432
|
+
...a.harness ? { harness_named: true } : {},
|
|
1433
|
+
...moved ? {
|
|
1434
|
+
harness: moved.name,
|
|
1435
|
+
switched: `${HARNESS_NAMES[own.name]} is at its usage limit, so ${HARNESS_NAMES[moved.name]} did this run.`
|
|
1436
|
+
} : {},
|
|
1415
1437
|
pid: null,
|
|
1416
1438
|
started_at: new Date(this.now()).toISOString(),
|
|
1417
1439
|
head_at_launch: head
|
|
@@ -1447,7 +1469,7 @@ var LocalDriver = class {
|
|
|
1447
1469
|
questions: live.asks.length
|
|
1448
1470
|
};
|
|
1449
1471
|
}
|
|
1450
|
-
const line2 = this.
|
|
1472
|
+
const line2 = this.dialectOf(r).answerLine?.(ask, a.text);
|
|
1451
1473
|
if (!line2) throw new BoxToolError("cannot_steer");
|
|
1452
1474
|
live.asks = live.asks.slice(1);
|
|
1453
1475
|
this.write(live, line2);
|
|
@@ -1475,7 +1497,7 @@ ${a.text}` : a.text;
|
|
|
1475
1497
|
this.remember(r, a.command_id, "queue");
|
|
1476
1498
|
return { delivered: "queue" };
|
|
1477
1499
|
}
|
|
1478
|
-
const line = this.
|
|
1500
|
+
const line = this.dialectOf(r).userLine?.(r, a.text, a.mode);
|
|
1479
1501
|
if (!line) throw new BoxToolError("cannot_steer");
|
|
1480
1502
|
live.outstanding++;
|
|
1481
1503
|
this.write(live, line);
|
|
@@ -1550,7 +1572,25 @@ ${a.text}` : a.text;
|
|
|
1550
1572
|
for (const live of this.lives.values()) live.child.kill("SIGTERM");
|
|
1551
1573
|
}
|
|
1552
1574
|
alive(pid, r) {
|
|
1553
|
-
return this.deps.alive ? this.deps.alive(pid, r) : harnessAlive(pid, r, this.
|
|
1575
|
+
return this.deps.alive ? this.deps.alive(pid, r) : harnessAlive(pid, r, this.dialectOf(r));
|
|
1576
|
+
}
|
|
1577
|
+
/** The harness a run is on: the fallback once it took the run over. */
|
|
1578
|
+
dialectOf(r) {
|
|
1579
|
+
const fallback = this.deps.fallbackHarness;
|
|
1580
|
+
return fallback && r.harness === fallback.name ? fallback : this.deps.dialect;
|
|
1581
|
+
}
|
|
1582
|
+
/**
|
|
1583
|
+
* The fallback harness, while the runner's own one is at an account-wide
|
|
1584
|
+
* limit and the fallback is signed in. Codex asks nothing, so it takes only
|
|
1585
|
+
* runs that would have had full access anyway.
|
|
1586
|
+
*/
|
|
1587
|
+
async heldOver(a) {
|
|
1588
|
+
const fallback = this.deps.fallbackHarness;
|
|
1589
|
+
if (!fallback || this.now() >= this.limitedUntil) return null;
|
|
1590
|
+
const mode = a.runtime_mode ? { runtime_mode: a.runtime_mode } : {};
|
|
1591
|
+
if (this.deps.dialect.permission?.(mode) !== "full") return null;
|
|
1592
|
+
const probe = await fallback.probe().catch(() => null);
|
|
1593
|
+
return probe?.signedIn ? fallback : null;
|
|
1554
1594
|
}
|
|
1555
1595
|
/** One checkout, one run: two harnesses editing the same files at once would undo each other. */
|
|
1556
1596
|
refuseBusy(repo) {
|
|
@@ -1580,7 +1620,7 @@ ${a.text}` : a.text;
|
|
|
1580
1620
|
}
|
|
1581
1621
|
}
|
|
1582
1622
|
spawnRun(r, prompt, resume) {
|
|
1583
|
-
const
|
|
1623
|
+
const dialect = this.dialectOf(r);
|
|
1584
1624
|
r.used_permission = dialect.permission?.(r);
|
|
1585
1625
|
const child = spawn(dialect.bin, dialect.args(r, resume), {
|
|
1586
1626
|
cwd: r.repo,
|
|
@@ -1694,31 +1734,35 @@ ${RESULT_INSTRUCTION}`));
|
|
|
1694
1734
|
}
|
|
1695
1735
|
if (live.stderr)
|
|
1696
1736
|
this.log(`stderr work=${r.work_id}: ${live.stderr.trim().split("\n").at(-1)?.slice(0, 200)}`);
|
|
1697
|
-
const end = failedEnd(this.name, {
|
|
1737
|
+
const end = failedEnd(this.dialectOf(r).name, {
|
|
1698
1738
|
result: live.result,
|
|
1699
1739
|
lastText: r.last_text,
|
|
1700
1740
|
exit,
|
|
1701
1741
|
...r.switched ? { switched: r.switched } : {}
|
|
1702
1742
|
});
|
|
1703
1743
|
if (end.error) this.log(`limit work=${r.work_id} error=${end.error}`);
|
|
1704
|
-
if (end.error === "harness_limit"
|
|
1744
|
+
if (end.error === "harness_limit") {
|
|
1745
|
+
if (this.fallBack(r, live.result?.text)) return;
|
|
1746
|
+
if (await this.moveHarness(r, live.result?.text)) return;
|
|
1747
|
+
}
|
|
1705
1748
|
await this.end(r, { kind: "failed", ...end });
|
|
1706
1749
|
}
|
|
1707
1750
|
/**
|
|
1708
1751
|
* Once per run: a run stopped by its model's usage limit resumes its own
|
|
1709
1752
|
* session on the first fallback model, with the continue prompt, so its
|
|
1710
1753
|
* steers, answers and edits carry over. It does not when the Task named its
|
|
1711
|
-
* model, when the limit is the fallback model's own
|
|
1712
|
-
* `--fallback-model` may already cover this; it is not
|
|
1713
|
-
* plan's limit counts. The switch opens the end
|
|
1714
|
-
* line is dropped while the socket is down.
|
|
1754
|
+
* model, when the limit is the fallback model's own or names no model, or
|
|
1755
|
+
* after one switch. `--fallback-model` may already cover this; it is not
|
|
1756
|
+
* documented whether a plan's limit counts. The switch opens the end
|
|
1757
|
+
* summary, because a progress line is dropped while the socket is down.
|
|
1715
1758
|
*/
|
|
1716
1759
|
fallBack(r, said) {
|
|
1717
|
-
const model = this.
|
|
1760
|
+
const model = this.dialectOf(r).fallback?.split(",")[0]?.trim();
|
|
1718
1761
|
if (!model || !r.session_id || r.switched || r.model) return false;
|
|
1719
1762
|
const named = new RegExp(`\\b${model.replace(/[.*+?^${}()|[\]\\]/g, "\\$&")}\\b`, "i");
|
|
1720
1763
|
if (named.test(said ?? "")) return false;
|
|
1721
|
-
const from =
|
|
1764
|
+
const from = limitedModel(said);
|
|
1765
|
+
if (!from) return false;
|
|
1722
1766
|
const to = `${model.charAt(0).toUpperCase()}${model.slice(1)}`;
|
|
1723
1767
|
r.switched = `${from} was at its usage limit, so this ran on ${to}.`;
|
|
1724
1768
|
r.model = model;
|
|
@@ -1731,6 +1775,42 @@ ${RESULT_INSTRUCTION}`));
|
|
|
1731
1775
|
this.spawnRun(r, CONTINUE_PROMPT, true);
|
|
1732
1776
|
return true;
|
|
1733
1777
|
}
|
|
1778
|
+
/**
|
|
1779
|
+
* Once per run: a run its own harness cannot carry on starts again on the
|
|
1780
|
+
* fallback harness, in the same checkout, so the edits so far carry over.
|
|
1781
|
+
* The session does not: the prompt goes again, with a note to read the
|
|
1782
|
+
* checkout first. A limit that names no model holds the account, so new
|
|
1783
|
+
* runs start on the fallback for LIMIT_HOLD_MS. It does not move a run
|
|
1784
|
+
* whose Task named its harness, nor one without full access, because
|
|
1785
|
+
* Codex asks nothing.
|
|
1786
|
+
*/
|
|
1787
|
+
async moveHarness(r, said) {
|
|
1788
|
+
const to = this.deps.fallbackHarness;
|
|
1789
|
+
if (!to || r.harness) return false;
|
|
1790
|
+
if (!limitedModel(said)) this.limitedUntil = this.now() + LIMIT_HOLD_MS;
|
|
1791
|
+
if (r.harness_named || r.used_permission !== "full" || !r.prompt) return false;
|
|
1792
|
+
this.recovering.add(r.work_id);
|
|
1793
|
+
try {
|
|
1794
|
+
const probe = await to.probe().catch(() => null);
|
|
1795
|
+
if (!probe?.signedIn || this.stopping || r.end) return false;
|
|
1796
|
+
} finally {
|
|
1797
|
+
this.recovering.delete(r.work_id);
|
|
1798
|
+
}
|
|
1799
|
+
const from = HARNESS_NAMES[this.deps.dialect.name] ?? this.deps.dialect.name;
|
|
1800
|
+
const name = HARNESS_NAMES[to.name] ?? to.name;
|
|
1801
|
+
r.harness = to.name;
|
|
1802
|
+
r.session_id = null;
|
|
1803
|
+
r.model = void 0;
|
|
1804
|
+
r.switched = `${from} was at its usage limit, so ${name} did this run.`;
|
|
1805
|
+
this.save();
|
|
1806
|
+
this.log(`fallback work=${r.work_id} harness=${to.name}`);
|
|
1807
|
+
this.emit(r.work_id, {
|
|
1808
|
+
kind: "progress",
|
|
1809
|
+
summary: `${from} is at its usage limit, so I moved this to ${name}`
|
|
1810
|
+
});
|
|
1811
|
+
this.spawnRun(r, handoverPrompt(r.prompt, from), false);
|
|
1812
|
+
return true;
|
|
1813
|
+
}
|
|
1734
1814
|
/**
|
|
1735
1815
|
* The PR a run produced: one its last text names, else the PR of the
|
|
1736
1816
|
* branch, but only when the run moved HEAD. A run that left HEAD where it
|
|
@@ -39,17 +39,17 @@ import {
|
|
|
39
39
|
tilde,
|
|
40
40
|
unitEnv,
|
|
41
41
|
unitFor
|
|
42
|
-
} from "./chunk-
|
|
43
|
-
import "./chunk-
|
|
44
|
-
import "./chunk-
|
|
42
|
+
} from "./chunk-23ZHP4EN.js";
|
|
43
|
+
import "./chunk-CKFWWGDD.js";
|
|
44
|
+
import "./chunk-NEGKYXHS.js";
|
|
45
45
|
import "./chunk-UBXT5IDU.js";
|
|
46
46
|
import "./chunk-NUU4GXGV.js";
|
|
47
47
|
import "./chunk-VK6GV757.js";
|
|
48
48
|
import "./chunk-R3CLO2FB.js";
|
|
49
|
-
import "./chunk-
|
|
50
|
-
import "./chunk-
|
|
49
|
+
import "./chunk-LOSZGPY4.js";
|
|
50
|
+
import "./chunk-LAQSZU6I.js";
|
|
51
51
|
import "./chunk-NYGELUTR.js";
|
|
52
|
-
import "./chunk-
|
|
52
|
+
import "./chunk-UIFPQQCQ.js";
|
|
53
53
|
import "./chunk-IKCGVBHA.js";
|
|
54
54
|
export {
|
|
55
55
|
DEFAULT_T3_URL,
|
|
@@ -6,17 +6,17 @@ import {
|
|
|
6
6
|
disconnectPlan,
|
|
7
7
|
runnerOrigin,
|
|
8
8
|
unitOrigin
|
|
9
|
-
} from "./chunk-
|
|
10
|
-
import "./chunk-
|
|
11
|
-
import "./chunk-
|
|
9
|
+
} from "./chunk-23ZHP4EN.js";
|
|
10
|
+
import "./chunk-CKFWWGDD.js";
|
|
11
|
+
import "./chunk-NEGKYXHS.js";
|
|
12
12
|
import "./chunk-UBXT5IDU.js";
|
|
13
13
|
import "./chunk-NUU4GXGV.js";
|
|
14
14
|
import "./chunk-VK6GV757.js";
|
|
15
15
|
import "./chunk-R3CLO2FB.js";
|
|
16
|
-
import "./chunk-
|
|
17
|
-
import "./chunk-
|
|
16
|
+
import "./chunk-LOSZGPY4.js";
|
|
17
|
+
import "./chunk-LAQSZU6I.js";
|
|
18
18
|
import "./chunk-NYGELUTR.js";
|
|
19
|
-
import "./chunk-
|
|
19
|
+
import "./chunk-UIFPQQCQ.js";
|
|
20
20
|
import "./chunk-IKCGVBHA.js";
|
|
21
21
|
export {
|
|
22
22
|
DONE_LINE,
|
package/dist/index.js
CHANGED
|
@@ -4,7 +4,7 @@ import {
|
|
|
4
4
|
} from "./chunk-UBXT5IDU.js";
|
|
5
5
|
import {
|
|
6
6
|
VERSION
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-UIFPQQCQ.js";
|
|
8
8
|
import {
|
|
9
9
|
applyEnvironmentFlag
|
|
10
10
|
} from "./chunk-IKCGVBHA.js";
|
|
@@ -65,7 +65,7 @@ async function main() {
|
|
|
65
65
|
switch (command) {
|
|
66
66
|
case "login":
|
|
67
67
|
case "auth": {
|
|
68
|
-
const { loginCommand } = await import("./login-
|
|
68
|
+
const { loginCommand } = await import("./login-OF62R2RQ.js");
|
|
69
69
|
await loginCommand(argv);
|
|
70
70
|
break;
|
|
71
71
|
}
|
|
@@ -75,57 +75,57 @@ async function main() {
|
|
|
75
75
|
break;
|
|
76
76
|
}
|
|
77
77
|
case "serve": {
|
|
78
|
-
const { startMcpServer } = await import("./mcp-server-
|
|
78
|
+
const { startMcpServer } = await import("./mcp-server-V2M6VOQP.js");
|
|
79
79
|
await startMcpServer();
|
|
80
80
|
break;
|
|
81
81
|
}
|
|
82
82
|
case "statusline": {
|
|
83
|
-
const { statuslineCommand } = await import("./statusline-
|
|
83
|
+
const { statuslineCommand } = await import("./statusline-354ALD5T.js");
|
|
84
84
|
statuslineCommand();
|
|
85
85
|
break;
|
|
86
86
|
}
|
|
87
87
|
case "connect": {
|
|
88
|
-
const { connectCommand } = await import("./connect-
|
|
88
|
+
const { connectCommand } = await import("./connect-YCCLIBTL.js");
|
|
89
89
|
await connectCommand(argv.slice(1));
|
|
90
90
|
break;
|
|
91
91
|
}
|
|
92
92
|
case "use": {
|
|
93
|
-
const { useCommand } = await import("./use-
|
|
93
|
+
const { useCommand } = await import("./use-AECELCU6.js");
|
|
94
94
|
process.exitCode = await useCommand(argv.slice(1));
|
|
95
95
|
break;
|
|
96
96
|
}
|
|
97
97
|
case "disconnect": {
|
|
98
|
-
const { disconnectCommand } = await import("./disconnect-
|
|
98
|
+
const { disconnectCommand } = await import("./disconnect-TVAN3LLV.js");
|
|
99
99
|
await disconnectCommand(argv.slice(1));
|
|
100
100
|
break;
|
|
101
101
|
}
|
|
102
102
|
case "box": {
|
|
103
|
-
const { boxCommand } = await import("./box-
|
|
103
|
+
const { boxCommand } = await import("./box-VE2WJH3A.js");
|
|
104
104
|
await boxCommand(argv.slice(1));
|
|
105
105
|
break;
|
|
106
106
|
}
|
|
107
107
|
case "runs": {
|
|
108
|
-
const { runsCommand } = await import("./runs-
|
|
108
|
+
const { runsCommand } = await import("./runs-4DXIUYDF.js");
|
|
109
109
|
process.exitCode = runsCommand();
|
|
110
110
|
break;
|
|
111
111
|
}
|
|
112
112
|
case "watch": {
|
|
113
|
-
const { watchCommand } = await import("./runs-
|
|
113
|
+
const { watchCommand } = await import("./runs-4DXIUYDF.js");
|
|
114
114
|
process.exitCode = await watchCommand(argv.slice(1));
|
|
115
115
|
break;
|
|
116
116
|
}
|
|
117
117
|
case "takeover": {
|
|
118
|
-
const { takeoverCommand } = await import("./takeover-
|
|
118
|
+
const { takeoverCommand } = await import("./takeover-Y7ZKSHGQ.js");
|
|
119
119
|
process.exitCode = await takeoverCommand(argv.slice(1));
|
|
120
120
|
break;
|
|
121
121
|
}
|
|
122
122
|
case "resume": {
|
|
123
|
-
const { resumeCommand } = await import("./runs-
|
|
123
|
+
const { resumeCommand } = await import("./runs-4DXIUYDF.js");
|
|
124
124
|
process.exitCode = await resumeCommand(argv.slice(1));
|
|
125
125
|
break;
|
|
126
126
|
}
|
|
127
127
|
case "runner": {
|
|
128
|
-
const { runnerCommand } = await import("./runner-
|
|
128
|
+
const { runnerCommand } = await import("./runner-64HZZDG6.js");
|
|
129
129
|
await runnerCommand(argv.slice(1));
|
|
130
130
|
break;
|
|
131
131
|
}
|
|
@@ -3,9 +3,9 @@ import {
|
|
|
3
3
|
deviceLogin,
|
|
4
4
|
loginCommand,
|
|
5
5
|
refusalSentence
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-LAQSZU6I.js";
|
|
7
7
|
import "./chunk-NYGELUTR.js";
|
|
8
|
-
import "./chunk-
|
|
8
|
+
import "./chunk-UIFPQQCQ.js";
|
|
9
9
|
import "./chunk-IKCGVBHA.js";
|
|
10
10
|
export {
|
|
11
11
|
deviceLogin,
|
|
@@ -2,10 +2,10 @@
|
|
|
2
2
|
import {
|
|
3
3
|
connectWebhook,
|
|
4
4
|
runnerCommand
|
|
5
|
-
} from "./chunk-
|
|
6
|
-
import "./chunk-
|
|
5
|
+
} from "./chunk-LOSZGPY4.js";
|
|
6
|
+
import "./chunk-LAQSZU6I.js";
|
|
7
7
|
import "./chunk-NYGELUTR.js";
|
|
8
|
-
import "./chunk-
|
|
8
|
+
import "./chunk-UIFPQQCQ.js";
|
|
9
9
|
import "./chunk-IKCGVBHA.js";
|
|
10
10
|
export {
|
|
11
11
|
connectWebhook,
|
|
@@ -8,8 +8,8 @@ import {
|
|
|
8
8
|
runsCommand,
|
|
9
9
|
sessionFolder,
|
|
10
10
|
watchCommand
|
|
11
|
-
} from "./chunk-
|
|
12
|
-
import "./chunk-
|
|
11
|
+
} from "./chunk-43GTYT5U.js";
|
|
12
|
+
import "./chunk-NEGKYXHS.js";
|
|
13
13
|
import "./chunk-VK6GV757.js";
|
|
14
14
|
import "./chunk-IKCGVBHA.js";
|
|
15
15
|
export {
|
|
@@ -9,10 +9,10 @@ import {
|
|
|
9
9
|
takeoverDir,
|
|
10
10
|
writeTakeoverReply,
|
|
11
11
|
writeTakeoverRequest
|
|
12
|
-
} from "./chunk-
|
|
13
|
-
import "./chunk-
|
|
14
|
-
import "./chunk-
|
|
15
|
-
import "./chunk-
|
|
12
|
+
} from "./chunk-6SRPPUR2.js";
|
|
13
|
+
import "./chunk-43GTYT5U.js";
|
|
14
|
+
import "./chunk-CKFWWGDD.js";
|
|
15
|
+
import "./chunk-NEGKYXHS.js";
|
|
16
16
|
import "./chunk-NUU4GXGV.js";
|
|
17
17
|
import "./chunk-VK6GV757.js";
|
|
18
18
|
import "./chunk-NYGELUTR.js";
|
|
@@ -3,20 +3,20 @@ import {
|
|
|
3
3
|
DRIVER_NAME,
|
|
4
4
|
runConnect,
|
|
5
5
|
runnerOrigin
|
|
6
|
-
} from "./chunk-
|
|
7
|
-
import "./chunk-
|
|
6
|
+
} from "./chunk-23ZHP4EN.js";
|
|
7
|
+
import "./chunk-CKFWWGDD.js";
|
|
8
8
|
import {
|
|
9
9
|
isLocal,
|
|
10
10
|
readRunnerConfig
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-NEGKYXHS.js";
|
|
12
12
|
import "./chunk-UBXT5IDU.js";
|
|
13
13
|
import "./chunk-NUU4GXGV.js";
|
|
14
14
|
import "./chunk-VK6GV757.js";
|
|
15
15
|
import "./chunk-R3CLO2FB.js";
|
|
16
|
-
import "./chunk-
|
|
17
|
-
import "./chunk-
|
|
16
|
+
import "./chunk-LOSZGPY4.js";
|
|
17
|
+
import "./chunk-LAQSZU6I.js";
|
|
18
18
|
import "./chunk-NYGELUTR.js";
|
|
19
|
-
import "./chunk-
|
|
19
|
+
import "./chunk-UIFPQQCQ.js";
|
|
20
20
|
import {
|
|
21
21
|
pinRunnerEnvironment
|
|
22
22
|
} from "./chunk-IKCGVBHA.js";
|
package/package.json
CHANGED