@outerlayer/cli 0.40.0-next.20261116202259 → 0.40.0-next.20261116212619

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 (47) hide show
  1. package/README.md +7 -4
  2. package/dist/build-info.json +1 -1
  3. package/dist/{caller-YLCG35RW.js → caller-CRTXYQS6.js} +2 -2
  4. package/dist/{check-XF4J5PFS.js → check-XAP6HCDV.js} +10 -10
  5. package/dist/{chunk-KDLZOXBP.js → chunk-2QG2WHQI.js} +1 -1
  6. package/dist/{chunk-O7QTZ6FY.js → chunk-5DVAYNM5.js} +1 -1
  7. package/dist/{chunk-K4AQVH47.js → chunk-6QK75VD2.js} +2 -2
  8. package/dist/{chunk-JKOSEEDV.js → chunk-7CBNPW6A.js} +3 -3
  9. package/dist/{chunk-GH7RYZTX.js → chunk-DGGAQMSV.js} +1 -1
  10. package/dist/{chunk-IVRP4E3F.js → chunk-ECTZGGQK.js} +1 -1
  11. package/dist/{chunk-Y25XOGFX.js → chunk-EZHWM7GN.js} +3 -3
  12. package/dist/{chunk-OFEHPNPJ.js → chunk-GPROFAKS.js} +1 -1
  13. package/dist/{chunk-77FYM6CF.js → chunk-LIJQWC67.js} +1 -1
  14. package/dist/{chunk-2VYD47YW.js → chunk-P27TZI3C.js} +1 -1
  15. package/dist/{chunk-EEPR5MSY.js → chunk-QL5LCZBO.js} +8 -8
  16. package/dist/{chunk-YB7QOJJ6.js → chunk-S6EOMJPK.js} +3 -3
  17. package/dist/{chunk-3DKYI6V7.js → chunk-SGVQ25MY.js} +5 -6
  18. package/dist/{chunk-CYUAZGM5.js → chunk-SQTRQ7FW.js} +1 -1
  19. package/dist/{chunk-5EHW7SBY.js → chunk-Y3RV5MQ5.js} +3 -3
  20. package/dist/{chunk-MTZ43GKQ.js → chunk-Z5PJYTDX.js} +3 -3
  21. package/dist/{cli-E4FIPVXA.js → cli-P6D6V32C.js} +45 -45
  22. package/dist/{command-JOFIZTRB.js → command-YAQT6PDZ.js} +8 -8
  23. package/dist/{config-2FFE76CU.js → config-WQJ4G4RX.js} +1 -1
  24. package/dist/{container-start-PEWYWFZJ.js → container-start-OLNAXXIY.js} +7 -7
  25. package/dist/{doctor-IJUVLEOA.js → doctor-ELHDWI23.js} +7 -7
  26. package/dist/{find-unit-HCJCNGAO.js → find-unit-AN4NVRPI.js} +3 -3
  27. package/dist/{host-checks-IHDOXH4L.js → host-checks-RYP4O2UZ.js} +5 -5
  28. package/dist/index.js +1 -1
  29. package/dist/{init-IPCLZQTH.js → init-CWT6EH5O.js} +5 -5
  30. package/dist/{init-NMALA2L3.js → init-WIPXHMMD.js} +5 -5
  31. package/dist/{init-agent-O2INKCJ2.js → init-agent-O6I7H3YM.js} +5 -5
  32. package/dist/{init-cmd-EAIFTS3D.js → init-cmd-7QCIXIVX.js} +2 -2
  33. package/dist/{install-cmd-IGD4QKRJ.js → install-cmd-K5XY4AIM.js} +2 -2
  34. package/dist/{launch-agent-MAOBOT2E.js → launch-agent-CAM7STGX.js} +3 -3
  35. package/dist/{loop-W3SG6T77.js → loop-FK6QMKHB.js} +9 -9
  36. package/dist/{machine-2JEIPALV.js → machine-ZAZCD7GG.js} +5 -5
  37. package/dist/{runner-env-RFL275DT.js → runner-env-SXG27CAD.js} +3 -3
  38. package/dist/{runner-key-QXMG627U.js → runner-key-47XOJPYF.js} +5 -5
  39. package/dist/{setup-wiring-C7C2RHME.js → setup-wiring-GAOFBVEA.js} +7 -7
  40. package/dist/{status-AECB2USQ.js → status-GVCAMV7E.js} +5 -5
  41. package/dist/{update-steps-TLG25JY2.js → update-steps-7O5EHBP6.js} +6 -6
  42. package/dist/{work-claim-cmd-BXJ5RNWG.js → work-claim-cmd-DJXE5XDE.js} +1 -1
  43. package/dist/{work-proofs-cmd-VZM2CUGY.js → work-proofs-cmd-SPO6NUGT.js} +1 -1
  44. package/dist/{work-proofs-record-LN42LPZM.js → work-proofs-record-VLDSZSAT.js} +1 -1
  45. package/package.json +1 -1
  46. package/skill-pack/shipped.json +2 -1
  47. package/skill-pack/template/writing-specs/SKILL.md +93 -69
package/README.md CHANGED
@@ -368,8 +368,9 @@ content:
368
368
  writes into the build's own directory. When the built-in code review ends,
369
369
  `runner/code-review-report.ts` sends its result to your gateway with
370
370
  `POST /v1/work-items/{id}/claim/code-review`.
371
- - **`outerlayer runner start` with `runner.sandbox.provider: "outerlayer"`**
372
- builds in sandboxes that OuterLayer provides. The runner calls no sandbox
371
+ - **`outerlayer runner start` with `builtin:sandbox` hooks** builds in
372
+ sandboxes that OuterLayer provides, by default or with
373
+ `runner.sandbox.provider: "outerlayer"`. The runner calls no sandbox
373
374
  provider's API and holds no provider key. It asks your gateway for the
