@outerlayer/cli 0.36.0-next.20261031161320 → 0.36.0-next.20261101022001

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 (43) hide show
  1. package/dist/build-info.json +1 -1
  2. package/dist/{check-ARDGJYVM.js → check-LUQM6DGK.js} +7 -7
  3. package/dist/{chunk-4RSTPRMH.js → chunk-453B2ZHX.js} +1 -1
  4. package/dist/{chunk-LZ7PAU55.js → chunk-7EPIOSLO.js} +1 -1
  5. package/dist/{chunk-TXJMHMPO.js → chunk-AHEIZCCA.js} +2 -2
  6. package/dist/{chunk-MR5MAX77.js → chunk-CVQ4YBBE.js} +1 -1
  7. package/dist/{chunk-7SDVHXP7.js → chunk-GQVOK4ZO.js} +8 -8
  8. package/dist/{chunk-PGWK2FH5.js → chunk-HDTFRHY6.js} +2 -2
  9. package/dist/{chunk-27DQ3DDF.js → chunk-IVH7WDOO.js} +2 -2
  10. package/dist/{chunk-JVQYYVDS.js → chunk-NIZ7FXUX.js} +6 -4
  11. package/dist/{chunk-S6OD32NC.js → chunk-T3SRWWPX.js} +1 -0
  12. package/dist/{chunk-VG2NIWR4.js → chunk-XZ7NIGVA.js} +1 -1
  13. package/dist/{chunk-VHR3WQTP.js → chunk-ZJ4Y2BOI.js} +4 -4
  14. package/dist/{cli-YLO3M2X4.js → cli-I7ZLMEL6.js} +46 -46
  15. package/dist/{command-IANIXN6N.js → command-TDJDBIXU.js} +4 -4
  16. package/dist/{container-start-EUTOX4EU.js → container-start-DNGL4XJ3.js} +5 -5
  17. package/dist/{doctor-VSPDIR6T.js → doctor-LXVJQKME.js} +5 -5
  18. package/dist/{governing-source-6ANJ4HQI.js → governing-source-3LUGSBRW.js} +2 -2
  19. package/dist/{host-checks-3QBPJLSG.js → host-checks-7NCEW7FR.js} +3 -3
  20. package/dist/index.js +1 -1
  21. package/dist/{init-JLOGNKPC.js → init-AQJEIH57.js} +3 -3
  22. package/dist/{init-5QYRPZ63.js → init-U4AM3APJ.js} +3 -3
  23. package/dist/{init-cmd-NDXN2XPU.js → init-cmd-SP4YMVKT.js} +2 -2
  24. package/dist/{loop-I7ZM4CEZ.js → loop-NKJRLAGI.js} +7 -7
  25. package/dist/{machine-7NYF2WBI.js → machine-VV4LYWZQ.js} +3 -3
  26. package/dist/recorder.cjs +166 -55
  27. package/dist/{runner-key-VVLYZFP6.js → runner-key-4JXOPPUJ.js} +3 -3
  28. package/dist/{spec-cmd-253AGRFF.js → spec-cmd-6LT5JJKG.js} +1 -1
  29. package/dist/{status-I3TV7ZZV.js → status-OADVUMST.js} +3 -3
  30. package/dist/{update-steps-VOSUXXMS.js → update-steps-GRF3BQ5M.js} +4 -4
  31. package/dist/{work-claim-cmd-KG3VBBZ2.js → work-claim-cmd-2OO73LEV.js} +2 -2
  32. package/dist/{work-cmd-JZUBXXJN.js → work-cmd-YOWM4KZU.js} +1 -1
  33. package/dist/{work-comment-cmd-L4R6ZXLO.js → work-comment-cmd-7AKCM2JN.js} +2 -2
  34. package/dist/{work-demo-cmd-YNPN2PHQ.js → work-demo-cmd-DHJDR7BB.js} +1 -1
  35. package/dist/{work-logs-cmd-CSQJB5MD.js → work-logs-cmd-62PZKGUU.js} +1 -1
  36. package/dist/{work-open-pr-cmd-Y7YNI2PF.js → work-open-pr-cmd-DMDHGKEJ.js} +1 -1
  37. package/dist/{work-proofs-cmd-74Z72ZG6.js → work-proofs-cmd-UQPQF7CK.js} +2 -2
  38. package/dist/{work-proofs-record-LT7UXHNZ.js → work-proofs-record-SRL7DRXV.js} +3 -3
  39. package/dist/{work-stop-cmd-LF4OTNPL.js → work-stop-cmd-NYPQKSHC.js} +1 -1
  40. package/package.json +1 -1
  41. package/skill-pack/maintained/outerlayer-build/references/agent-briefs.md +4 -2
  42. package/skill-pack/maintained/outerlayer-evidence/SKILL.md +8 -3
  43. package/skill-pack/maintained/outerlayer-evidence/references/demo.md +17 -4
@@ -1 +1 @@
1
- {"id":"2026-10-31T16:15:33.663Z+418c02a","root":"/home/runner/work/outerlayer/outerlayer","pkg":"outerlayer"}
1
+ {"id":"2026-11-01T02:22:18.298Z+44175da","root":"/home/runner/work/outerlayer/outerlayer","pkg":"outerlayer"}
@@ -1,18 +1,18 @@
1
1
  #!/usr/bin/env node
2
2
  import { createRequire } from 'node:module';
3
- import { probeCredentials } from './chunk-7SDVHXP7.js';
3
+ import { probeCredentials } from './chunk-GQVOK4ZO.js';
4
4
  import './chunk-7Y5VW4JG.js';
5
5
  import './chunk-3JVYMD4G.js';
6
6
  import './chunk-E7R2GIAW.js';
7
- import './chunk-27DQ3DDF.js';
8
- import './chunk-MR5MAX77.js';
7
+ import './chunk-IVH7WDOO.js';
8
+ import './chunk-CVQ4YBBE.js';
9
9
  import './chunk-3LCXSD26.js';
10
10
  import './chunk-LGV5N5DG.js';
11
11
  import './chunk-EZRAR5YG.js';
12
- import { fleetConfigProblem, managedProblems, managedFactsOf, askFleetMachine } from './chunk-PGWK2FH5.js';
12
+ import { fleetConfigProblem, managedProblems, managedFactsOf, askFleetMachine } from './chunk-HDTFRHY6.js';
13
13
  import './chunk-AF6DQJ5W.js';
14
14
  import { findServiceUnit } from './chunk-4NMAJYYE.js';
15
- import { placeholderQueues, placeholderProblem, permissionModeProblems, permissionModeProblem, HELPER_ENV, helperSocketPath, probeHelper, needsClaudeCredential, claudeCredentialCheck, claimPermissionProblem, formerSkillQueues, formerSkillProblem } from './chunk-JVQYYVDS.js';
15
+ import { placeholderQueues, placeholderProblem, permissionModeProblems, permissionModeProblem, HELPER_ENV, helperSocketPath, probeHelper, needsClaudeCredential, claudeCredentialCheck, claimPermissionProblem, formerSkillQueues, formerSkillProblem } from './chunk-NIZ7FXUX.js';
16
16
  import './chunk-GDIVOYDA.js';
17
17
  import './chunk-I3LTIAOR.js';
18
18
  import './chunk-2PGI6RDE.js';
@@ -32,7 +32,7 @@ import './chunk-KB5B6ZT5.js';
32
32
  import './chunk-WAZJPDR2.js';
33
33
  import './chunk-OGFGZQA3.js';
34
34
  import './chunk-46OBCATR.js';
35
- import './chunk-LZ7PAU55.js';
35
+ import './chunk-7EPIOSLO.js';
36
36
  import './chunk-55PYF6S2.js';
