@outerlayer/cli 0.38.0-next.20261111113945 → 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-ZROOH73G.js → caller-PW7R46M7.js} +7 -7
  10. package/dist/{check-XFV3VI2N.js → check-HC7E2BFS.js} +37 -37
  11. package/dist/{chunk-YE6EE4RC.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-YTZYFWJQ.js → chunk-3Z5KBFBB.js} +2 -2
  16. package/dist/{chunk-3WNKIXAJ.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-SGZCU6L3.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-TXRMWSFE.js → chunk-J345NEVJ.js} +2 -2
  33. package/dist/{chunk-OZWB73EH.js → chunk-KA4BMGBR.js} +2 -2
  34. package/dist/{chunk-O7TYQC2D.js → chunk-KFB7KFEK.js} +7 -7
  35. package/dist/{chunk-WTPL4B4G.js → chunk-KN5VDMVL.js} +3 -3
  36. package/dist/{chunk-UEAEKTK5.js → chunk-LKLP5YMH.js} +5 -5
  37. package/dist/{chunk-WBUOD2CU.js → chunk-LMVHXHGQ.js} +9 -9
  38. package/dist/{chunk-BCP3LGUV.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-NIMQJTUR.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-JZJNPNNW.js → chunk-QBJ7MMOT.js} +8 -8
  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-MJEP4EFZ.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-EFIMO5HF.js → chunk-YOFYW4EE.js} +50 -36
  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-KUDROKJT.js → cli-EOY2DOOD.js} +124 -124
  63. package/dist/{command-6EO3Z7BW.js → command-OD2UYKKQ.js} +32 -32
  64. package/dist/{config-6EOFYJWZ.js → config-AOOR5BPQ.js} +6 -6
  65. package/dist/{connect-cmd-OTYUH5EY.js → connect-cmd-FIPFU4X4.js} +5 -5
  66. package/dist/{container-start-B6UCYRAZ.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-6TS6Y6DI.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-RPIWIOJ2.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-VQ4C5U6W.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-ZSLVVOTK.js → init-4WHNRYJK.js} +28 -28
  91. package/dist/{init-PNXWQIPT.js → init-CSOKCOU2.js} +28 -28
  92. package/dist/{init-agent-J6RUWY5O.js → init-agent-N4SCUBDT.js} +28 -28
  93. package/dist/{init-cmd-DX66HZ6D.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-IWOVUNVC.js → loop-DH7PXRWV.js} +36 -36
  98. package/dist/{machine-HMMOQT46.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-QO43XEFB.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-JPAT3ERV.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-MQVZT3Z4.js → status-CJSJY6XJ.js} +28 -28
  112. package/dist/{sync-cmd-ELGJ5MHU.js → sync-cmd-WE46ELML.js} +9 -9
  113. package/dist/{update-steps-MXCEJOCG.js → update-steps-QTCJF6DY.js} +29 -29
  114. package/dist/{watch-FJYJQXBK.js → watch-O5BOUDHZ.js} +9 -9
  115. package/dist/{work-claim-cmd-VRTQB3TO.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-5PC334U6.js → work-proofs-cmd-CZFDNMXW.js} +8 -8
  125. package/dist/{work-proofs-record-EHZDEFKH.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
@@ -1,34 +1,34 @@
1
1
  #!/usr/bin/env node
2
2
  import { createRequire } from 'node:module';
3
3
  import { decideInstalledSwitch } from './chunk-3JVYMD4G.js';
4
- import { reportFailedStart, fitImageBuildMemory } from './chunk-O7TYQC2D.js';
4
+ import { reportFailedStart, fitImageBuildMemory } from './chunk-KFB7KFEK.js';
5
5
  import { fetchVersionMeta, npmVersion, npmSupportsProvenance, fetchTarballDigest, fetchProvenance, installVersion, auditSignatures } from './chunk-E7R2GIAW.js';
6
- import { writeFleetState } from './chunk-LXEXWLCW.js';
7
- import { writePendingUpdate } from './chunk-L2VXYF66.js';
8
- import { renderUpdateSteps } from './chunk-YE6EE4RC.js';
9
- import { readHousekeepingRecord, writeHousekeepingRecord } from './chunk-UBZTPZJF.js';
10
- import { fleetConfigProblem, realBlockedProbes, sliceMemoryOf, checkBlockedWithSlots, largeBuildMemoryBytes, LARGE_BUILD_DISK_BYTES, checkManagedRoom, askFleetMachine } from './chunk-NIMQJTUR.js';
11
- import { writeMarker, readMarker, currentVersion, removeMarker, isInLayout, startedThroughCurrent, entryIn, versionDir, switchCurrent, cleanVersions, stagingDir } from './chunk-WL333KYF.js';
12
- import { leaseTimeLeftMs, createContainerRuntime, withTunnelLog, itemTag, releaseLease, runIsolation, runCommandOf, claimRun, LEASE_SECONDS, isUnfinished, prepareResume, restoreSessionIntoMicroVm, restoreSessionIntoContainer, recordsProofsOnly, itemScope, attemptNote, fetchManagedClaudeKey, holdManagedClaudeKey, fetchManagedBuildSettings, holdManagedBuildSettings, setStage, jobEnv, runHook, describeHookEnd, needsBuildSkill, provisionContainer, leaseExpiresAtMs, deliverContainerHooks, provisionSandbox, deliverSandboxHooks, provisionMicroVm, deliverCommitHooks, provisionEnvironment, readProvisionOut, resolveHostBuild, workdirProblem, listenOnBroker, hostEnvironment, deliverExecMaven, runWithSpawn, hostCommandEnvironment, lifecycleSteps, execArgv, lifecycleFailureReason, decideHostBuildSkill, prepareBranch, keptCommitsLine, currentSkillCommand, formerSkillProblem, commandLogOffset, startSandboxCommand, MICROVM_COMMAND_DIR, startMicroVmCommand, microVmCommandLine, runCommand, containerCommandExec, execCommandLine, startSender, startHostServices, finishJob, sampleGuest, foldSample, isSandboxTracked, isContainerTracked, isMicroVmTracked, probeSandboxCommand, probeMicroVmCommand, probeCommand, appendCommandLog, judgeProbe, SandboxGoneError, EXIT_CODE_FILE, isTracked, isGroupAlive, outcomeFromExitCode, isIsolatedJob, isTimedOut, readCpuUsec, isIdle, HELPER_ENV, setUpRunnerCgroup, stopOrphanedMicroVms, unfinishedJobs, sweepImageBuilders, listUnreadableJobs, listAdoptableJobs, retryFailedReleases, recoverLostJobs, GUEST_USAGE_INTERVAL_MS, vmAlive, filesAreCopied, listItemDisks, usableCpus, hookLimitsFor, AttemptLogBook, microVmOomKills, needsRenew, renewRun, renewLease, RENEW_INTERVAL_SECONDS, stoppedHelperReason, measureDisk, listTrackedJobs, sweepSandboxes, parseCpuList, ensureTunnel, keepGhConfigCurrent, restartSender, createHousekeepingDocker, housekeepingDockerIfReachable, runHousekeeping, shellQuote, deliverJobFiles, jobRecordsClaim, freeItemDisksUntil, savedStatesDir, readRecords, removeOldestUntil, ensureNetworkReady, managedBuildSettingsFor, ADOPTED_FETCH_RETRY_WINDOW_MS, gitRemoteFor, startServicesFor, installTrust, createLeaseChannel, serveLease, writeGuestGhConfig, inTeardown } from './chunk-SGZCU6L3.js';
6
+ import { writeFleetState } from './chunk-VNHCN75M.js';
7
+ import { writePendingUpdate } from './chunk-7GUD2FIF.js';
8
+ import { renderUpdateSteps } from './chunk-2FJYZUZE.js';
9
+ import { readHousekeepingRecord, writeHousekeepingRecord } from './chunk-3YJJ2JDV.js';
10
+ import { fleetConfigProblem, realBlockedProbes, sliceMemoryOf, checkBlockedWithSlots, largeBuildMemoryBytes, LARGE_BUILD_DISK_BYTES, checkManagedRoom, askFleetMachine } from './chunk-O5ERYWXA.js';
11
+ import { writeMarker, readMarker, currentVersion, removeMarker, isInLayout, startedThroughCurrent, entryIn, versionDir, switchCurrent, cleanVersions, stagingDir } from './chunk-OPCFOIZJ.js';
12
+ import { leaseTimeLeftMs, createContainerRuntime, withTunnelLog, itemTag, releaseLease, runIsolation, runCommandOf, claimRun, LEASE_SECONDS, isUnfinished, prepareResume, restoreSessionIntoMicroVm, restoreSessionIntoContainer, recordsProofsOnly, itemScope, attemptNote, fetchManagedClaudeKey, holdManagedClaudeKey, fetchManagedBuildSettings, holdManagedBuildSettings, setStage, jobEnv, runHook, describeHookEnd, needsBuildSkill, provisionContainer, leaseExpiresAtMs, deliverContainerHooks, provisionSandbox, deliverSandboxHooks, provisionMicroVm, deliverCommitHooks, provisionEnvironment, readProvisionOut, resolveHostBuild, workdirProblem, listenOnBroker, hostEnvironment, deliverExecMaven, runWithSpawn, hostCommandEnvironment, lifecycleSteps, execArgv, lifecycleFailureReason, decideHostBuildSkill, prepareBranch, keptCommitsLine, currentSkillCommand, formerSkillProblem, commandLogOffset, startSandboxCommand, MICROVM_COMMAND_DIR, startMicroVmCommand, microVmCommandLine, runCommand, containerCommandExec, execCommandLine, startSender, startHostServices, finishJob, sampleGuest, foldSample, isSandboxTracked, isContainerTracked, isMicroVmTracked, probeSandboxCommand, probeMicroVmCommand, probeCommand, appendCommandLog, judgeProbe, SandboxGoneError, EXIT_CODE_FILE, isTracked, isGroupAlive, outcomeFromExitCode, isIsolatedJob, isTimedOut, readCpuUsec, isIdle, HELPER_ENV, setUpRunnerCgroup, stopOrphanedMicroVms, unfinishedJobs, sweepImageBuilders, listUnreadableJobs, listAdoptableJobs, retryFailedReleases, recoverLostJobs, GUEST_USAGE_INTERVAL_MS, vmAlive, filesAreCopied, inSandbox, listItemDisks, usableCpus, hookLimitsFor, AttemptLogBook, microVmOomKills, needsRenew, renewRun, renewLease, RENEW_INTERVAL_SECONDS, stoppedHelperReason, measureDisk, listTrackedJobs, sweepSandboxes, keptSandboxIds, parseCpuList, ensureTunnel, keepGhConfigCurrent, restartSender, createHousekeepingDocker, housekeepingDockerIfReachable, runHousekeeping, shellQuote, jobRecordsClaim, freeItemDisksUntil, savedStatesDir, readRecords, removeOldestUntil, ensureNetworkReady, managedBuildSettingsFor, ADOPTED_FETCH_RETRY_WINDOW_MS, gitRemoteFor, startServicesFor, installTrust, createLeaseChannel, serveLease, writeGuestGhConfig, deliverJobFiles, inTeardown } from './chunk-DKMSDIWM.js';
13
13
  import { RUNNER_PROTOCOL } from './chunk-6XMC6R4W.js';
14
- import { RUNNER_RESERVE_BYTES } from './chunk-3WNKIXAJ.js';
15
- import { RepoFilter } from './chunk-CEDWGLK5.js';
14
+ import { RUNNER_RESERVE_BYTES } from './chunk-4AEOP5PD.js';
15
+ import { RepoFilter } from './chunk-TUH2STQV.js';
16
16
  import { JOB_STATE_FORMAT, readsJobState, jobStateFormatOf } from './chunk-ZVB57WI6.js';
17
- import { imageTag, writeUpdateStatus, pullInstruction, tagToPull } from './chunk-IKT2MOY6.js';
17
+ import { imageTag, writeUpdateStatus, pullInstruction, tagToPull } from './chunk-4G5SYPK2.js';
18
18
  import { isVersion, compareVersions, satisfiesRange } from './chunk-TQMI335S.js';
19
- import { claimCalls, claimItem, spoolHomeFor, leftByRunnerKey, runnerCalls, configForJob } from './chunk-YTZYFWJQ.js';
20
- import { claimPidFile, releasePidFile, writePidFile, readPidFile } from './chunk-U527OJJO.js';
19
+ import { claimCalls, claimItem, spoolHomeFor, leftByRunnerKey, runnerCalls, configForJob } from './chunk-3Z5KBFBB.js';
20
+ import { claimPidFile, releasePidFile, writePidFile, readPidFile } from './chunk-AJ3YUM23.js';
21
21
  import { startTimeOf, isSameProcess } from './chunk-JBJTC3UU.js';
22
- import { describeCallFailure, retrySend, shortClaim, relativeToRunner, formatDuration, resolveGoverningSource, BuildTokens, classifyRefusal, refusalCode, createRunnerLog, formatClock } from './chunk-O67Y46CY.js';
23
- import { isSignatureRefusal, WorkCommandError, getJson, postJson, getBytes } from './chunk-I6RBMWDV.js';
24
- import { keyRunnerFactory, isBuiltinSandbox, isBuiltinContainer, isBuiltinVm, loadRunnerConfig, checkHooks, builtinKind, keepsHostBuilder, runnerDeliversComments, DEFAULT_SAVED_STATE_MAX_BYTES, DEFAULT_UPDATE_MAX_WAIT_HOURS } from './chunk-JZJNPNNW.js';
25
- import { allocatedBytes, freeBytes, formatBytes } from './chunk-OZWB73EH.js';
26
- import { writeJobFile, ensureRunnerIdentity, identityDockerFor, readJobFile, exceedsDisk, runnerLabelValue, builderName, ensureFailureCount, builderSpec, ensureBuilder, spawnRun } from './chunk-S6VT3TNG.js';
27
- import { loadHostKey, ensureHostKey, signerFor } from './chunk-HKP33YSC.js';
28
- import { RUNNER_DIR_MODE, runnerDir, RUNNER_FILE_MODE, buildDir, attemptStamp, jobDir, jobsDir, pidFilePath, storeScopes, imagesDir } from './chunk-5YJWKIIO.js';
29
- import { parseClaimIdentity, parseClaimedRepositories, parseUnreachable, repositoriesOf, primaryOf, JOB_MOUNT } from './chunk-ZW36EULQ.js';
22
+ import { describeCallFailure, retrySend, shortClaim, relativeToRunner, formatDuration, resolveGoverningSource, BuildTokens, classifyRefusal, refusalCode, createRunnerLog, formatClock } from './chunk-FUONFFTG.js';
23
+ import { isSignatureRefusal, WorkCommandError, getJson, postJson, getBytes } from './chunk-QOP2CYYY.js';
24
+ import { keyRunnerFactory, isBuiltinSandbox, isBuiltinContainer, isBuiltinVm, loadRunnerConfig, checkHooks, builtinKind, keepsHostBuilder, runnerDeliversComments, DEFAULT_SAVED_STATE_MAX_BYTES, DEFAULT_UPDATE_MAX_WAIT_HOURS } from './chunk-QBJ7MMOT.js';
25
+ import { allocatedBytes, freeBytes, formatBytes } from './chunk-KA4BMGBR.js';
26
+ import { writeJobFile, ensureRunnerIdentity, identityDockerFor, readJobFile, exceedsDisk, runnerLabelValue, builderName, ensureFailureCount, builderSpec, ensureBuilder, spawnRun } from './chunk-6BXJESQF.js';
27
+ import { loadHostKey, ensureHostKey, signerFor } from './chunk-ZQII2ZRP.js';
28
+ import { RUNNER_DIR_MODE, runnerDir, RUNNER_FILE_MODE, buildDir, attemptStamp, jobDir, jobsDir, pidFilePath, storeScopes, imagesDir } from './chunk-DULO2L5B.js';
29
+ import { parseClaimIdentity, parseClaimedRepositories, parseUnreachable, repositoriesOf, primaryOf, JOB_MOUNT } from './chunk-SIGBRVEF.js';
30
30
  import { jobCredentialProblem, COMMAND_LOST_REASON, takeAgentCredentials, heldAgentCredential, CONTAINER_STOPPED_REASON, currentAgentCredential, fdName } from './chunk-NFPJ2XC2.js';
31
- import { cleanAttachmentName } from './chunk-DHLEYFNL.js';
31
+ import { cleanAttachmentName } from './chunk-UKEJBA5Y.js';
32
32
  import { jobAgent, jobCommandEnv, runnerAgents } from './chunk-36M66QKN.js';
33
33
  import { resolveVersion } from './chunk-RA3O54FC.js';
34
34
  import { mkdirSync, existsSync, writeFileSync, chmodSync, renameSync, statSync, readdirSync, readFileSync, rmSync, closeSync } from 'fs';
@@ -597,19 +597,29 @@ async function deliverComment(runtime, job, file, secrets, fetchAttachment) {
597
597
  return { ok: false, reason: err instanceof Error ? err.message : String(err) };
598
598
  }
599
599
  }