374
375
  sandbox of each claim with `POST /v1/work-items/{id}/claim/sandbox`, and sends
375
376
  the machine size, the idle and time limits and the runner's own label. It
@@ -379,8 +380,10 @@ content:
379
380
  secret, as the next entry describes, and the sandbox has no direct network
380
381
  access. The runner pauses no sandbox: each ends with its build. `outerlayer
381
382
  runner check` makes one call to `GET /v1/managed-sandboxes`.
382
- - **`outerlayer runner start` with `builtin:sandbox` hooks** runs each build
383
- in a sandbox, a microVM that a sandbox provider hosts. The runner calls
383
+ - **A runner with `builtin:sandbox` hooks and a provider account of its own**,
384
+ as OuterLayer's fleet machines have, runs each build in a sandbox, a microVM
385
+ that a sandbox provider hosts. Its config names `runner.sandbox.snapshot`.
386
+ The runner calls
384
387
  the provider's API at `SANDBOX_API_URL` with the provider's API key
385
388
  (`SANDBOX_API_KEY`) to create, list, pause, extend and end sandboxes. Both come
386
389
  from the runner's environment, and neither has a default. A create call sends the snapshot, the size,
@@ -1 +1 @@
1
- {"id":"2026-11-16T20:37:35.118Z","root":"/home/runner/work/outerlayer/outerlayer","pkg":"outerlayer"}
1
+ {"id":"2026-11-16T21:32:20.683Z","root":"/home/runner/work/outerlayer/outerlayer","pkg":"outerlayer"}
@@ -1,7 +1,7 @@
1
1
  #!/usr/bin/env node
2
2
  import { createRequire } from 'node:module';
3
- export { claimCalls, claimItem, configForJob, itemCalls, leftByRunnerKey, runnerCalls, spoolHomeFor } from './chunk-2VYD47YW.js';
4
- import './chunk-3DKYI6V7.js';
3
+ export { claimCalls, claimItem, configForJob, itemCalls, leftByRunnerKey, runnerCalls, spoolHomeFor } from './chunk-P27TZI3C.js';
4
+ import './chunk-SGVQ25MY.js';
5
5
  import './chunk-WTX57JCA.js';
6
6
  import './chunk-BKN5HQCX.js';
7
7
  import './chunk-47NQTKLX.js';
@@ -1,23 +1,23 @@
1
1
  #!/usr/bin/env node
2
2
  import { createRequire } from 'node:module';
3
- import { probeCredentials } from './chunk-EEPR5MSY.js';
3
+ import { probeCredentials } from './chunk-QL5LCZBO.js';
4
4
  import './chunk-7VW73CPS.js';
5
5
  import './chunk-E7R2GIAW.js';
6
- import './chunk-YB7QOJJ6.js';
7
- import './chunk-KDLZOXBP.js';
6
+ import './chunk-S6EOMJPK.js';
7
+ import './chunk-2QG2WHQI.js';
8
8
  import './chunk-TXKHD4Q6.js';
9
9
  import './chunk-ALJMNIHW.js';
10
10
  import './chunk-XYJHIH4N.js';
11
- import { fleetConfigProblem, managedProblems, managedFactsOf, askFleetMachine } from './chunk-MTZ43GKQ.js';
11
+ import { fleetConfigProblem, managedProblems, managedFactsOf, askFleetMachine } from './chunk-Z5PJYTDX.js';
12
12
  import './chunk-F5DIRRMG.js';
13
- import { findServiceUnit } from './chunk-GH7RYZTX.js';
14
- import { createGatewaySandboxClient, gatewayRefusalReason, placeholderQueues, placeholderProblem, permissionModeProblems, permissionModeProblem, HELPER_ENV, helperSocketPath, probeHelper, needsAgentCredential, agentCredentialCheck, claimPermissionProblem, formerSkillQueues, modellessQueues, formerSkillProblem, modellessProblem } from './chunk-Y25XOGFX.js';
13
+ import { findServiceUnit } from './chunk-DGGAQMSV.js';
14
+ import { createGatewaySandboxClient, gatewayRefusalReason, placeholderQueues, placeholderProblem, permissionModeProblems, permissionModeProblem, HELPER_ENV, helperSocketPath, probeHelper, needsAgentCredential, agentCredentialCheck, claimPermissionProblem, formerSkillQueues, modellessQueues, formerSkillProblem, modellessProblem } from './chunk-EZHWM7GN.js';
15
15
  import './chunk-PM3PXJGE.js';
16
16
  import './chunk-46D7LPS3.js';
17
17
  import './chunk-I3LTIAOR.js';
18
18
  import './chunk-2PGI6RDE.js';
19
- import './chunk-O7QTZ6FY.js';
20
- import './chunk-OFEHPNPJ.js';
19
+ import './chunk-5DVAYNM5.js';
20
+ import './chunk-GPROFAKS.js';
21
21
  import './chunk-UU3A53VB.js';
22
22
  import './chunk-FVTNWJPF.js';
23
23
  import './chunk-MDWAL6FD.js';
@@ -28,7 +28,7 @@ import './chunk-C2PZOLN7.js';
28
28
  import './chunk-B4XB5QFD.js';
29
29
  import './chunk-DIF5NMRF.js';
30
30
  import './chunk-TQMI335S.js';
31
- import './chunk-2VYD47YW.js';
31
+ import './chunk-P27TZI3C.js';
32
32
  import './chunk-NN33FYXG.js';
33
33
  import './chunk-BQUUKECC.js';
34
34
  import './chunk-5IDATPRL.js';
@@ -42,7 +42,7 @@ import './chunk-FJGYU2EK.js';
42
42
  import './chunk-2EDRIMMQ.js';
43
43
  import './chunk-A7M4QXVX.js';
44
44
  import './chunk-4OLHKE6K.js';
