@outerlayer/cli 0.36.0-next.20261103103134 → 0.36.0-next.20261103181718

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 (165) hide show
  1. package/dist/{agent-setup-DZZZH3SE.js → agent-setup-WV4Y2HGG.js} +18 -18
  2. package/dist/{agent-subcommand-WRHH6SRD.js → agent-subcommand-RQCLWP3A.js} +3 -3
  3. package/dist/{bridge-GZSZQGLI.js → bridge-NFSJ4IBQ.js} +6 -6
  4. package/dist/{build-UKZ5RPRR.js → build-RGO3EWJD.js} +12 -12
  5. package/dist/{build-disk-3HOXULLP.js → build-disk-NYYBJGBH.js} +10 -10
  6. package/dist/build-info.json +1 -1
  7. package/dist/{builder-QEK4GIRY.js → builder-HT3CV5ZZ.js} +9 -9
  8. package/dist/caller-D4ZZWA6I.js +23 -0
  9. package/dist/{check-D6NMQ6LP.js → check-4T4FDFLZ.js} +56 -54
  10. package/dist/{chunk-LDKF6B2R.js → chunk-22JLORO6.js} +3 -3
  11. package/dist/{chunk-K26KMWU4.js → chunk-2P532NZM.js} +7 -7
  12. package/dist/{chunk-NMMGRG5V.js → chunk-2VWYPY62.js} +4 -4
  13. package/dist/{chunk-B5VKRKLJ.js → chunk-3JYR5R57.js} +1 -1
  14. package/dist/{chunk-PDRWRFB2.js → chunk-4S564XTG.js} +3 -3
  15. package/dist/{chunk-SYKEQT63.js → chunk-5HMIMWRD.js} +17 -5
  16. package/dist/{chunk-L3SHPR2M.js → chunk-63KUYXOH.js} +1 -1
  17. package/dist/{chunk-VST3BWL4.js → chunk-63T2OTPO.js} +11 -10
  18. package/dist/{chunk-42X6CTBI.js → chunk-6BGE2CZB.js} +3 -3
  19. package/dist/{chunk-JMM3L5RG.js → chunk-7A2OPME2.js} +4 -4
  20. package/dist/{chunk-QVOU2QUR.js → chunk-7HRNYPL3.js} +3 -3
  21. package/dist/{chunk-2JWLK2TU.js → chunk-7TPLWWFN.js} +1 -1
  22. package/dist/{chunk-P4Q6M6PI.js → chunk-7WZNTLNB.js} +1 -1
  23. package/dist/{chunk-LV4IDDD3.js → chunk-AWPGPPXP.js} +5 -5
  24. package/dist/{chunk-DWYQKLCL.js → chunk-AWY7ORQ2.js} +1 -1
  25. package/dist/{chunk-3XEYA3QF.js → chunk-BQUI64BU.js} +1 -1
  26. package/dist/{chunk-CDTBXABP.js → chunk-C6LAXUC7.js} +2 -2
  27. package/dist/{chunk-IEDO26G4.js → chunk-CFHM562L.js} +10 -3
  28. package/dist/{chunk-MPVTZLOM.js → chunk-CLFP2ZTG.js} +3 -3
  29. package/dist/{chunk-ZE2JJQPC.js → chunk-CMZTCXCA.js} +1 -1
  30. package/dist/{chunk-NH4EZRBM.js → chunk-CTBQN5KQ.js} +6 -6
  31. package/dist/{chunk-KHJPRTOW.js → chunk-DIL7U77P.js} +1 -1
  32. package/dist/{chunk-54ERDQ3O.js → chunk-E6ESLX5E.js} +32 -8
  33. package/dist/{chunk-R63T46P7.js → chunk-EZI2BLP6.js} +3 -3
  34. package/dist/{chunk-6J3QWXTA.js → chunk-F2UM3NDF.js} +4 -4
  35. package/dist/{chunk-6UI4ELNA.js → chunk-GTJLKBN7.js} +7 -7
  36. package/dist/{chunk-HO4DPX5N.js → chunk-H4H3KK25.js} +1 -1
  37. package/dist/{chunk-YEZGNCSK.js → chunk-H6T73OLF.js} +1 -1
  38. package/dist/{chunk-7UYXSF62.js → chunk-HBYFB3LK.js} +6 -7
  39. package/dist/{chunk-JD5EVW6Y.js → chunk-I5EZW66W.js} +4 -4
  40. package/dist/{chunk-EUWTGCK5.js → chunk-IKAGRGLY.js} +1 -1
  41. package/dist/{chunk-NQYTUVZR.js → chunk-IM4VUDKW.js} +1 -1
  42. package/dist/{chunk-BZQ3S24G.js → chunk-INT54Z2T.js} +1 -1
  43. package/dist/{chunk-GWJUEJR4.js → chunk-IRJ6EGQT.js} +7 -7
  44. package/dist/{chunk-WAGHPZP2.js → chunk-J3SICPA2.js} +1 -1
  45. package/dist/{chunk-GPBTTHK3.js → chunk-JJ63MLE5.js} +1 -1
  46. package/dist/{chunk-HQBKKYYQ.js → chunk-K3GCT2HL.js} +4 -4
  47. package/dist/{chunk-XW2KXLZB.js → chunk-K52TGQLV.js} +18 -18
  48. package/dist/{chunk-52Z7AOZ2.js → chunk-KYDKOYZD.js} +44 -27
  49. package/dist/{chunk-T5I2H7TJ.js → chunk-NE2A2ZIY.js} +1 -1
  50. package/dist/{chunk-HR4PJLOO.js → chunk-NFYXRAEV.js} +1 -1
  51. package/dist/{chunk-4MLH5MDB.js → chunk-OM3XGJBY.js} +5 -5
  52. package/dist/{chunk-U7MLC45I.js → chunk-ORBQ4QR7.js} +5 -5
  53. package/dist/{chunk-VMPVQE4D.js → chunk-PL2AGLJF.js} +2 -2
  54. package/dist/{chunk-J4NJWTNO.js → chunk-POTMAJPJ.js} +5 -5
  55. package/dist/{chunk-LXXP5HRJ.js → chunk-PTHBJDWK.js} +3 -3
  56. package/dist/{chunk-OGG5ELXF.js → chunk-QLZXFKGO.js} +4 -4
  57. package/dist/{chunk-FLQL6ZIG.js → chunk-QN4ABLRK.js} +1 -1
  58. package/dist/{chunk-OPEZVPF7.js → chunk-R4LXONKC.js} +3 -3
  59. package/dist/{chunk-EHS3HEB6.js → chunk-RGSQHTO4.js} +3 -3
  60. package/dist/{chunk-KVO4MJWS.js → chunk-RY5QFTXJ.js} +6 -6
  61. package/dist/{chunk-U6EACUUG.js → chunk-RYSGOWHG.js} +16 -3
  62. package/dist/{chunk-54PQNYA7.js → chunk-S7YLAN2P.js} +2 -2
  63. package/dist/{chunk-PYK6GCCU.js → chunk-SIVZITLG.js} +5 -5
  64. package/dist/{chunk-BEJJJZXF.js → chunk-SR6SXYM4.js} +3 -3
  65. package/dist/{chunk-4MN4BBKZ.js → chunk-SWUPSLNV.js} +7 -7
  66. package/dist/{chunk-2SBNZ4EC.js → chunk-T3MVV6LG.js} +1 -1
  67. package/dist/{chunk-IEVARJ6G.js → chunk-UD6I7QJJ.js} +2 -2
  68. package/dist/{chunk-B5UBTIIP.js → chunk-UT4SX57J.js} +4 -4
  69. package/dist/{chunk-LISVY7JZ.js → chunk-UVKPDGLM.js} +7 -7
  70. package/dist/{chunk-YCBVYTFI.js → chunk-V227E7UX.js} +1 -1
  71. package/dist/{chunk-DEZSNJSE.js → chunk-W72X24TZ.js} +1 -1
  72. package/dist/{chunk-2W5C47AE.js → chunk-WGLYAMVK.js} +1 -1
  73. package/dist/{chunk-K373UCEV.js → chunk-WSZZKMXF.js} +1 -1
  74. package/dist/{chunk-TWGSXBZM.js → chunk-WTKCAALP.js} +3 -3
  75. package/dist/{chunk-NOLS2G2W.js → chunk-WWTZLRPH.js} +8 -0
  76. package/dist/{chunk-ZZ4WIQRF.js → chunk-WZ5YJJMP.js} +12 -9
  77. package/dist/{chunk-UZSMDU4U.js → chunk-X2B7ILTH.js} +2 -2
  78. package/dist/{chunk-S7YU25AF.js → chunk-XKM7KCUJ.js} +31 -31
  79. package/dist/{chunk-XAMTNTOH.js → chunk-YVRJDMDL.js} +9 -9
  80. package/dist/{chunk-NDCN3R5C.js → chunk-ZKJGZQ63.js} +3 -3
  81. package/dist/{claude-launcher-CPSCSL6U.js → claude-launcher-KQHWKYRL.js} +6 -6
  82. package/dist/{cli-TZW5XJRE.js → cli-BM7CAJFW.js} +159 -143
  83. package/dist/{command-5VOKN4HI.js → command-ZIVI5DQK.js} +48 -48
  84. package/dist/{config-23EBIGW4.js → config-W4OY2JNP.js} +11 -11
  85. package/dist/{connect-cmd-GEBIOBQQ.js → connect-cmd-2O2GGNAY.js} +10 -10
  86. package/dist/{container-start-NJGGT4E3.js → container-start-CRUUG57V.js} +46 -46
  87. package/dist/{context-cleanup-I7FLIV5A.js → context-cleanup-2SPOGEZR.js} +3 -3
  88. package/dist/{context-show-cmd-CSPMSRHX.js → context-show-cmd-LAK6CYZT.js} +11 -11
  89. package/dist/{control-plane-launch-KC7NUNYQ.js → control-plane-launch-N7FFBGPD.js} +13 -13
  90. package/dist/{demo-record-cmd-ZW6U2LAV.js → demo-record-cmd-335YZIXU.js} +7 -7
  91. package/dist/{demo-voice-cmd-IDW3QX3E.js → demo-voice-cmd-LVODULO2.js} +18 -18
  92. package/dist/{docker-2VHMWLNK.js → docker-WDMFRVOX.js} +9 -9
  93. package/dist/{doctor-ZAB6SDWF.js → doctor-3HKOYZTJ.js} +48 -48
  94. package/dist/{emit-artifact-cmd-2ZHPNLPG.js → emit-artifact-cmd-MLIPSYXP.js} +17 -17
  95. package/dist/{emit-cmd-UN7HGZC5.js → emit-cmd-S64A2LJ2.js} +6 -6
  96. package/dist/{emit-criteria-cmd-TUXGD7CW.js → emit-criteria-cmd-JYG5LJEQ.js} +13 -13
  97. package/dist/{emit-demo-cmd-4YMYB556.js → emit-demo-cmd-LKB4OHJD.js} +18 -18
  98. package/dist/{emit-finding-cmd-O2NN22XF.js → emit-finding-cmd-YNLZSJEC.js} +13 -13
  99. package/dist/{emit-result-cmd-VRITADX2.js → emit-result-cmd-EYEFXWVS.js} +16 -16
  100. package/dist/{emit-step-cmd-LGNBZTWJ.js → emit-step-cmd-YF5CGZ2H.js} +13 -13
  101. package/dist/{exec-client-NXTXAVHI.js → exec-client-T7XWSBJ3.js} +7 -7
  102. package/dist/find-unit-X5LYKUQX.js +24 -0
  103. package/dist/{findings-cmd-RJD7KTSW.js → findings-cmd-KBV2GQXJ.js} +13 -13
  104. package/dist/{fleet-readiness-RIO2SWC7.js → fleet-readiness-JG3YAKT7.js} +12 -12
  105. package/dist/{governing-source-CZSYE7QE.js → governing-source-VCD5NPMW.js} +18 -18
  106. package/dist/{guest-init-FLSL5RI7.js → guest-init-SG5RDE4K.js} +8 -8
  107. package/dist/{hook-fast-HYRZAY5K.js → hook-fast-QLCXXFMZ.js} +2 -2
  108. package/dist/{hook-install-CSHKOLWT.js → hook-install-TZZNJB4P.js} +3 -3
  109. package/dist/{hook-wrap-fast-ITUBSHEF.js → hook-wrap-fast-HNY3OGLN.js} +2 -2
  110. package/dist/host-checks-LQTHW3DN.js +79 -0
  111. package/dist/{host-key-CPAEQSNU.js → host-key-UEHE5JSK.js} +7 -7
  112. package/dist/{image-tag-MAMFM4SO.js → image-tag-77FWBIYC.js} +7 -7
  113. package/dist/index.js +6 -6
  114. package/dist/{init-G7D7ABKV.js → init-O33TLGUI.js} +44 -44
  115. package/dist/init-UFQQUI4Z.js +79 -0
  116. package/dist/{init-cmd-5GHIMFSS.js → init-cmd-GCHZK7YQ.js} +26 -26
  117. package/dist/{init-update-TQH2Q7IZ.js → init-update-ZSTDH75N.js} +21 -21
  118. package/dist/{install-cmd-PVQ5M5NM.js → install-cmd-BRURSBEH.js} +9 -9
  119. package/dist/{layout-2DF7ON2F.js → layout-YSNLYG6U.js} +3 -3
  120. package/dist/{logs-BM644OOJ.js → logs-TRW3A55Z.js} +6 -6
  121. package/dist/loop-QHQTM25C.js +90 -0
  122. package/dist/machine-VFZAHR6N.js +79 -0
  123. package/dist/{machine-skills-O7XAZYLN.js → machine-skills-WOAIOXAQ.js} +3 -3
  124. package/dist/{mcp-install-cmd-METCXTTR.js → mcp-install-cmd-NFMA6PSL.js} +3 -3
  125. package/dist/{mcp-serve-cmd-CTKBLSM6.js → mcp-serve-cmd-JVLROUUU.js} +8 -8
  126. package/dist/{paths-VIBBLJ2W.js → paths-AOUMCMP3.js} +6 -6
  127. package/dist/pending-JOEXUNDC.js +18 -0
  128. package/dist/{pidfile-PAX5XHQJ.js → pidfile-5LPBPEGE.js} +7 -7
  129. package/dist/{record-QPXOUL6F.js → record-4RLFKQMG.js} +7 -7
  130. package/dist/{relay-KASDMV3R.js → relay-IYJ7JJLG.js} +4 -4
  131. package/dist/{relay-protocol-7HSCZC5H.js → relay-protocol-MPZHNZYJ.js} +4 -4
  132. package/dist/{runner-agents-WUMCXVS2.js → runner-agents-MWBL6LA7.js} +3 -3
  133. package/dist/{runner-env-R2C5LYCX.js → runner-env-YTX4BAXF.js} +13 -13
  134. package/dist/{runner-identity-UDPLWT7I.js → runner-identity-4LMITADJ.js} +9 -9
  135. package/dist/{runner-key-JGIDJTHH.js → runner-key-QTQRIW4N.js} +44 -44
  136. package/dist/{session-sender-4QKSVX5Z.js → session-sender-YAM3GNFD.js} +17 -17
  137. package/dist/{spec-cmd-QAOTQPI6.js → spec-cmd-VE4XIZ6Z.js} +14 -14
  138. package/dist/{starter-pack-LAPDUG6E.js → starter-pack-NAR72DKB.js} +4 -4
  139. package/dist/{state-OTWJW4O7.js → state-GBESQ6UB.js} +7 -7
  140. package/dist/{status-OKZHXEYB.js → status-SNQVVDRU.js} +44 -44
  141. package/dist/{statusline-fast-7V7U4SI4.js → statusline-fast-5G2CTPSX.js} +2 -2
  142. package/dist/{sync-cmd-FLNYVXAE.js → sync-cmd-BXV3EVTU.js} +16 -16
  143. package/dist/update-steps-ZR4RQB7J.js +80 -0
  144. package/dist/{watch-4V7FZI5R.js → watch-FKHHEV3X.js} +16 -16
  145. package/dist/{work-claim-cmd-E2D4YHCS.js → work-claim-cmd-IVG4A3IZ.js} +19 -19
  146. package/dist/{work-cmd-VD362634.js → work-cmd-HSMQMQDL.js} +13 -13
  147. package/dist/{work-comment-cmd-EUI5IOQI.js → work-comment-cmd-OHGGZASQ.js} +15 -15
  148. package/dist/{work-demo-cmd-MGL3U6ZF.js → work-demo-cmd-TMMHK72J.js} +13 -13
  149. package/dist/{work-logs-cmd-QAJG75DG.js → work-logs-cmd-GQCUPUKG.js} +13 -13
  150. package/dist/{work-open-pr-cmd-SXVSMG44.js → work-open-pr-cmd-XVXOXNIL.js} +14 -14
  151. package/dist/{work-pr-cmd-WUIMC7XB.js → work-pr-cmd-E75ZUOAD.js} +13 -13
  152. package/dist/{work-proofs-cmd-AAHTMSCF.js → work-proofs-cmd-LDMQ37OH.js} +15 -15
  153. package/dist/{work-proofs-record-LLUEXW7I.js → work-proofs-record-VJG27HMI.js} +22 -22
  154. package/dist/{work-stop-cmd-RZLGWQJ5.js → work-stop-cmd-JSFV7AL2.js} +13 -13
  155. package/package.json +1 -1
  156. package/skill-pack/maintained/outerlayer-amend/SKILL.md +1 -1
  157. package/skill-pack/maintained/outerlayer-build/SKILL.md +2 -1
  158. package/dist/caller-WSMJJSFL.js +0 -23
  159. package/dist/find-unit-RYYTX2O5.js +0 -24
  160. package/dist/host-checks-KLMATCMD.js +0 -79
  161. package/dist/init-BB2LERCZ.js +0 -79
  162. package/dist/loop-7MAMONQJ.js +0 -90
  163. package/dist/machine-HDHSI7WF.js +0 -79
  164. package/dist/pending-RXJKH4AC.js +0 -18
  165. package/dist/update-steps-W56ITCKQ.js +0 -80
