@outerlayer/cli 0.34.0-next.20261028152714 → 0.34.0-next.20261028183303
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/{agent-setup-MO7DHLV4.js → agent-setup-IVXRBFVV.js} +6 -6
- package/dist/{bridge-4DFOWIY2.js → bridge-4GRZFXJU.js} +2 -2
- package/dist/{build-D5OIIY7B.js → build-SEJJWGTO.js} +7 -7
- package/dist/{build-disk-TEITBQKE.js → build-disk-EYRR3PBT.js} +5 -5
- package/dist/build-info.json +1 -1
- package/dist/{builder-S42B4STV.js → builder-T7B46P7T.js} +4 -4
- package/dist/{check-AMTV6RTN.js → check-VKSOYRNI.js} +37 -37
- package/dist/{chunk-4CNUGDNU.js → chunk-2EHDLYSL.js} +9 -9
- package/dist/{chunk-IZKUPAXF.js → chunk-3KGXXTMN.js} +1 -1
- package/dist/{chunk-UE2C4STC.js → chunk-3UIXIGYT.js} +84 -2
- package/dist/{chunk-NYMDS542.js → chunk-4YD7N6V3.js} +4 -4
- package/dist/{chunk-VJQQVTCS.js → chunk-5TXQFZHY.js} +1 -1
- package/dist/{chunk-NPTEYMBW.js → chunk-5W2YSWIW.js} +9 -4
- package/dist/{chunk-3PFR2WXH.js → chunk-64O2NUVA.js} +6 -6
- package/dist/{chunk-LBEYOL5K.js → chunk-7JSWRF5O.js} +2 -2
- package/dist/{chunk-43BV4MP5.js → chunk-AF4E4I4T.js} +64 -22
- package/dist/{chunk-BUVDDPOM.js → chunk-BBJ6BM5U.js} +1 -1
- package/dist/{chunk-QELQ6Y4I.js → chunk-CUAB7FAZ.js} +1 -1
- package/dist/{chunk-ZXQEBRCB.js → chunk-DCBFUUDL.js} +5 -5
- package/dist/{chunk-4557WV4R.js → chunk-EA2PQRCU.js} +2 -2
- package/dist/{chunk-GHQW2BBX.js → chunk-GG5OE6MY.js} +2 -2
- package/dist/{chunk-6G3BG2GI.js → chunk-H7MGR2GN.js} +2 -2
- package/dist/{chunk-26WUFKYZ.js → chunk-HFOZTCTN.js} +1 -1
- package/dist/{chunk-FG564H3C.js → chunk-I2MFIT6X.js} +5 -5
- package/dist/{chunk-E3GX4WVJ.js → chunk-KH4774QT.js} +1 -1
- package/dist/{chunk-UAINHP2C.js → chunk-KPEMNHVF.js} +3 -3
- package/dist/{chunk-SH5JFBPO.js → chunk-KQDK4Q6A.js} +1 -1
- package/dist/{chunk-4L46A2RR.js → chunk-LJEZGHCH.js} +87 -23
- package/dist/{chunk-7XDF7PNF.js → chunk-MCPCOKHN.js} +2 -2
- package/dist/{chunk-JDQBJUXQ.js → chunk-MEIDQLXQ.js} +1 -1
- package/dist/{chunk-BRBZKIZG.js → chunk-MRLJK4GZ.js} +2 -2
- package/dist/{chunk-QGTJ5IJN.js → chunk-NCOL5RYI.js} +1 -1
- package/dist/{chunk-HUS6X5BJ.js → chunk-NXUZFHMX.js} +3 -3
- package/dist/{chunk-KY6H5L5O.js → chunk-OYQVLQP3.js} +37 -8
- package/dist/{chunk-HA46L5FG.js → chunk-P2PNBDUT.js} +5 -4
- package/dist/{chunk-XDCD4GD5.js → chunk-POND2SMT.js} +3 -3
- package/dist/{chunk-265SXBQ5.js → chunk-QGDGGLSD.js} +3 -3
- package/dist/{chunk-RIKXE3T5.js → chunk-QGEGLZSY.js} +6 -6
- package/dist/{chunk-DKIZDYUX.js → chunk-ROQPDCRU.js} +1 -1
- package/dist/{chunk-47SFTQA5.js → chunk-RRXS4CWE.js} +2 -2
- package/dist/{chunk-2CW2QMSG.js → chunk-S6UM3N4R.js} +1 -1
- package/dist/{chunk-64LLUVJR.js → chunk-SAAVZ2BX.js} +1 -1
- package/dist/{chunk-V64BEF6E.js → chunk-T3XPLCJG.js} +1 -1
- package/dist/{chunk-6MLX26T4.js → chunk-TDCHUEKY.js} +2 -2
- package/dist/{chunk-ORENXMHA.js → chunk-UXC3RQLF.js} +1 -1
- package/dist/{chunk-X2ZJL7GA.js → chunk-UZEIBWTP.js} +2 -2
- package/dist/{chunk-WHONZ53R.js → chunk-V2S2WRGD.js} +1 -1
- package/dist/{chunk-AJZWVXXA.js → chunk-VX7WZK7J.js} +185 -31
- package/dist/{chunk-BEILLR5Q.js → chunk-W7E6IMEW.js} +3 -3
- package/dist/{chunk-I4V2YBMA.js → chunk-WH3FPBPO.js} +598 -40
- package/dist/{chunk-T664NDNT.js → chunk-XDAMLX2L.js} +5 -5
- package/dist/{chunk-JDYBPAPP.js → chunk-YF7W7B7Y.js} +24 -8
- package/dist/{chunk-4N7BQBO4.js → chunk-YLPJOUVF.js} +5 -3
- package/dist/{chunk-TVDKDXW6.js → chunk-ZCA34T7R.js} +3 -3
- package/dist/{chunk-TZXJSNN4.js → chunk-ZCZY3Q55.js} +1 -1
- package/dist/{chunk-BTA5QOKD.js → chunk-ZTOJIRJH.js} +2 -2
- package/dist/{claude-launcher-TG7CHE3N.js → claude-launcher-7IC6QWR5.js} +1 -1
- package/dist/{cli-DQXFGH6X.js → cli-HBS2PXSS.js} +110 -110
- package/dist/{command-JLHJ2TOH.js → command-XA6DOFL4.js} +24 -24
- package/dist/config-RSOCVUKC.js +17 -0
- package/dist/{connect-cmd-VBEYNPAK.js → connect-cmd-JFGDHFLA.js} +5 -5
- package/dist/{container-start-L5FDIAD7.js → container-start-PYW7W2N2.js} +31 -31
- package/dist/{context-show-cmd-GMF7YMSN.js → context-show-cmd-XWLTP6R4.js} +6 -6
- package/dist/{control-plane-launch-4WRFVYNP.js → control-plane-launch-3MBWPYWZ.js} +5 -5
- package/dist/{demo-record-cmd-EGBXUDYP.js → demo-record-cmd-SIKNTSGI.js} +2 -2
- package/dist/{demo-voice-cmd-KFNEU2GR.js → demo-voice-cmd-SAB3QU4F.js} +11 -11
- package/dist/{docker-UP7EFFLL.js → docker-YMRPMDOW.js} +4 -4
- package/dist/{doctor-UIQ22QZC.js → doctor-NVHAE4LS.js} +24 -24
- package/dist/{emit-artifact-cmd-NLCKM5TU.js → emit-artifact-cmd-TZTVQCFT.js} +10 -10
- package/dist/{emit-criteria-cmd-GO3TDUCG.js → emit-criteria-cmd-WH7JB4RQ.js} +7 -7
- package/dist/{emit-demo-cmd-EJBQHFR2.js → emit-demo-cmd-DNUVG5N7.js} +11 -11
- package/dist/{emit-finding-cmd-PHUHZLQ3.js → emit-finding-cmd-X5CBH4ZA.js} +7 -7
- package/dist/{emit-result-cmd-UJSWTGDG.js → emit-result-cmd-VCKNZ4RZ.js} +9 -9
- package/dist/{emit-step-cmd-M2JEWJ4Q.js → emit-step-cmd-IUXZZYKO.js} +7 -7
- package/dist/{exec-client-BQIZRROT.js → exec-client-U4544U2S.js} +3 -3
- package/dist/{find-unit-H5DKNRBG.js → find-unit-QYD2FMCP.js} +8 -8
- package/dist/{findings-cmd-O3VCFA55.js → findings-cmd-PLHBAQW4.js} +7 -7
- package/dist/{fleet-readiness-SXIYBEWC.js → fleet-readiness-F65CKZY5.js} +5 -5
- package/dist/{governing-source-QEXH6MIZ.js → governing-source-JFCTQXYK.js} +9 -9
- package/dist/{guest-init-DXXSPKHY.js → guest-init-MI4SEME4.js} +4 -4
- package/dist/{hook-fast-DPC75LFQ.js → hook-fast-GOH4T6SN.js} +1 -1
- package/dist/{host-checks-BOLFMWX2.js → host-checks-HC4XXGAD.js} +29 -29
- package/dist/{pending-V5FBWIJ4.js → host-key-OMLDWLNG.js} +3 -3
- package/dist/{image-tag-3KPTSRB4.js → image-tag-YJJONB64.js} +3 -3
- package/dist/index.js +4 -4
- package/dist/{init-7G3UO6J3.js → init-JVKJTJNM.js} +21 -21
- package/dist/{init-N6UZ5WCL.js → init-W3ATJYLX.js} +24 -22
- package/dist/{init-cmd-4LYUGPB3.js → init-cmd-XJOEU2PB.js} +10 -10
- package/dist/{init-update-4GUGHNS5.js → init-update-KX3FFQ5H.js} +8 -8
- package/dist/{install-cmd-6HGNO2HF.js → install-cmd-QTIIMO6B.js} +5 -5
- package/dist/{logs-HUENB7U4.js → logs-YVXVAYTD.js} +2 -2
- package/dist/{loop-GRDMQM2J.js → loop-GBTANKUW.js} +36 -36
- package/dist/{machine-QSGONNDX.js → machine-OQOHEMJB.js} +21 -21
- package/dist/{mcp-serve-cmd-OFK3CS2T.js → mcp-serve-cmd-ECTAPDB3.js} +4 -4
- package/dist/{paths-VQ3ALYZ3.js → paths-M66LPPUF.js} +2 -2
- package/dist/{host-key-5P3ZL5XW.js → pending-7LC6XDRO.js} +3 -3
- package/dist/{pidfile-AVJFRZZT.js → pidfile-DSQOOAZV.js} +3 -3
- package/dist/{record-XE7Z3QGF.js → record-3KKIJ3XL.js} +3 -3
- package/dist/{runner-env-K4DOSDUV.js → runner-env-EX7YUIUH.js} +8 -8
- package/dist/{runner-identity-4RVY2MHX.js → runner-identity-LJWBXNM5.js} +4 -4
- package/dist/{runner-key-DIGTV3G5.js → runner-key-CAUO4RKG.js} +21 -21
- package/dist/{session-sender-N6QHL35T.js → session-sender-U2CTD7EX.js} +10 -10
- package/dist/{spec-cmd-EZGRJPUQ.js → spec-cmd-SAWQYHKM.js} +8 -8
- package/dist/{status-NA5DLUXD.js → status-VMFS7N6A.js} +29 -29
- package/dist/{sync-cmd-NEAZMEIL.js → sync-cmd-EBJQ5LMH.js} +9 -9
- package/dist/{update-steps-7HZZPWZE.js → update-steps-HMSVBDKH.js} +30 -30
- package/dist/{watch-FOY5LSSS.js → watch-6NRBX6VE.js} +9 -9
- package/dist/{work-claim-cmd-EJT55FZY.js → work-claim-cmd-SLVX2N4L.js} +12 -12
- package/dist/{work-cmd-KLPPJG4U.js → work-cmd-VSHZCXHQ.js} +7 -7
- package/dist/{work-comment-cmd-TT6TFF6Q.js → work-comment-cmd-3DCL7VHN.js} +8 -8
- package/dist/{work-demo-cmd-22PLEX4X.js → work-demo-cmd-SZJIKB5J.js} +7 -7
- package/dist/{work-logs-cmd-DWK5AYLK.js → work-logs-cmd-MRFSBMJM.js} +7 -7
- package/dist/{work-open-pr-cmd-MKHZBGA6.js → work-open-pr-cmd-N7GK7FUQ.js} +8 -8
- package/dist/{work-pr-cmd-P7PRHAJD.js → work-pr-cmd-HD5OIHUU.js} +7 -7
- package/dist/{work-proofs-cmd-CNQR7RCD.js → work-proofs-cmd-GFGENBGN.js} +9 -9
- package/dist/{work-proofs-record-GICELEJQ.js → work-proofs-record-JD4DNZUW.js} +15 -15
- package/dist/{work-stop-cmd-U42TFT7X.js → work-stop-cmd-M6RIGF7S.js} +7 -7
- package/package.json +1 -1
- package/skill-pack/maintained/outerlayer-build/SKILL.md +24 -1
- package/skill-pack/maintained/outerlayer-build/references/evidence.md +2 -1
- package/skill-pack/maintained/outerlayer-build/scripts/criterion-citations.mjs +65 -8
- package/dist/config-2EADRNJB.js +0 -17
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
|
-
import { criteriaOf, loadCitationFinder, hostItemsOf,
|
|
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-3UIXIGYT.js';
|
|
4
|
+
import { WorkCommandError, resolveCredentials, getJson } from './chunk-XDAMLX2L.js';
|
|
5
5
|
import { C } from './chunk-ANPNT6PM.js';
|
|
6
6
|
import { sanitizeTerminal } from './chunk-VEVNGDTP.js';
|
|
7
|
-
import { defaultFetch } from './chunk-
|
|
7
|
+
import { defaultFetch } from './chunk-3KGXXTMN.js';
|
|
8
8
|
import { resolveRepoIdentity } from './chunk-GH2HEEOH.js';
|
|
9
9
|
import { parseWorkItemEnv } from './chunk-T2Q7ISPE.js';
|
|
10
10
|
import { parseTrackerNumber, trackerNumberError } from './chunk-WZBHBH3J.js';
|
|
@@ -70,7 +70,8 @@ function unprovenCriteria(input) {
|
|
|
70
70
|
for (const item of input.items) {
|
|
71
71
|
const criterion = criteria.find((c) => c.id === item.id);
|
|
72
72
|
if (criterion === void 0 || item.result !== "fail" || item.inputs === void 0) continue;
|
|
73
|
-
if (item.reason === NO_CITING_TEST_REASON || item.reason === NO_VERDICT_REASON) continue;
|
|
73
|
+
if (item.reason === NO_CITING_TEST_REASON || item.reason === NO_TEST_FILES_REASON || item.reason === NO_VERDICT_REASON) continue;
|
|
74
|
+
if (item.refs === void 0 && isFoundInReason(item.reason, item.id)) continue;
|
|
74
75
|
const commit = item.refs === void 0 ? void 0 : commitOf(item.refs);
|
|
75
76
|
if (commit === void 0) {
|
|
76
77
|
notes.push(`the links of ${item.id} name no commit`);
|
|
@@ -87,14 +88,21 @@ function unprovenCriteria(input) {
|
|
|
87
88
|
commits.set(item.id, commit);
|
|
88
89
|
previous.set(item.id, { ...item, inputs: criterionInputs({ brief: NO_BRIEF, criterion, citations: judgedCitations, testFiles: judged }) });
|
|
89
90
|
}
|
|
91
|
+
const uncited = uncitedIds(criteria, citations);
|
|
92
|
+
const foundIn = uncited.length === 0 ? void 0 : input.foundOutsideTestsAt?.(uncited);
|
|
93
|
+
if (uncited.length > 0 && input.foundOutsideTestsAt !== void 0 && foundIn === void 0) {
|
|
94
|
+
notes.push("the files that could hold the id of a criterion no test cites cannot be read, so its row names none");
|
|
95
|
+
}
|
|
90
96
|
const plan = planCriteria({ criteria, citations, inputs, previous: [...previous.values()], noTestFiles: input.headFiles.length === 0 });
|
|
91
97
|
const settled = new Map(plan.settled.map((item) => [item.id, item]));
|
|
92
98
|
const entries = [];
|
|
93
99
|
for (const criterion of criteria) {
|
|
94
100
|
const item = settled.get(criterion.id);
|
|
95
101
|
if (item === void 0 || item.result !== "fail") continue;
|
|
96
|
-
if (item.refs === void 0)
|
|
97
|
-
|
|
102
|
+
if (item.refs === void 0) {
|
|
103
|
+
const where = foundIn?.get(criterion.id);
|
|
104
|
+
entries.push({ id: criterion.id, proof: null, state: "uncited", ...where !== void 0 ? { foundIn: where } : item.reason === NO_TEST_FILES_REASON ? { noTestFiles: true } : {} });
|
|
105
|
+
} else entries.push({ id: criterion.id, proof: null, state: "failed", commit: commits.get(criterion.id) ?? "", reason: item.reason ?? "no reason recorded" });
|
|
98
106
|
}
|
|
99
107
|
return { entries, notes };
|
|
100
108
|
}
|
|
@@ -103,6 +111,15 @@ function git(cwd, args, input) {
|
|
|
103
111
|
if (run.status !== 0) throw new Error(`git ${args[0]} failed`);
|
|
104
112
|
return run.stdout;
|
|
105
113
|
}
|
|
114
|
+
function treeAt(cwd, head) {
|
|
115
|
+
const listing = git(cwd, ["ls-tree", "-r", "-l", "-z", "--full-tree", head]);
|
|
116
|
+
const entries = [];
|
|
117
|
+
for (const entry of listing.toString("utf8").split("\0")) {
|
|
118
|
+
const match = /^(\d+) blob ([0-9a-f]+)\s+(\d+)\t(.*)$/s.exec(entry);
|
|
119
|
+
if (match !== null && match[1].startsWith("100")) entries.push({ path: match[4], oid: match[2], size: Number(match[3]) });
|
|
120
|
+
}
|
|
121
|
+
return entries;
|
|
122
|
+
}
|
|
106
123
|
function readObjects(cwd, specs) {
|
|
107
124
|
const out = git(cwd, ["cat-file", "--batch"], `${specs.join("\n")}
|
|
108
125
|
`);
|
|
@@ -123,19 +140,39 @@ function readObjects(cwd, specs) {
|
|
|
123
140
|
}
|
|
124
141
|
return texts;
|
|
125
142
|
}
|
|
143
|
+
function readTexts(cwd, entries, visit) {
|
|
144
|
+
for (const [start, end] of groupBySize(entries.map((entry) => entry.size))) {
|
|
145
|
+
for (const [n, text] of readObjects(cwd, entries.slice(start, end).map((entry) => entry.oid)).entries()) {
|
|
146
|
+
if (text !== void 0 && visit(start + n, text) === false) return;
|
|
147
|
+
}
|
|
148
|
+
}
|
|
149
|
+
}
|
|
126
150
|
function testFilesAt(cwd, head, isTest) {
|
|
127
151
|
try {
|
|
128
|
-
const
|
|
129
|
-
const
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
if (picked.size >= MAX_TEST_FILES) break;
|
|
134
|
-
picked.set(match[4], match[2]);
|
|
152
|
+
const picked = [];
|
|
153
|
+
for (const entry of treeAt(cwd, head)) {
|
|
154
|
+
if (entry.size > MAX_TEST_FILE_BYTES || !isTest(entry.path)) continue;
|
|
155
|
+
if (picked.length >= MAX_TEST_FILES) break;
|
|
156
|
+
picked.push(entry);
|
|
135
157
|
}
|
|
136
|
-
const
|
|
137
|
-
|
|
138
|
-
|
|
158
|
+
const files = [];
|
|
159
|
+
readTexts(cwd, picked, (n, text) => {
|
|
160
|
+
files.push({ path: picked[n].path, contents: text });
|
|
161
|
+
});
|
|
162
|
+
return files;
|
|
163
|
+
} catch {
|
|
164
|
+
return void 0;
|
|
165
|
+
}
|
|
166
|
+
}
|
|
167
|
+
function findIdsOutsideTestsAt(cwd, head, input, limits) {
|
|
168
|
+
try {
|
|
169
|
+
const picked = pickSearchable(treeAt(cwd, head), input, limits);
|
|
170
|
+
const scan = new IdScan(input.finder, input.ids);
|
|
171
|
+
readTexts(cwd, picked, (n, text) => {
|
|
172
|
+
scan.offer(picked[n].path, text);
|
|
173
|
+
return !scan.complete;
|
|
174
|
+
});
|
|
175
|
+
return scan.result();
|
|
139
176
|
} catch {
|
|
140
177
|
return void 0;
|
|
141
178
|
}
|
|
@@ -147,8 +184,11 @@ function proofsFileAt(cwd, commit) {
|
|
|
147
184
|
return void 0;
|
|
148
185
|
}
|
|
149
186
|
}
|
|
187
|
+
function matcherAt(cwd, commit, finder) {
|
|
188
|
+
return testFileMatcher(finder, proofsFileAt(cwd, commit));
|
|
189
|
+
}
|
|
150
190
|
function testFilesOf(cwd, commit, finder) {
|
|
151
|
-
return testFilesAt(cwd, commit,
|
|
191
|
+
return testFilesAt(cwd, commit, matcherAt(cwd, commit, finder));
|
|
152
192
|
}
|
|
153
193
|
function checkoutPlaces(cwd) {
|
|
154
194
|
for (let dir = resolve(cwd); ; dir = dirname(dir)) {
|
|
@@ -177,14 +217,14 @@ function governingDir(cwd) {
|
|
|
177
217
|
async function testProofMode(cwd) {
|
|
178
218
|
const dir = governingDir(cwd);
|
|
179
219
|
if (dir === void 0) return "any";
|
|
180
|
-
const { testProofIn } = await import('./host-checks-
|
|
220
|
+
const { testProofIn } = await import('./host-checks-HC4XXGAD.js');
|
|
181
221
|
return testProofIn(dir);
|
|
182
222
|
}
|
|
183
223
|
async function judgeCheckName(cwd) {
|
|
184
224
|
const dir = governingDir(cwd);
|
|
185
225
|
if (dir === void 0) return {};
|
|
186
226
|
if (!existsSync(dir)) return { note: `the governed context at ${dir} is not readable` };
|
|
187
|
-
const { checksIn, isJudgeCheck } = await import('./host-checks-
|
|
227
|
+
const { checksIn, isJudgeCheck } = await import('./host-checks-HC4XXGAD.js');
|
|
188
228
|
const quiet = { line: () => void 0, error: () => void 0 };
|
|
189
229
|
const check = checksIn(dir, quiet, "").checks.find((c) => isJudgeCheck(c) && c.judge.subjects === "criteria");
|
|
190
230
|
return check === void 0 ? {} : { name: check.name };
|
|
@@ -204,7 +244,8 @@ async function findUnproven(input) {
|
|
|
204
244
|
finder,
|
|
205
245
|
headFiles,
|
|
206
246
|
items,
|
|
207
|
-
testFilesAt: (commit) => testFilesOf(input.cwd, commit, finder)
|
|
247
|
+
testFilesAt: (commit) => testFilesOf(input.cwd, commit, finder),
|
|
248
|
+
foundOutsideTestsAt: (ids) => findIdsOutsideTestsAt(input.cwd, input.head, { isTest: matcherAt(input.cwd, input.head, finder), isSearchable: finder.isSearchableFile, finder, ids })
|
|
208
249
|
});
|
|
209
250
|
const check = Object(input.item).checks?.find((c) => Object(c).name === found.name);
|
|
210
251
|
if (check?.source === "host" && check.result === "fail" && items.length === 0) result.notes.unshift("the gateway returned no check items for the judge's result");
|
|
@@ -258,8 +299,9 @@ var STATE_LABEL = { current: "current", "out-of-date": "out of date", missing: "
|
|
|
258
299
|
function renderEntry(e) {
|
|
259
300
|
const id = sanitizeTerminal(e.id);
|
|
260
301
|
if (e.state === "uncited") {
|
|
302
|
+
if (e.foundIn !== void 0) return `${id} none uncited ${sanitizeTerminal(foundInReason(e.id, e.foundIn))}`;
|
|
261
303
|
if (e.noTestFiles === true) {
|
|
262
|
-
return `${id} none uncited
|
|
304
|
+
return `${id} none uncited ${NO_TEST_FILES_REASON}`;
|
|
263
305
|
}
|
|
264
306
|
return `${id} none uncited No test at HEAD cites it. Put ${id} in a test's title or in a comment above the test, as in // proves ${id}`;
|
|
265
307
|
}
|
|
@@ -327,7 +369,7 @@ async function runWorkProofs(opts) {
|
|
|
327
369
|
async function runWorkProofsCommand(opts) {
|
|
328
370
|
try {
|
|
329
371
|
if (opts.record) {
|
|
330
|
-
const { runWorkProofsRecord } = await import('./work-proofs-record-
|
|
372
|
+
const { runWorkProofsRecord } = await import('./work-proofs-record-JD4DNZUW.js');
|
|
331
373
|
const result2 = await runWorkProofsRecord(opts);
|
|
332
374
|
process.exitCode = result2.exitCode;
|
|
333
375
|
return;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
|
-
import { RELAY_PORT, BUILD_HOME } from './chunk-
|
|
3
|
+
import { RELAY_PORT, BUILD_HOME } from './chunk-YLPJOUVF.js';
|
|
4
4
|
import { createServer, connect } from 'net';
|
|
5
5
|
|
|
6
6
|
createRequire(import.meta.url);
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
3
|
import { sanitizeTerminal } from './chunk-VEVNGDTP.js';
|
|
4
4
|
import { isAgentsMdLayout } from './chunk-ARL6X6Y4.js';
|
|
5
|
-
import { resolveGatewayCredentials, defaultFetch } from './chunk-
|
|
5
|
+
import { resolveGatewayCredentials, defaultFetch } from './chunk-3KGXXTMN.js';
|
|
6
6
|
import { versionAtLeast } from './chunk-HCVLP7XA.js';
|
|
7
7
|
import { findGitDirs } from './chunk-BJ3KTMDH.js';
|
|
8
8
|
import { machineSkillsState, staleClaudeSkills } from './chunk-ZEFNJCN3.js';
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
|
-
import { WorkCommandError, postJson } from './chunk-
|
|
4
|
-
import { defaultGitRunner, materializeContext, fetchControlPlaneCommit, lookupGoverningSource } from './chunk-
|
|
5
|
-
import { signingFetchFor } from './chunk-
|
|
6
|
-
import { signerFor } from './chunk-
|
|
3
|
+
import { WorkCommandError, postJson } from './chunk-XDAMLX2L.js';
|
|
4
|
+
import { defaultGitRunner, materializeContext, fetchControlPlaneCommit, lookupGoverningSource } from './chunk-UZEIBWTP.js';
|
|
5
|
+
import { signingFetchFor } from './chunk-3KGXXTMN.js';
|
|
6
|
+
import { signerFor } from './chunk-5TXQFZHY.js';
|
|
7
7
|
import { unsupportedLayout, layoutRefusalReason, composeDelivery } from './chunk-FGF52V4V.js';
|
|
8
8
|
import { SHIM_SCRIPT, GOVERNANCE_VARIABLE } from './chunk-HCVLP7XA.js';
|
|
9
9
|
import { readDegraded, readContextManifest, readSourceCache } from './chunk-YQR6E6OV.js';
|
|
10
|
-
import { SHIM_DIR, stagedContextDir, contextHomeDir, deliveryDir, keptContextDir } from './chunk-
|
|
10
|
+
import { SHIM_DIR, stagedContextDir, contextHomeDir, deliveryDir, keptContextDir } from './chunk-S6UM3N4R.js';
|
|
11
11
|
import { fstatSync, mkdirSync, writeFileSync, chmodSync, rmSync, cpSync, readFileSync, existsSync, lstatSync } from 'fs';
|
|
12
12
|
import { relative, join, dirname } from 'path';
|
|
13
13
|
|
|
@@ -1,9 +1,9 @@
|
|
|
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-MRLJK4GZ.js';
|
|
5
5
|
import { C } from './chunk-ANPNT6PM.js';
|
|
6
|
-
import { defaultFetch, unauthorizedMessage, resolveGatewayCredentials } from './chunk-
|
|
6
|
+
import { defaultFetch, unauthorizedMessage, resolveGatewayCredentials } from './chunk-3KGXXTMN.js';
|
|
7
7
|
import { resolveRepoIdentity } from './chunk-GH2HEEOH.js';
|
|
8
8
|
import { parseWorkItemEnv } from './chunk-T2Q7ISPE.js';
|
|
9
9
|
import { parseTrackerNumber, trackerNumberError } from './chunk-WZBHBH3J.js';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
|
-
import { escapeUnitPath, UNIT_MARKER, DEFAULT_UNIT_NAME } from './chunk-
|
|
4
|
-
import { inspectService, realInspectProbes } from './chunk-
|
|
3
|
+
import { escapeUnitPath, UNIT_MARKER, DEFAULT_UNIT_NAME } from './chunk-4YD7N6V3.js';
|
|
4
|
+
import { inspectService, realInspectProbes } from './chunk-YLPJOUVF.js';
|
|
5
5
|
import { realpathSync, readFileSync, readdirSync } from 'fs';
|
|
6
6
|
import { resolve, dirname, join } from 'path';
|
|
7
7
|
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
|
-
import { resolveCredentials, postJson, getJson } from './chunk-
|
|
3
|
+
import { resolveCredentials, postJson, getJson } from './chunk-XDAMLX2L.js';
|
|
4
4
|
import { detectActiveSession } from './chunk-IP7BIBXJ.js';
|
|
5
5
|
import { C } from './chunk-ANPNT6PM.js';
|
|
6
6
|
import { sanitizeTerminal } from './chunk-VEVNGDTP.js';
|
|
7
|
-
import { defaultFetch } from './chunk-
|
|
7
|
+
import { defaultFetch } from './chunk-3KGXXTMN.js';
|
|
8
8
|
import { resolveRepoIdentity } from './chunk-GH2HEEOH.js';
|
|
9
9
|
import { parseTrackerNumber, trackerNumberError } from './chunk-WZBHBH3J.js';
|
|
10
10
|
import { homeFromEnv } from './chunk-VNVZDWO3.js';
|
|
@@ -3,7 +3,7 @@ import { createRequire } from 'node:module';
|
|
|
3
3
|
import { DEFAULT_DASHBOARD } from './chunk-CKDSPW35.js';
|
|
4
4
|
import { sanitizeTerminal } from './chunk-VEVNGDTP.js';
|
|
5
5
|
import { isAgentsMdLayout } from './chunk-ARL6X6Y4.js';
|
|
6
|
-
import { cliFetch, resolveGatewayCredentials } from './chunk-
|
|
6
|
+
import { cliFetch, resolveGatewayCredentials } from './chunk-3KGXXTMN.js';
|
|
7
7
|
import { readCloudConfig } from './chunk-PJDQPF5N.js';
|
|
8
8
|
import { findGitDirs, writeRepoConnection, readRepoConnection } from './chunk-BJ3KTMDH.js';
|
|
9
9
|
import { remoteLookupFailed } from './chunk-GH2HEEOH.js';
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
|
-
import { uploadSpooledSteps } from './chunk-
|
|
3
|
+
import { uploadSpooledSteps } from './chunk-MCPCOKHN.js';
|
|
4
4
|
import { LaunchFilter } from './chunk-ESVW4MJY.js';
|
|
5
5
|
import { RepoFilter } from './chunk-TBT347UY.js';
|
|
6
6
|
import { C } from './chunk-ANPNT6PM.js';
|
|
7
7
|
import { migrateLegacyArtifactSidecars, planArtifactUpload, artifactsStatePath, sanitizeTerminal, acquireArtifactSpoolLock, artifactBlobsDir, resolveArtifactTurnIndex, isArtifactTombstoned, ARTIFACT_RETRY_MAX_AGE_MS, writeArtifactSpoolState, reclaimUnneededArtifactBlobs, neededArtifactShas } from './chunk-VEVNGDTP.js';
|
|
8
|
-
import { cliFetch, resolveGatewayCredentials, defaultFetch, unauthorizedMessage } from './chunk-
|
|
8
|
+
import { cliFetch, resolveGatewayCredentials, defaultFetch, unauthorizedMessage } from './chunk-3KGXXTMN.js';
|
|
9
9
|
import { readCloudConfig, cloudConfigPath, writeCloudConfig } from './chunk-PJDQPF5N.js';
|
|
10
|
-
import { signerFor, signRunnerRequest } from './chunk-
|
|
11
|
-
import { writeSyncStatus, spoolDir } from './chunk-
|
|
10
|
+
import { signerFor, signRunnerRequest } from './chunk-5TXQFZHY.js';
|
|
11
|
+
import { writeSyncStatus, spoolDir } from './chunk-V2S2WRGD.js';
|
|
12
12
|
import { readLatestProvenanceForSession, readContextProvenance } from './chunk-ZJSNLVCE.js';
|
|
13
13
|
import { hookExecSpoolPath } from './chunk-2O5KA67H.js';
|
|
14
14
|
import { applyReportedCost } from './chunk-BKO6JEZI.js';
|
|
@@ -19,7 +19,7 @@ import { cliInvocation } from './chunk-CRB3POP4.js';
|
|
|
19
19
|
import { removeJournalHooks } from './chunk-TUSYOL2O.js';
|
|
20
20
|
import { CAPTURE_TIERS, inferArtifactKind, bannedPathsForTier, downconvertSession, isHumanUserTurn, turnCountBound, EVENT_TYPES } from './chunk-IXRUVR25.js';
|
|
21
21
|
import { homeFromEnv } from './chunk-VNVZDWO3.js';
|
|
22
|
-
import { SCRUB_ENV_VARIABLE } from './chunk-
|
|
22
|
+
import { SCRUB_ENV_VARIABLE } from './chunk-YLPJOUVF.js';
|
|
23
23
|
import { dirname, basename, join, sep } from 'path';
|
|
24
24
|
import { statSync, readFileSync, readdirSync, mkdirSync, writeFileSync, renameSync, existsSync, rmSync } from 'fs';
|
|
25
25
|
import { execFileSync } from 'child_process';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
|
-
import { runnerDir, RUNNER_DIR_MODE, RUNNER_FILE_MODE } from './chunk-
|
|
3
|
+
import { runnerDir, RUNNER_DIR_MODE, RUNNER_FILE_MODE } from './chunk-S6UM3N4R.js';
|
|
4
4
|
import { readlinkSync, realpathSync, mkdirSync, unlinkSync, symlinkSync, renameSync, readFileSync, writeFileSync, rmSync, existsSync, readdirSync } from 'fs';
|
|
5
5
|
import { join, basename, sep, resolve } from 'path';
|
|
6
6
|
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
|
-
import { DEFAULT_UNIT_NAME } from './chunk-
|
|
4
|
-
import { RUNNER_FILE_MODE } from './chunk-
|
|
5
|
-
import { claudeEnvPath, withoutCredentialLines, parseRunnerEnv } from './chunk-
|
|
3
|
+
import { DEFAULT_UNIT_NAME } from './chunk-4YD7N6V3.js';
|
|
4
|
+
import { RUNNER_FILE_MODE } from './chunk-S6UM3N4R.js';
|
|
5
|
+
import { claudeEnvPath, withoutCredentialLines, parseRunnerEnv } from './chunk-YLPJOUVF.js';
|
|
6
6
|
import { existsSync, readFileSync, writeFileSync, renameSync, rmSync } from 'fs';
|
|
7
7
|
import { join, dirname } from 'path';
|
|
8
8
|
|
|
@@ -5,7 +5,7 @@ import { addStdioMcpEntryIfAbsent, addDocsMcpEntryIfAbsent, DOCS_MCP_SERVER_NAME
|
|
|
5
5
|
import { installStarterPack } from './chunk-54LIUIZL.js';
|
|
6
6
|
import { C } from './chunk-ANPNT6PM.js';
|
|
7
7
|
import { AGENTS_MD_LAYOUT, declareAgentsMdLayout, linkClaudeSkills, SKILLS_LINK_PATH, describeSkillsLink, isAgentsMdLayout, holdsTodaysLayoutSources, discoverOuterlayerPaths } from './chunk-ARL6X6Y4.js';
|
|
8
|
-
import { resolveGitCommonDir, defaultGitRunner } from './chunk-
|
|
8
|
+
import { resolveGitCommonDir, defaultGitRunner } from './chunk-UZEIBWTP.js';
|
|
9
9
|
import { loadTemplateFiles, loadMaintainedFiles, skillDir, AGENTS_SKILLS_BASE } from './chunk-HH3BQG65.js';
|
|
10
10
|
import { cliInvocation } from './chunk-CRB3POP4.js';
|
|
11
11
|
import { linkedAgentsPath } from './chunk-RQ3GCCHH.js';
|
|
@@ -1,31 +1,31 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
3
|
import { decideInstalledSwitch } from './chunk-3JVYMD4G.js';
|
|
4
|
-
import { reportFailedStart, fitImageBuildMemory } from './chunk-
|
|
4
|
+
import { reportFailedStart, fitImageBuildMemory } from './chunk-64O2NUVA.js';
|
|
5
5
|
import { fetchVersionMeta, npmVersion, npmSupportsProvenance, fetchTarballDigest, fetchProvenance, installVersion, auditSignatures } from './chunk-E7R2GIAW.js';
|
|
6
6
|
import { RUNNER_PROTOCOL } from './chunk-MH6QLXUO.js';
|
|
7
|
-
import { writePendingUpdate } from './chunk-
|
|
8
|
-
import { renderUpdateSteps } from './chunk-
|
|
9
|
-
import { readHousekeepingRecord, writeHousekeepingRecord } from './chunk-
|
|
10
|
-
import { releaseLease, isUnfinished, setStage, jobEnv, runHook, describeHookEnd, provisionMicroVm, deliverCommitHooks, provisionProcess, readProvisionOut, workdirProblem, MICROVM_COMMAND_DIR, commandLogOffset, startMicroVmCommand, microVmCommandLine, runCommand, startSender, finishJob, sampleGuest, foldSample, isContainerTracked, isMicroVmTracked, probeMicroVmCommand, probeCommand, appendCommandLog, judgeProbe, EXIT_CODE_FILE, isTracked, isGroupAlive, outcomeFromExitCode, isTimedOut, readCpuUsec, isIdle, stopOrphanedMicroVms, unfinishedJobs, listUnreadableJobs, listAdoptableJobs, retryFailedReleases, recoverLostJobs, GUEST_USAGE_INTERVAL_MS, hookLimitsFor, AttemptLogBook, microVmOomKills, needsRenew, renewLease, RENEW_INTERVAL_SECONDS, listTrackedJobs, restartSender, serveLease, vmAlive, writeGuestGhConfig, ALREADY_RELEASED, inTeardown } from './chunk-
|
|
7
|
+
import { writePendingUpdate } from './chunk-ZCZY3Q55.js';
|
|
8
|
+
import { renderUpdateSteps } from './chunk-NXUZFHMX.js';
|
|
9
|
+
import { readHousekeepingRecord, writeHousekeepingRecord } from './chunk-MEIDQLXQ.js';
|
|
10
|
+
import { releaseLease, isUnfinished, setStage, jobEnv, runHook, describeHookEnd, provisionMicroVm, deliverCommitHooks, provisionProcess, readProvisionOut, workdirProblem, MICROVM_COMMAND_DIR, commandLogOffset, startMicroVmCommand, microVmCommandLine, runCommand, startSender, finishJob, sampleGuest, foldSample, isContainerTracked, isMicroVmTracked, probeMicroVmCommand, probeCommand, appendCommandLog, judgeProbe, EXIT_CODE_FILE, isTracked, isGroupAlive, outcomeFromExitCode, isTimedOut, readCpuUsec, isIdle, stopOrphanedMicroVms, unfinishedJobs, listUnreadableJobs, listAdoptableJobs, retryFailedReleases, recoverLostJobs, GUEST_USAGE_INTERVAL_MS, hookLimitsFor, AttemptLogBook, microVmOomKills, needsRenew, renewLease, RENEW_INTERVAL_SECONDS, listTrackedJobs, restartSender, serveLease, vmAlive, writeGuestGhConfig, ALREADY_RELEASED, inTeardown } from './chunk-VX7WZK7J.js';
|
|
11
11
|
import { JOB_STATE_FORMAT, readsJobState, jobStateFormatOf } from './chunk-ZVB57WI6.js';
|
|
12
|
-
import { realBlockedProbes, checkBlockedWithSlots, largeBuildMemoryBytes, LARGE_BUILD_DISK_BYTES, checkManagedRoom, sliceMemoryOf, createHousekeepingDocker, housekeepingDockerIfReachable, KIND_LABEL, RECIPE_KEY_LABEL } from './chunk-
|
|
13
|
-
import { writeMarker, readMarker, currentVersion, removeMarker, isInLayout, startedThroughCurrent, entryIn, versionDir, switchCurrent, cleanVersions, stagingDir } from './chunk-
|
|
12
|
+
import { realBlockedProbes, checkBlockedWithSlots, largeBuildMemoryBytes, LARGE_BUILD_DISK_BYTES, checkManagedRoom, sliceMemoryOf, createHousekeepingDocker, housekeepingDockerIfReachable, KIND_LABEL, RECIPE_KEY_LABEL } from './chunk-QGEGLZSY.js';
|
|
13
|
+
import { writeMarker, readMarker, currentVersion, removeMarker, isInLayout, startedThroughCurrent, entryIn, versionDir, switchCurrent, cleanVersions, stagingDir } from './chunk-KH4774QT.js';
|
|
14
14
|
import { RepoFilter } from './chunk-TBT347UY.js';
|
|
15
|
-
import { leaseTimeLeftMs, createContainerRuntime, withTunnelLog, LEASE_SECONDS, attemptNote, fetchManagedClaudeKey, holdManagedClaudeKey, fetchManagedBuildSettings, holdManagedBuildSettings, needsBuildSkill, provisionContainer, leaseExpiresAtMs, deliverContainerHooks, provisionEnvironment, resolveHostBuild, listenOnBroker, hostEnvironment, deliverExecMaven, runWithSpawn, hostCommandEnvironment, lifecycleSteps, execArgv, lifecycleFailureReason, decideHostBuildSkill, prepareBranch, currentSkillCommand, formerSkillProblem, containerCommandExec, execCommandLine, startHostServices, HELPER_ENV, setUpRunnerCgroup, sweepImageBuilders, stoppedHelperReason, measureDisk, parseCpuList, ensureTunnel, keepGhConfigCurrent, filesAreCopied, ensureNetworkReady, managedBuildSettingsFor, ADOPTED_FETCH_RETRY_WINDOW_MS, gitRemoteFor, startServicesFor, createLeaseChannel } from './chunk-
|
|
16
|
-
import { describeCallFailure, retrySend, shortClaim, relativeToRunner, formatDuration, resolveGoverningSource, BuildTokens, classifyRefusal, refusalCode, createRunnerLog, formatClock } from './chunk-
|
|
17
|
-
import { imageTag, writeUpdateStatus, pullInstruction, tagToPull } from './chunk-
|
|
15
|
+
import { leaseTimeLeftMs, createContainerRuntime, withTunnelLog, LEASE_SECONDS, attemptNote, fetchManagedClaudeKey, holdManagedClaudeKey, fetchManagedBuildSettings, holdManagedBuildSettings, needsBuildSkill, provisionContainer, leaseExpiresAtMs, deliverContainerHooks, provisionEnvironment, resolveHostBuild, listenOnBroker, hostEnvironment, deliverExecMaven, runWithSpawn, hostCommandEnvironment, lifecycleSteps, execArgv, lifecycleFailureReason, decideHostBuildSkill, prepareBranch, currentSkillCommand, formerSkillProblem, containerCommandExec, execCommandLine, startHostServices, HELPER_ENV, setUpRunnerCgroup, sweepImageBuilders, stoppedHelperReason, measureDisk, parseCpuList, ensureTunnel, keepGhConfigCurrent, filesAreCopied, savedStatesDir, readRecords, removeOldestUntil, ensureNetworkReady, managedBuildSettingsFor, ADOPTED_FETCH_RETRY_WINDOW_MS, gitRemoteFor, startServicesFor, createLeaseChannel, selectStaleIncomplete, selectExpired, selectToFit, removeSavedState } from './chunk-WH3FPBPO.js';
|
|
16
|
+
import { describeCallFailure, retrySend, shortClaim, relativeToRunner, formatDuration, resolveGoverningSource, BuildTokens, classifyRefusal, refusalCode, createRunnerLog, formatClock } from './chunk-DCBFUUDL.js';
|
|
17
|
+
import { imageTag, writeUpdateStatus, pullInstruction, tagToPull } from './chunk-UXC3RQLF.js';
|
|
18
18
|
import { isVersion, compareVersions, satisfiesRange } from './chunk-TQMI335S.js';
|
|
19
|
-
import { isBuiltinContainer, isBuiltinVm, isBuiltinProcess, loadRunnerConfig, checkHooks, builtinKind, keepsHostBuilder, DEFAULT_UPDATE_MAX_WAIT_HOURS } from './chunk-
|
|
20
|
-
import {
|
|
21
|
-
import { writeJobFile, ensureRunnerIdentity, identityDockerFor, readJobFile, exceedsDisk, builderName, runnerLabelValue, ensureFailureCount, builderSpec, ensureBuilder, spawnRun, readJobFileChecked } from './chunk-
|
|
22
|
-
import { claimPidFile, releasePidFile, writePidFile, readPidFile } from './chunk-
|
|
19
|
+
import { isBuiltinContainer, isBuiltinVm, isBuiltinProcess, loadRunnerConfig, checkHooks, builtinKind, keepsHostBuilder, DEFAULT_SAVED_STATE_MAX_BYTES, DEFAULT_UPDATE_MAX_WAIT_HOURS } from './chunk-YF7W7B7Y.js';
|
|
20
|
+
import { formatBytes, allocatedBytes, freeBytes } from './chunk-RRXS4CWE.js';
|
|
21
|
+
import { writeJobFile, ensureRunnerIdentity, identityDockerFor, readJobFile, exceedsDisk, builderName, runnerLabelValue, ensureFailureCount, builderSpec, ensureBuilder, spawnRun, readJobFileChecked } from './chunk-P2PNBDUT.js';
|
|
22
|
+
import { claimPidFile, releasePidFile, writePidFile, readPidFile } from './chunk-SAAVZ2BX.js';
|
|
23
23
|
import { startTimeOf, isSameProcess } from './chunk-JBJTC3UU.js';
|
|
24
|
-
import { isSignatureRefusal, WorkCommandError, getJson, postJson } from './chunk-
|
|
25
|
-
import { loadHostKey, ensureHostKey, signerFor } from './chunk-
|
|
24
|
+
import { isSignatureRefusal, WorkCommandError, getJson, postJson } from './chunk-XDAMLX2L.js';
|
|
25
|
+
import { loadHostKey, ensureHostKey, signerFor } from './chunk-5TXQFZHY.js';
|
|
26
26
|
import { resolveVersion } from './chunk-RA3O54FC.js';
|
|
27
|
-
import { RUNNER_DIR_MODE, runnerDir, buildDir, attemptStamp, jobDir, RUNNER_FILE_MODE, jobsDir, pidFilePath, spoolDir, imagesDir, rootfsDir, builderCacheDiskPath } from './chunk-
|
|
28
|
-
import { parseClaimIdentity, parseClaimedRepositories, parseUnreachable, repositoriesOf, primaryOf, sharedUserEnvironment, JOB_MOUNT, takeClaudeCredential, heldClaudeCredential, currentClaudeCredential, fdName } from './chunk-
|
|
27
|
+
import { RUNNER_DIR_MODE, runnerDir, buildDir, attemptStamp, jobDir, RUNNER_FILE_MODE, jobsDir, pidFilePath, spoolDir, imagesDir, rootfsDir, builderCacheDiskPath } from './chunk-S6UM3N4R.js';
|
|
28
|
+
import { parseClaimIdentity, parseClaimedRepositories, parseUnreachable, repositoriesOf, primaryOf, sharedUserEnvironment, JOB_MOUNT, takeClaudeCredential, heldClaudeCredential, currentClaudeCredential, fdName } from './chunk-YLPJOUVF.js';
|
|
29
29
|
import { COMMAND_LOST_REASON, CONTAINER_STOPPED_REASON } from './chunk-MESOOLF4.js';
|
|
30
30
|
import { randomBytes, createHash } from 'crypto';
|
|
31
31
|
import { mkdirSync, existsSync, chmodSync, writeFileSync, renameSync, statSync, readdirSync, readFileSync, rmSync, closeSync, lstatSync } from 'fs';
|
|
@@ -775,6 +775,7 @@ async function runHousekeeping(options) {
|
|
|
775
775
|
}
|
|
776
776
|
}
|
|
777
777
|
}
|
|
778
|
+
freed += await removeSavedStates(options, nowMs, savedStatesDir(root));
|
|
778
779
|
freed += removeStaleBuilderCaches(options, nowMs);
|
|
779
780
|
const spoolPath = spoolDir(root);
|
|
780
781
|
const spoolFiles = listDir(spoolPath).flatMap((name) => {
|
|
@@ -795,6 +796,38 @@ async function runHousekeeping(options) {
|
|
|
795
796
|
log.line(`housekeeping: pass finished, freed ${formatBytes(freed)}`);
|
|
796
797
|
return { freedBytes: freed };
|
|
797
798
|
}
|
|
799
|
+
async function removeSavedStates(options, nowMs, dir) {
|
|
800
|
+
const records = readRecords(dir);
|
|
801
|
+
const reasons = /* @__PURE__ */ new Map();
|
|
802
|
+
for (const record of selectStaleIncomplete(records, nowMs)) reasons.set(record.id, "its copy never finished");
|
|
803
|
+
for (const record of selectExpired(records.filter((r) => r.complete), nowMs)) reasons.set(record.id, "it is at least 7 days old");
|
|
804
|
+
if (options.savedStateMax !== void 0) {
|
|
805
|
+
const kept = records.filter((record) => record.complete && !reasons.has(record.id));
|
|
806
|
+
const max = options.savedStateMax === "off" ? 0 : options.savedStateMax;
|
|
807
|
+
for (const record of selectToFit(kept, max)) reasons.set(record.id, "the saved states pass runner.housekeeping.savedStateMax");
|
|
808
|
+
}
|
|
809
|
+
let freed = 0;
|
|
810
|
+
const docker = options.docker;
|
|
811
|
+
for (const record of records.filter((r) => reasons.has(r.id))) {
|
|
812
|
+
try {
|
|
813
|
+
await removeSavedState(record, {
|
|
814
|
+
dir,
|
|
815
|
+
removeVolume: async (name) => {
|
|
816
|
+
if (docker === void 0) throw new Error("Docker is not available");
|
|
817
|
+
await docker.removeVolume(name);
|
|
818
|
+
}
|
|
819
|
+
});
|
|
820
|
+
freed += record.bytes;
|
|
821
|
+
options.log.line(`housekeeping: removed saved state ${record.id} (${formatBytes(record.bytes)}), ${reasons.get(record.id)}`);
|
|
822
|
+
} catch (err) {
|
|
823
|
+
options.log.error(`housekeeping: could not remove saved state ${record.id} (${describeSaved(record)}): ${describeCallFailure(err)}`);
|
|
824
|
+
}
|
|
825
|
+
}
|
|
826
|
+
return freed;
|
|
827
|
+
}
|
|
828
|
+
function describeSaved(record) {
|
|
829
|
+
return record.volume ?? record.path ?? record.kind;
|
|
830
|
+
}
|
|
798
831
|
async function removeStaleRootDisks(root, unfinished, options, docker) {
|
|
799
832
|
const dir = rootfsDir(root);
|
|
800
833
|
const inUse = new Set(unfinished.flatMap((job) => job.microvm?.rootfs === void 0 ? [] : [job.microvm.rootfs]));
|
|
@@ -1416,6 +1449,34 @@ function holdWithoutRoomForLarge(state) {
|
|
|
1416
1449
|
}
|
|
1417
1450
|
return false;
|
|
1418
1451
|
}
|
|
1452
|
+
async function freeDiskFromSavedStates(state, root, readFree) {
|
|
1453
|
+
const dir = savedStatesDir(root);
|
|
1454
|
+
const records = readRecords(dir).filter((record) => record.complete);
|
|
1455
|
+
if (records.length === 0) return readFree();
|
|
1456
|
+
const log = logOf(state);
|
|
1457
|
+
const minimum = state.config.housekeeping?.minFreeDisk ?? 0;
|
|
1458
|
+
try {
|
|
1459
|
+
state.deps.housekeeping ??= {};
|
|
1460
|
+
const names = { run: state.deps.housekeeping.run, runnerId: runnerLabelValue(state.config.configPath), builder: builderName(state.config.configPath) };
|
|
1461
|
+
const hostBuilder = keepsHostBuilder(state.config, state.deps.blocked?.builderDiskPinned);
|
|
1462
|
+
const docker = state.deps.housekeeping.docker ?? (hostBuilder ? createHousekeepingDocker(names) : await housekeepingDockerIfReachable(names));
|
|
1463
|
+
await removeOldestUntil({
|
|
1464
|
+
records,
|
|
1465
|
+
deps: {
|
|
1466
|
+
dir,
|
|
1467
|
+
removeVolume: async (name) => {
|
|
1468
|
+
if (docker === void 0) throw new Error("Docker is not available");
|
|
1469
|
+
await docker.removeVolume(name);
|
|
1470
|
+
}
|
|
1471
|
+
},
|
|
1472
|
+
enough: () => readFree() >= minimum,
|
|
1473
|
+
log: (line) => log.line(`freeing disk: ${line}`)
|
|
1474
|
+
});
|
|
1475
|
+
} catch (err) {
|
|
1476
|
+
log.error(`saved states could not be removed to free disk: ${describeCallFailure(err)}`);
|
|
1477
|
+
}
|
|
1478
|
+
return readFree();
|
|
1479
|
+
}
|
|
1419
1480
|
function recordPendingUpdate(state, record) {
|
|
1420
1481
|
const text = record === void 0 ? "none" : JSON.stringify(record);
|
|
1421
1482
|
if (state.updateRecord === text) return;
|
|
@@ -1723,11 +1784,13 @@ function holdWhenBlocked(state, jailer) {
|
|
|
1723
1784
|
}
|
|
1724
1785
|
return false;
|
|
1725
1786
|
}
|
|
1726
|
-
function holdOffForDisk(state) {
|
|
1787
|
+
async function holdOffForDisk(state) {
|
|
1727
1788
|
const minimum = state.config.housekeeping?.minFreeDisk ?? 0;
|
|
1728
1789
|
const root = runnerDir(state.config.configPath);
|
|
1729
|
-
const
|
|
1790
|
+
const readFree = () => minimum === 0 ? Number.POSITIVE_INFINITY : (state.deps.freeBytes ?? freeBytes)(root) ?? Number.POSITIVE_INFINITY;
|
|
1791
|
+
let free = readFree();
|
|
1730
1792
|
const log = logOf(state);
|
|
1793
|
+
if (free < minimum) free = await freeDiskFromSavedStates(state, root, readFree);
|
|
1731
1794
|
if (free < minimum) {
|
|
1732
1795
|
if (state.lowDisk === void 0) {
|
|
1733
1796
|
log.line(
|
|
@@ -1769,6 +1832,7 @@ async function housekeepingPass(state) {
|
|
|
1769
1832
|
configPath: state.config.configPath,
|
|
1770
1833
|
keepDays: config.jobsKeepDays,
|
|
1771
1834
|
buildCacheMax: config.buildCacheMax,
|
|
1835
|
+
savedStateMax: config.savedStateMax ?? DEFAULT_SAVED_STATE_MAX_BYTES,
|
|
1772
1836
|
removeHostBuilder: !hostBuilder,
|
|
1773
1837
|
docker,
|
|
1774
1838
|
now: state.deps.now ?? (() => /* @__PURE__ */ new Date()),
|
|
@@ -1797,7 +1861,7 @@ async function runTick(state) {
|
|
|
1797
1861
|
}
|
|
1798
1862
|
const jailer = state.config.managed === true && state.deps.blocked?.jailer === void 0 ? await jailerState(state) : void 0;
|
|
1799
1863
|
if (holdWhenBlocked(state, jailer)) return;
|
|
1800
|
-
if (holdOffForDisk(state)) return;
|
|
1864
|
+
if (await holdOffForDisk(state)) return;
|
|
1801
1865
|
if (holdWithoutRoomForLarge(state)) return;
|
|
1802
1866
|
const log = logOf(state);
|
|
1803
1867
|
const repoFilter = new RepoFilter(state.config.repos);
|
|
@@ -1858,7 +1922,7 @@ var CLAIM_REFUSAL_CODES = new Set(
|
|
|
1858
1922
|
"pull_request_from_fork pull_request_on_default_branch pull_request_ambiguous pull_request_repository_not_connected repository_not_reachable branch_claimed_elsewhere".split(" ")
|
|
1859
1923
|
);
|
|
1860
1924
|
async function tryClaimAndStart(state, item, queue) {
|
|
1861
|
-
const { postJson: postJson2 } = await import('./work-cmd-
|
|
1925
|
+
const { postJson: postJson2 } = await import('./work-cmd-VSHZCXHQ.js');
|
|
1862
1926
|
const log = logOf(state);
|
|
1863
1927
|
const hostKey = await loadHostKey(state.config.configPath);
|
|
1864
1928
|
const claim = await retrySend(
|
|
@@ -3191,7 +3255,7 @@ async function startRunner(configPath, deps, startup) {
|
|
|
3191
3255
|
check: update.check ? () => update.check(configPath) : async () => {
|
|
3192
3256
|
const held = heldClaudeCredential();
|
|
3193
3257
|
const env = held === void 0 ? process.env : { ...process.env, [held.variable]: held.value };
|
|
3194
|
-
return (await import('./check-
|
|
3258
|
+
return (await import('./check-VKSOYRNI.js')).runRunnerCheck(configPath, { fetchImpl: deps.fetchImpl, env });
|
|
3195
3259
|
},
|
|
3196
3260
|
now: () => (deps.now ?? (() => /* @__PURE__ */ new Date()))().getTime(),
|
|
3197
3261
|
log
|
|
@@ -2,10 +2,10 @@
|
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
3
|
import { launchRefusalForSession } from './chunk-ESVW4MJY.js';
|
|
4
4
|
import { detectActiveSession } from './chunk-IP7BIBXJ.js';
|
|
5
|
-
import { autoConnect } from './chunk-
|
|
5
|
+
import { autoConnect } from './chunk-MRLJK4GZ.js';
|
|
6
6
|
import { C } from './chunk-ANPNT6PM.js';
|
|
7
7
|
import { acquireSpoolLockAt } from './chunk-VEVNGDTP.js';
|
|
8
|
-
import { resolveGatewayCredentials, defaultFetch, unauthorizedMessage } from './chunk-
|
|
8
|
+
import { resolveGatewayCredentials, defaultFetch, unauthorizedMessage } from './chunk-3KGXXTMN.js';
|
|
9
9
|
import { resolveRepoIdentity } from './chunk-GH2HEEOH.js';
|
|
10
10
|
import { launchedItemForSession } from './chunk-T2Q7ISPE.js';
|
|
11
11
|
import { parseTrackerNumber, trackerNumberError } from './chunk-WZBHBH3J.js';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
|
-
import { RUNNER_DIR_MODE, RUNNER_FILE_MODE } from './chunk-
|
|
3
|
+
import { RUNNER_DIR_MODE, RUNNER_FILE_MODE } from './chunk-S6UM3N4R.js';
|
|
4
4
|
import { readFileSync, mkdirSync, writeFileSync, renameSync } from 'fs';
|
|
5
5
|
import { join } from 'path';
|
|
6
6
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
|
-
import { fetchFactories, selectFactory, saveFactoryConnection, autoConnectedLine } from './chunk-
|
|
4
|
-
import { resolveGatewayCredentials } from './chunk-
|
|
3
|
+
import { fetchFactories, selectFactory, saveFactoryConnection, autoConnectedLine } from './chunk-HFOZTCTN.js';
|
|
4
|
+
import { resolveGatewayCredentials } from './chunk-3KGXXTMN.js';
|
|
5
5
|
import { readCloudConfig } from './chunk-PJDQPF5N.js';
|
|
6
6
|
import { findGitDirs, readRepoConnection } from './chunk-BJ3KTMDH.js';
|
|
7
7
|
import { resolveRepoIdentity } from './chunk-GH2HEEOH.js';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
|
-
import { currentLink } from './chunk-
|
|
3
|
+
import { currentLink } from './chunk-KH4774QT.js';
|
|
4
4
|
import { readFileSync, statSync, chmodSync, mkdirSync, writeFileSync, renameSync, rmSync, existsSync, lstatSync, accessSync, constants, realpathSync } from 'fs';
|
|
5
5
|
import { randomBytes } from 'crypto';
|
|
6
6
|
import { join, dirname, delimiter, resolve } from 'path';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
|
-
import { stripTerminalControls } from './chunk-
|
|
4
|
-
import { tagToPull, imageTag, pullInstruction, readUpdateStatus, runnerImageVersion } from './chunk-
|
|
3
|
+
import { stripTerminalControls } from './chunk-VX7WZK7J.js';
|
|
4
|
+
import { tagToPull, imageTag, pullInstruction, readUpdateStatus, runnerImageVersion } from './chunk-UXC3RQLF.js';
|
|
5
5
|
import { readFileSync } from 'fs';
|
|
6
6
|
|
|
7
7
|
createRequire(import.meta.url);
|
|
@@ -55,7 +55,7 @@ function envNamesOf(row, imageEnv) {
|
|
|
55
55
|
return [...new Set(names)].sort();
|
|
56
56
|
}
|
|
57
57
|
async function readOwnContainer(deps = {}) {
|
|
58
|
-
const run = deps.run ?? (await import('./docker-
|
|
58
|
+
const run = deps.run ?? (await import('./docker-YMRPMDOW.js')).spawnRun;
|
|
59
59
|
const ids = candidateIds(deps.env ?? process.env, deps.readFile ?? ((path) => readFileSync(path, "utf8")));
|
|
60
60
|
if (ids.length === 0) return { ok: false, reason: "the runner cannot tell which container it runs in: HOSTNAME is empty and /proc/self/mountinfo names none" };
|
|
61
61
|
let problem = "";
|