@outerlayer/cli 0.36.0-next.20261030203048 → 0.36.0-next.20261030225631
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/build-info.json +1 -1
- package/dist/{check-E2ZTWJPM.js → check-LUDLYHUR.js} +19 -21
- package/dist/{chunk-TUN3TYBX.js → chunk-6HRYB7M6.js} +3 -3
- package/dist/{chunk-LOI3ESFV.js → chunk-H5XPKNQZ.js} +3 -148
- package/dist/{chunk-O6V6T6HD.js → chunk-K6KO7TBK.js} +1 -1
- package/dist/{chunk-3XIAGOPV.js → chunk-MVI3J4FN.js} +1 -1
- package/dist/{chunk-XHDJ75TC.js → chunk-O6NQYFPH.js} +1 -1
- package/dist/{chunk-BBUIVGIR.js → chunk-OR2NXZ5Y.js} +1 -1
- package/dist/{chunk-WXR6AVZ7.js → chunk-UI2VOW26.js} +36 -2
- package/dist/{chunk-WQXEJ43L.js → chunk-VVUMAXFY.js} +1 -1
- package/dist/{chunk-OFOEDDN6.js → chunk-Y6FSSKLW.js} +1 -1
- package/dist/{chunk-OSQEG4HG.js → chunk-ZFGGCEH2.js} +7025 -2551
- package/dist/{chunk-ID57YZP2.js → chunk-ZGFUZPJP.js} +1 -1
- package/dist/{chunk-3IQE34I3.js → chunk-ZJX3KECE.js} +13 -387
- package/dist/{cli-YMCBXWRM.js → cli-NPNTAB2B.js} +30 -30
- package/dist/{command-AYXNOGIU.js → command-XLXJGPRZ.js} +25 -6
- package/dist/{container-start-KS52ID4M.js → container-start-ZCG3EHAO.js} +14 -16
- package/dist/{demo-voice-cmd-GLN5QZJP.js → demo-voice-cmd-VIMMLCLO.js} +4 -5
- package/dist/{doctor-TLIRZM2C.js → doctor-TIBTSPML.js} +26 -8
- package/dist/{emit-artifact-cmd-CNC5CPKI.js → emit-artifact-cmd-PLTXEBPU.js} +2 -3
- package/dist/{emit-demo-cmd-UXTH6XBO.js → emit-demo-cmd-C6IQPCW7.js} +4 -5
- package/dist/{emit-result-cmd-KAEWXQIH.js → emit-result-cmd-WCNYSHDK.js} +1 -2
- package/dist/{guest-init-2TTQKFFZ.js → guest-init-WPUS45IN.js} +2 -2
- package/dist/{host-checks-TRVDAYBL.js → host-checks-ULFOOLWB.js} +12 -14
- package/dist/index.js +1 -1
- package/dist/{init-HEZDVJPU.js → init-JQTQWAM7.js} +24 -5
- package/dist/{init-OOYCYL2C.js → init-ZZJ57EDL.js} +24 -5
- package/dist/{init-cmd-4PVOILZD.js → init-cmd-UKT7YW5U.js} +2 -2
- package/dist/{loop-EIR2YPA2.js → loop-M6SSY52X.js} +18 -20
- package/dist/{machine-23Y2EHH7.js → machine-7Z2IVG7X.js} +24 -5
- package/dist/{runner-key-BKMFJ7RA.js → runner-key-ESSC2IKR.js} +24 -5
- package/dist/{session-sender-QDZWNAY7.js → session-sender-NCSDRNCM.js} +2 -3
- package/dist/{status-BZ37VEAJ.js → status-ECHO7NRV.js} +12 -14
- package/dist/{sync-cmd-MNXFOIHW.js → sync-cmd-7LESBUTT.js} +1 -2
- package/dist/{update-steps-VPBGYVW5.js → update-steps-JH7PPGPD.js} +13 -15
- package/dist/{watch-E7RGSZF6.js → watch-RSUPBIJS.js} +1 -2
- package/dist/{work-proofs-cmd-B5X3AJQY.js → work-proofs-cmd-V2O2DTAQ.js} +1 -1
- package/dist/{work-proofs-record-DDOAQOPX.js → work-proofs-record-XJFVH7B4.js} +6 -7
- package/package.json +1 -1
- package/dist/chunk-PHFZMU32.js +0 -3924
- package/dist/chunk-TBT347UY.js +0 -41
- package/dist/{chunk-H2GESWLW.js → chunk-55PYF6S2.js} +1 -1
- package/dist/{init-update-QMSQEZQU.js → init-update-2SN2GCTM.js} +1 -1
package/dist/build-info.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"id":"2026-10-
|
|
1
|
+
{"id":"2026-10-30T22:58:58.290Z+e388b13","root":"/home/runner/work/outerlayer/outerlayer","pkg":"outerlayer"}
|
|
@@ -1,44 +1,42 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
|
-
import { probeCredentials } from './chunk-
|
|
3
|
+
import { probeCredentials } from './chunk-ZJX3KECE.js';
|
|
4
4
|
import './chunk-7Y5VW4JG.js';
|
|
5
5
|
import './chunk-3JVYMD4G.js';
|
|
6
6
|
import './chunk-E7R2GIAW.js';
|
|
7
|
-
import './chunk-
|
|
8
|
-
import './chunk-
|
|
9
|
-
import './chunk-PHFZMU32.js';
|
|
10
|
-
import './chunk-5TJQBHKO.js';
|
|
7
|
+
import './chunk-VVUMAXFY.js';
|
|
8
|
+
import './chunk-ZGFUZPJP.js';
|
|
11
9
|
import './chunk-3LCXSD26.js';
|
|
12
10
|
import './chunk-LGV5N5DG.js';
|
|
13
11
|
import './chunk-EZRAR5YG.js';
|
|
14
|
-
import './chunk-
|
|
15
|
-
import './chunk-H2GESWLW.js';
|
|
16
|
-
import './chunk-MKSZHT6S.js';
|
|
17
|
-
import './chunk-I3LTIAOR.js';
|
|
18
|
-
import './chunk-BBUIVGIR.js';
|
|
19
|
-
import './chunk-WXR6AVZ7.js';
|
|
20
|
-
import './chunk-MJEUD4PD.js';
|
|
21
|
-
import './chunk-AAGU5FJF.js';
|
|
22
|
-
import { fleetConfigProblem, managedProblems, managedFactsOf, askFleetMachine } from './chunk-LOI3ESFV.js';
|
|
12
|
+
import { fleetConfigProblem, managedProblems, managedFactsOf, askFleetMachine } from './chunk-H5XPKNQZ.js';
|
|
23
13
|
import './chunk-AF6DQJ5W.js';
|
|
24
|
-
import './chunk-TBT347UY.js';
|
|
25
14
|
import { findServiceUnit } from './chunk-VOURWC2H.js';
|
|
26
|
-
import './chunk-
|
|
27
|
-
import
|
|
15
|
+
import { placeholderQueues, placeholderProblem, permissionModeProblems, permissionModeProblem, HELPER_ENV, helperSocketPath, probeHelper, needsClaudeCredential, claudeCredentialCheck, claimPermissionProblem, formerSkillQueues, formerSkillProblem } from './chunk-ZFGGCEH2.js';
|
|
16
|
+
import './chunk-5TJQBHKO.js';
|
|
17
|
+
import './chunk-I3LTIAOR.js';
|
|
28
18
|
import './chunk-2PGI6RDE.js';
|
|
19
|
+
import './chunk-UHD5ZR46.js';
|
|
20
|
+
import './chunk-OR2NXZ5Y.js';
|
|
21
|
+
import './chunk-UI2VOW26.js';
|
|
22
|
+
import './chunk-MJEUD4PD.js';
|
|
23
|
+
import './chunk-AAGU5FJF.js';
|
|
24
|
+
import './chunk-ZVB57WI6.js';
|
|
25
|
+
import './chunk-ALEUIS35.js';
|
|
26
|
+
import './chunk-TQMI335S.js';
|
|
29
27
|
import './chunk-QLWEXEEA.js';
|
|
30
28
|
import './chunk-BR2WJ6BX.js';
|
|
31
29
|
import './chunk-NN33FYXG.js';
|
|
32
30
|
import './chunk-4A7GNO4U.js';
|
|
33
31
|
import './chunk-H3MLZ4EA.js';
|
|
34
32
|
import './chunk-WAZJPDR2.js';
|
|
35
|
-
import './chunk-JBJTC3UU.js';
|
|
36
33
|
import './chunk-OGFGZQA3.js';
|
|
37
34
|
import './chunk-4PH4DVV4.js';
|
|
38
|
-
import './chunk-UZGQT6OF.js';
|
|
39
35
|
import './chunk-KSMN2FUF.js';
|
|
40
|
-
import './chunk-
|
|
41
|
-
import './chunk-
|
|
36
|
+
import './chunk-55PYF6S2.js';
|
|
37
|
+
import './chunk-JBJTC3UU.js';
|
|
38
|
+
import './chunk-UZGQT6OF.js';
|
|
39
|
+
import './chunk-MKSZHT6S.js';
|
|
42
40
|
import './chunk-RUML4JVG.js';
|
|
43
41
|
import { loadRunnerConfig, RunnerConfigError, checkHooks, keyRunnerFactory } from './chunk-HSSECQOA.js';
|
|
44
42
|
import './chunk-TGVIFTKI.js';
|
|
@@ -217,14 +217,14 @@ function governingDir(cwd) {
|
|
|
217
217
|
async function testProofMode(cwd) {
|
|
218
218
|
const dir = governingDir(cwd);
|
|
219
219
|
if (dir === void 0) return "any";
|
|
220
|
-
const { testProofIn } = await import('./host-checks-
|
|
220
|
+
const { testProofIn } = await import('./host-checks-ULFOOLWB.js');
|
|
221
221
|
return testProofIn(dir);
|
|
222
222
|
}
|
|
223
223
|
async function judgeCheckName(cwd) {
|
|
224
224
|
const dir = governingDir(cwd);
|
|
225
225
|
if (dir === void 0) return {};
|
|
226
226
|
if (!existsSync(dir)) return { note: `the governed context at ${dir} is not readable` };
|
|
227
|
-
const { checksIn, isJudgeCheck } = await import('./host-checks-
|
|
227
|
+
const { checksIn, isJudgeCheck } = await import('./host-checks-ULFOOLWB.js');
|
|
228
228
|
const quiet = { line: () => void 0, error: () => void 0 };
|
|
229
229
|
const check = checksIn(dir, quiet, "").checks.find((c) => isJudgeCheck(c) && c.judge.subjects === "criteria");
|
|
230
230
|
return check === void 0 ? {} : { name: check.name };
|
|
@@ -369,7 +369,7 @@ async function runWorkProofs(opts) {
|
|
|
369
369
|
async function runWorkProofsCommand(opts) {
|
|
370
370
|
try {
|
|
371
371
|
if (opts.record) {
|
|
372
|
-
const { runWorkProofsRecord } = await import('./work-proofs-record-
|
|
372
|
+
const { runWorkProofsRecord } = await import('./work-proofs-record-XJFVH7B4.js');
|
|
373
373
|
const result2 = await runWorkProofsRecord(opts);
|
|
374
374
|
process.exitCode = result2.exitCode;
|
|
375
375
|
return;
|
|
@@ -1,10 +1,9 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
|
-
import { placeholderQueues, placeholderProblem } from './chunk-
|
|
3
|
+
import { placeholderQueues, placeholderProblem } from './chunk-ZFGGCEH2.js';
|
|
4
4
|
import { checkFit, RUNNER_RESERVE_BYTES } from './chunk-BR2WJ6BX.js';
|
|
5
5
|
import { isBuiltinVm, builtinKind, EGRESS_SWITCHABLE_KEYS, imageBuildOf, keepsHostBuilder } from './chunk-HSSECQOA.js';
|
|
6
|
-
import { realBuildDiskProbe, checkDiskFit, DEFAULT_CACHE_DISK, DEFAULT_BUILD_DISK
|
|
7
|
-
import { spawnRun, RUNNER_LABEL, BUILD_LABEL } from './chunk-QH6RZLDV.js';
|
|
6
|
+
import { realBuildDiskProbe, checkDiskFit, DEFAULT_CACHE_DISK, DEFAULT_BUILD_DISK } from './chunk-TGVIFTKI.js';
|
|
8
7
|
import { builderDiskPinned } from './chunk-7SO2VHTQ.js';
|
|
9
8
|
import { getJson, WorkCommandError } from './chunk-UCRCIRQQ.js';
|
|
10
9
|
import { ensureHostKey } from './chunk-4DJZSNVT.js';
|
|
@@ -239,148 +238,4 @@ function gb(bytes) {
|
|
|
239
238
|
return `${(bytes / 1e9).toFixed(1)} GB`;
|
|
240
239
|
}
|
|
241
240
|
|
|
242
|
-
|
|
243
|
-
var KIND_LABEL = "ai.outerlayer.kind";
|
|
244
|
-
var RECIPE_KEY_LABEL = "ai.outerlayer.recipe-key";
|
|
245
|
-
var NO_BUILDER = /no builder .* found/i;
|
|
246
|
-
function failure(result, what) {
|
|
247
|
-
return new Error(`${what}: ${result.stderr.trim() || `docker exited ${result.status}`}`);
|
|
248
|
-
}
|
|
249
|
-
function labelled(stdout, runnerId) {
|
|
250
|
-
const found = [];
|
|
251
|
-
for (const line of stdout.split("\n")) {
|
|
252
|
-
const [key = "", build = "", runner = ""] = line.replace(/\r?\n$/, "").split(" ");
|
|
253
|
-
if (key.trim() === "" || build === "") continue;
|
|
254
|
-
if (runner !== "" && runner !== runnerId) continue;
|
|
255
|
-
found.push({ key: key.trim(), build, owned: runner === runnerId });
|
|
256
|
-
}
|
|
257
|
-
return found;
|
|
258
|
-
}
|
|
259
|
-
function decimalUnits() {
|
|
260
|
-
return { b: 1, kb: 1e3, mb: 1e6, gb: 1e9, tb: 1e12, pb: 1e15 };
|
|
261
|
-
}
|
|
262
|
-
function parsePrunedBytes(stdout) {
|
|
263
|
-
const match = /^Total(?: reclaimed space)?:\s*([\d.]+)\s*([A-Za-z]*)\s*$/im.exec(stdout);
|
|
264
|
-
if (match === null) return 0;
|
|
265
|
-
const unit = decimalUnits()[match[2].toLowerCase() || "b"];
|
|
266
|
-
return unit === void 0 ? 0 : Math.round(Number(match[1]) * unit);
|
|
267
|
-
}
|
|
268
|
-
function createHousekeepingDocker(deps) {
|
|
269
|
-
const run = deps.run ?? spawnRun;
|
|
270
|
-
return {
|
|
271
|
-
async listBuildContainers() {
|
|
272
|
-
const result = await run("docker", [
|
|
273
|
-
"ps",
|
|
274
|
-
"--all",
|
|
275
|
-
"--no-trunc",
|
|
276
|
-
"--filter",
|
|
277
|
-
`label=${BUILD_LABEL}`,
|
|
278
|
-
"--format",
|
|
279
|
-
`{{.ID}} {{.Label "${BUILD_LABEL}"}} {{.Label "${RUNNER_LABEL}"}}`
|
|
280
|
-
]);
|
|
281
|
-
if (result.status !== 0) throw failure(result, "docker ps");
|
|
282
|
-
return labelled(result.stdout, deps.runnerId).map(({ key, build, owned }) => ({ id: key, build, owned }));
|
|
283
|
-
},
|
|
284
|
-
async listBuildVolumes() {
|
|
285
|
-
const result = await run("docker", [
|
|
286
|
-
"volume",
|
|
287
|
-
"ls",
|
|
288
|
-
"--filter",
|
|
289
|
-
`label=${BUILD_LABEL}`,
|
|
290
|
-
"--format",
|
|
291
|
-
`{{.Name}} {{.Label "${BUILD_LABEL}"}} {{.Label "${RUNNER_LABEL}"}}`
|
|
292
|
-
]);
|
|
293
|
-
if (result.status !== 0) throw failure(result, "docker volume ls");
|
|
294
|
-
return labelled(result.stdout, deps.runnerId).map(({ key, build, owned }) => ({ name: key, build, owned }));
|
|
295
|
-
},
|
|
296
|
-
async removeContainer(id) {
|
|
297
|
-
const result = await run("docker", ["rm", "--force", "--volumes", id]);
|
|
298
|
-
if (result.status !== 0) throw failure(result, `docker rm ${id}`);
|
|
299
|
-
},
|
|
300
|
-
async removeVolume(name) {
|
|
301
|
-
const result = await run("docker", ["volume", "rm", "--force", name]);
|
|
302
|
-
if (result.status !== 0) throw failure(result, `docker volume rm ${name}`);
|
|
303
|
-
},
|
|
304
|
-
async imageState(ref) {
|
|
305
|
-
const result = await run("docker", ["image", "inspect", "--format", "{{.Id}}", ref]);
|
|
306
|
-
if (result.status === 0) return "present";
|
|
307
|
-
return /no such image|not found/i.test(result.stderr) ? "missing" : "unknown";
|
|
308
|
-
},
|
|
309
|
-
async listDanglingImages() {
|
|
310
|
-
const listed = await run("docker", [
|
|
311
|
-
"image",
|
|
312
|
-
"ls",
|
|
313
|
-
"--all",
|
|
314
|
-
"--no-trunc",
|
|
315
|
-
"--quiet",
|
|
316
|
-
"--filter",
|
|
317
|
-
"dangling=true",
|
|
318
|
-
"--filter",
|
|
319
|
-
`label=${KIND_LABEL}`,
|
|
320
|
-
"--filter",
|
|
321
|
-
`label=${RUNNER_LABEL}=${deps.runnerId}`
|
|
322
|
-
]);
|
|
323
|
-
if (listed.status !== 0) throw failure(listed, "docker image ls");
|
|
324
|
-
const ids = [...new Set(listed.stdout.split("\n").map((l) => l.trim()).filter(Boolean))];
|
|
325
|
-
if (ids.length === 0) return [];
|
|
326
|
-
const inspected = await run("docker", ["image", "inspect", ...ids]);
|
|
327
|
-
if (inspected.status !== 0) throw failure(inspected, "docker image inspect");
|
|
328
|
-
return JSON.parse(inspected.stdout).map((row) => ({
|
|
329
|
-
id: row.Id,
|
|
330
|
-
size: row.Size ?? 0,
|
|
331
|
-
labels: row.Config?.Labels ?? {}
|
|
332
|
-
}));
|
|
333
|
-
},
|
|
334
|
-
async listLabelledImages() {
|
|
335
|
-
const listed = await run("docker", ["image", "ls", "--all", "--no-trunc", "--quiet", "--filter", `label=${KIND_LABEL}`, "--filter", `label=${RUNNER_LABEL}=${deps.runnerId}`]);
|
|
336
|
-
if (listed.status !== 0) throw failure(listed, "docker image ls");
|
|
337
|
-
const ids = [...new Set(listed.stdout.split("\n").map((l) => l.trim()).filter(Boolean))];
|
|
338
|
-
if (ids.length === 0) return [];
|
|
339
|
-
const inspected = await run("docker", ["image", "inspect", ...ids]);
|
|
340
|
-
if (inspected.status !== 0) throw failure(inspected, "docker image inspect");
|
|
341
|
-
return JSON.parse(inspected.stdout).map((row) => ({
|
|
342
|
-
id: row.Id,
|
|
343
|
-
size: row.Size ?? 0,
|
|
344
|
-
labels: row.Config?.Labels ?? {},
|
|
345
|
-
tags: (row.RepoTags ?? []).filter((tag) => tag !== "<none>:<none>"),
|
|
346
|
-
createdMs: Date.parse(row.Created ?? "")
|
|
347
|
-
}));
|
|
348
|
-
},
|
|
349
|
-
async removeImage(id) {
|
|
350
|
-
const result = await run("docker", ["rmi", id]);
|
|
351
|
-
if (result.status !== 0) throw failure(result, `docker rmi ${id}`);
|
|
352
|
-
},
|
|
353
|
-
async removeBuilder() {
|
|
354
|
-
const inspected = await run("docker", ["buildx", "inspect", deps.builder]);
|
|
355
|
-
if (inspected.status !== 0 && NO_BUILDER.test(inspected.stderr)) return void 0;
|
|
356
|
-
const df = await run("docker", ["system", "df", "-v"]);
|
|
357
|
-
const freedBytes = df.status === 0 ? volumeBytes(df.stdout, /* @__PURE__ */ new Set([`buildx_buildkit_${deps.builder}0_state`])) : 0;
|
|
358
|
-
const result = await run("docker", ["buildx", "rm", deps.builder]);
|
|
359
|
-
if (result.status !== 0 && NO_BUILDER.test(result.stderr)) return void 0;
|
|
360
|
-
if (result.status !== 0) throw failure(result, "docker buildx rm");
|
|
361
|
-
return { freedBytes };
|
|
362
|
-
},
|
|
363
|
-
async builderPrune(keepBytes) {
|
|
364
|
-
const inspected = await run("docker", ["buildx", "inspect", deps.builder]);
|
|
365
|
-
if (inspected.status !== 0 && NO_BUILDER.test(inspected.stderr)) return void 0;
|
|
366
|
-
const status = inspected.status === 0 ? /^Status:\s*(\S+)/m.exec(inspected.stdout)?.[1] : void 0;
|
|
367
|
-
if (status !== void 0 && status !== "running") return void 0;
|
|
368
|
-
const result = await run("docker", ["buildx", "prune", "--builder", deps.builder, "--force", "--max-used-space", String(keepBytes)]);
|
|
369
|
-
if (result.status !== 0 && (NO_BUILDER.test(result.stderr) || /driver not running/i.test(result.stderr))) return void 0;
|
|
370
|
-
if (result.status !== 0) throw failure(result, "docker buildx prune");
|
|
371
|
-
return { freedBytes: parsePrunedBytes(result.stdout) };
|
|
372
|
-
}
|
|
373
|
-
};
|
|
374
|
-
}
|
|
375
|
-
async function housekeepingDockerIfReachable(deps) {
|
|
376
|
-
const run = deps.run ?? spawnRun;
|
|
377
|
-
try {
|
|
378
|
-
const answered = await run("docker", ["version", "--format", "{{.Server.Version}}"]);
|
|
379
|
-
if (answered.status !== 0) return void 0;
|
|
380
|
-
} catch {
|
|
381
|
-
return void 0;
|
|
382
|
-
}
|
|
383
|
-
return createHousekeepingDocker(deps);
|
|
384
|
-
}
|
|
385
|
-
|
|
386
|
-
export { KIND_LABEL, LARGE_BUILD_DISK_BYTES, RECIPE_KEY_LABEL, askFleetMachine, checkBlockedWithSlots, checkManagedRoom, createHousekeepingDocker, fleetConfigProblem, housekeepingDockerIfReachable, largeBuildMemoryBytes, managedFactsOf, managedProblems, realBlockedProbes, sliceMemoryOf };
|
|
241
|
+
export { LARGE_BUILD_DISK_BYTES, askFleetMachine, checkBlockedWithSlots, checkManagedRoom, fleetConfigProblem, largeBuildMemoryBytes, managedFactsOf, managedProblems, realBlockedProbes, sliceMemoryOf };
|
|
@@ -1224,7 +1224,7 @@ async function gatherDoctorChecks() {
|
|
|
1224
1224
|
const { runnerVmCheck } = await import('./doctor-53F2PYY7.js');
|
|
1225
1225
|
checks.push(runnerVmCheck(configPath, { lima: realLima(), home: homeFromEnv(), instance: runnerVm.instance }));
|
|
1226
1226
|
} else if (hasRunnerBlock(configPath)) {
|
|
1227
|
-
const { runnerHostChecks } = await import('./doctor-
|
|
1227
|
+
const { runnerHostChecks } = await import('./doctor-TIBTSPML.js');
|
|
1228
1228
|
const gateway = (() => {
|
|
1229
1229
|
try {
|
|
1230
1230
|
const loaded = loadRunnerConfig(configPath);
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
3
|
import { readNewestDemo } from './chunk-ER6KQCVJ.js';
|
|
4
|
-
import { runEmitArtifact } from './chunk-
|
|
4
|
+
import { runEmitArtifact } from './chunk-O6NQYFPH.js';
|
|
5
5
|
import { VoiceDownloadError, downloadPinned, sha256OfFile } from './chunk-2PGI6RDE.js';
|
|
6
6
|
import { VOICE_PACK_FILES, VOICE_PACK_VERSION } from './chunk-7SO2VHTQ.js';
|
|
7
7
|
import { detectActiveSession } from './chunk-IP7BIBXJ.js';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
|
-
import { staleBuildRefusal, staleBuildWarning, detectCi } from './chunk-
|
|
3
|
+
import { staleBuildRefusal, staleBuildWarning, detectCi } from './chunk-UI2VOW26.js';
|
|
4
4
|
import { launchRefusalForSession } from './chunk-AAGU5FJF.js';
|
|
5
5
|
import { detectActiveSession } from './chunk-IP7BIBXJ.js';
|
|
6
6
|
import { autoConnect } from './chunk-YZXI37NW.js';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
|
-
import { LiveUploader } from './chunk-
|
|
3
|
+
import { LiveUploader } from './chunk-UI2VOW26.js';
|
|
4
4
|
import { spoolDir } from './chunk-O3OREOCP.js';
|
|
5
5
|
import { CaptureDaemon } from './chunk-7K7TGHDF.js';
|
|
6
6
|
import { parseWorkItemEnv } from './chunk-5WYT3PPE.js';
|
|
@@ -2,7 +2,6 @@
|
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
3
|
import { uploadSpooledSteps } from './chunk-MJEUD4PD.js';
|
|
4
4
|
import { LaunchFilter } from './chunk-AAGU5FJF.js';
|
|
5
|
-
import { RepoFilter } from './chunk-TBT347UY.js';
|
|
6
5
|
import { C } from './chunk-2AM6Z5BP.js';
|
|
7
6
|
import { migrateLegacyArtifactSidecars, planArtifactUpload, artifactsStatePath, sanitizeTerminal, acquireArtifactSpoolLock, artifactBlobsDir, resolveArtifactTurnIndex, isArtifactTombstoned, ARTIFACT_RETRY_MAX_AGE_MS, writeArtifactSpoolState, reclaimUnneededArtifactBlobs, neededArtifactShas } from './chunk-YQDXFFOK.js';
|
|
8
7
|
import { cliFetch, resolveGatewayCredentials, defaultFetch, unauthorizedMessage } from './chunk-YQHEJ5SV.js';
|
|
@@ -215,6 +214,41 @@ function readSqliteWatermark(url, appId, home) {
|
|
|
215
214
|
return null;
|
|
216
215
|
}
|
|
217
216
|
}
|
|
217
|
+
|
|
218
|
+
// src/repo-filter.ts
|
|
219
|
+
function toMatcher(pattern) {
|
|
220
|
+
const escaped = pattern.replace(/[.+?^${}()|[\]\\]/g, "\\$&").replace(/\*/g, ".*");
|
|
221
|
+
return new RegExp(`^${escaped}$`, "i");
|
|
222
|
+
}
|
|
223
|
+
var RepoFilter = class {
|
|
224
|
+
constructor(config) {
|
|
225
|
+
/** Sessions dropped, keyed by repo (or "(no repo)") — for the sync summary. */
|
|
226
|
+
this.skipped = /* @__PURE__ */ new Map();
|
|
227
|
+
this.include = (config?.include ?? []).map(toMatcher);
|
|
228
|
+
this.exclude = (config?.exclude ?? []).map(toMatcher);
|
|
229
|
+
}
|
|
230
|
+
get active() {
|
|
231
|
+
return this.include.length > 0 || this.exclude.length > 0;
|
|
232
|
+
}
|
|
233
|
+
/** True when the session should sync. Records skips for reporting. */
|
|
234
|
+
allows(repo) {
|
|
235
|
+
const label = repo || "(no repo)";
|
|
236
|
+
if (repo && this.exclude.some((m) => m.test(repo))) {
|
|
237
|
+
this.skipped.set(label, (this.skipped.get(label) ?? 0) + 1);
|
|
238
|
+
return false;
|
|
239
|
+
}
|
|
240
|
+
if (this.include.length > 0 && !(repo && this.include.some((m) => m.test(repo)))) {
|
|
241
|
+
this.skipped.set(label, (this.skipped.get(label) ?? 0) + 1);
|
|
242
|
+
return false;
|
|
243
|
+
}
|
|
244
|
+
return true;
|
|
245
|
+
}
|
|
246
|
+
get skippedTotal() {
|
|
247
|
+
let n = 0;
|
|
248
|
+
for (const c of this.skipped.values()) n += c;
|
|
249
|
+
return n;
|
|
250
|
+
}
|
|
251
|
+
};
|
|
218
252
|
var HOOK_TIMEOUT_MS = 6e5;
|
|
219
253
|
var HOOK_INCOMPLETE_SLACK_MS = 6e4;
|
|
220
254
|
var HOOK_INCOMPLETE_AFTER_MS = HOOK_TIMEOUT_MS + HOOK_INCOMPLETE_SLACK_MS;
|
|
@@ -1955,4 +1989,4 @@ ${C.yellow}!${C.reset} batch ${shippedBatches + 1}/${batches.length} accounting
|
|
|
1955
1989
|
}
|
|
1956
1990
|
}
|
|
1957
1991
|
|
|
1958
|
-
export { CHUNK_PART_TARGET_BYTES, LiveUploader, RETRYABLE_STATUSES, SyncConfigError, SyncTransportError, detectCi, installScrubContext, isLoopbackUrl, resolveTier, runSync, staleBuildRefusal, staleBuildWarning };
|
|
1992
|
+
export { CHUNK_PART_TARGET_BYTES, LiveUploader, RETRYABLE_STATUSES, RepoFilter, SyncConfigError, SyncTransportError, detectCi, installScrubContext, isLoopbackUrl, resolveTier, runSync, staleBuildRefusal, staleBuildWarning };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
|
-
import { scrubReason, stripTerminalControls } from './chunk-
|
|
3
|
+
import { scrubReason, stripTerminalControls } from './chunk-ZFGGCEH2.js';
|
|
4
4
|
import { checkFit, RUNNER_RESERVE_BYTES } from './chunk-BR2WJ6BX.js';
|
|
5
5
|
import { RunnerAlreadyRunningError, readPidFile } from './chunk-WAZJPDR2.js';
|
|
6
6
|
import { isSameProcess } from './chunk-JBJTC3UU.js';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
|
-
import { helperSocketPath } from './chunk-
|
|
3
|
+
import { helperSocketPath } from './chunk-ZFGGCEH2.js';
|
|
4
4
|
import { UNIT_MARKER } from './chunk-BR2WJ6BX.js';
|
|
5
5
|
import { runnerDir } from './chunk-WT7J2627.js';
|
|
6
6
|
import { createHash } from 'crypto';
|