@outerlayer/cli 0.42.0-next.20261119011332 → 0.42.0-next.20261119032403

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.
Files changed (34) hide show
  1. package/dist/build-info.json +1 -1
  2. package/dist/{check-HABHY27Y.js → check-ZCF7AI73.js} +6 -6
  3. package/dist/{chunk-HT6HMUC3.js → chunk-3IRBKL4B.js} +1 -1
  4. package/dist/{chunk-WXGEDDUO.js → chunk-AGB4OA6T.js} +11 -9
  5. package/dist/{chunk-QHZZUINX.js → chunk-CW74N36I.js} +1 -1
  6. package/dist/{chunk-CUPEP5D2.js → chunk-EIAE4HE5.js} +1 -1
  7. package/dist/{chunk-HNWNJ6QK.js → chunk-J5FVUVGR.js} +1 -1
  8. package/dist/{chunk-H7L6XTQQ.js → chunk-TG5ITPUR.js} +1 -1
  9. package/dist/{chunk-M4V46N7A.js → chunk-UAERR4NB.js} +1 -1
  10. package/dist/{chunk-BWDUZJ4K.js → chunk-W2TGACUB.js} +1 -1
  11. package/dist/{chunk-K476DEC7.js → chunk-WTI5JAZ3.js} +2 -2
  12. package/dist/{chunk-UE6ZEQAL.js → chunk-XI635QEJ.js} +105 -51
  13. package/dist/{chunk-IOWXXJUM.js → chunk-YBPEOKBK.js} +1 -1
  14. package/dist/{cli-KDLYNUNH.js → cli-376NPUD5.js} +28 -28
  15. package/dist/{command-GZJHU5QD.js → command-6IRYBERW.js} +3 -3
  16. package/dist/{container-start-R2C2UNL6.js → container-start-UGVA5X7P.js} +4 -4
  17. package/dist/{doctor-D7B4Z7Y7.js → doctor-IBYJAM6B.js} +4 -4
  18. package/dist/{host-checks-SMVSA55L.js → host-checks-KFUGD4FC.js} +2 -2
  19. package/dist/index.js +1 -1
  20. package/dist/{init-ZCNI5SFB.js → init-R45QKBSR.js} +2 -2
  21. package/dist/{init-RWDQWHCW.js → init-VBAY7DST.js} +2 -2
  22. package/dist/{init-agent-YGLQSRVI.js → init-agent-GA3TKIWH.js} +2 -2
  23. package/dist/{init-cmd-N35UZUCM.js → init-cmd-TOS5IA2V.js} +2 -2
  24. package/dist/{loop-YMGQKGIS.js → loop-OODXAKC6.js} +6 -6
  25. package/dist/{machine-AFXMDA56.js → machine-NUZIF5L5.js} +2 -2
  26. package/dist/{runner-key-H3CKD4UB.js → runner-key-4UXNGDJA.js} +2 -2
  27. package/dist/{setup-cmd-IBGMGFMJ.js → setup-cmd-HAYSPZJQ.js} +3 -3
  28. package/dist/{setup-wiring-O5SJZBTP.js → setup-wiring-HABXYP6Y.js} +5 -5
  29. package/dist/{status-GC2RXFMJ.js → status-CM3K7FBG.js} +2 -2
  30. package/dist/{update-steps-U7JDUYLU.js → update-steps-PDYCC5HX.js} +3 -3
  31. package/dist/{work-claim-cmd-2WWN4XB7.js → work-claim-cmd-JURSVSEI.js} +1 -1
  32. package/dist/{work-proofs-cmd-EJPH5GY3.js → work-proofs-cmd-FSPZ64EK.js} +1 -1
  33. package/dist/{work-proofs-record-B25ZFR2P.js → work-proofs-record-I36WZHH3.js} +1 -1
  34. package/package.json +1 -1
@@ -1 +1 @@
1
- {"id":"2026-11-19T01:25:51.403Z","root":"/home/runner/work/outerlayer/outerlayer","pkg":"outerlayer"}
1
+ {"id":"2026-11-19T03:30:54.554Z","root":"/home/runner/work/outerlayer/outerlayer","pkg":"outerlayer"}
@@ -1,17 +1,17 @@
1
1
  #!/usr/bin/env node
2
2
  import { createRequire } from 'node:module';
3
- import { probeCredentials } from './chunk-WXGEDDUO.js';
3
+ import { probeCredentials } from './chunk-AGB4OA6T.js';
4
4
  import './chunk-6YBI24YT.js';
5
5
  import './chunk-E7R2GIAW.js';
6
- import './chunk-HNWNJ6QK.js';
7
- import './chunk-IOWXXJUM.js';
6
+ import './chunk-J5FVUVGR.js';
7
+ import './chunk-YBPEOKBK.js';
8
8
  import './chunk-TXKHD4Q6.js';
9
9
  import './chunk-GFXXAXPF.js';
10
10
  import './chunk-AVYR5USX.js';
11
- import { fleetConfigProblem, managedProblems, managedFactsOf, askFleetMachine, fleetQueuesWithoutAgent, fleetQueuesWithoutAgentNote } from './chunk-QHZZUINX.js';
11
+ import { fleetConfigProblem, managedProblems, managedFactsOf, askFleetMachine, fleetQueuesWithoutAgent, fleetQueuesWithoutAgentNote } from './chunk-CW74N36I.js';
12
12
  import './chunk-CYQSTT5N.js';
13
- import { createGatewaySandboxClient, gatewayRefusalReason, placeholderQueues, placeholderProblem, permissionModeProblems, permissionModeProblem, needsAgentCredential, agentCredentialCheck, credentialVerdict, claimPermissionProblem, formerSkillQueues, modellessQueues, formerSkillProblem, modellessProblem } from './chunk-UE6ZEQAL.js';
14
- import './chunk-BWDUZJ4K.js';
13
+ import { createGatewaySandboxClient, gatewayRefusalReason, placeholderQueues, placeholderProblem, permissionModeProblems, permissionModeProblem, needsAgentCredential, agentCredentialCheck, credentialVerdict, claimPermissionProblem, formerSkillQueues, modellessQueues, formerSkillProblem, modellessProblem } from './chunk-XI635QEJ.js';
14
+ import './chunk-W2TGACUB.js';
15
15
  import './chunk-2QK7L3WV.js';
16
16
  import './chunk-2PGI6RDE.js';
17
17
  import './chunk-57MLWALQ.js';
@@ -1,6 +1,6 @@
1
1
  #!/usr/bin/env node
2
2
  import { createRequire } from 'node:module';
3
- import { helperSocketPath } from './chunk-UE6ZEQAL.js';
3
+ import { helperSocketPath } from './chunk-XI635QEJ.js';
4
4
  import { UNIT_MARKER } from './chunk-ETBEMXPC.js';
5
5
  import { runnerDir } from './chunk-5PRVTL54.js';
6
6
  import { createHash } from 'crypto';
@@ -2,15 +2,15 @@
2
2
  import { createRequire } from 'node:module';
3
3
  import { readHousekeepingRecord, writeHousekeepingRecord } from './chunk-6YBI24YT.js';
4
4
  import { fetchVersionMeta, npmVersion, npmSupportsProvenance, fetchTarballDigest, fetchProvenance, installVersion, auditSignatures } from './chunk-E7R2GIAW.js';
5
- import { reportFailedStart, fitImageBuildMemory } from './chunk-HNWNJ6QK.js';
6
- import { renderUpdateSteps } from './chunk-IOWXXJUM.js';
5
+ import { reportFailedStart, fitImageBuildMemory } from './chunk-J5FVUVGR.js';
6
+ import { renderUpdateSteps } from './chunk-YBPEOKBK.js';
7
7
  import { decideInstalledSwitch } from './chunk-TXKHD4Q6.js';
8
8
  import { writeFleetState } from './chunk-GFXXAXPF.js';
9
9
  import { writePendingUpdate } from './chunk-AVYR5USX.js';
10
- import { fleetConfigProblem, realBlockedProbes, checkBlockedWithSlots, askFleetMachine } from './chunk-QHZZUINX.js';
10
+ import { fleetConfigProblem, realBlockedProbes, checkBlockedWithSlots, askFleetMachine } from './chunk-CW74N36I.js';
11
11
  import { writeMarker, readMarker, currentVersion, removeMarker, isInLayout, startedThroughCurrent, entryIn, versionDir, switchCurrent, cleanVersions, stagingDir } from './chunk-CYQSTT5N.js';
12
- import { leaseTimeLeftMs, createContainerRuntime, heldSandboxClaimsOf, unfinishedJobs, withTunnelLog, itemTag, releaseLease, runCommandOf, runDecision, claimRun, LEASE_SECONDS, isUnfinished, prepareResume, restoreSessionIntoMicroVm, restoreSessionIntoContainer, restoreSessionIntoSandbox, restoreWork, keptSessionDir, workRestoredEnv, sessionGuestOfMicroVm, sessionGuestOfContainer, sessionGuestOfSandbox, recordsProofsOnly, itemScope, attemptNote, noteMissingCredential, 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, runCommandFor, currentSkillCommand, formerSkillProblem, commandLogOffset, startSandboxCommand, MICROVM_COMMAND_DIR, startMicroVmCommand, microVmCommandLine, runCommand, containerCommandExec, execCommandLine, startSender, commandEndReasonOf, holdManagedKey, 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, sweepImageBuilders, listUnreadableJobs, listAdoptableJobs, retryFailedReleases, recoverLostJobs, GUEST_USAGE_INTERVAL_MS, vmAlive, filesAreCopied, inSandbox, releaseRun, listItemDisks, hookLimitsFor, AttemptLogBook, fetchManagedModelKey, environmentFor, builtOf, judgeCredential, missingJudgeCredential, reviewFiles, readWorkItem, issueText, storedProblemsText, territories, territoryBrief, dropNonProblems, mergeAnswers, carriedProblems, unreviewedItem, 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, holdsHostDisk, removeOldestUntil, treeFileText, scrubReason, superviseRuns, NO_LOG, timeoutAfter, unreviewedFiles, markdownSection, ensureNetworkReady, ADOPTED_FETCH_RETRY_WINDOW_MS, managedBuildSettingsFor, gitRemoteFor, startServicesFor, installTrust, createLeaseChannel, serveLease, writeGuestGhConfig, deliverJobFiles, parseRunClaim, inTeardown } from './chunk-UE6ZEQAL.js';
13
- import { RUNNER_PROTOCOL } from './chunk-BWDUZJ4K.js';
12
+ import { leaseTimeLeftMs, createContainerRuntime, heldSandboxClaimsOf, unfinishedJobs, withTunnelLog, itemTag, releaseLease, runCommandOf, runDecision, claimRun, LEASE_SECONDS, isUnfinished, prepareResume, restoreSessionIntoMicroVm, restoreSessionIntoContainer, restoreSessionIntoSandbox, restoreWork, keptSessionDir, workRestoredEnv, sessionGuestOfMicroVm, sessionGuestOfContainer, sessionGuestOfSandbox, recordsProofsOnly, itemScope, attemptNote, noteMissingCredential, 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, runCommandFor, currentSkillCommand, formerSkillProblem, commandLogOffset, startSandboxCommand, MICROVM_COMMAND_DIR, startMicroVmCommand, microVmCommandLine, runCommand, containerCommandExec, execCommandLine, startSender, commandEndReasonOf, holdManagedKey, 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, sweepImageBuilders, listUnreadableJobs, listAdoptableJobs, retryFailedReleases, recoverLostJobs, GUEST_USAGE_INTERVAL_MS, vmAlive, filesAreCopied, inSandbox, releaseRun, listItemDisks, hookLimitsFor, SANDBOX_NOT_PREPARED, AttemptLogBook, fetchManagedModelKey, managedFaultReason, environmentFor, builtOf, judgeCredential, missingJudgeCredential, reviewFiles, readWorkItem, issueText, storedProblemsText, territories, territoryBrief, dropNonProblems, mergeAnswers, carriedProblems, unreviewedItem, 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, holdsHostDisk, removeOldestUntil, treeFileText, scrubReason, superviseRuns, NO_LOG, timeoutAfter, unreviewedFiles, markdownSection, ensureNetworkReady, ADOPTED_FETCH_RETRY_WINDOW_MS, managedBuildSettingsFor, gitRemoteFor, startServicesFor, installTrust, createLeaseChannel, serveLease, writeGuestGhConfig, deliverJobFiles, parseRunClaim, inTeardown } from './chunk-XI635QEJ.js';
13
+ import { RUNNER_PROTOCOL } from './chunk-W2TGACUB.js';
14
14
  import { criteriaOf, diffLines, loadCitationFinder, wholeItems, itemsSentence, oneLineReason, treePath, parseJudgeAnswer, wholeEntries, lineInDiff } from './chunk-2QK7L3WV.js';
