@outerlayer/cli 0.36.0-next.20261102195652 → 0.36.0-next.20261102213701

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 (182) hide show
  1. package/README.md +4 -13
  2. package/dist/agent-setup-2WL54CA2.js +39 -0
  3. package/dist/{agent-subcommand-4TEUJJNL.js → agent-subcommand-Z4UDDCLB.js} +6 -5
  4. package/dist/{artifact-link-cmd-ZCMQIT5Y.js → artifact-link-cmd-ZPQXVG5O.js} +2 -2
  5. package/dist/{bridge-4KPODDN7.js → bridge-LVTX4DVM.js} +8 -7
  6. package/dist/{build-3CEFKWGY.js → build-W5LRG2AO.js} +14 -14
  7. package/dist/{build-disk-DLW3WKC5.js → build-disk-3KTQZ6N5.js} +12 -12
  8. package/dist/build-info.json +1 -1
  9. package/dist/{builder-ALMQ5AWP.js → builder-UMCVSMDY.js} +11 -11
  10. package/dist/caller-DYXZCUF2.js +22 -0
  11. package/dist/{check-AEDFTYH6.js → check-NFLR5CGS.js} +58 -58
  12. package/dist/{chunk-DTQPDMHG.js → chunk-23SNF2LN.js} +4 -4
  13. package/dist/{chunk-DL2RYNXQ.js → chunk-2E2WWMRX.js} +28 -60
  14. package/dist/{chunk-6JLYU322.js → chunk-32GBZ7HD.js} +3 -3
  15. package/dist/{chunk-LZS5EYZ6.js → chunk-35OBGZYO.js} +1 -1
  16. package/dist/{chunk-BACWWK3E.js → chunk-36ML3NIO.js} +15 -15
  17. package/dist/{chunk-73E33ZA2.js → chunk-3EEUQZQU.js} +9 -9
  18. package/dist/{chunk-BZSJ77MO.js → chunk-46FKHE74.js} +1 -1
  19. package/dist/{chunk-HRBSEXYC.js → chunk-4Y7IEPQH.js} +6 -6
  20. package/dist/{chunk-Y5S2G2EZ.js → chunk-4YGPLC5Y.js} +7 -7
  21. package/dist/{chunk-2YC3TXWX.js → chunk-52RRBTZ5.js} +1 -1
  22. package/dist/{chunk-B5SWBFVE.js → chunk-66UG5SL4.js} +3 -3
  23. package/dist/{chunk-Z3MB7SV7.js → chunk-72EOJJVT.js} +7 -7
  24. package/dist/{chunk-FWKQHKCR.js → chunk-AACYODIT.js} +7 -5
  25. package/dist/{chunk-7XTLS5PG.js → chunk-AZTTOBJ5.js} +5 -5
  26. package/dist/{chunk-6QSIK5VA.js → chunk-B5GDCCOZ.js} +1 -1
  27. package/dist/{chunk-42DBDDHP.js → chunk-CBMEWHAR.js} +1 -1
  28. package/dist/{chunk-G35Y4LN5.js → chunk-CXMXXRNS.js} +1 -1
  29. package/dist/{chunk-J6VC3JCG.js → chunk-DCOQWKLK.js} +1 -1
  30. package/dist/{chunk-A24PDRNU.js → chunk-E2U7BBAT.js} +5 -5
  31. package/dist/{chunk-IX6CFXSW.js → chunk-EM4QCRI6.js} +9 -9
  32. package/dist/{chunk-J2OMKFYB.js → chunk-F7ODYKBA.js} +3 -3
  33. package/dist/{chunk-WVAXJOWG.js → chunk-FCMEWS3G.js} +5 -5
  34. package/dist/{chunk-7UGMB5VS.js → chunk-FVIDZ3GK.js} +34 -37
  35. package/dist/{chunk-LSLK4RS4.js → chunk-G3BUOMCF.js} +1 -0
  36. package/dist/{chunk-CA4OE2QT.js → chunk-GFSS3FRE.js} +4 -4
  37. package/dist/{chunk-KN3TDNF7.js → chunk-HGOJ67KV.js} +10 -21
  38. package/dist/{chunk-J6HWRVN2.js → chunk-HHKVXKQI.js} +8 -8
  39. package/dist/{chunk-PIZA7OG2.js → chunk-HKJCNBUB.js} +1 -1
  40. package/dist/{chunk-D74RGORK.js → chunk-HXSU4JLV.js} +1 -1
  41. package/dist/{chunk-BSPJI5T7.js → chunk-IEFSDAVW.js} +1 -1
  42. package/dist/{chunk-4UUKUOS7.js → chunk-IFLD3WEB.js} +3 -3
  43. package/dist/{chunk-M4HH2F64.js → chunk-ILP4ABFG.js} +6 -6
  44. package/dist/{chunk-HRHWA6TZ.js → chunk-IOFEDCTL.js} +1 -1
  45. package/dist/{chunk-H2NJG3TE.js → chunk-JU5SQNFB.js} +4 -4
  46. package/dist/{chunk-2XN34EKQ.js → chunk-JUQ52FZI.js} +3 -3
  47. package/dist/{chunk-JBPVEXHQ.js → chunk-JZBFR6JB.js} +8 -8
  48. package/dist/{chunk-T5QBWM6M.js → chunk-KG5BQFSO.js} +1 -1
  49. package/dist/{chunk-B36NSEUM.js → chunk-KIY2AUHY.js} +1 -1
  50. package/dist/{chunk-JVHWWJ2J.js → chunk-KKI3POPP.js} +6 -6
  51. package/dist/{chunk-4DLJ343I.js → chunk-KTL7GFQ3.js} +1 -1
  52. package/dist/{chunk-I4DM7SNX.js → chunk-LTAMZ36E.js} +1 -1
  53. package/dist/{chunk-6KH3NMIT.js → chunk-M7AIU22N.js} +124 -1099
  54. package/dist/{chunk-BN5U4RJU.js → chunk-MKGJ7TTH.js} +8 -8
  55. package/dist/{chunk-HZVS4MGL.js → chunk-NTK7RUVE.js} +7 -7
  56. package/dist/{chunk-UCMIS74X.js → chunk-OPUJGPPT.js} +2 -2
  57. package/dist/{chunk-PBGNX3PS.js → chunk-OQZ2B5AN.js} +1 -1
  58. package/dist/{chunk-PSQEGJPN.js → chunk-OROFFYEM.js} +5 -5
  59. package/dist/{chunk-Z66CKWOM.js → chunk-PMXVWQ4T.js} +1 -1
  60. package/dist/{chunk-ZSRMJOAK.js → chunk-QE7L5PJV.js} +3 -3
  61. package/dist/{chunk-6Z7R24XA.js → chunk-QJHXX2HG.js} +8 -8
  62. package/dist/{chunk-LO4CK734.js → chunk-REXQKAY7.js} +1 -1
  63. package/dist/{chunk-NMBXA3AT.js → chunk-RSPTOS4S.js} +3 -3
  64. package/dist/{chunk-HTRDL42C.js → chunk-TI32Q3VB.js} +1 -1
  65. package/dist/{chunk-I6U6QPN6.js → chunk-TOP4K2T6.js} +1138 -80
  66. package/dist/{chunk-XIDDJSQU.js → chunk-U37FB7ER.js} +2 -2
  67. package/dist/{chunk-F36EKGMP.js → chunk-UASEIXDB.js} +75 -159
  68. package/dist/{chunk-ML5YKV3B.js → chunk-UKDKM6Y6.js} +1 -1
  69. package/dist/{chunk-LHHDX7FB.js → chunk-UQ2YFDGP.js} +5 -5
  70. package/dist/{chunk-CXJC3JLN.js → chunk-V5S6CVGP.js} +5 -12
  71. package/dist/{chunk-FWSVWPMS.js → chunk-V6V3NN5G.js} +1 -1
  72. package/dist/{chunk-VKKKVYA4.js → chunk-VHX2C7DU.js} +1 -1
  73. package/dist/{chunk-LSZUTI6O.js → chunk-VNXITMKE.js} +1 -1
  74. package/dist/{chunk-T2KBHW6P.js → chunk-VUINLLWP.js} +3 -3
  75. package/dist/{chunk-5XX75FJ6.js → chunk-VWMQA7FN.js} +8 -8
  76. package/dist/{chunk-GBGJGYEE.js → chunk-W3CY6H56.js} +6 -6
  77. package/dist/{chunk-H23JP73I.js → chunk-WGZOLJPP.js} +1 -1
  78. package/dist/{chunk-A2U7T4ZH.js → chunk-X2M2G376.js} +18 -18
  79. package/dist/{chunk-FOSYM7TQ.js → chunk-X4QHDRXT.js} +2 -2
  80. package/dist/{chunk-SBZ545DH.js → chunk-XILGXRHT.js} +2 -2
  81. package/dist/{chunk-FIUUESD4.js → chunk-YIDWZYDY.js} +4 -4
  82. package/dist/{chunk-CI5LFLKH.js → chunk-YJQBL6SD.js} +2 -2
  83. package/dist/{chunk-Y2P3HWUG.js → chunk-YQGYZB6Y.js} +28 -20
  84. package/dist/{chunk-MVPOYQQY.js → chunk-Z4ASKZKN.js} +1 -1
  85. package/dist/{chunk-D6EXW4EB.js → chunk-ZM2SKQJD.js} +2 -2
  86. package/dist/{claude-launcher-NJGZUB3P.js → claude-launcher-LXCRQNU3.js} +10 -9
  87. package/dist/{cli-POIDBCZA.js → cli-WGFTREIM.js} +153 -165
  88. package/dist/{command-ZLBFX553.js → command-BZDNRIFI.js} +53 -53
  89. package/dist/config-VV4J2DMW.js +21 -0
  90. package/dist/{connect-cmd-6YKNFJJR.js → connect-cmd-UDYTPV2S.js} +14 -14
  91. package/dist/{container-start-55QELXPJ.js → container-start-BQD6IAKZ.js} +51 -51
  92. package/dist/{context-cleanup-3K2AOECJ.js → context-cleanup-ZKAL6X5I.js} +6 -5
  93. package/dist/{context-show-cmd-FGMRJ7IG.js → context-show-cmd-FXIYFC6Q.js} +15 -15
  94. package/dist/{control-plane-launch-DGPA3ONU.js → control-plane-launch-6HIHBOHF.js} +16 -15
  95. package/dist/{demo-record-cmd-2OKCGST7.js → demo-record-cmd-JTIK5WI3.js} +9 -8
  96. package/dist/{demo-voice-cmd-BPTSL7JA.js → demo-voice-cmd-5HV4AHY4.js} +23 -23
  97. package/dist/dist-64LM4JF4.js +7 -0
  98. package/dist/{docker-GFEEV42Z.js → docker-RB7YFA52.js} +11 -11
  99. package/dist/{doctor-ZOQSI3HL.js → doctor-BNL5J2NG.js} +54 -80
  100. package/dist/emit-artifact-cmd-VF6PO7NJ.js +43 -0
  101. package/dist/{emit-cmd-RO4L4PFZ.js → emit-cmd-PTOSSDQK.js} +9 -8
  102. package/dist/emit-criteria-cmd-QGCS6RCB.js +34 -0
  103. package/dist/{emit-demo-cmd-5KL64L74.js → emit-demo-cmd-O7YLI4ZL.js} +23 -23
  104. package/dist/{emit-finding-cmd-R4OEWQQR.js → emit-finding-cmd-GO2C5QCS.js} +17 -17
  105. package/dist/{emit-result-cmd-5YNQDTYG.js → emit-result-cmd-LQ4EW7ML.js} +21 -21
  106. package/dist/{emit-step-cmd-Z5WC7UEQ.js → emit-step-cmd-JWUNEZ4N.js} +17 -17
  107. package/dist/{exec-client-54XKNPTI.js → exec-client-725NVWZ5.js} +9 -8
  108. package/dist/find-unit-U5U52ASA.js +23 -0
  109. package/dist/{findings-cmd-J5ZCY2AT.js → findings-cmd-JN67G7EG.js} +17 -17
  110. package/dist/{fleet-readiness-DKCFOUYP.js → fleet-readiness-7P5NN3RT.js} +16 -15
  111. package/dist/governing-source-NC7N3PKM.js +40 -0
  112. package/dist/{guest-init-5QZRGP62.js → guest-init-N65WE3XP.js} +10 -9
  113. package/dist/{hook-fast-ICT2PRQX.js → hook-fast-VZDS3U7L.js} +4 -4
  114. package/dist/{hook-install-GDNRMML4.js → hook-install-DOEXRPO5.js} +6 -5
  115. package/dist/{hook-wrap-fast-LWWKKPGK.js → hook-wrap-fast-L5PCBVNI.js} +3 -3
  116. package/dist/host-checks-5HVG67AR.js +78 -0
  117. package/dist/host-key-KPUIJK4Q.js +17 -0
  118. package/dist/{image-tag-RX4WTHJH.js → image-tag-RAVG4ZXU.js} +9 -8
  119. package/dist/index.js +6 -6
  120. package/dist/{init-BZXVQO22.js → init-J5XW2VNL.js} +49 -50
  121. package/dist/init-MN4R6USQ.js +78 -0
  122. package/dist/{init-cmd-3LWFEKHD.js → init-cmd-INPWUFWW.js} +31 -31
  123. package/dist/{init-update-THEHC25C.js → init-update-7BA2HEZD.js} +26 -26
  124. package/dist/{install-cmd-WBVTTE5Z.js → install-cmd-UUEJWTHG.js} +11 -10
  125. package/dist/{layout-7XMC7S6K.js → layout-KSD373US.js} +6 -5
  126. package/dist/{login-browser-QH4KYG3F.js → login-browser-NUQQYH5J.js} +2 -2
  127. package/dist/{logs-7YIXBO2K.js → logs-2NBI76N2.js} +8 -7
  128. package/dist/loop-G7HCDVIP.js +89 -0
  129. package/dist/machine-WQCCGKOP.js +78 -0
  130. package/dist/{machine-skills-HR4RNRNR.js → machine-skills-IMGN27M7.js} +6 -5
  131. package/dist/{mcp-install-cmd-SMPLT43Q.js → mcp-install-cmd-25PA5RAI.js} +6 -5
  132. package/dist/{mcp-serve-cmd-HLS24XCG.js → mcp-serve-cmd-JVND6WYT.js} +10 -9
  133. package/dist/{paths-2YTU4QIO.js → paths-S6KJMQSQ.js} +8 -7
  134. package/dist/pending-BBPET4YL.js +17 -0
  135. package/dist/{pidfile-SPBTMTCJ.js → pidfile-QDFTWZP4.js} +9 -8
  136. package/dist/{record-3KXRFK5C.js → record-AJSJBMOG.js} +9 -8
  137. package/dist/{relay-I2T43PPB.js → relay-X7EBGNZW.js} +6 -5
  138. package/dist/{relay-protocol-GI2GC2AM.js → relay-protocol-TAXUFBSM.js} +6 -5
  139. package/dist/runner-env-XKUW67Y4.js +23 -0
  140. package/dist/{runner-identity-32MTGA2F.js → runner-identity-7RYI6PS4.js} +11 -11
  141. package/dist/{runner-key-FXYWHMMO.js → runner-key-R4QPZDDR.js} +49 -49
  142. package/dist/{session-sender-B6INUY7G.js → session-sender-FQARNO3V.js} +22 -22
  143. package/dist/{shell-function-GYD2ZQQG.js → shell-function-D2T55XFG.js} +2 -2
  144. package/dist/{spec-cmd-ZEZFMC4A.js → spec-cmd-WOSYBAKL.js} +18 -18
  145. package/dist/{starter-pack-IMKIUA56.js → starter-pack-OLH6O4YX.js} +7 -6
  146. package/dist/state-IGLONCPS.js +17 -0
  147. package/dist/{status-VPFIIHOZ.js → status-BUHMAGRI.js} +49 -49
  148. package/dist/{statusline-fast-NUVHCNRX.js → statusline-fast-36U3TOCL.js} +3 -3
  149. package/dist/{sync-cmd-W756BQWX.js → sync-cmd-2DR7HOVJ.js} +21 -21
  150. package/dist/update-steps-GDNIKWWH.js +79 -0
  151. package/dist/{watch-6EDRJZMG.js → watch-3I4ZN52F.js} +29 -26
  152. package/dist/{work-claim-cmd-7HR4AVCT.js → work-claim-cmd-M6ACVTNM.js} +23 -23
  153. package/dist/{work-cmd-ZP4UIHBT.js → work-cmd-HLNFJWQQ.js} +17 -17
  154. package/dist/work-comment-cmd-JTCAB3DG.js +37 -0
  155. package/dist/{work-demo-cmd-3A7Z3VVS.js → work-demo-cmd-XLNJYGCL.js} +17 -17
  156. package/dist/{work-logs-cmd-NDPSRSCM.js → work-logs-cmd-Q3UUIOQI.js} +17 -17
  157. package/dist/{work-open-pr-cmd-Z5B3ERAU.js → work-open-pr-cmd-H74M4ZXC.js} +18 -18
  158. package/dist/{work-pr-cmd-ZVPGCDWD.js → work-pr-cmd-M3X2D5MC.js} +17 -17
  159. package/dist/{work-proofs-cmd-VAXJ5UBF.js → work-proofs-cmd-ZRPPBFDL.js} +19 -19
  160. package/dist/{work-proofs-record-K467JH24.js → work-proofs-record-PF2JRTWE.js} +27 -27
  161. package/dist/{work-stop-cmd-J45Q2QT7.js → work-stop-cmd-2NO2F2BD.js} +17 -17
  162. package/package.json +1 -1
  163. package/dist/agent-setup-5UWZZMZM.js +0 -39
  164. package/dist/caller-XNBGW4SP.js +0 -22
  165. package/dist/config-GKSSGMXD.js +0 -21
  166. package/dist/dist-VVZIGSAF.js +0 -7
  167. package/dist/emit-artifact-cmd-3LDJ4VRW.js +0 -43
  168. package/dist/emit-criteria-cmd-V3ERJXHB.js +0 -34
  169. package/dist/find-unit-OI56YEX5.js +0 -23
  170. package/dist/governing-source-7PD4ISRN.js +0 -40
  171. package/dist/host-checks-GADKYJFN.js +0 -78
  172. package/dist/host-key-FI6KWMJC.js +0 -16
  173. package/dist/init-EKF4ILHF.js +0 -78
  174. package/dist/loop-RUQQ4L5A.js +0 -89
  175. package/dist/machine-IGHZW3IO.js +0 -78
  176. package/dist/pending-S2SKIBCB.js +0 -16
  177. package/dist/runner-env-HOWRS6I6.js +0 -23
  178. package/dist/state-DVKFUWB3.js +0 -16
  179. package/dist/update-steps-D6L6AG6E.js +0 -79
  180. package/dist/work-comment-cmd-CYDOEMW3.js +0 -37
  181. package/dist/{chunk-TPMLB3VZ.js → chunk-A6RI6KTI.js} +1 -1
  182. package/dist/{chunk-P6PHY33P.js → chunk-F3T5QJ24.js} +1 -1
