@outerlayer/cli 0.38.0-next.20261112031950 → 0.38.0-next.20261112060830

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 (48) hide show
  1. package/README.md +3 -1
  2. package/dist/{build-FNUOBMFG.js → build-F6G4J2FW.js} +2 -2
  3. package/dist/{build-disk-4PCVGMAT.js → build-disk-AC32UE6Q.js} +2 -2
  4. package/dist/build-info.json +1 -1
  5. package/dist/{builder-JG2DHKSN.js → builder-BXWJDPFD.js} +1 -1
  6. package/dist/{caller-A2K7SLSL.js → caller-2CWKZUMK.js} +4 -4
  7. package/dist/{check-QKTZCHTH.js → check-Y37I4WJY.js} +13 -13
  8. package/dist/{chunk-BHVOEE6K.js → chunk-4QBKDMMR.js} +2 -2
  9. package/dist/{chunk-A4NWDCWS.js → chunk-4VJAUAUZ.js} +1 -1
  10. package/dist/{chunk-WG5OBUIZ.js → chunk-5BNJCTX3.js} +2 -2
  11. package/dist/{chunk-EUHUIIGT.js → chunk-AE5RNDFC.js} +2 -2
  12. package/dist/{chunk-HPZWRS7Y.js → chunk-AY37L45W.js} +3 -3
  13. package/dist/{chunk-5AVYYNGU.js → chunk-C4ODIVBE.js} +1 -1
  14. package/dist/{chunk-PSV7IEH7.js → chunk-D2HVKCAP.js} +54 -41
  15. package/dist/{chunk-KLB7FZHW.js → chunk-E3AFLETW.js} +4 -4
  16. package/dist/{chunk-5UVZANCN.js → chunk-FOXLLZL2.js} +3 -3
  17. package/dist/{chunk-OAPWDSBW.js → chunk-K4BL5PKW.js} +1 -1
  18. package/dist/{chunk-ZJCE7JLT.js → chunk-NWFGPL72.js} +8 -7
  19. package/dist/{chunk-ERG3WCEC.js → chunk-QZSYYHWU.js} +2 -0
  20. package/dist/{chunk-FKHOZQGJ.js → chunk-SUQYLS7Z.js} +2 -2
  21. package/dist/{chunk-E6XXWCOV.js → chunk-TE6II3DH.js} +190 -84
  22. package/dist/{chunk-RCK2MJRG.js → chunk-WNKNY3ON.js} +1 -1
  23. package/dist/{chunk-3C23ZPWR.js → chunk-XWPDXQYX.js} +1 -1
  24. package/dist/{cli-DSX6UY26.js → cli-6YLSLHV5.js} +59 -52
  25. package/dist/{command-UDRCQY6T.js → command-COOL6ZO7.js} +9 -9
  26. package/dist/{config-5KMNGNK5.js → config-BVXXJ42A.js} +3 -3
  27. package/dist/{container-start-LRXMZ7Q2.js → container-start-45KGI3FK.js} +10 -10
  28. package/dist/{docker-T7A6GZDD.js → docker-AN3FVXDR.js} +1 -1
  29. package/dist/{doctor-BO57MWS3.js → doctor-ZJBJNHGD.js} +10 -10
  30. package/dist/{find-unit-3QYPTK6A.js → find-unit-Q4PYWSZK.js} +5 -5
  31. package/dist/{host-checks-IHBEPDZD.js → host-checks-GH3ZZU25.js} +8 -8
  32. package/dist/index.js +1 -1
  33. package/dist/{init-FARHFILK.js → init-FL7HNYBZ.js} +8 -8
  34. package/dist/{init-P4YCFNYS.js → init-RWEVJLEY.js} +8 -8
  35. package/dist/{init-agent-5AX7Z5HT.js → init-agent-453OBSZF.js} +8 -8
  36. package/dist/{init-cmd-PQNHAYTZ.js → init-cmd-7KXNQUBQ.js} +1 -1
  37. package/dist/{loop-TXSXFPOL.js → loop-OFKJO3OD.js} +12 -12
  38. package/dist/{machine-2BVZ7ODY.js → machine-BUYUGQZV.js} +8 -8
  39. package/dist/{relay-V7LX2WR6.js → relay-EWL5ENEI.js} +19 -4
  40. package/dist/{runner-env-3QPJQ2H2.js → runner-env-D5KKKJTW.js} +5 -5
  41. package/dist/{runner-identity-GTWFQEIN.js → runner-identity-5WSI6HPW.js} +1 -1
  42. package/dist/{runner-key-HIU5DEO3.js → runner-key-M5L3Q7AF.js} +8 -8
  43. package/dist/{status-6KEIF6SP.js → status-7EUPBDYS.js} +8 -8
  44. package/dist/{update-steps-Q44PC2KG.js → update-steps-MMOH7GAJ.js} +9 -9
  45. package/dist/{work-claim-cmd-QDNRGX2N.js → work-claim-cmd-RDRFNBL3.js} +3 -3
  46. package/dist/{work-proofs-cmd-GQM2NMNM.js → work-proofs-cmd-CD5YQDSS.js} +1 -1
  47. package/dist/{work-proofs-record-FFUD3Q36.js → work-proofs-record-PR3UHFMU.js} +1 -1
  48. package/package.json +1 -1
package/README.md CHANGED
@@ -365,7 +365,9 @@ content:
365
365
  host accepts no inbound connection and the sandbox needs no route to it. The
366
366
  first message of that WebSocket holds a join secret the runner made for the
367
367
  build, and the relay in the sandbox closes a connection that does not send
368
- it. The sandbox reaches only the hosts in `runner.sandbox.allowHosts`. No
368
+ it. When the sandbox's kernel gives a TUN device, the runner also sends the
369
+ guest helper it pins to the sandbox, and the build's container joins the
370
+ network of a helper container there. The sandbox reaches only the hosts in `runner.sandbox.allowHosts`. No
369
371
  model credential, item key or push token enters the sandbox: the runner adds