@@ -1,40 +1,40 @@
1
1
  #!/usr/bin/env node
2
2
  import { createRequire } from 'node:module';
3
- import { itemsSentence, criteriaOf, hostItemsOf, loadCitationFinder, testFileMatcher, MAX_TEST_FILE_BYTES, MAX_TEST_FILES, criterionInputs, uncitedIds, planCriteria, parseJudgeAnswer, inCriteriaOrder, oneLineReason, judgedItems, IdScan, firstInPathOrder, isSearchCandidate } from './chunk-GPBTTHK3.js';
3
+ import { itemsSentence, criteriaOf, hostItemsOf, loadCitationFinder, testFileMatcher, MAX_TEST_FILE_BYTES, MAX_TEST_FILES, criterionInputs, uncitedIds, planCriteria, parseJudgeAnswer, inCriteriaOrder, oneLineReason, judgedItems, IdScan, firstInPathOrder, isSearchCandidate } from './chunk-JJ63MLE5.js';
4
4
  import { sha256OfFile, downloadPinned, VoiceDownloadError } from './chunk-2PGI6RDE.js';
5
5
  import { zodProblem } from './chunk-I3LTIAOR.js';
6
- import { hasStoredCredential, storeAgentCredential, credentialFromStdin, isAgentName } from './chunk-LV4IDDD3.js';
7
- import { upgradedStarterText } from './chunk-4MLH5MDB.js';
8
- import { HELPER_PATH, HELPER_RECORD, DOCKERD_LOG } from './chunk-TWGSXBZM.js';
9
- import { writeDockerClientConfig } from './chunk-FLQL6ZIG.js';
10
- import { senderPidfile } from './chunk-EHS3HEB6.js';
11
- import { installScrubContext } from './chunk-K26KMWU4.js';
6
+ import { hasStoredCredential, storeAgentCredential, credentialFromStdin, isAgentName } from './chunk-AWPGPPXP.js';
7
+ import { upgradedStarterText } from './chunk-OM3XGJBY.js';
8
+ import { HELPER_PATH, HELPER_RECORD, DOCKERD_LOG } from './chunk-WTKCAALP.js';
9
+ import { writeDockerClientConfig } from './chunk-QN4ABLRK.js';
10
+ import { senderPidfile } from './chunk-RGSQHTO4.js';
11
+ import { installScrubContext } from './chunk-2P532NZM.js';
12
12
  import { readsJobState, READ_JOB_STATE_FORMATS, jobStateFormatOf } from './chunk-ZVB57WI6.js';
