@outerlayer/cli 0.40.0-next.20261117031847 → 0.40.0-next.20261117043041

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 (187) hide show
  1. package/README.md +5 -1
  2. package/dist/agent-setup-4J2JL5EB.js +41 -0
  3. package/dist/{agent-subcommand-SNGOSV4D.js → agent-subcommand-64YO6FE4.js} +4 -4
  4. package/dist/{artifact-link-cmd-K6VFGMIO.js → artifact-link-cmd-HYEM4X5U.js} +2 -2
  5. package/dist/{bridge-C5FNHUYF.js → bridge-H72K6N7O.js} +7 -7
  6. package/dist/{build-YFKCYJR6.js → build-PBQIJPCC.js} +13 -13
  7. package/dist/{build-disk-ZRWIYYVO.js → build-disk-3COAKTPF.js} +11 -11
  8. package/dist/build-info.json +1 -1
  9. package/dist/{builder-334EUQCE.js → builder-GOJQQOIV.js} +10 -10
  10. package/dist/caller-BZBHMIA2.js +23 -0
  11. package/dist/{check-LGB3BWZ7.js → check-TRV42MHY.js} +55 -55
  12. package/dist/{chunk-O2324X34.js → chunk-2L2LLHQW.js} +1 -1
  13. package/dist/{chunk-XLU5ZOTK.js → chunk-3FZXSMIL.js} +4 -4
  14. package/dist/{chunk-WNQMNFJG.js → chunk-3RG2ZR3J.js} +5 -5
  15. package/dist/{chunk-G3HBBHIK.js → chunk-3TEE7JVW.js} +1 -1
  16. package/dist/{chunk-OF6XMZHO.js → chunk-52CTFVXD.js} +1 -1
  17. package/dist/{chunk-DQQID2EX.js → chunk-6FWHB4TW.js} +8 -8
  18. package/dist/{chunk-MCUI6RHU.js → chunk-6IGOHB3O.js} +12 -3
  19. package/dist/{chunk-GZLNKW2J.js → chunk-7CK4Z6VC.js} +6 -6
  20. package/dist/{chunk-J6WQ6POX.js → chunk-7QDRLTFW.js} +1 -1
  21. package/dist/{chunk-ROMZCAG7.js → chunk-AAGXH2FR.js} +1 -1
  22. package/dist/{chunk-OVF475U5.js → chunk-ATK2MNGU.js} +4 -4
  23. package/dist/{chunk-CVSREZEZ.js → chunk-BIBHD4KJ.js} +4 -4
  24. package/dist/{chunk-QVTGSGQ5.js → chunk-BIXO533I.js} +2 -2
  25. package/dist/{chunk-WZRXXOWB.js → chunk-BVKLR7GA.js} +17 -17
  26. package/dist/{chunk-OCXVMUXA.js → chunk-CKS7B2ZJ.js} +7 -7
  27. package/dist/{chunk-2F3RZT5L.js → chunk-CZYUSXAR.js} +3 -3
  28. package/dist/{chunk-2MSLNM5V.js → chunk-D3PPI7I4.js} +1 -1
  29. package/dist/{chunk-M7RI6IMR.js → chunk-DMW22UQE.js} +3 -3
  30. package/dist/{chunk-F7EYCXY4.js → chunk-EBSN6K35.js} +6 -6
  31. package/dist/{chunk-MJGBRYDH.js → chunk-FBFYIEHC.js} +12 -7
  32. package/dist/{chunk-UNGZ25QF.js → chunk-FRQLJUID.js} +2 -2
  33. package/dist/{chunk-FPUFOQEH.js → chunk-FUNAQRMN.js} +9 -9
  34. package/dist/{chunk-CEHT2FCU.js → chunk-FYL2RFHI.js} +3 -3
  35. package/dist/{chunk-R4IC7BKJ.js → chunk-G2KLJMPR.js} +8 -8
  36. package/dist/{chunk-ONDONSBT.js → chunk-H37HSQGH.js} +1 -1
  37. package/dist/{chunk-GOJ2SPKB.js → chunk-H73CCPAW.js} +1 -1
  38. package/dist/{chunk-6JRDP6O4.js → chunk-H7BNWYIA.js} +5 -5
  39. package/dist/{chunk-HQPB4ZMS.js → chunk-HHOFP647.js} +1 -1
  40. package/dist/{chunk-62EOPMMA.js → chunk-HQEPFG5U.js} +1 -1
  41. package/dist/{chunk-4WRECUUH.js → chunk-I6PDJEYQ.js} +3 -3
  42. package/dist/{chunk-F2I2GQMF.js → chunk-IHMGZWOB.js} +1 -1
  43. package/dist/{chunk-QVQWIKDP.js → chunk-ISTSELPU.js} +6 -6
  44. package/dist/{chunk-OUVDFJ3T.js → chunk-IXHMDBXY.js} +7 -7
  45. package/dist/{chunk-EO7KUUKZ.js → chunk-J4EPJMU6.js} +2 -2
  46. package/dist/{chunk-6RJBLCPV.js → chunk-J7UWKTRV.js} +1 -1
  47. package/dist/{chunk-WYD6XWET.js → chunk-JMQDGBAF.js} +2 -2
  48. package/dist/{chunk-6P23FS2Z.js → chunk-K3IO22FH.js} +1 -1
  49. package/dist/{chunk-YUR7GV5L.js → chunk-KPCGSGZS.js} +5 -5
  50. package/dist/{chunk-DOJGTDZU.js → chunk-KZEZBZ4W.js} +8 -8
  51. package/dist/{chunk-2VVSAKM3.js → chunk-LDTLGJ5F.js} +530 -103
  52. package/dist/{chunk-ZTZFWQBG.js → chunk-MAWSNLSZ.js} +4 -4
  53. package/dist/{chunk-CGYKQEPN.js → chunk-MN73QQDA.js} +4 -4
  54. package/dist/{chunk-IWPU2TDY.js → chunk-O2JKZTP3.js} +2 -2
  55. package/dist/{chunk-ERFVB3TJ.js → chunk-OA2KHMXX.js} +6 -6
  56. package/dist/{chunk-JDAH6YHU.js → chunk-PC6BJDBE.js} +5 -5
  57. package/dist/{chunk-DRF45IQZ.js → chunk-PIP32M2V.js} +3 -3
  58. package/dist/{chunk-3TQVQKQ2.js → chunk-PKYJMXRB.js} +8 -8
  59. package/dist/{chunk-CJCGE7TW.js → chunk-PVDIDOKH.js} +40 -9
  60. package/dist/{chunk-A72OH6K3.js → chunk-QJ3AJNRP.js} +7 -7
  61. package/dist/{chunk-OIAWDKSR.js → chunk-QKMVEQXO.js} +3 -3
  62. package/dist/{chunk-DV44KCM6.js → chunk-QMC2MM2S.js} +1 -1
  63. package/dist/{chunk-NLOUOUZV.js → chunk-QMOE5Y4X.js} +1 -1
  64. package/dist/{chunk-AAOM7S3Z.js → chunk-RC5WWCUS.js} +5 -5
  65. package/dist/{chunk-T3NBGNP5.js → chunk-RZSGNO7S.js} +247 -138
  66. package/dist/{chunk-NWYQ7PKS.js → chunk-SLZSJRLS.js} +10 -10
  67. package/dist/{chunk-6MF44FPF.js → chunk-SS3SQYDS.js} +1 -1
  68. package/dist/{chunk-H7EBNQGW.js → chunk-SSVM6C5N.js} +1 -1
  69. package/dist/{chunk-JGSIVQVE.js → chunk-T4SVE4O4.js} +4 -4
  70. package/dist/{chunk-QIO2NIX2.js → chunk-TPLMLNME.js} +1 -1
  71. package/dist/{chunk-NO3JPGJW.js → chunk-UAGUV74T.js} +1 -1
  72. package/dist/{chunk-Z3IDEUCC.js → chunk-ULI64TQ5.js} +3 -3
  73. package/dist/{chunk-OY4EJVUH.js → chunk-V56S4A34.js} +1 -1
  74. package/dist/{chunk-CWJ26A6W.js → chunk-V65YF5VP.js} +1 -1
  75. package/dist/{chunk-5SAJ23BY.js → chunk-VEW4BPVJ.js} +1 -1
  76. package/dist/{chunk-QAZOUTEM.js → chunk-VH7P6XUP.js} +1 -1
  77. package/dist/{chunk-DHB3M244.js → chunk-VUSPSY6N.js} +1 -1
  78. package/dist/{chunk-YNNTU5IZ.js → chunk-WAI7EGGE.js} +1 -1
  79. package/dist/{chunk-3IHZYNZW.js → chunk-WHIAOWEN.js} +1 -1
  80. package/dist/{chunk-WT74ZSRC.js → chunk-XVE7HD6X.js} +6 -6
  81. package/dist/{chunk-KDKMVWHJ.js → chunk-XVTDFLRQ.js} +3 -3
  82. package/dist/{chunk-PIJWOPSG.js → chunk-Y73IIGAU.js} +7 -7
  83. package/dist/{chunk-5LDYQLE3.js → chunk-YAB2SVSI.js} +2 -2
  84. package/dist/{chunk-IQTMXXKU.js → chunk-YOQ3GBJK.js} +10 -10
  85. package/dist/{chunk-SBSH253O.js → chunk-YVLGGDYK.js} +1 -1
  86. package/dist/{chunk-RO5YUUN2.js → chunk-ZHXBFXG2.js} +1 -1
  87. package/dist/{claude-launcher-3H5XSXVA.js → claude-launcher-43RD6G3Y.js} +7 -7
  88. package/dist/{cli-FRR5Q3IX.js → cli-DRPVOAEG.js} +169 -169
  89. package/dist/{command-Y5FG3FWC.js → command-FMNZSGIX.js} +52 -52
  90. package/dist/{config-V6VQOSHM.js → config-OJTLS62B.js} +12 -12
  91. package/dist/{connect-cmd-AU2IGAYG.js → connect-cmd-L5KO3U67.js} +13 -13
  92. package/dist/{container-start-Z6OCZPUC.js → container-start-OPQZF4LH.js} +49 -49
  93. package/dist/{context-cleanup-SK445SLA.js → context-cleanup-REXSRAU6.js} +4 -4
  94. package/dist/{context-show-cmd-Z6YW2XPG.js → context-show-cmd-DAVFJJHX.js} +14 -14
  95. package/dist/{control-plane-launch-CNGKWYLK.js → control-plane-launch-TARK67QP.js} +14 -14
  96. package/dist/{demo-record-cmd-VEMSRUVR.js → demo-record-cmd-BRBXTCSL.js} +8 -8
  97. package/dist/{demo-voice-cmd-ABNZ6H7V.js → demo-voice-cmd-67ZE46PS.js} +20 -20
  98. package/dist/{dist-775TDFCK.js → dist-3AH72O53.js} +2 -2
  99. package/dist/{docker-UHQ4LAJE.js → docker-FEOTGBDS.js} +10 -10
  100. package/dist/{doctor-B7XTBO53.js → doctor-22YI6EJN.js} +51 -51
  101. package/dist/{emit-artifact-cmd-WLBQOFGX.js → emit-artifact-cmd-ZDQ5PPRN.js} +19 -19
  102. package/dist/{emit-cmd-A6ZGOPLZ.js → emit-cmd-MY3TTOV7.js} +7 -7
  103. package/dist/{emit-criteria-cmd-S533NEY4.js → emit-criteria-cmd-SED3RVYR.js} +16 -16
  104. package/dist/{emit-demo-cmd-K4JY5PDP.js → emit-demo-cmd-VBHIORA3.js} +20 -20
  105. package/dist/{emit-finding-cmd-C7RZGGVJ.js → emit-finding-cmd-NQRNWPFW.js} +16 -16
  106. package/dist/{emit-result-cmd-5NLUDBXM.js → emit-result-cmd-CA3FQUGR.js} +18 -18
  107. package/dist/{emit-step-cmd-Q7VIXGYQ.js → emit-step-cmd-EZQD56H5.js} +16 -16
  108. package/dist/{exec-client-RR6F42IB.js → exec-client-JEOB57LW.js} +8 -8
  109. package/dist/{find-unit-WRHK3H5X.js → find-unit-HJRHPB3Y.js} +13 -13
  110. package/dist/{findings-cmd-74MN2Q7K.js → findings-cmd-4HKGMYM7.js} +16 -16
  111. package/dist/{fleet-readiness-R6B3PYU7.js → fleet-readiness-SPPQPJZI.js} +14 -14
  112. package/dist/{governing-source-M2HYH7ZN.js → governing-source-URY2L5EI.js} +21 -21
  113. package/dist/{guest-init-QEWU2H7W.js → guest-init-KXWFAIS5.js} +9 -9
  114. package/dist/{hook-fast-GPW7D4MD.js → hook-fast-3EMC5BR5.js} +1 -1
  115. package/dist/{hook-install-VF3X2ZXN.js → hook-install-2S7NZOBO.js} +4 -4
  116. package/dist/host-checks-MVOAIBQA.js +82 -0
  117. package/dist/host-key-JGKWDEN7.js +18 -0
  118. package/dist/{image-tag-LKOD5GRQ.js → image-tag-DJ2DYY75.js} +8 -8
  119. package/dist/index.js +4 -4
  120. package/dist/{init-UO4SOY57.js → init-F6XEU4VR.js} +47 -47
  121. package/dist/init-JEXSFOFP.js +82 -0
  122. package/dist/{init-agent-JVMIDIXN.js → init-agent-BLC6ART6.js} +47 -47
  123. package/dist/init-cmd-ISFN4IXL.js +53 -0
  124. package/dist/{init-update-BRUFAWCA.js → init-update-2PHTQUR6.js} +24 -24
  125. package/dist/install-cmd-2SO5XQMZ.js +26 -0
  126. package/dist/launch-agent-ZCE2MKWW.js +26 -0
  127. package/dist/{layout-BG6MFUS3.js → layout-4GFI5FUZ.js} +4 -4
  128. package/dist/{login-browser-OA4R4PEQ.js → login-browser-G3NBTYT6.js} +2 -2
  129. package/dist/{logs-WNZZNFA3.js → logs-IGY3Z45I.js} +7 -7
  130. package/dist/loop-A3LCREAQ.js +92 -0
  131. package/dist/machine-P5OCN6FJ.js +82 -0
  132. package/dist/{machine-skills-B7KO47CH.js → machine-skills-FJPUFZ7N.js} +4 -4
  133. package/dist/{mcp-install-cmd-JXD6Q7NN.js → mcp-install-cmd-DWN6GODI.js} +4 -4
  134. package/dist/{mcp-serve-cmd-4D4P6IA7.js → mcp-serve-cmd-3ACPN3DK.js} +9 -9
  135. package/dist/{paths-I7LDWR3Q.js → paths-KPYCKVEO.js} +7 -7
  136. package/dist/pending-LR3J3B32.js +18 -0
  137. package/dist/{pidfile-SNTRLZ2Z.js → pidfile-2TYTTJAD.js} +8 -8
  138. package/dist/{record-QJPGOWYX.js → record-SXQN3F2G.js} +8 -8
  139. package/dist/{relay-V5GHEWT3.js → relay-XUWU6YJA.js} +5 -5
  140. package/dist/{relay-protocol-2S2EAHYH.js → relay-protocol-2ELEUOSS.js} +5 -5
  141. package/dist/{run-cmd-YY34QRDU.js → run-cmd-ZC6H5JMT.js} +16 -16
  142. package/dist/{runner-agents-CLDURIBZ.js → runner-agents-RKBGYF6D.js} +4 -4
  143. package/dist/runner-env-7AZQ443N.js +24 -0
  144. package/dist/{runner-identity-2374JAQF.js → runner-identity-IA53MENM.js} +10 -10
  145. package/dist/{runner-key-JRZ5N4IM.js → runner-key-K6SJMQ6I.js} +47 -47
  146. package/dist/{session-sender-CUM4SRT7.js → session-sender-HUD6KDQS.js} +19 -19
  147. package/dist/{setup-cmd-5ICCOGTJ.js → setup-cmd-6BBZWFJX.js} +14 -14
  148. package/dist/{setup-wiring-CEGNPVS5.js → setup-wiring-AE2RFMC4.js} +54 -54
  149. package/dist/{spec-cmd-6ACWBET6.js → spec-cmd-VKL4K2QQ.js} +17 -17
  150. package/dist/{starter-pack-WOD4WMUX.js → starter-pack-ETRBBABF.js} +5 -5
  151. package/dist/state-5QGIGKBB.js +18 -0
  152. package/dist/{status-H677WBLM.js → status-TJWQ5EIM.js} +47 -47
  153. package/dist/{sync-cmd-5UMBZRKI.js → sync-cmd-EPN6VJ4R.js} +18 -18
  154. package/dist/update-steps-RDYVUTKN.js +83 -0
  155. package/dist/{watch-34LOYMEQ.js → watch-YSSMGF7F.js} +18 -18
  156. package/dist/{work-claim-cmd-NRHTDJC3.js → work-claim-cmd-TV4TJNBE.js} +23 -23
  157. package/dist/{work-cmd-NBYW3LBP.js → work-cmd-VWXZLMF4.js} +16 -16
  158. package/dist/{work-comment-cmd-J4CG33NA.js → work-comment-cmd-A6OMDNWD.js} +18 -18
  159. package/dist/{work-demo-cmd-APJDOTHV.js → work-demo-cmd-RO2MNERR.js} +16 -16
  160. package/dist/{work-logs-cmd-FL7DOHUU.js → work-logs-cmd-FNVY6PFY.js} +16 -16
  161. package/dist/{work-mock-cmd-4MAYOAQS.js → work-mock-cmd-AC2Z3W7V.js} +16 -16
  162. package/dist/{work-needs-attention-cmd-LG5MFGPW.js → work-needs-attention-cmd-2IEXGHHV.js} +16 -16
  163. package/dist/{work-no-change-cmd-QATDFQ46.js → work-no-change-cmd-VN5YDUZZ.js} +16 -16
  164. package/dist/{work-open-pr-cmd-FV43THW5.js → work-open-pr-cmd-GX3AEJMQ.js} +17 -17
  165. package/dist/{work-pr-cmd-53VAE7HD.js → work-pr-cmd-PU7YFJDD.js} +16 -16
  166. package/dist/{work-proofs-cmd-4SF7WZC3.js → work-proofs-cmd-XOIAKWF2.js} +18 -18
  167. package/dist/{work-proofs-record-IGKVQOLA.js → work-proofs-record-7DEOYNST.js} +24 -24
  168. package/dist/{work-stop-cmd-V5SPVTY4.js → work-stop-cmd-4PKBXINK.js} +16 -16
  169. package/package.json +1 -1
  170. package/skill-pack/maintained/outerlayer-review/SKILL.md +9 -3
  171. package/skill-pack/maintained/outerlayer-review/references/consolidation.md +80 -0
  172. package/skill-pack/shipped.json +3 -0
  173. package/skill-pack/template/review/SKILL.md +14 -0
  174. package/dist/agent-setup-E3NJKG6H.js +0 -41
  175. package/dist/caller-6PMFDU4O.js +0 -23
  176. package/dist/host-checks-PKOVCAGU.js +0 -82
  177. package/dist/host-key-HICYSAZ5.js +0 -18
  178. package/dist/init-DFC5GUE5.js +0 -82
  179. package/dist/init-cmd-WTJ7KOQ5.js +0 -53
  180. package/dist/install-cmd-2H4QK5O7.js +0 -26
  181. package/dist/launch-agent-HPWRSGXZ.js +0 -26
  182. package/dist/loop-WO37TJ5C.js +0 -92
  183. package/dist/machine-ZXCUPCDS.js +0 -82
  184. package/dist/pending-L65HTOAV.js +0 -18
  185. package/dist/runner-env-ACRSRRBW.js +0 -24
  186. package/dist/state-TUO74X72.js +0 -18
  187. package/dist/update-steps-XCDL66FA.js +0 -83