370
372
  each one to a request that leaves through its tunnel.
371
373
  When a build of a work item ends, the runner removes the build's container
@@ -1,10 +1,10 @@
1
1
  #!/usr/bin/env node
2
2
  import { createRequire } from 'node:module';
3
- export { KEY_PREFIX, SHARED_NAME, SHARED_OWNER, SHARED_REPOSITORY, TAG_HOST, UNIVERSAL_SOURCE_LABEL, baseLines, buildRepositoryImage, metadataFromLabels, prepareImageBuild, readRepositoryRecipe, universalBase, writeRecord } from './chunk-5AVYYNGU.js';
3
+ export { KEY_PREFIX, SHARED_NAME, SHARED_OWNER, SHARED_REPOSITORY, TAG_HOST, UNIVERSAL_SOURCE_LABEL, baseLines, buildRepositoryImage, metadataFromLabels, prepareImageBuild, readRepositoryRecipe, universalBase, writeRecord } from './chunk-C4ODIVBE.js';
4
4
  import './chunk-NO4N4D32.js';
5
5
  import './chunk-NDQC2WUJ.js';
6
6
  import './chunk-JBJTC3UU.js';
7
- import './chunk-ERG3WCEC.js';
7
+ import './chunk-QZSYYHWU.js';
8
8
  export { RecipeError } from './chunk-FUZEOWF4.js';
9
9
  import './chunk-I5U6CFH4.js';
10
10
  import './chunk-JIANCWJ3.js';
@@ -1,7 +1,7 @@
1
1
  #!/usr/bin/env node
2
2
  import { createRequire } from 'node:module';
3
- export { DEFAULT_BUILD_DISK, DEFAULT_CACHE_DISK, DOCKER_CACHE_MS, allocatedBytes, checkDiskFit, realBuildDiskProbe, runDocker, volumeBytes } from './chunk-3C23ZPWR.js';
4
- import './chunk-ERG3WCEC.js';
3
+ export { DEFAULT_BUILD_DISK, DEFAULT_CACHE_DISK, DOCKER_CACHE_MS, allocatedBytes, checkDiskFit, realBuildDiskProbe, runDocker, volumeBytes } from './chunk-XWPDXQYX.js';
4
+ import './chunk-QZSYYHWU.js';
5
5
  import './chunk-FUZEOWF4.js';
6
6
  import './chunk-I5U6CFH4.js';
7
7
  import './chunk-JIANCWJ3.js';
@@ -1 +1 @@
1
- {"id":"2026-11-12T03:26:29.096Z","root":"/home/runner/work/outerlayer/outerlayer","pkg":"outerlayer"}
1
+ {"id":"2026-11-12T06:16:09.117Z","root":"/home/runner/work/outerlayer/outerlayer","pkg":"outerlayer"}
@@ -1,6 +1,6 @@
1
1
  #!/usr/bin/env node
2
2
  import { createRequire } from 'node:module';
3
- export { MIN_BUILDX_VERSION, builderName, builderSpec, buildxState, ensureBuilder, ensureFailureCount, isOutOfDisk, isOutOfMemory, proxyEnvironment, trackImageBuild } from './chunk-ERG3WCEC.js';
3
+ export { MIN_BUILDX_VERSION, builderName, builderSpec, buildxState, ensureBuilder, ensureFailureCount, isOutOfDisk, isOutOfMemory, proxyEnvironment, trackImageBuild } from './chunk-QZSYYHWU.js';
4
4
  import './chunk-FUZEOWF4.js';
5
5
  import './chunk-I5U6CFH4.js';
6
6
  import './chunk-JIANCWJ3.js';
@@ -1,9 +1,9 @@
1
1
  #!/usr/bin/env node
2
2
  import { createRequire } from 'node:module';
3
- export { claimCalls, claimItem, configForJob, itemCalls, leftByRunnerKey, runnerCalls, spoolHomeFor } from './chunk-RCK2MJRG.js';
4
- import './chunk-EUHUIIGT.js';
5
- import './chunk-3C23ZPWR.js';
6
- import './chunk-ERG3WCEC.js';
3
+ export { claimCalls, claimItem, configForJob, itemCalls, leftByRunnerKey, runnerCalls, spoolHomeFor } from './chunk-WNKNY3ON.js';
4
+ import './chunk-AE5RNDFC.js';
5
+ import './chunk-XWPDXQYX.js';
6
+ import './chunk-QZSYYHWU.js';
7
7
  import './chunk-FUZEOWF4.js';
8
8
  import './chunk-I5U6CFH4.js';
9
9
  import './chunk-JIANCWJ3.js';
@@ -1,23 +1,23 @@
1
1
  #!/usr/bin/env node
2
2
  import { createRequire } from 'node:module';
3
- import { probeCredentials } from './chunk-PSV7IEH7.js';
3
+ import { probeCredentials } from './chunk-D2HVKCAP.js';
4
4
  import './chunk-3JVYMD4G.js';
5
- import './chunk-HPZWRS7Y.js';
5
+ import './chunk-AY37L45W.js';
6
6
  import './chunk-E7R2GIAW.js';
7
7
  import './chunk-6X2BSMRM.js';
8
8
  import './chunk-WFYKTAXZ.js';
9
- import './chunk-FKHOZQGJ.js';
9
+ import './chunk-SUQYLS7Z.js';
10
10
  import './chunk-2UCTMANO.js';
11
- import { fleetConfigProblem, managedProblems, managedFactsOf, askFleetMachine } from './chunk-ZJCE7JLT.js';
11
+ import { fleetConfigProblem, managedProblems, managedFactsOf, askFleetMachine } from './chunk-NWFGPL72.js';
12
12
  import './chunk-POBH5YCG.js';
