@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,25 +1,26 @@
1
1
  #!/usr/bin/env node
2
2
  import { createRequire } from 'node:module';
3
- import { uploadSpooledSteps } from './chunk-GBGJGYEE.js';
3
+ import { uploadSpooledSteps } from './chunk-W3CY6H56.js';
4
4
  import { LaunchFilter } from './chunk-WGC7UFRM.js';
5
- import { migrateLegacyArtifactSidecars, planArtifactUpload, artifactsStatePath, sanitizeTerminal, acquireArtifactSpoolLock, artifactBlobsDir, resolveArtifactTurnIndex, isArtifactTombstoned, ARTIFACT_RETRY_MAX_AGE_MS, writeArtifactSpoolState, reclaimUnneededArtifactBlobs, neededArtifactShas } from './chunk-P6PHY33P.js';
6
- import { setCustomScrubbers, setLocalIdentity, forkFor, readForkRecord, sessionIdFromPath, tailTranscript, enrichSessionRepo, scanAll, setRepoRoot, resolveRepoIdentity, scrubDeep, SOURCE_ADAPTERS } from './chunk-6KH3NMIT.js';
5
+ import { migrateLegacyArtifactSidecars, planArtifactUpload, artifactsStatePath, sanitizeTerminal, acquireArtifactSpoolLock, artifactBlobsDir, resolveArtifactTurnIndex, isArtifactTombstoned, ARTIFACT_RETRY_MAX_AGE_MS, writeArtifactSpoolState, reclaimUnneededArtifactBlobs, neededArtifactShas } from './chunk-F3T5QJ24.js';
7
6
  import { C } from './chunk-2AM6Z5BP.js';
8
- import { cliFetch, resolveGatewayCredentials, defaultFetch, unauthorizedMessage } from './chunk-LZS5EYZ6.js';
7
+ import { cliFetch, resolveGatewayCredentials, defaultFetch, unauthorizedMessage } from './chunk-35OBGZYO.js';
9
8
  import { readCloudConfig, cloudConfigPath, writeCloudConfig } from './chunk-HWVMRETT.js';
10
- import { signerFor, signRunnerRequest } from './chunk-42DBDDHP.js';
11
- import { writeSyncStatus, spoolDir } from './chunk-JVHWWJ2J.js';
9
+ import { signerFor, signRunnerRequest } from './chunk-CBMEWHAR.js';
10
+ import { SCRUB_ENV_VARIABLE } from './chunk-V5S6CVGP.js';
11
+ import { writeSyncStatus, spoolDir } from './chunk-KKI3POPP.js';
12
12
  import { readLatestProvenanceForSession, readContextProvenance } from './chunk-545P7JY7.js';
13
- import { hookExecSpoolPath } from './chunk-LO4CK734.js';
13
+ import { hookExecSpoolPath } from './chunk-REXQKAY7.js';
14
14
  import { applyReportedCost } from './chunk-BKO6JEZI.js';
15
15
  import { readRepoConnection, findGitDirs } from './chunk-BJ3KTMDH.js';
16
16
  import { readLaunchSpoolState, launchStatusIsDecisive, launchedItemsBySession, launchesPath } from './chunk-4OD45RBP.js';
17
17
  import { cliInvocation } from './chunk-FZKNTIOJ.js';
18
18
  import { removeJournalHooks } from './chunk-CJPTUU2E.js';
19
- import { SCRUB_ENV_VARIABLE } from './chunk-CXJC3JLN.js';
20
- import { CAPTURE_TIERS, inferArtifactKind, bannedPathsForTier, downconvertSession, isHumanUserTurn, turnCountBound, EVENT_TYPES } from './chunk-WUKLQWGY.js';
21
- import { NATIVE_AGENTS, LEGACY_AGENT } from './chunk-LSLK4RS4.js';
19
+ import { legacyAgent, captureAdapters } from './chunk-TOP4K2T6.js';
20
+ import { NATIVE_AGENTS, LEGACY_AGENT } from './chunk-G3BUOMCF.js';
22
21
  import { homeFromEnv, spoolHomeFromEnv } from './chunk-352DHUTP.js';
22
+ import { setCustomScrubbers, setLocalIdentity, forkFor, readForkRecord, tailTranscript, enrichSessionRepo, scanAll, setRepoRoot, resolveRepoIdentity, scrubDeep } from './chunk-M7AIU22N.js';
23
+ import { CAPTURE_TIERS, inferArtifactKind, bannedPathsForTier, downconvertSession, isHumanUserTurn, turnCountBound, EVENT_TYPES } from './chunk-WUKLQWGY.js';
23
24
  import { dirname, basename, join, sep } from 'path';
