tenjin-cli 0.1.0-alpha.33 → 0.1.0-alpha.35
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/NOTICE.md +110 -0
- package/README.md +87 -81
- package/dist/{_esm-BIN7VY2L.js → _esm-2KST7HQ7.js} +7 -7
- package/dist/alive-5TV22PNF.js +51 -0
- package/dist/auth-XI7BJFLW.js +47 -0
- package/dist/{auto-update-Y24UL56V.js → auto-update-7L24KDWA.js} +4 -5
- package/dist/balance-DFHC6XEU.js +71 -0
- package/dist/{ccip-DHDFKTQV.js → ccip-HOW3DZYF.js} +4 -4
- package/dist/chunk-24XKUN2S.js +202 -0
- package/dist/chunk-24XKUN2S.js.map +1 -0
- package/dist/chunk-2L7TDGLV.js +56 -0
- package/dist/chunk-2L7TDGLV.js.map +1 -0
- package/dist/{chunk-C2Q76BVM.js → chunk-2U7H35IP.js} +29 -7
- package/dist/chunk-2U7H35IP.js.map +1 -0
- package/dist/chunk-2W4DQQUU.js +176 -0
- package/dist/chunk-2W4DQQUU.js.map +1 -0
- package/dist/{chunk-LRW6S53P.js → chunk-34SAECKZ.js} +35 -11
- package/dist/chunk-34SAECKZ.js.map +1 -0
- package/dist/{chunk-2I4QTOLB.js → chunk-3MZ7DYRO.js} +1 -1
- package/dist/chunk-3MZ7DYRO.js.map +1 -0
- package/dist/{chunk-RVPYTUP4.js → chunk-3Y2EHT4F.js} +13 -9
- package/dist/chunk-3Y2EHT4F.js.map +1 -0
- package/dist/chunk-3Y6BHIN6.js +169 -0
- package/dist/chunk-3Y6BHIN6.js.map +1 -0
- package/dist/{chunk-4K7TQHNP.js → chunk-3YPL6T3P.js} +17 -33
- package/dist/chunk-3YPL6T3P.js.map +1 -0
- package/dist/{chunk-E7SW44LM.js → chunk-44MVIRZH.js} +121 -6
- package/dist/chunk-44MVIRZH.js.map +1 -0
- package/dist/chunk-45MMSBHA.js +321 -0
- package/dist/chunk-45MMSBHA.js.map +1 -0
- package/dist/{chunk-3FMZGI7I.js → chunk-4CE6TMI5.js} +1 -1
- package/dist/chunk-4CE6TMI5.js.map +1 -0
- package/dist/{chunk-QXP3Z3JN.js → chunk-4MBCJFY4.js} +35 -3
- package/dist/chunk-4MBCJFY4.js.map +1 -0
- package/dist/chunk-4TPL54KW.js +227 -0
- package/dist/chunk-4TPL54KW.js.map +1 -0
- package/dist/chunk-54ELBTKE.js +1615 -0
- package/dist/chunk-54ELBTKE.js.map +1 -0
- package/dist/{chunk-NDGZDTSJ.js → chunk-5F4OB5B3.js} +115 -57
- package/dist/chunk-5F4OB5B3.js.map +1 -0
- package/dist/chunk-5HN4KVQU.js +3348 -0
- package/dist/chunk-5HN4KVQU.js.map +1 -0
- package/dist/{chunk-ZDZERB6L.js → chunk-5J4E5GYI.js} +572 -407
- package/dist/chunk-5J4E5GYI.js.map +1 -0
- package/dist/{chunk-ZNNXRNFD.js → chunk-5N4GGUBN.js} +48 -6
- package/dist/chunk-5N4GGUBN.js.map +1 -0
- package/dist/chunk-5USBZ2MU.js +58 -0
- package/dist/chunk-5USBZ2MU.js.map +1 -0
- package/dist/chunk-64WOMNYR.js +183 -0
- package/dist/chunk-64WOMNYR.js.map +1 -0
- package/dist/{chunk-ILNIZ5I2.js → chunk-65RS4LQS.js} +1825 -1715
- package/dist/chunk-65RS4LQS.js.map +1 -0
- package/dist/{chunk-IE7P2BZE.js → chunk-6QMDUDF2.js} +3 -3
- package/dist/{chunk-IADZOXKN.js → chunk-7SLOTLO7.js} +19 -697
- package/dist/chunk-7SLOTLO7.js.map +1 -0
- package/dist/{chunk-WFSPCCVW.js → chunk-7V25UAQO.js} +99 -99
- package/dist/{chunk-WFSPCCVW.js.map → chunk-7V25UAQO.js.map} +1 -1
- package/dist/chunk-BGA4DO5M.js +719 -0
- package/dist/chunk-BGA4DO5M.js.map +1 -0
- package/dist/chunk-BVP7YK2J.js +706 -0
- package/dist/chunk-BVP7YK2J.js.map +1 -0
- package/dist/chunk-C265QIMJ.js +83 -0
- package/dist/chunk-C265QIMJ.js.map +1 -0
- package/dist/{chunk-XQJXNMSB.js → chunk-CRG54LEB.js} +1 -1
- package/dist/chunk-CRG54LEB.js.map +1 -0
- package/dist/{chunk-KG3D7FIF.js → chunk-CZJOMUBP.js} +2 -2
- package/dist/{chunk-36RVGZNY.js → chunk-D6M3ZK66.js} +22 -39
- package/dist/chunk-D6M3ZK66.js.map +1 -0
- package/dist/{chunk-3UCIG4TG.js → chunk-DI4QAGRZ.js} +1 -11
- package/dist/chunk-DI4QAGRZ.js.map +1 -0
- package/dist/{chunk-JKKAIPTU.js → chunk-DIH2G3YG.js} +47 -10
- package/dist/chunk-DIH2G3YG.js.map +1 -0
- package/dist/chunk-DJ36BM62.js +78 -0
- package/dist/chunk-DJ36BM62.js.map +1 -0
- package/dist/chunk-DTEWAVNE.js +114 -0
- package/dist/chunk-DTEWAVNE.js.map +1 -0
- package/dist/chunk-F2KJAJ7T.js +13 -0
- package/dist/chunk-F2KJAJ7T.js.map +1 -0
- package/dist/{chunk-BF4XHEQK.js → chunk-F3QPGYOY.js} +6 -6
- package/dist/chunk-F3QPGYOY.js.map +1 -0
- package/dist/{chunk-3GNJXKIT.js → chunk-F43CV6UC.js} +2 -2
- package/dist/{chunk-J57UC3DD.js → chunk-FKVJKLPI.js} +3 -3
- package/dist/{chunk-V2LQLN5H.js → chunk-FYFHH7V5.js} +59 -8
- package/dist/{chunk-V2LQLN5H.js.map → chunk-FYFHH7V5.js.map} +1 -1
- package/dist/chunk-GAJC4BQZ.js +1096 -0
- package/dist/chunk-GAJC4BQZ.js.map +1 -0
- package/dist/{chunk-DOQGNFHM.js → chunk-GH5UKMZD.js} +2 -12
- package/dist/{chunk-DOQGNFHM.js.map → chunk-GH5UKMZD.js.map} +1 -1
- package/dist/{chunk-WYXUQGOL.js → chunk-HAZAN4UM.js} +7 -6
- package/dist/chunk-HAZAN4UM.js.map +1 -0
- package/dist/chunk-HI5XQOX2.js +393 -0
- package/dist/chunk-HI5XQOX2.js.map +1 -0
- package/dist/chunk-HKGUKAQW.js +488 -0
- package/dist/chunk-HKGUKAQW.js.map +1 -0
- package/dist/{chunk-SO3XRZPX.js → chunk-HPRVFJPM.js} +6 -6
- package/dist/{chunk-L6JEXB3E.js → chunk-HQR4BWKX.js} +3 -131
- package/dist/chunk-HQR4BWKX.js.map +1 -0
- package/dist/chunk-HZKANST2.js +177 -0
- package/dist/chunk-HZKANST2.js.map +1 -0
- package/dist/{chunk-UUGOUOVT.js → chunk-I557SAOM.js} +8 -2
- package/dist/chunk-I557SAOM.js.map +1 -0
- package/dist/{chunk-TC2WZLSC.js → chunk-IGLWLH73.js} +8 -7
- package/dist/chunk-IGLWLH73.js.map +1 -0
- package/dist/chunk-ILWCKCOI.js +58 -0
- package/dist/chunk-ILWCKCOI.js.map +1 -0
- package/dist/{chunk-2GP3HRYK.js → chunk-INSIW65E.js} +182 -182
- package/dist/{chunk-MPZUYCAP.js → chunk-IULCDMVG.js} +12 -1
- package/dist/chunk-IULCDMVG.js.map +1 -0
- package/dist/{chunk-INTFHMU4.js → chunk-IVNSUAVC.js} +25 -26
- package/dist/chunk-IVNSUAVC.js.map +1 -0
- package/dist/chunk-JDQZCREI.js +87 -0
- package/dist/chunk-JDQZCREI.js.map +1 -0
- package/dist/chunk-JHFFUVON.js +1050 -0
- package/dist/chunk-JHFFUVON.js.map +1 -0
- package/dist/{chunk-RL5UUDT4.js → chunk-JNUKLSMZ.js} +3 -3
- package/dist/chunk-JTILUN4W.js +2933 -0
- package/dist/chunk-JTILUN4W.js.map +1 -0
- package/dist/{chunk-OJNTCYQQ.js → chunk-JTX3BUDK.js} +37 -53
- package/dist/chunk-JTX3BUDK.js.map +1 -0
- package/dist/{chunk-X5ZBP3IY.js → chunk-JUUBBBY5.js} +2 -2
- package/dist/chunk-JUUBBBY5.js.map +1 -0
- package/dist/chunk-JWAK7JQB.js +15 -0
- package/dist/chunk-JWAK7JQB.js.map +1 -0
- package/dist/{chunk-UXZONNEQ.js → chunk-K5KNGC4I.js} +34 -31
- package/dist/chunk-K5KNGC4I.js.map +1 -0
- package/dist/chunk-KAQ4Q3TO.js +135 -0
- package/dist/chunk-KAQ4Q3TO.js.map +1 -0
- package/dist/chunk-KFVJYLVL.js +125 -0
- package/dist/chunk-KFVJYLVL.js.map +1 -0
- package/dist/chunk-KGUE5AVX.js +69 -0
- package/dist/chunk-KGUE5AVX.js.map +1 -0
- package/dist/{chunk-FVIGCDSV.js → chunk-KLDMLWXT.js} +11 -85
- package/dist/chunk-KLDMLWXT.js.map +1 -0
- package/dist/chunk-KNKDMTHU.js +453 -0
- package/dist/chunk-KNKDMTHU.js.map +1 -0
- package/dist/chunk-LDA6TAYQ.js +95 -0
- package/dist/chunk-LDA6TAYQ.js.map +1 -0
- package/dist/chunk-LWSSIZOY.js +347 -0
- package/dist/chunk-LWSSIZOY.js.map +1 -0
- package/dist/{chunk-ZURZHELF.js → chunk-MAHNZA6C.js} +158 -41
- package/dist/chunk-MAHNZA6C.js.map +1 -0
- package/dist/chunk-MEWZCIA6.js +220 -0
- package/dist/chunk-MEWZCIA6.js.map +1 -0
- package/dist/{chunk-2SNUOHAT.js → chunk-MEZJ3I63.js} +49 -1
- package/dist/chunk-MEZJ3I63.js.map +1 -0
- package/dist/chunk-MJDO4EXD.js +353 -0
- package/dist/chunk-MJDO4EXD.js.map +1 -0
- package/dist/chunk-NJA6NT3A.js +6595 -0
- package/dist/chunk-NJA6NT3A.js.map +1 -0
- package/dist/{chunk-LHHMV4GU.js → chunk-NVSKJPRC.js} +1 -1
- package/dist/{chunk-LHHMV4GU.js.map → chunk-NVSKJPRC.js.map} +1 -1
- package/dist/{chunk-4YOZGGTZ.js → chunk-OC7K2DVZ.js} +5 -5
- package/dist/chunk-OC7K2DVZ.js.map +1 -0
- package/dist/chunk-ODRPASFP.js +2078 -0
- package/dist/chunk-ODRPASFP.js.map +1 -0
- package/dist/chunk-OJJFANO6.js +133 -0
- package/dist/chunk-OJJFANO6.js.map +1 -0
- package/dist/{chunk-JNJWBTU2.js → chunk-OQWPRFAC.js} +332 -882
- package/dist/chunk-OQWPRFAC.js.map +1 -0
- package/dist/chunk-P4I7BFNJ.js +11 -0
- package/dist/chunk-P4I7BFNJ.js.map +1 -0
- package/dist/{chunk-SNNSAGMT.js → chunk-P6YQWIT2.js} +4058 -4039
- package/dist/chunk-P6YQWIT2.js.map +1 -0
- package/dist/{chunk-JRGFKVAZ.js → chunk-PETQ5WEA.js} +2 -2
- package/dist/{chunk-HMWYAUA6.js → chunk-Q6RSJCXB.js} +29 -69
- package/dist/chunk-Q6RSJCXB.js.map +1 -0
- package/dist/{chunk-U3IKUGRP.js → chunk-QKEUKBRK.js} +17 -23
- package/dist/chunk-QKEUKBRK.js.map +1 -0
- package/dist/{chunk-2RWB7RKE.js → chunk-QKYUCITR.js} +174 -5814
- package/dist/chunk-QKYUCITR.js.map +1 -0
- package/dist/chunk-QQDPRTLP.js +127 -0
- package/dist/chunk-QQDPRTLP.js.map +1 -0
- package/dist/chunk-QQYCYAKI.js +79 -0
- package/dist/chunk-QQYCYAKI.js.map +1 -0
- package/dist/chunk-R4KDH477.js +1064 -0
- package/dist/chunk-R4KDH477.js.map +1 -0
- package/dist/chunk-R5TR2DIK.js +119 -0
- package/dist/chunk-R5TR2DIK.js.map +1 -0
- package/dist/chunk-R62PKTAG.js +66 -0
- package/dist/chunk-R62PKTAG.js.map +1 -0
- package/dist/{chunk-BFDQ4WNW.js → chunk-RFZA7PSM.js} +4 -5
- package/dist/chunk-RFZA7PSM.js.map +1 -0
- package/dist/chunk-RGCPELQN.js +219 -0
- package/dist/chunk-RGCPELQN.js.map +1 -0
- package/dist/chunk-RGVCOG2S.js +910 -0
- package/dist/chunk-RGVCOG2S.js.map +1 -0
- package/dist/chunk-SOLNJ3AZ.js +209 -0
- package/dist/chunk-SOLNJ3AZ.js.map +1 -0
- package/dist/chunk-TFT2X7SH.js +77 -0
- package/dist/chunk-TFT2X7SH.js.map +1 -0
- package/dist/chunk-TUCKEEXE.js +2 -0
- package/dist/chunk-TVWCLUBI.js +293 -0
- package/dist/chunk-TVWCLUBI.js.map +1 -0
- package/dist/chunk-U4TRWSVE.js +78 -0
- package/dist/chunk-U4TRWSVE.js.map +1 -0
- package/dist/chunk-UIB33QQP.js +379 -0
- package/dist/chunk-UIB33QQP.js.map +1 -0
- package/dist/chunk-V6GIVALQ.js +1889 -0
- package/dist/chunk-V6GIVALQ.js.map +1 -0
- package/dist/chunk-VHXCPXUS.js +366 -0
- package/dist/chunk-VHXCPXUS.js.map +1 -0
- package/dist/{chunk-HGZEPQUT.js → chunk-VU6GMWF6.js} +17 -8
- package/dist/chunk-VU6GMWF6.js.map +1 -0
- package/dist/chunk-VWZYE3NC.js +8415 -0
- package/dist/chunk-VWZYE3NC.js.map +1 -0
- package/dist/{chunk-AGMVASXZ.js → chunk-W2GXIARJ.js} +88 -11
- package/dist/chunk-W2GXIARJ.js.map +1 -0
- package/dist/chunk-W4G3K3V7.js +288 -0
- package/dist/chunk-W4G3K3V7.js.map +1 -0
- package/dist/chunk-W74LJ5OT.js +588 -0
- package/dist/chunk-W74LJ5OT.js.map +1 -0
- package/dist/chunk-W7ELYLYK.js +233 -0
- package/dist/chunk-W7ELYLYK.js.map +1 -0
- package/dist/{chunk-BPMWXTFX.js → chunk-WFZX352D.js} +7 -7
- package/dist/chunk-WXA3WTPF.js +20 -0
- package/dist/chunk-WXA3WTPF.js.map +1 -0
- package/dist/chunk-XRGFH7FI.js +454 -0
- package/dist/chunk-XRGFH7FI.js.map +1 -0
- package/dist/chunk-XSCGUO2U.js +330 -0
- package/dist/chunk-XSCGUO2U.js.map +1 -0
- package/dist/chunk-XWROSMI5.js +1039 -0
- package/dist/chunk-XWROSMI5.js.map +1 -0
- package/dist/chunk-Y2EXZ47H.js +40 -0
- package/dist/chunk-Y2EXZ47H.js.map +1 -0
- package/dist/chunk-YJGEVBKZ.js +47 -0
- package/dist/chunk-YJGEVBKZ.js.map +1 -0
- package/dist/{chunk-6CMM6YCB.js → chunk-YWWMISDY.js} +2 -2
- package/dist/{chunk-WXA2BWTE.js → chunk-ZCT5DJ3G.js} +2 -48
- package/dist/chunk-ZCT5DJ3G.js.map +1 -0
- package/dist/chunk-ZEYA2WWX.js +982 -0
- package/dist/chunk-ZEYA2WWX.js.map +1 -0
- package/dist/chunk-ZRC7Z5X3.js +82 -0
- package/dist/chunk-ZRC7Z5X3.js.map +1 -0
- package/dist/{chunk-3AIHRXKO.js → chunk-ZS7JIUJ3.js} +12 -10
- package/dist/chunk-ZS7JIUJ3.js.map +1 -0
- package/dist/{clack-EZ7TDWQU.js → clack-Q4RNC5VE.js} +2 -6
- package/dist/{claude-cli-2YKABJJZ.js → claude-cli-GIIHOBGT.js} +4 -2
- package/dist/claude-install-BAUSJMW3.js +64 -0
- package/dist/{cli-E36SPKBW.js → cli-QY4KKA3D.js} +632 -150
- package/dist/cli-QY4KKA3D.js.map +1 -0
- package/dist/client-3YQKORVK.js +710 -0
- package/dist/client-3YQKORVK.js.map +1 -0
- package/dist/{codex-event-ZO2GEFE6.js → codex-event-EUTCAOTQ.js} +3 -5
- package/dist/{codex-host-KECJVTA2.js → codex-host-ZON3S6HU.js} +7 -7
- package/dist/{codex-install-HQZDGFXW.js → codex-install-HZV2DOAB.js} +242 -88
- package/dist/codex-install-HZV2DOAB.js.map +1 -0
- package/dist/config-QZOBMTEL.js +57 -0
- package/dist/config-names-Z5NZD5R2.js +224 -0
- package/dist/config-names-Z5NZD5R2.js.map +1 -0
- package/dist/config-rules-YOYHS6YL.js +55 -0
- package/dist/config-subagents-WQV2ZAD5.js +362 -0
- package/dist/config-subagents-WQV2ZAD5.js.map +1 -0
- package/dist/connect-YDWTYU4B.js +1020 -0
- package/dist/connect-YDWTYU4B.js.map +1 -0
- package/dist/core-0a66n3e7-TTP554XV.js +127 -0
- package/dist/core-0a66n3e7-TTP554XV.js.map +1 -0
- package/dist/core-0bmnpbz2-C2JIRVZO.js +10790 -0
- package/dist/core-0bmnpbz2-C2JIRVZO.js.map +1 -0
- package/dist/core-9je8ee1j-74DGHWPV.js +30 -0
- package/dist/core-9je8ee1j-74DGHWPV.js.map +1 -0
- package/dist/core-wadgcjfh-TSZFQZGH.js +666 -0
- package/dist/core-wadgcjfh-TSZFQZGH.js.map +1 -0
- package/dist/core-zg882d22-LKV5DZYW.js +37 -0
- package/dist/core-zg882d22-LKV5DZYW.js.map +1 -0
- package/dist/decision-QSKHOGCO.js +145 -0
- package/dist/{doctor-I6XQEKWD.js → doctor-ZWJXRD75.js} +162 -148
- package/dist/doctor-ZWJXRD75.js.map +1 -0
- package/dist/{env-proxy-R6ZMLQTT.js → env-proxy-XLSLHBKQ.js} +2 -2
- package/dist/{ethersCompat-Df4a6QIZ-X6YZWAML.js → ethersCompat-Df4a6QIZ-K3DMHR6Y.js} +5 -5
- package/dist/explicit-ME2NRADQ.js +371 -0
- package/dist/explicit-ME2NRADQ.js.map +1 -0
- package/dist/flush-stdio-NYIJ3QXT.js +18 -0
- package/dist/fund-VF7TLDJH.js +722 -0
- package/dist/fund-VF7TLDJH.js.map +1 -0
- package/dist/hook-command-VZ27MGWO.js +49 -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/hooks/hook-data.ts +152 -0
- package/dist/hosts/claude/tenjin/hooks/hooks.json +7 -0
- package/dist/hosts/claude/tenjin/hooks/model-viewer.tsx +2987 -0
- package/dist/hosts/claude/tenjin/hooks/register.tsx +527 -56
- package/dist/hosts/claude/tenjin/skills/tenjin-pay/SKILL.md +14 -4
- package/dist/hosts/claude/tenjin/types/index.d.ts +144 -1
- package/dist/{hosts-DVQJ32QC.js → hosts-3EMTVM4H.js} +7 -6
- package/dist/index.js +18 -15
- package/dist/index.js.map +1 -1
- package/dist/install-ZA7L2UF3.js +115 -0
- package/dist/install-funding-JDGYTF72.js +30 -0
- package/dist/install-identity-FFAYEFLX.js +30 -0
- package/dist/{install-wallet-5M4OTYLX.js → install-wallet-2SFOVE3Q.js} +68 -53
- package/dist/install-wallet-2SFOVE3Q.js.map +1 -0
- package/dist/mcp-36S6MK3C.js +67642 -0
- package/dist/mcp-36S6MK3C.js.map +1 -0
- package/dist/new-install-5L4GY3LN.js +51 -0
- package/dist/{package-IJFGMWEV.js → package-BONDXSV3.js} +2 -2
- package/dist/{passphrase-IFTDS3CU.js → passphrase-T4ULBN4M.js} +16 -12
- package/dist/{paths-XCSAKISU.js → paths-O2KDWZ76.js} +18 -28
- package/dist/pay-CMV5KL74.js +74 -0
- package/dist/{payments-HFPPWHTV.js → payments-Z6UBZL4Z.js} +36 -26
- package/dist/payments-Z6UBZL4Z.js.map +1 -0
- package/dist/reclaim-subagent-credit-ABSF67SJ.js +105 -0
- package/dist/reclaim-subagent-credit-ABSF67SJ.js.map +1 -0
- package/dist/{redact-D7ASVWKL.js → redact-LOTHE5TS.js} +2 -8
- package/dist/redact-LOTHE5TS.js.map +1 -0
- package/dist/routing-quote-AHLAREXR.js +40 -0
- package/dist/routing-quote-AHLAREXR.js.map +1 -0
- package/dist/run-JH7ELYAM.js +88 -0
- package/dist/run-JH7ELYAM.js.map +1 -0
- package/dist/runtime-2GX4ALJP.js +410 -0
- package/dist/runtime-2GX4ALJP.js.map +1 -0
- package/dist/runtime-activate-IDQ2NCSP.js +39 -0
- package/dist/runtime-activate-IDQ2NCSP.js.map +1 -0
- package/dist/{runtime-fetch-ZSSSK72Y.js → runtime-fetch-6LOBHBEN.js} +4 -4
- package/dist/runtime-fetch-6LOBHBEN.js.map +1 -0
- package/dist/runtime-launchers-YAPKCBHV.js +31 -0
- package/dist/runtime-launchers-YAPKCBHV.js.map +1 -0
- package/dist/{runtime-layout-WIDILZ6K.js → runtime-layout-QHZQJV7C.js} +5 -4
- package/dist/runtime-layout-QHZQJV7C.js.map +1 -0
- package/dist/runtime-place-4POL4KK4.js +37 -0
- package/dist/runtime-place-4POL4KK4.js.map +1 -0
- package/dist/runtime-provenance-MNJGVBV2.js +12 -0
- package/dist/runtime-provenance-MNJGVBV2.js.map +1 -0
- package/dist/{secp256k1-ZZZT2CAX.js → secp256k1-N5P2GVGF.js} +3 -3
- package/dist/secp256k1-N5P2GVGF.js.map +1 -0
- package/dist/{send-GCVEAQKL.js → send-ELXFKEKY.js} +35 -32
- package/dist/send-ELXFKEKY.js.map +1 -0
- package/dist/status-FXUFWJDM.js +404 -0
- package/dist/status-FXUFWJDM.js.map +1 -0
- package/dist/{status-line-OPCXDHL2.js → status-line-IH5JBWBC.js} +51 -43
- package/dist/status-line-IH5JBWBC.js.map +1 -0
- package/dist/streamableHttp-CP2ZQBIK.js +768 -0
- package/dist/streamableHttp-CP2ZQBIK.js.map +1 -0
- package/dist/{uninstall-BAWRBXXQ.js → uninstall-LJZUKM4D.js} +76 -76
- package/dist/uninstall-LJZUKM4D.js.map +1 -0
- package/dist/update-EUIX72IX.js +68 -0
- package/dist/update-EUIX72IX.js.map +1 -0
- package/dist/usage-EKDC7LUC.js +180 -0
- package/dist/usage-EKDC7LUC.js.map +1 -0
- package/dist/{usdc-VG4CIOUK.js → usdc-YIHK2OMC.js} +8 -12
- package/dist/usdc-YIHK2OMC.js.map +1 -0
- package/dist/{viemAdapter-By13KInL-DOFTEIJV.js → viemAdapter-By13KInL-PRLSIESK.js} +5 -5
- package/dist/viemAdapter-By13KInL-PRLSIESK.js.map +1 -0
- package/dist/wallet-HSW757W6.js +80 -0
- package/dist/wallet-HSW757W6.js.map +1 -0
- package/dist/wallet-kdf-worker.mjs +1433 -818
- package/docs/agent-permissions.md +88 -155
- package/docs/router-reference.md +236 -0
- package/docs/safety-model.md +31 -33
- package/docs/subagents-internals.md +97 -0
- package/docs/subagents.md +348 -0
- package/docs/troubleshooting.md +10 -6
- package/package.json +12 -8
- package/scripts/installers/install.sh +7 -1
- package/dist/alive-GSOWKUOY.js +0 -38
- package/dist/chunk-2I4QTOLB.js.map +0 -1
- package/dist/chunk-2M2VPI2E.js +0 -560
- package/dist/chunk-2M2VPI2E.js.map +0 -1
- package/dist/chunk-2RWB7RKE.js.map +0 -1
- package/dist/chunk-2SNUOHAT.js.map +0 -1
- package/dist/chunk-3623BLPV.js +0 -184
- package/dist/chunk-3623BLPV.js.map +0 -1
- package/dist/chunk-36RVGZNY.js.map +0 -1
- package/dist/chunk-3AIHRXKO.js.map +0 -1
- package/dist/chunk-3FMZGI7I.js.map +0 -1
- package/dist/chunk-3UCIG4TG.js.map +0 -1
- package/dist/chunk-4K7TQHNP.js.map +0 -1
- package/dist/chunk-4LMUQMBH.js +0 -29
- package/dist/chunk-4LMUQMBH.js.map +0 -1
- package/dist/chunk-4USCZ2NI.js +0 -228
- package/dist/chunk-4USCZ2NI.js.map +0 -1
- package/dist/chunk-4YOZGGTZ.js.map +0 -1
- package/dist/chunk-62KNUYWD.js +0 -111
- package/dist/chunk-62KNUYWD.js.map +0 -1
- package/dist/chunk-A5GKIG5O.js +0 -2037
- package/dist/chunk-A5GKIG5O.js.map +0 -1
- package/dist/chunk-AGMVASXZ.js.map +0 -1
- package/dist/chunk-BF4XHEQK.js.map +0 -1
- package/dist/chunk-BFDQ4WNW.js.map +0 -1
- package/dist/chunk-C2Q76BVM.js.map +0 -1
- package/dist/chunk-CEXSOI5R.js +0 -808
- package/dist/chunk-CEXSOI5R.js.map +0 -1
- package/dist/chunk-E7SW44LM.js.map +0 -1
- package/dist/chunk-EDJWHDDL.js +0 -33
- package/dist/chunk-EDJWHDDL.js.map +0 -1
- package/dist/chunk-FVIGCDSV.js.map +0 -1
- package/dist/chunk-GTTUCOPD.js +0 -105
- package/dist/chunk-GTTUCOPD.js.map +0 -1
- package/dist/chunk-HDPUXS3Z.js +0 -122
- package/dist/chunk-HDPUXS3Z.js.map +0 -1
- package/dist/chunk-HGGWCP7W.js +0 -120
- package/dist/chunk-HGGWCP7W.js.map +0 -1
- package/dist/chunk-HGZEPQUT.js.map +0 -1
- package/dist/chunk-HMWYAUA6.js.map +0 -1
- package/dist/chunk-IADZOXKN.js.map +0 -1
- package/dist/chunk-ILNIZ5I2.js.map +0 -1
- package/dist/chunk-INTFHMU4.js.map +0 -1
- package/dist/chunk-JKKAIPTU.js.map +0 -1
- package/dist/chunk-JNJWBTU2.js.map +0 -1
- package/dist/chunk-KM7RY2ZS.js +0 -246
- package/dist/chunk-KM7RY2ZS.js.map +0 -1
- package/dist/chunk-KOGZDMHO.js +0 -21
- package/dist/chunk-KOGZDMHO.js.map +0 -1
- package/dist/chunk-L6JEXB3E.js.map +0 -1
- package/dist/chunk-LRW6S53P.js.map +0 -1
- package/dist/chunk-LXAYUOXI.js +0 -511
- package/dist/chunk-LXAYUOXI.js.map +0 -1
- package/dist/chunk-MEFB5KHA.js +0 -59
- package/dist/chunk-MEFB5KHA.js.map +0 -1
- package/dist/chunk-MPZUYCAP.js.map +0 -1
- package/dist/chunk-NDGZDTSJ.js.map +0 -1
- package/dist/chunk-OJNTCYQQ.js.map +0 -1
- package/dist/chunk-P3LFTKE7.js +0 -58
- package/dist/chunk-P3LFTKE7.js.map +0 -1
- package/dist/chunk-QXP3Z3JN.js.map +0 -1
- package/dist/chunk-RVPYTUP4.js.map +0 -1
- package/dist/chunk-SNNSAGMT.js.map +0 -1
- package/dist/chunk-TC2WZLSC.js.map +0 -1
- package/dist/chunk-TKPF35W6.js +0 -29
- package/dist/chunk-TKPF35W6.js.map +0 -1
- package/dist/chunk-U3IKUGRP.js.map +0 -1
- package/dist/chunk-UUGOUOVT.js.map +0 -1
- package/dist/chunk-UXZONNEQ.js.map +0 -1
- package/dist/chunk-WXA2BWTE.js.map +0 -1
- package/dist/chunk-WYXUQGOL.js.map +0 -1
- package/dist/chunk-X5ZBP3IY.js.map +0 -1
- package/dist/chunk-XKESD27X.js +0 -10
- package/dist/chunk-XKESD27X.js.map +0 -1
- package/dist/chunk-XQJXNMSB.js.map +0 -1
- package/dist/chunk-Y527D4TV.js +0 -56
- package/dist/chunk-Y527D4TV.js.map +0 -1
- package/dist/chunk-ZDZERB6L.js.map +0 -1
- package/dist/chunk-ZNNXRNFD.js.map +0 -1
- package/dist/chunk-ZURZHELF.js.map +0 -1
- package/dist/cli-E36SPKBW.js.map +0 -1
- package/dist/codex-install-HQZDGFXW.js.map +0 -1
- package/dist/config-HY2E4GGW.js +0 -55
- package/dist/doctor-I6XQEKWD.js.map +0 -1
- package/dist/fund-2QRO7OJL.js +0 -378
- package/dist/fund-2QRO7OJL.js.map +0 -1
- package/dist/hook-command-2UBCSZG6.js +0 -43
- package/dist/install-ILUX5C4A.js +0 -107
- package/dist/install-identity-TZKGY6LQ.js +0 -31
- package/dist/install-wallet-5M4OTYLX.js.map +0 -1
- package/dist/mcp-LE4DUS22.js +0 -14127
- package/dist/mcp-LE4DUS22.js.map +0 -1
- package/dist/pay-WCG3IH4R.js +0 -55
- package/dist/payments-HFPPWHTV.js.map +0 -1
- package/dist/plugin-registration-PZFI5GZW.js +0 -68
- package/dist/runtime-UZOKSUZX.js +0 -1321
- package/dist/runtime-UZOKSUZX.js.map +0 -1
- package/dist/send-GCVEAQKL.js.map +0 -1
- package/dist/status-HCVAOCN7.js +0 -150
- package/dist/status-HCVAOCN7.js.map +0 -1
- package/dist/status-line-OPCXDHL2.js.map +0 -1
- package/dist/uninstall-BAWRBXXQ.js.map +0 -1
- package/dist/update-CACXLQLR.js +0 -56
- package/dist/wallet-QL4UUXEZ.js +0 -55
- /package/dist/{_esm-BIN7VY2L.js.map → _esm-2KST7HQ7.js.map} +0 -0
- /package/dist/{alive-GSOWKUOY.js.map → alive-5TV22PNF.js.map} +0 -0
- /package/dist/{auto-update-Y24UL56V.js.map → auth-XI7BJFLW.js.map} +0 -0
- /package/dist/{ccip-DHDFKTQV.js.map → auto-update-7L24KDWA.js.map} +0 -0
- /package/dist/{clack-EZ7TDWQU.js.map → balance-DFHC6XEU.js.map} +0 -0
- /package/dist/{claude-cli-2YKABJJZ.js.map → ccip-HOW3DZYF.js.map} +0 -0
- /package/dist/{chunk-IE7P2BZE.js.map → chunk-6QMDUDF2.js.map} +0 -0
- /package/dist/{chunk-KG3D7FIF.js.map → chunk-CZJOMUBP.js.map} +0 -0
- /package/dist/{chunk-3GNJXKIT.js.map → chunk-F43CV6UC.js.map} +0 -0
- /package/dist/{chunk-J57UC3DD.js.map → chunk-FKVJKLPI.js.map} +0 -0
- /package/dist/{chunk-SO3XRZPX.js.map → chunk-HPRVFJPM.js.map} +0 -0
- /package/dist/{chunk-2GP3HRYK.js.map → chunk-INSIW65E.js.map} +0 -0
- /package/dist/{chunk-RL5UUDT4.js.map → chunk-JNUKLSMZ.js.map} +0 -0
- /package/dist/{chunk-JRGFKVAZ.js.map → chunk-PETQ5WEA.js.map} +0 -0
- /package/dist/{codex-event-ZO2GEFE6.js.map → chunk-TUCKEEXE.js.map} +0 -0
- /package/dist/{chunk-BPMWXTFX.js.map → chunk-WFZX352D.js.map} +0 -0
- /package/dist/{chunk-6CMM6YCB.js.map → chunk-YWWMISDY.js.map} +0 -0
- /package/dist/{codex-host-KECJVTA2.js.map → clack-Q4RNC5VE.js.map} +0 -0
- /package/dist/{config-HY2E4GGW.js.map → claude-cli-GIIHOBGT.js.map} +0 -0
- /package/dist/{env-proxy-R6ZMLQTT.js.map → claude-install-BAUSJMW3.js.map} +0 -0
- /package/dist/{ethersCompat-Df4a6QIZ-X6YZWAML.js.map → codex-event-EUTCAOTQ.js.map} +0 -0
- /package/dist/{hook-command-2UBCSZG6.js.map → codex-host-ZON3S6HU.js.map} +0 -0
- /package/dist/{hosts-DVQJ32QC.js.map → config-QZOBMTEL.js.map} +0 -0
- /package/dist/{install-ILUX5C4A.js.map → config-rules-YOYHS6YL.js.map} +0 -0
- /package/dist/{install-identity-TZKGY6LQ.js.map → decision-QSKHOGCO.js.map} +0 -0
- /package/dist/{package-IJFGMWEV.js.map → env-proxy-XLSLHBKQ.js.map} +0 -0
- /package/dist/{passphrase-IFTDS3CU.js.map → ethersCompat-Df4a6QIZ-K3DMHR6Y.js.map} +0 -0
- /package/dist/{paths-XCSAKISU.js.map → flush-stdio-NYIJ3QXT.js.map} +0 -0
- /package/dist/{pay-WCG3IH4R.js.map → hook-command-VZ27MGWO.js.map} +0 -0
- /package/dist/{plugin-registration-PZFI5GZW.js.map → hosts-3EMTVM4H.js.map} +0 -0
- /package/dist/{redact-D7ASVWKL.js.map → install-ZA7L2UF3.js.map} +0 -0
- /package/dist/{runtime-fetch-ZSSSK72Y.js.map → install-funding-JDGYTF72.js.map} +0 -0
- /package/dist/{runtime-layout-WIDILZ6K.js.map → install-identity-FFAYEFLX.js.map} +0 -0
- /package/dist/{secp256k1-ZZZT2CAX.js.map → new-install-5L4GY3LN.js.map} +0 -0
- /package/dist/{update-CACXLQLR.js.map → package-BONDXSV3.js.map} +0 -0
- /package/dist/{usdc-VG4CIOUK.js.map → passphrase-T4ULBN4M.js.map} +0 -0
- /package/dist/{viemAdapter-By13KInL-DOFTEIJV.js.map → paths-O2KDWZ76.js.map} +0 -0
- /package/dist/{wallet-QL4UUXEZ.js.map → pay-CMV5KL74.js.map} +0 -0
|
@@ -1,218 +1,151 @@
|
|
|
1
|
-
#
|
|
1
|
+
# Setup and permissions
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
Tenjin suggests tools for your task and runs chosen tools through a local `router` MCP server. Your wallet and spending policy stay on your machine. This guide covers normal setup; the [CLI/MCP reference](./router-reference.md) holds detailed contracts.
|
|
4
4
|
|
|
5
|
-
|
|
5
|
+
Your agent can also browse and choose a tool directly. Browsing and inspection are free; selected Context7 docs run without a wallet or payment. Paid tools keep the same spending checks.
|
|
6
6
|
|
|
7
|
-
##
|
|
8
|
-
|
|
9
|
-
A plugin cannot carry permission rules, so the plugin answers two permission questions itself, with two `PreToolUse` hooks:
|
|
10
|
-
|
|
11
|
-
```
|
|
12
|
-
mcp__plugin_tenjin_router__request allow
|
|
13
|
-
mcp__plugin_tenjin_router__hook deny
|
|
14
|
-
```
|
|
15
|
-
|
|
16
|
-
The first clears the `request` tool on the plugin's `router` MCP server, and nothing else: no shell verb, no other tool, no price. A hook's allow never overrides a `deny` or `ask` rule you wrote for that tool, so a rule of yours still wins. The second blocks your assistant from calling `hook`, the tool the plugin's own hook legs call, in every permission mode, bypass included; Claude Code's own hook calls to it still run. The tool stays in your assistant's tool list, and a call to it returns the reason instead of running. Each answer is a fixed line of JSON that `node -e` prints, started with no shell.
|
|
7
|
+
## Install and activate
|
|
17
8
|
|
|
18
|
-
|
|
9
|
+
Ask your agent to install Tenjin from tenjin.sh, or follow the [terminal instructions](../README.md#install). Setup explains sharing, lets you accept or customize spending limits, and on a fresh install asks whether to turn on DeepSeek subagents. It then offers to add $5 so you can start using tools. **Add $5** opens checkout in your browser, and the terminal or your agent waits for the payment and carries on when it lands. **Not now** skips funding; your agent asks when a task first needs a paid tool. `--yes` accepts setup and spending defaults. DeepSeek subagents and checkout each require their own choice.
|
|
19
10
|
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
Router on/off controls automatic routing. The spending controls and ledger are local; the router cannot read or raise them:
|
|
11
|
+
Turning on DeepSeek subagents during fresh setup turns them on in any workspace. Each job costs up to your per-call spend limit, within your daily budget. Claude accepts or declines each offer. Existing users and saved off choices keep their behavior through updates and refreshes. Use `tenjin config subagents off` to turn them off and `tenjin config subagents on` to turn them on. [Scope, sharing and worker controls →](./subagents.md)
|
|
23
12
|
|
|
24
|
-
|
|
25
|
-
- **`maxAutoSpend`**, the per-call ceiling, is the runaway guard. It caps what one router call pays on its own: all its payments together, so several takes of one call or every option of a compare count as one total. It is $0.25 by default, and it cannot be set below $0.25, the routing deposit, because below that routing cannot pay at all: `tenjin install` and `tenjin config set` refuse a lower amount and say why, and `tenjin doctor` flags one an earlier release left. A service priced above it (today two video models at $0.42 and $0.45, hosting at $0.50 and research at $0.60) is approved once, for that call (below).
|
|
26
|
-
- **The wallet balance** is the hard stop. Nothing pays past it.
|
|
27
|
-
- **`spend.json`** records all payments, with separate automatic exposure and reservation modes. Only automatic exposure and pending automatic reservations consume the daily budget. Manual payments remain in total reporting. Older records without a mode/counter conservatively count as automatic until their window expires. Both modes retain the keyed duplicate guard, including under `none`.
|
|
13
|
+
Use the activation step the installer returns:
|
|
28
14
|
|
|
29
|
-
|
|
15
|
+
| Where you installed | Activation |
|
|
16
|
+
| --------------------------------------------------- | ------------------------------------------------------------------------------------------- |
|
|
17
|
+
| Terminal outside an agent chat | Open a new session in the agent you installed. |
|
|
18
|
+
| Existing Claude Code terminal chat | Run `/reload-plugins` in that chat. |
|
|
19
|
+
| Claude Desktop's Code tab | Choose **New session** in the same folder. Carry a short task handoff into it. |
|
|
20
|
+
| Existing settings-based Claude setup being migrated | Start a new session so the old and new integrations do not run together. |
|
|
21
|
+
| Codex | Start a new Codex session; approve Tenjin's hooks in `/hooks` if setup reports that action. |
|
|
30
22
|
|
|
31
|
-
|
|
23
|
+
Registration alone does not prove that the current session loaded Tenjin. A real tool call establishes use in that session. Doctor reports diagnostic checks and any observed session/payment state; an unchecked state is not a pass. Codex's plugin/hook checks do not establish a live session or payment readiness.
|
|
32
24
|
|
|
33
|
-
|
|
25
|
+
Claude Code requires 2.1.287+. Codex routing hooks require 0.149.0+. Installation supports macOS 13.5+, Windows and glibc Linux 2.28+ on x64/arm64. Musl/Alpine is unsupported. Plugin installation needs the default data directory; omit `TENJIN_DATA_DIR`. Other commands can use a custom data directory.
|
|
34
26
|
|
|
35
|
-
|
|
36
|
-
tenjin status # spent, reserved, and the caps in force
|
|
37
|
-
tenjin config set maxAutoSpend 0.25
|
|
38
|
-
tenjin config set sessionBudget 2.00
|
|
39
|
-
```
|
|
27
|
+
## When your agent runs the install
|
|
40
28
|
|
|
41
|
-
|
|
29
|
+
The agent installs for its current host, relays any unanswered spending or subagent choice, and runs the setup commands itself. It reads `next` and `nextSteps` from the compact result. `tenjin install --json` retains full diagnostics.
|
|
42
30
|
|
|
43
|
-
|
|
31
|
+
When you choose **Add $5**, the agent runs `tenjin fund 5`, which opens checkout in your browser with $5 filled in. Opening checkout moves no money; you confirm the payment there. The agent then runs `tenjin balance --wait` in the background and continues when the money lands, so you never come back to tell it you are done. If you skip funding, the agent continues with available tools and asks when a task first needs a paid tool, saying what the tool is and what it costs. It asks at most once a session. An unknown balance or unconfirmed arrival does not justify another payment: running `tenjin fund` again while a payment is on its way waits on that payment instead of opening a second checkout. If you have an event or promo code, the agent runs `tenjin fund` and you type the code yourself under **Have a code?** on that page, never in chat; the agent waits with `tenjin balance --wait` the same way.
|
|
44
32
|
|
|
45
|
-
|
|
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
|
-
- 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.
|
|
33
|
+
A spend limit that is used up is not a funding problem. The agent says the limit is reached, that your balance is fine, and how to raise the limit; it never opens checkout for it.
|
|
48
34
|
|
|
49
|
-
|
|
50
|
-
- An offer carries the service's spec: its input schema, the fields Tenjin pins, and the HTTP request those fields become. Your assistant fills the fields; this CLI puts the pins over them, validates the result against the schema, builds the request and pays the spec's own payee, never above the spec's price ceiling. The one lookup without a spec, the free docs lookup, is bound by the backend from your assistant's query, and nothing is paid for it.
|
|
51
|
-
- The destination has to be a public HTTPS endpoint whose name resolves to a public address. This is a check, not a pin: the request resolves the name again on its own, so a host that answers publicly at check time and privately a moment later is not closed by it. See [safety-model.md](./safety-model.md).
|
|
52
|
-
- A 2xx whose body fails the decision's own success rule is delivered as `unverified`, never `fulfilled`, with a caveat naming the rule it missed. The money has already moved, so the body is not withheld.
|
|
35
|
+
If the host denies opening checkout, the agent may explain it and ask once to retry the same command. Another refusal or managed deny stops the action; it never changes permissions to get through.
|
|
53
36
|
|
|
54
|
-
|
|
37
|
+
Installation and the first task add no optional retention or second-host questionnaire. If another supported agent is detected and is not set up yet, installation shows one informational line about adding Tenjin there. You can also use `tenjin install --harness claude` or `tenjin install --harness codex`.
|
|
55
38
|
|
|
56
|
-
##
|
|
39
|
+
## What bounds a payment
|
|
57
40
|
|
|
58
|
-
|
|
41
|
+
| Control | Default and meaning |
|
|
42
|
+
| ------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
|
|
43
|
+
| `sessionBudget` | $5 automatic spending shared across chats. Resets 24 hours after its window starts, not on a new chat. Zero blocks automatic payments; `none` removes this ceiling. |
|
|
44
|
+
| `maxAutoSpend` | $1.00 by default for one call's total, including multiple takes or comparison options. Accepts any non-negative USD amount with up to 6 decimal places; `0` blocks positive automatic payments. Saved limits stay unchanged. |
|
|
45
|
+
| Wallet balance | No payment can exceed available funds. |
|
|
46
|
+
| `allowlistCreators` | Optional restriction on which hosts may be paid. It is separate from harness permission to call a tool. |
|
|
59
47
|
|
|
60
|
-
|
|
48
|
+
Ordinary spending defaults apply before any answer. Where DeepSeek subagents are on, a job's cap is your per-call spend limit. Explicit amount flags replace the named ordinary spending limits. Existing zero, unlimited and custom settings are preserved. Project settings can only tighten routing/context sharing; they cannot change wallet spending limits.
|
|
61
49
|
|
|
62
|
-
|
|
63
|
-
Bash(tenjin pay:*)
|
|
64
|
-
```
|
|
50
|
+
A DeepSeek job's cap covers its routing, inference and web searches together. It is your per-call spend limit as it stands at each offer, or a lower ceiling you named with `--max-job`, so a job never costs more than one call may; the daily budget still applies, and a per-call limit of zero stops jobs. A worker's web search runs inside its model call, paid as tokens with no search charge; a page its WebFetch could not fetch is read through Exa for $0.001, paid like any lookup, within your per-call limit and daily budget too. [Quotes and cumulative job limits →](./subagents.md#charges-and-limits)
|
|
65
51
|
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
The configured deployment keeps its existing origin behavior. Other public HTTPS endpoints use the supported live 402 as the quote. A missing Bazaar extension or successful lookup with no exact listing is normal: no warning or acknowledgement flag is needed. Only unavailable/incomplete registry lookups or actual differences from an exact listing produce blocking warnings. Listings do not authorize payment or guarantee quality.
|
|
69
|
-
|
|
70
|
-
Review the live endpoint, recipient, network, asset and amount. `--ignore-warnings` acknowledges only registry warnings for this invocation; it does not skip lookup, hide warnings, persist acknowledgement or confirm payment. `--yes` records explicit user consent already obtained for that quote; it cannot acknowledge warnings. Interactive confirmation cannot replace the warning flag. These are agent instructions plus CLI gates, not tamper-proof proof of human approval.
|
|
71
|
-
|
|
72
|
-
```bash
|
|
73
|
-
tenjin pay https://api.example.com/quote --json --max-price 0.05
|
|
74
|
-
# After reviewing a registry warning and the live quote:
|
|
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
|
|
85
|
-
```
|
|
52
|
+
Changing global limits is a normal config write: the CLI does not distinguish a person from an agent. Your host's permissions and filesystem access protect those writes. Authorize limit changes deliberately; the request tool itself cannot raise them.
|
|
86
53
|
|
|
87
|
-
|
|
54
|
+
A routing decision and a provider call are separate charges. Routing fees vary by answer. Routing funds are deposited in bounded amounts and counted toward automatic spending once; fees drawn from that deposit are not counted again. Unused routing funds remain yours. [How a deposit is sized and counted →](./router-reference.md#routing-fee-and-deposit)
|
|
88
55
|
|
|
89
|
-
|
|
56
|
+
A call over its automatic allowance pays nothing and returns `needs_approval`. Supported Claude Code versions offer a host-enforced approval prompt for that exact quote; an approved call is manual spending outside the automatic budget, still bounded by the balance. Codex and other hosts without that approval facility refuse the call. The approval does not change your configured limits.
|
|
90
57
|
|
|
91
|
-
|
|
58
|
+
`tenjin pay <url>` is a separate, user-consented payment path. It requires consent for every positive payment and does not use the automatic limits. It must never be an agent's workaround for a refused router call. [Direct-payment contract →](./router-reference.md#direct-payments)
|
|
92
59
|
|
|
93
|
-
|
|
60
|
+
`tenjin wallet send` is separate from tool payments. It requires an explicitly configured `sendMaxAmount` before the first transfer, plus confirmation (or explicit `--yes`). That cap cannot be bypassed by confirmation and is independent of automatic routing limits.
|
|
94
61
|
|
|
95
|
-
|
|
96
|
-
|
|
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. |
|
|
62
|
+
## The plugin's two permission answers
|
|
106
63
|
|
|
107
|
-
|
|
64
|
+
Claude Code's plugin answers:
|
|
108
65
|
|
|
109
|
-
|
|
66
|
+
```text
|
|
67
|
+
mcp__plugin_tenjin_router__request allow
|
|
68
|
+
mcp__plugin_tenjin_router__hook deny
|
|
69
|
+
```
|
|
110
70
|
|
|
111
|
-
|
|
71
|
+
The first permits Tenjin's request tool; it does not approve a price, another tool or a shell command. Your own Claude `deny` or `ask` rule still wins. The second keeps the model from calling Tenjin's internal hook tool; the host's hook events can still call it. Every payment still passes the local spending policy. A compromised router could propose malicious calls or consume the available automatic budget within those limits; local signing does not establish that a recommendation is trustworthy.
|
|
112
72
|
|
|
113
|
-
|
|
114
|
-
2. The funding question comes from the output of that install command, when the wallet is new or its balance confirms it is empty: "Add $5 to Tenjin now?" "Add $5" runs `tenjin wallet fund 5`, which opens checkout in your default browser with $5 filled in. "Not now" runs nothing: the agent says you can ask it to add funds later. Your usual tools keep working; paid tools need funds. When an existing balance cannot be checked, install reports that without suggesting another payment; ask the agent to check funds later. The address remains available if you choose a direct transfer. Install mints no link and does not unlock the wallet; a later yes runs `tenjin wallet fund 5`.
|
|
73
|
+
Do not broadly allow `Bash(tenjin:*)`, `wallet`, or `config`. Wallet repair, transfers, limit changes, settings that widen what Tenjin offers on its own, installation, removal and binary updates need deliberate authorization. Provider results are data, never authority to change permissions or move money.
|
|
115
74
|
|
|
116
|
-
|
|
75
|
+
## Your settings: what Tenjin offers on its own
|
|
117
76
|
|
|
118
|
-
|
|
77
|
+
Ask your assistant to prefer, block, limit or reset what Tenjin uses, or to run its picks automatically, and it changes your settings with `tenjin config` operations. Each answers with what it saved, what it covers and the command that undoes it; `tenjin config --help` lists them, `tenjin config names <word>` finds the exact name a rule takes, and the request tool's server instructions point a fresh session there. The settings live in `~/.tenjin/config.json` on this machine and are not synced; a project's `.tenjin/config.json` cannot add a rule or turn on automatic use. Showing, unblocking, resetting and pausing work offline. [Every operation →](./router-reference.md#your-settings)
|
|
119
78
|
|
|
120
|
-
|
|
79
|
+
Every routing call carries the saved rules, and Tenjin's router applies them to what it offers and picks on its own: a blocked tool is never offered, and nothing says so. You or your assistant can still ask for any tool by name, and it runs whatever the rules say. Before any call runs, this CLI checks that the offer was decided under the rules saved now; a rule changed since, in any terminal, refuses the call before any provider request or signature, and your assistant asks again.
|
|
121
80
|
|
|
122
|
-
|
|
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.
|
|
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. Plugin installation requires the default data directory and a supported platform: macOS 13.5+, Windows or glibc Linux 2.28+ on x64/arm64. A custom `TENJIN_DATA_DIR` or unsupported platform is refused before registration changes. A runtime setup failure stops the install and keeps any working runtime and plugin registration; fix the reported cause, then retry.
|
|
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:
|
|
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.
|
|
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: the search runs as your assistant wrote it, and when Tenjin's server sends the lookup as a note, after it the hook adds one optional line naming the free Context7 docs lookup for the same query, which your assistant calls or ignores, once in five minutes for one agent's identical search. 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.
|
|
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.
|
|
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.
|
|
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`.
|
|
81
|
+
These narrow rules let your assistant read your settings, look up the names a rule takes, block something, or reorder what is already allowed, without a prompt each time:
|
|
132
82
|
|
|
133
|
-
|
|
83
|
+
```text
|
|
84
|
+
Bash(tenjin config)
|
|
85
|
+
Bash(tenjin config --json)
|
|
86
|
+
Bash(tenjin config --help)
|
|
87
|
+
Bash(tenjin config get:*)
|
|
88
|
+
Bash(tenjin config names:*)
|
|
89
|
+
Bash(tenjin config block:*)
|
|
90
|
+
Bash(tenjin config prefer:*)
|
|
91
|
+
```
|
|
134
92
|
|
|
135
|
-
|
|
93
|
+
`block` only ever takes something away from what Tenjin offers on its own, and `prefer` only reorders services you already allow. `unblock`, `only`, `reset`, `set`, `speed` and `replacement` stay behind your host's normal permission prompt, because each can widen what Tenjin offers on its own or what it runs without asking. Do not add `Bash(tenjin config:*)`: it covers all of them. When you ask for a change yourself, Tenjin asks no second question; your host's prompt is the only one, and when you decline it nothing is saved. Tenjin installs none of these rules.
|
|
136
94
|
|
|
137
|
-
|
|
95
|
+
"Run Tenjin's picks automatically" (`tenjin config replacement on`) is off by default. With it on, in Claude Code with the Tenjin plugin, a WebSearch or WebFetch your main assistant is about to make can be answered in place by the service Tenjin's router picks for it, within your settings and spending limits; a call over a limit is offered as usual and asks you first. Each one is a charge you are not asked about separately, so it names the service, its price and the search or fetch it replaced, and the paid ledger marks it `via: "swap"`. Codex and other agents keep getting ordinary offers.
|
|
138
96
|
|
|
139
|
-
|
|
97
|
+
## Your own accounts
|
|
140
98
|
|
|
141
|
-
|
|
99
|
+
Ask your assistant to use your own Apify, fal, Firecrawl or Exa account, or any MCP server by its https address, and it runs `tenjin connect <name>`. You approve the sign-in in your browser; where no browser can open, run `tenjin connect <name> --paste` in your own terminal and type the key at its hidden prompt. Never paste a key into a chat. Tenjin checks the account's tools for free, keeps the sign-in encrypted on this machine with its key in your OS keychain, and puts the account first for its jobs unless you say `--no-prefer`. No token, key or code reaches Tenjin's server; the router only learns which of the accounts it lists are connected here. [Every command →](./router-reference.md#your-own-accounts)
|
|
142
100
|
|
|
143
|
-
|
|
101
|
+
Your own plan pays for calls on your account: they don't count toward `maxAutoSpend` or the daily budget, which cap your Tenjin balance only. When the account refuses a call (its sign-in expired, or its plan or rate limit ran out), Tenjin stops with the reason and offers its own tool for the job with its price, and nothing is charged until you pick. `tenjin config fallback on --source <account>` makes that switch automatic for one account. Routing still costs its small fee from the balance.
|
|
144
102
|
|
|
145
|
-
|
|
103
|
+
`tenjin status` and `tenjin usage` only read: your balance from the chain, this machine's files and your settings. These rules let your assistant read them without a prompt each time:
|
|
146
104
|
|
|
147
|
-
|
|
105
|
+
```text
|
|
106
|
+
Bash(tenjin status)
|
|
107
|
+
Bash(tenjin status --json)
|
|
108
|
+
Bash(tenjin usage:*)
|
|
109
|
+
```
|
|
148
110
|
|
|
149
|
-
`
|
|
111
|
+
`connect`, `disconnect` and `config fallback` stay behind your host's normal permission prompt, because each changes what can be called and who pays.
|
|
150
112
|
|
|
151
|
-
|
|
113
|
+
## What the hooks send
|
|
152
114
|
|
|
153
|
-
|
|
115
|
+
Routing sends the current prompt and at most six earlier messages, bounded to 16 KiB after known-secret masking. It excludes tool-result bodies and harness metadata. Search terms, URLs, delegated tasks, questions and your answers can also be routed with that context. Shortfall reports include status, size or error, never the fetched page or search results. Pasted text may be marked separately, but still reaches the router. Known-secret masking reduces exposure; it cannot identify every secret. This masking applies to routing. A DeepSeek worker you turn on forwards what it reads to Tenjin and DeepSeek unmasked, removing only the job's own tokens and your wallet key and passphrase: see [DeepSeek subagents](./subagents.md#what-goes-where-and-when).
|
|
154
116
|
|
|
155
|
-
|
|
156
|
-
2. When one fits, your assistant sees one line, opening with `Tenjin router (installed by the user):`, that starts at the service's name and its price (`Exa search, $0.007: …`) and ends with the call to make: `mcp__plugin_tenjin_router__request({id, input})` with the required fields as placeholders, or already filled in when the hook holds them (the search a native call was about to run, or the page it was about to fetch). The hook keeps the service's spec on this machine under the id.
|
|
157
|
-
3. Your assistant fills the fields and calls `request({id, input})` once. This CLI validates the input against the spec, builds the request, pays that provider once under your limits, hands back the result, and tells Tenjin only how the call ended. Any paid routing call costs $0.003 separately, including when no tool is suggested. Where the spec names the fields its result promises, the result holds only those, and the provider's whole response is saved under `~/.tenjin/results/` (readable by you alone, kept a day) at the path the result names in `fullResultPath`.
|
|
158
|
-
4. An input that does not fit the spec is refused before anything is sent to the provider: your assistant gets every problem and the whole spec (each input with its description and allowed values, the required fields inside a nested object, an example and what comes back), locally and with nothing paid, and calls again. `request({id})` alone shows the same spec. A spec whose input schema this CLI cannot compile is refused outright, with nothing sent to the provider or paid.
|
|
159
|
-
5. Your assistant can also see what is available without a lookup: `request({browse: "<a need>"})`, or `browse: ""` for every tool, returns the tool list (each tool's id, name, what it does and its price), and `request({tool: "<id>"})` returns one tool's spec under a fresh id, which `request({id, input})` then runs as in step 3. Both are free: no routing decision, no routing fee and no payment. A browse sends only the words of the need; a `tool` call sends only the id. The hooks still route each lookup as above.
|
|
160
|
-
6. Some lines offer a choice of services for the same step, such as several image models. Your assistant uses the one you named or asked to compare, asks you when you have not said and you are there to answer, and otherwise uses the line's default, then calls `request({id, choice, input})`. One choice runs exactly as that service's own offer. `all` runs every choice side by side, each paid once to its own provider, but only after each is quoted at its live price and the whole set's total fits your limits: within `maxAutoSpend`, which is per call, and inside the day's `sessionBudget`. A set that does not fit returns `needs_approval` with nothing paid, and in Claude Code runs once you approve it. The result lists each choice with its cost and the file it saved under `~/.tenjin/downloads/`.
|
|
117
|
+
With DeepSeek subagents on, the held assignment and parent context go to Tenjin and TypeSafe before the parent accepts, in a request of at most 16 KB that drops the oldest context first and never cuts the assignment. After the parent accepts, Tenjin and DeepSeek receive the accepted assignment, the instructions Claude Code loads for the worker as it does for a native subagent (your CLAUDE.md, rules and the files under `~/.claude`), and the job's tool results. A worker's web searches run inside the DeepSeek call; the address of a public page its WebFetch could not fetch goes to Exa. Model replies can be replayed for 24 hours; financial and continuation metadata persist. [DeepSeek disclosure and retention →](./subagents.md#data-and-permissions)
|
|
161
118
|
|
|
162
|
-
|
|
119
|
+
For a turn containing links, Tenjin reads the repository's Git remote hosts locally to mark matching links as your own, so the router can leave them to native tools. It sends those already-present links with that classification, not the Git config or remote credentials.
|
|
163
120
|
|
|
164
|
-
|
|
165
|
-
- A hook that redirects a call leaves a short record under `~/.tenjin/progress/`, keyed by that call's id: when, the offer's id, the offered tool's display name, and its price. It expires with the other progress records, after ten minutes.
|
|
166
|
-
- Files a paid lookup returns, and media files a paid third-party service links to or returns inline as base64 in its JSON, are saved under `~/.tenjin/downloads/`. An inline file is replaced in the result by a note naming where it was saved.
|
|
167
|
-
- When a tool names the fields it returns, your agent gets those fields and the provider's whole response is saved under `~/.tenjin/results/` for a day, at the path the result names.
|
|
168
|
-
- When a seller never confirmed settlement, `tenjin payments reconcile` asks USDC on Base whether the payment was used once it has expired, and one that was never charged goes back to today's limit; the `request` tool does the same for up to three beside each lookup, without waiting for it.
|
|
121
|
+
Use `tenjin config set router.context turn` to send no previous messages. `--project` applies a tighter context setting to a repository. The private key stays local; paid routing identifies the wallet. Library-doc queries go through Tenjin to Context7. Balance checks send your public wallet address to the configured Base RPC. With the default RPC, failed reads can fall back to PublicNode and dRPC; a custom RPC is used alone.
|
|
169
122
|
|
|
170
|
-
|
|
123
|
+
Ordinary routing context expires after 15 minutes and is removed by subsequent requests or cleanup. Paid records retain the selected capability, hashes, wallet and transaction data; execution reports contain IDs and outcome metadata, not the input/result. The [reference](./router-reference.md#context-and-records) separates backend records from local saved results.
|
|
171
124
|
|
|
172
|
-
|
|
173
|
-
- A native call sends that same bounded turn WITH the call attached, read from this session's own transcript. That is how a restriction you stated in your own words, such as asking for native tools only, reaches the decision about a bare URL your assistant is fetching. When that call then comes back short and nothing was offered before it, it is sent once more with what the harness reported: the status code and byte count, the error, or that a fetch came back with only the page's shell (`reason: no_main_content`). Never the page or the results. A call that came back fine sends nothing more.
|
|
174
|
-
- When your assistant hands a task to a subagent: that task, as the current message, with the same bounded turn before it.
|
|
175
|
-
- When your assistant asks you a question (`AskUserQuestion`): the questions and their options, attached to the same bounded turn, before you see them; and after you answer, your answers as the current message. Before the question, a fitting lookup redirects it once, under the same rules as a native call, and only when your spend limits and wallet would pay it without asking you; after it, a fitting lookup is offered beside your answers.
|
|
176
|
-
- Every hook request carries this session's id, so one session is not offered the same pay-per-call service twice.
|
|
177
|
-
- Every request also lists what this CLI can parse and run (`accepts`): `catalog`, `spec`, `label`, `fields`, `jobs` and `note`, plus `bazaar` while the open Bazaar is on. The server sends a field only to a CLI that lists it: `label` brings each tool's display name and the line that starts at it, and `fields` brings which input takes a pending search or URL, what kind of result a tool returns (files are saved only when it says `media`), and how the free docs lookup is delivered, and `note` brings the free docs line after a search in place of docs added to it. A server change to a tool then reaches an installed CLI without a new release.
|
|
178
|
-
- With `router.context turn`, no prior messages are sent: the prompt on a prompt, your latest message on a native call, and the task on a delegation. `tenjin config set router.context turn` sets it for this machine, and `--project` for this repository.
|
|
179
|
-
- Slash commands and one-word acknowledgements are never sent at all.
|
|
180
|
-
- With `tenjin config set experimental.bazaar on` (off by default), short snippets of your prompts also go to Coinbase's public x402 Bazaar search, so the router can suggest unreviewed sellers listed there.
|
|
181
|
-
- The packet is stored on the backend against the decision id, so the lookup your assistant sends next is decided with the context you gave. Expired packets are unreadable after 15 minutes (the route refuses an expired id) and are deleted by the next router request or the daily cleanup, whichever comes first.
|
|
182
|
-
- On a paid lookup: the capability chosen, a hash of the contract, a hash of the arguments, your wallet address, the amount and the transaction hash are kept.
|
|
183
|
-
- On every call run from an offer's spec: the offer's id, how the call ended, the provider's HTTP status and how long it took. A call stopped before anything was paid says which side stopped it: the input, the offer's terms, the provider's answer, the network, or the wallet. Never the input or the result.
|
|
184
|
-
|
|
185
|
-
The answer can put one line into your session, or into a task your assistant delegates: the service that fits, what it does, its listed price, and the `mcp__plugin_tenjin_router__request` call carrying the id that brings your context to it. The line says it comes from the Tenjin router you installed, and it is an option: your assistant's own tools keep working. Which service actually runs, and what it costs, is decided when your assistant makes that call, under your spend policy.
|
|
125
|
+
You can optionally share masked task text to help improve Tenjin. Sharing is **off by default**, and setup does not ask you to enable it. Run `tenjin config set router.improve true` to opt in; Tenjin then keeps this text with no set expiry. Run `tenjin config set router.improve false` to stop sharing and request deletion. The CLI reports a failed deletion so you can retry. A project setting cannot enable sharing. [Privacy policy →](https://tenjin.sh/privacy)
|
|
186
126
|
|
|
187
127
|
## Wallet passphrase storage
|
|
188
128
|
|
|
189
|
-
The
|
|
190
|
-
|
|
191
|
-
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).
|
|
192
|
-
|
|
193
|
-
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.
|
|
129
|
+
The encrypted key lives in `~/.tenjin/wallet.json`. Its passphrase is saved in macOS Keychain, Linux Secret Service or Windows DPAPI when available. Without an OS store, Tenjin uses a mode-0600 file in its data directory. Anyone who can read that directory as you can open a file-backed wallet; keep only funds you intend to use.
|
|
194
130
|
|
|
195
|
-
|
|
131
|
+
A locked keychain is unlocked and retried, never silently replaced by plaintext storage. A wrong environment passphrase is reported and the saved one is tried. Shell-only credentials must also be available to the agent host; signing in one shell does not prove another session can sign.
|
|
196
132
|
|
|
197
|
-
|
|
133
|
+
Run `tenjin wallet repair` yourself in a terminal when the saved passphrase is missing or wrong. Never paste it into chat or place it on a command line. Repair preserves the wallet address and funds. A new session must verify that it can unlock the wallet afterward. [Recovery steps →](./troubleshooting.md#tenjin-cannot-unlock-the-wallet)
|
|
198
134
|
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
A subagent is only redirected or offered a lookup when it is known to have `mcp__plugin_tenjin_router__request`: a custom agent whose definition (`.claude/agents/<name>.md` in the project, `~/.claude/agents/<name>.md`, or an installed plugin's) lists it in `tools:` or has no `tools:` line at all, or one of the built-in `general-purpose`, `Explore` and `Plan` agents, which inherit MCP tools. Any other subagent, such as the built-in `claude-code-guide` (which has WebFetch and WebSearch but no MCP tools) or a type with no definition to read, is left alone: its native calls and delegated tasks are not sent to the router at all, and its calls run free. `tenjin doctor` names your own agents that leave the tool out, including one that still lists only the earlier `mcp__x402__request`; add `mcp__plugin_tenjin_router__request` to their `tools:` to allow paid lookups there. Nothing here edits your agent files.
|
|
135
|
+
## Codex
|
|
202
136
|
|
|
203
|
-
|
|
137
|
+
Codex support is experimental. It shares the wallet, limits and request executor, but activation and permission behavior differ.
|
|
204
138
|
|
|
205
|
-
|
|
139
|
+
DeepSeek subagents run on Claude Code only. Codex runs its own subagents natively and Tenjin offers none of them to DeepSeek.
|
|
206
140
|
|
|
207
|
-
|
|
141
|
+
Installation uses Codex's plugin commands and trusts only Tenjin's own hook rows through Codex's configuration API. It leaves hooks you disabled off. If trust cannot be saved, approve the hooks in `/hooks`.
|
|
208
142
|
|
|
209
|
-
|
|
143
|
+
The request permission hook permits calls under your spending policy, including with `approval_policy = "never"`. It also overrides `approval_mode = "prompt"` for this tool. Disable that one hook in `/hooks` to require your host's approval; with approvals forbidden, the call is refused. Internal model calls to the hook tool remain denied. [Host details →](./router-reference.md#host-integration)
|
|
210
144
|
|
|
211
|
-
|
|
145
|
+
## Updates and removal
|
|
212
146
|
|
|
213
|
-
|
|
147
|
+
Tenjin runs from its own verified runtime, so changing system Node does not stop it. `tenjin update` verifies the new package and Node before switching. Existing sessions keep their loaded version; new sessions use the update. Background updates check at most daily and wait until a release is 24 hours old. `update.mode nudge` reports updates; `off` stops checks.
|
|
214
148
|
|
|
215
|
-
|
|
149
|
+
`tenjin uninstall` removes the applicable project or user integration and keeps the wallet, spend ledger and config. `--all` removes all installations; the shared runtime is removed only when none remain. For npm installations, uninstall Tenjin before `npm uninstall -g tenjin-cli`.
|
|
216
150
|
|
|
217
|
-
- `tenjin
|
|
218
|
-
- Where Tenjin's runtime is set up, Tenjin updates itself at most once a day, the way `tenjin update` does, but only to a release published at least 24 hours earlier: at the start of a Claude Code or Codex session, 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.
|
|
151
|
+
To disable all Tenjin routing and request-tool traffic, use `tenjin config set router.enabled false`. A repository's disabled setting cannot be loosened by a child directory. This is a full-off privacy control, not a manual-only mode.
|