@outerlayer/cli 0.37.0-next.20261104233800 → 0.37.0-next.20261105001951
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/build-info.json +1 -1
- package/dist/{check-VOJWXIRZ.js → check-WG7ONVYM.js} +6 -6
- package/dist/{chunk-3Z5GISKU.js → chunk-4E3ALN2D.js} +111 -12
- package/dist/{chunk-W6GP4CNN.js → chunk-7UG2MMFU.js} +1 -1
- package/dist/{chunk-LLZG5A2J.js → chunk-ICLXEZEB.js} +1 -1
- package/dist/{chunk-VNMTA2JE.js → chunk-MIJGB43I.js} +1 -1
- package/dist/{chunk-SQWYFCEU.js → chunk-NQPQH6Y5.js} +1 -1
- package/dist/{chunk-TSYTPW6Y.js → chunk-RTNUZPAC.js} +2 -3
- package/dist/{chunk-ERGU3OZP.js → chunk-WLALSXAN.js} +5 -5
- package/dist/{chunk-FX4ZG4E5.js → chunk-WRFUGRUX.js} +1 -1
- package/dist/{cli-FFPFIMPZ.js → cli-42G6B7EO.js} +28 -25
- package/dist/{command-MYYGFCW3.js → command-5GGBCD4S.js} +3 -3
- package/dist/{container-start-ICNSSPBS.js → container-start-45TQNJQE.js} +4 -4
- package/dist/{doctor-LEGPWSQ3.js → doctor-GFROWFS3.js} +4 -4
- package/dist/{host-checks-VGJVO23Y.js → host-checks-KDJZIFBQ.js} +2 -2
- package/dist/index.js +1 -1
- package/dist/{init-F3L4CTBJ.js → init-QBWRPNZP.js} +2 -2
- package/dist/{init-Z6ZVLUJ5.js → init-V45VLEQO.js} +2 -2
- package/dist/{init-agent-DO233UTF.js → init-agent-2XMCGKPV.js} +2 -2
- package/dist/{init-cmd-AKIPYTNP.js → init-cmd-JY2UXAYR.js} +1 -1
- package/dist/{loop-MUPQOIW6.js → loop-V5ZC753N.js} +6 -6
- package/dist/{machine-WFZ5KM76.js → machine-4M4RUHG2.js} +2 -2
- package/dist/{runner-key-2SKLS37E.js → runner-key-OS7EKYZS.js} +2 -2
- package/dist/{status-WZCEHCL2.js → status-ODVVTDA2.js} +2 -2
- package/dist/{update-steps-5BGDQTVG.js → update-steps-ZW2EDSYC.js} +3 -3
- package/dist/{work-proofs-cmd-P33QGSIQ.js → work-proofs-cmd-DDVTBWPI.js} +2 -2
- package/dist/{work-proofs-record-FN6M7BIZ.js → work-proofs-record-W45UBFHM.js} +66 -8
- package/package.json +1 -1
- package/skill-pack/maintained/outerlayer-build/references/agent-briefs.md +18 -7
- package/skill-pack/maintained/outerlayer-build/references/evidence.md +8 -5
- package/dist/{chunk-6SC66WGJ.js → chunk-BNYBHWYH.js} +172 -172
package/dist/build-info.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"id":"2026-11-
|
|
1
|
+
{"id":"2026-11-05T00:25:56.775Z","root":"/home/runner/work/outerlayer/outerlayer","pkg":"outerlayer"}
|
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
|
-
import { probeCredentials } from './chunk-
|
|
3
|
+
import { probeCredentials } from './chunk-WLALSXAN.js';
|
|
4
4
|
import './chunk-PNZN656P.js';
|
|
5
5
|
import './chunk-2QFRAMJX.js';
|
|
6
6
|
import './chunk-LVZ3UV7T.js';
|
|
7
7
|
import './chunk-3JVYMD4G.js';
|
|
8
8
|
import './chunk-E7R2GIAW.js';
|
|
9
|
-
import './chunk-
|
|
10
|
-
import './chunk-
|
|
9
|
+
import './chunk-7UG2MMFU.js';
|
|
10
|
+
import './chunk-NQPQH6Y5.js';
|
|
11
11
|
import './chunk-IDYLPN4X.js';
|
|
12
|
-
import { fleetConfigProblem, managedProblems, managedFactsOf, askFleetMachine } from './chunk-
|
|
12
|
+
import { fleetConfigProblem, managedProblems, managedFactsOf, askFleetMachine } from './chunk-ICLXEZEB.js';
|
|
13
13
|
import './chunk-IJU6DMQA.js';
|
|
14
14
|
import { findServiceUnit } from './chunk-3LT6REKE.js';
|
|
15
|
-
import { placeholderQueues, placeholderProblem, permissionModeProblems, permissionModeProblem, HELPER_ENV, helperSocketPath, probeHelper, needsAgentCredential, agentCredentialCheck, claimPermissionProblem, formerSkillQueues, modellessQueues, formerSkillProblem, modellessProblem } from './chunk-
|
|
16
|
-
import './chunk-
|
|
15
|
+
import { placeholderQueues, placeholderProblem, permissionModeProblems, permissionModeProblem, HELPER_ENV, helperSocketPath, probeHelper, needsAgentCredential, agentCredentialCheck, claimPermissionProblem, formerSkillQueues, modellessQueues, formerSkillProblem, modellessProblem } from './chunk-RTNUZPAC.js';
|
|
16
|
+
import './chunk-BNYBHWYH.js';
|
|
17
17
|
import './chunk-2PGI6RDE.js';
|
|
18
18
|
import './chunk-I3LTIAOR.js';
|
|
19
19
|
import './chunk-ZHOPDD7U.js';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
|
-
import { criteriaOf, loadCitationFinder, testFileMatcher, hostItemsOf, NO_VERDICT_REASON } from './chunk-
|
|
3
|
+
import { criteriaOf, loadCitationFinder, testFileMatcher, hostItemsOf, runnerMatcher, NO_VERDICT_REASON } from './chunk-BNYBHWYH.js';
|
|
4
4
|
import { WorkCommandError, resolveCredentials, getJson } from './chunk-6BS4DDCY.js';
|
|
5
5
|
import { sanitizeTerminal } from './chunk-VVZIFOAN.js';
|
|
6
6
|
import { C } from './chunk-2AM6Z5BP.js';
|
|
@@ -8,16 +8,17 @@ import { defaultFetch } from './chunk-FYPVUT27.js';
|
|
|
8
8
|
import { parseWorkItemEnv } from './chunk-4OD45RBP.js';
|
|
9
9
|
import { parseTrackerNumber, trackerNumberError } from './chunk-WZBHBH3J.js';
|
|
10
10
|
import { readDeliveryRecord } from './chunk-YQR6E6OV.js';
|
|
11
|
+
import { parseProofsConfig } from './chunk-UZNSGMUZ.js';
|
|
11
12
|
import { resolveRepoIdentity } from './chunk-ZQNYV4OZ.js';
|
|
12
|
-
import { inferArtifactKind, mediaTypeForArtifactPath, WORK_ITEM_COMMENT_MAX_BODY_LENGTH } from './chunk-2JIGPSVF.js';
|
|
13
|
-
import { createHash } from 'crypto';
|
|
13
|
+
import { inferArtifactKind, mediaTypeForArtifactPath, WORK_ITEM_COMMENT_MAX_BODY_LENGTH, parseJunit } from './chunk-2JIGPSVF.js';
|
|
14
14
|
import { spawnSync } from 'child_process';
|
|
15
|
-
import {
|
|
16
|
-
import {
|
|
15
|
+
import { createHash } from 'crypto';
|
|
16
|
+
import { readFileSync, readdirSync, lstatSync, statSync, existsSync } from 'fs';
|
|
17
|
+
import { relative, join, resolve, dirname } from 'path';
|
|
17
18
|
|
|
18
19
|
createRequire(import.meta.url);
|
|
19
20
|
function kindProblem(declared, file) {
|
|
20
|
-
if (declared === "test") return "a test proof is recorded
|
|
21
|
+
if (declared === "test") return "a test proof is recorded from the JUnit results of its tests, not from a file named for the criterion";
|
|
21
22
|
const kind = inferArtifactKind(mediaTypeForArtifactPath(file));
|
|
22
23
|
return kind === declared ? void 0 : `the kinds differ: the file is a ${kind}, but the criterion declares a ${declared} proof`;
|
|
23
24
|
}
|
|
@@ -128,14 +129,14 @@ function governingDir(cwd) {
|
|
|
128
129
|
async function testProofMode(cwd) {
|
|
129
130
|
const dir = governingDir(cwd);
|
|
130
131
|
if (dir === void 0) return "any";
|
|
131
|
-
const { testProofIn } = await import('./host-checks-
|
|
132
|
+
const { testProofIn } = await import('./host-checks-KDJZIFBQ.js');
|
|
132
133
|
return testProofIn(dir);
|
|
133
134
|
}
|
|
134
135
|
async function judgeCheckName(cwd) {
|
|
135
136
|
const dir = governingDir(cwd);
|
|
136
137
|
if (dir === void 0) return {};
|
|
137
138
|
if (!existsSync(dir)) return { note: `the governed context at ${dir} is not readable` };
|
|
138
|
-
const { checksIn, isJudgeCheck } = await import('./host-checks-
|
|
139
|
+
const { checksIn, isJudgeCheck } = await import('./host-checks-KDJZIFBQ.js');
|
|
139
140
|
const quiet = { line: () => void 0, error: () => void 0 };
|
|
140
141
|
const check = checksIn(dir, quiet, "").checks.find((c) => isJudgeCheck(c) && c.judge.subjects === "criteria");
|
|
141
142
|
return check === void 0 ? {} : { name: check.name };
|
|
@@ -161,8 +162,101 @@ async function findUnproven(input) {
|
|
|
161
162
|
return { entries: [], notes: [err instanceof Error ? err.message : String(err)] };
|
|
162
163
|
}
|
|
163
164
|
}
|
|
165
|
+
function freshXmlFiles(folders, sinceMs) {
|
|
166
|
+
const skipped = /* @__PURE__ */ new Set([".git", "node_modules", ".gradle", ".m2", ".venv", "venv", "__pycache__", ".next", ".turbo"]);
|
|
167
|
+
const found = /* @__PURE__ */ new Set();
|
|
168
|
+
const walk = (folder) => {
|
|
169
|
+
let names;
|
|
170
|
+
try {
|
|
171
|
+
names = readdirSync(folder);
|
|
172
|
+
} catch {
|
|
173
|
+
return;
|
|
174
|
+
}
|
|
175
|
+
for (const name of names) {
|
|
176
|
+
const path = join(folder, name);
|
|
177
|
+
const stat = lstatSync(path, { throwIfNoEntry: false });
|
|
178
|
+
if (stat === void 0) continue;
|
|
179
|
+
if (stat.isDirectory()) {
|
|
180
|
+
if (!skipped.has(name)) walk(path);
|
|
181
|
+
} else if (stat.isFile() && name.endsWith(".xml") && stat.mtimeMs >= sinceMs && stat.size <= 16 * 1024 * 1024) {
|
|
182
|
+
found.add(path);
|
|
183
|
+
}
|
|
184
|
+
}
|
|
185
|
+
};
|
|
186
|
+
for (const folder of folders) walk(folder);
|
|
187
|
+
return [...found].sort();
|
|
188
|
+
}
|
|
189
|
+
function suitesOf(text, root) {
|
|
190
|
+
const start = text.search(new RegExp(`<${root}[\\s>/]`));
|
|
191
|
+
const close = `</${root}>`;
|
|
192
|
+
const end = text.lastIndexOf(close);
|
|
193
|
+
if (root === "testsuite") return text.slice(start, end + close.length);
|
|
194
|
+
return text.slice(text.indexOf(">", start) + 1, end);
|
|
195
|
+
}
|
|
196
|
+
function joinResults(files, names, root) {
|
|
197
|
+
const parts = [];
|
|
198
|
+
const used = [];
|
|
199
|
+
const seen = /* @__PURE__ */ new Set();
|
|
200
|
+
for (const file of files) {
|
|
201
|
+
let bytes;
|
|
202
|
+
try {
|
|
203
|
+
bytes = readFileSync(file);
|
|
204
|
+
} catch {
|
|
205
|
+
continue;
|
|
206
|
+
}
|
|
207
|
+
const parsed = parseJunit(bytes);
|
|
208
|
+
if (parsed.kind !== "junit") continue;
|
|
209
|
+
const held = parsed.testcases.filter((testcase) => names.size === 0 || names.has(testcase.name));
|
|
210
|
+
if (held.length === 0) continue;
|
|
211
|
+
parts.push(suitesOf(bytes.toString("utf8"), parsed.root).trim());
|
|
212
|
+
used.push(relative(root, file) || file);
|
|
213
|
+
for (const testcase of held) seen.add(testcase.name);
|
|
214
|
+
}
|
|
215
|
+
const missing = [...names].filter((name) => !seen.has(name));
|
|
216
|
+
if (parts.length === 0) return { ok: false, reason: "the run wrote no JUnit results that hold its tests" };
|
|
217
|
+
if (missing.length > 0) return { ok: false, reason: `the run's JUnit results do not hold ${missing.slice(0, 3).map((name) => `"${name}"`).join(", ")}${missing.length > 3 ? " and others" : ""}` };
|
|
218
|
+
const xml = `<?xml version="1.0" encoding="UTF-8"?>
|
|
219
|
+
<testsuites>
|
|
220
|
+
${parts.join("\n")}
|
|
221
|
+
</testsuites>
|
|
222
|
+
`;
|
|
223
|
+
return { ok: true, xml, files: used };
|
|
224
|
+
}
|
|
225
|
+
function testSelectors(tests) {
|
|
226
|
+
if (!tests.selected) return [];
|
|
227
|
+
return tests.items.map((test) => test.file !== null && test.line !== null ? `${test.name}=${test.file}:${test.line}` : test.name);
|
|
228
|
+
}
|
|
229
|
+
function testFilesOf(tests) {
|
|
230
|
+
return [...new Set(tests.items.flatMap((test) => test.file === null ? [] : [test.file]))].sort();
|
|
231
|
+
}
|
|
232
|
+
function recordingProblems(input) {
|
|
233
|
+
const recorded = input.notCurrent;
|
|
234
|
+
if (recorded.length === 0) return [];
|
|
235
|
+
const ids = recorded.map((entry) => entry.id).join(", ");
|
|
236
|
+
if (input.proofsFile === void 0) {
|
|
237
|
+
return [`The host cannot record ${ids} again: .outerlayer-proofs.yaml is missing at HEAD. Commit it with a runner that runs these tests.`];
|
|
238
|
+
}
|
|
239
|
+
const parsed = parseProofsConfig(input.proofsFile);
|
|
240
|
+
if (!parsed.ok) {
|
|
241
|
+
return [`The host cannot record ${ids} again: .outerlayer-proofs.yaml cannot be read: ${parsed.problems.join("; ")}. Fix it and commit it.`];
|
|
242
|
+
}
|
|
243
|
+
const matches = runnerMatcher(parsed.value.runners);
|
|
244
|
+
const problems = [];
|
|
245
|
+
for (const entry of recorded) {
|
|
246
|
+
if (entry.proof !== "test" || entry.tests === void 0) continue;
|
|
247
|
+
const files = testFilesOf(entry.tests);
|
|
248
|
+
const unmatched = files.filter((file) => matches(file) === void 0);
|
|
249
|
+
if (files.length === 0) problems.push(`The host cannot record ${entry.id} again: its results name no test file. Emit them again naming each test with --test <name>=<path>:<line>.`);
|
|
250
|
+
else if (unmatched.length > 0) problems.push(`The host cannot record ${entry.id} again: no runner in .outerlayer-proofs.yaml matches ${unmatched.join(", ")}.`);
|
|
251
|
+
}
|
|
252
|
+
return problems;
|
|
253
|
+
}
|
|
164
254
|
|
|
165
255
|
// src/work-proofs-cmd.ts
|
|
256
|
+
function proofsFileAtHead(cwd) {
|
|
257
|
+
const shown = spawnSync("git", ["show", "HEAD:.outerlayer-proofs.yaml"], { cwd, encoding: "utf8" });
|
|
258
|
+
return shown.status === 0 ? shown.stdout : void 0;
|
|
259
|
+
}
|
|
166
260
|
function liveHead(pr) {
|
|
167
261
|
if (pr.state !== "open" && pr.state !== "merged" || typeof pr.headSha !== "string" || pr.headSha === "") return void 0;
|
|
168
262
|
return pr.headSha.toLowerCase();
|
|
@@ -210,7 +304,8 @@ function renderEntry(e) {
|
|
|
210
304
|
}
|
|
211
305
|
const row = `${id} ${sanitizeTerminal(e.proof)} ${STATE_LABEL[e.state]} ${sanitizeTerminal(e.commit ?? "no commit")}`;
|
|
212
306
|
if (e.proof !== "test" || e.state === "current") return row;
|
|
213
|
-
return `${row} Run
|
|
307
|
+
if (e.state === "out-of-date") return `${row} Run outerlayer work proofs --record to run its tests again at HEAD, or emit new results with outerlayer emit artifact <file> --for ${id}`;
|
|
308
|
+
return `${row} Run the tests with a JUnit reporter at HEAD, then run outerlayer emit artifact <file> --for ${id} --test <name>=<path>:<line>`;
|
|
214
309
|
}
|
|
215
310
|
function render(entries, notes, json, tests) {
|
|
216
311
|
if (json) return JSON.stringify(entries);
|
|
@@ -255,10 +350,14 @@ async function runWorkProofs(opts) {
|
|
|
255
350
|
const declared = classifyProofs(body, checkoutHead, { tests });
|
|
256
351
|
const unproven = await findUnproven({ item: body, cwd, head: checkoutHead });
|
|
257
352
|
const entries = [...declared, ...unproven.entries];
|
|
353
|
+
const notCurrent = declared.filter((e) => e.state !== "current").map((e) => ({ id: e.id, proof: e.proof, tests: items.find((c) => c.id === e.id).newestProof?.tests }));
|
|
354
|
+
const recording = notCurrent.length === 0 ? [] : recordingProblems({ notCurrent, proofsFile: (opts.readProofsFile ?? proofsFileAtHead)(cwd) });
|
|
258
355
|
const json = opts.json === true;
|
|
259
|
-
const output = render(entries, json ? [] : unproven.notes, json, tests);
|
|
356
|
+
const output = [render(entries, json ? [] : unproven.notes, json, tests), ...json ? [] : recording].join("\n");
|
|
260
357
|
if (!opts.quiet) {
|
|
261
358
|
process.stdout.write(output + "\n");
|
|
359
|
+
if (json && recording.length > 0) process.stderr.write(`${recording.join("\n")}
|
|
360
|
+
`);
|
|
262
361
|
if (json && unproven.notes.length > 0) process.stderr.write(`The command could not check the judge's results: ${unproven.notes.join("; ")}.
|
|
263
362
|
`);
|
|
264
363
|
}
|
|
@@ -269,7 +368,7 @@ async function runWorkProofs(opts) {
|
|
|
269
368
|
async function runWorkProofsCommand(opts) {
|
|
270
369
|
try {
|
|
271
370
|
if (opts.record) {
|
|
272
|
-
const { runWorkProofsRecord } = await import('./work-proofs-record-
|
|
371
|
+
const { runWorkProofsRecord } = await import('./work-proofs-record-W45UBFHM.js');
|
|
273
372
|
const result2 = await runWorkProofsRecord(opts);
|
|
274
373
|
process.exitCode = result2.exitCode;
|
|
275
374
|
return;
|
|
@@ -287,4 +386,4 @@ async function runWorkProofsCommand(opts) {
|
|
|
287
386
|
}
|
|
288
387
|
}
|
|
289
388
|
|
|
290
|
-
export { classifyProofs, classifyProofsAt, kindProblem, otherPullRequestHeads, ownPullRequest, proofsCommentBody, proofsCommentId, resolveProofsItem, runWorkProofs, runWorkProofsCommand };
|
|
389
|
+
export { classifyProofs, classifyProofsAt, freshXmlFiles, joinResults, kindProblem, otherPullRequestHeads, ownPullRequest, proofsCommentBody, proofsCommentId, resolveProofsItem, runWorkProofs, runWorkProofsCommand, testFilesOf, testProofMode, testSelectors };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
|
-
import { scrubReason, stripTerminalControls } from './chunk-
|
|
3
|
+
import { scrubReason, stripTerminalControls } from './chunk-RTNUZPAC.js';
|
|
4
4
|
import { checkFit, RUNNER_RESERVE_BYTES } from './chunk-VTJ5MGGC.js';
|
|
5
5
|
import { RunnerAlreadyRunningError, readPidFile } from './chunk-WCJCGFVQ.js';
|
|
6
6
|
import { isSameProcess } from './chunk-JBJTC3UU.js';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
|
-
import { placeholderQueues, placeholderProblem } from './chunk-
|
|
3
|
+
import { placeholderQueues, placeholderProblem } from './chunk-RTNUZPAC.js';
|
|
4
4
|
import { checkFit, RUNNER_RESERVE_BYTES } from './chunk-VTJ5MGGC.js';
|
|
5
5
|
import { getJson, WorkCommandError } from './chunk-6BS4DDCY.js';
|
|
6
6
|
import { isBuiltinVm, builtinKind, EGRESS_SWITCHABLE_KEYS, imageBuildOf, keepsHostBuilder } from './chunk-G43WGW64.js';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
|
-
import { helperSocketPath } from './chunk-
|
|
3
|
+
import { helperSocketPath } from './chunk-RTNUZPAC.js';
|
|
4
4
|
import { UNIT_MARKER } from './chunk-VTJ5MGGC.js';
|
|
5
5
|
import { runnerDir } from './chunk-RXWFZB3P.js';
|
|
6
6
|
import { createHash } from 'crypto';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
|
-
import { stripTerminalControls } from './chunk-
|
|
3
|
+
import { stripTerminalControls } from './chunk-RTNUZPAC.js';
|
|
4
4
|
import { tagToPull, imageTag, pullInstruction, readUpdateStatus, runnerImageVersion } from './chunk-NBGBMZE4.js';
|
|
5
5
|
import { readFileSync } from 'fs';
|
|
6
6
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
|
-
import { itemsSentence, criteriaOf, hostItemsOf, loadCitationFinder, testFileMatcher, planCriteria, judgeGroups, failedItems, inCriteriaOrder, testsByCriterion, oneLineReason, criterionInputs, parseJudgeAnswer, judgedItems, MAX_TEST_FILE_BYTES } from './chunk-
|
|
3
|
+
import { itemsSentence, criteriaOf, hostItemsOf, loadCitationFinder, testFileMatcher, planCriteria, judgeGroups, failedItems, inCriteriaOrder, testsByCriterion, oneLineReason, criterionInputs, parseJudgeAnswer, judgedItems, MAX_TEST_FILE_BYTES } from './chunk-BNYBHWYH.js';
|
|
4
4
|
import { sha256OfFile, downloadPinned, VoiceDownloadError } from './chunk-2PGI6RDE.js';
|
|
5
5
|
import { zodProblem } from './chunk-I3LTIAOR.js';
|
|
6
6
|
import { hasStoredCredential, storeAgentCredential, credentialFromStdin, isAgentName } from './chunk-ZHOPDD7U.js';
|
|
@@ -7337,10 +7337,9 @@ async function runRecordProofsViaExec(config, job, jobDirPath, spawnFn = spawn)
|
|
|
7337
7337
|
return { ok: false, reason: describeCallFailure(err) };
|
|
7338
7338
|
}
|
|
7339
7339
|
}
|
|
7340
|
-
var RECORDED_PROOFS = /* @__PURE__ */ new Set(["screenshot", "video", "report", "log", "file"]);
|
|
7341
7340
|
async function declaresRecordedProof(config, item, fetchImpl) {
|
|
7342
7341
|
try {
|
|
7343
|
-
return (criteriaOf(await readWorkItem(config, item, fetchImpl)) ?? []).some((criterion) => criterion.proof !== null
|
|
7342
|
+
return (criteriaOf(await readWorkItem(config, item, fetchImpl)) ?? []).some((criterion) => criterion.proof !== null);
|
|
7344
7343
|
} catch {
|
|
7345
7344
|
return true;
|
|
7346
7345
|
}
|
|
@@ -5,12 +5,12 @@ import { writePendingUpdate } from './chunk-2QFRAMJX.js';
|
|
|
5
5
|
import { readHousekeepingRecord, writeHousekeepingRecord } from './chunk-LVZ3UV7T.js';
|
|
6
6
|
import { decideInstalledSwitch } from './chunk-3JVYMD4G.js';
|
|
7
7
|
import { fetchVersionMeta, npmVersion, npmSupportsProvenance, fetchTarballDigest, fetchProvenance, installVersion, auditSignatures } from './chunk-E7R2GIAW.js';
|
|
8
|
-
import { reportFailedStart, fitImageBuildMemory } from './chunk-
|
|
9
|
-
import { renderUpdateSteps } from './chunk-
|
|
8
|
+
import { reportFailedStart, fitImageBuildMemory } from './chunk-7UG2MMFU.js';
|
|
9
|
+
import { renderUpdateSteps } from './chunk-NQPQH6Y5.js';
|
|
10
10
|
import { RUNNER_PROTOCOL } from './chunk-IDYLPN4X.js';
|
|
11
|
-
import { fleetConfigProblem, realBlockedProbes, sliceMemoryOf, checkBlockedWithSlots, largeBuildMemoryBytes, LARGE_BUILD_DISK_BYTES, checkManagedRoom, askFleetMachine } from './chunk-
|
|
11
|
+
import { fleetConfigProblem, realBlockedProbes, sliceMemoryOf, checkBlockedWithSlots, largeBuildMemoryBytes, LARGE_BUILD_DISK_BYTES, checkManagedRoom, askFleetMachine } from './chunk-ICLXEZEB.js';
|
|
12
12
|
import { writeMarker, readMarker, currentVersion, removeMarker, isInLayout, startedThroughCurrent, entryIn, versionDir, switchCurrent, cleanVersions, stagingDir } from './chunk-IJU6DMQA.js';
|
|
13
|
-
import { leaseTimeLeftMs, createContainerRuntime, withTunnelLog, releaseLease, LEASE_SECONDS, itemTag, isUnfinished, prepareResume, restoreSessionIntoMicroVm, restoreSessionIntoContainer, itemScope, attemptNote, fetchManagedClaudeKey, holdManagedClaudeKey, fetchManagedBuildSettings, holdManagedBuildSettings, setStage, jobEnv, runHook, describeHookEnd, needsBuildSkill, provisionContainer, leaseExpiresAtMs, deliverContainerHooks, provisionMicroVm, deliverCommitHooks, provisionEnvironment, readProvisionOut, resolveHostBuild, workdirProblem, listenOnBroker, hostEnvironment, deliverExecMaven, runWithSpawn, hostCommandEnvironment, lifecycleSteps, execArgv, lifecycleFailureReason, decideHostBuildSkill, prepareBranch, currentSkillCommand, formerSkillProblem, MICROVM_COMMAND_DIR, commandLogOffset, startMicroVmCommand, microVmCommandLine, runCommand, containerCommandExec, execCommandLine, startSender, startHostServices, finishJob, sampleGuest, foldSample, isContainerTracked, isMicroVmTracked, probeMicroVmCommand, probeCommand, appendCommandLog, judgeProbe, EXIT_CODE_FILE, isTracked, isGroupAlive, outcomeFromExitCode, isTimedOut, readCpuUsec, isIdle, HELPER_ENV, setUpRunnerCgroup, stopOrphanedMicroVms, unfinishedJobs, sweepImageBuilders, listUnreadableJobs, listAdoptableJobs, retryFailedReleases, recoverLostJobs, GUEST_USAGE_INTERVAL_MS, usableCpus, hookLimitsFor, AttemptLogBook, microVmOomKills, needsRenew, renewLease, RENEW_INTERVAL_SECONDS, stoppedHelperReason, measureDisk, listTrackedJobs, parseCpuList, ensureTunnel, keepGhConfigCurrent, filesAreCopied, restartSender, createHousekeepingDocker, housekeepingDockerIfReachable, runHousekeeping, freeItemDisksUntil, savedStatesDir, readRecords, removeOldestUntil, ensureNetworkReady, managedBuildSettingsFor, ADOPTED_FETCH_RETRY_WINDOW_MS, gitRemoteFor, startServicesFor, createLeaseChannel, serveLease, vmAlive, writeGuestGhConfig, shellQuote, deliverJobFiles, inTeardown } from './chunk-
|
|
13
|
+
import { leaseTimeLeftMs, createContainerRuntime, withTunnelLog, releaseLease, LEASE_SECONDS, itemTag, isUnfinished, prepareResume, restoreSessionIntoMicroVm, restoreSessionIntoContainer, itemScope, attemptNote, fetchManagedClaudeKey, holdManagedClaudeKey, fetchManagedBuildSettings, holdManagedBuildSettings, setStage, jobEnv, runHook, describeHookEnd, needsBuildSkill, provisionContainer, leaseExpiresAtMs, deliverContainerHooks, provisionMicroVm, deliverCommitHooks, provisionEnvironment, readProvisionOut, resolveHostBuild, workdirProblem, listenOnBroker, hostEnvironment, deliverExecMaven, runWithSpawn, hostCommandEnvironment, lifecycleSteps, execArgv, lifecycleFailureReason, decideHostBuildSkill, prepareBranch, currentSkillCommand, formerSkillProblem, MICROVM_COMMAND_DIR, commandLogOffset, startMicroVmCommand, microVmCommandLine, runCommand, containerCommandExec, execCommandLine, startSender, startHostServices, finishJob, sampleGuest, foldSample, isContainerTracked, isMicroVmTracked, probeMicroVmCommand, probeCommand, appendCommandLog, judgeProbe, EXIT_CODE_FILE, isTracked, isGroupAlive, outcomeFromExitCode, isTimedOut, readCpuUsec, isIdle, HELPER_ENV, setUpRunnerCgroup, stopOrphanedMicroVms, unfinishedJobs, sweepImageBuilders, listUnreadableJobs, listAdoptableJobs, retryFailedReleases, recoverLostJobs, GUEST_USAGE_INTERVAL_MS, usableCpus, hookLimitsFor, AttemptLogBook, microVmOomKills, needsRenew, renewLease, RENEW_INTERVAL_SECONDS, stoppedHelperReason, measureDisk, listTrackedJobs, parseCpuList, ensureTunnel, keepGhConfigCurrent, filesAreCopied, restartSender, createHousekeepingDocker, housekeepingDockerIfReachable, runHousekeeping, freeItemDisksUntil, savedStatesDir, readRecords, removeOldestUntil, ensureNetworkReady, managedBuildSettingsFor, ADOPTED_FETCH_RETRY_WINDOW_MS, gitRemoteFor, startServicesFor, createLeaseChannel, serveLease, vmAlive, writeGuestGhConfig, shellQuote, deliverJobFiles, inTeardown } from './chunk-RTNUZPAC.js';
|
|
14
14
|
import { RUNNER_RESERVE_BYTES } from './chunk-VTJ5MGGC.js';
|
|
15
15
|
import { RepoFilter } from './chunk-KCNL7KX2.js';
|
|
16
16
|
import { JOB_STATE_FORMAT, readsJobState, jobStateFormatOf } from './chunk-ZVB57WI6.js';
|
|
@@ -3559,7 +3559,7 @@ async function startRunner(configPath, deps, startup) {
|
|
|
3559
3559
|
check: update.check ? () => update.check(configPath) : async () => {
|
|
3560
3560
|
const held = runnerAgents(deps.agents).flatMap((agent) => heldAgentCredential(agent.descriptor.id) ?? []);
|
|
3561
3561
|
const env = { ...process.env, ...Object.fromEntries(held.map((credential) => [credential.variable, credential.value])) };
|
|
3562
|
-
return (await import('./check-
|
|
3562
|
+
return (await import('./check-WG7ONVYM.js')).runRunnerCheck(configPath, { fetchImpl: deps.fetchImpl, env });
|
|
3563
3563
|
},
|
|
3564
3564
|
now: () => (deps.now ?? (() => /* @__PURE__ */ new Date()))().getTime(),
|
|
3565
3565
|
log
|
|
@@ -1079,7 +1079,7 @@ async function gatherDoctorChecks() {
|
|
|
1079
1079
|
const { runnerVmCheck } = await import('./doctor-53F2PYY7.js');
|
|
1080
1080
|
checks.push(runnerVmCheck(configPath, { lima: realLima(), home: homeFromEnv(), instance: runnerVm.instance }));
|
|
1081
1081
|
} else if (hasRunnerBlock(configPath)) {
|
|
1082
|
-
const { runnerHostChecks } = await import('./doctor-
|
|
1082
|
+
const { runnerHostChecks } = await import('./doctor-GFROWFS3.js');
|
|
1083
1083
|
const gateway = (() => {
|
|
1084
1084
|
try {
|
|
1085
1085
|
const loaded = loadRunnerConfig(configPath);
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
|
-
import { gatherDoctorChecks, doctorExitCode, summarizeChecks, renderDoctorText, recordWrapped, recordUnwrapped, recordRemoval, readManifest, recordInstall, recordStatusline } from './chunk-
|
|
3
|
+
import { gatherDoctorChecks, doctorExitCode, summarizeChecks, renderDoctorText, recordWrapped, recordUnwrapped, recordRemoval, readManifest, recordInstall, recordStatusline } from './chunk-WRFUGRUX.js';
|
|
4
4
|
import './chunk-A75ZPAOP.js';
|
|
5
5
|
import { verifiedTrackerNames, TRACKERS } from './chunk-6BS4DDCY.js';
|
|
6
6
|
import './chunk-6MWBZHBW.js';
|
|
@@ -3944,13 +3944,13 @@ what CLIs older than ${FIRST_VERSION_READING_AGENTS_SKILLS} do. \`` + cliInvocat
|
|
|
3944
3944
|
if (changed.length > 0 && !opts.json) process.stdout.write(`Removed the claude function from ${changed.join(", ")}.
|
|
3945
3945
|
`);
|
|
3946
3946
|
}
|
|
3947
|
-
const shell = !opts.remove && opts.shellFunction !== void 0 ? (await import('./init-cmd-
|
|
3947
|
+
const shell = !opts.remove && opts.shellFunction !== void 0 ? (await import('./init-cmd-JY2UXAYR.js')).applyShellFunctionFlag(opts.shellFunction, { home: homeFromEnv(), shellPath: process.env.SHELL }) : void 0;
|
|
3948
3948
|
if (opts.json) writeJson(shell === void 0 ? outcome.result : { ...outcome.result, shellFunction: { outcome: shell.outcome, reason: shell.reason } });
|
|
3949
3949
|
else process.stdout.write(outcome.text + skillsLine + (shell?.text ?? ""));
|
|
3950
3950
|
return;
|
|
3951
3951
|
}
|
|
3952
3952
|
await installMachineSkillsForSetup();
|
|
3953
|
-
const { runInitCommand } = await import('./init-cmd-
|
|
3953
|
+
const { runInitCommand } = await import('./init-cmd-JY2UXAYR.js');
|
|
3954
3954
|
const code = await runInitCommand(
|
|
3955
3955
|
{ json: opts.json, factory: opts.factory, shellFunction: opts.shellFunction },
|
|
3956
3956
|
{
|
|
@@ -5018,7 +5018,9 @@ live addition remains on it.
|
|
|
5018
5018
|
|
|
5019
5019
|
A proof is current when it was recorded at this checkout's HEAD, or at the head of a
|
|
5020
5020
|
linked pull request that is open or merged. Run \`outerlayer sync\` first, so the
|
|
5021
|
-
gateway has the artifacts you just emitted.
|
|
5021
|
+
gateway has the artifacts you just emitted. A test proof is listed unless the policy file
|
|
5022
|
+
sets criteria.test_proof: ci. It names why the host cannot record a proof again at the final
|
|
5023
|
+
commit, such as an invalid .outerlayer-proofs.yaml.
|
|
5022
5024
|
Exits 0 when every listed proof is current, 1 when any is out of date or missing,
|
|
5023
5025
|
and 2 when it cannot tell. It also lists each criterion the criteria judge failed while no
|
|
5024
5026
|
test file has changed since the commit it judged. In a runner build those rows give exit 1.
|
|
@@ -5026,8 +5028,9 @@ test file has changed since the commit it judged. In a runner build those rows g
|
|
|
5026
5028
|
--record reads .outerlayer-proofs.yaml from the HEAD commit and finds the test files at HEAD
|
|
5027
5029
|
that hold the id of each proof that is not current. It runs setup, then each runner once with
|
|
5028
5030
|
its files, then teardown. A test writes <criterion id>.<ext> under $OUTERLAYER_PROOF_OUT, and
|
|
5029
|
-
--record emits it at HEAD.
|
|
5030
|
-
|
|
5031
|
+
--record emits it at HEAD. For a test proof it runs the test files its newest results named,
|
|
5032
|
+
and emits the JUnit XML the run wrote, bound to the same tests. It lists the proofs last. It
|
|
5033
|
+
stops at once if a tracked file differs from HEAD.
|
|
5031
5034
|
`
|
|
5032
5035
|
).action(async (opts) => {
|
|
5033
5036
|
if (opts.comment && !opts.record) {
|
|
@@ -5043,7 +5046,7 @@ differs from HEAD.
|
|
|
5043
5046
|
fail(trackerNumberError("--pr", opts.pr));
|
|
5044
5047
|
return;
|
|
5045
5048
|
}
|
|
5046
|
-
const { runWorkProofsCommand } = await import('./work-proofs-cmd-
|
|
5049
|
+
const { runWorkProofsCommand } = await import('./work-proofs-cmd-DDVTBWPI.js');
|
|
5047
5050
|
await runWorkProofsCommand({ ...opts, ...pr === void 0 ? {} : { pr } });
|
|
5048
5051
|
});
|
|
5049
5052
|
workCmd.command("list").description("List live work items for this factory").option("--stage <spec|build|review>", "filter by stage").option("--section <attention|waiting|flowing>", "filter by Queue section").option("--repo <owner/name>", "repository (default: the current checkout's remote)").option("--unclaimed", "only items with no live lease").option("--claimed", "only items with a live lease, held by a host or a local session").option("--startable", "only items a host can start: a build request, no open PR, no live lease").option("--needs <amend>", "only items with a thread waiting on an agent").option("--json", "machine-readable JSON output").option("--url <url>", "cloud base URL (or OUTERLAYER_URL / config)").addOption(apiKeyOption()).option("--app-id <id>", "factory id the key is bound to (or OUTERLAYER_APP_ID / config)").action(async (opts) => {
|
|
@@ -5206,7 +5209,7 @@ function registerRunnerCommands(program2) {
|
|
|
5206
5209
|
const configOption = "the cloud config file to run against (default: ~/.outerlayer/config.json)";
|
|
5207
5210
|
runnerCmd.command("start").description("Run the loop: claim work, run it, report, clean up, repeat").option("--config <path>", configOption).action(async (opts) => {
|
|
5208
5211
|
const { defaultRunnerConfigPath, RunnerConfigError } = await import('./config-CZJINZN5.js');
|
|
5209
|
-
const { start, RunnerStartError } = await import('./loop-
|
|
5212
|
+
const { start, RunnerStartError } = await import('./loop-V5ZC753N.js');
|
|
5210
5213
|
const { RunnerAlreadyRunningError } = await import('./pidfile-H2DZIODT.js');
|
|
5211
5214
|
const configPath = opts.config ?? defaultRunnerConfigPath();
|
|
5212
5215
|
try {
|
|
@@ -5230,8 +5233,8 @@ The image sets OUTERLAYER_RUNNER_IMAGE; outside the image, use \`runner start\`.
|
|
|
5230
5233
|
`
|
|
5231
5234
|
).action(async () => {
|
|
5232
5235
|
const { defaultRunnerConfigPath, RunnerConfigError } = await import('./config-CZJINZN5.js');
|
|
5233
|
-
const { containerStart, containerStartExit } = await import('./container-start-
|
|
5234
|
-
const { start, RunnerStartError } = await import('./loop-
|
|
5236
|
+
const { containerStart, containerStartExit } = await import('./container-start-45TQNJQE.js');
|
|
5237
|
+
const { start, RunnerStartError } = await import('./loop-V5ZC753N.js');
|
|
5235
5238
|
const { RunnerAlreadyRunningError } = await import('./pidfile-H2DZIODT.js');
|
|
5236
5239
|
try {
|
|
5237
5240
|
const outcome = containerStartExit(await containerStart({
|
|
@@ -5255,14 +5258,14 @@ The image sets OUTERLAYER_RUNNER_IMAGE; outside the image, use \`runner start\`.
|
|
|
5255
5258
|
).action(async (opts) => {
|
|
5256
5259
|
const { defaultRunnerConfigPath } = await import('./config-CZJINZN5.js');
|
|
5257
5260
|
const { runnerDir } = await import('./paths-AGOA7QX6.js');
|
|
5258
|
-
const { runUpdateSteps } = await import('./update-steps-
|
|
5261
|
+
const { runUpdateSteps } = await import('./update-steps-ZW2EDSYC.js');
|
|
5259
5262
|
const text = await runUpdateSteps({ runnerDirPath: runnerDir(opts.config ?? defaultRunnerConfigPath()) });
|
|
5260
5263
|
process.stdout.write(`${text}
|
|
5261
5264
|
`);
|
|
5262
5265
|
});
|
|
5263
5266
|
runnerCmd.command("check").description("Validate the config, the hooks and the key, and print the effective settings").option("--config <path>", configOption).action(async (opts) => {
|
|
5264
5267
|
const { defaultRunnerConfigPath } = await import('./config-CZJINZN5.js');
|
|
5265
|
-
const { runRunnerCheck } = await import('./check-
|
|
5268
|
+
const { runRunnerCheck } = await import('./check-WG7ONVYM.js');
|
|
5266
5269
|
const configPath = opts.config ?? defaultRunnerConfigPath();
|
|
5267
5270
|
const result = await runRunnerCheck(configPath);
|
|
5268
5271
|
if (!result.ok) {
|
|
@@ -5296,13 +5299,13 @@ The image sets OUTERLAYER_RUNNER_IMAGE; outside the image, use \`runner start\`.
|
|
|
5296
5299
|
}
|
|
5297
5300
|
}
|
|
5298
5301
|
const buildCpusMax = opts.buildCpusMax === void 0 ? void 0 : Number(opts.buildCpusMax);
|
|
5299
|
-
if (buildCpusMax !== void 0 && !(await import('./command-
|
|
5302
|
+
if (buildCpusMax !== void 0 && !(await import('./command-5GGBCD4S.js')).cpusAreValid(buildCpusMax)) {
|
|
5300
5303
|
fail(`--build-cpus-max ${opts.buildCpusMax} is not a number of CPUs from 0.01 to 1024.`);
|
|
5301
5304
|
return;
|
|
5302
5305
|
}
|
|
5303
5306
|
try {
|
|
5304
5307
|
if (opts.service === true) {
|
|
5305
|
-
const { installServiceCommand } = await import('./command-
|
|
5308
|
+
const { installServiceCommand } = await import('./command-5GGBCD4S.js');
|
|
5306
5309
|
const result2 = await installServiceCommand({
|
|
5307
5310
|
configPath,
|
|
5308
5311
|
print: opts.print,
|
|
@@ -5360,7 +5363,7 @@ To keep it running, run ${C.yellow}${cliInvocation()} runner install --service${
|
|
|
5360
5363
|
return;
|
|
5361
5364
|
}
|
|
5362
5365
|
const { defaultRunnerConfigPath } = await import('./config-CZJINZN5.js');
|
|
5363
|
-
const { uninstallServiceCommand } = await import('./command-
|
|
5366
|
+
const { uninstallServiceCommand } = await import('./command-5GGBCD4S.js');
|
|
5364
5367
|
const result = await uninstallServiceCommand({ configPath: opts.config ?? defaultRunnerConfigPath(), unitName: opts.unitName, home: homeFromEnv() });
|
|
5365
5368
|
if (result.ok) for (const line of result.lines) process.stdout.write(`${C.green}\u2713${C.reset} ${line}
|
|
5366
5369
|
`);
|
|
@@ -5391,10 +5394,10 @@ already in ${words().envFile} is used.
|
|
|
5391
5394
|
`
|
|
5392
5395
|
).action(async (opts) => {
|
|
5393
5396
|
const { defaultRunnerConfigPath, RunnerConfigError } = await import('./config-CZJINZN5.js');
|
|
5394
|
-
const { prepareRunnerInit, runRunnerInit, RunnerInitError, writeRunnerInit } = await import('./init-
|
|
5395
|
-
const { obtainRunnerKey, runnerKeyLogin } = await import('./runner-key-
|
|
5396
|
-
const { detectMachine } = await import('./machine-
|
|
5397
|
-
const { chooseVm, runVmInit, VmInitError } = await import('./init-
|
|
5397
|
+
const { prepareRunnerInit, runRunnerInit, RunnerInitError, writeRunnerInit } = await import('./init-V45VLEQO.js');
|
|
5398
|
+
const { obtainRunnerKey, runnerKeyLogin } = await import('./runner-key-OS7EKYZS.js');
|
|
5399
|
+
const { detectMachine } = await import('./machine-4M4RUHG2.js');
|
|
5400
|
+
const { chooseVm, runVmInit, VmInitError } = await import('./init-QBWRPNZP.js');
|
|
5398
5401
|
const { credentialFromStdin, isAgentName, restartForCredential, RunnerEnvError } = await import('./runner-env-YPIZG3VG.js');
|
|
5399
5402
|
const { headlessNames } = await import('./runner-agents-QJCL4MO3.js');
|
|
5400
5403
|
const configPath = opts.config ?? defaultRunnerConfigPath();
|
|
@@ -5408,7 +5411,7 @@ already in ${words().envFile} is used.
|
|
|
5408
5411
|
return;
|
|
5409
5412
|
}
|
|
5410
5413
|
try {
|
|
5411
|
-
const { agentCredentialText, credentialQuestion, initAgent, terminalQuestion } = await import('./init-agent-
|
|
5414
|
+
const { agentCredentialText, credentialQuestion, initAgent, terminalQuestion } = await import('./init-agent-2XMCGKPV.js');
|
|
5412
5415
|
agent = await initAgent({
|
|
5413
5416
|
flag: agent,
|
|
5414
5417
|
handOff: opts.configStdin === true,
|
|
@@ -5547,7 +5550,7 @@ ${C.yellow}The runner will not update itself: ${installErr.message}${C.reset}
|
|
|
5547
5550
|
let serviceUp = false;
|
|
5548
5551
|
let restart;
|
|
5549
5552
|
if (installedLayout) {
|
|
5550
|
-
const { installServiceCommand } = await import('./command-
|
|
5553
|
+
const { installServiceCommand } = await import('./command-5GGBCD4S.js');
|
|
5551
5554
|
const service = await installServiceCommand({
|
|
5552
5555
|
configPath,
|
|
5553
5556
|
entryPath: process.argv[1] ?? "",
|
|
@@ -5685,7 +5688,7 @@ A repository with no devcontainer file builds on the universal image the CLI pin
|
|
|
5685
5688
|
});
|
|
5686
5689
|
runnerCmd.command("stop").description("Take no more work; finish running jobs, then exit").option("--config <path>", "the cloud config file naming the runner to stop").option("--now", "end running jobs immediately, with outcome stopped").action(async (opts) => {
|
|
5687
5690
|
const { defaultRunnerConfigPath } = await import('./config-CZJINZN5.js');
|
|
5688
|
-
const { requestStop } = await import('./loop-
|
|
5691
|
+
const { requestStop } = await import('./loop-V5ZC753N.js');
|
|
5689
5692
|
const configPath = opts.config ?? defaultRunnerConfigPath();
|
|
5690
5693
|
const { runnerImageVersion } = await import('./image-tag-WQB5HVLI.js');
|
|
5691
5694
|
await requestStop(configPath, Boolean(opts.now), void 0, { image: runnerImageVersion() !== void 0 });
|
|
@@ -5693,8 +5696,8 @@ A repository with no devcontainer file builds on the universal image the CLI pin
|
|
|
5693
5696
|
runnerCmd.command("status").description("List running jobs; with --recent, finished ones too").option("--config <path>", "the cloud config file naming the runner to inspect").option("--recent", "also list finished jobs, newest first, capped at 20").option("--json", "machine-readable JSON output").action(async (opts) => {
|
|
5694
5697
|
const { defaultRunnerConfigPath, loadRunnerConfig } = await import('./config-CZJINZN5.js');
|
|
5695
5698
|
const { jobsDir, runnerDir } = await import('./paths-AGOA7QX6.js');
|
|
5696
|
-
const { listJobFiles, runnerProcessState } = await import('./loop-
|
|
5697
|
-
const { renderStatus } = await import('./status-
|
|
5699
|
+
const { listJobFiles, runnerProcessState } = await import('./loop-V5ZC753N.js');
|
|
5700
|
+
const { renderStatus } = await import('./status-ODVVTDA2.js');
|
|
5698
5701
|
const { readHousekeepingRecord } = await import('./record-UHMPQIUU.js');
|
|
5699
5702
|
const path2 = await import('path');
|
|
5700
5703
|
const configPath = opts.config ?? defaultRunnerConfigPath();
|
|
@@ -5760,7 +5763,7 @@ A repository with no devcontainer file builds on the universal image the CLI pin
|
|
|
5760
5763
|
});
|
|
5761
5764
|
runnerCmd.command("logs").argument("<item>", "the work item's number in the factory, or a build's claim id").description("Print the newest attempt's log for one item or claim id").option("--config <path>", "the cloud config file naming the runner to inspect").option("-f, --follow", "keep printing as the log grows").action(async (itemArg, opts) => {
|
|
5762
5765
|
const { defaultRunnerConfigPath } = await import('./config-CZJINZN5.js');
|
|
5763
|
-
const { listJobFiles } = await import('./loop-
|
|
5766
|
+
const { listJobFiles } = await import('./loop-V5ZC753N.js');
|
|
5764
5767
|
const { describeAmbiguous, logPathFor, selectAttempt, tail, RunnerLogsError } = await import('./logs-HIXNEXBT.js');
|
|
5765
5768
|
const configPath = opts.config ?? defaultRunnerConfigPath();
|
|
5766
5769
|
const jobs = listJobFiles(configPath);
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
3
|
import { realOwnership, accountNamed, handOver, runRunnerInstall, launcherSummary, restartNote, accountIdentity } from './chunk-62RPMJXQ.js';
|
|
4
|
-
import { installHelper, helperUnitFor, helperSocketFor, uninstallHelper } from './chunk-
|
|
4
|
+
import { installHelper, helperUnitFor, helperSocketFor, uninstallHelper } from './chunk-MIJGB43I.js';
|
|
5
5
|
import './chunk-YLJXRXPX.js';
|
|
6
6
|
import { currentLink, execStartCommand } from './chunk-IJU6DMQA.js';
|
|
7
|
-
import { detectMachine, ensureFirecrackerAndJailer } from './chunk-
|
|
8
|
-
import './chunk-
|
|
7
|
+
import { detectMachine, ensureFirecrackerAndJailer } from './chunk-RTNUZPAC.js';
|
|
8
|
+
import './chunk-BNYBHWYH.js';
|
|
9
9
|
import './chunk-2PGI6RDE.js';
|
|
10
10
|
import './chunk-I3LTIAOR.js';
|
|
11
11
|
import './chunk-ZHOPDD7U.js';
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
|
-
import { reportFailedStart, BUILD_MEMORY_VARIABLE } from './chunk-
|
|
4
|
-
import { readOwnContainer } from './chunk-
|
|
5
|
-
import { detectMachine, supportsContainerBuilds, MIN_ENGINE_MAJOR, describeMachineDocker, RunnerInitError, prepareRunnerInit, writeRunnerInit } from './chunk-
|
|
6
|
-
import './chunk-
|
|
3
|
+
import { reportFailedStart, BUILD_MEMORY_VARIABLE } from './chunk-7UG2MMFU.js';
|
|
4
|
+
import { readOwnContainer } from './chunk-NQPQH6Y5.js';
|
|
5
|
+
import { detectMachine, supportsContainerBuilds, MIN_ENGINE_MAJOR, describeMachineDocker, RunnerInitError, prepareRunnerInit, writeRunnerInit } from './chunk-RTNUZPAC.js';
|
|
6
|
+
import './chunk-BNYBHWYH.js';
|
|
7
7
|
import './chunk-2PGI6RDE.js';
|
|
8
8
|
import './chunk-I3LTIAOR.js';
|
|
9
9
|
import './chunk-ZHOPDD7U.js';
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
|
-
import { helperBinaryFor } from './chunk-
|
|
3
|
+
import { helperBinaryFor } from './chunk-MIJGB43I.js';
|
|
4
4
|
import { launcherCheck } from './chunk-YLJXRXPX.js';
|
|
5
|
-
import { managedProblems, fleetConfigProblem, askFleetMachine } from './chunk-
|
|
5
|
+
import { managedProblems, fleetConfigProblem, askFleetMachine } from './chunk-ICLXEZEB.js';
|
|
6
6
|
import './chunk-IJU6DMQA.js';
|
|
7
|
-
import { needsAgentCredential, agentCredentialCheck, detectMachine, supportsContainerBuilds, describeMachineDocker, MIN_ENGINE_MAJOR, reachDockerStep, supportsMicroVmBuilds, microVmArchSupported, microVmAssetsPinned, helperFirecrackerNote, probeHelper, helperSocketPath, KIND_LABEL, missingPermissionOf, missingPermissionFix } from './chunk-
|
|
8
|
-
import './chunk-
|
|
7
|
+
import { needsAgentCredential, agentCredentialCheck, detectMachine, supportsContainerBuilds, describeMachineDocker, MIN_ENGINE_MAJOR, reachDockerStep, supportsMicroVmBuilds, microVmArchSupported, microVmAssetsPinned, helperFirecrackerNote, probeHelper, helperSocketPath, KIND_LABEL, missingPermissionOf, missingPermissionFix } from './chunk-RTNUZPAC.js';
|
|
8
|
+
import './chunk-BNYBHWYH.js';
|
|
9
9
|
import './chunk-2PGI6RDE.js';
|
|
10
10
|
import './chunk-I3LTIAOR.js';
|
|
11
11
|
import './chunk-ZHOPDD7U.js';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
|
-
export { MAX_CHECK_ITEMS_BYTES, checksIn, commandItems, isJudgeCheck, makeRecorder, readDefinitions, runHostChecks, testProofIn, timeoutAfter } from './chunk-
|
|
4
|
-
import './chunk-
|
|
3
|
+
export { MAX_CHECK_ITEMS_BYTES, checksIn, commandItems, isJudgeCheck, makeRecorder, readDefinitions, runHostChecks, testProofIn, timeoutAfter } from './chunk-RTNUZPAC.js';
|
|
4
|
+
import './chunk-BNYBHWYH.js';
|
|
5
5
|
import './chunk-2PGI6RDE.js';
|
|
6
6
|
import './chunk-I3LTIAOR.js';
|
|
7
7
|
import './chunk-ZHOPDD7U.js';
|
package/dist/index.js
CHANGED
|
@@ -25,5 +25,5 @@ var { runSubcommand } = await import('./agent-subcommand-C625JDSN.js');
|
|
|
25
25
|
var launcherCode = await runSubcommand(argv);
|
|
26
26
|
if (launcherCode !== void 0) process.exit(launcherCode);
|
|
27
27
|
(await import('./hook-fast-27GO6BM2.js')).recordLinkExitFailure(argv);
|
|
28
|
-
var { runCli } = await import('./cli-
|
|
28
|
+
var { runCli } = await import('./cli-42G6B7EO.js');
|
|
29
29
|
await runCli(process.argv);
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
3
|
import { npmSupportsProvenance } from './chunk-E7R2GIAW.js';
|
|
4
|
-
import { RunnerInitError, readConfigObject } from './chunk-
|
|
5
|
-
import './chunk-
|
|
4
|
+
import { RunnerInitError, readConfigObject } from './chunk-RTNUZPAC.js';
|
|
5
|
+
import './chunk-BNYBHWYH.js';
|
|
6
6
|
import './chunk-2PGI6RDE.js';
|
|
7
7
|
import './chunk-I3LTIAOR.js';
|
|
8
8
|
import './chunk-ZHOPDD7U.js';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
|
-
export { PLACEHOLDER_MARKER, RunnerInitError, isPlaceholderCommand, prepareRunnerInit, readConfigObject, runRunnerInit, writeRunnerInit } from './chunk-
|
|
4
|
-
import './chunk-
|
|
3
|
+
export { PLACEHOLDER_MARKER, RunnerInitError, isPlaceholderCommand, prepareRunnerInit, readConfigObject, runRunnerInit, writeRunnerInit } from './chunk-RTNUZPAC.js';
|
|
4
|
+
import './chunk-BNYBHWYH.js';
|
|
5
5
|
import './chunk-2PGI6RDE.js';
|
|
6
6
|
import './chunk-I3LTIAOR.js';
|
|
7
7
|
import './chunk-ZHOPDD7U.js';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
|
-
import { RunnerInitError } from './chunk-
|
|
4
|
-
import './chunk-
|
|
3
|
+
import { RunnerInitError } from './chunk-RTNUZPAC.js';
|
|
4
|
+
import './chunk-BNYBHWYH.js';
|
|
5
5
|
import './chunk-2PGI6RDE.js';
|
|
6
6
|
import './chunk-I3LTIAOR.js';
|
|
7
7
|
import './chunk-ZHOPDD7U.js';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
|
-
import { summarizeChecks, summaryText, renderDoctorText } from './chunk-
|
|
3
|
+
import { summarizeChecks, summaryText, renderDoctorText } from './chunk-WRFUGRUX.js';
|
|
4
4
|
import { shellFunctionInstalled, removeShellFunction, installShellFunction, SHELL_FUNCTION_LINE } from './chunk-2QIK3JRV.js';
|
|
5
5
|
import './chunk-A75ZPAOP.js';
|
|
6
6
|
import './chunk-6BS4DDCY.js';
|