@outerlayer/cli 0.37.0-next.20261105001951 → 0.37.0

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 (31) hide show
  1. package/CHANGELOG.md +18 -0
  2. package/dist/build-info.json +1 -1
  3. package/dist/{check-WG7ONVYM.js → check-PJ5FLDTD.js} +6 -6
  4. package/dist/{chunk-NQPQH6Y5.js → chunk-4A7D2HWQ.js} +1 -1
  5. package/dist/{chunk-MIJGB43I.js → chunk-4TDBM3PK.js} +1 -1
  6. package/dist/{chunk-ICLXEZEB.js → chunk-77RLQS5V.js} +1 -1
  7. package/dist/{chunk-4E3ALN2D.js → chunk-KE5NFPP2.js} +3 -3
  8. package/dist/{chunk-RTNUZPAC.js → chunk-P2UH4EBF.js} +11 -2
  9. package/dist/{chunk-WLALSXAN.js → chunk-Q2JDKHOR.js} +42 -8
  10. package/dist/{chunk-7UG2MMFU.js → chunk-QK43VKE4.js} +1 -1
  11. package/dist/{chunk-WRFUGRUX.js → chunk-XPIFUWWY.js} +1 -1
  12. package/dist/{chunk-IDYLPN4X.js → chunk-ZEHCE7ZE.js} +1 -1
  13. package/dist/{cli-42G6B7EO.js → cli-K62CS6XW.js} +25 -25
  14. package/dist/{command-5GGBCD4S.js → command-EG54FHMR.js} +2 -2
  15. package/dist/{container-start-45TQNJQE.js → container-start-JBYD2XG4.js} +3 -3
  16. package/dist/{doctor-GFROWFS3.js → doctor-MXWODPPL.js} +3 -3
  17. package/dist/{host-checks-KDJZIFBQ.js → host-checks-RK5TC3TX.js} +1 -1
  18. package/dist/index.js +1 -1
  19. package/dist/{init-V45VLEQO.js → init-CSWMBTTM.js} +1 -1
  20. package/dist/{init-QBWRPNZP.js → init-GH74PR4K.js} +1 -1
  21. package/dist/{init-agent-2XMCGKPV.js → init-agent-54VT3S3Z.js} +1 -1
  22. package/dist/{init-cmd-JY2UXAYR.js → init-cmd-AIUYATFU.js} +1 -1
  23. package/dist/{loop-V5ZC753N.js → loop-P7NDQS3G.js} +6 -6
  24. package/dist/{machine-4M4RUHG2.js → machine-UEW4P7I6.js} +1 -1
  25. package/dist/{runner-key-OS7EKYZS.js → runner-key-PNZTLOK5.js} +1 -1
  26. package/dist/{status-ODVVTDA2.js → status-X7IK4XQU.js} +1 -1
  27. package/dist/{update-steps-ZW2EDSYC.js → update-steps-R7AQAO6R.js} +2 -2
  28. package/dist/{work-claim-cmd-2IOJVHR5.js → work-claim-cmd-YE4MVGZH.js} +1 -1
  29. package/dist/{work-proofs-cmd-DDVTBWPI.js → work-proofs-cmd-Y7WZNTI3.js} +1 -1
  30. package/dist/{work-proofs-record-W45UBFHM.js → work-proofs-record-5DCQQT23.js} +1 -1
  31. package/package.json +5 -3
package/CHANGELOG.md CHANGED
@@ -1,5 +1,23 @@
1
1
  # @outerlayer/cli
2
2
 
3
+ ## 0.37.0
4
+
5
+ ### Minor Changes
6
+
7
+ - 49f0266: `outerlayer work proofs --record` records a `test` proof that is not current. It runs the test files the proof's newest results named, through the runner in `.outerlayer-proofs.yaml` that matches them, and emits the JUnit XML the run wrote, bound to the same tests. The host's proofs stage now runs for an item whose only proofs are test proofs, so a build's results are recorded again at its final commit. `outerlayer work proofs` says why the host cannot record a proof again: a missing or invalid proofs file, or no runner that matches a test's file.
8
+ - f70b973: The host's criteria judge finds the tests that prove each criterion itself, by searching the pushed commit, and names them in its answer. It no longer reads `proves` comments, and a criterion that no comment names is judged instead of failed. A pass that names no test file of the commit fails. A pass is kept while the tests it names are unchanged, and the judge asks again about a failed criterion on every commit. An item with more than 12 criteria is judged in groups. `outerlayer work proofs` no longer lists an `uncited` state, and lists a failed criterion only while no test file has changed since the judge failed it. Each check item for a criterion the judge decided names the commit it read, in a new optional `commit` field. The build skill's `criterion-citations.mjs` now takes `--tests <file>`, the tests the judge named. A repository's own copy of the starter brief that still finds tests by `proves` comments is replaced by the brief the CLI ships, and a pass that names only files that are not read as tests says so and names the runner glob as the fix.
9
+
10
+ ### Patch Changes
11
+
12
+ - 03fa8de: A build that restores a work item's kept disk no longer fails while it sets up the build's home. Before, an image whose home holds an absolute symlink, such as the oh-my-zsh theme link from the devcontainers common-utils feature, failed every rebuild of the item with `ERR_FS_CP_EINVAL`. Entries already in the build's home are kept.
13
+ - c4e845f: A build now checks for a conflict with its base branch as the last step before its push, and merges the base branch only when the two conflict. Before, it merged the base first and then ran its checks, so the base often moved before the push and the pull request opened with a conflict. A build also no longer runs the repository's CI-only checks before the push: CI runs them, and a failed check starts a run that fixes it. After a merge, the gate checks only what the merge changed.
14
+ - 6df9839: The build and amend skills no longer wait for CI to finish. The amend skill now reads a failed check, fixes it and pushes.
15
+ - f5c8e11: An image build that fails because Docker's storage is full now says it ran out of disk, not out of memory, so the reason points at the setting that needs to change.
16
+ - 741e2eb: An agent that merges the base branch into a pull request's branch now commits the merge before it runs the pre-push gate. A run after a fix can then check only what the fix changed, where the repository's instructions allow it. A test that fails in the gate and passes when run alone counts as flaky and does not end the run. The agent hands off when the same failure comes back after its fix.
17
+ - 5801259: A build now checks for a conflict with its base branch and pushes in one command, so the push runs only when the merge is clean. Before, an agent could run the check and the push as two steps and push a branch that conflicts, which opened its pull request with a conflict.
18
+ - 3ce2f33: A runner releases a claim it lost before its build started, so the work item can be built again without a new request. A claim is lost this way when the host's disk stops answering or the machine stops after the claim. Each heartbeat reply lists such claims from the last 24 hours. The runner releases each one that no job folder on the host records, as `lease_lost`, and logs `#<item> released claim <id>…: the lease lapsed with no build on this host`.
19
+ - f6f3b45: `outerlayer runner init` on a terminal now asks which agent builds start, and then asks for its credential with nothing shown. Before, a runner set up without `--agent` got placeholder commands and claimed no work until someone edited the config. Answer `none` to keep the placeholder for an agent of your own. With no terminal, nothing changes.
20
+
3
21
  ## 0.36.0
4
22
 
5
23
  ### Minor Changes
