@outerlayer/cli 0.40.0-next.20261117055025 → 0.40.0-next.20261117115225

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 (30) hide show
  1. package/dist/build-info.json +1 -1
  2. package/dist/{check-Y5CTVK5F.js → check-CS2U2LU4.js} +5 -5
  3. package/dist/{chunk-QYJYYF3J.js → chunk-FTXTRATJ.js} +17 -5
  4. package/dist/{chunk-K7RHVH7G.js → chunk-GBZA57ZZ.js} +144 -30
  5. package/dist/{chunk-O6YRZ4CP.js → chunk-GU7QECTA.js} +1 -1
  6. package/dist/{chunk-LX4GPGNE.js → chunk-LSSTRAIO.js} +1 -1
  7. package/dist/{chunk-3QNW4M64.js → chunk-OUGHUEV7.js} +1 -1
  8. package/dist/{chunk-3RSCWOYQ.js → chunk-Q7ZXPRTP.js} +1 -1
  9. package/dist/{chunk-L4T6CI57.js → chunk-TS2U7ZAG.js} +1 -1
  10. package/dist/{chunk-2AEXGFFJ.js → chunk-WNW7BQ7H.js} +3 -3
  11. package/dist/{chunk-AQS3AG4T.js → chunk-YNFCFPLT.js} +1 -1
  12. package/dist/{cli-YSZ2PWXK.js → cli-4YRY7FBI.js} +24 -24
  13. package/dist/{command-NBKHR4MM.js → command-MZCMXPPJ.js} +2 -2
  14. package/dist/{container-start-NRCXZWBS.js → container-start-WVZ2SSQH.js} +3 -3
  15. package/dist/{doctor-3QBRH4YU.js → doctor-K7UHUBZW.js} +3 -3
  16. package/dist/{host-checks-527RRKUD.js → host-checks-CQUHRKX7.js} +1 -1
  17. package/dist/index.js +1 -1
  18. package/dist/{init-6KSNBYRM.js → init-67NCMKO6.js} +1 -1
  19. package/dist/{init-ILAIAVL7.js → init-X7RMCZ7P.js} +1 -1
  20. package/dist/{init-agent-D7K7PKUI.js → init-agent-VZ4PLLKF.js} +1 -1
  21. package/dist/{init-cmd-ZEM335MG.js → init-cmd-BVPFCSEV.js} +2 -2
  22. package/dist/{loop-OY7YZMHJ.js → loop-NYTY3WU7.js} +5 -5
  23. package/dist/{machine-HJUWRAJ4.js → machine-SMT7B3HP.js} +1 -1
  24. package/dist/{runner-key-DQG25VKO.js → runner-key-L6KNJNEM.js} +1 -1
  25. package/dist/{setup-wiring-M3NSQHVV.js → setup-wiring-QLQW7YG3.js} +3 -3
  26. package/dist/{status-HSUAGN6D.js → status-6GZN7A33.js} +1 -1
  27. package/dist/{update-steps-CF2EKH43.js → update-steps-35DGWEH3.js} +2 -2
  28. package/dist/{work-proofs-cmd-SM2GQTEF.js → work-proofs-cmd-7MNFBEAL.js} +1 -1
  29. package/dist/{work-proofs-record-RTWRGKIG.js → work-proofs-record-7PVFOKA2.js} +1 -1
  30. package/package.json +1 -1
@@ -1 +1 @@
1
- {"id":"2026-11-17T05:57:52.763Z","root":"/home/runner/work/outerlayer/outerlayer","pkg":"outerlayer"}
1
+ {"id":"2026-11-17T11:58:50.989Z","root":"/home/runner/work/outerlayer/outerlayer","pkg":"outerlayer"}
@@ -1,16 +1,16 @@
1
1
  #!/usr/bin/env node
2
2
  import { createRequire } from 'node:module';
3
- import { probeCredentials } from './chunk-QYJYYF3J.js';
3
+ import { probeCredentials } from './chunk-FTXTRATJ.js';
4
4
  import './chunk-AAGXH2FR.js';
5
5
  import './chunk-E7R2GIAW.js';
6
- import './chunk-AQS3AG4T.js';
7
- import './chunk-LX4GPGNE.js';
6
+ import './chunk-YNFCFPLT.js';
7
+ import './chunk-LSSTRAIO.js';
8
8
  import './chunk-TXKHD4Q6.js';
9
9
  import './chunk-UAGUV74T.js';
10
10
  import './chunk-VEW4BPVJ.js';
11
- import { fleetConfigProblem, managedProblems, managedFactsOf, askFleetMachine } from './chunk-3RSCWOYQ.js';
11
+ import { fleetConfigProblem, managedProblems, managedFactsOf, askFleetMachine } from './chunk-Q7ZXPRTP.js';
12
12
  import './chunk-TPLMLNME.js';
13
- import { createGatewaySandboxClient, gatewayRefusalReason, placeholderQueues, placeholderProblem, permissionModeProblems, permissionModeProblem, needsAgentCredential, agentCredentialCheck, claimPermissionProblem, formerSkillQueues, modellessQueues, formerSkillProblem, modellessProblem } from './chunk-K7RHVH7G.js';
13
+ import { createGatewaySandboxClient, gatewayRefusalReason, placeholderQueues, placeholderProblem, permissionModeProblems, permissionModeProblem, needsAgentCredential, agentCredentialCheck, claimPermissionProblem, formerSkillQueues, modellessQueues, formerSkillProblem, modellessProblem } from './chunk-GBZA57ZZ.js';
14
14
  import './chunk-HHOFP647.js';
15
15
  import './chunk-FBFYIEHC.js';
16
16
  import './chunk-I3LTIAOR.js';
@@ -2,14 +2,14 @@
2
2
  import { createRequire } from 'node:module';
3
3
  import { readHousekeepingRecord, writeHousekeepingRecord } from './chunk-AAGXH2FR.js';
4
4
  import { fetchVersionMeta, npmVersion, npmSupportsProvenance, fetchTarballDigest, fetchProvenance, installVersion, auditSignatures } from './chunk-E7R2GIAW.js';
5
- import { reportFailedStart, fitImageBuildMemory } from './chunk-AQS3AG4T.js';
6
- import { renderUpdateSteps } from './chunk-LX4GPGNE.js';
5
+ import { reportFailedStart, fitImageBuildMemory } from './chunk-YNFCFPLT.js';
6
+ import { renderUpdateSteps } from './chunk-LSSTRAIO.js';
7
7
  import { decideInstalledSwitch } from './chunk-TXKHD4Q6.js';
8
8
  import { writeFleetState } from './chunk-UAGUV74T.js';
9
9
  import { writePendingUpdate } from './chunk-VEW4BPVJ.js';
10
- import { fleetConfigProblem, realBlockedProbes, checkBlockedWithSlots, askFleetMachine } from './chunk-3RSCWOYQ.js';
10
+ import { fleetConfigProblem, realBlockedProbes, checkBlockedWithSlots, askFleetMachine } from './chunk-Q7ZXPRTP.js';
11
11
  import { writeMarker, readMarker, currentVersion, removeMarker, isInLayout, startedThroughCurrent, entryIn, versionDir, switchCurrent, cleanVersions, stagingDir } from './chunk-TPLMLNME.js';
12
- import { leaseTimeLeftMs, createContainerRuntime, heldSandboxClaimsOf, unfinishedJobs, 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, sweepImageBuilders, listUnreadableJobs, listAdoptableJobs, retryFailedReleases, recoverLostJobs, GUEST_USAGE_INTERVAL_MS, vmAlive, filesAreCopied, inSandbox, listItemDisks, 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, holdsHostDisk, removeOldestUntil, treeFileText, scrubReason, timeoutAfter, ensureNetworkReady, ADOPTED_FETCH_RETRY_WINDOW_MS, managedBuildSettingsFor, gitRemoteFor, startServicesFor, installTrust, createLeaseChannel, serveLease, writeGuestGhConfig, deliverJobFiles, inTeardown } from './chunk-K7RHVH7G.js';
12
+ import { leaseTimeLeftMs, createContainerRuntime, heldSandboxClaimsOf, unfinishedJobs, 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, sweepImageBuilders, listUnreadableJobs, listAdoptableJobs, retryFailedReleases, recoverLostJobs, GUEST_USAGE_INTERVAL_MS, vmAlive, filesAreCopied, inSandbox, listItemDisks, 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, holdsHostDisk, removeOldestUntil, treeFileText, scrubReason, timeoutAfter, ensureNetworkReady, ADOPTED_FETCH_RETRY_WINDOW_MS, managedBuildSettingsFor, gitRemoteFor, startServicesFor, installTrust, createLeaseChannel, serveLease, writeGuestGhConfig, deliverJobFiles, inTeardown } from './chunk-GBZA57ZZ.js';
13
13
  import { RUNNER_PROTOCOL } from './chunk-HHOFP647.js';