@@ -1,9 +1,9 @@
1
1
  #!/usr/bin/env node
2
2
  import { createRequire } from 'node:module';
3
- import { DEFAULT_CACHE_DISK, DEFAULT_BUILD_DISK } from './chunk-5LDYQLE3.js';
4
- import { parseSize } from './chunk-R4IC7BKJ.js';
5
- import { isRefusedInConfig, resolveDestinations, isReservedVariable } from './chunk-JDAH6YHU.js';
6
- import { builderDiskPinned } from './chunk-OF6XMZHO.js';
3
+ import { DEFAULT_CACHE_DISK, DEFAULT_BUILD_DISK } from './chunk-YAB2SVSI.js';
4
+ import { parseSize } from './chunk-G2KLJMPR.js';
5
+ import { isRefusedInConfig, resolveDestinations, isReservedVariable } from './chunk-PC6BJDBE.js';
6
+ import { builderDiskPinned } from './chunk-52CTFVXD.js';
7
7
  import { homeFromEnv } from './chunk-352DHUTP.js';
8
8
  import { existsSync, statSync, accessSync, constants, readFileSync } from 'fs';
9
9
  import { hostname } from 'os';
@@ -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-2MSLNM5V.js';
4
- import { currentVersion, entryIn, currentLink, versionDir, execStartLine, isInLayout, packageRootIn, switchCurrent } from './chunk-QIO2NIX2.js';
3
+ import { launcherPath, pathNotes, writeLauncher, LauncherWriteError } from './chunk-D3PPI7I4.js';
4
+ import { currentVersion, entryIn, currentLink, versionDir, execStartLine, isInLayout, packageRootIn, switchCurrent } from './chunk-TPLMLNME.js';
5
5
  import { compareVersions } from './chunk-TQMI335S.js';
