@outerlayer/cli 0.40.0-next.20261116030912 → 0.40.0-next.20261116130533

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 (189) hide show
  1. package/dist/agent-setup-BJ7IPD3B.js +41 -0
  2. package/dist/{agent-subcommand-BIZMU7EZ.js → agent-subcommand-ZSYJ24TR.js} +5 -5
  3. package/dist/{bridge-6IBWOFEJ.js → bridge-DORM5LNA.js} +8 -8
  4. package/dist/{build-3BX3EJC3.js → build-3JVECLY6.js} +14 -14
  5. package/dist/{build-disk-KN7OJLKB.js → build-disk-2QBW4AIH.js} +12 -12
  6. package/dist/build-info.json +1 -1
  7. package/dist/{builder-DOJUSWGH.js → builder-Y2TLJ6N4.js} +11 -11
  8. package/dist/caller-HYEX6DAA.js +23 -0
  9. package/dist/{check-GR2WNESK.js → check-CJSH53CS.js} +56 -56
  10. package/dist/{chunk-OUL5E5UC.js → chunk-2KFLHDFI.js} +4 -4
  11. package/dist/{chunk-ZJ2PTV3I.js → chunk-2O54ZECG.js} +3 -3
  12. package/dist/{chunk-RNCCRUT5.js → chunk-2ZF62BAK.js} +1 -1
  13. package/dist/{chunk-VXU5IAEQ.js → chunk-33KJYY4S.js} +5 -5
  14. package/dist/{chunk-PSKNTGC3.js → chunk-34NWHMLT.js} +3 -3
  15. package/dist/{chunk-R3RALX7H.js → chunk-37XJYLH3.js} +5 -5
  16. package/dist/{chunk-WEUBA44W.js → chunk-3NWWYXPZ.js} +7 -7
  17. package/dist/{chunk-NDDXBJMX.js → chunk-47FUS6JA.js} +1 -1
  18. package/dist/{chunk-LFAJCUDD.js → chunk-47YGPLRB.js} +28 -28
  19. package/dist/{chunk-IRFN2ZHJ.js → chunk-4KCWAP5L.js} +1 -1
  20. package/dist/{chunk-RIITHK4F.js → chunk-52CDCCAV.js} +1 -1
  21. package/dist/{chunk-XOJRFV3U.js → chunk-5YKLXLDJ.js} +3 -3
  22. package/dist/{chunk-YYSW7OKI.js → chunk-A57YRYSF.js} +5 -5
  23. package/dist/{chunk-7PFRNOSF.js → chunk-AHTBKPTD.js} +3 -1
  24. package/dist/{chunk-S3ZX2GTO.js → chunk-AR7MHX5K.js} +17 -17
  25. package/dist/{chunk-IKGAVS5X.js → chunk-ASWME2BU.js} +3 -1
  26. package/dist/{chunk-SDLWJF6H.js → chunk-ATYZTCCQ.js} +7 -7
  27. package/dist/{chunk-Y6FI3HCQ.js → chunk-B2WNVPQL.js} +1 -1
  28. package/dist/{chunk-5SKYWQ64.js → chunk-B4NLBGYZ.js} +1 -1
  29. package/dist/{chunk-T5MBLAIO.js → chunk-CJXHENJ5.js} +1 -1
  30. package/dist/{chunk-SYFVCV2V.js → chunk-DC4F5SXV.js} +2 -2
  31. package/dist/{chunk-BMMSIGV4.js → chunk-DQHMMJ4J.js} +1 -1
  32. package/dist/{chunk-2Q5OMKDK.js → chunk-ERMOEB2X.js} +4 -4
  33. package/dist/{chunk-SF2TBJBP.js → chunk-F3J4UKBF.js} +1 -1
  34. package/dist/{chunk-ZBD2YOGH.js → chunk-FCJCOPQV.js} +1 -1
  35. package/dist/{chunk-PIXDSHVH.js → chunk-G7QDU2TP.js} +4 -4
  36. package/dist/{chunk-PT3DOY6P.js → chunk-GORJSDOM.js} +1 -1
  37. package/dist/{chunk-QFAH525L.js → chunk-HFE6QGUX.js} +3 -3
  38. package/dist/{chunk-PLVHIQJN.js → chunk-HS45JMDJ.js} +76 -14
  39. package/dist/{chunk-2YKSBXWU.js → chunk-HUOYKP7Y.js} +5 -5
  40. package/dist/{chunk-PG4UW6QW.js → chunk-I6KPMUKL.js} +1 -1
  41. package/dist/{chunk-ISRMDI2H.js → chunk-IBQ5O6JN.js} +5 -5
  42. package/dist/{chunk-E5PWV6H2.js → chunk-IPDXIVDG.js} +6 -6
  43. package/dist/{chunk-MGN525G6.js → chunk-J4WGMXVO.js} +1 -1
  44. package/dist/{chunk-7PZDPISM.js → chunk-JIMISJV2.js} +62 -2
  45. package/dist/{chunk-EVMSDUK7.js → chunk-JPJ52OED.js} +6 -6
  46. package/dist/{chunk-M53UNEO6.js → chunk-LA66NWUO.js} +1 -1
  47. package/dist/{chunk-CG7326ET.js → chunk-LFSV6UPI.js} +8 -8
  48. package/dist/{chunk-RRRW2M4B.js → chunk-LU4X2VDX.js} +6 -6
  49. package/dist/{chunk-YDB72T5Z.js → chunk-M44Z7IZA.js} +9 -9
  50. package/dist/{chunk-ZCOIE7ZJ.js → chunk-M7WMIGYO.js} +2 -2
  51. package/dist/{chunk-6FHMWJHK.js → chunk-MBWTG3QK.js} +1 -1
  52. package/dist/{chunk-4SAXGCD2.js → chunk-MTB3VJIO.js} +6 -6
  53. package/dist/{chunk-LPQJ5LXP.js → chunk-MTWYNTJD.js} +1124 -282
  54. package/dist/{chunk-BFZDVD7T.js → chunk-MVGXLVZL.js} +5 -5
  55. package/dist/{chunk-LCZGMJXD.js → chunk-N65FCTDB.js} +4 -4
  56. package/dist/{chunk-BAPRSDUR.js → chunk-NV2NGOIW.js} +8 -8
  57. package/dist/{chunk-HFVTLCI7.js → chunk-O2JHBBPU.js} +5 -5
  58. package/dist/{chunk-WKPOKOUQ.js → chunk-OCUDXQUE.js} +9 -9
  59. package/dist/{chunk-DYV2OC4S.js → chunk-QVPRJIII.js} +1 -1
  60. package/dist/{chunk-SEKJKOOB.js → chunk-RFFPPB35.js} +4 -4
  61. package/dist/{chunk-EGYZGB2P.js → chunk-RG2CVALO.js} +4 -4
  62. package/dist/{chunk-BFKSIA3V.js → chunk-RLKFY3HU.js} +2 -2
  63. package/dist/{chunk-OC3BSNNE.js → chunk-S6H336Y6.js} +2 -2
  64. package/dist/{chunk-XDBHRWPQ.js → chunk-S7JLFDC5.js} +2 -2
  65. package/dist/{chunk-TCPWJBH5.js → chunk-SLV5TQR2.js} +9 -9
  66. package/dist/{chunk-UTSBE4MP.js → chunk-TNKDCYIX.js} +1 -1
  67. package/dist/{chunk-IIYDYHS5.js → chunk-TNRLNZUC.js} +3 -3
  68. package/dist/{chunk-BD254PYH.js → chunk-TY4PEMQO.js} +1 -1
  69. package/dist/{chunk-TQPFWWND.js → chunk-UEZFEXOL.js} +3 -3
  70. package/dist/{chunk-D7S7PQT5.js → chunk-VBDJCNV5.js} +10 -10
  71. package/dist/{chunk-IZHE3WOW.js → chunk-VFUIVDGO.js} +2 -2
  72. package/dist/{chunk-5YEWBLLX.js → chunk-VJTBRDY6.js} +3 -3
  73. package/dist/{chunk-55GT5FLR.js → chunk-VMODSN4J.js} +1 -1
  74. package/dist/{chunk-N7PG5JAD.js → chunk-WSINJGQZ.js} +1 -1
  75. package/dist/{chunk-TQ3PXYPJ.js → chunk-WTDDNY2U.js} +9 -9
  76. package/dist/{chunk-WMXJ3XBP.js → chunk-WX27XHCC.js} +2 -2
  77. package/dist/{chunk-IQWBUZ75.js → chunk-WZ53E572.js} +4 -4
  78. package/dist/{chunk-ZDXEZPRM.js → chunk-WZVOJYSK.js} +6 -6
  79. package/dist/{chunk-TZZU6IAM.js → chunk-XMBYDEP5.js} +1 -1
  80. package/dist/{chunk-RNZQWJSI.js → chunk-XS4KKH3I.js} +4 -4
  81. package/dist/{chunk-7GJGSADZ.js → chunk-XVU35JXB.js} +1 -1
  82. package/dist/{chunk-GODZ6QAN.js → chunk-Y7WLM4N3.js} +4 -4
  83. package/dist/{chunk-XOKGCNSG.js → chunk-YG5FKMQC.js} +1 -1
  84. package/dist/{chunk-YN6EKURT.js → chunk-ZCCMINZ2.js} +4 -4
  85. package/dist/{chunk-2PRLSABK.js → chunk-ZH5AVWCU.js} +3 -3
  86. package/dist/{chunk-U5PIM7JH.js → chunk-ZL7HKXFQ.js} +32 -30
  87. package/dist/{chunk-Y55ARAPE.js → chunk-ZQZHAHJ4.js} +8 -8
  88. package/dist/{claude-launcher-ZSCQOG3G.js → claude-launcher-Q4NJDME3.js} +28 -11
  89. package/dist/{cli-CNZMK32P.js → cli-WS5OZ25F.js} +167 -167
  90. package/dist/{command-DFRKPEN7.js → command-ANC5BAUG.js} +52 -52
  91. package/dist/{config-TGFG7IID.js → config-ADWWCHNN.js} +13 -13
  92. package/dist/{connect-cmd-UYJV435V.js → connect-cmd-UWN6JEZG.js} +12 -12
  93. package/dist/{container-start-6CECWERV.js → container-start-RMFASRXW.js} +49 -49
  94. package/dist/{context-cleanup-VYUESYGU.js → context-cleanup-L4RXI5WH.js} +5 -5
  95. package/dist/{context-show-cmd-XIPY7JXC.js → context-show-cmd-VNTQIG5Z.js} +13 -13
  96. package/dist/{control-plane-launch-HQPMYL7O.js → control-plane-launch-3O3GPQID.js} +16 -16
  97. package/dist/{demo-record-cmd-UBYX2VAE.js → demo-record-cmd-3QO2JEFB.js} +9 -9
  98. package/dist/{demo-voice-cmd-ABTYSDTU.js → demo-voice-cmd-Y7V752IV.js} +21 -21
  99. package/dist/{dist-DYFPNEVO.js → dist-WAAZSUPE.js} +1 -1
  100. package/dist/docker-BI2LCX7C.js +20 -0
  101. package/dist/{doctor-2PHGAJBZ.js → doctor-66LCTPCG.js} +51 -51
  102. package/dist/{emit-artifact-cmd-R5BOINKV.js → emit-artifact-cmd-XHZK6HAP.js} +20 -20
  103. package/dist/{emit-cmd-CBCODUWX.js → emit-cmd-CMDT43TZ.js} +8 -8
  104. package/dist/{emit-criteria-cmd-VWCPZ3TV.js → emit-criteria-cmd-5M3RCPAB.js} +15 -15
  105. package/dist/{emit-demo-cmd-QPF3MGY3.js → emit-demo-cmd-GASVDJJW.js} +21 -21
  106. package/dist/{emit-finding-cmd-O2HNKNSU.js → emit-finding-cmd-ZQ2ALRNO.js} +15 -15
  107. package/dist/{emit-result-cmd-CFS2YAS5.js → emit-result-cmd-Z7VL6UNL.js} +19 -19
  108. package/dist/{emit-step-cmd-Q43ESQ5J.js → emit-step-cmd-BJTGMFCX.js} +15 -15
  109. package/dist/{exec-client-QDEZML3U.js → exec-client-AXS6SYB2.js} +9 -9
  110. package/dist/find-unit-EM4TJ6FW.js +24 -0
  111. package/dist/{findings-cmd-ZWNSAECA.js → findings-cmd-NXR3SP6I.js} +15 -15
  112. package/dist/{fleet-readiness-VSPHFYWE.js → fleet-readiness-T77ZS4WG.js} +15 -15
  113. package/dist/{governing-source-MIRABOUE.js → governing-source-VZVI7BAK.js} +21 -21
  114. package/dist/guest-init-VP2QGWYP.js +20 -0
  115. package/dist/{hook-fast-E2JV656K.js → hook-fast-IRQGPEWG.js} +4 -4
  116. package/dist/{hook-install-ZZV5WVDH.js → hook-install-SWL7XFB2.js} +5 -5
  117. package/dist/{hook-wrap-fast-GVS5HF5C.js → hook-wrap-fast-Y5KKK67C.js} +3 -3
  118. package/dist/host-checks-MVZ67XYA.js +82 -0
  119. package/dist/host-key-HKAK3EIG.js +18 -0
  120. package/dist/{image-tag-SNXCNAGF.js → image-tag-RG3GSO5M.js} +9 -9
  121. package/dist/index.js +6 -6
  122. package/dist/{init-N4GNHORE.js → init-CLE6MMNO.js} +47 -47
  123. package/dist/init-JCYKUMDY.js +82 -0
  124. package/dist/{init-agent-6K26WOFF.js → init-agent-J5VILVK6.js} +47 -47
  125. package/dist/init-cmd-S3E45NZF.js +53 -0
  126. package/dist/{init-update-GHLRW7BP.js → init-update-TI5OTY2E.js} +24 -24
  127. package/dist/install-cmd-AOHF35J6.js +26 -0
  128. package/dist/launch-agent-X655ER6S.js +26 -0
  129. package/dist/{layout-QU4DUYQQ.js → layout-4G64JIIK.js} +5 -5
  130. package/dist/{logs-N7TOXQWL.js → logs-SOERL6V4.js} +8 -8
  131. package/dist/loop-QSFFK3SM.js +92 -0
  132. package/dist/machine-REKSM5O6.js +82 -0
  133. package/dist/{machine-skills-DLDDT4BE.js → machine-skills-O2MKJ6J6.js} +5 -5
  134. package/dist/{mcp-install-cmd-TFKCJSAH.js → mcp-install-cmd-VI5WXA3V.js} +5 -5
  135. package/dist/{mcp-serve-cmd-YWBSSEYK.js → mcp-serve-cmd-FZEBWRXI.js} +10 -10
  136. package/dist/{paths-GUVGFCBQ.js → paths-RHNTDPFJ.js} +8 -8
  137. package/dist/pending-YUHNYEHU.js +18 -0
  138. package/dist/{pidfile-AOQMDBSW.js → pidfile-6Q4W774B.js} +9 -9
  139. package/dist/{record-2RQWFYJ4.js → record-UQ2WZN46.js} +9 -9
  140. package/dist/{relay-VZEEKIKG.js → relay-AOJAZ2JQ.js} +6 -6
  141. package/dist/{relay-protocol-DF7PZPX2.js → relay-protocol-MTQ3OK2L.js} +6 -6
  142. package/dist/{run-cmd-W2XIBU2G.js → run-cmd-FNH3KZOE.js} +15 -15
  143. package/dist/{runner-agents-O7G6HTWI.js → runner-agents-I4WKI2PI.js} +5 -5
  144. package/dist/runner-env-3QM4DPJL.js +24 -0
  145. package/dist/{runner-identity-MU7HDFGF.js → runner-identity-RLK2DMMA.js} +11 -11
  146. package/dist/{runner-key-C7IELBJA.js → runner-key-KOMEGMJ3.js} +47 -47
  147. package/dist/{session-sender-NDP6HVSG.js → session-sender-37MGJH43.js} +20 -20
  148. package/dist/{setup-cmd-PQTTUAXH.js → setup-cmd-IXUUCFZU.js} +13 -13
  149. package/dist/{setup-wiring-4GXHD73A.js → setup-wiring-3F2AZXIM.js} +56 -56
  150. package/dist/{shell-function-RBJR373S.js → shell-function-7N3ILFLG.js} +2 -2
  151. package/dist/{spec-cmd-LEU2PGWP.js → spec-cmd-BIP6Z5SC.js} +16 -16
  152. package/dist/{starter-pack-3HB74L6Q.js → starter-pack-WYGZOND7.js} +6 -6
  153. package/dist/state-L34BBCKO.js +18 -0
  154. package/dist/{status-WJ5W32DG.js → status-IYPIPVPZ.js} +47 -47
  155. package/dist/{statusline-fast-WUXKRABL.js → statusline-fast-ZWMTN36K.js} +3 -3
  156. package/dist/{sync-cmd-Q3FERZNI.js → sync-cmd-YBRVLAWV.js} +19 -19
  157. package/dist/update-steps-VDOXQUWU.js +83 -0
  158. package/dist/{watch-2Z2HFUIL.js → watch-P6PFN2LE.js} +19 -19
  159. package/dist/{work-claim-cmd-Q4EXZDXE.js → work-claim-cmd-6KCXPHQU.js} +21 -21
  160. package/dist/{work-cmd-JNSI6X5D.js → work-cmd-L3IRQKZQ.js} +15 -15
  161. package/dist/{work-comment-cmd-4AD66BWL.js → work-comment-cmd-UJ2K4ZG3.js} +18 -18
  162. package/dist/{work-demo-cmd-BBNNMB4P.js → work-demo-cmd-LHWETHQG.js} +15 -15
  163. package/dist/{work-logs-cmd-EU2Z2P2F.js → work-logs-cmd-4FVVL6SP.js} +15 -15
  164. package/dist/{work-mock-cmd-5W52S7J5.js → work-mock-cmd-LGHEMHMF.js} +15 -15
  165. package/dist/{work-needs-attention-cmd-6X3DMFB3.js → work-needs-attention-cmd-SOD6Y4ZC.js} +15 -15
  166. package/dist/{work-no-change-cmd-JS5GWIV5.js → work-no-change-cmd-UGQTKMR4.js} +15 -15
  167. package/dist/{work-open-pr-cmd-3KHOY5KT.js → work-open-pr-cmd-MXHCNYBN.js} +16 -16
  168. package/dist/{work-pr-cmd-LJDDDQS4.js → work-pr-cmd-WESCT4AS.js} +15 -15
  169. package/dist/{work-proofs-cmd-RE7JFHXA.js → work-proofs-cmd-XWVR57TH.js} +17 -17
  170. package/dist/{work-proofs-record-R2V7AW6S.js → work-proofs-record-HVVFZHJF.js} +25 -25
  171. package/dist/{work-stop-cmd-WTKUFCEF.js → work-stop-cmd-F6YTWYGH.js} +15 -15
  172. package/package.json +2 -2
  173. package/dist/agent-setup-KUOWKHAG.js +0 -41
  174. package/dist/caller-YHE7IHC7.js +0 -23
  175. package/dist/docker-E35HTSGN.js +0 -20
  176. package/dist/find-unit-HKCVRS7L.js +0 -24
  177. package/dist/guest-init-QYJVWDCD.js +0 -20
  178. package/dist/host-checks-CVNA5FU6.js +0 -82
  179. package/dist/host-key-4RD4MTJ2.js +0 -18
  180. package/dist/init-6CJYRUWL.js +0 -82
  181. package/dist/init-cmd-GPESZN5W.js +0 -53
  182. package/dist/install-cmd-PEFKMYGU.js +0 -26
  183. package/dist/launch-agent-P5KMBBB5.js +0 -26
  184. package/dist/loop-ZEQTRVB5.js +0 -92
  185. package/dist/machine-Y4DDIC7H.js +0 -82
  186. package/dist/pending-PXRZ7SIJ.js +0 -18
  187. package/dist/runner-env-TJE5WGPK.js +0 -24
  188. package/dist/state-YHPOHZ4I.js +0 -18
  189. package/dist/update-steps-DF275KW3.js +0 -83
