@outerlayer/cli 0.36.0-next.20261030203048 → 0.36.0-next.20261031112440
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/README.md +7 -14
- package/dist/{agent-setup-RZE6O737.js → agent-setup-UYTS2PHZ.js} +11 -10
- package/dist/{artifact-link-cmd-DLKYKNWF.js → artifact-link-cmd-W7LRR76D.js} +2 -2
- package/dist/{build-GVNOXEDV.js → build-KM6UILOZ.js} +4 -4
- package/dist/{build-disk-H5VDB4G2.js → build-disk-GCEB5EJC.js} +4 -4
- package/dist/build-info.json +1 -1
- package/dist/{builder-QW6N3XBA.js → builder-NRPJGNXU.js} +3 -3
- package/dist/{caller-TUO3VAKG.js → caller-XHNAY4E2.js} +6 -6
- package/dist/{check-E2ZTWJPM.js → check-MENIW2MN.js} +43 -44
- package/dist/{chunk-OSQEG4HG.js → chunk-25GQP6NR.js} +7026 -2552
- package/dist/{chunk-QLWEXEEA.js → chunk-34YFGWHR.js} +1 -1
- package/dist/{chunk-MJEUD4PD.js → chunk-3GFZSLSP.js} +4 -4
- package/dist/{chunk-YQDXFFOK.js → chunk-3PQTOKML.js} +1 -1
- package/dist/{chunk-HSSECQOA.js → chunk-3QLHEGXK.js} +2 -2
- package/dist/{chunk-OUMMLC45.js → chunk-3SQZ5LIK.js} +2 -2
- package/dist/{chunk-RUML4JVG.js → chunk-3YRJUX6J.js} +1 -1
- package/dist/{chunk-LOI3ESFV.js → chunk-4AMSCAHT.js} +6 -151
- package/dist/{chunk-OJ2KWQPQ.js → chunk-4SFHEARD.js} +1 -1
- package/dist/{chunk-3XIAGOPV.js → chunk-5AJZGYWC.js} +4 -4
- package/dist/{chunk-D4BIUQPA.js → chunk-5H57X7YC.js} +1 -1
- package/dist/{chunk-BBUIVGIR.js → chunk-5UBNSGK3.js} +3 -3
- package/dist/{chunk-7ABJKQAQ.js → chunk-6IJZL7X2.js} +2 -2
- package/dist/{chunk-O6V6T6HD.js → chunk-6T2JWCSZ.js} +12 -12
- package/dist/{chunk-7GX4X25F.js → chunk-7O7LJWQO.js} +1 -1
- package/dist/{chunk-TGVIFTKI.js → chunk-AVJWMOEY.js} +1 -1
- package/dist/{chunk-TUN3TYBX.js → chunk-BFF6AJXM.js} +8 -8
- package/dist/{chunk-A2QQGMQ7.js → chunk-C4YULCXX.js} +7 -7
- package/dist/chunk-F3ZMVUAS.js +40 -0
- package/dist/{chunk-OFOEDDN6.js → chunk-FRDYAKH3.js} +2 -2
- package/dist/{chunk-5TJQBHKO.js → chunk-GDIVOYDA.js} +4 -4
- package/dist/{chunk-O3OREOCP.js → chunk-GDMAN42R.js} +2 -2
- package/dist/{chunk-JII4O3EZ.js → chunk-GU25RNKD.js} +3 -3
- package/dist/{chunk-6KLNELLP.js → chunk-IVY3PD7P.js} +3 -3
- package/dist/{chunk-AILO7SNG.js → chunk-JFMSFHER.js} +13 -211
- package/dist/{chunk-FCJWPFDS.js → chunk-JPROSTGX.js} +4 -4
- package/dist/{chunk-3IQE34I3.js → chunk-K2YG2HZN.js} +19 -393
- package/dist/{chunk-4A7GNO4U.js → chunk-LESWXCKZ.js} +1 -1
- package/dist/{chunk-YZXI37NW.js → chunk-LHFG5YUG.js} +2 -2
- package/dist/{chunk-WNM5GXJ3.js → chunk-LRCGXRQI.js} +2 -2
- package/dist/{chunk-KSMN2FUF.js → chunk-LZ7PAU55.js} +6 -2
- package/dist/{chunk-VOURWC2H.js → chunk-MMDGO77D.js} +1 -1
- package/dist/{chunk-BIAXDR3K.js → chunk-MMXPNEEQ.js} +8 -8
- package/dist/{chunk-BR2WJ6BX.js → chunk-MVSC7GCE.js} +2 -2
- package/dist/{chunk-7K7TGHDF.js → chunk-MXWPLGO6.js} +74 -707
- package/dist/{chunk-EA57H6AT.js → chunk-OLENS2DD.js} +1 -1
- package/dist/{chunk-WQXEJ43L.js → chunk-OPF6OJAT.js} +4 -4
- package/dist/{chunk-XHDJ75TC.js → chunk-PDQWXH3F.js} +5 -5
- package/dist/{chunk-QH6RZLDV.js → chunk-PJZKKFQO.js} +1 -1
- package/dist/{chunk-GGNG6CVE.js → chunk-PN6TNCQI.js} +14 -7
- package/dist/{chunk-YTNZ237E.js → chunk-RGH5GYU2.js} +7 -7
- package/dist/{chunk-UCRCIRQQ.js → chunk-S6OD32NC.js} +5 -5
- package/dist/{chunk-D3H37WUD.js → chunk-T3AJOPUR.js} +2 -2
- package/dist/{chunk-UHD5ZR46.js → chunk-U553JKMO.js} +4 -4
- package/dist/{chunk-IZVBCDSH.js → chunk-VG2NIWR4.js} +4 -4
- package/dist/{chunk-ID57YZP2.js → chunk-VJYNMGCE.js} +2 -2
- package/dist/{chunk-QZSA5R3L.js → chunk-VUG4IZ7H.js} +1 -1
- package/dist/{chunk-WXR6AVZ7.js → chunk-XTVVKNRP.js} +41 -10
- package/dist/{claude-launcher-FK5ZQWXC.js → claude-launcher-YV3TDXBU.js} +5 -5
- package/dist/{cli-YMCBXWRM.js → cli-TAFO3WOQ.js} +116 -118
- package/dist/{command-AYXNOGIU.js → command-TRSFSBT5.js} +45 -25
- package/dist/{config-NVGVPL3L.js → config-YCQV3OQK.js} +5 -5
- package/dist/{connect-cmd-KO2TIY6J.js → connect-cmd-IRJ3MBPY.js} +8 -8
- package/dist/{container-start-KS52ID4M.js → container-start-UY2YVY3L.js} +39 -40
- package/dist/{context-cleanup-2MTGLUYS.js → context-cleanup-TPHCVVFV.js} +3 -3
- package/dist/{context-show-cmd-XLER7QAI.js → context-show-cmd-YQEQ5B34.js} +9 -9
- package/dist/{control-plane-launch-RUJOCYEI.js → control-plane-launch-UWFQWMWB.js} +11 -6
- package/dist/{demo-voice-cmd-GLN5QZJP.js → demo-voice-cmd-QAH7KPVO.js} +15 -16
- package/dist/dist-2SPMAD7Z.js +7 -0
- package/dist/{docker-3AZ3ZFLA.js → docker-2247NBIK.js} +3 -3
- package/dist/{doctor-TLIRZM2C.js → doctor-VVFPHFS4.js} +46 -27
- package/dist/{emit-artifact-cmd-CNC5CPKI.js → emit-artifact-cmd-3YHOU4TI.js} +13 -14
- package/dist/{emit-cmd-6NZOT5DS.js → emit-cmd-HNXRGC5Z.js} +7 -6
- package/dist/{emit-criteria-cmd-BNXWF46E.js → emit-criteria-cmd-NN52H53B.js} +10 -10
- package/dist/{emit-demo-cmd-UXTH6XBO.js → emit-demo-cmd-V7CP333I.js} +15 -16
- package/dist/{emit-finding-cmd-5HZE7W6C.js → emit-finding-cmd-J5UZGNP4.js} +10 -10
- package/dist/{emit-result-cmd-KAEWXQIH.js → emit-result-cmd-IWMACBFI.js} +12 -13
- package/dist/{emit-step-cmd-HSKB3SNR.js → emit-step-cmd-SRWFWEU7.js} +10 -10
- package/dist/{find-unit-CNYGB5AN.js → find-unit-FEYD4IHC.js} +7 -7
- package/dist/{findings-cmd-2OQMIVHA.js → findings-cmd-BWTLCXDR.js} +10 -10
- package/dist/{fleet-readiness-PCQSCHQ5.js → fleet-readiness-FAKMWCJV.js} +8 -8
- package/dist/{governing-source-7XCL3AYM.js → governing-source-6ANJ4HQI.js} +14 -13
- package/dist/{guest-init-2TTQKFFZ.js → guest-init-WPUS45IN.js} +2 -2
- package/dist/{hook-fast-EMZVAUJ5.js → hook-fast-3HPWMSFB.js} +1 -1
- package/dist/{host-checks-TRVDAYBL.js → host-checks-TX22YEFD.js} +37 -38
- package/dist/index.js +4 -4
- package/dist/{init-OOYCYL2C.js → init-36AY3ZQZ.js} +44 -24
- package/dist/init-IYL3YXEM.js +78 -0
- package/dist/{init-cmd-4PVOILZD.js → init-cmd-JK2OGQU5.js} +18 -18
- package/dist/{init-update-QMSQEZQU.js → init-update-4IQPGOA6.js} +24 -31
- package/dist/{layout-YJ2RD5H2.js → layout-TLUOMM6F.js} +4 -4
- package/dist/{login-browser-TWUHD2DS.js → login-browser-ODTJEGDN.js} +2 -2
- package/dist/{loop-EIR2YPA2.js → loop-U72FDFQR.js} +42 -43
- package/dist/machine-S2TYJJPP.js +78 -0
- package/dist/{machine-skills-FWIZV5HO.js → machine-skills-VRUJVBQV.js} +4 -4
- package/dist/{runner-env-IDGTVTYW.js → runner-env-OPRWKIKI.js} +7 -7
- package/dist/{runner-identity-RJYVFQ5K.js → runner-identity-OY75LG6G.js} +3 -3
- package/dist/{runner-key-BKMFJ7RA.js → runner-key-6WN67PRU.js} +44 -24
- package/dist/{session-sender-QDZWNAY7.js → session-sender-EINASB3R.js} +13 -14
- package/dist/{spec-cmd-OYQEUAMI.js → spec-cmd-253AGRFF.js} +11 -11
- package/dist/{starter-pack-6FOYP6DY.js → starter-pack-7QNUT74O.js} +5 -5
- package/dist/{status-BZ37VEAJ.js → status-WCQG6SX4.js} +37 -38
- package/dist/{sync-cmd-MNXFOIHW.js → sync-cmd-Z6PU33GC.js} +12 -13
- package/dist/{update-steps-VPBGYVW5.js → update-steps-BOKCWGQ6.js} +38 -39
- package/dist/{watch-E7RGSZF6.js → watch-XNBXSIEI.js} +12 -13
- package/dist/{work-claim-cmd-HX7DGFY3.js → work-claim-cmd-2A6D5EYO.js} +15 -15
- package/dist/{work-cmd-IEC6XKC6.js → work-cmd-JZUBXXJN.js} +10 -10
- package/dist/{work-comment-cmd-X65LS27O.js → work-comment-cmd-L4R6ZXLO.js} +12 -12
- package/dist/{work-demo-cmd-D7WGXJOC.js → work-demo-cmd-YNPN2PHQ.js} +10 -10
- package/dist/{work-logs-cmd-FQH2UVMI.js → work-logs-cmd-CSQJB5MD.js} +10 -10
- package/dist/{work-open-pr-cmd-EFAFERSF.js → work-open-pr-cmd-Y7YNI2PF.js} +11 -11
- package/dist/{work-pr-cmd-E55GPZKO.js → work-pr-cmd-QGAOPNLV.js} +10 -10
- package/dist/{work-proofs-cmd-B5X3AJQY.js → work-proofs-cmd-RPVVD2SC.js} +12 -12
- package/dist/{work-proofs-record-DDOAQOPX.js → work-proofs-record-ULCY5QEP.js} +19 -20
- package/dist/{work-stop-cmd-ANPTSTYS.js → work-stop-cmd-LF4OTNPL.js} +10 -10
- package/package.json +1 -1
- package/dist/chunk-PHFZMU32.js +0 -3924
- package/dist/chunk-TBT347UY.js +0 -41
- package/dist/dist-4Q4Y6YJL.js +0 -7
- package/dist/init-HEZDVJPU.js +0 -58
- package/dist/machine-23Y2EHH7.js +0 -58
- package/dist/{chunk-H2GESWLW.js → chunk-55PYF6S2.js} +1 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
|
-
import { DEFAULT_UNIT_NAME } from './chunk-
|
|
3
|
+
import { DEFAULT_UNIT_NAME } from './chunk-MVSC7GCE.js';
|
|
4
4
|
import { RUNNER_FILE_MODE } from './chunk-WT7J2627.js';
|
|
5
5
|
import { claudeEnvPath, withoutCredentialLines, parseRunnerEnv } from './chunk-GANAOCHR.js';
|
|
6
6
|
import { existsSync, readFileSync, writeFileSync, renameSync, rmSync } from 'fs';
|
|
@@ -2,14 +2,14 @@
|
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
3
|
import { launchRefusalForSession } from './chunk-AAGU5FJF.js';
|
|
4
4
|
import { detectActiveSession } from './chunk-IP7BIBXJ.js';
|
|
5
|
-
import { autoConnect } from './chunk-
|
|
5
|
+
import { autoConnect } from './chunk-LHFG5YUG.js';
|
|
6
6
|
import { C } from './chunk-2AM6Z5BP.js';
|
|
7
|
-
import { acquireSpoolLockAt } from './chunk-
|
|
7
|
+
import { acquireSpoolLockAt } from './chunk-3PQTOKML.js';
|
|
8
8
|
import { resolveGatewayCredentials, defaultFetch, unauthorizedMessage } from './chunk-YQHEJ5SV.js';
|
|
9
|
-
import { resolveRepoIdentity } from './chunk-
|
|
9
|
+
import { resolveRepoIdentity } from './chunk-MXWPLGO6.js';
|
|
10
10
|
import { launchedItemForSession } from './chunk-5WYT3PPE.js';
|
|
11
11
|
import { parseTrackerNumber, trackerNumberError } from './chunk-WZBHBH3J.js';
|
|
12
|
-
import { StepNameSchema, StepBodySchema } from './chunk-
|
|
12
|
+
import { StepNameSchema, StepBodySchema } from './chunk-VUG4IZ7H.js';
|
|
13
13
|
import { homeFromEnv } from './chunk-352DHUTP.js';
|
|
14
14
|
import { randomUUID } from 'crypto';
|
|
15
15
|
import { readFileSync, existsSync, mkdirSync, writeFileSync, renameSync, appendFileSync } from 'fs';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
|
-
import { ArtifactTombstoneRecordSchema, ArtifactSpoolRecordSchema } from './chunk-
|
|
3
|
+
import { ArtifactTombstoneRecordSchema, ArtifactSpoolRecordSchema } from './chunk-VUG4IZ7H.js';
|
|
4
4
|
import { homeFromEnv } from './chunk-352DHUTP.js';
|
|
5
5
|
import { mkdirSync, appendFileSync, writeFileSync, renameSync, unlinkSync, existsSync, readdirSync, readFileSync, statSync } from 'fs';
|
|
6
6
|
import { join, dirname } from 'path';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
|
-
import { DEFAULT_CACHE_DISK, DEFAULT_BUILD_DISK } from './chunk-
|
|
4
|
-
import { parseSize } from './chunk-
|
|
3
|
+
import { DEFAULT_CACHE_DISK, DEFAULT_BUILD_DISK } from './chunk-AVJWMOEY.js';
|
|
4
|
+
import { parseSize } from './chunk-PJZKKFQO.js';
|
|
5
5
|
import { builderDiskPinned } from './chunk-7SO2VHTQ.js';
|
|
6
6
|
import { homeFromEnv } from './chunk-352DHUTP.js';
|
|
7
7
|
import { isRefusedInConfig, resolveDestinations, isReservedVariable } from './chunk-GANAOCHR.js';
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
3
|
import { C } from './chunk-2AM6Z5BP.js';
|
|
4
|
-
import { resolvePackRoot, OUTERLAYER_SKILLS_BASE, loadTemplateFiles, AGENTS_SKILLS_BASE, loadMaintainedFiles, rewriteSkillPaths, TEMPLATE_SKILLS, skillDir, writeMaintainedFiles, MACHINE_SKILL_PATH } from './chunk-
|
|
4
|
+
import { resolvePackRoot, OUTERLAYER_SKILLS_BASE, loadTemplateFiles, AGENTS_SKILLS_BASE, loadMaintainedFiles, rewriteSkillPaths, TEMPLATE_SKILLS, skillDir, writeMaintainedFiles, MACHINE_SKILL_PATH } from './chunk-7O7LJWQO.js';
|
|
5
5
|
import { MAINTAINED_SKILLS } from './chunk-CDDED64E.js';
|
|
6
6
|
import { resolvePackageVersion } from './chunk-RA3O54FC.js';
|
|
7
7
|
import { cliInvocation } from './chunk-FZKNTIOJ.js';
|
|
8
|
-
import { linkedAgentsPath } from './chunk-
|
|
8
|
+
import { linkedAgentsPath } from './chunk-4SFHEARD.js';
|
|
9
9
|
import { readFileSync, existsSync, mkdirSync, writeFileSync } from 'fs';
|
|
10
10
|
import { join, dirname } from 'path';
|
|
11
11
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
|
-
import { keyRunnerFactory, RunnerConfigError } from './chunk-
|
|
3
|
+
import { keyRunnerFactory, RunnerConfigError } from './chunk-3QLHEGXK.js';
|
|
4
4
|
import { orgHomeDir } from './chunk-WT7J2627.js';
|
|
5
5
|
|
|
6
6
|
createRequire(import.meta.url);
|
|
@@ -1,12 +1,11 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
|
-
import { placeholderQueues, placeholderProblem } from './chunk-
|
|
4
|
-
import { checkFit, RUNNER_RESERVE_BYTES } from './chunk-
|
|
5
|
-
import { isBuiltinVm, builtinKind, EGRESS_SWITCHABLE_KEYS, imageBuildOf, keepsHostBuilder } from './chunk-
|
|
6
|
-
import { realBuildDiskProbe, checkDiskFit, DEFAULT_CACHE_DISK, DEFAULT_BUILD_DISK
|
|
7
|
-
import { spawnRun, RUNNER_LABEL, BUILD_LABEL } from './chunk-QH6RZLDV.js';
|
|
3
|
+
import { placeholderQueues, placeholderProblem } from './chunk-25GQP6NR.js';
|
|
4
|
+
import { checkFit, RUNNER_RESERVE_BYTES } from './chunk-MVSC7GCE.js';
|
|
5
|
+
import { isBuiltinVm, builtinKind, EGRESS_SWITCHABLE_KEYS, imageBuildOf, keepsHostBuilder } from './chunk-3QLHEGXK.js';
|
|
6
|
+
import { realBuildDiskProbe, checkDiskFit, DEFAULT_CACHE_DISK, DEFAULT_BUILD_DISK } from './chunk-AVJWMOEY.js';
|
|
8
7
|
import { builderDiskPinned } from './chunk-7SO2VHTQ.js';
|
|
9
|
-
import { getJson, WorkCommandError } from './chunk-
|
|
8
|
+
import { getJson, WorkCommandError } from './chunk-S6OD32NC.js';
|
|
10
9
|
import { ensureHostKey } from './chunk-4DJZSNVT.js';
|
|
11
10
|
import { BUILD_SLICE_MEMORY_ENV, FORWARDED_CLAUDE_CREDENTIAL_VARIABLES, claudeCredentialVariablesSet, claudeCredential, claudeEnvPath, parseRunnerEnv } from './chunk-GANAOCHR.js';
|
|
12
11
|
import { closeSync, openSync, constants, readFileSync } from 'fs';
|
|
@@ -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 };
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
3
|
import { readContextManifest, removeContextManifest } from './chunk-YQR6E6OV.js';
|
|
4
4
|
import { removePreCommitGuardHook } from './chunk-CJPTUU2E.js';
|
|
5
|
-
import { CONTEXT_PIN_FILENAME } from './chunk-
|
|
5
|
+
import { CONTEXT_PIN_FILENAME } from './chunk-JFMSFHER.js';
|
|
6
6
|
import { execFileSync } from 'child_process';
|
|
7
7
|
import { lstatSync, existsSync, unlinkSync, readdirSync, rmdirSync, readFileSync, mkdirSync, writeFileSync } from 'fs';
|
|
8
8
|
import { join, dirname, isAbsolute } from 'path';
|
|
@@ -1,16 +1,16 @@
|
|
|
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-PDQWXH3F.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';
|
|
8
|
-
import { autoConnect } from './chunk-
|
|
8
|
+
import { autoConnect } from './chunk-LHFG5YUG.js';
|
|
9
9
|
import { C } from './chunk-2AM6Z5BP.js';
|
|
10
10
|
import { defaultFetch, resolveGatewayCredentials } from './chunk-YQHEJ5SV.js';
|
|
11
|
-
import { resolveRepoIdentity } from './chunk-
|
|
11
|
+
import { resolveRepoIdentity } from './chunk-MXWPLGO6.js';
|
|
12
12
|
import { launchedItemForSession } from './chunk-5WYT3PPE.js';
|
|
13
|
-
import { ARTIFACT_MAX_BYTES, ARTIFACT_MAX_CAPTION_LENGTH, DEMO_RECORD_MEDIA_TYPE, ARTIFACT_MAX_REPLACES_TARGETS, DEMO_MANIFEST_LATEST_VERSION, DemoManifestSchema, ARTIFACT_KINDS } from './chunk-
|
|
13
|
+
import { ARTIFACT_MAX_BYTES, ARTIFACT_MAX_CAPTION_LENGTH, DEMO_RECORD_MEDIA_TYPE, ARTIFACT_MAX_REPLACES_TARGETS, DEMO_MANIFEST_LATEST_VERSION, DemoManifestSchema, ARTIFACT_KINDS } from './chunk-VUG4IZ7H.js';
|
|
14
14
|
import { homeFromEnv } from './chunk-352DHUTP.js';
|
|
15
15
|
import { __commonJS, __require, __toESM } from './chunk-Z5GEFMRW.js';
|
|
16
16
|
import { createHash } from 'crypto';
|
|
@@ -5,7 +5,7 @@ import { C } from './chunk-2AM6Z5BP.js';
|
|
|
5
5
|
import { readCloudConfigStrict, CloudConfigError, readCloudConfig, writeCloudConfig, cloudConfigPath } from './chunk-HWVMRETT.js';
|
|
6
6
|
import { findGitDirs } from './chunk-BJ3KTMDH.js';
|
|
7
7
|
import { cliInvocation } from './chunk-FZKNTIOJ.js';
|
|
8
|
-
import { CLI_LOGIN_MACHINE_NAME_MAX, CliLoginPollResponseSchema, CLI_LOGIN_KIND, CliLoginRefusalSchema, CliLoginStartedSchema } from './chunk-
|
|
8
|
+
import { CLI_LOGIN_MACHINE_NAME_MAX, CliLoginPollResponseSchema, CLI_LOGIN_KIND, CliLoginRefusalSchema, CliLoginStartedSchema } from './chunk-VUG4IZ7H.js';
|
|
9
9
|
import { homeFromEnv } from './chunk-352DHUTP.js';
|
|
10
10
|
import { generateKeyPairSync, privateDecrypt, constants, createPrivateKey } from 'crypto';
|
|
11
11
|
import { spawn } from 'child_process';
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
|
-
import { LiveUploader } from './chunk-
|
|
4
|
-
import { spoolDir } from './chunk-
|
|
5
|
-
import { CaptureDaemon } from './chunk-
|
|
3
|
+
import { LiveUploader } from './chunk-XTVVKNRP.js';
|
|
4
|
+
import { spoolDir } from './chunk-GDMAN42R.js';
|
|
5
|
+
import { CaptureDaemon } from './chunk-MXWPLGO6.js';
|
|
6
6
|
import { parseWorkItemEnv } from './chunk-5WYT3PPE.js';
|
|
7
7
|
import { homeFromEnv } from './chunk-352DHUTP.js';
|
|
8
8
|
import { mkdirSync, writeFileSync, rmSync } from 'fs';
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
3
|
import { detectActiveSession } from './chunk-IP7BIBXJ.js';
|
|
4
|
-
import { autoConnect } from './chunk-
|
|
4
|
+
import { autoConnect } from './chunk-LHFG5YUG.js';
|
|
5
5
|
import { C } from './chunk-2AM6Z5BP.js';
|
|
6
6
|
import { defaultFetch, unauthorizedMessage, resolveGatewayCredentials } from './chunk-YQHEJ5SV.js';
|
|
7
|
-
import { resolveRepoIdentity } from './chunk-
|
|
7
|
+
import { resolveRepoIdentity } from './chunk-MXWPLGO6.js';
|
|
8
8
|
import { parseWorkItemEnv } from './chunk-5WYT3PPE.js';
|
|
9
9
|
import { parseTrackerNumber, trackerNumberError } from './chunk-WZBHBH3J.js';
|
|
10
10
|
import { homeFromEnv } from './chunk-352DHUTP.js';
|
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
|
-
import { checkStarterFiles, contextIsGoverned } from './chunk-
|
|
4
|
-
import { resolveCredentials, getJson, WorkCommandError } from './chunk-
|
|
5
|
-
import { isLinkedRepository } from './chunk-
|
|
3
|
+
import { checkStarterFiles, contextIsGoverned } from './chunk-U553JKMO.js';
|
|
4
|
+
import { resolveCredentials, getJson, WorkCommandError } from './chunk-S6OD32NC.js';
|
|
5
|
+
import { isLinkedRepository } from './chunk-JPROSTGX.js';
|
|
6
6
|
import { C } from './chunk-2AM6Z5BP.js';
|
|
7
|
-
import { fleetCheck, checkBuildSkill, checkMachineSkills, checkCommittedMaintainedSkills, checkMaintainedReferences, checkIgnoredSkillFolders } from './chunk-
|
|
8
|
-
import { sanitizeTerminal } from './chunk-
|
|
9
|
-
import { checkFormerSkillNames } from './chunk-
|
|
7
|
+
import { fleetCheck, checkBuildSkill, checkMachineSkills, checkCommittedMaintainedSkills, checkMaintainedReferences, checkIgnoredSkillFolders } from './chunk-C4YULCXX.js';
|
|
8
|
+
import { sanitizeTerminal } from './chunk-3PQTOKML.js';
|
|
9
|
+
import { checkFormerSkillNames } from './chunk-T3AJOPUR.js';
|
|
10
10
|
import { resolveGatewayCredentials, defaultFetch } from './chunk-YQHEJ5SV.js';
|
|
11
|
-
import { sanitizeForContext, spoolDir, assessSyncHealth, readSyncStatus, SYNC_STALE_AFTER_MS, formatAgo, checkInstalledCliStaleness, workspaceRootOf, hookFiredMarkerPath, refreshCommand } from './chunk-
|
|
11
|
+
import { sanitizeForContext, spoolDir, assessSyncHealth, readSyncStatus, SYNC_STALE_AFTER_MS, formatAgo, checkInstalledCliStaleness, workspaceRootOf, hookFiredMarkerPath, refreshCommand } from './chunk-GDMAN42R.js';
|
|
12
12
|
import { readStatuslineState, STATE_FRESH_MS } from './chunk-YBAVN6WS.js';
|
|
13
13
|
import { hookCommandEscapesControlPlane, CONTROL_PLANE_DIR_VARIABLE } from './chunk-HCVLP7XA.js';
|
|
14
14
|
import { findGitDirs } from './chunk-BJ3KTMDH.js';
|
|
15
|
-
import { resolveRepoIdentity, compareVersions, SUPPORTED_VERSIONS } from './chunk-
|
|
15
|
+
import { resolveRepoIdentity, compareVersions, SUPPORTED_VERSIONS } from './chunk-MXWPLGO6.js';
|
|
16
16
|
import { cliInvocation } from './chunk-FZKNTIOJ.js';
|
|
17
17
|
import { readSettings, settingsPath, isOurStatuslineSlot, statuslineWrappedOriginal, REGISTERED_EVENTS, isOurHookCommand, ourCommandBins, cliBinResolvable, ourDirectScriptBins, wrappedOriginalCommand } from './chunk-KYDEBGJG.js';
|
|
18
18
|
import { readDeliveryRecord, readDegraded, readSourceCache } from './chunk-YQR6E6OV.js';
|
|
@@ -1195,8 +1195,8 @@ function doctorExitCode(checks) {
|
|
|
1195
1195
|
|
|
1196
1196
|
// src/doctor-report.ts
|
|
1197
1197
|
async function gatherDoctorChecks() {
|
|
1198
|
-
const { DEFAULT_BUILD_DISK, DEFAULT_CACHE_DISK } = await import('./build-disk-
|
|
1199
|
-
const { defaultRunnerConfigPath, hasRunnerBlock, keyRunnerFactory, loadRunnerConfig, runnerVmOf } = await import('./config-
|
|
1198
|
+
const { DEFAULT_BUILD_DISK, DEFAULT_CACHE_DISK } = await import('./build-disk-GCEB5EJC.js');
|
|
1199
|
+
const { defaultRunnerConfigPath, hasRunnerBlock, keyRunnerFactory, loadRunnerConfig, runnerVmOf } = await import('./config-YCQV3OQK.js');
|
|
1200
1200
|
const configPath = defaultRunnerConfigPath();
|
|
1201
1201
|
const runnerHost = hasRunnerBlock(configPath);
|
|
1202
1202
|
const hooks = (() => {
|
|
@@ -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-VVFPHFS4.js');
|
|
1228
1228
|
const gateway = (() => {
|
|
1229
1229
|
try {
|
|
1230
1230
|
const loaded = loadRunnerConfig(configPath);
|
|
@@ -1252,7 +1252,7 @@ async function gatherDoctorChecks() {
|
|
|
1252
1252
|
const service = await (async () => {
|
|
1253
1253
|
const { existsSync: existsSync3 } = await import('fs');
|
|
1254
1254
|
if (process.platform !== "linux" || !existsSync3("/run/systemd/system")) return void 0;
|
|
1255
|
-
const { inspectRunnerService } = await import('./find-unit-
|
|
1255
|
+
const { inspectRunnerService } = await import('./find-unit-FEYD4IHC.js');
|
|
1256
1256
|
return inspectRunnerService(configPath);
|
|
1257
1257
|
})();
|
|
1258
1258
|
checks.push(...await runnerHostChecks({ configPath, hooks, gateway, repos, runner, service }));
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
3
|
import { MAINTAINED_SKILLS } from './chunk-CDDED64E.js';
|
|
4
4
|
import { resolvePackageVersion } from './chunk-RA3O54FC.js';
|
|
5
|
-
import { splitRawFile } from './chunk-
|
|
5
|
+
import { splitRawFile } from './chunk-JFMSFHER.js';
|
|
6
6
|
import { existsSync, readFileSync, mkdirSync, writeFileSync, readdirSync } from 'fs';
|
|
7
7
|
import { join, dirname } from 'path';
|
|
8
8
|
import { fileURLToPath } from 'url';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
|
-
import { parseSize, BUILD_LABEL, RUNNER_LABEL, runnerLabelValue } from './chunk-
|
|
3
|
+
import { parseSize, BUILD_LABEL, RUNNER_LABEL, runnerLabelValue } from './chunk-PJZKKFQO.js';
|
|
4
4
|
import { buildsDir, storeScopes, rootfsDir, orgStoreIn, runnerDir, imagesDir, builderCacheDiskPath } from './chunk-WT7J2627.js';
|
|
5
5
|
import { spawnSync } from 'child_process';
|
|
6
6
|
import { statfsSync, statSync, existsSync, readdirSync } from 'fs';
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
|
-
import { criteriaOf, loadCitationFinder, hostItemsOf, criterionInputs, NO_CITING_TEST_REASON, NO_TEST_FILES_REASON, NO_VERDICT_REASON, isFoundInReason, uncitedIds, planCriteria, pickSearchable, IdScan, testFileMatcher, foundInReason, MAX_TEST_FILE_BYTES, MAX_TEST_FILES, groupBySize } from './chunk-
|
|
4
|
-
import { WorkCommandError, resolveCredentials, getJson } from './chunk-
|
|
3
|
+
import { criteriaOf, loadCitationFinder, hostItemsOf, criterionInputs, NO_CITING_TEST_REASON, NO_TEST_FILES_REASON, NO_VERDICT_REASON, isFoundInReason, uncitedIds, planCriteria, pickSearchable, IdScan, testFileMatcher, foundInReason, MAX_TEST_FILE_BYTES, MAX_TEST_FILES, groupBySize } from './chunk-GDIVOYDA.js';
|
|
4
|
+
import { WorkCommandError, resolveCredentials, getJson } from './chunk-S6OD32NC.js';
|
|
5
5
|
import { C } from './chunk-2AM6Z5BP.js';
|
|
6
|
-
import { sanitizeTerminal } from './chunk-
|
|
6
|
+
import { sanitizeTerminal } from './chunk-3PQTOKML.js';
|
|
7
7
|
import { defaultFetch } from './chunk-YQHEJ5SV.js';
|
|
8
|
-
import { resolveRepoIdentity } from './chunk-
|
|
8
|
+
import { resolveRepoIdentity } from './chunk-MXWPLGO6.js';
|
|
9
9
|
import { parseWorkItemEnv } from './chunk-5WYT3PPE.js';
|
|
10
10
|
import { parseTrackerNumber, trackerNumberError } from './chunk-WZBHBH3J.js';
|
|
11
11
|
import { readDeliveryRecord } from './chunk-YQR6E6OV.js';
|
|
12
|
-
import { inferArtifactKind, mediaTypeForArtifactPath, WORK_ITEM_COMMENT_MAX_BODY_LENGTH } from './chunk-
|
|
12
|
+
import { inferArtifactKind, mediaTypeForArtifactPath, WORK_ITEM_COMMENT_MAX_BODY_LENGTH } from './chunk-VUG4IZ7H.js';
|
|
13
13
|
import { createHash } from 'crypto';
|
|
14
14
|
import { spawnSync } from 'child_process';
|
|
15
15
|
import { existsSync, statSync, readFileSync } from 'fs';
|
|
@@ -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-TX22YEFD.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-TX22YEFD.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-ULCY5QEP.js');
|
|
373
373
|
const result2 = await runWorkProofsRecord(opts);
|
|
374
374
|
process.exitCode = result2.exitCode;
|
|
375
375
|
return;
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
|
-
import { sanitizeTerminal } from './chunk-
|
|
4
|
-
import { isAgentsMdLayout } from './chunk-
|
|
3
|
+
import { sanitizeTerminal } from './chunk-3PQTOKML.js';
|
|
4
|
+
import { isAgentsMdLayout } from './chunk-LRCGXRQI.js';
|
|
5
5
|
import { resolveGatewayCredentials, defaultFetch } from './chunk-YQHEJ5SV.js';
|
|
6
6
|
import { versionAtLeast } from './chunk-HCVLP7XA.js';
|
|
7
7
|
import { findGitDirs } from './chunk-BJ3KTMDH.js';
|
|
8
|
-
import { machineSkillsState, staleClaudeSkills } from './chunk-
|
|
9
|
-
import { AGENTS_SKILLS_BASE, skillDir, namesCore, MACHINE_SKILL_PATH, isMaintainedCopy, loadTemplateFiles } from './chunk-
|
|
8
|
+
import { machineSkillsState, staleClaudeSkills } from './chunk-OLENS2DD.js';
|
|
9
|
+
import { AGENTS_SKILLS_BASE, skillDir, namesCore, MACHINE_SKILL_PATH, isMaintainedCopy, loadTemplateFiles } from './chunk-7O7LJWQO.js';
|
|
10
10
|
import { MAINTAINED_SKILLS } from './chunk-CDDED64E.js';
|
|
11
11
|
import { cliInvocation } from './chunk-FZKNTIOJ.js';
|
|
12
|
-
import { hasSymlinkComponent } from './chunk-
|
|
13
|
-
import { emitTree, ALL_TARGET_IDS, classifyTree, splitRawFile } from './chunk-
|
|
12
|
+
import { hasSymlinkComponent } from './chunk-4SFHEARD.js';
|
|
13
|
+
import { emitTree, ALL_TARGET_IDS, classifyTree, splitRawFile } from './chunk-JFMSFHER.js';
|
|
14
14
|
import { execFileSync } from 'child_process';
|
|
15
15
|
import { existsSync, readFileSync, writeFileSync, realpathSync, readdirSync } from 'fs';
|
|
16
16
|
import { join, dirname, posix, basename, isAbsolute, relative } from 'path';
|
|
@@ -99,7 +99,7 @@ function skillsFolders() {
|
|
|
99
99
|
assetPaths: [],
|
|
100
100
|
targets: [...ALL_TARGET_IDS]
|
|
101
101
|
});
|
|
102
|
-
return [
|
|
102
|
+
return [.../* @__PURE__ */ new Set([AGENTS_SKILLS_BASE, ...compiled.files.map((file) => dirname(dirname(file.path)))])];
|
|
103
103
|
}
|
|
104
104
|
function shortBuild() {
|
|
105
105
|
const file = loadTemplateFiles().find((f) => f.path === `${skillDir("build")}/SKILL.md`);
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
import { createRequire } from 'node:module';
|
|
3
|
+
import { parseOuterlayerConfig } from './chunk-JFMSFHER.js';
|
|
4
|
+
import { readFileSync } from 'fs';
|
|
5
|
+
import { join } from 'path';
|
|
6
|
+
|
|
7
|
+
createRequire(import.meta.url);
|
|
8
|
+
function invalidConfigMessage(errors) {
|
|
9
|
+
return `invalid .outerlayer/config.json \u2014 ${errors.map((e) => `${e.path}: ${e.message}`).join("; ")}`;
|
|
10
|
+
}
|
|
11
|
+
function removedTargetError(configText) {
|
|
12
|
+
const parsed = parseOuterlayerConfig(configText);
|
|
13
|
+
if (parsed.ok) return void 0;
|
|
14
|
+
const removed = parsed.errors.filter((e) => e.code === "removed_target");
|
|
15
|
+
return removed.length === 0 ? void 0 : invalidConfigMessage(removed);
|
|
16
|
+
}
|
|
17
|
+
function removedTargetErrorIn(root) {
|
|
18
|
+
let text;
|
|
19
|
+
try {
|
|
20
|
+
text = readFileSync(join(root, ".outerlayer", "config.json"), "utf8");
|
|
21
|
+
} catch {
|
|
22
|
+
return void 0;
|
|
23
|
+
}
|
|
24
|
+
return removedTargetError(text);
|
|
25
|
+
}
|
|
26
|
+
function launchRefusal(repository, error) {
|
|
27
|
+
return `outerlayer claude: the control plane ${repository} has an ${error}
|
|
28
|
+
`;
|
|
29
|
+
}
|
|
30
|
+
function buildRefusalReason(repository, error) {
|
|
31
|
+
return `context_unavailable: the control plane ${repository} has an ${error}`;
|
|
32
|
+
}
|
|
33
|
+
var RemovedTargetError = class extends Error {
|
|
34
|
+
constructor(message) {
|
|
35
|
+
super(message);
|
|
36
|
+
this.name = "RemovedTargetError";
|
|
37
|
+
}
|
|
38
|
+
};
|
|
39
|
+
|
|
40
|
+
export { RemovedTargetError, buildRefusalReason, invalidConfigMessage, launchRefusal, removedTargetError, removedTargetErrorIn };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
|
-
import { helperSocketPath } from './chunk-
|
|
4
|
-
import { UNIT_MARKER } from './chunk-
|
|
3
|
+
import { helperSocketPath } from './chunk-25GQP6NR.js';
|
|
4
|
+
import { UNIT_MARKER } from './chunk-MVSC7GCE.js';
|
|
5
5
|
import { runnerDir } from './chunk-WT7J2627.js';
|
|
6
6
|
import { createHash } from 'crypto';
|
|
7
7
|
import { join } from 'path';
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
|
-
import { sanitizeTerminal } from './chunk-
|
|
4
|
-
import { resolvePackRoot } from './chunk-
|
|
5
|
-
import { parseProofsConfig } from './chunk-
|
|
6
|
-
import { CHECK_ITEM_REASON_MAX_LENGTH, CheckItemsSchema } from './chunk-
|
|
3
|
+
import { sanitizeTerminal } from './chunk-3PQTOKML.js';
|
|
4
|
+
import { resolvePackRoot } from './chunk-7O7LJWQO.js';
|
|
5
|
+
import { parseProofsConfig } from './chunk-JFMSFHER.js';
|
|
6
|
+
import { CHECK_ITEM_REASON_MAX_LENGTH, CheckItemsSchema } from './chunk-VUG4IZ7H.js';
|
|
7
7
|
import { createHash } from 'crypto';
|
|
8
8
|
import { join } from 'path';
|
|
9
9
|
import { pathToFileURL } from 'url';
|
|
@@ -808,11 +808,11 @@ async function missingControlPlane(cwd, sessionId, home, env) {
|
|
|
808
808
|
const dirs = findGitDirs(cwd);
|
|
809
809
|
if (dirs === void 0) return void 0;
|
|
810
810
|
if (existsSync(join(dirs.gitCommonDir, "outerlayer", "materialized.json")) || hasExcludeBlock(dirs.gitCommonDir)) {
|
|
811
|
-
const { cleanupEarlierCopies } = await import('./context-cleanup-
|
|
811
|
+
const { cleanupEarlierCopies } = await import('./context-cleanup-TPHCVVFV.js');
|
|
812
812
|
cleanupEarlierCopies(dirs);
|
|
813
813
|
}
|
|
814
814
|
if (!contextPossiblyGoverned(cwd, home)) return void 0;
|
|
815
|
-
const { governanceOf } = await import('./control-plane-launch-
|
|
815
|
+
const { governanceOf } = await import('./control-plane-launch-UWFQWMWB.js');
|
|
816
816
|
if (await governanceOf({ cwd, env, home }) !== "governed") return void 0;
|
|
817
817
|
recordMissingContext(dirs, sessionId, home);
|
|
818
818
|
const launcher = `${cliInvocation()} claude`;
|
|
@@ -2,15 +2,15 @@
|
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
3
|
import { launchRefusalForSession } from './chunk-AAGU5FJF.js';
|
|
4
4
|
import { detectActiveSession, transcriptPathForSession } from './chunk-IP7BIBXJ.js';
|
|
5
|
-
import { autoConnect } from './chunk-
|
|
5
|
+
import { autoConnect } from './chunk-LHFG5YUG.js';
|
|
6
6
|
import { C } from './chunk-2AM6Z5BP.js';
|
|
7
7
|
import { resolveGatewayCredentials, defaultFetch, unauthorizedMessage } from './chunk-YQHEJ5SV.js';
|
|
8
8
|
import { readLatestProvenanceForSession } from './chunk-545P7JY7.js';
|
|
9
|
-
import { resolveRepoIdentity, defaultProjectsDir, findTranscripts, sessionIdFromPath, scrubText } from './chunk-
|
|
9
|
+
import { resolveRepoIdentity, defaultProjectsDir, findTranscripts, sessionIdFromPath, scrubText } from './chunk-MXWPLGO6.js';
|
|
10
10
|
import { launchedItemForSession } from './chunk-5WYT3PPE.js';
|
|
11
11
|
import { parseTrackerNumber, trackerNumberError } from './chunk-WZBHBH3J.js';
|
|
12
12
|
import { cliInvocation } from './chunk-FZKNTIOJ.js';
|
|
13
|
-
import { FindingBatchSchema, FindingsResponseSchema, SAME_PROBLEM_RULES } from './chunk-
|
|
13
|
+
import { FindingBatchSchema, FindingsResponseSchema, SAME_PROBLEM_RULES } from './chunk-VUG4IZ7H.js';
|
|
14
14
|
import { homeFromEnv } from './chunk-352DHUTP.js';
|
|
15
15
|
import { readFileSync, existsSync } from 'fs';
|
|
16
16
|
import { join, dirname, basename } from 'path';
|
|
@@ -2,13 +2,13 @@
|
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
3
|
import { launchRefusalForSession } from './chunk-AAGU5FJF.js';
|
|
4
4
|
import { detectActiveSession } from './chunk-IP7BIBXJ.js';
|
|
5
|
-
import { autoConnect } from './chunk-
|
|
5
|
+
import { autoConnect } from './chunk-LHFG5YUG.js';
|
|
6
6
|
import { C } from './chunk-2AM6Z5BP.js';
|
|
7
7
|
import { resolveGatewayCredentials, defaultFetch, unauthorizedMessage } from './chunk-YQHEJ5SV.js';
|
|
8
|
-
import { resolveRepoIdentity } from './chunk-
|
|
8
|
+
import { resolveRepoIdentity } from './chunk-MXWPLGO6.js';
|
|
9
9
|
import { launchedItemForSession } from './chunk-5WYT3PPE.js';
|
|
10
10
|
import { parseTrackerNumber, trackerNumberError } from './chunk-WZBHBH3J.js';
|
|
11
|
-
import { CriteriaListSchema } from './chunk-
|
|
11
|
+
import { CriteriaListSchema } from './chunk-VUG4IZ7H.js';
|
|
12
12
|
import { homeFromEnv } from './chunk-352DHUTP.js';
|
|
13
13
|
import { readFileSync } from 'fs';
|
|
14
14
|
|