37
37
  import './chunk-JBJTC3UU.js';
38
38
  import './chunk-UZGQT6OF.js';
@@ -45,7 +45,7 @@ import './chunk-CIUD3436.js';
45
45
  import './chunk-OUPQTA7N.js';
46
46
  import './chunk-OHQMGLJP.js';
47
47
  import './chunk-3SQZ5LIK.js';
48
- import './chunk-S6OD32NC.js';
48
+ import './chunk-T3SRWWPX.js';
49
49
  import './chunk-IP7BIBXJ.js';
50
50
  import './chunk-LHFG5YUG.js';
51
51
  import './chunk-JPROSTGX.js';
@@ -1,6 +1,6 @@
1
1
  #!/usr/bin/env node
2
2
  import { createRequire } from 'node:module';
3
- import { helperSocketPath } from './chunk-JVQYYVDS.js';
3
+ import { helperSocketPath } from './chunk-NIZ7FXUX.js';
4
4
  import { UNIT_MARKER } from './chunk-IP7F4CQH.js';
5
5
  import { runnerDir } from './chunk-WT7J2627.js';
6
6
  import { createHash } from 'crypto';
@@ -1,6 +1,6 @@
1
1
  #!/usr/bin/env node
2
2
  import { createRequire } from 'node:module';
3
- import { WorkCommandError, postJson } from './chunk-S6OD32NC.js';
3
+ import { WorkCommandError, postJson } from './chunk-T3SRWWPX.js';
4
4
  import { defaultGitRunner, materializeContext, fetchControlPlaneCommit, lookupGoverningSource } from './chunk-PN6TNCQI.js';
5
5
  import { buildRefusalReason } from './chunk-F3ZMVUAS.js';
6
6
  import { signingFetchFor } from './chunk-YQHEJ5SV.js';
@@ -1,7 +1,7 @@
1
1
  #!/usr/bin/env node
2
2
  import { createRequire } from 'node:module';
3
3
  import { checkStarterFiles, contextIsGoverned } from './chunk-U553JKMO.js';
4
- import { resolveCredentials, getJson, WorkCommandError } from './chunk-S6OD32NC.js';
4
+ import { resolveCredentials, getJson, WorkCommandError } from './chunk-T3SRWWPX.js';
5
5
  import { isLinkedRepository } from './chunk-JPROSTGX.js';
6
6
  import { C } from './chunk-2AM6Z5BP.js';
7
7
  import { fleetCheck, checkBuildSkill, checkMachineSkills, checkCommittedMaintainedSkills, checkMaintainedReferences, checkIgnoredSkillFolders } from './chunk-C4YULCXX.js';