@@ -1,14 +1,14 @@
1
1
  #!/usr/bin/env node
2
2
  import { createRequire } from 'node:module';
3
- import { criteriaOf, loadCitationFinder, hostItemsOf, criterionInputs, NO_CITING_TEST_REASON, NO_TEST_FILES_REASON, NO_VERDICT_REASON, isFoundInReason, uncitedIds, planCriteria, pickSearchable, IdScan, testFileMatcher, foundInReason, MAX_TEST_FILE_BYTES, MAX_TEST_FILES, groupBySize } from './chunk-FOSYM7TQ.js';
4
- import { WorkCommandError, resolveCredentials, getJson } from './chunk-IX6CFXSW.js';
5
- import { sanitizeTerminal } from './chunk-P6PHY33P.js';
6
- import { resolveRepoIdentity } from './chunk-6KH3NMIT.js';
3
+ import { criteriaOf, loadCitationFinder, hostItemsOf, criterionInputs, NO_CITING_TEST_REASON, NO_TEST_FILES_REASON, NO_VERDICT_REASON, isFoundInReason, uncitedIds, planCriteria, pickSearchable, IdScan, testFileMatcher, foundInReason, MAX_TEST_FILE_BYTES, MAX_TEST_FILES, groupBySize } from './chunk-X4QHDRXT.js';
4
+ import { WorkCommandError, resolveCredentials, getJson } from './chunk-EM4QCRI6.js';
5
+ import { sanitizeTerminal } from './chunk-F3T5QJ24.js';
7
6
  import { C } from './chunk-2AM6Z5BP.js';
