@outerlayer/cli 0.38.0-next.20261111153051 → 0.38.0-next.20261111172503

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 (128) hide show
  1. package/README.md +10 -8
  2. package/dist/{agent-setup-OJETTF3R.js → agent-setup-HXEWWT6K.js} +7 -7
  3. package/dist/{agent-subcommand-GDVH463X.js → agent-subcommand-NZFPV3MV.js} +1 -1
  4. package/dist/{bridge-D3L6JK6X.js → bridge-OBIGQXDH.js} +2 -2
  5. package/dist/{build-CBPURIYL.js → build-4IYEB6OE.js} +7 -7
  6. package/dist/{build-disk-ANS4SYJ3.js → build-disk-2MOEPIZF.js} +5 -5
  7. package/dist/build-info.json +1 -1
  8. package/dist/{builder-7TYKMRTJ.js → builder-SVI2D35R.js} +4 -4
  9. package/dist/{caller-TRZOYZRD.js → caller-PW7R46M7.js} +7 -7
  10. package/dist/{check-X43YL4P6.js → check-HC7E2BFS.js} +37 -37
  11. package/dist/{chunk-GAQ432XL.js → chunk-2FJYZUZE.js} +3 -3
  12. package/dist/{chunk-XEFOBPG3.js → chunk-33XLQIV4.js} +1 -1
  13. package/dist/{chunk-4GJPOZXO.js → chunk-36XB56GG.js} +2 -2
  14. package/dist/{chunk-UBZTPZJF.js → chunk-3YJJ2JDV.js} +1 -1
  15. package/dist/{chunk-NS7VJS7W.js → chunk-3Z5KBFBB.js} +2 -2
  16. package/dist/{chunk-F3NABQVP.js → chunk-4AEOP5PD.js} +3 -3
  17. package/dist/{chunk-IKT2MOY6.js → chunk-4G5SYPK2.js} +1 -1
  18. package/dist/{chunk-S6VT3TNG.js → chunk-6BXJESQF.js} +3 -3
  19. package/dist/{chunk-GNJVUQYO.js → chunk-6FQSV7ZK.js} +3 -3
  20. package/dist/{chunk-L2VXYF66.js → chunk-7GUD2FIF.js} +1 -1
  21. package/dist/{chunk-2APZSZWP.js → chunk-7XORCWWZ.js} +3 -3
  22. package/dist/{chunk-I6PMRDHZ.js → chunk-ABRGN5OA.js} +1 -1
  23. package/dist/{chunk-U527OJJO.js → chunk-AJ3YUM23.js} +1 -1
  24. package/dist/{chunk-ZTH5HHYS.js → chunk-BIMHESZG.js} +1 -1
  25. package/dist/{chunk-3E2PQ4J3.js → chunk-DKMSDIWM.js} +170 -82
  26. package/dist/{chunk-7YDMHWVK.js → chunk-DKRZZBKI.js} +3 -3
  27. package/dist/{chunk-OFZ5A2A5.js → chunk-DKTXQ7XQ.js} +1 -1
  28. package/dist/{chunk-5YJWKIIO.js → chunk-DULO2L5B.js} +1 -1
  29. package/dist/{chunk-ICXSMGJF.js → chunk-EQZNHUEK.js} +2 -2
  30. package/dist/{chunk-O67Y46CY.js → chunk-FUONFFTG.js} +5 -5
  31. package/dist/{chunk-XF2HRP6A.js → chunk-HNQLZ7CK.js} +1 -1
  32. package/dist/{chunk-HI5IJ2R7.js → chunk-J345NEVJ.js} +2 -2
  33. package/dist/{chunk-OZWB73EH.js → chunk-KA4BMGBR.js} +2 -2
  34. package/dist/{chunk-I2SVCIY4.js → chunk-KFB7KFEK.js} +7 -7
  35. package/dist/{chunk-OB6YHX2T.js → chunk-KN5VDMVL.js} +3 -3
  36. package/dist/{chunk-UEAEKTK5.js → chunk-LKLP5YMH.js} +5 -5
  37. package/dist/{chunk-LHHRLWSN.js → chunk-LMVHXHGQ.js} +9 -9
  38. package/dist/{chunk-WHU4U3RZ.js → chunk-LVNMKOWI.js} +1 -1
  39. package/dist/{chunk-LIHVAX2O.js → chunk-M2WESKWY.js} +2 -2
  40. package/dist/{chunk-XJJIVGJB.js → chunk-MG33BM7E.js} +2 -2
  41. package/dist/{chunk-HWUCTGDI.js → chunk-N3XAJZGV.js} +3 -3
  42. package/dist/{chunk-BOWIPNXG.js → chunk-O5ERYWXA.js} +7 -7
  43. package/dist/{chunk-36XCKMNB.js → chunk-OKSYYMD2.js} +2 -2
  44. package/dist/{chunk-JOFYKUCM.js → chunk-ONTXC6D3.js} +3 -3
  45. package/dist/{chunk-WL333KYF.js → chunk-OPCFOIZJ.js} +1 -1
  46. package/dist/{chunk-64X24LE3.js → chunk-QBJ7MMOT.js} +7 -6
  47. package/dist/{chunk-I6RBMWDV.js → chunk-QOP2CYYY.js} +5 -5
  48. package/dist/{chunk-ZW36EULQ.js → chunk-SIGBRVEF.js} +5 -13
  49. package/dist/{chunk-TJWLAGFC.js → chunk-T6QX3S64.js} +5 -5
  50. package/dist/{chunk-7IV7XZ6C.js → chunk-TJ7OVPR7.js} +2 -2
  51. package/dist/{chunk-CEDWGLK5.js → chunk-TUH2STQV.js} +5 -5
  52. package/dist/{chunk-VASOYLWE.js → chunk-UHOP4IMQ.js} +1 -1
  53. package/dist/{chunk-DHLEYFNL.js → chunk-UKEJBA5Y.js} +1 -1
  54. package/dist/{chunk-QHRH3BPI.js → chunk-UWLCJZ45.js} +1 -1
  55. package/dist/{chunk-AABLA7NP.js → chunk-VCNY5VAF.js} +2 -2
  56. package/dist/{chunk-LXEXWLCW.js → chunk-VNHCN75M.js} +1 -1
  57. package/dist/{chunk-FAFHCIJN.js → chunk-VQ6ZKSNL.js} +1 -1
  58. package/dist/{chunk-PFNFXK5B.js → chunk-WV43CAGI.js} +2 -2
  59. package/dist/{chunk-66D534SM.js → chunk-YOFYW4EE.js} +30 -26
  60. package/dist/{chunk-HKP33YSC.js → chunk-ZQII2ZRP.js} +1 -1
  61. package/dist/{claude-launcher-YYBDHFKP.js → claude-launcher-GIT7VNYK.js} +1 -1
  62. package/dist/{cli-UQ52XIEO.js → cli-EOY2DOOD.js} +124 -124
  63. package/dist/{command-PZHB4OZ7.js → command-OD2UYKKQ.js} +32 -32
  64. package/dist/{config-7YVZTYU3.js → config-AOOR5BPQ.js} +6 -6
  65. package/dist/{connect-cmd-OTYUH5EY.js → connect-cmd-FIPFU4X4.js} +5 -5
  66. package/dist/{container-start-JROIQ2RA.js → container-start-NISTFOL2.js} +30 -30
  67. package/dist/{context-show-cmd-U7NEJRQH.js → context-show-cmd-SOUPRIUD.js} +6 -6
  68. package/dist/{control-plane-launch-SXAXGPCQ.js → control-plane-launch-IIHRG233.js} +5 -5
  69. package/dist/{demo-record-cmd-WJJWOVEV.js → demo-record-cmd-PI7QDFRP.js} +2 -2
  70. package/dist/{demo-voice-cmd-CDVRH7RS.js → demo-voice-cmd-JZOO3TL5.js} +11 -11
  71. package/dist/{docker-G46NSNAE.js → docker-6MPPSTR4.js} +4 -4
  72. package/dist/{doctor-W3SQUPXU.js → doctor-OU54YSDJ.js} +32 -32
  73. package/dist/{emit-artifact-cmd-QET3MR7Y.js → emit-artifact-cmd-ZU7JHEYN.js} +10 -10
  74. package/dist/{emit-criteria-cmd-Z3NGUOQ3.js → emit-criteria-cmd-4DSDN3CZ.js} +7 -7
  75. package/dist/{emit-demo-cmd-VN5TLP6X.js → emit-demo-cmd-2CLCGPBS.js} +11 -11
  76. package/dist/{emit-finding-cmd-NN6TLRV4.js → emit-finding-cmd-GG2WT2ZN.js} +7 -7
  77. package/dist/{emit-result-cmd-XCU6WVMT.js → emit-result-cmd-3MUFY5ES.js} +9 -9
  78. package/dist/{emit-step-cmd-3B3SN2DX.js → emit-step-cmd-KHXTWZFP.js} +7 -7
  79. package/dist/{exec-client-55XHR4PH.js → exec-client-YQCKCZGW.js} +3 -3
  80. package/dist/{find-unit-ASTWTNYY.js → find-unit-YT25OH3F.js} +8 -8
  81. package/dist/{findings-cmd-HDH4Y5ON.js → findings-cmd-OSJ2Y3IC.js} +7 -7
  82. package/dist/{fleet-readiness-3HC5JKYS.js → fleet-readiness-JE3MTT3R.js} +5 -5
  83. package/dist/{governing-source-B3RBMTCL.js → governing-source-FQKK5RCJ.js} +9 -9
  84. package/dist/{guest-init-KGFEH6IZ.js → guest-init-X2HLNETS.js} +4 -4
  85. package/dist/{hook-fast-BH7W6WZV.js → hook-fast-3BGU6BF2.js} +1 -1
  86. package/dist/{host-checks-5D3WZ273.js → host-checks-PIVAISJF.js} +28 -28
  87. package/dist/{pending-QUWRYGA3.js → host-key-KQ6JWRB4.js} +3 -3
  88. package/dist/{image-tag-DBU2FVYO.js → image-tag-IJKYPT6D.js} +3 -3
  89. package/dist/index.js +4 -4
  90. package/dist/{init-VV27PYOW.js → init-4WHNRYJK.js} +28 -28
  91. package/dist/{init-24SUQNWG.js → init-CSOKCOU2.js} +28 -28
  92. package/dist/{init-agent-QBIM2ZPU.js → init-agent-N4SCUBDT.js} +28 -28
  93. package/dist/{init-cmd-KEQHT7RP.js → init-cmd-7HDKDTUS.js} +10 -10
  94. package/dist/{init-update-GZM2FZRC.js → init-update-UFZX37SD.js} +8 -8
  95. package/dist/{install-cmd-L5GEWLRY.js → install-cmd-DHIVJEBO.js} +5 -5
  96. package/dist/{logs-JZF44C7F.js → logs-VX2SXLJH.js} +2 -2
  97. package/dist/{loop-4NS6FYOZ.js → loop-DH7PXRWV.js} +36 -36
  98. package/dist/{machine-RLSG22IR.js → machine-Y3VIABUB.js} +28 -28
  99. package/dist/{mcp-serve-cmd-X5FNE5WG.js → mcp-serve-cmd-P34CQIBX.js} +4 -4
  100. package/dist/{paths-TQEUR7ET.js → paths-HV3G2EHE.js} +2 -2
  101. package/dist/{host-key-HQQLUWQB.js → pending-I2EJ7TMY.js} +3 -3
  102. package/dist/{pidfile-KOZAOHSS.js → pidfile-4ZG5I7ZR.js} +3 -3
  103. package/dist/{record-6TPL2BNW.js → record-3XWPD2UP.js} +3 -3
  104. package/dist/{run-cmd-DE6LEJ4S.js → run-cmd-R4EB4TKJ.js} +7 -7
  105. package/dist/{runner-env-ILSQXHT3.js → runner-env-JS2WDB5L.js} +8 -8
  106. package/dist/{runner-identity-L4RMVVQ3.js → runner-identity-F2Z3TXJ7.js} +4 -4
  107. package/dist/{runner-key-BCLVHJQL.js → runner-key-DIVDANJ3.js} +28 -28
  108. package/dist/{session-sender-KXFNZ7QR.js → session-sender-NMZGHC65.js} +10 -10
  109. package/dist/{spec-cmd-B44VHKSR.js → spec-cmd-Z26RVBY6.js} +8 -8
  110. package/dist/{state-NBUID6K5.js → state-64OMLIN4.js} +3 -3
  111. package/dist/{status-W4M5LFEI.js → status-CJSJY6XJ.js} +28 -28
  112. package/dist/{sync-cmd-ELGJ5MHU.js → sync-cmd-WE46ELML.js} +9 -9
  113. package/dist/{update-steps-3MULI6SR.js → update-steps-QTCJF6DY.js} +29 -29
  114. package/dist/{watch-FJYJQXBK.js → watch-O5BOUDHZ.js} +9 -9
  115. package/dist/{work-claim-cmd-Y33H4R25.js → work-claim-cmd-35CRWPQK.js} +12 -12
  116. package/dist/{work-cmd-EDGMD2VX.js → work-cmd-4NMKJHC5.js} +7 -7
  117. package/dist/{work-comment-cmd-YKGQ7WPG.js → work-comment-cmd-4FLBLGH3.js} +9 -9
  118. package/dist/{work-demo-cmd-GWKHJGHE.js → work-demo-cmd-ZFZLPJHZ.js} +7 -7
  119. package/dist/{work-logs-cmd-4RA6SF2Z.js → work-logs-cmd-2CGBAPNO.js} +7 -7
  120. package/dist/{work-needs-attention-cmd-SHFYBESF.js → work-needs-attention-cmd-SXZHDR4U.js} +7 -7
  121. package/dist/{work-no-change-cmd-AMSJX7MG.js → work-no-change-cmd-EFDSBICP.js} +7 -7
  122. package/dist/{work-open-pr-cmd-G5VF5AA2.js → work-open-pr-cmd-272NR4QR.js} +11 -9
  123. package/dist/{work-pr-cmd-CX2QSIJN.js → work-pr-cmd-OJ7ZGDKB.js} +7 -7
  124. package/dist/{work-proofs-cmd-25P27T3R.js → work-proofs-cmd-CZFDNMXW.js} +8 -8
  125. package/dist/{work-proofs-record-BQY5P2K5.js → work-proofs-record-BVFYTMES.js} +14 -14
  126. package/dist/{work-stop-cmd-E7OUJHBJ.js → work-stop-cmd-UHGV6AGA.js} +7 -7
  127. package/package.json +1 -1
  128. package/skill-pack/maintained/outerlayer-cli/references/open-pull-request.md +4 -0