13
- import { findServiceUnit } from './chunk-OAPWDSBW.js';
14
- import { placeholderQueues, placeholderProblem, permissionModeProblems, permissionModeProblem, HELPER_ENV, helperSocketPath, probeHelper, needsAgentCredential, agentCredentialCheck, claimPermissionProblem, formerSkillQueues, modellessQueues, formerSkillProblem, modellessProblem } from './chunk-E6XXWCOV.js';
13
+ import { findServiceUnit } from './chunk-K4BL5PKW.js';
14
+ import { placeholderQueues, placeholderProblem, permissionModeProblems, permissionModeProblem, HELPER_ENV, helperSocketPath, probeHelper, needsAgentCredential, agentCredentialCheck, claimPermissionProblem, formerSkillQueues, modellessQueues, formerSkillProblem, modellessProblem } from './chunk-TE6II3DH.js';
15
15
  import './chunk-722KABMV.js';
16
16
  import './chunk-KVWFAAAQ.js';
17
17
  import './chunk-2PGI6RDE.js';
18
18
  import './chunk-I3LTIAOR.js';
19
- import './chunk-A4NWDCWS.js';
20
- import './chunk-WG5OBUIZ.js';
19
+ import './chunk-4VJAUAUZ.js';
20
+ import './chunk-5BNJCTX3.js';
21
21
  import './chunk-4T2NBVC4.js';
22
22
  import './chunk-DZFIRKDZ.js';
23
23
  import './chunk-N6BNN6ZD.js';
@@ -28,9 +28,9 @@ import './chunk-C2PZOLN7.js';
28
28
  import './chunk-ZVB57WI6.js';
29
29
  import './chunk-UXARYJQ4.js';
30
30
  import './chunk-TQMI335S.js';
31
- import './chunk-RCK2MJRG.js';
31
+ import './chunk-WNKNY3ON.js';
32
32
  import './chunk-NN33FYXG.js';
33
- import './chunk-5AVYYNGU.js';
33
+ import './chunk-C4ODIVBE.js';
34
34
  import './chunk-NO4N4D32.js';
35
35
  import './chunk-NDQC2WUJ.js';
36
36
  import './chunk-JBJTC3UU.js';
@@ -41,9 +41,9 @@ import './chunk-SFN7K33S.js';
41
41
  import './chunk-DNXYI22V.js';
42
42
  import './chunk-2VJVPP5Y.js';
43
43
  import './chunk-5UFAWMET.js';
44
- import { loadRunnerConfig, RunnerConfigError, checkHooks, keyRunnerFactory } from './chunk-EUHUIIGT.js';
45
- import './chunk-3C23ZPWR.js';
46
- import './chunk-ERG3WCEC.js';
44
+ import { loadRunnerConfig, RunnerConfigError, checkHooks, keyRunnerFactory } from './chunk-AE5RNDFC.js';
45
+ import './chunk-XWPDXQYX.js';
46
+ import './chunk-QZSYYHWU.js';
47
47
  import './chunk-FUZEOWF4.js';
48
48
  import './chunk-SLORYOL4.js';
49
49
  import './chunk-KZU5WQK5.js';
@@ -1,7 +1,7 @@
1
1
  #!/usr/bin/env node
2
2
  import { createRequire } from 'node:module';
3
- import { helperSocketPath } from './chunk-E6XXWCOV.js';
4
- import { UNIT_MARKER } from './chunk-WG5OBUIZ.js';
3
+ import { helperSocketPath } from './chunk-TE6II3DH.js';
4
+ import { UNIT_MARKER } from './chunk-5BNJCTX3.js';
5
5
  import { runnerDir } from './chunk-JIANCWJ3.js';
6
6
  import { createHash } from 'crypto';
7
7
  import { join } from 'path';
@@ -1,6 +1,6 @@
1
1
  #!/usr/bin/env node
2
2
  import { createRequire } from 'node:module';
3
- import { DEFAULT_UNIT_NAME } from './chunk-WG5OBUIZ.js';
3
+ import { DEFAULT_UNIT_NAME } from './chunk-5BNJCTX3.js';
4
4
  import { RUNNER_FILE_MODE } from './chunk-JIANCWJ3.js';
5
5
  import { parseRunnerEnv, withoutCredentialLines } from './chunk-EJ7ZXBXS.js';
6
6
  import { headlessNames, runnerAgentNamed, credentialAgent, orList, credentialShapes, runnerAgents, credentialForms, credentialEnvPath, forwardedVariables } from './chunk-J6KKJGR7.js';
@@ -1,7 +1,7 @@
1
1
  #!/usr/bin/env node
2
2
  import { createRequire } from 'node:module';
3
- import { builtinKind, keepsHostBuilder } from './chunk-EUHUIIGT.js';
4
- import { parseSize } from './chunk-ERG3WCEC.js';
3
+ import { builtinKind, keepsHostBuilder } from './chunk-AE5RNDFC.js';
4
+ import { parseSize } from './chunk-QZSYYHWU.js';
5
5
  import { runnerDir } from './chunk-JIANCWJ3.js';
6
6
  import { FD_SLOTS_PER_BUILD, FD_STORE_ENV, BUILD_SLICE_MEMORY_ENV, credentialLineIn, withoutCredentialLines } from './chunk-EJ7ZXBXS.js';
7
7
  import { credentialAgent, credentialNames, credentialForms } from './chunk-J6KKJGR7.js';
@@ -1,7 +1,7 @@
1
1
  #!/usr/bin/env node
2
2
  import { createRequire } from 'node:module';
3
- import { DEFAULT_CACHE_DISK, DEFAULT_BUILD_DISK } from './chunk-3C23ZPWR.js';
4
- import { parseSize } from './chunk-ERG3WCEC.js';
3
+ import { DEFAULT_CACHE_DISK, DEFAULT_BUILD_DISK } from './chunk-XWPDXQYX.js';
4
+ import { parseSize } from './chunk-QZSYYHWU.js';
5
5
  import { isRefusedInConfig, resolveDestinations, isReservedVariable } from './chunk-4FHDVWKO.js';