6
- import { defaultRunnerConfigPath } from './chunk-ZTZFWQBG.js';
7
- import { runnerDir, RUNNER_DIR_MODE } from './chunk-3IHZYNZW.js';
6
+ import { defaultRunnerConfigPath } from './chunk-MAWSNLSZ.js';
7
+ import { runnerDir, RUNNER_DIR_MODE } from './chunk-WHIAOWEN.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,8 +1,8 @@
1
1
  #!/usr/bin/env node
2
2
  import { createRequire } from 'node:module';
3
- import { summarizeChecks, summaryText, renderDoctorText } from './chunk-WZRXXOWB.js';
3
+ import { summarizeChecks, summaryText, renderDoctorText } from './chunk-BVKLR7GA.js';
4
4
  import { shellFunctionInstalled, removeShellFunction, installShellFunction, SHELL_FUNCTION_LINE } from './chunk-4KCWAP5L.js';
5
- import { runConnect, hasUncommittedPolicy, commitCommandsFor } from './chunk-GZLNKW2J.js';
5
+ import { runConnect, hasUncommittedPolicy, commitCommandsFor } from './chunk-7CK4Z6VC.js';
6
6
  import { C } from './chunk-2AM6Z5BP.js';
7
7
  import { cliInvocation } from './chunk-FZKNTIOJ.js';
