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
|
@@ -0,0 +1,371 @@
|
|
|
1
|
+
import { createRequire as __tenjinCreateRequire } from 'node:module'; const require = __tenjinCreateRequire(import.meta.url);
|
|
2
|
+
import {
|
|
3
|
+
accountResult,
|
|
4
|
+
listAccountTools,
|
|
5
|
+
refusalWords,
|
|
6
|
+
runAccountCall,
|
|
7
|
+
runDeps,
|
|
8
|
+
unsavedAnswer
|
|
9
|
+
} from "./chunk-JHFFUVON.js";
|
|
10
|
+
import {
|
|
11
|
+
deliverResult,
|
|
12
|
+
fail,
|
|
13
|
+
paidRecord
|
|
14
|
+
} from "./chunk-5HN4KVQU.js";
|
|
15
|
+
import "./chunk-VHXCPXUS.js";
|
|
16
|
+
import {
|
|
17
|
+
readVaultHeader
|
|
18
|
+
} from "./chunk-XSCGUO2U.js";
|
|
19
|
+
import "./chunk-ODRPASFP.js";
|
|
20
|
+
import {
|
|
21
|
+
appendPaidRecord,
|
|
22
|
+
maskDeep
|
|
23
|
+
} from "./chunk-MAHNZA6C.js";
|
|
24
|
+
import "./chunk-NVSKJPRC.js";
|
|
25
|
+
import {
|
|
26
|
+
rulesNow
|
|
27
|
+
} from "./chunk-HKGUKAQW.js";
|
|
28
|
+
import "./chunk-R4KDH477.js";
|
|
29
|
+
import "./chunk-QKYUCITR.js";
|
|
30
|
+
import "./chunk-Y2EXZ47H.js";
|
|
31
|
+
import "./chunk-IULCDMVG.js";
|
|
32
|
+
import "./chunk-5USBZ2MU.js";
|
|
33
|
+
import "./chunk-JTILUN4W.js";
|
|
34
|
+
import "./chunk-6QMDUDF2.js";
|
|
35
|
+
import "./chunk-P4I7BFNJ.js";
|
|
36
|
+
import "./chunk-OQWPRFAC.js";
|
|
37
|
+
import "./chunk-K5KNGC4I.js";
|
|
38
|
+
import "./chunk-FYFHH7V5.js";
|
|
39
|
+
import "./chunk-HPRVFJPM.js";
|
|
40
|
+
import "./chunk-RGVCOG2S.js";
|
|
41
|
+
import "./chunk-FKVJKLPI.js";
|
|
42
|
+
import "./chunk-YWWMISDY.js";
|
|
43
|
+
import "./chunk-JNUKLSMZ.js";
|
|
44
|
+
import "./chunk-HI5XQOX2.js";
|
|
45
|
+
import "./chunk-XRGFH7FI.js";
|
|
46
|
+
import "./chunk-IGLWLH73.js";
|
|
47
|
+
import "./chunk-7V25UAQO.js";
|
|
48
|
+
import "./chunk-PETQ5WEA.js";
|
|
49
|
+
import "./chunk-INSIW65E.js";
|
|
50
|
+
import "./chunk-CZJOMUBP.js";
|
|
51
|
+
import "./chunk-RBJPAZFI.js";
|
|
52
|
+
import "./chunk-WFZX352D.js";
|
|
53
|
+
import "./chunk-ZS7JIUJ3.js";
|
|
54
|
+
import "./chunk-C265QIMJ.js";
|
|
55
|
+
import "./chunk-JWAK7JQB.js";
|
|
56
|
+
import {
|
|
57
|
+
accountServices,
|
|
58
|
+
cachedIdentities
|
|
59
|
+
} from "./chunk-3Y6BHIN6.js";
|
|
60
|
+
import "./chunk-R62PKTAG.js";
|
|
61
|
+
import "./chunk-2W4DQQUU.js";
|
|
62
|
+
import "./chunk-KLDMLWXT.js";
|
|
63
|
+
import "./chunk-HZKANST2.js";
|
|
64
|
+
import "./chunk-MEZJ3I63.js";
|
|
65
|
+
import "./chunk-ILWCKCOI.js";
|
|
66
|
+
import "./chunk-RFZA7PSM.js";
|
|
67
|
+
import "./chunk-JUUBBBY5.js";
|
|
68
|
+
import "./chunk-7SLOTLO7.js";
|
|
69
|
+
import {
|
|
70
|
+
openLookupFooter
|
|
71
|
+
} from "./chunk-2U7H35IP.js";
|
|
72
|
+
import "./chunk-W2GXIARJ.js";
|
|
73
|
+
import {
|
|
74
|
+
savedAccounts
|
|
75
|
+
} from "./chunk-TFT2X7SH.js";
|
|
76
|
+
import "./chunk-DTEWAVNE.js";
|
|
77
|
+
import "./chunk-UIB33QQP.js";
|
|
78
|
+
import "./chunk-7WEQQJLG.js";
|
|
79
|
+
import "./chunk-ZCT5DJ3G.js";
|
|
80
|
+
import "./chunk-3MZ7DYRO.js";
|
|
81
|
+
import "./chunk-JTX3BUDK.js";
|
|
82
|
+
import {
|
|
83
|
+
MAX_INPUT_BYTES,
|
|
84
|
+
McpToolSchema
|
|
85
|
+
} from "./chunk-ZEYA2WWX.js";
|
|
86
|
+
import "./chunk-DIH2G3YG.js";
|
|
87
|
+
import "./chunk-D6M3ZK66.js";
|
|
88
|
+
import "./chunk-RGCPELQN.js";
|
|
89
|
+
import "./chunk-CRG54LEB.js";
|
|
90
|
+
import "./chunk-TUCKEEXE.js";
|
|
91
|
+
import "./chunk-P6YQWIT2.js";
|
|
92
|
+
import "./chunk-DI4QAGRZ.js";
|
|
93
|
+
import "./chunk-3Y2EHT4F.js";
|
|
94
|
+
import "./chunk-ZXTAQYNA.js";
|
|
95
|
+
|
|
96
|
+
// src/router/accounts/explicit.ts
|
|
97
|
+
var UNMAPPED_NOTE = "Tenjin doesn't know this service's tools. Your plan pays.";
|
|
98
|
+
var DESCRIPTION_CHARS = 200;
|
|
99
|
+
var MAX_ROWS = 100;
|
|
100
|
+
var flat = (text) => text.replace(/[\p{Cc}\p{Cf}]+/gu, " ").replace(/\s+/g, " ").trim();
|
|
101
|
+
var clip = (text, max) => text.length <= max ? text : `${text.slice(0, max - 1).trimEnd()}\u2026`;
|
|
102
|
+
var ARGUMENT_NAME = /^[A-Za-z_][A-Za-z0-9_.-]{0,63}$/;
|
|
103
|
+
function shownTools(tools) {
|
|
104
|
+
return tools.flatMap(
|
|
105
|
+
(tool) => McpToolSchema.safeParse(tool.name).success ? [{ ...tool, arguments: tool.arguments.filter((name) => ARGUMENT_NAME.test(name)) }] : []
|
|
106
|
+
);
|
|
107
|
+
}
|
|
108
|
+
var SCHEMA_KEY = /^\$?[A-Za-z_][A-Za-z0-9_.-]{0,63}$/;
|
|
109
|
+
var SCHEMA_DEPTH = 8;
|
|
110
|
+
var SCHEMA_ITEMS = 32;
|
|
111
|
+
function shownSchema(value, depth = 0) {
|
|
112
|
+
if (typeof value === "string") return clip(flat(value), DESCRIPTION_CHARS);
|
|
113
|
+
if (value === null || typeof value !== "object") return value;
|
|
114
|
+
if (depth >= SCHEMA_DEPTH) return {};
|
|
115
|
+
if (Array.isArray(value))
|
|
116
|
+
return value.slice(0, SCHEMA_ITEMS).map((item) => shownSchema(item, depth + 1));
|
|
117
|
+
return Object.fromEntries(
|
|
118
|
+
Object.entries(value).filter(([key]) => SCHEMA_KEY.test(key)).slice(0, SCHEMA_ITEMS).map(([key, item]) => [key, shownSchema(item, depth + 1)])
|
|
119
|
+
);
|
|
120
|
+
}
|
|
121
|
+
function row(tool) {
|
|
122
|
+
return {
|
|
123
|
+
tool: tool.name,
|
|
124
|
+
...tool.description !== void 0 ? { does: clip(flat(tool.description), DESCRIPTION_CHARS) } : {},
|
|
125
|
+
arguments: tool.arguments.slice(0, 32)
|
|
126
|
+
};
|
|
127
|
+
}
|
|
128
|
+
function jobForm(jobs) {
|
|
129
|
+
return jobs.length > 0 ? `request({tool: "<one of ${jobs.map((job) => JSON.stringify(job)).join(", ")}>"}) for its spec, then request({id, input})` : "request({query}) naming the task";
|
|
130
|
+
}
|
|
131
|
+
var connectableOf = (account, identities) => identities?.sources.find(({ id }) => id === account.id)?.connectable;
|
|
132
|
+
function hasMaps(account, identities) {
|
|
133
|
+
return account.mapped === true || connectableOf(account, identities) !== void 0;
|
|
134
|
+
}
|
|
135
|
+
function jobsOnlyTools(account, identities) {
|
|
136
|
+
if (!hasMaps(account, identities)) return /* @__PURE__ */ new Set();
|
|
137
|
+
const listed = connectableOf(account, identities);
|
|
138
|
+
if (account.mappedTools === void 0 && listed === void 0) return null;
|
|
139
|
+
return /* @__PURE__ */ new Set([...account.mappedTools ?? [], ...listed?.expectTools ?? []]);
|
|
140
|
+
}
|
|
141
|
+
async function settingsStop(dataDir) {
|
|
142
|
+
const now = await rulesNow(dataDir);
|
|
143
|
+
return "problem" in now ? `your Tenjin settings can't be read (${now.problem})` : null;
|
|
144
|
+
}
|
|
145
|
+
async function runSourceRequest(args, deps) {
|
|
146
|
+
const { dataDir } = deps.ctx;
|
|
147
|
+
const wanted = args.source.trim().toLowerCase();
|
|
148
|
+
const account = (await savedAccounts(dataDir)).find(
|
|
149
|
+
({ id: id2, label: label2 }) => id2 === wanted || label2.toLowerCase() === wanted
|
|
150
|
+
);
|
|
151
|
+
if (account === void 0) {
|
|
152
|
+
return fail(
|
|
153
|
+
"needs_input",
|
|
154
|
+
`"${clip(flat(args.source), 80)}" isn't one of the user's connected accounts, so nothing was sent.`,
|
|
155
|
+
{
|
|
156
|
+
nextStep: "If the user wants it, they can connect it with `tenjin connect <name or https address>`."
|
|
157
|
+
}
|
|
158
|
+
);
|
|
159
|
+
}
|
|
160
|
+
const { label, id } = account;
|
|
161
|
+
const header = await readVaultHeader(dataDir, id).catch(() => null);
|
|
162
|
+
if (header === null) {
|
|
163
|
+
return fail("needs_input", `${label} isn't signed in on this machine, so nothing was sent.`, {
|
|
164
|
+
nextStep: `The user can sign in with \`tenjin connect ${id}\`.`
|
|
165
|
+
});
|
|
166
|
+
}
|
|
167
|
+
if (header.mcpUrl !== account.mcpUrl) {
|
|
168
|
+
return fail(
|
|
169
|
+
"needs_input",
|
|
170
|
+
`The address saved for ${label} isn't the one it was signed in for, so nothing was sent.`,
|
|
171
|
+
{ nextStep: `The user can reconnect with \`tenjin connect ${id}\`.` }
|
|
172
|
+
);
|
|
173
|
+
}
|
|
174
|
+
const tool = args.tool?.trim();
|
|
175
|
+
if (tool !== void 0 && !McpToolSchema.safeParse(tool).success) {
|
|
176
|
+
return fail("needs_input", "That is not a tool name an account lists; nothing was sent.", {
|
|
177
|
+
nextStep: `Call request({source: ${JSON.stringify(id)}}) for its tools.`
|
|
178
|
+
});
|
|
179
|
+
}
|
|
180
|
+
if (args.input !== void 0 && tool === void 0)
|
|
181
|
+
return fail("needs_input", "An input goes with the tool it is for; nothing was sent.", {
|
|
182
|
+
nextStep: `Call request({source: ${JSON.stringify(id)}}) for its tools.`
|
|
183
|
+
});
|
|
184
|
+
const toRun = tool !== void 0 && args.input !== void 0 ? { tool, input: args.input } : void 0;
|
|
185
|
+
if (toRun !== void 0) {
|
|
186
|
+
const serialized = JSON.stringify(toRun.input);
|
|
187
|
+
if (Buffer.byteLength(serialized) > MAX_INPUT_BYTES)
|
|
188
|
+
return fail("needs_input", `The input is over ${MAX_INPUT_BYTES} bytes; send a smaller one.`);
|
|
189
|
+
if (JSON.stringify(maskDeep(toRun.input)) !== serialized)
|
|
190
|
+
return fail("native", "the input carries a credential-shaped value, so nothing was sent");
|
|
191
|
+
}
|
|
192
|
+
const identities = await cachedIdentities(dataDir);
|
|
193
|
+
const jobs = accountServices(account.id, identities).map(({ id: id2 }) => id2);
|
|
194
|
+
const jobsOnly = jobsOnlyTools(account, identities);
|
|
195
|
+
if (toRun !== void 0 && (jobsOnly === null || jobsOnly.has(toRun.tool))) {
|
|
196
|
+
return fail(
|
|
197
|
+
"needs_input",
|
|
198
|
+
jobsOnly === null ? `Tenjin can't tell which of your ${label} account's tools its jobs use, so nothing was sent.` : `Tenjin runs ${toRun.tool} on your ${label} account only through the jobs it maps it to, with their spending caps, so nothing was sent.`,
|
|
199
|
+
{
|
|
200
|
+
nextStep: jobsOnly === null ? `The user can reconnect with \`tenjin connect ${id}\`.` : `For a task Tenjin has a job for on ${label}, call ${jobForm(jobs)}: it runs there with Tenjin's settings for that job. Otherwise continue with your own tools.`
|
|
201
|
+
}
|
|
202
|
+
);
|
|
203
|
+
}
|
|
204
|
+
const stop = await settingsStop(dataDir);
|
|
205
|
+
if (stop !== null) {
|
|
206
|
+
return fail("needs_input", `${stop}, so nothing was sent to it.`, {
|
|
207
|
+
nextStep: "Tell the user which setting stopped it; they can change it with `tenjin config`. Don't change it yourself."
|
|
208
|
+
});
|
|
209
|
+
}
|
|
210
|
+
const unmapped = hasMaps(account, identities) ? void 0 : UNMAPPED_NOTE;
|
|
211
|
+
const noted = unmapped !== void 0 ? { warning: unmapped } : {};
|
|
212
|
+
const target = { id, label };
|
|
213
|
+
const refused = (reason, detail, answered = false) => {
|
|
214
|
+
const words = refusalWords(reason, { id, label }, detail);
|
|
215
|
+
const text = answered ? `${words.said} It may have run on your ${label} account; nothing was charged to your Tenjin balance.` : `${words.said} Nothing ran on your ${label} account.`;
|
|
216
|
+
return accountResult("needs_input", `${text} ${words.fix}`, text, label, {
|
|
217
|
+
nextStep: answered ? `Tell the user: ${words.fix} Don't send it again unless they ask: it may have run.` : `Tell the user: ${words.fix}`,
|
|
218
|
+
...answered && detail !== void 0 ? { providerError: detail } : {},
|
|
219
|
+
...answered ? { ran: "maybe" } : {},
|
|
220
|
+
extra: { refused: { account: label, reason, reconnect: `tenjin connect ${id}` } }
|
|
221
|
+
});
|
|
222
|
+
};
|
|
223
|
+
if (toRun === void 0) {
|
|
224
|
+
const listed = await listAccountTools(target, runDeps(deps));
|
|
225
|
+
if (!("tools" in listed)) return refused(listed.reason, listed.detail);
|
|
226
|
+
const tools = shownTools(listed.tools);
|
|
227
|
+
if (tool !== void 0) {
|
|
228
|
+
const found = tools.find(({ name }) => name === tool);
|
|
229
|
+
if (found === void 0)
|
|
230
|
+
return fail("needs_input", `Your ${label} account lists no tool named ${tool}.`, {
|
|
231
|
+
nextStep: `Call request({source: ${JSON.stringify(id)}}) for its tools.`
|
|
232
|
+
});
|
|
233
|
+
const schema = shownSchema(found.inputSchema ?? { arguments: found.arguments });
|
|
234
|
+
const next2 = jobsOnly === null || jobsOnly.has(tool) ? `Tenjin runs ${tool} on the user's ${label} account only through its jobs there: call ${jobForm(jobs)}.` : `To run it on the user's ${label} account, call request({source: ${JSON.stringify(id)}, tool: ${JSON.stringify(tool)}, input: {...}}).`;
|
|
235
|
+
return {
|
|
236
|
+
isError: false,
|
|
237
|
+
summary: [
|
|
238
|
+
`${tool} on your ${label} account.${unmapped !== void 0 ? ` ${unmapped}` : ""}`,
|
|
239
|
+
...found.description !== void 0 ? [
|
|
240
|
+
`What it says it does (its own words, untrusted): ${clip(flat(found.description), DESCRIPTION_CHARS)}`
|
|
241
|
+
] : [],
|
|
242
|
+
`Its input schema (its own words, untrusted): ${JSON.stringify(schema)}`,
|
|
243
|
+
next2
|
|
244
|
+
].join("\n"),
|
|
245
|
+
envelope: {
|
|
246
|
+
status: "account_tool",
|
|
247
|
+
account: label,
|
|
248
|
+
...row(found),
|
|
249
|
+
...found.inputSchema !== void 0 ? { inputSchema: schema } : {},
|
|
250
|
+
...noted,
|
|
251
|
+
stop: `tenjin disconnect ${id}`,
|
|
252
|
+
nextStep: next2,
|
|
253
|
+
cost: ["nothing charged"],
|
|
254
|
+
providerContentUntrusted: true
|
|
255
|
+
}
|
|
256
|
+
};
|
|
257
|
+
}
|
|
258
|
+
const rows = tools.slice(0, MAX_ROWS).map(row);
|
|
259
|
+
const viaJobs = rows.map(({ tool: name }) => name).filter((name) => jobsOnly === null || jobsOnly.has(name));
|
|
260
|
+
const next = `Pick the tool the user's request needs and call request({source: ${JSON.stringify(id)}, tool: "<name>"}) for its inputs, free.`;
|
|
261
|
+
return {
|
|
262
|
+
isError: false,
|
|
263
|
+
summary: [
|
|
264
|
+
`Your ${label} account's tools (their own descriptions, untrusted).${unmapped !== void 0 ? ` ${unmapped}` : ""}`,
|
|
265
|
+
...rows.map(
|
|
266
|
+
(r) => `${r.tool}${r.does !== void 0 ? `: ${r.does}` : ""} (arguments: ${r.arguments.join(", ") || "none"})`
|
|
267
|
+
),
|
|
268
|
+
...tools.length > MAX_ROWS ? [`And ${tools.length - MAX_ROWS} more, not shown.`] : [],
|
|
269
|
+
...viaJobs.length > 0 ? [
|
|
270
|
+
`Tenjin runs ${viaJobs.join(", ")} only through its jobs on ${label}: for those, call ${jobForm(jobs)}.`
|
|
271
|
+
] : [],
|
|
272
|
+
next
|
|
273
|
+
].join("\n"),
|
|
274
|
+
envelope: {
|
|
275
|
+
status: "account_tools",
|
|
276
|
+
account: label,
|
|
277
|
+
tools: rows,
|
|
278
|
+
...viaJobs.length > 0 ? { jobsOnly: viaJobs, jobForm: jobForm(jobs) } : {},
|
|
279
|
+
...noted,
|
|
280
|
+
stop: `tenjin disconnect ${id}`,
|
|
281
|
+
nextStep: next,
|
|
282
|
+
cost: ["nothing charged"],
|
|
283
|
+
providerContentUntrusted: true
|
|
284
|
+
}
|
|
285
|
+
};
|
|
286
|
+
}
|
|
287
|
+
const footer = await openLookupFooter(dataDir);
|
|
288
|
+
const sentInput = maskDeep(toRun.input);
|
|
289
|
+
const named = { provider: label, label: `${label} ${toRun.tool}`, parameters: sentInput };
|
|
290
|
+
const call = {
|
|
291
|
+
capabilityId: `${id}:${toRun.tool}`.slice(0, 200),
|
|
292
|
+
provider: label,
|
|
293
|
+
label: `${label} ${toRun.tool}`,
|
|
294
|
+
// A named tool's links are not fetched: only its own files are saved.
|
|
295
|
+
media: false,
|
|
296
|
+
parameters: sentInput,
|
|
297
|
+
sent: JSON.stringify(sentInput),
|
|
298
|
+
request: { url: header.mcpUrl }
|
|
299
|
+
};
|
|
300
|
+
const keepRow = () => appendPaidRecord(dataDir, {
|
|
301
|
+
...paidRecord(call, call.request.url, call.sent, 0n, {
|
|
302
|
+
savedFiles: [],
|
|
303
|
+
account: id,
|
|
304
|
+
...deps.now !== void 0 ? { now: deps.now } : {}
|
|
305
|
+
}),
|
|
306
|
+
charge: "unknown"
|
|
307
|
+
});
|
|
308
|
+
await footer.calling(named);
|
|
309
|
+
const run = await runAccountCall(
|
|
310
|
+
target,
|
|
311
|
+
{ tool: toRun.tool, args: toRun.input, result: "content" },
|
|
312
|
+
toRun.input,
|
|
313
|
+
runDeps(deps),
|
|
314
|
+
void 0,
|
|
315
|
+
{ literal: true }
|
|
316
|
+
);
|
|
317
|
+
switch (run.kind) {
|
|
318
|
+
case "refused":
|
|
319
|
+
await footer.done("needs_input", named);
|
|
320
|
+
return refused(run.reason, run.detail);
|
|
321
|
+
case "declined":
|
|
322
|
+
await keepRow();
|
|
323
|
+
await footer.done("needs_input", named);
|
|
324
|
+
return refused(run.reason ?? "declined", run.detail, true);
|
|
325
|
+
case "input":
|
|
326
|
+
await footer.done("needs_input", named);
|
|
327
|
+
return accountResult(
|
|
328
|
+
"needs_input",
|
|
329
|
+
`Your ${label} account didn't take that input for ${toRun.tool}; its answer is in providerError.`,
|
|
330
|
+
`Your ${label} account didn't take that input.`,
|
|
331
|
+
label,
|
|
332
|
+
{
|
|
333
|
+
providerError: run.detail,
|
|
334
|
+
nextStep: `Call request({source: ${JSON.stringify(id)}, tool: ${JSON.stringify(toRun.tool)}}) for its inputs, then try again.`,
|
|
335
|
+
parameters: sentInput
|
|
336
|
+
}
|
|
337
|
+
);
|
|
338
|
+
case "failed": {
|
|
339
|
+
await keepRow();
|
|
340
|
+
await footer.done("failed", { ...named, price: "your account" });
|
|
341
|
+
const reason = `Your ${label} account ran ${toRun.tool}, but ${run.why}. It may have billed your ${label} plan; nothing was charged to your Tenjin balance.`;
|
|
342
|
+
return accountResult("failed", reason, reason, label, {
|
|
343
|
+
...run.detail !== void 0 ? { providerError: run.detail } : {},
|
|
344
|
+
nextStep: `Tell the user it may have run on their ${label} account; don't call it again for this.`,
|
|
345
|
+
parameters: sentInput,
|
|
346
|
+
ran: "maybe"
|
|
347
|
+
});
|
|
348
|
+
}
|
|
349
|
+
case "done": {
|
|
350
|
+
const done = await deliverResult(
|
|
351
|
+
call,
|
|
352
|
+
deps,
|
|
353
|
+
footer,
|
|
354
|
+
{ bodyText: run.text, ...run.media.length > 0 ? { files: run.media } : {} },
|
|
355
|
+
{ providerAtomic: 0n, ledger: "append", account: { label, source: id } }
|
|
356
|
+
);
|
|
357
|
+
const result = done.unsaved !== void 0 ? unsavedAnswer(label, done.result, done.unsaved) : done.result;
|
|
358
|
+
return {
|
|
359
|
+
...result,
|
|
360
|
+
summary: unmapped !== void 0 ? `${result.summary}
|
|
361
|
+
${unmapped}` : result.summary,
|
|
362
|
+
envelope: { ...result.envelope, ...noted, stop: `tenjin disconnect ${id}` }
|
|
363
|
+
};
|
|
364
|
+
}
|
|
365
|
+
}
|
|
366
|
+
}
|
|
367
|
+
export {
|
|
368
|
+
jobForm,
|
|
369
|
+
runSourceRequest
|
|
370
|
+
};
|
|
371
|
+
//# sourceMappingURL=explicit-ME2NRADQ.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/router/accounts/explicit.ts"],"sourcesContent":["import { MAX_INPUT_BYTES, McpToolSchema } from '../decision';\nimport { accountServices, cachedIdentities, type Identities } from '../identities';\nimport { appendPaidRecord, maskDeep } from '../paid';\nimport { openLookupFooter } from '../progress';\nimport { rulesNow } from '../settings-check';\nimport {\n deliverResult,\n fail,\n paidRecord,\n type DeliverCall,\n type RequestToolDeps,\n type RequestToolResult,\n} from '../tool';\nimport { listAccountTools, runAccountCall } from './call';\nimport type { AccountTool } from './client';\nimport { accountResult, refusalWords, runDeps, unsavedAnswer, type StopReason } from './run';\nimport { savedAccounts, type SavedAccount } from './saved';\nimport { readVaultHeader } from './vault';\n\n/**\n * A CONNECTED ACCOUNT'S OWN TOOLS, RUN BECAUSE THE USER NAMED THE ACCOUNT\n * (plan 37). An account Tenjin has no map for, or a tool its map leaves out,\n * is never suggested; when the user asks for it by name:\n *\n * - `request({source})` lists its tools, free: names, the top-level\n * arguments, and descriptions trimmed to one line and marked untrusted,\n * since the account's server wrote them. A name no account call could use\n * is dropped, and argument names keep only an argument's shape.\n * - `request({source, tool})` shows one tool's input schema, free, with every\n * string in it on one line, clipped, and marked untrusted.\n * - `request({source, tool, input})` runs that tool on the account with the\n * agent's arguments as written, with a receipt and a ledger row.\n *\n * AN ACCOUNT TENJIN HAS NO MAP FOR carries {@link UNMAPPED_NOTE} on each of\n * these answers: Tenjin knows nothing of its tools. An account it maps\n * carries none.\n *\n * THE AGENT IS ASKING BY NAME, so the user's rules, which govern only what\n * Tenjin picks on its own, never stop it: a block on this very account\n * included. It only refuses while the saved rules can't be read. Pausing\n * Tenjin stops it too, before anything here runs.\n *\n * THE STOP FOR A NAMED ACCOUNT IS `tenjin disconnect <id>`, which every\n * result here names as `stop`. A block can't be the one: it stops only\n * Tenjin's own picks, and `config block --source` resolves names against the\n * router's identities read, which never lists an account connected by its\n * address.\n *\n * ON AN ACCOUNT TENJIN MAPS, every tool its maps call (Apify's `call-actor`,\n * fal's `run_model`) runs only through a mapped job, which pins its cost: a\n * named call for it is refused with the job's own `request({tool})`. The\n * account's other tools run here as they would on any account.\n *\n * Nothing here is a lookup: no routing decision, nothing from the Tenjin\n * balance. The account's own plan pays for what its tool does.\n */\n\ntype Json = Record<string, unknown>;\n\n/** What every answer for an account Tenjin has no map for says. */\nconst UNMAPPED_NOTE = \"Tenjin doesn't know this service's tools. Your plan pays.\";\n\n/** How much of an untrusted description a row shows. */\nconst DESCRIPTION_CHARS = 200;\n/** How many tools one listing shows. */\nconst MAX_ROWS = 100;\n\nconst flat = (text: string): string =>\n text\n .replace(/[\\p{Cc}\\p{Cf}]+/gu, ' ')\n .replace(/\\s+/g, ' ')\n .trim();\n\nconst clip = (text: string, max: number): string =>\n text.length <= max ? text : `${text.slice(0, max - 1).trimEnd()}…`;\n\n/**\n * WHAT THE ACCOUNT'S SERVER WROTE, AS THE AGENT MAY READ IT. Every tool name,\n * argument name and schema string is the server's own and reaches the agent's\n * context, so none of it is passed on as written: a tool whose name is not one\n * an account call can name is dropped (it could not be run anyway), argument\n * names keep only the shape an argument has, and a schema keeps keys of that\n * shape and every string flattened to one line and clipped.\n */\nconst ARGUMENT_NAME = /^[A-Za-z_][A-Za-z0-9_.-]{0,63}$/;\n\nfunction shownTools(tools: readonly AccountTool[]): AccountTool[] {\n return tools.flatMap((tool) =>\n McpToolSchema.safeParse(tool.name).success\n ? [{ ...tool, arguments: tool.arguments.filter((name) => ARGUMENT_NAME.test(name)) }]\n : [],\n );\n}\n\n/** A key a schema keeps: an argument's shape, or a JSON Schema keyword. */\nconst SCHEMA_KEY = /^\\$?[A-Za-z_][A-Za-z0-9_.-]{0,63}$/;\n/** How deep a schema is shown, and how many items each list keeps. */\nconst SCHEMA_DEPTH = 8;\nconst SCHEMA_ITEMS = 32;\n\nfunction shownSchema(value: unknown, depth = 0): unknown {\n if (typeof value === 'string') return clip(flat(value), DESCRIPTION_CHARS);\n if (value === null || typeof value !== 'object') return value;\n if (depth >= SCHEMA_DEPTH) return {};\n if (Array.isArray(value))\n return value.slice(0, SCHEMA_ITEMS).map((item) => shownSchema(item, depth + 1));\n return Object.fromEntries(\n Object.entries(value)\n .filter(([key]) => SCHEMA_KEY.test(key))\n .slice(0, SCHEMA_ITEMS)\n .map(([key, item]) => [key, shownSchema(item, depth + 1)]),\n );\n}\n\n/** One tool as a listing shows it. */\ninterface ToolRow {\n tool: string;\n does?: string;\n arguments: string[];\n}\n\nfunction row(tool: AccountTool): ToolRow {\n return {\n tool: tool.name,\n ...(tool.description !== undefined\n ? { does: clip(flat(tool.description), DESCRIPTION_CHARS) }\n : {}),\n arguments: tool.arguments.slice(0, 32),\n };\n}\n\n/** The call that runs a task on the user's account through Tenjin's map. */\nexport function jobForm(jobs: readonly string[]): string {\n return jobs.length > 0\n ? `request({tool: \"<one of ${jobs.map((job) => JSON.stringify(job)).join(', ')}>\"}) for its spec, then request({id, input})`\n : 'request({query}) naming the task';\n}\n\n/** How the identities read kept on disk lists this account, if it does. */\nconst connectableOf = (account: SavedAccount, identities: Identities | undefined) =>\n identities?.sources.find(({ id }) => id === account.id)?.connectable;\n\n/** Whether Tenjin has maps for this account: the descriptor connect wrote\n * says so, or the identities read kept on disk lists it. */\nfunction hasMaps(account: SavedAccount, identities: Identities | undefined): boolean {\n return account.mapped === true || connectableOf(account, identities) !== undefined;\n}\n\n/**\n * THE TOOLS A MAPPED ACCOUNT'S JOBS CALL, which a named call never runs: the\n * map pins their cost (Apify's `callOptions.maxTotalChargeUsd`, one fal\n * image, a Firecrawl result limit) and the agent's own arguments would not.\n * From the descriptor connect wrote and the identities read kept on disk.\n * Empty for an account with no map; null for a mapped one neither names,\n * which runs no tool by name until it is reconnected.\n */\nfunction jobsOnlyTools(\n account: SavedAccount,\n identities: Identities | undefined,\n): Set<string> | null {\n if (!hasMaps(account, identities)) return new Set();\n const listed = connectableOf(account, identities);\n if (account.mappedTools === undefined && listed === undefined) return null;\n return new Set([...(account.mappedTools ?? []), ...(listed?.expectTools ?? [])]);\n}\n\n/** Why the saved settings stop a named call, or null: only rules that can't\n * be read, never a rule, since the agent is asking by name. */\nasync function settingsStop(dataDir: string): Promise<string | null> {\n const now = await rulesNow(dataDir);\n return 'problem' in now ? `your Tenjin settings can't be read (${now.problem})` : null;\n}\n\n/** `request({source, tool?, input?})`. */\nexport async function runSourceRequest(\n args: { source: string; tool?: string; input?: Json },\n deps: RequestToolDeps,\n): Promise<RequestToolResult> {\n const { dataDir } = deps.ctx;\n const wanted = args.source.trim().toLowerCase();\n const account = (await savedAccounts(dataDir)).find(\n ({ id, label }) => id === wanted || label.toLowerCase() === wanted,\n );\n if (account === undefined) {\n return fail(\n 'needs_input',\n `\"${clip(flat(args.source), 80)}\" isn't one of the user's connected accounts, so nothing was sent.`,\n {\n nextStep:\n 'If the user wants it, they can connect it with `tenjin connect <name or https address>`.',\n },\n );\n }\n const { label, id } = account;\n const header = await readVaultHeader(dataDir, id).catch(() => null);\n if (header === null) {\n return fail('needs_input', `${label} isn't signed in on this machine, so nothing was sent.`, {\n nextStep: `The user can sign in with \\`tenjin connect ${id}\\`.`,\n });\n }\n // THE SIGN-IN IS FOR ONE SERVER: the one sealed with it. A descriptor that\n // names another (a hand edit, a copied or synced file) never gets the\n // account's credential; the call itself goes to the sealed address anyway.\n if (header.mcpUrl !== account.mcpUrl) {\n return fail(\n 'needs_input',\n `The address saved for ${label} isn't the one it was signed in for, so nothing was sent.`,\n { nextStep: `The user can reconnect with \\`tenjin connect ${id}\\`.` },\n );\n }\n const tool = args.tool?.trim();\n if (tool !== undefined && !McpToolSchema.safeParse(tool).success) {\n return fail('needs_input', 'That is not a tool name an account lists; nothing was sent.', {\n nextStep: `Call request({source: ${JSON.stringify(id)}}) for its tools.`,\n });\n }\n if (args.input !== undefined && tool === undefined)\n return fail('needs_input', 'An input goes with the tool it is for; nothing was sent.', {\n nextStep: `Call request({source: ${JSON.stringify(id)}}) for its tools.`,\n });\n // THE TOOL TO RUN, with its input. With no input nothing runs: the\n // account's tools are listed, or one tool's inputs shown, free.\n const toRun =\n tool !== undefined && args.input !== undefined ? { tool, input: args.input } : undefined;\n if (toRun !== undefined) {\n const serialized = JSON.stringify(toRun.input);\n if (Buffer.byteLength(serialized) > MAX_INPUT_BYTES)\n return fail('needs_input', `The input is over ${MAX_INPUT_BYTES} bytes; send a smaller one.`);\n if (JSON.stringify(maskDeep(toRun.input)) !== serialized)\n return fail('native', 'the input carries a credential-shaped value, so nothing was sent');\n }\n\n // A MAPPED JOB'S TOOLS run only through that job, with the map's cost\n // pins: never with the agent's own arguments.\n const identities = await cachedIdentities(dataDir);\n // The jobs Tenjin maps on this account, by their service ids, from the\n // identities read kept on disk.\n const jobs = accountServices(account.id, identities).map(({ id }) => id);\n const jobsOnly = jobsOnlyTools(account, identities);\n if (toRun !== undefined && (jobsOnly === null || jobsOnly.has(toRun.tool))) {\n return fail(\n 'needs_input',\n jobsOnly === null\n ? `Tenjin can't tell which of your ${label} account's tools its jobs use, so nothing was sent.`\n : `Tenjin runs ${toRun.tool} on your ${label} account only through the jobs it maps it to, with their spending caps, so nothing was sent.`,\n {\n nextStep:\n jobsOnly === null\n ? `The user can reconnect with \\`tenjin connect ${id}\\`.`\n : `For a task Tenjin has a job for on ${label}, call ${jobForm(jobs)}: it runs there with Tenjin's settings for that job. Otherwise continue with your own tools.`,\n },\n );\n }\n\n // THE USER'S SETTINGS: only rules that can't be read stop a named call.\n const stop = await settingsStop(dataDir);\n if (stop !== null) {\n return fail('needs_input', `${stop}, so nothing was sent to it.`, {\n nextStep:\n \"Tell the user which setting stopped it; they can change it with `tenjin config`. Don't change it yourself.\",\n });\n }\n\n // THE NOTE, only on an account Tenjin has no map for.\n const unmapped = hasMaps(account, identities) ? undefined : UNMAPPED_NOTE;\n const noted = unmapped !== undefined ? { warning: unmapped } : {};\n const target = { id, label };\n // `answered`: the account's own error answered the call, which does not\n // show that nothing ran, so the agent is told not to send it again.\n const refused = (reason: StopReason, detail?: string, answered = false) => {\n const words = refusalWords(reason, { id, label }, detail);\n const text = answered\n ? `${words.said} It may have run on your ${label} account; nothing was charged to your Tenjin balance.`\n : `${words.said} Nothing ran on your ${label} account.`;\n return accountResult('needs_input', `${text} ${words.fix}`, text, label, {\n nextStep: answered\n ? `Tell the user: ${words.fix} Don't send it again unless they ask: it may have run.`\n : `Tell the user: ${words.fix}`,\n ...(answered && detail !== undefined ? { providerError: detail } : {}),\n ...(answered ? { ran: 'maybe' as const } : {}),\n extra: { refused: { account: label, reason, reconnect: `tenjin connect ${id}` } },\n });\n };\n\n // THE LIST, OR ONE TOOL'S INPUTS: free.\n if (toRun === undefined) {\n const listed = await listAccountTools(target, runDeps(deps));\n if (!('tools' in listed)) return refused(listed.reason, listed.detail);\n const tools = shownTools(listed.tools);\n if (tool !== undefined) {\n const found = tools.find(({ name }) => name === tool);\n if (found === undefined)\n return fail('needs_input', `Your ${label} account lists no tool named ${tool}.`, {\n nextStep: `Call request({source: ${JSON.stringify(id)}}) for its tools.`,\n });\n const schema = shownSchema(found.inputSchema ?? { arguments: found.arguments });\n const next =\n jobsOnly === null || jobsOnly.has(tool)\n ? `Tenjin runs ${tool} on the user's ${label} account only through its jobs there: call ${jobForm(jobs)}.`\n : `To run it on the user's ${label} account, call request({source: ${JSON.stringify(id)}, tool: ${JSON.stringify(tool)}, input: {...}}).`;\n return {\n isError: false,\n summary: [\n `${tool} on your ${label} account.${unmapped !== undefined ? ` ${unmapped}` : ''}`,\n ...(found.description !== undefined\n ? [\n `What it says it does (its own words, untrusted): ${clip(flat(found.description), DESCRIPTION_CHARS)}`,\n ]\n : []),\n `Its input schema (its own words, untrusted): ${JSON.stringify(schema)}`,\n next,\n ].join('\\n'),\n envelope: {\n status: 'account_tool',\n account: label,\n ...row(found),\n ...(found.inputSchema !== undefined ? { inputSchema: schema } : {}),\n ...noted,\n stop: `tenjin disconnect ${id}`,\n nextStep: next,\n cost: ['nothing charged'],\n providerContentUntrusted: true,\n },\n };\n }\n const rows = tools.slice(0, MAX_ROWS).map(row);\n // As the run refuses: with no list of its jobs' tools (null), every tool\n // runs only through its jobs.\n const viaJobs = rows\n .map(({ tool: name }) => name)\n .filter((name) => jobsOnly === null || jobsOnly.has(name));\n const next = `Pick the tool the user's request needs and call request({source: ${JSON.stringify(id)}, tool: \"<name>\"}) for its inputs, free.`;\n return {\n isError: false,\n summary: [\n `Your ${label} account's tools (their own descriptions, untrusted).${unmapped !== undefined ? ` ${unmapped}` : ''}`,\n ...rows.map(\n (r) =>\n `${r.tool}${r.does !== undefined ? `: ${r.does}` : ''} (arguments: ${r.arguments.join(', ') || 'none'})`,\n ),\n ...(tools.length > MAX_ROWS ? [`And ${tools.length - MAX_ROWS} more, not shown.`] : []),\n ...(viaJobs.length > 0\n ? [\n `Tenjin runs ${viaJobs.join(', ')} only through its jobs on ${label}: for those, call ${jobForm(jobs)}.`,\n ]\n : []),\n next,\n ].join('\\n'),\n envelope: {\n status: 'account_tools',\n account: label,\n tools: rows,\n ...(viaJobs.length > 0 ? { jobsOnly: viaJobs, jobForm: jobForm(jobs) } : {}),\n ...noted,\n stop: `tenjin disconnect ${id}`,\n nextStep: next,\n cost: ['nothing charged'],\n providerContentUntrusted: true,\n },\n };\n }\n\n // THE TOOL, RUN ON THE ACCOUNT.\n const footer = await openLookupFooter(dataDir);\n const sentInput = maskDeep(toRun.input) as Json;\n const named = { provider: label, label: `${label} ${toRun.tool}`, parameters: sentInput };\n const call: DeliverCall = {\n capabilityId: `${id}:${toRun.tool}`.slice(0, 200),\n provider: label,\n label: `${label} ${toRun.tool}`,\n // A named tool's links are not fetched: only its own files are saved.\n media: false,\n parameters: sentInput,\n sent: JSON.stringify(sentInput),\n request: { url: header.mcpUrl },\n };\n // A call that reached the account and may have billed it, with no result:\n // on the ledger all the same, so usage and payments show it as may have\n // charged.\n const keepRow = () =>\n appendPaidRecord(dataDir, {\n ...paidRecord(call, call.request.url, call.sent, 0n, {\n savedFiles: [],\n account: id,\n ...(deps.now !== undefined ? { now: deps.now } : {}),\n }),\n charge: 'unknown',\n });\n await footer.calling(named);\n // Read as a named tool's answer (`readNamedResult`), whatever `result` says.\n const run = await runAccountCall(\n target,\n { tool: toRun.tool, args: toRun.input, result: 'content' },\n toRun.input,\n runDeps(deps),\n undefined,\n { literal: true },\n );\n switch (run.kind) {\n case 'refused':\n await footer.done('needs_input', named);\n return refused(run.reason, run.detail);\n case 'declined':\n await keepRow();\n await footer.done('needs_input', named);\n return refused(run.reason ?? 'declined', run.detail, true);\n case 'input':\n await footer.done('needs_input', named);\n return accountResult(\n 'needs_input',\n `Your ${label} account didn't take that input for ${toRun.tool}; its answer is in providerError.`,\n `Your ${label} account didn't take that input.`,\n label,\n {\n providerError: run.detail,\n nextStep: `Call request({source: ${JSON.stringify(id)}, tool: ${JSON.stringify(toRun.tool)}}) for its inputs, then try again.`,\n parameters: sentInput,\n },\n );\n case 'failed': {\n await keepRow();\n await footer.done('failed', { ...named, price: 'your account' });\n const reason = `Your ${label} account ran ${toRun.tool}, but ${run.why}. It may have billed your ${label} plan; nothing was charged to your Tenjin balance.`;\n return accountResult('failed', reason, reason, label, {\n ...(run.detail !== undefined ? { providerError: run.detail } : {}),\n nextStep: `Tell the user it may have run on their ${label} account; don't call it again for this.`,\n parameters: sentInput,\n ran: 'maybe',\n });\n }\n case 'done': {\n const done = await deliverResult(\n call,\n deps,\n footer,\n { bodyText: run.text, ...(run.media.length > 0 ? { files: run.media } : {}) },\n { providerAtomic: 0n, ledger: 'append', account: { label, source: id } },\n );\n // No job to keep: a file not saved here is said, never dropped.\n const result =\n done.unsaved !== undefined ? unsavedAnswer(label, done.result, done.unsaved) : done.result;\n return {\n ...result,\n summary: unmapped !== undefined ? `${result.summary}\\n${unmapped}` : result.summary,\n envelope: { ...result.envelope, ...noted, stop: `tenjin disconnect ${id}` },\n };\n }\n }\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA4DA,IAAM,gBAAgB;AAGtB,IAAM,oBAAoB;AAE1B,IAAM,WAAW;AAEjB,IAAM,OAAO,CAAC,SACZ,KACG,QAAQ,qBAAqB,GAAG,EAChC,QAAQ,QAAQ,GAAG,EACnB,KAAK;AAEV,IAAM,OAAO,CAAC,MAAc,QAC1B,KAAK,UAAU,MAAM,OAAO,GAAG,KAAK,MAAM,GAAG,MAAM,CAAC,EAAE,QAAQ,CAAC;AAUjE,IAAM,gBAAgB;AAEtB,SAAS,WAAW,OAA8C;AAChE,SAAO,MAAM;AAAA,IAAQ,CAAC,SACpB,cAAc,UAAU,KAAK,IAAI,EAAE,UAC/B,CAAC,EAAE,GAAG,MAAM,WAAW,KAAK,UAAU,OAAO,CAAC,SAAS,cAAc,KAAK,IAAI,CAAC,EA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AAgB,MAAM,IAAI,SAAS,IAAI,GAAG,6BAA6B,KAAK;AACxG,aAAO,cAAc,UAAU,QAAQ,QAAQ,OAAO;AAAA,QACpD,GAAI,IAAI,WAAW,SAAY,EAAE,eAAe,IAAI,OAAO,IAAI,CAAC;AAAA,QAChE,UAAU,0CAA0C,KAAK;AAAA,QACzD,YAAY;AAAA,QACZ,KAAK;AAAA,MACP,CAAC;AAAA,IACH;AAAA,IACA,KAAK,QAAQ;AACX,YAAM,OAAO,MAAM;AAAA,QACjB;AAAA,QACA;AAAA,QACA;AAAA,QACA,EAAE,UAAU,IAAI,MAAM,GAAI,IAAI,MAAM,SAAS,IAAI,EAAE,OAAO,IAAI,MAAM,IAAI,CAAC,EAAG;AAAA,QAC5E,EAAE,gBAAgB,IAAI,QAAQ,UAAU,SAAS,EAAE,OAAO,QAAQ,GAAG,EAAE;AAAA,MACzE;AAEA,YAAM,SACJ,KAAK,YAAY,SAAY,cAAc,OAAO,KAAK,QAAQ,KAAK,OAAO,IAAI,KAAK;AACtF,aAAO;AAAA,QACL,GAAG;AAAA,QACH,SAAS,aAAa,SAAY,GAAG,OAAO,OAAO;AAAA,EAAK,QAAQ,KAAK,OAAO;AAAA,QAC5E,UAAU,EAAE,GAAG,OAAO,UAAU,GAAG,OAAO,MAAM,qBAAqB,EAAE,GAAG;AAAA,MAC5E;AAAA,IACF;AAAA,EACF;AACF;","names":["id","label","next"]}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { createRequire as __tenjinCreateRequire } from 'node:module'; const require = __tenjinCreateRequire(import.meta.url);
|
|
2
|
+
import {
|
|
3
|
+
exitAfter,
|
|
4
|
+
exitCodeAfter,
|
|
5
|
+
flushStdio,
|
|
6
|
+
guardStdio,
|
|
7
|
+
notePaymentSent
|
|
8
|
+
} from "./chunk-C265QIMJ.js";
|
|
9
|
+
import "./chunk-3MZ7DYRO.js";
|
|
10
|
+
import "./chunk-ZXTAQYNA.js";
|
|
11
|
+
export {
|
|
12
|
+
exitAfter,
|
|
13
|
+
exitCodeAfter,
|
|
14
|
+
flushStdio,
|
|
15
|
+
guardStdio,
|
|
16
|
+
notePaymentSent
|
|
17
|
+
};
|
|
18
|
+
//# sourceMappingURL=flush-stdio-NYIJ3QXT.js.map
|