24
25
  import { statSync, readFileSync, readdirSync, mkdirSync, writeFileSync, renameSync, existsSync, rmSync } from 'fs';
25
26
  import { execFileSync } from 'child_process';
@@ -514,21 +515,12 @@ function writeLiveUploadState(state, home) {
514
515
  } catch {
515
516
  }
516
517
  }
517
- function subagentInfo(mirrorPath) {
518
- const segments = mirrorPath.split(/[/\\]/);
519
- const subagentsIdx = segments.lastIndexOf("subagents");
520
- if (subagentsIdx <= 0) return { isSubagent: false };
521
- return {
522
- isSubagent: true,
523
- parentSessionId: segments[subagentsIdx - 1] || void 0,
524
- ownId: sessionIdFromPath(mirrorPath)
525
- };
526
- }
527
- function sessionKeyFor(mirrorPath) {
528
- return sessionIdFromPath(mirrorPath);
518
+ function sessionKeyFor(capture, mirrorPath) {
519
+ return capture.identify(mirrorPath).sessionId;
529
520
  }
530
- function endSignalKeyFor(mirrorPath) {
531
- return subagentInfo(mirrorPath).parentSessionId ?? sessionIdFromPath(mirrorPath);
521
+ function endSignalKeyFor(capture, mirrorPath) {
522
+ const info = capture.identify(mirrorPath);
523
+ return info.parentSessionId ?? info.sessionId;
532
524
  }
533
525
  function sessionHasEnded(home, sessionKey) {
534
526
  let text;
@@ -621,6 +613,10 @@ var LiveUploader = class {
621
613
  this.stderr = opts.stderr ?? ((s) => void process.stderr.write(s));
622
614
  this.build = opts.build;
623
615
  this.onUnauthorized = opts.onUnauthorized;
616
+ const legacy = legacyAgent(opts.agents);
617
+ this.capture = legacy.adapter.capture;
618
+ if (this.capture === void 0) this.stderr(`live upload is off: the ${legacy.descriptor.id} agent has no capture part to read its sessions with
619
+ `);
624
620
  }
625
621
  /**
626
622
  * Final pass for a build sender: sends what is pending now, without waiting out the debounce and without
@@ -641,8 +637,9 @@ var LiveUploader = class {
641
637
  /** Called for every daemon `mirrored` event. Cheap and synchronous — the
642
638
  * actual read/send work happens on the debounced cycle. */
643
639
  notify(mirrorPath) {
644
- if (this.stopped) return;
645
- const key = sessionKeyFor(mirrorPath);
640
+ const capture = this.capture;
641
+ if (this.stopped || capture === void 0) return;
642
+ const key = sessionKeyFor(capture, mirrorPath);
646
643
  if (this.finished.has(key)) return;
647
644
  const existing = this.cycles.get(key);
648
645
  if (existing) {
@@ -651,7 +648,7 @@ var LiveUploader = class {
651
648
  return;
652
649
  }
653
650
  const cycle = { latestFile: mirrorPath, generation: 0, loop: Promise.resolve() };
654
- cycle.loop = this.runCycle(key, cycle).finally(() => {
651
+ cycle.loop = this.runCycle(key, cycle, capture).finally(() => {
655
652
  if (this.cycles.get(key) === cycle) this.cycles.delete(key);
656
653
  });
657
654
  this.cycles.set(key, cycle);
@@ -670,7 +667,7 @@ var LiveUploader = class {
670
667
  * Node's default for those is to exit the process, taking the transcript
671
668
  * mirroring down with the sender. A throw ends this session's cycle and
672
669
  * nothing else; the next mirrored event for it starts a fresh one. */
673
- async runCycle(key, cycle) {
670
+ async runCycle(key, cycle, capture) {
674
671
  try {
675
672
  let processedGeneration = -1;
676
673
  for (; ; ) {
@@ -682,7 +679,7 @@ var LiveUploader = class {
682
679
  }
683
680
  if (cycle.generation === processedGeneration) return;
684
681
  const generationAtProcess = cycle.generation;
685
- const stop = await this.processOnce(key, cycle.latestFile);
682
+ const stop = await this.processOnce(key, cycle.latestFile, capture);
686
683
  if (stop) this.finished.add(key);
687
684
  processedGeneration = generationAtProcess;
688
685
  if (stop || cycle.generation === processedGeneration) return;
@@ -697,7 +694,7 @@ var LiveUploader = class {
697
694
  * it. A hold that could lift on a later fire — no credentials yet,
698
695
  * `autoSync` off, an undecidable launch spool, a misconfigured tier —
699
696
  * returns false instead, because eligibility is re-checked on every fire. */
700
- async processOnce(key, mirrorPath) {
697
+ async processOnce(key, mirrorPath, capture) {
701
698
  const state = readLiveUploadState(this.home);
702
699
  const priorEntry = state.sessions[key];
703
700
  if (priorEntry?.ended || priorEntry?.failed) return true;
@@ -717,9 +714,9 @@ var LiveUploader = class {
717
714
  }
718
715
  destination = { ok: true, url, credential, appId, kind: "key" };
719
716
  }
720
- const info = subagentInfo(mirrorPath);
721
- const fork = forkFor(readForkRecord(this.home), { sessionId: sessionIdFromPath(mirrorPath), parentSessionId: info.parentSessionId });
722
- const tail = tailTranscript(mirrorPath, void 0, {
717
+ const info = capture.identify(mirrorPath);
718
+ const fork = forkFor(readForkRecord(this.home), { sessionId: info.sessionId, parentSessionId: info.parentSessionId });
719
+ const tail = tailTranscript(mirrorPath, void 0, capture.tail, {
723
720
  isSubagent: info.isSubagent,
724
721
  parentSessionId: info.parentSessionId,
725
722
  ownId: info.ownId,
@@ -752,7 +749,7 @@ var LiveUploader = class {
752
749
  const ackedTurnIndex = priorEntry?.ackedTurnIndex ?? -1;
753
750
  const fromTurn = ackedTurnIndex + 1;
754
751
  const available = prepared.turns.filter((t) => t.index >= fromTurn);
755
- const open = !sessionHasEnded(this.home, endSignalKeyFor(mirrorPath));
752
+ const open = !sessionHasEnded(this.home, endSignalKeyFor(capture, mirrorPath));
756
753
  if (available.length === 0 && open) return false;
757
754
  const wholeCounts = wholeSessionCounts(prepared.turns);
758
755
  const groups = groupTurns(available, open, wholeCounts);
@@ -1071,8 +1068,8 @@ function resolveTier(raw) {
1071
1068
  function entrySessionId(entry) {
1072
1069
  return entry.ownId ?? basename(entry.file).replace(/\.jsonl$/, "");
1073
1070
  }
1074
- function sinceAdapters(sinceMs, alsoSessionIds = /* @__PURE__ */ new Set()) {
1075
- return SOURCE_ADAPTERS.map((adapter) => ({
1071
+ function sinceAdapters(sinceMs, alsoSessionIds = /* @__PURE__ */ new Set(), agents) {
1072
+ return captureAdapters(agents).map((adapter) => ({
1076
1073
  ...adapter,
1077
1074
  discover: (roots) => {
1078
1075
  const entries = adapter.discover(roots);
@@ -1256,7 +1253,7 @@ async function runSyncInner(opts, stats) {
1256
1253
  captureTier: tier,
1257
1254
  // An agent job that continued an earlier session left a record of when it started; its transcript opens with a copy of the earlier one.
1258
1255
  fork: readForkRecord(home),
1259
- adapters: sinceAdapters(sinceMs, hookRedeliverySessionIds),
1256
+ adapters: sinceAdapters(sinceMs, hookRedeliverySessionIds, opts.agents),
1260
1257
  onSession: (session, entry, blobs) => {
1261
1258
  enrichSessionRepo(session);
1262
1259
  setRepoRoot(resolveRepoIdentity(session.env.cwd).repoRoot);
@@ -36,6 +36,7 @@ var CLAUDE_CODE = {
36
36
  ANTHROPIC_AUTH_TOKEN: { pattern: ".+", provider: "anthropic", providerKind: "oauth-token", starts: "" }
37
37
  }
38
38
  },
39
+ capture: { sessionFolder: "~/.claude/projects" },
39
40
  context: {
40
41
  instructionFiles: ["CLAUDE.md"],
41
42
  repoSkillFolders: [".claude/skills"],
@@ -1,9 +1,9 @@
1
1
  #!/usr/bin/env node
2
2
  import { createRequire } from 'node:module';
3
- import { DEFAULT_UNIT_NAME } from './chunk-PSQEGJPN.js';
4
- import { RUNNER_FILE_MODE } from './chunk-G35Y4LN5.js';
5
- import { runnerAgents, credentialAgent, credentialForms, orList, credentialShapes, credentialEnvPath, withoutCredentialLines, parseRunnerEnv, forwardedVariables } from './chunk-DTQPDMHG.js';
6
- import { defaultAgents } from './chunk-I6U6QPN6.js';
3
+ import { DEFAULT_UNIT_NAME } from './chunk-OROFFYEM.js';
4
+ import { RUNNER_FILE_MODE } from './chunk-CXMXXRNS.js';
5
+ import { runnerAgents, credentialAgent, credentialForms, orList, credentialShapes, credentialEnvPath, withoutCredentialLines, parseRunnerEnv, forwardedVariables } from './chunk-23SNF2LN.js';
6
+ import { defaultAgents } from './chunk-TOP4K2T6.js';
7
7
  import { existsSync, readFileSync, writeFileSync, renameSync, rmSync } from 'fs';
8
8
  import { join, dirname } from 'path';
9
9
 
@@ -1,16 +1,16 @@
1
1
  #!/usr/bin/env node
2
2
  import { createRequire } from 'node:module';
3
- import { toolsDockerfile } from './chunk-ZSRMJOAK.js';
4
- import { claimPidFile, RunnerAlreadyRunningError, releasePidFile } from './chunk-Z66CKWOM.js';
3
+ import { toolsDockerfile } from './chunk-QE7L5PJV.js';
4
+ import { claimPidFile, RunnerAlreadyRunningError, releasePidFile } from './chunk-PMXVWQ4T.js';
5
5
  import { startTimeOf } from './chunk-JBJTC3UU.js';
6
- import { runnerLabelValue } from './chunk-J6HWRVN2.js';
7
- import { RecipeError, locateRecipe, readRecipe, assertBuildable, writeSanitizedRecipe, classifyProperties, SANITIZED_NAME } from './chunk-BZSJ77MO.js';
8
- import { RUNNER_DIR_MODE, RUNNER_FILE_MODE, repoCacheDir, imagesDir, imageBuildLogsDir, attemptStamp, orgStore, rootfsPathFor } from './chunk-G35Y4LN5.js';
9
- import { withGitConfig, tokenHeader } from './chunk-CXJC3JLN.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-DTQPDMHG.js';
11
- import { mkdirSync, rmSync, writeFileSync, existsSync, mkdtempSync, cpSync, readFileSync, readdirSync, lstatSync, readlinkSync } from 'fs';
6
+ import { runnerLabelValue } from './chunk-HHKVXKQI.js';
7
+ import { RecipeError, locateRecipe, readRecipe, assertBuildable, writeSanitizedRecipe, classifyProperties, SANITIZED_NAME } from './chunk-46FKHE74.js';
8
+ import { RUNNER_DIR_MODE, RUNNER_FILE_MODE, repoCacheDir, imagesDir, imageBuildLogsDir, attemptStamp, orgStore, rootfsPathFor } from './chunk-CXMXXRNS.js';
9
+ import { withGitConfig, tokenHeader } from './chunk-V5S6CVGP.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-23SNF2LN.js';
11
+ import { mkdirSync, writeFileSync, existsSync, mkdtempSync, rmSync, cpSync, readFileSync, readdirSync, lstatSync, readlinkSync } from 'fs';
12
12
  import { tmpdir } from 'os';
13
- import { dirname, join } from 'path';
13
+ import { join } from 'path';
14
14
  import { execFile } from 'child_process';
15
15
  import { createHash } from 'crypto';
16
16
 
@@ -135,17 +135,6 @@ async function diffBetween(input) {
135
135
  }
136
136
  }
137
137
  var CLONE_TIMEOUT_MS = 6e5;
138
- async function cloneRepository(remote, dest, timeoutMs = CLONE_TIMEOUT_MS) {
139
- mkdirSync(dirname(dest), { recursive: true, mode: RUNNER_DIR_MODE });
140
- try {
141
- await git(dirname(dest), ["clone", "--quiet", "--filter=blob:none", "--single-branch", remote, dest], timeoutMs);
142
- return { ok: true };
143
- } catch (err) {
144
- rmSync(dest, { recursive: true, force: true });
145
- const detail = (err instanceof Error ? err.message : String(err)).replace(/^git clone failed: /, "").split("\n")[0];
146
- return { ok: false, reason: `the clone of ${remote} failed: ${detail}` };
147
- }
148
- }
149
138
  async function readDefaultBranchFiles(input) {
150
139
  const credential = input.token === void 0 ? void 0 : tokenSettings(input.remote, input.token);
151
140
  const over = (args, timeoutMs = CLONE_TIMEOUT_MS, raw = false) => git(input.dir, args, timeoutMs, credential, raw);
@@ -534,4 +523,4 @@ async function prune(host, repository, repoRecords, keep, runnerDirPath, runnerL
534
523
  return removed;
535
524
  }
536
525
 
537
- export { KEY_PREFIX, SHARED_NAME, SHARED_OWNER, SHARED_REPOSITORY, TAG_HOST, UNIVERSAL_SOURCE_LABEL, baseLines, buildRepositoryImage, cloneRepository, diffBetween, fetchCommit, metadataFromLabels, prepareImageBuild, readBranchHead, readDefaultBranchFiles, readDefaultBranchHead, universalBase, writeRecord };
526
+ export { KEY_PREFIX, SHARED_NAME, SHARED_OWNER, SHARED_REPOSITORY, TAG_HOST, UNIVERSAL_SOURCE_LABEL, baseLines, buildRepositoryImage, diffBetween, fetchCommit, metadataFromLabels, prepareImageBuild, readBranchHead, readDefaultBranchFiles, readDefaultBranchHead, universalBase, writeRecord };
@@ -1,13 +1,13 @@
1
1
  #!/usr/bin/env node
2
2
  import { createRequire } from 'node:module';
3
- import { resolveDevcontainerCli, devcontainerBuildInvocation, universalImagePending, RecipeError } from './chunk-BZSJ77MO.js';
4
- import { compareVersions } from './chunk-6KH3NMIT.js';
5
- import { ensureHostKey } from './chunk-42DBDDHP.js';
6
- import { RUNNER_DIR_MODE, RUNNER_FILE_MODE, runnerDir, jobsDir } from './chunk-G35Y4LN5.js';
7
- import { BUILD_HOME, JOB_MOUNT, RELAY_PORT, DESTINATION_BASE_PORT } from './chunk-CXJC3JLN.js';
8
- import { universalImagePinned, UNIVERSAL_IMAGE, primaryDestination, JOIN_DIR, RELAY_ID, JOIN_SOCKET, GATEWAY_PORT, TARGET_GATEWAY, GATEWAY_SOCKET, destinationTarget, providerDestinations, BUILDKIT_IMAGE, RELAY_USER } from './chunk-DTQPDMHG.js';
9
- import { defaultAgents } from './chunk-I6U6QPN6.js';
10
- import { PROVIDERS } from './chunk-LSLK4RS4.js';
3
+ import { resolveDevcontainerCli, devcontainerBuildInvocation, universalImagePending, RecipeError } from './chunk-46FKHE74.js';
4
+ import { ensureHostKey } from './chunk-CBMEWHAR.js';
5
+ import { RUNNER_DIR_MODE, RUNNER_FILE_MODE, runnerDir, jobsDir } from './chunk-CXMXXRNS.js';
6
+ import { BUILD_HOME, JOB_MOUNT, RELAY_PORT, DESTINATION_BASE_PORT } from './chunk-V5S6CVGP.js';
7
+ import { universalImagePinned, UNIVERSAL_IMAGE, primaryDestination, JOIN_DIR, RELAY_ID, JOIN_SOCKET, GATEWAY_PORT, TARGET_GATEWAY, GATEWAY_SOCKET, destinationTarget, providerDestinations, BUILDKIT_IMAGE, RELAY_USER } from './chunk-23SNF2LN.js';
8
+ import { defaultAgents } from './chunk-TOP4K2T6.js';
9
+ import { PROVIDERS } from './chunk-G3BUOMCF.js';
10
+ import { compareVersions } from './chunk-M7AIU22N.js';
11
11
  import { createHash } from 'crypto';
12
12
  import { mkdirSync, createWriteStream, rmSync, existsSync, readFileSync, chmodSync, writeFileSync, realpathSync, readdirSync, renameSync } from 'fs';
13
13
  import { dirname, join, posix, resolve } from 'path';
@@ -1,6 +1,6 @@
1
1
  #!/usr/bin/env node
2
2
  import { createRequire } from 'node:module';
3
- import { NATIVE_AGENTS, LEGACY_AGENT } from './chunk-LSLK4RS4.js';
3
+ import { NATIVE_AGENTS, LEGACY_AGENT } from './chunk-G3BUOMCF.js';
4
4
  import { existsSync, readFileSync, writeFileSync } from 'fs';
5
5
  import { join, basename } from 'path';
6
6
 
@@ -1,6 +1,6 @@
1
1
  #!/usr/bin/env node
2
2
  import { createRequire } from 'node:module';
3
- import { currentLink } from './chunk-6QSIK5VA.js';
3
+ import { currentLink } from './chunk-B5GDCCOZ.js';
4
4
  import { readFileSync, statSync, chmodSync, mkdirSync, writeFileSync, renameSync, rmSync, existsSync, lstatSync, accessSync, constants, realpathSync } from 'fs';
5
5
  import { randomBytes } from 'crypto';
6
6
  import { join, dirname, delimiter, resolve } from 'path';
@@ -1,6 +1,6 @@
1
1
  #!/usr/bin/env node
2
2
  import { createRequire } from 'node:module';
3
- import { NATIVE_AGENTS, LEGACY_AGENT } from './chunk-LSLK4RS4.js';
3
+ import { NATIVE_AGENTS, LEGACY_AGENT } from './chunk-G3BUOMCF.js';
4
4
 
5
5
  createRequire(import.meta.url);
6
6
 
@@ -1,8 +1,8 @@
1
1
  #!/usr/bin/env node
2
2
  import { createRequire } from 'node:module';
3
- import { helperSocketPath } from './chunk-F36EKGMP.js';
4
- import { UNIT_MARKER } from './chunk-PSQEGJPN.js';
5
- import { runnerDir } from './chunk-G35Y4LN5.js';
3
+ import { helperSocketPath } from './chunk-UASEIXDB.js';
4
+ import { UNIT_MARKER } from './chunk-OROFFYEM.js';
5
+ import { runnerDir } from './chunk-CXMXXRNS.js';
6
6
  import { createHash } from 'crypto';
7
7
  import { join } from 'path';
8
8
 
@@ -1,14 +1,14 @@
1
1
  #!/usr/bin/env node
2
2
  import { createRequire } from 'node:module';
3
- import { resolveCredentials, postJson, getJson } from './chunk-IX6CFXSW.js';
4
- import { detectActiveSession } from './chunk-FWSVWPMS.js';
5
- import { sanitizeTerminal } from './chunk-P6PHY33P.js';
6
- import { resolveRepoIdentity } from './chunk-6KH3NMIT.js';
3
+ import { resolveCredentials, postJson, getJson } from './chunk-EM4QCRI6.js';
4
+ import { detectActiveSession } from './chunk-V6V3NN5G.js';
5
+ import { sanitizeTerminal } from './chunk-F3T5QJ24.js';
7
6
  import { C } from './chunk-2AM6Z5BP.js';
8
- import { defaultFetch } from './chunk-LZS5EYZ6.js';
9
- import { logHookError } from './chunk-JVHWWJ2J.js';
7
+ import { defaultFetch } from './chunk-35OBGZYO.js';
8
+ import { logHookError } from './chunk-KKI3POPP.js';
10
9
  import { parseTrackerNumber, trackerNumberError } from './chunk-WZBHBH3J.js';
11
10
  import { homeFromEnv } from './chunk-352DHUTP.js';
11
+ import { resolveRepoIdentity } from './chunk-M7AIU22N.js';
12
12
  import { randomUUID } from 'crypto';
13
13
 
14
14
  createRequire(import.meta.url);
@@ -1,6 +1,6 @@
1
1
  #!/usr/bin/env node
2
2
  import { createRequire } from 'node:module';
3
- import { EXEC_PORT } from './chunk-H2NJG3TE.js';
3
+ import { EXEC_PORT } from './chunk-JU5SQNFB.js';
4
4
  import { createConnection } 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 { RELAY_PORT, DESTINATION_BASE_PORT } from './chunk-CXJC3JLN.js';
4
- import { GATEWAY_SOCKET, GATEWAY_PORT, providerDestinations } from './chunk-DTQPDMHG.js';
5
- import { defaultAgents } from './chunk-I6U6QPN6.js';
6
- import { PROVIDERS } from './chunk-LSLK4RS4.js';
3
+ import { RELAY_PORT, DESTINATION_BASE_PORT } from './chunk-V5S6CVGP.js';
4
+ import { GATEWAY_SOCKET, GATEWAY_PORT, providerDestinations } from './chunk-23SNF2LN.js';
5
+ import { defaultAgents } from './chunk-TOP4K2T6.js';
6
+ import { PROVIDERS } from './chunk-G3BUOMCF.js';
7
7
  import { symlinkSync, unlinkSync } from 'fs';
8
8
  import { join } from 'path';
9
9
 
@@ -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-D74RGORK.js';
4
- import { currentVersion, currentLink, versionDir, execStartLine, isInLayout, packageRootIn, switchCurrent } from './chunk-6QSIK5VA.js';
3
+ import { launcherPath, pathNotes, writeLauncher, LauncherWriteError } from './chunk-HXSU4JLV.js';
4
+ import { currentVersion, currentLink, versionDir, execStartLine, isInLayout, packageRootIn, switchCurrent } from './chunk-B5GDCCOZ.js';
5
5
  import { compareVersions } from './chunk-TQMI335S.js';
6
- import { runnerDir, RUNNER_DIR_MODE } from './chunk-G35Y4LN5.js';
6
+ import { runnerDir, RUNNER_DIR_MODE } from './chunk-CXMXXRNS.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,13 +1,13 @@
1
1
  #!/usr/bin/env node
2
2
  import { createRequire } from 'node:module';
3
- import { placeholderQueues, placeholderProblem } from './chunk-F36EKGMP.js';
4
- import { checkFit, RUNNER_RESERVE_BYTES } from './chunk-PSQEGJPN.js';
5
- import { isBuiltinVm, builtinKind, EGRESS_SWITCHABLE_KEYS, imageBuildOf, keepsHostBuilder } from './chunk-BACWWK3E.js';
6
- import { realBuildDiskProbe, checkDiskFit, DEFAULT_CACHE_DISK, DEFAULT_BUILD_DISK } from './chunk-CI5LFLKH.js';
7
- import { getJson, WorkCommandError } from './chunk-IX6CFXSW.js';
8
- import { ensureHostKey } from './chunk-42DBDDHP.js';
9
- import { BUILD_SLICE_MEMORY_ENV, forwardedVariables, credentialAgent, credentialForms, managedKeyName, builderDiskPinned, agentCredentialVariablesSet, agentCredential, storeVariables, credentialEnvPath, parseRunnerEnv } from './chunk-DTQPDMHG.js';
10
- import { defaultAgents } from './chunk-I6U6QPN6.js';
3
+ import { placeholderQueues, placeholderProblem } from './chunk-UASEIXDB.js';
4
+ import { checkFit, RUNNER_RESERVE_BYTES } from './chunk-OROFFYEM.js';
5
+ import { isBuiltinVm, builtinKind, EGRESS_SWITCHABLE_KEYS, imageBuildOf, keepsHostBuilder } from './chunk-36ML3NIO.js';
6
+ import { realBuildDiskProbe, checkDiskFit, DEFAULT_CACHE_DISK, DEFAULT_BUILD_DISK } from './chunk-YJQBL6SD.js';
7
+ import { getJson, WorkCommandError } from './chunk-EM4QCRI6.js';
8
+ import { ensureHostKey } from './chunk-CBMEWHAR.js';
9
+ import { BUILD_SLICE_MEMORY_ENV, forwardedVariables, credentialAgent, credentialForms, managedKeyName, builderDiskPinned, agentCredentialVariablesSet, agentCredential, storeVariables, credentialEnvPath, parseRunnerEnv } from './chunk-23SNF2LN.js';
10
+ import { defaultAgents } from './chunk-TOP4K2T6.js';
11
11
  import { closeSync, openSync, constants, readFileSync } from 'fs';
12
12
  import { join, dirname } from 'path';
13
13
  import { totalmem } from 'os';
@@ -1,6 +1,6 @@
1
1
  #!/usr/bin/env node
2
2
  import { createRequire } from 'node:module';
3
- import { LEGACY_AGENT } from './chunk-LSLK4RS4.js';
3
+ import { LEGACY_AGENT } from './chunk-G3BUOMCF.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
3
  import { cliInvocation } from './chunk-FZKNTIOJ.js';
4
- import { skillDir, emitTree, targetIds, classifyTree, emitBuilders, defaultAgents, FORMER_MAINTAINED_NAMES, isMaintainedCopy } from './chunk-I6U6QPN6.js';
4
+ import { skillDir, emitTree, targetIds, classifyTree, emitBuilders, defaultAgents, FORMER_MAINTAINED_NAMES, isMaintainedCopy } from './chunk-TOP4K2T6.js';
5
5
  import { readFileSync, existsSync, unlinkSync, rmdirSync, readdirSync } from 'fs';
6
6
  import { join, dirname, relative, sep } from 'path';
7
7
 
@@ -1,13 +1,13 @@
1
1
  #!/usr/bin/env node
2
2
  import { createRequire } from 'node:module';
3
3
  import { appendContextProvenance } from './chunk-545P7JY7.js';
4
- import { CONTROL_PLANE_DIR_VARIABLE } from './chunk-BSPJI5T7.js';
4
+ import { CONTROL_PLANE_DIR_VARIABLE } from './chunk-IEFSDAVW.js';
5
5
  import { readRepoConnection, findGitDirs } from './chunk-BJ3KTMDH.js';
6
6
  import { updateNoticeContext, staleMachineCopiesContext } from './chunk-NFZMENCY.js';
7
7
  import { cliInvocation } from './chunk-FZKNTIOJ.js';
8
8
  import { deadHooksState, huskyPrepareScript, preparePackageManagerCommand } from './chunk-CJPTUU2E.js';
9
- import { hookCodec } from './chunk-T5QBWM6M.js';
10
- import { NATIVE_AGENTS, LEGACY_AGENT } from './chunk-LSLK4RS4.js';
9
+ import { hookCodec } from './chunk-KG5BQFSO.js';
10
+ import { NATIVE_AGENTS, LEGACY_AGENT } from './chunk-G3BUOMCF.js';
11
11
  import { resolvePackageVersion } from './chunk-RA3O54FC.js';
12
12
  import { homeFromEnv } from './chunk-352DHUTP.js';
13
13
  import { readFileSync, mkdirSync, writeFileSync, renameSync, existsSync, readdirSync, unlinkSync, statSync, appendFileSync, opendirSync } from 'fs';
@@ -599,7 +599,7 @@ async function missingRenewalHookContext(home, cwd, codec) {
599
599
  try {
600
600
  const event = codec.events.find((name) => kindOf(codec, name) === "tool-used");
601
601
  if (event === void 0) return void 0;
602
- const { hookRegistered } = await import('./hook-install-GDNRMML4.js');
602
+ const { hookRegistered } = await import('./hook-install-DOEXRPO5.js');
603
603
  const registered = hookRegistered(event, { home, cwd });
604
604
  if (registered !== false) return void 0;
605
605
  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.`;
@@ -799,11 +799,11 @@ async function missingControlPlane(cwd, sessionId, home, env) {
799
799
  const dirs = findGitDirs(cwd);
800
800
  if (dirs === void 0) return void 0;
801
801
  if (existsSync(join(dirs.gitCommonDir, "outerlayer", "materialized.json")) || hasExcludeBlock(dirs.gitCommonDir)) {
802
- const { cleanupEarlierCopies } = await import('./context-cleanup-3K2AOECJ.js');
802
+ const { cleanupEarlierCopies } = await import('./context-cleanup-ZKAL6X5I.js');
803
803
  cleanupEarlierCopies(dirs);
804
804
  }
805
805
  if (!contextPossiblyGoverned(cwd, home)) return void 0;
806
- const { governanceOf } = await import('./control-plane-launch-DGPA3ONU.js');
806
+ const { governanceOf } = await import('./control-plane-launch-6HIHBOHF.js');
807
807
  if (await governanceOf({ cwd, env, home }) !== "governed") return void 0;
808
808
  recordMissingContext(dirs, sessionId, home);
809
809
  const launcher = `${cliInvocation()} ${LEGACY.legacy.subcommand}`;
@@ -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-I6U6QPN6.js';
3
+ import { legacyAgent, createNodeAgentIO, ADAPTER_FACTORIES } from './chunk-TOP4K2T6.js';
4
4
 
5
5
  createRequire(import.meta.url);
6
6
 
@@ -3,7 +3,7 @@ import { createRequire } from 'node:module';
3
3
  import { recordReportedCost } from './chunk-BKO6JEZI.js';
4
4
  import { cliInvocation } from './chunk-FZKNTIOJ.js';
5
5
  import { decodeWrappedCommand } from './chunk-ZHQC43NH.js';
6
- import { hookCodec } from './chunk-T5QBWM6M.js';
6
+ import { hookCodec } from './chunk-KG5BQFSO.js';
7
7
  import { homeFromEnv } from './chunk-352DHUTP.js';
8
8
  import { readFileSync } from 'fs';
9
9
  import { spawn } from 'child_process';