@@ -1,8 +1,8 @@
1
1
  #!/usr/bin/env node
2
2
  import { createRequire } from 'node:module';
3
- import { providersOf, credentialEnvPath, credentialNames, credentialForms, runnerAgents, credentialAgent, orList, credentialShapes, strippedVariables, jobAgent, forwardedVariables, MANAGED_KIND } from './chunk-BFKSIA3V.js';
4
- import { defaultAgents } from './chunk-LPQJ5LXP.js';
5
- import { PROVIDERS } from './chunk-7PZDPISM.js';
3
+ import { providersOf, credentialEnvPath, credentialNames, credentialForms, runnerAgents, credentialAgent, orList, credentialShapes, strippedVariables, jobAgent, forwardedVariables, MANAGED_KIND } from './chunk-RLKFY3HU.js';
4
+ import { defaultAgents } from './chunk-MTWYNTJD.js';
5
+ import { PROVIDERS } from './chunk-JIMISJV2.js';
6
6
  import { statSync, readFileSync } from 'fs';
7
7
  import { join } from 'path';
8
8
  import { spawn, spawnSync } from 'child_process';
@@ -1,15 +1,15 @@
1
1
  #!/usr/bin/env node
2
2
  import { createRequire } from 'node:module';
3
- import { resolveCredentials, postBytes, RateLimitedError, postJson, getJson, getBytes } from './chunk-BAPRSDUR.js';
4
- import { detectActiveSession } from './chunk-IKGAVS5X.js';
3
+ import { resolveCredentials, postBytes, RateLimitedError, postJson, getJson, getBytes } from './chunk-NV2NGOIW.js';
4
+ import { detectActiveSession } from './chunk-ASWME2BU.js';
5
5
  import { sanitizeTerminal } from './chunk-DV44KCM6.js';
