@outerlayer/cli 0.41.0-next.20261118010146 → 0.41.0-next.20261118011624

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 (141) hide show
  1. package/dist/{agent-credential-JN5VDRUX.js → agent-credential-WCHRKI5G.js} +2 -2
  2. package/dist/{agent-setup-7A66WE3X.js → agent-setup-ISSLHGJC.js} +10 -10
  3. package/dist/{agent-subcommand-AE42NSHC.js → agent-subcommand-5N44GBJ7.js} +1 -1
  4. package/dist/{bridge-PJTQ3XHE.js → bridge-5VAASNNJ.js} +5 -5
  5. package/dist/{build-IY6V7WPQ.js → build-PF4W2ASA.js} +11 -11
  6. package/dist/{build-disk-NUH6XJI5.js → build-disk-MSTWSDIT.js} +9 -9
  7. package/dist/build-info.json +1 -1
  8. package/dist/{builder-2VPG6AQO.js → builder-5PJVNQYN.js} +8 -8
  9. package/dist/{caller-NFJUALRD.js → caller-XLTD6RGV.js} +11 -11
  10. package/dist/{check-XEFPJ5QV.js → check-CXBD4VRL.js} +43 -41
  11. package/dist/{chunk-NPVIEJX6.js → chunk-2E5YBULG.js} +1 -1
  12. package/dist/{chunk-QFGKTIPS.js → chunk-3ZBBHCAW.js} +3 -3
  13. package/dist/{chunk-Y5IJTSFC.js → chunk-475AL6JE.js} +2 -2
  14. package/dist/{chunk-H6V5NFPW.js → chunk-4Y4MZCAV.js} +5 -5
  15. package/dist/{chunk-D5TZYUGZ.js → chunk-53GNEMTP.js} +1 -1
  16. package/dist/{chunk-UYIWLYLX.js → chunk-55XGYVWE.js} +2 -2
  17. package/dist/{chunk-UU762HQX.js → chunk-5DEHVQCK.js} +6 -6
  18. package/dist/{chunk-H2NTP6OM.js → chunk-5NKVS3UO.js} +1 -1
  19. package/dist/{chunk-GVGHEQCU.js → chunk-5OI5KRAS.js} +2 -2
  20. package/dist/{chunk-JMSMNKCK.js → chunk-67IEAQPG.js} +1 -1
  21. package/dist/{chunk-TVU7AL2Z.js → chunk-6JP7F7VC.js} +2 -2
  22. package/dist/{chunk-PTZF6MC5.js → chunk-6ZZHVNXE.js} +2 -2
  23. package/dist/{chunk-NEOM73RW.js → chunk-7CNODON3.js} +1 -1
  24. package/dist/{chunk-MYFC3HKP.js → chunk-7RGKY7N5.js} +6 -6
  25. package/dist/{chunk-ARJLRXR6.js → chunk-AL3U2CW7.js} +30 -28
  26. package/dist/{chunk-W2BADNEW.js → chunk-BCJXDQEM.js} +3 -3
  27. package/dist/{chunk-W7P5QFRN.js → chunk-BJJ5ULJS.js} +4 -4
  28. package/dist/{chunk-6SYVSIGA.js → chunk-BRLSGY57.js} +1 -1
  29. package/dist/{chunk-3RXLDGWE.js → chunk-BTJEBFAO.js} +3 -3
  30. package/dist/{chunk-D5YKSWK3.js → chunk-CA3M6T4Z.js} +3 -3
  31. package/dist/{chunk-FD42O5SH.js → chunk-CDCO3HGT.js} +3 -3
  32. package/dist/{chunk-SR4532T7.js → chunk-CII3Z3YJ.js} +4 -4
  33. package/dist/{chunk-MKSCYAZU.js → chunk-CVG52UWM.js} +10 -10
  34. package/dist/{chunk-B2WCKRMW.js → chunk-FG25LDVH.js} +1 -1
  35. package/dist/{chunk-SDOM7OMG.js → chunk-FZCKTV7H.js} +5 -5
  36. package/dist/{chunk-YPA5KKVR.js → chunk-G3CS5PQP.js} +2 -2
  37. package/dist/{chunk-DXZ6QBUJ.js → chunk-GS5QF27G.js} +1 -1
  38. package/dist/{chunk-RSRFNL64.js → chunk-HIJWCAGE.js} +4 -4
  39. package/dist/{chunk-XCAPYFJ3.js → chunk-ICU76D7N.js} +2 -2
  40. package/dist/{chunk-FRLGVHJP.js → chunk-JR3R4R3R.js} +1 -1
  41. package/dist/{chunk-4I3SN7WG.js → chunk-JR6KYUIA.js} +2 -2
  42. package/dist/{chunk-QPC6OKD2.js → chunk-K7KKKOHO.js} +5 -5
  43. package/dist/{chunk-YLDHHHBJ.js → chunk-KJKMGZCS.js} +5 -5
  44. package/dist/{chunk-CUMLCXFI.js → chunk-M5SLRRBU.js} +2 -2
  45. package/dist/{chunk-WOQOZCZZ.js → chunk-M62TIWXX.js} +2 -2
  46. package/dist/{chunk-JYSJOUJE.js → chunk-MAWDHLEA.js} +7 -7
  47. package/dist/{chunk-YP6FUS5X.js → chunk-MDEMVCGR.js} +30 -24
  48. package/dist/{chunk-JD5VDXQO.js → chunk-MNN45CQ2.js} +2 -2
  49. package/dist/{chunk-QS2O5G64.js → chunk-MSDGVITJ.js} +48 -10
  50. package/dist/{chunk-QHGVLLOJ.js → chunk-MZJFHQJI.js} +1 -1
  51. package/dist/{chunk-WRIQGJKT.js → chunk-NI46LQRD.js} +2 -2
  52. package/dist/{chunk-YNZVC7XT.js → chunk-OGY3XBHB.js} +2 -2
  53. package/dist/{chunk-6USAAMGR.js → chunk-OZZCRYJI.js} +7 -7
  54. package/dist/{chunk-M4YTSRJI.js → chunk-PZNXFA4N.js} +1 -1
  55. package/dist/{chunk-D47Z2Z7F.js → chunk-RCJ3D5DA.js} +1 -1
  56. package/dist/{chunk-3HH2AQKF.js → chunk-RYVOUBUT.js} +1 -1
  57. package/dist/{chunk-EVAK6FAS.js → chunk-SANXMMBW.js} +1 -1
  58. package/dist/{chunk-BPZ23EMS.js → chunk-SLM6EVQN.js} +1 -1
  59. package/dist/{chunk-EYD5HOQ7.js → chunk-SRTJZV7P.js} +1 -1
  60. package/dist/{chunk-VZT5SLZJ.js → chunk-SXFHQ4Q4.js} +3 -3
  61. package/dist/{chunk-2X3FX53G.js → chunk-TKFMESAI.js} +3 -3
  62. package/dist/{chunk-I6G5CO3K.js → chunk-VKAQSJZN.js} +1 -1
  63. package/dist/{chunk-DJCSAWBV.js → chunk-VWVXEJDK.js} +2 -2
  64. package/dist/{chunk-M6I3CVUJ.js → chunk-X623IDTM.js} +21 -10
  65. package/dist/{chunk-DFTA22YA.js → chunk-XBFVL7PB.js} +4 -4
  66. package/dist/{chunk-GAHP2AI3.js → chunk-Y26BNEMO.js} +2 -2
  67. package/dist/{claude-launcher-HNE36BKE.js → claude-launcher-FG7INEGW.js} +1 -1
  68. package/dist/{cli-NV77HUIC.js → cli-MADWWBN4.js} +144 -144
  69. package/dist/{command-GUK5MRNN.js → command-CLWR3FUL.js} +37 -37
  70. package/dist/{config-6GDB7WSI.js → config-VVEK5PI7.js} +10 -10
  71. package/dist/{connect-cmd-SXSWOHVT.js → connect-cmd-27EZXSQD.js} +8 -8
  72. package/dist/{container-start-IHBVFJVA.js → container-start-GIBWJIUU.js} +34 -34
  73. package/dist/{context-show-cmd-ZWOTXOXV.js → context-show-cmd-XGWEED7L.js} +9 -9
  74. package/dist/{control-plane-launch-BPJQYN6J.js → control-plane-launch-BEN5IP6V.js} +8 -8
  75. package/dist/{demo-record-cmd-4H2J2N3X.js → demo-record-cmd-SLC5BB4F.js} +6 -6
  76. package/dist/{demo-voice-cmd-VIOM4SF5.js → demo-voice-cmd-DEBELV5H.js} +14 -14
  77. package/dist/{docker-NOVLMJ63.js → docker-V7LPG7UC.js} +8 -8
  78. package/dist/{doctor-XE4WJ3EG.js → doctor-C6N55URV.js} +36 -36
  79. package/dist/{emit-artifact-cmd-HUAKLOH4.js → emit-artifact-cmd-LR5CDALJ.js} +13 -13
  80. package/dist/{emit-criteria-cmd-7LKPQRFE.js → emit-criteria-cmd-QXOWR62U.js} +10 -10
  81. package/dist/{emit-demo-cmd-7TW5Y3MN.js → emit-demo-cmd-IBGCUSYL.js} +14 -14
  82. package/dist/{emit-finding-cmd-T3JBAGS2.js → emit-finding-cmd-QHJBPJPW.js} +10 -10
  83. package/dist/{emit-result-cmd-ILRQ6OIL.js → emit-result-cmd-XOISZCY3.js} +12 -12
  84. package/dist/{emit-step-cmd-4ISFOYRC.js → emit-step-cmd-2GPRJQNX.js} +10 -10
  85. package/dist/{exec-client-UJKPJRNK.js → exec-client-VGSMXNKS.js} +6 -6
  86. package/dist/{find-unit-BSJIDCK6.js → find-unit-7VMZPXFC.js} +11 -11
  87. package/dist/{findings-cmd-37RCXQK2.js → findings-cmd-YUWS5J7S.js} +10 -10
  88. package/dist/{fleet-readiness-IVFQSHPL.js → fleet-readiness-IOHYJY4W.js} +8 -8
  89. package/dist/{governing-source-RXJBJHN7.js → governing-source-KJNPV7BE.js} +12 -12
  90. package/dist/{guest-init-EXKSBS7A.js → guest-init-R7X5CUNQ.js} +7 -7
  91. package/dist/{hook-fast-BSH6IHRN.js → hook-fast-4U5KN5DQ.js} +1 -1
  92. package/dist/{host-checks-ZSZAWHID.js → host-checks-G656HX6E.js} +32 -32
  93. package/dist/{host-key-7WPFECOD.js → host-key-6MP2WQDQ.js} +6 -6
  94. package/dist/{image-tag-GLR3OAO3.js → image-tag-DQZQLNUN.js} +6 -6
  95. package/dist/index.js +4 -4
  96. package/dist/{init-PXP2NCIG.js → init-KMLACOSW.js} +32 -32
  97. package/dist/{init-EGSEHSNO.js → init-PY4NIYW4.js} +32 -32
  98. package/dist/{init-agent-WWHNWKLZ.js → init-agent-NZGNDNBY.js} +32 -32
  99. package/dist/{init-cmd-R75FE7AC.js → init-cmd-6NJQQVR5.js} +14 -14
  100. package/dist/{init-update-FAFXM2YE.js → init-update-AZOTPBI7.js} +11 -11
  101. package/dist/{install-cmd-CQOUTGDI.js → install-cmd-S5VFI7NR.js} +13 -13
  102. package/dist/{launch-agent-IGPMAMP3.js → launch-agent-AXF2ED2A.js} +13 -13
  103. package/dist/{logs-RVPQEAYN.js → logs-GWNZVEWX.js} +5 -5
  104. package/dist/{loop-YHRUH5FT.js → loop-GGADN4X4.js} +40 -40
  105. package/dist/{machine-PDG5O7CC.js → machine-7VMKOIFB.js} +32 -32
  106. package/dist/{mcp-serve-cmd-UT3YCM5P.js → mcp-serve-cmd-7ST4TEEZ.js} +7 -7
  107. package/dist/{paths-72CWJPND.js → paths-2QQQW7UU.js} +5 -5
  108. package/dist/{pending-ES4EF46B.js → pending-MIZOCMQO.js} +6 -6
  109. package/dist/{pidfile-WI6SE35U.js → pidfile-US23B2SQ.js} +6 -6
  110. package/dist/{record-KX763L6R.js → record-LCEWXDKS.js} +6 -6
  111. package/dist/{relay-ZZWAUA6P.js → relay-MHWMGCTK.js} +3 -3
  112. package/dist/{relay-protocol-4GCTOIT4.js → relay-protocol-FHGPRNPT.js} +3 -3
  113. package/dist/{run-cmd-SCXMROKB.js → run-cmd-BH7M2GHA.js} +10 -10
  114. package/dist/runner-agents-2JTYE3RL.js +15 -0
  115. package/dist/{runner-env-C7WRAXKE.js → runner-env-PU6WIRCC.js} +12 -12
  116. package/dist/{runner-identity-UIGOYBCF.js → runner-identity-F727CIPY.js} +8 -8
  117. package/dist/{runner-key-R5HHVY2P.js → runner-key-ML6NMQC4.js} +32 -32
  118. package/dist/{session-sender-A46R3S66.js → session-sender-GRHNLJ54.js} +13 -13
  119. package/dist/{setup-cmd-JAXSLBJY.js → setup-cmd-LOXZNIRO.js} +9 -9
  120. package/dist/{setup-wiring-SOIFFGA2.js → setup-wiring-CBRAMTHM.js} +36 -36
  121. package/dist/{spec-cmd-C4KSLTAD.js → spec-cmd-UH6RGIST.js} +11 -11
  122. package/dist/{state-TCZAKBBZ.js → state-L67V6AML.js} +6 -6
  123. package/dist/{status-OIYTNHPK.js → status-NWHPZ64N.js} +32 -32
  124. package/dist/{sync-cmd-ZYTJMWET.js → sync-cmd-QK6IQF3F.js} +12 -12
  125. package/dist/{update-steps-C5VUAFC5.js → update-steps-6SKUQISL.js} +33 -33
  126. package/dist/{watch-VCKWAILU.js → watch-OQKMLLTU.js} +12 -12
  127. package/dist/{work-claim-cmd-TIO6T5KJ.js → work-claim-cmd-KHEY7QBX.js} +16 -16
  128. package/dist/{work-cmd-7KOXRPOJ.js → work-cmd-KXMF42BU.js} +10 -10
  129. package/dist/{work-comment-cmd-EDXP3K7B.js → work-comment-cmd-4QEJW4UR.js} +12 -12
  130. package/dist/{work-demo-cmd-OYZTKNCG.js → work-demo-cmd-UNJ77ILF.js} +10 -10
  131. package/dist/{work-logs-cmd-P3QS5AFY.js → work-logs-cmd-HI4P3EGH.js} +10 -10
  132. package/dist/{work-mock-cmd-3QEXWV43.js → work-mock-cmd-RN6A5FDA.js} +10 -10
  133. package/dist/{work-needs-attention-cmd-ZTQB2DXB.js → work-needs-attention-cmd-TUINWEIT.js} +10 -10
  134. package/dist/{work-no-change-cmd-FGHOOPLY.js → work-no-change-cmd-2ASMVDHL.js} +10 -10
  135. package/dist/{work-open-pr-cmd-WFIPFVQR.js → work-open-pr-cmd-C5VYFOHW.js} +11 -11
  136. package/dist/{work-pr-cmd-262GWNKI.js → work-pr-cmd-ICYDMFTL.js} +10 -10
  137. package/dist/{work-proofs-cmd-XPQGYBKY.js → work-proofs-cmd-HY7UNTZV.js} +11 -11
  138. package/dist/{work-proofs-record-N3II3BAE.js → work-proofs-record-4M5JAUGQ.js} +17 -17
  139. package/dist/{work-stop-cmd-CBRWKR4Q.js → work-stop-cmd-K2SHFPWB.js} +10 -10
  140. package/package.json +1 -1
  141. package/dist/runner-agents-QS3IX55G.js +0 -15