6
6
  import { builderDiskPinned } from './chunk-J6KKJGR7.js';
7
7
  import { homeFromEnv } from './chunk-352DHUTP.js';
@@ -1,11 +1,11 @@
1
1
  #!/usr/bin/env node
2
2
  import { createRequire } from 'node:module';
3
- import { scrubReason, stripTerminalControls } from './chunk-E6XXWCOV.js';
4
- import { checkFit, RUNNER_RESERVE_BYTES } from './chunk-WG5OBUIZ.js';
3
+ import { scrubReason, stripTerminalControls } from './chunk-TE6II3DH.js';
4
+ import { checkFit, RUNNER_RESERVE_BYTES } from './chunk-5BNJCTX3.js';
5
5
  import { RunnerAlreadyRunningError, readPidFile } from './chunk-NDQC2WUJ.js';
6
6
  import { isSameProcess } from './chunk-JBJTC3UU.js';
7
7
  import { isSignatureRefusal, postJson } from './chunk-DNXYI22V.js';
8
- import { keyRunnerFactory } from './chunk-EUHUIIGT.js';
8
+ import { keyRunnerFactory } from './chunk-AE5RNDFC.js';
9
9
  import { signerFor } from './chunk-I5U6CFH4.js';
10
10
  import { pidFilePath } from './chunk-JIANCWJ3.js';
11
11
  import { readFileSync } from 'fs';
@@ -3,7 +3,7 @@ import { createRequire } from 'node:module';
3
3
  import { toolsDockerfile } from './chunk-NO4N4D32.js';
4
4
  import { claimPidFile, RunnerAlreadyRunningError, releasePidFile } from './chunk-NDQC2WUJ.js';
5
5
  import { startTimeOf } from './chunk-JBJTC3UU.js';
6
- import { runnerLabelValue } from './chunk-ERG3WCEC.js';
6
+ import { runnerLabelValue } from './chunk-QZSYYHWU.js';
7
7
  import { RecipeError, locateRecipe, readRecipe, assertBuildable, writeSanitizedRecipe, classifyProperties, SANITIZED_NAME } from './chunk-FUZEOWF4.js';
8
8
  import { RUNNER_DIR_MODE, RUNNER_FILE_MODE, repoCacheDir, imagesDir, imageBuildLogsDir, attemptStamp, orgStore, rootfsPathFor } from './chunk-JIANCWJ3.js';
9
9
  import { withGitConfig, tokenHeader } from './chunk-4FHDVWKO.js';
@@ -1,29 +1,29 @@
1
1
  #!/usr/bin/env node
2
2
  import { createRequire } from 'node:module';
3
3
  import { decideInstalledSwitch } from './chunk-3JVYMD4G.js';
4
- import { reportFailedStart, fitImageBuildMemory } from './chunk-HPZWRS7Y.js';
4
+ import { reportFailedStart, fitImageBuildMemory } from './chunk-AY37L45W.js';
5
5
  import { fetchVersionMeta, npmVersion, npmSupportsProvenance, fetchTarballDigest, fetchProvenance, installVersion, auditSignatures } from './chunk-E7R2GIAW.js';
6
6
  import { writeFleetState } from './chunk-6X2BSMRM.js';
7
7
  import { writePendingUpdate } from './chunk-WFYKTAXZ.js';
8
- import { renderUpdateSteps } from './chunk-FKHOZQGJ.js';
8
+ import { renderUpdateSteps } from './chunk-SUQYLS7Z.js';
9
9
  import { readHousekeepingRecord, writeHousekeepingRecord } from './chunk-2UCTMANO.js';
10
- import { fleetConfigProblem, realBlockedProbes, sliceMemoryOf, checkBlockedWithSlots, largeBuildMemoryBytes, LARGE_BUILD_DISK_BYTES, checkManagedRoom, askFleetMachine } from './chunk-ZJCE7JLT.js';
10
+ import { fleetConfigProblem, realBlockedProbes, sliceMemoryOf, checkBlockedWithSlots, largeBuildMemoryBytes, LARGE_BUILD_DISK_BYTES, checkManagedRoom, askFleetMachine } from './chunk-NWFGPL72.js';
11
11
  import { writeMarker, readMarker, currentVersion, removeMarker, isInLayout, startedThroughCurrent, entryIn, versionDir, switchCurrent, cleanVersions, stagingDir } from './chunk-POBH5YCG.js';
12
- import { leaseTimeLeftMs, createContainerRuntime, withTunnelLog, itemTag, releaseLease, runIsolation, runCommandOf, claimRun, LEASE_SECONDS, isUnfinished, prepareResume, restoreSessionIntoMicroVm, restoreSessionIntoContainer, restoreSessionIntoSandbox, recordsProofsOnly, itemScope, attemptNote, fetchManagedClaudeKey, holdManagedClaudeKey, fetchManagedBuildSettings, holdManagedBuildSettings, setStage, jobEnv, runHook, describeHookEnd, needsBuildSkill, provisionContainer, leaseExpiresAtMs, 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, EXIT_CODE_FILE, isTracked, isGroupAlive, outcomeFromExitCode, isIsolatedJob, isTimedOut, readCpuUsec, isIdle, HELPER_ENV, setUpRunnerCgroup, stopOrphanedMicroVms, unfinishedJobs, sweepImageBuilders, listUnreadableJobs, listAdoptableJobs, retryFailedReleases, recoverLostJobs, GUEST_USAGE_INTERVAL_MS, vmAlive, filesAreCopied, inSandbox, listItemDisks, usableCpus, hookLimitsFor, AttemptLogBook, 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, ensureNetworkReady, managedBuildSettingsFor, ADOPTED_FETCH_RETRY_WINDOW_MS, gitRemoteFor, startServicesFor, installTrust, createLeaseChannel, serveLease, writeGuestGhConfig, deliverJobFiles, inTeardown } from './chunk-E6XXWCOV.js';
12
+ import { leaseTimeLeftMs, createContainerRuntime, withTunnelLog, itemTag, releaseLease, runIsolation, runCommandOf, claimRun, LEASE_SECONDS, isUnfinished, prepareResume, restoreSessionIntoMicroVm, restoreSessionIntoContainer, restoreSessionIntoSandbox, recordsProofsOnly, itemScope, attemptNote, fetchManagedClaudeKey, holdManagedClaudeKey, fetchManagedBuildSettings, holdManagedBuildSettings, setStage, jobEnv, runHook, describeHookEnd, needsBuildSkill, provisionContainer, leaseExpiresAtMs, 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, EXIT_CODE_FILE, isTracked, isGroupAlive, outcomeFromExitCode, isIsolatedJob, isTimedOut, readCpuUsec, isIdle, HELPER_ENV, setUpRunnerCgroup, stopOrphanedMicroVms, unfinishedJobs, sweepImageBuilders, listUnreadableJobs, listAdoptableJobs, retryFailedReleases, recoverLostJobs, GUEST_USAGE_INTERVAL_MS, vmAlive, filesAreCopied, inSandbox, listItemDisks, usableCpus, hookLimitsFor, AttemptLogBook, 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, ensureNetworkReady, ADOPTED_FETCH_RETRY_WINDOW_MS, managedBuildSettingsFor, gitRemoteFor, startServicesFor, installTrust, createLeaseChannel, serveLease, writeGuestGhConfig, deliverJobFiles, inTeardown } from './chunk-TE6II3DH.js';
13
13
  import { RUNNER_PROTOCOL } from './chunk-KVWFAAAQ.js';