@@ -1 +1 @@
1
- {"id":"2026-11-05T00:25:56.775Z","root":"/home/runner/work/outerlayer/outerlayer","pkg":"outerlayer"}
1
+ {"id":"2026-11-05T08:12:02.921Z","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-WLALSXAN.js';
3
+ import { probeCredentials } from './chunk-Q2JDKHOR.js';
4
4
  import './chunk-PNZN656P.js';
5
5
  import './chunk-2QFRAMJX.js';
6
6
  import './chunk-LVZ3UV7T.js';
7
7
  import './chunk-3JVYMD4G.js';
8
8
  import './chunk-E7R2GIAW.js';
9
- import './chunk-7UG2MMFU.js';
10
- import './chunk-NQPQH6Y5.js';
11
- import './chunk-IDYLPN4X.js';
12
- import { fleetConfigProblem, managedProblems, managedFactsOf, askFleetMachine } from './chunk-ICLXEZEB.js';
9
+ import './chunk-QK43VKE4.js';
10
+ import './chunk-4A7D2HWQ.js';
11
+ import './chunk-ZEHCE7ZE.js';
12
+ import { fleetConfigProblem, managedProblems, managedFactsOf, askFleetMachine } from './chunk-77RLQS5V.js';
13
13
  import './chunk-IJU6DMQA.js';
14
14
  import { findServiceUnit } from './chunk-3LT6REKE.js';
15
- import { placeholderQueues, placeholderProblem, permissionModeProblems, permissionModeProblem, HELPER_ENV, helperSocketPath, probeHelper, needsAgentCredential, agentCredentialCheck, claimPermissionProblem, formerSkillQueues, modellessQueues, formerSkillProblem, modellessProblem } from './chunk-RTNUZPAC.js';
15
+ import { placeholderQueues, placeholderProblem, permissionModeProblems, permissionModeProblem, HELPER_ENV, helperSocketPath, probeHelper, needsAgentCredential, agentCredentialCheck, claimPermissionProblem, formerSkillQueues, modellessQueues, formerSkillProblem, modellessProblem } from './chunk-P2UH4EBF.js';
16
16
  import './chunk-BNYBHWYH.js';
17
17
  import './chunk-2PGI6RDE.js';
18
18
  import './chunk-I3LTIAOR.js';
@@ -1,6 +1,6 @@
1
1
  #!/usr/bin/env node
2
2
  import { createRequire } from 'node:module';
3
- import { stripTerminalControls } from './chunk-RTNUZPAC.js';
3
+ import { stripTerminalControls } from './chunk-P2UH4EBF.js';
4
4
  import { tagToPull, imageTag, pullInstruction, readUpdateStatus, runnerImageVersion } from './chunk-NBGBMZE4.js';
5
5
  import { readFileSync } from 'fs';
6
6
 
@@ -1,6 +1,6 @@
1
1
  #!/usr/bin/env node
2
2
  import { createRequire } from 'node:module';
3
- import { helperSocketPath } from './chunk-RTNUZPAC.js';
3
+ import { helperSocketPath } from './chunk-P2UH4EBF.js';
4
4
  import { UNIT_MARKER } from './chunk-VTJ5MGGC.js';
5
5
  import { runnerDir } from './chunk-RXWFZB3P.js';
6
6
  import { createHash } from 'crypto';
@@ -1,6 +1,6 @@
1
1
  #!/usr/bin/env node
2
2
  import { createRequire } from 'node:module';
3
- import { placeholderQueues, placeholderProblem } from './chunk-RTNUZPAC.js';
3
+ import { placeholderQueues, placeholderProblem } from './chunk-P2UH4EBF.js';
4
4
  import { checkFit, RUNNER_RESERVE_BYTES } from './chunk-VTJ5MGGC.js';
5
5
  import { getJson, WorkCommandError } from './chunk-6BS4DDCY.js';
6
6
  import { isBuiltinVm, builtinKind, EGRESS_SWITCHABLE_KEYS, imageBuildOf, keepsHostBuilder } from './chunk-G43WGW64.js';
@@ -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-KDJZIFBQ.js');
132
+ const { testProofIn } = await import('./host-checks-RK5TC3TX.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-KDJZIFBQ.js');
139
+ const { checksIn, isJudgeCheck } = await import('./host-checks-RK5TC3TX.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 };
@@ -368,7 +368,7 @@ async function runWorkProofs(opts) {
368
368
  async function runWorkProofsCommand(opts) {
369
369
  try {
370
370
  if (opts.record) {
371
- const { runWorkProofsRecord } = await import('./work-proofs-record-W45UBFHM.js');
371
+ const { runWorkProofsRecord } = await import('./work-proofs-record-5DCQQT23.js');
372
372
  const result2 = await runWorkProofsRecord(opts);
373
373
  process.exitCode = result2.exitCode;
374
374
  return;
@@ -7201,7 +7201,7 @@ async function releaseLease(config, item, outcome, detail, fetchImpl) {
7201
7201
  `/v1/work-items/${item}/claim/release`,
7202
7202
  config.apiKey,
7203
7203
  config.appId,
7204
- { host: config.host, outcome: sent2, stage: detail.stage, exitCode: detail.exitCode, reason: detail.reason, environment: environment2, resume: resume2, disk: disk2, log: log2 },
7204
+ { host: config.host, claimId: detail.claimId, outcome: sent2, stage: detail.stage, exitCode: detail.exitCode, reason: detail.reason, environment: environment2, resume: resume2, disk: disk2, log: log2 },
7205
7205
  fetchImpl,
7206
7206
  void 0,
7207
7207
  await signerFor(config.configPath)
@@ -7828,6 +7828,15 @@ async function retryFailedReleases(jobsDirPath, config, deps) {
7828
7828
  function isUnfinished(job) {
7829
7829
  return job.outcome === void 0 && job.endedAt === void 0;
7830
7830
  }
7831
+ function jobRecordsClaim(jobsDirPath, claimId) {
7832
+ if (!existsSync(jobsDirPath)) return false;
7833
+ for (const entry of readdirSync(jobsDirPath, { withFileTypes: true })) {
7834
+ if (!entry.isDirectory()) continue;
7835
+ if (entry.name.includes(claimId)) return true;
7836
+ if (readJobFile(join(jobsDirPath, entry.name, "job.json"))?.claimId === claimId) return true;
7837
+ }
7838
+ return false;
7839
+ }
7831
7840
  function unfinishedJobs(jobsDirPath) {
7832
7841
  if (!existsSync(jobsDirPath)) return [];
7833
7842
  const found = [];
@@ -11728,4 +11737,4 @@ async function runHostChecks(input) {
11728
11737
  }
11729
11738
  }
11730
11739
 
11731
- export { ADOPTED_FETCH_RETRY_WINDOW_MS, ALREADY_RELEASED, AttemptLogBook, EXIT_CODE_FILE, GUEST_USAGE_INTERVAL_MS, HELPER_ENV, KIND_LABEL, LEASE_SECONDS, MAX_CHECK_ITEMS_BYTES, MICROVM_COMMAND_DIR, MIN_ENGINE_MAJOR, PLACEHOLDER_MARKER, RENEW_INTERVAL_SECONDS, RunnerInitError, agentCredentialCheck, appendCommandLog, attemptNote, checksIn, claimPermissionProblem, commandItems, commandLogOffset, containerCommandExec, createContainerRuntime, createHousekeepingDocker, createLeaseChannel, currentSkillCommand, decideHostBuildSkill, deliverCommitHooks, deliverContainerHooks, deliverExecMaven, deliverJobFiles, describeHookEnd, describeMachineDocker, detectMachine, ensureFirecrackerAndJailer, ensureNetworkReady, ensureTunnel, execArgv, execCommandLine, fetchManagedBuildSettings, fetchManagedClaudeKey, filesAreCopied, finishJob, foldSample, formerSkillProblem, formerSkillQueues, freeItemDisksUntil, gitRemoteFor, helperFirecrackerNote, helperSocketPath, holdManagedBuildSettings, holdManagedClaudeKey, hookLimitsFor, hostCommandEnvironment, hostEnvironment, housekeepingDockerIfReachable, inTeardown, isContainerTracked, isGroupAlive, isIdle, isJudgeCheck, isMicroVmTracked, isPlaceholderCommand, isReadable, isTimedOut, isTracked, isUnfinished, itemScope, itemTag, jobEnv, judgeProbe, keepGhConfigCurrent, leaseExpiresAtMs, leaseTimeLeftMs, lifecycleFailureReason, lifecycleSteps, listAdoptableJobs, listTrackedJobs, listUnreadableJobs, listenOnBroker, makeRecorder, managedBuildSettingsFor, measureDisk, microVmArchSupported, microVmAssetsPinned, microVmCommandLine, microVmOomKills, missingPermissionFix, missingPermissionOf, modellessProblem, modellessQueues, needsAgentCredential, needsBuildSkill, needsRenew, outcomeFromExitCode, parseCpuList, permissionModeProblem, permissionModeProblems, placeholderProblem, placeholderQueues, prepareBranch, prepareResume, prepareRunnerInit, probeCommand, probeHelper, probeMicroVmCommand, provisionContainer, provisionEnvironment, provisionMicroVm, reachDockerStep, readConfigObject, readCpuUsec, readDefinitions, readProvisionOut, readRecords, recoverLostJobs, releaseLease, removeOldestUntil, renewLease, resolveHostBuild, restartSender, restoreSessionIntoContainer, restoreSessionIntoMicroVm, retryFailedReleases, runCommand, runHook, runHostChecks, runHousekeeping, runRunnerInit, runWithSpawn, sampleGuest, savedStatesDir, scrubReason, serveLease, setStage, setUpRunnerCgroup, shellQuote, startHostServices, startMicroVmCommand, startSender, startServicesFor, stopOrphanedMicroVms, stoppedHelperReason, stripTerminalControls, supportsContainerBuilds, supportsMicroVmBuilds, sweepImageBuilders, testProofIn, timeoutAfter, unfinishedJobs, usableCpus, vmAlive, withTunnelLog, workdirProblem, writeGuestGhConfig, writeRunnerInit };
11740
+ export { ADOPTED_FETCH_RETRY_WINDOW_MS, ALREADY_RELEASED, AttemptLogBook, EXIT_CODE_FILE, GUEST_USAGE_INTERVAL_MS, HELPER_ENV, KIND_LABEL, LEASE_SECONDS, MAX_CHECK_ITEMS_BYTES, MICROVM_COMMAND_DIR, MIN_ENGINE_MAJOR, PLACEHOLDER_MARKER, RENEW_INTERVAL_SECONDS, RunnerInitError, agentCredentialCheck, appendCommandLog, attemptNote, checksIn, claimPermissionProblem, commandItems, commandLogOffset, containerCommandExec, createContainerRuntime, createHousekeepingDocker, createLeaseChannel, currentSkillCommand, decideHostBuildSkill, deliverCommitHooks, deliverContainerHooks, deliverExecMaven, deliverJobFiles, describeHookEnd, describeMachineDocker, detectMachine, ensureFirecrackerAndJailer, ensureNetworkReady, ensureTunnel, execArgv, execCommandLine, fetchManagedBuildSettings, fetchManagedClaudeKey, filesAreCopied, finishJob, foldSample, formerSkillProblem, formerSkillQueues, freeItemDisksUntil, gitRemoteFor, helperFirecrackerNote, helperSocketPath, holdManagedBuildSettings, holdManagedClaudeKey, hookLimitsFor, hostCommandEnvironment, hostEnvironment, housekeepingDockerIfReachable, inTeardown, isContainerTracked, isGroupAlive, isIdle, isJudgeCheck, isMicroVmTracked, isPlaceholderCommand, isReadable, isTimedOut, isTracked, isUnfinished, itemScope, itemTag, jobEnv, jobRecordsClaim, judgeProbe, keepGhConfigCurrent, leaseExpiresAtMs, leaseTimeLeftMs, lifecycleFailureReason, lifecycleSteps, listAdoptableJobs, listTrackedJobs, listUnreadableJobs, listenOnBroker, makeRecorder, managedBuildSettingsFor, measureDisk, microVmArchSupported, microVmAssetsPinned, microVmCommandLine, microVmOomKills, missingPermissionFix, missingPermissionOf, modellessProblem, modellessQueues, needsAgentCredential, needsBuildSkill, needsRenew, outcomeFromExitCode, parseCpuList, permissionModeProblem, permissionModeProblems, placeholderProblem, placeholderQueues, prepareBranch, prepareResume, prepareRunnerInit, probeCommand, probeHelper, probeMicroVmCommand, provisionContainer, provisionEnvironment, provisionMicroVm, reachDockerStep, readConfigObject, readCpuUsec, readDefinitions, readProvisionOut, readRecords, recoverLostJobs, releaseLease, removeOldestUntil, renewLease, resolveHostBuild, restartSender, restoreSessionIntoContainer, restoreSessionIntoMicroVm, retryFailedReleases, runCommand, runHook, runHostChecks, runHousekeeping, runRunnerInit, runWithSpawn, sampleGuest, savedStatesDir, scrubReason, serveLease, setStage, setUpRunnerCgroup, shellQuote, startHostServices, startMicroVmCommand, startSender, startServicesFor, stopOrphanedMicroVms, stoppedHelperReason, stripTerminalControls, supportsContainerBuilds, supportsMicroVmBuilds, sweepImageBuilders, testProofIn, timeoutAfter, unfinishedJobs, usableCpus, vmAlive, withTunnelLog, workdirProblem, writeGuestGhConfig, writeRunnerInit };
@@ -5,12 +5,12 @@ import { writePendingUpdate } from './chunk-2QFRAMJX.js';
5
5
  import { readHousekeepingRecord, writeHousekeepingRecord } from './chunk-LVZ3UV7T.js';
6
6
  import { decideInstalledSwitch } from './chunk-3JVYMD4G.js';
7
7
  import { fetchVersionMeta, npmVersion, npmSupportsProvenance, fetchTarballDigest, fetchProvenance, installVersion, auditSignatures } from './chunk-E7R2GIAW.js';
8
- import { reportFailedStart, fitImageBuildMemory } from './chunk-7UG2MMFU.js';
9
- import { renderUpdateSteps } from './chunk-NQPQH6Y5.js';
10
- import { RUNNER_PROTOCOL } from './chunk-IDYLPN4X.js';
11
- import { fleetConfigProblem, realBlockedProbes, sliceMemoryOf, checkBlockedWithSlots, largeBuildMemoryBytes, LARGE_BUILD_DISK_BYTES, checkManagedRoom, askFleetMachine } from './chunk-ICLXEZEB.js';
8
+ import { reportFailedStart, fitImageBuildMemory } from './chunk-QK43VKE4.js';
9
+ import { renderUpdateSteps } from './chunk-4A7D2HWQ.js';
10
+ import { RUNNER_PROTOCOL } from './chunk-ZEHCE7ZE.js';
11
+ import { fleetConfigProblem, realBlockedProbes, sliceMemoryOf, checkBlockedWithSlots, largeBuildMemoryBytes, LARGE_BUILD_DISK_BYTES, checkManagedRoom, askFleetMachine } from './chunk-77RLQS5V.js';
12
12
  import { writeMarker, readMarker, currentVersion, removeMarker, isInLayout, startedThroughCurrent, entryIn, versionDir, switchCurrent, cleanVersions, stagingDir } from './chunk-IJU6DMQA.js';
13
- import { leaseTimeLeftMs, createContainerRuntime, withTunnelLog, releaseLease, LEASE_SECONDS, itemTag, isUnfinished, prepareResume, restoreSessionIntoMicroVm, restoreSessionIntoContainer, itemScope, attemptNote, fetchManagedClaudeKey, holdManagedClaudeKey, fetchManagedBuildSettings, holdManagedBuildSettings, setStage, jobEnv, runHook, describeHookEnd, needsBuildSkill, provisionContainer, leaseExpiresAtMs, deliverContainerHooks, provisionMicroVm, deliverCommitHooks, provisionEnvironment, readProvisionOut, resolveHostBuild, workdirProblem, listenOnBroker, hostEnvironment, deliverExecMaven, runWithSpawn, hostCommandEnvironment, lifecycleSteps, execArgv, lifecycleFailureReason, decideHostBuildSkill, prepareBranch, currentSkillCommand, formerSkillProblem, MICROVM_COMMAND_DIR, commandLogOffset, startMicroVmCommand, microVmCommandLine, runCommand, containerCommandExec, execCommandLine, startSender, startHostServices, finishJob, sampleGuest, foldSample, isContainerTracked, isMicroVmTracked, probeMicroVmCommand, probeCommand, appendCommandLog, judgeProbe, EXIT_CODE_FILE, isTracked, isGroupAlive, outcomeFromExitCode, isTimedOut, readCpuUsec, isIdle, HELPER_ENV, setUpRunnerCgroup, stopOrphanedMicroVms, unfinishedJobs, sweepImageBuilders, listUnreadableJobs, listAdoptableJobs, retryFailedReleases, recoverLostJobs, GUEST_USAGE_INTERVAL_MS, usableCpus, hookLimitsFor, AttemptLogBook, microVmOomKills, needsRenew, renewLease, RENEW_INTERVAL_SECONDS, stoppedHelperReason, measureDisk, listTrackedJobs, parseCpuList, ensureTunnel, keepGhConfigCurrent, filesAreCopied, restartSender, createHousekeepingDocker, housekeepingDockerIfReachable, runHousekeeping, freeItemDisksUntil, savedStatesDir, readRecords, removeOldestUntil, ensureNetworkReady, managedBuildSettingsFor, ADOPTED_FETCH_RETRY_WINDOW_MS, gitRemoteFor, startServicesFor, createLeaseChannel, serveLease, vmAlive, writeGuestGhConfig, shellQuote, deliverJobFiles, inTeardown } from './chunk-RTNUZPAC.js';
13
+ import { leaseTimeLeftMs, createContainerRuntime, withTunnelLog, releaseLease, LEASE_SECONDS, itemTag, isUnfinished, prepareResume, restoreSessionIntoMicroVm, restoreSessionIntoContainer, itemScope, attemptNote, fetchManagedClaudeKey, holdManagedClaudeKey, fetchManagedBuildSettings, holdManagedBuildSettings, setStage, jobEnv, runHook, describeHookEnd, needsBuildSkill, provisionContainer, leaseExpiresAtMs, deliverContainerHooks, provisionMicroVm, deliverCommitHooks, provisionEnvironment, readProvisionOut, resolveHostBuild, workdirProblem, listenOnBroker, hostEnvironment, deliverExecMaven, runWithSpawn, hostCommandEnvironment, lifecycleSteps, execArgv, lifecycleFailureReason, decideHostBuildSkill, prepareBranch, currentSkillCommand, formerSkillProblem, MICROVM_COMMAND_DIR, commandLogOffset, startMicroVmCommand, microVmCommandLine, runCommand, containerCommandExec, execCommandLine, startSender, startHostServices, finishJob, sampleGuest, foldSample, isContainerTracked, isMicroVmTracked, probeMicroVmCommand, probeCommand, appendCommandLog, judgeProbe, EXIT_CODE_FILE, isTracked, isGroupAlive, outcomeFromExitCode, isTimedOut, readCpuUsec, isIdle, HELPER_ENV, setUpRunnerCgroup, stopOrphanedMicroVms, unfinishedJobs, sweepImageBuilders, listUnreadableJobs, listAdoptableJobs, retryFailedReleases, recoverLostJobs, GUEST_USAGE_INTERVAL_MS, usableCpus, hookLimitsFor, AttemptLogBook, microVmOomKills, needsRenew, renewLease, RENEW_INTERVAL_SECONDS, stoppedHelperReason, measureDisk, listTrackedJobs, parseCpuList, ensureTunnel, keepGhConfigCurrent, filesAreCopied, restartSender, createHousekeepingDocker, housekeepingDockerIfReachable, runHousekeeping, jobRecordsClaim, freeItemDisksUntil, savedStatesDir, readRecords, removeOldestUntil, ensureNetworkReady, managedBuildSettingsFor, ADOPTED_FETCH_RETRY_WINDOW_MS, gitRemoteFor, startServicesFor, createLeaseChannel, serveLease, vmAlive, writeGuestGhConfig, shellQuote, deliverJobFiles, inTeardown } from './chunk-P2UH4EBF.js';
14
14
  import { RUNNER_RESERVE_BYTES } from './chunk-VTJ5MGGC.js';
15
15
  import { RepoFilter } from './chunk-KCNL7KX2.js';
16
16
  import { JOB_STATE_FORMAT, readsJobState, jobStateFormatOf } from './chunk-ZVB57WI6.js';
@@ -394,6 +394,17 @@ function commentsOf(data) {
394
394
  }
395
395
  return comments;
396
396
  }
397
+ function lapsedOf(data) {
398
+ const raw = data.lapsed;
399
+ if (!Array.isArray(raw)) return [];
400
+ const lapsed = [];
401
+ for (const entry of raw) {
402
+ const { claimId, workItemId, number, expiredAt } = entry ?? {};
403
+ if (typeof claimId !== "string" || claimId === "" || typeof workItemId !== "string" || workItemId === "" || typeof expiredAt !== "string") continue;
404
+ lapsed.push({ claimId, workItemId, number: typeof number === "number" ? number : null, expiredAt });
405
+ }
406
+ return lapsed;
407
+ }
397
408
  function takesBody(takes) {
398
409
  let truncated = false;
399
410
  const list = (patterns) => {
@@ -449,7 +460,8 @@ async function sendHeartbeat(args, fetchImpl) {
449
460
  const runnerVersion = response.data?.runnerVersion;
450
461
  const stops = stopsOf(response.data);
451
462
  const comments = commentsOf(response.data);
452
- return typeof runnerVersion === "string" ? { ok: true, runnerVersion, stops, comments } : { ok: true, stops, comments };
463
+ const lapsed = lapsedOf(response.data);
464
+ return typeof runnerVersion === "string" ? { ok: true, runnerVersion, stops, comments, lapsed } : { ok: true, stops, comments, lapsed };
453
465
  } catch (err) {
454
466
  return { ok: false, reason: describeCallFailure(err) };
455
467
  }
@@ -1347,6 +1359,7 @@ async function sendTickHeartbeat(state, workRequest, wake2 = false) {
1347
1359
  considerNamedVersion(state, result.runnerVersion);
1348
1360
  applyStops(state, result.stops);
1349
1361
  applyComments(state, result.comments);
1362
+ applyLapsed(state, result.lapsed);
1350
1363
  }
1351
1364
  next = state.queuedWorkRequest;
1352
1365
  state.queuedWorkRequest = void 0;
@@ -1379,6 +1392,27 @@ function applyStops(state, stops) {
1379
1392
  });
1380
1393
  }
1381
1394
  }
1395
+ var LAPSED_REASON = "the lease lapsed with no build on this host";
1396
+ function applyLapsed(state, lapsed) {
1397
+ const released = state.lapsedReleases ??= /* @__PURE__ */ new Set();
1398
+ const jobsDirPath = jobsDir(state.config.configPath);
1399
+ for (const lease of lapsed) {
1400
+ if (released.has(lease.claimId)) continue;
1401
+ const held = [...state.jobs.values()].some((entry) => entry.job.claimId === lease.claimId || entry.job.workItemId === lease.workItemId);
1402
+ if (held || jobRecordsClaim(jobsDirPath, lease.claimId)) continue;
1403
+ released.add(lease.claimId);
1404
+ const tag = itemTag({ item: lease.number ?? lease.workItemId });
1405
+ const claim = `${lease.claimId.slice(0, 8)}\u2026`;
1406
+ void releaseLease(runnerCalls(state.config), lease.workItemId, "lease_lost", { reason: LAPSED_REASON, claimId: lease.claimId }, state.deps.fetchImpl).then(() => logOf(state).line(`${tag} released claim ${claim}: ${LAPSED_REASON}`)).catch((err) => {
1407
+ if (err instanceof WorkCommandError && !err.retryable) {
1408
+ logOf(state).line(`${tag} left claim ${claim} as it is: the gateway refused its release: ${describeCallFailure(err)}`);
1409
+ return;
1410
+ }
1411
+ released.delete(lease.claimId);
1412
+ reportRepeating(state, `release of lapsed claim ${lease.claimId}`, `${tag} could not release lapsed claim ${claim}: ${describeCallFailure(err)}`);
1413
+ });
1414
+ }
1415
+ }
1382
1416
  function applyComments(state, comments) {
1383
1417
  if (state.config.deliverComments === false) return;
1384
1418
  for (const comment of comments) {
@@ -3559,7 +3593,7 @@ async function startRunner(configPath, deps, startup) {
3559
3593
  check: update.check ? () => update.check(configPath) : async () => {
3560
3594
  const held = runnerAgents(deps.agents).flatMap((agent) => heldAgentCredential(agent.descriptor.id) ?? []);
3561
3595
  const env = { ...process.env, ...Object.fromEntries(held.map((credential) => [credential.variable, credential.value])) };
3562
- return (await import('./check-WG7ONVYM.js')).runRunnerCheck(configPath, { fetchImpl: deps.fetchImpl, env });
3596
+ return (await import('./check-PJ5FLDTD.js')).runRunnerCheck(configPath, { fetchImpl: deps.fetchImpl, env });
3563
3597
  },
3564
3598
  now: () => (deps.now ?? (() => /* @__PURE__ */ new Date()))().getTime(),
3565
3599
  log
@@ -3941,4 +3975,4 @@ function runnerProcessState(configPath) {
3941
3975
  return isSameProcess(entry.pid, entry.start) ? { state: "running", pid: entry.pid } : { state: "stale", pid: entry.pid };
3942
3976
  }
3943
3977
 
3944
- export { RunnerStartError, fleetKeepalive, leaseTimeLeftFor, listJobFiles, logUnusableHelper, prepareSession, probeBuild, probeCredentials, requestStop, runnerProcessState, runtimeOf, sampleUsage, start, tick, watchTick };
3978
+ export { LAPSED_REASON, RunnerStartError, fleetKeepalive, leaseTimeLeftFor, listJobFiles, logUnusableHelper, prepareSession, probeBuild, probeCredentials, requestStop, runnerProcessState, runtimeOf, sampleUsage, start, tick, watchTick };
@@ -1,6 +1,6 @@
1
1
  #!/usr/bin/env node
2
2
  import { createRequire } from 'node:module';
3
- import { scrubReason, stripTerminalControls } from './chunk-RTNUZPAC.js';
3
+ import { scrubReason, stripTerminalControls } from './chunk-P2UH4EBF.js';
4
4
  import { checkFit, RUNNER_RESERVE_BYTES } from './chunk-VTJ5MGGC.js';
5
5
  import { RunnerAlreadyRunningError, readPidFile } from './chunk-WCJCGFVQ.js';
6
6
  import { isSameProcess } from './chunk-JBJTC3UU.js';
@@ -1079,7 +1079,7 @@ async function gatherDoctorChecks() {
1079
1079
  const { runnerVmCheck } = await import('./doctor-53F2PYY7.js');
1080
1080
  checks.push(runnerVmCheck(configPath, { lima: realLima(), home: homeFromEnv(), instance: runnerVm.instance }));
1081
1081
  } else if (hasRunnerBlock(configPath)) {
1082
- const { runnerHostChecks } = await import('./doctor-GFROWFS3.js');
1082
+ const { runnerHostChecks } = await import('./doctor-MXWODPPL.js');
1083
1083
  const gateway = (() => {
1084
1084
  try {
1085
1085
  const loaded = loadRunnerConfig(configPath);
@@ -4,6 +4,6 @@ import { createRequire } from 'node:module';
4
4
  createRequire(import.meta.url);
5
5
 
6
6
  // src/runner/protocol.ts
7
- var RUNNER_PROTOCOL = 42;
7
+ var RUNNER_PROTOCOL = 43;
8
8
 
9
9
  export { RUNNER_PROTOCOL };
@@ -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-WRFUGRUX.js';
3
+ import { gatherDoctorChecks, doctorExitCode, summarizeChecks, renderDoctorText, recordWrapped, recordUnwrapped, recordRemoval, readManifest, recordInstall, recordStatusline } from './chunk-XPIFUWWY.js';
4
4
  import './chunk-A75ZPAOP.js';
5
5
  import { verifiedTrackerNames, TRACKERS } from './chunk-6BS4DDCY.js';
6
6
  import './chunk-6MWBZHBW.js';
@@ -3944,13 +3944,13 @@ what CLIs older than ${FIRST_VERSION_READING_AGENTS_SKILLS} do. \`` + cliInvocat
3944
3944
  if (changed.length > 0 && !opts.json) process.stdout.write(`Removed the claude function from ${changed.join(", ")}.
3945
3945
  `);
3946
3946
  }
3947
- const shell = !opts.remove && opts.shellFunction !== void 0 ? (await import('./init-cmd-JY2UXAYR.js')).applyShellFunctionFlag(opts.shellFunction, { home: homeFromEnv(), shellPath: process.env.SHELL }) : void 0;
3947
+ const shell = !opts.remove && opts.shellFunction !== void 0 ? (await import('./init-cmd-AIUYATFU.js')).applyShellFunctionFlag(opts.shellFunction, { home: homeFromEnv(), shellPath: process.env.SHELL }) : void 0;
3948
3948
  if (opts.json) writeJson(shell === void 0 ? outcome.result : { ...outcome.result, shellFunction: { outcome: shell.outcome, reason: shell.reason } });
3949
3949
  else process.stdout.write(outcome.text + skillsLine + (shell?.text ?? ""));
3950
3950
  return;
3951
3951
  }
3952
3952
  await installMachineSkillsForSetup();
3953
- const { runInitCommand } = await import('./init-cmd-JY2UXAYR.js');
3953
+ const { runInitCommand } = await import('./init-cmd-AIUYATFU.js');
3954
3954
  const code = await runInitCommand(
3955
3955
  { json: opts.json, factory: opts.factory, shellFunction: opts.shellFunction },
3956
3956
  {
@@ -5046,7 +5046,7 @@ stops at once if a tracked file differs from HEAD.
5046
5046
  fail(trackerNumberError("--pr", opts.pr));
5047
5047
  return;
5048
5048
  }
5049
- const { runWorkProofsCommand } = await import('./work-proofs-cmd-DDVTBWPI.js');
5049
+ const { runWorkProofsCommand } = await import('./work-proofs-cmd-Y7WZNTI3.js');
5050
5050
  await runWorkProofsCommand({ ...opts, ...pr === void 0 ? {} : { pr } });
5051
5051
  });
5052
5052
  workCmd.command("list").description("List live work items for this factory").option("--stage <spec|build|review>", "filter by stage").option("--section <attention|waiting|flowing>", "filter by Queue section").option("--repo <owner/name>", "repository (default: the current checkout's remote)").option("--unclaimed", "only items with no live lease").option("--claimed", "only items with a live lease, held by a host or a local session").option("--startable", "only items a host can start: a build request, no open PR, no live lease").option("--needs <amend>", "only items with a thread waiting on an agent").option("--json", "machine-readable JSON output").option("--url <url>", "cloud base URL (or OUTERLAYER_URL / config)").addOption(apiKeyOption()).option("--app-id <id>", "factory id the key is bound to (or OUTERLAYER_APP_ID / config)").action(async (opts) => {
@@ -5071,7 +5071,7 @@ by a different key is refused; claiming again with the same key extends
5071
5071
  it. --host is a label only.
5072
5072
  `
5073
5073
  ).action(async (opts) => {
5074
- const { runWorkClaim, WorkCommandError } = await import('./work-claim-cmd-2IOJVHR5.js');
5074
+ const { runWorkClaim, WorkCommandError } = await import('./work-claim-cmd-YE4MVGZH.js');
5075
5075
  try {
5076
5076
  await runWorkClaim(opts);
5077
5077
  } catch (err) {
@@ -5091,7 +5091,7 @@ Extends the live lease this API key holds. Refused with a 410 if the
5091
5091
  lease has expired, or a 403 if a different key holds it.
5092
5092
  `
5093
5093
  ).action(async (opts) => {
5094
- const { runWorkRenew, WorkCommandError } = await import('./work-claim-cmd-2IOJVHR5.js');
5094
+ const { runWorkRenew, WorkCommandError } = await import('./work-claim-cmd-YE4MVGZH.js');
5095
5095
  try {
5096
5096
  await runWorkRenew(opts);
5097
5097
  } catch (err) {
@@ -5123,7 +5123,7 @@ applies to a host's lease only. A later tool call in the session
5123
5123
  takes the lease again.
5124
5124
  `
5125
5125
  ).action(async (opts) => {
5126
- const { runWorkRelease, WorkCommandError } = await import('./work-claim-cmd-2IOJVHR5.js');
5126
+ const { runWorkRelease, WorkCommandError } = await import('./work-claim-cmd-YE4MVGZH.js');
5127
5127
  try {
5128
5128
  await runWorkRelease(opts);
5129
5129
  } catch (err) {
@@ -5209,7 +5209,7 @@ function registerRunnerCommands(program2) {
5209
5209
  const configOption = "the cloud config file to run against (default: ~/.outerlayer/config.json)";
5210
5210
  runnerCmd.command("start").description("Run the loop: claim work, run it, report, clean up, repeat").option("--config <path>", configOption).action(async (opts) => {
5211
5211
  const { defaultRunnerConfigPath, RunnerConfigError } = await import('./config-CZJINZN5.js');
5212
- const { start, RunnerStartError } = await import('./loop-V5ZC753N.js');
5212
+ const { start, RunnerStartError } = await import('./loop-P7NDQS3G.js');
5213
5213
  const { RunnerAlreadyRunningError } = await import('./pidfile-H2DZIODT.js');
5214
5214
  const configPath = opts.config ?? defaultRunnerConfigPath();
5215
5215
  try {
@@ -5233,8 +5233,8 @@ The image sets OUTERLAYER_RUNNER_IMAGE; outside the image, use \`runner start\`.
5233
5233
  `
5234
5234
  ).action(async () => {
5235
5235
  const { defaultRunnerConfigPath, RunnerConfigError } = await import('./config-CZJINZN5.js');
5236
- const { containerStart, containerStartExit } = await import('./container-start-45TQNJQE.js');
5237
- const { start, RunnerStartError } = await import('./loop-V5ZC753N.js');
5236
+ const { containerStart, containerStartExit } = await import('./container-start-JBYD2XG4.js');
5237
+ const { start, RunnerStartError } = await import('./loop-P7NDQS3G.js');
5238
5238
  const { RunnerAlreadyRunningError } = await import('./pidfile-H2DZIODT.js');
5239
5239
  try {
5240
5240
  const outcome = containerStartExit(await containerStart({
@@ -5258,14 +5258,14 @@ The image sets OUTERLAYER_RUNNER_IMAGE; outside the image, use \`runner start\`.
5258
5258
  ).action(async (opts) => {
5259
5259
  const { defaultRunnerConfigPath } = await import('./config-CZJINZN5.js');
5260
5260
  const { runnerDir } = await import('./paths-AGOA7QX6.js');
5261
- const { runUpdateSteps } = await import('./update-steps-ZW2EDSYC.js');
5261
+ const { runUpdateSteps } = await import('./update-steps-R7AQAO6R.js');
5262
5262
  const text = await runUpdateSteps({ runnerDirPath: runnerDir(opts.config ?? defaultRunnerConfigPath()) });
5263
5263
  process.stdout.write(`${text}
5264
5264
  `);
5265
5265
  });
5266
5266
  runnerCmd.command("check").description("Validate the config, the hooks and the key, and print the effective settings").option("--config <path>", configOption).action(async (opts) => {
5267
5267
  const { defaultRunnerConfigPath } = await import('./config-CZJINZN5.js');
5268
- const { runRunnerCheck } = await import('./check-WG7ONVYM.js');
5268
+ const { runRunnerCheck } = await import('./check-PJ5FLDTD.js');
5269
5269
  const configPath = opts.config ?? defaultRunnerConfigPath();
5270
5270
  const result = await runRunnerCheck(configPath);
5271
5271
  if (!result.ok) {
@@ -5299,13 +5299,13 @@ The image sets OUTERLAYER_RUNNER_IMAGE; outside the image, use \`runner start\`.
5299
5299
  }
5300
5300
  }
5301
5301
  const buildCpusMax = opts.buildCpusMax === void 0 ? void 0 : Number(opts.buildCpusMax);
5302
- if (buildCpusMax !== void 0 && !(await import('./command-5GGBCD4S.js')).cpusAreValid(buildCpusMax)) {
5302
+ if (buildCpusMax !== void 0 && !(await import('./command-EG54FHMR.js')).cpusAreValid(buildCpusMax)) {
5303
5303
  fail(`--build-cpus-max ${opts.buildCpusMax} is not a number of CPUs from 0.01 to 1024.`);
5304
5304
  return;
5305
5305
  }
5306
5306
  try {
5307
5307
  if (opts.service === true) {
5308
- const { installServiceCommand } = await import('./command-5GGBCD4S.js');
5308
+ const { installServiceCommand } = await import('./command-EG54FHMR.js');
5309
5309
  const result2 = await installServiceCommand({
5310
5310
  configPath,
5311
5311
  print: opts.print,
@@ -5363,7 +5363,7 @@ To keep it running, run ${C.yellow}${cliInvocation()} runner install --service${
5363
5363
  return;
5364
5364
  }
5365
5365
  const { defaultRunnerConfigPath } = await import('./config-CZJINZN5.js');
5366
- const { uninstallServiceCommand } = await import('./command-5GGBCD4S.js');
5366
+ const { uninstallServiceCommand } = await import('./command-EG54FHMR.js');
5367
5367
  const result = await uninstallServiceCommand({ configPath: opts.config ?? defaultRunnerConfigPath(), unitName: opts.unitName, home: homeFromEnv() });
5368
5368
  if (result.ok) for (const line of result.lines) process.stdout.write(`${C.green}\u2713${C.reset} ${line}
5369
5369
  `);
@@ -5394,10 +5394,10 @@ already in ${words().envFile} is used.
5394
5394
  `
5395
5395
  ).action(async (opts) => {
5396
5396
  const { defaultRunnerConfigPath, RunnerConfigError } = await import('./config-CZJINZN5.js');
5397
- const { prepareRunnerInit, runRunnerInit, RunnerInitError, writeRunnerInit } = await import('./init-V45VLEQO.js');
5398
- const { obtainRunnerKey, runnerKeyLogin } = await import('./runner-key-OS7EKYZS.js');
5399
- const { detectMachine } = await import('./machine-4M4RUHG2.js');
5400
- const { chooseVm, runVmInit, VmInitError } = await import('./init-QBWRPNZP.js');
5397
+ const { prepareRunnerInit, runRunnerInit, RunnerInitError, writeRunnerInit } = await import('./init-CSWMBTTM.js');
5398
+ const { obtainRunnerKey, runnerKeyLogin } = await import('./runner-key-PNZTLOK5.js');
5399
+ const { detectMachine } = await import('./machine-UEW4P7I6.js');
5400
+ const { chooseVm, runVmInit, VmInitError } = await import('./init-GH74PR4K.js');
5401
5401
  const { credentialFromStdin, isAgentName, restartForCredential, RunnerEnvError } = await import('./runner-env-YPIZG3VG.js');
5402
5402
  const { headlessNames } = await import('./runner-agents-QJCL4MO3.js');
5403
5403
  const configPath = opts.config ?? defaultRunnerConfigPath();
@@ -5411,7 +5411,7 @@ already in ${words().envFile} is used.
5411
5411
  return;
5412
5412
  }
5413
5413
  try {
5414
- const { agentCredentialText, credentialQuestion, initAgent, terminalQuestion } = await import('./init-agent-2XMCGKPV.js');
5414
+ const { agentCredentialText, credentialQuestion, initAgent, terminalQuestion } = await import('./init-agent-54VT3S3Z.js');
5415
5415
  agent = await initAgent({
5416
5416
  flag: agent,
5417
5417
  handOff: opts.configStdin === true,
@@ -5550,7 +5550,7 @@ ${C.yellow}The runner will not update itself: ${installErr.message}${C.reset}
5550
5550
  let serviceUp = false;
5551
5551
  let restart;
5552
5552
  if (installedLayout) {
5553
- const { installServiceCommand } = await import('./command-5GGBCD4S.js');
5553
+ const { installServiceCommand } = await import('./command-EG54FHMR.js');
5554
5554
  const service = await installServiceCommand({
5555
5555
  configPath,
5556
5556
  entryPath: process.argv[1] ?? "",
@@ -5688,7 +5688,7 @@ A repository with no devcontainer file builds on the universal image the CLI pin
5688
5688
  });
5689
5689
  runnerCmd.command("stop").description("Take no more work; finish running jobs, then exit").option("--config <path>", "the cloud config file naming the runner to stop").option("--now", "end running jobs immediately, with outcome stopped").action(async (opts) => {
5690
5690
  const { defaultRunnerConfigPath } = await import('./config-CZJINZN5.js');
5691
- const { requestStop } = await import('./loop-V5ZC753N.js');
5691
+ const { requestStop } = await import('./loop-P7NDQS3G.js');
5692
5692
  const configPath = opts.config ?? defaultRunnerConfigPath();
5693
5693
  const { runnerImageVersion } = await import('./image-tag-WQB5HVLI.js');
5694
5694
  await requestStop(configPath, Boolean(opts.now), void 0, { image: runnerImageVersion() !== void 0 });
@@ -5696,8 +5696,8 @@ A repository with no devcontainer file builds on the universal image the CLI pin
5696
5696
  runnerCmd.command("status").description("List running jobs; with --recent, finished ones too").option("--config <path>", "the cloud config file naming the runner to inspect").option("--recent", "also list finished jobs, newest first, capped at 20").option("--json", "machine-readable JSON output").action(async (opts) => {
5697
5697
  const { defaultRunnerConfigPath, loadRunnerConfig } = await import('./config-CZJINZN5.js');
5698
5698
  const { jobsDir, runnerDir } = await import('./paths-AGOA7QX6.js');
5699
- const { listJobFiles, runnerProcessState } = await import('./loop-V5ZC753N.js');
5700
- const { renderStatus } = await import('./status-ODVVTDA2.js');
5699
+ const { listJobFiles, runnerProcessState } = await import('./loop-P7NDQS3G.js');
5700
+ const { renderStatus } = await import('./status-X7IK4XQU.js');
5701
5701
  const { readHousekeepingRecord } = await import('./record-UHMPQIUU.js');
5702
5702
  const path2 = await import('path');
5703
5703
  const configPath = opts.config ?? defaultRunnerConfigPath();
@@ -5763,7 +5763,7 @@ A repository with no devcontainer file builds on the universal image the CLI pin
5763
5763
  });
5764
5764
  runnerCmd.command("logs").argument("<item>", "the work item's number in the factory, or a build's claim id").description("Print the newest attempt's log for one item or claim id").option("--config <path>", "the cloud config file naming the runner to inspect").option("-f, --follow", "keep printing as the log grows").action(async (itemArg, opts) => {
5765
5765
  const { defaultRunnerConfigPath } = await import('./config-CZJINZN5.js');
5766
- const { listJobFiles } = await import('./loop-V5ZC753N.js');
5766
+ const { listJobFiles } = await import('./loop-P7NDQS3G.js');
5767
5767
  const { describeAmbiguous, logPathFor, selectAttempt, tail, RunnerLogsError } = await import('./logs-HIXNEXBT.js');
5768
5768
  const configPath = opts.config ?? defaultRunnerConfigPath();
5769
5769
  const jobs = listJobFiles(configPath);
@@ -1,10 +1,10 @@
1
1
  #!/usr/bin/env node
2
2
  import { createRequire } from 'node:module';
3
3
  import { realOwnership, accountNamed, handOver, runRunnerInstall, launcherSummary, restartNote, accountIdentity } from './chunk-62RPMJXQ.js';
4
- import { installHelper, helperUnitFor, helperSocketFor, uninstallHelper } from './chunk-MIJGB43I.js';
4
+ import { installHelper, helperUnitFor, helperSocketFor, uninstallHelper } from './chunk-4TDBM3PK.js';
5
5
  import './chunk-YLJXRXPX.js';
6
6
  import { currentLink, execStartCommand } from './chunk-IJU6DMQA.js';
7
- import { detectMachine, ensureFirecrackerAndJailer } from './chunk-RTNUZPAC.js';
7
+ import { detectMachine, ensureFirecrackerAndJailer } from './chunk-P2UH4EBF.js';
8
8
  import './chunk-BNYBHWYH.js';
9
9
  import './chunk-2PGI6RDE.js';
10
10
  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-7UG2MMFU.js';
4
- import { readOwnContainer } from './chunk-NQPQH6Y5.js';
5
- import { detectMachine, supportsContainerBuilds, MIN_ENGINE_MAJOR, describeMachineDocker, RunnerInitError, prepareRunnerInit, writeRunnerInit } from './chunk-RTNUZPAC.js';
3
+ import { reportFailedStart, BUILD_MEMORY_VARIABLE } from './chunk-QK43VKE4.js';
4
+ import { readOwnContainer } from './chunk-4A7D2HWQ.js';
5
+ import { detectMachine, supportsContainerBuilds, MIN_ENGINE_MAJOR, describeMachineDocker, RunnerInitError, prepareRunnerInit, writeRunnerInit } from './chunk-P2UH4EBF.js';
6
6
  import './chunk-BNYBHWYH.js';
7
7
  import './chunk-2PGI6RDE.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-MIJGB43I.js';
3
+ import { helperBinaryFor } from './chunk-4TDBM3PK.js';
4
4
  import { launcherCheck } from './chunk-YLJXRXPX.js';
5
- import { managedProblems, fleetConfigProblem, askFleetMachine } from './chunk-ICLXEZEB.js';
5
+ import { managedProblems, fleetConfigProblem, askFleetMachine } from './chunk-77RLQS5V.js';
6
6
  import './chunk-IJU6DMQA.js';
7
- import { needsAgentCredential, agentCredentialCheck, detectMachine, supportsContainerBuilds, describeMachineDocker, MIN_ENGINE_MAJOR, reachDockerStep, supportsMicroVmBuilds, microVmArchSupported, microVmAssetsPinned, helperFirecrackerNote, probeHelper, helperSocketPath, KIND_LABEL, missingPermissionOf, missingPermissionFix } from './chunk-RTNUZPAC.js';
7
+ import { needsAgentCredential, agentCredentialCheck, detectMachine, supportsContainerBuilds, describeMachineDocker, MIN_ENGINE_MAJOR, reachDockerStep, supportsMicroVmBuilds, microVmArchSupported, microVmAssetsPinned, helperFirecrackerNote, probeHelper, helperSocketPath, KIND_LABEL, missingPermissionOf, missingPermissionFix } from './chunk-P2UH4EBF.js';
8
8
  import './chunk-BNYBHWYH.js';
9
9
  import './chunk-2PGI6RDE.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, checksIn, commandItems, isJudgeCheck, makeRecorder, readDefinitions, runHostChecks, testProofIn, timeoutAfter } from './chunk-RTNUZPAC.js';
3
+ export { MAX_CHECK_ITEMS_BYTES, checksIn, commandItems, isJudgeCheck, makeRecorder, readDefinitions, runHostChecks, testProofIn, timeoutAfter } from './chunk-P2UH4EBF.js';
4
4
  import './chunk-BNYBHWYH.js';
5
5
  import './chunk-2PGI6RDE.js';
6
6
  import './chunk-I3LTIAOR.js';
package/dist/index.js CHANGED
@@ -25,5 +25,5 @@ var { runSubcommand } = await import('./agent-subcommand-C625JDSN.js');
25
25
  var launcherCode = await runSubcommand(argv);
26
26
  if (launcherCode !== void 0) process.exit(launcherCode);
27
27
  (await import('./hook-fast-27GO6BM2.js')).recordLinkExitFailure(argv);
28
- var { runCli } = await import('./cli-42G6B7EO.js');
28
+ var { runCli } = await import('./cli-K62CS6XW.js');
29
29
  await runCli(process.argv);
@@ -1,6 +1,6 @@
1
1
  #!/usr/bin/env node
2
2
  import { createRequire } from 'node:module';
3
- export { PLACEHOLDER_MARKER, RunnerInitError, isPlaceholderCommand, prepareRunnerInit, readConfigObject, runRunnerInit, writeRunnerInit } from './chunk-RTNUZPAC.js';
3
+ export { PLACEHOLDER_MARKER, RunnerInitError, isPlaceholderCommand, prepareRunnerInit, readConfigObject, runRunnerInit, writeRunnerInit } from './chunk-P2UH4EBF.js';
4
4
  import './chunk-BNYBHWYH.js';
5
5
  import './chunk-2PGI6RDE.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
3
  import { npmSupportsProvenance } from './chunk-E7R2GIAW.js';
4
- import { RunnerInitError, readConfigObject } from './chunk-RTNUZPAC.js';
4
+ import { RunnerInitError, readConfigObject } from './chunk-P2UH4EBF.js';
5
5
  import './chunk-BNYBHWYH.js';
6
6
  import './chunk-2PGI6RDE.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
- import { RunnerInitError } from './chunk-RTNUZPAC.js';
3
+ import { RunnerInitError } from './chunk-P2UH4EBF.js';
4
4
  import './chunk-BNYBHWYH.js';
5
5
  import './chunk-2PGI6RDE.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 { summarizeChecks, summaryText, renderDoctorText } from './chunk-WRFUGRUX.js';
3
+ import { summarizeChecks, summaryText, renderDoctorText } from './chunk-XPIFUWWY.js';
4
4
  import { shellFunctionInstalled, removeShellFunction, installShellFunction, SHELL_FUNCTION_LINE } from './chunk-2QIK3JRV.js';
5
5
  import './chunk-A75ZPAOP.js';
6
6
  import './chunk-6BS4DDCY.js';
@@ -1,17 +1,17 @@
1
1
  #!/usr/bin/env node
2
2
  import { createRequire } from 'node:module';
3
- export { RunnerStartError, fleetKeepalive, leaseTimeLeftFor, listJobFiles, logUnusableHelper, prepareSession, probeBuild, probeCredentials, requestStop, runnerProcessState, runtimeOf, sampleUsage, start, tick, watchTick } from './chunk-WLALSXAN.js';
3
+ export { LAPSED_REASON, RunnerStartError, fleetKeepalive, leaseTimeLeftFor, listJobFiles, logUnusableHelper, prepareSession, probeBuild, probeCredentials, requestStop, runnerProcessState, runtimeOf, sampleUsage, start, tick, watchTick } from './chunk-Q2JDKHOR.js';
4
4
  import './chunk-PNZN656P.js';
5
5
  import './chunk-2QFRAMJX.js';
6
6
  import './chunk-LVZ3UV7T.js';
7
7
  import './chunk-3JVYMD4G.js';
8
8
  import './chunk-E7R2GIAW.js';
9
- import './chunk-7UG2MMFU.js';
10
- import './chunk-NQPQH6Y5.js';
11
- import './chunk-IDYLPN4X.js';
12
- import './chunk-ICLXEZEB.js';
9
+ import './chunk-QK43VKE4.js';
10
+ import './chunk-4A7D2HWQ.js';
11
+ import './chunk-ZEHCE7ZE.js';
12
+ import './chunk-77RLQS5V.js';
13
13
  import './chunk-IJU6DMQA.js';
14
- import './chunk-RTNUZPAC.js';
14
+ import './chunk-P2UH4EBF.js';
15
15
  import './chunk-BNYBHWYH.js';
16
16
  import './chunk-2PGI6RDE.js';
17
17
  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-RTNUZPAC.js';
3
+ export { describeMachineDocker, detectMachine, microVmArchSupported, microVmAssetsPinned, reachDockerStep, supportsContainerBuilds, supportsMicroVmBuilds } from './chunk-P2UH4EBF.js';
4
4
  import './chunk-BNYBHWYH.js';
5
5
  import './chunk-2PGI6RDE.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-RTNUZPAC.js';
3
+ import { readConfigObject, RunnerInitError } from './chunk-P2UH4EBF.js';
4
4
  import './chunk-BNYBHWYH.js';
5
5
  import './chunk-2PGI6RDE.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 { isReadable, LEASE_SECONDS, ALREADY_RELEASED, RENEW_INTERVAL_SECONDS } from './chunk-RTNUZPAC.js';
3
+ import { isReadable, LEASE_SECONDS, ALREADY_RELEASED, RENEW_INTERVAL_SECONDS } from './chunk-P2UH4EBF.js';
4
4
  import './chunk-BNYBHWYH.js';
5
5
  import './chunk-2PGI6RDE.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-NQPQH6Y5.js';
4
- import './chunk-RTNUZPAC.js';
3
+ export { readOwnContainer, renderUpdateSteps, runUpdateSteps } from './chunk-4A7D2HWQ.js';
4
+ import './chunk-P2UH4EBF.js';
5
5
  import './chunk-BNYBHWYH.js';
6
6
  import './chunk-2PGI6RDE.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
- import { RUNNER_PROTOCOL } from './chunk-IDYLPN4X.js';
3
+ import { RUNNER_PROTOCOL } from './chunk-ZEHCE7ZE.js';
4
4
  import { resolveCredentials, WorkCommandError, parsePositiveInt, postJson, environmentFacts, findLiveItemForIssue } from './chunk-6BS4DDCY.js';
5
5
  export { WorkCommandError } from './chunk-6BS4DDCY.js';
6
6
  import './chunk-6MWBZHBW.js';
@@ -1,6 +1,6 @@
1
1
  #!/usr/bin/env node
2
2
  import { createRequire } from 'node:module';
3
- export { classifyProofs, classifyProofsAt, otherPullRequestHeads, resolveProofsItem, runWorkProofs, runWorkProofsCommand } from './chunk-4E3ALN2D.js';
3
+ export { classifyProofs, classifyProofsAt, otherPullRequestHeads, resolveProofsItem, runWorkProofs, runWorkProofsCommand } from './chunk-KE5NFPP2.js';
4
4
  import './chunk-BNYBHWYH.js';
5
5
  import './chunk-6BS4DDCY.js';
6
6
  import './chunk-6MWBZHBW.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, proofsCommentBody } from './chunk-4E3ALN2D.js';
3
+ import { resolveProofsItem, ownPullRequest, otherPullRequestHeads, testProofMode, classifyProofsAt, runWorkProofs, proofsCommentId, testFilesOf, freshXmlFiles, joinResults, testSelectors, kindProblem, proofsCommentBody } from './chunk-KE5NFPP2.js';
4
4
  import { runEmitDemo } from './chunk-RFCAK6OI.js';
5
5
  import { readNewestDemo } from './chunk-ER6KQCVJ.js';
6
6
  import { runWorkComment } from './chunk-2LXO2YIW.js';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@outerlayer/cli",
3
- "version": "0.37.0-next.20261105001951",
3
+ "version": "0.37.0",
4
4
  "description": "OuterLayer CLI — commands: init, claude, connect, doctor, login, logout, sync, daemon (alias: watch), emit, demo, findings, work, 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.",
@@ -34,10 +34,11 @@
34
34
  },
35
35
  "scripts": {
36
36
  "build": "tsup && tsup --config tsup.recorder.config.ts",
37
- "test": "vitest run ${CLI_VITEST_PROJECT:+--project=$CLI_VITEST_PROJECT}",
37
+ "test": "vitest run ${CLI_VITEST_PROJECT:+--project=$CLI_VITEST_PROJECT} ${VITEST_CHANGED_SINCE:+--changed=$VITEST_CHANGED_SINCE --passWithNoTests}",
38
+ "test:reads": "VITEST_ALWAYS_RUN=1 vitest run ${CLI_VITEST_PROJECT:+--project=$CLI_VITEST_PROJECT} --passWithNoTests",
38
39
  "test:watch": "vitest",
39
40
  "test:mutate": "stryker run",
40
- "typecheck": "tsc --noEmit",
41
+ "typecheck": "tsc7 --noEmit --rootDir ../..",
41
42
  "bench:hook": "node scripts/bench-hook.mjs",
42
43
  "clean": "rm -rf dist",
43
44
  "test:e2e": "vitest run --config vitest.e2e.config.ts",
@@ -51,6 +52,7 @@
51
52
  "@outerlayer/runner-signature": "0.1.0",
52
53
  "@outerlayer/session-schema": "0.1.0",
53
54
  "@outerlayer/trackers": "0.0.0",
55
+ "@repo/typescript-config": "0.0.0",
54
56
  "@stryker-mutator/core": "10.1.1",
55
57
  "@stryker-mutator/vitest-runner": "10.1.1",
56
58
  "@types/node": "^22.20.1",