15
15
  import { RepoFilter } from './chunk-AFU6UF34.js';
16
16
  import { JOB_STATE_FORMAT, readsJobState, jobStateFormatOf } from './chunk-B4XB5QFD.js';
@@ -3978,7 +3978,7 @@ async function startJob(state, item, queue, claimId, itemKey, branch, identity,
3978
3978
  installCommitHooks(active.job, log, tag);
3979
3979
  const hooksDelivered = await deliverSandboxHooks(runtimeOf(state), provisioned.state, dirPath);
3980
3980
  if (!hooksDelivered.ok) {
3981
- await endOnProvisionFailure(state, active, tokens, provisionTook, hooksDelivered);
3981
+ await endOnProvisionFailure(state, active, tokens, provisionTook, { ...hooksDelivered, fault: SANDBOX_NOT_PREPARED });
3982
3982
  return;
3983
3983
  }
3984
3984
  } else if (vmMode) {
@@ -4415,6 +4415,8 @@ function waitText(waitMs) {
4415
4415
  }
4416
4416
  async function endOnProvisionFailure(state, active, tokens, took, failure) {
4417
4417
  const { reason } = failure;
4418
+ const fault = state.config.fleet === true ? failure.fault : void 0;
4419
+ const failed2 = (released) => fault === void 0 ? { stage: "provision", reason: released } : { stage: "provision", reason: managedFaultReason(fault), cause: fault.cause };
4418
4420
  const log = logOf(state);
4419
4421
  const tag = `${itemTag(active.job)}`;
4420
4422
  const key = retryKeyOf(active.job);
@@ -4426,13 +4428,13 @@ async function endOnProvisionFailure(state, active, tokens, took, failure) {
4426
4428
  if (failure.transient !== true && !tokens.controlPlaneUnavailable()) {
4427
4429
  state.provisionRetries?.delete(key);
4428
4430
  log.error(`${tag} provision failed (${took}): ${reason} \xB7 ending job as failed`);
4429
- await endJob(state, active, "failed", { stage: "provision", reason });
4431
+ await endJob(state, active, "failed", failed2(reason));
4430
4432
  return;
4431
4433
  }
4432
4434
  const decision = noteProvisionRetry(state.provisionRetries ??= /* @__PURE__ */ new Map(), key, reason, nowOf(state).getTime(), failure.retryAfterMs);
4433
4435
  if (decision.kind === "give_up") {
4434
4436
  log.error(`${tag} provision failed (${took}): ${reason} \xB7 it failed this way ${decision.failures} times in a row \xB7 ending job as failed`);
4435
- await endJob(state, active, "failed", { stage: "provision", reason: decision.reason });
4437
+ await endJob(state, active, "failed", failed2(decision.reason));
4436
4438
  return;
4437
4439
  }
4438
4440
  state.provisionRetryHold = decision.hold;
@@ -5175,7 +5177,7 @@ async function startRunner(configPath, deps, startup) {
5175
5177
  check: update.check ? () => update.check(configPath) : async () => {
5176
5178
  const held = runnerAgents(deps.agents).flatMap((agent) => heldAgentCredential(agent.descriptor.id) ?? []);
5177
5179
  const env = { ...process.env, ...Object.fromEntries(held.map((credential) => [credential.variable, credential.value])) };
5178
- return (await import('./check-HABHY27Y.js')).runRunnerCheck(configPath, { fetchImpl: deps.fetchImpl, env });
5180
+ return (await import('./check-ZCF7AI73.js')).runRunnerCheck(configPath, { fetchImpl: deps.fetchImpl, env });
5179
5181
  },
5180
5182
  now: () => (deps.now ?? (() => /* @__PURE__ */ new Date()))().getTime(),
5181
5183
  log
@@ -1,6 +1,6 @@
1
1
  #!/usr/bin/env node
2
2
  import { createRequire } from 'node:module';
3
- import { placeholderQueues, placeholderProblem } from './chunk-UE6ZEQAL.js';
3
+ import { placeholderQueues, placeholderProblem } from './chunk-XI635QEJ.js';
4
4
  import { checkFit } from './chunk-ETBEMXPC.js';
5
5
  import { getJson, WorkCommandError } from './chunk-ASAIS67T.js';
6
6
  import { isBuiltinSandbox, builtinKind, EGRESS_SWITCHABLE_KEYS, keepsHostBuilder } from './chunk-TRZOAT7E.js';
@@ -1084,7 +1084,7 @@ async function gatherDoctorChecks(options = {}) {
1084
1084
  const { runnerVmCheck } = await import('./doctor-53F2PYY7.js');
1085
1085
  checks.push(runnerVmCheck(configPath, { lima: realLima(), home: homeFromEnv(), instance: runnerVm.instance }));
1086
1086
  } else if (hasRunnerBlock(configPath)) {
1087
- const { runnerHostChecks } = await import('./doctor-D7B4Z7Y7.js');
1087
+ const { runnerHostChecks } = await import('./doctor-IBYJAM6B.js');
1088
1088
  const gateway = (() => {
1089
1089
  try {
1090
1090
  const loaded = loadRunnerConfig(configPath);
@@ -1,6 +1,6 @@
1
1
  #!/usr/bin/env node
2
2
  import { createRequire } from 'node:module';
3
- import { scrubReason, stripTerminalControls } from './chunk-UE6ZEQAL.js';
3
+ import { scrubReason, stripTerminalControls } from './chunk-XI635QEJ.js';
4
4
  import { checkFit, RUNNER_RESERVE_BYTES } from './chunk-ETBEMXPC.js';
5
5
  import { RunnerAlreadyRunningError, readPidFile } from './chunk-NRR4YLHI.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 { summarizeChecks, summaryText, renderDoctorText } from './chunk-CUPEP5D2.js';
3
+ import { summarizeChecks, summaryText, renderDoctorText } from './chunk-EIAE4HE5.js';
4
4
  import { shellFunctionInstalled, removeShellFunction, installShellFunction, SHELL_FUNCTION_LINE } from './chunk-UWRXRSCE.js';
5
5
  import { runConnect, hasUncommittedSetup, commitCommandsFor } from './chunk-7O37CF6M.js';
6
6
  import { C } from './chunk-2AM6Z5BP.js';
@@ -1,6 +1,6 @@
1
1
  #!/usr/bin/env node
2
2
  import { createRequire } from 'node:module';
3
- import { buildSkillPaths } from './chunk-UE6ZEQAL.js';
3
+ import { buildSkillPaths } from './chunk-XI635QEJ.js';
4
4
  import { ignoreRuleFor } from './chunk-ZN3RUNOZ.js';
5
5
  import { linkedBranches, setupCommitPaths, commitCommandsFor, ownerAndName } from './chunk-7O37CF6M.js';
6
6
  import { sanitizeTerminal } from './chunk-V3NMSDOC.js';
@@ -4,6 +4,6 @@ import { createRequire } from 'node:module';
4
4
  createRequire(import.meta.url);
5
5
 
6
6
  // src/runner/protocol.ts
7
- var RUNNER_PROTOCOL = 73;
7
+ var RUNNER_PROTOCOL = 74;
8
8
 
9
9
  export { RUNNER_PROTOCOL };
@@ -130,7 +130,7 @@ async function judgeCheckName(cwd) {
130
130
  const dir = governingDir(cwd);
131
131
  if (dir === void 0) return {};
132
132
  if (!existsSync(dir)) return { note: `the governed context at ${dir} is not readable` };
133
- const { checksIn } = await import('./host-checks-SMVSA55L.js');
133
+ const { checksIn } = await import('./host-checks-KFUGD4FC.js');
134
134
  const quiet = { line: () => void 0, error: () => void 0 };
135
135
  const check = checksIn(dir, quiet, "").checks.find((c) => c.judge.subjects === "criteria");
136
136
  return check === void 0 ? {} : { name: check.name };
@@ -366,7 +366,7 @@ async function runWorkProofs(opts) {
366
366
  async function runWorkProofsCommand(opts) {
367
367
  try {
368
368
  if (opts.record || opts.check) {
369
- const { runWorkProofsRecord } = await import('./work-proofs-record-B25ZFR2P.js');
369
+ const { runWorkProofsRecord } = await import('./work-proofs-record-I36WZHH3.js');
370
370
  const result2 = await runWorkProofsRecord(opts);
371
371
  process.exitCode = result2.exitCode;
372
372
  return;
@@ -1,6 +1,6 @@
1
1
  #!/usr/bin/env node
2
2
  import { createRequire } from 'node:module';
3
- import { RUNNER_PROTOCOL } from './chunk-BWDUZJ4K.js';
3
+ import { RUNNER_PROTOCOL } from './chunk-W2TGACUB.js';
4
4
  import { MAX_TEST_FILE_BYTES, criteriaOf, hostItemsOf, loadCitationFinder, testFileMatcher, planCriteria, wholeItems, judgeGroups, failedItems, inCriteriaOrder, itemsSentence, testsByCriterion, oneLineReason, criterionInputs, parseJudgeAnswer, judgedItems, hostCheckOf } from './chunk-2QK7L3WV.js';
5
5
  import { sha256OfFile, downloadPinned, VoiceDownloadError } from './chunk-2PGI6RDE.js';
6
6
  import { hasStoredCredential, storedCredentialVariables, storeAgentCredential, replaceFile, isAgentName, credentialFromStdin } from './chunk-57MLWALQ.js';
@@ -411,6 +411,25 @@ function judgeProbe(probe, missedBefore) {
411
411
  if (probe.alive) return { kind: "running" };
412
412
  return missedBefore ? { kind: "lost" } : { kind: "recheck" };
413
413
  }
414
+
415
+ // src/runner/refused-hosts.ts
416
+ var ALLOWED_HOSTS_SETTING = "Settings \u2192 Build settings \u2192 Allowed hosts";
417
+ var NOT_ALLOWED = "not-allowed";
418
+ var NOTE_MAX = 140;
419
+ function hostsNotAllowed(record) {
420
+ return [...new Set((record?.refusals ?? []).filter((refusal) => refusal.range === NOT_ALLOWED).map((refusal) => refusal.host))];
421
+ }
422
+ function refusedHostsNote(hosts) {
423
+ if (hosts.length === 0) return void 0;
424
+ const note = (named2) => {
425
+ const others = hosts.length - named2.length;
426
+ const list = others === 0 ? named2.join(", ") : `${named2.join(", ")} and ${others} other ${others === 1 ? "host" : "hosts"}`;
427
+ return hosts.length === 1 ? `The build could not reach ${list}, which is not an allowed host. Add it under ${ALLOWED_HOSTS_SETTING}.` : `The build could not reach ${list}, which are not allowed hosts. Add them under ${ALLOWED_HOSTS_SETTING}.`;
428
+ };
429
+ let named = hosts.slice(0, 1);
430
+ while (named.length < hosts.length && note(hosts.slice(0, named.length + 1)).length <= NOTE_MAX) named = hosts.slice(0, named.length + 1);
431
+ return note(named);
432
+ }
414
433
  var RESUME_DIR = "/build/home/.outerlayer/resume";
415
434
  var META_FILE = "meta.json";
416
435
  var SESSION_ID_VARIABLE = "OUTERLAYER_SESSION_ID";
@@ -8206,6 +8225,18 @@ function readRegularFile(path, limit) {
8206
8225
  }
8207
8226
  }
8208
8227
 
8228
+ // src/runner/provision-fault.ts
8229
+ var PROVIDER_REFUSED = { cause: "sandbox_provider", what: "the sandbox provider refused to create its sandbox" };
8230
+ var SANDBOX_NOT_STARTED = { cause: "sandbox_provider", what: "its sandbox did not start" };
8231
+ var SANDBOX_NOT_PREPARED = { cause: "sandbox_setup", what: "the runner could not prepare its sandbox" };
8232
+ var NO_DOCKER = { cause: "build_image", what: "its build image does not run Docker" };
8233
+ function imageLacksAgent(agentLabel) {
8234
+ return { cause: "build_image", what: `its build image has no ${agentLabel}` };
8235
+ }
8236
+ function managedFaultReason(fault) {
8237
+ return `The managed runner could not start this build: ${fault.what}. Only OuterLayer can fix this. Build the item again later.`;
8238
+ }
8239
+
8209
8240
  // src/runner/sandbox/sweep.ts
8210
8241
  var RUNNER_METADATA = "outerlayerRunner";
8211
8242
  var BUILD_METADATA = "outerlayerBuild";
@@ -8956,24 +8987,30 @@ async function provisionSandboxOnce(input, allowRestore, itemDiskFailed, noSave)
8956
8987
  const { config, runtime, item, itemKey, jobDir, log, tokens } = input;
8957
8988
  const tag = itemTag({ item: item.number, organizationId: input.organizationId, claimId: input.claimId });
8958
8989
  const logPath = join(jobDir, "provision.log");
8959
- const fail = (reason, transient = false, retryAfterMs) => ({ ok: false, reason, ...transient ? { transient: true } : {}, ...transient && retryAfterMs !== void 0 ? { retryAfterMs } : {} });
8990
+ const fail = (reason, fault, transient = false, retryAfterMs) => ({
8991
+ ok: false,
8992
+ reason,
8993
+ ...fault === void 0 ? {} : { fault },
8994
+ ...transient ? { transient: true } : {},
8995
+ ...transient && retryAfterMs !== void 0 ? { retryAfterMs } : {}
8996
+ });
8960
8997
  const own = config.sandbox;
8961
- if (own === void 0) return fail("runner.sandbox is not set in the config file");
8998
+ if (own === void 0) return fail("runner.sandbox is not set in the config file", void 0);
8962
8999
  const repositories = repositoriesOf({ repositories: input.repositories, repository: item.specRepository, branch: input.branch });
8963
9000
  const primary = primaryOf(repositories);
8964
- if (primary === void 0) return fail("the work item names no repository to clone");
9001
+ if (primary === void 0) return fail("the work item names no repository to clone", void 0);
8965
9002
  const repository = primary.repository;
8966
- if ((managedBuildSettingsFor(jobDir)?.proxied?.length ?? 0) > 0) return fail(PROXIED_IN_SANDBOX_REASON);
9003
+ if ((managedBuildSettingsFor(jobDir)?.proxied?.length ?? 0) > 0) return fail(PROXIED_IN_SANDBOX_REASON, void 0);
8967
9004
  const sized = sandboxSizeFor(config, jobDir);
8968
- if (!sized.ok) return fail(sized.reason);
9005
+ if (!sized.ok) return fail(sized.reason, void 0);
8969
9006
  let sandboxClient;
8970
9007
  try {
8971
9008
  sandboxClient = client(runtime);
8972
9009
  } catch (err) {
8973
- return fail(err instanceof SandboxError ? describeSandboxError(err) : describeCallFailure(err));
9010
+ return fail(err instanceof SandboxError ? describeSandboxError(err) : describeCallFailure(err), SANDBOX_NOT_PREPARED);
8974
9011
  }
8975
9012
  const governing = input.queue === "run" || input.queue === "review" ? SELF_GOVERNED : await resolveGoverningSource({ config, repository, fetchImpl: input.fetchImpl });
8976
- if (!governing.ok) return fail(governing.reason);
9013
+ if (!governing.ok) return fail(governing.reason, void 0);
8977
9014
  const governingSource = governing.source;
8978
9015
  const controlPlaneUrl = (controlPlane) => runtime.remoteFor?.(controlPlane) ?? `${runtime.github.gitUrl}/${controlPlane}.git`;
8979
9016
  if (governingSource.kind === "governed") {
@@ -8988,10 +9025,10 @@ async function provisionSandboxOnce(input, allowRestore, itemDiskFailed, noSave)
8988
9025
  log,
8989
9026
  tag
8990
9027
  });
8991
- if (unfetched !== void 0) return fail(unfetched.reason, unfetched.transient);
9028
+ if (unfetched !== void 0) return fail(unfetched.reason, void 0, unfetched.transient);
8992
9029
  }
8993
9030
  const read = await readSandboxRecipe({ runtime, config, tokens, repository, governingSource, organizationId: input.organizationId, ...input.queue === "review" ? { universal: true } : {} });
8994
- if (!read.ok) return fail(read.reason, read.transient);
9031
+ if (!read.ok) return fail(read.reason, void 0, read.transient);
8995
9032
  const recipe = read.recipe;
8996
9033
  const recipeRepository = read.repository;
8997
9034
  const apply = recipe.classification.apply;
@@ -9085,29 +9122,29 @@ async function provisionSandboxOnce(input, allowRestore, itemDiskFailed, noSave)
9085
9122
  variables: env.variables,
9086
9123
  cliVersion: input.cliVersion
9087
9124
  };
9088
- const bail = async (reason, aborted2 = false, transient = false, retryAfterMs) => {
9125
+ const bail = async (reason, fault, aborted2 = false, transient = false, retryAfterMs) => {
9089
9126
  try {
9090
9127
  await cleanupSandbox(runtime, { buildId, sandboxId: state.sandboxId, container: containerState });
9091
9128
  } catch (err) {
9092
9129
  log.error(`${tag} cleanup failed: ${describeCallFailure(err)}`);
9093
9130
  }
9094
- return aborted2 ? { ok: false, reason: "ended before provision finished", aborted: true } : fail(reason, transient, retryAfterMs);
9131
+ return aborted2 ? { ok: false, reason: "ended before provision finished", aborted: true } : fail(reason, fault, transient, retryAfterMs);
9095
9132
  };
9096
9133
  const giveUpItemDisk = async (reason, why) => {
9097
- await bail(reason);
9134
+ await bail(reason, void 0);
9098
9135
  return discardUnusableItemDisk({ kept: keptDisk, reason, why, removeVolume: async () => void 0, endSandbox: (id) => sandboxClient.end(id), onError: (line2) => log.error(`${tag} ${line2}`) });
9099
9136
  };
9100
9137
  const giveUpState = async (record, reason) => {
9101
- await bail(reason);
9138
+ await bail(reason, void 0);
9102
9139
  return forgetState(record, reason);
9103
9140
  };
9104
- const end = (reason, aborted2 = false) => fromState !== void 0 && !aborted2 ? giveUpState(fromState, reason) : bail(reason, aborted2);
9141
+ const end = (reason, fault, aborted2 = false) => fromState !== void 0 && !aborted2 ? giveUpState(fromState, reason) : bail(reason, fault, aborted2);
9105
9142
  const forgetManagedDisk = async (id, err) => {
9106
9143
  const reason = `the kept sandbox ${id} could not be resumed: ${err.reason ?? describeSandboxError(err)}`;
9107
- await bail(reason);
9144
+ await bail(reason, void 0);
9108
9145
  return discardUnusableItemDisk({ kept: keptDisk, reason, why: "disk_not_restored", removeVolume: async () => void 0, endSandbox: async () => void 0, onError: (line2) => log.error(`${tag} ${line2}`) });
9109
9146
  };
9110
- if (input.aborted()) return bail("", true);
9147
+ if (input.aborted()) return bail("", void 0, true);
9111
9148
  mkdirSync(buildDir2, { recursive: true });
9112
9149
  const ghDir = ghConfigDir(buildDir2);
9113
9150
  let readToken;
@@ -9115,14 +9152,14 @@ async function provisionSandboxOnce(input, allowRestore, itemDiskFailed, noSave)
9115
9152
  readToken = await tokens.token("read");
9116
9153
  writeGhConfig(ghDir, readToken);
9117
9154
  } catch (err) {
9118
- return bail(err instanceof WorkCommandError ? `the build's read token could not be had: ${refusalCode(err)}` : `the build's gh configuration could not be written: ${describeCallFailure(err)}`);
9155
+ return err instanceof WorkCommandError ? bail(`the build's read token could not be had: ${refusalCode(err)}`, void 0) : bail(`the build's gh configuration could not be written: ${describeCallFailure(err)}`, SANDBOX_NOT_PREPARED);
9119
9156
  }
9120
9157
  for (const entry of repositories) {
9121
9158
  if (entry.repository === primary.repository) continue;
9122
9159
  try {
9123
9160
  await tokens.token("read", entry.repository);
9124
9161
  } catch (err) {
9125
- return bail(`the build's read token for ${entry.repository} could not be had: ${refusalCode(err)}`);
9162
+ return bail(`the build's read token for ${entry.repository} could not be had: ${refusalCode(err)}`, void 0);
9126
9163
  }
9127
9164
  }
9128
9165
  keepGhConfigCurrent(tokens, buildDir2, (err) => log.error(`${tag} the read token could not be written for gh: ${describeCallFailure(err)}`));
@@ -9134,9 +9171,9 @@ async function provisionSandboxOnce(input, allowRestore, itemDiskFailed, noSave)
9134
9171
  services = await startServicesFor(runtime, config, buildDir2, jobDir, itemKey, true, gitRemote, "stream", input.leaseExpiryMs === void 0 ? void 0 : leaseFor(runtime, buildId, input.leaseExpiryMs), void 0, (line2) => log.line(`${tag} ${line2}`));
9135
9172
  runtime.tunnels.set(buildId, services);
9136
9173
  } catch (err) {
9137
- return bail(`the tunnel could not start: ${describeCallFailure(err)}`);
9174
+ return bail(`the tunnel could not start: ${describeCallFailure(err)}`, SANDBOX_NOT_PREPARED);
9138
9175
  }
9139
- if (input.aborted()) return bail("", true);
9176
+ if (input.aborted()) return bail("", void 0, true);
9140
9177
  let resumed;
9141
9178
  const keptSandbox = keptDisk?.record.sandbox;
9142
9179
  if (keptSandbox !== void 0) {
@@ -9190,7 +9227,7 @@ async function provisionSandboxOnce(input, allowRestore, itemDiskFailed, noSave)
9190
9227
  if (resume !== void 0) runtime.sandbox.resuming.delete(resume);
9191
9228
  if (err instanceof ProvisionAborted) {
9192
9229
  runtime.sandbox.creating.delete(buildId);
9193
- return bail("", true);
9230
+ return bail("", void 0, true);
9194
9231
  }
9195
9232
  if (resume !== void 0 && err instanceof SandboxError && (err.code === "sandbox_not_resumable" || err.code === "sandbox_provider_refused")) {
9196
9233
  runtime.sandbox.creating.delete(buildId);
@@ -9200,16 +9237,17 @@ async function provisionSandboxOnce(input, allowRestore, itemDiskFailed, noSave)
9200
9237
  if (late?.kind !== "started") {
9201
9238
  runtime.sandbox.creating.delete(buildId);
9202
9239
  if (err instanceof SandboxError && err.status === 0) await endUnansweredSandbox(sandboxClient, runnerId, buildId, (line2) => log.error(`${tag} ${line2}`));
9203
- if (late?.kind === "aborted") return bail("", true);
9240
+ if (late?.kind === "aborted") return bail("", void 0, true);
9204
9241
  const held3 = err instanceof SandboxError ? gatewayRefusalReason(err) : void 0;
9205
9242
  if (held3 !== void 0) {
9206
- await bail(held3);
9243
+ await bail(held3, void 0);
9207
9244
  return { ok: false, reason: held3, held: true };
9208
9245
  }
9209
9246
  const transient = late?.kind !== "timed_out" && late?.kind !== "ended" && err instanceof SandboxError && providerMayAnswerLater(err);
9210
9247
  const refused2 = `The provider refused to create the sandbox: ${slowStartReason(late) ?? (err instanceof SandboxError ? describeSandboxError(err) : describeCallFailure(err))}`;
9211
9248
  if (fromState !== void 0) return giveUpState(fromState, refused2);
9212
- return bail(refused2, false, transient, err instanceof SandboxError ? err.retryAfterMs : void 0);
9249
+ const fault = late?.kind === "timed_out" || late?.kind === "ended" ? SANDBOX_NOT_STARTED : PROVIDER_REFUSED;
9250
+ return bail(refused2, fault, false, transient, err instanceof SandboxError ? err.retryAfterMs : void 0);
9213
9251
  }
9214
9252
  sandbox = late.sandbox;
9215
9253
  }
@@ -9249,8 +9287,8 @@ async function provisionSandboxOnce(input, allowRestore, itemDiskFailed, noSave)
9249
9287
  } catch (err) {
9250
9288
  log.error(`${tag} could not end sandbox ${sandbox.id}: ${describeCallFailure(err)} \xB7 the next sweep ends it`);
9251
9289
  }
9252
- if (started2.kind === "aborted") return bail("", true);
9253
- return end(slowStartReason(started2) ?? `sandbox ${sandbox.id} did not start`);
9290
+ if (started2.kind === "aborted") return bail("", void 0, true);
9291
+ return end(slowStartReason(started2) ?? `sandbox ${sandbox.id} did not start`, SANDBOX_NOT_STARTED);
9254
9292
  }
9255
9293
  }
9256
9294
  runtime.sandbox.sandboxes.set(buildId, sandbox);
@@ -9262,14 +9300,14 @@ async function provisionSandboxOnce(input, allowRestore, itemDiskFailed, noSave)
9262
9300
  log.line(
9263
9301
  resumed !== void 0 ? `${tag} restored the disk that claim ${shortClaim(keptDisk.record.claimId)} kept: sandbox ${sandbox.id} resumed` : fromState !== void 0 && plan.restore !== void 0 ? `${tag} starting from saved state ${fromState.id}, saved ${formatDuration(plan.restore.ageMs)} ago: sandbox ${sandbox.id} created from it \xB7 ${name}` : `${tag} sandbox ${sandbox.id} created \xB7 ${name}`
9264
9302
  );
9265
- if (input.aborted()) return bail("", true);
9303
+ if (input.aborted()) return bail("", void 0, true);
9266
9304
  if (fromState !== void 0) {
9267
9305
  const unusable = await checkStateSandbox({ sandboxClient, sandbox, volume: volumeName, nowMs: clockOf(input.now)().getTime(), log: tagged });
9268
9306
  if (unusable !== void 0) return giveUpState(fromState, unusable);
9269
9307
  }
9270
9308
  const sandboxed = runtimeInSandbox(runtime, sandbox);
9271
9309
  const { host } = sandboxed;
9272
- const dockerFailed = (what, result) => end(`${what} failed (exit ${result.status})${said(result.stderr)}`);
9310
+ const dockerFailed = (what, result) => end(`${what} failed (exit ${result.status})${said(result.stderr)}`, SANDBOX_NOT_PREPARED);
9273
9311
  const joinSecret = randomBytes(32);
9274
9312
  runtime.sandbox.joinSecrets.set(buildId, joinSecret);
9275
9313
  const packDir = join(runtime.cliBuild().distDir, "..", "skill-pack");
@@ -9278,26 +9316,26 @@ async function provisionSandboxOnce(input, allowRestore, itemDiskFailed, noSave)
9278
9316
  const packageFile = existsSync(packagePath) ? packagePath : void 0;
9279
9317
  try {
9280
9318
  const made = await sandboxClient.command(sandbox, `sudo mkdir -p ${CLI_DIR} && sudo chown -R "$(id -u):$(id -g)" ${SANDBOX_DIR}`);
9281
- if (made.exitCode !== 0) return end(`making ${SANDBOX_DIR} in the sandbox failed (exit ${made.exitCode ?? "none"})${said(made.stderr)}`);
9319
+ if (made.exitCode !== 0) return end(`making ${SANDBOX_DIR} in the sandbox failed (exit ${made.exitCode ?? "none"})${said(made.stderr)}`, SANDBOX_NOT_PREPARED);
9282
9320
  await sandboxClient.upload(sandbox, `${SANDBOX_DIR}/dist.tgz`, gzipSync(packFolder(runtime.cliBuild().distDir)));
9283
9321
  if (skillPack !== void 0) {
9284
9322
  await sandboxClient.upload(sandbox, `${SANDBOX_DIR}/skill-pack.tgz`, gzipSync(packFolder(skillPack)));
9285
9323
  const placed = await sandboxClient.command(sandbox, `mkdir -p ${SKILL_PACK_DIR} && tar xzf ${SANDBOX_DIR}/skill-pack.tgz -C ${SKILL_PACK_DIR} && rm -f ${SANDBOX_DIR}/skill-pack.tgz`);
9286
- if (placed.exitCode !== 0) return end(`putting the skill pack in the sandbox failed (exit ${placed.exitCode ?? "none"})${said(placed.stderr)}`);
9324
+ if (placed.exitCode !== 0) return end(`putting the skill pack in the sandbox failed (exit ${placed.exitCode ?? "none"})${said(placed.stderr)}`, SANDBOX_NOT_PREPARED);
9287
9325
  }
9288
9326
  if (packageFile !== void 0) await sandboxClient.upload(sandbox, PACKAGE_FILE, readFileSync(packageFile));
9289
9327
  await sandboxClient.upload(sandbox, SECRET_FILE, joinSecret);
9290
9328
  const unpacked = await sandboxClient.command(sandbox, `tar xzf ${SANDBOX_DIR}/dist.tgz -C ${CLI_DIR} && rm -f ${SANDBOX_DIR}/dist.tgz && sudo chown 60100:60100 ${SECRET_FILE} && sudo chmod 400 ${SECRET_FILE}`);
9291
- if (unpacked.exitCode !== 0) return end(`putting the CLI in the sandbox failed (exit ${unpacked.exitCode ?? "none"})${said(unpacked.stderr)}`);
9329
+ if (unpacked.exitCode !== 0) return end(`putting the CLI in the sandbox failed (exit ${unpacked.exitCode ?? "none"})${said(unpacked.stderr)}`, SANDBOX_NOT_PREPARED);
9292
9330
  } catch (err) {
9293
- return end(`putting the CLI in the sandbox failed: ${err instanceof SandboxError ? describeSandboxError(err) : describeCallFailure(err)}`);
9331
+ return end(`putting the CLI in the sandbox failed: ${err instanceof SandboxError ? describeSandboxError(err) : describeCallFailure(err)}`, SANDBOX_NOT_PREPARED);
9294
9332
  }
9295
9333
  if (own.docker) {
9296
9334
  const set = await commandIn(sandboxClient, sandbox, daemonSetupLine());
9297
- if (set.exitCode !== 0) return end(`setting the Docker daemon's proxy in the sandbox failed (exit ${set.exitCode ?? "none"})${said(set.stderr)}`);
9335
+ if (set.exitCode !== 0) return end(`setting the Docker daemon's proxy in the sandbox failed (exit ${set.exitCode ?? "none"})${said(set.stderr)}`, SANDBOX_NOT_PREPARED);
9298
9336
  }
9299
9337
  const engine = await host.version();
9300
- if (engine === null) return end("Docker is not available in the sandbox: `docker version` failed");
9338
+ if (engine === null) return end("Docker is not available in the sandbox: `docker version` failed", NO_DOCKER);
9301
9339
  const limits2 = containerLimitsOf(containerSizeOf(sandbox, sized.size), config.build);
9302
9340
  const volume = await host.createVolume(volumeName, { [BUILD_LABEL]: buildId, [RUNNER_LABEL]: runnerId });
9303
9341
  if (volume.status !== 0) return dockerFailed("creating the build's volume", volume);
@@ -9319,14 +9357,14 @@ async function provisionSandboxOnce(input, allowRestore, itemDiskFailed, noSave)
9319
9357
  let dockerGroup;
9320
9358
  if (own.docker) {
9321
9359
  const mounted = await commandIn(sandboxClient, sandbox, hostMountLine(volumeName));
9322
- if (mounted.exitCode !== 0) return end(`mounting the build's volume at ${HOST_BUILD_DIR} in the sandbox failed (exit ${mounted.exitCode ?? "none"})${said(mounted.stderr)}`);
9360
+ if (mounted.exitCode !== 0) return end(`mounting the build's volume at ${HOST_BUILD_DIR} in the sandbox failed (exit ${mounted.exitCode ?? "none"})${said(mounted.stderr)}`, SANDBOX_NOT_PREPARED);
9323
9361
  const group = await commandIn(sandboxClient, sandbox, `stat -c %g ${DOCKER_SOCKET}`);
9324
9362
  dockerGroup = group.stdout.trim();
9325
- if (group.exitCode !== 0 || !/^\d+$/.test(dockerGroup)) return end(`reading the group of the Docker socket in the sandbox failed (exit ${group.exitCode ?? "none"})${said(group.stderr)}`);
9363
+ if (group.exitCode !== 0 || !/^\d+$/.test(dockerGroup)) return end(`reading the group of the Docker socket in the sandbox failed (exit ${group.exitCode ?? "none"})${said(group.stderr)}`, SANDBOX_NOT_PREPARED);
9326
9364
  }
9327
9365
  const imageConfig = await host.imageConfig(image);
9328
9366
  const resolved = await resolveBuildUser(sandboxed, runInput, { remoteUser: apply.remoteUser, imageUser: imageConfig.user }, logPath);
9329
- if (!resolved.ok) return end(resolved.reason);
9367
+ if (!resolved.ok) return end(resolved.reason, void 0);
9330
9368
  containerState.agentUser = resolved.user;
9331
9369
  if (resolved.home !== void 0) containerState.home = resolved.home;
9332
9370
  const agentUser = resolved.user;
@@ -9336,17 +9374,17 @@ async function provisionSandboxOnce(input, allowRestore, itemDiskFailed, noSave)
9336
9374
  if (changed !== void 0) return giveUpState(fromState, changed);
9337
9375
  }
9338
9376
  input.save(state, environment);
9339
- if (input.aborted()) return bail("", true);
9377
+ if (input.aborted()) return bail("", void 0, true);
9340
9378
  const network = await startSandboxNetwork({ runtime, sandboxed, sandboxClient, sandbox, runnerDir: runnerDir(config.configPath), build: { buildId, runnerId, container, image, limits: limits2 }, logPath, docker: own.docker });
9341
- if ("failed" in network) return end(network.failed);
9379
+ if ("failed" in network) return end(network.failed, SANDBOX_NOT_PREPARED);
9342
9380
  if ("none" in network) log.line(`${tag} ${noHelperLine(network.none)}`);
9343
9381
  else containerState.network = network.helper;
9344
9382
  const runArgs = containerRunArgs({ ...runInput, home: containerState.home, network: containerState.network }, runtime.agents);
9345
9383
  const started = await host.run(sandboxRunArgs(runArgs, { skillPack: skillPack !== void 0, packageFile: packageFile !== void 0, dockerGroup, joined: containerState.network !== void 0 }), { logPath });
9346
9384
  if (started.status !== 0) return dockerFailed("starting the build's container", started);
9347
9385
  joinRelay(runtime, sandbox, { buildId, container }, services.streams, joinSecret, (line2) => log.line(`${tag} ${line2}`));
9348
- if (input.aborted()) return bail("", true);
9349
- if (!await waitForRelay2(sandboxed, container)) return end("the relay in the build's container did not start");
9386
+ if (input.aborted()) return bail("", void 0, true);
9387
+ if (!await waitForRelay2(sandboxed, container)) return end("the relay in the build's container did not start", SANDBOX_NOT_PREPARED);
9350
9388
  const deliverGh = async (delivered) => {
9351
9389
  const ghDelivered = await deliverJobFiles(sandboxed, containerState, ["gh"], secrets);
9352
9390
  if (!ghDelivered.ok) return ghDelivered;
@@ -9362,11 +9400,11 @@ async function provisionSandboxOnce(input, allowRestore, itemDiskFailed, noSave)
9362
9400
  const deliverHeldGh = async () => deliverGh(await tokens.token("read").catch(() => void 0));
9363
9401
  if (!managed) {
9364
9402
  const ghDelivered = await deliverGh(readToken);
9365
- if (!ghDelivered.ok) return end(ghDelivered.reason);
9403
+ if (!ghDelivered.ok) return end(ghDelivered.reason, SANDBOX_NOT_PREPARED);
9366
9404
  }
9367
9405
  const tools = await host.exec({ container, user: ADDED_USER, env: NO_ENV2, argv: ["cat", "/opt/outerlayer/tools.json"] });
9368
9406
  const missingAgent = agentMissingFromImage(tools.stdout, runtime.agents, input.job);
9369
- if (missingAgent !== void 0) return end(imageLacksAgentReason(missingAgent.descriptor.label, managed));
9407
+ if (missingAgent !== void 0) return end(imageLacksAgentReason(missingAgent.descriptor.label, managed), imageLacksAgent(missingAgent.descriptor.label));
9370
9408
  const agentVersion = agentVersionOf(tools.status === 0 ? tools.stdout : "", runtime.agents, input.job);
9371
9409
  environment.agentVersion = agentVersion;
9372
9410
  const judgeProgram2 = await judgeProgramRecord((argv) => host.exec({ container, user: ADDED_USER, env: NO_ENV2, argv }), runtime.agents, input.job);
@@ -9374,7 +9412,7 @@ async function provisionSandboxOnce(input, allowRestore, itemDiskFailed, noSave)
9374
9412
  input.save(state, environment);
9375
9413
  if (input.queue === "review") {
9376
9414
  const ghDelivered = managed ? await deliverHeldGh() : { ok: true };
9377
- if (!ghDelivered.ok) return end(ghDelivered.reason);
9415
+ if (!ghDelivered.ok) return end(ghDelivered.reason, SANDBOX_NOT_PREPARED);
9378
9416
  return { ok: true, workdir: CHECKOUT_DIR, state, environment };
9379
9417
  }
9380
9418
  const stepExec = async (argv, workdir, opts) => {
@@ -9446,7 +9484,7 @@ async function provisionSandboxOnce(input, allowRestore, itemDiskFailed, noSave)
9446
9484
  }
9447
9485
  });
9448
9486
  if (!steps.ok && steps.handedOver === true) {
9449
- if (input.aborted()) return bail("", true);
9487
+ if (input.aborted()) return bail("", void 0, true);
9450
9488
  const result = saved;
9451
9489
  try {
9452
9490
  await cleanupSandbox(runtime, { buildId, sandboxId: state.sandboxId, container: containerState });
@@ -9457,7 +9495,7 @@ async function provisionSandboxOnce(input, allowRestore, itemDiskFailed, noSave)
9457
9495
  }
9458
9496
  if (!steps.ok) {
9459
9497
  if (fromState !== void 0 && !setupPassed && steps.aborted !== true) return giveUpState(fromState, steps.reason);
9460
- return settleFailedSteps(steps, { giveUp: (reason) => giveUpItemDisk(reason, "checkout_not_switched"), bail });
9498
+ return settleFailedSteps(steps, { giveUp: (reason) => giveUpItemDisk(reason, "checkout_not_switched"), bail: (reason, aborted2) => bail(reason, void 0, aborted2) });
9461
9499
  }
9462
9500
  containerState.startCommit = steps.startCommit;
9463
9501
  keepRuntimeStep(containerState, steps);
@@ -13409,6 +13447,16 @@ function oneCutLine(text2, max) {
13409
13447
  function sendableReason(reason) {
13410
13448
  return reason === void 0 ? void 0 : oneCutLine(withoutControls(reason), REASON_MAX2);
13411
13449
  }
13450
+ var BARE_CODE = /^[a-z][a-z0-9_]*$/;
13451
+ function reasonWithNote(reason, note) {
13452
+ const head = reason?.trim() ?? "";
13453
+ if (head === "") return cutReasonLine(note);
13454
+ const joint = BARE_CODE.test(head) ? ": " : /[.!?]$/.test(head) ? " " : ". ";
13455
+ const room = REASON_MAX2 - note.length - joint.length;
13456
+ if (head.length <= room) return `${head}${joint}${note}`;
13457
+ const kept = REASON_MAX2 - note.length - 1 - REASON_CUT.length;
13458
+ return kept <= 0 ? cutReasonLine(note) : `${cutReasonLine(head, kept).trimEnd()}${REASON_CUT} ${note}`;
13459
+ }
13412
13460
  function scrubTunnelRecord(record, config, jobDir) {
13413
13461
  if (record === void 0) return void 0;
13414
13462
  const home = homeFromEnv();
@@ -13543,7 +13591,7 @@ async function releaseLease(config, item, outcome, detail, fetchImpl) {
13543
13591
  `/v1/work-items/${item}/claim/release`,
13544
13592
  config.apiKey,
13545
13593
  config.appId,
13546
- { host: config.host, claimId: detail.claimId, outcome: sent2, stage: detail.stage, exitCode: detail.exitCode, reason: detail.reason, environment: environment2, resume: resume2, disk: disk2, log: log2, endedAt: endedAt2 },
13594
+ { host: config.host, claimId: detail.claimId, outcome: sent2, stage: detail.stage, exitCode: detail.exitCode, reason: detail.reason, cause: detail.cause, environment: environment2, resume: resume2, disk: disk2, log: log2, endedAt: endedAt2 },
13547
13595
  fetchImpl,
13548
13596
  void 0,
13549
13597
  await signerFor(config.configPath)
@@ -13795,6 +13843,7 @@ async function finishJob(job, jobDirPath, outcome, config, deps, ending) {
13795
13843
  }
13796
13844
  if (outcome !== void 0 && ending?.reason !== void 0) {
13797
13845
  job.reason = RUNNER_WORDED_REASONS.has(ending.reason) ? ending.reason : scrubReason(ending.reason, config, void 0, jobDirPath);
13846
+ job.cause = ending.cause;
13798
13847
  writeJobFile(jobFilePath, job);
13799
13848
  }
13800
13849
  const uploadSessions = async (workdir) => {
@@ -14060,6 +14109,11 @@ async function finishJob(job, jobDirPath, outcome, config, deps, ending) {
14060
14109
  const said2 = agentErrorReason(job, commandOutputTail(jobDirPath, job));
14061
14110
  if (said2 !== void 0) job.reason = scrubReason(said2, config, void 0, jobDirPath);
14062
14111
  }
14112
+ if (outcome === "failed" && config.fleet === true && job.cause === void 0) {
14113
+ tunnelRecord ??= readTunnelRecord(join(jobDirPath, "tunnel.json"));
14114
+ const note = refusedHostsNote(hostsNotAllowed(scrubTunnelRecord(tunnelRecord, config, jobDirPath)));
14115
+ if (note !== void 0 && job.reason?.includes(ALLOWED_HOSTS_SETTING) !== true) job.reason = reasonWithNote(job.reason, note);
14116
+ }
14063
14117
  const cliVersion = deps.cliVersion ?? resolveVersion();
14064
14118
  const base = job.environment ?? (job.microvm !== void 0 ? { isolation: "vm", cliVersion } : !isIsolatedJob(job) ? sharedUserEnvironment(cliVersion) : { isolation: "container", cliVersion });
14065
14119
  if (isolated || job.build !== void 0) {
@@ -14078,7 +14132,7 @@ async function finishJob(job, jobDirPath, outcome, config, deps, ending) {
14078
14132
  const sentAtMs = endedAt.getTime();
14079
14133
  const runnerLog = valuesNotHeld ? `The runner sends no log for this attempt: ${VALUES_NOT_HELD}.
14080
14134
  ` : releaseLogFor(jobDirPath, job, config);
14081
- const detail = outcome === void 0 ? { log: runnerLog, endedAt: endedAt.toISOString() } : { stage: job.endStage, exitCode: job.endExitCode, reason: sendableReason(job.reason), environment: job.environment, resume: job.resume, disk: job.disk, log: runnerLog, endedAt: endedAt.toISOString() };
14135
+ const detail = outcome === void 0 ? { log: runnerLog, endedAt: endedAt.toISOString() } : { stage: job.endStage, exitCode: job.endExitCode, reason: sendableReason(job.reason), cause: job.cause, environment: job.environment, resume: job.resume, disk: job.disk, log: runnerLog, endedAt: endedAt.toISOString() };
14082
14136
  const release = await retrySend(() => sendRelease(config, job, outcome, detail, deps.fetchImpl), {
14083
14137
  now: deps.now,
14084
14138
  sleep: deps.sleep
@@ -14158,7 +14212,7 @@ async function retryFailedReleases(jobsDirPath, config, deps) {
14158
14212
  continue;
14159
14213
  }
14160
14214
  const runnerLog = readScrubbedReleaseLog(dirPath) ?? releaseLogFor(dirPath, job, config);
14161
- const detail = job.outcome === void 0 ? { log: runnerLog, endedAt: job.endedAt } : { stage: job.endStage, exitCode: job.endExitCode, reason: sendableReason(job.reason), environment: job.environment, resume: job.resume, disk: job.disk, log: runnerLog, endedAt: job.endedAt };
14215
+ const detail = job.outcome === void 0 ? { log: runnerLog, endedAt: job.endedAt } : { stage: job.endStage, exitCode: job.endExitCode, reason: sendableReason(job.reason), cause: job.cause, environment: job.environment, resume: job.resume, disk: job.disk, log: runnerLog, endedAt: job.endedAt };
14162
14216
  const release = await retrySend(() => sendRelease(config, job, job.outcome, detail, deps.fetchImpl), {
14163
14217
  now: deps.now,
14164
14218
  sleep: deps.sleep
@@ -14407,4 +14461,4 @@ function makeRecorder(input) {
14407
14461
  };
14408
14462
  }
14409
14463
 
14410
- export { ADOPTED_FETCH_RETRY_WINDOW_MS, ALREADY_RELEASED, AttemptLogBook, EXIT_CODE_FILE, GUEST_USAGE_INTERVAL_MS, HELPER_ENV, KIND_LABEL, LEASE_SECONDS, MICROVM_COMMAND_DIR, MIN_ENGINE_MAJOR, NO_LOG, PLACEHOLDER_MARKER, RENEW_INTERVAL_SECONDS, RunnerInitError, SandboxContainerStoppedError, SandboxGoneError, addRunnerAgent, agentCredentialCheck, agentCredentialFromFiles, appendCommandLog, attemptNote, buildSkillPaths, builtOf, carriedProblems, checksIn, claimPermissionProblem, claimRun, commandEndReasonOf, commandLogOffset, containerCommandExec, createContainerRuntime, createGatewaySandboxClient, createHousekeepingDocker, createLeaseChannel, credentialVerdict, currentSkillCommand, decideHostBuildSkill, deliverCommitHooks, deliverContainerHooks, deliverExecMaven, deliverJobFiles, deliverSandboxHooks, describeHookEnd, describeMachineDocker, detectMachine, dropNonProblems, ensureFirecrackerAndJailer, ensureNetworkReady, ensureTunnel, environmentFor, execArgv, execCommandLine, fetchManagedBuildSettings, fetchManagedModelKey, filesAreCopied, finishJob, foldSample, formerSkillProblem, formerSkillQueues, freeItemDisksUntil, gatewayRefusalReason, gitRemoteFor, hasRunnerBlock, heldSandboxClaimsOf, helperFirecrackerNote, helperSocketPath, holdManagedBuildSettings, holdManagedKey, holdsHostDisk, hookLimitsFor, hostCommandEnvironment, hostEnvironment, housekeepingDockerIfReachable, inSandbox, inTeardown, installTrust, isContainerTracked, isGroupAlive, isIdle, isIsolatedJob, isMicroVmTracked, isPlaceholderCommand, isReadable, isSandboxTracked, isTimedOut, isTracked, isUnfinished, issueText, itemScope, itemTag, jobEnv, jobRecordsClaim, jobTimeLimitMinutes, judgeCredential, judgeProbe, keepGhConfigCurrent, keptCommitsLine, keptSandboxIds, keptSessionDir, leaseExpiresAtMs, leaseTimeLeftMs, lifecycleFailureReason, lifecycleSteps, listAdoptableJobs, listItemDisks, listTrackedJobs, listUnreadableJobs, listenOnBroker, makeRecorder, managedBuildSettingsFor, markdownSection, measureDisk, mergeAnswers, microVmArchSupported, microVmAssetsPinned, microVmCommandLine, microVmOomKills, missingJudgeCredential, missingPermissionFix, missingPermissionOf, modellessProblem, modellessQueues, nativeWindowsSandboxRefusal, needsAgentCredential, needsBuildSkill, needsRenew, noteMissingCredential, outcomeFromExitCode, parseCpuList, parseRunClaim, permissionModeProblem, permissionModeProblems, placeholderProblem, placeholderQueues, prepareBranch, prepareResume, prepareRunnerInit, probeCommand, probeHelper, probeMicroVmCommand, probeSandboxCommand, provisionContainer, provisionEnvironment, provisionMicroVm, provisionSandbox, reachDockerStep, readConfigObject, readCpuUsec, readDefinitions, readProvisionOut, readRecords, readWorkItem, recordsProofsOnly, recoverLostJobs, rejoinSandboxBuild, releaseLease, releaseRun, removeOldestUntil, removeRunnerBlock, renewLease, renewRun, resolveHostBuild, restartSender, restoreSessionIntoContainer, restoreSessionIntoMicroVm, restoreSessionIntoSandbox, restoreWork, retryFailedReleases, reviewFiles, runCommand, runCommandFor, runCommandOf, runDecision, runHook, runHousekeeping, runRunnerInit, runWithSpawn, sampleGuest, savedStatesDir, scrubReason, serveLease, sessionGuestOfContainer, sessionGuestOfMicroVm, sessionGuestOfSandbox, setStage, setUpRunnerCgroup, shellQuote, startHostServices, startMicroVmCommand, startSandboxCommand, startSender, startServicesFor, stopOrphanedMicroVms, stoppedHelperReason, storedProblemsText, stripTerminalControls, superviseRuns, supportsContainerBuilds, supportsMicroVmBuilds, sweepImageBuilders, sweepSandboxes, territories, territoryBrief, timeoutAfter, treeFileText, unfinishedJobs, unreviewedFiles, unreviewedItem, vmAlive, withJobTimeLimit, withTunnelLog, workRestoredEnv, workdirProblem, writeGuestGhConfig, writeRunnerInit };
14464
+ export { ADOPTED_FETCH_RETRY_WINDOW_MS, ALREADY_RELEASED, AttemptLogBook, EXIT_CODE_FILE, GUEST_USAGE_INTERVAL_MS, HELPER_ENV, KIND_LABEL, LEASE_SECONDS, MICROVM_COMMAND_DIR, MIN_ENGINE_MAJOR, NO_LOG, PLACEHOLDER_MARKER, RENEW_INTERVAL_SECONDS, RunnerInitError, SANDBOX_NOT_PREPARED, SandboxContainerStoppedError, SandboxGoneError, addRunnerAgent, agentCredentialCheck, agentCredentialFromFiles, appendCommandLog, attemptNote, buildSkillPaths, builtOf, carriedProblems, checksIn, claimPermissionProblem, claimRun, commandEndReasonOf, commandLogOffset, containerCommandExec, createContainerRuntime, createGatewaySandboxClient, createHousekeepingDocker, createLeaseChannel, credentialVerdict, currentSkillCommand, decideHostBuildSkill, deliverCommitHooks, deliverContainerHooks, deliverExecMaven, deliverJobFiles, deliverSandboxHooks, describeHookEnd, describeMachineDocker, detectMachine, dropNonProblems, ensureFirecrackerAndJailer, ensureNetworkReady, ensureTunnel, environmentFor, execArgv, execCommandLine, fetchManagedBuildSettings, fetchManagedModelKey, filesAreCopied, finishJob, foldSample, formerSkillProblem, formerSkillQueues, freeItemDisksUntil, gatewayRefusalReason, gitRemoteFor, hasRunnerBlock, heldSandboxClaimsOf, helperFirecrackerNote, helperSocketPath, holdManagedBuildSettings, holdManagedKey, holdsHostDisk, hookLimitsFor, hostCommandEnvironment, hostEnvironment, housekeepingDockerIfReachable, inSandbox, inTeardown, installTrust, isContainerTracked, isGroupAlive, isIdle, isIsolatedJob, isMicroVmTracked, isPlaceholderCommand, isReadable, isSandboxTracked, isTimedOut, isTracked, isUnfinished, issueText, itemScope, itemTag, jobEnv, jobRecordsClaim, jobTimeLimitMinutes, judgeCredential, judgeProbe, keepGhConfigCurrent, keptCommitsLine, keptSandboxIds, keptSessionDir, leaseExpiresAtMs, leaseTimeLeftMs, lifecycleFailureReason, lifecycleSteps, listAdoptableJobs, listItemDisks, listTrackedJobs, listUnreadableJobs, listenOnBroker, makeRecorder, managedBuildSettingsFor, managedFaultReason, markdownSection, measureDisk, mergeAnswers, microVmArchSupported, microVmAssetsPinned, microVmCommandLine, microVmOomKills, missingJudgeCredential, missingPermissionFix, missingPermissionOf, modellessProblem, modellessQueues, nativeWindowsSandboxRefusal, needsAgentCredential, needsBuildSkill, needsRenew, noteMissingCredential, outcomeFromExitCode, parseCpuList, parseRunClaim, permissionModeProblem, permissionModeProblems, placeholderProblem, placeholderQueues, prepareBranch, prepareResume, prepareRunnerInit, probeCommand, probeHelper, probeMicroVmCommand, probeSandboxCommand, provisionContainer, provisionEnvironment, provisionMicroVm, provisionSandbox, reachDockerStep, readConfigObject, readCpuUsec, readDefinitions, readProvisionOut, readRecords, readWorkItem, recordsProofsOnly, recoverLostJobs, rejoinSandboxBuild, releaseLease, releaseRun, removeOldestUntil, removeRunnerBlock, renewLease, renewRun, resolveHostBuild, restartSender, restoreSessionIntoContainer, restoreSessionIntoMicroVm, restoreSessionIntoSandbox, restoreWork, retryFailedReleases, reviewFiles, runCommand, runCommandFor, runCommandOf, runDecision, runHook, runHousekeeping, runRunnerInit, runWithSpawn, sampleGuest, savedStatesDir, scrubReason, serveLease, sessionGuestOfContainer, sessionGuestOfMicroVm, sessionGuestOfSandbox, setStage, setUpRunnerCgroup, shellQuote, startHostServices, startMicroVmCommand, startSandboxCommand, startSender, startServicesFor, stopOrphanedMicroVms, stoppedHelperReason, storedProblemsText, stripTerminalControls, superviseRuns, supportsContainerBuilds, supportsMicroVmBuilds, sweepImageBuilders, sweepSandboxes, territories, territoryBrief, timeoutAfter, treeFileText, unfinishedJobs, unreviewedFiles, unreviewedItem, vmAlive, withJobTimeLimit, withTunnelLog, workRestoredEnv, workdirProblem, writeGuestGhConfig, writeRunnerInit };
@@ -1,6 +1,6 @@
1
1
  #!/usr/bin/env node
2
2
  import { createRequire } from 'node:module';
3
- import { stripTerminalControls } from './chunk-UE6ZEQAL.js';
3
+ import { stripTerminalControls } from './chunk-XI635QEJ.js';
4
4
  import { tagToPull, imageTag, pullInstruction, readUpdateStatus, runnerImageVersion } from './chunk-NXYTICCS.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 { gatherDoctorChecks, doctorExitCode, summarizeChecks, renderDoctorText, recordWrapped, recordUnwrapped, recordRemoval, readManifest, recordInstall, recordStatusline } from './chunk-CUPEP5D2.js';
3
+ import { gatherDoctorChecks, doctorExitCode, summarizeChecks, renderDoctorText, recordWrapped, recordUnwrapped, recordRemoval, readManifest, recordInstall, recordStatusline } from './chunk-EIAE4HE5.js';
4
4
  import './chunk-CNEOUUPF.js';
5
5
  import { SETUP_AGENTS, setupAgentLabel } from './chunk-IMGBXZUX.js';
6
6
  import { verifiedTrackerNames, TRACKERS } from './chunk-ASAIS67T.js';
@@ -3961,13 +3961,13 @@ what CLIs older than ${FIRST_VERSION_READING_AGENTS_SKILLS} do. \`` + cliInvocat
3961
3961
  if (changed.length > 0 && !opts.json) process.stdout.write(`Removed the claude function from ${changed.join(", ")}.
3962
3962
  `);
3963
3963
  }
3964
- const shell = !opts.remove && opts.shellFunction !== void 0 ? (await import('./init-cmd-N35UZUCM.js')).applyShellFunctionFlag(opts.shellFunction, { home: homeFromEnv(), shellPath: process.env.SHELL }) : void 0;
3964
+ const shell = !opts.remove && opts.shellFunction !== void 0 ? (await import('./init-cmd-TOS5IA2V.js')).applyShellFunctionFlag(opts.shellFunction, { home: homeFromEnv(), shellPath: process.env.SHELL }) : void 0;
3965
3965
  if (opts.json) writeJson(shell === void 0 ? outcome.result : { ...outcome.result, shellFunction: { outcome: shell.outcome, reason: shell.reason } });
3966
3966
  else process.stdout.write(outcome.text + skillsLine + (shell?.text ?? ""));
3967
3967
  return;
3968
3968
  }
3969
3969
  await installMachineSkillsForSetup();
3970
- const { runInitCommand } = await import('./init-cmd-N35UZUCM.js');
3970
+ const { runInitCommand } = await import('./init-cmd-TOS5IA2V.js');
3971
3971
  const code = await runInitCommand(
3972
3972
  { json: opts.json, factory: opts.factory, shellFunction: opts.shellFunction },
3973
3973
  {
@@ -4038,8 +4038,8 @@ build skill. With the config alone, setup names the missing file, why it is
4038
4038
  missing and the commands that add it, and exits 1.
4039
4039
  `
4040
4040
  ).action(async (opts) => {
4041
- const { runSetupCommand } = await import('./setup-cmd-IBGMGFMJ.js');
4042
- const { realSetupDeps } = await import('./setup-wiring-O5SJZBTP.js');
4041
+ const { runSetupCommand } = await import('./setup-cmd-HAYSPZJQ.js');
4042
+ const { realSetupDeps } = await import('./setup-wiring-HABXYP6Y.js');
4043
4043
  const cliBin = resolveCliBin();
4044
4044
  const agentWords = runnerHelpWords();
4045
4045
  const code = await runSetupCommand(
@@ -5266,7 +5266,7 @@ a runner build, no row is failed.
5266
5266
  fail(trackerNumberError("--pr", opts.pr));
5267
5267
  return;
5268
5268
  }
5269
- const { runWorkProofsCommand } = await import('./work-proofs-cmd-EJPH5GY3.js');
5269
+ const { runWorkProofsCommand } = await import('./work-proofs-cmd-FSPZ64EK.js');
5270
5270
  await runWorkProofsCommand({ ...opts, ...pr === void 0 ? {} : { pr } });
5271
5271
  });
5272
5272
  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) => {
@@ -5291,7 +5291,7 @@ by a different key is refused; claiming again with the same key extends
5291
5291
  it. --host is a label only.
5292
5292
  `
5293
5293
  ).action(async (opts) => {
5294
- const { runWorkClaim, WorkCommandError } = await import('./work-claim-cmd-2WWN4XB7.js');
5294
+ const { runWorkClaim, WorkCommandError } = await import('./work-claim-cmd-JURSVSEI.js');
5295
5295
  try {
5296
5296
  await runWorkClaim(opts);
5297
5297
  } catch (err) {
@@ -5311,7 +5311,7 @@ Extends the live lease this API key holds. Refused with a 410 if the
5311
5311
  lease has expired, or a 403 if a different key holds it.
5312
5312
  `
5313
5313
  ).action(async (opts) => {
5314
- const { runWorkRenew, WorkCommandError } = await import('./work-claim-cmd-2WWN4XB7.js');
5314
+ const { runWorkRenew, WorkCommandError } = await import('./work-claim-cmd-JURSVSEI.js');
5315
5315
  try {
5316
5316
  await runWorkRenew(opts);
5317
5317
  } catch (err) {
@@ -5343,7 +5343,7 @@ applies to a host's lease only. A later tool call in the session
5343
5343
  takes the lease again.
5344
5344
  `
5345
5345
  ).action(async (opts) => {
5346
- const { runWorkRelease, WorkCommandError } = await import('./work-claim-cmd-2WWN4XB7.js');
5346
+ const { runWorkRelease, WorkCommandError } = await import('./work-claim-cmd-JURSVSEI.js');
5347
5347
  try {
5348
5348
  await runWorkRelease(opts);
5349
5349
  } catch (err) {
@@ -5490,7 +5490,7 @@ function registerRunnerCommands(program2) {
5490
5490
  const configOption = "the cloud config file to run against (default: ~/.outerlayer/config.json)";
5491
5491
  runnerCmd.command("start").description("Run the loop: claim work, run it, report, clean up, repeat").option("--config <path>", configOption).action(async (opts) => {
5492
5492
  const { defaultRunnerConfigPath, RunnerConfigError } = await import('./config-Y4PCLHUG.js');
5493
- const { start, RunnerStartError } = await import('./loop-YMGQKGIS.js');
5493
+ const { start, RunnerStartError } = await import('./loop-OODXAKC6.js');
5494
5494
  const { RunnerAlreadyRunningError } = await import('./pidfile-J774ZYPM.js');
5495
5495
  const configPath = opts.config ?? defaultRunnerConfigPath();
5496
5496
  try {
@@ -5514,8 +5514,8 @@ The image sets OUTERLAYER_RUNNER_IMAGE; outside the image, use \`runner start\`.
5514
5514
  `
5515
5515
  ).action(async () => {
5516
5516
  const { defaultRunnerConfigPath, RunnerConfigError } = await import('./config-Y4PCLHUG.js');
5517
- const { containerStart, containerStartExit } = await import('./container-start-R2C2UNL6.js');
5518
- const { start, RunnerStartError } = await import('./loop-YMGQKGIS.js');
5517
+ const { containerStart, containerStartExit } = await import('./container-start-UGVA5X7P.js');
5518
+ const { start, RunnerStartError } = await import('./loop-OODXAKC6.js');
5519
5519
  const { RunnerAlreadyRunningError } = await import('./pidfile-J774ZYPM.js');
5520
5520
  try {
5521
5521
  const outcome = containerStartExit(await containerStart({
@@ -5539,14 +5539,14 @@ The image sets OUTERLAYER_RUNNER_IMAGE; outside the image, use \`runner start\`.
5539
5539
  ).action(async (opts) => {
5540
5540
  const { defaultRunnerConfigPath } = await import('./config-Y4PCLHUG.js');
5541
5541
  const { runnerDir } = await import('./paths-2NB6OM44.js');
5542
- const { runUpdateSteps } = await import('./update-steps-U7JDUYLU.js');
5542
+ const { runUpdateSteps } = await import('./update-steps-PDYCC5HX.js');
5543
5543
  const text = await runUpdateSteps({ runnerDirPath: runnerDir(opts.config ?? defaultRunnerConfigPath()) });
5544
5544
  process.stdout.write(`${text}
5545
5545
  `);
5546
5546
  });
5547
5547
  runnerCmd.command("check").description("Validate the config, the hooks and the key, and print the effective settings").option("--config <path>", configOption).action(async (opts) => {
5548
5548
  const { defaultRunnerConfigPath } = await import('./config-Y4PCLHUG.js');
5549
- const { runRunnerCheck } = await import('./check-HABHY27Y.js');
5549
+ const { runRunnerCheck } = await import('./check-ZCF7AI73.js');
5550
5550
  const configPath = opts.config ?? defaultRunnerConfigPath();
5551
5551
  const result = await runRunnerCheck(configPath);
5552
5552
  if (!result.ok) {
@@ -5580,13 +5580,13 @@ The image sets OUTERLAYER_RUNNER_IMAGE; outside the image, use \`runner start\`.
5580
5580
  }
5581
5581
  }
5582
5582
  const buildCpusMax = opts.buildCpusMax === void 0 ? void 0 : Number(opts.buildCpusMax);
5583
- if (buildCpusMax !== void 0 && !(await import('./command-GZJHU5QD.js')).cpusAreValid(buildCpusMax)) {
5583
+ if (buildCpusMax !== void 0 && !(await import('./command-6IRYBERW.js')).cpusAreValid(buildCpusMax)) {
5584
5584
  fail(`--build-cpus-max ${opts.buildCpusMax} is not a number of CPUs from 0.01 to 1024.`);
5585
5585
  return;
5586
5586
  }
5587
5587
  try {
5588
5588
  if (opts.service === true) {
5589
- const { installServiceCommand, serviceSuccessText } = await import('./command-GZJHU5QD.js');
5589
+ const { installServiceCommand, serviceSuccessText } = await import('./command-6IRYBERW.js');
5590
5590
  const result2 = await installServiceCommand({
5591
5591
  configPath,
5592
5592
  print: opts.print,
@@ -5641,7 +5641,7 @@ To keep it running, run ${C.yellow}${cliInvocation()} runner install --service${
5641
5641
  return;
5642
5642
  }
5643
5643
  const { defaultRunnerConfigPath } = await import('./config-Y4PCLHUG.js');
5644
- const { uninstallServiceCommand } = await import('./command-GZJHU5QD.js');
5644
+ const { uninstallServiceCommand } = await import('./command-6IRYBERW.js');
5645
5645
  const result = await uninstallServiceCommand({ configPath: opts.config ?? defaultRunnerConfigPath(), unitName: opts.unitName, home: homeFromEnv() });
5646
5646
  if (result.ok) for (const line of result.lines) process.stdout.write(`${C.green}\u2713${C.reset} ${line}
5647
5647
  `);
@@ -5674,11 +5674,11 @@ On a runner that already builds with ${words().agent}, it replaces the credentia
5674
5674
  `
5675
5675
  ).action(async (opts) => {
5676
5676
  const { defaultRunnerConfigPath, loadRunnerConfig, RunnerConfigError } = await import('./config-Y4PCLHUG.js');
5677
- const { addRunnerAgent, hasRunnerBlock, prepareRunnerInit, runRunnerInit, RunnerInitError, writeRunnerInit, removeRunnerBlock, nativeWindowsSandboxRefusal } = await import('./init-RWDQWHCW.js');
5678
- const { askManagedSandboxes } = await import('./check-HABHY27Y.js');
5679
- const { obtainRunnerKey, runnerKeyLogin } = await import('./runner-key-H3CKD4UB.js');
5680
- const { detectMachine } = await import('./machine-AFXMDA56.js');
5681
- const { chooseVm, runVmInit, VmInitError } = await import('./init-ZCNI5SFB.js');
5677
+ const { addRunnerAgent, hasRunnerBlock, prepareRunnerInit, runRunnerInit, RunnerInitError, writeRunnerInit, removeRunnerBlock, nativeWindowsSandboxRefusal } = await import('./init-VBAY7DST.js');
5678
+ const { askManagedSandboxes } = await import('./check-ZCF7AI73.js');
5679
+ const { obtainRunnerKey, runnerKeyLogin } = await import('./runner-key-4UXNGDJA.js');
5680
+ const { detectMachine } = await import('./machine-NUZIF5L5.js');
5681
+ const { chooseVm, runVmInit, VmInitError } = await import('./init-R45QKBSR.js');
5682
5682
  const { credentialFromStdin, isAgentName, restartForCredential, RunnerEnvError } = await import('./runner-env-UIHWITLB.js');
5683
5683
  const { headlessNames: headlessNames2 } = await import('./runner-agents-YGVCO7DM.js');
5684
5684
  const configPath = opts.config ?? defaultRunnerConfigPath();
@@ -5704,7 +5704,7 @@ On a runner that already builds with ${words().agent}, it replaces the credentia
5704
5704
  return;
5705
5705
  }
5706
5706
  try {
5707
- const { agentCredentialText, credentialQuestion, initAgent, terminalQuestion } = await import('./init-agent-YGLQSRVI.js');
5707
+ const { agentCredentialText, credentialQuestion, initAgent, terminalQuestion } = await import('./init-agent-GA3TKIWH.js');
5708
5708
  agent = await initAgent({
5709
5709
  flag: agent,
5710
5710
  handOff: opts.configStdin === true,
@@ -5886,7 +5886,7 @@ ${C.yellow}The runner will not update itself: ${installErr.message}${C.reset}
5886
5886
  let serviceUp = false;
5887
5887
  let restart;
5888
5888
  if (installedLayout) {
5889
- const { installServiceCommand } = await import('./command-GZJHU5QD.js');
5889
+ const { installServiceCommand } = await import('./command-6IRYBERW.js');
5890
5890
  const service = await installServiceCommand({
5891
5891
  configPath,
5892
5892
  entryPath: process.argv[1] ?? "",
@@ -6026,7 +6026,7 @@ A repository with no devcontainer file builds on the universal image the CLI pin
6026
6026
  });
6027
6027
  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) => {
6028
6028
  const { defaultRunnerConfigPath } = await import('./config-Y4PCLHUG.js');
6029
- const { requestStop } = await import('./loop-YMGQKGIS.js');
6029
+ const { requestStop } = await import('./loop-OODXAKC6.js');
6030
6030
  const configPath = opts.config ?? defaultRunnerConfigPath();
6031
6031
  const { runnerImageVersion } = await import('./image-tag-UI33PH7Y.js');
6032
6032
  await requestStop(configPath, Boolean(opts.now), void 0, { image: runnerImageVersion() !== void 0 });
@@ -6034,8 +6034,8 @@ A repository with no devcontainer file builds on the universal image the CLI pin
6034
6034
  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) => {
6035
6035
  const { builtinKind, defaultRunnerConfigPath, loadRunnerConfig } = await import('./config-Y4PCLHUG.js');
6036
6036
  const { jobsDir, runnerDir } = await import('./paths-2NB6OM44.js');
6037
- const { listJobFiles, runnerProcessState } = await import('./loop-YMGQKGIS.js');
6038
- const { renderStatus } = await import('./status-GC2RXFMJ.js');
6037
+ const { listJobFiles, runnerProcessState } = await import('./loop-OODXAKC6.js');
6038
+ const { renderStatus } = await import('./status-CM3K7FBG.js');
6039
6039
  const { readHousekeepingRecord } = await import('./record-FQ2LFBZH.js');
6040
6040
  const path2 = await import('path');
6041
6041
  const configPath = opts.config ?? defaultRunnerConfigPath();
@@ -6118,7 +6118,7 @@ A repository with no devcontainer file builds on the universal image the CLI pin
6118
6118
  });
6119
6119
  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) => {
6120
6120
  const { defaultRunnerConfigPath } = await import('./config-Y4PCLHUG.js');
6121
- const { listJobFiles } = await import('./loop-YMGQKGIS.js');
6121
+ const { listJobFiles } = await import('./loop-OODXAKC6.js');
6122
6122
  const { describeAmbiguous, logPathFor, selectAttempt, tail, RunnerLogsError } = await import('./logs-EVHVINVW.js');
6123
6123
  const configPath = opts.config ?? defaultRunnerConfigPath();
6124
6124
  const jobs = listJobFiles(configPath);
@@ -4,11 +4,11 @@ import { realLaunchAgentHost } from './chunk-3FCYURWW.js';
4
4
  import { realOwnership, accountNamed, handOver, runRunnerInstall, launcherSummary, restartNote, accountIdentity } from './chunk-KRYJAO4X.js';
5
5
  import { installSandboxAgent, uninstallSandboxAgent } from './chunk-57F62BIL.js';
6
6
  import './chunk-TXKHD4Q6.js';
7
- import { installHelper, helperUnitFor, helperSocketFor, uninstallHelper } from './chunk-HT6HMUC3.js';
7
+ import { installHelper, helperUnitFor, helperSocketFor, uninstallHelper } from './chunk-3IRBKL4B.js';
8
8
  import './chunk-RFBEF4AF.js';
9
9
  import { currentLink, execStartCommand } from './chunk-CYQSTT5N.js';
10
- import { detectMachine, ensureFirecrackerAndJailer } from './chunk-UE6ZEQAL.js';
11
- import './chunk-BWDUZJ4K.js';
10
+ import { detectMachine, ensureFirecrackerAndJailer } from './chunk-XI635QEJ.js';
11
+ import './chunk-W2TGACUB.js';
12
12
  import './chunk-2QK7L3WV.js';
13
13
  import './chunk-2PGI6RDE.js';
14
14
  import './chunk-57MLWALQ.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-HNWNJ6QK.js';
4
- import { readOwnContainer } from './chunk-IOWXXJUM.js';
5
- import { detectMachine, supportsContainerBuilds, MIN_ENGINE_MAJOR, describeMachineDocker, RunnerInitError, prepareRunnerInit, writeRunnerInit } from './chunk-UE6ZEQAL.js';
6
- import './chunk-BWDUZJ4K.js';
3
+ import { reportFailedStart, BUILD_MEMORY_VARIABLE } from './chunk-J5FVUVGR.js';
4
+ import { readOwnContainer } from './chunk-YBPEOKBK.js';
5
+ import { detectMachine, supportsContainerBuilds, MIN_ENGINE_MAJOR, describeMachineDocker, RunnerInitError, prepareRunnerInit, writeRunnerInit } from './chunk-XI635QEJ.js';
6
+ import './chunk-W2TGACUB.js';
7
7
  import './chunk-2QK7L3WV.js';
8
8
  import './chunk-2PGI6RDE.js';
9
9
  import './chunk-57MLWALQ.js';
@@ -1,11 +1,11 @@
1
1
  #!/usr/bin/env node
2
2
  import { createRequire } from 'node:module';
3
- import { helperBinaryFor } from './chunk-HT6HMUC3.js';
4
- import { managedProblems, fleetConfigProblem, askFleetMachine } from './chunk-QHZZUINX.js';
3
+ import { helperBinaryFor } from './chunk-3IRBKL4B.js';
4
+ import { managedProblems, fleetConfigProblem, askFleetMachine } from './chunk-CW74N36I.js';
5
5
  import { launcherCheck } from './chunk-RFBEF4AF.js';
6
6
  import './chunk-CYQSTT5N.js';
7
- import { credentialVerdict, needsAgentCredential, agentCredentialFromFiles, agentCredentialCheck, detectMachine, supportsContainerBuilds, describeMachineDocker, MIN_ENGINE_MAJOR, reachDockerStep, supportsMicroVmBuilds, microVmArchSupported, microVmAssetsPinned, helperFirecrackerNote, probeHelper, helperSocketPath, KIND_LABEL, missingPermissionOf, missingPermissionFix } from './chunk-UE6ZEQAL.js';
8
- import './chunk-BWDUZJ4K.js';
7
+ import { credentialVerdict, needsAgentCredential, agentCredentialFromFiles, agentCredentialCheck, detectMachine, supportsContainerBuilds, describeMachineDocker, MIN_ENGINE_MAJOR, reachDockerStep, supportsMicroVmBuilds, microVmArchSupported, microVmAssetsPinned, helperFirecrackerNote, probeHelper, helperSocketPath, KIND_LABEL, missingPermissionOf, missingPermissionFix } from './chunk-XI635QEJ.js';
8
+ import './chunk-W2TGACUB.js';
9
9
  import './chunk-2QK7L3WV.js';
10
10
  import './chunk-2PGI6RDE.js';
11
11
  import './chunk-57MLWALQ.js';
@@ -1,7 +1,7 @@
1
1
  #!/usr/bin/env node
2
2
  import { createRequire } from 'node:module';
3
- export { builtOf, checksIn, makeRecorder, readDefinitions, timeoutAfter } from './chunk-UE6ZEQAL.js';
4
- import './chunk-BWDUZJ4K.js';
3
+ export { builtOf, checksIn, makeRecorder, readDefinitions, timeoutAfter } from './chunk-XI635QEJ.js';
4
+ import './chunk-W2TGACUB.js';
5
5
  import './chunk-2QK7L3WV.js';
6
6
  import './chunk-2PGI6RDE.js';
7
7
  import './chunk-57MLWALQ.js';
package/dist/index.js CHANGED
@@ -25,5 +25,5 @@ var { runSubcommand } = await import('./agent-subcommand-EJNVXLNB.js');
25
25
  var launcherCode = await runSubcommand(argv);
26
26
  if (launcherCode !== void 0) process.exit(launcherCode);
27
27
  (await import('./hook-fast-PUFMMGLY.js')).recordLinkExitFailure(argv);
28
- var { runCli } = await import('./cli-KDLYNUNH.js');
28
+ var { runCli } = await import('./cli-376NPUD5.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-UE6ZEQAL.js';
5
- import './chunk-BWDUZJ4K.js';
4
+ import { RunnerInitError, readConfigObject } from './chunk-XI635QEJ.js';
5
+ import './chunk-W2TGACUB.js';
6
6
  import './chunk-2QK7L3WV.js';
7
7
  import './chunk-2PGI6RDE.js';
8
8
  import './chunk-57MLWALQ.js';
@@ -1,7 +1,7 @@
1
1
  #!/usr/bin/env node
2
2
  import { createRequire } from 'node:module';
3
- export { PLACEHOLDER_MARKER, RunnerInitError, addRunnerAgent, hasRunnerBlock, isPlaceholderCommand, nativeWindowsSandboxRefusal, prepareRunnerInit, readConfigObject, removeRunnerBlock, runRunnerInit, writeRunnerInit } from './chunk-UE6ZEQAL.js';
4
- import './chunk-BWDUZJ4K.js';
3
+ export { PLACEHOLDER_MARKER, RunnerInitError, addRunnerAgent, hasRunnerBlock, isPlaceholderCommand, nativeWindowsSandboxRefusal, prepareRunnerInit, readConfigObject, removeRunnerBlock, runRunnerInit, writeRunnerInit } from './chunk-XI635QEJ.js';
4
+ import './chunk-W2TGACUB.js';
5
5
  import './chunk-2QK7L3WV.js';
6
6
  import './chunk-2PGI6RDE.js';
7
7
  import './chunk-57MLWALQ.js';
@@ -1,7 +1,7 @@
1
1
  #!/usr/bin/env node
2
2
  import { createRequire } from 'node:module';
3
- import { RunnerInitError } from './chunk-UE6ZEQAL.js';
4
- import './chunk-BWDUZJ4K.js';
3
+ import { RunnerInitError } from './chunk-XI635QEJ.js';
4
+ import './chunk-W2TGACUB.js';
5
5
  import './chunk-2QK7L3WV.js';
6
6
  import './chunk-2PGI6RDE.js';
7
7
  import './chunk-57MLWALQ.js';
@@ -1,7 +1,7 @@
1
1
  #!/usr/bin/env node
2
2
  import { createRequire } from 'node:module';
3
- export { applyShellFunctionFlag, runInitCommand } from './chunk-H7L6XTQQ.js';
4
- import './chunk-CUPEP5D2.js';
3
+ export { applyShellFunctionFlag, runInitCommand } from './chunk-TG5ITPUR.js';
4
+ import './chunk-EIAE4HE5.js';
5
5
  import './chunk-CNEOUUPF.js';
6
6
  import './chunk-UWRXRSCE.js';
7
7
  import './chunk-ASAIS67T.js';
@@ -1,17 +1,17 @@
1
1
  #!/usr/bin/env node
2
2
  import { createRequire } from 'node:module';
3
- export { LAPSED_REASON, RunnerStartError, applyComments, endWhenStartFails, fleetKeepalive, leaseTimeLeftFor, listJobFiles, listedOf, logUnusableHelper, prepareSession, probeBuild, probeCredentials, provisionsBesideOthers, requestStop, runnerProcessState, runtimeOf, sampleUsage, start, tick, watchTick } from './chunk-WXGEDDUO.js';
3
+ export { LAPSED_REASON, RunnerStartError, applyComments, endWhenStartFails, fleetKeepalive, leaseTimeLeftFor, listJobFiles, listedOf, logUnusableHelper, prepareSession, probeBuild, probeCredentials, provisionsBesideOthers, requestStop, runnerProcessState, runtimeOf, sampleUsage, start, tick, watchTick } from './chunk-AGB4OA6T.js';
4
4
  import './chunk-6YBI24YT.js';
5
5
  import './chunk-E7R2GIAW.js';
6
- import './chunk-HNWNJ6QK.js';
7
- import './chunk-IOWXXJUM.js';
6
+ import './chunk-J5FVUVGR.js';
7
+ import './chunk-YBPEOKBK.js';
8
8
  import './chunk-TXKHD4Q6.js';
9
9
  import './chunk-GFXXAXPF.js';
10
10
  import './chunk-AVYR5USX.js';
11
- import './chunk-QHZZUINX.js';
11
+ import './chunk-CW74N36I.js';
12
12
  import './chunk-CYQSTT5N.js';
13
- import './chunk-UE6ZEQAL.js';
14
- import './chunk-BWDUZJ4K.js';
13
+ import './chunk-XI635QEJ.js';
14
+ import './chunk-W2TGACUB.js';
15
15
  import './chunk-2QK7L3WV.js';
16
16
  import './chunk-2PGI6RDE.js';
17
17
  import './chunk-57MLWALQ.js';
@@ -1,7 +1,7 @@
1
1
  #!/usr/bin/env node
2
2
  import { createRequire } from 'node:module';
3
- export { describeMachineDocker, detectMachine, microVmArchSupported, microVmAssetsPinned, reachDockerStep, supportsContainerBuilds, supportsMicroVmBuilds } from './chunk-UE6ZEQAL.js';
4
- import './chunk-BWDUZJ4K.js';
3
+ export { describeMachineDocker, detectMachine, microVmArchSupported, microVmAssetsPinned, reachDockerStep, supportsContainerBuilds, supportsMicroVmBuilds } from './chunk-XI635QEJ.js';
4
+ import './chunk-W2TGACUB.js';
5
5
  import './chunk-2QK7L3WV.js';
6
6
  import './chunk-2PGI6RDE.js';
7
7
  import './chunk-57MLWALQ.js';
@@ -1,7 +1,7 @@
1
1
  #!/usr/bin/env node
2
2
  import { createRequire } from 'node:module';
3
- import { readConfigObject, RunnerInitError } from './chunk-UE6ZEQAL.js';
4
- import './chunk-BWDUZJ4K.js';
3
+ import { readConfigObject, RunnerInitError } from './chunk-XI635QEJ.js';
4
+ import './chunk-W2TGACUB.js';
5
5
  import './chunk-2QK7L3WV.js';
6
6
  import './chunk-2PGI6RDE.js';
7
7
  import './chunk-57MLWALQ.js';
@@ -1,9 +1,9 @@
1
1
  #!/usr/bin/env node
2
2
  import { createRequire } from 'node:module';
3
- import { SETUP_BRANCH } from './chunk-M4V46N7A.js';
3
+ import { SETUP_BRANCH } from './chunk-UAERR4NB.js';
4
4
  import { chooseSetupAgent, setupAgentProviders, setupAgentLabel, setupAgentLine } from './chunk-IMGBXZUX.js';
5
- import './chunk-UE6ZEQAL.js';
6
- import './chunk-BWDUZJ4K.js';
5
+ import './chunk-XI635QEJ.js';
6
+ import './chunk-W2TGACUB.js';
7
7
  import './chunk-2QK7L3WV.js';
8
8
  import './chunk-2PGI6RDE.js';
9
9
  import './chunk-57MLWALQ.js';
@@ -1,13 +1,13 @@
1
1
  #!/usr/bin/env node
2
2
  import { createRequire } from 'node:module';
3
- import { runInitCommand } from './chunk-H7L6XTQQ.js';
4
- import './chunk-CUPEP5D2.js';
3
+ import { runInitCommand } from './chunk-TG5ITPUR.js';
4
+ import './chunk-EIAE4HE5.js';
5
5
  import './chunk-CNEOUUPF.js';
6
6
  import './chunk-UWRXRSCE.js';
7
- import { currentBranch, openSetupPullRequest, setupPullRequestUrl, setupBranchPushed, setupMerged, setupBaseBranch, markSetupInstalled, setupInstalled } from './chunk-M4V46N7A.js';
7
+ import { currentBranch, openSetupPullRequest, setupPullRequestUrl, setupBranchPushed, setupMerged, setupBaseBranch, markSetupInstalled, setupInstalled } from './chunk-UAERR4NB.js';
8
8
  import { sessionAgentsIn } from './chunk-IMGBXZUX.js';
9
- import { detectMachine, supportsMicroVmBuilds, supportsContainerBuilds, reachDockerStep, describeMachineDocker } from './chunk-UE6ZEQAL.js';
10
- import './chunk-BWDUZJ4K.js';
9
+ import { detectMachine, supportsMicroVmBuilds, supportsContainerBuilds, reachDockerStep, describeMachineDocker } from './chunk-XI635QEJ.js';
10
+ import './chunk-W2TGACUB.js';
11
11
  import './chunk-2QK7L3WV.js';
12
12
  import './chunk-2PGI6RDE.js';
13
13
  import './chunk-57MLWALQ.js';
@@ -1,7 +1,7 @@
1
1
  #!/usr/bin/env node
2
2
  import { createRequire } from 'node:module';
3
- import { isReadable, LEASE_SECONDS, ALREADY_RELEASED, RENEW_INTERVAL_SECONDS } from './chunk-UE6ZEQAL.js';
4
- import './chunk-BWDUZJ4K.js';
3
+ import { isReadable, LEASE_SECONDS, ALREADY_RELEASED, RENEW_INTERVAL_SECONDS } from './chunk-XI635QEJ.js';
4
+ import './chunk-W2TGACUB.js';
5
5
  import './chunk-2QK7L3WV.js';
6
6
  import './chunk-2PGI6RDE.js';
7
7
  import './chunk-57MLWALQ.js';
@@ -1,8 +1,8 @@
1
1
  #!/usr/bin/env node
2
2
  import { createRequire } from 'node:module';
3
- export { readOwnContainer, renderUpdateSteps, runUpdateSteps } from './chunk-IOWXXJUM.js';
4
- import './chunk-UE6ZEQAL.js';
5
- import './chunk-BWDUZJ4K.js';
3
+ export { readOwnContainer, renderUpdateSteps, runUpdateSteps } from './chunk-YBPEOKBK.js';
4
+ import './chunk-XI635QEJ.js';
5
+ import './chunk-W2TGACUB.js';
6
6
  import './chunk-2QK7L3WV.js';
7
7
  import './chunk-2PGI6RDE.js';
8
8
  import './chunk-57MLWALQ.js';
@@ -1,6 +1,6 @@
1
1
  #!/usr/bin/env node
2
2
  import { createRequire } from 'node:module';
3
- import { RUNNER_PROTOCOL } from './chunk-BWDUZJ4K.js';
3
+ import { RUNNER_PROTOCOL } from './chunk-W2TGACUB.js';
4
4
  import { resolveCredentials, WorkCommandError, parsePositiveInt, postJson, environmentFacts, findLiveItemForIssue } from './chunk-ASAIS67T.js';
5
5
  export { WorkCommandError } from './chunk-ASAIS67T.js';
6
6
  import './chunk-XGXGS54U.js';
@@ -1,6 +1,6 @@
1
1
  #!/usr/bin/env node
2
2
  import { createRequire } from 'node:module';
3
- export { classifyProofs, classifyProofsAt, otherPullRequestHeads, renderProofRow, resolveProofsItem, runWorkProofs, runWorkProofsCommand } from './chunk-K476DEC7.js';
3
+ export { classifyProofs, classifyProofsAt, otherPullRequestHeads, renderProofRow, resolveProofsItem, runWorkProofs, runWorkProofsCommand } from './chunk-WTI5JAZ3.js';
4
4
  import './chunk-2QK7L3WV.js';
5
5
  import './chunk-ASAIS67T.js';
6
6
  import './chunk-XGXGS54U.js';
@@ -1,6 +1,6 @@
1
1
  #!/usr/bin/env node
2
2
  import { createRequire } from 'node:module';
3
- import { resolveProofsItem, ownPullRequest, otherPullRequestHeads, classifyProofsAt, runWorkProofs, proofsCommentId, testFilesOf, freshXmlFiles, joinResults, testSelectors, kindProblem, renderProofRow, proofsCommentBody } from './chunk-K476DEC7.js';
3
+ import { resolveProofsItem, ownPullRequest, otherPullRequestHeads, classifyProofsAt, runWorkProofs, proofsCommentId, testFilesOf, freshXmlFiles, joinResults, testSelectors, kindProblem, renderProofRow, proofsCommentBody } from './chunk-WTI5JAZ3.js';
4
4
  import { runWorkComment } from './chunk-OTZ6WU4G.js';
5
5
  import { runEmitDemo, planScreenshots, chapterPassed, readStill } from './chunk-IBWK2WBX.js';
6
6
  import { readNewestDemo } from './chunk-ER6KQCVJ.js';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@outerlayer/cli",
3
- "version": "0.42.0-next.20261119011332",
3
+ "version": "0.42.0-next.20261119032403",
4
4
  "description": "OuterLayer CLI — commands: setup, init, claude, opencode, codex, connect, doctor, login, logout, sync, daemon (alias: watch), emit, demo, findings, work, run, spec, runner, hooks, mcp, context. Capture and sync coding-agent sessions, and record proof of factory work.",
5
5
  "license": "Apache-2.0",
6
6
  "author": "Magu Studios, Inc.",