600
- if (job.container !== void 0 && filesAreCopied(job.container)) {
601
- const pending = [];
602
- const placed = await placeAttachments(file, fetchAttachment, async (attachment, bytes) => {
603
- pending.push({ path: attachment.path, bytes });
604
- });
605
- if (pending.length > 0) {
606
- const copied = await deliverInboxAttachments(runtime, job.container, pending, secrets);
607
- if (!copied.ok) return copied;
600
+ if (job.container !== void 0 && filesAreCopied(job.container)) return deliverIntoContainer(runtime, job.container, file, secrets, fetchAttachment);
601
+ if (job.sandbox !== void 0) {
602
+ let sandboxed;
603
+ try {
604
+ sandboxed = await inSandbox(runtime, job.sandbox);
605
+ } catch (err) {
606
+ return { ok: false, reason: err instanceof Error ? err.message : String(err) };
608
607
  }
609
- return deliverInboxFile(runtime, job.container, placed, secrets);
608
+ return deliverIntoContainer(sandboxed, job.sandbox.container, file, secrets, fetchAttachment);
610
609
  }
611
610
  return { ok: true, skipped: true };
612
611
  }
612
+ async function deliverIntoContainer(runtime, state, file, secrets, fetchAttachment) {
613
+ const pending = [];
614
+ const placed = await placeAttachments(file, fetchAttachment, async (attachment, bytes) => {
615
+ pending.push({ path: attachment.path, bytes });
616
+ });
617
+ if (pending.length > 0) {
618
+ const copied = await deliverInboxAttachments(runtime, state, pending, secrets);
619
+ if (!copied.ok) return copied;
620
+ }
621
+ return deliverInboxFile(runtime, state, placed, secrets);
622
+ }
613
623
  async function placeAttachments(file, fetchAttachment, write) {
614
624
  if (file.attachments === void 0) return file;
615
625
  const attachments = [];
@@ -1585,7 +1595,7 @@ function applyComments(state, comments) {
1585
1595
  for (const comment of comments) {
1586
1596
  const active = [...state.jobs.values()].find((entry) => entry.job.claimId === comment.claimId);
1587
1597
  if (active === void 0 || active.ending) continue;
1588
- if (active.job.microvm === void 0 && active.job.container === void 0) continue;
1598
+ if (active.job.microvm === void 0 && active.job.container === void 0 && active.job.sandbox === void 0) continue;
1589
1599
  const delivered = active.deliveredComments ??= /* @__PURE__ */ new Set();
1590
1600
  const delivering = active.deliveringComments ??= /* @__PURE__ */ new Set();
1591
1601
  if (delivered.has(comment.commentId) || delivering.has(comment.commentId)) continue;
@@ -2312,6 +2322,9 @@ function recordHousekeeping(state, root, patch) {
2312
2322
  logOf(state).error(`could not write housekeeping.json: ${describeCallFailure(err)}`);
2313
2323
  }
2314
2324
  }
2325
+ function sandboxesInUse(state) {
2326
+ return /* @__PURE__ */ new Set([...unfinishedJobs(jobsDir(state.config.configPath)).flatMap(({ job }) => job.sandbox?.sandboxId ?? []), ...runtimeOf(state).sandbox.resuming]);
2327
+ }
2315
2328
  async function sweepOwnSandboxes(state) {
2316
2329
  const runtime = runtimeOf(state);
2317
2330
  const log = logOf(state);
@@ -2325,6 +2338,7 @@ async function sweepOwnSandboxes(state) {
2325
2338
  ...runtime.sandbox.sandboxes.keys(),
2326
2339
  ...runtime.sandbox.creating
2327
2340
  ]),
2341
+ heldSandboxes: () => /* @__PURE__ */ new Set([...sandboxesInUse(state), ...keptSandboxIds(state.config.configPath)]),
2328
2342
  log: (line) => log.line(line)
2329
2343
  });
2330
2344
  } catch (err) {
@@ -2353,7 +2367,7 @@ async function housekeepingPass(state) {
2353
2367
  itemStates: (ids) => askItemStates(state.config, state.deps.fetchImpl, ids),
2354
2368
  removeHostBuilder: !own && !hostBuilder,
2355
2369
  docker,
2356
- ...own ? { removeSnapshot: (name) => runtimeOf(state).sandbox.client().removeSnapshot(name) } : {},
2370
+ ...own ? { endSandbox: (id) => runtimeOf(state).sandbox.client().end(id), sandboxesInUse: () => sandboxesInUse(state) } : {},
2357
2371
  now: state.deps.now ?? (() => /* @__PURE__ */ new Date()),
2358
2372
  log: logOf(state)
2359
2373
  });
