tenjin-cli 0.1.0-alpha.31 → 0.1.0-alpha.33

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 (270) hide show
  1. package/README.md +45 -26
  2. package/dist/{_esm-MEXZI5DL.js → _esm-BIN7VY2L.js} +128 -132
  3. package/dist/{alive-J64H46HI.js → alive-GSOWKUOY.js} +13 -6
  4. package/dist/auto-update-Y24UL56V.js +24 -0
  5. package/dist/{ccip-7RMRLAGV.js → ccip-DHDFKTQV.js} +2 -2
  6. package/dist/{chunk-TTNESUPQ.js → chunk-2GP3HRYK.js} +2120 -193
  7. package/dist/chunk-2GP3HRYK.js.map +1 -0
  8. package/dist/chunk-2M2VPI2E.js +560 -0
  9. package/dist/chunk-2M2VPI2E.js.map +1 -0
  10. package/dist/{chunk-D65GNPS3.js → chunk-2RWB7RKE.js} +288 -108
  11. package/dist/chunk-2RWB7RKE.js.map +1 -0
  12. package/dist/{chunk-AGZ7PJKY.js → chunk-36RVGZNY.js} +22 -5
  13. package/dist/chunk-36RVGZNY.js.map +1 -0
  14. package/dist/chunk-3AIHRXKO.js +72 -0
  15. package/dist/chunk-3AIHRXKO.js.map +1 -0
  16. package/dist/{chunk-S4SAZ7OD.js → chunk-3FMZGI7I.js} +12 -2
  17. package/dist/{chunk-S4SAZ7OD.js.map → chunk-3FMZGI7I.js.map} +1 -1
  18. package/dist/chunk-3GNJXKIT.js +198 -0
  19. package/dist/chunk-3GNJXKIT.js.map +1 -0
  20. package/dist/{chunk-UQUOVWBG.js → chunk-4K7TQHNP.js} +7 -7
  21. package/dist/{chunk-A36LQPHV.js → chunk-4LMUQMBH.js} +1 -1
  22. package/dist/{chunk-A36LQPHV.js.map → chunk-4LMUQMBH.js.map} +1 -1
  23. package/dist/{chunk-KXQ4UIP7.js → chunk-4USCZ2NI.js} +2 -2
  24. package/dist/chunk-4YOZGGTZ.js +247 -0
  25. package/dist/chunk-4YOZGGTZ.js.map +1 -0
  26. package/dist/chunk-62KNUYWD.js +111 -0
  27. package/dist/chunk-62KNUYWD.js.map +1 -0
  28. package/dist/{chunk-POUWHWID.js → chunk-6CMM6YCB.js} +3 -3
  29. package/dist/{chunk-POUWHWID.js.map → chunk-6CMM6YCB.js.map} +1 -1
  30. package/dist/{chunk-5MARFNSB.js → chunk-A5GKIG5O.js} +49 -30
  31. package/dist/chunk-A5GKIG5O.js.map +1 -0
  32. package/dist/{chunk-YFPY4ONH.js → chunk-AGMVASXZ.js} +4 -4
  33. package/dist/chunk-BF4XHEQK.js +116 -0
  34. package/dist/chunk-BF4XHEQK.js.map +1 -0
  35. package/dist/chunk-BFDQ4WNW.js +119 -0
  36. package/dist/chunk-BFDQ4WNW.js.map +1 -0
  37. package/dist/{chunk-P4NH7OUK.js → chunk-C2Q76BVM.js} +49 -50
  38. package/dist/chunk-C2Q76BVM.js.map +1 -0
  39. package/dist/chunk-CEXSOI5R.js +808 -0
  40. package/dist/chunk-CEXSOI5R.js.map +1 -0
  41. package/dist/{chunk-QSCPK4F5.js → chunk-E7SW44LM.js} +4 -11
  42. package/dist/chunk-E7SW44LM.js.map +1 -0
  43. package/dist/chunk-EDJWHDDL.js +33 -0
  44. package/dist/chunk-EDJWHDDL.js.map +1 -0
  45. package/dist/chunk-F3ED5WTR.js +13 -0
  46. package/dist/chunk-F3ED5WTR.js.map +1 -0
  47. package/dist/{chunk-K72RURN3.js → chunk-FVIGCDSV.js} +2 -2
  48. package/dist/chunk-FVIGCDSV.js.map +1 -0
  49. package/dist/{chunk-5K5W4S66.js → chunk-GTTUCOPD.js} +2 -2
  50. package/dist/{chunk-4ZZO6ULA.js → chunk-HDPUXS3Z.js} +19 -48
  51. package/dist/chunk-HDPUXS3Z.js.map +1 -0
  52. package/dist/{chunk-LEFIX6RS.js → chunk-HGGWCP7W.js} +31 -11
  53. package/dist/chunk-HGGWCP7W.js.map +1 -0
  54. package/dist/{chunk-ORWL5BSN.js → chunk-HGZEPQUT.js} +2 -2
  55. package/dist/chunk-HMWYAUA6.js +478 -0
  56. package/dist/chunk-HMWYAUA6.js.map +1 -0
  57. package/dist/{chunk-7QKHZQKW.js → chunk-IADZOXKN.js} +39 -6
  58. package/dist/chunk-IADZOXKN.js.map +1 -0
  59. package/dist/{chunk-7Q5FDF65.js → chunk-IE7P2BZE.js} +3 -3
  60. package/dist/{chunk-77TCKDEC.js → chunk-ILNIZ5I2.js} +788 -508
  61. package/dist/chunk-ILNIZ5I2.js.map +1 -0
  62. package/dist/{hosts-FWZOV26H.js → chunk-INTFHMU4.js} +79 -24
  63. package/dist/chunk-INTFHMU4.js.map +1 -0
  64. package/dist/{chunk-6E5R45ZO.js → chunk-J57UC3DD.js} +4 -4
  65. package/dist/{chunk-6E5R45ZO.js.map → chunk-J57UC3DD.js.map} +1 -1
  66. package/dist/chunk-JNJWBTU2.js +3497 -0
  67. package/dist/chunk-JNJWBTU2.js.map +1 -0
  68. package/dist/{chunk-7WU4OPLP.js → chunk-KM7RY2ZS.js} +5 -3
  69. package/dist/{chunk-7WU4OPLP.js.map → chunk-KM7RY2ZS.js.map} +1 -1
  70. package/dist/chunk-L6JEXB3E.js +293 -0
  71. package/dist/chunk-L6JEXB3E.js.map +1 -0
  72. package/dist/chunk-LRW6S53P.js +450 -0
  73. package/dist/chunk-LRW6S53P.js.map +1 -0
  74. package/dist/{chunk-UKY4CHNC.js → chunk-LXAYUOXI.js} +24 -11
  75. package/dist/chunk-LXAYUOXI.js.map +1 -0
  76. package/dist/{chunk-WJXLQXJY.js → chunk-MPZUYCAP.js} +4 -1
  77. package/dist/{chunk-WJXLQXJY.js.map → chunk-MPZUYCAP.js.map} +1 -1
  78. package/dist/chunk-NDGZDTSJ.js +393 -0
  79. package/dist/chunk-NDGZDTSJ.js.map +1 -0
  80. package/dist/{chunk-SJLTEINJ.js → chunk-OJNTCYQQ.js} +17 -1
  81. package/dist/chunk-OJNTCYQQ.js.map +1 -0
  82. package/dist/{chunk-OHRR5OYM.js → chunk-P3LFTKE7.js} +5 -10
  83. package/dist/chunk-P3LFTKE7.js.map +1 -0
  84. package/dist/{chunk-XZKD7DIF.js → chunk-RL5UUDT4.js} +3 -3
  85. package/dist/{chunk-XZKD7DIF.js.map → chunk-RL5UUDT4.js.map} +1 -1
  86. package/dist/{chunk-5C32RLTA.js → chunk-RVPYTUP4.js} +20 -5
  87. package/dist/chunk-RVPYTUP4.js.map +1 -0
  88. package/dist/{chunk-YVFXE7RR.js → chunk-SNNSAGMT.js} +7279 -2627
  89. package/dist/chunk-SNNSAGMT.js.map +1 -0
  90. package/dist/{chunk-WK7F3B2E.js → chunk-SO3XRZPX.js} +3 -3
  91. package/dist/{chunk-R5LCN54M.js → chunk-TC2WZLSC.js} +13 -17
  92. package/dist/{chunk-R5LCN54M.js.map → chunk-TC2WZLSC.js.map} +1 -1
  93. package/dist/{chunk-B7HUUJOK.js → chunk-TKPF35W6.js} +3 -3
  94. package/dist/{chunk-KXVP2VKA.js → chunk-U3IKUGRP.js} +32 -33
  95. package/dist/chunk-U3IKUGRP.js.map +1 -0
  96. package/dist/{chunk-AKWGE6JQ.js → chunk-UUGOUOVT.js} +37 -2
  97. package/dist/chunk-UUGOUOVT.js.map +1 -0
  98. package/dist/{chunk-2XLC3AEX.js → chunk-UXZONNEQ.js} +536 -510
  99. package/dist/chunk-UXZONNEQ.js.map +1 -0
  100. package/dist/{chunk-7ZRL2LBQ.js → chunk-V2LQLN5H.js} +6 -6
  101. package/dist/{chunk-NEFNKLBE.js → chunk-WFSPCCVW.js} +1536 -423
  102. package/dist/chunk-WFSPCCVW.js.map +1 -0
  103. package/dist/{chunk-27EPWVOY.js → chunk-WXA2BWTE.js} +7 -3
  104. package/dist/chunk-WXA2BWTE.js.map +1 -0
  105. package/dist/chunk-WYXUQGOL.js +191 -0
  106. package/dist/chunk-WYXUQGOL.js.map +1 -0
  107. package/dist/chunk-X5ZBP3IY.js +97 -0
  108. package/dist/chunk-X5ZBP3IY.js.map +1 -0
  109. package/dist/{chunk-MNXS2U45.js → chunk-ZDZERB6L.js} +206 -297
  110. package/dist/chunk-ZDZERB6L.js.map +1 -0
  111. package/dist/chunk-ZNNXRNFD.js +113 -0
  112. package/dist/chunk-ZNNXRNFD.js.map +1 -0
  113. package/dist/{chunk-FW75G2W4.js → chunk-ZURZHELF.js} +5 -5
  114. package/dist/{cli-D5OE3URZ.js → cli-E36SPKBW.js} +145 -64
  115. package/dist/{cli-D5OE3URZ.js.map → cli-E36SPKBW.js.map} +1 -1
  116. package/dist/{codex-event-PPNVRRDH.js → codex-event-ZO2GEFE6.js} +2 -2
  117. package/dist/{codex-host-2RJOJW2B.js → codex-host-KECJVTA2.js} +7 -6
  118. package/dist/codex-install-HQZDGFXW.js +436 -0
  119. package/dist/codex-install-HQZDGFXW.js.map +1 -0
  120. package/dist/{config-ZD4OB2DO.js → config-HY2E4GGW.js} +21 -17
  121. package/dist/doctor-I6XQEKWD.js +1323 -0
  122. package/dist/doctor-I6XQEKWD.js.map +1 -0
  123. package/dist/{env-proxy-XL4P73MZ.js → env-proxy-R6ZMLQTT.js} +6 -2
  124. package/dist/{ethersCompat-Df4a6QIZ-THAVUGIJ.js → ethersCompat-Df4a6QIZ-X6YZWAML.js} +3 -3
  125. package/dist/{fund-5ITKQGYF.js → fund-2QRO7OJL.js} +43 -37
  126. package/dist/{fund-5ITKQGYF.js.map → fund-2QRO7OJL.js.map} +1 -1
  127. package/dist/hook-command-2UBCSZG6.js +43 -0
  128. package/dist/hosts/claude/.claude-plugin/marketplace.json +2 -2
  129. package/dist/hosts/claude/tenjin/.claude-plugin/plugin.json +2 -2
  130. package/dist/hosts/claude/tenjin/hooks/register.tsx +51 -11
  131. package/dist/hosts/claude/tenjin/skills/tenjin-pay/SKILL.md +82 -0
  132. package/dist/hosts/claude/tenjin/types/index.d.ts +2 -1
  133. package/dist/hosts/codex/tenjin/.mcp.json +3 -0
  134. package/dist/hosts/codex/tenjin/hooks/hooks.json +51 -5
  135. package/dist/hosts-DVQJ32QC.js +38 -0
  136. package/dist/index.js +32 -11
  137. package/dist/index.js.map +1 -1
  138. package/dist/install-ILUX5C4A.js +107 -0
  139. package/dist/{install-identity-K7EJIQFP.js → install-identity-TZKGY6LQ.js} +11 -10
  140. package/dist/install-wallet-5M4OTYLX.js +281 -0
  141. package/dist/install-wallet-5M4OTYLX.js.map +1 -0
  142. package/dist/isows-native-Q2UDIVPT.js +9 -0
  143. package/dist/isows-native-Q2UDIVPT.js.map +1 -0
  144. package/dist/{mcp-3LIJSSJB.js → mcp-LE4DUS22.js} +785 -211
  145. package/dist/mcp-LE4DUS22.js.map +1 -0
  146. package/dist/{mine.wasm-6PIT3DK6.js → mine.wasm-QFAHIFPY.js} +2 -2
  147. package/dist/{mine.wasm-6PIT3DK6.js.map → mine.wasm-QFAHIFPY.js.map} +1 -1
  148. package/dist/{package-ZKQFDWLE.js → package-IJFGMWEV.js} +4 -2
  149. package/dist/passphrase-IFTDS3CU.js +44 -0
  150. package/dist/{paths-POPTXJO6.js → paths-XCSAKISU.js} +10 -2
  151. package/dist/{pay-WHBERZ3W.js → pay-WCG3IH4R.js} +29 -29
  152. package/dist/{payments-KVICEKD2.js → payments-HFPPWHTV.js} +15 -14
  153. package/dist/{payments-KVICEKD2.js.map → payments-HFPPWHTV.js.map} +1 -1
  154. package/dist/plugin-registration-PZFI5GZW.js +68 -0
  155. package/dist/{redact-6W23GGJC.js → redact-D7ASVWKL.js} +2 -2
  156. package/dist/runtime-UZOKSUZX.js +1321 -0
  157. package/dist/runtime-UZOKSUZX.js.map +1 -0
  158. package/dist/runtime-fetch-ZSSSK72Y.js +23 -0
  159. package/dist/runtime-layout-WIDILZ6K.js +25 -0
  160. package/dist/{send-7G7Y7DLN.js → send-GCVEAQKL.js} +24 -22
  161. package/dist/{send-7G7Y7DLN.js.map → send-GCVEAQKL.js.map} +1 -1
  162. package/dist/{status-OF7RH5HM.js → status-HCVAOCN7.js} +55 -25
  163. package/dist/status-HCVAOCN7.js.map +1 -0
  164. package/dist/{status-line-XOUE6MPL.js → status-line-OPCXDHL2.js} +10 -9
  165. package/dist/{status-line-XOUE6MPL.js.map → status-line-OPCXDHL2.js.map} +1 -1
  166. package/dist/uninstall-BAWRBXXQ.js +481 -0
  167. package/dist/uninstall-BAWRBXXQ.js.map +1 -0
  168. package/dist/update-CACXLQLR.js +56 -0
  169. package/dist/update-CACXLQLR.js.map +1 -0
  170. package/dist/{usdc-OGOGEHV2.js → usdc-VG4CIOUK.js} +6 -8
  171. package/dist/usdc-VG4CIOUK.js.map +1 -0
  172. package/dist/{viemAdapter-By13KInL-S3DA7DFW.js → viemAdapter-By13KInL-DOFTEIJV.js} +3 -3
  173. package/dist/viemAdapter-By13KInL-DOFTEIJV.js.map +1 -0
  174. package/dist/wallet-QL4UUXEZ.js +55 -0
  175. package/dist/wallet-QL4UUXEZ.js.map +1 -0
  176. package/dist/wallet-kdf-worker.mjs +8 -8
  177. package/docs/agent-permissions.md +50 -28
  178. package/docs/safety-model.md +1 -1
  179. package/docs/troubleshooting.md +72 -1
  180. package/package.json +17 -4
  181. package/scripts/installers/install.ps1 +67 -0
  182. package/scripts/installers/install.sh +68 -0
  183. package/dist/_esm-C5CRWCYU.js +0 -3737
  184. package/dist/_esm-C5CRWCYU.js.map +0 -1
  185. package/dist/ccip-NLCSCHKI.js +0 -19
  186. package/dist/chunk-27EPWVOY.js.map +0 -1
  187. package/dist/chunk-2XLC3AEX.js.map +0 -1
  188. package/dist/chunk-4ZZO6ULA.js.map +0 -1
  189. package/dist/chunk-5C32RLTA.js.map +0 -1
  190. package/dist/chunk-5IEP5EGE.js +0 -5332
  191. package/dist/chunk-5IEP5EGE.js.map +0 -1
  192. package/dist/chunk-5MARFNSB.js.map +0 -1
  193. package/dist/chunk-77TCKDEC.js.map +0 -1
  194. package/dist/chunk-7EKYXMUO.js +0 -7536
  195. package/dist/chunk-7EKYXMUO.js.map +0 -1
  196. package/dist/chunk-7QKHZQKW.js.map +0 -1
  197. package/dist/chunk-AGZ7PJKY.js.map +0 -1
  198. package/dist/chunk-AKWGE6JQ.js.map +0 -1
  199. package/dist/chunk-BL3332HQ.js +0 -7611
  200. package/dist/chunk-BL3332HQ.js.map +0 -1
  201. package/dist/chunk-D65GNPS3.js.map +0 -1
  202. package/dist/chunk-EGELTSPU.js +0 -2865
  203. package/dist/chunk-EGELTSPU.js.map +0 -1
  204. package/dist/chunk-GA7JETVM.js +0 -150
  205. package/dist/chunk-GA7JETVM.js.map +0 -1
  206. package/dist/chunk-I3EQFHCD.js +0 -175
  207. package/dist/chunk-I3EQFHCD.js.map +0 -1
  208. package/dist/chunk-K3I7C2MO.js +0 -1185
  209. package/dist/chunk-K3I7C2MO.js.map +0 -1
  210. package/dist/chunk-K72RURN3.js.map +0 -1
  211. package/dist/chunk-KXVP2VKA.js.map +0 -1
  212. package/dist/chunk-LEFIX6RS.js.map +0 -1
  213. package/dist/chunk-MNXS2U45.js.map +0 -1
  214. package/dist/chunk-NEFNKLBE.js.map +0 -1
  215. package/dist/chunk-OHRR5OYM.js.map +0 -1
  216. package/dist/chunk-P4NH7OUK.js.map +0 -1
  217. package/dist/chunk-QSCPK4F5.js.map +0 -1
  218. package/dist/chunk-SJLTEINJ.js.map +0 -1
  219. package/dist/chunk-TTNESUPQ.js.map +0 -1
  220. package/dist/chunk-UKY4CHNC.js.map +0 -1
  221. package/dist/chunk-V6BSF6OC.js +0 -260
  222. package/dist/chunk-V6BSF6OC.js.map +0 -1
  223. package/dist/chunk-YVFXE7RR.js.map +0 -1
  224. package/dist/codex-install-UUZ6QMBQ.js +0 -221
  225. package/dist/codex-install-UUZ6QMBQ.js.map +0 -1
  226. package/dist/doctor-KBR34Q4B.js +0 -601
  227. package/dist/doctor-KBR34Q4B.js.map +0 -1
  228. package/dist/hook-command-4TYCHHRL.js +0 -39
  229. package/dist/hosts-FWZOV26H.js.map +0 -1
  230. package/dist/install-XWGE4Q7L.js +0 -77
  231. package/dist/install-wallet-XQ6XFZV4.js +0 -117
  232. package/dist/install-wallet-XQ6XFZV4.js.map +0 -1
  233. package/dist/mcp-3LIJSSJB.js.map +0 -1
  234. package/dist/plugin-registration-5TIA564H.js +0 -54
  235. package/dist/status-OF7RH5HM.js.map +0 -1
  236. package/dist/uninstall-JXUAFNDB.js +0 -158
  237. package/dist/uninstall-JXUAFNDB.js.map +0 -1
  238. package/dist/update-ZKUERSO2.js +0 -44
  239. package/dist/wallet-2HA6W4R4.js +0 -43
  240. /package/dist/{_esm-MEXZI5DL.js.map → _esm-BIN7VY2L.js.map} +0 -0
  241. /package/dist/{alive-J64H46HI.js.map → alive-GSOWKUOY.js.map} +0 -0
  242. /package/dist/{ccip-7RMRLAGV.js.map → auto-update-Y24UL56V.js.map} +0 -0
  243. /package/dist/{ccip-NLCSCHKI.js.map → ccip-DHDFKTQV.js.map} +0 -0
  244. /package/dist/{chunk-UQUOVWBG.js.map → chunk-4K7TQHNP.js.map} +0 -0
  245. /package/dist/{chunk-KXQ4UIP7.js.map → chunk-4USCZ2NI.js.map} +0 -0
  246. /package/dist/{chunk-YFPY4ONH.js.map → chunk-AGMVASXZ.js.map} +0 -0
  247. /package/dist/{chunk-5K5W4S66.js.map → chunk-GTTUCOPD.js.map} +0 -0
  248. /package/dist/{chunk-ORWL5BSN.js.map → chunk-HGZEPQUT.js.map} +0 -0
  249. /package/dist/{chunk-7Q5FDF65.js.map → chunk-IE7P2BZE.js.map} +0 -0
  250. /package/dist/{chunk-WK7F3B2E.js.map → chunk-SO3XRZPX.js.map} +0 -0
  251. /package/dist/{chunk-B7HUUJOK.js.map → chunk-TKPF35W6.js.map} +0 -0
  252. /package/dist/{chunk-7ZRL2LBQ.js.map → chunk-V2LQLN5H.js.map} +0 -0
  253. /package/dist/{chunk-FW75G2W4.js.map → chunk-ZURZHELF.js.map} +0 -0
  254. /package/dist/{codex-event-PPNVRRDH.js.map → codex-event-ZO2GEFE6.js.map} +0 -0
  255. /package/dist/{codex-host-2RJOJW2B.js.map → codex-host-KECJVTA2.js.map} +0 -0
  256. /package/dist/{config-ZD4OB2DO.js.map → config-HY2E4GGW.js.map} +0 -0
  257. /package/dist/{env-proxy-XL4P73MZ.js.map → env-proxy-R6ZMLQTT.js.map} +0 -0
  258. /package/dist/{ethersCompat-Df4a6QIZ-THAVUGIJ.js.map → ethersCompat-Df4a6QIZ-X6YZWAML.js.map} +0 -0
  259. /package/dist/{hook-command-4TYCHHRL.js.map → hook-command-2UBCSZG6.js.map} +0 -0
  260. /package/dist/{install-XWGE4Q7L.js.map → hosts-DVQJ32QC.js.map} +0 -0
  261. /package/dist/{install-identity-K7EJIQFP.js.map → install-ILUX5C4A.js.map} +0 -0
  262. /package/dist/{package-ZKQFDWLE.js.map → install-identity-TZKGY6LQ.js.map} +0 -0
  263. /package/dist/{paths-POPTXJO6.js.map → package-IJFGMWEV.js.map} +0 -0
  264. /package/dist/{pay-WHBERZ3W.js.map → passphrase-IFTDS3CU.js.map} +0 -0
  265. /package/dist/{plugin-registration-5TIA564H.js.map → paths-XCSAKISU.js.map} +0 -0
  266. /package/dist/{redact-6W23GGJC.js.map → pay-WCG3IH4R.js.map} +0 -0
  267. /package/dist/{update-ZKUERSO2.js.map → plugin-registration-PZFI5GZW.js.map} +0 -0
  268. /package/dist/{usdc-OGOGEHV2.js.map → redact-D7ASVWKL.js.map} +0 -0
  269. /package/dist/{viemAdapter-By13KInL-S3DA7DFW.js.map → runtime-fetch-ZSSSK72Y.js.map} +0 -0
  270. /package/dist/{wallet-2HA6W4R4.js.map → runtime-layout-WIDILZ6K.js.map} +0 -0