14
14
  import { criteriaOf, diffLines, loadCitationFinder, wholeItems, itemsSentence, oneLineReason, parseJudgeAnswer, wholeEntries, treePath, lineInDiff } from './chunk-FBFYIEHC.js';
15
15
  import { RepoFilter } from './chunk-FUNAQRMN.js';
@@ -220,6 +220,7 @@ async function runFleetTick(ports, memory) {
220
220
  memory.held = held;
221
221
  const images = [...NO_IMAGES];
222
222
  const disks = ports.disks();
223
+ const provisionEnds = ports.provisionEnds();
223
224
  for (let called = 0; called < MAX_CLAIMS_PER_POLL; called++) {
224
225
  const room = roomOf(ports, held);
225
226
  const answer = await callFleetRoute(ports, memory, room, images, disks);
@@ -250,8 +251,16 @@ async function runFleetTick(ports, memory) {
250
251
  );
251
252
  return;
252
253
  }
254
+ if (ports.waitsAfterProvision()) {
255
+ const released = await ports.release({ workItemId: answer.claim.workItemId, appId: answer.claim.appId });
256
+ ports.log.line(
257
+ `the runner takes no work after a provision that failed; the claim on work item ${answer.claim.workItemId} was ${released ? "given back" : "not given back, so it stays held until its lease lapses"}`
258
+ );
259
+ return;
260
+ }
253
261
  const started = await ports.startBuild(answer.claim);
254
262
  if (!started || held || ports.draining()) return;
263
+ if (ports.provisionEnds() > provisionEnds) return;
255
264
  }
256
265
  }