@@ -2516,7 +2530,7 @@ var CLAIM_REFUSAL_CODES = new Set(
2516
2530
  "pull_request_from_fork pull_request_on_default_branch pull_request_ambiguous pull_request_repository_not_connected repository_not_reachable branch_claimed_elsewhere".split(" ")
2517
2531
  );
2518
2532
  async function tryClaimAndStart(state, item, queue) {
2519
- const { postJson: postJson2 } = await import('./work-cmd-EDGMD2VX.js');
2533
+ const { postJson: postJson2 } = await import('./work-cmd-4NMKJHC5.js');
2520
2534
  const log = logOf(state);
2521
2535
  const hostKey = await loadHostKey(state.config.configPath);
2522
2536
  const claim = await retrySend(
@@ -3243,7 +3257,7 @@ async function startJob(state, item, queue, claimId, itemKey, branch, identity,
3243
3257
  config: state.config,
3244
3258
  job,
3245
3259
  jobDir: dirPath,
3246
- deps: { spawnFn: state.deps.spawnFn, runtime: job.microvm !== void 0 || job.container !== void 0 ? runtimeOf(state) : void 0, log }
3260
+ deps: { spawnFn: state.deps.spawnFn, runtime: runtimeOf(state), log }
3247
3261
  });
3248
3262
  if (sender !== void 0) {
3249
3263
  job = { ...active.job, sender };
@@ -4002,7 +4016,7 @@ async function startRunner(configPath, deps, startup) {
4002
4016
  check: update.check ? () => update.check(configPath) : async () => {
4003
4017
  const held = runnerAgents(deps.agents).flatMap((agent) => heldAgentCredential(agent.descriptor.id) ?? []);
4004
4018
  const env = { ...process.env, ...Object.fromEntries(held.map((credential) => [credential.variable, credential.value])) };
4005
- return (await import('./check-XFV3VI2N.js')).runRunnerCheck(configPath, { fetchImpl: deps.fetchImpl, env });
4019
+ return (await import('./check-HC7E2BFS.js')).runRunnerCheck(configPath, { fetchImpl: deps.fetchImpl, env });
4006
4020
  },
4007
4021
  now: () => (deps.now ?? (() => /* @__PURE__ */ new Date()))().getTime(),
4008
4022
  log
@@ -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-5YJWKIIO.js';
3
+ import { hostKeyPath, runnerDir, RUNNER_DIR_MODE, RUNNER_FILE_MODE } from './chunk-DULO2L5B.js';
4
4
  import { generateKeyPairSync, createPrivateKey, createPublicKey, sign } from 'crypto';
5
5
  import { existsSync, mkdirSync, writeFileSync, readFileSync } from 'fs';
6
6
 
@@ -325,7 +325,7 @@ async function runAgentLauncher(agentId, args, deps = {}) {
325
325
  return 1;
326
326
  }
327
327
  } else {
328
- const { resolveLaunchPlane } = await import('./control-plane-launch-SXAXGPCQ.js');
328
+ const { resolveLaunchPlane } = await import('./control-plane-launch-IIHRG233.js');
329
329
  const plane = env[GOVERNANCE_VARIABLE] === "self" ? { kind: "none" } : await resolveLaunchPlane({ cwd, env, home, fetchImpl: deps.fetchImpl, stderr });
330
330
  if (plane.kind === "none") {
331
331
  const own2 = ownSkillsDirFor(prefix, cwd, home, /* @__PURE__ */ new Set(), stderr);