@cloop/runner 0.3.62 → 0.3.64
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-3CZIKC6H.js → box-OQO3DWIN.js} +23 -14
- package/dist/{chunk-CUSQXHR6.js → chunk-7AB5JOZN.js} +1 -1
- package/dist/{chunk-LFSIT2WB.js → chunk-BRDSWUDJ.js} +1 -1
- package/dist/{chunk-J247WS7A.js → chunk-DXX7OIZK.js} +21 -6
- package/dist/{chunk-IRXCIO7U.js → chunk-FN2G5ZWH.js} +3 -3
- package/dist/{chunk-7YTPL6VG.js → chunk-GJVUF4SB.js} +1 -1
- package/dist/{chunk-DTAMCVUY.js → chunk-MSCSQNNI.js} +18 -9
- package/dist/{chunk-ADT3PMYQ.js → chunk-QYPDDIJL.js} +1 -1
- package/dist/{chunk-NOKR7P5V.js → chunk-RTLLZQWP.js} +1 -1
- package/dist/{connect-ERGLJSZO.js → connect-TSDASBHE.js} +6 -6
- package/dist/{disconnect-7JNCCZOP.js → disconnect-MI2MKB37.js} +6 -6
- package/dist/{existing-runner-2KYDHSFA.js → existing-runner-ZCFTLQ3Q.js} +6 -6
- package/dist/index.js +14 -14
- package/dist/{login-ID3ZTPSR.js → login-NTPTTFH6.js} +2 -2
- package/dist/{mcp-server-4CJUB63Q.js → mcp-server-3HANVJQE.js} +1 -1
- package/dist/{runner-GL4F3GUD.js → runner-UUSWMN54.js} +3 -3
- package/dist/{runs-WMZTZXJ6.js → runs-Q3ONIMHU.js} +2 -2
- package/dist/{statusline-JXETQIKS.js → statusline-3TMAMI7F.js} +1 -1
- package/dist/{takeover-CSFKISDC.js → takeover-GTOQXWAM.js} +4 -4
- package/dist/{use-LRGHLUC3.js → use-N27RLY7L.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-FN2G5ZWH.js";
|
|
5
|
+
import "./chunk-QYPDDIJL.js";
|
|
6
6
|
import {
|
|
7
7
|
CAPTURE_TICK_MS,
|
|
8
8
|
DEFAULT_FALLBACK_MODEL,
|
|
@@ -40,7 +40,7 @@ import {
|
|
|
40
40
|
systemServices,
|
|
41
41
|
unitFor,
|
|
42
42
|
which
|
|
43
|
-
} from "./chunk-
|
|
43
|
+
} from "./chunk-MSCSQNNI.js";
|
|
44
44
|
import {
|
|
45
45
|
MeshSocket,
|
|
46
46
|
WAKE_TICK_MS,
|
|
@@ -58,7 +58,7 @@ import {
|
|
|
58
58
|
runnerStatePath,
|
|
59
59
|
threadsFilePath,
|
|
60
60
|
writeRunnerState
|
|
61
|
-
} from "./chunk-
|
|
61
|
+
} from "./chunk-7AB5JOZN.js";
|
|
62
62
|
import {
|
|
63
63
|
BackgroundReading,
|
|
64
64
|
BoxToolError,
|
|
@@ -110,20 +110,20 @@ import {
|
|
|
110
110
|
utcWindow,
|
|
111
111
|
windowsPowerShellEnv,
|
|
112
112
|
writeBoxConfig
|
|
113
|
-
} from "./chunk-
|
|
113
|
+
} from "./chunk-DXX7OIZK.js";
|
|
114
114
|
import "./chunk-VK6GV757.js";
|
|
115
115
|
import {
|
|
116
116
|
olderThan
|
|
117
117
|
} from "./chunk-365HFCQQ.js";
|
|
118
118
|
import "./chunk-PKIEWBR7.js";
|
|
119
|
-
import "./chunk-
|
|
120
|
-
import "./chunk-
|
|
119
|
+
import "./chunk-GJVUF4SB.js";
|
|
120
|
+
import "./chunk-RTLLZQWP.js";
|
|
121
121
|
import {
|
|
122
122
|
getMachine
|
|
123
123
|
} from "./chunk-SBYSVZ7J.js";
|
|
124
124
|
import {
|
|
125
125
|
VERSION
|
|
126
|
-
} from "./chunk-
|
|
126
|
+
} from "./chunk-BRDSWUDJ.js";
|
|
127
127
|
import {
|
|
128
128
|
getMeshUrl,
|
|
129
129
|
getOrigin,
|
|
@@ -547,6 +547,7 @@ function coreRequestId(kind, id) {
|
|
|
547
547
|
return REQUEST_ID.test(plain) ? plain : `${kind}-${createHash("sha256").update(id).digest("hex").slice(0, 40)}`;
|
|
548
548
|
}
|
|
549
549
|
var CLOOP_SESSION_PREFIX = "cr_cloop-";
|
|
550
|
+
var isCloopSession = (s) => s.session_id.startsWith(CLOOP_SESSION_PREFIX);
|
|
550
551
|
var MOVES_MAX = 16;
|
|
551
552
|
function movedSessionId(thread, n) {
|
|
552
553
|
const id = `${thread.replace(/^cr_/, "")}-m${n}`;
|
|
@@ -1078,7 +1079,7 @@ var CloudroomDriver = class {
|
|
|
1078
1079
|
unsettled: running.length,
|
|
1079
1080
|
running: running.length,
|
|
1080
1081
|
settled: sessions.length - running.length,
|
|
1081
|
-
cloop: running.filter(
|
|
1082
|
+
cloop: running.filter(isCloopSession).length
|
|
1082
1083
|
},
|
|
1083
1084
|
...usage ? { token_usage: usage.tokenUsage() } : {}
|
|
1084
1085
|
};
|
|
@@ -1114,8 +1115,8 @@ var CloudroomDriver = class {
|
|
|
1114
1115
|
title: s.session_id,
|
|
1115
1116
|
status: busy(s) ? "running" : DEAD.has(s.state) ? "failed" : "completed",
|
|
1116
1117
|
branch: null,
|
|
1117
|
-
source: s
|
|
1118
|
-
cloop: s
|
|
1118
|
+
source: isCloopSession(s) ? "cloop" : "cloudroom",
|
|
1119
|
+
cloop: isCloopSession(s),
|
|
1119
1120
|
settled: !busy(s),
|
|
1120
1121
|
updatedAt: new Date(s.last_activity_ms ?? 0).toISOString()
|
|
1121
1122
|
})
|
|
@@ -1133,6 +1134,7 @@ var CloudroomDriver = class {
|
|
|
1133
1134
|
unsettled: running.length,
|
|
1134
1135
|
settled: sessions.length - running.length,
|
|
1135
1136
|
running: running.length,
|
|
1137
|
+
cloopRunning: running.filter(isCloopSession).length,
|
|
1136
1138
|
threads: shown
|
|
1137
1139
|
};
|
|
1138
1140
|
}
|
|
@@ -3282,11 +3284,18 @@ async function run2() {
|
|
|
3282
3284
|
);
|
|
3283
3285
|
const repos = await driver.checkouts?.().catch(() => lastRepos);
|
|
3284
3286
|
lastRepos = repos ?? lastRepos;
|
|
3285
|
-
return {
|
|
3287
|
+
return {
|
|
3288
|
+
shown,
|
|
3289
|
+
running: listed.running,
|
|
3290
|
+
cloopRunning: listed.cloopRunning,
|
|
3291
|
+
outsideThreads,
|
|
3292
|
+
repos: lastRepos
|
|
3293
|
+
};
|
|
3286
3294
|
},
|
|
3287
3295
|
{
|
|
3288
3296
|
shown: showsOtherThreads(readRunnerConfig()),
|
|
3289
3297
|
running: 0,
|
|
3298
|
+
cloopRunning: 0,
|
|
3290
3299
|
outsideThreads: [],
|
|
3291
3300
|
repos: void 0
|
|
3292
3301
|
},
|
|
@@ -3314,7 +3323,7 @@ async function run2() {
|
|
|
3314
3323
|
try {
|
|
3315
3324
|
await renew();
|
|
3316
3325
|
const callsBefore = callsStarted;
|
|
3317
|
-
const { shown, running, outsideThreads, repos } = await readDriver();
|
|
3326
|
+
const { shown, running, cloopRunning, outsideThreads, repos } = await readDriver();
|
|
3318
3327
|
lastBeatAt = (/* @__PURE__ */ new Date()).toISOString();
|
|
3319
3328
|
socket.sendPresence(
|
|
3320
3329
|
boxPresence({
|
|
@@ -3330,7 +3339,7 @@ async function run2() {
|
|
|
3330
3339
|
...repos ? { repos } : {}
|
|
3331
3340
|
})
|
|
3332
3341
|
);
|
|
3333
|
-
update?.beat({ running, inFlight: inFlight + callsStarted - callsBefore });
|
|
3342
|
+
update?.beat({ running: cloopRunning, inFlight: inFlight + callsStarted - callsBefore });
|
|
3334
3343
|
} finally {
|
|
3335
3344
|
beating = false;
|
|
3336
3345
|
}
|
|
@@ -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,6 +98,7 @@ 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.",
|
|
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.`,
|
|
99
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 = [
|
|
@@ -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
|
};
|
|
@@ -1759,6 +1770,7 @@ var SHELL_HEADERS = { "x-t3-orchestration-protocol": "2" };
|
|
|
1759
1770
|
function boxCapabilities(scope) {
|
|
1760
1771
|
return hasScope(scope, "orchestration:operate") ? ["view", "start", "steer"] : ["view"];
|
|
1761
1772
|
}
|
|
1773
|
+
var isCloop = (t) => (t.title ?? "").startsWith(CLOOP_THREAD_PREFIX);
|
|
1762
1774
|
function threadView(t) {
|
|
1763
1775
|
return {
|
|
1764
1776
|
id: t.id,
|
|
@@ -1766,7 +1778,7 @@ function threadView(t) {
|
|
|
1766
1778
|
status: t.status,
|
|
1767
1779
|
branch: t.branch ?? null,
|
|
1768
1780
|
source: t.creationSource ?? null,
|
|
1769
|
-
cloop: (t
|
|
1781
|
+
cloop: isCloop(t),
|
|
1770
1782
|
settled: Boolean(t.settledAt),
|
|
1771
1783
|
updatedAt: t.updatedAt
|
|
1772
1784
|
};
|
|
@@ -1910,7 +1922,7 @@ var T3Driver = class {
|
|
|
1910
1922
|
unsettled: unsettled.length,
|
|
1911
1923
|
running: unsettled.filter((t) => t.status === "running").length,
|
|
1912
1924
|
settled: threads.length - unsettled.length,
|
|
1913
|
-
cloop: unsettled.filter(
|
|
1925
|
+
cloop: unsettled.filter(isCloop).length
|
|
1914
1926
|
},
|
|
1915
1927
|
token_usage: this.tokenUsage()
|
|
1916
1928
|
};
|
|
@@ -1957,6 +1969,7 @@ var T3Driver = class {
|
|
|
1957
1969
|
unsettled: all.filter(isUnsettled).length,
|
|
1958
1970
|
settled: all.length - all.filter(isUnsettled).length,
|
|
1959
1971
|
running: threads.filter((t) => t.status === "running").length,
|
|
1972
|
+
cloopRunning: all.filter((t) => t.status === "running" && isCloop(t)).length,
|
|
1960
1973
|
threads: listed.map((t) => {
|
|
1961
1974
|
const view = threadView(t);
|
|
1962
1975
|
const waiting = asks.get(t.id);
|
|
@@ -2215,8 +2228,7 @@ var T3Driver = class {
|
|
|
2215
2228
|
*/
|
|
2216
2229
|
async settle(threadId, commandId) {
|
|
2217
2230
|
const p = await this.readProjection(threadId);
|
|
2218
|
-
if (!(p.thread
|
|
2219
|
-
return { settled: false, refused: "not_cloop" };
|
|
2231
|
+
if (!isCloop(p.thread)) return { settled: false, refused: "not_cloop" };
|
|
2220
2232
|
if (p.thread.settledAt) return { settled: true, already: true };
|
|
2221
2233
|
if (latestRun(p.runs ?? [])?.status !== "completed")
|
|
2222
2234
|
return { settled: false, refused: "not_finished" };
|
|
@@ -2969,11 +2981,14 @@ var LocalDriver = class {
|
|
|
2969
2981
|
...asks.length ? { asks: asks.map((a) => ({ question_id: a.request_id, question: a.summary })) } : {}
|
|
2970
2982
|
};
|
|
2971
2983
|
});
|
|
2984
|
+
const running = shown.filter((t) => t.status === "running").length;
|
|
2972
2985
|
return {
|
|
2973
2986
|
scope,
|
|
2974
2987
|
unsettled: unsettled.length,
|
|
2975
2988
|
settled: all.length - unsettled.length,
|
|
2976
|
-
running
|
|
2989
|
+
running,
|
|
2990
|
+
// The daemon owns every run's harness process here, the owner's adopted sessions too.
|
|
2991
|
+
cloopRunning: running,
|
|
2977
2992
|
threads: orderThreads([...shown, ...await this.ownSessions()], limit)
|
|
2978
2993
|
};
|
|
2979
2994
|
}
|
|
@@ -2,17 +2,17 @@
|
|
|
2
2
|
import {
|
|
3
3
|
findRun,
|
|
4
4
|
ownHarness
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-QYPDDIJL.js";
|
|
6
6
|
import {
|
|
7
7
|
lockThreadsFile,
|
|
8
8
|
threadsFilePath
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-7AB5JOZN.js";
|
|
10
10
|
import {
|
|
11
11
|
localRunsFilePath,
|
|
12
12
|
readRunRecords,
|
|
13
13
|
runHarness,
|
|
14
14
|
takeoverSummary
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-DXX7OIZK.js";
|
|
16
16
|
import {
|
|
17
17
|
sanitizeLabel
|
|
18
18
|
} from "./chunk-VK6GV757.js";
|
|
@@ -9,7 +9,7 @@ import {
|
|
|
9
9
|
readRunnerState,
|
|
10
10
|
runnerStatePath,
|
|
11
11
|
threadsFilePath
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-7AB5JOZN.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-DXX7OIZK.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-GJVUF4SB.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-RTLLZQWP.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-BRDSWUDJ.js";
|
|
83
83
|
import {
|
|
84
84
|
STAGING_ORIGIN,
|
|
85
85
|
getOrigin,
|
|
@@ -2714,10 +2714,19 @@ function isRelease(script) {
|
|
|
2714
2714
|
return published(script);
|
|
2715
2715
|
}
|
|
2716
2716
|
}
|
|
2717
|
-
|
|
2718
|
-
|
|
2719
|
-
const beside = join8(dirname3(
|
|
2720
|
-
|
|
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
|
+
}
|
|
2721
2730
|
}
|
|
2722
2731
|
var FIRST_CONNECT_MS = 9e4;
|
|
2723
2732
|
async function awaitDaemon(since, read = readRunnerState, { timeoutMs = FIRST_CONNECT_MS, pollMs = 500 } = {}) {
|
|
@@ -55,17 +55,17 @@ import {
|
|
|
55
55
|
which,
|
|
56
56
|
workFolder,
|
|
57
57
|
workFolderLine
|
|
58
|
-
} from "./chunk-
|
|
58
|
+
} from "./chunk-MSCSQNNI.js";
|
|
59
59
|
import "./chunk-5RB7XKPB.js";
|
|
60
|
-
import "./chunk-
|
|
61
|
-
import "./chunk-
|
|
60
|
+
import "./chunk-7AB5JOZN.js";
|
|
61
|
+
import "./chunk-DXX7OIZK.js";
|
|
62
62
|
import "./chunk-VK6GV757.js";
|
|
63
63
|
import "./chunk-365HFCQQ.js";
|
|
64
64
|
import "./chunk-PKIEWBR7.js";
|
|
65
|
-
import "./chunk-
|
|
66
|
-
import "./chunk-
|
|
65
|
+
import "./chunk-GJVUF4SB.js";
|
|
66
|
+
import "./chunk-RTLLZQWP.js";
|
|
67
67
|
import "./chunk-SBYSVZ7J.js";
|
|
68
|
-
import "./chunk-
|
|
68
|
+
import "./chunk-BRDSWUDJ.js";
|
|
69
69
|
import "./chunk-D5UZW42X.js";
|
|
70
70
|
export {
|
|
71
71
|
DEFAULT_T3_URL,
|
|
@@ -7,17 +7,17 @@ import {
|
|
|
7
7
|
runnerOrigin,
|
|
8
8
|
stopService,
|
|
9
9
|
unitOrigin
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-MSCSQNNI.js";
|
|
11
11
|
import "./chunk-5RB7XKPB.js";
|
|
12
|
-
import "./chunk-
|
|
13
|
-
import "./chunk-
|
|
12
|
+
import "./chunk-7AB5JOZN.js";
|
|
13
|
+
import "./chunk-DXX7OIZK.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-GJVUF4SB.js";
|
|
18
|
+
import "./chunk-RTLLZQWP.js";
|
|
19
19
|
import "./chunk-SBYSVZ7J.js";
|
|
20
|
-
import "./chunk-
|
|
20
|
+
import "./chunk-BRDSWUDJ.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-
|
|
5
|
+
} from "./chunk-MSCSQNNI.js";
|
|
6
6
|
import "./chunk-5RB7XKPB.js";
|
|
7
|
-
import "./chunk-
|
|
8
|
-
import "./chunk-
|
|
7
|
+
import "./chunk-7AB5JOZN.js";
|
|
8
|
+
import "./chunk-DXX7OIZK.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-GJVUF4SB.js";
|
|
13
|
+
import "./chunk-RTLLZQWP.js";
|
|
14
14
|
import "./chunk-SBYSVZ7J.js";
|
|
15
|
-
import "./chunk-
|
|
15
|
+
import "./chunk-BRDSWUDJ.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-BRDSWUDJ.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-ZCFTLQ3Q.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-NTPTTFH6.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-3HANVJQE.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-3TMAMI7F.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-TSDASBHE.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-N27RLY7L.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-MI2MKB37.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-OQO3DWIN.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-Q3ONIMHU.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-Q3ONIMHU.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-GTOQXWAM.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-Q3ONIMHU.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-UUSWMN54.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-RTLLZQWP.js";
|
|
7
7
|
import "./chunk-SBYSVZ7J.js";
|
|
8
|
-
import "./chunk-
|
|
8
|
+
import "./chunk-BRDSWUDJ.js";
|
|
9
9
|
import "./chunk-D5UZW42X.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-GJVUF4SB.js";
|
|
6
|
+
import "./chunk-RTLLZQWP.js";
|
|
7
7
|
import "./chunk-SBYSVZ7J.js";
|
|
8
|
-
import "./chunk-
|
|
8
|
+
import "./chunk-BRDSWUDJ.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-QYPDDIJL.js";
|
|
13
|
+
import "./chunk-DXX7OIZK.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-FN2G5ZWH.js";
|
|
13
|
+
import "./chunk-QYPDDIJL.js";
|
|
14
|
+
import "./chunk-7AB5JOZN.js";
|
|
15
|
+
import "./chunk-DXX7OIZK.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-
|
|
6
|
+
} from "./chunk-MSCSQNNI.js";
|
|
7
7
|
import "./chunk-5RB7XKPB.js";
|
|
8
|
-
import "./chunk-
|
|
8
|
+
import "./chunk-7AB5JOZN.js";
|
|
9
9
|
import {
|
|
10
10
|
isLocal,
|
|
11
11
|
readRunnerConfig
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-DXX7OIZK.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-GJVUF4SB.js";
|
|
17
|
+
import "./chunk-RTLLZQWP.js";
|
|
18
18
|
import "./chunk-SBYSVZ7J.js";
|
|
19
|
-
import "./chunk-
|
|
19
|
+
import "./chunk-BRDSWUDJ.js";
|
|
20
20
|
import "./chunk-D5UZW42X.js";
|
|
21
21
|
|
|
22
22
|
// src/commands/use.ts
|
package/package.json
CHANGED