tenjin-cli 0.1.0-alpha.31 → 0.1.0-alpha.32
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.
- package/README.md +5 -5
- package/dist/{_esm-MEXZI5DL.js → _esm-RLLC72MS.js} +128 -132
- package/dist/{alive-J64H46HI.js → alive-MROUMFH3.js} +13 -6
- package/dist/auto-update-OPWMRZLS.js +22 -0
- package/dist/{ccip-7RMRLAGV.js → ccip-DHDFKTQV.js} +2 -2
- package/dist/chunk-2GNOFONN.js +560 -0
- package/dist/chunk-2GNOFONN.js.map +1 -0
- package/dist/{chunk-TTNESUPQ.js → chunk-2GP3HRYK.js} +2120 -193
- package/dist/chunk-2GP3HRYK.js.map +1 -0
- package/dist/chunk-3AIHRXKO.js +72 -0
- package/dist/chunk-3AIHRXKO.js.map +1 -0
- package/dist/{chunk-LEFIX6RS.js → chunk-3DIL66VX.js} +31 -11
- package/dist/chunk-3DIL66VX.js.map +1 -0
- package/dist/{chunk-S4SAZ7OD.js → chunk-3FMZGI7I.js} +12 -2
- package/dist/{chunk-S4SAZ7OD.js.map → chunk-3FMZGI7I.js.map} +1 -1
- package/dist/{chunk-7Q5FDF65.js → chunk-445VQTVM.js} +3 -3
- package/dist/{chunk-A36LQPHV.js → chunk-4LMUQMBH.js} +1 -1
- package/dist/{chunk-A36LQPHV.js.map → chunk-4LMUQMBH.js.map} +1 -1
- package/dist/{chunk-KXQ4UIP7.js → chunk-4USCZ2NI.js} +2 -2
- package/dist/chunk-62KNUYWD.js +111 -0
- package/dist/chunk-62KNUYWD.js.map +1 -0
- package/dist/{chunk-POUWHWID.js → chunk-6CMM6YCB.js} +3 -3
- package/dist/{chunk-POUWHWID.js.map → chunk-6CMM6YCB.js.map} +1 -1
- package/dist/{chunk-5MARFNSB.js → chunk-AD226HDR.js} +49 -30
- package/dist/chunk-AD226HDR.js.map +1 -0
- package/dist/chunk-ADV4LDTB.js +106 -0
- package/dist/chunk-ADV4LDTB.js.map +1 -0
- package/dist/{chunk-7WU4OPLP.js → chunk-AV5NZMYO.js} +5 -3
- package/dist/{chunk-7WU4OPLP.js.map → chunk-AV5NZMYO.js.map} +1 -1
- package/dist/chunk-B7EM4GGF.js +198 -0
- package/dist/chunk-B7EM4GGF.js.map +1 -0
- package/dist/chunk-BFDQ4WNW.js +119 -0
- package/dist/chunk-BFDQ4WNW.js.map +1 -0
- package/dist/{chunk-2XLC3AEX.js → chunk-BI673VEJ.js} +536 -510
- package/dist/chunk-BI673VEJ.js.map +1 -0
- package/dist/chunk-CEXSOI5R.js +808 -0
- package/dist/chunk-CEXSOI5R.js.map +1 -0
- package/dist/{chunk-FW75G2W4.js → chunk-CISYM4EO.js} +5 -5
- package/dist/{chunk-B7HUUJOK.js → chunk-D3ZURCG7.js} +3 -3
- package/dist/chunk-D5TOQSO4.js +474 -0
- package/dist/chunk-D5TOQSO4.js.map +1 -0
- package/dist/{chunk-UQUOVWBG.js → chunk-DRDUIZIA.js} +7 -7
- package/dist/{chunk-27EPWVOY.js → chunk-DW4YTVR3.js} +2 -2
- package/dist/chunk-E7LGOMH6.js +449 -0
- package/dist/chunk-E7LGOMH6.js.map +1 -0
- package/dist/{chunk-QSCPK4F5.js → chunk-E7SW44LM.js} +4 -11
- package/dist/chunk-E7SW44LM.js.map +1 -0
- package/dist/chunk-EDJWHDDL.js +33 -0
- package/dist/chunk-EDJWHDDL.js.map +1 -0
- package/dist/chunk-F3ED5WTR.js +13 -0
- package/dist/chunk-F3ED5WTR.js.map +1 -0
- package/dist/chunk-G75OPGAK.js +111 -0
- package/dist/chunk-G75OPGAK.js.map +1 -0
- package/dist/{chunk-R5LCN54M.js → chunk-GAKUQHKA.js} +13 -17
- package/dist/{chunk-R5LCN54M.js.map → chunk-GAKUQHKA.js.map} +1 -1
- package/dist/{chunk-4ZZO6ULA.js → chunk-HDPUXS3Z.js} +19 -48
- package/dist/chunk-HDPUXS3Z.js.map +1 -0
- package/dist/{chunk-ORWL5BSN.js → chunk-HGZEPQUT.js} +2 -2
- package/dist/{chunk-6E5R45ZO.js → chunk-HREHWL32.js} +4 -4
- package/dist/{chunk-6E5R45ZO.js.map → chunk-HREHWL32.js.map} +1 -1
- package/dist/{chunk-KXVP2VKA.js → chunk-I5TDIUKM.js} +15 -34
- package/dist/chunk-I5TDIUKM.js.map +1 -0
- package/dist/{chunk-7QKHZQKW.js → chunk-IADZOXKN.js} +39 -6
- package/dist/chunk-IADZOXKN.js.map +1 -0
- package/dist/{chunk-P4NH7OUK.js → chunk-IDTRSAHE.js} +2 -2
- package/dist/{chunk-YFPY4ONH.js → chunk-JEVQ5LKO.js} +4 -4
- package/dist/chunk-JNJWBTU2.js +3497 -0
- package/dist/chunk-JNJWBTU2.js.map +1 -0
- package/dist/{chunk-MNXS2U45.js → chunk-JRZBBPO6.js} +167 -86
- package/dist/chunk-JRZBBPO6.js.map +1 -0
- package/dist/{chunk-WJXLQXJY.js → chunk-MPZUYCAP.js} +4 -1
- package/dist/{chunk-WJXLQXJY.js.map → chunk-MPZUYCAP.js.map} +1 -1
- package/dist/{chunk-SJLTEINJ.js → chunk-OJNTCYQQ.js} +17 -1
- package/dist/chunk-OJNTCYQQ.js.map +1 -0
- package/dist/{chunk-AGZ7PJKY.js → chunk-OTWLERSW.js} +22 -5
- package/dist/chunk-OTWLERSW.js.map +1 -0
- package/dist/{chunk-NEFNKLBE.js → chunk-PJNENX2A.js} +1535 -422
- package/dist/chunk-PJNENX2A.js.map +1 -0
- package/dist/{chunk-UKY4CHNC.js → chunk-PKHI276N.js} +8 -4
- package/dist/chunk-PKHI276N.js.map +1 -0
- package/dist/{chunk-5K5W4S66.js → chunk-QF3LSMGS.js} +2 -2
- package/dist/{chunk-XZKD7DIF.js → chunk-RL5UUDT4.js} +3 -3
- package/dist/{chunk-XZKD7DIF.js.map → chunk-RL5UUDT4.js.map} +1 -1
- package/dist/{chunk-OHRR5OYM.js → chunk-SFASB5FL.js} +10 -4
- package/dist/chunk-SFASB5FL.js.map +1 -0
- package/dist/{chunk-YVFXE7RR.js → chunk-SNNSAGMT.js} +7279 -2627
- package/dist/chunk-SNNSAGMT.js.map +1 -0
- package/dist/{chunk-WK7F3B2E.js → chunk-SO3XRZPX.js} +3 -3
- package/dist/chunk-SYOS5CAC.js +176 -0
- package/dist/chunk-SYOS5CAC.js.map +1 -0
- package/dist/chunk-TAW4UFFF.js +293 -0
- package/dist/chunk-TAW4UFFF.js.map +1 -0
- package/dist/{hosts-FWZOV26H.js → chunk-TF5HCP33.js} +79 -24
- package/dist/chunk-TF5HCP33.js.map +1 -0
- package/dist/{chunk-AKWGE6JQ.js → chunk-UUGOUOVT.js} +37 -2
- package/dist/chunk-UUGOUOVT.js.map +1 -0
- package/dist/{chunk-7ZRL2LBQ.js → chunk-V2LQLN5H.js} +6 -6
- package/dist/{chunk-K72RURN3.js → chunk-VJUVFZ2D.js} +2 -2
- package/dist/{chunk-77TCKDEC.js → chunk-VOZA6O7K.js} +663 -477
- package/dist/chunk-VOZA6O7K.js.map +1 -0
- package/dist/{chunk-D65GNPS3.js → chunk-VUGQTZ2L.js} +208 -84
- package/dist/chunk-VUGQTZ2L.js.map +1 -0
- package/dist/chunk-WOM257PW.js +393 -0
- package/dist/chunk-WOM257PW.js.map +1 -0
- package/dist/chunk-WYXUQGOL.js +191 -0
- package/dist/chunk-WYXUQGOL.js.map +1 -0
- package/dist/chunk-X5ZBP3IY.js +97 -0
- package/dist/chunk-X5ZBP3IY.js.map +1 -0
- package/dist/{chunk-5C32RLTA.js → chunk-YUY4SAGM.js} +17 -2
- package/dist/chunk-YUY4SAGM.js.map +1 -0
- package/dist/{cli-D5OE3URZ.js → cli-FB4LOA5A.js} +144 -63
- package/dist/{cli-D5OE3URZ.js.map → cli-FB4LOA5A.js.map} +1 -1
- package/dist/{codex-event-PPNVRRDH.js → codex-event-TYVES3UX.js} +2 -2
- package/dist/{codex-host-2RJOJW2B.js → codex-host-WW4H2SKT.js} +7 -6
- package/dist/codex-install-2C623HPW.js +393 -0
- package/dist/codex-install-2C623HPW.js.map +1 -0
- package/dist/{config-ZD4OB2DO.js → config-HOVJFEKD.js} +21 -17
- package/dist/doctor-NKU4V5OV.js +1312 -0
- package/dist/doctor-NKU4V5OV.js.map +1 -0
- package/dist/{env-proxy-XL4P73MZ.js → env-proxy-R6ZMLQTT.js} +6 -2
- package/dist/{ethersCompat-Df4a6QIZ-THAVUGIJ.js → ethersCompat-Df4a6QIZ-X6YZWAML.js} +3 -3
- package/dist/{fund-5ITKQGYF.js → fund-WEBHTZGN.js} +37 -36
- package/dist/{fund-5ITKQGYF.js.map → fund-WEBHTZGN.js.map} +1 -1
- package/dist/hook-command-ZA2PNKS6.js +44 -0
- package/dist/hosts/claude/.claude-plugin/marketplace.json +2 -2
- package/dist/hosts/claude/tenjin/.claude-plugin/plugin.json +2 -2
- package/dist/hosts/claude/tenjin/skills/tenjin-pay/SKILL.md +82 -0
- package/dist/hosts/codex/tenjin/.mcp.json +3 -0
- package/dist/hosts/codex/tenjin/hooks/hooks.json +51 -5
- package/dist/hosts-AV5MHBAU.js +38 -0
- package/dist/index.js +28 -8
- package/dist/index.js.map +1 -1
- package/dist/{install-XWGE4Q7L.js → install-PT4EZS4R.js} +53 -30
- package/dist/{install-identity-K7EJIQFP.js → install-identity-5A4OE6YC.js} +11 -10
- package/dist/install-wallet-SAAPKB73.js +281 -0
- package/dist/install-wallet-SAAPKB73.js.map +1 -0
- package/dist/{mcp-3LIJSSJB.js → mcp-HAWKCTPQ.js} +785 -210
- package/dist/mcp-HAWKCTPQ.js.map +1 -0
- package/dist/{mine.wasm-6PIT3DK6.js → mine.wasm-QFAHIFPY.js} +2 -2
- package/dist/{mine.wasm-6PIT3DK6.js.map → mine.wasm-QFAHIFPY.js.map} +1 -1
- package/dist/{package-ZKQFDWLE.js → package-SR2WB6MK.js} +4 -2
- package/dist/passphrase-IFTDS3CU.js +44 -0
- package/dist/{paths-POPTXJO6.js → paths-XCSAKISU.js} +10 -2
- package/dist/{pay-WHBERZ3W.js → pay-OXC3WKYV.js} +29 -29
- package/dist/{payments-KVICEKD2.js → payments-3KHMP2MG.js} +15 -14
- package/dist/{payments-KVICEKD2.js.map → payments-3KHMP2MG.js.map} +1 -1
- package/dist/plugin-registration-N3GRIZVM.js +67 -0
- package/dist/{redact-6W23GGJC.js → redact-D7ASVWKL.js} +2 -2
- package/dist/runtime-UVNUA3AS.js +1203 -0
- package/dist/runtime-UVNUA3AS.js.map +1 -0
- package/dist/runtime-fetch-EKFRNR6Z.js +20 -0
- package/dist/runtime-layout-BDWZG2TQ.js +25 -0
- package/dist/{send-7G7Y7DLN.js → send-HMKJLT34.js} +24 -22
- package/dist/{send-7G7Y7DLN.js.map → send-HMKJLT34.js.map} +1 -1
- package/dist/{status-OF7RH5HM.js → status-RWXIIWYS.js} +55 -25
- package/dist/status-RWXIIWYS.js.map +1 -0
- package/dist/{status-line-XOUE6MPL.js → status-line-77XYZP7E.js} +10 -9
- package/dist/{status-line-XOUE6MPL.js.map → status-line-77XYZP7E.js.map} +1 -1
- package/dist/uninstall-D5G67UJH.js +480 -0
- package/dist/uninstall-D5G67UJH.js.map +1 -0
- package/dist/update-LRNOEGSB.js +53 -0
- package/dist/update-LRNOEGSB.js.map +1 -0
- package/dist/{usdc-OGOGEHV2.js → usdc-D6X7EIQ2.js} +6 -8
- package/dist/usdc-D6X7EIQ2.js.map +1 -0
- package/dist/{viemAdapter-By13KInL-S3DA7DFW.js → viemAdapter-By13KInL-RL742ETX.js} +3 -3
- package/dist/viemAdapter-By13KInL-RL742ETX.js.map +1 -0
- package/dist/wallet-XFYC27BR.js +55 -0
- package/dist/wallet-XFYC27BR.js.map +1 -0
- package/dist/wallet-kdf-worker.mjs +8 -8
- package/docs/agent-permissions.md +40 -22
- package/docs/safety-model.md +1 -1
- package/docs/troubleshooting.md +72 -1
- package/package.json +14 -1
- package/dist/ccip-NLCSCHKI.js +0 -19
- package/dist/chunk-2XLC3AEX.js.map +0 -1
- package/dist/chunk-4ZZO6ULA.js.map +0 -1
- package/dist/chunk-5C32RLTA.js.map +0 -1
- package/dist/chunk-5IEP5EGE.js +0 -5332
- package/dist/chunk-5IEP5EGE.js.map +0 -1
- package/dist/chunk-5MARFNSB.js.map +0 -1
- package/dist/chunk-77TCKDEC.js.map +0 -1
- package/dist/chunk-7EKYXMUO.js +0 -7536
- package/dist/chunk-7EKYXMUO.js.map +0 -1
- package/dist/chunk-7QKHZQKW.js.map +0 -1
- package/dist/chunk-AGZ7PJKY.js.map +0 -1
- package/dist/chunk-AKWGE6JQ.js.map +0 -1
- package/dist/chunk-BL3332HQ.js +0 -7611
- package/dist/chunk-BL3332HQ.js.map +0 -1
- package/dist/chunk-D65GNPS3.js.map +0 -1
- package/dist/chunk-EGELTSPU.js +0 -2865
- package/dist/chunk-EGELTSPU.js.map +0 -1
- package/dist/chunk-GA7JETVM.js +0 -150
- package/dist/chunk-GA7JETVM.js.map +0 -1
- package/dist/chunk-I3EQFHCD.js +0 -175
- package/dist/chunk-I3EQFHCD.js.map +0 -1
- package/dist/chunk-K3I7C2MO.js +0 -1185
- package/dist/chunk-K3I7C2MO.js.map +0 -1
- package/dist/chunk-KXVP2VKA.js.map +0 -1
- package/dist/chunk-LEFIX6RS.js.map +0 -1
- package/dist/chunk-MNXS2U45.js.map +0 -1
- package/dist/chunk-NEFNKLBE.js.map +0 -1
- package/dist/chunk-OHRR5OYM.js.map +0 -1
- package/dist/chunk-QSCPK4F5.js.map +0 -1
- package/dist/chunk-SJLTEINJ.js.map +0 -1
- package/dist/chunk-TTNESUPQ.js.map +0 -1
- package/dist/chunk-UKY4CHNC.js.map +0 -1
- package/dist/chunk-V6BSF6OC.js +0 -260
- package/dist/chunk-V6BSF6OC.js.map +0 -1
- package/dist/chunk-YVFXE7RR.js.map +0 -1
- package/dist/codex-install-UUZ6QMBQ.js +0 -221
- package/dist/codex-install-UUZ6QMBQ.js.map +0 -1
- package/dist/doctor-KBR34Q4B.js +0 -601
- package/dist/doctor-KBR34Q4B.js.map +0 -1
- package/dist/hook-command-4TYCHHRL.js +0 -39
- package/dist/hosts-FWZOV26H.js.map +0 -1
- package/dist/install-wallet-XQ6XFZV4.js +0 -117
- package/dist/install-wallet-XQ6XFZV4.js.map +0 -1
- package/dist/mcp-3LIJSSJB.js.map +0 -1
- package/dist/plugin-registration-5TIA564H.js +0 -54
- package/dist/status-OF7RH5HM.js.map +0 -1
- package/dist/uninstall-JXUAFNDB.js +0 -158
- package/dist/uninstall-JXUAFNDB.js.map +0 -1
- package/dist/update-ZKUERSO2.js +0 -44
- package/dist/wallet-2HA6W4R4.js +0 -43
- /package/dist/{_esm-MEXZI5DL.js.map → _esm-RLLC72MS.js.map} +0 -0
- /package/dist/{alive-J64H46HI.js.map → alive-MROUMFH3.js.map} +0 -0
- /package/dist/{ccip-7RMRLAGV.js.map → auto-update-OPWMRZLS.js.map} +0 -0
- /package/dist/{ccip-NLCSCHKI.js.map → ccip-DHDFKTQV.js.map} +0 -0
- /package/dist/{chunk-7Q5FDF65.js.map → chunk-445VQTVM.js.map} +0 -0
- /package/dist/{chunk-KXQ4UIP7.js.map → chunk-4USCZ2NI.js.map} +0 -0
- /package/dist/{chunk-FW75G2W4.js.map → chunk-CISYM4EO.js.map} +0 -0
- /package/dist/{chunk-B7HUUJOK.js.map → chunk-D3ZURCG7.js.map} +0 -0
- /package/dist/{chunk-UQUOVWBG.js.map → chunk-DRDUIZIA.js.map} +0 -0
- /package/dist/{chunk-27EPWVOY.js.map → chunk-DW4YTVR3.js.map} +0 -0
- /package/dist/{chunk-ORWL5BSN.js.map → chunk-HGZEPQUT.js.map} +0 -0
- /package/dist/{chunk-P4NH7OUK.js.map → chunk-IDTRSAHE.js.map} +0 -0
- /package/dist/{chunk-YFPY4ONH.js.map → chunk-JEVQ5LKO.js.map} +0 -0
- /package/dist/{chunk-5K5W4S66.js.map → chunk-QF3LSMGS.js.map} +0 -0
- /package/dist/{chunk-WK7F3B2E.js.map → chunk-SO3XRZPX.js.map} +0 -0
- /package/dist/{chunk-7ZRL2LBQ.js.map → chunk-V2LQLN5H.js.map} +0 -0
- /package/dist/{chunk-K72RURN3.js.map → chunk-VJUVFZ2D.js.map} +0 -0
- /package/dist/{codex-event-PPNVRRDH.js.map → codex-event-TYVES3UX.js.map} +0 -0
- /package/dist/{codex-host-2RJOJW2B.js.map → codex-host-WW4H2SKT.js.map} +0 -0
- /package/dist/{config-ZD4OB2DO.js.map → config-HOVJFEKD.js.map} +0 -0
- /package/dist/{env-proxy-XL4P73MZ.js.map → env-proxy-R6ZMLQTT.js.map} +0 -0
- /package/dist/{ethersCompat-Df4a6QIZ-THAVUGIJ.js.map → ethersCompat-Df4a6QIZ-X6YZWAML.js.map} +0 -0
- /package/dist/{hook-command-4TYCHHRL.js.map → hook-command-ZA2PNKS6.js.map} +0 -0
- /package/dist/{install-XWGE4Q7L.js.map → hosts-AV5MHBAU.js.map} +0 -0
- /package/dist/{install-identity-K7EJIQFP.js.map → install-PT4EZS4R.js.map} +0 -0
- /package/dist/{package-ZKQFDWLE.js.map → install-identity-5A4OE6YC.js.map} +0 -0
- /package/dist/{paths-POPTXJO6.js.map → package-SR2WB6MK.js.map} +0 -0
- /package/dist/{pay-WHBERZ3W.js.map → passphrase-IFTDS3CU.js.map} +0 -0
- /package/dist/{plugin-registration-5TIA564H.js.map → paths-XCSAKISU.js.map} +0 -0
- /package/dist/{redact-6W23GGJC.js.map → pay-OXC3WKYV.js.map} +0 -0
- /package/dist/{update-ZKUERSO2.js.map → plugin-registration-N3GRIZVM.js.map} +0 -0
- /package/dist/{usdc-OGOGEHV2.js.map → redact-D7ASVWKL.js.map} +0 -0
- /package/dist/{viemAdapter-By13KInL-S3DA7DFW.js.map → runtime-fetch-EKFRNR6Z.js.map} +0 -0
- /package/dist/{wallet-2HA6W4R4.js.map → runtime-layout-BDWZG2TQ.js.map} +0 -0
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
import { createRequire as __tenjinCreateRequire } from 'node:module'; const require = __tenjinCreateRequire(import.meta.url);
|
|
2
|
+
import {
|
|
3
|
+
runUpdate,
|
|
4
|
+
spawnCapture,
|
|
5
|
+
versionFreeEntry
|
|
6
|
+
} from "./chunk-VOZA6O7K.js";
|
|
7
|
+
import "./chunk-I5TDIUKM.js";
|
|
8
|
+
import "./chunk-KOGZDMHO.js";
|
|
9
|
+
import "./chunk-PKHI276N.js";
|
|
10
|
+
import "./chunk-B7EM4GGF.js";
|
|
11
|
+
import "./chunk-AD226HDR.js";
|
|
12
|
+
import "./chunk-4LMUQMBH.js";
|
|
13
|
+
import "./chunk-3623BLPV.js";
|
|
14
|
+
import "./chunk-XKESD27X.js";
|
|
15
|
+
import "./chunk-VJUVFZ2D.js";
|
|
16
|
+
import "./chunk-HDPUXS3Z.js";
|
|
17
|
+
import "./chunk-2SNUOHAT.js";
|
|
18
|
+
import "./chunk-E7SW44LM.js";
|
|
19
|
+
import "./chunk-F3ED5WTR.js";
|
|
20
|
+
import "./chunk-DOQGNFHM.js";
|
|
21
|
+
import "./chunk-TAW4UFFF.js";
|
|
22
|
+
import "./chunk-E7LGOMH6.js";
|
|
23
|
+
import "./chunk-MEFB5KHA.js";
|
|
24
|
+
import "./chunk-UUGOUOVT.js";
|
|
25
|
+
import "./chunk-MPZUYCAP.js";
|
|
26
|
+
import "./chunk-3FMZGI7I.js";
|
|
27
|
+
import "./chunk-OTWLERSW.js";
|
|
28
|
+
import "./chunk-QXP3Z3JN.js";
|
|
29
|
+
import "./chunk-YUY4SAGM.js";
|
|
30
|
+
import "./chunk-JEVQ5LKO.js";
|
|
31
|
+
import "./chunk-AV5NZMYO.js";
|
|
32
|
+
import "./chunk-Y527D4TV.js";
|
|
33
|
+
import "./chunk-WOM257PW.js";
|
|
34
|
+
import "./chunk-BFDQ4WNW.js";
|
|
35
|
+
import "./chunk-3AIHRXKO.js";
|
|
36
|
+
import "./chunk-X5ZBP3IY.js";
|
|
37
|
+
import "./chunk-2I4QTOLB.js";
|
|
38
|
+
import "./chunk-2GNOFONN.js";
|
|
39
|
+
import "./chunk-DW4YTVR3.js";
|
|
40
|
+
import "./chunk-XQJXNMSB.js";
|
|
41
|
+
import "./chunk-SNNSAGMT.js";
|
|
42
|
+
import "./chunk-7WEQQJLG.js";
|
|
43
|
+
import "./chunk-3UCIG4TG.js";
|
|
44
|
+
import "./chunk-G75OPGAK.js";
|
|
45
|
+
import "./chunk-EDJWHDDL.js";
|
|
46
|
+
import "./chunk-OJNTCYQQ.js";
|
|
47
|
+
import "./chunk-ZXTAQYNA.js";
|
|
48
|
+
export {
|
|
49
|
+
runUpdate,
|
|
50
|
+
spawnCapture,
|
|
51
|
+
versionFreeEntry
|
|
52
|
+
};
|
|
53
|
+
//# sourceMappingURL=update-LRNOEGSB.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
|
|
@@ -11,18 +11,16 @@ import {
|
|
|
11
11
|
broadcastUsdcSend,
|
|
12
12
|
getUsdcBalance,
|
|
13
13
|
prepareUsdcSend
|
|
14
|
-
} from "./chunk-
|
|
15
|
-
import "./chunk-
|
|
16
|
-
import "./chunk-K3I7C2MO.js";
|
|
17
|
-
import "./chunk-5IEP5EGE.js";
|
|
18
|
-
import "./chunk-EGELTSPU.js";
|
|
14
|
+
} from "./chunk-GAKUQHKA.js";
|
|
15
|
+
import "./chunk-PJNENX2A.js";
|
|
19
16
|
import "./chunk-JRGFKVAZ.js";
|
|
17
|
+
import "./chunk-2GP3HRYK.js";
|
|
20
18
|
import "./chunk-KG3D7FIF.js";
|
|
21
19
|
import "./chunk-RBJPAZFI.js";
|
|
22
20
|
import "./chunk-BPMWXTFX.js";
|
|
23
|
-
import "./chunk-
|
|
21
|
+
import "./chunk-DW4YTVR3.js";
|
|
24
22
|
import "./chunk-7WEQQJLG.js";
|
|
25
|
-
import "./chunk-
|
|
23
|
+
import "./chunk-OJNTCYQQ.js";
|
|
26
24
|
import "./chunk-ZXTAQYNA.js";
|
|
27
25
|
export {
|
|
28
26
|
FeeCapExceededError,
|
|
@@ -37,4 +35,4 @@ export {
|
|
|
37
35
|
getUsdcBalance,
|
|
38
36
|
prepareUsdcSend
|
|
39
37
|
};
|
|
40
|
-
//# sourceMappingURL=usdc-
|
|
38
|
+
//# sourceMappingURL=usdc-D6X7EIQ2.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
|
|
@@ -2,8 +2,8 @@ import { createRequire as __tenjinCreateRequire } from 'node:module'; const requ
|
|
|
2
2
|
import {
|
|
3
3
|
a,
|
|
4
4
|
s
|
|
5
|
-
} from "./chunk-
|
|
6
|
-
import "./chunk-
|
|
5
|
+
} from "./chunk-HREHWL32.js";
|
|
6
|
+
import "./chunk-RL5UUDT4.js";
|
|
7
7
|
import "./chunk-KG3D7FIF.js";
|
|
8
8
|
import "./chunk-BPMWXTFX.js";
|
|
9
9
|
import "./chunk-ZXTAQYNA.js";
|
|
@@ -11,4 +11,4 @@ export {
|
|
|
11
11
|
a as n,
|
|
12
12
|
s as t
|
|
13
13
|
};
|
|
14
|
-
//# sourceMappingURL=viemAdapter-By13KInL-
|
|
14
|
+
//# sourceMappingURL=viemAdapter-By13KInL-RL742ETX.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
import { createRequire as __tenjinCreateRequire } from 'node:module'; const require = __tenjinCreateRequire(import.meta.url);
|
|
2
|
+
import {
|
|
3
|
+
REPAIR_DONE_LINE,
|
|
4
|
+
findPassphraseExports,
|
|
5
|
+
passphraseNote,
|
|
6
|
+
runWalletBalance,
|
|
7
|
+
runWalletCreate,
|
|
8
|
+
runWalletRepair,
|
|
9
|
+
runWalletShow,
|
|
10
|
+
withWalletLock
|
|
11
|
+
} from "./chunk-D5TOQSO4.js";
|
|
12
|
+
import "./chunk-HGZEPQUT.js";
|
|
13
|
+
import "./chunk-GAKUQHKA.js";
|
|
14
|
+
import "./chunk-WYXUQGOL.js";
|
|
15
|
+
import "./chunk-D3ZURCG7.js";
|
|
16
|
+
import "./chunk-QF3LSMGS.js";
|
|
17
|
+
import "./chunk-445VQTVM.js";
|
|
18
|
+
import "./chunk-BI673VEJ.js";
|
|
19
|
+
import "./chunk-V2LQLN5H.js";
|
|
20
|
+
import "./chunk-SO3XRZPX.js";
|
|
21
|
+
import "./chunk-VJUVFZ2D.js";
|
|
22
|
+
import "./chunk-HDPUXS3Z.js";
|
|
23
|
+
import "./chunk-2SNUOHAT.js";
|
|
24
|
+
import "./chunk-MEFB5KHA.js";
|
|
25
|
+
import "./chunk-CEXSOI5R.js";
|
|
26
|
+
import "./chunk-PJNENX2A.js";
|
|
27
|
+
import "./chunk-JRGFKVAZ.js";
|
|
28
|
+
import "./chunk-2GP3HRYK.js";
|
|
29
|
+
import "./chunk-KG3D7FIF.js";
|
|
30
|
+
import "./chunk-RBJPAZFI.js";
|
|
31
|
+
import "./chunk-BPMWXTFX.js";
|
|
32
|
+
import "./chunk-Y527D4TV.js";
|
|
33
|
+
import "./chunk-BFDQ4WNW.js";
|
|
34
|
+
import "./chunk-3AIHRXKO.js";
|
|
35
|
+
import "./chunk-X5ZBP3IY.js";
|
|
36
|
+
import "./chunk-2I4QTOLB.js";
|
|
37
|
+
import "./chunk-2GNOFONN.js";
|
|
38
|
+
import "./chunk-DW4YTVR3.js";
|
|
39
|
+
import "./chunk-XQJXNMSB.js";
|
|
40
|
+
import "./chunk-SNNSAGMT.js";
|
|
41
|
+
import "./chunk-7WEQQJLG.js";
|
|
42
|
+
import "./chunk-3UCIG4TG.js";
|
|
43
|
+
import "./chunk-OJNTCYQQ.js";
|
|
44
|
+
import "./chunk-ZXTAQYNA.js";
|
|
45
|
+
export {
|
|
46
|
+
REPAIR_DONE_LINE,
|
|
47
|
+
findPassphraseExports,
|
|
48
|
+
passphraseNote,
|
|
49
|
+
runWalletBalance,
|
|
50
|
+
runWalletCreate,
|
|
51
|
+
runWalletRepair,
|
|
52
|
+
runWalletShow,
|
|
53
|
+
withWalletLock
|
|
54
|
+
};
|
|
55
|
+
//# sourceMappingURL=wallet-XFYC27BR.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
|
|
@@ -636,15 +636,15 @@ async function scryptAsync(password, salt, opts) {
|
|
|
636
636
|
return scryptOutput(password, dkLen, B, V, tmp);
|
|
637
637
|
}
|
|
638
638
|
|
|
639
|
-
// node_modules/.pnpm/ox@0.14.30_typescript@6.0.3_zod@4.
|
|
639
|
+
// node_modules/.pnpm/ox@0.14.30_typescript@6.0.3_zod@4.6.7/node_modules/ox/_esm/core/version.js
|
|
640
640
|
var version = "0.1.1";
|
|
641
641
|
|
|
642
|
-
// node_modules/.pnpm/ox@0.14.30_typescript@6.0.3_zod@4.
|
|
642
|
+
// node_modules/.pnpm/ox@0.14.30_typescript@6.0.3_zod@4.6.7/node_modules/ox/_esm/core/internal/errors.js
|
|
643
643
|
function getVersion() {
|
|
644
644
|
return version;
|
|
645
645
|
}
|
|
646
646
|
|
|
647
|
-
// node_modules/.pnpm/ox@0.14.30_typescript@6.0.3_zod@4.
|
|
647
|
+
// node_modules/.pnpm/ox@0.14.30_typescript@6.0.3_zod@4.6.7/node_modules/ox/_esm/core/Errors.js
|
|
648
648
|
var BaseError = class _BaseError extends Error {
|
|
649
649
|
static setStaticOptions(options) {
|
|
650
650
|
_BaseError.prototype.docsOrigin = options.docsOrigin;
|
|
@@ -773,7 +773,7 @@ function walk(err, fn) {
|
|
|
773
773
|
return fn ? null : err;
|
|
774
774
|
}
|
|
775
775
|
|
|
776
|
-
// node_modules/.pnpm/ox@0.14.30_typescript@6.0.3_zod@4.
|
|
776
|
+
// node_modules/.pnpm/ox@0.14.30_typescript@6.0.3_zod@4.6.7/node_modules/ox/_esm/core/internal/bytes.js
|
|
777
777
|
var charCodeMap = {
|
|
778
778
|
zero: 48,
|
|
779
779
|
nine: 57,
|
|
@@ -792,7 +792,7 @@ function charCodeToBase16(char) {
|
|
|
792
792
|
return void 0;
|
|
793
793
|
}
|
|
794
794
|
|
|
795
|
-
// node_modules/.pnpm/ox@0.14.30_typescript@6.0.3_zod@4.
|
|
795
|
+
// node_modules/.pnpm/ox@0.14.30_typescript@6.0.3_zod@4.6.7/node_modules/ox/_esm/core/internal/hex.js
|
|
796
796
|
function assertSize(hex, size_) {
|
|
797
797
|
if (size(hex) > size_)
|
|
798
798
|
throw new SizeOverflowError({
|
|
@@ -814,7 +814,7 @@ function pad(hex_, options = {}) {
|
|
|
814
814
|
return `0x${hex[dir === "right" ? "padEnd" : "padStart"](size2 * 2, "0")}`;
|
|
815
815
|
}
|
|
816
816
|
|
|
817
|
-
// node_modules/.pnpm/ox@0.14.30_typescript@6.0.3_zod@4.
|
|
817
|
+
// node_modules/.pnpm/ox@0.14.30_typescript@6.0.3_zod@4.6.7/node_modules/ox/_esm/core/Hex.js
|
|
818
818
|
var hexes = /* @__PURE__ */ Array.from({ length: 256 }, (_v, i) => i.toString(16).padStart(2, "0"));
|
|
819
819
|
function fromBytes(value, options = {}) {
|
|
820
820
|
let string = "";
|
|
@@ -856,7 +856,7 @@ var SizeExceedsPaddingSizeError = class extends BaseError {
|
|
|
856
856
|
}
|
|
857
857
|
};
|
|
858
858
|
|
|
859
|
-
// node_modules/.pnpm/ox@0.14.30_typescript@6.0.3_zod@4.
|
|
859
|
+
// node_modules/.pnpm/ox@0.14.30_typescript@6.0.3_zod@4.6.7/node_modules/ox/_esm/core/Bytes.js
|
|
860
860
|
function from(value) {
|
|
861
861
|
if (value instanceof Uint8Array)
|
|
862
862
|
return value;
|
|
@@ -896,7 +896,7 @@ function toHex(value, options = {}) {
|
|
|
896
896
|
return fromBytes(value, options);
|
|
897
897
|
}
|
|
898
898
|
|
|
899
|
-
// node_modules/.pnpm/ox@0.14.30_typescript@6.0.3_zod@4.
|
|
899
|
+
// node_modules/.pnpm/ox@0.14.30_typescript@6.0.3_zod@4.6.7/node_modules/ox/_esm/core/Keystore.js
|
|
900
900
|
function pbkdf22(options) {
|
|
901
901
|
const { iv, iterations = 262144, password } = options;
|
|
902
902
|
const salt = options.salt ? from(options.salt) : random(32);
|
|
@@ -43,7 +43,7 @@ tenjin config set sessionBudget 2.00
|
|
|
43
43
|
The routing decision comes from a server, and each call costs a flat $0.003 from the wallet's channel, paid from deposits of up to $0.25 that count against the limits (the deposit is counted when it leaves the wallet, the fees from it are not counted again): it proposes, it never authorizes. These checks are what keep a wrong or hostile one from being worth anything:
|
|
44
44
|
|
|
45
45
|
- The routing fee is paid only by `tenjin mcp`, with the stock x402 client, and only at exactly $0.003 in USDC on Base over `batch-settlement`. The wallet has one routing channel. When it cannot cover the next fee, the call carries a deposit of $0.25. A deposit is an automatic payment: it is reserved in `spend.json` before it is signed, so it must fit `maxAutoSpend`, the day's `sessionBudget` and `allowlistCreators` (the router's host is the creator), and it is counted from the moment it is sent, so a lost answer or a killed process leaves it counted; only an answered 4xx or 5xx, on which the server settles nothing, gives it back. The deposit is the spend: the fees come out of it and are not counted again, so the day's running total never refuses one. Each fee still gets the per-payment checks: it has to fit `maxAutoSpend` (a 0 an earlier release let you set refuses it) and pass `allowlistCreators`, and a `sessionBudget` of 0 refuses it. A fee that fails one is not paid, even from a channel that is already funded, and the call takes the free path. Approving the limits at install, where the question names the fee, is what approves it.
|
|
46
|
-
- A routing call that cannot be paid takes the free path: the wallet holds less than the deposit, `tenjin mcp` cannot unlock the wallet
|
|
46
|
+
- A routing call that cannot be paid takes the free path, which routes nothing now that the router charges the fee: the wallet holds less than the deposit, `tenjin mcp` cannot unlock the wallet (no saved passphrase it can reach, a wrong one, or a locked keychain), a limit refuses the deposit, the payment fails, or the channel is carrying another session's call at that moment. Such a call tells you, in Claude Code's own message line, the reason and the fix (`tenjin wallet fund 5`, `tenjin wallet repair`, or `tenjin doctor`), once for each reason; the line changes when the reason does, and a funded or unlocked wallet is said once; a busy channel says nothing, and while the router charges no fee the wallet is not touched and nothing is said. The native tools are never blocked for it, and `tenjin doctor` names the same reasons, as the router Claude Code is running saw them when one is live. While the wallet definitely cannot sign (no wallet, or a wallet it cannot unlock), paid lookups are not offered, not even ones you could approve. While its balance is below the price, a curated lookup is not offered, and a discovered one is shown with a note to fund the wallet, so you are asked first; a subagent, which cannot ask you, is not offered either. When Tenjin cannot tell (a balance or keychain read fails), they are offered as before, and the spend checks still decide what is paid.
|
|
47
47
|
- A routing call that cannot reach the router (DNS, TLS, a refused connection, a proxy refusing the tunnel) makes every hook leg skip the router for the next 60 seconds, so the native tools run at once instead of each waiting out the gate. A call that runs out of its few seconds, a dropped socket (a paid call's is retried once on the free path) or an answer of any status does not start the pause. The pause is a timestamp under `~/.tenjin/router-memo/` that every session on the machine reads, beside the one-hour note that the router charges no fee, which ends as soon as the router says the fee is on. The pause ends after its 60 seconds, or at once when `tenjin doctor` reaches the router; while doctor cannot reach it either, it names the pause with the seconds left.
|
|
48
48
|
|
|
49
49
|
- The call's payments, together, have to fit `maxAutoSpend` and the day's `sessionBudget` unless you approved that call's quote, and each one is signed only against that plan, never above its planned amount. A live price above the one the decision quoted is refused before anything is signed, so a provider or a stale catalog cannot charge more than it advertised; a hostile server sets that quote itself, so against one the bound stays `maxAutoSpend`.
|
|
@@ -73,6 +73,15 @@ Review the live endpoint, recipient, network, asset and amount. `--ignore-warnin
|
|
|
73
73
|
tenjin pay https://api.example.com/quote --json --max-price 0.05
|
|
74
74
|
# After reviewing a registry warning and the live quote:
|
|
75
75
|
tenjin pay https://api.example.com/quote --json --max-price 0.05 --ignore-warnings --yes
|
|
76
|
+
# The 402 terms and the endpoint's advertised request shape, free; opens no wallet.
|
|
77
|
+
# Only a USDC option carries `usd`, and `payable: true` marks the one this wallet pays:
|
|
78
|
+
tenjin pay https://api.example.com/search -d '{"q":"x"}' --quote --json
|
|
79
|
+
# A header the endpoint asks for (a beta opt-in, an API version); never a payment or sign-in header:
|
|
80
|
+
tenjin pay https://api.example.com/search -d '{"q":"x"}' -H 'X-Api-Beta: 2026-08-28' --max-price 0.05 --yes
|
|
81
|
+
# -X takes GET, POST, PUT, PATCH or DELETE; a body needs POST, PUT or PATCH:
|
|
82
|
+
tenjin pay https://api.example.com/items/7 -X PATCH -d '{"name":"y"}' --max-price 0.05 --yes
|
|
83
|
+
# A body that is not JSON goes byte for byte, under the Content-Type you pass with it:
|
|
84
|
+
tenjin pay https://api.example.com/form --data-raw 'a=1' -H 'Content-Type: application/x-www-form-urlencoded' --max-price 0.05 --yes
|
|
76
85
|
```
|
|
77
86
|
|
|
78
87
|
Both flags still obey the optional explicit `--max-price` cap, destination and supported-challenge checks, and the authoritative wallet balance check. Warnings and acknowledgement status remain in JSON output. Each paid invocation can spend again; nothing deduplicates repeat payments. Free or SIWX-entitled delivery needs neither warning acknowledgement nor a payment balance read.
|
|
@@ -85,14 +94,15 @@ Immediately before signing a positive payment, the CLI reads the actual signer's
|
|
|
85
94
|
|
|
86
95
|
Each of these is a decision a person makes, so none is in the rule set and none should be added without meaning it:
|
|
87
96
|
|
|
88
|
-
| Verb | Why it stays a human decision
|
|
89
|
-
| ---------------------- |
|
|
90
|
-
| `tenjin wallet send` | Moves USDC out of the wallet and is not bounded by the spend policy.
|
|
91
|
-
| `tenjin wallet create` | Creates the payment credential.
|
|
92
|
-
| `tenjin
|
|
93
|
-
| `tenjin
|
|
94
|
-
| `tenjin
|
|
95
|
-
| `tenjin
|
|
97
|
+
| Verb | Why it stays a human decision |
|
|
98
|
+
| ---------------------- | -------------------------------------------------------------------------------------------------------------------- |
|
|
99
|
+
| `tenjin wallet send` | Moves USDC out of the wallet and is not bounded by the spend policy. |
|
|
100
|
+
| `tenjin wallet create` | Creates the payment credential. |
|
|
101
|
+
| `tenjin wallet repair` | Saves the passphrase that unlocks the payment credential; a person types it, and it can replace what the store held. |
|
|
102
|
+
| `tenjin config set` | It can widen the agent's own spend policy. |
|
|
103
|
+
| `tenjin install` | Writes into harness config. |
|
|
104
|
+
| `tenjin uninstall` | Removes the wiring the harness is running on. |
|
|
105
|
+
| `tenjin update` | Replaces the binary the agent then runs. |
|
|
96
106
|
|
|
97
107
|
Prefer the narrow rules on this page to a broad `Bash(tenjin:*)`, `Bash(tenjin wallet:*)` or `Bash(tenjin config:*)`, each of which swallows the table above.
|
|
98
108
|
|
|
@@ -109,26 +119,32 @@ So the agent asks the spend question, runs the one install command your answer n
|
|
|
109
119
|
|
|
110
120
|
Claude Code 2.1.287 or later is required. `tenjin install` and `tenjin doctor` read `claude --version`, and on an older one say to run `claude update` in the session.
|
|
111
121
|
|
|
112
|
-
1. A wallet, when this machine has none (`--no-wallet` skips it).
|
|
122
|
+
1. A wallet, when this machine has none (`--no-wallet` skips it). Install says in one line where it saved the passphrase. It never marks with a ✓ a wallet Claude Code could not unlock (it names `tenjin wallet repair` instead), or one that signs only through `TENJIN_WALLET_KEY` or `TENJIN_WALLET_PASSPHRASE` in the shell you ran install from (it says Claude Code needs the same variable).
|
|
113
123
|
2. The two automatic spend limits above, only where your config file is silent, and only after you answer the question in a terminal. When your agent runs the install, it writes neither and the defaults hold: your agent asks you the same question and runs the one install command your answer names (see [When your agent runs the install](#when-your-agent-runs-the-install)). Explicit zero, unlimited, custom registry lists and router opt-outs are preserved. Ignored `bazaarPay` and `confirm` keys are removed and reported; refresh removes retired keys without filling absent settings.
|
|
114
|
-
3.
|
|
124
|
+
3. Tenjin's own runtime, in `~/.tenjin/runtime`, so that switching or removing Node, or `npm rm -g tenjin-cli`, does not stop it: a copy of this build in `versions/<version>`, and a pinned Node 24 in `node/<version>`, downloaded from nodejs.org and checked against the SHA-256 this build carries. Install runs the copy on that Node to check it before anything points at it. It also puts a `tenjin` command in `~/.local/bin` (and `tenjin.cmd` on Windows): a short launcher that runs the copy on that Node, and says how to reinstall when the runtime is gone. A file there that is not Tenjin's launcher, or npm's own link, is left as it is. Install edits no shell file; when `~/.local/bin` is not on your PATH it prints the line to add. Under a `TENJIN_DATA_DIR` other than `~/.tenjin`, on a platform with no pinned Node (musl, or glibc older than 2.28), or when a step fails, there is no runtime and the plugin runs as in earlier releases, from the npm package's own folder on the `node` on your PATH; install says why, and after a failed step, running `tenjin install` again retries.
|
|
125
|
+
4. The Claude Code plugin `tenjin`, registered with Claude Code's own commands, which leave no step to you: `claude plugin marketplace add ~/.tenjin/runtime/claude` and then `claude plugin install tenjin@tenjin` (with `--scope local` under `--project`, so only this project loads it), and `claude plugin update tenjin@tenjin` when Claude Code holds an older version. The marketplace is the runtime's `claude` folder, read in place, so the plugin is the build you installed, and an update only rewrites that folder. Claude Code keeps one `tenjin` marketplace for the whole machine, so this one `add` also moves a project install made by an earlier release. Claude Code writes `extraKnownMarketplaces` and `enabledPlugins` into its settings; this CLI writes nothing into `settings.json` or `~/.claude.json` itself. The binary is `claude` on PATH, else the one Claude Code names in `CLAUDE_CODE_EXECPATH`; with neither, or when a `claude plugin` command fails, the same plugin is written as a folder, `skills/tenjin-router/` under Claude Code's config directory (`$CLAUDE_CONFIG_DIR` when set, else `~/.claude`), which Claude Code loads as `tenjin@skills-dir` with no command at all. `skills/tenjin`, where tenjin.sh suggests dropping its hosted skill, is never touched, and in the folder only the plugin's own five files are ever written or removed. The plugin carries:
|
|
115
126
|
- Seven hook legs, each a Claude Code `mcp_tool` hook that calls the `hook` tool of the plugin's `router` server with the event's fields: `UserPromptSubmit`, `PreToolUse` on `WebSearch|WebFetch`, `PreToolUse` on `Agent|Task`, `PostToolUse` and `PostToolUseFailure` on `WebSearch|WebFetch`, and `PreToolUse` and `PostToolUse` on `AskUserQuestion`. So each routing step runs inside the session's own `tenjin mcp`, the one process that holds the wallet. That tool reads history only from a file whose real path, symlinks resolved, lies under Claude Code's projects directory (`$CLAUDE_CONFIG_DIR/projects` when that variable is set, else `~/.claude/projects/`) and that is named for the calling session or one of its subagents; a session's first prompt, which fires before that transcript is written, routes on the prompt alone, and any other call reads, sends and pays nothing. Each has a 5 second timeout, so a stuck server never holds a prompt longer, and the two after-call entries on `WebSearch|WebFetch` 15 seconds so a search can wait for the free docs described below. A call that carries a routing channel's deposit waits 4.5 of those seconds instead of 3.5, and a routing payment still out when its time ends says nothing: that prompt runs on the native tools while `tenjin mcp` lets the request finish, for 15 seconds at most, so the channel records it; a deposit in it was counted in the spend ledger when it was sent. A session where the `router` server is not running routes nothing, and its native tools run. No daemon, no generated script; the one background process is that docs fetch, a single `node` process per such search that exits within 12 seconds. `tenjin hook <prompt|native|shortfall|agent|ask|answer>` still exists for a host with no MCP server, and always takes the free path.
|
|
116
127
|
- The two permission answers above. No hook approves any other call, so WebSearch and WebFetch stay under your own permission rules. Before each one, when a paid lookup fits it, the hook redirects your assistant to `mcp__plugin_tenjin_router__request` in its place; a subagent is redirected only when it is known to have that tool and your spend policy would pay without asking, and otherwise its call simply runs. For library documentation, which is a free lookup, it never redirects, in the main agent or a subagent: a WebSearch runs as your assistant wrote it while the hook fetches Context7 docs for the same query (up to 500 characters of it go to Tenjin's docs lookup, which asks Context7), and when docs are found they are added above the search's own results, with a line saying the web results below are there if the docs do not cover it; when none are found, or the lookup is slow or fails, the search result is left exactly as it was. One agent's identical search is not looked up again for five minutes, and the fetched docs wait in a 0700 directory under your Tenjin data dir only until that search reads them, ten minutes at most. A WebFetch with a free lookup simply runs. It never redirects the same call twice: once a search or URL has been redirected, your assistant's own retry of that same search or URL runs as it is, whether the redirected lookup succeeded, failed or was never called, and however many other calls ran in between, for ten minutes and separately for each agent, while every other search or URL is routed as usual. After a call that came back short (a failed call, a page that answers 401, 402, 403, 429 or 5xx, an empty page, a search with no results; never a 404 or 410, since a missing page is missing for a paid reader too), the router may offer a paid lookup.
|
|
117
|
-
- One `SessionStart` command, `tenjin hook alive`, run
|
|
128
|
+
- One `SessionStart` command, `tenjin hook alive`, run by the runtime's Node with the runtime's `dist/index.js`, which writes two small files under `~/.tenjin/alive/`: a marker for the session (a hash of its id) and a stamp saying the plugin has loaded on this machine. When `wallet.json` cannot be read, or the passphrase file Tenjin saved is gone, it prints one message for you with the reason and the fix, and one line for your assistant. Otherwise, while the wallet holds less than the per-call limit, it shows you one line, `Tenjin balance: $0.00. Ask your agent to add funds to Tenjin.`, with no wallet address; to know, it reads the balance once from your configured Base RPC (the public ones when you set none), at most two seconds, and adds nothing to your assistant's context. Anything else about the wallet, and the "Tenjin wallet unlocked" confirmation after a repair, comes from the router on the session's first prompt.
|
|
118
129
|
- A mod (`hooks/register.tsx`, with its state contract in `types/index.d.ts`), which Claude Code runs in the terminal, the desktop app and VS Code. It reads three kinds of file the CLI already keeps under `~/.tenjin`: a kept spec's label, price and the one input a row may show; a choice set's option names; and the offer record of a redirected call, plus the request tool's own result, and writes nothing there. It draws each lookup the way Claude Code draws an MCP call: `⏺ Calling Exa search… · $0.007` with the query under it while it runs, then the dim `Called Exa search · $0.007 (ctrl+o to expand)`. In the ctrl+o transcript, under `--verbose`, or in a run Claude Code expands, every call to the router, the ones the normal view hides included, is Claude Code's own row with its input and result. A lookup over a spend limit draws no row of its own; the `approve` call that runs it once you say yes draws as that lookup (`Calling Exa search… · $0.775`, then `Called Exa search · $0.775`). A call that failed after paying shows the error dot, the amount and the state. A call the router sends back for a missing field, and the router's own free calls, draw nothing. It shows an input only when it names what was looked up (a query, a URL, a name, at most 80 characters), never a media prompt, so an image call reads `Called Ideogram V4 · $0.03`. A run that mixes a lookup with other calls is drawn unfolded, each call its own row. A WebSearch or WebFetch held for a Tenjin offer shows as its native row struck through, `⏺ ~~Web Search~~("query") · Tenjin offered Exa search`, then becomes, in place, the lookup drawn as a built-in row would be, `⏺ Exa search("query") · $0.007`, or disappears if your assistant runs the same search itself. It answers no permission question, rewrites no prompt, denies nothing, writes no config and answers no tool call. The request tool stays in the prompt's tool list through the server's own `anthropic/alwaysLoad`, and the permission answer above allows it.
|
|
119
|
-
- The `router` MCP server, `tenjin mcp --plugin`, run
|
|
130
|
+
- The `router` MCP server, `tenjin mcp --plugin`, run the same way, never by the `node` on your PATH.
|
|
131
|
+
- `bin/tenjin`, the same launcher as `~/.local/bin/tenjin`. Claude Code puts the plugin's `bin/` at the end of the Bash tool's PATH, so your assistant's `tenjin` is this one when nothing earlier on PATH is named `tenjin`.
|
|
120
132
|
|
|
121
|
-
Every command the plugin carries is a Claude Code exec-form command:
|
|
133
|
+
Every command the plugin carries is a Claude Code exec-form command: the absolute path of the runtime's Node and the absolute path of its `dist/index.js`, started with no shell and never through the `tenjin` npm shim or a launcher, so Windows runs the same files macOS and Linux run. Without a runtime the command is `node` from your PATH, and the plugin finds the entry three folders above `${CLAUDE_PLUGIN_ROOT}`, since Claude Code loads it in place from the package. The `skills/tenjin-router/` folder carries the absolute entry of the CLI that wrote it.
|
|
122
134
|
|
|
123
|
-
|
|
135
|
+
5. Nothing else. The status line is no longer set up: `tenjin status-line` still exists, and you can set it as your status line command yourself.
|
|
124
136
|
|
|
125
137
|
**An install from an earlier release** wrote seven hook entries, the `mcp__x402__request` allow rule, the `mcp__x402__hook` deny rule and possibly a `statusLine` into your settings, and registered an `x402` MCP server. On a Claude Code older than 2.1.287, install and `tenjin update` do not register the plugin at all while that install is there, and say so: the old install keeps routing until `claude update` and the next `tenjin install`. Otherwise it keeps working until the plugin has proven to load on this machine: Claude Code at 2.1.287 or later lists the plugin enabled, and its `SessionStart` leg has run in a real session. Until then both stay, and in any session the plugin serves, the old entries say nothing, so nothing is offered twice. The next `tenjin install` or `tenjin update` after that removes the old install, and only in the exact shapes it wrote: a hook handler that calls the `x402` server's `hook` tool or is exactly `tenjin hook <leg>`, the two rules (only when the `x402` server is Tenjin's or gone), a status line that runs `tenjin status-line` (a composition is put back to your own command; install and `tenjin update` both name the status line they removed, and you can set `tenjin status-line` again yourself), and the `x402` server, through `claude mcp remove x402`, only after this CLI read that entry and found it launching `tenjin mcp`. A command that only mentions `tenjin hook`, a handler of yours in the same group, your own rules and your own `x402` server stay, and doctor names what it left alone. This migration is removed on or after 2026-12-01; doctor keeps naming an unmigrated machine after that.
|
|
126
138
|
|
|
127
|
-
Install then sends the router one empty, unsigned request to check that this machine can reach it. When it cannot, install still succeeds, and it names the layer that refused (a proxy, DNS, TLS, or the connection) with the fix. `tenjin doctor` runs the same check. Both also look for running `tenjin mcp` processes that started before this install: Claude Code keeps an MCP server for the whole session, so one of those still runs the old build, and the new hooks can fail there with "Tool hook not found". They name the count and the fix (
|
|
139
|
+
Install then sends the router one empty, unsigned request to check that this machine can reach it. When it cannot, install still succeeds, and it names the layer that refused (a proxy, DNS, TLS, or the connection) with the fix. `tenjin doctor` runs the same check. Both also look for running `tenjin mcp` processes that started before this install: Claude Code keeps an MCP server for the whole session, so one of those still runs the old build, and the new hooks can fail there with "Tool hook not found". They name the count and the fix (start a new Claude Code session) and stop nothing.
|
|
128
140
|
|
|
129
|
-
The
|
|
141
|
+
The plugin carries one skill, `tenjin-pay`. It teaches an agent to quote an endpoint for free first, cap the price at the option this wallet would pay, and pay only with your consent to that quote, using this machine's wallet rather than another tool's, with any of the five methods and a JSON or raw body. Install and refresh still remove only an owned obsolete `tenjin-pay` skill file an earlier release wrote under your Claude config folder, preserving adjacent user files and foreign skills.
|
|
130
142
|
|
|
131
|
-
After install,
|
|
143
|
+
After install, start a new Claude Code session, and the plugin loads. `/reload-plugins` does not run the plugin's `SessionStart`, so it is not enough.
|
|
144
|
+
|
|
145
|
+
`tenjin update` needs no npm. It downloads the newest `tenjin-cli` from the npm registry and checks it against the registry's SHA-512, fetches the Node that version pins, and has the new build check itself on that Node before it switches anything; a version that fails the check is not used, and the current one keeps running. The version it replaces stays in the runtime, and an older version is removed only once nothing runs from it. An older build never replaces a newer one; to go back, run `tenjin uninstall`, then install the older version.
|
|
146
|
+
|
|
147
|
+
`tenjin uninstall` removes the install for where you are, from any folder: the project install made in the folder you are in or the nearest folder above it, or else the user install. `tenjin uninstall --project <path>` removes another project's install, and `tenjin uninstall --all` removes every one. For each, it runs `claude plugin uninstall tenjin@tenjin` in that install's scope, unlinks the plugin folder's own files, and removes an earlier release's settings install under the rules above. The `tenjin` marketplace, the runtime and the launchers go only when no install is left anywhere, and a run is all or nothing: when one removal fails, those stay, and uninstall names what it removed and what is left. It ends by saying what it kept: your wallet, with its address, the spend ledger, the config, and where the passphrase is saved. Run it before `npm uninstall -g tenjin-cli`, never after; if npm went first, `~/.local/bin/tenjin uninstall --all` still works.
|
|
132
148
|
|
|
133
149
|
To stop the router without removing anything, `tenjin config set router.enabled false` stops it on this machine, and `tenjin config set --project router.enabled false` stops it in this repository. Off means no router hook reads or sends anything and the `request` tool refuses without paying. The project value lives in `<project>/.tenjin/config.json`, which you commit; `--project --local` writes `.tenjin/config.local.json` beside it instead, which is yours alone and belongs in `.gitignore`. Every such file from where the session runs up to the git root applies, and in a git worktree so do the main checkout's; a key a file leaves out is inherited from the files around it. A project file can only turn the router off or narrow what it sends; it cannot enable anything or change a spend setting. From a git worktree, `config set --project` writes at the worktree's own root, never the main checkout's file, though the router reads both.
|
|
134
150
|
|
|
@@ -168,7 +184,9 @@ The answer can put one line into your session, or into a task your assistant del
|
|
|
168
184
|
|
|
169
185
|
## Wallet passphrase storage
|
|
170
186
|
|
|
171
|
-
The private key is generated on your machine and stored encrypted in `~/.tenjin/wallet.json`. Its passphrase is `TENJIN_WALLET_PASSPHRASE` when you set one,
|
|
187
|
+
The private key is generated on your machine and stored encrypted in `~/.tenjin/wallet.json`. Its passphrase is the first of these that opens it: `TENJIN_WALLET_PASSPHRASE` when you set one, else the passphrase Tenjin saved. Tenjin saves it the way the GitHub CLI saves its token: in the platform's own credential store where there is one (Keychain on macOS, Secret Service on Linux, DPAPI on Windows), and otherwise in a file only you can read (`~/.tenjin/passphrase.<address>.plain`, mode 0600). `tenjin wallet create --insecure-storage` picks the file even where a keychain exists; it is a choice you make, never the fix for a locked keychain. A passphrase you give in `TENJIN_WALLET_PASSPHRASE` when the wallet is created is saved the same way, so Claude Code does not need the variable afterwards. `tenjin wallet create` and `tenjin install` say in one line where it went. That choice is recorded in `~/.tenjin/passphrase-store.json`, beside the wallet. `wallet.json` itself is never rewritten, so an older CLI still reads it, and with no such record Tenjin behaves as it did before. The file is the trade-off: anyone who can read your home folder as you can open this wallet, which is one more reason to keep it a pocket-money wallet. A keychain that does not answer never stalls Claude Code: a lookup stops waiting within its time budget and takes the free path, while the keychain request stays open so you can answer an unlock prompt. Saving a passphrase waits up to 10 seconds, or up to a minute at a terminal, where it says it is waiting. A locked keychain is fixed by unlocking it (or logging in to the desktop session) and retrying; Tenjin never quietly switches to the file or to another passphrase. A `TENJIN_WALLET_PASSPHRASE` that does not open the wallet no longer blocks it: the saved passphrase is tried next, and Claude Code tells you once that the variable is set but wrong and to remove it. A correct variable still wins.
|
|
188
|
+
|
|
189
|
+
A wallet whose passphrase was never saved is fixed with `tenjin wallet repair`, which is never pre-approved for an agent: you run it. (Before 0.1.0-alpha.31, a passphrase given in the variable when the wallet was created was never saved, and one typed at the create prompt was not saved either, since create prompted only when no keychain answered.) Run it yourself in a terminal: it asks for the passphrase there (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 checks that the passphrase opens the wallet (the address does not change), saves it as above, and names a `TENJIN_WALLET_PASSPHRASE` in that shell that conflicts with it. Then it tells you to start a new Claude Code session. Saving is not the proof: the next session says "Tenjin wallet unlocked", or why not, and `tenjin doctor` shows what that session's router saw. See [Troubleshooting](./troubleshooting.md).
|
|
172
190
|
|
|
173
191
|
Decryption happens in this CLI, in a disposable worker thread, and the key never leaves the process. `tenjin mcp` decrypts once at start so a lookup does not wait for it, holds the signer for the session, and exits with the session.
|
|
174
192
|
|
|
@@ -186,11 +204,11 @@ A subagent is only redirected or offered a lookup when it is known to have `mcp_
|
|
|
186
204
|
|
|
187
205
|
## Codex
|
|
188
206
|
|
|
189
|
-
`tenjin install` sets up Codex when Codex's agent runs it, or in a terminal when this machine has Codex (`codex --version` must answer; a name on PATH is not enough). With both Claude Code and Codex there, a terminal install asks which, both selected; `--yes`, `--json` or no terminal takes both. `--harness claude|codex` picks one instead. An agent's install that also finds the other agent ends with one line, in `notices`, telling the agent to ask whether to set up Tenjin there too and, on yes, to run `tenjin install --harness <other>`. Install records the agents it set up in `installed-hosts.json` in your Tenjin data dir, and `tenjin doctor` and `tenjin uninstall` check or remove each one recorded (Claude Code on a machine set up before the record). For Codex, install writes the wallet, the spend limits and the Codex plugin through `codex plugin add`, and no Codex config. Its spend limits follow the same defaults as Claude Code: `--yes` takes them, `--max-auto-spend <usd>` (at least 0.25) and `--session-budget <usd|none>` set your own, and a terminal asks once while the config file names neither limit. With no answer it writes neither, the defaults ($0.25 a call, $5 a day) hold, and the spend question comes back in `nextSteps` with `tenjin install` as its command. The plugin carries
|
|
207
|
+
`tenjin install` sets up Codex when Codex's agent runs it, or in a terminal when this machine has Codex (`codex --version` must answer; a name on PATH is not enough). With both Claude Code and Codex there, a terminal install asks which, both selected; `--yes`, `--json` or no terminal takes both. `--harness claude|codex` picks one instead. An agent's install that also finds the other agent ends with one line, in `notices`, telling the agent to ask whether to set up Tenjin there too and, on yes, to run `tenjin install --harness <other>`. Install records the agents it set up in `installed-hosts.json` in your Tenjin data dir, and `tenjin doctor` and `tenjin uninstall` check or remove each one recorded (Claude Code on a machine set up before the record). For Codex, install writes the wallet, the spend limits and the Codex plugin through `codex plugin add`, and no Codex config. Where Tenjin's runtime is set up, the plugin is added from `~/.tenjin/runtime/codex`, and its server runs the `tenjin` launcher in that folder by absolute path, so a Node upgrade or `npm rm -g tenjin-cli` does not stop it and an update changes nothing Codex has trusted; its hooks name no path at all. Otherwise the server runs `tenjin` from your PATH, as before. Moving an existing Codex plugin to the runtime moves its hooks file, and install turns those hooks on again as below. Its spend limits follow the same defaults as Claude Code: `--yes` takes them, `--max-auto-spend <usd>` (at least 0.25) and `--session-budget <usd|none>` set your own, and a terminal asks once while the config file names neither limit. With no answer it writes neither, the defaults ($0.25 a call, $5 a day) hold, and the spend question comes back in `nextSteps` with `tenjin install` as its command. The plugin carries five hooks. Three are routing legs: the prompt, and one web call (a search, a page open, or a batch of them) before it runs and after, where a batch is blocked at most once and the block names the rest of the call to run as written. Each leg is an `mcp_tool` hook that Codex sends to the plugin's `router` server, the same `tenjin mcp` that carries the request tool, so the leg pays the $0.003 routing fee from your wallet under your spend limits, as a request does; these need Codex 0.149.0 or later, and on an older Codex install and update leave its plugin copy as it is. The fourth is a `PreToolUse` hook that denies `mcp__router__hook` to your assistant, since only the hooks call that tool. The fifth is a `PermissionRequest` hook on `mcp__router__request` that answers allow. That last hook is how the request tool runs without a prompt, `approval_policy = "never"` included: Codex runs hooks before its approval policy. It covers the request tool alone, and your spend limits still bound every payment. Install turns the five hooks on, as installing a Claude Code plugin does: it reads Tenjin's own rows and the hash Codex computed for each from Codex's app server, writes them as trusted through the same `config/batchWrite` call `/hooks` makes, and reads them back to confirm. It never computes a hash, never touches another tool's hook, and leaves a hook you turned off in `/hooks` off. If that step fails, install says to approve Tenjin's hooks in `/hooks`.
|
|
190
208
|
|
|
191
|
-
The trade-off: the allow hook also overrides your own `approval_mode = "prompt"` for the request tool. To be asked before each call, turn that one hook off in `/hooks`; `tenjin doctor` then reports that the tool asks first, and under `approval_policy = "never"` that Codex refuses it. With that hook off, the router still blocks a web search once to point at the request tool. Where Codex then asks or refuses, a retry of that search runs: each search is blocked once at most, so the cost is one extra step. `tenjin uninstall` removes the plugin and its marketplace.
|
|
209
|
+
The trade-off: the allow hook also overrides your own `approval_mode = "prompt"` for the request tool. To be asked before each call, turn that one hook off in `/hooks`; `tenjin doctor` then reports that the tool asks first, and under `approval_policy = "never"` that Codex refuses it. With that hook off, the router still blocks a web search once to point at the request tool. Where Codex then asks or refuses, a retry of that search runs: each search is blocked once at most, so the cost is one extra step. `tenjin doctor` also checks, with nothing paid or sent, that the routing legs reach the `router` server and that your Codex can run them. A plugin copy from an earlier release runs its legs as commands, which cannot pay the routing fee and so route nothing, and the first prompt of each session says so. `tenjin update` replaces such a copy, only where Codex already has the plugin, and turns its new hooks on the same way; when it cannot, it prints one line saying to approve Tenjin's hooks in `/hooks`, and the update itself still succeeds. `tenjin uninstall` removes the plugin and its marketplace.
|
|
192
210
|
|
|
193
211
|
## Other settings
|
|
194
212
|
|
|
195
213
|
- `tenjin wallet send <amount> USDC <address>` moves funds out. It needs a per-send cap (`tenjin config set sendMaxAmount <usd>`) and a little ETH on Base for gas.
|
|
196
|
-
-
|
|
214
|
+
- Where Tenjin's runtime is set up, Tenjin updates itself at most once a day, the way `tenjin update` does: at the start of a Claude Code session, or as a Codex session ends, it starts that update in the background on the runtime's own Node, which checks the new version before switching to it, keeps the previous one, never moves to an older one and never runs npm. Both Claude Code and Codex run the new version from their next session. `tenjin doctor` shows the last result. `tenjin config set update.mode nudge` only reports a newer version, and `off` stops the check. Without a runtime, the CLI checks npm at most once a day and reports a newer version.
|
package/docs/safety-model.md
CHANGED
|
@@ -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
|
|
package/docs/troubleshooting.md
CHANGED
|
@@ -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
|
+
Install it again with npx, which does not need a working `tenjin`:
|
|
43
|
+
|
|
44
|
+
```bash
|
|
45
|
+
npx -y tenjin-cli@latest install
|
|
46
|
+
```
|
|
47
|
+
|
|
48
|
+
For a project install, run `npx -y tenjin-cli@latest install --project` in that project instead. Then start a new Claude Code session. 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. The fix is the same: run `npx -y tenjin-cli@latest install` (with `--project` for a project install), then start a new Claude Code session.
|
|
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
|
|
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.
|
|
3
|
+
"version": "0.1.0-alpha.32",
|
|
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,6 +31,19 @@
|
|
|
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",
|
package/dist/ccip-NLCSCHKI.js
DELETED
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import { createRequire as __tenjinCreateRequire } from 'node:module'; const require = __tenjinCreateRequire(import.meta.url);
|
|
2
|
-
import {
|
|
3
|
-
ccipRequest,
|
|
4
|
-
offchainLookup,
|
|
5
|
-
offchainLookupAbiItem,
|
|
6
|
-
offchainLookupSignature
|
|
7
|
-
} from "./chunk-5IEP5EGE.js";
|
|
8
|
-
import "./chunk-EGELTSPU.js";
|
|
9
|
-
import "./chunk-KG3D7FIF.js";
|
|
10
|
-
import "./chunk-RBJPAZFI.js";
|
|
11
|
-
import "./chunk-BPMWXTFX.js";
|
|
12
|
-
import "./chunk-ZXTAQYNA.js";
|
|
13
|
-
export {
|
|
14
|
-
ccipRequest,
|
|
15
|
-
offchainLookup,
|
|
16
|
-
offchainLookupAbiItem,
|
|
17
|
-
offchainLookupSignature
|
|
18
|
-
};
|
|
19
|
-
//# sourceMappingURL=ccip-NLCSCHKI.js.map
|