45
- import { keyRunnerFactory, loadRunnerConfig, RunnerConfigError, checkHooks } from './chunk-3DKYI6V7.js';
45
+ import { keyRunnerFactory, loadRunnerConfig, RunnerConfigError, checkHooks } from './chunk-SGVQ25MY.js';
46
46
  import './chunk-WTX57JCA.js';
47
47
  import './chunk-BKN5HQCX.js';
48
48
  import './chunk-47NQTKLX.js';
@@ -1,6 +1,6 @@
1
1
  #!/usr/bin/env node
2
2
  import { createRequire } from 'node:module';
3
- import { stripTerminalControls } from './chunk-Y25XOGFX.js';
3
+ import { stripTerminalControls } from './chunk-EZHWM7GN.js';
4
4
  import { tagToPull, imageTag, pullInstruction, readUpdateStatus, runnerImageVersion } from './chunk-DIF5NMRF.js';
5
5
  import { readFileSync } from 'fs';
6
6
 
@@ -1,6 +1,6 @@
1
1
  #!/usr/bin/env node
2
2
  import { createRequire } from 'node:module';
3
- import { DEFAULT_UNIT_NAME } from './chunk-OFEHPNPJ.js';
3
+ import { DEFAULT_UNIT_NAME } from './chunk-GPROFAKS.js';
4
4
  import { RUNNER_FILE_MODE } from './chunk-AEGLAS4Y.js';
5
5
  import { parseRunnerEnv, withoutCredentialLines } from './chunk-5XEO7FJW.js';
6
6
  import { headlessNames, runnerAgentNamed, credentialAgent, orList, credentialShapes, runnerAgents, credentialForms, credentialEnvPath, forwardedVariables } from './chunk-MHXUQI67.js';
@@ -1,7 +1,7 @@
1
1
  #!/usr/bin/env node
2
2
  import { createRequire } from 'node:module';
3
- import { helperSocketPath } from './chunk-Y25XOGFX.js';
4
- import { UNIT_MARKER } from './chunk-OFEHPNPJ.js';
3
+ import { helperSocketPath } from './chunk-EZHWM7GN.js';
4
+ import { UNIT_MARKER } from './chunk-GPROFAKS.js';
5
5
  import { runnerDir } from './chunk-AEGLAS4Y.js';
6
6
  import { createHash } from 'crypto';
7
7
  import { join } from 'path';