@@ -5,37 +5,37 @@ import { RUNNER_PROTOCOL } from './chunk-QDJBEQCE.js';
5
5
  import { zodProblem } from './chunk-I3LTIAOR.js';
6
6
  import { sha256OfFile, downloadPinned, VoiceDownloadError } from './chunk-2PGI6RDE.js';
7
7
  import { upgradedStarterText } from './chunk-FMOGX7RR.js';
8
- import { runnerImageVersion } from './chunk-3HH2AQKF.js';
9
- import { hasStoredCredential, storedCredentialVariables, storeAgentCredential, replaceFile, isAgentName, credentialFromStdin } from './chunk-RSRFNL64.js';
10
- 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-MYFC3HKP.js';
11
- import { HELPER_PATH, HELPER_RECORD, DOCKERD_LOG } from './chunk-QFGKTIPS.js';
12
- import { writeDockerClientConfig } from './chunk-H2NTP6OM.js';
13
- import { senderPidfile } from './chunk-YNZVC7XT.js';
14
- import { installScrubContext } from './chunk-QPC6OKD2.js';
8
+ import { runnerImageVersion } from './chunk-RYVOUBUT.js';
9
+ import { hasStoredCredential, storedCredentialVariables, storeAgentCredential, replaceFile, isAgentName, credentialFromStdin } from './chunk-HIJWCAGE.js';
10
+ 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-7RGKY7N5.js';
11
+ import { HELPER_PATH, HELPER_RECORD, DOCKERD_LOG } from './chunk-3ZBBHCAW.js';
12
+ import { writeDockerClientConfig } from './chunk-5NKVS3UO.js';
13
+ import { senderPidfile } from './chunk-OGY3XBHB.js';
14
+ import { installScrubContext } from './chunk-K7KKKOHO.js';
15
15
  import { readsJobState, READ_JOB_STATE_FORMATS, jobStateFormatOf } from './chunk-B4XB5QFD.js';