8
8
  import { NATIVE_AGENTS, LEGACY_AGENT } from './chunk-JIMISJV2.js';
@@ -1,16 +1,16 @@
1
1
  #!/usr/bin/env node
2
2
  import { createRequire } from 'node:module';
3
3
  import { launchRefusalForSession } from './chunk-C2PZOLN7.js';
4
- import { detectActiveSession } from './chunk-CWJ26A6W.js';
5
- import { autoConnect } from './chunk-OIAWDKSR.js';
6
- import { acquireSpoolLockAt } from './chunk-DV44KCM6.js';
4
+ import { detectActiveSession } from './chunk-V65YF5VP.js';
5
+ import { autoConnect } from './chunk-QKMVEQXO.js';
6
+ import { acquireSpoolLockAt } from './chunk-QMC2MM2S.js';
7
7
  import { C } from './chunk-2AM6Z5BP.js';
8
- import { resolveGatewayCredentials, defaultFetch, unauthorizedMessage } from './chunk-J6WQ6POX.js';
8
+ import { resolveGatewayCredentials, defaultFetch, unauthorizedMessage } from './chunk-7QDRLTFW.js';
9
9
  import { launchedItemForSession } from './chunk-LGJ56FCM.js';
10
10
  import { parseTrackerNumber, trackerNumberError } from './chunk-WZBHBH3J.js';