@@ -4,26 +4,26 @@ import {
4
4
  } from "./chunk-JKKAIPTU.js";
5
5
  import {
6
6
  releaseUnchargedExposure
7
- } from "./chunk-7ZRL2LBQ.js";
7
+ } from "./chunk-V2LQLN5H.js";
8
8
  import {
9
9
  withFileLock
10
10
  } from "./chunk-MEFB5KHA.js";
11
11
  import {
12
12
  mask
13
- } from "./chunk-7QKHZQKW.js";
13
+ } from "./chunk-IADZOXKN.js";
14
14
  import {
15
15
  hasCode
16
16
  } from "./chunk-2I4QTOLB.js";
17
17
  import {
18
18
  USDC_ADDRESS
19
- } from "./chunk-27EPWVOY.js";
19
+ } from "./chunk-WXA2BWTE.js";
20
20
  import {
21
21
  writeFileAtomic
22
22
  } from "./chunk-7WEQQJLG.js";
23
23
  import {
24
24
  downloadsDir,
25
25
  paidLedgerPath
26
- } from "./chunk-SJLTEINJ.js";
26
+ } from "./chunk-OJNTCYQQ.js";
27
27
 
28
28
  // src/router/paid.ts
29
29
  import { randomBytes } from "node:crypto";
@@ -403,4 +403,4 @@ export {
403
403
  writeAll,
404
404
  createUniqueFile
405
405
  };