14
- import { RUNNER_RESERVE_BYTES } from './chunk-WG5OBUIZ.js';
14
+ import { RUNNER_RESERVE_BYTES } from './chunk-5BNJCTX3.js';
15
15
  import { RepoFilter } from './chunk-3T7PXUHN.js';
16
16
  import { JOB_STATE_FORMAT, readsJobState, jobStateFormatOf } from './chunk-ZVB57WI6.js';
17
17
  import { imageTag, writeUpdateStatus, pullInstruction, tagToPull } from './chunk-UXARYJQ4.js';
18
18
  import { isVersion, compareVersions, satisfiesRange } from './chunk-TQMI335S.js';
19
- import { claimCalls, claimItem, spoolHomeFor, leftByRunnerKey, runnerCalls, configForJob } from './chunk-RCK2MJRG.js';
19
+ import { claimCalls, claimItem, spoolHomeFor, leftByRunnerKey, runnerCalls, configForJob } from './chunk-WNKNY3ON.js';
20
20
  import { claimPidFile, releasePidFile, writePidFile, readPidFile } from './chunk-NDQC2WUJ.js';
21
21
  import { startTimeOf, isSameProcess } from './chunk-JBJTC3UU.js';
22
22
  import { describeCallFailure, retrySend, shortClaim, relativeToRunner, formatDuration, resolveGoverningSource, BuildTokens, classifyRefusal, refusalCode, createRunnerLog, formatClock } from './chunk-SFN7K33S.js';
23
23
  import { WorkCommandError, isSignatureRefusal, getJson, postJson, getBytes } from './chunk-DNXYI22V.js';
24
- import { keyRunnerFactory, isBuiltinSandbox, isBuiltinContainer, isBuiltinVm, loadRunnerConfig, checkHooks, builtinKind, keepsHostBuilder, runnerDeliversComments, readOnlyRemoteOf, DEFAULT_SAVED_STATE_MAX_BYTES, DEFAULT_UPDATE_MAX_WAIT_HOURS, readOnlyOption } from './chunk-EUHUIIGT.js';
25
- import { allocatedBytes, freeBytes, formatBytes } from './chunk-3C23ZPWR.js';
26
- import { writeJobFile, ensureRunnerIdentity, identityDockerFor, readJobFile, exceedsDisk, runnerLabelValue, builderName, ensureFailureCount, builderSpec, ensureBuilder, spawnRun } from './chunk-ERG3WCEC.js';
24
+ import { keyRunnerFactory, isBuiltinSandbox, isBuiltinContainer, isBuiltinVm, loadRunnerConfig, checkHooks, builtinKind, keepsHostBuilder, runnerDeliversComments, readOnlyRemoteOf, DEFAULT_SAVED_STATE_MAX_BYTES, DEFAULT_UPDATE_MAX_WAIT_HOURS, readOnlyOption } from './chunk-AE5RNDFC.js';
25
+ import { allocatedBytes, freeBytes, formatBytes } from './chunk-XWPDXQYX.js';
26
+ import { writeJobFile, ensureRunnerIdentity, identityDockerFor, readJobFile, exceedsDisk, runnerLabelValue, builderName, ensureFailureCount, builderSpec, ensureBuilder, spawnRun } from './chunk-QZSYYHWU.js';
27
27
  import { loadHostKey, ensureHostKey, signerFor } from './chunk-I5U6CFH4.js';
28
28
  import { RUNNER_DIR_MODE, runnerDir, RUNNER_FILE_MODE, buildDir, attemptStamp, jobDir, jobsDir, pidFilePath, storeScopes, imagesDir } from './chunk-JIANCWJ3.js';
29
29
  import { parseClaimIdentity, parseBranchlessRepositories, parseClaimedRepositories, parseUnreachable, repositoriesOf, primaryOf, JOB_MOUNT } from './chunk-4FHDVWKO.js';
@@ -1803,6 +1803,7 @@ function clearUpdateWait(state) {
1803
1803
  }
