@cloop/runner 0.3.8 → 0.3.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-HUVPOJZK.js → box-V3DFX5TB.js} +77 -45
- package/dist/{chunk-OODVBR3F.js → chunk-3SIF2NNR.js} +3 -3
- package/dist/{chunk-EQTFHMUJ.js → chunk-5SUC54R3.js} +11 -10
- package/dist/{chunk-5FZAHWPX.js → chunk-6QXNXJ7C.js} +1 -1
- package/dist/{chunk-GUPXSBOJ.js → chunk-AA2SZUIY.js} +355 -229
- package/dist/{chunk-IKCGVBHA.js → chunk-D5UZW42X.js} +1 -0
- package/dist/{chunk-NYGELUTR.js → chunk-ES5BRAKJ.js} +1 -1
- package/dist/{chunk-E5CKL2Q3.js → chunk-EVIVOEJY.js} +1 -1
- package/dist/{chunk-3IP5XIPV.js → chunk-FNJ74LO3.js} +4 -4
- package/dist/{chunk-4MM5O7TV.js → chunk-GPQ2MSET.js} +1 -1
- package/dist/{chunk-NUU4GXGV.js → chunk-NTXQLEMQ.js} +1 -1
- package/dist/{chunk-3WD7S6VI.js → chunk-S3AB7HKD.js} +129 -71
- package/dist/{chunk-3TDL6X5T.js → chunk-TEEFTSXG.js} +1 -1
- package/dist/{chunk-WE4KRF7A.js → chunk-XQZO3UE6.js} +3 -3
- package/dist/{connect-YJA2CS6L.js → connect-3IS2XXSU.js} +12 -10
- package/dist/disconnect-IMVUEDIP.js +30 -0
- package/dist/existing-runner-DYL2ZND4.js +20 -0
- package/dist/{hook-activity-I7TV7YG7.js → hook-activity-GAJ5NABA.js} +4 -4
- package/dist/{hook-session-start-MFX6HR3W.js → hook-session-start-DJ6W2NCO.js} +3 -3
- package/dist/index.js +29 -19
- package/dist/{install-EMEZBBK7.js → install-WXKWNTAO.js} +1 -1
- package/dist/{login-RAZOAK6J.js → login-67UJOSXI.js} +4 -4
- package/dist/{mcp-server-673BK6ER.js → mcp-server-BQIXVJYD.js} +12 -12
- package/dist/runner-2O56SWXN.js +13 -0
- package/dist/{runs-RZL34AFT.js → runs-CMRLRCTD.js} +3 -3
- package/dist/{statusline-KIE2H6EM.js → statusline-G6SQFIVR.js} +3 -3
- package/dist/{takeover-V2IHVUAB.js → takeover-HFQOQTLP.js} +7 -7
- package/dist/{use-ZP4SPNI6.js → use-XTJPDK4Y.js} +15 -16
- package/package.json +1 -1
- package/dist/disconnect-S4GR7LCM.js +0 -28
- package/dist/runner-NZRNAFEP.js +0 -13
|
@@ -1,21 +1,21 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import {
|
|
3
3
|
findRun
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-TEEFTSXG.js";
|
|
5
5
|
import {
|
|
6
6
|
lockThreadsFile,
|
|
7
7
|
threadsFilePath
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-5SUC54R3.js";
|
|
9
9
|
import {
|
|
10
10
|
isLocal,
|
|
11
11
|
localRunsFilePath,
|
|
12
12
|
readRunRecords,
|
|
13
13
|
readRunnerConfig,
|
|
14
14
|
takeoverSummary
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-S3AB7HKD.js";
|
|
16
16
|
import {
|
|
17
17
|
shortMachineName
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-NTXQLEMQ.js";
|
|
19
19
|
import {
|
|
20
20
|
sanitizeLabel
|
|
21
21
|
} from "./chunk-VK6GV757.js";
|
|
@@ -3,8 +3,11 @@ import {
|
|
|
3
3
|
stripControl
|
|
4
4
|
} from "./chunk-VK6GV757.js";
|
|
5
5
|
import {
|
|
6
|
-
CONFIG_DIR
|
|
7
|
-
|
|
6
|
+
CONFIG_DIR,
|
|
7
|
+
PRODUCTION_ORIGIN,
|
|
8
|
+
STAGING_ORIGIN,
|
|
9
|
+
getOrigin
|
|
10
|
+
} from "./chunk-D5UZW42X.js";
|
|
8
11
|
|
|
9
12
|
// src/run-result.ts
|
|
10
13
|
var RESULT_INSTRUCTION = [
|
|
@@ -191,6 +194,55 @@ function handoverPrompt(prompt, from) {
|
|
|
191
194
|
${from} started this work and stopped at its usage limit. Its changes, if any, are in this checkout. Read \`git status\` and \`git log\` first, and carry on from there.`;
|
|
192
195
|
}
|
|
193
196
|
|
|
197
|
+
// src/environment.ts
|
|
198
|
+
import { homedir } from "os";
|
|
199
|
+
import { join } from "path";
|
|
200
|
+
var ENVIRONMENTS = {
|
|
201
|
+
production: {
|
|
202
|
+
origin: PRODUCTION_ORIGIN,
|
|
203
|
+
dir: (home) => join(home, CONFIG_DIR),
|
|
204
|
+
suffix: "",
|
|
205
|
+
flag: ""
|
|
206
|
+
},
|
|
207
|
+
staging: {
|
|
208
|
+
origin: STAGING_ORIGIN,
|
|
209
|
+
dir: (home) => join(home, CONFIG_DIR, "staging"),
|
|
210
|
+
suffix: "staging",
|
|
211
|
+
flag: "--staging"
|
|
212
|
+
}
|
|
213
|
+
};
|
|
214
|
+
function environmentOf(origin) {
|
|
215
|
+
return origin.replace(/\/+$/, "") === ENVIRONMENTS.staging.origin ? "staging" : "production";
|
|
216
|
+
}
|
|
217
|
+
function runnerEnvironment() {
|
|
218
|
+
return environmentOf(getOrigin());
|
|
219
|
+
}
|
|
220
|
+
function runnerDir(env = runnerEnvironment(), home = homedir()) {
|
|
221
|
+
return ENVIRONMENTS[env].dir(home);
|
|
222
|
+
}
|
|
223
|
+
function runnerPath(env, override, inDir) {
|
|
224
|
+
const own = runnerEnvironment();
|
|
225
|
+
return override && (env ?? own) === own ? override : inDir(runnerDir(env ?? own));
|
|
226
|
+
}
|
|
227
|
+
function cloopCommand(env, args) {
|
|
228
|
+
return ["cloop", args, ENVIRONMENTS[env].flag].filter(Boolean).join(" ");
|
|
229
|
+
}
|
|
230
|
+
var KIND = {
|
|
231
|
+
workstation: { name: "box", task: "Cloop Box" },
|
|
232
|
+
local: { name: "runner", task: "Cloop Runner" }
|
|
233
|
+
};
|
|
234
|
+
function serviceIdentity(kind, env) {
|
|
235
|
+
const { suffix } = ENVIRONMENTS[env];
|
|
236
|
+
const { name, task } = KIND[kind];
|
|
237
|
+
const file = ["cloop", name, suffix].filter(Boolean).join("-");
|
|
238
|
+
return {
|
|
239
|
+
label: ["com.cloop", name, suffix].filter(Boolean).join("."),
|
|
240
|
+
unit: `${file}.service`,
|
|
241
|
+
task: suffix ? `${task} ${suffix[0]?.toUpperCase()}${suffix.slice(1)}` : task,
|
|
242
|
+
file
|
|
243
|
+
};
|
|
244
|
+
}
|
|
245
|
+
|
|
194
246
|
// src/run-log.ts
|
|
195
247
|
import {
|
|
196
248
|
appendFileSync,
|
|
@@ -201,16 +253,16 @@ import {
|
|
|
201
253
|
statSync,
|
|
202
254
|
unlinkSync
|
|
203
255
|
} from "fs";
|
|
204
|
-
import { dirname, join } from "path";
|
|
256
|
+
import { dirname, join as join2 } from "path";
|
|
205
257
|
var RUN_LOG_LINE_MAX = 500;
|
|
206
258
|
var RUN_LOG_MAX_BYTES = 5 * 1024 * 1024;
|
|
207
259
|
var RUN_LOG_KEEP_MS = 14 * 24 * 36e5;
|
|
208
260
|
var SAFE_ID = /^[\w-]{1,100}$/;
|
|
209
261
|
function runLogDir(runsFile) {
|
|
210
|
-
return
|
|
262
|
+
return join2(dirname(runsFile), "runs");
|
|
211
263
|
}
|
|
212
264
|
function runLogPath(dir, workId) {
|
|
213
|
-
return SAFE_ID.test(workId) ?
|
|
265
|
+
return SAFE_ID.test(workId) ? join2(dir, `${workId}.log`) : null;
|
|
214
266
|
}
|
|
215
267
|
var SECRETS = [
|
|
216
268
|
[/-----BEGIN [A-Z ]*PRIVATE KEY-----.*/g, "[redacted private key]"],
|
|
@@ -280,7 +332,7 @@ function pruneRunLogs(dir, now = Date.now(), keepMs = RUN_LOG_KEEP_MS) {
|
|
|
280
332
|
let removed = 0;
|
|
281
333
|
for (const name of readdirSync(dir)) {
|
|
282
334
|
if (!/\.log(\.1)?$/.test(name)) continue;
|
|
283
|
-
const path =
|
|
335
|
+
const path = join2(dir, name);
|
|
284
336
|
try {
|
|
285
337
|
if (statSync(path).mtimeMs < now - keepMs) {
|
|
286
338
|
unlinkSync(path);
|
|
@@ -313,7 +365,7 @@ function stamp(now) {
|
|
|
313
365
|
// src/t3-bin.ts
|
|
314
366
|
import { execFileSync } from "child_process";
|
|
315
367
|
import { existsSync, readdirSync as readdirSync2, statSync as statSync2 } from "fs";
|
|
316
|
-
import { join as
|
|
368
|
+
import { join as join3 } from "path";
|
|
317
369
|
var CLEAN_ENV = () => ({
|
|
318
370
|
HOME: process.env.HOME,
|
|
319
371
|
USER: process.env.USER,
|
|
@@ -323,7 +375,7 @@ function defaultT3BinSources(home, stored) {
|
|
|
323
375
|
return {
|
|
324
376
|
env: process.env,
|
|
325
377
|
home,
|
|
326
|
-
appDirs: process.platform === "darwin" ? ["/Applications",
|
|
378
|
+
appDirs: process.platform === "darwin" ? ["/Applications", join3(home, "Applications")] : [],
|
|
327
379
|
onPath: () => whichAll("t3"),
|
|
328
380
|
...stored ? { stored } : {}
|
|
329
381
|
};
|
|
@@ -344,9 +396,9 @@ function bundleBinaries(appDir) {
|
|
|
344
396
|
return [];
|
|
345
397
|
}
|
|
346
398
|
return bundles.flatMap((bundle) => {
|
|
347
|
-
const root =
|
|
399
|
+
const root = join3(appDir, bundle);
|
|
348
400
|
try {
|
|
349
|
-
return readdirSync2(root, { recursive: true }).filter((rel) => rel === "t3" || rel.endsWith("/t3")).map((rel) =>
|
|
401
|
+
return readdirSync2(root, { recursive: true }).filter((rel) => rel === "t3" || rel.endsWith("/t3")).map((rel) => join3(root, rel)).filter(isExecutable);
|
|
350
402
|
} catch {
|
|
351
403
|
return [];
|
|
352
404
|
}
|
|
@@ -355,8 +407,8 @@ function bundleBinaries(appDir) {
|
|
|
355
407
|
function t3Candidates(serverVersion, sources) {
|
|
356
408
|
const ordered = [
|
|
357
409
|
sources.env.T3_BIN,
|
|
358
|
-
|
|
359
|
-
|
|
410
|
+
join3(sources.home, ".t3", "runtime", "versions", serverVersion, "t3"),
|
|
411
|
+
join3(sources.env.T3CODE_HOME || join3(sources.home, ".t3"), "bin", "t3"),
|
|
360
412
|
...sources.appDirs.flatMap(bundleBinaries),
|
|
361
413
|
...sources.onPath(),
|
|
362
414
|
sources.stored
|
|
@@ -1257,54 +1309,11 @@ ${RESULT_INSTRUCTION}`
|
|
|
1257
1309
|
}
|
|
1258
1310
|
};
|
|
1259
1311
|
|
|
1260
|
-
// src/runner-config.ts
|
|
1261
|
-
import { chmodSync as chmodSync2, mkdirSync as mkdirSync2, readFileSync, renameSync as renameSync2, writeFileSync } from "fs";
|
|
1262
|
-
import { homedir } from "os";
|
|
1263
|
-
import { dirname as dirname2, join as join3 } from "path";
|
|
1264
|
-
var BOX_FILE = "box.json";
|
|
1265
|
-
function boxPath() {
|
|
1266
|
-
return process.env.CLOOP_BOX_FILE ?? join3(homedir(), CONFIG_DIR, BOX_FILE);
|
|
1267
|
-
}
|
|
1268
|
-
function isLocal(cfg) {
|
|
1269
|
-
return cfg.driver === "claude-code" || cfg.driver === "codex";
|
|
1270
|
-
}
|
|
1271
|
-
function showsOtherThreads(cfg) {
|
|
1272
|
-
return cfg?.hideOtherThreads !== true;
|
|
1273
|
-
}
|
|
1274
|
-
function otherThreadsChoice(argv, previous) {
|
|
1275
|
-
if (argv.includes("--hide-other-threads")) return true;
|
|
1276
|
-
if (argv.includes("--show-other-threads")) return false;
|
|
1277
|
-
return previous?.hideOtherThreads === true;
|
|
1278
|
-
}
|
|
1279
|
-
function readRunnerConfig() {
|
|
1280
|
-
let parsed;
|
|
1281
|
-
try {
|
|
1282
|
-
parsed = JSON.parse(readFileSync(boxPath(), "utf-8"));
|
|
1283
|
-
} catch {
|
|
1284
|
-
return null;
|
|
1285
|
-
}
|
|
1286
|
-
if (parsed.driver === "claude-code" || parsed.driver === "codex") {
|
|
1287
|
-
const ok = typeof parsed.deviceToken === "string" && typeof parsed.environmentId === "string" && typeof parsed.bin === "string" && Array.isArray(parsed.repos);
|
|
1288
|
-
return ok ? parsed : null;
|
|
1289
|
-
}
|
|
1290
|
-
if (typeof parsed.t3Url !== "string" || typeof parsed.token !== "string") return null;
|
|
1291
|
-
return parsed;
|
|
1292
|
-
}
|
|
1293
|
-
function writeBoxConfig(cfg) {
|
|
1294
|
-
const path = boxPath();
|
|
1295
|
-
mkdirSync2(dirname2(path), { recursive: true, mode: 448 });
|
|
1296
|
-
const temp = `${path}.${process.pid}.tmp`;
|
|
1297
|
-
writeFileSync(temp, `${JSON.stringify(cfg, null, 2)}
|
|
1298
|
-
`, { mode: 384 });
|
|
1299
|
-
chmodSync2(temp, 384);
|
|
1300
|
-
renameSync2(temp, path);
|
|
1301
|
-
}
|
|
1302
|
-
|
|
1303
1312
|
// src/drivers/local.ts
|
|
1304
1313
|
import { execFile as execFile2, execFileSync as execFileSync3, spawn } from "child_process";
|
|
1305
|
-
import { chmodSync as
|
|
1306
|
-
import {
|
|
1307
|
-
import { basename, dirname as
|
|
1314
|
+
import { chmodSync as chmodSync2, mkdirSync as mkdirSync2, readFileSync, renameSync as renameSync2, writeFileSync } from "fs";
|
|
1315
|
+
import { hostname } from "os";
|
|
1316
|
+
import { basename, dirname as dirname2, join as join4 } from "path";
|
|
1308
1317
|
import { createInterface } from "readline";
|
|
1309
1318
|
|
|
1310
1319
|
// src/spawn-command.ts
|
|
@@ -1399,8 +1408,8 @@ function failedEnd(harness, run2) {
|
|
|
1399
1408
|
const quoted = words.length > room ? `${words.slice(0, room - 1)}\u2026` : words;
|
|
1400
1409
|
return { summary: `${lead}${quoted}"`, ...error };
|
|
1401
1410
|
}
|
|
1402
|
-
function localRunsFilePath() {
|
|
1403
|
-
return process.env.CLOOP_LOCAL_RUNS_FILE
|
|
1411
|
+
function localRunsFilePath(env) {
|
|
1412
|
+
return runnerPath(env, process.env.CLOOP_LOCAL_RUNS_FILE, (dir) => join4(dir, "local-runs.json"));
|
|
1404
1413
|
}
|
|
1405
1414
|
function pickRepo(repos, repository) {
|
|
1406
1415
|
if (!repository) {
|
|
@@ -2053,17 +2062,17 @@ ${RESULT_INSTRUCTION}`));
|
|
|
2053
2062
|
return readRunRecords(this.file).filter((r) => !(r.end && Date.parse(r.end.at) < cutoff));
|
|
2054
2063
|
}
|
|
2055
2064
|
save() {
|
|
2056
|
-
|
|
2065
|
+
mkdirSync2(dirname2(this.file), { recursive: true, mode: 448 });
|
|
2057
2066
|
const tmp = `${this.file}.tmp`;
|
|
2058
|
-
|
|
2067
|
+
writeFileSync(tmp, `${JSON.stringify([...this.runs.values()], null, 2)}
|
|
2059
2068
|
`, { mode: 384 });
|
|
2060
|
-
|
|
2061
|
-
|
|
2069
|
+
chmodSync2(tmp, 384);
|
|
2070
|
+
renameSync2(tmp, this.file);
|
|
2062
2071
|
}
|
|
2063
2072
|
};
|
|
2064
2073
|
function readRunRecords(file = localRunsFilePath()) {
|
|
2065
2074
|
try {
|
|
2066
|
-
const raw = JSON.parse(
|
|
2075
|
+
const raw = JSON.parse(readFileSync(file, "utf-8"));
|
|
2067
2076
|
return Array.isArray(raw) ? raw.filter(
|
|
2068
2077
|
(r) => typeof r?.work_id === "string" && typeof r?.repo === "string"
|
|
2069
2078
|
) : [];
|
|
@@ -2072,6 +2081,48 @@ function readRunRecords(file = localRunsFilePath()) {
|
|
|
2072
2081
|
}
|
|
2073
2082
|
}
|
|
2074
2083
|
|
|
2084
|
+
// src/runner-config.ts
|
|
2085
|
+
import { chmodSync as chmodSync3, mkdirSync as mkdirSync3, readFileSync as readFileSync2, renameSync as renameSync3, writeFileSync as writeFileSync2 } from "fs";
|
|
2086
|
+
import { dirname as dirname3, join as join5 } from "path";
|
|
2087
|
+
var BOX_FILE = "box.json";
|
|
2088
|
+
function boxPath(env = runnerEnvironment()) {
|
|
2089
|
+
return runnerPath(env, process.env.CLOOP_BOX_FILE, (dir) => join5(dir, BOX_FILE));
|
|
2090
|
+
}
|
|
2091
|
+
function isLocal(cfg) {
|
|
2092
|
+
return cfg.driver === "claude-code" || cfg.driver === "codex";
|
|
2093
|
+
}
|
|
2094
|
+
function showsOtherThreads(cfg) {
|
|
2095
|
+
return cfg?.hideOtherThreads !== true;
|
|
2096
|
+
}
|
|
2097
|
+
function otherThreadsChoice(argv, previous) {
|
|
2098
|
+
if (argv.includes("--hide-other-threads")) return true;
|
|
2099
|
+
if (argv.includes("--show-other-threads")) return false;
|
|
2100
|
+
return previous?.hideOtherThreads === true;
|
|
2101
|
+
}
|
|
2102
|
+
function readRunnerConfig(env) {
|
|
2103
|
+
let parsed;
|
|
2104
|
+
try {
|
|
2105
|
+
parsed = JSON.parse(readFileSync2(boxPath(env), "utf-8"));
|
|
2106
|
+
} catch {
|
|
2107
|
+
return null;
|
|
2108
|
+
}
|
|
2109
|
+
if (parsed.driver === "claude-code" || parsed.driver === "codex") {
|
|
2110
|
+
const ok = typeof parsed.deviceToken === "string" && typeof parsed.environmentId === "string" && typeof parsed.bin === "string" && Array.isArray(parsed.repos);
|
|
2111
|
+
return ok ? parsed : null;
|
|
2112
|
+
}
|
|
2113
|
+
if (typeof parsed.t3Url !== "string" || typeof parsed.token !== "string") return null;
|
|
2114
|
+
return parsed;
|
|
2115
|
+
}
|
|
2116
|
+
function writeBoxConfig(cfg) {
|
|
2117
|
+
const path = boxPath();
|
|
2118
|
+
mkdirSync3(dirname3(path), { recursive: true, mode: 448 });
|
|
2119
|
+
const temp = `${path}.${process.pid}.tmp`;
|
|
2120
|
+
writeFileSync2(temp, `${JSON.stringify(cfg, null, 2)}
|
|
2121
|
+
`, { mode: 384 });
|
|
2122
|
+
chmodSync3(temp, 384);
|
|
2123
|
+
renameSync3(temp, path);
|
|
2124
|
+
}
|
|
2125
|
+
|
|
2075
2126
|
export {
|
|
2076
2127
|
RUNTIME_MODES,
|
|
2077
2128
|
BoxToolError,
|
|
@@ -2079,25 +2130,32 @@ export {
|
|
|
2079
2130
|
questionLine,
|
|
2080
2131
|
RUN_TEXT_MAX,
|
|
2081
2132
|
isYes,
|
|
2082
|
-
|
|
2133
|
+
ENVIRONMENTS,
|
|
2134
|
+
environmentOf,
|
|
2135
|
+
runnerEnvironment,
|
|
2136
|
+
runnerDir,
|
|
2137
|
+
runnerPath,
|
|
2138
|
+
cloopCommand,
|
|
2139
|
+
serviceIdentity,
|
|
2083
2140
|
runLogDir,
|
|
2084
2141
|
runLogPath,
|
|
2085
2142
|
STOPPED_SUMMARY,
|
|
2086
2143
|
isEndLogLine,
|
|
2144
|
+
commandFor,
|
|
2087
2145
|
defaultT3BinSources,
|
|
2088
2146
|
t3Candidates,
|
|
2089
2147
|
pickT3Bin,
|
|
2090
2148
|
t3BaseDirArgs,
|
|
2091
2149
|
runT3,
|
|
2092
2150
|
T3Driver,
|
|
2151
|
+
takeoverSummary,
|
|
2152
|
+
localRunsFilePath,
|
|
2153
|
+
LocalDriver,
|
|
2154
|
+
readRunRecords,
|
|
2093
2155
|
boxPath,
|
|
2094
2156
|
isLocal,
|
|
2095
2157
|
showsOtherThreads,
|
|
2096
2158
|
otherThreadsChoice,
|
|
2097
2159
|
readRunnerConfig,
|
|
2098
|
-
writeBoxConfig
|
|
2099
|
-
takeoverSummary,
|
|
2100
|
-
localRunsFilePath,
|
|
2101
|
-
LocalDriver,
|
|
2102
|
-
readRunRecords
|
|
2160
|
+
writeBoxConfig
|
|
2103
2161
|
};
|
|
@@ -2,15 +2,15 @@
|
|
|
2
2
|
import {
|
|
3
3
|
ApiError,
|
|
4
4
|
api
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-ES5BRAKJ.js";
|
|
6
6
|
import {
|
|
7
7
|
VERSION
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-GPQ2MSET.js";
|
|
9
9
|
import {
|
|
10
10
|
getOrigin,
|
|
11
11
|
readCredentials,
|
|
12
12
|
writeCredentials
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-D5UZW42X.js";
|
|
14
14
|
|
|
15
15
|
// src/commands/login.ts
|
|
16
16
|
import { execFile } from "child_process";
|
|
@@ -36,6 +36,7 @@ import {
|
|
|
36
36
|
revokeReplaced,
|
|
37
37
|
runConnect,
|
|
38
38
|
runSteps,
|
|
39
|
+
serviceEnv,
|
|
39
40
|
sessionFromLink,
|
|
40
41
|
systemServices,
|
|
41
42
|
systemdAssignment,
|
|
@@ -46,18 +47,18 @@ import {
|
|
|
46
47
|
which,
|
|
47
48
|
workFolder,
|
|
48
49
|
workFolderLine
|
|
49
|
-
} from "./chunk-
|
|
50
|
-
import "./chunk-
|
|
51
|
-
import "./chunk-
|
|
52
|
-
import "./chunk-
|
|
53
|
-
import "./chunk-NUU4GXGV.js";
|
|
50
|
+
} from "./chunk-AA2SZUIY.js";
|
|
51
|
+
import "./chunk-5SUC54R3.js";
|
|
52
|
+
import "./chunk-S3AB7HKD.js";
|
|
53
|
+
import "./chunk-NTXQLEMQ.js";
|
|
54
54
|
import "./chunk-VK6GV757.js";
|
|
55
|
+
import "./chunk-UBXT5IDU.js";
|
|
55
56
|
import "./chunk-R3CLO2FB.js";
|
|
56
|
-
import "./chunk-
|
|
57
|
-
import "./chunk-
|
|
58
|
-
import "./chunk-
|
|
59
|
-
import "./chunk-
|
|
60
|
-
import "./chunk-
|
|
57
|
+
import "./chunk-3SIF2NNR.js";
|
|
58
|
+
import "./chunk-XQZO3UE6.js";
|
|
59
|
+
import "./chunk-ES5BRAKJ.js";
|
|
60
|
+
import "./chunk-GPQ2MSET.js";
|
|
61
|
+
import "./chunk-D5UZW42X.js";
|
|
61
62
|
export {
|
|
62
63
|
DEFAULT_T3_URL,
|
|
63
64
|
DRIVER_NAME,
|
|
@@ -95,6 +96,7 @@ export {
|
|
|
95
96
|
revokeReplaced,
|
|
96
97
|
runConnect,
|
|
97
98
|
runSteps,
|
|
99
|
+
serviceEnv,
|
|
98
100
|
sessionFromLink,
|
|
99
101
|
systemServices,
|
|
100
102
|
systemdAssignment,
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
import {
|
|
3
|
+
disconnect,
|
|
4
|
+
disconnectCommand,
|
|
5
|
+
disconnectPlan,
|
|
6
|
+
doneLine,
|
|
7
|
+
runnerOrigin,
|
|
8
|
+
stopService,
|
|
9
|
+
unitOrigin
|
|
10
|
+
} from "./chunk-AA2SZUIY.js";
|
|
11
|
+
import "./chunk-5SUC54R3.js";
|
|
12
|
+
import "./chunk-S3AB7HKD.js";
|
|
13
|
+
import "./chunk-NTXQLEMQ.js";
|
|
14
|
+
import "./chunk-VK6GV757.js";
|
|
15
|
+
import "./chunk-UBXT5IDU.js";
|
|
16
|
+
import "./chunk-R3CLO2FB.js";
|
|
17
|
+
import "./chunk-3SIF2NNR.js";
|
|
18
|
+
import "./chunk-XQZO3UE6.js";
|
|
19
|
+
import "./chunk-ES5BRAKJ.js";
|
|
20
|
+
import "./chunk-GPQ2MSET.js";
|
|
21
|
+
import "./chunk-D5UZW42X.js";
|
|
22
|
+
export {
|
|
23
|
+
disconnect,
|
|
24
|
+
disconnectCommand,
|
|
25
|
+
disconnectPlan,
|
|
26
|
+
doneLine,
|
|
27
|
+
runnerOrigin,
|
|
28
|
+
stopService,
|
|
29
|
+
unitOrigin
|
|
30
|
+
};
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
import {
|
|
3
|
+
existingRunnerEnvironment,
|
|
4
|
+
pinExistingRunner
|
|
5
|
+
} from "./chunk-AA2SZUIY.js";
|
|
6
|
+
import "./chunk-5SUC54R3.js";
|
|
7
|
+
import "./chunk-S3AB7HKD.js";
|
|
8
|
+
import "./chunk-NTXQLEMQ.js";
|
|
9
|
+
import "./chunk-VK6GV757.js";
|
|
10
|
+
import "./chunk-UBXT5IDU.js";
|
|
11
|
+
import "./chunk-R3CLO2FB.js";
|
|
12
|
+
import "./chunk-3SIF2NNR.js";
|
|
13
|
+
import "./chunk-XQZO3UE6.js";
|
|
14
|
+
import "./chunk-ES5BRAKJ.js";
|
|
15
|
+
import "./chunk-GPQ2MSET.js";
|
|
16
|
+
import "./chunk-D5UZW42X.js";
|
|
17
|
+
export {
|
|
18
|
+
existingRunnerEnvironment,
|
|
19
|
+
pinExistingRunner
|
|
20
|
+
};
|
|
@@ -4,7 +4,7 @@ import {
|
|
|
4
4
|
pruneSessionStates,
|
|
5
5
|
toolPhrase,
|
|
6
6
|
writeSessionState
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-EVIVOEJY.js";
|
|
8
8
|
import {
|
|
9
9
|
HeartbeatClient,
|
|
10
10
|
detectPlatform,
|
|
@@ -12,12 +12,12 @@ import {
|
|
|
12
12
|
getName,
|
|
13
13
|
getSurface,
|
|
14
14
|
sanitizeSessionKey
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-NTXQLEMQ.js";
|
|
16
16
|
import "./chunk-VK6GV757.js";
|
|
17
|
-
import "./chunk-
|
|
17
|
+
import "./chunk-ES5BRAKJ.js";
|
|
18
18
|
import {
|
|
19
19
|
getToken
|
|
20
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-D5UZW42X.js";
|
|
21
21
|
|
|
22
22
|
// src/commands/hook-activity.ts
|
|
23
23
|
async function readStdin() {
|
|
@@ -6,16 +6,16 @@ import {
|
|
|
6
6
|
getName,
|
|
7
7
|
getSurface,
|
|
8
8
|
newSessionKey
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-NTXQLEMQ.js";
|
|
10
10
|
import {
|
|
11
11
|
sanitizeLabel
|
|
12
12
|
} from "./chunk-VK6GV757.js";
|
|
13
13
|
import {
|
|
14
14
|
api
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-ES5BRAKJ.js";
|
|
16
16
|
import {
|
|
17
17
|
getToken
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-D5UZW42X.js";
|
|
19
19
|
|
|
20
20
|
// src/digest.ts
|
|
21
21
|
var CHAR_BUDGET = 1600;
|