11
11
  import { homeFromEnv } from './chunk-352DHUTP.js';
12
- import { resolveRepoIdentity } from './chunk-YNNTU5IZ.js';
13
- import { StepNameSchema, StepBodySchema } from './chunk-MCUI6RHU.js';
12
+ import { resolveRepoIdentity } from './chunk-WAI7EGGE.js';
13
+ import { StepNameSchema, StepBodySchema } from './chunk-6IGOHB3O.js';
14
14
  import { randomUUID } from 'crypto';
15
15
  import { readFileSync, existsSync, mkdirSync, writeFileSync, renameSync, appendFileSync } from 'fs';
16
16
  import { join, dirname } from 'path';
@@ -1,10 +1,10 @@
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-QVTGSGQ5.js';
4
- import { strippedVariables } from './chunk-OF6XMZHO.js';
5
- import { defaultAgents } from './chunk-CEHT2FCU.js';
3
+ import { builtInEnvironment, managedAgentCredential, agentCredential, builtInNames, TARGET_TUNNEL, TARGET_LEASE, destinationTarget, builtInDestinations, destinationPort } from './chunk-BIXO533I.js';
4
+ import { strippedVariables } from './chunk-52CTFVXD.js';
5
+ import { defaultAgents } from './chunk-FYL2RFHI.js';
6
6
  import { PROVIDERS } from './chunk-JIMISJV2.js';
7
- import { MIN_SCRUBBED_LITERAL } from './chunk-YNNTU5IZ.js';
7
+ import { MIN_SCRUBBED_LITERAL } from './chunk-WAI7EGGE.js';
8
8
  import { mkdirSync, writeFileSync, existsSync, unlinkSync, chmodSync } from 'fs';
9
9
  import { request as request$1, createServer } from 'http';
10
10
  import { request } from 'https';