6
6
  import { C } from './chunk-2AM6Z5BP.js';
7
- import { defaultFetch } from './chunk-N7PG5JAD.js';
8
- import { logHookError } from './chunk-E5PWV6H2.js';
7
+ import { defaultFetch } from './chunk-WSINJGQZ.js';
8
+ import { logHookError } from './chunk-IPDXIVDG.js';
9
9
  import { parseWorkItemEnv } 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-Y55ARAPE.js';
12
+ import { resolveRepoIdentity } from './chunk-ZQZHAHJ4.js';
13
13
  import { ATTACHMENT_CLIENT_ID_HEADER, ATTACHMENT_SHA256_HEADER, ATTACHMENT_FILENAME_HEADER, cleanAttachmentFilename, WORK_ITEM_ATTACHMENTS_MAX_PER_COMMENT, attachmentKind, WORK_ITEM_ATTACHMENT_MAX_BYTES, WORK_ITEM_ATTACHMENTS_MAX_TOTAL_BYTES } from './chunk-MCUI6RHU.js';
14
14
  import { randomUUID, createHash } from 'crypto';
15
15
  import { mkdirSync, statSync, readFileSync, writeFileSync } from 'fs';
@@ -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 { legacyAgent, laptopAgents, defaultAgents, McpFileError } from './chunk-LPQJ5LXP.js';
6
+ import { legacyAgent, laptopAgents, defaultAgents, McpFileError } from './chunk-MTWYNTJD.js';
7
7
  import { existsSync, mkdirSync, writeFileSync, readFileSync } from 'fs';
