@cloop/runner 0.3.58 → 0.3.59
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-ATCVDTJL.js → box-AJGVOLMF.js} +8 -8
- package/dist/{chunk-XAKDSXMW.js → chunk-5MZDMAY2.js} +45 -11
- package/dist/{chunk-TZDLUM3E.js → chunk-7GRP7ZX4.js} +1 -1
- package/dist/{chunk-QO4HCPPB.js → chunk-BIECV55V.js} +1 -1
- package/dist/{chunk-XCY5UCB7.js → chunk-CJKE7ELD.js} +1 -1
- package/dist/{chunk-MWIILCSZ.js → chunk-EHXAIGHI.js} +5 -5
- package/dist/{chunk-ZPTAWYEW.js → chunk-GRYTOE6F.js} +3 -3
- package/dist/{chunk-TDZ3P5KT.js → chunk-HBBEFTXE.js} +1 -1
- package/dist/{chunk-FE2CVSWX.js → chunk-WE3NUVJI.js} +1 -1
- package/dist/{connect-6S3QLFXR.js → connect-3566SIPL.js} +6 -6
- package/dist/{disconnect-GICPEOSK.js → disconnect-VTPVRXXC.js} +6 -6
- package/dist/{existing-runner-Y3SISSPG.js → existing-runner-USM27GSJ.js} +6 -6
- package/dist/index.js +14 -14
- package/dist/{login-GEWUZVTU.js → login-SUVMQUIZ.js} +2 -2
- package/dist/{mcp-server-F7DJULUK.js → mcp-server-HPSCTFVB.js} +1 -1
- package/dist/{runner-UHVWNHA7.js → runner-F3HVBTUZ.js} +3 -3
- package/dist/{runs-JBC376NJ.js → runs-IU47AXGO.js} +2 -2
- package/dist/{statusline-HAM6WKIK.js → statusline-ACJ6FK6M.js} +1 -1
- package/dist/{takeover-WY7FPVJ6.js → takeover-WNMI3ITX.js} +4 -4
- package/dist/{use-4RUJG2YI.js → use-PMAT5XOG.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-GRYTOE6F.js";
|
|
5
|
+
import "./chunk-WE3NUVJI.js";
|
|
6
6
|
import {
|
|
7
7
|
CAPTURE_TICK_MS,
|
|
8
8
|
DEFAULT_FALLBACK_MODEL,
|
|
@@ -39,7 +39,7 @@ import {
|
|
|
39
39
|
systemServices,
|
|
40
40
|
unitFor,
|
|
41
41
|
which
|
|
42
|
-
} from "./chunk-
|
|
42
|
+
} from "./chunk-EHXAIGHI.js";
|
|
43
43
|
import {
|
|
44
44
|
MeshSocket,
|
|
45
45
|
WAKE_TICK_MS,
|
|
@@ -57,7 +57,7 @@ import {
|
|
|
57
57
|
runnerStatePath,
|
|
58
58
|
threadsFilePath,
|
|
59
59
|
writeRunnerState
|
|
60
|
-
} from "./chunk-
|
|
60
|
+
} from "./chunk-7GRP7ZX4.js";
|
|
61
61
|
import {
|
|
62
62
|
BackgroundReading,
|
|
63
63
|
BoxToolError,
|
|
@@ -107,20 +107,20 @@ import {
|
|
|
107
107
|
utcWindow,
|
|
108
108
|
windowsPowerShellEnv,
|
|
109
109
|
writeBoxConfig
|
|
110
|
-
} from "./chunk-
|
|
110
|
+
} from "./chunk-5MZDMAY2.js";
|
|
111
111
|
import "./chunk-VK6GV757.js";
|
|
112
112
|
import {
|
|
113
113
|
olderThan
|
|
114
114
|
} from "./chunk-365HFCQQ.js";
|
|
115
115
|
import "./chunk-PKIEWBR7.js";
|
|
116
|
-
import "./chunk-
|
|
117
|
-
import "./chunk-
|
|
116
|
+
import "./chunk-HBBEFTXE.js";
|
|
117
|
+
import "./chunk-BIECV55V.js";
|
|
118
118
|
import {
|
|
119
119
|
getMachine
|
|
120
120
|
} from "./chunk-SBYSVZ7J.js";
|
|
121
121
|
import {
|
|
122
122
|
VERSION
|
|
123
|
-
} from "./chunk-
|
|
123
|
+
} from "./chunk-CJKE7ELD.js";
|
|
124
124
|
import {
|
|
125
125
|
getMeshUrl,
|
|
126
126
|
getOrigin,
|
|
@@ -90,18 +90,18 @@ function runMediaPattern(folder) {
|
|
|
90
90
|
var RESULT_INSTRUCTION = [
|
|
91
91
|
"When you finish, end your final message with a fenced block tagged cloop-result containing JSON, for example:",
|
|
92
92
|
"```cloop-result",
|
|
93
|
-
'{"summary": "
|
|
93
|
+
'{"summary": "Your conclusion or what you did, in one or two sentences.", "outputs": [{"kind": "pr", "title": "fix: the thing", "url": "https://github.com/org/repo/pull/1"}], "checks": [{"name": "Tests", "outcome": "passed"}]}',
|
|
94
94
|
"```",
|
|
95
95
|
"An output kind is one of: pr or link (title, url), draft (title, body, optional to, optional url), doc (title, optional url or body), wizard (title, steps). A check outcome is passed, failed or skipped.",
|
|
96
96
|
"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
97
|
`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
98
|
"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
|
-
|
|
99
|
+
'When the ask is to find, compare, summarise or research something, the summary is your conclusion in one or two sentences, such as "I recommend X, because Y." Put the whole answer, with your method and caveats, in a doc output with a body, so the owner has one page to read. The page does not repeat the summary.'
|
|
100
100
|
].join("\n");
|
|
101
101
|
var MACHINE_RESULT_INSTRUCTION = [
|
|
102
102
|
RESULT_INSTRUCTION,
|
|
103
103
|
`To show the owner a picture, such as a screenshot of a UI change or a result a picture explains better than words, save it as a PNG, JPEG or WebP file outside the repository (for example in /tmp) and list it as an output: {"kind": "image", "title": "The new sign-in page", "path": "/tmp/sign-in.png"}, with the file's absolute path. Cloop uploads the file and shows it on the run. At most ${RUN_IMAGES_MAX} images, each under ${RUN_IMAGE_MAX_BYTES / (1024 * 1024)} MB. On a Cloop Box, take a picture of a website with the cloop \`browser\` tool: action screenshot shows you the page, and with a title Cloop also attaches the picture to this run and shows it to the owner. You need not list it in your outputs. Use the Playwright browser tool only for a page on localhost, and list its file by path.`,
|
|
104
|
-
`To hand the owner a file
|
|
104
|
+
`To hand the owner a file Cloop cannot show, such as a spreadsheet, a deck, a Word document, a PDF or a CSV, list it as an output: {"kind": "file", "title": "Converge model", "path": "/abs/path/Converge_Model.xlsx"}, with the file's absolute path. Cloop uploads it and the owner downloads it from the Task. Never give the owner a path on this machine as the deliverable: they cannot open it. A file is one of ${fileTypes()}, named with its type's extension. At most ${RUN_FILES_MAX} files, each under ${RUN_FILE_MAX_BYTES / (1024 * 1024)} MB. A page you write (a report, notes, research) is a doc output with the whole text in its body, never a Markdown file: Cloop shows the page and the owner can download it there.`,
|
|
105
105
|
`To let the owner open a web app or page you are running on this machine, such as a dev server, leave the server running after your turn ends: start it in the background, detached from your shell (for example \`nohup npm run dev -- --port 5173 > /tmp/dev.log 2>&1 &\`), and check it answers on its port. Then list it as an output: {"kind": "preview", "title": "The new sign-in page", "port": 5173, "path": "/sign-in"}, with the port it listens on and an optional path to open first. Cloop gives the owner a private link to it for ${PREVIEW_HOURS} hours while this machine is on, or ${BOX_PREVIEW_HOURS} hours on a Cloop Box, where a live preview keeps the box awake: say how long when you give the link. At most ${RUN_PREVIEWS_MAX} previews a run.`,
|
|
106
106
|
`When you started something that keeps running after this turn (a build, a deploy, a long job) or you wait on something outside, do not wait in the turn: add "check_back": {"in_minutes": 120, "why": "Read the training log and report the score."} to the block. Cloop sends you a message in this conversation then, with your why, and you carry on from there. Give ${CHECK_BACK_MIN_MINUTES} to ${CHECK_BACK_MAX_MINUTES} minutes. Leave it out when the work is done.`
|
|
107
107
|
].join("\n");
|
|
@@ -2680,7 +2680,7 @@ ${MACHINE_RESULT_INSTRUCTION}`
|
|
|
2680
2680
|
|
|
2681
2681
|
// src/drivers/local.ts
|
|
2682
2682
|
import { execFile as execFile3, execFileSync as execFileSync4, spawn } from "child_process";
|
|
2683
|
-
import { chmodSync as chmodSync3, mkdirSync as mkdirSync3, readFileSync as readFileSync2, renameSync as renameSync3, writeFileSync as writeFileSync2 } from "fs";
|
|
2683
|
+
import { chmodSync as chmodSync3, mkdirSync as mkdirSync3, readFileSync as readFileSync2, readdirSync as readdirSync3, renameSync as renameSync3, rmSync, writeFileSync as writeFileSync2 } from "fs";
|
|
2684
2684
|
import { hostname } from "os";
|
|
2685
2685
|
import { basename, dirname as dirname4, join as join8 } from "path";
|
|
2686
2686
|
import { createInterface as createInterface2 } from "readline";
|
|
@@ -2769,6 +2769,27 @@ function holdsRepository2(r, repository) {
|
|
|
2769
2769
|
const want = repoName(repository);
|
|
2770
2770
|
return repoName(r.label) === want || repoName(basename(r.path)) === want;
|
|
2771
2771
|
}
|
|
2772
|
+
function apartLine(busy) {
|
|
2773
|
+
return `Another run is working in ${busy.label} (${busy.path}), so this run has a folder of its own. If this work needs that project's code, do not edit ${busy.path}: make a git worktree of it in this folder and work there. If you open a pull request, put its URL in your result.`;
|
|
2774
|
+
}
|
|
2775
|
+
function pruneApartFolders(dir, kept, repos) {
|
|
2776
|
+
let names;
|
|
2777
|
+
try {
|
|
2778
|
+
names = readdirSync3(dir);
|
|
2779
|
+
} catch {
|
|
2780
|
+
return 0;
|
|
2781
|
+
}
|
|
2782
|
+
const gone = names.filter((name) => !kept.has(name));
|
|
2783
|
+
for (const name of gone) rmSync(join8(dir, name), { recursive: true, force: true });
|
|
2784
|
+
if (gone.length)
|
|
2785
|
+
for (const repo of repos) {
|
|
2786
|
+
try {
|
|
2787
|
+
execFileSync4("git", ["worktree", "prune"], { cwd: repo.path, stdio: "ignore", timeout: 1e4 });
|
|
2788
|
+
} catch {
|
|
2789
|
+
}
|
|
2790
|
+
}
|
|
2791
|
+
return gone.length;
|
|
2792
|
+
}
|
|
2772
2793
|
function pickRepo(repos, repository) {
|
|
2773
2794
|
const picked = repository && repos.find((r) => holdsRepository2(r, repository)) || repos[0];
|
|
2774
2795
|
if (!picked) throw new BoxToolError("no_project");
|
|
@@ -2851,6 +2872,12 @@ var LocalDriver = class {
|
|
|
2851
2872
|
} catch (err) {
|
|
2852
2873
|
this.log(`run log prune failed: ${err.code ?? "unknown"}`);
|
|
2853
2874
|
}
|
|
2875
|
+
try {
|
|
2876
|
+
const removed = pruneApartFolders(join8(dirname4(this.file), "work"), new Set(this.runs.keys()), deps.repos);
|
|
2877
|
+
if (removed) this.log(`run folders removed=${removed} of runs no longer kept`);
|
|
2878
|
+
} catch (err) {
|
|
2879
|
+
this.log(`run folder prune failed: ${err.code ?? "unknown"}`);
|
|
2880
|
+
}
|
|
2854
2881
|
}
|
|
2855
2882
|
deps;
|
|
2856
2883
|
name;
|
|
@@ -3042,7 +3069,7 @@ var LocalDriver = class {
|
|
|
3042
3069
|
this.log(
|
|
3043
3070
|
`launch work=${a.work_id} has no ${missing}; starts in ${basename(repo.path)} to clone it`
|
|
3044
3071
|
);
|
|
3045
|
-
else this.refuseBusy(repo.path);
|
|
3072
|
+
else if (a.repository) this.refuseBusy(repo.path);
|
|
3046
3073
|
const { dialect, moved } = await this.route(a);
|
|
3047
3074
|
const head = await this.repo.head(repo.path);
|
|
3048
3075
|
const photos2 = await this.photos(a);
|
|
@@ -3055,13 +3082,18 @@ var LocalDriver = class {
|
|
|
3055
3082
|
takeover: true,
|
|
3056
3083
|
harness: this.dialectOf(concurrent).name
|
|
3057
3084
|
};
|
|
3058
|
-
if (!missing) this.refuseBusy(repo.path);
|
|
3085
|
+
if (!missing && a.repository) this.refuseBusy(repo.path);
|
|
3086
|
+
const apart = !missing && !a.repository && this.busy(repo.path) ? join8(dirname4(this.file), "work", a.work_id) : null;
|
|
3087
|
+
if (apart) {
|
|
3088
|
+
mkdirSync3(apart, { recursive: true, mode: 448 });
|
|
3089
|
+
this.log(`launch work=${a.work_id} ${basename(repo.path)} is busy; starts in its own folder`);
|
|
3090
|
+
}
|
|
3059
3091
|
const record = {
|
|
3060
3092
|
work_id: a.work_id,
|
|
3061
3093
|
session_id: dialect.name === "claude-code" ? a.work_id : null,
|
|
3062
|
-
repo: repo.path,
|
|
3094
|
+
repo: apart ?? repo.path,
|
|
3063
3095
|
title: a.title,
|
|
3064
|
-
prompt: [a.prompt, missing && cloneLine(missing), photos2.line].filter(Boolean).join("\n\n"),
|
|
3096
|
+
prompt: [a.prompt, missing && cloneLine(missing), apart && apartLine(repo), photos2.line].filter(Boolean).join("\n\n"),
|
|
3065
3097
|
...photos2.paths.length ? { images: photos2.paths } : {},
|
|
3066
3098
|
...a.model && !moved ? { model: a.model } : {},
|
|
3067
3099
|
...a.runtime_mode ? { runtime_mode: a.runtime_mode } : {},
|
|
@@ -3070,7 +3102,7 @@ var LocalDriver = class {
|
|
|
3070
3102
|
...moved ? { harness: dialect.name, moved, switched: switchedLine(moved, own.name, dialect.name) } : {},
|
|
3071
3103
|
pid: null,
|
|
3072
3104
|
started_at: new Date(this.now()).toISOString(),
|
|
3073
|
-
head_at_launch: head
|
|
3105
|
+
head_at_launch: apart ? null : head
|
|
3074
3106
|
};
|
|
3075
3107
|
this.runs.set(a.work_id, record);
|
|
3076
3108
|
if (moved)
|
|
@@ -3273,8 +3305,10 @@ ${a.text}` : a.text;
|
|
|
3273
3305
|
}
|
|
3274
3306
|
/** One checkout, one run: two harnesses editing the same files at once would undo each other. */
|
|
3275
3307
|
refuseBusy(repo) {
|
|
3276
|
-
if (
|
|
3277
|
-
|
|
3308
|
+
if (this.busy(repo)) throw new BoxToolError("repo_busy");
|
|
3309
|
+
}
|
|
3310
|
+
busy(repo) {
|
|
3311
|
+
return [...this.runs.values()].some((r) => r.repo === repo && !r.end);
|
|
3278
3312
|
}
|
|
3279
3313
|
/** One question at a time, oldest first, so a yes answers the prompt the owner read. */
|
|
3280
3314
|
askNext(r, live) {
|
|
@@ -9,7 +9,7 @@ import {
|
|
|
9
9
|
readRunnerState,
|
|
10
10
|
runnerStatePath,
|
|
11
11
|
threadsFilePath
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-7GRP7ZX4.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-5MZDMAY2.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-HBBEFTXE.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-BIECV55V.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-CJKE7ELD.js";
|
|
83
83
|
import {
|
|
84
84
|
STAGING_ORIGIN,
|
|
85
85
|
getOrigin,
|
|
@@ -2,17 +2,17 @@
|
|
|
2
2
|
import {
|
|
3
3
|
findRun,
|
|
4
4
|
ownHarness
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-WE3NUVJI.js";
|
|
6
6
|
import {
|
|
7
7
|
lockThreadsFile,
|
|
8
8
|
threadsFilePath
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-7GRP7ZX4.js";
|
|
10
10
|
import {
|
|
11
11
|
localRunsFilePath,
|
|
12
12
|
readRunRecords,
|
|
13
13
|
runHarness,
|
|
14
14
|
takeoverSummary
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-5MZDMAY2.js";
|
|
16
16
|
import {
|
|
17
17
|
sanitizeLabel
|
|
18
18
|
} from "./chunk-VK6GV757.js";
|
|
@@ -54,17 +54,17 @@ import {
|
|
|
54
54
|
which,
|
|
55
55
|
workFolder,
|
|
56
56
|
workFolderLine
|
|
57
|
-
} from "./chunk-
|
|
57
|
+
} from "./chunk-EHXAIGHI.js";
|
|
58
58
|
import "./chunk-BI2Y5ZCL.js";
|
|
59
|
-
import "./chunk-
|
|
60
|
-
import "./chunk-
|
|
59
|
+
import "./chunk-7GRP7ZX4.js";
|
|
60
|
+
import "./chunk-5MZDMAY2.js";
|
|
61
61
|
import "./chunk-VK6GV757.js";
|
|
62
62
|
import "./chunk-365HFCQQ.js";
|
|
63
63
|
import "./chunk-PKIEWBR7.js";
|
|
64
|
-
import "./chunk-
|
|
65
|
-
import "./chunk-
|
|
64
|
+
import "./chunk-HBBEFTXE.js";
|
|
65
|
+
import "./chunk-BIECV55V.js";
|
|
66
66
|
import "./chunk-SBYSVZ7J.js";
|
|
67
|
-
import "./chunk-
|
|
67
|
+
import "./chunk-CJKE7ELD.js";
|
|
68
68
|
import "./chunk-D5UZW42X.js";
|
|
69
69
|
export {
|
|
70
70
|
DEFAULT_T3_URL,
|
|
@@ -7,17 +7,17 @@ import {
|
|
|
7
7
|
runnerOrigin,
|
|
8
8
|
stopService,
|
|
9
9
|
unitOrigin
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-EHXAIGHI.js";
|
|
11
11
|
import "./chunk-BI2Y5ZCL.js";
|
|
12
|
-
import "./chunk-
|
|
13
|
-
import "./chunk-
|
|
12
|
+
import "./chunk-7GRP7ZX4.js";
|
|
13
|
+
import "./chunk-5MZDMAY2.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-HBBEFTXE.js";
|
|
18
|
+
import "./chunk-BIECV55V.js";
|
|
19
19
|
import "./chunk-SBYSVZ7J.js";
|
|
20
|
-
import "./chunk-
|
|
20
|
+
import "./chunk-CJKE7ELD.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-EHXAIGHI.js";
|
|
6
6
|
import "./chunk-BI2Y5ZCL.js";
|
|
7
|
-
import "./chunk-
|
|
8
|
-
import "./chunk-
|
|
7
|
+
import "./chunk-7GRP7ZX4.js";
|
|
8
|
+
import "./chunk-5MZDMAY2.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-HBBEFTXE.js";
|
|
13
|
+
import "./chunk-BIECV55V.js";
|
|
14
14
|
import "./chunk-SBYSVZ7J.js";
|
|
15
|
-
import "./chunk-
|
|
15
|
+
import "./chunk-CJKE7ELD.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-CJKE7ELD.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-USM27GSJ.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-SUVMQUIZ.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-HPSCTFVB.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-ACJ6FK6M.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-3566SIPL.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-PMAT5XOG.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-VTPVRXXC.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-AJGVOLMF.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-IU47AXGO.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-IU47AXGO.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-WNMI3ITX.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-IU47AXGO.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-F3HVBTUZ.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-BIECV55V.js";
|
|
7
7
|
import "./chunk-SBYSVZ7J.js";
|
|
8
|
-
import "./chunk-
|
|
8
|
+
import "./chunk-CJKE7ELD.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-HBBEFTXE.js";
|
|
6
|
+
import "./chunk-BIECV55V.js";
|
|
7
7
|
import "./chunk-SBYSVZ7J.js";
|
|
8
|
-
import "./chunk-
|
|
8
|
+
import "./chunk-CJKE7ELD.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-WE3NUVJI.js";
|
|
13
|
+
import "./chunk-5MZDMAY2.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-GRYTOE6F.js";
|
|
13
|
+
import "./chunk-WE3NUVJI.js";
|
|
14
|
+
import "./chunk-7GRP7ZX4.js";
|
|
15
|
+
import "./chunk-5MZDMAY2.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-EHXAIGHI.js";
|
|
7
7
|
import "./chunk-BI2Y5ZCL.js";
|
|
8
|
-
import "./chunk-
|
|
8
|
+
import "./chunk-7GRP7ZX4.js";
|
|
9
9
|
import {
|
|
10
10
|
isLocal,
|
|
11
11
|
readRunnerConfig
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-5MZDMAY2.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-HBBEFTXE.js";
|
|
17
|
+
import "./chunk-BIECV55V.js";
|
|
18
18
|
import "./chunk-SBYSVZ7J.js";
|
|
19
|
-
import "./chunk-
|
|
19
|
+
import "./chunk-CJKE7ELD.js";
|
|
20
20
|
import "./chunk-D5UZW42X.js";
|
|
21
21
|
|
|
22
22
|
// src/commands/use.ts
|
package/package.json
CHANGED