406
- //# sourceMappingURL=chunk-FW75G2W4.js.map
406
+ //# sourceMappingURL=chunk-ZURZHELF.js.map
@@ -2,40 +2,42 @@ import { createRequire as __tenjinCreateRequire } from 'node:module'; const requ
2
2
  import {
3
3
  maybeUpdate,
4
4
  readUpdateSignal
5
- } from "./chunk-KXVP2VKA.js";
5
+ } from "./chunk-U3IKUGRP.js";
6
6
  import {
7
7
  PERMISSIONS_DOC_URL
8
- } from "./chunk-A36LQPHV.js";
9
- import {
10
- HARNESSES
11
- } from "./chunk-WJXLQXJY.js";
8
+ } from "./chunk-4LMUQMBH.js";
12
9
  import {
13
10
  defaultIo,
14
11
  emitFailure,
15
12
  emitSuccess
16
- } from "./chunk-K72RURN3.js";
13
+ } from "./chunk-FVIGCDSV.js";
14
+ import {
15
+ HARNESSES
16
+ } from "./chunk-MPZUYCAP.js";
17
17
  import {
18
18
  noteBaseUrlFlag
19
- } from "./chunk-UQUOVWBG.js";
20
- import "./chunk-AGZ7PJKY.js";
21
- import "./chunk-2I4QTOLB.js";
22
- import "./chunk-7WU4OPLP.js";
19
+ } from "./chunk-4K7TQHNP.js";
20
+ import "./chunk-36RVGZNY.js";
21
+ import {
22
+ package_default
23
+ } from "./chunk-RVPYTUP4.js";
24
+ import "./chunk-KM7RY2ZS.js";
23
25
  import "./chunk-Y527D4TV.js";