257
266
  async function runFleetKeepalive(ports, memory, minGapMs) {
@@ -3221,6 +3230,8 @@ function fleetPortsOf(state) {
3221
3230
  applyStops: (stops) => applyStops(state, stops),
3222
3231
  considerVersion: (named) => considerNamedVersion(state, named),
3223
3232
  revoked: () => endRevokedBuilds(state),
3233
+ provisionEnds: () => state.provisionEnds ?? 0,
3234
+ waitsAfterProvision: () => provisionRetryHoldActive(state.provisionRetryHold, nowOf(state).getTime()),
3224
3235
  startBuild: async (claim) => {
3225
3236
  const item = { id: claim.workItemId, number: claim.number, trackerKey: `organization ${claim.organizationId.slice(0, 8)}`, startable: true };
3226
3237
  const attempt = await startClaimedBuild(state, item, claim.kind, claim.data, {
@@ -4500,6 +4511,7 @@ function freeJobDir(configPath, queue, item, claimId, startedAt) {
4500
4511
  async function endJob(state, active, outcome, ending) {
4501
4512
  if (active.ending) return;
4502
4513
  active.ending = true;
4514
+ if (ending?.stage === "provision") state.provisionEnds = (state.provisionEnds ?? 0) + 1;
4503
4515
  try {
4504
4516
  const finished = await finishJob(active.job, active.dirPath, outcome, state.config, finishDepsOf(state), ending);
4505
4517
  active.job = finished;
@@ -5178,7 +5190,7 @@ async function startRunner(configPath, deps, startup) {
5178
5190
  check: update.check ? () => update.check(configPath) : async () => {
5179
5191
  const held = runnerAgents(deps.agents).flatMap((agent) => heldAgentCredential(agent.descriptor.id) ?? []);
5180
5192
  const env = { ...process.env, ...Object.fromEntries(held.map((credential) => [credential.variable, credential.value])) };
5181
- return (await import('./check-Y5CTVK5F.js')).runRunnerCheck(configPath, { fetchImpl: deps.fetchImpl, env });
5193
+ return (await import('./check-CS2U2LU4.js')).runRunnerCheck(configPath, { fetchImpl: deps.fetchImpl, env });
5182
5194
  },
5183
5195
  now: () => (deps.now ?? (() => /* @__PURE__ */ new Date()))().getTime(),
5184
5196
  log
@@ -21,7 +21,7 @@ import { currentCliBuild } from './chunk-OGFGZQA3.js';
21
21
  import { vmExecArgs, runExec, execCapture, waitForAgent } from './chunk-IHMGZWOB.js';
22
22
  import { socketPathProblem, vsockLinks, linkVsockSockets, GUEST_CID, LEASE_LINK } from './chunk-XVTDFLRQ.js';
23
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-PVDIDOKH.js';
24
- import { postJson, WorkCommandError, getJson, isSignatureRefusal } from './chunk-KZEZBZ4W.js';
24
+ import { postJson, getJson, WorkCommandError, isSignatureRefusal } from './chunk-KZEZBZ4W.js';
25
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-MAWSNLSZ.js';
26
26
  import { formatBytes, volumeBytes, allocatedBytes, DEFAULT_BUILD_DISK, DEFAULT_CACHE_DISK, freeBytes } from './chunk-YAB2SVSI.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, identityRunArgs, judgeProgramRecord, SAVED_STATE_LABEL } from './chunk-G2KLJMPR.js';
@@ -1413,6 +1413,7 @@ function createMicroVmPorts(over = {}) {
1413
1413
  var ATTEMPTS = 3;
1414
1414
  var RETRY_MS = 1e3;
1415
1415
  var READ_TIMEOUT_MS = 1e4;
1416
+ var FIND_TIMEOUT_MS = 1e4;
1416
1417
  var SAVE_TIMEOUT_MS = 15e4;
1417
1418
  function sandboxErrorOf(err, nowMs) {
1418
1419
  return new SandboxError(err.message, err.status ?? 0, err.code, err.reason, retryAfterMsOf(err.retryAfter ?? null, nowMs));
@@ -1534,18 +1535,40 @@ function createGatewaySandboxClient(opts) {
1534
1535
  },
1535
1536
  async restartTimeLimit() {
1536
1537
  },
1537
- async saveState(id, key) {
1538
+ async saveState(id, key, details) {
1538
1539
  const creds = opts.creds(factoryOfSandbox(id));
1539
1540
  const signer = await signerFor(creds.configPath);
1540
1541
  let data;
1541
1542
  try {
1542
- data = (await postJson(creds.url, `${own(id)}/states`, creds.apiKey, creds.appId, { key }, fetchImpl, SAVE_TIMEOUT_MS, signer)).data;
1543
+ data = (await postJson(creds.url, `${own(id)}/states`, creds.apiKey, creds.appId, { key, details }, fetchImpl, SAVE_TIMEOUT_MS, signer)).data;
1543
1544
  } catch (err) {
1544
1545
  throw err instanceof WorkCommandError ? sandboxErrorOf(err, Date.now()) : err;
1545
1546
  }
1546
1547
  if (typeof data.id !== "string" || typeof data.createdAt !== "string" || !Number.isFinite(Date.parse(data.createdAt))) throw new SandboxError("the gateway's answer names no saved state", 0);
1547
1548
  return { id: data.id, createdAt: data.createdAt };
1548
1549
  },
1550
+ async findState(input) {
1551
+ const creds = opts.creds(input.factory);
1552
+ const signer = await signerFor(creds.configPath);
1553
+ let data;
1554
+ const limit = new AbortController();
1555
+ const timer = setTimeout(() => limit.abort(), FIND_TIMEOUT_MS);
1556
+ try {
1557
+ const path = `/v1/work-items/${encodeURIComponent(String(input.workItem))}/claim/sandbox-states?key=${encodeURIComponent(input.key)}`;
1558
+ data = (await getJson(creds.url, path, creds.apiKey, creds.appId, fetchImpl, signer, { signal: limit.signal })).data;
1559
+ } catch (err) {
1560
+ throw err instanceof WorkCommandError ? sandboxErrorOf(err, Date.now()) : err;
1561
+ } finally {
1562
+ clearTimeout(timer);
1563
+ }
1564
+ const found = data;
1565
+ if (found.data === null) return null;
1566
+ if (typeof found.id !== "string" || typeof found.key !== "string" || typeof found.createdAt !== "string" || !Number.isFinite(Date.parse(found.createdAt))) {
1567
+ throw new SandboxError("the gateway's answer names no saved state", 0);
1568
+ }
1569
+ const details = typeof found.details === "object" && !Array.isArray(found.details) ? found.details : null;
1570
+ return { id: found.id, key: found.key, createdAt: found.createdAt, details };
1571
+ },
1549
1572
  ...dataPlaneOf(sandboxCallOf(fetchImpl), (sandbox) => {
1550
1573
  const header = headers.get(sandbox.dataPlaneUrl);
1551
1574
  if (header === void 0) throw new SandboxError("the gateway named no secret header for this sandbox", 0);
@@ -3020,7 +3043,7 @@ function lookup(records, key, nowMs) {
3020
3043
  }
3021
3044
  function savingRefusedBecause(input) {
3022
3045
  if (!input.universalImage) return "its image comes from a devcontainer file";
3023
- if (input.fleet) return "this runner is a fleet machine";
3046
+ if (input.fleet && !input.inManagedSandbox) return "this runner is a fleet machine";
3024
3047
  if (input.savedStateMax === "off") return "runner.housekeeping.savedStateMax is off";
3025
3048
  return void 0;
3026
3049
  }
@@ -3823,27 +3846,63 @@ function deleteRecord(dir, id) {
3823
3846
  rmSync(join(dir, `${id}.json`), { force: true });
3824
3847
  }
3825
3848
  var FAILED_SAVES_FILE = "failed-saves";
3849
+ var FAILED_STATES_FILE = "failed-states";
3826
3850
  var FAILED_SAVE_PAUSE_MS = 216e5;
3827
- function readFailedSaves(dir) {
3851
+ var FAILED_STATE_PAUSE_MS = 6048e5;
3852
+ function readDated(dir, file) {
3828
3853
  try {
3829
- const parsed = JSON.parse(readFileSync(join(dir, FAILED_SAVES_FILE), "utf8"));
3854
+ const parsed = JSON.parse(readFileSync(join(dir, file), "utf8"));
3830
3855
  const entries = Object.entries(Array.isArray(parsed) ? {} : parsed);
3831
3856
  return Object.fromEntries(entries.filter((entry) => typeof entry[1] === "string"));
3832
3857
  } catch {
3833
3858
  return {};
3834
3859
  }
3835
3860
  }
3836
- function noteFailedSave(dir, key, at) {
3837
- const kept = Object.entries(readFailedSaves(dir)).filter(([, when]) => at.getTime() - Date.parse(when) < FAILED_SAVE_PAUSE_MS);
3861
+ function noteDated(dir, file, name, at, keepMs) {
3862
+ const kept = Object.entries(readDated(dir, file)).filter(([, when]) => at.getTime() - Date.parse(when) < keepMs);
3838
3863
  mkdirSync(dir, { recursive: true, mode: RUNNER_DIR_MODE });
3839
- const target2 = join(dir, FAILED_SAVES_FILE);
3840
- writeFileSync(`${target2}.partial`, `${JSON.stringify(Object.fromEntries([...kept, [key, at.toISOString()]]), null, 2)}
3864
+ const target2 = join(dir, file);
3865
+ writeFileSync(`${target2}.partial`, `${JSON.stringify(Object.fromEntries([...kept, [name, at.toISOString()]]), null, 2)}
3841
3866
  `, { mode: RUNNER_FILE_MODE });
3842
3867
  renameSync(`${target2}.partial`, target2);
3843
3868
  }
3869
+ function recentDatedMs(dir, file, name, nowMs, keepMs) {
3870
+ const age = nowMs - Date.parse(readDated(dir, file)[name] ?? "");
3871
+ return age >= 0 && age < keepMs ? age : void 0;
3872
+ }
3873
+ function noteFailedSave(dir, key, at) {
3874
+ noteDated(dir, FAILED_SAVES_FILE, key, at, FAILED_SAVE_PAUSE_MS);
3875
+ }
3844
3876
  function recentFailedSaveMs(dir, key, nowMs) {
3845
- const age = nowMs - Date.parse(readFailedSaves(dir)[key] ?? "");
3846
- return age >= 0 && age < FAILED_SAVE_PAUSE_MS ? age : void 0;
3877
+ return recentDatedMs(dir, FAILED_SAVES_FILE, key, nowMs, FAILED_SAVE_PAUSE_MS);
3878
+ }
3879
+ function noteFailedState(dir, id, at) {
3880
+ noteDated(dir, FAILED_STATES_FILE, id, at, FAILED_STATE_PAUSE_MS);
3881
+ }
3882
+ function recentFailedStateMs(dir, id, nowMs) {
3883
+ return recentDatedMs(dir, FAILED_STATES_FILE, id, nowMs, FAILED_STATE_PAUSE_MS);
3884
+ }
3885
+ function sharedStateDetails(record) {
3886
+ return { key: record.key, fileHashes: record.fileHashes, volume: record.volume, ...record.agentUid === void 0 ? {} : { agentUid: record.agentUid } };
3887
+ }
3888
+ function sharedStateRecord(found) {
3889
+ const details = found.details ?? {};
3890
+ const hashes = details.fileHashes;
3891
+ if (typeof hashes !== "object" || hashes === null || Array.isArray(hashes) || !Object.values(hashes).every((hash) => typeof hash === "string")) return void 0;
3892
+ if (details.agentUid !== void 0 && !Number.isInteger(details.agentUid)) return void 0;
3893
+ const record = {
3894
+ id: found.id,
3895
+ kind: "sandbox",
3896
+ volume: details.volume,
3897
+ savedAt: found.createdAt,
3898
+ bytes: 0,
3899
+ baseKey: found.key,
3900
+ key: details.key,
3901
+ fileHashes: hashes,
3902
+ ...details.agentUid === void 0 ? {} : { agentUid: details.agentUid },
3903
+ complete: true
3904
+ };
3905
+ return isRecord(record) ? record : void 0;
3847
3906
  }
3848
3907
 
3849
3908
  // src/runner/saved-state/container.ts
@@ -4164,21 +4223,27 @@ var isHandedOver = (value) => typeof value === "object" && value !== null && val
4164
4223
  var LATER_ATTEMPT_REASON = "only the first attempt of a job may save a state";
4165
4224
  async function provisionWithFreshFallback(input) {
4166
4225
  const later = (allowRestore, itemDiskFailed) => input.attempt(allowRestore, itemDiskFailed, LATER_ATTEMPT_REASON);
4226
+ const afterSave = async (handed, itemDiskFailed) => {
4227
+ input.log(handed.reason);
4228
+ const next = await later(handed.saved, itemDiskFailed);
4229
+ if (!isRetryFresh(next)) return next;
4230
+ input.log(`${next.reason}; provisioning the build again from a fresh disk`);
4231
+ return await later(false, itemDiskFailed);
4232
+ };
4233
+ const fresh = async (itemDiskFailed) => {
4234
+ if (input.saveAfterFailedState !== true) return await later(false, itemDiskFailed);
4235
+ const next = await input.attempt(false, itemDiskFailed);
4236
+ return isHandedOver(next) ? afterSave(next, itemDiskFailed) : next;
4237
+ };
4167
4238
  const first = await input.attempt(true);
4168
- if (isHandedOver(first)) {
4169
- input.log(first.reason);
4170
- const second2 = await later(first.saved);
4171
- if (!isRetryFresh(second2)) return second2;
4172
- input.log(`${second2.reason}; provisioning the build again from a fresh disk`);
4173
- return await later(false);
4174
- }
4239
+ if (isHandedOver(first)) return afterSave(first);
4175
4240
  if (!isRetryFresh(first)) return first;
4176
4241
  input.log(`${first.reason}; provisioning the build again from a fresh disk`);
4177
- if (first.itemDisk === void 0) return await later(false);
4242
+ if (first.itemDisk === void 0) return fresh();
4178
4243
  const second = await later(true, first.itemDisk);
4179
4244
  if (!isRetryFresh(second)) return second;
4180
4245
  input.log(`${second.reason}; provisioning the build again from a fresh disk`);
4181
- return await later(false, first.itemDisk);
4246
+ return fresh(first.itemDisk);
4182
4247
  }
4183
4248
  function keptDiskPlan() {
4184
4249
  return { keyCommits: {}, noSave: "it starts from the work item's kept disk" };
@@ -4251,7 +4316,7 @@ function savedStateMaxOf(config) {
4251
4316
  }
4252
4317
  async function planSavedState(input) {
4253
4318
  const { config, runtime, log } = input;
4254
- const refused2 = savingRefusedBecause({ universalImage: input.base !== void 0, fleet: config.fleet === true, savedStateMax: savedStateMaxOf(config) });
4319
+ const refused2 = savingRefusedBecause({ universalImage: input.base !== void 0, fleet: config.fleet === true, inManagedSandbox: input.shared !== void 0, savedStateMax: savedStateMaxOf(config) });
4255
4320
  if (refused2 !== void 0 || input.base === void 0) {
4256
4321
  const why = (input.base === void 0 ? input.noBase : void 0) ?? refused2 ?? "its image comes from a devcontainer file";
4257
4322
  log(`this build saves no state: ${why}`);
@@ -4279,12 +4344,14 @@ async function planSavedState(input) {
4279
4344
  repositories.push({ repository: entry.repository, commit: read.commit, files: read.files });
4280
4345
  }
4281
4346
  const key = stateKey({
4282
- factory: keyRunnerFactory(config),
4347
+ factory: input.shared?.factory ?? keyRunnerFactory(config),
4283
4348
  repositories,
4284
4349
  imageDigest: input.base.digest,
4285
4350
  diskBytes: input.diskBytes
4286
4351
  });
4287
- const found = lookup(readRecords(savedStatesDir(root)), key, input.now.getTime());
4352
+ if (input.shared !== void 0 && !input.allowRestore) return { key, keyCommits };
4353
+ const records = input.shared === void 0 ? readRecords(savedStatesDir(root)) : await sharedRecords(input.shared, key.baseKey, savedStatesDir(root), input.now.getTime(), log);
4354
+ const found = lookup(records, key, input.now.getTime());
4288
4355
  if (found.kind !== "none" && found.record.kind === "tar") {
4289
4356
  try {
4290
4357
  await removeSavedState(found.record, { dir: savedStatesDir(root), removeVolume: async () => void 0 });
@@ -4307,6 +4374,18 @@ async function planSavedState(input) {
4307
4374
  }
4308
4375
  return { key, keyCommits };
4309
4376
  }
4377
+ async function sharedRecords(shared, baseKey, dir, nowMs, log) {
4378
+ const found = await shared.find(baseKey);
4379
+ if (!found.ok) {
4380
+ log(`the gateway's saved state of this build's key could not be read: ${found.reason}`);
4381
+ return [];
4382
+ }
4383
+ if (found.record === void 0) return [];
4384
+ const failedAgo = recentFailedStateMs(dir, found.record.id, nowMs);
4385
+ if (failedAgo === void 0) return [found.record];
4386
+ log(`saved state ${found.record.id} failed on this machine ${formatDuration(failedAgo)} ago, and this machine does not start from it again`);
4387
+ return [];
4388
+ }
4310
4389
  function unread(reason, log) {
4311
4390
  log(`this build starts from no saved state and saves none: ${reason}`);
4312
4391
  return { keyCommits: {}, noSave: `its key files could not be read: ${reason}` };
@@ -4840,8 +4919,24 @@ function saveFailureReason(err) {
4840
4919
  if (err.status === 0) return `the gateway did not answer the save in ${SAVE_TIMEOUT_MS / 1e3} seconds: ${err.message}`;
4841
4920
  return `the gateway refused the save: ${describeSandboxError(err)}`;
4842
4921
  }
4843
- function sandboxStateKey(runnerId, key) {
4844
- return `${runnerId}/${key.baseKey}`;
4922
+ function sandboxStateKey(runnerId, key, shared) {
4923
+ return shared ? key.baseKey : `${runnerId}/${key.baseKey}`;
4924
+ }
4925
+ function sharesSavedStates(config) {
4926
+ return config.fleet === true && config.sandbox?.provider === "outerlayer";
4927
+ }
4928
+ async function findSharedState(sandboxClient, input) {
4929
+ if (sandboxClient.findState === void 0) return { ok: false, reason: "the sandbox provider finds no saved state" };
4930
+ let found;
4931
+ try {
4932
+ found = await sandboxClient.findState(input);
4933
+ } catch (err) {
4934
+ if (!(err instanceof SandboxError)) return { ok: false, reason: describeCallFailure(err) };
4935
+ return { ok: false, reason: err.status === 0 ? `the gateway did not answer in ${FIND_TIMEOUT_MS / 1e3} seconds: ${err.message}` : describeSandboxError(err) };
4936
+ }
4937
+ if (found === null) return { ok: true, record: void 0 };
4938
+ const record = sharedStateRecord(found);
4939
+ return record === void 0 ? { ok: false, reason: `saved state ${found.id} holds no details this runner reads` } : { ok: true, record };
4845
4940
  }
4846
4941
  async function saveSandboxState(input) {
4847
4942
  const { runtime, sandbox, key, dir } = input;
@@ -4861,11 +4956,16 @@ async function saveSandboxState(input) {
4861
4956
  if (sandboxClient.saveState === void 0) return failed2("the sandbox provider saves no state");
4862
4957
  let state;
4863
4958
  try {
4864
- state = await sandboxClient.saveState(sandbox.id, sandboxStateKey(input.build.runnerId, key));
4959
+ const details = input.shared ? sharedStateDetails({ ...key, volume: input.build.volume, agentUid: input.agentUid }) : void 0;
4960
+ state = await sandboxClient.saveState(sandbox.id, sandboxStateKey(input.build.runnerId, key, input.shared), details);
4865
4961
  } catch (err) {
4866
4962
  return failed2(saveFailureReason(err));
4867
4963
  }
4868
4964
  if (input.aborted()) return void 0;
4965
+ if (input.shared) {
4966
+ input.log(`saved state ${state.id}`);
4967
+ return { saved: true, id: state.id };
4968
+ }
4869
4969
  const record = {
4870
4970
  id: state.id,
4871
4971
  kind: "sandbox",
@@ -5048,7 +5148,8 @@ async function provisionSandbox(input) {
5048
5148
  const tag = itemTag({ item: input.item.number, organizationId: input.organizationId, claimId: input.claimId });
5049
5149
  return provisionWithFreshFallback({
5050
5150
  attempt: (allowRestore, itemDiskFailed, noSave) => provisionSandboxOnce(input, allowRestore, itemDiskFailed, noSave),
5051
- log: (line2) => input.log.line(`${tag} ${line2}`)
5151
+ log: (line2) => input.log.line(`${tag} ${line2}`),
5152
+ saveAfterFailedState: sharesSavedStates(input.config)
5052
5153
  });
5053
5154
  }
5054
5155
  function holdBackSave(plan, noSave) {
@@ -5112,6 +5213,7 @@ async function provisionSandboxOnce(input, allowRestore, itemDiskFailed, noSave)
5112
5213
  let diskState = itemDisk.state;
5113
5214
  if (itemDisk.state?.restored === false) log.line(`${tag} this job starts without a kept disk: ${DISK_REASON_TEXT[itemDisk.state.reason]}`);
5114
5215
  const tagged = (line2) => log.line(`${tag} ${line2}`);
5216
+ const shared = sharesSavedStates(config) ? { factory: config.appId, find: (key) => findSharedState(sandboxClient, { factory: config.appId, workItem: claimItem(config, { item: item.number, workItemId: input.workItemId, appId: config.appId }), key }) } : void 0;
5115
5217
  let plan = keptDisk !== void 0 ? keptDiskPlan() : input.queue === "review" ? { keyCommits: {}, noSave: "a code review runs no setup" } : await planSavedState({
5116
5218
  config,
5117
5219
  repositories,
@@ -5122,6 +5224,7 @@ async function provisionSandboxOnce(input, allowRestore, itemDiskFailed, noSave)
5122
5224
  now: clockOf(input.now)(),
5123
5225
  diskBytes: 0,
5124
5226
  allowRestore,
5227
+ shared,
5125
5228
  log: tagged
5126
5229
  });
5127
5230
  const statesDir = savedStatesDir(runnerDir(config.configPath));
@@ -5130,6 +5233,16 @@ async function provisionSandboxOnce(input, allowRestore, itemDiskFailed, noSave)
5130
5233
  plan = heldBack.plan;
5131
5234
  if (heldBack.line !== void 0) tagged(heldBack.line);
5132
5235
  let fromState = plan.restore?.record;
5236
+ const forgetState = (record, reason) => {
5237
+ if (shared !== void 0) {
5238
+ try {
5239
+ noteFailedState(statesDir, record.id, clockOf(input.now)());
5240
+ } catch (err) {
5241
+ log.error(`${tag} could not note that saved state ${record.id} failed: ${describeCallFailure(err)}`);
5242
+ }
5243
+ }
5244
+ return discardUnusableState({ record, reason, dir: statesDir, removeVolume: async () => void 0, onError: (line2) => log.error(`${tag} ${line2}`) });
5245
+ };
5133
5246
  const buildId = randomBytes(6).toString("hex");
5134
5247
  const runnerId = runnerLabelValue(config.configPath);
5135
5248
  const name = sandboxNameOf(runnerId, buildId);
@@ -5194,7 +5307,7 @@ async function provisionSandboxOnce(input, allowRestore, itemDiskFailed, noSave)
5194
5307
  };
5195
5308
  const giveUpState = async (record, reason) => {
5196
5309
  await bail(reason);
5197
- return discardUnusableState({ record, reason, dir: savedStatesDir(runnerDir(config.configPath)), removeVolume: async () => void 0, onError: (line2) => log.error(`${tag} ${line2}`) });
5310
+ return forgetState(record, reason);
5198
5311
  };
5199
5312
  const end = (reason, aborted2 = false) => fromState !== void 0 && !aborted2 ? giveUpState(fromState, reason) : bail(reason, aborted2);
5200
5313
  const forgetManagedDisk = async (id, err) => {
@@ -5269,7 +5382,7 @@ async function provisionSandboxOnce(input, allowRestore, itemDiskFailed, noSave)
5269
5382
  } catch (err) {
5270
5383
  const refusal = stateRefusalReason(err);
5271
5384
  if (fromState === void 0 || refusal === void 0) throw err;
5272
- await discardUnusableState({ record: fromState, reason: refusal, dir: savedStatesDir(runnerDir(config.configPath)), removeVolume: async () => void 0, onError: (line2) => log.error(`${tag} ${line2}`) });
5385
+ await forgetState(fromState, refusal);
5273
5386
  tagged(`the gateway cannot start a sandbox from saved state ${fromState.id}: ${refusal} \xB7 removed its record, and asking for a sandbox from the base snapshot`);
5274
5387
  fromState = void 0;
5275
5388
  plan = { ...plan, restore: void 0 };
@@ -5485,6 +5598,7 @@ async function provisionSandboxOnce(input, allowRestore, itemDiskFailed, noSave)
5485
5598
  build: { container, volume: volumeName, imageId: image, runnerId },
5486
5599
  key: plan.key,
5487
5600
  agentUid: probe.status === 0 ? parseIdentity(probe.stdout)?.uid ?? void 0 : void 0,
5601
+ shared: shared !== void 0,
5488
5602
  dir: statesDir,
5489
5603
  now: clockOf(input.now),
5490
5604
  aborted: input.aborted,
@@ -1,6 +1,6 @@
1
1
  #!/usr/bin/env node
2
2
  import { createRequire } from 'node:module';
3
- import { summarizeChecks, summaryText, renderDoctorText } from './chunk-3QNW4M64.js';
3
+ import { summarizeChecks, summaryText, renderDoctorText } from './chunk-OUGHUEV7.js';
4
4
  import { shellFunctionInstalled, removeShellFunction, installShellFunction, SHELL_FUNCTION_LINE } from './chunk-4KCWAP5L.js';
5
5
  import { runConnect, hasUncommittedPolicy, commitCommandsFor } from './chunk-7CK4Z6VC.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 { stripTerminalControls } from './chunk-K7RHVH7G.js';
3
+ import { stripTerminalControls } from './chunk-GBZA57ZZ.js';
4
4
  import { tagToPull, imageTag, pullInstruction, readUpdateStatus, runnerImageVersion } from './chunk-SS3SQYDS.js';
5
5
  import { readFileSync } from 'fs';
6
6
 
@@ -1123,7 +1123,7 @@ async function gatherDoctorChecks(options = {}) {
1123
1123
  const { runnerVmCheck } = await import('./doctor-53F2PYY7.js');
1124
1124
  checks.push(runnerVmCheck(configPath, { lima: realLima(), home: homeFromEnv(), instance: runnerVm.instance }));
1125
1125
  } else if (hasRunnerBlock(configPath)) {
1126
- const { runnerHostChecks } = await import('./doctor-3QBRH4YU.js');
1126
+ const { runnerHostChecks } = await import('./doctor-K7UHUBZW.js');
1127
1127
  const gateway = (() => {
1128
1128
  try {
1129
1129
  const loaded = loadRunnerConfig(configPath);
@@ -1,6 +1,6 @@
1
1
  #!/usr/bin/env node
2
2
  import { createRequire } from 'node:module';
3
- import { placeholderQueues, placeholderProblem } from './chunk-K7RHVH7G.js';
3
+ import { placeholderQueues, placeholderProblem } from './chunk-GBZA57ZZ.js';
4
4
  import { checkFit } from './chunk-XVE7HD6X.js';
5
5
  import { getJson, WorkCommandError } from './chunk-KZEZBZ4W.js';
6
6
  import { isBuiltinSandbox, builtinKind, EGRESS_SWITCHABLE_KEYS, keepsHostBuilder } from './chunk-MAWSNLSZ.js';
@@ -1,6 +1,6 @@
1
1
  #!/usr/bin/env node
2
2
  import { createRequire } from 'node:module';
3
- import { helperSocketPath } from './chunk-K7RHVH7G.js';
3
+ import { helperSocketPath } from './chunk-GBZA57ZZ.js';
4
4
  import { UNIT_MARKER } from './chunk-XVE7HD6X.js';
5
5
  import { runnerDir } from './chunk-WHIAOWEN.js';
6
6
  import { createHash } from 'crypto';
@@ -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-527RRKUD.js');
132
+ const { testProofIn } = await import('./host-checks-CQUHRKX7.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-527RRKUD.js');
139
+ const { checksIn, isJudgeCheck } = await import('./host-checks-CQUHRKX7.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-RTWRGKIG.js');
375
+ const { runWorkProofsRecord } = await import('./work-proofs-record-7PVFOKA2.js');
376
376
  const result2 = await runWorkProofsRecord(opts);
377
377
  process.exitCode = result2.exitCode;
378
378
  return;
@@ -1,6 +1,6 @@
1
1
  #!/usr/bin/env node
2
2
  import { createRequire } from 'node:module';
3
- import { scrubReason, stripTerminalControls } from './chunk-K7RHVH7G.js';
3
+ import { scrubReason, stripTerminalControls } from './chunk-GBZA57ZZ.js';
4
4
  import { checkFit, RUNNER_RESERVE_BYTES } from './chunk-XVE7HD6X.js';
5
5
  import { RunnerAlreadyRunningError, readPidFile } from './chunk-VH7P6XUP.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 { gatherDoctorChecks, doctorExitCode, summarizeChecks, renderDoctorText, recordWrapped, recordUnwrapped, recordRemoval, readManifest, recordInstall, recordStatusline } from './chunk-3QNW4M64.js';
3
+ import { gatherDoctorChecks, doctorExitCode, summarizeChecks, renderDoctorText, recordWrapped, recordUnwrapped, recordRemoval, readManifest, recordInstall, recordStatusline } from './chunk-OUGHUEV7.js';
4
4
  import './chunk-KPCGSGZS.js';
5
5
  import { verifiedTrackerNames, TRACKERS } from './chunk-KZEZBZ4W.js';
6
6
  import './chunk-V65YF5VP.js';
@@ -3958,13 +3958,13 @@ what CLIs older than ${FIRST_VERSION_READING_AGENTS_SKILLS} do. \`` + cliInvocat
3958
3958
  if (changed.length > 0 && !opts.json) process.stdout.write(`Removed the claude function from ${changed.join(", ")}.
3959
3959
  `);
3960
3960
  }
3961
- const shell = !opts.remove && opts.shellFunction !== void 0 ? (await import('./init-cmd-ZEM335MG.js')).applyShellFunctionFlag(opts.shellFunction, { home: homeFromEnv(), shellPath: process.env.SHELL }) : void 0;
3961
+ const shell = !opts.remove && opts.shellFunction !== void 0 ? (await import('./init-cmd-BVPFCSEV.js')).applyShellFunctionFlag(opts.shellFunction, { home: homeFromEnv(), shellPath: process.env.SHELL }) : void 0;
3962
3962
  if (opts.json) writeJson(shell === void 0 ? outcome.result : { ...outcome.result, shellFunction: { outcome: shell.outcome, reason: shell.reason } });
3963
3963
  else process.stdout.write(outcome.text + skillsLine + (shell?.text ?? ""));
3964
3964
  return;
3965
3965
  }
3966
3966
  await installMachineSkillsForSetup();
3967
- const { runInitCommand } = await import('./init-cmd-ZEM335MG.js');
3967
+ const { runInitCommand } = await import('./init-cmd-BVPFCSEV.js');
3968
3968
  const code = await runInitCommand(
3969
3969
  { json: opts.json, factory: opts.factory, shellFunction: opts.shellFunction },
3970
3970
  {
@@ -4022,7 +4022,7 @@ not have, and prints the commit commands instead.
4022
4022
  `
4023
4023
  ).action(async (opts) => {
4024
4024
  const { runSetupCommand } = await import('./setup-cmd-6BBZWFJX.js');
4025
- const { realSetupDeps } = await import('./setup-wiring-M3NSQHVV.js');
4025
+ const { realSetupDeps } = await import('./setup-wiring-QLQW7YG3.js');
4026
4026
  const cliBin = resolveCliBin();
4027
4027
  const agentWords = runnerHelpWords();
4028
4028
  const code = await runSetupCommand(
@@ -5294,7 +5294,7 @@ a runner build, no row is failed.
5294
5294
  fail(trackerNumberError("--pr", opts.pr));
5295
5295
  return;
5296
5296
  }
5297
- const { runWorkProofsCommand } = await import('./work-proofs-cmd-SM2GQTEF.js');
5297
+ const { runWorkProofsCommand } = await import('./work-proofs-cmd-7MNFBEAL.js');
5298
5298
  await runWorkProofsCommand({ ...opts, ...pr === void 0 ? {} : { pr } });
5299
5299
  });
5300
5300
  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) => {
@@ -5517,7 +5517,7 @@ function registerRunnerCommands(program2) {
5517
5517
  const configOption = "the cloud config file to run against (default: ~/.outerlayer/config.json)";
5518
5518
  runnerCmd.command("start").description("Run the loop: claim work, run it, report, clean up, repeat").option("--config <path>", configOption).action(async (opts) => {
5519
5519
  const { defaultRunnerConfigPath, RunnerConfigError } = await import('./config-OJTLS62B.js');
5520
- const { start, RunnerStartError } = await import('./loop-OY7YZMHJ.js');
5520
+ const { start, RunnerStartError } = await import('./loop-NYTY3WU7.js');
5521
5521
  const { RunnerAlreadyRunningError } = await import('./pidfile-2TYTTJAD.js');
5522
5522
  const configPath = opts.config ?? defaultRunnerConfigPath();
5523
5523
  try {
@@ -5541,8 +5541,8 @@ The image sets OUTERLAYER_RUNNER_IMAGE; outside the image, use \`runner start\`.
5541
5541
  `
5542
5542
  ).action(async () => {
5543
5543
  const { defaultRunnerConfigPath, RunnerConfigError } = await import('./config-OJTLS62B.js');
5544
- const { containerStart, containerStartExit } = await import('./container-start-NRCXZWBS.js');
5545
- const { start, RunnerStartError } = await import('./loop-OY7YZMHJ.js');
5544
+ const { containerStart, containerStartExit } = await import('./container-start-WVZ2SSQH.js');
5545
+ const { start, RunnerStartError } = await import('./loop-NYTY3WU7.js');
5546
5546
  const { RunnerAlreadyRunningError } = await import('./pidfile-2TYTTJAD.js');
5547
5547
  try {
5548
5548
  const outcome = containerStartExit(await containerStart({
@@ -5566,14 +5566,14 @@ The image sets OUTERLAYER_RUNNER_IMAGE; outside the image, use \`runner start\`.
5566
5566
  ).action(async (opts) => {
5567
5567
  const { defaultRunnerConfigPath } = await import('./config-OJTLS62B.js');
5568
5568
  const { runnerDir } = await import('./paths-KPYCKVEO.js');
5569
- const { runUpdateSteps } = await import('./update-steps-CF2EKH43.js');
5569
+ const { runUpdateSteps } = await import('./update-steps-35DGWEH3.js');
5570
5570
  const text = await runUpdateSteps({ runnerDirPath: runnerDir(opts.config ?? defaultRunnerConfigPath()) });
5571
5571
  process.stdout.write(`${text}
5572
5572
  `);
5573
5573
  });
5574
5574
  runnerCmd.command("check").description("Validate the config, the hooks and the key, and print the effective settings").option("--config <path>", configOption).action(async (opts) => {
5575
5575
  const { defaultRunnerConfigPath } = await import('./config-OJTLS62B.js');
5576
- const { runRunnerCheck } = await import('./check-Y5CTVK5F.js');
5576
+ const { runRunnerCheck } = await import('./check-CS2U2LU4.js');
5577
5577
  const configPath = opts.config ?? defaultRunnerConfigPath();
5578
5578
  const result = await runRunnerCheck(configPath);
5579
5579
  if (!result.ok) {
@@ -5607,13 +5607,13 @@ The image sets OUTERLAYER_RUNNER_IMAGE; outside the image, use \`runner start\`.
5607
5607
  }
5608
5608
  }
5609
5609
  const buildCpusMax = opts.buildCpusMax === void 0 ? void 0 : Number(opts.buildCpusMax);
5610
- if (buildCpusMax !== void 0 && !(await import('./command-NBKHR4MM.js')).cpusAreValid(buildCpusMax)) {
5610
+ if (buildCpusMax !== void 0 && !(await import('./command-MZCMXPPJ.js')).cpusAreValid(buildCpusMax)) {
5611
5611
  fail(`--build-cpus-max ${opts.buildCpusMax} is not a number of CPUs from 0.01 to 1024.`);
5612
5612
  return;
5613
5613
  }
5614
5614
  try {
5615
5615
  if (opts.service === true) {
5616
- const { installServiceCommand, serviceSuccessText } = await import('./command-NBKHR4MM.js');
5616
+ const { installServiceCommand, serviceSuccessText } = await import('./command-MZCMXPPJ.js');
5617
5617
  const result2 = await installServiceCommand({
5618
5618
  configPath,
5619
5619
  print: opts.print,
@@ -5668,7 +5668,7 @@ To keep it running, run ${C.yellow}${cliInvocation()} runner install --service${
5668
5668
  return;
5669
5669
  }
5670
5670
  const { defaultRunnerConfigPath } = await import('./config-OJTLS62B.js');
5671
- const { uninstallServiceCommand } = await import('./command-NBKHR4MM.js');
5671
+ const { uninstallServiceCommand } = await import('./command-MZCMXPPJ.js');
5672
5672
  const result = await uninstallServiceCommand({ configPath: opts.config ?? defaultRunnerConfigPath(), unitName: opts.unitName, home: homeFromEnv() });
5673
5673
  if (result.ok) for (const line of result.lines) process.stdout.write(`${C.green}\u2713${C.reset} ${line}
5674
5674
  `);
@@ -5699,11 +5699,11 @@ already in ${words().envFile} is used.
5699
5699
  `
5700
5700
  ).action(async (opts) => {
5701
5701
  const { defaultRunnerConfigPath, loadRunnerConfig, RunnerConfigError } = await import('./config-OJTLS62B.js');
5702
- const { prepareRunnerInit, runRunnerInit, RunnerInitError, writeRunnerInit, removeRunnerBlock, nativeWindowsSandboxRefusal } = await import('./init-ILAIAVL7.js');
5703
- const { askManagedSandboxes } = await import('./check-Y5CTVK5F.js');
5704
- const { obtainRunnerKey, runnerKeyLogin } = await import('./runner-key-DQG25VKO.js');
5705
- const { detectMachine } = await import('./machine-HJUWRAJ4.js');
5706
- const { chooseVm, runVmInit, VmInitError } = await import('./init-6KSNBYRM.js');
5702
+ const { prepareRunnerInit, runRunnerInit, RunnerInitError, writeRunnerInit, removeRunnerBlock, nativeWindowsSandboxRefusal } = await import('./init-X7RMCZ7P.js');
5703
+ const { askManagedSandboxes } = await import('./check-CS2U2LU4.js');
5704
+ const { obtainRunnerKey, runnerKeyLogin } = await import('./runner-key-L6KNJNEM.js');
5705
+ const { detectMachine } = await import('./machine-SMT7B3HP.js');
5706
+ const { chooseVm, runVmInit, VmInitError } = await import('./init-67NCMKO6.js');
5707
5707
  const { credentialFromStdin, isAgentName, restartForCredential, RunnerEnvError } = await import('./runner-env-7AZQ443N.js');
5708
5708
  const { headlessNames: headlessNames2 } = await import('./runner-agents-RKBGYF6D.js');
5709
5709
  const configPath = opts.config ?? defaultRunnerConfigPath();
@@ -5729,7 +5729,7 @@ already in ${words().envFile} is used.
5729
5729
  return;
5730
5730
  }
5731
5731
  try {
5732
- const { agentCredentialText, credentialQuestion, initAgent, terminalQuestion } = await import('./init-agent-D7K7PKUI.js');
5732
+ const { agentCredentialText, credentialQuestion, initAgent, terminalQuestion } = await import('./init-agent-VZ4PLLKF.js');
5733
5733
  agent = await initAgent({
5734
5734
  flag: agent,
5735
5735
  handOff: opts.configStdin === true,
@@ -5887,7 +5887,7 @@ ${C.yellow}The runner will not update itself: ${installErr.message}${C.reset}
5887
5887
  let serviceUp = false;
5888
5888
  let restart;
5889
5889
  if (installedLayout) {
5890
- const { installServiceCommand } = await import('./command-NBKHR4MM.js');
5890
+ const { installServiceCommand } = await import('./command-MZCMXPPJ.js');
5891
5891
  const service = await installServiceCommand({
5892
5892
  configPath,
5893
5893
  entryPath: process.argv[1] ?? "",
@@ -6027,7 +6027,7 @@ A repository with no devcontainer file builds on the universal image the CLI pin
6027
6027
  });
6028
6028
  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) => {
6029
6029
  const { defaultRunnerConfigPath } = await import('./config-OJTLS62B.js');
6030
- const { requestStop } = await import('./loop-OY7YZMHJ.js');
6030
+ const { requestStop } = await import('./loop-NYTY3WU7.js');
6031
6031
  const configPath = opts.config ?? defaultRunnerConfigPath();
6032
6032
  const { runnerImageVersion } = await import('./image-tag-DJ2DYY75.js');
6033
6033
  await requestStop(configPath, Boolean(opts.now), void 0, { image: runnerImageVersion() !== void 0 });
@@ -6035,8 +6035,8 @@ A repository with no devcontainer file builds on the universal image the CLI pin
6035
6035
  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) => {
6036
6036
  const { builtinKind, defaultRunnerConfigPath, loadRunnerConfig } = await import('./config-OJTLS62B.js');
6037
6037
  const { jobsDir, runnerDir } = await import('./paths-KPYCKVEO.js');
6038
- const { listJobFiles, runnerProcessState } = await import('./loop-OY7YZMHJ.js');
6039
- const { renderStatus } = await import('./status-HSUAGN6D.js');
6038
+ const { listJobFiles, runnerProcessState } = await import('./loop-NYTY3WU7.js');
6039
+ const { renderStatus } = await import('./status-6GZN7A33.js');
6040
6040
  const { readHousekeepingRecord } = await import('./record-SXQN3F2G.js');
6041
6041
  const path2 = await import('path');
6042
6042
  const configPath = opts.config ?? defaultRunnerConfigPath();
@@ -6109,7 +6109,7 @@ A repository with no devcontainer file builds on the universal image the CLI pin
6109
6109
  });
6110
6110
  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) => {
6111
6111
  const { defaultRunnerConfigPath } = await import('./config-OJTLS62B.js');
6112
- const { listJobFiles } = await import('./loop-OY7YZMHJ.js');
6112
+ const { listJobFiles } = await import('./loop-NYTY3WU7.js');
6113
6113
  const { describeAmbiguous, logPathFor, selectAttempt, tail, RunnerLogsError } = await import('./logs-IGY3Z45I.js');
6114
6114
  const configPath = opts.config ?? defaultRunnerConfigPath();
6115
6115
  const jobs = listJobFiles(configPath);
@@ -4,10 +4,10 @@ import { realLaunchAgentHost } from './chunk-3FCYURWW.js';
4
4
  import { realOwnership, accountNamed, handOver, runRunnerInstall, launcherSummary, restartNote, accountIdentity } from './chunk-MN73QQDA.js';
5
5
  import { installSandboxAgent, uninstallSandboxAgent } from './chunk-CZYUSXAR.js';
6
6
  import './chunk-TXKHD4Q6.js';
7
- import { installHelper, helperUnitFor, helperSocketFor, uninstallHelper } from './chunk-L4T6CI57.js';
7
+ import { installHelper, helperUnitFor, helperSocketFor, uninstallHelper } from './chunk-TS2U7ZAG.js';
8
8
  import './chunk-D3PPI7I4.js';
9
9
  import { currentLink, execStartCommand } from './chunk-TPLMLNME.js';
10
- import { detectMachine, ensureFirecrackerAndJailer } from './chunk-K7RHVH7G.js';
10
+ import { detectMachine, ensureFirecrackerAndJailer } from './chunk-GBZA57ZZ.js';
11
11
  import './chunk-HHOFP647.js';
12
12
  import './chunk-FBFYIEHC.js';
13
13
  import './chunk-I3LTIAOR.js';
@@ -1,8 +1,8 @@
1
1
  #!/usr/bin/env node
2
2
  import { createRequire } from 'node:module';
3
- import { reportFailedStart, BUILD_MEMORY_VARIABLE } from './chunk-AQS3AG4T.js';
4
- import { readOwnContainer } from './chunk-LX4GPGNE.js';
5
- import { detectMachine, supportsContainerBuilds, MIN_ENGINE_MAJOR, describeMachineDocker, RunnerInitError, prepareRunnerInit, writeRunnerInit } from './chunk-K7RHVH7G.js';
3
+ import { reportFailedStart, BUILD_MEMORY_VARIABLE } from './chunk-YNFCFPLT.js';
4
+ import { readOwnContainer } from './chunk-LSSTRAIO.js';
5
+ import { detectMachine, supportsContainerBuilds, MIN_ENGINE_MAJOR, describeMachineDocker, RunnerInitError, prepareRunnerInit, writeRunnerInit } from './chunk-GBZA57ZZ.js';
6
6
  import './chunk-HHOFP647.js';
7
7
  import './chunk-FBFYIEHC.js';
8
8
  import './chunk-I3LTIAOR.js';
@@ -1,10 +1,10 @@
1
1
  #!/usr/bin/env node
2
2
  import { createRequire } from 'node:module';
3
- import { helperBinaryFor } from './chunk-L4T6CI57.js';
4
- import { managedProblems, fleetConfigProblem, askFleetMachine } from './chunk-3RSCWOYQ.js';
3
+ import { helperBinaryFor } from './chunk-TS2U7ZAG.js';
4
+ import { managedProblems, fleetConfigProblem, askFleetMachine } from './chunk-Q7ZXPRTP.js';
5
5
  import { launcherCheck } from './chunk-D3PPI7I4.js';
6
6
  import './chunk-TPLMLNME.js';
7
- import { needsAgentCredential, agentCredentialCheck, detectMachine, supportsContainerBuilds, describeMachineDocker, MIN_ENGINE_MAJOR, reachDockerStep, supportsMicroVmBuilds, microVmArchSupported, microVmAssetsPinned, helperFirecrackerNote, probeHelper, helperSocketPath, KIND_LABEL, missingPermissionOf, missingPermissionFix } from './chunk-K7RHVH7G.js';
7
+ import { needsAgentCredential, agentCredentialCheck, detectMachine, supportsContainerBuilds, describeMachineDocker, MIN_ENGINE_MAJOR, reachDockerStep, supportsMicroVmBuilds, microVmArchSupported, microVmAssetsPinned, helperFirecrackerNote, probeHelper, helperSocketPath, KIND_LABEL, missingPermissionOf, missingPermissionFix } from './chunk-GBZA57ZZ.js';
8
8
  import './chunk-HHOFP647.js';
9
9
  import './chunk-FBFYIEHC.js';
10
10
  import './chunk-I3LTIAOR.js';
@@ -1,6 +1,6 @@
1
1
  #!/usr/bin/env node
2
2
  import { createRequire } from 'node:module';
3
- export { MAX_CHECK_ITEMS_BYTES, builtOf, checksIn, commandItems, isJudgeCheck, makeRecorder, readDefinitions, runHostChecks, testProofIn, timeoutAfter } from './chunk-K7RHVH7G.js';
3
+ export { MAX_CHECK_ITEMS_BYTES, builtOf, checksIn, commandItems, isJudgeCheck, makeRecorder, readDefinitions, runHostChecks, testProofIn, timeoutAfter } from './chunk-GBZA57ZZ.js';
4
4
  import './chunk-HHOFP647.js';
5
5
  import './chunk-FBFYIEHC.js';
6
6
  import './chunk-I3LTIAOR.js';
package/dist/index.js CHANGED
@@ -25,5 +25,5 @@ var { runSubcommand } = await import('./agent-subcommand-64YO6FE4.js');
25
25
  var launcherCode = await runSubcommand(argv);
26
26
  if (launcherCode !== void 0) process.exit(launcherCode);
27
27
  (await import('./hook-fast-3EMC5BR5.js')).recordLinkExitFailure(argv);
28
- var { runCli } = await import('./cli-YSZ2PWXK.js');
28
+ var { runCli } = await import('./cli-4YRY7FBI.js');
29
29
  await runCli(process.argv);
@@ -1,7 +1,7 @@
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-K7RHVH7G.js';
4
+ import { RunnerInitError, readConfigObject } from './chunk-GBZA57ZZ.js';
5
5
  import './chunk-HHOFP647.js';
6
6
  import './chunk-FBFYIEHC.js';
7
7
  import './chunk-I3LTIAOR.js';
@@ -1,6 +1,6 @@
1
1
  #!/usr/bin/env node
2
2
  import { createRequire } from 'node:module';
3
- export { PLACEHOLDER_MARKER, RunnerInitError, isPlaceholderCommand, nativeWindowsSandboxRefusal, prepareRunnerInit, readConfigObject, removeRunnerBlock, runRunnerInit, writeRunnerInit } from './chunk-K7RHVH7G.js';
3
+ export { PLACEHOLDER_MARKER, RunnerInitError, isPlaceholderCommand, nativeWindowsSandboxRefusal, prepareRunnerInit, readConfigObject, removeRunnerBlock, runRunnerInit, writeRunnerInit } from './chunk-GBZA57ZZ.js';
4
4
  import './chunk-HHOFP647.js';
5
5
  import './chunk-FBFYIEHC.js';
6
6
  import './chunk-I3LTIAOR.js';
@@ -1,6 +1,6 @@
1
1
  #!/usr/bin/env node
2
2
  import { createRequire } from 'node:module';
3
- import { RunnerInitError } from './chunk-K7RHVH7G.js';
3
+ import { RunnerInitError } from './chunk-GBZA57ZZ.js';
4
4
  import './chunk-HHOFP647.js';
5
5
  import './chunk-FBFYIEHC.js';
6
6
  import './chunk-I3LTIAOR.js';
@@ -1,7 +1,7 @@
1
1
  #!/usr/bin/env node
2
2
  import { createRequire } from 'node:module';
3
- export { applyShellFunctionFlag, runInitCommand } from './chunk-O6YRZ4CP.js';
4
- import './chunk-3QNW4M64.js';
3
+ export { applyShellFunctionFlag, runInitCommand } from './chunk-GU7QECTA.js';
4
+ import './chunk-OUGHUEV7.js';
5
5
  import './chunk-4KCWAP5L.js';
6
6
  import './chunk-KPCGSGZS.js';
7
7
  import './chunk-KZEZBZ4W.js';
@@ -1,16 +1,16 @@
1
1
  #!/usr/bin/env node
2
2
  import { createRequire } from 'node:module';
3
- export { LAPSED_REASON, RunnerStartError, applyComments, endWhenStartFails, fleetKeepalive, leaseTimeLeftFor, listJobFiles, logUnusableHelper, prepareSession, probeBuild, probeCredentials, provisionsBesideOthers, requestStop, runnerProcessState, runtimeOf, sampleUsage, start, tick, watchTick } from './chunk-QYJYYF3J.js';
3
+ export { LAPSED_REASON, RunnerStartError, applyComments, endWhenStartFails, fleetKeepalive, leaseTimeLeftFor, listJobFiles, logUnusableHelper, prepareSession, probeBuild, probeCredentials, provisionsBesideOthers, requestStop, runnerProcessState, runtimeOf, sampleUsage, start, tick, watchTick } from './chunk-FTXTRATJ.js';
4
4
  import './chunk-AAGXH2FR.js';
5
5
  import './chunk-E7R2GIAW.js';
6
- import './chunk-AQS3AG4T.js';
7
- import './chunk-LX4GPGNE.js';
6
+ import './chunk-YNFCFPLT.js';
7
+ import './chunk-LSSTRAIO.js';
8
8
  import './chunk-TXKHD4Q6.js';
9
9
  import './chunk-UAGUV74T.js';
10
10
  import './chunk-VEW4BPVJ.js';
11
- import './chunk-3RSCWOYQ.js';
11
+ import './chunk-Q7ZXPRTP.js';
12
12
  import './chunk-TPLMLNME.js';
13
- import './chunk-K7RHVH7G.js';
13
+ import './chunk-GBZA57ZZ.js';
14
14
  import './chunk-HHOFP647.js';
15
15
  import './chunk-FBFYIEHC.js';
16
16
  import './chunk-I3LTIAOR.js';
@@ -1,6 +1,6 @@
1
1
  #!/usr/bin/env node
2
2
  import { createRequire } from 'node:module';
3
- export { describeMachineDocker, detectMachine, microVmArchSupported, microVmAssetsPinned, reachDockerStep, supportsContainerBuilds, supportsMicroVmBuilds } from './chunk-K7RHVH7G.js';
3
+ export { describeMachineDocker, detectMachine, microVmArchSupported, microVmAssetsPinned, reachDockerStep, supportsContainerBuilds, supportsMicroVmBuilds } from './chunk-GBZA57ZZ.js';
4
4
  import './chunk-HHOFP647.js';
5
5
  import './chunk-FBFYIEHC.js';
6
6
  import './chunk-I3LTIAOR.js';
@@ -1,6 +1,6 @@
1
1
  #!/usr/bin/env node
2
2
  import { createRequire } from 'node:module';
3
- import { readConfigObject, RunnerInitError } from './chunk-K7RHVH7G.js';
3
+ import { readConfigObject, RunnerInitError } from './chunk-GBZA57ZZ.js';
4
4
  import './chunk-HHOFP647.js';
5
5
  import './chunk-FBFYIEHC.js';
6
6
  import './chunk-I3LTIAOR.js';
@@ -1,10 +1,10 @@
1
1
  #!/usr/bin/env node
2
2
  import { createRequire } from 'node:module';
3
- import { runInitCommand } from './chunk-O6YRZ4CP.js';
4
- import './chunk-3QNW4M64.js';
3
+ import { runInitCommand } from './chunk-GU7QECTA.js';
4
+ import './chunk-OUGHUEV7.js';
5
5
  import './chunk-4KCWAP5L.js';
6
6
  import { currentBranch, openSetupPullRequest, setupPullRequestUrl, setupBranchPushed, setupMerged, setupBaseBranch, markSetupInstalled, setupInstalled } from './chunk-J4EPJMU6.js';
7
- import { detectMachine, supportsMicroVmBuilds, supportsContainerBuilds, reachDockerStep, describeMachineDocker } from './chunk-K7RHVH7G.js';
7
+ import { detectMachine, supportsMicroVmBuilds, supportsContainerBuilds, reachDockerStep, describeMachineDocker } from './chunk-GBZA57ZZ.js';
8
8
  import './chunk-HHOFP647.js';
9
9
  import './chunk-FBFYIEHC.js';
10
10
  import './chunk-I3LTIAOR.js';
@@ -1,6 +1,6 @@
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-K7RHVH7G.js';
3
+ import { isReadable, LEASE_SECONDS, ALREADY_RELEASED, RENEW_INTERVAL_SECONDS } from './chunk-GBZA57ZZ.js';
4
4
  import './chunk-HHOFP647.js';
5
5
  import './chunk-FBFYIEHC.js';
6
6
  import './chunk-I3LTIAOR.js';
@@ -1,7 +1,7 @@
1
1
  #!/usr/bin/env node
2
2
  import { createRequire } from 'node:module';
3
- export { readOwnContainer, renderUpdateSteps, runUpdateSteps } from './chunk-LX4GPGNE.js';
4
- import './chunk-K7RHVH7G.js';
3
+ export { readOwnContainer, renderUpdateSteps, runUpdateSteps } from './chunk-LSSTRAIO.js';
4
+ import './chunk-GBZA57ZZ.js';
5
5
  import './chunk-HHOFP647.js';
6
6
  import './chunk-FBFYIEHC.js';
7
7
  import './chunk-I3LTIAOR.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-2AEXGFFJ.js';
3
+ export { classifyProofs, classifyProofsAt, otherPullRequestHeads, renderProofRow, resolveProofsItem, runWorkProofs, runWorkProofsCommand } from './chunk-WNW7BQ7H.js';
4
4
  import './chunk-FBFYIEHC.js';
5
5
  import './chunk-KZEZBZ4W.js';
6
6
  import './chunk-V65YF5VP.js';
@@ -1,6 +1,6 @@
1
1
  #!/usr/bin/env node
2
2
  import { createRequire } from 'node:module';
3
- import { resolveProofsItem, ownPullRequest, otherPullRequestHeads, testProofMode, classifyProofsAt, runWorkProofs, proofsCommentId, testFilesOf, freshXmlFiles, joinResults, testSelectors, kindProblem, renderProofRow, proofsCommentBody } from './chunk-2AEXGFFJ.js';
3
+ import { resolveProofsItem, ownPullRequest, otherPullRequestHeads, testProofMode, classifyProofsAt, runWorkProofs, proofsCommentId, testFilesOf, freshXmlFiles, joinResults, testSelectors, kindProblem, renderProofRow, proofsCommentBody } from './chunk-WNW7BQ7H.js';
4
4
  import { runWorkComment } from './chunk-IXHMDBXY.js';
5
5
  import { runEmitDemo, planScreenshots, chapterPassed, readStill } from './chunk-CKS7B2ZJ.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.40.0-next.20261117055025",
3
+ "version": "0.40.0-next.20261117115225",
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.",