@cloop/runner 0.3.61 → 0.3.63
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-OPKO2EY6.js → box-KQU53AKX.js} +22 -14
- package/dist/{chunk-BI2Y5ZCL.js → chunk-5RB7XKPB.js} +2 -1
- package/dist/{chunk-CBUSTVCH.js → chunk-665SIHSP.js} +3 -3
- package/dist/{chunk-TUGKGUV3.js → chunk-7F7JEPHV.js} +1 -1
- package/dist/{chunk-IUBEQ342.js → chunk-B2QRBJ6M.js} +1 -1
- package/dist/{chunk-PTOPXY65.js → chunk-BRHNWQUZ.js} +1 -1
- package/dist/{chunk-OWYY764F.js → chunk-GGCR772B.js} +1 -1
- package/dist/{chunk-LZ4NZTA2.js → chunk-JVL3R7C5.js} +1 -1
- package/dist/{chunk-PMH5WSQK.js → chunk-NGBKGUKZ.js} +13 -2
- package/dist/{chunk-QLZYSUGR.js → chunk-PBG6CEI3.js} +31 -12
- package/dist/{connect-QWFKIR2A.js → connect-PCVBVZFE.js} +9 -7
- package/dist/{disconnect-DYPSIUVQ.js → disconnect-UAZKEKN7.js} +7 -7
- package/dist/{existing-runner-FNLWQGFZ.js → existing-runner-73IABFPZ.js} +7 -7
- package/dist/index.js +14 -14
- package/dist/{login-64IZF4QT.js → login-JUOQ5CEH.js} +2 -2
- package/dist/{mcp-server-X4MIHXI4.js → mcp-server-5OILYLIJ.js} +2 -2
- package/dist/{runner-RHKB5LKX.js → runner-AL2SSJN6.js} +3 -3
- package/dist/{runs-62FX5IQ6.js → runs-FUVWTDJ3.js} +2 -2
- package/dist/{statusline-FKJDEYAA.js → statusline-3HRPL3SD.js} +1 -1
- package/dist/{takeover-FUQV257E.js → takeover-6AEWWDPT.js} +4 -4
- package/dist/{use-RASS2OSW.js → use-SDYC5SES.js} +7 -7
- 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-665SIHSP.js";
|
|
5
|
+
import "./chunk-GGCR772B.js";
|
|
6
6
|
import {
|
|
7
7
|
CAPTURE_TICK_MS,
|
|
8
8
|
DEFAULT_FALLBACK_MODEL,
|
|
@@ -23,6 +23,7 @@ import {
|
|
|
23
23
|
connectCommand,
|
|
24
24
|
findNpx,
|
|
25
25
|
installedService,
|
|
26
|
+
isRelease,
|
|
26
27
|
legacyStagingRunner,
|
|
27
28
|
mintSession,
|
|
28
29
|
moveLegacyStagingRunner,
|
|
@@ -39,7 +40,7 @@ import {
|
|
|
39
40
|
systemServices,
|
|
40
41
|
unitFor,
|
|
41
42
|
which
|
|
42
|
-
} from "./chunk-
|
|
43
|
+
} from "./chunk-PBG6CEI3.js";
|
|
43
44
|
import {
|
|
44
45
|
MeshSocket,
|
|
45
46
|
WAKE_TICK_MS,
|
|
@@ -47,7 +48,7 @@ import {
|
|
|
47
48
|
defaultSocketFactory,
|
|
48
49
|
runnerLog,
|
|
49
50
|
wakeWatch
|
|
50
|
-
} from "./chunk-
|
|
51
|
+
} from "./chunk-5RB7XKPB.js";
|
|
51
52
|
import {
|
|
52
53
|
BoxWatch,
|
|
53
54
|
hostedThreadsFilePath,
|
|
@@ -57,7 +58,7 @@ import {
|
|
|
57
58
|
runnerStatePath,
|
|
58
59
|
threadsFilePath,
|
|
59
60
|
writeRunnerState
|
|
60
|
-
} from "./chunk-
|
|
61
|
+
} from "./chunk-7F7JEPHV.js";
|
|
61
62
|
import {
|
|
62
63
|
BackgroundReading,
|
|
63
64
|
BoxToolError,
|
|
@@ -109,20 +110,20 @@ import {
|
|
|
109
110
|
utcWindow,
|
|
110
111
|
windowsPowerShellEnv,
|
|
111
112
|
writeBoxConfig
|
|
112
|
-
} from "./chunk-
|
|
113
|
+
} from "./chunk-NGBKGUKZ.js";
|
|
113
114
|
import "./chunk-VK6GV757.js";
|
|
114
115
|
import {
|
|
115
116
|
olderThan
|
|
116
117
|
} from "./chunk-365HFCQQ.js";
|
|
117
118
|
import "./chunk-PKIEWBR7.js";
|
|
118
|
-
import "./chunk-
|
|
119
|
-
import "./chunk-
|
|
119
|
+
import "./chunk-B2QRBJ6M.js";
|
|
120
|
+
import "./chunk-JVL3R7C5.js";
|
|
120
121
|
import {
|
|
121
122
|
getMachine
|
|
122
123
|
} from "./chunk-SBYSVZ7J.js";
|
|
123
124
|
import {
|
|
124
125
|
VERSION
|
|
125
|
-
} from "./chunk-
|
|
126
|
+
} from "./chunk-BRHNWQUZ.js";
|
|
126
127
|
import {
|
|
127
128
|
getMeshUrl,
|
|
128
129
|
getOrigin,
|
|
@@ -2672,8 +2673,9 @@ function updateDecision(input) {
|
|
|
2672
2673
|
if (!input.latest) return stay("no_latest");
|
|
2673
2674
|
if (!olderThan(input.current, input.latest)) return stay("current");
|
|
2674
2675
|
if (input.latest === input.failed) return stay("failed_before");
|
|
2675
|
-
if (input.
|
|
2676
|
-
|
|
2676
|
+
if (!input.release) return stay("not_a_release");
|
|
2677
|
+
if (input.unitText === null) return stay("no_service");
|
|
2678
|
+
if (!namesVersion(input.unitText, input.current)) return stay("not_our_service");
|
|
2677
2679
|
if (!input.canDetach) return stay("no_detach");
|
|
2678
2680
|
if (input.running > 0 || input.inFlight > 0) return stay("busy");
|
|
2679
2681
|
return { kind: "hand_over", to: input.latest };
|
|
@@ -2800,6 +2802,7 @@ function selfUpdate(kind, platform = process.platform, onFailed = () => {
|
|
|
2800
2802
|
state.error = error;
|
|
2801
2803
|
onFailed(error, version);
|
|
2802
2804
|
};
|
|
2805
|
+
const release = isRelease(process.argv[1] ?? "");
|
|
2803
2806
|
const canDetach = platform === "darwin" || platform === "win32" || platform === "linux" && which("systemd-run") !== null;
|
|
2804
2807
|
const check = async () => {
|
|
2805
2808
|
state.checked_at = (/* @__PURE__ */ new Date()).toISOString();
|
|
@@ -2867,15 +2870,20 @@ function selfUpdate(kind, platform = process.platform, onFailed = () => {
|
|
|
2867
2870
|
running,
|
|
2868
2871
|
inFlight,
|
|
2869
2872
|
failed: readFailed(),
|
|
2870
|
-
canDetach
|
|
2873
|
+
canDetach,
|
|
2874
|
+
release
|
|
2871
2875
|
});
|
|
2872
2876
|
if (decision.kind === "hand_over") {
|
|
2873
2877
|
lastWhy = null;
|
|
2874
2878
|
handOver(decision.to);
|
|
2875
2879
|
return;
|
|
2876
2880
|
}
|
|
2877
|
-
|
|
2878
|
-
lastWhy
|
|
2881
|
+
const why = `${decision.why}:${latest}`;
|
|
2882
|
+
if (why !== lastWhy && latest) {
|
|
2883
|
+
log(`staying on ${VERSION}: ${decision.why}`);
|
|
2884
|
+
if (decision.why === "not_our_service") fail("not_our_service", latest);
|
|
2885
|
+
}
|
|
2886
|
+
lastWhy = why;
|
|
2879
2887
|
}
|
|
2880
2888
|
};
|
|
2881
2889
|
}
|
|
@@ -34,7 +34,8 @@ var RUNNER_ERRORS = [
|
|
|
34
34
|
"registry_unreachable",
|
|
35
35
|
"fetch_failed",
|
|
36
36
|
"npx_missing",
|
|
37
|
-
"handover_failed"
|
|
37
|
+
"handover_failed",
|
|
38
|
+
"not_our_service"
|
|
38
39
|
];
|
|
39
40
|
var HARNESS_IDS = ["claude-code", "codex", "claudeAgent", "opencode"];
|
|
40
41
|
var UUID = /^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/i;
|
|
@@ -2,17 +2,17 @@
|
|
|
2
2
|
import {
|
|
3
3
|
findRun,
|
|
4
4
|
ownHarness
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-GGCR772B.js";
|
|
6
6
|
import {
|
|
7
7
|
lockThreadsFile,
|
|
8
8
|
threadsFilePath
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-7F7JEPHV.js";
|
|
10
10
|
import {
|
|
11
11
|
localRunsFilePath,
|
|
12
12
|
readRunRecords,
|
|
13
13
|
runHarness,
|
|
14
14
|
takeoverSummary
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-NGBKGUKZ.js";
|
|
16
16
|
import {
|
|
17
17
|
sanitizeLabel
|
|
18
18
|
} from "./chunk-VK6GV757.js";
|
|
@@ -16,6 +16,8 @@ var WIZARD_FOR = "steps only the user can do by hand: a sign-in, an app permissi
|
|
|
16
16
|
var CHECK_BACK_MIN_MINUTES = 5;
|
|
17
17
|
var CHECK_BACK_MAX_MINUTES = 3 * 24 * 60;
|
|
18
18
|
var CHECK_BACK_WHY_MAX = 300;
|
|
19
|
+
var UNDERWAY_MAX = 3;
|
|
20
|
+
var GITHUB_WORK = /^https:\/\/(?:www\.)?github\.com\/[\w.-]+\/[\w.-]+\/(?:pull|issues)\/[1-9]\d*(?:[/?#]|$)/i;
|
|
19
21
|
var RUN_IMAGES_MAX = 6;
|
|
20
22
|
var RUN_IMAGE_MAX_BYTES = 5 * 1024 * 1024;
|
|
21
23
|
var RUN_FILES_MAX = 6;
|
|
@@ -96,7 +98,8 @@ var RESULT_INSTRUCTION = [
|
|
|
96
98
|
"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 GitHub Markdown: headings, lists, bold and tables all show; a table suits one row per item. Give every product, page or source you mention as a full https link.",
|
|
97
99
|
`A wizard is for ${WIZARD_FOR}. When the work needs such a step, return a wizard for it, not only words. A wizard has 1 to ${WIZARD_STEPS_MAX} steps in order, each {"title", "body" in Markdown, optional https "url"}. Never ask the user to paste a password, key or other secret anywhere. The user sees a wizard as a walkthrough: in your own words, call it a walkthrough, never a wizard.`,
|
|
98
100
|
"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.",
|
|
99
|
-
|
|
101
|
+
`When an open GitHub PR or issue already does this Task and you found it, not made it, add "underway": [{"title": "feat: the thing", "url": "https://github.com/org/repo/pull/1"}] to the block, at most ${UNDERWAY_MAX}: Cloop links each one to the Task. Never list it in outputs.`,
|
|
102
|
+
'Your answer shows in the chat as GitHub Markdown, so most answers need no page: write the whole answer above the cloop-result block, and keep the summary to your conclusion or what you did. Make a doc output only when the answer is a document the owner will keep or share, such as a report, a plan or research longer than about 400 words, with its own headings. Then the summary is your conclusion in one or two sentences, such as "I recommend X, because Y.", the doc holds the method and caveats, and it does not repeat the summary. Title a doc for what it says, never "Full answer" or "Summary".'
|
|
100
103
|
].join("\n");
|
|
101
104
|
var MACHINE_RESULT_INSTRUCTION = [
|
|
102
105
|
RESULT_INSTRUCTION,
|
|
@@ -190,6 +193,12 @@ function readCheckBack(v) {
|
|
|
190
193
|
why: why.trim().slice(0, CHECK_BACK_WHY_MAX)
|
|
191
194
|
};
|
|
192
195
|
}
|
|
196
|
+
function readUnderway(v) {
|
|
197
|
+
return (Array.isArray(v) ? v : []).flatMap((u) => {
|
|
198
|
+
const { title, url } = u && typeof u === "object" ? u : {};
|
|
199
|
+
return text(title, 120) && typeof url === "string" && GITHUB_WORK.test(url) ? [{ title, url }] : [];
|
|
200
|
+
}).slice(0, UNDERWAY_MAX);
|
|
201
|
+
}
|
|
193
202
|
function readCheck(c) {
|
|
194
203
|
if (!c || typeof c !== "object") return null;
|
|
195
204
|
const check = c;
|
|
@@ -218,6 +227,7 @@ function readRunResult(message) {
|
|
|
218
227
|
const outputs = list(value?.outputs).flatMap((o) => readOutput(o) ?? []);
|
|
219
228
|
const checks = list(value?.checks).flatMap((c) => readCheck(c) ?? []);
|
|
220
229
|
const checkBack = readCheckBack(value?.check_back);
|
|
230
|
+
const underway = readUnderway(value?.underway);
|
|
221
231
|
return {
|
|
222
232
|
result: {
|
|
223
233
|
summary: summary.length > SUMMARY_MAX ? `${summary.slice(0, SUMMARY_MAX - 1)}\u2026` : summary,
|
|
@@ -225,7 +235,8 @@ function readRunResult(message) {
|
|
|
225
235
|
checks: checks.slice(0, ITEMS_MAX),
|
|
226
236
|
...value?.nothing_new === true ? { nothing_new: true } : {},
|
|
227
237
|
...asks ? { asks: asks.length > ASKS_MAX ? `${asks.slice(0, ASKS_MAX - 1)}\u2026` : asks } : {},
|
|
228
|
-
...checkBack ? { check_back: checkBack } : {}
|
|
238
|
+
...checkBack ? { check_back: checkBack } : {},
|
|
239
|
+
...underway.length ? { underway } : {}
|
|
229
240
|
},
|
|
230
241
|
dropped: { outputs: list(value?.outputs).length - outputs.length, checks: list(value?.checks).length - checks.length }
|
|
231
242
|
};
|
|
@@ -4,12 +4,12 @@ import {
|
|
|
4
4
|
freshness,
|
|
5
5
|
outcomeLine,
|
|
6
6
|
runnerLog
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-5RB7XKPB.js";
|
|
8
8
|
import {
|
|
9
9
|
readRunnerState,
|
|
10
10
|
runnerStatePath,
|
|
11
11
|
threadsFilePath
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-7F7JEPHV.js";
|
|
13
13
|
import {
|
|
14
14
|
BoxToolError,
|
|
15
15
|
CLOOP_THREAD_PREFIX,
|
|
@@ -50,7 +50,7 @@ import {
|
|
|
50
50
|
windowsExecutable,
|
|
51
51
|
windowsPowerShellEnv,
|
|
52
52
|
writeBoxConfig
|
|
53
|
-
} from "./chunk-
|
|
53
|
+
} from "./chunk-NGBKGUKZ.js";
|
|
54
54
|
import {
|
|
55
55
|
CLAUDE_FLOOR,
|
|
56
56
|
CODEX_FLOOR,
|
|
@@ -64,14 +64,14 @@ import {
|
|
|
64
64
|
} from "./chunk-PKIEWBR7.js";
|
|
65
65
|
import {
|
|
66
66
|
connectWebhook
|
|
67
|
-
} from "./chunk-
|
|
67
|
+
} from "./chunk-B2QRBJ6M.js";
|
|
68
68
|
import {
|
|
69
69
|
ConnectFailure,
|
|
70
70
|
connectReport,
|
|
71
71
|
deviceLogin,
|
|
72
72
|
newAttempt,
|
|
73
73
|
sendConnectReport
|
|
74
|
-
} from "./chunk-
|
|
74
|
+
} from "./chunk-JVL3R7C5.js";
|
|
75
75
|
import {
|
|
76
76
|
defaultDeviceName,
|
|
77
77
|
getMachine,
|
|
@@ -79,7 +79,7 @@ import {
|
|
|
79
79
|
} from "./chunk-SBYSVZ7J.js";
|
|
80
80
|
import {
|
|
81
81
|
VERSION
|
|
82
|
-
} from "./chunk-
|
|
82
|
+
} from "./chunk-BRHNWQUZ.js";
|
|
83
83
|
import {
|
|
84
84
|
STAGING_ORIGIN,
|
|
85
85
|
getOrigin,
|
|
@@ -94,6 +94,7 @@ import {
|
|
|
94
94
|
existsSync as existsSync6,
|
|
95
95
|
mkdirSync as mkdirSync3,
|
|
96
96
|
readdirSync as readdirSync4,
|
|
97
|
+
realpathSync as realpathSync2,
|
|
97
98
|
rmSync as rmSync3,
|
|
98
99
|
statSync as statSync2,
|
|
99
100
|
writeFileSync as writeFileSync2
|
|
@@ -2700,15 +2701,32 @@ var endDaemonStep = (environment) => ({
|
|
|
2700
2701
|
mayFail: true
|
|
2701
2702
|
});
|
|
2702
2703
|
function programFor(script, node, npx, version) {
|
|
2703
|
-
if (
|
|
2704
|
+
if (!isRelease(script)) return [node, script, "box", "run"];
|
|
2704
2705
|
if (!npx)
|
|
2705
|
-
return "npx is not on PATH, so the service cannot run Cloop. Install
|
|
2706
|
+
return "npx is not on PATH, so the service cannot run Cloop. Install Node.js with npm, which ships npx, and run `cloop connect` again.";
|
|
2706
2707
|
return [npx, "-y", `@cloop/runner@${version}`, "box", "run"];
|
|
2707
2708
|
}
|
|
2708
|
-
function
|
|
2709
|
-
const
|
|
2710
|
-
|
|
2711
|
-
|
|
2709
|
+
function isRelease(script) {
|
|
2710
|
+
const published = (path) => /[\\/](_npx|node_modules)[\\/]/.test(path);
|
|
2711
|
+
try {
|
|
2712
|
+
return published(realpathSync2(script));
|
|
2713
|
+
} catch {
|
|
2714
|
+
return published(script);
|
|
2715
|
+
}
|
|
2716
|
+
}
|
|
2717
|
+
var NPX = process.platform === "win32" ? "npx.cmd" : "npx";
|
|
2718
|
+
function findNpx(execPath = process.execPath, onPath = which(NPX)) {
|
|
2719
|
+
const beside = join8(dirname3(execPath), NPX);
|
|
2720
|
+
if (!existsSync6(beside)) return onPath;
|
|
2721
|
+
const opt = beside.replace(/\/Cellar\/([^/]+)\/[^/]+\//, "/opt/$1/");
|
|
2722
|
+
return [onPath, opt].find((path) => path && path !== beside && sameFile(path, beside)) ?? beside;
|
|
2723
|
+
}
|
|
2724
|
+
function sameFile(a, b) {
|
|
2725
|
+
try {
|
|
2726
|
+
return realpathSync2(a) === realpathSync2(b);
|
|
2727
|
+
} catch {
|
|
2728
|
+
return false;
|
|
2729
|
+
}
|
|
2712
2730
|
}
|
|
2713
2731
|
var FIRST_CONNECT_MS = 9e4;
|
|
2714
2732
|
async function awaitDaemon(since, read = readRunnerState, { timeoutMs = FIRST_CONNECT_MS, pollMs = 500 } = {}) {
|
|
@@ -3650,6 +3668,7 @@ export {
|
|
|
3650
3668
|
registerTaskScript,
|
|
3651
3669
|
endDaemonScript,
|
|
3652
3670
|
programFor,
|
|
3671
|
+
isRelease,
|
|
3653
3672
|
findNpx,
|
|
3654
3673
|
FIRST_CONNECT_MS,
|
|
3655
3674
|
awaitDaemon,
|
|
@@ -26,6 +26,7 @@ import {
|
|
|
26
26
|
findNpx,
|
|
27
27
|
harnessesFound,
|
|
28
28
|
installedService,
|
|
29
|
+
isRelease,
|
|
29
30
|
isWorkstation,
|
|
30
31
|
mcpHarnesses,
|
|
31
32
|
mintSession,
|
|
@@ -54,17 +55,17 @@ import {
|
|
|
54
55
|
which,
|
|
55
56
|
workFolder,
|
|
56
57
|
workFolderLine
|
|
57
|
-
} from "./chunk-
|
|
58
|
-
import "./chunk-
|
|
59
|
-
import "./chunk-
|
|
60
|
-
import "./chunk-
|
|
58
|
+
} from "./chunk-PBG6CEI3.js";
|
|
59
|
+
import "./chunk-5RB7XKPB.js";
|
|
60
|
+
import "./chunk-7F7JEPHV.js";
|
|
61
|
+
import "./chunk-NGBKGUKZ.js";
|
|
61
62
|
import "./chunk-VK6GV757.js";
|
|
62
63
|
import "./chunk-365HFCQQ.js";
|
|
63
64
|
import "./chunk-PKIEWBR7.js";
|
|
64
|
-
import "./chunk-
|
|
65
|
-
import "./chunk-
|
|
65
|
+
import "./chunk-B2QRBJ6M.js";
|
|
66
|
+
import "./chunk-JVL3R7C5.js";
|
|
66
67
|
import "./chunk-SBYSVZ7J.js";
|
|
67
|
-
import "./chunk-
|
|
68
|
+
import "./chunk-BRHNWQUZ.js";
|
|
68
69
|
import "./chunk-D5UZW42X.js";
|
|
69
70
|
export {
|
|
70
71
|
DEFAULT_T3_URL,
|
|
@@ -93,6 +94,7 @@ export {
|
|
|
93
94
|
findNpx,
|
|
94
95
|
harnessesFound,
|
|
95
96
|
installedService,
|
|
97
|
+
isRelease,
|
|
96
98
|
isWorkstation,
|
|
97
99
|
mcpHarnesses,
|
|
98
100
|
mintSession,
|
|
@@ -7,17 +7,17 @@ import {
|
|
|
7
7
|
runnerOrigin,
|
|
8
8
|
stopService,
|
|
9
9
|
unitOrigin
|
|
10
|
-
} from "./chunk-
|
|
11
|
-
import "./chunk-
|
|
12
|
-
import "./chunk-
|
|
13
|
-
import "./chunk-
|
|
10
|
+
} from "./chunk-PBG6CEI3.js";
|
|
11
|
+
import "./chunk-5RB7XKPB.js";
|
|
12
|
+
import "./chunk-7F7JEPHV.js";
|
|
13
|
+
import "./chunk-NGBKGUKZ.js";
|
|
14
14
|
import "./chunk-VK6GV757.js";
|
|
15
15
|
import "./chunk-365HFCQQ.js";
|
|
16
16
|
import "./chunk-PKIEWBR7.js";
|
|
17
|
-
import "./chunk-
|
|
18
|
-
import "./chunk-
|
|
17
|
+
import "./chunk-B2QRBJ6M.js";
|
|
18
|
+
import "./chunk-JVL3R7C5.js";
|
|
19
19
|
import "./chunk-SBYSVZ7J.js";
|
|
20
|
-
import "./chunk-
|
|
20
|
+
import "./chunk-BRHNWQUZ.js";
|
|
21
21
|
import "./chunk-D5UZW42X.js";
|
|
22
22
|
export {
|
|
23
23
|
disconnect,
|
|
@@ -2,17 +2,17 @@
|
|
|
2
2
|
import {
|
|
3
3
|
existingRunnerEnvironment,
|
|
4
4
|
pinExistingRunner
|
|
5
|
-
} from "./chunk-
|
|
6
|
-
import "./chunk-
|
|
7
|
-
import "./chunk-
|
|
8
|
-
import "./chunk-
|
|
5
|
+
} from "./chunk-PBG6CEI3.js";
|
|
6
|
+
import "./chunk-5RB7XKPB.js";
|
|
7
|
+
import "./chunk-7F7JEPHV.js";
|
|
8
|
+
import "./chunk-NGBKGUKZ.js";
|
|
9
9
|
import "./chunk-VK6GV757.js";
|
|
10
10
|
import "./chunk-365HFCQQ.js";
|
|
11
11
|
import "./chunk-PKIEWBR7.js";
|
|
12
|
-
import "./chunk-
|
|
13
|
-
import "./chunk-
|
|
12
|
+
import "./chunk-B2QRBJ6M.js";
|
|
13
|
+
import "./chunk-JVL3R7C5.js";
|
|
14
14
|
import "./chunk-SBYSVZ7J.js";
|
|
15
|
-
import "./chunk-
|
|
15
|
+
import "./chunk-BRHNWQUZ.js";
|
|
16
16
|
import "./chunk-D5UZW42X.js";
|
|
17
17
|
export {
|
|
18
18
|
existingRunnerEnvironment,
|
package/dist/index.js
CHANGED
|
@@ -4,7 +4,7 @@ import {
|
|
|
4
4
|
} from "./chunk-365HFCQQ.js";
|
|
5
5
|
import {
|
|
6
6
|
VERSION
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-BRHNWQUZ.js";
|
|
8
8
|
import {
|
|
9
9
|
applyEnvironmentFlag
|
|
10
10
|
} from "./chunk-D5UZW42X.js";
|
|
@@ -69,7 +69,7 @@ Add --staging to any command to use Cloop staging instead of production.
|
|
|
69
69
|
A production machine and a staging machine can run side by side on one computer.
|
|
70
70
|
`;
|
|
71
71
|
async function pinExistingRunner() {
|
|
72
|
-
const { pinExistingRunner: pin } = await import("./existing-runner-
|
|
72
|
+
const { pinExistingRunner: pin } = await import("./existing-runner-73IABFPZ.js");
|
|
73
73
|
const { note } = pin();
|
|
74
74
|
if (note) console.error(note);
|
|
75
75
|
}
|
|
@@ -77,7 +77,7 @@ async function main() {
|
|
|
77
77
|
switch (command) {
|
|
78
78
|
case "login":
|
|
79
79
|
case "auth": {
|
|
80
|
-
const { loginCommand } = await import("./login-
|
|
80
|
+
const { loginCommand } = await import("./login-JUOQ5CEH.js");
|
|
81
81
|
await loginCommand(argv);
|
|
82
82
|
break;
|
|
83
83
|
}
|
|
@@ -87,61 +87,61 @@ async function main() {
|
|
|
87
87
|
break;
|
|
88
88
|
}
|
|
89
89
|
case "serve": {
|
|
90
|
-
const { startMcpServer } = await import("./mcp-server-
|
|
90
|
+
const { startMcpServer } = await import("./mcp-server-5OILYLIJ.js");
|
|
91
91
|
await startMcpServer();
|
|
92
92
|
break;
|
|
93
93
|
}
|
|
94
94
|
case "statusline": {
|
|
95
|
-
const { statuslineCommand } = await import("./statusline-
|
|
95
|
+
const { statuslineCommand } = await import("./statusline-3HRPL3SD.js");
|
|
96
96
|
statuslineCommand();
|
|
97
97
|
break;
|
|
98
98
|
}
|
|
99
99
|
case "connect": {
|
|
100
|
-
const { connectCommand } = await import("./connect-
|
|
100
|
+
const { connectCommand } = await import("./connect-PCVBVZFE.js");
|
|
101
101
|
await connectCommand(argv.slice(1));
|
|
102
102
|
break;
|
|
103
103
|
}
|
|
104
104
|
case "use": {
|
|
105
|
-
const { useCommand } = await import("./use-
|
|
105
|
+
const { useCommand } = await import("./use-SDYC5SES.js");
|
|
106
106
|
process.exitCode = await useCommand(argv.slice(1));
|
|
107
107
|
break;
|
|
108
108
|
}
|
|
109
109
|
case "disconnect": {
|
|
110
|
-
const { disconnectCommand } = await import("./disconnect-
|
|
110
|
+
const { disconnectCommand } = await import("./disconnect-UAZKEKN7.js");
|
|
111
111
|
await disconnectCommand(argv.slice(1));
|
|
112
112
|
break;
|
|
113
113
|
}
|
|
114
114
|
case "box": {
|
|
115
|
-
const { boxCommand } = await import("./box-
|
|
115
|
+
const { boxCommand } = await import("./box-KQU53AKX.js");
|
|
116
116
|
await boxCommand(argv.slice(1));
|
|
117
117
|
break;
|
|
118
118
|
}
|
|
119
119
|
case "runs": {
|
|
120
120
|
await pinExistingRunner();
|
|
121
|
-
const { runsCommand } = await import("./runs-
|
|
121
|
+
const { runsCommand } = await import("./runs-FUVWTDJ3.js");
|
|
122
122
|
process.exitCode = runsCommand();
|
|
123
123
|
break;
|
|
124
124
|
}
|
|
125
125
|
case "watch": {
|
|
126
126
|
await pinExistingRunner();
|
|
127
|
-
const { watchCommand } = await import("./runs-
|
|
127
|
+
const { watchCommand } = await import("./runs-FUVWTDJ3.js");
|
|
128
128
|
process.exitCode = await watchCommand(argv.slice(1));
|
|
129
129
|
break;
|
|
130
130
|
}
|
|
131
131
|
case "takeover": {
|
|
132
132
|
await pinExistingRunner();
|
|
133
|
-
const { takeoverCommand } = await import("./takeover-
|
|
133
|
+
const { takeoverCommand } = await import("./takeover-6AEWWDPT.js");
|
|
134
134
|
process.exitCode = await takeoverCommand(argv.slice(1));
|
|
135
135
|
break;
|
|
136
136
|
}
|
|
137
137
|
case "resume": {
|
|
138
138
|
await pinExistingRunner();
|
|
139
|
-
const { resumeCommand } = await import("./runs-
|
|
139
|
+
const { resumeCommand } = await import("./runs-FUVWTDJ3.js");
|
|
140
140
|
process.exitCode = await resumeCommand(argv.slice(1));
|
|
141
141
|
break;
|
|
142
142
|
}
|
|
143
143
|
case "runner": {
|
|
144
|
-
const { runnerCommand } = await import("./runner-
|
|
144
|
+
const { runnerCommand } = await import("./runner-AL2SSJN6.js");
|
|
145
145
|
await runnerCommand(argv.slice(1));
|
|
146
146
|
break;
|
|
147
147
|
}
|
|
@@ -3,9 +3,9 @@ import {
|
|
|
3
3
|
deviceLogin,
|
|
4
4
|
loginCommand,
|
|
5
5
|
refusalSentence
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-JVL3R7C5.js";
|
|
7
7
|
import "./chunk-SBYSVZ7J.js";
|
|
8
|
-
import "./chunk-
|
|
8
|
+
import "./chunk-BRHNWQUZ.js";
|
|
9
9
|
import "./chunk-D5UZW42X.js";
|
|
10
10
|
export {
|
|
11
11
|
deviceLogin,
|
|
@@ -14,7 +14,7 @@ import {
|
|
|
14
14
|
import {
|
|
15
15
|
MeshSocket,
|
|
16
16
|
defaultSocketFactory
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-5RB7XKPB.js";
|
|
18
18
|
import {
|
|
19
19
|
sanitizeLabel,
|
|
20
20
|
sanitizeUntrusted
|
|
@@ -31,7 +31,7 @@ import {
|
|
|
31
31
|
} from "./chunk-SBYSVZ7J.js";
|
|
32
32
|
import {
|
|
33
33
|
VERSION
|
|
34
|
-
} from "./chunk-
|
|
34
|
+
} from "./chunk-BRHNWQUZ.js";
|
|
35
35
|
import {
|
|
36
36
|
getMeshUrl,
|
|
37
37
|
getToken
|
|
@@ -2,10 +2,10 @@
|
|
|
2
2
|
import {
|
|
3
3
|
connectWebhook,
|
|
4
4
|
runnerCommand
|
|
5
|
-
} from "./chunk-
|
|
6
|
-
import "./chunk-
|
|
5
|
+
} from "./chunk-B2QRBJ6M.js";
|
|
6
|
+
import "./chunk-JVL3R7C5.js";
|
|
7
7
|
import "./chunk-SBYSVZ7J.js";
|
|
8
|
-
import "./chunk-
|
|
8
|
+
import "./chunk-BRHNWQUZ.js";
|
|
9
9
|
import "./chunk-D5UZW42X.js";
|
|
10
10
|
export {
|
|
11
11
|
connectWebhook,
|
|
@@ -9,8 +9,8 @@ import {
|
|
|
9
9
|
runsCommand,
|
|
10
10
|
sessionFolder,
|
|
11
11
|
watchCommand
|
|
12
|
-
} from "./chunk-
|
|
13
|
-
import "./chunk-
|
|
12
|
+
} from "./chunk-GGCR772B.js";
|
|
13
|
+
import "./chunk-NGBKGUKZ.js";
|
|
14
14
|
import "./chunk-VK6GV757.js";
|
|
15
15
|
import "./chunk-D5UZW42X.js";
|
|
16
16
|
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-665SIHSP.js";
|
|
13
|
+
import "./chunk-GGCR772B.js";
|
|
14
|
+
import "./chunk-7F7JEPHV.js";
|
|
15
|
+
import "./chunk-NGBKGUKZ.js";
|
|
16
16
|
import "./chunk-VK6GV757.js";
|
|
17
17
|
import "./chunk-SBYSVZ7J.js";
|
|
18
18
|
import "./chunk-D5UZW42X.js";
|
|
@@ -3,20 +3,20 @@ import {
|
|
|
3
3
|
DRIVER_NAME,
|
|
4
4
|
pinExistingRunner,
|
|
5
5
|
runConnect
|
|
6
|
-
} from "./chunk-
|
|
7
|
-
import "./chunk-
|
|
8
|
-
import "./chunk-
|
|
6
|
+
} from "./chunk-PBG6CEI3.js";
|
|
7
|
+
import "./chunk-5RB7XKPB.js";
|
|
8
|
+
import "./chunk-7F7JEPHV.js";
|
|
9
9
|
import {
|
|
10
10
|
isLocal,
|
|
11
11
|
readRunnerConfig
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-NGBKGUKZ.js";
|
|
13
13
|
import "./chunk-VK6GV757.js";
|
|
14
14
|
import "./chunk-365HFCQQ.js";
|
|
15
15
|
import "./chunk-PKIEWBR7.js";
|
|
16
|
-
import "./chunk-
|
|
17
|
-
import "./chunk-
|
|
16
|
+
import "./chunk-B2QRBJ6M.js";
|
|
17
|
+
import "./chunk-JVL3R7C5.js";
|
|
18
18
|
import "./chunk-SBYSVZ7J.js";
|
|
19
|
-
import "./chunk-
|
|
19
|
+
import "./chunk-BRHNWQUZ.js";
|
|
20
20
|
import "./chunk-D5UZW42X.js";
|
|
21
21
|
|
|
22
22
|
// src/commands/use.ts
|
package/package.json
CHANGED