@@ -125,7 +125,7 @@ function createSandboxClient(opts) {
125
125
  async create(input) {
126
126
  for (let attempt = 1; ; attempt++) {
127
127
  try {
128
- const { workItem: _workItem, factory: _factory, machine: _machine, resume: _resume, ...wanted } = input;
128
+ const { workItem: _workItem, factory: _factory, machine: _machine, resume: _resume, fromState: _fromState, ...wanted } = input;
129
129
  const response = await control("/api/sandboxes/ephemeral", { method: "POST", body: JSON.stringify(wanted) });
130
130
  return sandboxOf(await response.json());
131
131
  } catch (err) {
@@ -678,7 +678,7 @@ async function missingRenewalHookContext(home, cwd, codec) {
678
678
  try {
679
679
  const event = codec.events.find((name) => kindOf(codec, name) === "tool-used");
680
680
  if (event === void 0) return void 0;
681
- const { hookRegistered } = await import('./hook-install-VF3X2ZXN.js');
681
+ const { hookRegistered } = await import('./hook-install-2S7NZOBO.js');
682
682
  const registered = hookRegistered(event, { home, cwd });
683
683
  if (registered !== false) return void 0;
684
684
  return `This install has no ${event} hook, so this session's work-item lease will never be renewed while it works and may be lost to another worker mid-session. Run \`${cliInvocation()} init\` to register it.`;
@@ -878,11 +878,11 @@ async function missingControlPlane(cwd, sessionId, home, env) {
878
878
  const dirs = findGitDirs(cwd);
879
879
  if (dirs === void 0) return void 0;
880
880
  if (existsSync(join(dirs.gitCommonDir, "outerlayer", "materialized.json")) || hasExcludeBlock(dirs.gitCommonDir)) {
881
- const { cleanupEarlierCopies } = await import('./context-cleanup-SK445SLA.js');
881
+ const { cleanupEarlierCopies } = await import('./context-cleanup-REXSRAU6.js');
882
882
  cleanupEarlierCopies(dirs);
883
883
  }
884
884
  if (!contextPossiblyGoverned(cwd, home)) return void 0;
885
- const { governanceOf } = await import('./control-plane-launch-CNGKWYLK.js');
885
+ const { governanceOf } = await import('./control-plane-launch-TARK67QP.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}`;
@@ -1,15 +1,15 @@
1
1
  #!/usr/bin/env node
2
2
  import { createRequire } from 'node:module';
3
- import { toolsDockerfile } from './chunk-OVF475U5.js';
4
- import { claimPidFile, RunnerAlreadyRunningError, releasePidFile } from './chunk-QAZOUTEM.js';
3
+ import { toolsDockerfile } from './chunk-ATK2MNGU.js';
4
+ import { claimPidFile, RunnerAlreadyRunningError, releasePidFile } from './chunk-VH7P6XUP.js';
5
5
  import { startTimeOf } from './chunk-JBJTC3UU.js';
6
6
  import { withNewTokenRetry, REFUSED_BY_REMOTE } from './chunk-FJGYU2EK.js';
7
- import { runnerLabelValue } from './chunk-R4IC7BKJ.js';
8
- import { RecipeError, locateRecipe, readRecipe, assertBuildable, writeSanitizedRecipe, classifyProperties, SANITIZED_NAME } from './chunk-ONDONSBT.js';
7
+ import { runnerLabelValue } from './chunk-G2KLJMPR.js';
8
+ import { RecipeError, locateRecipe, readRecipe, assertBuildable, writeSanitizedRecipe, classifyProperties, SANITIZED_NAME } from './chunk-H37HSQGH.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-3IHZYNZW.js';
11
- import { withGitConfig, tokenHeader } from './chunk-JDAH6YHU.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-OF6XMZHO.js';
10
+ import { RUNNER_DIR_MODE, RUNNER_FILE_MODE, repoCacheDir, imagesDir, imageBuildLogsDir, attemptStamp, orgStore, rootfsPathFor } from './chunk-WHIAOWEN.js';
11
+ import { withGitConfig, tokenHeader } from './chunk-PC6BJDBE.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-52CTFVXD.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';
@@ -174,7 +174,7 @@ async function readDefaultBranchFiles(input) {
174
174
  const over = (args, timeoutMs = CLONE_TIMEOUT_MS, raw = false) => withNewTokenRetry2(credential, () => git(input.dir, args, timeoutMs, credential, raw));
175
175
  try {
176
176
  mkdirSync(input.dir, { recursive: true, mode: RUNNER_DIR_MODE });
177
- const defaultBranch = defaultBranchOf(await over(["ls-remote", "--symref", input.remote, "HEAD"], HEAD_TIMEOUT_MS));
177
+ const defaultBranch = input.branch ?? defaultBranchOf(await over(["ls-remote", "--symref", input.remote, "HEAD"], HEAD_TIMEOUT_MS));
178
178
  if (defaultBranch === null) return { ok: false, reason: `${input.remote} does not say which branch is its default; the runner will not guess one` };
179
179
  await git(input.dir, ["init", "--quiet"]);
180
180
  await git(input.dir, ["config", "remote.origin.url", input.remote]);
@@ -1,14 +1,14 @@
1
1
  #!/usr/bin/env node
2
2
  import { createRequire } from 'node:module';
3
3
  import { newTokenRetry } from './chunk-FJGYU2EK.js';
4
- import { WorkCommandError, postJson } from './chunk-DOJGTDZU.js';
5
- import { defaultGitRunner, materializeContext, fetchControlPlaneCommit, lookupGoverningSource } from './chunk-WNQMNFJG.js';
6
- import { buildRefusalReason } from './chunk-6RJBLCPV.js';
7
- import { unsupportedLayout, layoutRefusalReason, composeDelivery } from './chunk-RO5YUUN2.js';
8
- import { signingFetchFor } from './chunk-J6WQ6POX.js';
9
- import { signerFor } from './chunk-NLOUOUZV.js';
10
- import { SHIM_DIR, stagedContextDir, contextHomeDir, deliveryDir, keptContextDir } from './chunk-3IHZYNZW.js';
11
- import { SandboxError, describeSandboxError } from './chunk-JDAH6YHU.js';
4
+ import { WorkCommandError, postJson } from './chunk-KZEZBZ4W.js';
5
+ import { defaultGitRunner, materializeContext, fetchControlPlaneCommit, lookupGoverningSource } from './chunk-3RG2ZR3J.js';
6
+ import { buildRefusalReason } from './chunk-J7UWKTRV.js';
7
+ import { unsupportedLayout, layoutRefusalReason, composeDelivery } from './chunk-ZHXBFXG2.js';
8
+ import { signingFetchFor } from './chunk-7QDRLTFW.js';
9
+ import { signerFor } from './chunk-QMOE5Y4X.js';
10
+ import { SHIM_DIR, stagedContextDir, contextHomeDir, deliveryDir, keptContextDir } from './chunk-WHIAOWEN.js';
11
+ import { SandboxError, describeSandboxError } from './chunk-PC6BJDBE.js';
12
12
  import { SHIM_SCRIPT, shimScriptFor, GOVERNANCE_VARIABLE } from './chunk-F3J4UKBF.js';
13
13
  import { readDegraded, readContextManifest, readSourceCache } from './chunk-YQR6E6OV.js';
14
14
  import { fstatSync, mkdirSync, writeFileSync, chmodSync, rmSync, cpSync, readFileSync, existsSync, lstatSync } from 'fs';
@@ -512,6 +512,37 @@ async function prefetchGovernedContext(input) {
512
512
  return { reason: `context_unavailable: the control plane named for ${repository} could not be fetched: ${err instanceof Error ? err.message : String(err)}`, transient: false };
513
513
  }
514
514
  }
515
+ async function readGovernedFiles(input) {
516
+ const { repository, source } = input;
517
+ const git = input.git ?? defaultGitRunner;
518
+ let tokenRepository;
519
+ try {
520
+ const fetched = await fetchControlPlaneCommit({
521
+ git,
522
+ home: contextHomeDir(input.configPath, input.organizationId),
523
+ repository: source.repository,
524
+ sha: source.sha,
525
+ remoteUrl: input.controlPlaneUrl(source.repository),
526
+ token: async () => {
527
+ if (input.controlPlaneToken === void 0) return void 0;
528
+ const access = await controlPlaneAccess(input.controlPlaneToken, [{ repository: source.repository }], repository, input.log, input.tag);
529
+ tokenRepository = access?.repository;
530
+ return access?.token;
531
+ },
532
+ policy: buildFetch(true)
533
+ });
534
+ if (!fetched.ok) return { ok: false, reason: fetchFailureReason(fetched, credentialName(tokenRepository), source.repository, source.sha, repository) };
535
+ const files = {};
536
+ for (const path of input.paths) {
537
+ const shown = git(["show", `${fetched.localRef}:${path}`], { cwd: fetched.cacheRepoDir, timeoutMs: 1e4 });
538
+ files[path] = shown.ok ? shown.stdout.toString("utf8") : null;
539
+ }
540
+ return { ok: true, files };
541
+ } catch (err) {
542
+ if (err instanceof TokenRefused) return { ok: false, reason: tokenRefusedReason(err, repository) };
543
+ return { ok: false, reason: `context_unavailable: the control plane named for ${repository} could not be read: ${err instanceof Error ? err.message : String(err)}` };
544
+ }
545
+ }
515
546
  function removeStagedContext(buildDir) {
516
547
  rmSync(stagedContextDir(buildDir), { recursive: true, force: true });
517
548
  }
@@ -567,4 +598,4 @@ async function imageTargetFor(input) {
567
598
  return { ok: true, repository: resolved.source.repository, pinned: { commit: resolved.source.sha, ref: resolved.source.ref } };
568
599
  }
569
600
 
570
- export { BuildTokens, SELF_GOVERNED, WORKFLOW_PERMISSION_REASON, classifyRefusal, commandWithShim, controlPlaneTokenFailure, createRunnerLog, describeCallFailure, formatClock, formatDuration, imageTargetFor, keepStagedContext, keptContextTree, logStamp, pinnedSourceOf, prefetchGovernedContext, refusalCode, relativeToRunner, removeKeptContext, removeStagedContext, resolveGoverningSource, retrySend, shimScript, shortClaim, stageGovernedContext };
601
+ export { BuildTokens, SELF_GOVERNED, WORKFLOW_PERMISSION_REASON, classifyRefusal, commandWithShim, controlPlaneTokenFailure, createRunnerLog, describeCallFailure, formatClock, formatDuration, imageTargetFor, keepStagedContext, keptContextTree, logStamp, pinnedSourceOf, prefetchGovernedContext, readGovernedFiles, refusalCode, relativeToRunner, removeKeptContext, removeStagedContext, resolveGoverningSource, retrySend, shimScript, shortClaim, stageGovernedContext };
@@ -1,13 +1,13 @@
1
1
  #!/usr/bin/env node
2
2
  import { createRequire } from 'node:module';
3
- import { scrubReason, stripTerminalControls } from './chunk-T3NBGNP5.js';
4
- import { checkFit, RUNNER_RESERVE_BYTES } from './chunk-WT74ZSRC.js';
5
- import { RunnerAlreadyRunningError, readPidFile } from './chunk-QAZOUTEM.js';
3
+ import { scrubReason, stripTerminalControls } from './chunk-RZSGNO7S.js';
4
+ import { checkFit, RUNNER_RESERVE_BYTES } from './chunk-XVE7HD6X.js';
5
+ import { RunnerAlreadyRunningError, readPidFile } from './chunk-VH7P6XUP.js';
6
6
  import { isSameProcess } from './chunk-JBJTC3UU.js';
7
- import { isSignatureRefusal, postJson } from './chunk-DOJGTDZU.js';
8
- import { keyRunnerFactory } from './chunk-ZTZFWQBG.js';
9
- import { signerFor } from './chunk-NLOUOUZV.js';
10
- import { pidFilePath } from './chunk-3IHZYNZW.js';
7
+ import { isSignatureRefusal, postJson } from './chunk-KZEZBZ4W.js';
8
+ import { keyRunnerFactory } from './chunk-MAWSNLSZ.js';
9
+ import { signerFor } from './chunk-QMOE5Y4X.js';
10
+ import { pidFilePath } from './chunk-WHIAOWEN.js';
11
11
  import { readFileSync } from 'fs';
12
12
 
13
13
  createRequire(import.meta.url);
@@ -1,12 +1,12 @@
1
1
  #!/usr/bin/env node
2
2
  import { createRequire } from 'node:module';
3
- import { fetchFactories, selectFactory, saveFactoryConnection, autoConnectedLine } from './chunk-GZLNKW2J.js';
4
- import { resolveGatewayCredentials } from './chunk-J6WQ6POX.js';
3
+ import { fetchFactories, selectFactory, saveFactoryConnection, autoConnectedLine } from './chunk-7CK4Z6VC.js';
4
+ import { resolveGatewayCredentials } from './chunk-7QDRLTFW.js';
5
5
  import { readCloudConfig } from './chunk-HWVMRETT.js';
6
6
  import { findGitDirs, readRepoConnection } from './chunk-BJ3KTMDH.js';
7
7
  import { cliInvocation } from './chunk-FZKNTIOJ.js';
8
8
  import { homeFromEnv } from './chunk-352DHUTP.js';
9
- import { resolveRepoIdentity } from './chunk-YNNTU5IZ.js';
9
+ import { resolveRepoIdentity } from './chunk-WAI7EGGE.js';
10
10
 
11
11
  createRequire(import.meta.url);
12
12
 
@@ -1,7 +1,7 @@
1
1
  #!/usr/bin/env node
2
2
  import { createRequire } from 'node:module';
3
3
  import { homeFromEnv } from './chunk-352DHUTP.js';
4
- import { ArtifactTombstoneRecordSchema, ArtifactSpoolRecordSchema } from './chunk-MCUI6RHU.js';
4
+ import { ArtifactTombstoneRecordSchema, ArtifactSpoolRecordSchema } from './chunk-6IGOHB3O.js';
5
5
  import { mkdirSync, appendFileSync, writeFileSync, renameSync, unlinkSync, existsSync, readdirSync, readFileSync, statSync } from 'fs';
6
6
  import { join, dirname } from 'path';
7
7
 
@@ -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-3IHZYNZW.js';
3
+ import { hostKeyPath, runnerDir, RUNNER_DIR_MODE, RUNNER_FILE_MODE } from './chunk-WHIAOWEN.js';
4
4
  import { generateKeyPairSync, createPrivateKey, createPublicKey, sign } from 'crypto';
5
5
  import { existsSync, mkdirSync, writeFileSync, readFileSync } from 'fs';
6
6
 
@@ -1,15 +1,15 @@
1
1
  #!/usr/bin/env node
2
2
  import { createRequire } from 'node:module';
3
3
  import { launchRefusalForSession } from './chunk-C2PZOLN7.js';
4
- import { detectActiveSession } from './chunk-CWJ26A6W.js';
5
- import { autoConnect } from './chunk-OIAWDKSR.js';
4
+ import { detectActiveSession } from './chunk-V65YF5VP.js';
5
+ import { autoConnect } from './chunk-QKMVEQXO.js';
6
6
  import { C } from './chunk-2AM6Z5BP.js';
7
- import { resolveGatewayCredentials, defaultFetch, unauthorizedMessage } from './chunk-J6WQ6POX.js';
7
+ import { resolveGatewayCredentials, defaultFetch, unauthorizedMessage } from './chunk-7QDRLTFW.js';
8
8
  import { launchedItemForSession } from './chunk-LGJ56FCM.js';
9
9
  import { parseTrackerNumber, trackerNumberError } from './chunk-WZBHBH3J.js';
10
10
  import { homeFromEnv } from './chunk-352DHUTP.js';
11
- import { resolveRepoIdentity } from './chunk-YNNTU5IZ.js';
12
- import { CriteriaListSchema } from './chunk-MCUI6RHU.js';
11
+ import { resolveRepoIdentity } from './chunk-WAI7EGGE.js';
12
+ import { CriteriaListSchema } from './chunk-6IGOHB3O.js';
13
13
  import { readFileSync } from 'fs';
14
14
 
15
15
  createRequire(import.meta.url);