16
- import { claimCalls, spoolHomeFor, itemCalls, claimItem, leftByRunnerKey, configForJob } from './chunk-Y5IJTSFC.js';
16
+ import { claimCalls, spoolHomeFor, itemCalls, claimItem, leftByRunnerKey, configForJob } from './chunk-475AL6JE.js';
17
17
  import { receiveFiles } from './chunk-NN33FYXG.js';
18
- import { readDefaultBranchFiles, readDefaultBranchHead, buildRepositoryImage, readRepositoryRecipe, fetchCommit, readBranchHead, diffBetween, prepareImageBuild, KEY_PREFIX, TAG_HOST, SHARED_OWNER, SHARED_NAME, universalBase, metadataFromLabels, writeRecord } from './chunk-6USAAMGR.js';
19
- import { FETCHED_DIR, toolsDockerfile, FETCHED_FFMPEG, FETCHED_GH, FETCHED_TINI, FETCHED_HEADLESS_SHELL, FETCHED_PLAYWRIGHT_FFMPEG, FETCHED_VOICE_DIR } from './chunk-FD42O5SH.js';
18
+ import { readDefaultBranchFiles, readDefaultBranchHead, buildRepositoryImage, readRepositoryRecipe, fetchCommit, readBranchHead, diffBetween, prepareImageBuild, KEY_PREFIX, TAG_HOST, SHARED_OWNER, SHARED_NAME, universalBase, metadataFromLabels, writeRecord } from './chunk-OZZCRYJI.js';
19
+ import { FETCHED_DIR, toolsDockerfile, FETCHED_FFMPEG, FETCHED_GH, FETCHED_TINI, FETCHED_HEADLESS_SHELL, FETCHED_PLAYWRIGHT_FFMPEG, FETCHED_VOICE_DIR } from './chunk-CDCO3HGT.js';
20
20
  import { isSameProcess, startTimeOf } from './chunk-JBJTC3UU.js';
21
21
  import { currentCliBuild } from './chunk-OGFGZQA3.js';
22
- import { vmExecArgs, runExec, execCapture, waitForAgent } from './chunk-NEOM73RW.js';
23
- import { socketPathProblem, vsockLinks, linkVsockSockets, GUEST_CID, LEASE_LINK } from './chunk-WOQOZCZZ.js';
24
- import { postJson, getJson, WorkCommandError, isSignatureRefusal } from './chunk-YLDHHHBJ.js';
22
+ import { vmExecArgs, runExec, execCapture, waitForAgent } from './chunk-7CNODON3.js';
23
+ import { socketPathProblem, vsockLinks, linkVsockSockets, GUEST_CID, LEASE_LINK } from './chunk-M62TIWXX.js';
24
+ import { postJson, getJson, WorkCommandError, isSignatureRefusal } from './chunk-KJKMGZCS.js';
25
25
  import { sanitizeTerminal, planArtifactUpload } from './chunk-WNFITHNX.js';
26
- import { keyRunnerFactory, runnerCredentialProblem, builtinKind, readOnlyOption, optionalEgress, readsOnly, isBuiltinContainer, isBuiltinVm, isBuiltinSandbox, egressSummary, DEFAULT_WORKSPACE_KEEP_DAYS, readOnlyRemoteOf, DEFAULT_CHECK_TIME_LIMIT_MINUTES, DEFAULT_SETUP_MINUTES, allowHostProblem, systemClock, emptyEgressCounts, hostAllowed, sandboxTimeLimitMinutes, networkOf, imageBuildOf, machineSizeOf, sandboxSizeOf, DEFAULT_SAVED_STATE_MAX_BYTES } from './chunk-SR4532T7.js';
27
- import { formatBytes, volumeBytes, allocatedBytes, DEFAULT_BUILD_DISK, DEFAULT_CACHE_DISK, freeBytes } from './chunk-JD5VDXQO.js';
28
- import { said, NETWORK_HELPER_MEMORY, firstLine, JUDGE_MAX_TURNS, writeJobFile, readJobFile, spawnRun, RUNNER_LABEL, BUILD_LABEL, createDockerHost, builderSpec, childEnvironment, containerExecArgs, readDu, JUDGE_DIR, JUDGE_ITEMS, answerFileName, hashJudgeProgram, NETWORK_READY_FILE, MAX_ITEMS_BYTES, MAX_REPORT_BYTES, JUDGE_REPORT, judgeProgram, withAnswerProtocol, JUDGE_TREE, runnerLabelValue, parseSize, readJobFileChecked, networkHelperName, prepareRunArgs, containerRunArgs, NODE, JUDGE_HOME, judgeCommand, WORKSPACE_LABEL, homeCopyRunArgs, networkHelperRunArgs, identityScript, identityArgs, parseIdentity, mountableHome, homeCopyScript, homeCopyArgs, COMMAND_DIR, identityRunArgs, judgeProgramRecord, SAVED_STATE_LABEL } from './chunk-UU762HQX.js';
29
- import { universalImagePending, writeSanitizedRecipe, classifyProperties, RecipeError, DOCKER_FEATURE } from './chunk-EYD5HOQ7.js';
26
+ import { keyRunnerFactory, runnerCredentialProblem, builtinKind, readOnlyOption, optionalEgress, readsOnly, isBuiltinContainer, isBuiltinVm, isBuiltinSandbox, egressSummary, DEFAULT_WORKSPACE_KEEP_DAYS, readOnlyRemoteOf, DEFAULT_CHECK_TIME_LIMIT_MINUTES, DEFAULT_SETUP_MINUTES, allowHostProblem, systemClock, emptyEgressCounts, hostAllowed, sandboxTimeLimitMinutes, networkOf, imageBuildOf, machineSizeOf, sandboxSizeOf, DEFAULT_SAVED_STATE_MAX_BYTES } from './chunk-CII3Z3YJ.js';
27
+ import { formatBytes, volumeBytes, allocatedBytes, DEFAULT_BUILD_DISK, DEFAULT_CACHE_DISK, freeBytes } from './chunk-MNN45CQ2.js';
28
+ import { said, NETWORK_HELPER_MEMORY, firstLine, JUDGE_MAX_TURNS, writeJobFile, readJobFile, spawnRun, RUNNER_LABEL, BUILD_LABEL, createDockerHost, builderSpec, childEnvironment, containerExecArgs, readDu, JUDGE_DIR, JUDGE_ITEMS, answerFileName, hashJudgeProgram, NETWORK_READY_FILE, MAX_ITEMS_BYTES, MAX_REPORT_BYTES, JUDGE_REPORT, judgeProgram, withAnswerProtocol, JUDGE_TREE, runnerLabelValue, parseSize, readJobFileChecked, networkHelperName, prepareRunArgs, containerRunArgs, NODE, JUDGE_HOME, judgeCommand, WORKSPACE_LABEL, homeCopyRunArgs, networkHelperRunArgs, identityScript, identityArgs, parseIdentity, mountableHome, homeCopyScript, homeCopyArgs, COMMAND_DIR, identityRunArgs, judgeProgramRecord, SAVED_STATE_LABEL } from './chunk-5DEHVQCK.js';
29
+ import { universalImagePending, writeSanitizedRecipe, classifyProperties, RecipeError, DOCKER_FEATURE } from './chunk-SRTJZV7P.js';
30
30
  import { sharedSkillNames, skillConflictMessage } from './chunk-QKVOUI56.js';