13
- import { runnerImageVersion } from './chunk-EUWTGCK5.js';
14
- import { claimCalls, spoolHomeFor, itemCalls, claimItem, leftByRunnerKey } from './chunk-VMPVQE4D.js';
13
+ import { runnerImageVersion } from './chunk-IKAGRGLY.js';
14
+ import { claimCalls, spoolHomeFor, itemCalls, claimItem, leftByRunnerKey } from './chunk-PL2AGLJF.js';
15
15
  import { receiveFiles } from './chunk-NN33FYXG.js';
16
- import { readDefaultBranchFiles, readDefaultBranchHead, buildRepositoryImage, fetchCommit, readBranchHead, diffBetween, prepareImageBuild, KEY_PREFIX, TAG_HOST, SHARED_OWNER, SHARED_NAME, universalBase, metadataFromLabels, writeRecord } from './chunk-4MN4BBKZ.js';
17
- import { FETCHED_DIR, toolsDockerfile, FETCHED_FFMPEG, FETCHED_GH, FETCHED_TINI, FETCHED_HEADLESS_SHELL, FETCHED_PLAYWRIGHT_FFMPEG, FETCHED_VOICE_DIR } from './chunk-OGG5ELXF.js';
16
+ import { readDefaultBranchFiles, readDefaultBranchHead, buildRepositoryImage, fetchCommit, readBranchHead, diffBetween, prepareImageBuild, KEY_PREFIX, TAG_HOST, SHARED_OWNER, SHARED_NAME, universalBase, metadataFromLabels, writeRecord } from './chunk-SWUPSLNV.js';
17
+ import { FETCHED_DIR, toolsDockerfile, FETCHED_FFMPEG, FETCHED_GH, FETCHED_TINI, FETCHED_HEADLESS_SHELL, FETCHED_PLAYWRIGHT_FFMPEG, FETCHED_VOICE_DIR } from './chunk-QLZXFKGO.js';
18
18
  import { isSameProcess, startTimeOf } from './chunk-JBJTC3UU.js';
19
19
  import { currentCliBuild } from './chunk-OGFGZQA3.js';
20
- import { vmExecArgs, runExec, execCapture, waitForAgent } from './chunk-WAGHPZP2.js';
21
- import { socketPathProblem, vsockLinks, linkVsockSockets, GUEST_CID, LEASE_LINK } from './chunk-MPVTZLOM.js';
22
- import { describeCallFailure, shortClaim, retrySend, commandWithShim, logStamp, createRunnerLog, formatDuration, removeKeptContext, formatClock, stageGovernedContext, keptContextTree, removeStagedContext, WORKFLOW_PERMISSION_REASON, refusalCode, resolveGoverningSource, prefetchGovernedContext, controlPlaneTokenFailure, keepStagedContext, pinnedSourceOf, shimScript } from './chunk-LISVY7JZ.js';
23
- import { postJson, WorkCommandError, getJson, isSignatureRefusal } from './chunk-KVO4MJWS.js';
24
- import { runnerCredentialProblem, builtinKind, keyRunnerFactory, optionalEgress, isBuiltinContainer, isBuiltinVm, egressSummary, DEFAULT_WORKSPACE_KEEP_DAYS, DEFAULT_CHECK_TIME_LIMIT_MINUTES, DEFAULT_SETUP_MINUTES, allowHostProblem, systemClock, emptyEgressCounts, hostAllowed, imageBuildOf, DEFAULT_SAVED_STATE_MAX_BYTES } from './chunk-6J3QWXTA.js';
25
- import { formatBytes, volumeBytes, allocatedBytes, DEFAULT_BUILD_DISK, DEFAULT_CACHE_DISK, freeBytes } from './chunk-IEVARJ6G.js';
26
- import { firstLine, writeJobFile, readJobFile, spawnRun, RUNNER_LABEL, BUILD_LABEL, said, NETWORK_HELPER_MEMORY, createDockerHost, builderSpec, containerExecArgs, childEnvironment, readDu, withAnswerProtocol, judgeCommand, MAX_REPORT_BYTES, parseSize, runnerLabelValue, readJobFileChecked, NETWORK_READY_FILE, networkHelperName, prepareRunArgs, containerRunArgs, JUDGE_MAX_TURNS, WORKSPACE_LABEL, homeCopyRunArgs, networkHelperRunArgs, JUDGE_DIR, hashJudgeProgram, identityScript, identityArgs, parseIdentity, mountableHome, homeCopyScript, homeCopyArgs, COMMAND_DIR, judgeProgramRecord, MAX_ITEMS_BYTES, JUDGE_ITEMS, JUDGE_REPORT, identityRunArgs, SAVED_STATE_LABEL } from './chunk-6UI4ELNA.js';
27
- import { universalImagePending, RecipeError, writeSanitizedRecipe, classifyProperties, DOCKER_FEATURE } from './chunk-YCBVYTFI.js';
20
+ import { vmExecArgs, runExec, execCapture, waitForAgent } from './chunk-J3SICPA2.js';
21
+ import { socketPathProblem, vsockLinks, linkVsockSockets, GUEST_CID, LEASE_LINK } from './chunk-CLFP2ZTG.js';
22
+ import { describeCallFailure, shortClaim, retrySend, commandWithShim, logStamp, createRunnerLog, formatDuration, removeKeptContext, formatClock, stageGovernedContext, keptContextTree, removeStagedContext, WORKFLOW_PERMISSION_REASON, refusalCode, resolveGoverningSource, prefetchGovernedContext, controlPlaneTokenFailure, keepStagedContext, pinnedSourceOf, shimScript } from './chunk-UVKPDGLM.js';
23
+ import { postJson, WorkCommandError, getJson, isSignatureRefusal } from './chunk-RY5QFTXJ.js';
24
+ import { runnerCredentialProblem, builtinKind, keyRunnerFactory, optionalEgress, isBuiltinContainer, isBuiltinVm, egressSummary, DEFAULT_WORKSPACE_KEEP_DAYS, DEFAULT_CHECK_TIME_LIMIT_MINUTES, DEFAULT_SETUP_MINUTES, allowHostProblem, systemClock, emptyEgressCounts, hostAllowed, imageBuildOf, DEFAULT_SAVED_STATE_MAX_BYTES } from './chunk-F2UM3NDF.js';
25
+ import { formatBytes, volumeBytes, allocatedBytes, DEFAULT_BUILD_DISK, DEFAULT_CACHE_DISK, freeBytes } from './chunk-UD6I7QJJ.js';
26
+ import { firstLine, writeJobFile, readJobFile, spawnRun, RUNNER_LABEL, BUILD_LABEL, said, NETWORK_HELPER_MEMORY, createDockerHost, builderSpec, containerExecArgs, childEnvironment, readDu, withAnswerProtocol, judgeCommand, MAX_REPORT_BYTES, parseSize, runnerLabelValue, readJobFileChecked, NETWORK_READY_FILE, networkHelperName, prepareRunArgs, containerRunArgs, JUDGE_MAX_TURNS, WORKSPACE_LABEL, homeCopyRunArgs, networkHelperRunArgs, JUDGE_DIR, hashJudgeProgram, identityScript, identityArgs, parseIdentity, mountableHome, homeCopyScript, homeCopyArgs, COMMAND_DIR, judgeProgramRecord, MAX_ITEMS_BYTES, JUDGE_ITEMS, JUDGE_REPORT, identityRunArgs, SAVED_STATE_LABEL } from './chunk-GTJLKBN7.js';
27
+ import { universalImagePending, RecipeError, writeSanitizedRecipe, classifyProperties, DOCKER_FEATURE } from './chunk-V227E7UX.js';
28
28
  import { sanitizeTerminal, planArtifactUpload } from './chunk-F3T5QJ24.js';