@@ -1094,7 +1094,7 @@ function doctorExitCode(checks) {
1094
1094
  // src/doctor-report.ts
1095
1095
  async function gatherDoctorChecks(options = {}) {
1096
1096
  const { DEFAULT_BUILD_DISK, DEFAULT_CACHE_DISK } = await import('./build-disk-GDBXPKVU.js');
1097
- const { defaultRunnerConfigPath, hasRunnerBlock, keyRunnerFactory, loadRunnerConfig, runnerVmOf } = await import('./config-2FFE76CU.js');
1097
+ const { defaultRunnerConfigPath, hasRunnerBlock, keyRunnerFactory, loadRunnerConfig, runnerVmOf } = await import('./config-WQJ4G4RX.js');
1098
1098
  const configPath = options.configPath ?? defaultRunnerConfigPath();
1099
1099
  const runnerHost = hasRunnerBlock(configPath);
1100
1100
  const hooks = (() => {
@@ -1122,7 +1122,7 @@ async function gatherDoctorChecks(options = {}) {
1122
1122
  const { runnerVmCheck } = await import('./doctor-53F2PYY7.js');
1123
1123
  checks.push(runnerVmCheck(configPath, { lima: realLima(), home: homeFromEnv(), instance: runnerVm.instance }));
1124
1124
  } else if (hasRunnerBlock(configPath)) {
1125
- const { runnerHostChecks } = await import('./doctor-IJUVLEOA.js');
1125
+ const { runnerHostChecks } = await import('./doctor-ELHDWI23.js');
1126
1126
  const gateway = (() => {
1127
1127
  try {
1128
1128
  const loaded = loadRunnerConfig(configPath);
@@ -1150,7 +1150,7 @@ async function gatherDoctorChecks(options = {}) {
1150
1150
  const service = await (async () => {
1151
1151
  const { existsSync: existsSync3 } = await import('fs');
1152
1152
  if (process.platform !== "linux" || !existsSync3("/run/systemd/system")) return void 0;
1153
- const { inspectRunnerService } = await import('./find-unit-HCJCNGAO.js');
1153
+ const { inspectRunnerService } = await import('./find-unit-AN4NVRPI.js');
1154
1154
  return inspectRunnerService(configPath);
1155
1155
  })();
1156
1156
  checks.push(...await runnerHostChecks({ configPath, hooks, gateway, repos, runner, service }));
@@ -1,6 +1,6 @@
1
1
  #!/usr/bin/env node
2
2
  import { createRequire } from 'node:module';
3
- import { escapeUnitPath, UNIT_MARKER, DEFAULT_UNIT_NAME } from './chunk-OFEHPNPJ.js';
3
+ import { escapeUnitPath, UNIT_MARKER, DEFAULT_UNIT_NAME } from './chunk-GPROFAKS.js';
4
4
  import { inspectService, realInspectProbes } from './chunk-5XEO7FJW.js';
5
5
  import { realpathSync, readFileSync, readdirSync } from 'fs';
6
6
  import { resolve, dirname, join } from 'path';
@@ -3,7 +3,7 @@ import { createRequire } from 'node:module';
3
3
  import { launcherPath, pathNotes, writeLauncher, LauncherWriteError } from './chunk-KJCEJOJI.js';
4
4
  import { currentVersion, entryIn, currentLink, versionDir, execStartLine, isInLayout, packageRootIn, switchCurrent } from './chunk-F5DIRRMG.js';
5
5
  import { compareVersions } from './chunk-TQMI335S.js';
6
- import { defaultRunnerConfigPath } from './chunk-3DKYI6V7.js';
6
+ import { defaultRunnerConfigPath } from './chunk-SGVQ25MY.js';
7
7
  import { runnerDir, RUNNER_DIR_MODE } from './chunk-AEGLAS4Y.js';
8
8
  import { lchownSync, lstatSync, realpathSync, readFileSync, mkdirSync, rmSync, cpSync, existsSync, readdirSync } from 'fs';
9
9
  import { dirname, sep, join, resolve } from 'path';
@@ -4,7 +4,7 @@ import { RUNNER_PROTOCOL } from './chunk-PM3PXJGE.js';
4
4
  import { MAX_TEST_FILE_BYTES, itemsSentence, criteriaOf, hostItemsOf, loadCitationFinder, testFileMatcher, planCriteria, wholeItems, judgeGroups, failedItems, inCriteriaOrder, testsByCriterion, oneLineReason, criterionInputs, parseJudgeAnswer, judgedItems } from './chunk-46D7LPS3.js';
5
5
  import { zodProblem } from './chunk-I3LTIAOR.js';
6
6
  import { sha256OfFile, downloadPinned, VoiceDownloadError } from './chunk-2PGI6RDE.js';
7
- import { hasStoredCredential, storedCredentialVariables, storeAgentCredential, isAgentName, credentialFromStdin } from './chunk-O7QTZ6FY.js';
7
+ import { hasStoredCredential, storedCredentialVariables, storeAgentCredential, isAgentName, credentialFromStdin } from './chunk-5DVAYNM5.js';
8
8
  import { upgradedStarterText } from './chunk-UU3A53VB.js';
9
9
  import { HELPER_PATH, HELPER_RECORD, DOCKERD_LOG } from './chunk-FVTNWJPF.js';
10
10
  import { writeDockerClientConfig } from './chunk-MDWAL6FD.js';
@@ -12,7 +12,7 @@ import { senderPidfile } from './chunk-PGF36SYX.js';
12
12
  import { installScrubContext } from './chunk-3DUYDFZS.js';
13
13
  import { readsJobState, READ_JOB_STATE_FORMATS, jobStateFormatOf } from './chunk-B4XB5QFD.js';
14
14
  import { runnerImageVersion } from './chunk-DIF5NMRF.js';
15
- import { claimCalls, spoolHomeFor, itemCalls, claimItem, leftByRunnerKey, configForJob } from './chunk-2VYD47YW.js';
15
+ import { claimCalls, spoolHomeFor, itemCalls, claimItem, leftByRunnerKey, configForJob } from './chunk-P27TZI3C.js';
16
16
  import { receiveFiles } from './chunk-NN33FYXG.js';
17
17
  import { readDefaultBranchFiles, readDefaultBranchHead, buildRepositoryImage, readRepositoryRecipe, fetchCommit, readBranchHead, diffBetween, prepareImageBuild, KEY_PREFIX, TAG_HOST, SHARED_OWNER, SHARED_NAME, universalBase, metadataFromLabels, writeRecord } from './chunk-BQUUKECC.js';
18
18
  import { FETCHED_DIR, toolsDockerfile, FETCHED_FFMPEG, FETCHED_GH, FETCHED_TINI, FETCHED_HEADLESS_SHELL, FETCHED_PLAYWRIGHT_FFMPEG, FETCHED_VOICE_DIR } from './chunk-5IDATPRL.js';
@@ -22,7 +22,7 @@ import { vmExecArgs, runExec, execCapture, waitForAgent } from './chunk-EHF2UWZC
22
22
  import { socketPathProblem, vsockLinks, linkVsockSockets, GUEST_CID, LEASE_LINK } from './chunk-2TOYDBQE.js';
23
23
  import { describeCallFailure, shortClaim, retrySend, commandWithShim, logStamp, createRunnerLog, formatDuration, removeKeptContext, formatClock, stageGovernedContext, keptContextTree, removeStagedContext, WORKFLOW_PERMISSION_REASON, refusalCode, SELF_GOVERNED, resolveGoverningSource, prefetchGovernedContext, controlPlaneTokenFailure, keepStagedContext, pinnedSourceOf, shimScript } from './chunk-D5RXED56.js';
24
24
  import { postJson, getJson, WorkCommandError, isSignatureRefusal } from './chunk-2EDRIMMQ.js';
25
- import { keyRunnerFactory, runnerCredentialProblem, builtinKind, readOnlyOption, optionalEgress, readsOnly, isBuiltinContainer, isBuiltinVm, isBuiltinSandbox, egressSummary, DEFAULT_WORKSPACE_KEEP_DAYS, readOnlyRemoteOf, DEFAULT_CHECK_TIME_LIMIT_MINUTES, DEFAULT_SETUP_MINUTES, allowHostProblem, systemClock, emptyEgressCounts, hostAllowed, sandboxTimeLimitMinutes, networkOf, imageBuildOf, machineSizeOf, sandboxSizeOf, DEFAULT_SAVED_STATE_MAX_BYTES } from './chunk-3DKYI6V7.js';
25
+ import { keyRunnerFactory, runnerCredentialProblem, builtinKind, readOnlyOption, optionalEgress, readsOnly, isBuiltinContainer, isBuiltinVm, isBuiltinSandbox, egressSummary, DEFAULT_WORKSPACE_KEEP_DAYS, readOnlyRemoteOf, DEFAULT_CHECK_TIME_LIMIT_MINUTES, DEFAULT_SETUP_MINUTES, allowHostProblem, systemClock, emptyEgressCounts, hostAllowed, sandboxTimeLimitMinutes, networkOf, imageBuildOf, machineSizeOf, sandboxSizeOf, DEFAULT_SAVED_STATE_MAX_BYTES } from './chunk-SGVQ25MY.js';
26
26
  import { formatBytes, volumeBytes, allocatedBytes, DEFAULT_BUILD_DISK, DEFAULT_CACHE_DISK, freeBytes } from './chunk-WTX57JCA.js';
27
27
  import { said, NETWORK_HELPER_MEMORY, firstLine, writeJobFile, readJobFile, spawnRun, RUNNER_LABEL, BUILD_LABEL, createDockerHost, builderSpec, childEnvironment, containerExecArgs, readDu, JUDGE_DIR, JUDGE_ITEMS, answerFileName, hashJudgeProgram, NETWORK_READY_FILE, MAX_ITEMS_BYTES, MAX_REPORT_BYTES, JUDGE_REPORT, withAnswerProtocol, JUDGE_TREE, runnerLabelValue, parseSize, readJobFileChecked, networkHelperName, prepareRunArgs, containerRunArgs, judgeCommand, WORKSPACE_LABEL, homeCopyRunArgs, networkHelperRunArgs, JUDGE_MAX_TURNS, identityScript, identityArgs, parseIdentity, mountableHome, homeCopyScript, homeCopyArgs, COMMAND_DIR, judgeProgramRecord, identityRunArgs, SAVED_STATE_LABEL } from './chunk-BKN5HQCX.js';
28
28
  import { universalImagePending, RecipeError, writeSanitizedRecipe, classifyProperties, DOCKER_FEATURE } from './chunk-47NQTKLX.js';
@@ -1,6 +1,6 @@
1
1
  #!/usr/bin/env node
2
2
  import { createRequire } from 'node:module';
3
- import { builtinKind, keepsHostBuilder } from './chunk-3DKYI6V7.js';
3
+ import { builtinKind, keepsHostBuilder } from './chunk-SGVQ25MY.js';
4
4
  import { parseSize } from './chunk-BKN5HQCX.js';
5
5
  import { runnerDir } from './chunk-AEGLAS4Y.js';
6
6
  import { FD_SLOTS_PER_BUILD, FD_STORE_ENV, BUILD_SLICE_MEMORY_ENV, credentialLineIn, withoutCredentialLines } from './chunk-5XEO7FJW.js';
@@ -2,7 +2,7 @@
2
2
  import { createRequire } from 'node:module';
3
3
  import { LAUNCH_AGENT_ENV } from './chunk-TXKHD4Q6.js';
4
4
  import { execStartArgv } from './chunk-F5DIRRMG.js';
5
- import { DEFAULT_UNIT_NAME } from './chunk-OFEHPNPJ.js';
5
+ import { DEFAULT_UNIT_NAME } from './chunk-GPROFAKS.js';
6
6
  import { runnerDir } from './chunk-AEGLAS4Y.js';
7
7
  import { join, dirname } from 'path';
8
8
 
@@ -1,6 +1,6 @@
1
1
  #!/usr/bin/env node
2
2
  import { createRequire } from 'node:module';
3
- import { keyRunnerFactory, RunnerConfigError } from './chunk-3DKYI6V7.js';
3
+ import { keyRunnerFactory, RunnerConfigError } from './chunk-SGVQ25MY.js';
4
4
  import { orgHomeDir } from './chunk-AEGLAS4Y.js';
5
5
 
6
6
  createRequire(import.meta.url);
@@ -2,28 +2,28 @@
2
2
  import { createRequire } from 'node:module';
3
3
  import { readHousekeepingRecord, writeHousekeepingRecord } from './chunk-7VW73CPS.js';
4
4
  import { fetchVersionMeta, npmVersion, npmSupportsProvenance, fetchTarballDigest, fetchProvenance, installVersion, auditSignatures } from './chunk-E7R2GIAW.js';
5
- import { reportFailedStart, fitImageBuildMemory } from './chunk-YB7QOJJ6.js';
6
- import { renderUpdateSteps } from './chunk-KDLZOXBP.js';
5
+ import { reportFailedStart, fitImageBuildMemory } from './chunk-S6EOMJPK.js';
6
+ import { renderUpdateSteps } from './chunk-2QG2WHQI.js';
7
7
  import { decideInstalledSwitch } from './chunk-TXKHD4Q6.js';
8
8
  import { writeFleetState } from './chunk-ALJMNIHW.js';
9
9
  import { writePendingUpdate } from './chunk-XYJHIH4N.js';
10
- import { fleetConfigProblem, realBlockedProbes, sliceMemoryOf, checkBlockedWithSlots, largeBuildMemoryBytes, LARGE_BUILD_DISK_BYTES, checkManagedRoom, askFleetMachine } from './chunk-MTZ43GKQ.js';
10
+ import { fleetConfigProblem, realBlockedProbes, sliceMemoryOf, checkBlockedWithSlots, largeBuildMemoryBytes, LARGE_BUILD_DISK_BYTES, checkManagedRoom, askFleetMachine } from './chunk-Z5PJYTDX.js';
11
11
  import { writeMarker, readMarker, currentVersion, removeMarker, isInLayout, startedThroughCurrent, entryIn, versionDir, switchCurrent, cleanVersions, stagingDir } from './chunk-F5DIRRMG.js';
12
- import { leaseTimeLeftMs, createContainerRuntime, withTunnelLog, itemTag, releaseLease, runDecision, claimRun, LEASE_SECONDS, isUnfinished, prepareResume, restoreSessionIntoMicroVm, restoreSessionIntoContainer, restoreSessionIntoSandbox, restoreWork, keptSessionDir, workRestoredEnv, sessionGuestOfMicroVm, sessionGuestOfContainer, sessionGuestOfSandbox, recordsProofsOnly, itemScope, attemptNote, fetchManagedClaudeKey, holdManagedClaudeKey, fetchManagedBuildSettings, holdManagedBuildSettings, setStage, jobEnv, runHook, describeHookEnd, needsBuildSkill, provisionContainer, leaseExpiresAtMs, withJobTimeLimit, deliverContainerHooks, provisionSandbox, deliverSandboxHooks, provisionMicroVm, deliverCommitHooks, provisionEnvironment, readProvisionOut, resolveHostBuild, workdirProblem, listenOnBroker, hostEnvironment, deliverExecMaven, runWithSpawn, hostCommandEnvironment, lifecycleSteps, execArgv, lifecycleFailureReason, decideHostBuildSkill, prepareBranch, keptCommitsLine, currentSkillCommand, formerSkillProblem, commandLogOffset, startSandboxCommand, MICROVM_COMMAND_DIR, startMicroVmCommand, microVmCommandLine, runCommand, containerCommandExec, execCommandLine, startSender, startHostServices, finishJob, sampleGuest, foldSample, isSandboxTracked, isContainerTracked, isMicroVmTracked, probeSandboxCommand, probeMicroVmCommand, probeCommand, appendCommandLog, judgeProbe, SandboxGoneError, SandboxContainerStoppedError, EXIT_CODE_FILE, isTracked, isGroupAlive, outcomeFromExitCode, isIsolatedJob, jobTimeLimitMinutes, isTimedOut, readCpuUsec, isIdle, HELPER_ENV, setUpRunnerCgroup, stopOrphanedMicroVms, unfinishedJobs, sweepImageBuilders, listUnreadableJobs, listAdoptableJobs, retryFailedReleases, recoverLostJobs, GUEST_USAGE_INTERVAL_MS, vmAlive, filesAreCopied, inSandbox, listItemDisks, usableCpus, hookLimitsFor, runCommandOf, AttemptLogBook, environmentFor, builtOf, judgeCredential, readWorkItem, makeRecorder, microVmOomKills, needsRenew, renewRun, renewLease, RENEW_INTERVAL_SECONDS, stoppedHelperReason, measureDisk, listTrackedJobs, sweepSandboxes, keptSandboxIds, parseCpuList, ensureTunnel, keepGhConfigCurrent, restartSender, rejoinSandboxBuild, createHousekeepingDocker, housekeepingDockerIfReachable, runHousekeeping, shellQuote, jobRecordsClaim, freeItemDisksUntil, savedStatesDir, readRecords, removeOldestUntil, treeFileText, timeoutAfter, scrubReason, ensureNetworkReady, ADOPTED_FETCH_RETRY_WINDOW_MS, managedBuildSettingsFor, gitRemoteFor, startServicesFor, installTrust, createLeaseChannel, serveLease, writeGuestGhConfig, deliverJobFiles, inTeardown } from './chunk-Y25XOGFX.js';
12
+ import { leaseTimeLeftMs, createContainerRuntime, withTunnelLog, itemTag, releaseLease, runDecision, claimRun, LEASE_SECONDS, isUnfinished, prepareResume, restoreSessionIntoMicroVm, restoreSessionIntoContainer, restoreSessionIntoSandbox, restoreWork, keptSessionDir, workRestoredEnv, sessionGuestOfMicroVm, sessionGuestOfContainer, sessionGuestOfSandbox, recordsProofsOnly, itemScope, attemptNote, fetchManagedClaudeKey, holdManagedClaudeKey, fetchManagedBuildSettings, holdManagedBuildSettings, setStage, jobEnv, runHook, describeHookEnd, needsBuildSkill, provisionContainer, leaseExpiresAtMs, withJobTimeLimit, deliverContainerHooks, provisionSandbox, deliverSandboxHooks, provisionMicroVm, deliverCommitHooks, provisionEnvironment, readProvisionOut, resolveHostBuild, workdirProblem, listenOnBroker, hostEnvironment, deliverExecMaven, runWithSpawn, hostCommandEnvironment, lifecycleSteps, execArgv, lifecycleFailureReason, decideHostBuildSkill, prepareBranch, keptCommitsLine, currentSkillCommand, formerSkillProblem, commandLogOffset, startSandboxCommand, MICROVM_COMMAND_DIR, startMicroVmCommand, microVmCommandLine, runCommand, containerCommandExec, execCommandLine, startSender, startHostServices, finishJob, sampleGuest, foldSample, isSandboxTracked, isContainerTracked, isMicroVmTracked, probeSandboxCommand, probeMicroVmCommand, probeCommand, appendCommandLog, judgeProbe, SandboxGoneError, SandboxContainerStoppedError, EXIT_CODE_FILE, isTracked, isGroupAlive, outcomeFromExitCode, isIsolatedJob, jobTimeLimitMinutes, isTimedOut, readCpuUsec, isIdle, HELPER_ENV, setUpRunnerCgroup, stopOrphanedMicroVms, unfinishedJobs, sweepImageBuilders, listUnreadableJobs, listAdoptableJobs, retryFailedReleases, recoverLostJobs, GUEST_USAGE_INTERVAL_MS, vmAlive, filesAreCopied, inSandbox, listItemDisks, usableCpus, hookLimitsFor, runCommandOf, AttemptLogBook, environmentFor, builtOf, judgeCredential, readWorkItem, makeRecorder, microVmOomKills, needsRenew, renewRun, renewLease, RENEW_INTERVAL_SECONDS, stoppedHelperReason, measureDisk, listTrackedJobs, sweepSandboxes, keptSandboxIds, parseCpuList, ensureTunnel, keepGhConfigCurrent, restartSender, rejoinSandboxBuild, createHousekeepingDocker, housekeepingDockerIfReachable, runHousekeeping, shellQuote, jobRecordsClaim, freeItemDisksUntil, savedStatesDir, readRecords, removeOldestUntil, treeFileText, timeoutAfter, scrubReason, ensureNetworkReady, ADOPTED_FETCH_RETRY_WINDOW_MS, managedBuildSettingsFor, gitRemoteFor, startServicesFor, installTrust, createLeaseChannel, serveLease, writeGuestGhConfig, deliverJobFiles, inTeardown } from './chunk-EZHWM7GN.js';
13
13
  import { RUNNER_PROTOCOL } from './chunk-PM3PXJGE.js';
14
14
  import { criteriaOf, loadCitationFinder, wholeItems, itemsSentence, oneLineReason, wholeEntries, parseJudgeAnswer } from './chunk-46D7LPS3.js';
15
- import { RUNNER_RESERVE_BYTES } from './chunk-OFEHPNPJ.js';
15
+ import { RUNNER_RESERVE_BYTES } from './chunk-GPROFAKS.js';
16
16
  import { RepoFilter } from './chunk-3DUYDFZS.js';
17
17
  import { JOB_STATE_FORMAT, readsJobState, jobStateFormatOf } from './chunk-B4XB5QFD.js';
18
18
  import { imageTag, writeUpdateStatus, pullInstruction, tagToPull } from './chunk-DIF5NMRF.js';
19
19
  import { isVersion, compareVersions, satisfiesRange } from './chunk-TQMI335S.js';
20
- import { claimCalls, claimItem, spoolHomeFor, leftByRunnerKey, runnerCalls, itemCalls, configForJob } from './chunk-2VYD47YW.js';
20
+ import { claimCalls, claimItem, spoolHomeFor, leftByRunnerKey, runnerCalls, itemCalls, configForJob } from './chunk-P27TZI3C.js';
21
21
  import { fetchCommit, readBranchHead, diffBetween } from './chunk-BQUUKECC.js';
22
22
  import { claimPidFile, releasePidFile, writePidFile, readPidFile } from './chunk-C2ZGJRMQ.js';
23
23
  import { startTimeOf, isSameProcess } from './chunk-JBJTC3UU.js';
24
24
  import { describeCallFailure, retrySend, shortClaim, relativeToRunner, formatDuration, resolveGoverningSource, BuildTokens, classifyRefusal, refusalCode, createRunnerLog, formatClock } from './chunk-D5RXED56.js';
25
25
  import { WorkCommandError, isSignatureRefusal, getJson, postJson, getBytes } from './chunk-2EDRIMMQ.js';
26
- import { keyRunnerFactory, readsOnly, isBuiltinSandbox, isBuiltinContainer, isBuiltinVm, loadRunnerConfig, checkHooks, builtinKind, keepsHostBuilder, runnerDeliversComments, DEFAULT_CHECK_TIME_LIMIT_MINUTES, readOnlyRemoteOf, DEFAULT_SAVED_STATE_MAX_BYTES, DEFAULT_UPDATE_MAX_WAIT_HOURS, readOnlyOption } from './chunk-3DKYI6V7.js';
26
+ import { keyRunnerFactory, readsOnly, isBuiltinSandbox, isBuiltinContainer, isBuiltinVm, loadRunnerConfig, checkHooks, builtinKind, keepsHostBuilder, runnerDeliversComments, DEFAULT_CHECK_TIME_LIMIT_MINUTES, readOnlyRemoteOf, DEFAULT_SAVED_STATE_MAX_BYTES, DEFAULT_UPDATE_MAX_WAIT_HOURS, readOnlyOption } from './chunk-SGVQ25MY.js';
27
27
  import { allocatedBytes, freeBytes, formatBytes } from './chunk-WTX57JCA.js';
28
28
  import { writeJobFile, ensureRunnerIdentity, identityDockerFor, readJobFile, JUDGE_TREE, exceedsDisk, runnerLabelValue, builderName, ensureFailureCount, builderSpec, ensureBuilder, spawnRun, judgeCommand, JUDGE_DIR, JUDGE_MAX_TURNS } from './chunk-BKN5HQCX.js';
29
29
  import { loadHostKey, ensureHostKey, signerFor } from './chunk-AFSJ4GHZ.js';
@@ -4865,7 +4865,7 @@ async function startRunner(configPath, deps, startup) {
4865
4865
  check: update.check ? () => update.check(configPath) : async () => {
4866
4866
  const held = runnerAgents(deps.agents).flatMap((agent) => heldAgentCredential(agent.descriptor.id) ?? []);
4867
4867
  const env = { ...process.env, ...Object.fromEntries(held.map((credential) => [credential.variable, credential.value])) };
4868
- return (await import('./check-XF4J5PFS.js')).runRunnerCheck(configPath, { fetchImpl: deps.fetchImpl, env });
4868
+ return (await import('./check-XAP6HCDV.js')).runRunnerCheck(configPath, { fetchImpl: deps.fetchImpl, env });
4869
4869
  },
4870
4870
  now: () => (deps.now ?? (() => /* @__PURE__ */ new Date()))().getTime(),
4871
4871
  log
@@ -1,11 +1,11 @@
1
1
  #!/usr/bin/env node
2
2
  import { createRequire } from 'node:module';
3
- import { scrubReason, stripTerminalControls } from './chunk-Y25XOGFX.js';
4
- import { checkFit, RUNNER_RESERVE_BYTES } from './chunk-OFEHPNPJ.js';
3
+ import { scrubReason, stripTerminalControls } from './chunk-EZHWM7GN.js';
4
+ import { checkFit, RUNNER_RESERVE_BYTES } from './chunk-GPROFAKS.js';
5
5
  import { RunnerAlreadyRunningError, readPidFile } from './chunk-C2ZGJRMQ.js';
6
6
  import { isSameProcess } from './chunk-JBJTC3UU.js';
7
7
  import { isSignatureRefusal, postJson } from './chunk-2EDRIMMQ.js';
8
- import { keyRunnerFactory } from './chunk-3DKYI6V7.js';
8
+ import { keyRunnerFactory } from './chunk-SGVQ25MY.js';
9
9
  import { signerFor } from './chunk-AFSJ4GHZ.js';
10
10
  import { pidFilePath } from './chunk-AEGLAS4Y.js';
11
11
  import { readFileSync } from 'fs';
@@ -127,20 +127,19 @@ function sandboxTimeLimitMinutes(runnerLimitMinutes) {
127
127
  return Math.min(MAX_TIME_LIMIT_MINUTES, runnerLimitMinutes + TIME_LIMIT_MARGIN_MINUTES);
128
128
  }
129
129
  function resolveSandbox(block, build, report) {
130
- if (block === void 0) return report("runner.sandbox", "is required with the hooks builtin:sandbox: name the snapshot to start sandboxes from");
131
- if (typeof block !== "object" || block === null || Array.isArray(block)) return report("runner.sandbox", "must be an object");
132
- const given = block;
130
+ if (block !== void 0 && (typeof block !== "object" || block === null || Array.isArray(block))) return report("runner.sandbox", "must be an object");
131
+ const given = block ?? {};
133
132
  for (const key of Object.keys(given)) {
134
133
  if (!KEYS.includes(key)) return report(`runner.sandbox.${key}`, `is not a setting; the ones that exist are ${KEYS.join(", ")}`);
135
134
  }
136
135
  const provider = given["provider"];
137
136
  if (provider !== void 0 && provider !== "outerlayer") return report("runner.sandbox.provider", 'must be "outerlayer"');
138
- const managed = provider === "outerlayer";
137
+ const managed = provider === "outerlayer" || given["snapshot"] === void 0;
139
138
  if (managed) {
140
139
  if (given["snapshot"] !== void 0) return report("runner.sandbox.snapshot", "is not set with runner.sandbox.provider: OuterLayer chooses the snapshot");
141
- if (given["allowHosts"] !== void 0) return report("runner.sandbox.allowHosts", "is not set with runner.sandbox.provider: a sandbox that OuterLayer provides reaches the network only through the runner");
140
+ if (given["allowHosts"] !== void 0) return report("runner.sandbox.allowHosts", "is not set for a sandbox that OuterLayer provides, which reaches the network only through the runner");
142
141
  } else if (given["machine"] !== void 0) {
143
- return report("runner.sandbox.machine", 'is used only with runner.sandbox.provider: "outerlayer". The size of any other sandbox comes from runner.build');
142
+ return report("runner.sandbox.machine", "is used only for a sandbox that OuterLayer provides. The size of any other sandbox comes from runner.build");
144
143
  }
145
144
  const machine = given["machine"] ?? "small";
146
145
  if (machine !== "small" && machine !== "large") return report("runner.sandbox.machine", 'must be "small" or "large"');
@@ -1,6 +1,6 @@
1
1
  #!/usr/bin/env node
2
2
  import { createRequire } from 'node:module';
3
- import { summarizeChecks, summaryText, renderDoctorText } from './chunk-JKOSEEDV.js';
3
+ import { summarizeChecks, summaryText, renderDoctorText } from './chunk-7CBNPW6A.js';
4
4
  import { shellFunctionInstalled, removeShellFunction, installShellFunction, SHELL_FUNCTION_LINE } from './chunk-4KCWAP5L.js';
5
5
  import { runConnect, hasUncommittedPolicy, commitCommandsFor } from './chunk-7DM2GBSI.js';
6
6
  import { C } from './chunk-2AM6Z5BP.js';
@@ -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-IHDOXH4L.js');
132
+ const { testProofIn } = await import('./host-checks-RYP4O2UZ.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-IHDOXH4L.js');
139
+ const { checksIn, isJudgeCheck } = await import('./host-checks-RYP4O2UZ.js');
140
140
  const quiet = { line: () => void 0, error: () => void 0 };
141
141
  const check = checksIn(dir, quiet, "").checks.find((c) => isJudgeCheck(c) && c.judge.subjects === "criteria");
142
142
  return check === void 0 ? {} : { name: check.name };
@@ -372,7 +372,7 @@ async function runWorkProofs(opts) {
372
372
  async function runWorkProofsCommand(opts) {
373
373
  try {
374
374
  if (opts.record || opts.check) {
375
- const { runWorkProofsRecord } = await import('./work-proofs-record-LN42LPZM.js');
375
+ const { runWorkProofsRecord } = await import('./work-proofs-record-VLDSZSAT.js');
376
376
  const result2 = await runWorkProofsRecord(opts);
377
377
  process.exitCode = result2.exitCode;
378
378
  return;
@@ -1,9 +1,9 @@
1
1
  #!/usr/bin/env node
2
2
  import { createRequire } from 'node:module';
3
- import { placeholderQueues, placeholderProblem } from './chunk-Y25XOGFX.js';
4
- import { checkFit, RUNNER_RESERVE_BYTES } from './chunk-OFEHPNPJ.js';
3
+ import { placeholderQueues, placeholderProblem } from './chunk-EZHWM7GN.js';
4
+ import { checkFit, RUNNER_RESERVE_BYTES } from './chunk-GPROFAKS.js';
5
5
  import { getJson, WorkCommandError } from './chunk-2EDRIMMQ.js';
6
- import { isBuiltinVm, isBuiltinSandbox, builtinKind, EGRESS_SWITCHABLE_KEYS, imageBuildOf, keepsHostBuilder } from './chunk-3DKYI6V7.js';
6
+ import { isBuiltinVm, isBuiltinSandbox, builtinKind, EGRESS_SWITCHABLE_KEYS, imageBuildOf, keepsHostBuilder } from './chunk-SGVQ25MY.js';
7
7
  import { realBuildDiskProbe, checkDiskFit, DEFAULT_CACHE_DISK, DEFAULT_BUILD_DISK } from './chunk-WTX57JCA.js';
8
8
  import { ensureHostKey } from './chunk-AFSJ4GHZ.js';
9
9
  import { sandboxSettingsFrom } from './chunk-UTZWCNFV.js';