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
@@ -47,7 +47,7 @@ Every router packet is masked before it leaves the machine: provider token shape
47
47
 
48
48
  ## Permission boundaries
49
49
 
50
- The recommended free harness permissions are documented in [agent-permissions.md](./agent-permissions.md). They are intentionally narrow and do not include `pay`, `wallet send`, `wallet create`, `config set`, `install`, or `mcp`.
50
+ The recommended free harness permissions are documented in [agent-permissions.md](./agent-permissions.md). They are intentionally narrow and do not include `pay`, `wallet send`, `wallet create`, `wallet repair`, `config set`, `install`, or `mcp`.
51
51
 
52
52
  Codex's default `workspace-write` sandbox also needs network access for paid x402 calls:
53
53
 
@@ -1,5 +1,76 @@
1
1
  # Troubleshooting
2
2
 
3
+ ## Tenjin cannot unlock the wallet
4
+
5
+ Claude Code's message line, the session's first message or `tenjin doctor` says Tenjin cannot use its wallet, and names one of these reasons. Until it is fixed, Tenjin does not route lookups and paid lookups do not run; your assistant's own tools keep working.
6
+
7
+ - **`no saved wallet passphrase can be reached`.** The passphrase was never saved where Claude Code can read it, or the file Tenjin saved it in is gone. Before 0.1.0-alpha.31, a passphrase given in `TENJIN_WALLET_PASSPHRASE` when the wallet was created was never saved, and one typed at the create prompt was not saved either (create prompted only when no keychain answered). Run `tenjin wallet repair` (below).
8
+ - **`the saved wallet passphrase does not open the wallet`.** The keychain or the passphrase file holds a passphrase, but not this wallet's. Run `tenjin wallet repair` (below).
9
+ - **`TENJIN_WALLET_PASSPHRASE is set but does not open the wallet`.** The variable in the environment Claude Code starts from is wrong, and no saved passphrase opens the wallet either, so removing the variable alone does not unlock it. Run `tenjin wallet repair` (below) first, then remove the variable (below).
10
+ - **`the keychain holding the wallet passphrase is locked or did not answer`.** The passphrase is saved, but the keychain did not hand it over. Unlock your keychain (or log in to the desktop session) and retry. Nothing needs repairing, and Tenjin never switches to another passphrase on its own.
11
+
12
+ ### Run `tenjin wallet repair`
13
+
14
+ Run it yourself, in a terminal: it asks for the passphrase (or uses `TENJIN_WALLET_PASSPHRASE` when that opens the wallet). Never paste the passphrase into chat, and never put it on a command line. It is not pre-approved for your assistant, which should ask you to run it and never ask for the passphrase.
15
+
16
+ ```bash
17
+ tenjin wallet repair
18
+ ```
19
+
20
+ It checks that the passphrase opens this wallet, saves it the way `tenjin wallet create` does (see [Wallet passphrase storage](./agent-permissions.md#wallet-passphrase-storage)), and never rewrites `wallet.json`. Then start a new Claude Code session. Saving is not the proof: the next session says "Tenjin wallet unlocked." on its first prompt, or why not, and `tenjin doctor` shows what that session's router saw.
21
+
22
+ ### Remove a wrong `TENJIN_WALLET_PASSPHRASE`
23
+
24
+ Only when a message says the variable is wrong (`TENJIN_WALLET_PASSPHRASE is set but wrong; remove it.`, or repair's own line), remove it from the environment Claude Code starts from, and delete the line that exports it from your shell startup file (repair names the file and line). When the reason is `TENJIN_WALLET_PASSPHRASE is set but does not open the wallet`, run `tenjin wallet repair` first: no saved passphrase opens the wallet until it does.
25
+
26
+ ```bash
27
+ unset TENJIN_WALLET_PASSPHRASE
28
+ ```
29
+
30
+ Then quit Claude Code fully and start a new session from that shell: a running Claude Code keeps the environment it started with. A correct variable still wins: it is used before any saved passphrase, so leave one that works.
31
+
32
+ ### A lost passphrase
33
+
34
+ If nobody has the passphrase any more, nothing can open the wallet, and USDC sent to it stays there. `tenjin wallet create --replace` archives the old wallet only when it can open it, so it refuses here rather than strand those funds unannounced. To start over, move `~/.tenjin/wallet.json` aside (keep the file, in case the passphrase turns up) and run `tenjin wallet create`.
35
+
36
+ ## Tenjin stopped after a Node upgrade (`Executable not found`, `cache-miss`)
37
+
38
+ The router fails to start in Claude Code or shows `cache-miss`, a terminal says `tenjin: command not found`, or `tenjin doctor` cannot run at all.
39
+
40
+ Before this release, Tenjin ran from npm's global folder, which belongs to one Node version. mise, nvm, fnm, asdf and Volta keep one such folder per version, so removing that Node, or running `npm rm -g tenjin-cli`, deleted the files the plugin ran.
41
+
42
+ Ask your agent to reinstall it:
43
+
44
+ ```text
45
+ Install Tenjin from tenjin.sh
46
+ ```
47
+
48
+ Or follow the [official installation instructions](https://tenjin.sh/agents); the installer includes Node and needs no npm or working `tenjin` command. For a project-only installation, pass `--project` to the installer from that project folder. Follow the installer's activation instruction. From this release on, Tenjin runs from `~/.tenjin/runtime` on its own Node, so a Node upgrade or `npm rm -g tenjin-cli` no longer stops it. Your wallet, spend ledger and settings stay where they were.
49
+
50
+ ### The launcher says the runtime is missing
51
+
52
+ `tenjin: Tenjin's runtime is missing (…)` means the files in `~/.tenjin/runtime` that the `tenjin` command runs are gone. Use the same official installer above, keeping `--project` for a project-only installation, then follow its activation instruction.
53
+
54
+ ### `tenjin` not found in a terminal
55
+
56
+ Install puts the `tenjin` command in `~/.local/bin`, and says so when that folder is not on your PATH. Add it for zsh:
57
+
58
+ ```bash
59
+ echo 'export PATH="$HOME/.local/bin:$PATH"' >> ~/.zshrc
60
+ ```
61
+
62
+ or for bash (`~/.bash_profile` on macOS):
63
+
64
+ ```bash
65
+ echo 'export PATH="$HOME/.local/bin:$PATH"' >> ~/.bashrc
66
+ ```
67
+
68
+ Then open a new terminal. Inside Claude Code, the plugin's own `tenjin` is at the end of the Bash tool's PATH, so your assistant finds it when nothing earlier on PATH is named `tenjin`.
69
+
70
+ ### Removing Tenjin
71
+
72
+ Run `tenjin uninstall --all` first, then `npm uninstall -g tenjin-cli`. Uninstall removes the plugin, the runtime and the launcher, and keeps your wallet. If npm went first, `~/.local/bin/tenjin uninstall --all` still works.
73
+
3
74
  ## Claude Code asks about a new project MCP server named `x402`
4
75
 
5
76
  Updating to `0.1.0-alpha.18` could accidentally register the server in `~/.mcp.json` while refreshing a user install. After upgrading to a release with the fix, check that file. If its `x402` entry runs `tenjin mcp` and you didn't install at project scope in your home directory on purpose, remove just that registration:
@@ -8,6 +79,6 @@ Updating to `0.1.0-alpha.18` could accidentally register the server in `~/.mcp.j
8
79
  (cd ~ && claude mcp remove x402 -s project)
9
80
  ```
10
81
 
11
- This keeps your other MCP entries and the user registration in `~/.claude.json`. Run `tenjin install`, then restart Claude Code. Don't use `tenjin uninstall --project` from home for this: its settings path is also the user settings path.
82
+ This keeps your other MCP entries and the user registration in `~/.claude.json`. Run `tenjin install`. Then start a new Claude Code session. Don't use `tenjin uninstall --project` from home for this: its settings path is also the user settings path.
12
83
 
13
84
  When refreshing from home, Tenjin keeps the existing user registration if there is one, or preserves a project-only registration; with neither, it defaults to user scope. `tenjin install --refresh --project` selects project scope explicitly.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "tenjin-cli",
3
- "version": "0.1.0-alpha.31",
3
+ "version": "0.1.0-alpha.33",
4
4
  "type": "module",
5
5
  "description": "The tool router for coding agents. Tenjin picks the right tool when your agent needs one, and one wallet pays for every call.",
6
6
  "repository": {
@@ -31,9 +31,23 @@
31
31
  "engines": {
32
32
  "node": ">=22.0.0"
33
33
  },
34
+ "tenjinRuntime": {
35
+ "node": {
36
+ "version": "24.22.1",
37
+ "sha256": {
38
+ "darwin-arm64": "89c682593d76cd44233fa53b1563264e7de9cbb189cad169135c5b4fadfbc0a7",
39
+ "darwin-x64": "d132557e7ee2b85af08b0c8c34338e65c6430f2238d01f727728ef42dc83b035",
40
+ "linux-x64": "eb6728e77c576a35162c122c45ccadf224d89ff00abc8dae46cc2897c6002d7c",
41
+ "linux-arm64": "33c37be234ba8bee041961047b19160f4d7d0f164e8e246f78bdd10feff148b3",
42
+ "win-x64": "d2046d28c2c3dcd211ac5145c0bf30e2047ef9dfb306693c8c6e2eccd8b95fa5",
43
+ "win-arm64": "a0c807319fede24c4a0d8f84564c82a619bd313b16b10c007c383c2609e99171"
44
+ }
45
+ }
46
+ },
34
47
  "files": [
35
48
  "dist",
36
49
  "docs",
50
+ "scripts/installers",
37
51
  "NOTICE.md"
38
52
  ],
39
53
  "devDependencies": {
@@ -59,17 +73,16 @@
59
73
  "typescript-eslint": "^8",
60
74
  "viem": "^2.53.1",
61
75
  "vitest": "^4.1.9",
62
- "zod": "^4.4.3"
76
+ "zod": "^4.6.6"
63
77
  },
64
78
  "scripts": {
65
- "build": "rm -rf dist && tsup",
79
+ "build": "rm -rf dist .bundle-meta && tsup",
66
80
  "test": "vitest run",
67
81
  "typecheck": "tsc --noEmit",
68
82
  "lint": "eslint .",
69
83
  "format": "prettier --write .",
70
84
  "format:check": "prettier --check .",
71
85
  "check": "pnpm run build && pnpm run test",
72
- "sync:skill": "node scripts/sync-skill.mjs",
73
86
  "pack-smoke": "bash scripts/pack-smoke.sh",
74
87
  "changeset": "changeset",
75
88
  "githooks": "git config core.hooksPath .githooks"
@@ -0,0 +1,67 @@
1
+ & {
2
+ $ErrorActionPreference = 'Stop'
3
+ $CliVersion = '@CLI_VERSION@'
4
+ $CliSha512 = '@CLI_SHA512@'
5
+ $NodeVersion = '@NODE_VERSION@'
6
+ $NodeHashes = @{
7
+ @NODE_POWERSHELL_HASHES@
8
+ }
9
+
10
+ $Stage = $null
11
+ $Client = $null
12
+ try {
13
+ if ($env:TENJIN_DATA_DIR -and [IO.Path]::GetFullPath($env:TENJIN_DATA_DIR) -ne [IO.Path]::Combine($HOME, '.tenjin')) {
14
+ throw 'Plugin installation needs the default data directory. Run without TENJIN_DATA_DIR.'
15
+ }
16
+ $Architecture = $env:PROCESSOR_ARCHITEW6432
17
+ if (-not $Architecture) { $Architecture = $env:PROCESSOR_ARCHITECTURE }
18
+ if ($Architecture -in @('AMD64', 'x64')) { $Architecture = 'x64' }
19
+ elseif ($Architecture -eq 'ARM64') { $Architecture = 'arm64' }
20
+ else { $Architecture = 'unsupported' }
21
+ if ($Architecture -eq 'unsupported' -or [Environment]::OSVersion.Platform -ne 'Win32NT') {
22
+ throw 'Tenjin supports Windows on x64 and arm64. Use the shell installer on macOS or Linux.'
23
+ }
24
+ $Key = "win-$Architecture"
25
+ $Tar = [IO.Path]::Combine($env:SystemRoot, 'System32', 'tar.exe')
26
+ if (-not (Test-Path $Tar)) { throw 'Windows tar.exe is required.' }
27
+ $Stage = [IO.Path]::Combine([IO.Path]::GetTempPath(), "tenjin-install-$([Guid]::NewGuid())")
28
+ New-Item -ItemType Directory -Path $Stage | Out-Null
29
+ $Client = New-Object Net.WebClient
30
+ $ProxyUrl = @($env:HTTPS_PROXY, $env:https_proxy, $env:HTTP_PROXY, $env:http_proxy) | Where-Object { $_ } | Select-Object -First 1
31
+ if ($ProxyUrl) {
32
+ $Client.Proxy = New-Object Net.WebProxy($ProxyUrl)
33
+ $ProxyUri = [Uri]$ProxyUrl
34
+ if ($ProxyUri.UserInfo) {
35
+ $Credentials = $ProxyUri.UserInfo.Split(':', 2)
36
+ $Password = if ($Credentials.Length -gt 1) { [Uri]::UnescapeDataString($Credentials[1]) } else { '' }
37
+ $Client.Proxy.Credentials = New-Object Net.NetworkCredential([Uri]::UnescapeDataString($Credentials[0]), $Password)
38
+ }
39
+ }
40
+ [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12
41
+ Write-Host "Installing Tenjin $CliVersion..."
42
+ $NodeArchive = [IO.Path]::Combine($Stage, 'node.zip')
43
+ $Client.DownloadFile("https://nodejs.org/dist/v$NodeVersion/node-v$NodeVersion-$Key.zip", $NodeArchive)
44
+ if ((Get-FileHash $NodeArchive -Algorithm SHA256).Hash.ToLowerInvariant() -ne $NodeHashes[$Key]) { throw 'The Node download did not match its checksum.' }
45
+ $NodeDir = [IO.Path]::Combine($Stage, 'node')
46
+ Expand-Archive -Path $NodeArchive -DestinationPath $NodeDir
47
+ $Node = [IO.Path]::Combine($NodeDir, "node-v$NodeVersion-$Key", 'node.exe')
48
+ if ((& $Node -p process.version) -ne "v$NodeVersion") { throw 'The downloaded Node cannot run on this system.' }
49
+ $CliArchive = [IO.Path]::Combine($Stage, 'cli.tgz')
50
+ $Client.DownloadFile("https://registry.npmjs.org/tenjin-cli/-/tenjin-cli-$CliVersion.tgz", $CliArchive)
51
+ if ((Get-FileHash $CliArchive -Algorithm SHA512).Hash.ToLowerInvariant() -ne $CliSha512) { throw 'The Tenjin download did not match its checksum.' }
52
+ New-Item -ItemType Directory -Path ([IO.Path]::Combine($Stage, 'cli')) | Out-Null
53
+ Push-Location $Stage
54
+ try { & $Tar -xf cli.tgz -C cli --strip-components=1; if ($LASTEXITCODE -ne 0) { throw 'Could not unpack Tenjin.' } } finally { Pop-Location }
55
+ $PreviousArchive = $env:TENJIN_BOOTSTRAP_NODE_ARCHIVE
56
+ try {
57
+ $env:TENJIN_BOOTSTRAP_NODE_ARCHIVE = $NodeArchive
58
+ & $Node ([IO.Path]::Combine($Stage, 'cli', 'dist', 'index.js')) install @args
59
+ if ($LASTEXITCODE -ne 0) { throw "Tenjin setup exited with code $LASTEXITCODE." }
60
+ } finally { $env:TENJIN_BOOTSTRAP_NODE_ARCHIVE = $PreviousArchive }
61
+ } catch {
62
+ throw "Tenjin could not be installed: $($_.Exception.Message) Retry after fixing this. Your existing setup was kept."
63
+ } finally {
64
+ if ($Client) { $Client.Dispose() }
65
+ if ($Stage) { Remove-Item -LiteralPath $Stage -Recurse -Force -ErrorAction SilentlyContinue }
66
+ }
67
+ } @args
@@ -0,0 +1,68 @@
1
+ #!/bin/sh
2
+ set -eu
3
+
4
+ CLI_VERSION='@CLI_VERSION@'
5
+ CLI_SHA512='@CLI_SHA512@'
6
+ NODE_VERSION='@NODE_VERSION@'
7
+
8
+ fail() { printf 'Tenjin could not be installed: %s\nRetry the install after fixing this. Your existing setup was kept.\n' "$1" >&2; exit 1; }
9
+ [ -n "${HOME:-}" ] || fail 'HOME is not set.'
10
+ if [ -n "${TENJIN_DATA_DIR:-}" ] && [ "$TENJIN_DATA_DIR" != "$HOME/.tenjin" ]; then
11
+ fail 'Plugin installation needs the default data directory. Run without TENJIN_DATA_DIR.'
12
+ fi
13
+ case "$(uname -s)" in
14
+ Darwin)
15
+ os=darwin
16
+ # Node 24's macOS builds target 13.5. sw_vers says 14 or 13.4.1; a missing minor is 0.
17
+ macos=$(sw_vers -productVersion 2>/dev/null || true)
18
+ case "$macos" in ''|.*|*[!0-9.]*) fail 'Could not read the macOS version.' ;; esac
19
+ major=${macos%%.*}; minor=${macos#"$major"}; minor=${minor#.}; minor=${minor%%.*}
20
+ [ "$major" -gt 13 ] || { [ "$major" -eq 13 ] && [ "${minor:-0}" -ge 5 ]; } || fail 'Tenjin needs macOS 13.5 or newer.'
21
+ ;;
22
+ Linux)
23
+ os=linux
24
+ glibc=$(getconf GNU_LIBC_VERSION 2>/dev/null || true)
25
+ case "$glibc" in 'glibc '*) glibc=${glibc#glibc } ;; *) fail 'Linux needs glibc 2.28 or newer; musl/Alpine is unsupported.' ;; esac
26
+ major=${glibc%%.*}; minor=${glibc#*.}; minor=${minor%%.*}
27
+ [ "$major" -gt 2 ] || { [ "$major" -eq 2 ] && [ "$minor" -ge 28 ]; } || fail 'Linux needs glibc 2.28 or newer.'
28
+ ;;
29
+ *) fail 'This platform is unsupported. Use macOS 13.5+, Windows or glibc Linux on x64/arm64.' ;;
30
+ esac
31
+ case "$(uname -m)" in
32
+ x86_64|amd64) arch=x64 ;;
33
+ arm64|aarch64) arch=arm64 ;;
34
+ *) fail 'This architecture is unsupported. Tenjin supports x64 and arm64.' ;;
35
+ esac
36
+ key=$os-$arch
37
+ case "$key" in
38
+ @NODE_CHECKSUM_CASES@
39
+ *) fail 'No pinned Node download exists for this platform.' ;;
40
+ esac
41
+ for command in curl tar mktemp; do command -v "$command" >/dev/null 2>&1 || fail "The system needs $command."; done
42
+ if command -v sha256sum >/dev/null 2>&1 && command -v sha512sum >/dev/null 2>&1; then
43
+ digest() { if [ "$1" = 256 ]; then sha256sum "$2"; else sha512sum "$2"; fi | awk '{print $1}'; }
44
+ elif command -v shasum >/dev/null 2>&1; then
45
+ digest() { shasum -a "$1" "$2" | awk '{print $1}'; }
46
+ else
47
+ fail 'The system needs shasum or sha256sum and sha512sum.'
48
+ fi
49
+ stage=$(mktemp -d "${TMPDIR:-/tmp}/tenjin-install.XXXXXXXX") || fail 'Could not create a temporary folder.'
50
+ trap 'rm -rf "$stage"' EXIT HUP INT TERM
51
+ # A stalled transfer fails, a slow one does not: under 1 KB/s for 60 s ends it,
52
+ # and 30 minutes caps the whole. Node's archive is over 50 MB, past a fixed
53
+ # 5-minute cap on any link below about 1.5 Mbit/s.
54
+ fetch() {
55
+ HTTPS_PROXY="${HTTPS_PROXY:-${https_proxy:-${HTTP_PROXY:-${http_proxy:-}}}}" curl -q --proto '=https' --proto-redir '=https' --fail --location --silent --show-error --connect-timeout 30 --speed-limit 1024 --speed-time 60 --max-time 1800 "$1" -o "$2" || fail 'A download failed. Check your connection or proxy settings.'
56
+ }
57
+ printf 'Installing Tenjin %s…\n' "$CLI_VERSION" >&2
58
+ archive="node-v$NODE_VERSION-$key"
59
+ fetch "https://nodejs.org/dist/v$NODE_VERSION/$archive.tar.gz" "$stage/node.tar.gz"
60
+ [ "$(digest 256 "$stage/node.tar.gz")" = "$node_sha" ] || fail 'The Node download did not match its checksum.'
61
+ mkdir "$stage/node" "$stage/cli"
62
+ tar -xzf "$stage/node.tar.gz" -C "$stage/node" --strip-components=1 "$archive/bin/node" || fail 'Could not unpack Node.'
63
+ node="$stage/node/bin/node"
64
+ [ "$("$node" -p process.version)" = "v$NODE_VERSION" ] || fail 'The downloaded Node cannot run on this system.'
65
+ fetch "https://registry.npmjs.org/tenjin-cli/-/tenjin-cli-$CLI_VERSION.tgz" "$stage/cli.tgz"
66
+ [ "$(digest 512 "$stage/cli.tgz")" = "$CLI_SHA512" ] || fail 'The Tenjin download did not match its checksum.'
67
+ tar -xzf "$stage/cli.tgz" -C "$stage/cli" --strip-components=1 || fail 'Could not unpack Tenjin.'
68
+ TENJIN_BOOTSTRAP_NODE_ARCHIVE="$stage/node.tar.gz" "$node" "$stage/cli/dist/index.js" install "$@"