@cloop/runner 0.2.8 → 0.2.9
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-TMEYQ5AN.js → box-Z4NS6J7A.js} +8 -8
- package/dist/{chunk-LJTAYH6Q.js → chunk-3PIT6YXL.js} +3 -3
- package/dist/{chunk-5GPCD7HI.js → chunk-IRRQ55FQ.js} +6 -3
- package/dist/{chunk-JXVCUFUB.js → chunk-Q2MTOW4O.js} +1 -1
- package/dist/{chunk-YVMU3GCX.js → chunk-QAOAR5OL.js} +1 -1
- package/dist/{chunk-GGK4FLAH.js → chunk-V4QYTF6O.js} +2 -2
- package/dist/{chunk-SQLFEVGP.js → chunk-VBWETWB5.js} +1 -1
- package/dist/{chunk-L5R7QXIB.js → chunk-VIQF3JF3.js} +87 -59
- package/dist/{chunk-WKJBZKUO.js → chunk-VKEX5FVO.js} +4 -4
- package/dist/{connect-RLDBBQI7.js → connect-CGOALTSO.js} +5 -5
- package/dist/{disconnect-UYN2G7CO.js → disconnect-H3RDATJF.js} +6 -6
- package/dist/index.js +13 -13
- package/dist/{login-262MCIQ4.js → login-IQSMR2SY.js} +2 -2
- package/dist/{mcp-server-R5LX4ER5.js → mcp-server-PRPB2JYE.js} +1 -1
- package/dist/{runner-ML437F74.js → runner-JNMWMBIG.js} +3 -3
- package/dist/{runs-UV7GEDGW.js → runs-BMTJHKBI.js} +3 -3
- package/dist/{statusline-LDW7RBT6.js → statusline-UVEWJ4BA.js} +1 -1
- package/dist/{takeover-KTRIOB3P.js → takeover-XL2P7RML.js} +4 -4
- package/dist/{use-2W7Y42JQ.js → use-3B33RXZH.js} +5 -5
- package/package.json +1 -1
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import {
|
|
3
3
|
serveTakeovers
|
|
4
|
-
} from "./chunk-
|
|
5
|
-
import "./chunk-
|
|
4
|
+
} from "./chunk-3PIT6YXL.js";
|
|
5
|
+
import "./chunk-V4QYTF6O.js";
|
|
6
6
|
import {
|
|
7
7
|
LocalDriver
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-IRRQ55FQ.js";
|
|
9
9
|
import {
|
|
10
10
|
MeshSocket,
|
|
11
11
|
defaultSocketFactory
|
|
@@ -21,7 +21,7 @@ import {
|
|
|
21
21
|
probeClaudePermissions,
|
|
22
22
|
probeCodex,
|
|
23
23
|
runBoxTool
|
|
24
|
-
} from "./chunk-
|
|
24
|
+
} from "./chunk-VKEX5FVO.js";
|
|
25
25
|
import {
|
|
26
26
|
BoxWatch,
|
|
27
27
|
lockThreadsFile,
|
|
@@ -34,18 +34,18 @@ import {
|
|
|
34
34
|
readRunnerConfig,
|
|
35
35
|
showsOtherThreads,
|
|
36
36
|
writeBoxConfig
|
|
37
|
-
} from "./chunk-
|
|
37
|
+
} from "./chunk-VIQF3JF3.js";
|
|
38
38
|
import {
|
|
39
39
|
getMachine
|
|
40
40
|
} from "./chunk-JX6VG5FE.js";
|
|
41
41
|
import "./chunk-VK6GV757.js";
|
|
42
42
|
import "./chunk-R3CLO2FB.js";
|
|
43
|
-
import "./chunk-
|
|
44
|
-
import "./chunk-
|
|
43
|
+
import "./chunk-QAOAR5OL.js";
|
|
44
|
+
import "./chunk-VBWETWB5.js";
|
|
45
45
|
import "./chunk-AG6SI6I2.js";
|
|
46
46
|
import {
|
|
47
47
|
VERSION
|
|
48
|
-
} from "./chunk-
|
|
48
|
+
} from "./chunk-Q2MTOW4O.js";
|
|
49
49
|
import {
|
|
50
50
|
getMeshUrl,
|
|
51
51
|
getToken,
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import {
|
|
3
3
|
findRun
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-V4QYTF6O.js";
|
|
5
5
|
import {
|
|
6
6
|
localRunsFilePath,
|
|
7
7
|
readRunRecords,
|
|
8
8
|
takeoverSummary
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-IRRQ55FQ.js";
|
|
10
10
|
import {
|
|
11
11
|
lockThreadsFile,
|
|
12
12
|
threadsFilePath
|
|
@@ -14,7 +14,7 @@ import {
|
|
|
14
14
|
import {
|
|
15
15
|
isLocal,
|
|
16
16
|
readRunnerConfig
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-VIQF3JF3.js";
|
|
18
18
|
import {
|
|
19
19
|
shortMachineName
|
|
20
20
|
} from "./chunk-JX6VG5FE.js";
|
|
@@ -4,17 +4,18 @@ import {
|
|
|
4
4
|
RESULT_INSTRUCTION,
|
|
5
5
|
STOPPED_SUMMARY,
|
|
6
6
|
appendRunLog,
|
|
7
|
+
droppedLine,
|
|
7
8
|
endNote,
|
|
8
9
|
isProgressSentence,
|
|
9
10
|
logLineFor,
|
|
10
11
|
nextProgress,
|
|
11
12
|
orderThreads,
|
|
12
|
-
parseRunResult,
|
|
13
13
|
prUrlIn,
|
|
14
14
|
pruneRunLogs,
|
|
15
|
+
readRunResult,
|
|
15
16
|
resultPrUrl,
|
|
16
17
|
runLogDir
|
|
17
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-VIQF3JF3.js";
|
|
18
19
|
import {
|
|
19
20
|
CONFIG_DIR
|
|
20
21
|
} from "./chunk-3DIGCVL4.js";
|
|
@@ -508,7 +509,9 @@ ${RESULT_INSTRUCTION}`));
|
|
|
508
509
|
}
|
|
509
510
|
if (code === 0 && live.result?.ok) {
|
|
510
511
|
const text = live.result.text?.trim() || r.last_text;
|
|
511
|
-
const result =
|
|
512
|
+
const { result, dropped } = readRunResult(text);
|
|
513
|
+
const lost = droppedLine(dropped, r.work_id);
|
|
514
|
+
if (lost) this.log(lost);
|
|
512
515
|
const { pr, note } = await this.outcome(r, text);
|
|
513
516
|
const summary = [r.switched, note, text].filter(Boolean).join(" ").replace(/\s+/g, " ");
|
|
514
517
|
await this.end(r, {
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
import {
|
|
3
3
|
localRunsFilePath,
|
|
4
4
|
readRunRecords
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-IRRQ55FQ.js";
|
|
6
6
|
import {
|
|
7
7
|
STOPPED_SUMMARY,
|
|
8
8
|
isEndLogLine,
|
|
@@ -10,7 +10,7 @@ import {
|
|
|
10
10
|
readRunnerConfig,
|
|
11
11
|
runLogDir,
|
|
12
12
|
runLogPath
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-VIQF3JF3.js";
|
|
14
14
|
import {
|
|
15
15
|
sanitizeLabel,
|
|
16
16
|
stripControl
|
|
@@ -225,7 +225,13 @@ function whichAll(bin) {
|
|
|
225
225
|
import { execFile, execFileSync as execFileSync2 } from "child_process";
|
|
226
226
|
|
|
227
227
|
// src/run-result.ts
|
|
228
|
-
var RESULT_INSTRUCTION =
|
|
228
|
+
var RESULT_INSTRUCTION = [
|
|
229
|
+
"When you finish, end your final message with a fenced block tagged cloop-result containing JSON, for example:",
|
|
230
|
+
"```cloop-result",
|
|
231
|
+
'{"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"}]}',
|
|
232
|
+
"```",
|
|
233
|
+
"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."
|
|
234
|
+
].join("\n");
|
|
229
235
|
var text = (v, max) => typeof v === "string" && v.length <= max;
|
|
230
236
|
var optionalText = (v, max) => v === void 0 || text(v, max);
|
|
231
237
|
var https = (v) => {
|
|
@@ -245,69 +251,87 @@ function resultPrUrl(finalMessage) {
|
|
|
245
251
|
const prs = result.outputs.flatMap((o) => o.kind === "pr" ? [o.url] : []);
|
|
246
252
|
return prs.at(-1) ?? null;
|
|
247
253
|
}
|
|
248
|
-
|
|
254
|
+
var SUMMARY_MAX = 500;
|
|
255
|
+
function addressOutput(url) {
|
|
256
|
+
const pr = url.match(/\/pull\/(\d+)$/);
|
|
257
|
+
if (pr && prUrlIn(url) === url) return { kind: "pr", title: `Pull request #${pr[1]}`, url };
|
|
258
|
+
const { host, pathname } = new URL(url);
|
|
259
|
+
return { kind: "link", title: `${host}${pathname === "/" ? "" : pathname}`.slice(0, 120), url };
|
|
260
|
+
}
|
|
261
|
+
function cleanOutput(o) {
|
|
262
|
+
if (typeof o === "string") return https(o.trim()) ? addressOutput(o.trim()) : null;
|
|
263
|
+
if (!o || typeof o !== "object") return null;
|
|
264
|
+
const out = o;
|
|
265
|
+
if (!text(out.title, 120)) return null;
|
|
266
|
+
const title = out.title;
|
|
267
|
+
switch (out.kind) {
|
|
268
|
+
case "pr":
|
|
269
|
+
case "link":
|
|
270
|
+
return https(out.url) ? { kind: out.kind, title, url: out.url } : null;
|
|
271
|
+
case "draft":
|
|
272
|
+
return text(out.body, 4e3) && optionalText(out.to, 200) ? {
|
|
273
|
+
kind: "draft",
|
|
274
|
+
title,
|
|
275
|
+
body: out.body,
|
|
276
|
+
...out.to !== void 0 ? { to: out.to } : {}
|
|
277
|
+
} : null;
|
|
278
|
+
case "doc":
|
|
279
|
+
return optionalText(out.body, 8e3) && (out.url === void 0 || https(out.url)) ? {
|
|
280
|
+
kind: "doc",
|
|
281
|
+
title,
|
|
282
|
+
...out.url !== void 0 ? { url: out.url } : {},
|
|
283
|
+
...out.body !== void 0 ? { body: out.body } : {}
|
|
284
|
+
} : null;
|
|
285
|
+
case "file":
|
|
286
|
+
return text(out.path, 400) ? { kind: "file", title, path: out.path } : null;
|
|
287
|
+
default:
|
|
288
|
+
return null;
|
|
289
|
+
}
|
|
290
|
+
}
|
|
291
|
+
function cleanCheck(c) {
|
|
292
|
+
if (!c || typeof c !== "object") return null;
|
|
293
|
+
const check = c;
|
|
294
|
+
if (!text(check.name, 80) || !["passed", "failed", "skipped"].includes(check.outcome))
|
|
295
|
+
return null;
|
|
296
|
+
if (!optionalText(check.detail, 200)) return null;
|
|
297
|
+
return {
|
|
298
|
+
name: check.name,
|
|
299
|
+
outcome: check.outcome,
|
|
300
|
+
...check.detail !== void 0 ? { detail: check.detail } : {}
|
|
301
|
+
};
|
|
302
|
+
}
|
|
303
|
+
function readRunResult(message) {
|
|
304
|
+
const none = { dropped: { outputs: 0, checks: 0 } };
|
|
249
305
|
const block = [...(message ?? "").matchAll(/```cloop-result\s*\n([\s\S]*?)```/g)].at(-1)?.[1];
|
|
250
|
-
if (!block) return
|
|
306
|
+
if (!block) return none;
|
|
251
307
|
try {
|
|
252
308
|
const value = JSON.parse(block);
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
const
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
const clean = [];
|
|
259
|
-
for (const o of outputs) {
|
|
260
|
-
if (!o || !text(o.title, 120)) return void 0;
|
|
261
|
-
switch (o.kind) {
|
|
262
|
-
case "pr":
|
|
263
|
-
case "link":
|
|
264
|
-
if (!https(o.url)) return void 0;
|
|
265
|
-
clean.push({ kind: o.kind, title: o.title, url: o.url });
|
|
266
|
-
break;
|
|
267
|
-
case "draft":
|
|
268
|
-
if (!text(o.body, 4e3) || !optionalText(o.to, 200)) return void 0;
|
|
269
|
-
clean.push({
|
|
270
|
-
kind: "draft",
|
|
271
|
-
title: o.title,
|
|
272
|
-
body: o.body,
|
|
273
|
-
...o.to !== void 0 ? { to: o.to } : {}
|
|
274
|
-
});
|
|
275
|
-
break;
|
|
276
|
-
case "doc":
|
|
277
|
-
if (!optionalText(o.body, 8e3) || o.url !== void 0 && !https(o.url))
|
|
278
|
-
return void 0;
|
|
279
|
-
clean.push({
|
|
280
|
-
kind: "doc",
|
|
281
|
-
title: o.title,
|
|
282
|
-
...o.url !== void 0 ? { url: o.url } : {},
|
|
283
|
-
...o.body !== void 0 ? { body: o.body } : {}
|
|
284
|
-
});
|
|
285
|
-
break;
|
|
286
|
-
case "file":
|
|
287
|
-
if (!text(o.path, 400)) return void 0;
|
|
288
|
-
clean.push({ kind: "file", title: o.title, path: o.path });
|
|
289
|
-
break;
|
|
290
|
-
default:
|
|
291
|
-
return void 0;
|
|
292
|
-
}
|
|
293
|
-
}
|
|
294
|
-
if (checks.some(
|
|
295
|
-
(c) => !c || !text(c.name, 80) || !["passed", "failed", "skipped"].includes(c.outcome) || !optionalText(c.detail, 200)
|
|
296
|
-
))
|
|
297
|
-
return void 0;
|
|
309
|
+
const summary = typeof value?.summary === "string" ? value.summary.trim() : "";
|
|
310
|
+
if (!summary) return none;
|
|
311
|
+
const list = (v) => Array.isArray(v) ? v : [];
|
|
312
|
+
const outputs = list(value.outputs).flatMap((o) => cleanOutput(o) ?? []);
|
|
313
|
+
const checks = list(value.checks).flatMap((c) => cleanCheck(c) ?? []);
|
|
298
314
|
return {
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
315
|
+
result: {
|
|
316
|
+
summary: summary.length > SUMMARY_MAX ? `${summary.slice(0, SUMMARY_MAX - 1)}\u2026` : summary,
|
|
317
|
+
outputs: outputs.slice(0, 10),
|
|
318
|
+
checks: checks.slice(0, 10)
|
|
319
|
+
},
|
|
320
|
+
dropped: {
|
|
321
|
+
outputs: list(value.outputs).length - outputs.length,
|
|
322
|
+
checks: list(value.checks).length - checks.length
|
|
323
|
+
}
|
|
306
324
|
};
|
|
307
325
|
} catch {
|
|
308
|
-
return
|
|
326
|
+
return none;
|
|
309
327
|
}
|
|
310
328
|
}
|
|
329
|
+
function parseRunResult(message) {
|
|
330
|
+
return readRunResult(message).result;
|
|
331
|
+
}
|
|
332
|
+
function droppedLine(dropped, run) {
|
|
333
|
+
return dropped.outputs || dropped.checks ? `result_items_dropped run=${run} outputs=${dropped.outputs} checks=${dropped.checks}` : null;
|
|
334
|
+
}
|
|
311
335
|
|
|
312
336
|
// src/drivers/driver.ts
|
|
313
337
|
var RUNTIME_MODES = /* @__PURE__ */ new Set([
|
|
@@ -438,14 +462,15 @@ function outcomeOf(p) {
|
|
|
438
462
|
const status = run?.status ?? "pending";
|
|
439
463
|
const settled = TERMINAL_RUN.has(status) || Boolean(p.thread.settledAt);
|
|
440
464
|
const text2 = (p.messages ?? []).filter((m) => m.role === "assistant" && m.text).at(-1)?.text?.trim();
|
|
441
|
-
const result =
|
|
465
|
+
const { result, dropped } = readRunResult(text2);
|
|
442
466
|
return {
|
|
443
467
|
status,
|
|
444
468
|
settled,
|
|
445
469
|
kind: settled ? status === "completed" || !run ? "settled" : "failed" : null,
|
|
446
470
|
pr_url: resultPrUrl(text2),
|
|
447
471
|
last_assistant_text: text2 ? text2.slice(0, 300) : null,
|
|
448
|
-
...result ? { result } : {}
|
|
472
|
+
...result ? { result } : {},
|
|
473
|
+
...dropped.outputs || dropped.checks ? { dropped } : {}
|
|
449
474
|
};
|
|
450
475
|
}
|
|
451
476
|
function permissionOf(runtimeMode) {
|
|
@@ -937,6 +962,8 @@ ${RESULT_INSTRUCTION}`, attachments: [] }
|
|
|
937
962
|
...outcome.result ? pr : {}
|
|
938
963
|
});
|
|
939
964
|
} else {
|
|
965
|
+
const lost = outcome.dropped ? droppedLine(outcome.dropped, threadId) : null;
|
|
966
|
+
if (lost) this.log(lost);
|
|
940
967
|
onEvent({
|
|
941
968
|
kind: "settled",
|
|
942
969
|
...outcome.result ? { result: outcome.result } : {},
|
|
@@ -1147,7 +1174,8 @@ export {
|
|
|
1147
1174
|
RESULT_INSTRUCTION,
|
|
1148
1175
|
prUrlIn,
|
|
1149
1176
|
resultPrUrl,
|
|
1150
|
-
|
|
1177
|
+
readRunResult,
|
|
1178
|
+
droppedLine,
|
|
1151
1179
|
RUNTIME_MODES,
|
|
1152
1180
|
BoxToolError,
|
|
1153
1181
|
CLOOP_THREAD_PREFIX,
|
|
@@ -18,7 +18,7 @@ import {
|
|
|
18
18
|
t3BaseDirArgs,
|
|
19
19
|
t3Candidates,
|
|
20
20
|
writeBoxConfig
|
|
21
|
-
} from "./chunk-
|
|
21
|
+
} from "./chunk-VIQF3JF3.js";
|
|
22
22
|
import {
|
|
23
23
|
getMachine,
|
|
24
24
|
shortMachineName
|
|
@@ -29,17 +29,17 @@ import {
|
|
|
29
29
|
} from "./chunk-R3CLO2FB.js";
|
|
30
30
|
import {
|
|
31
31
|
connectWebhook
|
|
32
|
-
} from "./chunk-
|
|
32
|
+
} from "./chunk-QAOAR5OL.js";
|
|
33
33
|
import {
|
|
34
34
|
ConnectFailure,
|
|
35
35
|
connectReport,
|
|
36
36
|
deviceLogin,
|
|
37
37
|
newAttempt,
|
|
38
38
|
sendConnectReport
|
|
39
|
-
} from "./chunk-
|
|
39
|
+
} from "./chunk-VBWETWB5.js";
|
|
40
40
|
import {
|
|
41
41
|
VERSION
|
|
42
|
-
} from "./chunk-
|
|
42
|
+
} from "./chunk-Q2MTOW4O.js";
|
|
43
43
|
import {
|
|
44
44
|
STAGING_ORIGIN,
|
|
45
45
|
getOrigin
|
|
@@ -38,16 +38,16 @@ import {
|
|
|
38
38
|
tilde,
|
|
39
39
|
unitEnv,
|
|
40
40
|
unitFor
|
|
41
|
-
} from "./chunk-
|
|
41
|
+
} from "./chunk-VKEX5FVO.js";
|
|
42
42
|
import "./chunk-MWWA2VH7.js";
|
|
43
|
-
import "./chunk-
|
|
43
|
+
import "./chunk-VIQF3JF3.js";
|
|
44
44
|
import "./chunk-JX6VG5FE.js";
|
|
45
45
|
import "./chunk-VK6GV757.js";
|
|
46
46
|
import "./chunk-R3CLO2FB.js";
|
|
47
|
-
import "./chunk-
|
|
48
|
-
import "./chunk-
|
|
47
|
+
import "./chunk-QAOAR5OL.js";
|
|
48
|
+
import "./chunk-VBWETWB5.js";
|
|
49
49
|
import "./chunk-AG6SI6I2.js";
|
|
50
|
-
import "./chunk-
|
|
50
|
+
import "./chunk-Q2MTOW4O.js";
|
|
51
51
|
import "./chunk-3DIGCVL4.js";
|
|
52
52
|
export {
|
|
53
53
|
DEFAULT_T3_URL,
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import {
|
|
3
3
|
localRunsFilePath
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-IRRQ55FQ.js";
|
|
5
5
|
import {
|
|
6
6
|
installedService,
|
|
7
7
|
revokeOwnDevice,
|
|
8
8
|
runSteps,
|
|
9
9
|
tokenGone
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-VKEX5FVO.js";
|
|
11
11
|
import {
|
|
12
12
|
runnerStatePath,
|
|
13
13
|
threadsFilePath
|
|
@@ -15,14 +15,14 @@ import {
|
|
|
15
15
|
import {
|
|
16
16
|
boxPath,
|
|
17
17
|
readRunnerConfig
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-VIQF3JF3.js";
|
|
19
19
|
import "./chunk-JX6VG5FE.js";
|
|
20
20
|
import "./chunk-VK6GV757.js";
|
|
21
21
|
import "./chunk-R3CLO2FB.js";
|
|
22
|
-
import "./chunk-
|
|
23
|
-
import "./chunk-
|
|
22
|
+
import "./chunk-QAOAR5OL.js";
|
|
23
|
+
import "./chunk-VBWETWB5.js";
|
|
24
24
|
import "./chunk-AG6SI6I2.js";
|
|
25
|
-
import "./chunk-
|
|
25
|
+
import "./chunk-Q2MTOW4O.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-
|
|
4
|
+
} from "./chunk-Q2MTOW4O.js";
|
|
5
5
|
import {
|
|
6
6
|
applyEnvironmentFlag
|
|
7
7
|
} from "./chunk-3DIGCVL4.js";
|
|
@@ -57,7 +57,7 @@ async function main() {
|
|
|
57
57
|
switch (command) {
|
|
58
58
|
case "login":
|
|
59
59
|
case "auth": {
|
|
60
|
-
const { loginCommand } = await import("./login-
|
|
60
|
+
const { loginCommand } = await import("./login-IQSMR2SY.js");
|
|
61
61
|
await loginCommand(argv);
|
|
62
62
|
break;
|
|
63
63
|
}
|
|
@@ -67,57 +67,57 @@ async function main() {
|
|
|
67
67
|
break;
|
|
68
68
|
}
|
|
69
69
|
case "serve": {
|
|
70
|
-
const { startMcpServer } = await import("./mcp-server-
|
|
70
|
+
const { startMcpServer } = await import("./mcp-server-PRPB2JYE.js");
|
|
71
71
|
await startMcpServer();
|
|
72
72
|
break;
|
|
73
73
|
}
|
|
74
74
|
case "statusline": {
|
|
75
|
-
const { statuslineCommand } = await import("./statusline-
|
|
75
|
+
const { statuslineCommand } = await import("./statusline-UVEWJ4BA.js");
|
|
76
76
|
statuslineCommand();
|
|
77
77
|
break;
|
|
78
78
|
}
|
|
79
79
|
case "connect": {
|
|
80
|
-
const { connectCommand } = await import("./connect-
|
|
80
|
+
const { connectCommand } = await import("./connect-CGOALTSO.js");
|
|
81
81
|
await connectCommand(argv.slice(1));
|
|
82
82
|
break;
|
|
83
83
|
}
|
|
84
84
|
case "use": {
|
|
85
|
-
const { useCommand } = await import("./use-
|
|
85
|
+
const { useCommand } = await import("./use-3B33RXZH.js");
|
|
86
86
|
process.exitCode = await useCommand(argv.slice(1));
|
|
87
87
|
break;
|
|
88
88
|
}
|
|
89
89
|
case "disconnect": {
|
|
90
|
-
const { disconnectCommand } = await import("./disconnect-
|
|
90
|
+
const { disconnectCommand } = await import("./disconnect-H3RDATJF.js");
|
|
91
91
|
await disconnectCommand(argv.slice(1));
|
|
92
92
|
break;
|
|
93
93
|
}
|
|
94
94
|
case "box": {
|
|
95
|
-
const { boxCommand } = await import("./box-
|
|
95
|
+
const { boxCommand } = await import("./box-Z4NS6J7A.js");
|
|
96
96
|
await boxCommand(argv.slice(1));
|
|
97
97
|
break;
|
|
98
98
|
}
|
|
99
99
|
case "runs": {
|
|
100
|
-
const { runsCommand } = await import("./runs-
|
|
100
|
+
const { runsCommand } = await import("./runs-BMTJHKBI.js");
|
|
101
101
|
process.exitCode = runsCommand();
|
|
102
102
|
break;
|
|
103
103
|
}
|
|
104
104
|
case "watch": {
|
|
105
|
-
const { watchCommand } = await import("./runs-
|
|
105
|
+
const { watchCommand } = await import("./runs-BMTJHKBI.js");
|
|
106
106
|
process.exitCode = await watchCommand(argv.slice(1));
|
|
107
107
|
break;
|
|
108
108
|
}
|
|
109
109
|
case "takeover": {
|
|
110
|
-
const { takeoverCommand } = await import("./takeover-
|
|
110
|
+
const { takeoverCommand } = await import("./takeover-XL2P7RML.js");
|
|
111
111
|
process.exitCode = await takeoverCommand(argv.slice(1));
|
|
112
112
|
break;
|
|
113
113
|
}
|
|
114
114
|
case "resume": {
|
|
115
|
-
const { resumeCommand } = await import("./runs-
|
|
115
|
+
const { resumeCommand } = await import("./runs-BMTJHKBI.js");
|
|
116
116
|
process.exitCode = await resumeCommand(argv.slice(1));
|
|
117
117
|
break;
|
|
118
118
|
}
|
|
119
119
|
case "runner": {
|
|
120
|
-
const { runnerCommand } = await import("./runner-
|
|
120
|
+
const { runnerCommand } = await import("./runner-JNMWMBIG.js");
|
|
121
121
|
await runnerCommand(argv.slice(1));
|
|
122
122
|
break;
|
|
123
123
|
}
|
|
@@ -3,9 +3,9 @@ import {
|
|
|
3
3
|
deviceLogin,
|
|
4
4
|
loginCommand,
|
|
5
5
|
refusalSentence
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-VBWETWB5.js";
|
|
7
7
|
import "./chunk-AG6SI6I2.js";
|
|
8
|
-
import "./chunk-
|
|
8
|
+
import "./chunk-Q2MTOW4O.js";
|
|
9
9
|
import "./chunk-3DIGCVL4.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-QAOAR5OL.js";
|
|
6
|
+
import "./chunk-VBWETWB5.js";
|
|
7
7
|
import "./chunk-AG6SI6I2.js";
|
|
8
|
-
import "./chunk-
|
|
8
|
+
import "./chunk-Q2MTOW4O.js";
|
|
9
9
|
import "./chunk-3DIGCVL4.js";
|
|
10
10
|
export {
|
|
11
11
|
connectWebhook,
|
|
@@ -8,9 +8,9 @@ import {
|
|
|
8
8
|
runsCommand,
|
|
9
9
|
sessionFolder,
|
|
10
10
|
watchCommand
|
|
11
|
-
} from "./chunk-
|
|
12
|
-
import "./chunk-
|
|
13
|
-
import "./chunk-
|
|
11
|
+
} from "./chunk-V4QYTF6O.js";
|
|
12
|
+
import "./chunk-IRRQ55FQ.js";
|
|
13
|
+
import "./chunk-VIQF3JF3.js";
|
|
14
14
|
import "./chunk-VK6GV757.js";
|
|
15
15
|
import "./chunk-3DIGCVL4.js";
|
|
16
16
|
export {
|
|
@@ -9,11 +9,11 @@ import {
|
|
|
9
9
|
takeoverDir,
|
|
10
10
|
writeTakeoverReply,
|
|
11
11
|
writeTakeoverRequest
|
|
12
|
-
} from "./chunk-
|
|
13
|
-
import "./chunk-
|
|
14
|
-
import "./chunk-
|
|
12
|
+
} from "./chunk-3PIT6YXL.js";
|
|
13
|
+
import "./chunk-V4QYTF6O.js";
|
|
14
|
+
import "./chunk-IRRQ55FQ.js";
|
|
15
15
|
import "./chunk-MWWA2VH7.js";
|
|
16
|
-
import "./chunk-
|
|
16
|
+
import "./chunk-VIQF3JF3.js";
|
|
17
17
|
import "./chunk-JX6VG5FE.js";
|
|
18
18
|
import "./chunk-VK6GV757.js";
|
|
19
19
|
import "./chunk-AG6SI6I2.js";
|
|
@@ -2,19 +2,19 @@
|
|
|
2
2
|
import {
|
|
3
3
|
DRIVER_NAME,
|
|
4
4
|
runConnect
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-VKEX5FVO.js";
|
|
6
6
|
import "./chunk-MWWA2VH7.js";
|
|
7
7
|
import {
|
|
8
8
|
isLocal,
|
|
9
9
|
readRunnerConfig
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-VIQF3JF3.js";
|
|
11
11
|
import "./chunk-JX6VG5FE.js";
|
|
12
12
|
import "./chunk-VK6GV757.js";
|
|
13
13
|
import "./chunk-R3CLO2FB.js";
|
|
14
|
-
import "./chunk-
|
|
15
|
-
import "./chunk-
|
|
14
|
+
import "./chunk-QAOAR5OL.js";
|
|
15
|
+
import "./chunk-VBWETWB5.js";
|
|
16
16
|
import "./chunk-AG6SI6I2.js";
|
|
17
|
-
import "./chunk-
|
|
17
|
+
import "./chunk-Q2MTOW4O.js";
|
|
18
18
|
import "./chunk-3DIGCVL4.js";
|
|
19
19
|
|
|
20
20
|
// src/commands/use.ts
|
package/package.json
CHANGED