8
- import { defaultFetch } from './chunk-LZS5EYZ6.js';
7
+ import { defaultFetch } from './chunk-35OBGZYO.js';
9
8
  import { parseWorkItemEnv } from './chunk-4OD45RBP.js';
10
9
  import { parseTrackerNumber, trackerNumberError } from './chunk-WZBHBH3J.js';
11
10
  import { readDeliveryRecord } from './chunk-YQR6E6OV.js';
11
+ import { resolveRepoIdentity } from './chunk-M7AIU22N.js';
12
12
  import { inferArtifactKind, mediaTypeForArtifactPath, WORK_ITEM_COMMENT_MAX_BODY_LENGTH } from './chunk-WUKLQWGY.js';
13
13
  import { createHash } from 'crypto';
14
14
  import { spawnSync } from 'child_process';
@@ -217,14 +217,14 @@ function governingDir(cwd) {
217
217
  async function testProofMode(cwd) {
218
218
  const dir = governingDir(cwd);
219
219
  if (dir === void 0) return "any";
220
- const { testProofIn } = await import('./host-checks-GADKYJFN.js');
220
+ const { testProofIn } = await import('./host-checks-5HVG67AR.js');
221
221
  return testProofIn(dir);
222
222
  }
223
223
  async function judgeCheckName(cwd) {
224
224
  const dir = governingDir(cwd);
225
225
  if (dir === void 0) return {};
226
226
  if (!existsSync(dir)) return { note: `the governed context at ${dir} is not readable` };
227
- const { checksIn, isJudgeCheck } = await import('./host-checks-GADKYJFN.js');
227
+ const { checksIn, isJudgeCheck } = await import('./host-checks-5HVG67AR.js');
228
228
  const quiet = { line: () => void 0, error: () => void 0 };
229
229
  const check = checksIn(dir, quiet, "").checks.find((c) => isJudgeCheck(c) && c.judge.subjects === "criteria");
230
230
  return check === void 0 ? {} : { name: check.name };
@@ -369,7 +369,7 @@ async function runWorkProofs(opts) {
369
369
  async function runWorkProofsCommand(opts) {
370
370
  try {
371
371
  if (opts.record) {
372
- const { runWorkProofsRecord } = await import('./work-proofs-record-K467JH24.js');
372
+ const { runWorkProofsRecord } = await import('./work-proofs-record-PF2JRTWE.js');
373
373
  const result2 = await runWorkProofsRecord(opts);
374
374
  process.exitCode = result2.exitCode;
375
375
  return;
@@ -1,16 +1,16 @@
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-FWSVWPMS.js';
5
- import { autoConnect } from './chunk-T2KBHW6P.js';
6
- import { acquireSpoolLockAt } from './chunk-P6PHY33P.js';
7
- import { resolveRepoIdentity } from './chunk-6KH3NMIT.js';
4
+ import { detectActiveSession } from './chunk-V6V3NN5G.js';
5
+ import { autoConnect } from './chunk-VUINLLWP.js';
6
+ import { acquireSpoolLockAt } from './chunk-F3T5QJ24.js';
8
7
  import { C } from './chunk-2AM6Z5BP.js';
9
- import { resolveGatewayCredentials, defaultFetch, unauthorizedMessage } from './chunk-LZS5EYZ6.js';
8
+ import { resolveGatewayCredentials, defaultFetch, unauthorizedMessage } from './chunk-35OBGZYO.js';
10
9
  import { launchedItemForSession } from './chunk-4OD45RBP.js';
11
10
  import { parseTrackerNumber, trackerNumberError } from './chunk-WZBHBH3J.js';
12
- import { StepNameSchema, StepBodySchema } from './chunk-WUKLQWGY.js';
13
11
  import { homeFromEnv } from './chunk-352DHUTP.js';
12
+ import { resolveRepoIdentity } from './chunk-M7AIU22N.js';
13
+ import { StepNameSchema, StepBodySchema } from './chunk-WUKLQWGY.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,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-G35Y4LN5.js';
3
+ import { RUNNER_DIR_MODE, RUNNER_FILE_MODE } from './chunk-CXMXXRNS.js';
4
4
  import { readFileSync, mkdirSync, writeFileSync, renameSync } from 'fs';
5
5
  import { join } from 'path';
6
6
 
@@ -1,26 +1,26 @@
1
1
  #!/usr/bin/env node
2
2
  import { createRequire } from 'node:module';
3
- import { checkStarterFiles, contextIsGoverned } from './chunk-LHHDX7FB.js';
4
- import { fleetCheck, checkBuildSkill, checkMachineSkills, checkCommittedMaintainedSkills, checkMaintainedReferences, checkIgnoredSkillFolders } from './chunk-Z3MB7SV7.js';
5
- import { resolveCredentials, getJson, WorkCommandError } from './chunk-IX6CFXSW.js';
6
- import { isLinkedRepository } from './chunk-HRBSEXYC.js';
7
- import { sanitizeTerminal } from './chunk-P6PHY33P.js';
8
- import { SUPPORTED_VERSIONS, resolveRepoIdentity } from './chunk-6KH3NMIT.js';
3
+ import { checkStarterFiles, contextIsGoverned } from './chunk-UQ2YFDGP.js';
4
+ import { fleetCheck, checkBuildSkill, checkMachineSkills, checkCommittedMaintainedSkills, checkMaintainedReferences, checkIgnoredSkillFolders } from './chunk-72EOJJVT.js';
5
+ import { resolveCredentials, getJson, WorkCommandError } from './chunk-EM4QCRI6.js';
6
+ import { isLinkedRepository } from './chunk-4Y7IEPQH.js';
7
+ import { sanitizeTerminal } from './chunk-F3T5QJ24.js';
9
8
  import { C } from './chunk-2AM6Z5BP.js';
10
- import { checkFormerSkillNames } from './chunk-B36NSEUM.js';
11
- import { resolveGatewayCredentials, defaultFetch } from './chunk-LZS5EYZ6.js';
12
- import { sanitizeForContext, spoolDir, assessSyncHealth, readSyncStatus, SYNC_STALE_AFTER_MS, formatAgo, checkInstalledCliStaleness, workspaceRootOf, hookFiredMarkerPath, refreshCommand } from './chunk-JVHWWJ2J.js';
13
- import { readStatuslineState, STATE_FRESH_MS } from './chunk-I4DM7SNX.js';
14
- import { withInjectedPrograms } from './chunk-4DLJ343I.js';
15
- import { CONTROL_PLANE_DIR_VARIABLE } from './chunk-BSPJI5T7.js';
9
+ import { checkFormerSkillNames } from './chunk-KIY2AUHY.js';
10
+ import { resolveGatewayCredentials, defaultFetch } from './chunk-35OBGZYO.js';
11
+ import { sanitizeForContext, spoolDir, assessSyncHealth, readSyncStatus, SYNC_STALE_AFTER_MS, formatAgo, checkInstalledCliStaleness, workspaceRootOf, hookFiredMarkerPath, refreshCommand } from './chunk-KKI3POPP.js';
12
+ import { readStatuslineState, STATE_FRESH_MS } from './chunk-LTAMZ36E.js';
13
+ import { withInjectedPrograms } from './chunk-KTL7GFQ3.js';
14
+ import { CONTROL_PLANE_DIR_VARIABLE } from './chunk-IEFSDAVW.js';
16
15
  import { findGitDirs } from './chunk-BJ3KTMDH.js';
17
16
  import { cliInvocation } from './chunk-FZKNTIOJ.js';
18
- import { installAgents, withSettingsText } from './chunk-HTRDL42C.js';
17
+ import { installAgents, withSettingsText } from './chunk-TI32Q3VB.js';
19
18
  import { cliForInstall, cliBinResolvable } from './chunk-ZHQC43NH.js';
20
19
  import { readDeliveryRecord, readDegraded, readSourceCache } from './chunk-YQR6E6OV.js';
21
20
  import { deadHooksState, preparePackageManagerCommand } from './chunk-CJPTUU2E.js';
22
- import { defaultAgents, legacyAgent, contextAgents } from './chunk-I6U6QPN6.js';
21
+ import { defaultAgents, legacyAgent, contextAgents } from './chunk-TOP4K2T6.js';
23
22
  import { homeFromEnv } from './chunk-352DHUTP.js';
23
+ import { SUPPORTED_VERSIONS, resolveRepoIdentity } from './chunk-M7AIU22N.js';
24
24
  import { readFileSync, mkdirSync, writeFileSync, renameSync, existsSync, accessSync, constants, statSync } from 'fs';
25
25
  import { sep, join, dirname, resolve, delimiter } from 'path';
26
26
  import { execFileSync } from 'child_process';
@@ -1050,8 +1050,8 @@ function doctorExitCode(checks) {
1050
1050
 
1051
1051
  // src/doctor-report.ts
1052
1052
  async function gatherDoctorChecks() {
1053
- const { DEFAULT_BUILD_DISK, DEFAULT_CACHE_DISK } = await import('./build-disk-DLW3WKC5.js');
1054
- const { defaultRunnerConfigPath, hasRunnerBlock, keyRunnerFactory, loadRunnerConfig, runnerVmOf } = await import('./config-GKSSGMXD.js');
1053
+ const { DEFAULT_BUILD_DISK, DEFAULT_CACHE_DISK } = await import('./build-disk-3KTQZ6N5.js');
1054
+ const { defaultRunnerConfigPath, hasRunnerBlock, keyRunnerFactory, loadRunnerConfig, runnerVmOf } = await import('./config-VV4J2DMW.js');
1055
1055
  const configPath = defaultRunnerConfigPath();
1056
1056
  const runnerHost = hasRunnerBlock(configPath);
1057
1057
  const hooks = (() => {
@@ -1079,7 +1079,7 @@ async function gatherDoctorChecks() {
1079
1079
  const { runnerVmCheck } = await import('./doctor-53F2PYY7.js');
1080
1080
  checks.push(runnerVmCheck(configPath, { lima: realLima(), home: homeFromEnv(), instance: runnerVm.instance }));
1081
1081
  } else if (hasRunnerBlock(configPath)) {
1082
- const { runnerHostChecks } = await import('./doctor-ZOQSI3HL.js');
1082
+ const { runnerHostChecks } = await import('./doctor-BNL5J2NG.js');
1083
1083
  const gateway = (() => {
1084
1084
  try {
1085
1085
  const loaded = loadRunnerConfig(configPath);
@@ -1107,7 +1107,7 @@ async function gatherDoctorChecks() {
1107
1107
  const service = await (async () => {
1108
1108
  const { existsSync: existsSync3 } = await import('fs');
1109
1109
  if (process.platform !== "linux" || !existsSync3("/run/systemd/system")) return void 0;
1110
- const { inspectRunnerService } = await import('./find-unit-OI56YEX5.js');
1110
+ const { inspectRunnerService } = await import('./find-unit-U5U52ASA.js');
1111
1111
  return inspectRunnerService(configPath);
1112
1112
  })();
1113
1113
  checks.push(...await runnerHostChecks({ configPath, hooks, gateway, repos, runner, service }));
@@ -1,7 +1,7 @@
1
1
  #!/usr/bin/env node
2
2
  import { createRequire } from 'node:module';
3
- import { sanitizeTerminal } from './chunk-P6PHY33P.js';
4
- import { resolvePackRoot, parseProofsConfig } from './chunk-I6U6QPN6.js';
3
+ import { sanitizeTerminal } from './chunk-F3T5QJ24.js';
4
+ import { resolvePackRoot, parseProofsConfig } from './chunk-TOP4K2T6.js';
5
5
  import { CHECK_ITEM_REASON_MAX_LENGTH, CheckItemsSchema } from './chunk-WUKLQWGY.js';
6
6
  import { createHash } from 'crypto';
7
7
  import { join } from 'path';
@@ -1,7 +1,7 @@
1
1
  #!/usr/bin/env node
2
2
  import { createRequire } from 'node:module';
3
- import { keyRunnerFactory, RunnerConfigError } from './chunk-BACWWK3E.js';
4
- import { orgHomeDir } from './chunk-G35Y4LN5.js';
3
+ import { keyRunnerFactory, RunnerConfigError } from './chunk-36ML3NIO.js';
4
+ import { orgHomeDir } from './chunk-CXMXXRNS.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 { detectActiveSession } from './chunk-FWSVWPMS.js';
4
- import { autoConnect } from './chunk-T2KBHW6P.js';
5
- import { resolveRepoIdentity } from './chunk-6KH3NMIT.js';
3
+ import { detectActiveSession } from './chunk-V6V3NN5G.js';
4
+ import { autoConnect } from './chunk-VUINLLWP.js';
6
5
  import { C } from './chunk-2AM6Z5BP.js';
7
- import { defaultFetch, unauthorizedMessage, resolveGatewayCredentials } from './chunk-LZS5EYZ6.js';
6
+ import { defaultFetch, unauthorizedMessage, resolveGatewayCredentials } from './chunk-35OBGZYO.js';
8
7
  import { parseWorkItemEnv } from './chunk-4OD45RBP.js';
9
8
  import { parseTrackerNumber, trackerNumberError } from './chunk-WZBHBH3J.js';
10
9
  import { homeFromEnv } from './chunk-352DHUTP.js';
10
+ import { resolveRepoIdentity } from './chunk-M7AIU22N.js';
11
11
 
12
12
  createRequire(import.meta.url);
13
13
 
@@ -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-J6HWRVN2.js';
4
- import { buildsDir, storeScopes, rootfsDir, orgStoreIn, runnerDir, imagesDir, builderCacheDiskPath } from './chunk-G35Y4LN5.js';
3
+ import { parseSize, BUILD_LABEL, RUNNER_LABEL, runnerLabelValue } from './chunk-HHKVXKQI.js';
4
+ import { buildsDir, storeScopes, rootfsDir, orgStoreIn, runnerDir, imagesDir, builderCacheDiskPath } from './chunk-CXMXXRNS.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,28 +1,34 @@
1
1
  #!/usr/bin/env node
2
2
  import { createRequire } from 'node:module';
3
3
  import { launchRefusalForSession } from './chunk-WGC7UFRM.js';
4
- import { detectActiveSession, transcriptPathForSession } from './chunk-FWSVWPMS.js';
5
- import { autoConnect } from './chunk-T2KBHW6P.js';
6
- import { resolveRepoIdentity, defaultProjectsDir, findTranscripts, sessionIdFromPath, scrubText } from './chunk-6KH3NMIT.js';
4
+ import { detectActiveSession, transcriptPathForSession } from './chunk-V6V3NN5G.js';
5
+ import { autoConnect } from './chunk-VUINLLWP.js';
7
6
  import { C } from './chunk-2AM6Z5BP.js';
8
- import { resolveGatewayCredentials, defaultFetch, unauthorizedMessage } from './chunk-LZS5EYZ6.js';
7
+ import { resolveGatewayCredentials, defaultFetch, unauthorizedMessage } from './chunk-35OBGZYO.js';
9
8
  import { readLatestProvenanceForSession } from './chunk-545P7JY7.js';
10
9
  import { launchedItemForSession } from './chunk-4OD45RBP.js';
11
10
  import { parseTrackerNumber, trackerNumberError } from './chunk-WZBHBH3J.js';
12
11
  import { cliInvocation } from './chunk-FZKNTIOJ.js';
13
- import { FindingBatchSchema, FindingsResponseSchema, SAME_PROBLEM_RULES } from './chunk-WUKLQWGY.js';
12
+ import { legacyAgent, captureAgents, sessionFolderIn } from './chunk-TOP4K2T6.js';
14
13
  import { homeFromEnv } from './chunk-352DHUTP.js';
14
+ import { resolveRepoIdentity, scrubText } from './chunk-M7AIU22N.js';
15
+ import { FindingBatchSchema, FindingsResponseSchema, SAME_PROBLEM_RULES } from './chunk-WUKLQWGY.js';
15
16
  import { readFileSync, existsSync } from 'fs';
16
- import { join, dirname, basename } from 'path';
17
+ import { homedir } from 'os';
18
+ import { join, dirname } from 'path';
17
19
 
18
20
  createRequire(import.meta.url);
19
21
  var RECENT_EVENT_COUNT = 30;
20
22
  var SUMMARY_MAX = 110;
21
- function locateTranscript(sessionId, home) {
22
- const fromSpool = transcriptPathForSession(sessionId, home);
23
- if (fromSpool !== void 0 && existsSync(fromSpool)) return fromSpool;
24
- const root = home === "" ? defaultProjectsDir() : join(home, ".claude", "projects");
25
- return findTranscripts(root).find((entry) => !entry.isSubagent && sessionIdFromPath(entry.file) === sessionId)?.file;
23
+ function locateTranscript(sessionId, home, agents) {
24
+ const fromSpool = transcriptPathForSession(sessionId, home) ?? "";
25
+ if (existsSync(fromSpool)) return { file: fromSpool, capture: legacyAgent(agents).adapter.capture };
26
+ const base = home === "" ? homedir() : home;
27
+ for (const agent of captureAgents(agents)) {
28
+ const found = agent.capture.discover({ root: sessionFolderIn(base, agent.descriptor), rawRoot: "" }).find((entry) => !entry.isSubagent && agent.capture.identify(entry.file).sessionId === sessionId);
29
+ if (found !== void 0) return { file: found.file, capture: agent.capture };
30
+ }
31
+ return void 0;
26
32
  }
27
33
  function blockText(block) {
28
34
  if (typeof block === "string") return block;
@@ -88,14 +94,16 @@ function readSessionEvents(transcriptPath, agent) {
88
94
  });
89
95
  return events;
90
96
  }
91
- function subagentTranscripts(transcriptPath) {
92
- const dir = join(dirname(transcriptPath), basename(transcriptPath, ".jsonl"), "subagents");
93
- return findTranscripts(dir).map((entry) => ({ file: entry.file, agent: sessionIdFromPath(entry.file).replace(/^agent-/, "") }));
97
+ function subagentTranscripts(transcript) {
98
+ if (transcript.capture === void 0) return [];
99
+ const { capture } = transcript;
100
+ const dir = join(dirname(transcript.file), capture.identify(transcript.file).sessionId, "subagents");
101
+ return capture.discover({ root: dir, rawRoot: "" }).map((entry) => ({ file: entry.file, agent: capture.identify(entry.file).sessionId.replace(/^agent-/, "") }));
94
102
  }
95
- function readAllSessionEvents(transcriptPath) {
103
+ function readAllSessionEvents(transcript) {
96
104
  const all = [
97
- ...readSessionEvents(transcriptPath),
98
- ...subagentTranscripts(transcriptPath).flatMap(({ file, agent }) => readSessionEvents(file, agent))
105
+ ...readSessionEvents(transcript.file),
106
+ ...subagentTranscripts(transcript).flatMap(({ file, agent }) => readSessionEvents(file, agent))
99
107
  ];
100
108
  return all.sort((a, b) => Date.parse(a.at) - Date.parse(b.at));
101
109
  }
@@ -116,9 +124,9 @@ function eventsContaining(events, needle) {
116
124
  }
117
125
  var SessionEventNotFoundError = class extends Error {
118
126
  };
119
- function loadSessionEvents(sessionId, home) {
120
- const path = locateTranscript(sessionId, home);
121
- return path === void 0 ? void 0 : readAllSessionEvents(path);
127
+ function loadSessionEvents(sessionId, home, agents) {
128
+ const transcript = locateTranscript(sessionId, home, agents);
129
+ return transcript === void 0 ? void 0 : readAllSessionEvents(transcript);
122
130
  }
123
131
  function pickSessionEvent(events, id) {
124
132
  if (events === void 0) {
@@ -3,7 +3,7 @@ import { createRequire } from 'node:module';
3
3
  import { C } from './chunk-2AM6Z5BP.js';
4
4
  import { readCloudConfig } from './chunk-HWVMRETT.js';
5
5
  import { cliInvocation } from './chunk-FZKNTIOJ.js';
6
- import { defaultAgents, legacyAgent, contextAgents, McpFileError } from './chunk-I6U6QPN6.js';
6
+ import { defaultAgents, legacyAgent, contextAgents, McpFileError } from './chunk-TOP4K2T6.js';
7
7
  import { mkdirSync, writeFileSync, existsSync, readFileSync } from 'fs';
8
8
  import { join, dirname } from 'path';
9
9
 
@@ -1,7 +1,7 @@
1
1
  #!/usr/bin/env node
2
2
  import { createRequire } from 'node:module';
3
- import { normalizePath, CONTEXT_PIN_FILENAME, contextAgents, defaultAgents, AGENTS_SKILLS_BASE, OUTERLAYER_SKILLS_BASE, legacyAgent, legacySubcommand } from './chunk-I6U6QPN6.js';
4
- import { LEGACY_AGENT } from './chunk-LSLK4RS4.js';
3
+ import { normalizePath, CONTEXT_PIN_FILENAME, contextAgents, defaultAgents, AGENTS_SKILLS_BASE, OUTERLAYER_SKILLS_BASE, legacyAgent, legacySubcommand } from './chunk-TOP4K2T6.js';
4
+ import { LEGACY_AGENT } from './chunk-G3BUOMCF.js';
5
5
  import { existsSync, readdirSync, readFileSync, mkdirSync, writeFileSync, lstatSync, readlinkSync, symlinkSync, rmdirSync } from 'fs';
6
6
  import { relative, sep, join, posix } from 'path';
7
7
 
@@ -1,17 +1,18 @@
1
1
  #!/usr/bin/env node
2
2
  import { createRequire } from 'node:module';
3
- import { withInjectedPrograms } from './chunk-4DLJ343I.js';
4
- import { sharedSkillNames } from './chunk-6JLYU322.js';
5
- import { GOVERNANCE_VARIABLE, versionAtLeast, CONTROL_PLANE_DIR_VARIABLE } from './chunk-BSPJI5T7.js';
3
+ import { withInjectedPrograms } from './chunk-KTL7GFQ3.js';
4
+ import { sharedSkillNames } from './chunk-32GBZ7HD.js';
5
+ import { GOVERNANCE_VARIABLE, versionAtLeast, CONTROL_PLANE_DIR_VARIABLE } from './chunk-IEFSDAVW.js';
6
6
  import { findGitDirs } from './chunk-BJ3KTMDH.js';
7
- import { setupMachineSkills } from './chunk-LSZUTI6O.js';
8
- import { defaultAgents, agentById, legacyAgent } from './chunk-I6U6QPN6.js';
9
- import './chunk-WUKLQWGY.js';
10
- import './chunk-T5QBWM6M.js';
11
- import { LEGACY_AGENT } from './chunk-LSLK4RS4.js';
7
+ import { setupMachineSkills } from './chunk-VNXITMKE.js';
8
+ import { defaultAgents, agentById, legacyAgent } from './chunk-TOP4K2T6.js';
9
+ import './chunk-KG5BQFSO.js';
10
+ import { LEGACY_AGENT } from './chunk-G3BUOMCF.js';
12
11
  import './chunk-CDDED64E.js';
13
12
  import './chunk-RA3O54FC.js';
14
13
  import { homeFromEnv } from './chunk-352DHUTP.js';
14
+ import './chunk-M7AIU22N.js';
15
+ import './chunk-WUKLQWGY.js';
15
16
  import './chunk-Z5GEFMRW.js';
16
17
  import { spawn, execFileSync } from 'child_process';
17
18
  import { existsSync, readdirSync, lstatSync, readFileSync, writeFileSync, rmSync, mkdirSync, realpathSync, symlinkSync, renameSync, readlinkSync, statSync } from 'fs';
@@ -324,7 +325,7 @@ async function runAgentLauncher(agentId, args, deps = {}) {
324
325
  return 1;
325
326
  }
326
327
  } else {
327
- const { resolveLaunchPlane } = await import('./control-plane-launch-DGPA3ONU.js');
328
+ const { resolveLaunchPlane } = await import('./control-plane-launch-6HIHBOHF.js');
328
329
  const plane = env[GOVERNANCE_VARIABLE] === "self" ? { kind: "none" } : await resolveLaunchPlane({ cwd, env, home, fetchImpl: deps.fetchImpl, stderr });
329
330
  if (plane.kind === "none") {
330
331
  const own2 = ownSkillsDirFor(prefix, cwd, home, /* @__PURE__ */ new Set(), stderr);