1804
1804
  function holdWithoutRoomForLarge(state) {
1805
1805
  if (state.config.managed !== true) return false;
1806
+ if (isBuiltinSandbox(state.config.hooks.provision)) return false;
1806
1807
  const probes = {
1807
1808
  ...realBlockedProbes(),
1808
1809
  ...state.deps.container?.hostEnv === void 0 ? {} : { env: state.deps.container.hostEnv },
@@ -3257,7 +3258,7 @@ async function startJob(state, item, queue, claimId, itemKey, branch, identity,
3257
3258
  job.sandbox.commandLogBase = commandLogOffset(dirPath, 0);
3258
3259
  writeJobFile(jobFilePath, job);
3259
3260
  writeFileSync(join(dirPath, "command.log"), "", { flag: "a", mode: RUNNER_FILE_MODE });
3260
- await startSandboxCommand({ job, cmdline, runtime: runtimeOf(state), config: state.config, extraEnv: commandEnv });
3261
+ await startSandboxCommand({ job, jobDir: dirPath, cmdline, runtime: runtimeOf(state), config: state.config, extraEnv: commandEnv });
3261
3262
  } else if (job.microvm !== void 0) {
3262
3263
  const runtime = runtimeOf(state);
3263
3264
  if (job.microvm.jailed !== void 0 && (job.microvm.fdStore?.length ?? 0) > 0) {
@@ -3809,6 +3810,40 @@ async function adoptTrackedBuilds(state, jobsDirPath) {
3809
3810
  void probeBuild(state, adopted);
3810
3811
  }
3811
3812
  }
3813
+ async function holdManagedAgain(state, dirPath, job, tag) {
3814
+ const config = state.config;
3815
+ const log = logOf(state);
3816
+ if (config.managed !== true) return void 0;
3817
+ const fetched = await fetchManagedClaudeKey(claimCalls(config, job), claimItem(config, job), {
3818
+ fetchImpl: state.deps.fetchImpl,
3819
+ now: state.deps.now,
3820
+ sleep: state.deps.sleep,
3821
+ windowMs: ADOPTED_FETCH_RETRY_WINDOW_MS
3822
+ });
3823
+ if (!fetched.ok) {
3824
+ const code = fetched.code ?? "unavailable";
3825
+ log.error(`${tag} the adopted build's Anthropic key could not be had: ${code}`);
3826
+ const cause = fetched.retryable ? "the gateway could not be reached for it" : `the gateway refused it (${code})`;
3827
+ return { reason: `the adopted build's Anthropic key could not be had after the runner restarted: ${cause}`, why: "the gateway did not give its Anthropic key again" };
3828
+ }
3829
+ holdManagedClaudeKey(dirPath, fetched.apiKey);
3830
+ const settings = await fetchManagedBuildSettings(claimCalls(config, job), claimItem(config, job), {
3831
+ fetchImpl: state.deps.fetchImpl,
3832
+ now: state.deps.now,
3833
+ sleep: state.deps.sleep,
3834
+ windowMs: ADOPTED_FETCH_RETRY_WINDOW_MS
3835
+ });
3836
+ if (!settings.ok) {
3837
+ const code = settings.code ?? "unavailable";
3838
+ log.error(`${tag} the adopted build's settings could not be had: ${code}`);
3839
+ const cause = settings.retryable ? "the gateway could not be reached for them" : `the gateway refused them (${code})`;
3840
+ return { reason: `the adopted build's settings could not be had after the runner restarted: ${cause}`, why: "the gateway did not give its settings again" };
3841
+ }
3842
+ holdManagedBuildSettings(dirPath, settings.settings);
3843
+ job.managedVariables = [.../* @__PURE__ */ new Set([...job.managedVariables ?? [], ...[...settings.settings.variables, ...settings.settings.proxied ?? []].map(({ name }) => name)])];
3844
+ writeJobFile(join(dirPath, "job.json"), job);
3845
+ return void 0;
3846
+ }
3812
3847
  function sandboxAwayReason(found, sandboxId) {
3813
3848
  return found === "gone" ? new SandboxGoneError(sandboxId).message : CONTAINER_STOPPED_REASON;
3814
3849
  }
@@ -3822,6 +3857,12 @@ async function adoptTrackedSandboxes(state, jobsDirPath) {
3822
3857
  const own = job.sandbox;
3823
3858
  const tag = itemTag(job);
3824
3859
  const adopted = { job, dirPath, lastRenewAtMs: 0, cmd: null, cpuSample: null, ending: false };
3860
+ const unheld = await holdManagedAgain(state, dirPath, job, tag);
3861
+ if (unheld !== void 0) {
3862
+ const finished = await finishJob(job, dirPath, "interrupted", state.config, finishDepsOf(state), { reason: unheld.reason });
3863
+ log.line(`recovered job ${finished.queue} ${itemTag(finished)} (claim ${shortClaim(finished.claimId)}) as interrupted: ${unheld.why}`);
3864
+ continue;
3865
+ }
3825
3866
  const tokens = buildTokensFor(state, adopted);
3826
3867
  runtime.credentials.set(dirPath, tokens);
3827
3868
  let found;
@@ -3881,36 +3922,8 @@ async function rejoinMicroVmBuild(state, adopted) {
3881
3922
  const fd = inherited.get(fdName(microvm.buildId, socket.replace(/\.sock$/, "")));
3882
3923
  return fd === void 0 ? void 0 : (server) => runtime.vm.fdStore.listenOn(server, fd);
3883
3924
  };
3884
- if (config.managed === true) {
3885
- const fetched = await fetchManagedClaudeKey(claimCalls(config, job), claimItem(config, job), {
3886
- fetchImpl: state.deps.fetchImpl,
3887
- now: state.deps.now,
3888
- sleep: state.deps.sleep,
3889
- windowMs: ADOPTED_FETCH_RETRY_WINDOW_MS
3890
- });
3891
- if (!fetched.ok) {
3892
- const code = fetched.code ?? "unavailable";
3893
- log.error(`${tag} the adopted build's Anthropic key could not be had: ${code}`);
3894
- const cause = fetched.retryable ? "the gateway could not be reached for it" : `the gateway refused it (${code})`;
3895
- return { reason: `the adopted build's Anthropic key could not be had after the runner restarted: ${cause}`, why: "the gateway did not give its Anthropic key again" };
3896
- }
3897
- holdManagedClaudeKey(dirPath, fetched.apiKey);
3898
- const settings = await fetchManagedBuildSettings(claimCalls(config, job), claimItem(config, job), {
3899
- fetchImpl: state.deps.fetchImpl,
3900
- now: state.deps.now,
3901
- sleep: state.deps.sleep,
3902
- windowMs: ADOPTED_FETCH_RETRY_WINDOW_MS
3903
- });
3904
- if (!settings.ok) {
3905
- const code = settings.code ?? "unavailable";
3906
- log.error(`${tag} the adopted build's settings could not be had: ${code}`);
3907
- const cause = settings.retryable ? "the gateway could not be reached for them" : `the gateway refused them (${code})`;
3908
- return { reason: `the adopted build's settings could not be had after the runner restarted: ${cause}`, why: "the gateway did not give its settings again" };
3909
- }
3910
- holdManagedBuildSettings(dirPath, settings.settings);
3911
- job.managedVariables = [.../* @__PURE__ */ new Set([...job.managedVariables ?? [], ...[...settings.settings.variables, ...settings.settings.proxied ?? []].map(({ name }) => name)])];
3912
- writeJobFile(join(dirPath, "job.json"), job);
3913
- }
3925
+ const unheld = await holdManagedAgain(state, dirPath, job, tag);
3926
+ if (unheld !== void 0) return unheld;
3914
3927
  const tokens = buildTokensFor(state, adopted);
3915
3928
  runtime.credentials.set(dirPath, tokens);
3916
3929
  let servicesServed = false;
@@ -4114,7 +4127,7 @@ async function startRunner(configPath, deps, startup) {
4114
4127
  check: update.check ? () => update.check(configPath) : async () => {
4115
4128
  const held = runnerAgents(deps.agents).flatMap((agent) => heldAgentCredential(agent.descriptor.id) ?? []);
4116
4129
  const env = { ...process.env, ...Object.fromEntries(held.map((credential) => [credential.variable, credential.value])) };
4117
- return (await import('./check-QKTZCHTH.js')).runRunnerCheck(configPath, { fetchImpl: deps.fetchImpl, env });
4130
+ return (await import('./check-Y37I4WJY.js')).runRunnerCheck(configPath, { fetchImpl: deps.fetchImpl, env });
4118
4131
  },
4119
4132
  now: () => (deps.now ?? (() => /* @__PURE__ */ new Date()))().getTime(),
4120
4133
  log
@@ -1052,8 +1052,8 @@ function doctorExitCode(checks) {
1052
1052
 
1053
1053
  // src/doctor-report.ts
1054
1054
  async function gatherDoctorChecks(options = {}) {
1055
- const { DEFAULT_BUILD_DISK, DEFAULT_CACHE_DISK } = await import('./build-disk-4PCVGMAT.js');
1056
- const { defaultRunnerConfigPath, hasRunnerBlock, keyRunnerFactory, loadRunnerConfig, runnerVmOf } = await import('./config-5KMNGNK5.js');
1055
+ const { DEFAULT_BUILD_DISK, DEFAULT_CACHE_DISK } = await import('./build-disk-AC32UE6Q.js');
1056
+ const { defaultRunnerConfigPath, hasRunnerBlock, keyRunnerFactory, loadRunnerConfig, runnerVmOf } = await import('./config-BVXXJ42A.js');
1057
1057
  const configPath = options.configPath ?? defaultRunnerConfigPath();
1058
1058
  const runnerHost = hasRunnerBlock(configPath);
1059
1059
  const hooks = (() => {
@@ -1081,7 +1081,7 @@ async function gatherDoctorChecks(options = {}) {
1081
1081
  const { runnerVmCheck } = await import('./doctor-53F2PYY7.js');
1082
1082
  checks.push(runnerVmCheck(configPath, { lima: realLima(), home: homeFromEnv(), instance: runnerVm.instance }));
1083
1083
  } else if (hasRunnerBlock(configPath)) {
1084
- const { runnerHostChecks } = await import('./doctor-BO57MWS3.js');
1084
+ const { runnerHostChecks } = await import('./doctor-ZJBJNHGD.js');
1085
1085
  const gateway = (() => {
1086
1086
  try {
1087
1087
  const loaded = loadRunnerConfig(configPath);
@@ -1109,7 +1109,7 @@ async function gatherDoctorChecks(options = {}) {
1109
1109
  const service = await (async () => {
1110
1110
  const { existsSync: existsSync3 } = await import('fs');
1111
1111
  if (process.platform !== "linux" || !existsSync3("/run/systemd/system")) return void 0;
1112
- const { inspectRunnerService } = await import('./find-unit-3QYPTK6A.js');
1112
+ const { inspectRunnerService } = await import('./find-unit-Q4PYWSZK.js');
1113
1113
  return inspectRunnerService(configPath);
1114
1114
  })();
1115
1115
  checks.push(...await runnerHostChecks({ configPath, hooks, gateway, repos, runner, service }));
@@ -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-IHBEPDZD.js');
132
+ const { testProofIn } = await import('./host-checks-GH3ZZU25.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-IHBEPDZD.js');
139
+ const { checksIn, isJudgeCheck } = await import('./host-checks-GH3ZZU25.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-FFUD3Q36.js');
375
+ const { runWorkProofsRecord } = await import('./work-proofs-record-PR3UHFMU.js');
376
376
  const result2 = await runWorkProofsRecord(opts);
377
377
  process.exitCode = result2.exitCode;
378
378
  return;
@@ -1,6 +1,6 @@
1
1
  #!/usr/bin/env node
2
2
  import { createRequire } from 'node:module';
3
- import { escapeUnitPath, UNIT_MARKER, DEFAULT_UNIT_NAME } from './chunk-WG5OBUIZ.js';
3
+ import { escapeUnitPath, UNIT_MARKER, DEFAULT_UNIT_NAME } from './chunk-5BNJCTX3.js';
4
4
  import { inspectService, realInspectProbes } from './chunk-EJ7ZXBXS.js';
5
5
  import { realpathSync, readFileSync, readdirSync } from 'fs';
6
6
  import { resolve, dirname, join } from 'path';
@@ -1,10 +1,10 @@
1
1
  #!/usr/bin/env node
2
2
  import { createRequire } from 'node:module';
3
- import { placeholderQueues, placeholderProblem } from './chunk-E6XXWCOV.js';
4
- import { checkFit, RUNNER_RESERVE_BYTES } from './chunk-WG5OBUIZ.js';
3
+ import { placeholderQueues, placeholderProblem } from './chunk-TE6II3DH.js';
4
+ import { checkFit, RUNNER_RESERVE_BYTES } from './chunk-5BNJCTX3.js';
5
5
  import { getJson, WorkCommandError } from './chunk-DNXYI22V.js';
6
- import { isBuiltinVm, builtinKind, EGRESS_SWITCHABLE_KEYS, imageBuildOf, keepsHostBuilder } from './chunk-EUHUIIGT.js';
7
- import { realBuildDiskProbe, checkDiskFit, DEFAULT_CACHE_DISK, DEFAULT_BUILD_DISK } from './chunk-3C23ZPWR.js';
6
+ import { isBuiltinVm, builtinKind, EGRESS_SWITCHABLE_KEYS, imageBuildOf, keepsHostBuilder } from './chunk-AE5RNDFC.js';
7
+ import { realBuildDiskProbe, checkDiskFit, DEFAULT_CACHE_DISK, DEFAULT_BUILD_DISK } from './chunk-XWPDXQYX.js';
8
8
  import { ensureHostKey } from './chunk-I5U6CFH4.js';
9
9
  import { sandboxSettingsFrom } from './chunk-4FHDVWKO.js';
10
10
  import { BUILD_SLICE_MEMORY_ENV, agentCredentialVariablesSet, agentCredential, parseRunnerEnv } from './chunk-EJ7ZXBXS.js';
@@ -73,10 +73,11 @@ function sliceMemoryOf(env) {
73
73
  }
74
74
  function managedProblems(facts, agents = defaultAgents()) {
75
75
  const problems = [];
76
- if (builtinKind(facts.provision) !== "vm") {
76
+ const kind = builtinKind(facts.provision);
77
+ if (kind === "sandbox") ; else if (kind !== "vm") {
77
78
  problems.push({
78
79
  condition: "jailer",
79
- reason: `a managed runner needs builtin:vm hooks, and runner.hooks.provision is ${facts.provision}. Without them builds would run without the jailer. Set runner.hooks.provision and runner.hooks.cleanup to builtin:vm`
80
+ reason: `a managed runner needs builtin:vm or builtin:sandbox hooks, and runner.hooks.provision is ${facts.provision}. Without them a build would not run in a machine of its own. Set runner.hooks.provision and runner.hooks.cleanup to builtin:vm or to builtin:sandbox`
80
81
  });
81
82
  } else if (facts.jailer === "usable") ; else if (facts.jailer === "unknown") {
82
83
  problems.push({ condition: "jailer", reason: "the runner has not yet asked the root helper whether builds run under the jailer, so builds would run without the jailer until it answers" });
@@ -107,7 +108,7 @@ function managedProblems(facts, agents = defaultAgents()) {
107
108
  reason: `${off.map((key) => `runner.build.egress.${key}`).join(" and ")} ${off.length === 1 ? "is" : "are"} 0, which turns ${off.length === 1 ? "that limit" : "those limits"} off. A managed runner limits how fast a build opens connections and sends bytes, because every organization on the host shares one address. Remove ${off.length === 1 ? "the key" : "the keys"} to use the default, or set a value above 0`
108
109
  });
109
110
  }
110
- if (builtinKind(facts.provision) === "vm") {
111
+ if (kind === "vm") {
111
112
  if (facts.imageBuild === "host") {
112
113
  problems.push({
113
114
  condition: "imageBuild",
@@ -716,6 +716,8 @@ function networkHelperRunArgs(input) {
716
716
  ...input.limits.cpuset === void 0 ? [] : ["--cpuset-cpus", input.limits.cpuset],
717
717
  "--pids-limit",
718
718
  String(NETWORK_HELPER_PIDS),
719
+ // An image that was not built by this runner may hold no helper, or another version's: the runner's own is mounted over it.
720
+ ...input.helperFile === void 0 ? [] : ["--mount", `type=bind,src=${input.helperFile},dst=${NETWORK_HELPER_PROGRAM},readonly`],
719
721
  "--entrypoint",
720
722
  NETWORK_HELPER_PROGRAM,
721
723
  input.image,
@@ -1,6 +1,6 @@
1
1
  #!/usr/bin/env node
2
2
  import { createRequire } from 'node:module';
3
- import { stripTerminalControls } from './chunk-E6XXWCOV.js';
3
+ import { stripTerminalControls } from './chunk-TE6II3DH.js';
4
4
  import { tagToPull, imageTag, pullInstruction, readUpdateStatus, runnerImageVersion } from './chunk-UXARYJQ4.js';
5
5
  import { readFileSync } from 'fs';
6
6
 
@@ -55,7 +55,7 @@ function envNamesOf(row, imageEnv) {
55
55
  return [...new Set(names)].sort();
56
56
  }
57
57
  async function readOwnContainer(deps = {}) {
58
- const run = deps.run ?? (await import('./docker-T7A6GZDD.js')).spawnRun;
58
+ const run = deps.run ?? (await import('./docker-AN3FVXDR.js')).spawnRun;
59
59
  const ids = candidateIds(deps.env ?? process.env, deps.readFile ?? ((path) => readFileSync(path, "utf8")));
60
60
  if (ids.length === 0) return { ok: false, reason: "the runner cannot tell which container it runs in: HOSTNAME is empty and /proc/self/mountinfo names none" };
61
61
  let problem = "";