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,362 @@
|
|
|
1
|
+
import { createRequire as __tenjinCreateRequire } from 'node:module'; const require = __tenjinCreateRequire(import.meta.url);
|
|
2
|
+
import {
|
|
3
|
+
ModelJobStore,
|
|
4
|
+
validateWindowsWorkerConfig
|
|
5
|
+
} from "./chunk-BVP7YK2J.js";
|
|
6
|
+
import "./chunk-R4KDH477.js";
|
|
7
|
+
import "./chunk-QKYUCITR.js";
|
|
8
|
+
import {
|
|
9
|
+
lockSupport
|
|
10
|
+
} from "./chunk-TVWCLUBI.js";
|
|
11
|
+
import {
|
|
12
|
+
MODEL_FLOOR_CALL_ATOMIC,
|
|
13
|
+
MODEL_MINIMUM_CALL_ATOMIC,
|
|
14
|
+
MODEL_OUTPUT_FLOOR_TOKENS,
|
|
15
|
+
MODEL_OUTPUT_TOKENS,
|
|
16
|
+
MODEL_OUTPUT_TOKENS_MAX,
|
|
17
|
+
modelPeakQuoteAtomic,
|
|
18
|
+
usdOfAtomic
|
|
19
|
+
} from "./chunk-ZRC7Z5X3.js";
|
|
20
|
+
import {
|
|
21
|
+
ON_HINT,
|
|
22
|
+
SUBAGENTS_OFF_LINE,
|
|
23
|
+
SUBAGENT_TERMS,
|
|
24
|
+
scopeShown,
|
|
25
|
+
subagentsOnLines
|
|
26
|
+
} from "./chunk-QQYCYAKI.js";
|
|
27
|
+
import {
|
|
28
|
+
modelConsent,
|
|
29
|
+
modelConsentSchema,
|
|
30
|
+
namedDirectories
|
|
31
|
+
} from "./chunk-LDA6TAYQ.js";
|
|
32
|
+
import {
|
|
33
|
+
persist
|
|
34
|
+
} from "./chunk-W74LJ5OT.js";
|
|
35
|
+
import "./chunk-KNKDMTHU.js";
|
|
36
|
+
import "./chunk-3Y6BHIN6.js";
|
|
37
|
+
import "./chunk-R62PKTAG.js";
|
|
38
|
+
import "./chunk-HAZAN4UM.js";
|
|
39
|
+
import "./chunk-KGUE5AVX.js";
|
|
40
|
+
import "./chunk-2W4DQQUU.js";
|
|
41
|
+
import "./chunk-KLDMLWXT.js";
|
|
42
|
+
import "./chunk-HZKANST2.js";
|
|
43
|
+
import {
|
|
44
|
+
formatUsdDisplay,
|
|
45
|
+
parseUsdToAtomic
|
|
46
|
+
} from "./chunk-MEZJ3I63.js";
|
|
47
|
+
import "./chunk-ILWCKCOI.js";
|
|
48
|
+
import "./chunk-RFZA7PSM.js";
|
|
49
|
+
import "./chunk-JUUBBBY5.js";
|
|
50
|
+
import "./chunk-7SLOTLO7.js";
|
|
51
|
+
import "./chunk-W2GXIARJ.js";
|
|
52
|
+
import "./chunk-TFT2X7SH.js";
|
|
53
|
+
import {
|
|
54
|
+
resolveContextSettings
|
|
55
|
+
} from "./chunk-DTEWAVNE.js";
|
|
56
|
+
import {
|
|
57
|
+
loadRawConfig
|
|
58
|
+
} from "./chunk-UIB33QQP.js";
|
|
59
|
+
import "./chunk-7WEQQJLG.js";
|
|
60
|
+
import "./chunk-ZCT5DJ3G.js";
|
|
61
|
+
import "./chunk-3MZ7DYRO.js";
|
|
62
|
+
import "./chunk-JTX3BUDK.js";
|
|
63
|
+
import "./chunk-ZEYA2WWX.js";
|
|
64
|
+
import "./chunk-DIH2G3YG.js";
|
|
65
|
+
import "./chunk-D6M3ZK66.js";
|
|
66
|
+
import "./chunk-RGCPELQN.js";
|
|
67
|
+
import "./chunk-CRG54LEB.js";
|
|
68
|
+
import "./chunk-TUCKEEXE.js";
|
|
69
|
+
import "./chunk-P6YQWIT2.js";
|
|
70
|
+
import {
|
|
71
|
+
CliError
|
|
72
|
+
} from "./chunk-DI4QAGRZ.js";
|
|
73
|
+
import "./chunk-3Y2EHT4F.js";
|
|
74
|
+
import "./chunk-ZXTAQYNA.js";
|
|
75
|
+
|
|
76
|
+
// src/commands/config-subagents.ts
|
|
77
|
+
import { realpath } from "node:fs/promises";
|
|
78
|
+
var usd = (atomic) => `$${formatUsdDisplay(atomic.toString())}`;
|
|
79
|
+
var NO_CLAUDE_NOTE = "Workers run on Claude Code only, and it is not set up here, so no job is offered until it is (`tenjin install --harness claude`).";
|
|
80
|
+
var NATIVE_WINDOWS_DISCLOSURE = "The Windows DeepSeek worker runs under the dedicated standard account with Claude\u2019s native permissions and without its shell sandbox. Shell tools can reach files and networks available to that Windows account. Tenjin and DeepSeek can receive instructions and tool results from those resources. Exa can receive the addresses of public pages. Use a separate shared Claude profile and keep wallet, login and spend data under the controller account.";
|
|
81
|
+
function whyReason(entry) {
|
|
82
|
+
const detail = entry.detail ?? "";
|
|
83
|
+
switch (entry.code) {
|
|
84
|
+
case "kept_native":
|
|
85
|
+
return "Claude sent the offered call again unchanged, which keeps it native";
|
|
86
|
+
case "no_session":
|
|
87
|
+
return "Tenjin had not seen an event of this session yet";
|
|
88
|
+
case "host_unqualified":
|
|
89
|
+
return "This Claude Code cannot show a worker\u2019s permission prompt";
|
|
90
|
+
case "no_consent":
|
|
91
|
+
return "DeepSeek subagents were off, or the session was outside their scope";
|
|
92
|
+
case "permission_mode":
|
|
93
|
+
return detail === "plan" ? "The session was in plan mode" : "The session\u2019s permission mode was not seen, or a worker cannot run in it";
|
|
94
|
+
case "worker_unqualified":
|
|
95
|
+
return "The Claude Code version, login, managed policy, sandbox or workspace does not qualify here";
|
|
96
|
+
case "input_filter":
|
|
97
|
+
if (detail === "prompt") return "The call had no prompt";
|
|
98
|
+
if (detail === "subagent_type") return "A worker cannot run as that agent type";
|
|
99
|
+
if (detail === "definition:model") return "The agent pins its own model";
|
|
100
|
+
if (detail.startsWith("definition:"))
|
|
101
|
+
return `The agent\u2019s definition sets \`${detail.slice("definition:".length)}\`, which a worker cannot match`;
|
|
102
|
+
if (detail === "frontmatter") return "The agent\u2019s definition could not be read exactly";
|
|
103
|
+
return detail ? `The call set \`${detail}\`, which a worker cannot match` : "The call set a field a worker cannot match";
|
|
104
|
+
case "caller_unqualified":
|
|
105
|
+
return detail === "tools" ? "The subagent that made the call has no tool to accept an offer" : detail === "mode" ? "The subagent that made the call, or an agent above it, may set its own permission mode" : "The subagent that made the call works in a folder of its own";
|
|
106
|
+
case "scope_not_covered":
|
|
107
|
+
return "The session\u2019s working directory or workspace changed after the call was held, or could not be read";
|
|
108
|
+
case "parent_context_unavailable":
|
|
109
|
+
return "The session\u2019s transcript could not be read";
|
|
110
|
+
case "over_size_limit":
|
|
111
|
+
return entry.bytes === void 0 ? "The assignment is over the router\u2019s size limit" : `The assignment is over the router\u2019s size limit (${entry.bytes.toLocaleString("en-US")} of ${entry.limit?.toLocaleString("en-US") ?? "?"} bytes)`;
|
|
112
|
+
case "job_cap_too_low":
|
|
113
|
+
return `The job cap leaves no room for the routing fee above one model call (${usdOfAtomic(MODEL_MINIMUM_CALL_ATOMIC)}); raise the per-call limit with \`tenjin config set maxAutoSpend <usd>\`, or, if you named a lower job ceiling, that ceiling with \`tenjin config subagents on --max-job <usd>\``;
|
|
114
|
+
case "job_cap_lowered":
|
|
115
|
+
return "The job cap was lowered after the call was held; send the call again for an offer at the new cap";
|
|
116
|
+
case "capture_error":
|
|
117
|
+
return "A local error before routing";
|
|
118
|
+
case "route_error":
|
|
119
|
+
return "The routing request failed, or a spend limit refused its fee";
|
|
120
|
+
case "fee_above_ceiling":
|
|
121
|
+
return /^\d+$/.test(detail) ? `The router stated a routing fee of ${usdOfAtomic(BigInt(detail))} for this offer, more than Tenjin pays for one routing call or the job cap leaves room for; nothing was paid` : "The router stated a routing fee above what Tenjin pays for one routing call or the job cap leaves room for; nothing was paid";
|
|
122
|
+
case "server_declined":
|
|
123
|
+
return "The router judged that the work stays native";
|
|
124
|
+
case "invalid_offer":
|
|
125
|
+
return "The router\u2019s answer was not a valid offer";
|
|
126
|
+
case "superseded":
|
|
127
|
+
return "The call was cancelled while it was routed";
|
|
128
|
+
case "expired":
|
|
129
|
+
return "The offer was not accepted within 15 minutes";
|
|
130
|
+
case "interrupted":
|
|
131
|
+
return "The session closed or was interrupted while routing";
|
|
132
|
+
}
|
|
133
|
+
}
|
|
134
|
+
var WHY_SHOWN = 20;
|
|
135
|
+
var WHY_TIME = new Intl.DateTimeFormat("en-US", {
|
|
136
|
+
month: "short",
|
|
137
|
+
day: "2-digit",
|
|
138
|
+
hour: "2-digit",
|
|
139
|
+
minute: "2-digit",
|
|
140
|
+
hourCycle: "h23"
|
|
141
|
+
});
|
|
142
|
+
function whyTime(at) {
|
|
143
|
+
const part = Object.fromEntries(
|
|
144
|
+
WHY_TIME.formatToParts(new Date(at)).map(({ type, value }) => [type, value])
|
|
145
|
+
);
|
|
146
|
+
return `${part.month} ${part.day} ${part.hour}:${part.minute}`;
|
|
147
|
+
}
|
|
148
|
+
function whyLines(entries) {
|
|
149
|
+
const tool = (entry) => entry.from === "subagent" ? `${entry.tool} from a subagent` : entry.tool;
|
|
150
|
+
const width = Math.max(...entries.map((entry) => tool(entry).length));
|
|
151
|
+
return entries.map(
|
|
152
|
+
(entry) => ` ${whyTime(entry.at)} ${tool(entry).padEnd(width)} ${whyReason(entry)}`
|
|
153
|
+
);
|
|
154
|
+
}
|
|
155
|
+
async function status(ctx) {
|
|
156
|
+
const config = await loadRawConfig(ctx.dataDir);
|
|
157
|
+
const consent = modelConsentSchema.safeParse(config.router?.subagentConsent);
|
|
158
|
+
if (config.router?.subagents !== true)
|
|
159
|
+
return {
|
|
160
|
+
data: { enabled: false },
|
|
161
|
+
humanLines: ["\u25CB DeepSeek subagents are off", "", ON_HINT]
|
|
162
|
+
};
|
|
163
|
+
if (!consent.success)
|
|
164
|
+
return {
|
|
165
|
+
data: { enabled: true, consent: false },
|
|
166
|
+
humanLines: [
|
|
167
|
+
"\u25CB DeepSeek subagents are on, but no valid consent is saved, so no job is offered",
|
|
168
|
+
"",
|
|
169
|
+
"Run `tenjin config subagents on` to save it."
|
|
170
|
+
]
|
|
171
|
+
};
|
|
172
|
+
const directories = namedDirectories(consent.data);
|
|
173
|
+
const settings = await resolveContextSettings(ctx);
|
|
174
|
+
const perCall = settings.policy.maxAutoSpendAtomic;
|
|
175
|
+
const named = consent.data.maxJobAtomic === void 0 ? void 0 : BigInt(consent.data.maxJobAtomic);
|
|
176
|
+
const cap = named !== void 0 && named < perCall ? named : perCall;
|
|
177
|
+
return {
|
|
178
|
+
data: {
|
|
179
|
+
enabled: true,
|
|
180
|
+
scope: directories ? "directories" : "every-workspace",
|
|
181
|
+
...directories ? { repositories: directories } : {},
|
|
182
|
+
...named === void 0 ? {} : { maxJobAtomic: named.toString() },
|
|
183
|
+
jobCapAtomic: cap.toString(),
|
|
184
|
+
perCallLimitAtomic: perCall.toString(),
|
|
185
|
+
routerOrigin: consent.data.routerOrigin
|
|
186
|
+
},
|
|
187
|
+
humanLines: subagentsOnLines(ctx, {
|
|
188
|
+
directories,
|
|
189
|
+
perCall,
|
|
190
|
+
...named === void 0 ? {} : { named },
|
|
191
|
+
daily: settings.policy.sessionBudgetAtomic !== null,
|
|
192
|
+
routerOrigin: consent.data.routerOrigin
|
|
193
|
+
})
|
|
194
|
+
};
|
|
195
|
+
}
|
|
196
|
+
async function runConfigSubagents(mode, flags, ctx) {
|
|
197
|
+
const configuringWindows = flags.windowsWorkerSid !== void 0 || flags.windowsLauncher !== void 0 || flags.windowsClaude !== void 0 || flags.windowsConfigDir !== void 0 || flags.acceptWindowsShellAccess === true;
|
|
198
|
+
if (mode === void 0 || mode === "status") {
|
|
199
|
+
if (configuringWindows || flags.repository !== void 0 || flags.maxJob !== void 0)
|
|
200
|
+
throw new CliError("USAGE", "Flags go with on. Use on, off, why, or no mode for the status.");
|
|
201
|
+
return status(ctx);
|
|
202
|
+
}
|
|
203
|
+
if (configuringWindows && (mode !== "on" || process.platform !== "win32"))
|
|
204
|
+
throw new CliError(
|
|
205
|
+
"USAGE",
|
|
206
|
+
"The Windows worker flags require native Windows and subagents on."
|
|
207
|
+
);
|
|
208
|
+
if (mode === "off") {
|
|
209
|
+
await persist(ctx.dataDir, (c) => {
|
|
210
|
+
const router = { ...c.router, subagents: false };
|
|
211
|
+
delete router.windowsWorker;
|
|
212
|
+
return { ...c, router };
|
|
213
|
+
});
|
|
214
|
+
return {
|
|
215
|
+
data: { enabled: false },
|
|
216
|
+
humanLines: [SUBAGENTS_OFF_LINE]
|
|
217
|
+
};
|
|
218
|
+
}
|
|
219
|
+
if (mode === "why") {
|
|
220
|
+
const noOffers = (await new ModelJobStore(ctx.dataDir).noOffers()).reverse();
|
|
221
|
+
return {
|
|
222
|
+
data: { noOffers },
|
|
223
|
+
humanLines: noOffers.length ? [
|
|
224
|
+
"Subagent calls with no DeepSeek offer \xB7 last 7 days, this machine only",
|
|
225
|
+
"",
|
|
226
|
+
...whyLines(noOffers.slice(0, WHY_SHOWN))
|
|
227
|
+
] : [
|
|
228
|
+
"No subagent call went without an offer in the last 7 days. Calls are recorded only while DeepSeek subagents are on."
|
|
229
|
+
]
|
|
230
|
+
};
|
|
231
|
+
}
|
|
232
|
+
if (mode !== "on")
|
|
233
|
+
throw new CliError(
|
|
234
|
+
"USAGE",
|
|
235
|
+
"Use on [--repository <path>...] [--max-job <USD>], off, why, or no mode for the status."
|
|
236
|
+
);
|
|
237
|
+
const lock = lockSupport();
|
|
238
|
+
if (!lock.ok)
|
|
239
|
+
throw new CliError("USAGE", `DeepSeek subagents cannot run here. ${lock.reason}`, {
|
|
240
|
+
fix: "Run Tenjin with Node 24, as its installer sets up, then run this command again."
|
|
241
|
+
});
|
|
242
|
+
const chosen = await Promise.all([flags.repository ?? []].flat().map((path) => realpath(path)));
|
|
243
|
+
const repository = chosen[0];
|
|
244
|
+
const settings = await resolveContextSettings(ctx);
|
|
245
|
+
const routerOrigin = new URL(settings.baseUrl).origin;
|
|
246
|
+
const perCall = settings.policy.maxAutoSpendAtomic;
|
|
247
|
+
const named = flags.maxJob === void 0 ? void 0 : BigInt(parseUsdToAtomic(flags.maxJob));
|
|
248
|
+
if (named !== void 0 && named <= MODEL_MINIMUM_CALL_ATOMIC)
|
|
249
|
+
throw new CliError(
|
|
250
|
+
"USAGE",
|
|
251
|
+
`The job ceiling must be above ${usdOfAtomic(MODEL_MINIMUM_CALL_ATOMIC)}, the least a job's cap can be, with the routing fee paid inside it. Actual input can require more.`
|
|
252
|
+
);
|
|
253
|
+
if (perCall <= MODEL_MINIMUM_CALL_ATOMIC)
|
|
254
|
+
throw new CliError(
|
|
255
|
+
"USAGE",
|
|
256
|
+
`Your per-call spend limit, ${usd(perCall)}, is not above ${usdOfAtomic(MODEL_MINIMUM_CALL_ATOMIC)}, the reserve of one 65,536-token call, so no job would be offered. Nothing was changed.`,
|
|
257
|
+
{
|
|
258
|
+
fix: "Raise the limit with `tenjin config set maxAutoSpend <usd>`, then run this command again."
|
|
259
|
+
}
|
|
260
|
+
);
|
|
261
|
+
const cap = named !== void 0 && named < perCall ? named : perCall;
|
|
262
|
+
if (configuringWindows && repository === void 0)
|
|
263
|
+
throw new CliError(
|
|
264
|
+
"USAGE",
|
|
265
|
+
"On native Windows the worker runs only under the limited scope: it has no shell sandbox and works as an account that was given the directories you name. A bare on would cover every workspace, which Windows does not allow.",
|
|
266
|
+
{ fix: "Add --repository <path> for each directory the worker account may work in." }
|
|
267
|
+
);
|
|
268
|
+
if (configuringWindows && !flags.acceptWindowsShellAccess)
|
|
269
|
+
throw new CliError("USAGE", NATIVE_WINDOWS_DISCLOSURE, {
|
|
270
|
+
fix: "Review the Windows disclosure and add --accept-windows-shell-access if you agree."
|
|
271
|
+
});
|
|
272
|
+
const windowsWorker = configuringWindows ? await validateWindowsWorkerConfig(
|
|
273
|
+
{
|
|
274
|
+
version: 1,
|
|
275
|
+
workerSid: flags.windowsWorkerSid,
|
|
276
|
+
launcherPath: flags.windowsLauncher,
|
|
277
|
+
claudePath: flags.windowsClaude,
|
|
278
|
+
configDir: flags.windowsConfigDir,
|
|
279
|
+
routerOrigin,
|
|
280
|
+
shellAccess: "native-windows"
|
|
281
|
+
},
|
|
282
|
+
ctx.dataDir
|
|
283
|
+
) : null;
|
|
284
|
+
if (configuringWindows && !windowsWorker)
|
|
285
|
+
throw new CliError("USAGE", "The Windows worker setup is incomplete or unavailable.", {
|
|
286
|
+
fix: "Supply a dedicated account SID, readable local launcher and Claude .exe paths, and a separate shared Claude config directory."
|
|
287
|
+
});
|
|
288
|
+
const limited = chosen.length > 0;
|
|
289
|
+
const disclosure = [
|
|
290
|
+
`Allow Tenjin (using TypeSafe/Jev for routing) to receive subagent assignments and bounded parent context ${limited ? "from sessions inside the directories you name, and from no other session" : "from every session whose subagent calls it routes, in any directory"}. After acceptance, Tenjin and DeepSeek receive the worker\u2019s applicable native instruction context, accepted assignment and tool results; the worker\u2019s web searches run inside the DeepSeek call, with no search charge, and Exa receives the address of a public page its WebFetch could not fetch. Your Tenjin block and only rules apply to that Exa page read as they do to what Tenjin picks on its own.`,
|
|
291
|
+
windowsWorker ? NATIVE_WINDOWS_DISCLOSURE : `Native global, ancestor and repository instructions retain their normal scope. ${limited ? "A Claude worker may read and write in every named directory, subfolders included" : "A Claude worker may read and write in its session\u2019s own workspace"}, inside its sandbox and your native permissions; your own sessions gain nothing. It may read env files in those directories as a native session can; env files are not masked, and what it reads can reach Tenjin and DeepSeek. Claude Code loads your global configuration into the worker as it does for a native subagent: your personal CLAUDE.md and the skills, plugins, agents, commands and rules under ~/.claude are among its instructions, and the worker\u2019s file tools and commands do not read those files. Of ~/.claude they read every session transcript and memory folder, your prompt history and your settings files, so what the worker loads or reads there, other projects\u2019 sessions included, can reach Tenjin and DeepSeek. Settings backups, wallet and login files stay unreadable to it, and its file tools read nothing outside the worker\u2019s directories but the ~/.claude files named above; its commands also read what the sandbox leaves open, such as /tmp, /opt, /etc and /Library, as a native subagent\u2019s do; what a worker reads or prints, secrets and credential command output included, is not masked and can reach Tenjin and DeepSeek as written, and the routing context sent before an offer is masked for known secrets, not guaranteed anonymous.`,
|
|
292
|
+
`Proxy replies can be replayed for 24 hours, with expired content removed by bounded cleanup. A job costs up to your per-call spend limit as it stands at each offer, or a lower ceiling you name with --max-job; the daily budget and creator allowlist still apply. A worker request asks for an output cap of up to ${MODEL_OUTPUT_TOKENS_MAX.toLocaleString("en-US")} tokens, which reserves about ${usdOfAtomic(modelPeakQuoteAtomic(0, MODEL_OUTPUT_TOKENS_MAX))} at the current peak tariff, plus input beyond framing; a ${MODEL_OUTPUT_FLOOR_TOKENS.toLocaleString("en-US")}-token call, the least a call steps down to (the router takes any output cap), reserves at least ${usdOfAtomic(MODEL_FLOOR_CALL_ATOMIC)}, and a job is offered only under a ceiling above ${usdOfAtomic(MODEL_MINIMUM_CALL_ATOMIC)}, the reserve of one ${MODEL_OUTPUT_TOKENS.toLocaleString("en-US")}-token call. Near the end of a job a call asks for a smaller output cap, down to 8,192 tokens, so that its reserve fits what the job ceiling has left; only a call whose input plus 8,192 output tokens does not fit ends the job for budget. The routing fee (the amount the router quotes, $0.0081, never more than $0.25) is paid before the offer, inside the cap, for each offer, also when Claude declines it. A worker\u2019s web searches run inside the model call and are paid as its tokens, with no search charge. A page its WebFetch could not fetch is read through Exa for $0.001 with no routing fee, paid from your wallet within your per-call limit and daily budget and counted against the job ceiling.`
|
|
293
|
+
].join("\n\n");
|
|
294
|
+
let repositories = null;
|
|
295
|
+
let was;
|
|
296
|
+
let wasCap;
|
|
297
|
+
await persist(ctx.dataDir, (c) => {
|
|
298
|
+
const prior = modelConsentSchema.safeParse(c.router?.subagentConsent);
|
|
299
|
+
const here = prior.success && prior.data.routerOrigin === routerOrigin;
|
|
300
|
+
const before = namedDirectories(c.router?.subagentConsent, routerOrigin);
|
|
301
|
+
if (here) {
|
|
302
|
+
const earlier = prior.data.maxJobAtomic;
|
|
303
|
+
wasCap = earlier !== void 0 && BigInt(earlier) < perCall ? BigInt(earlier) : perCall;
|
|
304
|
+
}
|
|
305
|
+
repositories = limited ? [.../* @__PURE__ */ new Set([...before ?? [], ...chosen])] : null;
|
|
306
|
+
was = !here ? void 0 : limited && !before ? "every-workspace" : !limited && before ? before : void 0;
|
|
307
|
+
const consent = modelConsent({
|
|
308
|
+
routerOrigin,
|
|
309
|
+
...repositories ? { repositories } : {},
|
|
310
|
+
...named === void 0 ? {} : { maxJobAtomic: named.toString() }
|
|
311
|
+
});
|
|
312
|
+
const router = { ...c.router, subagents: true, subagentConsent: consent };
|
|
313
|
+
if (windowsWorker) router.windowsWorker = windowsWorker;
|
|
314
|
+
else delete router.windowsWorker;
|
|
315
|
+
return { ...c, router };
|
|
316
|
+
});
|
|
317
|
+
const shown = {
|
|
318
|
+
directories: repositories,
|
|
319
|
+
...was === void 0 ? {} : { was },
|
|
320
|
+
...wasCap === void 0 ? {} : { wasCap },
|
|
321
|
+
perCall,
|
|
322
|
+
...named === void 0 ? {} : { named },
|
|
323
|
+
daily: settings.policy.sessionBudgetAtomic !== null,
|
|
324
|
+
routerOrigin
|
|
325
|
+
};
|
|
326
|
+
const claudeMissing = !await (await import("./hosts-3EMTVM4H.js")).claudeHostSetUp(ctx.dataDir);
|
|
327
|
+
const humanLines = subagentsOnLines(ctx, shown, {
|
|
328
|
+
terms: true,
|
|
329
|
+
notes: [
|
|
330
|
+
...claudeMissing ? [NO_CLAUDE_NOTE] : [],
|
|
331
|
+
...windowsWorker ? [
|
|
332
|
+
"On Windows the worker has no shell sandbox: it runs as the dedicated account, with the access Windows gives that account."
|
|
333
|
+
] : process.platform === "win32" ? [
|
|
334
|
+
"Claude on Windows uses native subagents until you opt in with a dedicated Windows worker account."
|
|
335
|
+
] : []
|
|
336
|
+
]
|
|
337
|
+
});
|
|
338
|
+
return {
|
|
339
|
+
data: {
|
|
340
|
+
enabled: true,
|
|
341
|
+
scope: repositories ? "directories" : "every-workspace",
|
|
342
|
+
...repository === void 0 ? {} : { repository },
|
|
343
|
+
...repositories ? { repositories } : {},
|
|
344
|
+
...named === void 0 ? {} : { maxJobAtomic: named.toString() },
|
|
345
|
+
jobCapAtomic: cap.toString(),
|
|
346
|
+
perCallLimitAtomic: perCall.toString(),
|
|
347
|
+
routerOrigin,
|
|
348
|
+
// The full terms. The human output prints the short form and links to the guide.
|
|
349
|
+
disclosure,
|
|
350
|
+
terms: SUBAGENT_TERMS.join("\n"),
|
|
351
|
+
// The scope row as printed, with a narrowed or widened scope said.
|
|
352
|
+
readback: `Scope: ${scopeShown(shown)}`,
|
|
353
|
+
...windowsWorker ? { windowsWorker: { enabled: true } } : {},
|
|
354
|
+
...claudeMissing ? { note: NO_CLAUDE_NOTE } : {}
|
|
355
|
+
},
|
|
356
|
+
humanLines
|
|
357
|
+
};
|
|
358
|
+
}
|
|
359
|
+
export {
|
|
360
|
+
runConfigSubagents
|
|
361
|
+
};
|
|
362
|
+
//# sourceMappingURL=config-subagents-WQV2ZAD5.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/commands/config-subagents.ts"],"sourcesContent":["import { realpath } from 'node:fs/promises';\nimport { CliError } from '../lib/errors';\nimport { lockSupport } from '../lib/held-lock';\nimport { formatUsdDisplay, parseUsdToAtomic } from '../lib/money';\nimport { resolveContextSettings } from '../lib/settings';\nimport type { CommandContext, CommandResult } from '../context';\nimport { persist } from './config';\nimport { modelConsent, modelConsentSchema, namedDirectories } from '../router/model-settings';\nimport { loadRawConfig } from '../lib/config';\nimport {\n MODEL_MINIMUM_CALL_ATOMIC,\n MODEL_FLOOR_CALL_ATOMIC,\n MODEL_OUTPUT_FLOOR_TOKENS,\n MODEL_OUTPUT_TOKENS,\n MODEL_OUTPUT_TOKENS_MAX,\n modelPeakQuoteAtomic,\n usdOfAtomic,\n} from '../router/model-limits';\nimport { ModelJobStore, type NoOffer } from '../router/model-job';\nimport { validateWindowsWorkerConfig } from '../router/windows-worker-config';\nimport {\n ON_HINT,\n SUBAGENT_TERMS,\n SUBAGENTS_OFF_LINE,\n scopeShown,\n subagentsOnLines,\n type SubagentsShown,\n} from '../router/subagents-shown';\n\nexport type SubagentConfigFlags = {\n /** One directory or several: the limited scope. */\n repository?: string | string[];\n maxJob?: string;\n windowsWorkerSid?: string;\n windowsLauncher?: string;\n windowsClaude?: string;\n windowsConfigDir?: string;\n acceptWindowsShellAccess?: boolean;\n};\n\nconst usd = (atomic: bigint) => `$${formatUsdDisplay(atomic.toString())}`;\n\nconst NO_CLAUDE_NOTE =\n 'Workers run on Claude Code only, and it is not set up here, so no job is offered until it is (`tenjin install --harness claude`).';\nconst NATIVE_WINDOWS_DISCLOSURE =\n 'The Windows DeepSeek worker runs under the dedicated standard account with Claude’s native permissions and without its shell sandbox. Shell tools can reach files and networks available to that Windows account. Tenjin and DeepSeek can receive instructions and tool results from those resources. Exa can receive the addresses of public pages. Use a separate shared Claude profile and keep wallet, login and spend data under the controller account.';\n\n/**\n * Why a call got no offer, in plain words. The code and its detail stay in `--json`; a\n * field of the call or of an agent's definition is named, since the person can change it.\n */\nfunction whyReason(entry: NoOffer): string {\n const detail = entry.detail ?? '';\n switch (entry.code) {\n case 'kept_native':\n return 'Claude sent the offered call again unchanged, which keeps it native';\n case 'no_session':\n return 'Tenjin had not seen an event of this session yet';\n case 'host_unqualified':\n return 'This Claude Code cannot show a worker’s permission prompt';\n case 'no_consent':\n return 'DeepSeek subagents were off, or the session was outside their scope';\n case 'permission_mode':\n return detail === 'plan'\n ? 'The session was in plan mode'\n : 'The session’s permission mode was not seen, or a worker cannot run in it';\n case 'worker_unqualified':\n return 'The Claude Code version, login, managed policy, sandbox or workspace does not qualify here';\n case 'input_filter':\n if (detail === 'prompt') return 'The call had no prompt';\n if (detail === 'subagent_type') return 'A worker cannot run as that agent type';\n if (detail === 'definition:model') return 'The agent pins its own model';\n if (detail.startsWith('definition:'))\n return `The agent’s definition sets \\`${detail.slice('definition:'.length)}\\`, which a worker cannot match`;\n if (detail === 'frontmatter') return 'The agent’s definition could not be read exactly';\n return detail\n ? `The call set \\`${detail}\\`, which a worker cannot match`\n : 'The call set a field a worker cannot match';\n case 'caller_unqualified':\n return detail === 'tools'\n ? 'The subagent that made the call has no tool to accept an offer'\n : detail === 'mode'\n ? 'The subagent that made the call, or an agent above it, may set its own permission mode'\n : 'The subagent that made the call works in a folder of its own';\n case 'scope_not_covered':\n return 'The session’s working directory or workspace changed after the call was held, or could not be read';\n case 'parent_context_unavailable':\n return 'The session’s transcript could not be read';\n case 'over_size_limit':\n return entry.bytes === undefined\n ? 'The assignment is over the router’s size limit'\n : `The assignment is over the router’s size limit (${entry.bytes.toLocaleString('en-US')} of ${entry.limit?.toLocaleString('en-US') ?? '?'} bytes)`;\n case 'job_cap_too_low':\n return `The job cap leaves no room for the routing fee above one model call (${usdOfAtomic(MODEL_MINIMUM_CALL_ATOMIC)}); raise the per-call limit with \\`tenjin config set maxAutoSpend <usd>\\`, or, if you named a lower job ceiling, that ceiling with \\`tenjin config subagents on --max-job <usd>\\``;\n case 'job_cap_lowered':\n return 'The job cap was lowered after the call was held; send the call again for an offer at the new cap';\n case 'capture_error':\n return 'A local error before routing';\n case 'route_error':\n return 'The routing request failed, or a spend limit refused its fee';\n case 'fee_above_ceiling':\n return /^\\d+$/.test(detail)\n ? `The router stated a routing fee of ${usdOfAtomic(BigInt(detail))} for this offer, more than Tenjin pays for one routing call or the job cap leaves room for; nothing was paid`\n : 'The router stated a routing fee above what Tenjin pays for one routing call or the job cap leaves room for; nothing was paid';\n case 'server_declined':\n return 'The router judged that the work stays native';\n case 'invalid_offer':\n return 'The router’s answer was not a valid offer';\n case 'superseded':\n return 'The call was cancelled while it was routed';\n case 'expired':\n return 'The offer was not accepted within 15 minutes';\n case 'interrupted':\n return 'The session closed or was interrupted while routing';\n }\n}\nconst WHY_SHOWN = 20;\nconst WHY_TIME = new Intl.DateTimeFormat('en-US', {\n month: 'short',\n day: '2-digit',\n hour: '2-digit',\n minute: '2-digit',\n hourCycle: 'h23',\n});\n\n/** `Nov 18 12:45`, in this machine's own time zone. */\nfunction whyTime(at: number): string {\n const part = Object.fromEntries(\n WHY_TIME.formatToParts(new Date(at)).map(({ type, value }) => [type, value]),\n );\n return `${part.month} ${part.day} ${part.hour}:${part.minute}`;\n}\n\nfunction whyLines(entries: readonly NoOffer[]): string[] {\n // A native subagent's own call, at any depth, is judged as the main loop's is.\n const tool = (entry: NoOffer) =>\n entry.from === 'subagent' ? `${entry.tool} from a subagent` : entry.tool;\n const width = Math.max(...entries.map((entry) => tool(entry).length));\n return entries.map(\n (entry) => ` ${whyTime(entry.at)} ${tool(entry).padEnd(width)} ${whyReason(entry)}`,\n );\n}\n\n/** Read only: whether DeepSeek subagents are on, their scope and the cap in force. */\nasync function status(ctx: CommandContext): Promise<CommandResult> {\n const config = await loadRawConfig(ctx.dataDir);\n const consent = modelConsentSchema.safeParse(config.router?.subagentConsent);\n if (config.router?.subagents !== true)\n return {\n data: { enabled: false },\n humanLines: ['○ DeepSeek subagents are off', '', ON_HINT],\n };\n if (!consent.success)\n return {\n data: { enabled: true, consent: false },\n humanLines: [\n '○ DeepSeek subagents are on, but no valid consent is saved, so no job is offered',\n '',\n 'Run `tenjin config subagents on` to save it.',\n ],\n };\n const directories = namedDirectories(consent.data);\n const settings = await resolveContextSettings(ctx);\n const perCall = settings.policy.maxAutoSpendAtomic;\n const named =\n consent.data.maxJobAtomic === undefined ? undefined : BigInt(consent.data.maxJobAtomic);\n const cap = named !== undefined && named < perCall ? named : perCall;\n return {\n data: {\n enabled: true,\n scope: directories ? 'directories' : 'every-workspace',\n ...(directories ? { repositories: directories } : {}),\n ...(named === undefined ? {} : { maxJobAtomic: named.toString() }),\n jobCapAtomic: cap.toString(),\n perCallLimitAtomic: perCall.toString(),\n routerOrigin: consent.data.routerOrigin,\n },\n humanLines: subagentsOnLines(ctx, {\n directories,\n perCall,\n ...(named === undefined ? {} : { named }),\n daily: settings.policy.sessionBudgetAtomic !== null,\n routerOrigin: consent.data.routerOrigin,\n }),\n };\n}\n\nexport async function runConfigSubagents(\n mode: string | undefined,\n flags: SubagentConfigFlags,\n ctx: CommandContext,\n): Promise<CommandResult> {\n const configuringWindows =\n flags.windowsWorkerSid !== undefined ||\n flags.windowsLauncher !== undefined ||\n flags.windowsClaude !== undefined ||\n flags.windowsConfigDir !== undefined ||\n flags.acceptWindowsShellAccess === true;\n if (mode === undefined || mode === 'status') {\n if (configuringWindows || flags.repository !== undefined || flags.maxJob !== undefined)\n throw new CliError('USAGE', 'Flags go with on. Use on, off, why, or no mode for the status.');\n return status(ctx);\n }\n if (configuringWindows && (mode !== 'on' || process.platform !== 'win32'))\n throw new CliError(\n 'USAGE',\n 'The Windows worker flags require native Windows and subagents on.',\n );\n if (mode === 'off') {\n await persist(ctx.dataDir, (c) => {\n const router = { ...c.router, subagents: false };\n delete router.windowsWorker;\n return { ...c, router };\n });\n return {\n data: { enabled: false },\n humanLines: [SUBAGENTS_OFF_LINE],\n };\n }\n if (mode === 'why') {\n // Read only: the codes the CLI kept on this machine, newest first. Nothing is sent.\n const noOffers = (await new ModelJobStore(ctx.dataDir).noOffers()).reverse();\n return {\n data: { noOffers },\n humanLines: noOffers.length\n ? [\n 'Subagent calls with no DeepSeek offer · last 7 days, this machine only',\n '',\n ...whyLines(noOffers.slice(0, WHY_SHOWN)),\n ]\n : [\n 'No subagent call went without an offer in the last 7 days. Calls are recorded only while DeepSeek subagents are on.',\n ],\n };\n }\n if (mode !== 'on')\n throw new CliError(\n 'USAGE',\n 'Use on [--repository <path>...] [--max-job <USD>], off, why, or no mode for the status.',\n );\n const lock = lockSupport();\n if (!lock.ok)\n throw new CliError('USAGE', `DeepSeek subagents cannot run here. ${lock.reason}`, {\n fix: 'Run Tenjin with Node 24, as its installer sets up, then run this command again.',\n });\n // THE SCOPE IS THE COMMAND'S OWN WORD. No `--repository`: every session's workspace.\n // With it: only the named directories. Neither is ever kept or widened in silence.\n const chosen = await Promise.all([flags.repository ?? []].flat().map((path) => realpath(path)));\n const repository = chosen[0];\n const settings = await resolveContextSettings(ctx);\n const routerOrigin = new URL(settings.baseUrl).origin;\n // A JOB IS ONE CALL to the person, so its cap is their per-call spend limit, read at\n // each offer. `--max-job` names a lower ceiling and never lifts the cap above the limit.\n const perCall = settings.policy.maxAutoSpendAtomic;\n const named = flags.maxJob === undefined ? undefined : BigInt(parseUsdToAtomic(flags.maxJob));\n if (named !== undefined && named <= MODEL_MINIMUM_CALL_ATOMIC)\n throw new CliError(\n 'USAGE',\n `The job ceiling must be above ${usdOfAtomic(MODEL_MINIMUM_CALL_ATOMIC)}, the least a job's cap can be, with the routing fee paid inside it. Actual input can require more.`,\n );\n if (perCall <= MODEL_MINIMUM_CALL_ATOMIC)\n throw new CliError(\n 'USAGE',\n `Your per-call spend limit, ${usd(perCall)}, is not above ${usdOfAtomic(MODEL_MINIMUM_CALL_ATOMIC)}, the reserve of one 65,536-token call, so no job would be offered. Nothing was changed.`,\n {\n fix: 'Raise the limit with `tenjin config set maxAutoSpend <usd>`, then run this command again.',\n },\n );\n const cap = named !== undefined && named < perCall ? named : perCall;\n if (configuringWindows && repository === undefined)\n throw new CliError(\n 'USAGE',\n 'On native Windows the worker runs only under the limited scope: it has no shell sandbox and works as an account that was given the directories you name. A bare on would cover every workspace, which Windows does not allow.',\n { fix: 'Add --repository <path> for each directory the worker account may work in.' },\n );\n if (configuringWindows && !flags.acceptWindowsShellAccess)\n throw new CliError('USAGE', NATIVE_WINDOWS_DISCLOSURE, {\n fix: 'Review the Windows disclosure and add --accept-windows-shell-access if you agree.',\n });\n const windowsWorker = configuringWindows\n ? await validateWindowsWorkerConfig(\n {\n version: 1,\n workerSid: flags.windowsWorkerSid,\n launcherPath: flags.windowsLauncher,\n claudePath: flags.windowsClaude,\n configDir: flags.windowsConfigDir,\n routerOrigin,\n shellAccess: 'native-windows',\n },\n ctx.dataDir,\n )\n : null;\n if (configuringWindows && !windowsWorker)\n throw new CliError('USAGE', 'The Windows worker setup is incomplete or unavailable.', {\n fix: 'Supply a dedicated account SID, readable local launcher and Claude .exe paths, and a separate shared Claude config directory.',\n });\n const limited = chosen.length > 0;\n const disclosure = [\n `Allow Tenjin (using TypeSafe/Jev for routing) to receive subagent assignments and bounded parent context ${\n limited\n ? 'from sessions inside the directories you name, and from no other session'\n : 'from every session whose subagent calls it routes, in any directory'\n }. After acceptance, Tenjin and DeepSeek receive the worker’s applicable native instruction context, accepted assignment and tool results; the worker’s web searches run inside the DeepSeek call, with no search charge, and Exa receives the address of a public page its WebFetch could not fetch. Your Tenjin block and only rules apply to that Exa page read as they do to what Tenjin picks on its own.`,\n windowsWorker\n ? NATIVE_WINDOWS_DISCLOSURE\n : `Native global, ancestor and repository instructions retain their normal scope. ${\n limited\n ? 'A Claude worker may read and write in every named directory, subfolders included'\n : 'A Claude worker may read and write in its session’s own workspace'\n }, inside its sandbox and your native permissions; your own sessions gain nothing. It may read env files in those directories as a native session can; env files are not masked, and what it reads can reach Tenjin and DeepSeek. Claude Code loads your global configuration into the worker as it does for a native subagent: your personal CLAUDE.md and the skills, plugins, agents, commands and rules under ~/.claude are among its instructions, and the worker’s file tools and commands do not read those files. Of ~/.claude they read every session transcript and memory folder, your prompt history and your settings files, so what the worker loads or reads there, other projects’ sessions included, can reach Tenjin and DeepSeek. Settings backups, wallet and login files stay unreadable to it, and its file tools read nothing outside the worker’s directories but the ~/.claude files named above; its commands also read what the sandbox leaves open, such as /tmp, /opt, /etc and /Library, as a native subagent’s do; what a worker reads or prints, secrets and credential command output included, is not masked and can reach Tenjin and DeepSeek as written, and the routing context sent before an offer is masked for known secrets, not guaranteed anonymous.`,\n `Proxy replies can be replayed for 24 hours, with expired content removed by bounded cleanup. A job costs up to your per-call spend limit as it stands at each offer, or a lower ceiling you name with --max-job; the daily budget and creator allowlist still apply. A worker request asks for an output cap of up to ${MODEL_OUTPUT_TOKENS_MAX.toLocaleString('en-US')} tokens, which reserves about ${usdOfAtomic(modelPeakQuoteAtomic(0, MODEL_OUTPUT_TOKENS_MAX))} at the current peak tariff, plus input beyond framing; a ${MODEL_OUTPUT_FLOOR_TOKENS.toLocaleString('en-US')}-token call, the least a call steps down to (the router takes any output cap), reserves at least ${usdOfAtomic(MODEL_FLOOR_CALL_ATOMIC)}, and a job is offered only under a ceiling above ${usdOfAtomic(MODEL_MINIMUM_CALL_ATOMIC)}, the reserve of one ${MODEL_OUTPUT_TOKENS.toLocaleString('en-US')}-token call. Near the end of a job a call asks for a smaller output cap, down to 8,192 tokens, so that its reserve fits what the job ceiling has left; only a call whose input plus 8,192 output tokens does not fit ends the job for budget. The routing fee (the amount the router quotes, $0.0081, never more than $0.25) is paid before the offer, inside the cap, for each offer, also when Claude declines it. A worker’s web searches run inside the model call and are paid as its tokens, with no search charge. A page its WebFetch could not fetch is read through Exa for $0.001 with no routing fee, paid from your wallet within your per-call limit and daily budget and counted against the job ceiling.`,\n ].join('\\n\\n');\n let repositories: string[] | null = null;\n // The scope this turn-on replaced, where it narrowed or widened one: said on the scope row.\n let was: SubagentsShown['was'];\n // The cap the saved consent held at this router, which this turn-on may have changed.\n let wasCap: bigint | undefined;\n await persist(ctx.dataDir, (c) => {\n const prior = modelConsentSchema.safeParse(c.router?.subagentConsent);\n const here = prior.success && prior.data.routerOrigin === routerOrigin;\n // The directories named earlier at this router, which another `--repository` keeps.\n const before = namedDirectories(c.router?.subagentConsent, routerOrigin);\n if (here) {\n const earlier = prior.data.maxJobAtomic;\n wasCap = earlier !== undefined && BigInt(earlier) < perCall ? BigInt(earlier) : perCall;\n }\n repositories = limited ? [...new Set([...(before ?? []), ...chosen])] : null;\n was = !here\n ? undefined\n : limited && !before\n ? 'every-workspace'\n : !limited && before\n ? before\n : undefined;\n const consent = modelConsent({\n routerOrigin,\n ...(repositories ? { repositories } : {}),\n ...(named === undefined ? {} : { maxJobAtomic: named.toString() }),\n });\n const router = { ...c.router, subagents: true, subagentConsent: consent };\n if (windowsWorker) router.windowsWorker = windowsWorker;\n else delete router.windowsWorker;\n return { ...c, router };\n });\n const shown: SubagentsShown = {\n directories: repositories,\n ...(was === undefined ? {} : { was }),\n ...(wasCap === undefined ? {} : { wasCap }),\n perCall,\n ...(named === undefined ? {} : { named }),\n daily: settings.policy.sessionBudgetAtomic !== null,\n routerOrigin,\n };\n // Workers run on Claude Code only: say so where the person turned them on without it.\n const claudeMissing = !(await (await import('../router/hosts')).claudeHostSetUp(ctx.dataDir));\n const humanLines = subagentsOnLines(ctx, shown, {\n terms: true,\n notes: [\n ...(claudeMissing ? [NO_CLAUDE_NOTE] : []),\n ...(windowsWorker\n ? [\n 'On Windows the worker has no shell sandbox: it runs as the dedicated account, with the access Windows gives that account.',\n ]\n : process.platform === 'win32'\n ? [\n 'Claude on Windows uses native subagents until you opt in with a dedicated Windows worker account.',\n ]\n : []),\n ],\n });\n return {\n data: {\n enabled: true,\n scope: repositories ? 'directories' : 'every-workspace',\n ...(repository === undefined ? {} : { repository }),\n ...(repositories ? { repositories } : {}),\n ...(named === undefined ? {} : { maxJobAtomic: named.toString() }),\n jobCapAtomic: cap.toString(),\n perCallLimitAtomic: perCall.toString(),\n routerOrigin,\n // The full terms. The human output prints the short form and links to the guide.\n disclosure,\n terms: SUBAGENT_TERMS.join('\\n'),\n // The scope row as printed, with a narrowed or widened scope said.\n readback: `Scope: ${scopeShown(shown)}`,\n ...(windowsWorker ? { windowsWorker: { enabled: true } } : {}),\n ...(claudeMissing ? { note: NO_CLAUDE_NOTE } : {}),\n },\n humanLines,\n };\n}\n"],"mappings":";;;;;;;;;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