@@ -1224,7 +1224,7 @@ async function gatherDoctorChecks() {
1224
1224
  const { runnerVmCheck } = await import('./doctor-53F2PYY7.js');
1225
1225
  checks.push(runnerVmCheck(configPath, { lima: realLima(), home: homeFromEnv(), instance: runnerVm.instance }));
1226
1226
  } else if (hasRunnerBlock(configPath)) {
1227
- const { runnerHostChecks } = await import('./doctor-VSPDIR6T.js');
1227
+ const { runnerHostChecks } = await import('./doctor-LXVJQKME.js');
1228
1228
  const gateway = (() => {
1229
1229
  try {
1230
1230
  const loaded = loadRunnerConfig(configPath);
@@ -1,6 +1,6 @@
1
1
  #!/usr/bin/env node
2
2
  import { createRequire } from 'node:module';
3
- import { stripTerminalControls } from './chunk-JVQYYVDS.js';
3
+ import { stripTerminalControls } from './chunk-NIZ7FXUX.js';
4
4
  import { tagToPull, imageTag, pullInstruction, readUpdateStatus, runnerImageVersion } from './chunk-ALEUIS35.js';
5
5
  import { readFileSync } from 'fs';
6
6
 
@@ -3,27 +3,27 @@ import { createRequire } from 'node:module';
3
3
  import { readHousekeepingRecord, writeHousekeepingRecord } from './chunk-7Y5VW4JG.js';
4
4
  import { decideInstalledSwitch } from './chunk-3JVYMD4G.js';
5
5
  import { fetchVersionMeta, npmVersion, npmSupportsProvenance, fetchTarballDigest, fetchProvenance, installVersion, auditSignatures } from './chunk-E7R2GIAW.js';
6
- import { reportFailedStart, fitImageBuildMemory } from './chunk-27DQ3DDF.js';
7
- import { renderUpdateSteps } from './chunk-MR5MAX77.js';
6
+ import { reportFailedStart, fitImageBuildMemory } from './chunk-IVH7WDOO.js';
7
+ import { renderUpdateSteps } from './chunk-CVQ4YBBE.js';
8
8
  import { RUNNER_PROTOCOL } from './chunk-3LCXSD26.js';
9
9
  import { writeFleetState } from './chunk-LGV5N5DG.js';
10
10
  import { writePendingUpdate } from './chunk-EZRAR5YG.js';
11
- import { fleetConfigProblem, realBlockedProbes, sliceMemoryOf, checkBlockedWithSlots, largeBuildMemoryBytes, LARGE_BUILD_DISK_BYTES, checkManagedRoom, askFleetMachine } from './chunk-PGWK2FH5.js';
11
+ import { fleetConfigProblem, realBlockedProbes, sliceMemoryOf, checkBlockedWithSlots, largeBuildMemoryBytes, LARGE_BUILD_DISK_BYTES, checkManagedRoom, askFleetMachine } from './chunk-HDTFRHY6.js';
12
12
  import { writeMarker, readMarker, currentVersion, removeMarker, isInLayout, startedThroughCurrent, entryIn, versionDir, switchCurrent, cleanVersions, stagingDir } from './chunk-AF6DQJ5W.js';
13
- import { leaseTimeLeftMs, createContainerRuntime, withTunnelLog, releaseLease, LEASE_SECONDS, itemTag, isUnfinished, prepareResume, restoreSessionIntoMicroVm, restoreSessionIntoContainer, itemScope, attemptNote, fetchManagedClaudeKey, holdManagedClaudeKey, fetchManagedBuildSettings, holdManagedBuildSettings, setStage, jobEnv, runHook, describeHookEnd, needsBuildSkill, provisionContainer, leaseExpiresAtMs, deliverContainerHooks, provisionMicroVm, deliverCommitHooks, provisionProcess, provisionEnvironment, readProvisionOut, resolveHostBuild, workdirProblem, listenOnBroker, hostEnvironment, deliverExecMaven, runWithSpawn, hostCommandEnvironment, lifecycleSteps, execArgv, lifecycleFailureReason, decideHostBuildSkill, prepareBranch, currentSkillCommand, formerSkillProblem, MICROVM_COMMAND_DIR, commandLogOffset, startMicroVmCommand, microVmCommandLine, runCommand, containerCommandExec, execCommandLine, startSender, startHostServices, finishJob, sampleGuest, foldSample, isContainerTracked, isMicroVmTracked, probeMicroVmCommand, probeCommand, appendCommandLog, judgeProbe, EXIT_CODE_FILE, isTracked, isGroupAlive, outcomeFromExitCode, isTimedOut, readCpuUsec, isIdle, HELPER_ENV, setUpRunnerCgroup, stopOrphanedMicroVms, unfinishedJobs, sweepImageBuilders, listUnreadableJobs, listAdoptableJobs, retryFailedReleases, recoverLostJobs, GUEST_USAGE_INTERVAL_MS, usableCpus, hookLimitsFor, AttemptLogBook, microVmOomKills, needsRenew, renewLease, RENEW_INTERVAL_SECONDS, stoppedHelperReason, measureDisk, listTrackedJobs, parseCpuList, ensureTunnel, keepGhConfigCurrent, filesAreCopied, restartSender, createHousekeepingDocker, housekeepingDockerIfReachable, runHousekeeping, savedStatesDir, readRecords, removeOldestUntil, ensureNetworkReady, managedBuildSettingsFor, ADOPTED_FETCH_RETRY_WINDOW_MS, gitRemoteFor, startServicesFor, createLeaseChannel, serveLease, vmAlive, writeGuestGhConfig, shellQuote, deliverJobFiles, inTeardown } from './chunk-JVQYYVDS.js';
13
+ import { leaseTimeLeftMs, createContainerRuntime, withTunnelLog, releaseLease, LEASE_SECONDS, itemTag, isUnfinished, prepareResume, restoreSessionIntoMicroVm, restoreSessionIntoContainer, itemScope, attemptNote, fetchManagedClaudeKey, holdManagedClaudeKey, fetchManagedBuildSettings, holdManagedBuildSettings, setStage, jobEnv, runHook, describeHookEnd, needsBuildSkill, provisionContainer, leaseExpiresAtMs, deliverContainerHooks, provisionMicroVm, deliverCommitHooks, provisionProcess, provisionEnvironment, readProvisionOut, resolveHostBuild, workdirProblem, listenOnBroker, hostEnvironment, deliverExecMaven, runWithSpawn, hostCommandEnvironment, lifecycleSteps, execArgv, lifecycleFailureReason, decideHostBuildSkill, prepareBranch, currentSkillCommand, formerSkillProblem, MICROVM_COMMAND_DIR, commandLogOffset, startMicroVmCommand, microVmCommandLine, runCommand, containerCommandExec, execCommandLine, startSender, startHostServices, finishJob, sampleGuest, foldSample, isContainerTracked, isMicroVmTracked, probeMicroVmCommand, probeCommand, appendCommandLog, judgeProbe, EXIT_CODE_FILE, isTracked, isGroupAlive, outcomeFromExitCode, isTimedOut, readCpuUsec, isIdle, HELPER_ENV, setUpRunnerCgroup, stopOrphanedMicroVms, unfinishedJobs, sweepImageBuilders, listUnreadableJobs, listAdoptableJobs, retryFailedReleases, recoverLostJobs, GUEST_USAGE_INTERVAL_MS, usableCpus, hookLimitsFor, AttemptLogBook, microVmOomKills, needsRenew, renewLease, RENEW_INTERVAL_SECONDS, stoppedHelperReason, measureDisk, listTrackedJobs, parseCpuList, ensureTunnel, keepGhConfigCurrent, filesAreCopied, restartSender, createHousekeepingDocker, housekeepingDockerIfReachable, runHousekeeping, savedStatesDir, readRecords, removeOldestUntil, ensureNetworkReady, managedBuildSettingsFor, ADOPTED_FETCH_RETRY_WINDOW_MS, gitRemoteFor, startServicesFor, createLeaseChannel, serveLease, vmAlive, writeGuestGhConfig, shellQuote, deliverJobFiles, inTeardown } from './chunk-NIZ7FXUX.js';
14
14
  import { RepoFilter } from './chunk-XTVVKNRP.js';
15
15
  import { JOB_STATE_FORMAT, readsJobState, jobStateFormatOf } from './chunk-ZVB57WI6.js';
16
16
  import { imageTag, writeUpdateStatus, pullInstruction, tagToPull } from './chunk-ALEUIS35.js';
17
17
  import { isVersion, compareVersions, satisfiesRange } from './chunk-TQMI335S.js';
18
18
  import { RUNNER_RESERVE_BYTES } from './chunk-IP7F4CQH.js';
19
19
  import { claimPidFile, releasePidFile, writePidFile, readPidFile } from './chunk-WAZJPDR2.js';
20
- import { describeCallFailure, retrySend, shortClaim, relativeToRunner, formatDuration, resolveGoverningSource, BuildTokens, classifyRefusal, refusalCode, createRunnerLog, formatClock } from './chunk-LZ7PAU55.js';
20
+ import { describeCallFailure, retrySend, shortClaim, relativeToRunner, formatDuration, resolveGoverningSource, BuildTokens, classifyRefusal, refusalCode, createRunnerLog, formatClock } from './chunk-7EPIOSLO.js';
21
21
  import { startTimeOf, isSameProcess } from './chunk-JBJTC3UU.js';
22
22
  import { claimCalls, claimItem, spoolHomeFor, leftByRunnerKey, runnerCalls } from './chunk-LXYWSGEW.js';
23
23
  import { keyRunnerFactory, isBuiltinContainer, isBuiltinVm, isBuiltinProcess, loadRunnerConfig, checkHooks, builtinKind, keepsHostBuilder, DEFAULT_SAVED_STATE_MAX_BYTES, DEFAULT_UPDATE_MAX_WAIT_HOURS } from './chunk-H3S5LJI2.js';
24
24
  import { allocatedBytes, freeBytes, formatBytes } from './chunk-IGHAPIKZ.js';
25
25
  import { writeJobFile, ensureRunnerIdentity, identityDockerFor, readJobFile, exceedsDisk, builderName, runnerLabelValue, ensureFailureCount, builderSpec, ensureBuilder, spawnRun } from './chunk-6O33JZ3X.js';
26
- import { isSignatureRefusal, WorkCommandError, getJson, postJson } from './chunk-S6OD32NC.js';
26
+ import { isSignatureRefusal, WorkCommandError, getJson, postJson } from './chunk-T3SRWWPX.js';
27
27
  import { loadHostKey, ensureHostKey, signerFor } from './chunk-4DJZSNVT.js';
28
28
  import { resolveVersion } from './chunk-RA3O54FC.js';
29
29
  import { RUNNER_DIR_MODE, runnerDir, buildDir, attemptStamp, jobDir, RUNNER_FILE_MODE, jobsDir, pidFilePath, storeScopes, imagesDir } from './chunk-WT7J2627.js';
@@ -2171,7 +2171,7 @@ var CLAIM_REFUSAL_CODES = new Set(
2171
2171
  "pull_request_from_fork pull_request_on_default_branch pull_request_ambiguous pull_request_repository_not_connected repository_not_reachable branch_claimed_elsewhere".split(" ")
2172
2172
  );
2173
2173
  async function tryClaimAndStart(state, item, queue) {
2174
- const { postJson: postJson2 } = await import('./work-cmd-JZUBXXJN.js');
2174
+ const { postJson: postJson2 } = await import('./work-cmd-YOWM4KZU.js');
2175
2175
  const log = logOf(state);
2176
2176
  const hostKey = await loadHostKey(state.config.configPath);
2177
2177
  const claim = await retrySend(
@@ -3542,7 +3542,7 @@ async function startRunner(configPath, deps, startup) {
3542
3542
  check: update.check ? () => update.check(configPath) : async () => {
3543
3543
  const held = heldClaudeCredential();
3544
3544
  const env = held === void 0 ? process.env : { ...process.env, [held.variable]: held.value };
3545
- return (await import('./check-ARDGJYVM.js')).runRunnerCheck(configPath, { fetchImpl: deps.fetchImpl, env });
3545
+ return (await import('./check-LUQM6DGK.js')).runRunnerCheck(configPath, { fetchImpl: deps.fetchImpl, env });
3546
3546
  },
3547
3547
  now: () => (deps.now ?? (() => /* @__PURE__ */ new Date()))().getTime(),
3548
3548
  log
@@ -1,11 +1,11 @@
1
1
  #!/usr/bin/env node
2
2
  import { createRequire } from 'node:module';
3
- import { placeholderQueues, placeholderProblem } from './chunk-JVQYYVDS.js';
3
+ import { placeholderQueues, placeholderProblem } from './chunk-NIZ7FXUX.js';
4
4
  import { checkFit, RUNNER_RESERVE_BYTES } from './chunk-IP7F4CQH.js';
5
5
  import { isBuiltinVm, builtinKind, EGRESS_SWITCHABLE_KEYS, imageBuildOf, keepsHostBuilder } from './chunk-H3S5LJI2.js';
6
6
  import { realBuildDiskProbe, checkDiskFit, DEFAULT_CACHE_DISK, DEFAULT_BUILD_DISK } from './chunk-IGHAPIKZ.js';
7
7
  import { builderDiskPinned } from './chunk-OUPQTA7N.js';
8
- import { getJson, WorkCommandError } from './chunk-S6OD32NC.js';
8
+ import { getJson, WorkCommandError } from './chunk-T3SRWWPX.js';
9
9
  import { ensureHostKey } from './chunk-4DJZSNVT.js';
10
10
  import { BUILD_SLICE_MEMORY_ENV, FORWARDED_CLAUDE_CREDENTIAL_VARIABLES, claudeCredentialVariablesSet, claudeCredential, claudeEnvPath, parseRunnerEnv } from './chunk-GANAOCHR.js';
11
11
  import { closeSync, openSync, constants, readFileSync } from 'fs';
@@ -1,11 +1,11 @@
1
1
  #!/usr/bin/env node
2
2
  import { createRequire } from 'node:module';
3
- import { scrubReason, stripTerminalControls } from './chunk-JVQYYVDS.js';
3
+ import { scrubReason, stripTerminalControls } from './chunk-NIZ7FXUX.js';
4
4
  import { checkFit, RUNNER_RESERVE_BYTES } from './chunk-IP7F4CQH.js';
5
5
  import { RunnerAlreadyRunningError, readPidFile } from './chunk-WAZJPDR2.js';
6
6
  import { isSameProcess } from './chunk-JBJTC3UU.js';
7
7
  import { keyRunnerFactory } from './chunk-H3S5LJI2.js';
8
- import { isSignatureRefusal, postJson } from './chunk-S6OD32NC.js';
8
+ import { isSignatureRefusal, postJson } from './chunk-T3SRWWPX.js';
9
9
  import { signerFor } from './chunk-4DJZSNVT.js';
10
10
  import { pidFilePath } from './chunk-WT7J2627.js';
11
11
  import { readFileSync } from 'fs';
@@ -14,7 +14,7 @@ import { readDefaultBranchFiles, readDefaultBranchHead, cloneRepository, buildRe
14
14
  import { FETCHED_DIR, toolsDockerfile, FETCHED_FFMPEG, FETCHED_GH, FETCHED_TINI, FETCHED_HEADLESS_SHELL, FETCHED_PLAYWRIGHT_FFMPEG, FETCHED_VOICE_DIR } from './chunk-KB5B6ZT5.js';
15
15
  import { currentCliBuild } from './chunk-OGFGZQA3.js';
16
16
  import { vmExecArgs, runExec, execCapture, waitForAgent } from './chunk-46OBCATR.js';
17
- import { describeCallFailure, shortClaim, retrySend, commandWithShim, logStamp, createRunnerLog, formatDuration, removeKeptContext, formatClock, stageGovernedContext, keptContextTree, removeStagedContext, WORKFLOW_PERMISSION_REASON, refusalCode, resolveGoverningSource, prefetchGovernedContext, controlPlaneTokenFailure, keepStagedContext, pinnedSourceOf, shimScript } from './chunk-LZ7PAU55.js';
17
+ import { describeCallFailure, shortClaim, retrySend, commandWithShim, logStamp, createRunnerLog, formatDuration, removeKeptContext, formatClock, stageGovernedContext, keptContextTree, removeStagedContext, WORKFLOW_PERMISSION_REASON, refusalCode, resolveGoverningSource, prefetchGovernedContext, controlPlaneTokenFailure, keepStagedContext, pinnedSourceOf, shimScript } from './chunk-7EPIOSLO.js';
18
18
  import { HELPER_PATH, HELPER_RECORD, DOCKERD_LOG } from './chunk-55PYF6S2.js';
19
19
  import { isSameProcess, startTimeOf } from './chunk-JBJTC3UU.js';
20
20
  import { socketPathProblem, vsockLinks, linkVsockSockets, GUEST_CID, LEASE_LINK } from './chunk-UZGQT6OF.js';
@@ -25,7 +25,7 @@ import { formatBytes, volumeBytes, allocatedBytes, DEFAULT_CACHE_DISK, DEFAULT_B
25
25
  import { writeJobFile, readJobFile, spawnRun, RUNNER_LABEL, BUILD_LABEL, NETWORK_HELPER_MEMORY, createDockerHost, builderSpec, containerExecArgs, childEnvironment, readDu, withAnswerProtocol, judgeCommand, MAX_REPORT_BYTES, readJobFileChecked, NETWORK_READY_FILE, networkHelperName, runnerLabelValue, prepareRunArgs, containerRunArgs, JUDGE_MAX_TURNS, parseSize, homeCopyRunArgs, networkHelperRunArgs, JUDGE_DIR, HASH_ARGV, parseProgramHash, identityScript, identityArgs, parseIdentity, mountableHome, homeCopyScript, homeCopyArgs, COMMAND_DIR, JUDGE_PROGRAM, MAX_ITEMS_BYTES, JUDGE_ITEMS, JUDGE_REPORT, identityRunArgs, SAVED_STATE_LABEL } from './chunk-6O33JZ3X.js';
26
26
  import { universalImagePending, RecipeError, writeSanitizedRecipe, classifyProperties, DOCKER_FEATURE } from './chunk-CIUD3436.js';
27
27
  import { firecrackerArch, MICROVM_ARCHES, FIRECRACKER_VERSION, hostHelperPinned, builderDiskPinned, guestAssetsPinned, GUEST_HELPER_SHA256, GUEST_ASSETS_BASE_URL, GUEST_KERNEL_SHA256, JAILER_BINARY_SHA256, FIRECRACKER_BINARY_SHA256, FIRECRACKER_SHA256, GUEST_ASSETS_VERSION, BUILDER_DISK_VERSION, networkHelperPinned, NETWORK_HELPER_SHA256, universalImagePinned, UNIVERSAL_IMAGE, FFMPEG_STATIC, FFMPEG_BUILD_TAG, GH_SHA256, GH_VERSION, TINI_SHA256, TINI_VERSION, HEADLESS_SHELL, HEADLESS_SHELL_BASE_URL, PLAYWRIGHT_FFMPEG, PLAYWRIGHT_FFMPEG_BASE_URL, VOICE_PACK_FILES, BUILDER_DISK_SHA256, BUILDER_DISK_BASE_URL, DEFAULT_BASE_IMAGE, CLAUDE_CODE_VERSION } from './chunk-OUPQTA7N.js';
28
- import { postJson, WorkCommandError, getJson, isSignatureRefusal } from './chunk-S6OD32NC.js';
28
+ import { postJson, WorkCommandError, getJson, isSignatureRefusal } from './chunk-T3SRWWPX.js';
29
29
  import { sanitizeTerminal, planArtifactUpload } from './chunk-3PQTOKML.js';
30
30
  import { readCloudConfig } from './chunk-HWVMRETT.js';
31
31
  import { signerFor } from './chunk-4DJZSNVT.js';
@@ -1352,6 +1352,7 @@ function createMicroVmPorts(over = {}) {
1352
1352
  // src/runner/verdict.ts
1353
1353
  var VERDICT_SETTLE_MS = 5 * 6e4;
1354
1354
  var VERDICT_READ_EVERY_MS = 3e4;
1355
+ var WORK_ITEM_READ_TIMEOUT_MS = 3e4;
1355
1356
  var REASON_MAX = 200;
1356
1357
  var FAILING_IDS_MAX = 5;
1357
1358
  function text(value) {
@@ -1388,7 +1389,7 @@ function parseEvaluation(value, checks) {
1388
1389
  return { verdict, sentence: text(raw.sentence), waitingOn: raw.waitingOn, open };
1389
1390
  }
1390
1391
  async function readWorkItem(config, item, fetchImpl) {
1391
- const { data } = await getJson(config.url, `/v1/work-items/${item}`, config.apiKey, config.appId, fetchImpl, await signerFor(config.configPath));
1392
+ const { data } = await getJson(config.url, `/v1/work-items/${item}`, config.apiKey, config.appId, fetchImpl, await signerFor(config.configPath), { timeoutMs: WORK_ITEM_READ_TIMEOUT_MS });
1392
1393
  return data;
1393
1394
  }
1394
1395
  function declaredPullRequest(workItem, repository) {
@@ -6652,6 +6653,7 @@ function readCpuUsec(cgroupPath) {
6652
6653
  return null;
6653
6654
  }
6654
6655
  }
6656
+ var RENEW_TIMEOUT_MS = 3e4;
6655
6657
  async function renewLease(config, item, fetchImpl) {
6656
6658
  try {
6657
6659
  await postJson(
@@ -6661,7 +6663,7 @@ async function renewLease(config, item, fetchImpl) {
6661
6663
  config.appId,
6662
6664
  { host: config.host, seconds: LEASE_SECONDS },
6663
6665
  fetchImpl,
6664
- void 0,
6666
+ RENEW_TIMEOUT_MS,
6665
6667
  await signerFor(config.configPath)
6666
6668
  );
6667
6669
  return "renewed";
@@ -206,6 +206,7 @@ async function sendJsonBefore(method, url, path, apiKey, appId, body, fetchImpl,
206
206
  ...deadline ? { signal: deadline.signal } : {}
207
207
  });
208
208
  } catch (err) {
209
+ if (deadline?.signal.aborted) throw new WorkCommandError(`${endpoint} did not answer within ${deadline.ms}ms`, true);
209
210
  throw new WorkCommandError(`network error reaching ${endpoint}: ${String(err)}`, true);
210
211
  }
211
212
  if (response.status === 401) {
@@ -1,6 +1,6 @@
1
1
  #!/usr/bin/env node
2
2
  import { createRequire } from 'node:module';
3
- import { resolveCredentials, postJson, getJson } from './chunk-S6OD32NC.js';
3
+ import { resolveCredentials, postJson, getJson } from './chunk-T3SRWWPX.js';
4
4
  import { detectActiveSession } from './chunk-IP7BIBXJ.js';
5
5
  import { C } from './chunk-2AM6Z5BP.js';
6
6
  import { sanitizeTerminal } from './chunk-3PQTOKML.js';
@@ -1,7 +1,7 @@
1
1
  #!/usr/bin/env node
2
2
  import { createRequire } from 'node:module';
3
3
  import { criteriaOf, loadCitationFinder, hostItemsOf, criterionInputs, NO_CITING_TEST_REASON, NO_TEST_FILES_REASON, NO_VERDICT_REASON, isFoundInReason, uncitedIds, planCriteria, pickSearchable, IdScan, testFileMatcher, foundInReason, MAX_TEST_FILE_BYTES, MAX_TEST_FILES, groupBySize } from './chunk-GDIVOYDA.js';
4
- import { WorkCommandError, resolveCredentials, getJson } from './chunk-S6OD32NC.js';
4
+ import { WorkCommandError, resolveCredentials, getJson } from './chunk-T3SRWWPX.js';
5
5
  import { C } from './chunk-2AM6Z5BP.js';
6
6
  import { sanitizeTerminal } from './chunk-3PQTOKML.js';
7
7
  import { defaultFetch } from './chunk-YQHEJ5SV.js';
@@ -217,14 +217,14 @@ function governingDir(cwd) {
217
217
  async function testProofMode(cwd) {
218
218
  const dir = governingDir(cwd);
219
219
  if (dir === void 0) return "any";
220
- const { testProofIn } = await import('./host-checks-3QBPJLSG.js');
220
+ const { testProofIn } = await import('./host-checks-7NCEW7FR.js');
221
221
  return testProofIn(dir);
222
222
  }
223
223
  async function judgeCheckName(cwd) {
224
224
  const dir = governingDir(cwd);
225
225
  if (dir === void 0) return {};
226
226
  if (!existsSync(dir)) return { note: `the governed context at ${dir} is not readable` };
227
- const { checksIn, isJudgeCheck } = await import('./host-checks-3QBPJLSG.js');
227
+ const { checksIn, isJudgeCheck } = await import('./host-checks-7NCEW7FR.js');
228
228
  const quiet = { line: () => void 0, error: () => void 0 };
229
229
  const check = checksIn(dir, quiet, "").checks.find((c) => isJudgeCheck(c) && c.judge.subjects === "criteria");
230
230
  return check === void 0 ? {} : { name: check.name };
@@ -369,7 +369,7 @@ async function runWorkProofs(opts) {
369
369
  async function runWorkProofsCommand(opts) {
370
370
  try {
371
371
  if (opts.record) {
372
- const { runWorkProofsRecord } = await import('./work-proofs-record-LT7UXHNZ.js');
372
+ const { runWorkProofsRecord } = await import('./work-proofs-record-SRL7DRXV.js');
373
373
  const result2 = await runWorkProofsRecord(opts);
374
374
  process.exitCode = result2.exitCode;
375
375
  return;
@@ -1,10 +1,10 @@
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-TXJMHMPO.js';
3
+ import { gatherDoctorChecks, doctorExitCode, summarizeChecks, renderDoctorText, recordWrapped, recordUnwrapped, recordRemoval, readManifest, recordInstall, recordStatusline } from './chunk-AHEIZCCA.js';
4
4
  import './chunk-U553JKMO.js';
5
5
  import './chunk-OHQMGLJP.js';
6
6
  import './chunk-3SQZ5LIK.js';
7
- import { verifiedTrackerNames, TRACKERS } from './chunk-S6OD32NC.js';
7
+ import { verifiedTrackerNames, TRACKERS } from './chunk-T3SRWWPX.js';
8
8
  import './chunk-IP7BIBXJ.js';
9
9
  import './chunk-LHFG5YUG.js';
10
10
  import './chunk-JPROSTGX.js';
@@ -3926,13 +3926,13 @@ what CLIs older than ${FIRST_VERSION_READING_AGENTS_SKILLS} do. \`` + cliInvocat
3926
3926
  if (changed.length > 0 && !opts.json) process.stdout.write(`Removed the claude function from ${changed.join(", ")}.
3927
3927
  `);
3928
3928
  }
3929
- const shell = !opts.remove && opts.shellFunction !== void 0 ? (await import('./init-cmd-NDXN2XPU.js')).applyShellFunctionFlag(opts.shellFunction, { home: homeFromEnv(), shellPath: process.env.SHELL }) : void 0;
3929
+ const shell = !opts.remove && opts.shellFunction !== void 0 ? (await import('./init-cmd-SP4YMVKT.js')).applyShellFunctionFlag(opts.shellFunction, { home: homeFromEnv(), shellPath: process.env.SHELL }) : void 0;
3930
3930
  if (opts.json) writeJson(shell === void 0 ? outcome.result : { ...outcome.result, shellFunction: { outcome: shell.outcome, reason: shell.reason } });
3931
3931
  else process.stdout.write(outcome.text + skillsLine + (shell?.text ?? ""));
3932
3932
  return;
3933
3933
  }
3934
3934
  await installMachineSkillsForSetup();
3935
- const { runInitCommand } = await import('./init-cmd-NDXN2XPU.js');
3935
+ const { runInitCommand } = await import('./init-cmd-SP4YMVKT.js');
3936
3936
  const code = await runInitCommand(
3937
3937
  { json: opts.json, factory: opts.factory, shellFunction: opts.shellFunction },
3938
3938
  {
@@ -4671,9 +4671,9 @@ function registerSpecCommands(program2) {
4671
4671
  const specCmd = program2.command("spec").description("Find, file and edit the issue a spec lives in, in your factory's tracker");
4672
4672
  const credentialOptions = (command) => command.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)");
4673
4673
  const run = async (action) => {
4674
- const { WorkCommandError } = await import('./work-cmd-JZUBXXJN.js');
4674
+ const { WorkCommandError } = await import('./work-cmd-YOWM4KZU.js');
4675
4675
  try {
4676
- await action(await import('./spec-cmd-253AGRFF.js'));
4676
+ await action(await import('./spec-cmd-6LT5JJKG.js'));
4677
4677
  } catch (err) {
4678
4678
  if (err instanceof WorkCommandError) {
4679
4679
  fail(err.message);
@@ -4778,7 +4778,7 @@ takes it, and prints the line that starts your session on it. That
4778
4778
  session links itself and holds the item's lease while it works.
4779
4779
  `
4780
4780
  ).action(async (opts) => {
4781
- const { runWorkBuild, WorkCommandError } = await import('./work-cmd-JZUBXXJN.js');
4781
+ const { runWorkBuild, WorkCommandError } = await import('./work-cmd-YOWM4KZU.js');
4782
4782
  try {
4783
4783
  await runWorkBuild(opts);
4784
4784
  } catch (err) {
@@ -4801,7 +4801,7 @@ renews that session's own 20-minute lease, unless --no-lease or
4801
4801
  --ended is given, or another worker already holds a live one.
4802
4802
  `
4803
4803
  ).action(async (number, opts) => {
4804
- const { runWorkLinkSession, WorkCommandError } = await import('./work-cmd-JZUBXXJN.js');
4804
+ const { runWorkLinkSession, WorkCommandError } = await import('./work-cmd-YOWM4KZU.js');
4805
4805
  try {
4806
4806
  await runWorkLinkSession({ ...opts, number, noLease: opts.lease === false, logFailures: opts.logFailures === true });
4807
4807
  } catch (err) {
@@ -4832,8 +4832,8 @@ thread at its source. It takes a plain answer: no --criterion and no
4832
4832
  action flag.
4833
4833
  `
4834
4834
  ).action(async (opts) => {
4835
- const { runWorkComment, WorkCommentCommandError } = await import('./work-comment-cmd-L4R6ZXLO.js');
4836
- const { WorkCommandError } = await import('./work-cmd-JZUBXXJN.js');
4835
+ const { runWorkComment, WorkCommentCommandError } = await import('./work-comment-cmd-7AKCM2JN.js');
4836
+ const { WorkCommandError } = await import('./work-cmd-YOWM4KZU.js');
4837
4837
  try {
4838
4838
  await runWorkComment(opts);
4839
4839
  } catch (err) {
@@ -4855,7 +4855,7 @@ nothing and exits 0 when the call fails: the line goes to hook-errors.log,
4855
4855
  and the comment waits for the next agent job.
4856
4856
  `
4857
4857
  ).action(async (ids, opts) => {
4858
- const { runWorkCommentsRead } = await import('./work-comment-cmd-L4R6ZXLO.js');
4858
+ const { runWorkCommentsRead } = await import('./work-comment-cmd-7AKCM2JN.js');
4859
4859
  await runWorkCommentsRead({ ...opts, commentIds: ids });
4860
4860
  });
4861
4861
  workCmd.command("threads").description("Read a work item's general thread, its criterion threads and its source threads").requiredOption("--item <number>", "the item's number inside this factory").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)").addHelpText(
@@ -4871,8 +4871,8 @@ that started outside OuterLayer, such as the line comments of a
4871
4871
  GitHub review, each with its id, source and comments.
4872
4872
  `
4873
4873
  ).action(async (opts) => {
4874
- const { runWorkThreads, WorkCommentCommandError } = await import('./work-comment-cmd-L4R6ZXLO.js');
4875
- const { WorkCommandError } = await import('./work-cmd-JZUBXXJN.js');
4874
+ const { runWorkThreads, WorkCommentCommandError } = await import('./work-comment-cmd-7AKCM2JN.js');
4875
+ const { WorkCommandError } = await import('./work-cmd-YOWM4KZU.js');
4876
4876
  try {
4877
4877
  await runWorkThreads(opts);
4878
4878
  } catch (err) {
@@ -4896,8 +4896,8 @@ still running, or that an older runner released, has no log and the
4896
4896
  command exits 1.
4897
4897
  `
4898
4898
  ).action(async (opts) => {
4899
- const { runWorkLogs, WorkLogsCommandError } = await import('./work-logs-cmd-CSQJB5MD.js');
4900
- const { WorkCommandError } = await import('./work-cmd-JZUBXXJN.js');
4899
+ const { runWorkLogs, WorkLogsCommandError } = await import('./work-logs-cmd-62PZKGUU.js');
4900
+ const { WorkCommandError } = await import('./work-cmd-YOWM4KZU.js');
4901
4901
  try {
4902
4902
  await runWorkLogs(opts);
4903
4903
  } catch (err) {
@@ -4920,8 +4920,8 @@ item is not built again until a new build request. Exits 1 when no host
4920
4920
  build is running for the item.
4921
4921
  `
4922
4922
  ).action(async (opts) => {
4923
- const { runWorkStop, WorkStopCommandError } = await import('./work-stop-cmd-LF4OTNPL.js');
4924
- const { WorkCommandError } = await import('./work-cmd-JZUBXXJN.js');
4923
+ const { runWorkStop, WorkStopCommandError } = await import('./work-stop-cmd-NYPQKSHC.js');
4924
+ const { WorkCommandError } = await import('./work-cmd-YOWM4KZU.js');
4925
4925
  try {
4926
4926
  await runWorkStop(opts);
4927
4927
  } catch (err) {
@@ -4942,8 +4942,8 @@ Prints the item's newest live demo record: its artifact id, the commit it was re
4942
4942
  test file that recorded it. With --json, prints { "demo": null } for an item with no demo.
4943
4943
  `
4944
4944
  ).action(async (opts) => {
4945
- const { runWorkDemo, WorkDemoCommandError } = await import('./work-demo-cmd-YNPN2PHQ.js');
4946
- const { WorkCommandError } = await import('./work-cmd-JZUBXXJN.js');
4945
+ const { runWorkDemo, WorkDemoCommandError } = await import('./work-demo-cmd-DHJDR7BB.js');
4946
+ const { WorkCommandError } = await import('./work-cmd-YOWM4KZU.js');
4947
4947
  try {
4948
4948
  await runWorkDemo(opts);
4949
4949
  } catch (err) {
@@ -4964,7 +4964,7 @@ deletes anything \u2014 the item is removed from Work only once no
4964
4964
  live addition remains on it.
4965
4965
  `
4966
4966
  ).action(async (opts) => {
4967
- const { runWorkRemove, WorkCommandError } = await import('./work-cmd-JZUBXXJN.js');
4967
+ const { runWorkRemove, WorkCommandError } = await import('./work-cmd-YOWM4KZU.js');
4968
4968
  try {
4969
4969
  await runWorkRemove(opts);
4970
4970
  } catch (err) {
@@ -4976,7 +4976,7 @@ live addition remains on it.
4976
4976
  }
4977
4977
  });
4978
4978
  workCmd.command("status").description("Show one item's stage, gate ledger, and additions").option("--item <number>", "the item's number inside this factory").option("--issue <number>", "issue number, or a Linear/Jira key like ENG-123").option(TRACKER_OPTION_FLAG, "tracker for a keyed --issue, when both hold the key").option("--repo <owner/name>", "repository for an issue number (default: the checkout's remote)").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) => {
4979
- const { runWorkStatus, WorkCommandError } = await import('./work-cmd-JZUBXXJN.js');
4979
+ const { runWorkStatus, WorkCommandError } = await import('./work-cmd-YOWM4KZU.js');
4980
4980
  try {
4981
4981
  await runWorkStatus(opts);
4982
4982
  } catch (err) {
@@ -5021,11 +5021,11 @@ differs from HEAD.
5021
5021
  fail(trackerNumberError("--pr", opts.pr));
5022
5022
  return;
5023
5023
  }
5024
- const { runWorkProofsCommand } = await import('./work-proofs-cmd-74Z72ZG6.js');
5024
+ const { runWorkProofsCommand } = await import('./work-proofs-cmd-UQPQF7CK.js');
5025
5025
  await runWorkProofsCommand({ ...opts, ...pr === void 0 ? {} : { pr } });
5026
5026
  });
5027
5027
  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) => {
5028
- const { runWorkList, WorkCommandError } = await import('./work-cmd-JZUBXXJN.js');
5028
+ const { runWorkList, WorkCommandError } = await import('./work-cmd-YOWM4KZU.js');
5029
5029
  try {
5030
5030
  await runWorkList(opts);
5031
5031
  } catch (err) {
@@ -5046,7 +5046,7 @@ by a different key is refused; claiming again with the same key extends
5046
5046
  it. --host is a label only.
5047
5047
  `
5048
5048
  ).action(async (opts) => {
5049
- const { runWorkClaim, WorkCommandError } = await import('./work-claim-cmd-KG3VBBZ2.js');
5049
+ const { runWorkClaim, WorkCommandError } = await import('./work-claim-cmd-2OO73LEV.js');
5050
5050
  try {
5051
5051
  await runWorkClaim(opts);
5052
5052
  } catch (err) {
@@ -5066,7 +5066,7 @@ Extends the live lease this API key holds. Refused with a 410 if the
5066
5066
  lease has expired, or a 403 if a different key holds it.
5067
5067
  `
5068
5068
  ).action(async (opts) => {
5069
- const { runWorkRenew, WorkCommandError } = await import('./work-claim-cmd-KG3VBBZ2.js');
5069
+ const { runWorkRenew, WorkCommandError } = await import('./work-claim-cmd-2OO73LEV.js');
5070
5070
  try {
5071
5071
  await runWorkRenew(opts);
5072
5072
  } catch (err) {
@@ -5098,7 +5098,7 @@ applies to a host's lease only. A later tool call in the session
5098
5098
  takes the lease again.
5099
5099
  `
5100
5100
  ).action(async (opts) => {
5101
- const { runWorkRelease, WorkCommandError } = await import('./work-claim-cmd-KG3VBBZ2.js');
5101
+ const { runWorkRelease, WorkCommandError } = await import('./work-claim-cmd-2OO73LEV.js');
5102
5102
  try {
5103
5103
  await runWorkRelease(opts);
5104
5104
  } catch (err) {
@@ -5150,8 +5150,8 @@ login, then declares the pull request on the item, as \`work pr\` does.
5150
5150
  Run it again after a change to the title or description.
5151
5151
  `
5152
5152
  ).action(async (opts) => {
5153
- const { runWorkOpenPr, WorkOpenPrCommandError } = await import('./work-open-pr-cmd-Y7YNI2PF.js');
5154
- const { WorkCommandError } = await import('./work-cmd-JZUBXXJN.js');
5153
+ const { runWorkOpenPr, WorkOpenPrCommandError } = await import('./work-open-pr-cmd-DMDHGKEJ.js');
5154
+ const { WorkCommandError } = await import('./work-cmd-YOWM4KZU.js');
5155
5155
  try {
5156
5156
  await runWorkOpenPr(opts);
5157
5157
  } catch (err) {
@@ -5168,7 +5168,7 @@ function registerRunnerCommands(program2) {
5168
5168
  const configOption = "the cloud config file to run against (default: ~/.outerlayer/config.json)";
5169
5169
  runnerCmd.command("start").description("Run the loop: claim work, run it, report, clean up, repeat").option("--config <path>", configOption).action(async (opts) => {
5170
5170
  const { defaultRunnerConfigPath, RunnerConfigError } = await import('./config-FF3E73ZE.js');
5171
- const { start, RunnerStartError } = await import('./loop-I7ZM4CEZ.js');
5171
+ const { start, RunnerStartError } = await import('./loop-NKJRLAGI.js');
5172
5172
  const { RunnerAlreadyRunningError } = await import('./pidfile-FLFVRKVW.js');
5173
5173
  const configPath = opts.config ?? defaultRunnerConfigPath();
5174
5174
  try {
@@ -5187,8 +5187,8 @@ function registerRunnerCommands(program2) {
5187
5187
  "\nReads OUTERLAYER_URL, OUTERLAYER_APP_ID, OUTERLAYER_API_KEY, OUTERLAYER_RUNNER_NAME and one Claude credential\n(CLAUDE_CODE_OAUTH_TOKEN or ANTHROPIC_API_KEY) from the environment. OUTERLAYER_AGENT\nis optional and defaults to claude. On a later start it refuses variables that disagree with the config in the volume.\nThe image sets OUTERLAYER_RUNNER_IMAGE; outside the image, use `runner start`.\n"
5188
5188
  ).action(async () => {
5189
5189
  const { defaultRunnerConfigPath, RunnerConfigError } = await import('./config-FF3E73ZE.js');
5190
- const { containerStart } = await import('./container-start-EUTOX4EU.js');
5191
- const { start, RunnerStartError } = await import('./loop-I7ZM4CEZ.js');
5190
+ const { containerStart } = await import('./container-start-DNGL4XJ3.js');
5191
+ const { start, RunnerStartError } = await import('./loop-NKJRLAGI.js');
5192
5192
  const { RunnerAlreadyRunningError } = await import('./pidfile-FLFVRKVW.js');
5193
5193
  try {
5194
5194
  const result = await containerStart({
@@ -5212,14 +5212,14 @@ function registerRunnerCommands(program2) {
5212
5212
  ).action(async (opts) => {
5213
5213
  const { defaultRunnerConfigPath } = await import('./config-FF3E73ZE.js');
5214
5214
  const { runnerDir } = await import('./paths-XEYE7OZ2.js');
5215
- const { runUpdateSteps } = await import('./update-steps-VOSUXXMS.js');
5215
+ const { runUpdateSteps } = await import('./update-steps-GRF3BQ5M.js');
5216
5216
  const text = await runUpdateSteps({ runnerDirPath: runnerDir(opts.config ?? defaultRunnerConfigPath()) });
5217
5217
  process.stdout.write(`${text}
5218
5218
  `);
5219
5219
  });
5220
5220
  runnerCmd.command("check").description("Validate the config, the hooks and the key, and print the effective settings").option("--config <path>", configOption).action(async (opts) => {
5221
5221
  const { defaultRunnerConfigPath } = await import('./config-FF3E73ZE.js');
5222
- const { runRunnerCheck } = await import('./check-ARDGJYVM.js');
5222
+ const { runRunnerCheck } = await import('./check-LUQM6DGK.js');
5223
5223
  const configPath = opts.config ?? defaultRunnerConfigPath();
5224
5224
  const result = await runRunnerCheck(configPath);
5225
5225
  if (!result.ok) {
@@ -5253,13 +5253,13 @@ function registerRunnerCommands(program2) {
5253
5253
  }
5254
5254
  }
5255
5255
  const buildCpusMax = opts.buildCpusMax === void 0 ? void 0 : Number(opts.buildCpusMax);
5256
- if (buildCpusMax !== void 0 && !(await import('./command-IANIXN6N.js')).cpusAreValid(buildCpusMax)) {
5256
+ if (buildCpusMax !== void 0 && !(await import('./command-TDJDBIXU.js')).cpusAreValid(buildCpusMax)) {
5257
5257
  fail(`--build-cpus-max ${opts.buildCpusMax} is not a number of CPUs from 0.01 to 1024.`);
5258
5258
  return;
5259
5259
  }
5260
5260
  try {
5261
5261
  if (opts.service === true) {
5262
- const { installServiceCommand } = await import('./command-IANIXN6N.js');
5262
+ const { installServiceCommand } = await import('./command-TDJDBIXU.js');
5263
5263
  const result2 = await installServiceCommand({
5264
5264
  configPath,
5265
5265
  print: opts.print,
@@ -5317,7 +5317,7 @@ To keep it running, run ${C.yellow}${cliInvocation()} runner install --service${
5317
5317
  return;
5318
5318
  }
5319
5319
  const { defaultRunnerConfigPath } = await import('./config-FF3E73ZE.js');
5320
- const { uninstallServiceCommand } = await import('./command-IANIXN6N.js');
5320
+ const { uninstallServiceCommand } = await import('./command-TDJDBIXU.js');
5321
5321
  const result = await uninstallServiceCommand({ configPath: opts.config ?? defaultRunnerConfigPath(), unitName: opts.unitName, home: homeFromEnv() });
5322
5322
  if (result.ok) for (const line of result.lines) process.stdout.write(`${C.green}\u2713${C.reset} ${line}
5323
5323
  `);
@@ -5345,10 +5345,10 @@ already in claude.env is used.
5345
5345
  `
5346
5346
  ).action(async (opts) => {
5347
5347
  const { defaultRunnerConfigPath, RunnerConfigError } = await import('./config-FF3E73ZE.js');
5348
- const { prepareRunnerInit, runRunnerInit, RunnerInitError, writeRunnerInit } = await import('./init-5QYRPZ63.js');
5349
- const { obtainRunnerKey, runnerKeyLogin } = await import('./runner-key-VVLYZFP6.js');
5350
- const { detectMachine } = await import('./machine-7NYF2WBI.js');
5351
- const { chooseVm, runVmInit, VmInitError } = await import('./init-JLOGNKPC.js');
5348
+ const { prepareRunnerInit, runRunnerInit, RunnerInitError, writeRunnerInit } = await import('./init-U4AM3APJ.js');
5349
+ const { obtainRunnerKey, runnerKeyLogin } = await import('./runner-key-4JXOPPUJ.js');
5350
+ const { detectMachine } = await import('./machine-VV4LYWZQ.js');
5351
+ const { chooseVm, runVmInit, VmInitError } = await import('./init-AQJEIH57.js');
5352
5352
  const { AGENT_COMMANDS, credentialFromStdin, isAgentName, restartForCredential, RunnerEnvError } = await import('./runner-env-LWKAYARL.js');
5353
5353
  const configPath = opts.config ?? defaultRunnerConfigPath();
5354
5354
  if (opts.agent !== void 0 && !isAgentName(opts.agent)) {
@@ -5499,7 +5499,7 @@ ${C.yellow}The runner will not update itself: ${installErr.message}${C.reset}
5499
5499
  let serviceUp = false;
5500
5500
  let restart;
5501
5501
  if (installedLayout) {
5502
- const { installServiceCommand } = await import('./command-IANIXN6N.js');
5502
+ const { installServiceCommand } = await import('./command-TDJDBIXU.js');
5503
5503
  const service = await installServiceCommand({
5504
5504
  configPath,
5505
5505
  entryPath: process.argv[1] ?? "",
@@ -5563,7 +5563,7 @@ Next:
5563
5563
  await ensureRunnerIdentity(configPath, { log: (line) => console.error(line) }).catch((err) => {
5564
5564
  console.error(`the runner's Docker identity could not be stored: ${err instanceof Error ? err.message : String(err)}`);
5565
5565
  });
5566
- const { imageTargetFor } = await import('./governing-source-6ANJ4HQI.js');
5566
+ const { imageTargetFor } = await import('./governing-source-3LUGSBRW.js');
5567
5567
  const { runnerCalls } = await import('./caller-VHISEQAD.js');
5568
5568
  const target = await imageTargetFor({ config: loaded === void 0 || loaded.fleet === true ? void 0 : runnerCalls(loaded), repository: opts.repository, fetchImpl: fetch });
5569
5569
  if (!target.ok) {
@@ -5629,7 +5629,7 @@ Next:
5629
5629
  });
5630
5630
  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) => {
5631
5631
  const { defaultRunnerConfigPath } = await import('./config-FF3E73ZE.js');
5632
- const { requestStop } = await import('./loop-I7ZM4CEZ.js');
5632
+ const { requestStop } = await import('./loop-NKJRLAGI.js');
5633
5633
  const configPath = opts.config ?? defaultRunnerConfigPath();
5634
5634
  const { runnerImageVersion } = await import('./image-tag-WBD57QBN.js');
5635
5635
  await requestStop(configPath, Boolean(opts.now), void 0, { image: runnerImageVersion() !== void 0 });
@@ -5637,8 +5637,8 @@ Next:
5637
5637
  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) => {
5638
5638
  const { defaultRunnerConfigPath, loadRunnerConfig } = await import('./config-FF3E73ZE.js');
5639
5639
  const { jobsDir, runnerDir } = await import('./paths-XEYE7OZ2.js');
5640
- const { listJobFiles, runnerProcessState } = await import('./loop-I7ZM4CEZ.js');
5641
- const { renderStatus } = await import('./status-I3TV7ZZV.js');
5640
+ const { listJobFiles, runnerProcessState } = await import('./loop-NKJRLAGI.js');
5641
+ const { renderStatus } = await import('./status-OADVUMST.js');
5642
5642
  const { readHousekeepingRecord } = await import('./record-JMZOXD4R.js');
5643
5643
  const path2 = await import('path');
5644
5644
  const configPath = opts.config ?? defaultRunnerConfigPath();
@@ -5704,7 +5704,7 @@ Next:
5704
5704
  });
5705
5705
  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) => {
5706
5706
  const { defaultRunnerConfigPath } = await import('./config-FF3E73ZE.js');
5707
- const { listJobFiles } = await import('./loop-I7ZM4CEZ.js');
5707
+ const { listJobFiles } = await import('./loop-NKJRLAGI.js');
5708
5708
  const { describeAmbiguous, logPathFor, selectAttempt, tail, RunnerLogsError } = await import('./logs-FEITSC2V.js');
5709
5709
  const configPath = opts.config ?? defaultRunnerConfigPath();
5710
5710
  const jobs = listJobFiles(configPath);