26
+ import "./chunk-2I4QTOLB.js";
27
+ import "./chunk-2M2VPI2E.js";
28
+ import "./chunk-WXA2BWTE.js";
29
+ import "./chunk-XQJXNMSB.js";
24
30
  import {
25
31
  external_exports
26
- } from "./chunk-YVFXE7RR.js";
27
- import "./chunk-XQJXNMSB.js";
32
+ } from "./chunk-SNNSAGMT.js";
33
+ import "./chunk-7WEQQJLG.js";
28
34
  import {
29
35
  CliError
30
36
  } from "./chunk-3UCIG4TG.js";
31
- import "./chunk-27EPWVOY.js";
32
- import "./chunk-7WEQQJLG.js";
37
+ import "./chunk-EDJWHDDL.js";
33
38
  import {
34
39
  dataDir
35
- } from "./chunk-SJLTEINJ.js";
36
- import {
37
- package_default
38
- } from "./chunk-5C32RLTA.js";
40
+ } from "./chunk-OJNTCYQQ.js";
39
41
  import {
40
42
  __commonJS,
41
43
  __require,
@@ -3492,10 +3494,16 @@ var {
3492
3494
  Help
3493
3495
  } = import_index.default;
3494
3496
 
3497
+ // src/cli/core.ts
3498
+ import { homedir } from "node:os";
3499
+
3495
3500
  // src/cli/registration.ts
3496
3501
  var SETUP = "Setup:";
3497
3502
  var WALLET = "Wallet:";
3498
3503
  var INTEGRATION = "Integration:";
3504
+ function collect(value, previous) {
3505
+ return [...previous ?? [], value];
3506
+ }
3499
3507
 
3500
3508
  // src/cli/core.ts
3501
3509
  function registerCore(reg) {
@@ -3525,7 +3533,7 @@ Learn more:
3525
3533
  if (harness === "codex" && o.refresh === true) {
3526
3534
  throw new CliError("USAGE", "The Codex plugin has no refresh; omit --refresh.");
3527
3535
  }
3528
- const { installHosts, otherHostNote, recordInstalledHost, runEach, withNote } = await import("./hosts-FWZOV26H.js");
3536
+ const { installHosts, otherHostNote, recordInstalledHost, runEach, withNote } = await import("./hosts-DVQJ32QC.js");
3529
3537
  const hostArgs = {
3530
3538
  ...harness !== void 0 ? { harness } : {},
3531
3539
  ...o.project === true ? { project: true } : {},
@@ -3534,8 +3542,9 @@ Learn more:
3534
3542
  };
3535
3543
  const hosts = await installHosts(hostArgs, ctx);
3536
3544
  const note = otherHostNote(hostArgs).catch(() => void 0);
3537
- const out = await runEach(hosts, async (host) => {
3538
- const one = host === "codex" ? await (await import("./codex-install-UUZ6QMBQ.js")).runCodexInstall(codexArgs(o), ctx) : await (await import("./install-XWGE4Q7L.js")).runRouterInstall(
3545
+ const runtime = (await import("./install-ILUX5C4A.js")).runtimeOncePerRun();
3546
+ const installAll = () => runEach(hosts, async (host) => {
3547
+ const one = host === "codex" ? await (await import("./codex-install-HQZDGFXW.js")).runCodexInstall(codexArgs(o), ctx, { runtime }) : await (await import("./install-ILUX5C4A.js")).runRouterInstall(
3539
3548
  {
3540
3549
  ...o.project === true ? { project: true } : {},
3541
3550
  ...o.refresh === true ? { refresh: true } : {},
@@ -3544,38 +3553,65 @@ Learn more:
3544
3553
  ...typeof o.maxAutoSpend === "string" ? { maxAutoSpend: o.maxAutoSpend } : {},
3545
3554
  ...typeof o.sessionBudget === "string" ? { sessionBudget: o.sessionBudget } : {}
3546
3555
  },
3547
- ctx
3556
+ ctx,
3557
+ { runtime }
3548
3558
  );
3549
3559
  if (o.refresh !== true) await recordInstalledHost(ctx.dataDir, host);
3550
3560
  return one;
3551
3561
  });
3552
- return withNote(out, await note);
3562
+ if (o.refresh !== true || harness !== void 0) {
3563
+ return withNote(await installAll(), await note);
3564
+ }
3565
+ const { alongsideCodexRefresh, refreshCodexPlugin } = await import("./codex-install-HQZDGFXW.js");
3566
+ return alongsideCodexRefresh(installAll, () => refreshCodexPlugin(ctx));
3553
3567
  });
3554
3568
  });
3555
3569
  leaf2(SETUP, "uninstall", "remove what install wrote; the wallet is kept").description(
3556
- "Remove the Tenjin plugin from each agent `tenjin install` set up, and any settings-based install an earlier release wrote. For Codex it removes the plugin and its marketplace. Your wallet, spend ledger and config are kept."
3557
- ).addOption(hostOverride()).option("--project", "remove the project-only install").action(async function() {
3570
+ "Remove Tenjin's install for where you are: the project install of the folder you are in (from any subfolder), or else your user install. The tenjin marketplace, Tenjin's runtime and its launcher go once no install is left anywhere. Either all of it goes or nothing does, and it says what it keeps: your wallet, spend ledger and config. Run it before `npm uninstall -g tenjin-cli`."
3571
+ ).addOption(hostOverride()).option(
3572
+ "--project [path]",
3573
+ "remove that project's install (this folder's when no path is given), from any folder"
3574
+ ).option("--all", "remove every Tenjin install: your user install and each project's").action(async function() {
3558
3575
  await runCommand("uninstall", this, async (ctx) => {
3559
3576
  const o = this.opts();
3560
3577
  const harness = o.harness;
3561
- const { recordedHosts, uninstallEach } = await import("./hosts-FWZOV26H.js");
3578
+ const project = o.project;
3579
+ if (o.all === true && project !== void 0) {
3580
+ throw new CliError("USAGE", "Pass --all or --project, not both.");
3581
+ }
3582
+ if (harness === "codex" && project !== void 0) {
3583
+ throw new CliError("USAGE", "Codex has no project install; omit --project.");
3584
+ }
3585
+ const [{ recordedHosts, uninstallEach }, uninstall] = await Promise.all([
3586
+ import("./hosts-DVQJ32QC.js"),
3587
+ import("./uninstall-BAWRBXXQ.js")
3588
+ ]);
3589
+ const target = harness === "codex" ? { kind: o.all === true ? "all" : "user" } : await uninstall.resolveUninstallTarget(
3590
+ {
3591
+ ...o.all === true ? { all: true } : {},
3592
+ ...project !== void 0 ? { project } : {}
3593
+ },
3594
+ ctx
3595
+ );
3562
3596
  const hosts = await recordedHosts(
3563
- { ...harness !== void 0 ? { harness } : {}, project: o.project === true },
3597
+ { ...harness !== void 0 ? { harness } : {}, project: target.kind === "project" },
3564
3598
  ctx.dataDir
3565
3599
  );
3566
3600
  return uninstallEach(
3567
3601
  hosts,
3568
3602
  ctx.dataDir,
3569
- o.project === true,
3570
- async (host) => host === "codex" ? (await import("./codex-install-UUZ6QMBQ.js")).runCodexUninstall(codexArgs(o), ctx) : (await import("./uninstall-JXUAFNDB.js")).runRouterUninstall(
3571
- { ...o.project === true ? { project: true } : {} },
3572
- ctx
3573
- )
3603
+ target,
3604
+ async (host) => host === "codex" ? (await import("./codex-install-HQZDGFXW.js")).runCodexUninstall(codexArgs(o), ctx) : uninstall.runRouterUninstall({ target }, ctx),
3605
+ {
3606
+ remove: () => uninstall.removeRuntimeAndLaunchers(ctx.dataDir, homedir()),
3607
+ claudeLeft: () => uninstall.claudeInstallsLeft(ctx),
3608
+ keptFor: (users) => uninstall.runtimeKeptFor(ctx.dataDir, homedir(), users)
3609
+ }
3574
3610
  );
3575
3611
  });
3576
3612
  });
3577
3613
  leaf2(SETUP, "doctor", "check this machine can run a lookup").description(
3578
- "Check everything a lookup needs, for each agent `tenjin install` set up. For Claude Code: the Node floor, Claude Code's version, the Tenjin plugin and its router server, any settings install an earlier release left, the spend limits, the wallet, and the router endpoint answering its 402. For Codex: Codex's hook list for the plugin and its hook trust. It prints one line per check with a fix for each failure, writes nothing, and exits nonzero if a required one fails."
3614
+ "Check everything a lookup needs, for each agent `tenjin install` set up. For Claude Code: the Node floor, Claude Code's version, the Tenjin plugin, the runtime and launcher Claude Code starts, its router server, any settings install an earlier release left, the spend limits, whether the wallet can sign without a prompt, as the router Claude Code is running sees it when one is live, and the router endpoint answering its 402. For Codex: Codex's hook list for the plugin and its hook trust. It prints one line per check with a fix for each failure, writes nothing, and exits nonzero if a required one fails; a check it cannot answer is a warning, never ok."
3579
3615
  ).addOption(hostOverride()).option("--project", "check the project-only install, as --project registered it").addHelpText(
3580
3616
  "after",
3581
3617
  `
@@ -3588,14 +3624,14 @@ Examples:
3588
3624
  await runCommand("doctor", this, async (ctx) => {
3589
3625
  const o = this.opts();
3590
3626
  const harness = o.harness;
3591
- const { checkEach, recordedHosts } = await import("./hosts-FWZOV26H.js");
3627
+ const { checkEach, recordedHosts } = await import("./hosts-DVQJ32QC.js");
3592
3628
  const hosts = await recordedHosts(
3593
3629
  { ...harness !== void 0 ? { harness } : {}, project: o.project === true },
3594
3630
  ctx.dataDir
3595
3631
  );
3596
3632
  return checkEach(
3597
3633
  hosts,
3598
- async (host) => host === "codex" ? (await import("./codex-install-UUZ6QMBQ.js")).runCodexDoctor(codexArgs(o), ctx) : (await import("./doctor-KBR34Q4B.js")).runRouterDoctor(
3634
+ async (host) => host === "codex" ? (await import("./codex-install-HQZDGFXW.js")).runCodexDoctor(codexArgs(o), ctx) : (await import("./doctor-I6XQEKWD.js")).runRouterDoctor(
3599
3635
  ctx,
3600
3636
  o.project === true ? { project: true } : {}
3601
3637
  )
@@ -3603,15 +3639,18 @@ Examples:
3603
3639
  });
3604
3640
  });
3605
3641
  leaf2(SETUP, "update", "update tenjin-cli to the newest published version").description(
3606
- "Update tenjin-cli to the newest version npm publishes on the latest tag. It then runs `install --refresh` on the new binary, so the Claude Code plugin is registered at the build that just landed."
3607
- ).option("--check", "report whether a newer version exists without installing it").action(async function() {
3642
+ "Update Tenjin to the newest version on npm's latest tag, without npm: it downloads the release, checks it, and switches only once it runs; the previous version stays as the fallback."
3643
+ ).option("--check", "report whether a newer version exists without installing it").addOption(new Option("--background").hideHelp()).action(async function() {
3608
3644
  await runCommand("update", this, async (ctx) => {
3609
- const { runUpdate } = await import("./update-ZKUERSO2.js");
3610
- return runUpdate({ check: this.opts().check === true }, ctx);
3645
+ const { runUpdate } = await import("./update-CACXLQLR.js");
3646
+ return runUpdate(
3647
+ { check: this.opts().check === true, background: this.opts().background === true },
3648
+ ctx
3649
+ );
3611
3650
  });
3612
3651
  });
3613
3652
  const config = leaf2(SETUP, "config", "read and set config values").description(
3614
- "Print every effective config value, or read and write one. Values are stored in config.json under your Tenjin data dir (~/.tenjin by default)."
3653
+ "Print every effective config value, or read and write one. Values are stored in config.json under your Tenjin data dir (~/.tenjin by default). maxAutoSpend caps automatic router spending per call; sessionBudget caps it within a 24-hour budget window, across agent sessions. An unset sendMaxAmount blocks tenjin wallet send until you set a cap; only an explicit none allows uncapped sends."
3615
3654
  );
3616
3655
  config.addHelpText(
3617
3656
  "after",
@@ -3625,7 +3664,7 @@ Examples:
3625
3664
  );
3626
3665
  config.action(async function() {
3627
3666
  await runCommand("config", this, async (ctx) => {
3628
- const { runConfigList } = await import("./config-ZD4OB2DO.js");
3667
+ const { runConfigList } = await import("./config-HY2E4GGW.js");
3629
3668
  return runConfigList(ctx);
3630
3669
  });
3631
3670
  });
@@ -3633,7 +3672,7 @@ Examples:
3633
3672
  "Print one effective config value by key. The effective value is what the command would use, defaults and environment overrides included."
3634
3673
  ).action(async function(key) {
3635
3674
  await runCommand("config.get", this, async (ctx) => {
3636
- const { runConfigGet } = await import("./config-ZD4OB2DO.js");
3675
+ const { runConfigGet } = await import("./config-HY2E4GGW.js");
3637
3676
  return runConfigGet({ key }, ctx);
3638
3677
  });
3639
3678
  });
@@ -3645,7 +3684,7 @@ Examples:
3645
3684
  ).option("--local", "with --project, write .tenjin/config.local.json instead, which is yours").action(async function(key, value) {
3646
3685
  const o = this.opts();
3647
3686
  await runCommand("config.set", this, async (ctx) => {
3648
- const { runConfigSet } = await import("./config-ZD4OB2DO.js");
3687
+ const { runConfigSet } = await import("./config-HY2E4GGW.js");
3649
3688
  return runConfigSet(
3650
3689
  { key, value, project: o.project === true, local: o.local === true },
3651
3690
  ctx
@@ -3655,7 +3694,7 @@ Examples:
3655
3694
  const wallet = leaf2(
3656
3695
  WALLET,
3657
3696
  "wallet",
3658
- "create, show, fund and send from the local wallet"
3697
+ "create, show, fund, repair and send from the local wallet"
3659
3698
  ).description(
3660
3699
  "Manage the local x402 payment wallet used for paid reads and publishing. The private key is generated on this machine, stored encrypted, and never printed."
3661
3700
  );
@@ -3664,11 +3703,29 @@ Examples:
3664
3703
  ).option(
3665
3704
  "--replace",
3666
3705
  "archive the existing wallet beside the new one, passphrase preserved, then create a new active wallet"
3706
+ ).option(
3707
+ "--insecure-storage",
3708
+ "save the passphrase to a file only you can read, even where an OS keychain exists"
3667
3709
  ).action(async function() {
3668
3710
  await runCommand("wallet.create", this, async (ctx) => {
3669
3711
  const o = this.opts();
3670
- const { runWalletCreate } = await import("./wallet-2HA6W4R4.js");
3671
- return runWalletCreate(ctx, o.replace === true ? { replace: true } : {});
3712
+ const { runWalletCreate } = await import("./wallet-QL4UUXEZ.js");
3713
+ return runWalletCreate(ctx, {
3714
+ ...o.replace === true ? { replace: true } : {},
3715
+ ...o.insecureStorage === true ? { insecureStorage: true } : {}
3716
+ });
3717
+ });
3718
+ });
3719
+ addGlobalFlags2(wallet.command("repair")).summary("save the wallet passphrase so Claude Code can unlock it").description(
3720
+ "For a wallet Claude Code cannot unlock. Asks for the passphrase at the terminal (or uses TENJIN_WALLET_PASSPHRASE when that opens the wallet), checks it opens this wallet (the address does not change), saves it in the OS keychain, or in a file only you can read where there is none, and names a TENJIN_WALLET_PASSPHRASE in this shell that conflicts with it. Start a new Claude Code session afterwards: it confirms the unlock."
3721
+ ).option(
3722
+ "--insecure-storage",
3723
+ "save the passphrase to a file only you can read, even where an OS keychain exists"
3724
+ ).action(async function() {
3725
+ await runCommand("wallet.repair", this, async (ctx) => {
3726
+ const o = this.opts();
3727
+ const { runWalletRepair } = await import("./wallet-QL4UUXEZ.js");
3728
+ return runWalletRepair(ctx, o.insecureStorage === true ? { insecureStorage: true } : {});
3672
3729
  });
3673
3730
  });
3674
3731
  addGlobalFlags2(wallet.command("show")).alias("address").summary("show the wallet address and key source").description(
@@ -3676,7 +3733,7 @@ Examples:
3676
3733
  ).option("--no-qr", "print the address without the QR code").action(async function() {
3677
3734
  await runCommand("wallet.show", this, async (ctx) => {
3678
3735
  const o = this.opts();
3679
- const { runWalletShow } = await import("./wallet-2HA6W4R4.js");
3736
+ const { runWalletShow } = await import("./wallet-QL4UUXEZ.js");
3680
3737
  return runWalletShow(ctx, o.qr === false ? { qr: false } : {});
3681
3738
  });
3682
3739
  });
@@ -3684,7 +3741,7 @@ Examples:
3684
3741
  "Read the wallet USDC balance on Base. It is a chain read: no key is unlocked and nothing is spent."
3685
3742
  ).action(async function() {
3686
3743
  await runCommand("wallet.balance", this, async (ctx) => {
3687
- const { runWalletBalance } = await import("./wallet-2HA6W4R4.js");
3744
+ const { runWalletBalance } = await import("./wallet-QL4UUXEZ.js");
3688
3745
  return runWalletBalance(ctx);
3689
3746
  });
3690
3747
  });
@@ -3696,7 +3753,7 @@ Examples:
3696
3753
  ).action(async function(amountUsd) {
3697
3754
  await runCommand("wallet.fund", this, async (ctx) => {
3698
3755
  const o = this.opts();
3699
- const { runFund } = await import("./fund-5ITKQGYF.js");
3756
+ const { runFund } = await import("./fund-2QRO7OJL.js");
3700
3757
  return runFund(ctx, {
3701
3758
  ...amountUsd !== void 0 ? { amountUsd } : {},
3702
3759
  ...o.open === false ? { open: false } : {},
@@ -3716,36 +3773,53 @@ Examples:
3716
3773
  ).action(async function(amount, token, to) {
3717
3774
  await runCommand("wallet.send", this, async (ctx) => {
3718
3775
  const o = this.opts();
3719
- const { runSend } = await import("./send-7G7Y7DLN.js");
3776
+ const { runSend } = await import("./send-GCVEAQKL.js");
3720
3777
  return runSend({ amount, token, to, ...o.yes === true ? { yes: true } : {} }, ctx);
3721
3778
  });
3722
3779
  });
3723
3780
  leaf2(WALLET, "pay <url>", "pay an x402 endpoint with explicit user consent").description(
3724
3781
  "Pay an x402 endpoint (exact scheme, USDC on Base) with explicit user consent. Manual pay ignores automatic router limits and always confirms; --yes records prior consent for this quote. Never use it as an autonomous workaround for router refusal. Unlisted endpoints need no warning flag. Registry lookup failures or listed-term mismatches require --ignore-warnings separately. Every paid call pays; entitled delivery remains free."
3725
- ).option("-X, --method <method>", "GET (default) or POST (implied by --data)").option("-d, --data <json>", "JSON request body (sent as application/json)").option("--max-price <usd>", "hard price cap in decimal USD (never bypassed by --yes)").option("--yes", "bypass the interactive confirm only (not the price cap)").option(
3782
+ ).option(
3783
+ "-X, --method <method>",
3784
+ "GET (default), POST (implied by a body), PUT, PATCH or DELETE"
3785
+ ).option("-d, --data <json>", "JSON request body (sent as application/json)").option("--data-raw <text>", "request body sent byte for byte; needs -H 'Content-Type: <type>'").option("--max-price <usd>", "hard price cap in decimal USD (never bypassed by --yes)").option("--yes", "bypass the interactive confirm only (not the price cap)").option(
3726
3786
  "--ignore-warnings",
3727
3787
  "acknowledge direct-payment registry warnings only; all payment checks still apply"
3728
- ).option("--print-body", "print the full body instead of the capped preview").addHelpText(
3788
+ ).option("--print-body", "print the full body instead of the capped preview").option(
3789
+ "--quote",
3790
+ "probe only: report the 402 terms and the advertised request shape; opens no wallet, signs nothing"
3791
+ ).option(
3792
+ "-H, --header <line>",
3793
+ "a request header the endpoint asks for, as 'Name: value' (repeatable); payment, sign-in and bypass headers are refused",
3794
+ collect
3795
+ ).addHelpText(
3729
3796
  "after",
3730
3797
  `
3731
3798
  Examples:
3732
3799
  $ tenjin pay https://api.example.com/quote --max-price 0.05
3733
3800
  $ tenjin pay https://api.example.com/quote --json --max-price 0.05 --ignore-warnings --yes
3734
3801
  $ tenjin pay https://api.example.com/quote -d '{"symbol":"ETH"}' --yes
3802
+ $ tenjin pay https://api.example.com/search -d '{"q":"x"}' --quote
3803
+ $ tenjin pay https://api.example.com/search -d '{"q":"x"}' -H 'X-Api-Beta: 2026-08-28' --yes
3804
+ $ tenjin pay https://api.example.com/items/7 -X PATCH -d '{"name":"y"}' --max-price 0.05 --yes
3805
+ $ tenjin pay https://api.example.com/form --data-raw 'a=1' -H 'Content-Type: application/x-www-form-urlencoded' --quote
3735
3806
  `
3736
3807
  ).action(async function(url) {
3737
3808
  await runCommand("pay", this, async (ctx) => {
3738
3809
  const o = this.opts();
3739
- const { runPay } = await import("./pay-WHBERZ3W.js");
3810
+ const { runPay } = await import("./pay-WCG3IH4R.js");
3740
3811
  return runPay(
3741
3812
  {
3742
3813
  url,
3743
3814
  ...typeof o.method === "string" ? { method: o.method } : {},
3744
3815
  ...typeof o.data === "string" ? { data: o.data } : {},
3816
+ ...typeof o.dataRaw === "string" ? { dataRaw: o.dataRaw } : {},
3745
3817
  ...typeof o.maxPrice === "string" ? { maxPrice: o.maxPrice } : {},
3746
3818
  ...o.yes === true ? { yes: true } : {},
3747
3819
  ...o.printBody === true ? { printBody: true } : {},
3748
- ...o.ignoreWarnings === true ? { ignoreWarnings: true } : {}
3820
+ ...o.ignoreWarnings === true ? { ignoreWarnings: true } : {},
3821
+ ...o.quote === true ? { quote: true } : {},
3822
+ ...Array.isArray(o.header) && o.header.length > 0 ? { header: o.header } : {}
3749
3823
  },
3750
3824
  ctx
3751
3825
  );
@@ -3779,8 +3853,8 @@ function registerRouter(reg) {
3779
3853
  addGlobalFlags2(hook.command("alive")).summary("SessionStart: mark this session and machine as ones the plugin serves").action(async function() {
3780
3854
  const ctx = buildContext2(this);
3781
3855
  const [{ aliveMain }, { default: pkg }] = await Promise.all([
3782
- import("./alive-J64H46HI.js"),
3783
- import("./package-ZKQFDWLE.js")
3856
+ import("./alive-GSOWKUOY.js"),
3857
+ import("./package-IJFGMWEV.js")
3784
3858
  ]);
3785
3859
  await aliveMain({ dataDir: ctx.dataDir, version: pkg.version });
3786
3860
  });
@@ -3797,7 +3871,7 @@ function registerRouter(reg) {
3797
3871
  ]) {
3798
3872
  addGlobalFlags2(hook.command(name)).addOption(harnessOption()).summary(summary).action(async function() {
3799
3873
  const ctx = buildContext2(this);
3800
- const { runHookCommand } = await import("./hook-command-4TYCHHRL.js");
3874
+ const { runHookCommand } = await import("./hook-command-2UBCSZG6.js");
3801
3875
  await runHookCommand(name, io, {
3802
3876
  dataDir: ctx.dataDir,
3803
3877
  harness: this.opts().harness,
@@ -3811,25 +3885,32 @@ function registerRouter(reg) {
3811
3885
  "Run the local stdio MCP server that carries the `request` tool: one free routing decision per lookup, then the provider call, built here from the offer's spec and your assistant's input where it has one, under your local spend policy. It speaks on stdin and stdout and runs until the client disconnects, so it prints no envelope of its own."
3812
3886
  ).action(async function() {
3813
3887
  const ctx = buildContext2(this);
3814
- const { runRouterMcpServer } = await import("./mcp-3LIJSSJB.js");
3888
+ const harness = this.opts().harness;
3889
+ if (harness === "codex") {
3890
+ (await import("./auto-update-Y24UL56V.js")).maybeAutoUpdate({
3891
+ dataDir: ctx.dataDir,
3892
+ env: process.env
3893
+ });
3894
+ }
3895
+ const { runRouterMcpServer } = await import("./mcp-LE4DUS22.js");
3815
3896
  await runRouterMcpServer({
3816
3897
  dataDir: ctx.dataDir,
3817
3898
  flags: ctx.flags,
3818
- harness: this.opts().harness
3899
+ harness
3819
3900
  });
3820
3901
  });
3821
3902
  leaf2(INTEGRATION, "status-line", "the live footer, for Claude Code's status line").description(
3822
3903
  "Print one line naming what this session is looking up right now: the provider actually being called, its bounded parameters, and what it cost. It reads Claude Code's status event on stdin for the session identity, reads that session's own progress records, writes nothing, and prints `x402 \xB7 ready` when this session has no activity. Opt-in: set it as your Claude Code status line command yourself."
3823
3904
  ).action(async function() {
3824
3905
  const ctx = buildContext2(this);
3825
- const { runStatusLine } = await import("./status-line-XOUE6MPL.js");
3906
+ const { runStatusLine } = await import("./status-line-OPCXDHL2.js");
3826
3907
  await runStatusLine(io, { dataDir: ctx.dataDir });
3827
3908
  });
3828
3909
  leaf2(SETUP, "status", "what this machine has spent, and what is still open").description(
3829
3910
  "Report the rolling 24h spend window from spend.json: what has settled, what is reserved by a request still in flight, and the per-call and per-day caps in force."
3830
3911
  ).action(async function() {
3831
3912
  await runCommand("status", this, async (ctx) => {
3832
- const { runRouterStatus } = await import("./status-OF7RH5HM.js");
3913
+ const { runRouterStatus } = await import("./status-HCVAOCN7.js");
3833
3914
  return runRouterStatus(ctx);
3834
3915
  });
3835
3916
  });
@@ -3838,7 +3919,7 @@ function registerRouter(reg) {
3838
3919
  );
3839
3920
  payments.action(async function() {
3840
3921
  await runCommand("payments", this, async (ctx) => {
3841
- const { runPaymentsList } = await import("./payments-KVICEKD2.js");
3922
+ const { runPaymentsList } = await import("./payments-HFPPWHTV.js");
3842
3923
  return runPaymentsList(ctx);
3843
3924
  });
3844
3925
  });
@@ -3846,7 +3927,7 @@ function registerRouter(reg) {
3846
3927
  "For each paid lookup whose seller never confirmed settlement and whose authorization has expired, ask USDC on Base (through the configured rpcUrl) whether it was used: used means it was charged, unused means it never can be. Nothing is signed or sent but that one read."
3847
3928
  ).action(async function() {
3848
3929
  await runCommand("payments.reconcile", this, async (ctx) => {
3849
- const { runPaymentsReconcile } = await import("./payments-KVICEKD2.js");
3930
+ const { runPaymentsReconcile } = await import("./payments-HFPPWHTV.js");
3850
3931
  return runPaymentsReconcile(ctx);
3851
3932
  });
3852
3933
  });
@@ -3996,4 +4077,4 @@ export {
3996
4077
  buildProgram,
3997
4078
  main
3998
4079
  };
3999
- //# sourceMappingURL=cli-D5OE3URZ.js.map
4080
+ //# sourceMappingURL=cli-E36SPKBW.js.map