@@ -4,34 +4,34 @@ import { itemsSentence, criteriaOf, hostItemsOf, loadCitationFinder, testFileMat
4
4
  import { RUNNER_PROTOCOL } from './chunk-6XMC6R4W.js';
5
5
  import { sha256OfFile, downloadPinned, VoiceDownloadError } from './chunk-2PGI6RDE.js';
6
6
  import { zodProblem } from './chunk-I3LTIAOR.js';
7
- import { hasStoredCredential, storedCredentialVariables, storeAgentCredential, isAgentName, credentialFromStdin } from './chunk-HI5IJ2R7.js';
7
+ import { hasStoredCredential, storedCredentialVariables, storeAgentCredential, isAgentName, credentialFromStdin } from './chunk-J345NEVJ.js';
8
8
  import { upgradedStarterText } from './chunk-MOFT7QCR.js';
9
- import { HELPER_PATH, HELPER_RECORD, DOCKERD_LOG } from './chunk-7YDMHWVK.js';
10
- import { writeDockerClientConfig } from './chunk-ZTH5HHYS.js';
11
- import { senderPidfile } from './chunk-LIHVAX2O.js';
12
- import { installScrubContext } from './chunk-CEDWGLK5.js';
9
+ import { HELPER_PATH, HELPER_RECORD, DOCKERD_LOG } from './chunk-DKRZZBKI.js';
10
+ import { writeDockerClientConfig } from './chunk-BIMHESZG.js';
11
+ import { senderPidfile } from './chunk-M2WESKWY.js';
12
+ import { installScrubContext } from './chunk-TUH2STQV.js';
13
13
  import { readsJobState, READ_JOB_STATE_FORMATS, jobStateFormatOf } from './chunk-ZVB57WI6.js';
14
- import { runnerImageVersion } from './chunk-IKT2MOY6.js';
15
- import { claimCalls, spoolHomeFor, itemCalls, claimItem, leftByRunnerKey, configForJob } from './chunk-NS7VJS7W.js';
14
+ import { runnerImageVersion } from './chunk-4G5SYPK2.js';
15
+ import { claimCalls, spoolHomeFor, itemCalls, claimItem, leftByRunnerKey, configForJob } from './chunk-3Z5KBFBB.js';
16
16
  import { receiveFiles } from './chunk-NN33FYXG.js';
17
- import { readDefaultBranchFiles, readDefaultBranchHead, buildRepositoryImage, fetchCommit, readBranchHead, diffBetween, prepareImageBuild, KEY_PREFIX, TAG_HOST, SHARED_OWNER, SHARED_NAME, universalBase, metadataFromLabels, writeRecord } from './chunk-UEAEKTK5.js';
18
- import { FETCHED_DIR, toolsDockerfile, FETCHED_FFMPEG, FETCHED_GH, FETCHED_TINI, FETCHED_HEADLESS_SHELL, FETCHED_PLAYWRIGHT_FFMPEG, FETCHED_VOICE_DIR } from './chunk-I6PMRDHZ.js';
17
+ import { readDefaultBranchFiles, readDefaultBranchHead, buildRepositoryImage, fetchCommit, readBranchHead, diffBetween, prepareImageBuild, KEY_PREFIX, TAG_HOST, SHARED_OWNER, SHARED_NAME, universalBase, metadataFromLabels, writeRecord } from './chunk-LKLP5YMH.js';
18
+ import { FETCHED_DIR, toolsDockerfile, FETCHED_FFMPEG, FETCHED_GH, FETCHED_TINI, FETCHED_HEADLESS_SHELL, FETCHED_PLAYWRIGHT_FFMPEG, FETCHED_VOICE_DIR } from './chunk-ABRGN5OA.js';
19
19
  import { isSameProcess, startTimeOf } from './chunk-JBJTC3UU.js';
20
20
  import { currentCliBuild } from './chunk-OGFGZQA3.js';
21
- import { vmExecArgs, runExec, execCapture, waitForAgent } from './chunk-QHRH3BPI.js';
22
- import { socketPathProblem, vsockLinks, linkVsockSockets, GUEST_CID, LEASE_LINK } from './chunk-XEFOBPG3.js';
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-O67Y46CY.js';
24
- import { postJson, WorkCommandError, isSignatureRefusal, getJson } from './chunk-I6RBMWDV.js';
25
- import { isBuiltinContainer, isBuiltinVm, isBuiltinSandbox, keyRunnerFactory, runnerCredentialProblem, builtinKind, optionalEgress, egressSummary, DEFAULT_WORKSPACE_KEEP_DAYS, DEFAULT_CHECK_TIME_LIMIT_MINUTES, DEFAULT_SETUP_MINUTES, allowHostProblem, systemClock, emptyEgressCounts, hostAllowed, sandboxSizeOf, networkOf, sandboxTimeLimitMinutes, imageBuildOf, DEFAULT_SAVED_STATE_MAX_BYTES } from './chunk-64X24LE3.js';
26
- import { formatBytes, volumeBytes, allocatedBytes, DEFAULT_BUILD_DISK, DEFAULT_CACHE_DISK, freeBytes } from './chunk-OZWB73EH.js';
27
- import { firstLine, writeJobFile, runnerLabelValue, readJobFile, spawnRun, RUNNER_LABEL, BUILD_LABEL, said, NETWORK_HELPER_MEMORY, createDockerHost, builderSpec, containerExecArgs, childEnvironment, readDu, withAnswerProtocol, JUDGE_TREE, MAX_REPORT_BYTES, parseSize, readJobFileChecked, NETWORK_READY_FILE, networkHelperName, prepareRunArgs, containerRunArgs, judgeCommand, JUDGE_DIR, WORKSPACE_LABEL, homeCopyRunArgs, networkHelperRunArgs, JUDGE_MAX_TURNS, JUDGE_ITEMS, answerFileName, hashJudgeProgram, identityScript, identityArgs, parseIdentity, mountableHome, homeCopyScript, homeCopyArgs, COMMAND_DIR, judgeProgramRecord, MAX_ITEMS_BYTES, JUDGE_REPORT, identityRunArgs, SAVED_STATE_LABEL } from './chunk-S6VT3TNG.js';
21
+ import { vmExecArgs, runExec, execCapture, waitForAgent } from './chunk-UWLCJZ45.js';
22
+ import { socketPathProblem, vsockLinks, linkVsockSockets, GUEST_CID, LEASE_LINK } from './chunk-33XLQIV4.js';
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-FUONFFTG.js';
24
+ import { postJson, WorkCommandError, isSignatureRefusal, getJson } from './chunk-QOP2CYYY.js';
25
+ import { isBuiltinContainer, isBuiltinVm, isBuiltinSandbox, keyRunnerFactory, runnerCredentialProblem, builtinKind, optionalEgress, egressSummary, DEFAULT_WORKSPACE_KEEP_DAYS, DEFAULT_CHECK_TIME_LIMIT_MINUTES, DEFAULT_SETUP_MINUTES, allowHostProblem, systemClock, emptyEgressCounts, hostAllowed, sandboxSizeOf, sandboxTimeLimitMinutes, networkOf, imageBuildOf, DEFAULT_SAVED_STATE_MAX_BYTES } from './chunk-QBJ7MMOT.js';
26
+ import { formatBytes, volumeBytes, allocatedBytes, DEFAULT_BUILD_DISK, DEFAULT_CACHE_DISK, freeBytes } from './chunk-KA4BMGBR.js';
27
+ import { firstLine, writeJobFile, readJobFile, spawnRun, RUNNER_LABEL, BUILD_LABEL, said, NETWORK_HELPER_MEMORY, createDockerHost, builderSpec, childEnvironment, containerExecArgs, readDu, withAnswerProtocol, JUDGE_TREE, MAX_REPORT_BYTES, runnerLabelValue, parseSize, readJobFileChecked, NETWORK_READY_FILE, networkHelperName, prepareRunArgs, containerRunArgs, judgeCommand, JUDGE_DIR, WORKSPACE_LABEL, homeCopyRunArgs, networkHelperRunArgs, JUDGE_MAX_TURNS, JUDGE_ITEMS, answerFileName, hashJudgeProgram, identityScript, identityArgs, parseIdentity, mountableHome, homeCopyScript, homeCopyArgs, COMMAND_DIR, judgeProgramRecord, MAX_ITEMS_BYTES, JUDGE_REPORT, identityRunArgs, SAVED_STATE_LABEL } from './chunk-6BXJESQF.js';
28
28
  import { universalImagePending, RecipeError, writeSanitizedRecipe, classifyProperties, DOCKER_FEATURE } from './chunk-FQPGZOH3.js';
29
29
  import { sanitizeTerminal, planArtifactUpload } from './chunk-QHYCF36K.js';
30
30
  import { sharedSkillNames, skillConflictMessage } from './chunk-WV4T6ZOQ.js';
31
31
  import { readCloudConfig } from './chunk-HWVMRETT.js';
32
- import { signerFor } from './chunk-HKP33YSC.js';
33
- import { vmAssetsDir, RUNNER_DIR_MODE, RUNNER_FILE_MODE, runnerDir, workspacesDir, jobsDir, storeScopes, spoolDir, orgStoreIn, rootfsDir, imagesDir, sessionsDir, builderCacheDiskPath, buildsDir, buildDir, ghConfigDir, runnerDirOfBuild, mirrorDir, orgHomeDir, jobConsolePath, vsockPath, builderConsolePath, rootfsPathFor, diskTemplatesDir, deliveryDir, SHIM_DIR } from './chunk-5YJWKIIO.js';
34
- import { BUILD_HOME, SandboxError, JOB_MOUNT, heldBuildAuthority, IMAGE_BUNDLES, writeTrustFiles, buildEnvironment, trustEnvironment, CHECKOUT_DIR, parseIsolation, containerLocalAddress, destinationEnvironment, withHooksPath, startBuildServices, headerVariables, authorEnvironment, sharedUserEnvironment, withTunnelRecord, commitIdentityRecord, repositoriesOf, RELAY_PORT, repositoryPath, lifecycleWorkdir, CHECK_ITEMS_FILE, parseProxied, readBundleScript, applyTrust, STAND_IN, proxyEnvironment, describeSandboxError, dropBuildAuthority, sandboxSettingsFrom, createSandboxClient, hostKeyOf, buildAuthorityFor, checkEnvironment, withMiseVariables, checkoutPath, primaryOf, variablesFor, carried6to4, classifyAddress, EVAL_INPUT_DIR, isMiseVariableAllowed, variableForPath, droppedRequestHeaders, hasDotDotSegment, routeNameOf, toolProxyEnvironment } from './chunk-ZW36EULQ.js';
32
+ import { signerFor } from './chunk-ZQII2ZRP.js';
33
+ import { vmAssetsDir, RUNNER_DIR_MODE, RUNNER_FILE_MODE, runnerDir, workspacesDir, jobsDir, storeScopes, spoolDir, orgStoreIn, rootfsDir, imagesDir, sessionsDir, builderCacheDiskPath, buildsDir, buildDir, ghConfigDir, runnerDirOfBuild, mirrorDir, orgHomeDir, jobConsolePath, vsockPath, builderConsolePath, rootfsPathFor, diskTemplatesDir, deliveryDir, SHIM_DIR } from './chunk-DULO2L5B.js';
34
+ import { BUILD_HOME, SandboxError, JOB_MOUNT, heldBuildAuthority, IMAGE_BUNDLES, writeTrustFiles, buildEnvironment, trustEnvironment, CHECKOUT_DIR, parseIsolation, containerLocalAddress, destinationEnvironment, withHooksPath, startBuildServices, headerVariables, authorEnvironment, sharedUserEnvironment, withTunnelRecord, commitIdentityRecord, repositoriesOf, RELAY_PORT, repositoryPath, lifecycleWorkdir, CHECK_ITEMS_FILE, parseProxied, readBundleScript, applyTrust, STAND_IN, proxyEnvironment, describeSandboxError, dropBuildAuthority, sandboxSettingsFrom, createSandboxClient, hostKeyOf, buildAuthorityFor, checkEnvironment, withMiseVariables, checkoutPath, primaryOf, variablesFor, carried6to4, classifyAddress, EVAL_INPUT_DIR, isMiseVariableAllowed, variableForPath, droppedRequestHeaders, hasDotDotSegment, routeNameOf, toolProxyEnvironment } from './chunk-SIGBRVEF.js';
35
35
  import { agentCredential, RUNNER_WORDED_REASONS, UNKNOWN_TRACKING_REASON, UNKNOWN_TRANSPORT_REASON, RELAY_USER, currentAgentCredential, removedAgentCredentialValues, managedAgentCredential, realFdStorePort, builtInNames, MAX_MALFORMED_SESSIONS, MALFORMED_REASON, JOIN_WAIT_MS, MAX_OPEN_STREAMS, STREAM_RESET_RATE, STREAM_RESET_BURST, STREAM_WINDOW, SESSION_WINDOW, targetOfPath, AGENT_CREDENTIAL_MISSING, fdName, RELAY_ID, DOCKER_DESKTOP_REASON } from './chunk-NFPJ2XC2.js';
36
36
  import { versionAtLeast } from './chunk-SF2TBJBP.js';
37
37
  import { jobAgent, firecrackerArch, MICROVM_ARCHES, FIRECRACKER_VERSION, hostHelperPinned, builderDiskPinned, guestAssetsPinned, runnerAgentNamed, credentialForms, orList, credentialShapes, agentCommands, defaultCommandLine, credentialAgent, GUEST_HELPER_SHA256, GUEST_ASSETS_BASE_URL, GUEST_KERNEL_SHA256, JAILER_BINARY_SHA256, FIRECRACKER_BINARY_SHA256, FIRECRACKER_SHA256, GUEST_ASSETS_VERSION, BUILDER_DISK_VERSION, credentialHandOffKey, strippedVariables, runnerAgents, judgeAgent, networkHelperPinned, NETWORK_HELPER_SHA256, universalImagePinned, UNIVERSAL_IMAGE, FFMPEG_STATIC, FFMPEG_BUILD_TAG, GH_SHA256, GH_VERSION, TINI_SHA256, TINI_VERSION, HEADLESS_SHELL, HEADLESS_SHELL_BASE_URL, PLAYWRIGHT_FFMPEG, PLAYWRIGHT_FFMPEG_BASE_URL, VOICE_PACK_FILES, BUILDER_DISK_SHA256, BUILDER_DISK_BASE_URL, DEFAULT_BASE_IMAGE, agentVersionOf } from './chunk-36M66QKN.js';
@@ -1427,6 +1427,7 @@ function createSandboxPorts(opts, hostEnv) {
1427
1427
  ...opts?.webSocket === void 0 ? {} : { webSocket: opts.webSocket },
1428
1428
  sandboxes: opts?.sandboxes ?? /* @__PURE__ */ new Map(),
1429
1429
  creating: opts?.creating ?? /* @__PURE__ */ new Set(),
1430
+ resuming: opts?.resuming ?? /* @__PURE__ */ new Set(),
1430
1431
  joinSecrets: opts?.joinSecrets ?? /* @__PURE__ */ new Map(),
1431
1432
  sleep: opts?.sleep ?? ((ms) => new Promise((resolve2) => setTimeout(resolve2, ms)))
1432
1433
  };
@@ -3715,7 +3716,7 @@ function itemDiskDir(configPath, organizationId, workItemId) {
3715
3716
  function isRecord2(value) {
3716
3717
  if (typeof value !== "object" || value === null) return false;
3717
3718
  const r = value;
3718
- return typeof r.workItemId === "string" && typeof r.claimId === "string" && typeof r.queue === "string" && typeof r.imageId === "string" && typeof r.diskBytes === "number" && (r.kind === "disk" || r.kind === "volume" && typeof r.volume === "string" || r.kind === "sandbox" && typeof r.volume === "string" && typeof r.snapshot === "string") && typeof r.bytes === "number" && typeof r.keptAt === "string" && Number.isFinite(Date.parse(r.keptAt));
3719
+ return typeof r.workItemId === "string" && typeof r.claimId === "string" && typeof r.queue === "string" && typeof r.imageId === "string" && typeof r.diskBytes === "number" && (r.kind === "disk" || r.kind === "volume" && typeof r.volume === "string" || r.kind === "sandbox" && typeof r.volume === "string" && typeof r.sandbox === "string") && typeof r.bytes === "number" && typeof r.keptAt === "string" && Number.isFinite(Date.parse(r.keptAt));
3719
3720
  }
3720
3721
  function readItemDisk(dir) {
3721
3722
  let parsed;
@@ -3822,11 +3823,11 @@ function itemDiskDecision(input) {
3822
3823
  if (kept.record.kind !== input.backend) return { state: { restored: false, reason: "disk_not_restored" } };
3823
3824
  return { kept, state: { restored: true, fromClaimId: kept.record.claimId } };
3824
3825
  }
3825
- async function discardItemDisk(kept, removeVolume, onError, removeSnapshot) {
3826
+ async function discardItemDisk(kept, removeVolume, onError, endSandbox) {
3826
3827
  try {
3827
- if (kept.record.snapshot !== void 0) {
3828
- if (removeSnapshot === void 0) return onError(`could not remove the snapshot ${kept.record.snapshot} of the kept disk: no sandbox provider is set`);
3829
- await removeSnapshot(kept.record.snapshot);
3828
+ if (kept.record.sandbox !== void 0) {
3829
+ if (endSandbox === void 0) return onError(`could not end the sandbox ${kept.record.sandbox} of the kept disk: no sandbox provider is set`);
3830
+ await endSandbox(kept.record.sandbox);
3830
3831
  }
3831
3832
  if (kept.record.kind === "volume" && kept.record.volume !== void 0) {
3832
3833
  const removed = await removeVolume(kept.record.volume);
@@ -3905,17 +3906,18 @@ function settleFailedSteps(steps, on) {
3905
3906
  return steps.restoreFailed === true ? on.giveUp(steps.reason, steps.fromItemDisk === true) : on.bail(steps.reason, steps.aborted === true);
3906
3907
  }
3907
3908
  async function discardUnusableItemDisk(input) {
3908
- await discardItemDisk(input.kept, input.removeVolume, input.onError, input.removeSnapshot);
3909
+ await discardItemDisk(input.kept, input.removeVolume, input.onError, input.endSandbox);
3909
3910
  return { retryFresh: true, reason: `the kept disk of claim ${shortClaim(input.kept.record.claimId)} could not be used: ${input.reason}`, itemDisk: input.why };
3910
3911
  }
3911
3912
 
3912
3913
  // src/runner/sandbox/sweep.ts
3913
3914
  var RUNNER_METADATA = "outerlayerRunner";
3914
3915
  var BUILD_METADATA = "outerlayerBuild";
3915
- function orphanedSandboxes(sandboxes, runnerId, heldBuilds) {
3916
+ function orphanedSandboxes(sandboxes, runnerId, heldBuilds, heldSandboxes) {
3916
3917
  return sandboxes.filter((sandbox) => {
3917
3918
  if (sandbox.metadata[RUNNER_METADATA] !== runnerId) return false;
3918
3919
  if (sandbox.state === "ended") return false;
3920
+ if (heldSandboxes.has(sandbox.id)) return false;
3919
3921
  const build = sandbox.metadata[BUILD_METADATA];
3920
3922
  return build === void 0 || !heldBuilds.has(build);
3921
3923
  });
@@ -3929,11 +3931,11 @@ async function sweepSandboxes(input) {
3929
3931
  return 0;
3930
3932
  }
3931
3933
  let ended = 0;
3932
- for (const sandbox of orphanedSandboxes(listed, input.runnerId, input.heldBuilds())) {
3934
+ for (const sandbox of orphanedSandboxes(listed, input.runnerId, input.heldBuilds(), input.heldSandboxes())) {
3933
3935
  try {
3934
3936
  await input.client.end(sandbox.id);
3935
3937
  ended++;
3936
- input.log?.(`ended sandbox ${sandbox.id} (${sandbox.name}): no unfinished build holds it`);
3938
+ input.log?.(`ended sandbox ${sandbox.id} (${sandbox.name}): no unfinished build and no kept disk holds it`);
3937
3939
  } catch (err) {
3938
3940
  input.log?.(`could not end sandbox ${sandbox.id}: ${err instanceof Error ? err.message : String(err)}`);
3939
3941
  }
@@ -4115,11 +4117,16 @@ function sandboxNameOf(runnerLabel, buildId) {
4115
4117
  const short = runnerLabel.toLowerCase().replace(/[^a-z0-9]/g, "").slice(0, 8);
4116
4118
  return `ol-${short === "" ? "runner" : short}-${buildId}`;
4117
4119
  }
4118
- function itemSnapshotName(runnerLabel, part = randomBytes(6).toString("hex")) {
4119
- return sandboxNameOf(runnerLabel, `disk-${part}`);
4120
+ function diskImageOf(own, size) {
4121
+ return `${own.snapshot}/${own.image} ${size.vcpu}cpu ${size.memoryMib}mib idle${own.idleMinutes} hosts:${[...own.allowHosts].sort().join(",")}`;
4120
4122
  }
4121
- function diskImageOf(own) {
4122
- return `${own.snapshot}/${own.image}`;
4123
+ async function resumeKeptSandbox(sandboxClient, id, timeLimitMinutes) {
4124
+ const found = await sandboxClient.get(id);
4125
+ if (found.state === "ended" || found.secret === "") throw new Error("the provider ended it");
4126
+ const woke = await sandboxClient.command(found, "true");
4127
+ if (woke.exitCode !== 0) throw new Error(`it did not run a command (exit ${woke.exitCode ?? "none"})`);
4128
+ await sandboxClient.restartTimeLimit(id, timeLimitMinutes);
4129
+ return found;
4123
4130
  }
4124
4131
  var GIB2 = 1024 ** 3;
4125
4132
  async function endUnansweredSandbox(sandboxClient, runnerId, buildId, warn) {
@@ -4259,6 +4266,7 @@ async function keepSandboxDisk(runtime, state, kept) {
4259
4266
  }
4260
4267
  async function cleanupSandbox(runtime, state, keepDisk) {
4261
4268
  const failures = [];
4269
+ let kept = false;
4262
4270
  const relay = runtime.relays.get(state.buildId);
4263
4271
  if (relay !== void 0) {
4264
4272
  runtime.relays.delete(state.buildId);
@@ -4270,11 +4278,12 @@ async function cleanupSandbox(runtime, state, keepDisk) {
4270
4278
  if (keepDisk !== void 0) {
4271
4279
  try {
4272
4280
  await keepSandboxDisk(runtime, state, keepDisk);
4281
+ kept = true;
4273
4282
  } catch (err) {
4274
4283
  keepDisk.warn(`the build's disk was not kept: ${err instanceof SandboxError ? describeSandboxError(err) : describeCallFailure(err)}`);
4275
4284
  }
4276
4285
  }
4277
- if (state.sandboxId !== "") {
4286
+ if (state.sandboxId !== "" && !kept) {
4278
4287
  try {
4279
4288
  await client(runtime).end(state.sandboxId);
4280
4289
  } catch (err) {
@@ -4290,6 +4299,7 @@ async function cleanupSandbox(runtime, state, keepDisk) {
4290
4299
  }
4291
4300
  if (state.container !== void 0) rmSync(state.container.buildDir, { recursive: true, force: true });
4292
4301
  if (failures.length > 0) throw new Error(failures.join("; "));
4302
+ return kept;
4293
4303
  }
4294
4304
  async function provisionSandbox(input) {
4295
4305
  const tag = itemTag({ item: input.item.number, organizationId: input.organizationId, claimId: input.claimId });
@@ -4333,7 +4343,7 @@ async function provisionSandboxOnce(input, itemDiskFailed) {
4333
4343
  });
4334
4344
  if (unfetched !== void 0) return fail(unfetched);
4335
4345
  }
4336
- const diskKey = { imageId: diskImageOf(own), diskBytes: sized.size.diskGib * GIB2 };
4346
+ const diskKey = { imageId: diskImageOf(own, sized.size), diskBytes: sized.size.diskGib * GIB2 };
4337
4347
  const itemDisk = input.workItemId === void 0 ? { state: void 0 } : itemDiskFailed !== void 0 ? { state: { restored: false, reason: itemDiskFailed } } : itemDiskDecision({ fresh: input.fresh, heldElsewhere: input.diskHeldElsewhere, builtin: true, backend: "sandbox", configPath: config.configPath, organizationId: input.organizationId, workItemId: input.workItemId, repository, ...diskKey });
4338
4348
  const keptDisk = itemDisk.kept;
4339
4349
  if (itemDisk.state?.restored === false) log.line(`${tag} this job starts without a kept disk: ${DISK_REASON_TEXT[itemDisk.state.reason]}`);
@@ -4390,7 +4400,7 @@ async function provisionSandboxOnce(input, itemDiskFailed) {
4390
4400
  };
4391
4401
  const giveUpItemDisk = async (reason, why) => {
4392
4402
  await bail(reason);
4393
- return discardUnusableItemDisk({ kept: keptDisk, reason, why, removeVolume: async () => void 0, removeSnapshot: (snapshot) => sandboxClient.removeSnapshot(snapshot), onError: (line2) => log.error(`${tag} ${line2}`) });
4403
+ return discardUnusableItemDisk({ kept: keptDisk, reason, why, removeVolume: async () => void 0, endSandbox: (id) => sandboxClient.end(id), onError: (line2) => log.error(`${tag} ${line2}`) });
4394
4404
  };
4395
4405
  if (input.aborted()) return bail("", true);
4396
4406
  mkdirSync(buildDir2, { recursive: true });
@@ -4422,12 +4432,23 @@ async function provisionSandboxOnce(input, itemDiskFailed) {
4422
4432
  return bail(`the tunnel could not start: ${describeCallFailure(err)}`);
4423
4433
  }
4424
4434
  if (input.aborted()) return bail("", true);
4435
+ let resumed;
4436
+ const keptSandbox = keptDisk?.record.sandbox;
4437
+ if (keptSandbox !== void 0) {
4438
+ runtime.sandbox.resuming.add(keptSandbox);
4439
+ try {
4440
+ resumed = await resumeKeptSandbox(sandboxClient, keptSandbox, sandboxTimeLimitMinutes(config.timeLimitMinutes));
4441
+ } catch (err) {
4442
+ runtime.sandbox.resuming.delete(keptSandbox);
4443
+ return giveUpItemDisk(`the kept sandbox ${keptSandbox} could not be resumed: ${err instanceof SandboxError ? describeSandboxError(err) : describeCallFailure(err)}`, "disk_not_restored");
4444
+ }
4445
+ }
4425
4446
  let sandbox;
4426
4447
  runtime.sandbox.creating.add(buildId);
4427
4448
  try {
4428
- sandbox = await sandboxClient.create({
4449
+ sandbox = resumed ?? await sandboxClient.create({
4429
4450
  name,
4430
- from: keptDisk?.record.snapshot ?? own.snapshot,
4451
+ from: own.snapshot,
4431
4452
  ...sized.size,
4432
4453
  idleMinutes: own.idleMinutes,
4433
4454
  timeLimitMinutes: sandboxTimeLimitMinutes(config.timeLimitMinutes),
@@ -4438,7 +4459,6 @@ async function provisionSandboxOnce(input, itemDiskFailed) {
4438
4459
  if (err instanceof SandboxError && err.status === 0) await endUnansweredSandbox(sandboxClient, runnerId, buildId, (line2) => log.error(`${tag} ${line2}`));
4439
4460
  runtime.sandbox.creating.delete(buildId);
4440
4461
  const refused2 = `The provider refused to create the sandbox: ${err instanceof SandboxError ? describeSandboxError(err) : describeCallFailure(err)}`;
4441
- if (keptDisk !== void 0 && err instanceof SandboxError && err.status === 404) return giveUpItemDisk(refused2, "disk_not_restored");
4442
4462
  return bail(refused2);
4443
4463
  }
4444
4464
  runtime.sandbox.sandboxes.set(buildId, sandbox);
@@ -4446,8 +4466,8 @@ async function provisionSandboxOnce(input, itemDiskFailed) {
4446
4466
  state.dataPlaneUrl = sandbox.dataPlaneUrl;
4447
4467
  input.save(state, environment);
4448
4468
  runtime.sandbox.creating.delete(buildId);
4449
- log.line(`${tag} sandbox ${sandbox.id} created \xB7 ${name}`);
4450
- if (keptDisk !== void 0) log.line(`${tag} restored the disk that claim ${shortClaim(keptDisk.record.claimId)} kept: snapshot ${keptDisk.record.snapshot}`);
4469
+ runtime.sandbox.resuming.delete(sandbox.id);
4470
+ log.line(resumed === void 0 ? `${tag} sandbox ${sandbox.id} created \xB7 ${name}` : `${tag} restored the disk that claim ${shortClaim(keptDisk.record.claimId)} kept: sandbox ${sandbox.id} resumed`);
4451
4471
  if (input.aborted()) return bail("", true);
4452
4472
  const sandboxed = runtimeInSandbox(runtime, sandbox);
4453
4473
  const { host } = sandboxed;
@@ -4567,7 +4587,7 @@ async function provisionSandboxOnce(input, itemDiskFailed) {
4567
4587
  removeStagedContext: () => removeStagedContext(buildDir2),
4568
4588
  keepIn: jobDir,
4569
4589
  ...input.requireBuildSkill === true ? { requireBuildSkill: true } : {},
4570
- // The image in the snapshot is the universal image, so the build chooses and installs its runtimes.
4590
+ // The image in the sandbox is the universal image, so the build chooses and installs its runtimes.
4571
4591
  ...runtimeStepInput({ base: {} }, services),
4572
4592
  // A kept disk holds the checkouts already: each is switched to the branch, and keeps its untracked files.
4573
4593
  setup: { timeoutMs: setupMinutes * 6e4, limitMinutes: setupMinutes, restored: false, ...keptDisk === void 0 ? {} : { restored: true, fromItemDisk: true } }
@@ -4637,6 +4657,20 @@ async function startSandboxCommand(input) {
4637
4657
  throw new Error(`docker exec exited ${started.status}${first === "" ? "" : `: ${first}`}`);
4638
4658
  }
4639
4659
  }
4660
+ var SANDBOX_SENDER_LOG = "/tmp/outerlayer-session-sender.log";
4661
+ async function startSandboxSender(input) {
4662
+ const runtime = await inSandbox(input.runtime, input.job.sandbox);
4663
+ const exec = containerSenderExec({ job: asContainerJob(input.job), runtime, config: input.config });
4664
+ const started = await runtime.host.execDetached({ ...exec, argv: ["/bin/sh", "-c", `exec outerlayer session-sender >> ${SANDBOX_SENDER_LOG} 2>&1`] });
4665
+ if (started.status !== 0) {
4666
+ const first = started.stderr.trim().split("\n")[0] ?? "";
4667
+ throw new Error(`docker exec exited ${started.status}${first === "" ? "" : `: ${first}`}`);
4668
+ }
4669
+ }
4670
+ async function shInSandboxBuild(runtime, state, script) {
4671
+ const sandboxed = await inSandbox(runtime, state);
4672
+ return sandboxed.host.exec({ container: state.container.container, user: state.container.agentUser ?? ADDED_USER, env: NO_ENV, argv: ["/bin/sh", "-c", script] }, { timeoutMs: 6e4 });
4673
+ }
4640
4674
  async function probeSandboxCommand(runtime, state, offset) {
4641
4675
  let sandboxed;
4642
4676
  try {
@@ -7397,6 +7431,9 @@ async function closeHostBuild(runtime, build) {
7397
7431
  var STOP_WAIT_MS2 = 3e4;
7398
7432
  var POLL_MS2 = 200;
7399
7433
  var ASK_AGAIN_MS = 1e3;
7434
+ var SANDBOX_POLL_MS = 500;
7435
+ var SANDBOX_UNREACHED_ASKS = 5;
7436
+ var SANDBOX_LOG_BYTES = 65536;
7400
7437
  var EXIT_REPORT_WAIT_MS = 2e3;
7401
7438
  var exitsLogged = /* @__PURE__ */ new Map();
7402
7439
  var BUILD_HOME2 = "/build/home";
@@ -7404,7 +7441,15 @@ async function startSender(input) {
7404
7441
  const { config, job, jobDir, deps } = input;
7405
7442
  const tag = `${itemTag(job)}`;
7406
7443
  if (job.itemKey === void 0) return void 0;
7407
- if (job.sandbox !== void 0) return void 0;
7444
+ if (job.sandbox !== void 0) {
7445
+ try {
7446
+ await startSandboxSender({ config, job, runtime: deps.runtime ?? createContainerRuntime() });
7447
+ deps.log.line(`${tag} session sender started \xB7 in sandbox ${job.sandbox.sandboxId}`);
7448
+ } catch (err) {
7449
+ deps.log.error(`${tag} session sender did not start: ${describeCallFailure(err)} \xB7 continuing`);
7450
+ }
7451
+ return void 0;
7452
+ }
7408
7453
  const spawnFn = deps.spawnFn ?? spawn;
7409
7454
  try {
7410
7455
  const launch = launchFor(config, job, jobDir, deps);
@@ -7459,6 +7504,7 @@ function launchFor(config, job, jobDir, deps) {
7459
7504
  }
7460
7505
  async function restartSender(input) {
7461
7506
  const { job, deps } = input;
7507
+ if (job.sandbox !== void 0) return await sandboxSenderRuns(job, deps) ? void 0 : startSender(input);
7462
7508
  const state = job.container;
7463
7509
  if (state !== void 0 && job.itemKey !== void 0) {
7464
7510
  const runtime = deps.runtime ?? createContainerRuntime();
@@ -7522,8 +7568,52 @@ async function exitReported(pid) {
7522
7568
  clearTimeout(timer);
7523
7569
  exitsLogged.delete(pid);
7524
7570
  }
7571
+ async function sandboxSenderAlive(job, runtime) {
7572
+ const probe = await shInSandboxBuild(runtime, job.sandbox, senderAliveScript(senderPidfile(BUILD_HOME2, pidfileKey(job))));
7573
+ return probe.status === 0 && probe.stdout.trim() === "alive";
7574
+ }
7575
+ async function sandboxSenderRuns(job, deps) {
7576
+ if (job.itemKey === void 0) return false;
7577
+ try {
7578
+ return await sandboxSenderAlive(job, deps.runtime ?? createContainerRuntime());
7579
+ } catch {
7580
+ return false;
7581
+ }
7582
+ }
7583
+ async function stopSandboxSender(input) {
7584
+ const { job, deps } = input;
7585
+ if (job.itemKey === void 0) return;
7586
+ const tag = `${itemTag(job)}`;
7587
+ const runtime = deps.runtime ?? createContainerRuntime();
7588
+ const sleep = deps.sleep ?? ((ms) => new Promise((resolve2) => setTimeout(resolve2, ms)));
7589
+ const pidfile = senderPidfile(BUILD_HOME2, pidfileKey(job));
7590
+ const signal = async (name) => (await shInSandboxBuild(runtime, job.sandbox, senderSignalScript(pidfile, name))).status === 0;
7591
+ try {
7592
+ const asks = Math.ceil((deps.waitMs ?? STOP_WAIT_MS2) / SANDBOX_POLL_MS);
7593
+ let reached = false;
7594
+ let gone = false;
7595
+ for (let asked = 0; asked < asks && !gone; asked += 1) {
7596
+ if (reached) gone = !await sandboxSenderAlive(job, runtime);
7597
+ else {
7598
+ reached = await signal("TERM");
7599
+ if (!reached && asked + 1 >= SANDBOX_UNREACHED_ASKS) break;
7600
+ }
7601
+ if (!gone) await sleep(SANDBOX_POLL_MS);
7602
+ }
7603
+ if (reached && !gone) {
7604
+ deps.log.error(`${tag} session sender did not stop in time \xB7 killing it`);
7605
+ await signal("KILL");
7606
+ }
7607
+ if (reached) deps.log.line(`${tag} session sender stopped \xB7 see sender.log`);
7608
+ const wrote = await shInSandboxBuild(runtime, job.sandbox, `tail -c ${SANDBOX_LOG_BYTES} ${SANDBOX_SENDER_LOG} 2>/dev/null`);
7609
+ if (wrote.stdout !== "") appendFileSync(join(input.jobDir, "sender.log"), wrote.stdout, { mode: RUNNER_FILE_MODE });
7610
+ } catch (err) {
7611
+ deps.log.error(`${tag} stopping the session sender failed: ${describeCallFailure(err)} \xB7 continuing`);
7612
+ }
7613
+ }
7525
7614
  async function stopSender(input) {
7526
7615
  const { job, deps } = input;
7616
+ if (job.sandbox !== void 0) return stopSandboxSender(input);
7527
7617
  const sender = job.sender;
7528
7618
  if (sender === void 0) return;
7529
7619
  const tag = `${itemTag(job)}`;
@@ -7786,34 +7876,29 @@ async function keepSandboxDisk2(input) {
7786
7876
  } catch (err) {
7787
7877
  return { ok: false, reason: describeCallFailure(err) };
7788
7878
  }
7789
- const { client: client2, snapshotName } = input;
7790
- const dropNew = async () => {
7879
+ const { client: client2, sandboxId } = input;
7880
+ try {
7881
+ await client2.pause(sandboxId);
7882
+ } catch (err) {
7883
+ return { ok: false, reason: `the sandbox could not be paused: ${saidBy(err)}` };
7884
+ }
7885
+ const older = readItemDisk(dir)?.record.sandbox;
7886
+ if (older !== void 0 && older !== sandboxId) {
7791
7887
  try {
7792
- await client2.removeSnapshot(snapshotName);
7888
+ await client2.end(older);
7793
7889
  } catch (err) {
7794
- input.log(`the snapshot ${snapshotName} could not be removed (${saidBy(err)}); remove it at the sandbox provider`);
7890
+ return { ok: false, reason: `the work item's older disk could not be replaced: its sandbox ${older} was not ended (${saidBy(err)})` };
7795
7891
  }
7796
- };
7892
+ }
7797
7893
  let staging;
7798
7894
  try {
7799
- const saved = await client2.saveSnapshot(input.sandboxId, snapshotName);
7800
- const record = { ...recordOf(input, "sandbox", 0, input.buildVolume), snapshot: snapshotName, storedBytes: saved.storedBytes };
7801
- const older = readItemDisk(dir);
7802
- if (older?.record.snapshot !== void 0) {
7803
- try {
7804
- await client2.removeSnapshot(older.record.snapshot);
7805
- } catch (err) {
7806
- await dropNew();
7807
- return { ok: false, reason: `the work item's older disk could not be replaced: its snapshot ${older.record.snapshot} was not removed (${saidBy(err)})` };
7808
- }
7809
- }
7895
+ const record = { ...recordOf(input, "sandbox", 0, input.buildVolume), sandbox: sandboxId };
7810
7896
  staging = stagingItemDiskDir(dir);
7811
7897
  finish(input, dir, staging, record);
7812
7898
  staging = void 0;
7813
7899
  return { ok: true, record };
7814
7900
  } catch (err) {
7815
- await dropNew();
7816
- return { ok: false, reason: `the sandbox could not be saved: ${saidBy(err)}` };
7901
+ return { ok: false, reason: `the record of the kept sandbox could not be written: ${describeCallFailure(err)}` };
7817
7902
  } finally {
7818
7903
  if (staging !== void 0) rmSync(staging, { recursive: true, force: true });
7819
7904
  }
@@ -7894,9 +7979,9 @@ function sandboxDiskKeeper(input) {
7894
7979
  const { imageId, diskBytes } = state.diskKey;
7895
7980
  const { sandboxId } = state;
7896
7981
  const keep = async () => {
7897
- const kept = await keepSandboxDisk2({ ...target(input, imageId, diskBytes), client: input.client(), sandboxId, snapshotName: input.snapshotName, buildVolume: state.container.volume });
7982
+ const kept = await keepSandboxDisk2({ ...target(input, imageId, diskBytes), client: input.client(), sandboxId, buildVolume: state.container.volume });
7898
7983
  if (!kept.ok) throw new Error(kept.reason);
7899
- input.log.line(`${input.tag} kept the build disk for the work item: snapshot ${kept.record.snapshot} of sandbox ${sandboxId}, ${formatBytes(kept.record.storedBytes)} stored`);
7984
+ input.log.line(`${input.tag} kept the build disk for the work item: sandbox ${sandboxId} is paused`);
7900
7985
  };
7901
7986
  return {
7902
7987
  container: state.container.container,
@@ -9302,8 +9387,8 @@ async function finishJob(job, jobDirPath, outcome, config, deps, ending) {
9302
9387
  const isRun = job.queue === "run";
9303
9388
  deps.attemptLogs?.open(job.item, jobDirPath, itemScope(job));
9304
9389
  const valuesNotHeld = (job.managedVariables?.length ?? 0) > 0 && managedBuildSettingsFor(jobDirPath) === void 0;
9390
+ await stopSender({ job, jobDir: jobDirPath, deps: { spawnFn, runtime: deps.container, log } });
9305
9391
  if (job.sender !== void 0) {
9306
- await stopSender({ job, deps: { spawnFn, runtime: deps.container, log } });
9307
9392
  delete job.sender;
9308
9393
  writeJobFile(jobFilePath, job);
9309
9394
  }
@@ -9543,12 +9628,12 @@ async function finishJob(job, jobDirPath, outcome, config, deps, ending) {
9543
9628
  tunnelRecord = sandboxBuild.runtime.tunnels.get(sandboxBuild.state.buildId)?.record();
9544
9629
  try {
9545
9630
  const sandboxRuntime = sandboxBuild.runtime;
9546
- await cleanupSandbox(
9631
+ const kept = await cleanupSandbox(
9547
9632
  sandboxRuntime,
9548
9633
  sandboxBuild.state,
9549
- sandboxDiskKeeper({ job, config, runtime: sandboxRuntime, now, log, tag, jobDirPath, client: () => sandboxRuntime.sandbox.client(), snapshotName: itemSnapshotName(runnerLabelValue(config.configPath)) })
9634
+ sandboxDiskKeeper({ job, config, runtime: sandboxRuntime, now, log, tag, jobDirPath, client: () => sandboxRuntime.sandbox.client() })
9550
9635
  );
9551
- log.line(`${tag} ended sandbox ${sandboxBuild.state.sandboxId}`);
9636
+ if (!kept) log.line(`${tag} ended sandbox ${sandboxBuild.state.sandboxId}`);
9552
9637
  } catch (err) {
9553
9638
  cleanedUp = false;
9554
9639
  log.error(`${tag} cleanup failed: ${describeCallFailure(err)} \xB7 continuing`);
@@ -10048,11 +10133,14 @@ var bytesOf = (entries) => entries.reduce((sum, entry) => sum + entry.kept.recor
10048
10133
  function allEntries(configPath) {
10049
10134
  return storeScopes(configPath).flatMap((scope) => listItemDisks(configPath, scope).map((kept) => ({ scope, kept })));
10050
10135
  }
10051
- async function removeEntry(entry, removeVolume, removeSnapshot) {
10136
+ function keptSandboxIds(configPath) {
10137
+ return allEntries(configPath).flatMap((entry) => entry.kept.record.sandbox === void 0 ? [] : [entry.kept.record.sandbox]);
10138
+ }
10139
+ async function removeEntry(entry, removeVolume, endSandbox) {
10052
10140
  const { record, dir } = entry.kept;
10053
- if (record.snapshot !== void 0) {
10054
- if (removeSnapshot === void 0) throw new Error("no sandbox provider is set");
10055
- await removeSnapshot(record.snapshot);
10141
+ if (record.sandbox !== void 0) {
10142
+ if (endSandbox === void 0) throw new Error("no sandbox provider is set");
10143
+ await endSandbox(record.sandbox);
10056
10144
  }
10057
10145
  if (record.kind === "volume" && record.volume !== void 0) {
10058
10146
  if (removeVolume === void 0) throw new Error("Docker is not available");
@@ -10089,8 +10177,10 @@ async function removeItemDisks(input) {
10089
10177
  }
10090
10178
  const gone = /* @__PURE__ */ new Set();
10091
10179
  const remove = async (entry, why) => {
10180
+ const { sandbox } = entry.kept.record;
10181
+ if (sandbox !== void 0 && input.sandboxesInUse?.().has(sandbox) === true) return;
10092
10182
  try {
10093
- await removeEntry(entry, input.removeVolume, input.removeSnapshot);
10183
+ await removeEntry(entry, input.removeVolume, input.endSandbox);
10094
10184
  gone.add(entry);
10095
10185
  freed += entry.kept.record.bytes;
10096
10186
  input.log(`housekeeping: removed the kept disk of work item ${entry.kept.record.workItemId} (${formatBytes(entry.kept.record.bytes)}), ${why}`);
@@ -10402,7 +10492,8 @@ async function runHousekeeping(options) {
10402
10492
  limits: { max: options.workspaceMax ?? Number.POSITIVE_INFINITY, orgMax: options.workspaceOrgMax ?? Number.POSITIVE_INFINITY, keepDays: options.workspaceKeepDays ?? DEFAULT_WORKSPACE_KEEP_DAYS },
10403
10493
  nowMs,
10404
10494
  removeVolume: options.docker === void 0 ? void 0 : (name) => options.docker.removeVolume(name),
10405
- removeSnapshot: options.removeSnapshot,
10495
+ endSandbox: options.endSandbox,
10496
+ sandboxesInUse: options.sandboxesInUse,
10406
10497
  ...options.itemStates === void 0 ? {} : { itemStates: options.itemStates },
10407
10498
  log: (line2) => options.log.line(line2),
10408
10499
  error: (line2) => options.log.error(line2)
@@ -12407,7 +12498,7 @@ function containerCommandExec(input) {
12407
12498
  detached: true
12408
12499
  };
12409
12500
  }
12410
- function containerSenderCommand(input) {
12501
+ function containerSenderExec(input) {
12411
12502
  const state = input.job.container;
12412
12503
  const env = buildEnvironment({
12413
12504
  config: claimCalls(input.config, input.job),
@@ -12427,14 +12518,11 @@ function containerSenderCommand(input) {
12427
12518
  builtIns: state.builtIns === true,
12428
12519
  identity: input.job.commitIdentity
12429
12520
  });
12430
- const args = containerExecArgs({
12431
- container: state.container,
12432
- user: state.agentUser ?? ADDED_USER,
12433
- workdir: CHECKOUT_DIR,
12434
- env,
12435
- argv: ["outerlayer", "session-sender"]
12436
- });
12437
- return { command: "docker", args: ["exec", ...args], env: { ...childEnvironment(input.runtime.hostEnv), ...env.passed } };
12521
+ return { container: state.container, user: state.agentUser ?? ADDED_USER, workdir: CHECKOUT_DIR, env, argv: ["outerlayer", "session-sender"] };
12522
+ }
12523
+ function containerSenderCommand(input) {
12524
+ const exec = containerSenderExec(input);
12525
+ return { command: "docker", args: ["exec", ...containerExecArgs(exec)], env: { ...childEnvironment(input.runtime.hostEnv), ...exec.env.passed } };
12438
12526
  }
12439
12527
  function senderSignalScript(pidfile, signal) {
12440
12528
  const file = shellQuote(pidfile);
@@ -13399,4 +13487,4 @@ async function runHostChecks(input) {
13399
13487
  }
13400
13488
  }
13401
13489
 
13402
- export { ADOPTED_FETCH_RETRY_WINDOW_MS, ALREADY_RELEASED, AttemptLogBook, CRITERIA_CHECK, 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, SandboxGoneError, agentCredentialCheck, appendCommandLog, attemptNote, builtOf, checksIn, claimPermissionProblem, claimRun, commandItems, commandLogOffset, containerCommandExec, createContainerRuntime, createHousekeepingDocker, createLeaseChannel, currentSkillCommand, decideHostBuildSkill, deliverCommitHooks, deliverContainerHooks, deliverExecMaven, deliverJobFiles, deliverSandboxHooks, 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, inSandbox, inTeardown, installTrust, isContainerTracked, isGroupAlive, isIdle, isIsolatedJob, isJudgeCheck, isMicroVmTracked, isPlaceholderCommand, isReadable, isSandboxTracked, isTimedOut, isTracked, isUnfinished, itemScope, itemTag, jobEnv, jobRecordsClaim, judgeProbe, keepGhConfigCurrent, keptCommitsLine, leaseExpiresAtMs, leaseTimeLeftMs, lifecycleFailureReason, lifecycleSteps, listAdoptableJobs, listItemDisks, 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, probeSandboxCommand, provisionContainer, provisionEnvironment, provisionMicroVm, provisionSandbox, reachDockerStep, readConfigObject, readCpuUsec, readDefinitions, readProvisionOut, readRecords, recordsProofsOnly, recoverLostJobs, releaseLease, removeOldestUntil, renewLease, renewRun, resolveHostBuild, restartSender, restoreSessionIntoContainer, restoreSessionIntoMicroVm, retryFailedReleases, runCommand, runCommandOf, runHook, runHostChecks, runHousekeeping, runIsolation, runRunnerInit, runWithSpawn, sampleGuest, savedStatesDir, scrubReason, serveLease, setStage, setUpRunnerCgroup, shellQuote, startHostServices, startMicroVmCommand, startSandboxCommand, startSender, startServicesFor, stopOrphanedMicroVms, stoppedHelperReason, stripTerminalControls, supportsContainerBuilds, supportsMicroVmBuilds, sweepImageBuilders, sweepSandboxes, testProofIn, timeoutAfter, unfinishedJobs, usableCpus, vmAlive, withTunnelLog, workdirProblem, writeGuestGhConfig, writeRunnerInit };
13490
+ export { ADOPTED_FETCH_RETRY_WINDOW_MS, ALREADY_RELEASED, AttemptLogBook, CRITERIA_CHECK, 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, SandboxGoneError, agentCredentialCheck, appendCommandLog, attemptNote, builtOf, checksIn, claimPermissionProblem, claimRun, commandItems, commandLogOffset, containerCommandExec, createContainerRuntime, createHousekeepingDocker, createLeaseChannel, currentSkillCommand, decideHostBuildSkill, deliverCommitHooks, deliverContainerHooks, deliverExecMaven, deliverJobFiles, deliverSandboxHooks, 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, inSandbox, inTeardown, installTrust, isContainerTracked, isGroupAlive, isIdle, isIsolatedJob, isJudgeCheck, isMicroVmTracked, isPlaceholderCommand, isReadable, isSandboxTracked, isTimedOut, isTracked, isUnfinished, itemScope, itemTag, jobEnv, jobRecordsClaim, judgeProbe, keepGhConfigCurrent, keptCommitsLine, keptSandboxIds, leaseExpiresAtMs, leaseTimeLeftMs, lifecycleFailureReason, lifecycleSteps, listAdoptableJobs, listItemDisks, 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, probeSandboxCommand, provisionContainer, provisionEnvironment, provisionMicroVm, provisionSandbox, reachDockerStep, readConfigObject, readCpuUsec, readDefinitions, readProvisionOut, readRecords, recordsProofsOnly, recoverLostJobs, releaseLease, removeOldestUntil, renewLease, renewRun, resolveHostBuild, restartSender, restoreSessionIntoContainer, restoreSessionIntoMicroVm, retryFailedReleases, runCommand, runCommandOf, runHook, runHostChecks, runHousekeeping, runIsolation, runRunnerInit, runWithSpawn, sampleGuest, savedStatesDir, scrubReason, serveLease, setStage, setUpRunnerCgroup, shellQuote, startHostServices, startMicroVmCommand, startSandboxCommand, startSender, startServicesFor, stopOrphanedMicroVms, stoppedHelperReason, stripTerminalControls, supportsContainerBuilds, supportsMicroVmBuilds, sweepImageBuilders, sweepSandboxes, testProofIn, timeoutAfter, unfinishedJobs, usableCpus, vmAlive, withTunnelLog, workdirProblem, writeGuestGhConfig, writeRunnerInit };
@@ -1,9 +1,9 @@
1
1
  #!/usr/bin/env node
2
2
  import { createRequire } from 'node:module';
3
- import { TUNNEL_PORT, BRIDGE_ADDRESS, BRIDGE_CIDR } from './chunk-ZTH5HHYS.js';
3
+ import { TUNNEL_PORT, BRIDGE_ADDRESS, BRIDGE_CIDR } from './chunk-BIMHESZG.js';
4
4
  import { startTimeOf } from './chunk-JBJTC3UU.js';
5
- import { EXEC_PORT } from './chunk-XEFOBPG3.js';
6
- import { RELAY_PORT } from './chunk-ZW36EULQ.js';
5
+ import { EXEC_PORT } from './chunk-33XLQIV4.js';
6
+ import { RELAY_PORT } from './chunk-SIGBRVEF.js';
7
7
  import { spawn, spawnSync } from 'child_process';
8
8
  import { symlinkSync, lstatSync, writeFileSync, chmodSync, mkdirSync, existsSync } from 'fs';
9
9
 
@@ -1,7 +1,7 @@
1
1
  #!/usr/bin/env node
2
2
  import { createRequire } from 'node:module';
3
3
  import { readCloudConfigStrict, readCloudConfig, cloudConfigPath } from './chunk-HWVMRETT.js';
4
- import { signRunnerRequest, signerFor } from './chunk-HKP33YSC.js';
4
+ import { signRunnerRequest, signerFor } from './chunk-ZQII2ZRP.js';
5
5
  import { readRepoConnection, findGitDirs } from './chunk-BJ3KTMDH.js';
6
6
  import { PLAIN_VERSION, recordCliVersion, removeRecordedVersion } from './chunk-I45HTSSA.js';
7
7
  import { cliInvocation } from './chunk-FZKNTIOJ.js';
@@ -1,6 +1,6 @@
1
1
  #!/usr/bin/env node
2
2
  import { createRequire } from 'node:module';
3
- import { BUILD_HOME } from './chunk-ZW36EULQ.js';
3
+ import { BUILD_HOME } from './chunk-SIGBRVEF.js';
4
4
  import { readdirSync } from 'fs';
5
5
  import { join, dirname } from 'path';
6
6
 
@@ -1,9 +1,9 @@
1
1
  #!/usr/bin/env node
2
2
  import { createRequire } from 'node:module';
3
3
  import { detectActiveSession } from './chunk-MOA4PGYL.js';
4
- import { autoConnect } from './chunk-AABLA7NP.js';
4
+ import { autoConnect } from './chunk-VCNY5VAF.js';
5
5
  import { C } from './chunk-2AM6Z5BP.js';
6
- import { defaultFetch, unauthorizedMessage, resolveGatewayCredentials } from './chunk-OFZ5A2A5.js';
6
+ import { defaultFetch, unauthorizedMessage, resolveGatewayCredentials } from './chunk-DKTXQ7XQ.js';
7
7
  import { parseWorkItemEnv } from './chunk-LGJ56FCM.js';
8
8
  import { parseTrackerNumber, trackerNumberError } from './chunk-WZBHBH3J.js';
9
9
  import { homeFromEnv } from './chunk-352DHUTP.js';
@@ -1,12 +1,12 @@
1
1
  #!/usr/bin/env node
2
2
  import { createRequire } from 'node:module';
3
- import { WorkCommandError, postJson } from './chunk-I6RBMWDV.js';
4
- import { defaultGitRunner, materializeContext, fetchControlPlaneCommit, lookupGoverningSource } from './chunk-4GJPOZXO.js';
3
+ import { WorkCommandError, postJson } from './chunk-QOP2CYYY.js';
4
+ import { defaultGitRunner, materializeContext, fetchControlPlaneCommit, lookupGoverningSource } from './chunk-36XB56GG.js';
5
5
  import { buildRefusalReason } from './chunk-RHPEAVKR.js';
6
6
  import { unsupportedLayout, layoutRefusalReason, composeDelivery } from './chunk-WV4T6ZOQ.js';
7
- import { signingFetchFor } from './chunk-OFZ5A2A5.js';
8
- import { signerFor } from './chunk-HKP33YSC.js';
9
- import { SHIM_DIR, stagedContextDir, contextHomeDir, deliveryDir, keptContextDir } from './chunk-5YJWKIIO.js';
7
+ import { signingFetchFor } from './chunk-DKTXQ7XQ.js';
8
+ import { signerFor } from './chunk-ZQII2ZRP.js';
9
+ import { SHIM_DIR, stagedContextDir, contextHomeDir, deliveryDir, keptContextDir } from './chunk-DULO2L5B.js';
10
10
  import { SHIM_SCRIPT, shimScriptFor, GOVERNANCE_VARIABLE } from './chunk-SF2TBJBP.js';
11
11
  import { readDegraded, readContextManifest, readSourceCache } from './chunk-YQR6E6OV.js';
12
12
  import { fstatSync, mkdirSync, writeFileSync, chmodSync, rmSync, cpSync, readFileSync, existsSync, lstatSync } from 'fs';
@@ -3,7 +3,7 @@ import { createRequire } from 'node:module';
3
3
  import { sanitizeTerminal } from './chunk-QHYCF36K.js';
4
4
  import { mcpFiles, skillLinkFolders, isAgentsMdLayout } from './chunk-3BEMKOFH.js';
5
5
  import { DEFAULT_DASHBOARD } from './chunk-N3KGXHV4.js';
6
- import { cliFetch, resolveGatewayCredentials } from './chunk-OFZ5A2A5.js';
6
+ import { cliFetch, resolveGatewayCredentials } from './chunk-DKTXQ7XQ.js';
7
7
  import { readCloudConfig } from './chunk-HWVMRETT.js';
8
8
  import { findGitDirs, writeRepoConnection, readRepoConnection } from './chunk-BJ3KTMDH.js';
9
9
  import { cliInvocation } from './chunk-FZKNTIOJ.js';
@@ -1,7 +1,7 @@
1
1
  #!/usr/bin/env node
2
2
  import { createRequire } from 'node:module';
3
- import { DEFAULT_UNIT_NAME } from './chunk-F3NABQVP.js';
4
- import { RUNNER_FILE_MODE } from './chunk-5YJWKIIO.js';
3
+ import { DEFAULT_UNIT_NAME } from './chunk-4AEOP5PD.js';
4
+ import { RUNNER_FILE_MODE } from './chunk-DULO2L5B.js';
5
5
  import { parseRunnerEnv, withoutCredentialLines } from './chunk-NFPJ2XC2.js';
6
6
  import { headlessNames, runnerAgentNamed, credentialAgent, orList, credentialShapes, runnerAgents, credentialForms, credentialEnvPath, forwardedVariables } from './chunk-36M66QKN.js';
7
7
  import { defaultAgents } from './chunk-PDPBWX67.js';
@@ -1,7 +1,7 @@
1
1
  #!/usr/bin/env node
2
2
  import { createRequire } from 'node:module';
3
- import { parseSize, BUILD_LABEL, RUNNER_LABEL, runnerLabelValue } from './chunk-S6VT3TNG.js';
4
- import { buildsDir, storeScopes, rootfsDir, orgStoreIn, runnerDir, imagesDir, builderCacheDiskPath } from './chunk-5YJWKIIO.js';
3
+ import { parseSize, BUILD_LABEL, RUNNER_LABEL, runnerLabelValue } from './chunk-6BXJESQF.js';
4
+ import { buildsDir, storeScopes, rootfsDir, orgStoreIn, runnerDir, imagesDir, builderCacheDiskPath } from './chunk-DULO2L5B.js';
5
5
  import { spawnSync } from 'child_process';
6
6
  import { statfsSync, statSync, existsSync, readdirSync } from 'fs';
7
7
  import { dirname, join } from 'path';