29
- import { sharedSkillNames, skillConflictMessage } from './chunk-3XEYA3QF.js';
29
+ import { sharedSkillNames, skillConflictMessage } from './chunk-BQUI64BU.js';
30
30
  import { readCloudConfig } from './chunk-HWVMRETT.js';
31
- import { signerFor } from './chunk-KHJPRTOW.js';
32
- import { vmAssetsDir, RUNNER_DIR_MODE, RUNNER_FILE_MODE, runnerDir, jobsDir, storeScopes, spoolDir, orgStoreIn, rootfsDir, imagesDir, sessionsDir, builderCacheDiskPath, buildsDir, buildDir, ghConfigDir, runnerDirOfBuild, mirrorDir, orgHomeDir, jobConsolePath, vsockPath, workspacesDir, builderConsolePath, rootfsPathFor, diskTemplatesDir, deliveryDir, SHIM_DIR } from './chunk-L3SHPR2M.js';
33
- import { BUILD_HOME, JOB_MOUNT, buildEnvironment, CHECKOUT_DIR, parseIsolation, containerLocalAddress, destinationEnvironment, withHooksPath, startBuildServices, headerVariables, authorEnvironment, sharedUserEnvironment, withTunnelRecord, commitIdentityRecord, repositoriesOf, RELAY_PORT, repositoryPath, lifecycleWorkdir, CHECK_ITEMS_FILE, proxyEnvironment, checkEnvironment, withMiseVariables, checkoutPath, maxDestinations, resolveDestinations, isReservedVariable, classifyAddress, primaryOf, carried6to4, EVAL_INPUT_DIR, isMiseVariableAllowed } from './chunk-LDKF6B2R.js';
34
- import { agentCredential, RUNNER_WORDED_REASONS, UNKNOWN_TRACKING_REASON, UNKNOWN_TRANSPORT_REASON, currentAgentCredential, removedAgentCredentialValues, managedAgentCredential, RELAY_USER, 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-7UYXSF62.js';
31
+ import { signerFor } from './chunk-DIL7U77P.js';
32
+ import { vmAssetsDir, RUNNER_DIR_MODE, RUNNER_FILE_MODE, runnerDir, jobsDir, storeScopes, spoolDir, orgStoreIn, rootfsDir, imagesDir, sessionsDir, builderCacheDiskPath, buildsDir, buildDir, ghConfigDir, runnerDirOfBuild, mirrorDir, orgHomeDir, jobConsolePath, vsockPath, workspacesDir, builderConsolePath, rootfsPathFor, diskTemplatesDir, deliveryDir, SHIM_DIR } from './chunk-63KUYXOH.js';
33
+ import { BUILD_HOME, JOB_MOUNT, buildEnvironment, CHECKOUT_DIR, parseIsolation, containerLocalAddress, destinationEnvironment, withHooksPath, startBuildServices, headerVariables, authorEnvironment, sharedUserEnvironment, withTunnelRecord, commitIdentityRecord, repositoriesOf, RELAY_PORT, repositoryPath, lifecycleWorkdir, CHECK_ITEMS_FILE, proxyEnvironment, checkEnvironment, withMiseVariables, checkoutPath, maxDestinations, resolveDestinations, isReservedVariable, classifyAddress, primaryOf, carried6to4, EVAL_INPUT_DIR, isMiseVariableAllowed } from './chunk-22JLORO6.js';
34
+ import { agentCredential, RUNNER_WORDED_REASONS, UNKNOWN_TRACKING_REASON, UNKNOWN_TRANSPORT_REASON, currentAgentCredential, removedAgentCredentialValues, managedAgentCredential, RELAY_USER, 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-HBYFB3LK.js';
35
35
  import { versionAtLeast } from './chunk-OV4XTV5M.js';
36
- import { jobAgent, firecrackerArch, MICROVM_ARCHES, FIRECRACKER_VERSION, hostHelperPinned, builderDiskPinned, guestAssetsPinned, runnerAgentNamed, credentialForms, orList, credentialShapes, agentCommands, 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, 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-IEDO26G4.js';
37
- import { sessionFolderIn, legacyAgent, defaultAgents, parsePolicy, AGENTS_SKILLS_BASE, OUTERLAYER_SKILLS_BASE, resolvePackRoot, orderSessions, extractFacts, sessionsToTimeline } from './chunk-54ERDQ3O.js';
36
+ 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, 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-CFHM562L.js';
37
+ import { sessionFolderIn, legacyAgent, defaultAgents, parsePolicy, AGENTS_SKILLS_BASE, OUTERLAYER_SKILLS_BASE, resolvePackRoot, orderSessions, extractFacts, sessionsToTimeline } from './chunk-E6ESLX5E.js';
38
38
  import { MAINTAINED_SKILLS } from './chunk-CDDED64E.js';
39
39
  import { resolveVersion } from './chunk-RA3O54FC.js';
40
40
  import { homeFromEnv } from './chunk-352DHUTP.js';
@@ -2001,6 +2001,23 @@ function formerSkillProblem(queues) {
2001
2001
  const keys = queues.map((queue) => `runner.commands.${queue}`).join(", ");
2002
2002
  return `${keys} ${queues.length === 1 ? "starts" : "start"} /amend, which is now /outerlayer-amend. The runner runs /outerlayer-amend in its place; edit the config to say so`;
2003
2003
  }
2004
+ function modellessQueues(config, agents = defaultAgents()) {
2005
+ const agent = jobAgent(void 0, agents);
2006
+ const flag = agent?.adapter.headless?.modelFlag;
2007
+ if (agent === void 0 || flag === void 0) return [];
2008
+ const program = programPattern(agent.descriptor.program);
2009
+ const named = new RegExp(`(?:^|\\s)${escapeForPattern(flag)}(?:=|\\s)`);
2010
+ return config.queues.filter((queue) => {
2011
+ const command = config.commands[queue];
2012
+ return command !== void 0 && program.test(command) && !named.test(command);
2013
+ });
2014
+ }
2015
+ function modellessProblem(queues, agents = defaultAgents()) {
2016
+ return queues.map((queue) => {
2017
+ const line2 = defaultCommandLine(queue, agents);
2018
+ return `runner.commands.${queue} names no model, so its builds run on the agent's default model${line2 === void 0 ? "" : `. \`runner init\` writes \`${line2}\``}`;
2019
+ }).join(". ");
2020
+ }
2004
2021
  function needsAgentCredential(hooks) {
2005
2022
  return builtinKind(hooks.provision) !== "own";
2006
2023
  }
@@ -11707,4 +11724,4 @@ async function runHostChecks(input) {
11707
11724
  }
11708
11725
  }
11709
11726
 
11710
- export { ADOPTED_FETCH_RETRY_WINDOW_MS, ALREADY_RELEASED, AttemptLogBook, 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, agentCredentialCheck, appendCommandLog, attemptNote, checksIn, claimPermissionProblem, commandItems, commandLogOffset, containerCommandExec, createContainerRuntime, createHousekeepingDocker, createLeaseChannel, currentSkillCommand, decideHostBuildSkill, deliverCommitHooks, deliverContainerHooks, deliverExecMaven, deliverJobFiles, 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, inTeardown, isContainerTracked, isGroupAlive, isIdle, isJudgeCheck, isMicroVmTracked, isPlaceholderCommand, isReadable, isTimedOut, isTracked, isUnfinished, itemScope, itemTag, jobEnv, judgeProbe, keepGhConfigCurrent, leaseExpiresAtMs, leaseTimeLeftMs, lifecycleFailureReason, lifecycleSteps, listAdoptableJobs, listTrackedJobs, listUnreadableJobs, listenOnBroker, makeRecorder, managedBuildSettingsFor, measureDisk, microVmArchSupported, microVmAssetsPinned, microVmCommandLine, microVmOomKills, missingPermissionFix, missingPermissionOf, needsAgentCredential, needsBuildSkill, needsRenew, outcomeFromExitCode, parseCpuList, permissionModeProblem, permissionModeProblems, placeholderProblem, placeholderQueues, prepareBranch, prepareResume, prepareRunnerInit, probeCommand, probeHelper, probeMicroVmCommand, provisionContainer, provisionEnvironment, provisionMicroVm, reachDockerStep, readConfigObject, readCpuUsec, readDefinitions, readProvisionOut, readRecords, recoverLostJobs, releaseLease, removeOldestUntil, renewLease, resolveHostBuild, restartSender, restoreSessionIntoContainer, restoreSessionIntoMicroVm, retryFailedReleases, runCommand, runHook, runHostChecks, runHousekeeping, runRunnerInit, runWithSpawn, sampleGuest, savedStatesDir, scrubReason, serveLease, setStage, setUpRunnerCgroup, shellQuote, startHostServices, startMicroVmCommand, startSender, startServicesFor, stopOrphanedMicroVms, stoppedHelperReason, stripTerminalControls, supportsContainerBuilds, supportsMicroVmBuilds, sweepImageBuilders, testProofIn, timeoutAfter, unfinishedJobs, usableCpus, vmAlive, withTunnelLog, workdirProblem, writeGuestGhConfig, writeRunnerInit };
11727
+ export { ADOPTED_FETCH_RETRY_WINDOW_MS, ALREADY_RELEASED, AttemptLogBook, 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, agentCredentialCheck, appendCommandLog, attemptNote, checksIn, claimPermissionProblem, commandItems, commandLogOffset, containerCommandExec, createContainerRuntime, createHousekeepingDocker, createLeaseChannel, currentSkillCommand, decideHostBuildSkill, deliverCommitHooks, deliverContainerHooks, deliverExecMaven, deliverJobFiles, 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, inTeardown, isContainerTracked, isGroupAlive, isIdle, isJudgeCheck, isMicroVmTracked, isPlaceholderCommand, isReadable, isTimedOut, isTracked, isUnfinished, itemScope, itemTag, jobEnv, judgeProbe, keepGhConfigCurrent, leaseExpiresAtMs, leaseTimeLeftMs, lifecycleFailureReason, lifecycleSteps, listAdoptableJobs, 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, provisionContainer, provisionEnvironment, provisionMicroVm, reachDockerStep, readConfigObject, readCpuUsec, readDefinitions, readProvisionOut, readRecords, recoverLostJobs, releaseLease, removeOldestUntil, renewLease, resolveHostBuild, restartSender, restoreSessionIntoContainer, restoreSessionIntoMicroVm, retryFailedReleases, runCommand, runHook, runHostChecks, runHousekeeping, runRunnerInit, runWithSpawn, sampleGuest, savedStatesDir, scrubReason, serveLease, setStage, setUpRunnerCgroup, shellQuote, startHostServices, startMicroVmCommand, startSender, startServicesFor, stopOrphanedMicroVms, stoppedHelperReason, stripTerminalControls, supportsContainerBuilds, supportsMicroVmBuilds, sweepImageBuilders, testProofIn, timeoutAfter, unfinishedJobs, usableCpus, vmAlive, withTunnelLog, workdirProblem, writeGuestGhConfig, writeRunnerInit };
@@ -1,6 +1,6 @@
1
1
  #!/usr/bin/env node
2
2
  import { createRequire } from 'node:module';
3
- import { defaultAgents } from './chunk-54ERDQ3O.js';
3
+ import { defaultAgents } from './chunk-E6ESLX5E.js';
4
4
  import { openSync, fstatSync, readSync, closeSync } from 'fs';
5
5
  import { join } from 'path';
6
6
 
@@ -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-KHJPRTOW.js';
4
+ import { signRunnerRequest, signerFor } from './chunk-DIL7U77P.js';
5
5
  import { readRepoConnection, findGitDirs } from './chunk-BJ3KTMDH.js';
6
6
  import { PLAIN_VERSION, recordCliVersion, removeRecordedVersion } from './chunk-NFZMENCY.js';
7
7
  import { cliInvocation } from './chunk-FZKNTIOJ.js';
@@ -1,13 +1,13 @@
1
1
  #!/usr/bin/env node
2
2
  import { createRequire } from 'node:module';
3
- import { mcpTargetPath, INIT_STDIO_ENTRY, INIT_DOCS_ENTRY, DOCS_MCP_SERVER_NAME } from './chunk-JD5EVW6Y.js';
4
- import { VALIDATOR_FILES, VALIDATORS_DIR, POLICY_PATH, POLICY_CONTENT } from './chunk-54PQNYA7.js';
5
- import { skillsBaseFor } from './chunk-QVOU2QUR.js';
3
+ import { mcpTargetPath, INIT_STDIO_ENTRY, INIT_DOCS_ENTRY, DOCS_MCP_SERVER_NAME } from './chunk-I5EZW66W.js';
4
+ import { VALIDATOR_FILES, VALIDATORS_DIR, POLICY_PATH, POLICY_CONTENT } from './chunk-S7YLAN2P.js';
5
+ import { skillsBaseFor } from './chunk-7HRNYPL3.js';
6
6
  import { findGitDirs } from './chunk-BJ3KTMDH.js';
7
7
  import { cliInvocation } from './chunk-FZKNTIOJ.js';
8
- import { hasSymlinkComponent } from './chunk-DEZSNJSE.js';
8
+ import { hasSymlinkComponent } from './chunk-W72X24TZ.js';
9
9
  import { cloneIsGoverned } from './chunk-YQR6E6OV.js';
10
- import { resolvePackRoot, AGENTS_SKILLS_BASE, OUTERLAYER_SKILLS_BASE, restoreSkillPaths, rewriteSkillPaths, skillDir, loadTemplateFiles, TEMPLATE_SKILLS } from './chunk-54ERDQ3O.js';
10
+ import { resolvePackRoot, AGENTS_SKILLS_BASE, OUTERLAYER_SKILLS_BASE, restoreSkillPaths, rewriteSkillPaths, skillDir, loadTemplateFiles, TEMPLATE_SKILLS } from './chunk-E6ESLX5E.js';
11
11
  import { createHash } from 'crypto';
12
12
  import { existsSync, readFileSync } from 'fs';
13
13
  import { join } from 'path';
@@ -1,14 +1,14 @@
1
1
  #!/usr/bin/env node
2
2
  import { createRequire } from 'node:module';
3
3
  import { readNewestDemo } from './chunk-ER6KQCVJ.js';
4
- import { runEmitArtifact } from './chunk-NMMGRG5V.js';
4
+ import { runEmitArtifact } from './chunk-2VWYPY62.js';
5
5
  import { VoiceDownloadError, downloadPinned, sha256OfFile } from './chunk-2PGI6RDE.js';
6
- import { detectActiveSession } from './chunk-T5I2H7TJ.js';
7
- import { autoConnect } from './chunk-UZSMDU4U.js';
6
+ import { detectActiveSession } from './chunk-NE2A2ZIY.js';
7
+ import { autoConnect } from './chunk-X2B7ILTH.js';
8
8
  import { C } from './chunk-2AM6Z5BP.js';
9
- import { defaultFetch, resolveGatewayCredentials } from './chunk-HR4PJLOO.js';
9
+ import { defaultFetch, resolveGatewayCredentials } from './chunk-NFYXRAEV.js';
10
10
  import { launchedItemForSession } from './chunk-4OD45RBP.js';
11
- import { VOICE_PACK_FILES, VOICE_PACK_VERSION } from './chunk-IEDO26G4.js';
11
+ import { VOICE_PACK_FILES, VOICE_PACK_VERSION } from './chunk-CFHM562L.js';
12
12
  import { homeFromEnv } from './chunk-352DHUTP.js';
13
13
  import { resolveRepoIdentity } from './chunk-WZOWXDDM.js';
14
14
  import { ARTIFACT_MAX_BYTES, ARTIFACT_MAX_CAPTION_LENGTH, DEMO_RECORD_MEDIA_TYPE, ARTIFACT_MAX_REPLACES_TARGETS, DEMO_MANIFEST_LATEST_VERSION, DemoManifestSchema, ARTIFACT_KINDS } from './chunk-WUKLQWGY.js';
@@ -1,7 +1,7 @@
1
1
  #!/usr/bin/env node
2
2
  import { createRequire } from 'node:module';
3
- import { keyRunnerFactory, RunnerConfigError } from './chunk-6J3QWXTA.js';
4
- import { orgHomeDir } from './chunk-L3SHPR2M.js';
3
+ import { keyRunnerFactory, RunnerConfigError } from './chunk-F2UM3NDF.js';
4
+ import { orgHomeDir } from './chunk-63KUYXOH.js';
5
5
 
6
6
  createRequire(import.meta.url);
7
7
 
@@ -1,13 +1,13 @@
1
1
  #!/usr/bin/env node
2
2
  import { createRequire } from 'node:module';
3
- import { RemovedTargetError, removedTargetError } from './chunk-YEZGNCSK.js';
4
- import { removeRetiredSkills } from './chunk-NQYTUVZR.js';
5
- import { defaultFetch, resolveGatewayCredentials } from './chunk-HR4PJLOO.js';
6
- import { withTokenHeader } from './chunk-LDKF6B2R.js';
3
+ import { RemovedTargetError, removedTargetError } from './chunk-H6T73OLF.js';
4
+ import { removeRetiredSkills } from './chunk-IM4VUDKW.js';
5
+ import { defaultFetch, resolveGatewayCredentials } from './chunk-NFYXRAEV.js';
6
+ import { withTokenHeader } from './chunk-22JLORO6.js';
7
7
  import { appendContextProvenance } from './chunk-545P7JY7.js';
8
8
  import { cliInvocation } from './chunk-FZKNTIOJ.js';
9
9
  import { writeDegraded, writeSourceCache, SOURCE_CACHE_TTL_RETRY_MS, writeContextManifest, SOURCE_CACHE_TTL_SUCCESS_MS, readSourceCache, isSourceCacheFresh, clearDegraded } from './chunk-YQR6E6OV.js';
10
- import { normalizeRepoName, loadMaintainedFiles, writeMaintainedFiles, parseOuterlayerConfig, targetIds, classifyTree, emitTree, emitBuilders, defaultAgents, agentRootFolders } from './chunk-54ERDQ3O.js';
10
+ import { normalizeRepoName, loadMaintainedFiles, writeMaintainedFiles, parseOuterlayerConfig, targetIds, classifyTree, emitTree, emitBuilders, defaultAgents, agentRootFolders } from './chunk-E6ESLX5E.js';
11
11
  import { homeFromEnv } from './chunk-352DHUTP.js';
12
12
  import { execFileSync } from 'child_process';
13
13
  import { existsSync, mkdirSync, writeFileSync, chmodSync, lstatSync, readFileSync, copyFileSync } from 'fs';
@@ -1,11 +1,11 @@
1
1
  #!/usr/bin/env node
2
2
  import { createRequire } from 'node:module';
3
3
  import { launchRefusalForSession } from './chunk-WGC7UFRM.js';
4
- import { detectActiveSession } from './chunk-T5I2H7TJ.js';
5
- import { autoConnect } from './chunk-UZSMDU4U.js';
4
+ import { detectActiveSession } from './chunk-NE2A2ZIY.js';
5
+ import { autoConnect } from './chunk-X2B7ILTH.js';
6
6
  import { acquireSpoolLockAt } from './chunk-F3T5QJ24.js';
7
7
  import { C } from './chunk-2AM6Z5BP.js';
8
- import { resolveGatewayCredentials, defaultFetch, unauthorizedMessage } from './chunk-HR4PJLOO.js';
8
+ import { resolveGatewayCredentials, defaultFetch, unauthorizedMessage } from './chunk-NFYXRAEV.js';
9
9
  import { launchedItemForSession } from './chunk-4OD45RBP.js';
10
10
  import { parseTrackerNumber, trackerNumberError } from './chunk-WZBHBH3J.js';
11
11
  import { homeFromEnv } from './chunk-352DHUTP.js';
@@ -1,9 +1,9 @@
1
1
  #!/usr/bin/env node
2
2
  import { createRequire } from 'node:module';
3
- import { PROXY_WARNING_FLAG } from './chunk-LDKF6B2R.js';
4
- import { RELAY_ID, RELAY_USER } from './chunk-7UYXSF62.js';
5
- import { jobAgent, GH_VERSION, VOICE_PACK_FILES, VOICE_PACK_VERSION, FFMPEG_STATIC, FFMPEG_BUILD_TAG, GH_SHA256, TINI_SHA256, TINI_VERSION, HEADLESS_SHELL_REVISION, HEADLESS_SHELL_BASE_URL, PLAYWRIGHT_FFMPEG_BASE_URL, PLAYWRIGHT_FFMPEG_REVISION, HEADLESS_SHELL, PLAYWRIGHT_FFMPEG, PLAYWRIGHT_VERSION } from './chunk-IEDO26G4.js';
6
- import { defaultAgents } from './chunk-54ERDQ3O.js';
3
+ import { PROXY_WARNING_FLAG } from './chunk-22JLORO6.js';
4
+ import { RELAY_ID, RELAY_USER } from './chunk-HBYFB3LK.js';
5
+ import { jobAgent, GH_VERSION, VOICE_PACK_FILES, VOICE_PACK_VERSION, FFMPEG_STATIC, FFMPEG_BUILD_TAG, GH_SHA256, TINI_SHA256, TINI_VERSION, HEADLESS_SHELL_REVISION, HEADLESS_SHELL_BASE_URL, PLAYWRIGHT_FFMPEG_BASE_URL, PLAYWRIGHT_FFMPEG_REVISION, HEADLESS_SHELL, PLAYWRIGHT_FFMPEG, PLAYWRIGHT_VERSION } from './chunk-CFHM562L.js';
6
+ import { defaultAgents } from './chunk-E6ESLX5E.js';
7
7
 
8
8
  createRequire(import.meta.url);
9
9
 
@@ -1,6 +1,6 @@
1
1
  #!/usr/bin/env node
2
2
  import { createRequire } from 'node:module';
3
- import { RELAY_PORT, BUILD_HOME } from './chunk-LDKF6B2R.js';
3
+ import { RELAY_PORT, BUILD_HOME } from './chunk-22JLORO6.js';
4
4
  import { createServer, connect } from 'net';
5
5
 
6
6
  createRequire(import.meta.url);
@@ -1,9 +1,9 @@
1
1
  #!/usr/bin/env node
2
2
  import { createRequire } from 'node:module';
3
- import { launcherPath, pathNotes, writeLauncher, LauncherWriteError } from './chunk-ZE2JJQPC.js';
4
- import { currentVersion, currentLink, versionDir, execStartLine, isInLayout, packageRootIn, switchCurrent } from './chunk-P4Q6M6PI.js';
3
+ import { launcherPath, pathNotes, writeLauncher, LauncherWriteError } from './chunk-CMZTCXCA.js';
4
+ import { currentVersion, currentLink, versionDir, execStartLine, isInLayout, packageRootIn, switchCurrent } from './chunk-7WZNTLNB.js';
5
5
  import { compareVersions } from './chunk-TQMI335S.js';
6
- import { runnerDir, RUNNER_DIR_MODE } from './chunk-L3SHPR2M.js';
6
+ import { runnerDir, RUNNER_DIR_MODE } from './chunk-63KUYXOH.js';
7
7
  import { lchownSync, lstatSync, realpathSync, readFileSync, mkdirSync, rmSync, cpSync, existsSync, readdirSync } from 'fs';
8
8
  import { dirname, sep, join } from 'path';
9
9
  import { spawnSync } from 'child_process';
@@ -1,9 +1,9 @@
1
1
  #!/usr/bin/env node
2
2
  import { createRequire } from 'node:module';
3
- import { LiveUploader } from './chunk-K26KMWU4.js';
4
- import { spoolDir } from './chunk-SYKEQT63.js';
3
+ import { LiveUploader } from './chunk-2P532NZM.js';
4
+ import { spoolDir } from './chunk-5HMIMWRD.js';
5
5
  import { parseWorkItemEnv } from './chunk-4OD45RBP.js';
6
- import { sessionFolderIn, legacyAgent } from './chunk-54ERDQ3O.js';
6
+ import { sessionFolderIn, legacyAgent } from './chunk-E6ESLX5E.js';
7
7
  import { homeFromEnv } from './chunk-352DHUTP.js';
8
8
  import { CaptureDaemon } from './chunk-WZOWXDDM.js';
9
9
  import { mkdirSync, writeFileSync, rmSync } from 'fs';
@@ -1,12 +1,12 @@
1
1
  #!/usr/bin/env node
2
2
  import { createRequire } from 'node:module';
3
- import { detectActiveSession } from './chunk-T5I2H7TJ.js';
4
- import { autoConnect } from './chunk-UZSMDU4U.js';
5
- import { workPageUrl } from './chunk-PDRWRFB2.js';
3
+ import { detectActiveSession } from './chunk-NE2A2ZIY.js';
4
+ import { autoConnect } from './chunk-X2B7ILTH.js';
5
+ import { workPageUrl } from './chunk-4S564XTG.js';
6
6
  import { sanitizeTerminal } from './chunk-F3T5QJ24.js';
7
7
  import { C } from './chunk-2AM6Z5BP.js';
8
- import { resolveGatewayCredentials, unauthorizedMessage, defaultFetch } from './chunk-HR4PJLOO.js';
9
- import { signRunnerRequest } from './chunk-KHJPRTOW.js';
8
+ import { resolveGatewayCredentials, unauthorizedMessage, defaultFetch } from './chunk-NFYXRAEV.js';
9
+ import { signRunnerRequest } from './chunk-DIL7U77P.js';
10
10
  import { readRepoConnection } from './chunk-BJ3KTMDH.js';
11
11
  import { parseTrackerNumber, trackerNumberError } from './chunk-WZBHBH3J.js';
12
12
  import { NATIVE_AGENTS, LEGACY_AGENT } from './chunk-QJKW4MKH.js';
@@ -486,7 +486,7 @@ async function runWorkLinkSession(opts) {
486
486
  return await linkSession(opts);
487
487
  } catch (err) {
488
488
  if (opts.logFailures) {
489
- const { logHookError } = await import('./hook-fast-HYRZAY5K.js');
489
+ const { logHookError } = await import('./hook-fast-QLCXXFMZ.js');
490
490
  const reason = err instanceof Error ? err.message : String(err);
491
491
  logHookError(opts.home ?? homeFromEnv(opts.env ?? process.env), new Error(`work link-session #${opts.number} failed: ${reason}`));
492
492
  }
@@ -1,11 +1,11 @@
1
1
  #!/usr/bin/env node
2
2
  import { createRequire } from 'node:module';
3
- import { contextAgents, defaultAgents, userSkillFolderIn, loadMachineSkillFiles, resolvePackRoot } from './chunk-54ERDQ3O.js';
3
+ import { defaultAgents, laptopAgents, contextAgents, userSkillFolderIn, loadMachineSkillFiles, resolvePackRoot } from './chunk-E6ESLX5E.js';
4
4
  import { MAINTAINED_SKILLS, maintainedLineVersion } from './chunk-CDDED64E.js';
5
5
  import { resolvePackageVersion } from './chunk-RA3O54FC.js';
6
6
  import { homeFromEnv } from './chunk-352DHUTP.js';
7
7
  import { randomBytes } from 'crypto';
8
- import { existsSync, symlinkSync, realpathSync, lstatSync, readFileSync, mkdirSync, rmSync, renameSync, writeFileSync, cpSync } from 'fs';
8
+ import { existsSync, symlinkSync, realpathSync, statSync, lstatSync, readFileSync, mkdirSync, rmSync, renameSync, writeFileSync, cpSync } from 'fs';
9
9
  import { join, resolve, dirname, relative } from 'path';
10
10
 
11
11
  createRequire(import.meta.url);
@@ -37,6 +37,13 @@ function folderExists(path) {
37
37
  return false;
38
38
  }
39
39
  }
40
+ function folderReachable(path) {
41
+ try {
42
+ return statSync(path).isDirectory();
43
+ } catch {
44
+ return false;
45
+ }
46
+ }
40
47
  function tempName(base, label) {
41
48
  return join(base, `.${label}-${process.pid}-${randomBytes(4).toString("hex")}`);
42
49
  }
@@ -114,7 +121,13 @@ function installMachineSkills(opts) {
114
121
  const version = opts.version ?? resolvePackageVersion();
115
122
  const base = machineSkillsBase(opts.home);
116
123
  const link = opts.link ?? defaultLink;
117
- const agentFolders = contextAgents(opts.agents ?? defaultAgents()).map((agent) => userSkillFolderIn(opts.home, agent.descriptor));
124
+ const agents = opts.agents ?? defaultAgents();
125
+ const installed = laptopAgents(agents).map((agent) => agent.descriptor.id);
126
+ const agentFolders = [
127
+ ...new Set(
128
+ contextAgents(agents).map((agent) => ({ agent, folder: userSkillFolderIn(opts.home, agent.descriptor) })).filter(({ agent, folder }) => installed.includes(agent.descriptor.id) || folderReachable(folder)).map(({ folder }) => folder)
129
+ )
130
+ ];
118
131
  let files;
119
132
  const filesOf = (name) => {
120
133
  files ??= loadMachineSkillFiles(opts.packRoot ?? resolvePackRoot(), version);
@@ -2,8 +2,8 @@
2
2
  import { createRequire } from 'node:module';
3
3
  import { C } from './chunk-2AM6Z5BP.js';
4
4
  import { cliInvocation } from './chunk-FZKNTIOJ.js';
5
- import { linkedAgentsPath } from './chunk-DEZSNJSE.js';
6
- import { resolvePackRoot, OUTERLAYER_SKILLS_BASE, loadTemplateFiles, AGENTS_SKILLS_BASE, loadMaintainedFiles, rewriteSkillPaths, TEMPLATE_SKILLS, skillDir, writeMaintainedFiles, MACHINE_SKILL_PATH } from './chunk-54ERDQ3O.js';
5
+ import { linkedAgentsPath } from './chunk-W72X24TZ.js';
6
+ import { resolvePackRoot, OUTERLAYER_SKILLS_BASE, loadTemplateFiles, AGENTS_SKILLS_BASE, loadMaintainedFiles, rewriteSkillPaths, TEMPLATE_SKILLS, skillDir, writeMaintainedFiles, MACHINE_SKILL_PATH } from './chunk-E6ESLX5E.js';
7
7
  import { LEGACY_AGENT } from './chunk-QJKW4MKH.js';
8
8
  import { MAINTAINED_SKILLS } from './chunk-CDDED64E.js';
9
9
  import { resolvePackageVersion } from './chunk-RA3O54FC.js';
@@ -1,14 +1,14 @@
1
1
  #!/usr/bin/env node
2
2
  import { createRequire } from 'node:module';
3
3
  import { sanitizeTerminal } from './chunk-F3T5QJ24.js';
4
- import { isAgentsMdLayout } from './chunk-QVOU2QUR.js';
5
- import { resolveGatewayCredentials, defaultFetch } from './chunk-HR4PJLOO.js';
4
+ import { isAgentsMdLayout } from './chunk-7HRNYPL3.js';
5
+ import { resolveGatewayCredentials, defaultFetch } from './chunk-NFYXRAEV.js';
6
6
  import { versionAtLeast } from './chunk-OV4XTV5M.js';
7
7
  import { findGitDirs } from './chunk-BJ3KTMDH.js';
8
- import { machineSkillsState, staleAgentSkills } from './chunk-U6EACUUG.js';
8
+ import { machineSkillsState, staleAgentSkills } from './chunk-RYSGOWHG.js';
9
9
  import { cliInvocation } from './chunk-FZKNTIOJ.js';
10
- import { hasSymlinkComponent } from './chunk-DEZSNJSE.js';
11
- import { skillDir, emitTree, targetIds, classifyTree, emitBuilders, AGENTS_SKILLS_BASE, defaultAgents, namesCore, MACHINE_SKILL_PATH, skillBases, isMaintainedCopy, contextAgents, loadTemplateFiles, splitRawFile } from './chunk-54ERDQ3O.js';
10
+ import { hasSymlinkComponent } from './chunk-W72X24TZ.js';
11
+ import { skillDir, emitTree, targetIds, classifyTree, emitBuilders, AGENTS_SKILLS_BASE, defaultAgents, namesCore, MACHINE_SKILL_PATH, skillBases, isMaintainedCopy, contextAgents, loadTemplateFiles, splitRawFile } from './chunk-E6ESLX5E.js';
12
12
  import { MAINTAINED_SKILLS } from './chunk-CDDED64E.js';
13
13
  import { execFileSync } from 'child_process';
14
14
  import { existsSync, readFileSync, writeFileSync, realpathSync, readdirSync } from 'fs';
@@ -1,10 +1,10 @@
1
1
  #!/usr/bin/env node
2
2
  import { createRequire } from 'node:module';
3
3
  import { launchRefusalForSession } from './chunk-WGC7UFRM.js';
4
- import { detectActiveSession } from './chunk-T5I2H7TJ.js';
5
- import { autoConnect } from './chunk-UZSMDU4U.js';
4
+ import { detectActiveSession } from './chunk-NE2A2ZIY.js';
5
+ import { autoConnect } from './chunk-X2B7ILTH.js';
6
6
  import { C } from './chunk-2AM6Z5BP.js';
7
- import { resolveGatewayCredentials, defaultFetch, unauthorizedMessage } from './chunk-HR4PJLOO.js';
7
+ import { resolveGatewayCredentials, defaultFetch, unauthorizedMessage } from './chunk-NFYXRAEV.js';
8
8
  import { launchedItemForSession } from './chunk-4OD45RBP.js';
9
9
  import { parseTrackerNumber, trackerNumberError } from './chunk-WZBHBH3J.js';
10
10
  import { homeFromEnv } from './chunk-352DHUTP.js';
@@ -1,13 +1,13 @@
1
1
  #!/usr/bin/env node
2
2
  import { createRequire } from 'node:module';
3
- import { toolsDockerfile } from './chunk-OGG5ELXF.js';
4
- import { claimPidFile, RunnerAlreadyRunningError, releasePidFile } from './chunk-HO4DPX5N.js';
3
+ import { toolsDockerfile } from './chunk-QLZXFKGO.js';
4
+ import { claimPidFile, RunnerAlreadyRunningError, releasePidFile } from './chunk-H4H3KK25.js';
5
5
  import { startTimeOf } from './chunk-JBJTC3UU.js';
6
- import { runnerLabelValue } from './chunk-6UI4ELNA.js';
7
- import { RecipeError, locateRecipe, readRecipe, assertBuildable, writeSanitizedRecipe, classifyProperties, SANITIZED_NAME } from './chunk-YCBVYTFI.js';
8
- import { RUNNER_DIR_MODE, RUNNER_FILE_MODE, repoCacheDir, imagesDir, imageBuildLogsDir, attemptStamp, orgStore, rootfsPathFor } from './chunk-L3SHPR2M.js';
9
- import { withGitConfig, tokenHeader } from './chunk-LDKF6B2R.js';
10
- import { UNIVERSAL_IMAGE_DIGEST, UNIVERSAL_IMAGE_REPOSITORY, UNIVERSAL_IMAGE_SOURCE, buildAgentPin, NODE_IMAGE, UNIVERSAL_IMAGE, MEDIA_PINS, TINI_VERSION, GH_VERSION } from './chunk-IEDO26G4.js';
6
+ import { runnerLabelValue } from './chunk-GTJLKBN7.js';
7
+ import { RecipeError, locateRecipe, readRecipe, assertBuildable, writeSanitizedRecipe, classifyProperties, SANITIZED_NAME } from './chunk-V227E7UX.js';
8
+ import { RUNNER_DIR_MODE, RUNNER_FILE_MODE, repoCacheDir, imagesDir, imageBuildLogsDir, attemptStamp, orgStore, rootfsPathFor } from './chunk-63KUYXOH.js';
9
+ import { withGitConfig, tokenHeader } from './chunk-22JLORO6.js';
10
+ import { UNIVERSAL_IMAGE_DIGEST, UNIVERSAL_IMAGE_REPOSITORY, UNIVERSAL_IMAGE_SOURCE, buildAgentPin, NODE_IMAGE, UNIVERSAL_IMAGE, MEDIA_PINS, TINI_VERSION, GH_VERSION } from './chunk-CFHM562L.js';
11
11
  import { mkdirSync, writeFileSync, existsSync, mkdtempSync, rmSync, cpSync, readFileSync, readdirSync, lstatSync, readlinkSync } from 'fs';
12
12
  import { tmpdir } from 'os';
13
13
  import { join } from 'path';
@@ -1,6 +1,6 @@
1
1
  #!/usr/bin/env node
2
2
  import { createRequire } from 'node:module';
3
- import { legacyAgent, createNodeAgentIO, ADAPTER_FACTORIES } from './chunk-54ERDQ3O.js';
3
+ import { legacyAgent, createNodeAgentIO, ADAPTER_FACTORIES } from './chunk-E6ESLX5E.js';
4
4
 
5
5
  createRequire(import.meta.url);
6
6
 
@@ -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-6UI4ELNA.js';
4
- import { buildsDir, storeScopes, rootfsDir, orgStoreIn, runnerDir, imagesDir, builderCacheDiskPath } from './chunk-L3SHPR2M.js';
3
+ import { parseSize, BUILD_LABEL, RUNNER_LABEL, runnerLabelValue } from './chunk-GTJLKBN7.js';
4
+ import { buildsDir, storeScopes, rootfsDir, orgStoreIn, runnerDir, imagesDir, builderCacheDiskPath } from './chunk-63KUYXOH.js';
5
5
  import { spawnSync } from 'child_process';
6
6
  import { statfsSync, statSync, existsSync, readdirSync } from 'fs';
7
7
  import { dirname, join } from 'path';
@@ -1,11 +1,11 @@
1
1
  #!/usr/bin/env node
2
2
  import { createRequire } from 'node:module';
3
- import { resolveCredentials, postJson, getJson } from './chunk-KVO4MJWS.js';
4
- import { detectActiveSession } from './chunk-T5I2H7TJ.js';
3
+ import { resolveCredentials, postJson, getJson } from './chunk-RY5QFTXJ.js';
4
+ import { detectActiveSession } from './chunk-NE2A2ZIY.js';
5
5
  import { sanitizeTerminal } from './chunk-F3T5QJ24.js';
6
6
  import { C } from './chunk-2AM6Z5BP.js';
7
- import { defaultFetch } from './chunk-HR4PJLOO.js';
8
- import { logHookError } from './chunk-SYKEQT63.js';
7
+ import { defaultFetch } from './chunk-NFYXRAEV.js';
8
+ import { logHookError } from './chunk-5HMIMWRD.js';
9
9
  import { parseTrackerNumber, trackerNumberError } from './chunk-WZBHBH3J.js';
10
10
  import { homeFromEnv } from './chunk-352DHUTP.js';
11
11
  import { resolveRepoIdentity } from './chunk-WZOWXDDM.js';
@@ -1,12 +1,12 @@
1
1
  #!/usr/bin/env node
2
2
  import { createRequire } from 'node:module';
3
- import { WorkCommandError, postJson } from './chunk-KVO4MJWS.js';
4
- import { defaultGitRunner, materializeContext, fetchControlPlaneCommit, lookupGoverningSource } from './chunk-J4NJWTNO.js';
5
- import { buildRefusalReason } from './chunk-YEZGNCSK.js';
6
- import { unsupportedLayout, layoutRefusalReason, composeDelivery } from './chunk-3XEYA3QF.js';
7
- import { signingFetchFor } from './chunk-HR4PJLOO.js';
8
- import { signerFor } from './chunk-KHJPRTOW.js';
9
- import { SHIM_DIR, stagedContextDir, contextHomeDir, deliveryDir, keptContextDir } from './chunk-L3SHPR2M.js';
3
+ import { WorkCommandError, postJson } from './chunk-RY5QFTXJ.js';
4
+ import { defaultGitRunner, materializeContext, fetchControlPlaneCommit, lookupGoverningSource } from './chunk-POTMAJPJ.js';
5
+ import { buildRefusalReason } from './chunk-H6T73OLF.js';
6
+ import { unsupportedLayout, layoutRefusalReason, composeDelivery } from './chunk-BQUI64BU.js';
7
+ import { signingFetchFor } from './chunk-NFYXRAEV.js';
8
+ import { signerFor } from './chunk-DIL7U77P.js';
9
+ import { SHIM_DIR, stagedContextDir, contextHomeDir, deliveryDir, keptContextDir } from './chunk-63KUYXOH.js';
10
10
  import { SHIM_SCRIPT, GOVERNANCE_VARIABLE } from './chunk-OV4XTV5M.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';
@@ -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-IEDO26G4.js';
3
+ import { UNIVERSAL_IMAGE_REPOSITORY, UNIVERSAL_IMAGE_DIGEST } from './chunk-CFHM562L.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';
@@ -2,7 +2,7 @@
2
2
  import { createRequire } from 'node:module';
3
3
  import { readContextManifest, removeContextManifest } from './chunk-YQR6E6OV.js';
4
4
  import { removePreCommitGuardHook } from './chunk-CJPTUU2E.js';
5
- import { CONTEXT_PIN_FILENAME, agentRootFolders } from './chunk-54ERDQ3O.js';
5
+ import { CONTEXT_PIN_FILENAME, agentRootFolders } from './chunk-E6ESLX5E.js';
6
6
  import { execFileSync } from 'child_process';
7
7
  import { lstatSync, existsSync, unlinkSync, readdirSync, rmdirSync, readFileSync, mkdirSync, writeFileSync } from 'fs';
8
8
  import { join, dirname, isAbsolute } from 'path';
@@ -1,6 +1,6 @@
1
1
  #!/usr/bin/env node
2
2
  import { createRequire } from 'node:module';
3
- import { RUNNER_DIR_MODE, RUNNER_FILE_MODE } from './chunk-L3SHPR2M.js';
3
+ import { RUNNER_DIR_MODE, RUNNER_FILE_MODE } from './chunk-63KUYXOH.js';
4
4
  import { readFileSync, mkdirSync, writeFileSync, renameSync } from 'fs';
5
5
  import { join } from 'path';
6
6
 
@@ -1,6 +1,6 @@
1
1
  #!/usr/bin/env node
2
2
  import { createRequire } from 'node:module';
3
- import { RUNNER_DIR_MODE, RUNNER_FILE_MODE, runnerDir } from './chunk-L3SHPR2M.js';
3
+ import { RUNNER_DIR_MODE, RUNNER_FILE_MODE, runnerDir } from './chunk-63KUYXOH.js';
4
4
  import { mkdirSync, writeFileSync, renameSync, existsSync, readFileSync } from 'fs';
5
5
  import { dirname, join } from 'path';
6
6
 
@@ -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-FLQL6ZIG.js';
3
+ import { TUNNEL_PORT, BRIDGE_ADDRESS, BRIDGE_CIDR } from './chunk-QN4ABLRK.js';
4
4
  import { startTimeOf } from './chunk-JBJTC3UU.js';
5
- import { EXEC_PORT } from './chunk-MPVTZLOM.js';
6
- import { RELAY_PORT } from './chunk-LDKF6B2R.js';
5
+ import { EXEC_PORT } from './chunk-CLFP2ZTG.js';
6
+ import { RELAY_PORT } from './chunk-22JLORO6.js';
7
7
  import { spawn, spawnSync } from 'child_process';
8
8
  import { symlinkSync, lstatSync, writeFileSync, chmodSync, mkdirSync, existsSync } from 'fs';
9
9
 
@@ -38,6 +38,12 @@ function parsePayload(stdin) {
38
38
  }
39
39
  }
40
40
  var text = (value) => typeof value === "string" ? value : void 0;
41
+ var MAX_BACKGROUND_LABELS = 10;
42
+ var MAX_BACKGROUND_LABEL = 120;
43
+ function backgroundLabels(value) {
44
+ if (!Array.isArray(value)) return [];
45
+ return value.filter((task) => typeof task === "object" && task !== null).slice(0, MAX_BACKGROUND_LABELS).map((task) => [text(task.type), text(task.description)].filter((part) => part !== void 0 && part !== "").join(": ").slice(0, MAX_BACKGROUND_LABEL)).map((label) => label === "" ? "background task" : label);
46
+ }
41
47
  function decode(name, stdin) {
42
48
  const payload = parsePayload(stdin);
43
49
  const nativeName = String(name ?? payload.hook_event_name ?? "unknown");
@@ -48,6 +54,7 @@ function decode(name, stdin) {
48
54
  const toolName = text(payload.tool_name);
49
55
  const toolUseId = text(payload.tool_use_id);
50
56
  const tool = toolKind(toolName);
57
+ const backgroundWork = backgroundLabels(payload.background_tasks);
51
58
  return {
52
59
  nativeName,
53
60
  ...kind === void 0 ? {} : { kind },
@@ -68,6 +75,7 @@ function decode(name, stdin) {
68
75
  },
69
76
  // A tool call a subagent makes carries the subagent's id.
70
77
  fromSubagent: payload.agent_id !== void 0,
78
+ ...backgroundWork.length === 0 ? {} : { backgroundWork },
71
79
  ...toolName === void 0 && toolUseId === void 0 ? {} : { tool: { ...toolUseId === void 0 ? {} : { useId: toolUseId }, ...toolName === void 0 ? {} : { name: toolName } } }
72
80
  };
73
81
  }