31
31
  import { readCloudConfig } from './chunk-HWVMRETT.js';
32
- import { signerFor } from './chunk-I6G5CO3K.js';
33
- import { sessionsDir, vmAssetsDir, RUNNER_DIR_MODE, RUNNER_FILE_MODE, runnerDir, workspacesDir, jobsDir, storeScopes, spoolDir, orgStoreIn, rootfsDir, imagesDir, builderCacheDiskPath, buildsDir, buildDir, ghConfigDir, runnerDirOfBuild, mirrorDir, orgHomeDir, jobConsolePath, vsockPath, builderConsolePath, rootfsPathFor, diskTemplatesDir, deliveryDir, SHIM_DIR } from './chunk-D5TZYUGZ.js';
34
- import { BUILD_HOME, dataPlaneOf, sandboxCallOf, SandboxError, repositoriesOf, JOB_MOUNT, heldBuildAuthority, IMAGE_BUNDLES, writeTrustFiles, buildEnvironment, trustEnvironment, CHECKOUT_DIR, parseIsolation, containerLocalAddress, destinationEnvironment, withHooksPath, startBuildServices, checkoutPath, UsageLedger, headerVariables, authorEnvironment, sharedUserEnvironment, withTunnelRecord, commitIdentityRecord, RELAY_PORT, repositoryPath, lifecycleWorkdir, CHECK_ITEMS_FILE, parseProxied, retryAfterMsOf, readBundleScript, applyTrust, proxyEnvironment, describeSandboxError, dropBuildAuthority, sandboxSettingsFrom, createSandboxClient, hostKeyOf, buildAuthorityFor, checkEnvironment, withMiseVariables, primaryOf, variablesFor, carried6to4, classifyAddress, EVAL_INPUT_DIR, isMiseVariableAllowed, variableForPath, droppedRequestHeaders, hasDotDotSegment, routeNameOf, withheldCredentialLine, providerMayAnswerLater, toolProxyEnvironment } from './chunk-WRIQGJKT.js';
35
- import { agentCredential, managedAgentCredential, RUNNER_WORDED_REASONS, UNKNOWN_TRACKING_REASON, UNKNOWN_TRANSPORT_REASON, RELAY_USER, 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, RELAY_ID, DOCKER_DESKTOP_REASON } from './chunk-GAHP2AI3.js';
36
- import { jobCredentialProblem, parseRunnerEnv, findAgentCredential, rejectedCredentialText, removedAgentCredentialValues, currentAgentCredential, realFdStorePort, reportedAgents, fdName } from './chunk-D47Z2Z7F.js';
32
+ import { signerFor } from './chunk-VKAQSJZN.js';
33
+ import { sessionsDir, vmAssetsDir, RUNNER_DIR_MODE, RUNNER_FILE_MODE, runnerDir, workspacesDir, jobsDir, storeScopes, spoolDir, orgStoreIn, rootfsDir, imagesDir, builderCacheDiskPath, buildsDir, buildDir, ghConfigDir, runnerDirOfBuild, mirrorDir, orgHomeDir, jobConsolePath, vsockPath, builderConsolePath, rootfsPathFor, diskTemplatesDir, deliveryDir, SHIM_DIR } from './chunk-53GNEMTP.js';
34
+ import { BUILD_HOME, dataPlaneOf, sandboxCallOf, SandboxError, repositoriesOf, JOB_MOUNT, heldBuildAuthority, IMAGE_BUNDLES, writeTrustFiles, buildEnvironment, trustEnvironment, CHECKOUT_DIR, parseIsolation, containerLocalAddress, destinationEnvironment, withHooksPath, startBuildServices, checkoutPath, UsageLedger, headerVariables, authorEnvironment, sharedUserEnvironment, withTunnelRecord, commitIdentityRecord, RELAY_PORT, repositoryPath, lifecycleWorkdir, CHECK_ITEMS_FILE, parseProxied, retryAfterMsOf, readBundleScript, applyTrust, proxyEnvironment, describeSandboxError, dropBuildAuthority, sandboxSettingsFrom, createSandboxClient, hostKeyOf, buildAuthorityFor, checkEnvironment, withMiseVariables, primaryOf, variablesFor, carried6to4, classifyAddress, EVAL_INPUT_DIR, isMiseVariableAllowed, variableForPath, droppedRequestHeaders, hasDotDotSegment, routeNameOf, withheldCredentialLine, providerMayAnswerLater, toolProxyEnvironment } from './chunk-NI46LQRD.js';
35
+ import { agentCredential, managedAgentCredential, RUNNER_WORDED_REASONS, UNKNOWN_TRACKING_REASON, UNKNOWN_TRANSPORT_REASON, RELAY_USER, 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, RELAY_ID, DOCKER_DESKTOP_REASON } from './chunk-Y26BNEMO.js';
36
+ import { jobCredentialProblem, parseRunnerEnv, findAgentCredential, rejectedCredentialText, removedAgentCredentialValues, currentAgentCredential, realFdStorePort, reportedAgents, fdName } from './chunk-RCJ3D5DA.js';
37
37
  import { versionAtLeast } from './chunk-DJK3IK6K.js';
38
- import { jobAgent, firecrackerArch, MICROVM_ARCHES, FIRECRACKER_VERSION, hostHelperPinned, builderDiskPinned, guestAssetsPinned, runnerAgentNamed, credentialForms, orList, credentialShapes, agentCommands, commandAgentId, defaultCommandFor, defaultCommandLine, runnerAgents, credentialAgent, stallReason, judgeAgent, agentErrorReason, 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, networkHelperPinned, NETWORK_HELPER_SHA256, universalImagePinned, defaultAgentId, 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-QS2O5G64.js';
38
+ import { jobAgent, firecrackerArch, MICROVM_ARCHES, FIRECRACKER_VERSION, hostHelperPinned, builderDiskPinned, guestAssetsPinned, runnerAgentNamed, credentialForms, orList, credentialShapes, agentCommands, commandAgentId, defaultCommandFor, defaultCommandLine, runnerAgents, credentialAgent, stallReason, judgeAgent, agentErrorReason, 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, networkHelperPinned, NETWORK_HELPER_SHA256, universalImagePinned, defaultAgentId, 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, agentMissingFromImage, agentVersionOf } from './chunk-MSDGVITJ.js';
39
39
  import { sessionFolderIn, legacyAgent, defaultAgents, parsePolicy, AGENTS_SKILLS_BASE, OUTERLAYER_SKILLS_BASE, orderSessions, extractFacts, sessionsToTimeline, resolvePackRoot } from './chunk-XMJNIIPM.js';
40
40
  import { PROVIDERS } from './chunk-Q7Z6ELTL.js';
41
41
  import { MAINTAINED_SKILLS } from './chunk-VSBG7MMU.js';
@@ -5218,6 +5218,10 @@ async function createWhenAllowed(input) {
5218
5218
  if (input.aborted()) throw new ProvisionAborted();
5219
5219
  }
5220
5220
  }
5221
+ function imageLacksAgentReason(agentLabel, managed) {
5222
+ const fix = managed ? "The sandboxes OuterLayer provides need a new snapshot, which only OuterLayer can make" : "Make a new snapshot with this CLI's build image, and name it in runner.sandbox.snapshot";
5223
+ return `the build image has no ${agentLabel}, because the snapshot was made before ${agentLabel} was added. ${fix}`;
5224
+ }
5221
5225
  var UNAPPLIED_IN_SANDBOX = ["image", "build", "features"];
5222
5226
  function ignoredInSandbox(recipe, docker2) {
5223
5227
  const { classification } = recipe;
@@ -5709,6 +5713,8 @@ async function provisionSandboxOnce(input, allowRestore, itemDiskFailed, noSave)
5709
5713
  if (!ghDelivered.ok) return end(ghDelivered.reason);
5710
5714
  }