8
8
  import { join, dirname } from 'path';
9
9
 
@@ -46,6 +46,8 @@ function installErrorFor(err, relPath) {
46
46
  switch (err.problem) {
47
47
  case "not-json":
48
48
  return new McpInstallError(`${relPath} exists and is not valid JSON \u2014 fix or remove it, then run the command again`);
49
+ case "not-toml":
50
+ return new McpInstallError(`${relPath} exists and is not valid TOML \u2014 fix or remove it, then run the command again`);
49
51
  case "not-object":
50
52
  return new McpInstallError(`${relPath} exists and its top level is not a JSON object \u2014 refusing to overwrite`);
51
53
  case "servers-not-object":
@@ -1,26 +1,26 @@
1
1
  #!/usr/bin/env node
2
2
  import { createRequire } from 'node:module';
3
- import { checkStarterFiles, contextIsGoverned } from './chunk-R3RALX7H.js';
4
- import { resolveCredentials, getJson, WorkCommandError } from './chunk-BAPRSDUR.js';
5
- import { fleetCheck, checkBuildSkill, checkSpecSkill, checkMachineSkills, checkCommittedMaintainedSkills, checkMaintainedReferences, checkIgnoredSkillFolders } from './chunk-ZDXEZPRM.js';
6
- import { withInjectedPrograms } from './chunk-5SKYWQ64.js';
7
- import { isLinkedRepository } from './chunk-IQWBUZ75.js';
3
+ import { checkStarterFiles, contextIsGoverned } from './chunk-37XJYLH3.js';
4
+ import { resolveCredentials, getJson, WorkCommandError } from './chunk-NV2NGOIW.js';
5
+ import { fleetCheck, checkBuildSkill, checkSpecSkill, checkMachineSkills, checkCommittedMaintainedSkills, checkMaintainedReferences, checkIgnoredSkillFolders } from './chunk-WZVOJYSK.js';
6
+ import { withInjectedPrograms } from './chunk-B4NLBGYZ.js';
7
+ import { isLinkedRepository } from './chunk-WZ53E572.js';
8
8
  import { sanitizeTerminal } from './chunk-DV44KCM6.js';
9
9
  import { C } from './chunk-2AM6Z5BP.js';
10
- import { checkFormerSkillNames } from './chunk-7GJGSADZ.js';
11
- import { resolveGatewayCredentials, defaultFetch } from './chunk-N7PG5JAD.js';
12
- import { sanitizeForContext, spoolDir, assessSyncHealth, readSyncStatus, SYNC_STALE_AFTER_MS, formatAgo, checkInstalledCliStaleness, workspaceRootOf, hookFiredMarkerPath, refreshCommand } from './chunk-E5PWV6H2.js';
13
- import { CONTROL_PLANE_DIR_VARIABLE } from './chunk-SF2TBJBP.js';
10
+ import { checkFormerSkillNames } from './chunk-XVU35JXB.js';
11
+ import { resolveGatewayCredentials, defaultFetch } from './chunk-WSINJGQZ.js';
12
+ import { sanitizeForContext, spoolDir, assessSyncHealth, readSyncStatus, SYNC_STALE_AFTER_MS, formatAgo, checkInstalledCliStaleness, workspaceRootOf, hookFiredMarkerPath, refreshCommand } from './chunk-IPDXIVDG.js';
13
+ import { CONTROL_PLANE_DIR_VARIABLE } from './chunk-F3J4UKBF.js';
14
14
  import { findGitDirs } from './chunk-BJ3KTMDH.js';
15
- import { readStatuslineState, STATE_FRESH_MS } from './chunk-M53UNEO6.js';
15
+ import { readStatuslineState, STATE_FRESH_MS } from './chunk-LA66NWUO.js';
16
16
  import { cliInvocation } from './chunk-FZKNTIOJ.js';
17
- import { installAgents, withSettingsText } from './chunk-BD254PYH.js';
17
+ import { installAgents, withSettingsText } from './chunk-TY4PEMQO.js';
18
18
  import { cliForInstall, cliBinResolvable } from './chunk-ZHQC43NH.js';
19
19
  import { readDeliveryRecord, readDegraded, readSourceCache } from './chunk-YQR6E6OV.js';
20
20
  import { deadHooksState, preparePackageManagerCommand } from './chunk-CJPTUU2E.js';
21
- import { defaultAgents, legacyAgent, contextAgents } from './chunk-LPQJ5LXP.js';
21
+ import { defaultAgents, legacyAgent, contextAgents } from './chunk-MTWYNTJD.js';
22
22
  import { homeFromEnv } from './chunk-352DHUTP.js';
23
- import { SUPPORTED_VERSIONS, resolveRepoIdentity } from './chunk-Y55ARAPE.js';
23
+ import { SUPPORTED_VERSIONS, resolveRepoIdentity } from './chunk-ZQZHAHJ4.js';
24
24
  import { CRITERIA_JUDGE_NAME } from './chunk-MCUI6RHU.js';
25
25
  import { readFileSync, mkdirSync, writeFileSync, renameSync, existsSync, accessSync, constants, statSync, readdirSync, lstatSync } from 'fs';
26
26
  import { sep, join, dirname, resolve, delimiter } from 'path';
@@ -1093,8 +1093,8 @@ function doctorExitCode(checks) {
1093
1093
 
1094
1094
  // src/doctor-report.ts
1095
1095
  async function gatherDoctorChecks(options = {}) {
1096
- const { DEFAULT_BUILD_DISK, DEFAULT_CACHE_DISK } = await import('./build-disk-KN7OJLKB.js');
1097
- const { defaultRunnerConfigPath, hasRunnerBlock, keyRunnerFactory, loadRunnerConfig, runnerVmOf } = await import('./config-TGFG7IID.js');
1096
+ const { DEFAULT_BUILD_DISK, DEFAULT_CACHE_DISK } = await import('./build-disk-2QBW4AIH.js');
1097
+ const { defaultRunnerConfigPath, hasRunnerBlock, keyRunnerFactory, loadRunnerConfig, runnerVmOf } = await import('./config-ADWWCHNN.js');
1098
1098
  const configPath = options.configPath ?? defaultRunnerConfigPath();
1099
1099
  const runnerHost = hasRunnerBlock(configPath);
1100
1100
  const hooks = (() => {
@@ -1122,7 +1122,7 @@ async function gatherDoctorChecks(options = {}) {
1122
1122
  const { runnerVmCheck } = await import('./doctor-53F2PYY7.js');
1123
1123
  checks.push(runnerVmCheck(configPath, { lima: realLima(), home: homeFromEnv(), instance: runnerVm.instance }));
1124
1124
  } else if (hasRunnerBlock(configPath)) {
1125
- const { runnerHostChecks } = await import('./doctor-2PHGAJBZ.js');
1125
+ const { runnerHostChecks } = await import('./doctor-66LCTPCG.js');
1126
1126
  const gateway = (() => {
1127
1127
  try {
1128
1128
  const loaded = loadRunnerConfig(configPath);
@@ -1150,7 +1150,7 @@ async function gatherDoctorChecks(options = {}) {
1150
1150
  const service = await (async () => {
1151
1151
  const { existsSync: existsSync3 } = await import('fs');
1152
1152
  if (process.platform !== "linux" || !existsSync3("/run/systemd/system")) return void 0;
1153
- const { inspectRunnerService } = await import('./find-unit-HKCVRS7L.js');
1153
+ const { inspectRunnerService } = await import('./find-unit-EM4TJ6FW.js');
1154
1154
  return inspectRunnerService(configPath);
1155
1155
  })();
1156
1156
  checks.push(...await runnerHostChecks({ configPath, hooks, gateway, repos, runner, service }));
@@ -1,6 +1,6 @@
1
1
  #!/usr/bin/env node
2
2
  import { createRequire } from 'node:module';
3
- import { defaultAgents } from './chunk-LPQJ5LXP.js';
3
+ import { defaultAgents } from './chunk-MTWYNTJD.js';
4
4
  import { openSync, fstatSync, readSync, closeSync } from 'fs';
5
5
  import { join } from 'path';
6
6
 
@@ -36,6 +36,7 @@ function endedEventNames(env, agents) {
36
36
  function detectActiveSession(opts) {
37
37
  const agents = opts.agents ?? defaultAgents();
38
38
  if (!agents.some((agent) => agent.adapter.lifecycle?.detectInSession(opts.env) === true)) return void 0;
39
+ const named = agents.flatMap((agent) => agent.adapter.lifecycle?.detectInSession(opts.env) === true ? [agent.adapter.lifecycle.sessionIdFromEnv?.(opts.env)] : []).find((id) => id !== void 0);
39
40
  const endNames = endedEventNames(opts.env, agents);
40
41
  const read = opts.readTailImpl ?? readTail;
41
42
  const tail = read(join(opts.home, ".outerlayer", "spool", "events.jsonl"), SESSION_DETECT_TAIL_BYTES);
@@ -58,6 +59,7 @@ function detectActiveSession(opts) {
58
59
  for (const record of records) {
59
60
  if (typeof record.sessionId !== "string" || record.sessionId === "") continue;
60
61
  if (ended.has(record.sessionId)) continue;
62
+ if (named !== void 0 && record.sessionId !== named) continue;
61
63
  if (typeof record.cwd !== "string" || !opts.cwds.includes(record.cwd)) continue;
62
64
  if (typeof record.t !== "string") continue;
63
65
  const tMs = Date.parse(record.t);
@@ -1,15 +1,15 @@
1
1
  #!/usr/bin/env node
2
2
  import { createRequire } from 'node:module';
3
- import { toolsDockerfile } from './chunk-YN6EKURT.js';
4
- import { claimPidFile, RunnerAlreadyRunningError, releasePidFile } from './chunk-MGN525G6.js';
3
+ import { toolsDockerfile } from './chunk-ZCCMINZ2.js';
4
+ import { claimPidFile, RunnerAlreadyRunningError, releasePidFile } from './chunk-J4WGMXVO.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-TCPWJBH5.js';
8
- import { RecipeError, locateRecipe, readRecipe, assertBuildable, writeSanitizedRecipe, classifyProperties, SANITIZED_NAME } from './chunk-ZBD2YOGH.js';
7
+ import { runnerLabelValue } from './chunk-SLV5TQR2.js';
8
+ import { RecipeError, locateRecipe, readRecipe, assertBuildable, writeSanitizedRecipe, classifyProperties, SANITIZED_NAME } from './chunk-FCJCOPQV.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-DYV2OC4S.js';
11
- import { withGitConfig, tokenHeader } from './chunk-VXU5IAEQ.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-BFKSIA3V.js';
10
+ import { RUNNER_DIR_MODE, RUNNER_FILE_MODE, repoCacheDir, imagesDir, imageBuildLogsDir, attemptStamp, orgStore, rootfsPathFor } from './chunk-QVPRJIII.js';
11
+ import { withGitConfig, tokenHeader } from './chunk-33KJYY4S.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-RLKFY3HU.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';
@@ -1,6 +1,6 @@
1
1
  #!/usr/bin/env node
2
2
  import { createRequire } from 'node:module';
3
- import { RUNNER_DIR_MODE, RUNNER_FILE_MODE, runnerDir } from './chunk-DYV2OC4S.js';
3
+ import { RUNNER_DIR_MODE, RUNNER_FILE_MODE, runnerDir } from './chunk-QVPRJIII.js';
4
4
  import { mkdirSync, writeFileSync, renameSync, existsSync, readFileSync } from 'fs';
5
5
  import { dirname, join } from 'path';
6
6
 
@@ -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-LPQJ5LXP.js';
3
+ import { legacyAgent, createNodeAgentIO, ADAPTER_FACTORIES } from './chunk-MTWYNTJD.js';
4
4
 
5
5
  createRequire(import.meta.url);
6
6
 
@@ -1,6 +1,6 @@
1
1
  #!/usr/bin/env node
2
2
  import { createRequire } from 'node:module';
3
- import { defaultAgents, laptopAgents, contextAgents, userSkillFolderIn, loadMachineSkillFiles, resolvePackRoot } from './chunk-LPQJ5LXP.js';
3
+ import { defaultAgents, laptopAgents, contextAgents, userSkillFolderIn, loadMachineSkillFiles, resolvePackRoot } from './chunk-MTWYNTJD.js';
4
4
  import { MAINTAINED_SKILLS, maintainedLineVersion } from './chunk-VSBG7MMU.js';
5
5
  import { resolvePackageVersion } from './chunk-RA3O54FC.js';
6
6
  import { homeFromEnv } from './chunk-352DHUTP.js';
@@ -1,7 +1,7 @@
1
1
  #!/usr/bin/env node
2
2
  import { createRequire } from 'node:module';
3
- import { linkedBranches, setupCommitPaths, commitCommandsFor, ownerAndName } from './chunk-IQWBUZ75.js';
4
- import { resolveGatewayCredentials } from './chunk-N7PG5JAD.js';
3
+ import { linkedBranches, setupCommitPaths, commitCommandsFor, ownerAndName } from './chunk-WZ53E572.js';
4
+ import { resolveGatewayCredentials } from './chunk-WSINJGQZ.js';
5
5
  import { findGitDirs } from './chunk-BJ3KTMDH.js';
6
6
  import { execFileSync } from 'child_process';
7
7
  import { existsSync, mkdirSync, writeFileSync } from 'fs';
@@ -1,6 +1,6 @@
1
1
  #!/usr/bin/env node
2
2
  import { createRequire } from 'node:module';
3
- import { currentLink } from './chunk-PT3DOY6P.js';
3
+ import { currentLink } from './chunk-GORJSDOM.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,10 +1,10 @@
1
1
  #!/usr/bin/env node
2
2
  import { createRequire } from 'node:module';
3
- import { launcherPath, pathNotes, writeLauncher, LauncherWriteError } from './chunk-BMMSIGV4.js';
4
- import { currentVersion, entryIn, currentLink, versionDir, execStartLine, isInLayout, packageRootIn, switchCurrent } from './chunk-PT3DOY6P.js';
3
+ import { launcherPath, pathNotes, writeLauncher, LauncherWriteError } from './chunk-DQHMMJ4J.js';
4
+ import { currentVersion, entryIn, currentLink, versionDir, execStartLine, isInLayout, packageRootIn, switchCurrent } from './chunk-GORJSDOM.js';
5
5
  import { compareVersions } from './chunk-TQMI335S.js';
6
- import { defaultRunnerConfigPath } from './chunk-PIXDSHVH.js';
7
- import { runnerDir, RUNNER_DIR_MODE } from './chunk-DYV2OC4S.js';
6
+ import { defaultRunnerConfigPath } from './chunk-G7QDU2TP.js';
7
+ import { runnerDir, RUNNER_DIR_MODE } from './chunk-QVPRJIII.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,6 +1,6 @@
1
1
  #!/usr/bin/env node
2
2
  import { createRequire } from 'node:module';
3
- import { NATIVE_AGENTS, LEGACY_AGENT } from './chunk-7PZDPISM.js';
3
+ import { NATIVE_AGENTS, LEGACY_AGENT } from './chunk-JIMISJV2.js';
4
4
 
5
5
  createRequire(import.meta.url);
6
6
 
@@ -1,6 +1,6 @@
1
1
  #!/usr/bin/env node
2
2
  import { createRequire } from 'node:module';
3
- import { UNIVERSAL_IMAGE_REPOSITORY, UNIVERSAL_IMAGE_DIGEST } from './chunk-BFKSIA3V.js';
3
+ import { UNIVERSAL_IMAGE_REPOSITORY, UNIVERSAL_IMAGE_DIGEST } from './chunk-RLKFY3HU.js';
4
4
  import { existsSync, readdirSync, readFileSync, lstatSync, realpathSync, writeFileSync } from 'fs';
5
5
  import { join, resolve, relative, dirname, sep, basename } from 'path';
6
6
  import { createRequire as createRequire$1 } from 'module';
@@ -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-OC3BSNNE.js';
4
- import { parseSize } from './chunk-TCPWJBH5.js';
5
- import { isRefusedInConfig, resolveDestinations, isReservedVariable } from './chunk-VXU5IAEQ.js';
6
- import { builderDiskPinned } from './chunk-BFKSIA3V.js';
3
+ import { DEFAULT_CACHE_DISK, DEFAULT_BUILD_DISK } from './chunk-S6H336Y6.js';
4
+ import { parseSize } from './chunk-SLV5TQR2.js';
5
+ import { isRefusedInConfig, resolveDestinations, isReservedVariable } from './chunk-33KJYY4S.js';
6
+ import { builderDiskPinned } from './chunk-RLKFY3HU.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,6 +1,6 @@
1
1
  #!/usr/bin/env node
2
2
  import { createRequire } from 'node:module';
3
- import { runnerDir, RUNNER_DIR_MODE, RUNNER_FILE_MODE } from './chunk-DYV2OC4S.js';
3
+ import { runnerDir, RUNNER_DIR_MODE, RUNNER_FILE_MODE } from './chunk-QVPRJIII.js';
4
4
  import { readlinkSync, realpathSync, mkdirSync, unlinkSync, symlinkSync, renameSync, readFileSync, writeFileSync, rmSync, existsSync, readdirSync } from 'fs';
5
5
  import { join, basename, sep, resolve } from 'path';
6
6
 
@@ -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-IQWBUZ75.js';
4
- import { resolveGatewayCredentials } from './chunk-N7PG5JAD.js';
3
+ import { fetchFactories, selectFactory, saveFactoryConnection, autoConnectedLine } from './chunk-WZ53E572.js';
4
+ import { resolveGatewayCredentials } from './chunk-WSINJGQZ.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-Y55ARAPE.js';
9
+ import { resolveRepoIdentity } from './chunk-ZQZHAHJ4.js';
10
10
 
11
11
  createRequire(import.meta.url);
12
12
 
@@ -1,6 +1,6 @@
1
1
  #!/usr/bin/env node
2
2
  import { createRequire } from 'node:module';
3
- import { LEGACY_AGENT } from './chunk-7PZDPISM.js';
3
+ import { LEGACY_AGENT } from './chunk-JIMISJV2.js';
4
4
 
5
5
  createRequire(import.meta.url);
6
6
 
@@ -108,17 +108,78 @@ var CLAUDE_CODE_HOOKS = {
108
108
  statusLine
109
109
  };
110
110
 
111
- // ../agents/src/opencode/hooks.ts
111
+ // ../agents/src/codex/hooks.ts
112
112
  var REGISTERED2 = [
113
+ ["SessionStart", "session-start"],
114
+ ["PostToolUse", "tool-used"],
115
+ ["Stop", "turn-ended"]
116
+ ];
117
+ var KIND_BY_NAME2 = new Map(REGISTERED2);
118
+ var TOOL_KINDS2 = { Bash: "shell", apply_patch: "edit", Edit: "edit", Write: "edit" };
119
+ function toolKind2(name) {
120
+ if (name === void 0) return void 0;
121
+ if (name.startsWith("mcp__")) return "mcp";
122
+ return TOOL_KINDS2[name] ?? "other";
123
+ }
124
+ var text2 = (value) => typeof value === "string" ? value : void 0;
125
+ function parsePayload2(stdin) {
126
+ try {
127
+ const parsed = stdin === "" ? {} : JSON.parse(stdin);
128
+ return typeof parsed === "object" && parsed !== null && !Array.isArray(parsed) ? parsed : {};
129
+ } catch {
130
+ return {};
131
+ }
132
+ }
133
+ function decode2(name, stdin) {
134
+ const payload = parsePayload2(stdin);
135
+ const nativeName = String(name ?? payload.hook_event_name ?? "unknown");
136
+ const kind = KIND_BY_NAME2.get(nativeName);
137
+ const sessionId = text2(payload.session_id);
138
+ const cwd = text2(payload.cwd);
139
+ const transcript = text2(payload.transcript_path);
140
+ const toolName = text2(payload.tool_name);
141
+ const toolUseId = text2(payload.tool_use_id);
142
+ const tool = toolKind2(toolName);
143
+ return {
144
+ nativeName,
145
+ ...kind === void 0 ? {} : { kind },
146
+ ...kind !== void 0 && sessionId !== void 0 ? {
147
+ event: {
148
+ kind,
149
+ sessionId,
150
+ cwd: cwd ?? "",
151
+ session: { agent: "codex", id: sessionId, locator: transcript === void 0 ? { kind: "export", id: sessionId } : { kind: "file", path: transcript } },
152
+ ...kind === "tool-used" && tool !== void 0 ? { tool } : {}
153
+ }
154
+ } : {},
155
+ spool: {
156
+ sessionId: payload.session_id ?? null,
157
+ transcriptPath: payload.transcript_path ?? null,
158
+ cwd: payload.cwd ?? null,
159
+ payloadEvent: payload.hook_event_name ?? null
160
+ },
161
+ fromSubagent: false,
162
+ ...toolName === void 0 && toolUseId === void 0 ? {} : { tool: { ...toolUseId === void 0 ? {} : { useId: toolUseId }, ...toolName === void 0 ? {} : { name: toolName } } }
163
+ };
164
+ }
165
+ var CODEX_CODEC = {
166
+ events: REGISTERED2.map(([name]) => name),
167
+ decode: decode2,
168
+ // Codex takes no context from these hooks, so there is nothing to print.
169
+ reply: () => ""
170
+ };
171
+
172
+ // ../agents/src/opencode/hooks.ts
173
+ var REGISTERED3 = [
113
174
  ["session.execution.started", "session-start"],
114
175
  ["session.tool.success", "tool-used"],
115
176
  ["session.usage.updated", "usage"],
116
177
  ["session.execution.succeeded", "turn-ended"]
117
178
  ];
118
- var KIND_BY_NAME2 = new Map(REGISTERED2);
179
+ var KIND_BY_NAME3 = new Map(REGISTERED3);
119
180
  var isObject = (value) => typeof value === "object" && value !== null && !Array.isArray(value);
120
- var text2 = (value) => typeof value === "string" ? value : void 0;
121
- function parsePayload2(stdin) {
181
+ var text3 = (value) => typeof value === "string" ? value : void 0;
182
+ function parsePayload3(stdin) {
122
183
  try {
123
184
  const parsed = stdin === "" ? {} : JSON.parse(stdin);
124
185
  return isObject(parsed) ? parsed : {};
@@ -126,12 +187,12 @@ function parsePayload2(stdin) {
126
187
  return {};
127
188
  }
128
189
  }
129
- function decode2(name, stdin) {
130
- const payload = parsePayload2(stdin);
190
+ function decode3(name, stdin) {
191
+ const payload = parsePayload3(stdin);
131
192
  const nativeName = String(name ?? payload.type ?? "unknown");
132
- const kind = KIND_BY_NAME2.get(nativeName);
133
- const sessionId = text2(isObject(payload.data) ? payload.data.sessionID : void 0) ?? text2(payload.sessionID);
134
- const cwd = text2(isObject(payload.location) ? payload.location.directory : void 0);
193
+ const kind = KIND_BY_NAME3.get(nativeName);
194
+ const sessionId = text3(isObject(payload.data) ? payload.data.sessionID : void 0) ?? text3(payload.sessionID);
195
+ const cwd = text3(isObject(payload.location) ? payload.location.directory : void 0);
135
196
  return {
136
197
  nativeName,
137
198
  ...kind === void 0 ? {} : { kind },
@@ -141,8 +202,8 @@ function decode2(name, stdin) {
141
202
  };
142
203
  }
143
204
  var OPENCODE_CODEC = {
144
- events: REGISTERED2.map(([name]) => name),
145
- decode: decode2,
205
+ events: REGISTERED3.map(([name]) => name),
206
+ decode: decode3,
146
207
  // OpenCode takes no context from a hook, so there is nothing to print.
147
208
  reply: () => ""
148
209
  };
@@ -150,7 +211,8 @@ var OPENCODE_CODEC = {
150
211
  // ../agents/src/native/hook-codecs.ts
151
212
  var HOOK_CODECS = {
152
213
  "claude-code": CLAUDE_CODE_HOOKS,
153
- opencode: OPENCODE_CODEC
214
+ opencode: OPENCODE_CODEC,
215
+ codex: CODEX_CODEC
154
216
  };
155
217
 
156
218
  // ../agents/src/lifecycle.ts
@@ -158,4 +220,4 @@ function hookCodec(agentId) {
158
220
  return HOOK_CODECS[agentId ?? LEGACY_AGENT];
159
221
  }
160
222
 
161
- export { CLAUDE_CODE_HOOKS, OPENCODE_CODEC, hookCodec };
223
+ export { CLAUDE_CODE_HOOKS, CODEX_CODEC, OPENCODE_CODEC, hookCodec };
@@ -1,17 +1,17 @@
1
1
  #!/usr/bin/env node
2
2
  import { createRequire } from 'node:module';
3
3
  import { launchRefusalForSession } from './chunk-C2PZOLN7.js';
4
- import { detectActiveSession, transcriptPathForSession } from './chunk-IKGAVS5X.js';
5
- import { autoConnect } from './chunk-QFAH525L.js';
4
+ import { detectActiveSession, transcriptPathForSession } from './chunk-ASWME2BU.js';
5
+ import { autoConnect } from './chunk-HFE6QGUX.js';
6
6
  import { C } from './chunk-2AM6Z5BP.js';
7
- import { resolveGatewayCredentials, defaultFetch, unauthorizedMessage } from './chunk-N7PG5JAD.js';
7
+ import { resolveGatewayCredentials, defaultFetch, unauthorizedMessage } from './chunk-WSINJGQZ.js';
8
8
  import { readLatestProvenanceForSession } from './chunk-545P7JY7.js';
9
9
  import { launchedItemForSession } from './chunk-LGJ56FCM.js';
10
10
  import { parseTrackerNumber, trackerNumberError } from './chunk-WZBHBH3J.js';
11
11
  import { cliInvocation } from './chunk-FZKNTIOJ.js';
12
- import { legacyAgent, captureAgents, sessionFolderIn } from './chunk-LPQJ5LXP.js';
12
+ import { legacyAgent, captureAgents, sessionFolderIn } from './chunk-MTWYNTJD.js';
13
13
  import { homeFromEnv } from './chunk-352DHUTP.js';
14
- import { resolveRepoIdentity, scrubText } from './chunk-Y55ARAPE.js';
14
+ import { resolveRepoIdentity, scrubText } from './chunk-ZQZHAHJ4.js';
15
15
  import { FindingBatchSchema, findingGaps, FindingsResponseSchema, FINDING_CODE_EXCERPT_MAX_LENGTH, SAME_PROBLEM_RULES, FINDING_TRANSCRIPT_EXCERPT_MAX_LENGTH } from './chunk-MCUI6RHU.js';
16
16
  import { readFileSync, existsSync } from 'fs';
17
17
  import { homedir } from 'os';
@@ -1,7 +1,7 @@
1
1
  #!/usr/bin/env node
2
2
  import { createRequire } from 'node:module';
3
3
  import { sanitizeTerminal } from './chunk-DV44KCM6.js';
4
- import { resolvePackRoot, parseProofsConfig } from './chunk-LPQJ5LXP.js';
4
+ import { resolvePackRoot, parseProofsConfig } from './chunk-MTWYNTJD.js';
5
5
  import { CHECK_ITEM_REASON_MAX_LENGTH, CHECK_ITEMS_MAX, CheckItemsSchema, problemKind, CHECK_ITEM_REFS_MAX, CHECK_ITEM_ID_MAX_LENGTH, CHECK_ITEM_REF_PATH_MAX_LENGTH, JUDGE_NOT_RUN_ITEM_ID, REVIEWED_COMMIT_ITEM_ID } from './chunk-MCUI6RHU.js';
6
6
  import { createHash } from 'crypto';
7
7
  import { join } from 'path';
@@ -1,14 +1,14 @@
1
1
  #!/usr/bin/env node
2
2
  import { createRequire } from 'node:module';
3
- import { RemovedTargetError, removedTargetError } from './chunk-ZCOIE7ZJ.js';
4
- import { removeRetiredSkills } from './chunk-7GJGSADZ.js';
3
+ import { RemovedTargetError, removedTargetError } from './chunk-M7WMIGYO.js';
4
+ import { removeRetiredSkills } from './chunk-XVU35JXB.js';
5
5
  import { removeLeftoverGitLocks } from './chunk-A2WPWZJA.js';
6
- import { defaultFetch, resolveGatewayCredentials } from './chunk-N7PG5JAD.js';
7
- import { withTokenHeader } from './chunk-VXU5IAEQ.js';
6
+ import { defaultFetch, resolveGatewayCredentials } from './chunk-WSINJGQZ.js';
7
+ import { withTokenHeader } from './chunk-33KJYY4S.js';
8
8
  import { appendContextProvenance } from './chunk-545P7JY7.js';
9
9
  import { cliInvocation } from './chunk-FZKNTIOJ.js';
10
10
  import { writeDegraded, writeSourceCache, SOURCE_CACHE_TTL_RETRY_MS, writeContextManifest, SOURCE_CACHE_TTL_SUCCESS_MS, readSourceCache, isSourceCacheFresh, clearDegraded } from './chunk-YQR6E6OV.js';
11
- import { normalizeRepoName, loadMaintainedFiles, writeMaintainedFiles, parseOuterlayerConfig, targetIds, classifyTree, emitTree, emitBuilders, defaultAgents, agentRootFolders } from './chunk-LPQJ5LXP.js';
11
+ import { normalizeRepoName, loadMaintainedFiles, writeMaintainedFiles, parseOuterlayerConfig, targetIds, classifyTree, emitTree, emitBuilders, defaultAgents, agentRootFolders } from './chunk-MTWYNTJD.js';
12
12
  import { homeFromEnv } from './chunk-352DHUTP.js';
13
13
  import { execFileSync } from 'child_process';
14
14
  import { existsSync, mkdirSync, writeFileSync, chmodSync, lstatSync, readFileSync, copyFileSync } from 'fs';
@@ -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-SF2TBJBP.js';
4
+ import { CONTROL_PLANE_DIR_VARIABLE } from './chunk-F3J4UKBF.js';
5
5
  import { readRepoConnection, findGitDirs } from './chunk-BJ3KTMDH.js';
6
6
  import { updateNoticeContext, staleMachineCopiesContext } from './chunk-Z7J7JWGF.js';
7
7
  import { cliInvocation } from './chunk-FZKNTIOJ.js';
8
8
  import { deadHooksState, huskyPrepareScript, preparePackageManagerCommand } from './chunk-CJPTUU2E.js';
9
- import { hookCodec } from './chunk-PLVHIQJN.js';
10
- import { NATIVE_AGENTS, LEGACY_AGENT } from './chunk-7PZDPISM.js';
9
+ import { hookCodec } from './chunk-HS45JMDJ.js';
10
+ import { NATIVE_AGENTS, LEGACY_AGENT } from './chunk-JIMISJV2.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';
@@ -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-ZZV5WVDH.js');
681
+ const { hookRegistered } = await import('./hook-install-SWL7XFB2.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-VYUESYGU.js');
881
+ const { cleanupEarlierCopies } = await import('./context-cleanup-L4RXI5WH.js');
882
882
  cleanupEarlierCopies(dirs);
883
883
  }
884
884
  if (!contextPossiblyGoverned(cwd, home)) return void 0;
885
- const { governanceOf } = await import('./control-plane-launch-HQPMYL7O.js');
885
+ const { governanceOf } = await import('./control-plane-launch-3O3GPQID.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,7 +1,7 @@
1
1
  #!/usr/bin/env node
2
2
  import { createRequire } from 'node:module';
3
3
  import { isSameProcess } from './chunk-JBJTC3UU.js';
4
- import { RUNNER_DIR_MODE, RUNNER_FILE_MODE } from './chunk-DYV2OC4S.js';
4
+ import { RUNNER_DIR_MODE, RUNNER_FILE_MODE } from './chunk-QVPRJIII.js';
5
5
  import { existsSync, readFileSync, mkdirSync, writeFileSync, rmSync } from 'fs';
6
6
  import { dirname } from 'path';
7
7
 
@@ -63,6 +63,57 @@ var CLAUDE_CODE = {
63
63
  }
64
64
  };
65
65
 
66
+ // ../agents/src/codex/descriptor.ts
67
+ var CODEX = {
68
+ id: "codex",
69
+ label: "Codex",
70
+ color: "#10A37F",
71
+ program: "codex",
72
+ // The one version the rollout parser and the launch were recorded against. `packages/cli/src/runner/image/pins.ts` pins the same version as `CODEX_VERSION`.
73
+ versions: { minimum: "0.169.0", tested: { from: "0.169.0", to: "0.169.0" } },
74
+ providers: ["openai"],
75
+ credentials: {
76
+ label: "Codex",
77
+ setupCommand: "codex login",
78
+ forwarded: ["OPENAI_API_KEY"],
79
+ stripped: ["OPENAI_API_KEY"],
80
+ placeholders: {
81
+ OPENAI_API_KEY: "sk-proj-placeholder-not-a-real-key"
82
+ },
83
+ kinds: {
84
+ OPENAI_API_KEY: { pattern: "^sk-(?!ant-)[A-Za-z0-9_-]+$", provider: "openai", providerKind: "api-key", starts: "sk-" }
85
+ }
86
+ },
87
+ capture: { sessionFolder: "~/.codex/sessions" },
88
+ context: {
89
+ // Codex reads `AGENTS.md` and `.agents/skills`, which the control plane shares with other agents.
90
+ instructionFiles: [],
91
+ repoSkillFolders: [],
92
+ userSkillFolder: "~/.agents/skills",
93
+ // A launch gives Codex a `CODEX_HOME` of its own, in place of the person's, and copies the person's config and login into it.
94
+ attach: "replaces-user-config",
95
+ native: ["agents-md", "skills", "settings-hooks", "mcp"]
96
+ },
97
+ capabilities: {
98
+ sessionId: "generated",
99
+ resume: false,
100
+ fork: false,
101
+ subagents: { spawnTools: [], transcript: "inline" },
102
+ cost: "events",
103
+ longCommands: "blocking",
104
+ permission: {},
105
+ structuredOutput: false,
106
+ mcp: true,
107
+ judge: false
108
+ },
109
+ hooks: {
110
+ contextCap: 0,
111
+ timeoutCeilingMs: 6e5,
112
+ // Codex runs a hook before a tool too, and the delivered hooks.json does not register it.
113
+ spans: { PostToolUse: "post_tool_use", Stop: "stop" }
114
+ }
115
+ };
116
+
66
117
  // ../agents/src/opencode/descriptor.ts
67
118
  var OPENCODE = {
68
119
  id: "opencode",
@@ -117,7 +168,8 @@ var OPENCODE = {
117
168
  // ../agents/src/native/agents.ts
118
169
  var NATIVE_AGENTS = {
119
170
  "claude-code": CLAUDE_CODE,
120
- opencode: OPENCODE
171
+ opencode: OPENCODE,
172
+ codex: CODEX
121
173
  };
122
174
  var LEGACY_AGENT = "claude-code";
123
175
 
@@ -133,6 +185,14 @@ var PROVIDERS = {
133
185
  ],
134
186
  droppedHeaders: ["x-api-key", "authorization"],
135
187
  destination: { name: "claude", port: 3127, socket: "claude.sock" }
188
+ },
189
+ openai: {
190
+ id: "openai",
191
+ label: "OpenAI",
192
+ upstream: "https://api.openai.com/",
193
+ credentialKinds: [{ id: "api-key", label: "API key", header: "Authorization", prefix: "Bearer " }],
194
+ droppedHeaders: ["authorization"],
195
+ destination: { name: "openai", port: 3128, socket: "openai.sock" }
136
196
  }
137
197
  };
138
198
 
@@ -141,4 +201,4 @@ function homeRelative(folder) {
141
201
  return folder.replace(/^~\//, "");
142
202
  }
143
203
 
144
- export { CLAUDE_CODE, LEGACY_AGENT, NATIVE_AGENTS, OPENCODE, PROVIDERS, homeRelative };
204
+ export { CLAUDE_CODE, CODEX, LEGACY_AGENT, NATIVE_AGENTS, OPENCODE, PROVIDERS, homeRelative };