@outerlayer/cli 0.40.0-next.20261116174349 → 0.40.0-next.20261116200629
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/{caller-BYIS3VLG.js → caller-YLCG35RW.js} +2 -2
- package/dist/{check-YD3ILIWA.js → check-XF4J5PFS.js} +13 -13
- package/dist/{chunk-FNPCVOB5.js → chunk-2EDRIMMQ.js} +5 -18
- package/dist/{chunk-OWIG6HOF.js → chunk-2VYD47YW.js} +1 -1
- package/dist/{chunk-5MSUF63A.js → chunk-3DKYI6V7.js} +1 -1
- package/dist/{chunk-65IH42O5.js → chunk-5EHW7SBY.js} +4 -4
- package/dist/{chunk-KXFHHQ2L.js → chunk-77FYM6CF.js} +1 -1
- package/dist/{chunk-IW4J7WUW.js → chunk-CYUAZGM5.js} +1 -1
- package/dist/{chunk-3VORJPTM.js → chunk-D5RXED56.js} +1 -1
- package/dist/{chunk-UAFFHGF7.js → chunk-EEPR5MSY.js} +12 -12
- package/dist/{chunk-TQN2NY2A.js → chunk-GH7RYZTX.js} +1 -1
- package/dist/{chunk-QMQH5MAW.js → chunk-IVRP4E3F.js} +1 -1
- package/dist/{chunk-LYDFDNJH.js → chunk-JKOSEEDV.js} +4 -4
- package/dist/{chunk-W3GCD7EY.js → chunk-K4AQVH47.js} +2 -2
- package/dist/{chunk-OW6YWM4F.js → chunk-KDLZOXBP.js} +1 -1
- package/dist/{chunk-2NMP6JTW.js → chunk-MEB2YICZ.js} +1 -1
- package/dist/{chunk-J6HSOUU6.js → chunk-MTZ43GKQ.js} +4 -4
- package/dist/{chunk-5BNP3YPA.js → chunk-O7QTZ6FY.js} +1 -1
- package/dist/{chunk-LFGVSVZD.js → chunk-OFEHPNPJ.js} +1 -1
- package/dist/{chunk-SR5UDIQO.js → chunk-PM3PXJGE.js} +1 -1
- package/dist/{chunk-RZ3SBLIQ.js → chunk-Y25XOGFX.js} +10 -8
- package/dist/{chunk-CSSBYLSW.js → chunk-YB7QOJJ6.js} +4 -4
- package/dist/{cli-VDQALG6T.js → cli-E4FIPVXA.js} +85 -86
- package/dist/{command-2DK6WUWO.js → command-JOFIZTRB.js} +11 -11
- package/dist/{config-OKFK2D2R.js → config-2FFE76CU.js} +1 -1
- package/dist/{container-start-AIOV74N2.js → container-start-PEWYWFZJ.js} +10 -10
- package/dist/{doctor-VUK7NCG5.js → doctor-IJUVLEOA.js} +10 -10
- package/dist/{find-unit-6FDRYJ4Q.js → find-unit-HCJCNGAO.js} +3 -3
- package/dist/{governing-source-GQ3CVSHE.js → governing-source-HD6Z5APA.js} +2 -2
- package/dist/{host-checks-TOXPLGQR.js → host-checks-IHDOXH4L.js} +8 -8
- package/dist/index.js +1 -1
- package/dist/{init-ZJOC4YOQ.js → init-IPCLZQTH.js} +8 -8
- package/dist/{init-BCZJQYL7.js → init-NMALA2L3.js} +8 -8
- package/dist/{init-agent-KPONR3NZ.js → init-agent-O2INKCJ2.js} +8 -8
- package/dist/{init-cmd-CFWVSHRX.js → init-cmd-EAIFTS3D.js} +3 -3
- package/dist/{install-cmd-BMRV5AGB.js → install-cmd-IGD4QKRJ.js} +2 -2
- package/dist/{launch-agent-7PKKCS3Y.js → launch-agent-MAOBOT2E.js} +3 -3
- package/dist/{loop-UDAOJKOM.js → loop-W3SG6T77.js} +12 -12
- package/dist/{machine-2H7GRC7U.js → machine-2JEIPALV.js} +8 -8
- package/dist/{run-cmd-NY7CLM47.js → run-cmd-DSAEOZLM.js} +1 -1
- package/dist/{runner-env-J4VFHBTX.js → runner-env-RFL275DT.js} +3 -3
- package/dist/{runner-key-JVYVQFK7.js → runner-key-QXMG627U.js} +8 -8
- package/dist/{setup-wiring-6VJJUERY.js → setup-wiring-C7C2RHME.js} +10 -10
- package/dist/{spec-cmd-ZMB3QZOY.js → spec-cmd-J4RE3CFL.js} +1 -1
- package/dist/{status-NHDZIWBE.js → status-AECB2USQ.js} +8 -8
- package/dist/{update-steps-RBOIFI7J.js → update-steps-TLG25JY2.js} +9 -9
- package/dist/{work-claim-cmd-6VC43BOW.js → work-claim-cmd-BXJ5RNWG.js} +4 -4
- package/dist/{work-cmd-IYLWLPZJ.js → work-cmd-3VJ5KDBD.js} +1 -1
- package/dist/{work-comment-cmd-H5RZ4KDR.js → work-comment-cmd-QY5D67HL.js} +2 -2
- package/dist/{work-demo-cmd-JFHZVTFE.js → work-demo-cmd-W6W72AJX.js} +1 -1
- package/dist/{work-logs-cmd-EEQKE7ES.js → work-logs-cmd-RFF4ML42.js} +1 -1
- package/dist/{work-mock-cmd-B6XM6Z4K.js → work-mock-cmd-W63YXVNS.js} +1 -1
- package/dist/{work-needs-attention-cmd-NE57YDJ3.js → work-needs-attention-cmd-74OQFI7Y.js} +1 -1
- package/dist/{work-no-change-cmd-S5OLIU64.js → work-no-change-cmd-ORWRB5A3.js} +1 -1
- package/dist/{work-open-pr-cmd-FXWO45AI.js → work-open-pr-cmd-5ZDGLQWY.js} +1 -1
- package/dist/{work-proofs-cmd-2G2WR7HO.js → work-proofs-cmd-VZM2CUGY.js} +2 -2
- package/dist/{work-proofs-record-PT7HXMGR.js → work-proofs-record-LN42LPZM.js} +3 -3
- package/dist/{work-stop-cmd-NMECBYHT.js → work-stop-cmd-QEQU2RWH.js} +1 -1
- package/package.json +1 -1
package/dist/build-info.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"id":"2026-11-
|
|
1
|
+
{"id":"2026-11-16T20:20:52.037Z","root":"/home/runner/work/outerlayer/outerlayer","pkg":"outerlayer"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
|
-
export { claimCalls, claimItem, configForJob, itemCalls, leftByRunnerKey, runnerCalls, spoolHomeFor } from './chunk-
|
|
4
|
-
import './chunk-
|
|
3
|
+
export { claimCalls, claimItem, configForJob, itemCalls, leftByRunnerKey, runnerCalls, spoolHomeFor } from './chunk-2VYD47YW.js';
|
|
4
|
+
import './chunk-3DKYI6V7.js';
|
|
5
5
|
import './chunk-WTX57JCA.js';
|
|
6
6
|
import './chunk-BKN5HQCX.js';
|
|
7
7
|
import './chunk-47NQTKLX.js';
|
|
@@ -1,23 +1,23 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
|
-
import { probeCredentials } from './chunk-
|
|
3
|
+
import { probeCredentials } from './chunk-EEPR5MSY.js';
|
|
4
4
|
import './chunk-7VW73CPS.js';
|
|
5
5
|
import './chunk-E7R2GIAW.js';
|
|
6
|
-
import './chunk-
|
|
7
|
-
import './chunk-
|
|
6
|
+
import './chunk-YB7QOJJ6.js';
|
|
7
|
+
import './chunk-KDLZOXBP.js';
|
|
8
8
|
import './chunk-TXKHD4Q6.js';
|
|
9
9
|
import './chunk-ALJMNIHW.js';
|
|
10
10
|
import './chunk-XYJHIH4N.js';
|
|
11
|
-
import { fleetConfigProblem, managedProblems, managedFactsOf, askFleetMachine } from './chunk-
|
|
11
|
+
import { fleetConfigProblem, managedProblems, managedFactsOf, askFleetMachine } from './chunk-MTZ43GKQ.js';
|
|
12
12
|
import './chunk-F5DIRRMG.js';
|
|
13
|
-
import { findServiceUnit } from './chunk-
|
|
14
|
-
import { createGatewaySandboxClient, gatewayRefusalReason, placeholderQueues, placeholderProblem, permissionModeProblems, permissionModeProblem, HELPER_ENV, helperSocketPath, probeHelper, needsAgentCredential, agentCredentialCheck, claimPermissionProblem, formerSkillQueues, modellessQueues, formerSkillProblem, modellessProblem } from './chunk-
|
|
15
|
-
import './chunk-
|
|
13
|
+
import { findServiceUnit } from './chunk-GH7RYZTX.js';
|
|
14
|
+
import { createGatewaySandboxClient, gatewayRefusalReason, placeholderQueues, placeholderProblem, permissionModeProblems, permissionModeProblem, HELPER_ENV, helperSocketPath, probeHelper, needsAgentCredential, agentCredentialCheck, claimPermissionProblem, formerSkillQueues, modellessQueues, formerSkillProblem, modellessProblem } from './chunk-Y25XOGFX.js';
|
|
15
|
+
import './chunk-PM3PXJGE.js';
|
|
16
16
|
import './chunk-46D7LPS3.js';
|
|
17
17
|
import './chunk-I3LTIAOR.js';
|
|
18
18
|
import './chunk-2PGI6RDE.js';
|
|
19
|
-
import './chunk-
|
|
20
|
-
import './chunk-
|
|
19
|
+
import './chunk-O7QTZ6FY.js';
|
|
20
|
+
import './chunk-OFEHPNPJ.js';
|
|
21
21
|
import './chunk-UU3A53VB.js';
|
|
22
22
|
import './chunk-FVTNWJPF.js';
|
|
23
23
|
import './chunk-MDWAL6FD.js';
|
|
@@ -28,7 +28,7 @@ import './chunk-C2PZOLN7.js';
|
|
|
28
28
|
import './chunk-B4XB5QFD.js';
|
|
29
29
|
import './chunk-DIF5NMRF.js';
|
|
30
30
|
import './chunk-TQMI335S.js';
|
|
31
|
-
import './chunk-
|
|
31
|
+
import './chunk-2VYD47YW.js';
|
|
32
32
|
import './chunk-NN33FYXG.js';
|
|
33
33
|
import './chunk-BQUUKECC.js';
|
|
34
34
|
import './chunk-5IDATPRL.js';
|
|
@@ -37,12 +37,12 @@ import './chunk-JBJTC3UU.js';
|
|
|
37
37
|
import './chunk-OGFGZQA3.js';
|
|
38
38
|
import './chunk-EHF2UWZC.js';
|
|
39
39
|
import './chunk-2TOYDBQE.js';
|
|
40
|
-
import { describeCallFailure } from './chunk-
|
|
40
|
+
import { describeCallFailure } from './chunk-D5RXED56.js';
|
|
41
41
|
import './chunk-FJGYU2EK.js';
|
|
42
|
-
import './chunk-
|
|
42
|
+
import './chunk-2EDRIMMQ.js';
|
|
43
43
|
import './chunk-A7M4QXVX.js';
|
|
44
44
|
import './chunk-4OLHKE6K.js';
|
|
45
|
-
import { keyRunnerFactory, loadRunnerConfig, RunnerConfigError, checkHooks } from './chunk-
|
|
45
|
+
import { keyRunnerFactory, loadRunnerConfig, RunnerConfigError, checkHooks } from './chunk-3DKYI6V7.js';
|
|
46
46
|
import './chunk-WTX57JCA.js';
|
|
47
47
|
import './chunk-BKN5HQCX.js';
|
|
48
48
|
import './chunk-47NQTKLX.js';
|
|
@@ -458,20 +458,12 @@ function tokenWarning(data) {
|
|
|
458
458
|
return `
|
|
459
459
|
${C.yellow}!${C.reset} a container host will fail this build: ${why}`;
|
|
460
460
|
}
|
|
461
|
-
var RUNNER_KINDS = ["managed", "self-hosted"];
|
|
462
461
|
function isManagedRefusal(code) {
|
|
463
462
|
return code === "managed_builds_off" || code === "managed_credential_missing";
|
|
464
463
|
}
|
|
465
|
-
function
|
|
466
|
-
if (
|
|
467
|
-
|
|
468
|
-
if (kind === void 0) throw new WorkCommandError(`--runner takes ${RUNNER_KINDS.join(" or ")}, not "${sanitizeTerminal(raw)}"`);
|
|
469
|
-
return kind;
|
|
470
|
-
}
|
|
471
|
-
function runnerLabel(data, named) {
|
|
472
|
-
const kind = data.runner === "managed" || data.runner === "self-hosted" ? data.runner : named;
|
|
473
|
-
if (kind !== "managed" && named === void 0) return "";
|
|
474
|
-
return ` ${C.dim}\xB7${C.reset} on a ${kind} runner`;
|
|
464
|
+
function runnerLabel(data) {
|
|
465
|
+
if (data.runner !== "managed" && data.runner !== "self-hosted") return "";
|
|
466
|
+
return ` ${C.dim}\xB7${C.reset} on a ${data.runner} runner`;
|
|
475
467
|
}
|
|
476
468
|
function itemLabel(data) {
|
|
477
469
|
return data.number != null ? `item #${data.number}` : `item ${sanitizeTerminal(String(data.workItemId))}`;
|
|
@@ -504,10 +496,6 @@ async function runWorkBuild(opts) {
|
|
|
504
496
|
if (opts.continue === true && opts.fresh === true) {
|
|
505
497
|
throw new WorkCommandError("--continue and --fresh cannot both be given: a continued session needs the disk it worked on");
|
|
506
498
|
}
|
|
507
|
-
const runner = parseRunnerKind(opts.runner);
|
|
508
|
-
if (opts.local && runner !== void 0) {
|
|
509
|
-
throw new WorkCommandError("--runner applies to host builds: with --local you build the item yourself, so no runner takes it");
|
|
510
|
-
}
|
|
511
499
|
await connectIfOneFits(opts);
|
|
512
500
|
const { url, apiKey, appId } = resolveCredentials(opts);
|
|
513
501
|
const fetchImpl = opts.fetchImpl ?? defaultFetch;
|
|
@@ -537,13 +525,12 @@ async function runWorkBuild(opts) {
|
|
|
537
525
|
const instructions = opts.instructions !== void 0 ? { instructions: opts.instructions } : {};
|
|
538
526
|
const fresh = opts.fresh === true ? { fresh: true } : {};
|
|
539
527
|
const continued = opts.continue === true ? { continueSession: true } : {};
|
|
540
|
-
const body = itemNumber !== void 0 ? { workItemId: String(itemNumber), note: opts.note, ...instructions, ...fresh, ...continued,
|
|
528
|
+
const body = itemNumber !== void 0 ? { workItemId: String(itemNumber), note: opts.note, ...instructions, ...fresh, ...continued, ...facts } : {
|
|
541
529
|
subject: resolveWorkSubject({ issue: opts.issue, tracker: opts.tracker, repo: opts.repo, cwd }),
|
|
542
530
|
note: opts.note,
|
|
543
531
|
...instructions,
|
|
544
532
|
...fresh,
|
|
545
533
|
...continued,
|
|
546
|
-
runner,
|
|
547
534
|
...facts
|
|
548
535
|
};
|
|
549
536
|
const { data } = await postJsonWithRetry(url, "/v1/work-items/build", apiKey, appId, body, fetchImpl, retries, sleep).catch((err) => {
|
|
@@ -553,7 +540,7 @@ async function runWorkBuild(opts) {
|
|
|
553
540
|
throw err;
|
|
554
541
|
});
|
|
555
542
|
const page = itemPageUrl(home, cwd, appId, data.workItemId, data.number);
|
|
556
|
-
const output = opts.json ? JSON.stringify(data) : `${C.green}\u2713${C.reset} build requested ${C.dim}\xB7${C.reset} ${itemLabel(data)}${"subject" in body ? ` (${issueLabel(body.subject)})` : ""}${runnerLabel(data
|
|
543
|
+
const output = opts.json ? JSON.stringify(data) : `${C.green}\u2713${C.reset} build requested ${C.dim}\xB7${C.reset} ${itemLabel(data)}${"subject" in body ? ` (${issueLabel(body.subject)})` : ""}${runnerLabel(data)} ${C.dim}\xB7${C.reset} by ${data.attestor}` + (page !== void 0 ? `
|
|
557
544
|
${page}` : "") + freshDiskLine(opts.fresh === true, data) + continueLine(opts.continue === true, data) + tokenWarning(data);
|
|
558
545
|
if (!opts.quiet) process.stdout.write(output + "\n");
|
|
559
546
|
return { data, output };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
|
-
import { keyRunnerFactory, RunnerConfigError } from './chunk-
|
|
3
|
+
import { keyRunnerFactory, RunnerConfigError } from './chunk-3DKYI6V7.js';
|
|
4
4
|
import { orgHomeDir } from './chunk-AEGLAS4Y.js';
|
|
5
5
|
|
|
6
6
|
createRequire(import.meta.url);
|
|
@@ -134,7 +134,7 @@ function resolveSandbox(block, build, report) {
|
|
|
134
134
|
if (!KEYS.includes(key)) return report(`runner.sandbox.${key}`, `is not a setting; the ones that exist are ${KEYS.join(", ")}`);
|
|
135
135
|
}
|
|
136
136
|
const provider = given["provider"];
|
|
137
|
-
if (provider !== void 0 && provider !== "outerlayer") return report("runner.sandbox.provider",
|
|
137
|
+
if (provider !== void 0 && provider !== "outerlayer") return report("runner.sandbox.provider", 'must be "outerlayer"');
|
|
138
138
|
const managed = provider === "outerlayer";
|
|
139
139
|
if (managed) {
|
|
140
140
|
if (given["snapshot"] !== void 0) return report("runner.sandbox.snapshot", "is not set with runner.sandbox.provider: OuterLayer chooses the snapshot");
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
3
|
import { criteriaOf, loadCitationFinder, testFileMatcher, hostItemsOf, runnerMatcher, NO_VERDICT_REASON } from './chunk-46D7LPS3.js';
|
|
4
|
-
import { WorkCommandError, resolveCredentials, getJson } from './chunk-
|
|
4
|
+
import { WorkCommandError, resolveCredentials, getJson } from './chunk-2EDRIMMQ.js';
|
|
5
5
|
import { sanitizeTerminal } from './chunk-DV44KCM6.js';
|
|
6
6
|
import { C } from './chunk-2AM6Z5BP.js';
|
|
7
7
|
import { defaultFetch } from './chunk-NIHE7WJ6.js';
|
|
@@ -129,14 +129,14 @@ function governingDir(cwd) {
|
|
|
129
129
|
async function testProofMode(cwd) {
|
|
130
130
|
const dir = governingDir(cwd);
|
|
131
131
|
if (dir === void 0) return "any";
|
|
132
|
-
const { testProofIn } = await import('./host-checks-
|
|
132
|
+
const { testProofIn } = await import('./host-checks-IHDOXH4L.js');
|
|
133
133
|
return testProofIn(dir);
|
|
134
134
|
}
|
|
135
135
|
async function judgeCheckName(cwd) {
|
|
136
136
|
const dir = governingDir(cwd);
|
|
137
137
|
if (dir === void 0) return {};
|
|
138
138
|
if (!existsSync(dir)) return { note: `the governed context at ${dir} is not readable` };
|
|
139
|
-
const { checksIn, isJudgeCheck } = await import('./host-checks-
|
|
139
|
+
const { checksIn, isJudgeCheck } = await import('./host-checks-IHDOXH4L.js');
|
|
140
140
|
const quiet = { line: () => void 0, error: () => void 0 };
|
|
141
141
|
const check = checksIn(dir, quiet, "").checks.find((c) => isJudgeCheck(c) && c.judge.subjects === "criteria");
|
|
142
142
|
return check === void 0 ? {} : { name: check.name };
|
|
@@ -372,7 +372,7 @@ async function runWorkProofs(opts) {
|
|
|
372
372
|
async function runWorkProofsCommand(opts) {
|
|
373
373
|
try {
|
|
374
374
|
if (opts.record || opts.check) {
|
|
375
|
-
const { runWorkProofsRecord } = await import('./work-proofs-record-
|
|
375
|
+
const { runWorkProofsRecord } = await import('./work-proofs-record-LN42LPZM.js');
|
|
376
376
|
const result2 = await runWorkProofsRecord(opts);
|
|
377
377
|
process.exitCode = result2.exitCode;
|
|
378
378
|
return;
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
3
|
import { LAUNCH_AGENT_ENV } from './chunk-TXKHD4Q6.js';
|
|
4
4
|
import { execStartArgv } from './chunk-F5DIRRMG.js';
|
|
5
|
-
import { DEFAULT_UNIT_NAME } from './chunk-
|
|
5
|
+
import { DEFAULT_UNIT_NAME } from './chunk-OFEHPNPJ.js';
|
|
6
6
|
import { runnerDir } from './chunk-AEGLAS4Y.js';
|
|
7
7
|
import { join, dirname } from 'path';
|
|
8
8
|
|
|
@@ -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-JKOSEEDV.js';
|
|
4
4
|
import { shellFunctionInstalled, removeShellFunction, installShellFunction, SHELL_FUNCTION_LINE } from './chunk-4KCWAP5L.js';
|
|
5
5
|
import { runConnect, hasUncommittedPolicy, commitCommandsFor } from './chunk-7DM2GBSI.js';
|
|
6
6
|
import { C } from './chunk-2AM6Z5BP.js';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
3
|
import { newTokenRetry } from './chunk-FJGYU2EK.js';
|
|
4
|
-
import { WorkCommandError, postJson } from './chunk-
|
|
4
|
+
import { WorkCommandError, postJson } from './chunk-2EDRIMMQ.js';
|
|
5
5
|
import { defaultGitRunner, materializeContext, fetchControlPlaneCommit, lookupGoverningSource } from './chunk-TVSEBOHW.js';
|
|
6
6
|
import { buildRefusalReason } from './chunk-3DILWPBX.js';
|
|
7
7
|
import { unsupportedLayout, layoutRefusalReason, composeDelivery } from './chunk-ETP7IGQI.js';
|
|
@@ -2,28 +2,28 @@
|
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
3
|
import { readHousekeepingRecord, writeHousekeepingRecord } from './chunk-7VW73CPS.js';
|
|
4
4
|
import { fetchVersionMeta, npmVersion, npmSupportsProvenance, fetchTarballDigest, fetchProvenance, installVersion, auditSignatures } from './chunk-E7R2GIAW.js';
|
|
5
|
-
import { reportFailedStart, fitImageBuildMemory } from './chunk-
|
|
6
|
-
import { renderUpdateSteps } from './chunk-
|
|
5
|
+
import { reportFailedStart, fitImageBuildMemory } from './chunk-YB7QOJJ6.js';
|
|
6
|
+
import { renderUpdateSteps } from './chunk-KDLZOXBP.js';
|
|
7
7
|
import { decideInstalledSwitch } from './chunk-TXKHD4Q6.js';
|
|
8
8
|
import { writeFleetState } from './chunk-ALJMNIHW.js';
|
|
9
9
|
import { writePendingUpdate } from './chunk-XYJHIH4N.js';
|
|
10
|
-
import { fleetConfigProblem, realBlockedProbes, sliceMemoryOf, checkBlockedWithSlots, largeBuildMemoryBytes, LARGE_BUILD_DISK_BYTES, checkManagedRoom, askFleetMachine } from './chunk-
|
|
10
|
+
import { fleetConfigProblem, realBlockedProbes, sliceMemoryOf, checkBlockedWithSlots, largeBuildMemoryBytes, LARGE_BUILD_DISK_BYTES, checkManagedRoom, askFleetMachine } from './chunk-MTZ43GKQ.js';
|
|
11
11
|
import { writeMarker, readMarker, currentVersion, removeMarker, isInLayout, startedThroughCurrent, entryIn, versionDir, switchCurrent, cleanVersions, stagingDir } from './chunk-F5DIRRMG.js';
|
|
12
|
-
import { leaseTimeLeftMs, createContainerRuntime, withTunnelLog, itemTag, releaseLease, runDecision, claimRun, LEASE_SECONDS, isUnfinished, prepareResume, restoreSessionIntoMicroVm, restoreSessionIntoContainer, restoreSessionIntoSandbox, restoreWork, keptSessionDir, workRestoredEnv, sessionGuestOfMicroVm, sessionGuestOfContainer, sessionGuestOfSandbox, recordsProofsOnly, itemScope, attemptNote, fetchManagedClaudeKey, holdManagedClaudeKey, fetchManagedBuildSettings, holdManagedBuildSettings, setStage, jobEnv, runHook, describeHookEnd, needsBuildSkill, provisionContainer, leaseExpiresAtMs, withJobTimeLimit, deliverContainerHooks, provisionSandbox, deliverSandboxHooks, provisionMicroVm, deliverCommitHooks, provisionEnvironment, readProvisionOut, resolveHostBuild, workdirProblem, listenOnBroker, hostEnvironment, deliverExecMaven, runWithSpawn, hostCommandEnvironment, lifecycleSteps, execArgv, lifecycleFailureReason, decideHostBuildSkill, prepareBranch, keptCommitsLine, currentSkillCommand, formerSkillProblem, commandLogOffset, startSandboxCommand, MICROVM_COMMAND_DIR, startMicroVmCommand, microVmCommandLine, runCommand, containerCommandExec, execCommandLine, startSender, startHostServices, finishJob, sampleGuest, foldSample, isSandboxTracked, isContainerTracked, isMicroVmTracked, probeSandboxCommand, probeMicroVmCommand, probeCommand, appendCommandLog, judgeProbe, SandboxGoneError, SandboxContainerStoppedError, EXIT_CODE_FILE, isTracked, isGroupAlive, outcomeFromExitCode, isIsolatedJob, jobTimeLimitMinutes, isTimedOut, readCpuUsec, isIdle, HELPER_ENV, setUpRunnerCgroup, stopOrphanedMicroVms, unfinishedJobs, sweepImageBuilders, listUnreadableJobs, listAdoptableJobs, retryFailedReleases, recoverLostJobs, GUEST_USAGE_INTERVAL_MS, vmAlive, filesAreCopied, inSandbox, listItemDisks, usableCpus, hookLimitsFor, runCommandOf, AttemptLogBook, environmentFor, builtOf, judgeCredential, readWorkItem, makeRecorder, microVmOomKills, needsRenew, renewRun, renewLease, RENEW_INTERVAL_SECONDS, stoppedHelperReason, measureDisk, listTrackedJobs, sweepSandboxes, keptSandboxIds, parseCpuList, ensureTunnel, keepGhConfigCurrent, restartSender, rejoinSandboxBuild, createHousekeepingDocker, housekeepingDockerIfReachable, runHousekeeping, shellQuote, jobRecordsClaim, freeItemDisksUntil, savedStatesDir, readRecords, removeOldestUntil, treeFileText, timeoutAfter, scrubReason, ensureNetworkReady, ADOPTED_FETCH_RETRY_WINDOW_MS, managedBuildSettingsFor, gitRemoteFor, startServicesFor, installTrust, createLeaseChannel, serveLease, writeGuestGhConfig, deliverJobFiles, inTeardown } from './chunk-
|
|
13
|
-
import { RUNNER_PROTOCOL } from './chunk-
|
|
12
|
+
import { leaseTimeLeftMs, createContainerRuntime, withTunnelLog, itemTag, releaseLease, runDecision, claimRun, LEASE_SECONDS, isUnfinished, prepareResume, restoreSessionIntoMicroVm, restoreSessionIntoContainer, restoreSessionIntoSandbox, restoreWork, keptSessionDir, workRestoredEnv, sessionGuestOfMicroVm, sessionGuestOfContainer, sessionGuestOfSandbox, recordsProofsOnly, itemScope, attemptNote, fetchManagedClaudeKey, holdManagedClaudeKey, fetchManagedBuildSettings, holdManagedBuildSettings, setStage, jobEnv, runHook, describeHookEnd, needsBuildSkill, provisionContainer, leaseExpiresAtMs, withJobTimeLimit, deliverContainerHooks, provisionSandbox, deliverSandboxHooks, provisionMicroVm, deliverCommitHooks, provisionEnvironment, readProvisionOut, resolveHostBuild, workdirProblem, listenOnBroker, hostEnvironment, deliverExecMaven, runWithSpawn, hostCommandEnvironment, lifecycleSteps, execArgv, lifecycleFailureReason, decideHostBuildSkill, prepareBranch, keptCommitsLine, currentSkillCommand, formerSkillProblem, commandLogOffset, startSandboxCommand, MICROVM_COMMAND_DIR, startMicroVmCommand, microVmCommandLine, runCommand, containerCommandExec, execCommandLine, startSender, startHostServices, finishJob, sampleGuest, foldSample, isSandboxTracked, isContainerTracked, isMicroVmTracked, probeSandboxCommand, probeMicroVmCommand, probeCommand, appendCommandLog, judgeProbe, SandboxGoneError, SandboxContainerStoppedError, EXIT_CODE_FILE, isTracked, isGroupAlive, outcomeFromExitCode, isIsolatedJob, jobTimeLimitMinutes, isTimedOut, readCpuUsec, isIdle, HELPER_ENV, setUpRunnerCgroup, stopOrphanedMicroVms, unfinishedJobs, sweepImageBuilders, listUnreadableJobs, listAdoptableJobs, retryFailedReleases, recoverLostJobs, GUEST_USAGE_INTERVAL_MS, vmAlive, filesAreCopied, inSandbox, listItemDisks, usableCpus, hookLimitsFor, runCommandOf, AttemptLogBook, environmentFor, builtOf, judgeCredential, readWorkItem, makeRecorder, microVmOomKills, needsRenew, renewRun, renewLease, RENEW_INTERVAL_SECONDS, stoppedHelperReason, measureDisk, listTrackedJobs, sweepSandboxes, keptSandboxIds, parseCpuList, ensureTunnel, keepGhConfigCurrent, restartSender, rejoinSandboxBuild, createHousekeepingDocker, housekeepingDockerIfReachable, runHousekeeping, shellQuote, jobRecordsClaim, freeItemDisksUntil, savedStatesDir, readRecords, removeOldestUntil, treeFileText, timeoutAfter, scrubReason, ensureNetworkReady, ADOPTED_FETCH_RETRY_WINDOW_MS, managedBuildSettingsFor, gitRemoteFor, startServicesFor, installTrust, createLeaseChannel, serveLease, writeGuestGhConfig, deliverJobFiles, inTeardown } from './chunk-Y25XOGFX.js';
|
|
13
|
+
import { RUNNER_PROTOCOL } from './chunk-PM3PXJGE.js';
|
|
14
14
|
import { criteriaOf, loadCitationFinder, wholeItems, itemsSentence, oneLineReason, wholeEntries, parseJudgeAnswer } from './chunk-46D7LPS3.js';
|
|
15
|
-
import { RUNNER_RESERVE_BYTES } from './chunk-
|
|
15
|
+
import { RUNNER_RESERVE_BYTES } from './chunk-OFEHPNPJ.js';
|
|
16
16
|
import { RepoFilter } from './chunk-3DUYDFZS.js';
|
|
17
17
|
import { JOB_STATE_FORMAT, readsJobState, jobStateFormatOf } from './chunk-B4XB5QFD.js';
|
|
18
18
|
import { imageTag, writeUpdateStatus, pullInstruction, tagToPull } from './chunk-DIF5NMRF.js';
|
|
19
19
|
import { isVersion, compareVersions, satisfiesRange } from './chunk-TQMI335S.js';
|
|
20
|
-
import { claimCalls, claimItem, spoolHomeFor, leftByRunnerKey, runnerCalls, itemCalls, configForJob } from './chunk-
|
|
20
|
+
import { claimCalls, claimItem, spoolHomeFor, leftByRunnerKey, runnerCalls, itemCalls, configForJob } from './chunk-2VYD47YW.js';
|
|
21
21
|
import { fetchCommit, readBranchHead, diffBetween } from './chunk-BQUUKECC.js';
|
|
22
22
|
import { claimPidFile, releasePidFile, writePidFile, readPidFile } from './chunk-C2ZGJRMQ.js';
|
|
23
23
|
import { startTimeOf, isSameProcess } from './chunk-JBJTC3UU.js';
|
|
24
|
-
import { describeCallFailure, retrySend, shortClaim, relativeToRunner, formatDuration, resolveGoverningSource, BuildTokens, classifyRefusal, refusalCode, createRunnerLog, formatClock } from './chunk-
|
|
25
|
-
import { WorkCommandError, isSignatureRefusal, getJson, postJson, getBytes } from './chunk-
|
|
26
|
-
import { keyRunnerFactory, readsOnly, isBuiltinSandbox, isBuiltinContainer, isBuiltinVm, loadRunnerConfig, checkHooks, builtinKind, keepsHostBuilder, runnerDeliversComments, DEFAULT_CHECK_TIME_LIMIT_MINUTES, readOnlyRemoteOf, DEFAULT_SAVED_STATE_MAX_BYTES, DEFAULT_UPDATE_MAX_WAIT_HOURS, readOnlyOption } from './chunk-
|
|
24
|
+
import { describeCallFailure, retrySend, shortClaim, relativeToRunner, formatDuration, resolveGoverningSource, BuildTokens, classifyRefusal, refusalCode, createRunnerLog, formatClock } from './chunk-D5RXED56.js';
|
|
25
|
+
import { WorkCommandError, isSignatureRefusal, getJson, postJson, getBytes } from './chunk-2EDRIMMQ.js';
|
|
26
|
+
import { keyRunnerFactory, readsOnly, isBuiltinSandbox, isBuiltinContainer, isBuiltinVm, loadRunnerConfig, checkHooks, builtinKind, keepsHostBuilder, runnerDeliversComments, DEFAULT_CHECK_TIME_LIMIT_MINUTES, readOnlyRemoteOf, DEFAULT_SAVED_STATE_MAX_BYTES, DEFAULT_UPDATE_MAX_WAIT_HOURS, readOnlyOption } from './chunk-3DKYI6V7.js';
|
|
27
27
|
import { allocatedBytes, freeBytes, formatBytes } from './chunk-WTX57JCA.js';
|
|
28
28
|
import { writeJobFile, ensureRunnerIdentity, identityDockerFor, readJobFile, JUDGE_TREE, exceedsDisk, runnerLabelValue, builderName, ensureFailureCount, builderSpec, ensureBuilder, spawnRun, judgeCommand, JUDGE_DIR, JUDGE_MAX_TURNS } from './chunk-BKN5HQCX.js';
|
|
29
29
|
import { loadHostKey, ensureHostKey, signerFor } from './chunk-AFSJ4GHZ.js';
|
|
@@ -3234,7 +3234,7 @@ var CLAIM_REFUSAL_CODES = new Set(
|
|
|
3234
3234
|
"pull_request_from_fork pull_request_on_default_branch pull_request_ambiguous pull_request_repository_not_connected repository_not_reachable branch_claimed_elsewhere".split(" ")
|
|
3235
3235
|
);
|
|
3236
3236
|
async function tryClaimAndStart(state, item, queue) {
|
|
3237
|
-
const { postJson: postJson2 } = await import('./work-cmd-
|
|
3237
|
+
const { postJson: postJson2 } = await import('./work-cmd-3VJ5KDBD.js');
|
|
3238
3238
|
const log = logOf(state);
|
|
3239
3239
|
const hostKey = await loadHostKey(state.config.configPath);
|
|
3240
3240
|
const claim = await retrySend(
|
|
@@ -4865,7 +4865,7 @@ async function startRunner(configPath, deps, startup) {
|
|
|
4865
4865
|
check: update.check ? () => update.check(configPath) : async () => {
|
|
4866
4866
|
const held = runnerAgents(deps.agents).flatMap((agent) => heldAgentCredential(agent.descriptor.id) ?? []);
|
|
4867
4867
|
const env = { ...process.env, ...Object.fromEntries(held.map((credential) => [credential.variable, credential.value])) };
|
|
4868
|
-
return (await import('./check-
|
|
4868
|
+
return (await import('./check-XF4J5PFS.js')).runRunnerCheck(configPath, { fetchImpl: deps.fetchImpl, env });
|
|
4869
4869
|
},
|
|
4870
4870
|
now: () => (deps.now ?? (() => /* @__PURE__ */ new Date()))().getTime(),
|
|
4871
4871
|
log
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
|
-
import { escapeUnitPath, UNIT_MARKER, DEFAULT_UNIT_NAME } from './chunk-
|
|
3
|
+
import { escapeUnitPath, UNIT_MARKER, DEFAULT_UNIT_NAME } from './chunk-OFEHPNPJ.js';
|
|
4
4
|
import { inspectService, realInspectProbes } from './chunk-5XEO7FJW.js';
|
|
5
5
|
import { realpathSync, readFileSync, readdirSync } from 'fs';
|
|
6
6
|
import { resolve, dirname, join } from 'path';
|
|
@@ -3,7 +3,7 @@ import { createRequire } from 'node:module';
|
|
|
3
3
|
import { launcherPath, pathNotes, writeLauncher, LauncherWriteError } from './chunk-KJCEJOJI.js';
|
|
4
4
|
import { currentVersion, entryIn, currentLink, versionDir, execStartLine, isInLayout, packageRootIn, switchCurrent } from './chunk-F5DIRRMG.js';
|
|
5
5
|
import { compareVersions } from './chunk-TQMI335S.js';
|
|
6
|
-
import { defaultRunnerConfigPath } from './chunk-
|
|
6
|
+
import { defaultRunnerConfigPath } from './chunk-3DKYI6V7.js';
|
|
7
7
|
import { runnerDir, RUNNER_DIR_MODE } from './chunk-AEGLAS4Y.js';
|
|
8
8
|
import { lchownSync, lstatSync, realpathSync, readFileSync, mkdirSync, rmSync, cpSync, existsSync, readdirSync } from 'fs';
|
|
9
9
|
import { dirname, sep, join, resolve } from 'path';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
3
|
import { checkStarterFiles, contextIsGoverned } from './chunk-UU3A53VB.js';
|
|
4
|
-
import { resolveCredentials, getJson, WorkCommandError } from './chunk-
|
|
4
|
+
import { resolveCredentials, getJson, WorkCommandError } from './chunk-2EDRIMMQ.js';
|
|
5
5
|
import { fleetCheck, checkBuildSkill, checkSpecSkill, checkMachineSkills, checkCommittedMaintainedSkills, checkMaintainedReferences, checkIgnoredSkillFolders } from './chunk-BXDQFZAO.js';
|
|
6
6
|
import { withInjectedPrograms } from './chunk-44UZZVEQ.js';
|
|
7
7
|
import { isLinkedRepository } from './chunk-7DM2GBSI.js';
|
|
@@ -1094,7 +1094,7 @@ function doctorExitCode(checks) {
|
|
|
1094
1094
|
// src/doctor-report.ts
|
|
1095
1095
|
async function gatherDoctorChecks(options = {}) {
|
|
1096
1096
|
const { DEFAULT_BUILD_DISK, DEFAULT_CACHE_DISK } = await import('./build-disk-GDBXPKVU.js');
|
|
1097
|
-
const { defaultRunnerConfigPath, hasRunnerBlock, keyRunnerFactory, loadRunnerConfig, runnerVmOf } = await import('./config-
|
|
1097
|
+
const { defaultRunnerConfigPath, hasRunnerBlock, keyRunnerFactory, loadRunnerConfig, runnerVmOf } = await import('./config-2FFE76CU.js');
|
|
1098
1098
|
const configPath = options.configPath ?? defaultRunnerConfigPath();
|
|
1099
1099
|
const runnerHost = hasRunnerBlock(configPath);
|
|
1100
1100
|
const hooks = (() => {
|
|
@@ -1122,7 +1122,7 @@ async function gatherDoctorChecks(options = {}) {
|
|
|
1122
1122
|
const { runnerVmCheck } = await import('./doctor-53F2PYY7.js');
|
|
1123
1123
|
checks.push(runnerVmCheck(configPath, { lima: realLima(), home: homeFromEnv(), instance: runnerVm.instance }));
|
|
1124
1124
|
} else if (hasRunnerBlock(configPath)) {
|
|
1125
|
-
const { runnerHostChecks } = await import('./doctor-
|
|
1125
|
+
const { runnerHostChecks } = await import('./doctor-IJUVLEOA.js');
|
|
1126
1126
|
const gateway = (() => {
|
|
1127
1127
|
try {
|
|
1128
1128
|
const loaded = loadRunnerConfig(configPath);
|
|
@@ -1150,7 +1150,7 @@ async function gatherDoctorChecks(options = {}) {
|
|
|
1150
1150
|
const service = await (async () => {
|
|
1151
1151
|
const { existsSync: existsSync3 } = await import('fs');
|
|
1152
1152
|
if (process.platform !== "linux" || !existsSync3("/run/systemd/system")) return void 0;
|
|
1153
|
-
const { inspectRunnerService } = await import('./find-unit-
|
|
1153
|
+
const { inspectRunnerService } = await import('./find-unit-HCJCNGAO.js');
|
|
1154
1154
|
return inspectRunnerService(configPath);
|
|
1155
1155
|
})();
|
|
1156
1156
|
checks.push(...await runnerHostChecks({ configPath, hooks, gateway, repos, runner, service }));
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
|
-
import { helperSocketPath } from './chunk-
|
|
4
|
-
import { UNIT_MARKER } from './chunk-
|
|
3
|
+
import { helperSocketPath } from './chunk-Y25XOGFX.js';
|
|
4
|
+
import { UNIT_MARKER } from './chunk-OFEHPNPJ.js';
|
|
5
5
|
import { runnerDir } from './chunk-AEGLAS4Y.js';
|
|
6
6
|
import { createHash } from 'crypto';
|
|
7
7
|
import { join } from 'path';
|
|
@@ -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-Y25XOGFX.js';
|
|
4
4
|
import { tagToPull, imageTag, pullInstruction, readUpdateStatus, runnerImageVersion } from './chunk-DIF5NMRF.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 { resolveCredentials, postBytes, RateLimitedError, postJson, getJson, getBytes } from './chunk-
|
|
3
|
+
import { resolveCredentials, postBytes, RateLimitedError, postJson, getJson, getBytes } from './chunk-2EDRIMMQ.js';
|
|
4
4
|
import { detectActiveSession } from './chunk-A7M4QXVX.js';
|
|
5
5
|
import { sanitizeTerminal } from './chunk-DV44KCM6.js';
|
|
6
6
|
import { C } from './chunk-2AM6Z5BP.js';
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
|
-
import { placeholderQueues, placeholderProblem } from './chunk-
|
|
4
|
-
import { checkFit, RUNNER_RESERVE_BYTES } from './chunk-
|
|
5
|
-
import { getJson, WorkCommandError } from './chunk-
|
|
6
|
-
import { isBuiltinVm, isBuiltinSandbox, builtinKind, EGRESS_SWITCHABLE_KEYS, imageBuildOf, keepsHostBuilder } from './chunk-
|
|
3
|
+
import { placeholderQueues, placeholderProblem } from './chunk-Y25XOGFX.js';
|
|
4
|
+
import { checkFit, RUNNER_RESERVE_BYTES } from './chunk-OFEHPNPJ.js';
|
|
5
|
+
import { getJson, WorkCommandError } from './chunk-2EDRIMMQ.js';
|
|
6
|
+
import { isBuiltinVm, isBuiltinSandbox, builtinKind, EGRESS_SWITCHABLE_KEYS, imageBuildOf, keepsHostBuilder } from './chunk-3DKYI6V7.js';
|
|
7
7
|
import { realBuildDiskProbe, checkDiskFit, DEFAULT_CACHE_DISK, DEFAULT_BUILD_DISK } from './chunk-WTX57JCA.js';
|
|
8
8
|
import { ensureHostKey } from './chunk-AFSJ4GHZ.js';
|
|
9
9
|
import { sandboxSettingsFrom } from './chunk-UTZWCNFV.js';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
|
-
import { DEFAULT_UNIT_NAME } from './chunk-
|
|
3
|
+
import { DEFAULT_UNIT_NAME } from './chunk-OFEHPNPJ.js';
|
|
4
4
|
import { RUNNER_FILE_MODE } from './chunk-AEGLAS4Y.js';
|
|
5
5
|
import { parseRunnerEnv, withoutCredentialLines } from './chunk-5XEO7FJW.js';
|
|
6
6
|
import { headlessNames, runnerAgentNamed, credentialAgent, orList, credentialShapes, runnerAgents, credentialForms, credentialEnvPath, forwardedVariables } from './chunk-MHXUQI67.js';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
|
-
import { builtinKind, keepsHostBuilder } from './chunk-
|
|
3
|
+
import { builtinKind, keepsHostBuilder } from './chunk-3DKYI6V7.js';
|
|
4
4
|
import { parseSize } from './chunk-BKN5HQCX.js';
|
|
5
5
|
import { runnerDir } from './chunk-AEGLAS4Y.js';
|
|
6
6
|
import { FD_SLOTS_PER_BUILD, FD_STORE_ENV, BUILD_SLICE_MEMORY_ENV, credentialLineIn, withoutCredentialLines } from './chunk-5XEO7FJW.js';
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
|
-
import { RUNNER_PROTOCOL } from './chunk-
|
|
3
|
+
import { RUNNER_PROTOCOL } from './chunk-PM3PXJGE.js';
|
|
4
4
|
import { MAX_TEST_FILE_BYTES, itemsSentence, criteriaOf, hostItemsOf, loadCitationFinder, testFileMatcher, planCriteria, wholeItems, judgeGroups, failedItems, inCriteriaOrder, testsByCriterion, oneLineReason, criterionInputs, parseJudgeAnswer, judgedItems } from './chunk-46D7LPS3.js';
|
|
5
5
|
import { zodProblem } from './chunk-I3LTIAOR.js';
|
|
6
6
|
import { sha256OfFile, downloadPinned, VoiceDownloadError } from './chunk-2PGI6RDE.js';
|
|
7
|
-
import { hasStoredCredential, storedCredentialVariables, storeAgentCredential, isAgentName, credentialFromStdin } from './chunk-
|
|
7
|
+
import { hasStoredCredential, storedCredentialVariables, storeAgentCredential, isAgentName, credentialFromStdin } from './chunk-O7QTZ6FY.js';
|
|
8
8
|
import { upgradedStarterText } from './chunk-UU3A53VB.js';
|
|
9
9
|
import { HELPER_PATH, HELPER_RECORD, DOCKERD_LOG } from './chunk-FVTNWJPF.js';
|
|
10
10
|
import { writeDockerClientConfig } from './chunk-MDWAL6FD.js';
|
|
@@ -12,7 +12,7 @@ import { senderPidfile } from './chunk-PGF36SYX.js';
|
|
|
12
12
|
import { installScrubContext } from './chunk-3DUYDFZS.js';
|
|
13
13
|
import { readsJobState, READ_JOB_STATE_FORMATS, jobStateFormatOf } from './chunk-B4XB5QFD.js';
|
|
14
14
|
import { runnerImageVersion } from './chunk-DIF5NMRF.js';
|
|
15
|
-
import { claimCalls, spoolHomeFor, itemCalls, claimItem, leftByRunnerKey, configForJob } from './chunk-
|
|
15
|
+
import { claimCalls, spoolHomeFor, itemCalls, claimItem, leftByRunnerKey, configForJob } from './chunk-2VYD47YW.js';
|
|
16
16
|
import { receiveFiles } from './chunk-NN33FYXG.js';
|
|
17
17
|
import { readDefaultBranchFiles, readDefaultBranchHead, buildRepositoryImage, readRepositoryRecipe, fetchCommit, readBranchHead, diffBetween, prepareImageBuild, KEY_PREFIX, TAG_HOST, SHARED_OWNER, SHARED_NAME, universalBase, metadataFromLabels, writeRecord } from './chunk-BQUUKECC.js';
|
|
18
18
|
import { FETCHED_DIR, toolsDockerfile, FETCHED_FFMPEG, FETCHED_GH, FETCHED_TINI, FETCHED_HEADLESS_SHELL, FETCHED_PLAYWRIGHT_FFMPEG, FETCHED_VOICE_DIR } from './chunk-5IDATPRL.js';
|
|
@@ -20,9 +20,9 @@ import { isSameProcess, startTimeOf } from './chunk-JBJTC3UU.js';
|
|
|
20
20
|
import { currentCliBuild } from './chunk-OGFGZQA3.js';
|
|
21
21
|
import { vmExecArgs, runExec, execCapture, waitForAgent } from './chunk-EHF2UWZC.js';
|
|
22
22
|
import { socketPathProblem, vsockLinks, linkVsockSockets, GUEST_CID, LEASE_LINK } from './chunk-2TOYDBQE.js';
|
|
23
|
-
import { describeCallFailure, shortClaim, retrySend, commandWithShim, logStamp, createRunnerLog, formatDuration, removeKeptContext, formatClock, stageGovernedContext, keptContextTree, removeStagedContext, WORKFLOW_PERMISSION_REASON, refusalCode, SELF_GOVERNED, resolveGoverningSource, prefetchGovernedContext, controlPlaneTokenFailure, keepStagedContext, pinnedSourceOf, shimScript } from './chunk-
|
|
24
|
-
import { postJson, getJson, WorkCommandError, isSignatureRefusal } from './chunk-
|
|
25
|
-
import { keyRunnerFactory, runnerCredentialProblem, builtinKind, readOnlyOption, optionalEgress, readsOnly, isBuiltinContainer, isBuiltinVm, isBuiltinSandbox, egressSummary, DEFAULT_WORKSPACE_KEEP_DAYS, readOnlyRemoteOf, DEFAULT_CHECK_TIME_LIMIT_MINUTES, DEFAULT_SETUP_MINUTES, allowHostProblem, systemClock, emptyEgressCounts, hostAllowed, sandboxTimeLimitMinutes, networkOf, imageBuildOf, machineSizeOf, sandboxSizeOf, DEFAULT_SAVED_STATE_MAX_BYTES } from './chunk-
|
|
23
|
+
import { describeCallFailure, shortClaim, retrySend, commandWithShim, logStamp, createRunnerLog, formatDuration, removeKeptContext, formatClock, stageGovernedContext, keptContextTree, removeStagedContext, WORKFLOW_PERMISSION_REASON, refusalCode, SELF_GOVERNED, resolveGoverningSource, prefetchGovernedContext, controlPlaneTokenFailure, keepStagedContext, pinnedSourceOf, shimScript } from './chunk-D5RXED56.js';
|
|
24
|
+
import { postJson, getJson, WorkCommandError, isSignatureRefusal } from './chunk-2EDRIMMQ.js';
|
|
25
|
+
import { keyRunnerFactory, runnerCredentialProblem, builtinKind, readOnlyOption, optionalEgress, readsOnly, isBuiltinContainer, isBuiltinVm, isBuiltinSandbox, egressSummary, DEFAULT_WORKSPACE_KEEP_DAYS, readOnlyRemoteOf, DEFAULT_CHECK_TIME_LIMIT_MINUTES, DEFAULT_SETUP_MINUTES, allowHostProblem, systemClock, emptyEgressCounts, hostAllowed, sandboxTimeLimitMinutes, networkOf, imageBuildOf, machineSizeOf, sandboxSizeOf, DEFAULT_SAVED_STATE_MAX_BYTES } from './chunk-3DKYI6V7.js';
|
|
26
26
|
import { formatBytes, volumeBytes, allocatedBytes, DEFAULT_BUILD_DISK, DEFAULT_CACHE_DISK, freeBytes } from './chunk-WTX57JCA.js';
|
|
27
27
|
import { said, NETWORK_HELPER_MEMORY, firstLine, writeJobFile, readJobFile, spawnRun, RUNNER_LABEL, BUILD_LABEL, createDockerHost, builderSpec, childEnvironment, containerExecArgs, readDu, JUDGE_DIR, JUDGE_ITEMS, answerFileName, hashJudgeProgram, NETWORK_READY_FILE, MAX_ITEMS_BYTES, MAX_REPORT_BYTES, JUDGE_REPORT, withAnswerProtocol, JUDGE_TREE, runnerLabelValue, parseSize, readJobFileChecked, networkHelperName, prepareRunArgs, containerRunArgs, judgeCommand, WORKSPACE_LABEL, homeCopyRunArgs, networkHelperRunArgs, JUDGE_MAX_TURNS, identityScript, identityArgs, parseIdentity, mountableHome, homeCopyScript, homeCopyArgs, COMMAND_DIR, judgeProgramRecord, identityRunArgs, SAVED_STATE_LABEL } from './chunk-BKN5HQCX.js';
|
|
28
28
|
import { universalImagePending, RecipeError, writeSanitizedRecipe, classifyProperties, DOCKER_FEATURE } from './chunk-47NQTKLX.js';
|
|
@@ -1437,9 +1437,11 @@ function heldReason(reason) {
|
|
|
1437
1437
|
function gatewayRefusalReason(err) {
|
|
1438
1438
|
if (err.code === "managed_build_held") return heldReason(err.reason) ?? `the organization may not start another managed build now (${err.reason ?? "no reason given"})`;
|
|
1439
1439
|
if (err.code === "managed_sandboxes_off") {
|
|
1440
|
-
return "managed sandboxes are not turned on for this organization. Ask OuterLayer to turn them on
|
|
1440
|
+
return "managed sandboxes are not turned on for this organization. Ask OuterLayer to turn them on";
|
|
1441
|
+
}
|
|
1442
|
+
if (err.code === "managed_sandboxes_unavailable") {
|
|
1443
|
+
return "this gateway provides no sandboxes. Build on this machine instead: set runner.hooks to builtin:vm or builtin:container, and remove runner.sandbox";
|
|
1441
1444
|
}
|
|
1442
|
-
if (err.code === "managed_sandboxes_unavailable") return "this gateway provides no sandboxes. Remove runner.sandbox.provider and give the runner a sandbox provider account of its own";
|
|
1443
1445
|
return void 0;
|
|
1444
1446
|
}
|
|
1445
1447
|
function createGatewaySandboxClient(opts) {
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
|
-
import { scrubReason, stripTerminalControls } from './chunk-
|
|
4
|
-
import { checkFit, RUNNER_RESERVE_BYTES } from './chunk-
|
|
3
|
+
import { scrubReason, stripTerminalControls } from './chunk-Y25XOGFX.js';
|
|
4
|
+
import { checkFit, RUNNER_RESERVE_BYTES } from './chunk-OFEHPNPJ.js';
|
|
5
5
|
import { RunnerAlreadyRunningError, readPidFile } from './chunk-C2ZGJRMQ.js';
|
|
6
6
|
import { isSameProcess } from './chunk-JBJTC3UU.js';
|
|
7
|
-
import { isSignatureRefusal, postJson } from './chunk-
|
|
8
|
-
import { keyRunnerFactory } from './chunk-
|
|
7
|
+
import { isSignatureRefusal, postJson } from './chunk-2EDRIMMQ.js';
|
|
8
|
+
import { keyRunnerFactory } from './chunk-3DKYI6V7.js';
|
|
9
9
|
import { signerFor } from './chunk-AFSJ4GHZ.js';
|
|
10
10
|
import { pidFilePath } from './chunk-AEGLAS4Y.js';
|
|
11
11
|
import { readFileSync } from 'fs';
|