5711
5715
  const tools = await host.exec({ container, user: ADDED_USER, env: NO_ENV, argv: ["cat", "/opt/outerlayer/tools.json"] });
5716
+ const missingAgent = agentMissingFromImage(tools.stdout, runtime.agents, input.job);
5717
+ if (missingAgent !== void 0) return end(imageLacksAgentReason(missingAgent.descriptor.label, managed));
5712
5718
  const agentVersion = agentVersionOf(tools.status === 0 ? tools.stdout : "", runtime.agents, input.job);
5713
5719
  environment.agentVersion = agentVersion;
5714
5720
  const judgeProgram2 = await judgeProgramRecord((argv) => host.exec({ container, user: ADDED_USER, env: NO_ENV, argv }), runtime.agents, input.job);
@@ -8812,7 +8818,7 @@ async function sandboxSenderRuns(job, deps) {
8812
8818
  }
8813
8819
  async function stopSandboxSender(input) {
8814
8820
  const { job, deps } = input;
8815
- if (job.itemKey === void 0) return;
8821
+ if (job.itemKey === void 0 || job.stage === "provision") return;
8816
8822
  const tag = `${itemTag(job)}`;
8817
8823
  const runtime = deps.runtime ?? createContainerRuntime();
8818
8824
  const sleep = deps.sleep ?? ((ms) => new Promise((resolve2) => setTimeout(resolve2, ms)));
@@ -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-UU762HQX.js';
4
- import { buildsDir, storeScopes, rootfsDir, orgStoreIn, runnerDir, imagesDir, builderCacheDiskPath } from './chunk-D5TZYUGZ.js';
3
+ import { parseSize, BUILD_LABEL, RUNNER_LABEL, runnerLabelValue } from './chunk-5DEHVQCK.js';
4
+ import { buildsDir, storeScopes, rootfsDir, orgStoreIn, runnerDir, imagesDir, builderCacheDiskPath } from './chunk-53GNEMTP.js';
5
5
  import { spawnSync } from 'child_process';
6
6
  import { statfsSync, statSync, existsSync, readdirSync } from 'fs';
7
7
  import { dirname, join } from 'path';
@@ -159,9 +159,36 @@ function credentialAgent(agents = defaultAgents()) {
159
159
  function buildAgent(agents = defaultAgents()) {
160
160
  return agentById(LEGACY_AGENT, agents);
161
161
  }
162
+ var ASSIGNMENT = /^[A-Za-z_][A-Za-z0-9_]*=/;
163
+ function programWordOf(command) {
164
+ let state = "start";
165
+ for (const match of command.matchAll(/\S+/g)) {
166
+ const word = match[0].replace(/(?:;|&&)$/, "");
167
+ const ends = word !== match[0];
168
+ if (word === "") {
169
+ if (state !== "set" && state !== "exported") return void 0;
170
+ state = "start";
171
+ } else if (ASSIGNMENT.test(word)) {
172
+ if (state === "exec" || state === "env" && ends) return void 0;
173
+ if (state === "export") state = "exported";
174
+ else if (state === "start") state = "set";
175
+ if (ends) state = "start";
176
+ } else if (ends || state === "export" || state === "exported") {
177
+ return void 0;
178
+ } else if (word === "export" && state === "start") {
179
+ state = "export";
180
+ } else if (word === "exec" && (state === "start" || state === "set")) {
181
+ state = "exec";
182
+ } else if (word === "env" && state !== "env") {
183
+ state = "env";
184
+ } else {
185
+ return { program: word.replace(/^["']|["']$/g, "").split("/").at(-1), start: match.index, end: match.index + word.length };
186
+ }
187
+ }
188
+ return void 0;
189
+ }
162
190
  function programOf(command) {
163
- const word = command.trim().split(/\s+/).find((candidate) => !/^[A-Za-z_][A-Za-z0-9_]*=/.test(candidate));
164
- return word?.replace(/^["']|["']$/g, "").split("/").pop();
191
+ return programWordOf(command)?.program;
165
192
  }
166
193
  function agentIdOfCommand(command, agents = defaultAgents()) {
167
194
  const program = command === void 0 ? void 0 : programOf(command);
@@ -226,7 +253,8 @@ function withJobModel(command, agent, model) {
226
253
  const refuse = (reason) => ({ command, applied: false, reason });
227
254
  if (agent === void 0 || flag === void 0) return refuse(`${agent?.descriptor.label ?? "the agent"} takes no model`);
228
255
  if (!isModelId(model)) return refuse("it is not a valid model id");
229
- if (programOf(command) !== agent.descriptor.program) return refuse(`the command does not start ${agent.descriptor.program}`);
256
+ const programWord = programWordOf(command);
257
+ if (programWord?.program !== agent.descriptor.program) return refuse(`the command does not start ${agent.descriptor.program}`);
230
258
  const masked = command.replace(/"(?:[^"\\]|\\.)*"|'[^']*'/g, (span) => "_".repeat(span.length));
231
259
  const spellings = [flag, ...agent?.adapter.headless?.modelFlagAliases ?? []].map((spelling) => spelling.replace(/[.*+?^${}()|[\]\\]/g, "\\$&"));
232
260
  const named = new RegExp(`(^|\\s)(${spellings.join("|")})(=|\\s+)(\\S+)`);
@@ -235,13 +263,10 @@ function withJobModel(command, agent, model) {
235
263
  const valueAt = found.index + found[1].length + found[2].length + found[3].length;
236
264
  return { command: `${command.slice(0, valueAt)}${model}${command.slice(valueAt + found[4].length)}`, applied: true };
237
265
  }
238
- const parts = command.trimStart().split(/(\s+)/);
239
- const program = parts.findIndex((part) => part.trim() !== "" && !/^[A-Za-z_][A-Za-z0-9_]*=/.test(part));
240
- const next = program + 2;
241
266
  const subcommands = (agent.adapter.headless?.promptFlags ?? []).filter((word) => !word.startsWith("-"));
242
- const index = next < parts.length && subcommands.includes(parts[next]) ? next : program;
243
- parts[index] = `${parts[index]} ${flag} ${model}`;
244
- return { command: `${command.slice(0, command.length - command.trimStart().length)}${parts.join("")}`, applied: true };
267
+ const next = /^\s+(\S+)/.exec(command.slice(programWord.end));
268
+ const at = next !== null && subcommands.includes(next[1]) ? programWord.end + next[0].length : programWord.end;
269
+ return { command: `${command.slice(0, at)} ${flag} ${model}${command.slice(at)}`, applied: true };
245
270
  }
246
271
  function headlessAgents(agents = defaultAgents()) {
247
272
  return agents.flatMap((agent) => agent.adapter.headless === void 0 ? [] : [{ descriptor: agent.descriptor, adapter: agent.adapter, headless: agent.adapter.headless }]);
@@ -364,6 +389,19 @@ function agentErrorReason(job, output, agents = defaultAgents()) {
364
389
  if (agent === void 0 || message === void 0) return void 0;
365
390
  return `${agent.descriptor.label} reported: ${message}`;
366
391
  }
392
+ function agentMissingFromImage(toolsJson, agents = defaultAgents(), job) {
393
+ const agent = jobAgent(job, agents);
394
+ const key = agent?.adapter.image?.versionKey;
395
+ if (key === void 0) return void 0;
396
+ let tools;
397
+ try {
398
+ tools = JSON.parse(toolsJson);
399
+ } catch {
400
+ return void 0;
401
+ }
402
+ if (typeof tools !== "object" || tools === null || Array.isArray(tools)) return void 0;
403
+ return key in tools ? void 0 : agent;
404
+ }
367
405
  function agentVersionOf(toolsJson, agents = defaultAgents(), job) {
368
406
  const agent = jobAgent(job, agents);
369
407
  try {
@@ -375,4 +413,4 @@ function agentVersionOf(toolsJson, agents = defaultAgents(), job) {
375
413
  return AGENT_PINS[agent?.descriptor.id ?? LEGACY_AGENT] ?? buildAgentPin(agents);
376
414
  }
377
415
 
378
- export { AGENT_PINS, BUILDER_DISK_BASE_URL, BUILDER_DISK_SHA256, BUILDER_DISK_VERSION, BUILDKIT_IMAGE, DEFAULT_BASE_IMAGE, FFMPEG_BUILD_TAG, FFMPEG_STATIC, FIRECRACKER_BINARY_SHA256, FIRECRACKER_SHA256, FIRECRACKER_VERSION, GH_SHA256, GH_VERSION, GUEST_ASSETS_BASE_URL, GUEST_ASSETS_VERSION, GUEST_HELPER_SHA256, GUEST_KERNEL_SHA256, HEADLESS_SHELL, HEADLESS_SHELL_BASE_URL, HEADLESS_SHELL_REVISION, HOST_HELPER_ASSETS_VERSION, HOST_HELPER_BASE_URL, HOST_HELPER_SHA256, HOST_HELPER_SLICE_SINCE, JAILER_BINARY_SHA256, MANAGED_KIND, MEDIA_PINS, MICROVM_ARCHES, NETWORK_HELPER_SHA256, NODE_IMAGE, PLAYWRIGHT_FFMPEG, PLAYWRIGHT_FFMPEG_BASE_URL, PLAYWRIGHT_FFMPEG_REVISION, PLAYWRIGHT_VERSION, TINI_SHA256, TINI_VERSION, UNIVERSAL_IMAGE, UNIVERSAL_IMAGE_DIGEST, UNIVERSAL_IMAGE_REPOSITORY, UNIVERSAL_IMAGE_SOURCE, VOICE_PACK_FILES, VOICE_PACK_VERSION, agentCommands, agentErrorReason, agentIdOfCommand, agentVersionOf, agentsNeedingCredential, agentsToHold, buildAgent, buildAgentPin, builderDiskPinned, canJudge, commandAgentId, commandForJob, credentialAgent, credentialEnvPath, credentialForms, credentialHandOffKey, credentialNames, credentialShapes, defaultAgentId, defaultCommandFor, defaultCommandLine, firecrackerArch, forwardedVariables, guestAssetsPinned, headlessAgentIds, headlessNames, hostHelperPinned, hostHelperSupportsSlice, imageAgentPins, imageInstalls, isHeadlessAgent, jobAgent, jobAgentIdFor, jobCommandEnv, jobKeyProviders, judgeAgent, listedAgents, managedKeyName, managedOfferedAgents, networkHelperPinned, orList, providersOf, runnerAgentNamed, runnerAgents, stallReason, storeVariables, strippedVariables, universalImagePinned, withJobModel };
416
+ export { AGENT_PINS, BUILDER_DISK_BASE_URL, BUILDER_DISK_SHA256, BUILDER_DISK_VERSION, BUILDKIT_IMAGE, DEFAULT_BASE_IMAGE, FFMPEG_BUILD_TAG, FFMPEG_STATIC, FIRECRACKER_BINARY_SHA256, FIRECRACKER_SHA256, FIRECRACKER_VERSION, GH_SHA256, GH_VERSION, GUEST_ASSETS_BASE_URL, GUEST_ASSETS_VERSION, GUEST_HELPER_SHA256, GUEST_KERNEL_SHA256, HEADLESS_SHELL, HEADLESS_SHELL_BASE_URL, HEADLESS_SHELL_REVISION, HOST_HELPER_ASSETS_VERSION, HOST_HELPER_BASE_URL, HOST_HELPER_SHA256, HOST_HELPER_SLICE_SINCE, JAILER_BINARY_SHA256, MANAGED_KIND, MEDIA_PINS, MICROVM_ARCHES, NETWORK_HELPER_SHA256, NODE_IMAGE, PLAYWRIGHT_FFMPEG, PLAYWRIGHT_FFMPEG_BASE_URL, PLAYWRIGHT_FFMPEG_REVISION, PLAYWRIGHT_VERSION, TINI_SHA256, TINI_VERSION, UNIVERSAL_IMAGE, UNIVERSAL_IMAGE_DIGEST, UNIVERSAL_IMAGE_REPOSITORY, UNIVERSAL_IMAGE_SOURCE, VOICE_PACK_FILES, VOICE_PACK_VERSION, agentCommands, agentErrorReason, agentIdOfCommand, agentMissingFromImage, agentVersionOf, agentsNeedingCredential, agentsToHold, buildAgent, buildAgentPin, builderDiskPinned, canJudge, commandAgentId, commandForJob, credentialAgent, credentialEnvPath, credentialForms, credentialHandOffKey, credentialNames, credentialShapes, defaultAgentId, defaultCommandFor, defaultCommandLine, firecrackerArch, forwardedVariables, guestAssetsPinned, headlessAgentIds, headlessNames, hostHelperPinned, hostHelperSupportsSlice, imageAgentPins, imageInstalls, isHeadlessAgent, jobAgent, jobAgentIdFor, jobCommandEnv, jobKeyProviders, judgeAgent, listedAgents, managedKeyName, managedOfferedAgents, networkHelperPinned, orList, providersOf, runnerAgentNamed, runnerAgents, stallReason, storeVariables, strippedVariables, universalImagePinned, withJobModel };
@@ -1,6 +1,6 @@
1
1
  #!/usr/bin/env node
2
2
  import { createRequire } from 'node:module';
3
- import { currentLink } from './chunk-M4YTSRJI.js';
3
+ import { currentLink } from './chunk-PZNXFA4N.js';
4
4
  import { readFileSync, statSync, chmodSync, mkdirSync, writeFileSync, renameSync, rmSync, existsSync, lstatSync, accessSync, constants, realpathSync } from 'fs';
5
5
  import { randomBytes } from 'crypto';
6
6
  import { join, dirname, delimiter, resolve } from 'path';
@@ -1,7 +1,7 @@
1
1
  #!/usr/bin/env node
2
2
  import { createRequire } from 'node:module';
3
- import { builtInEnvironment, managedAgentCredential, agentCredential, builtInNames, TARGET_TUNNEL, TARGET_LEASE, destinationTarget, builtInDestinations, destinationPort } from './chunk-GAHP2AI3.js';
4
- import { strippedVariables, jobAgent, judgeAgent, agentsToHold, runnerAgents } from './chunk-QS2O5G64.js';
3
+ import { builtInEnvironment, managedAgentCredential, agentCredential, builtInNames, TARGET_TUNNEL, TARGET_LEASE, destinationTarget, builtInDestinations, destinationPort } from './chunk-Y26BNEMO.js';
4
+ import { strippedVariables, jobAgent, judgeAgent, agentsToHold, runnerAgents } from './chunk-MSDGVITJ.js';
5
5
  import { defaultAgents } from './chunk-XMJNIIPM.js';
6
6
  import { PROVIDERS } from './chunk-Q7Z6ELTL.js';
7
7
  import { MIN_SCRUBBED_LITERAL, costOfUsage } from './chunk-KTZOD7A3.js';
@@ -1,7 +1,7 @@
1
1
  #!/usr/bin/env node
2
2
  import { createRequire } from 'node:module';
3
- import { LiveUploader } from './chunk-QPC6OKD2.js';
4
- import { spoolDir } from './chunk-EVAK6FAS.js';
3
+ import { LiveUploader } from './chunk-K7KKKOHO.js';
4
+ import { spoolDir } from './chunk-SANXMMBW.js';
5
5
  import { parseRunEnv, parseWorkItemEnv } from './chunk-LGJ56FCM.js';
6
6
  import { sessionFolderIn, legacyAgent } from './chunk-XMJNIIPM.js';
7
7
  import { homeFromEnv } from './chunk-352DHUTP.js';
@@ -1,15 +1,15 @@
1
1
  #!/usr/bin/env node
2
2
  import { createRequire } from 'node:module';
3
- import { toolsDockerfile } from './chunk-FD42O5SH.js';
3
+ import { toolsDockerfile } from './chunk-CDCO3HGT.js';
4
4
  import { withNewTokenRetry, REFUSED_BY_REMOTE } from './chunk-FJGYU2EK.js';
5
- import { claimPidFile, RunnerAlreadyRunningError, releasePidFile } from './chunk-NPVIEJX6.js';
5
+ import { claimPidFile, RunnerAlreadyRunningError, releasePidFile } from './chunk-2E5YBULG.js';
6
6
  import { startTimeOf } from './chunk-JBJTC3UU.js';
7
- import { runnerLabelValue } from './chunk-UU762HQX.js';
8
- import { RecipeError, locateRecipe, readRecipe, assertBuildable, writeSanitizedRecipe, classifyProperties, SANITIZED_NAME } from './chunk-EYD5HOQ7.js';
7
+ import { runnerLabelValue } from './chunk-5DEHVQCK.js';
8
+ import { RecipeError, locateRecipe, readRecipe, assertBuildable, writeSanitizedRecipe, classifyProperties, SANITIZED_NAME } from './chunk-SRTJZV7P.js';
9
9
  import { removeLeftoverGitLocks } from './chunk-A2WPWZJA.js';
10
- import { RUNNER_DIR_MODE, RUNNER_FILE_MODE, repoCacheDir, imagesDir, imageBuildLogsDir, attemptStamp, orgStore, rootfsPathFor } from './chunk-D5TZYUGZ.js';
11
- import { withGitConfig, tokenHeader } from './chunk-WRIQGJKT.js';
12
- import { UNIVERSAL_IMAGE_DIGEST, UNIVERSAL_IMAGE_REPOSITORY, UNIVERSAL_IMAGE_SOURCE, buildAgentPin, NODE_IMAGE, UNIVERSAL_IMAGE, MEDIA_PINS, TINI_VERSION, GH_VERSION, imageAgentPins } from './chunk-QS2O5G64.js';
10
+ import { RUNNER_DIR_MODE, RUNNER_FILE_MODE, repoCacheDir, imagesDir, imageBuildLogsDir, attemptStamp, orgStore, rootfsPathFor } from './chunk-53GNEMTP.js';
11
+ import { withGitConfig, tokenHeader } from './chunk-NI46LQRD.js';
12
+ import { UNIVERSAL_IMAGE_DIGEST, UNIVERSAL_IMAGE_REPOSITORY, UNIVERSAL_IMAGE_SOURCE, buildAgentPin, NODE_IMAGE, UNIVERSAL_IMAGE, MEDIA_PINS, TINI_VERSION, GH_VERSION, imageAgentPins } from './chunk-MSDGVITJ.js';
13
13
  import { mkdirSync, writeFileSync, existsSync, mkdtempSync, rmSync, cpSync, readFileSync, readdirSync, lstatSync, readlinkSync } from 'fs';
14
14
  import { tmpdir } from 'os';
15
15
  import { join, dirname } from 'path';
@@ -1,6 +1,6 @@
1
1
  #!/usr/bin/env node
2
2
  import { createRequire } from 'node:module';
3
- import { runnerDir, RUNNER_DIR_MODE, RUNNER_FILE_MODE } from './chunk-D5TZYUGZ.js';
3
+ import { runnerDir, RUNNER_DIR_MODE, RUNNER_FILE_MODE } from './chunk-53GNEMTP.js';
4
4
  import { readlinkSync, realpathSync, mkdirSync, unlinkSync, symlinkSync, renameSync, readFileSync, writeFileSync, rmSync, existsSync, readdirSync } from 'fs';
5
5
  import { join, basename, sep, resolve } from 'path';
6
6
 
@@ -1,6 +1,6 @@
1
1
  #!/usr/bin/env node
2
2
  import { createRequire } from 'node:module';
3
- import { credentialEnvPath, runnerAgents, credentialNames, credentialForms, credentialAgent, strippedVariables, orList, credentialShapes, managedOfferedAgents, listedAgents, agentsNeedingCredential, judgeAgent, forwardedVariables } from './chunk-QS2O5G64.js';
3
+ import { credentialEnvPath, runnerAgents, credentialNames, credentialForms, credentialAgent, strippedVariables, orList, credentialShapes, managedOfferedAgents, listedAgents, agentsNeedingCredential, judgeAgent, forwardedVariables } from './chunk-MSDGVITJ.js';
4
4
  import { defaultAgents } from './chunk-XMJNIIPM.js';
5
5
  import { statSync, readFileSync } from 'fs';
6
6
  import { join, basename } from 'path';
@@ -1,7 +1,7 @@
1
1
  #!/usr/bin/env node
2
2
  import { createRequire } from 'node:module';
3
3
  import { isVersion, compareVersions } from './chunk-TQMI335S.js';
4
- import { RUNNER_DIR_MODE, RUNNER_FILE_MODE } from './chunk-D5TZYUGZ.js';
4
+ import { RUNNER_DIR_MODE, RUNNER_FILE_MODE } from './chunk-53GNEMTP.js';
5
5
  import { readFileSync, mkdirSync, writeFileSync, renameSync } from 'fs';
6
6
  import { join } from 'path';
7
7
 
@@ -882,7 +882,7 @@ async function missingControlPlane(cwd, sessionId, home, env) {
882
882
  cleanupEarlierCopies(dirs);
883
883
  }
884
884
  if (!contextPossiblyGoverned(cwd, home)) return void 0;
885
- const { governanceOf } = await import('./control-plane-launch-BPJQYN6J.js');
885
+ const { governanceOf } = await import('./control-plane-launch-BEN5IP6V.js');
886
886
  if (await governanceOf({ cwd, env, home }) !== "governed") return void 0;
887
887
  recordMissingContext(dirs, sessionId, home);
888
888
  const launcher = `${cliInvocation()} ${LEGACY.legacy.subcommand}`;
@@ -3,7 +3,7 @@ import { createRequire } from 'node:module';
3
3
  import { sanitizeTerminal } from './chunk-WNFITHNX.js';
4
4
  import { machineSkillsState, staleAgentSkills } from './chunk-LOWZZ4QA.js';
5
5
  import { isAgentsMdLayout } from './chunk-4SMKP5QI.js';
6
- import { resolveGatewayCredentials, defaultFetch } from './chunk-FRLGVHJP.js';
6
+ import { resolveGatewayCredentials, defaultFetch } from './chunk-JR3R4R3R.js';
7
7
  import { versionAtLeast } from './chunk-DJK3IK6K.js';
8
8
  import { findGitDirs } from './chunk-BJ3KTMDH.js';
9
9
  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 { UNIVERSAL_IMAGE_REPOSITORY, UNIVERSAL_IMAGE_DIGEST } from './chunk-QS2O5G64.js';
3
+ import { UNIVERSAL_IMAGE_REPOSITORY, UNIVERSAL_IMAGE_DIGEST } from './chunk-MSDGVITJ.js';
4
4
  import { existsSync, readdirSync, readFileSync, lstatSync, realpathSync, writeFileSync } from 'fs';
5
5
  import { join, resolve, relative, dirname, sep, basename } from 'path';
6
6
  import { createRequire as createRequire$1 } from 'module';
@@ -1,8 +1,8 @@
1
1
  #!/usr/bin/env node
2
2
  import { createRequire } from 'node:module';
3
- import { helperSocketPath } from './chunk-YP6FUS5X.js';
4
- import { UNIT_MARKER } from './chunk-H6V5NFPW.js';
5
- import { runnerDir } from './chunk-D5TZYUGZ.js';
3
+ import { helperSocketPath } from './chunk-MDEMVCGR.js';
4
+ import { UNIT_MARKER } from './chunk-4Y4MZCAV.js';
5
+ import { runnerDir } from './chunk-53GNEMTP.js';
6
6
  import { createHash } from 'crypto';
7
7
  import { join } from 'path';
8
8
 
@@ -1,9 +1,9 @@
1
1
  #!/usr/bin/env node
2
2
  import { createRequire } from 'node:module';
3
3
  import { LAUNCH_AGENT_ENV } from './chunk-TXKHD4Q6.js';
4
- import { execStartArgv } from './chunk-M4YTSRJI.js';
5
- import { DEFAULT_UNIT_NAME } from './chunk-H6V5NFPW.js';
6
- import { runnerDir } from './chunk-D5TZYUGZ.js';
4
+ import { execStartArgv } from './chunk-PZNXFA4N.js';
5
+ import { DEFAULT_UNIT_NAME } from './chunk-4Y4MZCAV.js';
6
+ import { runnerDir } from './chunk-53GNEMTP.js';
7
7
  import { join, dirname } from 'path';
8
8
 
9
9
  createRequire(import.meta.url);
@@ -1,6 +1,6 @@
1
1
  #!/usr/bin/env node
2
2
  import { createRequire } from 'node:module';
3
- import { hostKeyPath, runnerDir, RUNNER_DIR_MODE, RUNNER_FILE_MODE } from './chunk-D5TZYUGZ.js';
3
+ import { hostKeyPath, runnerDir, RUNNER_DIR_MODE, RUNNER_FILE_MODE } from './chunk-53GNEMTP.js';
4
4
  import { generateKeyPairSync, createPrivateKey, createPublicKey, sign } from 'crypto';
5
5
  import { existsSync, mkdirSync, writeFileSync, readFileSync } from 'fs';
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-26RXLXEX.js';
4
- import { autoConnect } from './chunk-4I3SN7WG.js';
4
+ import { autoConnect } from './chunk-JR6KYUIA.js';
5
5
  import { C } from './chunk-2AM6Z5BP.js';
6
- import { defaultFetch, unauthorizedMessage, resolveGatewayCredentials } from './chunk-FRLGVHJP.js';
6
+ import { defaultFetch, unauthorizedMessage, resolveGatewayCredentials } from './chunk-JR3R4R3R.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,14 +1,14 @@
1
1
  #!/usr/bin/env node
2
2
  import { createRequire } from 'node:module';
3
- import { placeholderQueues, placeholderProblem } from './chunk-YP6FUS5X.js';
4
- import { checkFit } from './chunk-H6V5NFPW.js';
5
- import { getJson, WorkCommandError } from './chunk-YLDHHHBJ.js';
6
- import { isBuiltinSandbox, builtinKind, EGRESS_SWITCHABLE_KEYS, keepsHostBuilder } from './chunk-SR4532T7.js';
7
- import { realBuildDiskProbe, checkDiskFit, DEFAULT_CACHE_DISK, DEFAULT_BUILD_DISK } from './chunk-JD5VDXQO.js';
8
- import { ensureHostKey } from './chunk-I6G5CO3K.js';
9
- import { sandboxSettingsFrom } from './chunk-WRIQGJKT.js';
10
- import { agentCredentialVariablesSet, reportedAgents, parseRunnerEnv, BUILD_SLICE_MEMORY_ENV } from './chunk-D47Z2Z7F.js';
11
- import { forwardedVariables, credentialAgent, credentialForms, managedKeyName, agentsNeedingCredential, storeVariables, credentialEnvPath } from './chunk-QS2O5G64.js';
3
+ import { placeholderQueues, placeholderProblem } from './chunk-MDEMVCGR.js';
4
+ import { checkFit } from './chunk-4Y4MZCAV.js';
5
+ import { getJson, WorkCommandError } from './chunk-KJKMGZCS.js';
6
+ import { isBuiltinSandbox, builtinKind, EGRESS_SWITCHABLE_KEYS, keepsHostBuilder } from './chunk-CII3Z3YJ.js';
7
+ import { realBuildDiskProbe, checkDiskFit, DEFAULT_CACHE_DISK, DEFAULT_BUILD_DISK } from './chunk-MNN45CQ2.js';
8
+ import { ensureHostKey } from './chunk-VKAQSJZN.js';
9
+ import { sandboxSettingsFrom } from './chunk-NI46LQRD.js';
10
+ import { agentCredentialVariablesSet, reportedAgents, parseRunnerEnv, BUILD_SLICE_MEMORY_ENV } from './chunk-RCJ3D5DA.js';
11
+ import { agentIdOfCommand, forwardedVariables, credentialAgent, credentialForms, managedKeyName, agentsNeedingCredential, storeVariables, credentialEnvPath } from './chunk-MSDGVITJ.js';
12
12
  import { defaultAgents, agentById } from './chunk-XMJNIIPM.js';
13
13
  import { closeSync, openSync, constants, readFileSync } from 'fs';
14
14
  import { join, dirname } from 'path';
@@ -31,6 +31,17 @@ function fleetConfigProblem(config) {
31
31
  }
32
32
  return void 0;
33
33
  }
34
+ function fleetQueuesWithoutAgent(config, agents = defaultAgents()) {
35
+ return ["implement", "amend"].filter((queue) => {
36
+ const command = config.commands[queue];
37
+ return command !== void 0 && agentIdOfCommand(command, agents) === void 0;
38
+ });
39
+ }
40
+ function fleetQueuesWithoutAgentNote(queues) {
41
+ const keys = queues.map((queue) => `runner.commands.${queue}`).join(" and ");
42
+ const verb = queues.length === 1 ? "starts" : "start";
43
+ return `${keys} ${verb} no agent this CLI knows, so the runner runs ${queues.length === 1 ? "it" : "them"} for every claim, whatever agent the claim names. A fleet runner must run the agent each claim names. Start each command with the agent's program, with only \`export NAME=value;\`, \`env NAME=value\` or \`exec\` before it`;
44
+ }
34
45
  async function askFleetMachine(config, fetchImpl = fetch) {
35
46
  let hostKey;
36
47
  try {
@@ -197,4 +208,4 @@ function checkBlockedWithSlots(config, probes, agents = defaultAgents()) {
197
208
  return { slots };
198
209
  }
199
210
 
200
- export { askFleetMachine, checkBlockedWithSlots, fleetConfigProblem, managedFactsOf, managedProblems, realBlockedProbes };
211
+ export { askFleetMachine, checkBlockedWithSlots, fleetConfigProblem, fleetQueuesWithoutAgent, fleetQueuesWithoutAgentNote, managedFactsOf, managedProblems, realBlockedProbes };
@@ -1,10 +1,10 @@
1
1
  #!/usr/bin/env node
2
2
  import { createRequire } from 'node:module';
3
- import { launcherPath, pathNotes, writeLauncher, LauncherWriteError } from './chunk-QHGVLLOJ.js';
4
- import { currentVersion, entryIn, currentLink, versionDir, execStartLine, isInLayout, packageRootIn, switchCurrent } from './chunk-M4YTSRJI.js';
3
+ import { launcherPath, pathNotes, writeLauncher, LauncherWriteError } from './chunk-MZJFHQJI.js';
4
+ import { currentVersion, entryIn, currentLink, versionDir, execStartLine, isInLayout, packageRootIn, switchCurrent } from './chunk-PZNXFA4N.js';
5
5
  import { compareVersions } from './chunk-TQMI335S.js';
6
- import { defaultRunnerConfigPath } from './chunk-SR4532T7.js';
7
- import { runnerDir, RUNNER_DIR_MODE } from './chunk-D5TZYUGZ.js';
6
+ import { defaultRunnerConfigPath } from './chunk-CII3Z3YJ.js';
7
+ import { runnerDir, RUNNER_DIR_MODE } from './chunk-53GNEMTP.js';
8
8
  import { lchownSync, lstatSync, realpathSync, readFileSync, mkdirSync, rmSync, cpSync, existsSync, readdirSync } from 'fs';
9
9
  import { dirname, sep, join, resolve } from 'path';
10
10
  import { spawnSync } from 'child_process';
@@ -1,7 +1,7 @@
1
1
  #!/usr/bin/env node
2
2
  import { createRequire } from 'node:module';
3
- import { readAgentCredential, credentialForAgent } from './chunk-D47Z2Z7F.js';
4
- import { providersOf, credentialAgent, jobAgent, runnerAgents, MANAGED_KIND, judgeAgent } from './chunk-QS2O5G64.js';
3
+ import { readAgentCredential, credentialForAgent } from './chunk-RCJ3D5DA.js';
4
+ import { providersOf, credentialAgent, jobAgent, runnerAgents, MANAGED_KIND, judgeAgent } from './chunk-MSDGVITJ.js';
5
5
  import { defaultAgents } from './chunk-XMJNIIPM.js';
6
6
  import { PROVIDERS } from './chunk-Q7Z6ELTL.js';
7
7
 
@@ -392,7 +392,7 @@ async function runAgentLauncher(agentId, args, deps = {}) {
392
392
  return 1;
393
393
  }
394
394
  } else {
395
- const { resolveLaunchPlane } = await import('./control-plane-launch-BPJQYN6J.js');
395
+ const { resolveLaunchPlane } = await import('./control-plane-launch-BEN5IP6V.js');
396
396
  const plane = env[GOVERNANCE_VARIABLE] === "self" ? { kind: "none" } : await resolveLaunchPlane({ cwd, env, home, fetchImpl: deps.fetchImpl, stderr });
397
397
  if (plane.kind === "none") {
398
398
  const own2 = ownSkillsDirFor(prefix, cwd, home, /* @__PURE__ */ new Set(), stderr);