tenjin-cli 0.1.0-alpha.30 → 0.1.0-alpha.32
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +65 -116
- package/dist/{_esm-CE7KNONL.js → _esm-RLLC72MS.js} +127 -131
- package/dist/alive-MROUMFH3.js +38 -0
- package/dist/auto-update-OPWMRZLS.js +22 -0
- package/dist/{ccip-7RMRLAGV.js → ccip-DHDFKTQV.js} +2 -2
- package/dist/chunk-2GNOFONN.js +560 -0
- package/dist/chunk-2GNOFONN.js.map +1 -0
- package/dist/{chunk-TTNESUPQ.js → chunk-2GP3HRYK.js} +2120 -193
- package/dist/chunk-2GP3HRYK.js.map +1 -0
- package/dist/chunk-3623BLPV.js +184 -0
- package/dist/chunk-3623BLPV.js.map +1 -0
- package/dist/chunk-3AIHRXKO.js +72 -0
- package/dist/chunk-3AIHRXKO.js.map +1 -0
- package/dist/chunk-3DIL66VX.js +120 -0
- package/dist/chunk-3DIL66VX.js.map +1 -0
- package/dist/{chunk-S4SAZ7OD.js → chunk-3FMZGI7I.js} +12 -2
- package/dist/{chunk-S4SAZ7OD.js.map → chunk-3FMZGI7I.js.map} +1 -1
- package/dist/chunk-3UCIG4TG.js +65 -0
- package/dist/chunk-3UCIG4TG.js.map +1 -0
- package/dist/{chunk-LFZJM56J.js → chunk-445VQTVM.js} +3 -3
- package/dist/{chunk-A36LQPHV.js → chunk-4LMUQMBH.js} +1 -1
- package/dist/{chunk-A36LQPHV.js.map → chunk-4LMUQMBH.js.map} +1 -1
- package/dist/{chunk-RAULEAZ6.js → chunk-4USCZ2NI.js} +3 -3
- package/dist/chunk-62KNUYWD.js +111 -0
- package/dist/chunk-62KNUYWD.js.map +1 -0
- package/dist/{chunk-POUWHWID.js → chunk-6CMM6YCB.js} +3 -3
- package/dist/{chunk-POUWHWID.js.map → chunk-6CMM6YCB.js.map} +1 -1
- package/dist/chunk-7WEQQJLG.js +68 -0
- package/dist/chunk-7WEQQJLG.js.map +1 -0
- package/dist/{chunk-3O2BQIF6.js → chunk-AD226HDR.js} +344 -534
- package/dist/chunk-AD226HDR.js.map +1 -0
- package/dist/chunk-ADV4LDTB.js +106 -0
- package/dist/chunk-ADV4LDTB.js.map +1 -0
- package/dist/{chunk-AWFUPKTM.js → chunk-AV5NZMYO.js} +15 -7
- package/dist/{chunk-AWFUPKTM.js.map → chunk-AV5NZMYO.js.map} +1 -1
- package/dist/chunk-B7EM4GGF.js +198 -0
- package/dist/chunk-B7EM4GGF.js.map +1 -0
- package/dist/chunk-BFDQ4WNW.js +119 -0
- package/dist/chunk-BFDQ4WNW.js.map +1 -0
- package/dist/{chunk-OSYTBCUC.js → chunk-BI673VEJ.js} +531 -503
- package/dist/chunk-BI673VEJ.js.map +1 -0
- package/dist/chunk-CEXSOI5R.js +808 -0
- package/dist/chunk-CEXSOI5R.js.map +1 -0
- package/dist/{chunk-OK2TDZQU.js → chunk-CISYM4EO.js} +9 -7
- package/dist/chunk-CISYM4EO.js.map +1 -0
- package/dist/{chunk-VFMQTSXG.js → chunk-D3ZURCG7.js} +3 -3
- package/dist/chunk-D5TOQSO4.js +474 -0
- package/dist/chunk-D5TOQSO4.js.map +1 -0
- package/dist/{chunk-P7LABKCW.js → chunk-DOQGNFHM.js} +33 -2
- package/dist/{chunk-P7LABKCW.js.map → chunk-DOQGNFHM.js.map} +1 -1
- package/dist/{chunk-QUVVWYJW.js → chunk-DRDUIZIA.js} +11 -9
- package/dist/{chunk-QUVVWYJW.js.map → chunk-DRDUIZIA.js.map} +1 -1
- package/dist/{chunk-O2FRQ2L2.js → chunk-DW4YTVR3.js} +5 -65
- package/dist/chunk-DW4YTVR3.js.map +1 -0
- package/dist/chunk-E7LGOMH6.js +449 -0
- package/dist/chunk-E7LGOMH6.js.map +1 -0
- package/dist/chunk-E7SW44LM.js +138 -0
- package/dist/chunk-E7SW44LM.js.map +1 -0
- package/dist/chunk-EDJWHDDL.js +33 -0
- package/dist/chunk-EDJWHDDL.js.map +1 -0
- package/dist/chunk-F3ED5WTR.js +13 -0
- package/dist/chunk-F3ED5WTR.js.map +1 -0
- package/dist/chunk-G75OPGAK.js +111 -0
- package/dist/chunk-G75OPGAK.js.map +1 -0
- package/dist/{chunk-YFQOA5AU.js → chunk-GAKUQHKA.js} +13 -17
- package/dist/{chunk-YFQOA5AU.js.map → chunk-GAKUQHKA.js.map} +1 -1
- package/dist/{chunk-PAYV4XUA.js → chunk-HDPUXS3Z.js} +20 -49
- package/dist/chunk-HDPUXS3Z.js.map +1 -0
- package/dist/{chunk-ORWL5BSN.js → chunk-HGZEPQUT.js} +2 -2
- package/dist/{chunk-HPWO4O6S.js → chunk-HREHWL32.js} +4 -4
- package/dist/{chunk-HPWO4O6S.js.map → chunk-HREHWL32.js.map} +1 -1
- package/dist/{chunk-VZGAONSJ.js → chunk-I5TDIUKM.js} +16 -35
- package/dist/chunk-I5TDIUKM.js.map +1 -0
- package/dist/{chunk-7QKHZQKW.js → chunk-IADZOXKN.js} +39 -6
- package/dist/chunk-IADZOXKN.js.map +1 -0
- package/dist/{chunk-U6YQ6FRI.js → chunk-IDTRSAHE.js} +32 -12
- package/dist/chunk-IDTRSAHE.js.map +1 -0
- package/dist/{chunk-SPAVAYSW.js → chunk-JEVQ5LKO.js} +7 -5
- package/dist/{chunk-SPAVAYSW.js.map → chunk-JEVQ5LKO.js.map} +1 -1
- package/dist/{chunk-EBVIKMCH.js → chunk-JKKAIPTU.js} +2 -2
- package/dist/chunk-JNJWBTU2.js +3497 -0
- package/dist/chunk-JNJWBTU2.js.map +1 -0
- package/dist/{chunk-TTBKWWTV.js → chunk-JRZBBPO6.js} +390 -146
- package/dist/chunk-JRZBBPO6.js.map +1 -0
- package/dist/{chunk-WVUSXNIE.js → chunk-MPZUYCAP.js} +9 -2
- package/dist/{chunk-WVUSXNIE.js.map → chunk-MPZUYCAP.js.map} +1 -1
- package/dist/{chunk-SJLTEINJ.js → chunk-OJNTCYQQ.js} +17 -1
- package/dist/chunk-OJNTCYQQ.js.map +1 -0
- package/dist/{chunk-IOODYAXL.js → chunk-OTWLERSW.js} +25 -6
- package/dist/chunk-OTWLERSW.js.map +1 -0
- package/dist/{chunk-AWQPGIR6.js → chunk-PJNENX2A.js} +1535 -422
- package/dist/chunk-PJNENX2A.js.map +1 -0
- package/dist/{chunk-KHE6L6TD.js → chunk-PKHI276N.js} +97 -11
- package/dist/chunk-PKHI276N.js.map +1 -0
- package/dist/{chunk-YHKXNYTB.js → chunk-QF3LSMGS.js} +2 -2
- package/dist/chunk-QXP3Z3JN.js +131 -0
- package/dist/chunk-QXP3Z3JN.js.map +1 -0
- package/dist/{chunk-XZKD7DIF.js → chunk-RL5UUDT4.js} +3 -3
- package/dist/{chunk-XZKD7DIF.js.map → chunk-RL5UUDT4.js.map} +1 -1
- package/dist/chunk-SFASB5FL.js +69 -0
- package/dist/chunk-SFASB5FL.js.map +1 -0
- package/dist/{chunk-WO5BJNIB.js → chunk-SNNSAGMT.js} +7273 -2741
- package/dist/chunk-SNNSAGMT.js.map +1 -0
- package/dist/{chunk-NZIP4PA2.js → chunk-SO3XRZPX.js} +3 -3
- package/dist/chunk-SYOS5CAC.js +176 -0
- package/dist/chunk-SYOS5CAC.js.map +1 -0
- package/dist/chunk-TAW4UFFF.js +293 -0
- package/dist/chunk-TAW4UFFF.js.map +1 -0
- package/dist/chunk-TF5HCP33.js +271 -0
- package/dist/chunk-TF5HCP33.js.map +1 -0
- package/dist/{chunk-AKWGE6JQ.js → chunk-UUGOUOVT.js} +37 -2
- package/dist/chunk-UUGOUOVT.js.map +1 -0
- package/dist/{chunk-AEG2PXBP.js → chunk-V2LQLN5H.js} +7 -7
- package/dist/{chunk-KYFZTGMC.js → chunk-VJUVFZ2D.js} +5 -3
- package/dist/{chunk-KYFZTGMC.js.map → chunk-VJUVFZ2D.js.map} +1 -1
- package/dist/{chunk-JMM6YE7J.js → chunk-VOZA6O7K.js} +708 -709
- package/dist/chunk-VOZA6O7K.js.map +1 -0
- package/dist/{chunk-5LJCEMFD.js → chunk-VUGQTZ2L.js} +209 -77
- package/dist/chunk-VUGQTZ2L.js.map +1 -0
- package/dist/chunk-WOM257PW.js +393 -0
- package/dist/chunk-WOM257PW.js.map +1 -0
- package/dist/chunk-WYXUQGOL.js +191 -0
- package/dist/chunk-WYXUQGOL.js.map +1 -0
- package/dist/chunk-X5ZBP3IY.js +97 -0
- package/dist/chunk-X5ZBP3IY.js.map +1 -0
- package/dist/chunk-XQJXNMSB.js +23 -0
- package/dist/chunk-XQJXNMSB.js.map +1 -0
- package/dist/chunk-Y527D4TV.js +56 -0
- package/dist/chunk-Y527D4TV.js.map +1 -0
- package/dist/{chunk-VUFAK2LW.js → chunk-YUY4SAGM.js} +17 -2
- package/dist/chunk-YUY4SAGM.js.map +1 -0
- package/dist/clack-EZ7TDWQU.js +19 -0
- package/dist/claude-cli-2YKABJJZ.js +31 -0
- package/dist/{cli-O5SN7ZJ4.js → cli-FB4LOA5A.js} +221 -68
- package/dist/{cli-O5SN7ZJ4.js.map → cli-FB4LOA5A.js.map} +1 -1
- package/dist/codex-event-TYVES3UX.js +16 -0
- package/dist/codex-host-WW4H2SKT.js +29 -0
- package/dist/codex-install-2C623HPW.js +393 -0
- package/dist/codex-install-2C623HPW.js.map +1 -0
- package/dist/{config-OJQI27LT.js → config-HOVJFEKD.js} +25 -15
- package/dist/doctor-NKU4V5OV.js +1312 -0
- package/dist/doctor-NKU4V5OV.js.map +1 -0
- package/dist/{env-proxy-XL4P73MZ.js → env-proxy-R6ZMLQTT.js} +6 -2
- package/dist/{ethersCompat-Df4a6QIZ-THAVUGIJ.js → ethersCompat-Df4a6QIZ-X6YZWAML.js} +3 -3
- package/dist/{fund-WEV6DMTD.js → fund-WEBHTZGN.js} +38 -30
- package/dist/{fund-WEV6DMTD.js.map → fund-WEBHTZGN.js.map} +1 -1
- package/dist/hook-command-ZA2PNKS6.js +44 -0
- package/dist/hosts/claude/.claude-plugin/marketplace.json +2 -2
- package/dist/hosts/claude/tenjin/.claude-plugin/plugin.json +3 -2
- package/dist/hosts/claude/tenjin/hooks/hooks.json +4 -1
- package/dist/hosts/claude/tenjin/hooks/register.tsx +589 -0
- package/dist/hosts/claude/tenjin/skills/tenjin-pay/SKILL.md +82 -0
- package/dist/hosts/claude/tenjin/types/index.d.ts +41 -0
- package/dist/hosts/codex/.agents/plugins/marketplace.json +20 -0
- package/dist/hosts/codex/tenjin/.codex-plugin/plugin.json +16 -0
- package/dist/hosts/codex/tenjin/.mcp.json +15 -0
- package/dist/hosts/codex/tenjin/hooks/hooks.json +98 -0
- package/dist/hosts-AV5MHBAU.js +38 -0
- package/dist/index.js +28 -8
- package/dist/index.js.map +1 -1
- package/dist/install-PT4EZS4R.js +100 -0
- package/dist/{install-identity-WHPNMNMQ.js → install-identity-5A4OE6YC.js} +13 -8
- package/dist/install-wallet-SAAPKB73.js +281 -0
- package/dist/install-wallet-SAAPKB73.js.map +1 -0
- package/dist/{mcp-QML7ZMPH.js → mcp-HAWKCTPQ.js} +909 -208
- package/dist/mcp-HAWKCTPQ.js.map +1 -0
- package/dist/{mine.wasm-6PIT3DK6.js → mine.wasm-QFAHIFPY.js} +2 -2
- package/dist/{mine.wasm-6PIT3DK6.js.map → mine.wasm-QFAHIFPY.js.map} +1 -1
- package/dist/{package-LGKYOEPV.js → package-SR2WB6MK.js} +4 -2
- package/dist/passphrase-IFTDS3CU.js +44 -0
- package/dist/{paths-POPTXJO6.js → paths-XCSAKISU.js} +10 -2
- package/dist/pay-OXC3WKYV.js +55 -0
- package/dist/pay-OXC3WKYV.js.map +1 -0
- package/dist/{payments-C44QUFXU.js → payments-3KHMP2MG.js} +18 -13
- package/dist/{payments-C44QUFXU.js.map → payments-3KHMP2MG.js.map} +1 -1
- package/dist/plugin-registration-N3GRIZVM.js +67 -0
- package/dist/plugin-registration-N3GRIZVM.js.map +1 -0
- package/dist/{redact-6W23GGJC.js → redact-D7ASVWKL.js} +2 -2
- package/dist/redact-D7ASVWKL.js.map +1 -0
- package/dist/runtime-UVNUA3AS.js +1203 -0
- package/dist/runtime-UVNUA3AS.js.map +1 -0
- package/dist/runtime-fetch-EKFRNR6Z.js +20 -0
- package/dist/runtime-fetch-EKFRNR6Z.js.map +1 -0
- package/dist/runtime-layout-BDWZG2TQ.js +25 -0
- package/dist/runtime-layout-BDWZG2TQ.js.map +1 -0
- package/dist/{send-KVJX4XIR.js → send-HMKJLT34.js} +26 -18
- package/dist/{send-KVJX4XIR.js.map → send-HMKJLT34.js.map} +1 -1
- package/dist/{status-S7C3WMSH.js → status-RWXIIWYS.js} +57 -22
- package/dist/status-RWXIIWYS.js.map +1 -0
- package/dist/{status-line-YR2T5HC4.js → status-line-77XYZP7E.js} +13 -8
- package/dist/{status-line-YR2T5HC4.js.map → status-line-77XYZP7E.js.map} +1 -1
- package/dist/uninstall-D5G67UJH.js +480 -0
- package/dist/uninstall-D5G67UJH.js.map +1 -0
- package/dist/update-LRNOEGSB.js +53 -0
- package/dist/update-LRNOEGSB.js.map +1 -0
- package/dist/{usdc-JK4RRFFQ.js → usdc-D6X7EIQ2.js} +7 -8
- package/dist/usdc-D6X7EIQ2.js.map +1 -0
- package/dist/{viemAdapter-By13KInL-X2VY6CY3.js → viemAdapter-By13KInL-RL742ETX.js} +3 -3
- package/dist/viemAdapter-By13KInL-RL742ETX.js.map +1 -0
- package/dist/wallet-XFYC27BR.js +55 -0
- package/dist/wallet-XFYC27BR.js.map +1 -0
- package/dist/wallet-kdf-worker.mjs +8 -8
- package/docs/agent-permissions.md +56 -22
- package/docs/safety-model.md +1 -1
- package/docs/troubleshooting.md +72 -1
- package/package.json +14 -1
- package/dist/alive-3J3CHOQP.js +0 -21
- package/dist/ccip-NLCSCHKI.js +0 -19
- package/dist/chunk-3O2BQIF6.js.map +0 -1
- package/dist/chunk-5IEP5EGE.js +0 -5332
- package/dist/chunk-5IEP5EGE.js.map +0 -1
- package/dist/chunk-5LJCEMFD.js.map +0 -1
- package/dist/chunk-6W5GYG3W.js +0 -128
- package/dist/chunk-6W5GYG3W.js.map +0 -1
- package/dist/chunk-7EKYXMUO.js +0 -7536
- package/dist/chunk-7EKYXMUO.js.map +0 -1
- package/dist/chunk-7QKHZQKW.js.map +0 -1
- package/dist/chunk-AKWGE6JQ.js.map +0 -1
- package/dist/chunk-AWQPGIR6.js.map +0 -1
- package/dist/chunk-EGELTSPU.js +0 -2865
- package/dist/chunk-EGELTSPU.js.map +0 -1
- package/dist/chunk-EL56RW2J.js +0 -7611
- package/dist/chunk-EL56RW2J.js.map +0 -1
- package/dist/chunk-HE2MS4QO.js +0 -256
- package/dist/chunk-HE2MS4QO.js.map +0 -1
- package/dist/chunk-IOODYAXL.js.map +0 -1
- package/dist/chunk-JMM6YE7J.js.map +0 -1
- package/dist/chunk-KHE6L6TD.js.map +0 -1
- package/dist/chunk-N35E6CM2.js +0 -1185
- package/dist/chunk-N35E6CM2.js.map +0 -1
- package/dist/chunk-O2FRQ2L2.js.map +0 -1
- package/dist/chunk-OK2TDZQU.js.map +0 -1
- package/dist/chunk-OSYTBCUC.js.map +0 -1
- package/dist/chunk-PAYV4XUA.js.map +0 -1
- package/dist/chunk-SJLTEINJ.js.map +0 -1
- package/dist/chunk-TTBKWWTV.js.map +0 -1
- package/dist/chunk-TTNESUPQ.js.map +0 -1
- package/dist/chunk-U6YQ6FRI.js.map +0 -1
- package/dist/chunk-VUFAK2LW.js.map +0 -1
- package/dist/chunk-VZGAONSJ.js.map +0 -1
- package/dist/chunk-WO5BJNIB.js.map +0 -1
- package/dist/doctor-IQQJHGGM.js +0 -590
- package/dist/doctor-IQQJHGGM.js.map +0 -1
- package/dist/hook-command-D2P3ILRV.js +0 -32
- package/dist/install-TUCRF32I.js +0 -60
- package/dist/install-wallet-MA27FTQ5.js +0 -113
- package/dist/install-wallet-MA27FTQ5.js.map +0 -1
- package/dist/mcp-QML7ZMPH.js.map +0 -1
- package/dist/pay-2C2UBBXJ.js +0 -51
- package/dist/status-S7C3WMSH.js.map +0 -1
- package/dist/uninstall-HY6LKIIT.js +0 -149
- package/dist/uninstall-HY6LKIIT.js.map +0 -1
- package/dist/update-OJV22LR3.js +0 -36
- package/dist/wallet-PD2IMZDU.js +0 -39
- /package/dist/{_esm-CE7KNONL.js.map → _esm-RLLC72MS.js.map} +0 -0
- /package/dist/{alive-3J3CHOQP.js.map → alive-MROUMFH3.js.map} +0 -0
- /package/dist/{ccip-7RMRLAGV.js.map → auto-update-OPWMRZLS.js.map} +0 -0
- /package/dist/{ccip-NLCSCHKI.js.map → ccip-DHDFKTQV.js.map} +0 -0
- /package/dist/{chunk-LFZJM56J.js.map → chunk-445VQTVM.js.map} +0 -0
- /package/dist/{chunk-RAULEAZ6.js.map → chunk-4USCZ2NI.js.map} +0 -0
- /package/dist/{chunk-VFMQTSXG.js.map → chunk-D3ZURCG7.js.map} +0 -0
- /package/dist/{chunk-ORWL5BSN.js.map → chunk-HGZEPQUT.js.map} +0 -0
- /package/dist/{chunk-EBVIKMCH.js.map → chunk-JKKAIPTU.js.map} +0 -0
- /package/dist/{chunk-YHKXNYTB.js.map → chunk-QF3LSMGS.js.map} +0 -0
- /package/dist/{chunk-NZIP4PA2.js.map → chunk-SO3XRZPX.js.map} +0 -0
- /package/dist/{chunk-AEG2PXBP.js.map → chunk-V2LQLN5H.js.map} +0 -0
- /package/dist/{config-OJQI27LT.js.map → clack-EZ7TDWQU.js.map} +0 -0
- /package/dist/{env-proxy-XL4P73MZ.js.map → claude-cli-2YKABJJZ.js.map} +0 -0
- /package/dist/{ethersCompat-Df4a6QIZ-THAVUGIJ.js.map → codex-event-TYVES3UX.js.map} +0 -0
- /package/dist/{hook-command-D2P3ILRV.js.map → codex-host-WW4H2SKT.js.map} +0 -0
- /package/dist/{install-TUCRF32I.js.map → config-HOVJFEKD.js.map} +0 -0
- /package/dist/{install-identity-WHPNMNMQ.js.map → env-proxy-R6ZMLQTT.js.map} +0 -0
- /package/dist/{package-LGKYOEPV.js.map → ethersCompat-Df4a6QIZ-X6YZWAML.js.map} +0 -0
- /package/dist/{paths-POPTXJO6.js.map → hook-command-ZA2PNKS6.js.map} +0 -0
- /package/dist/{pay-2C2UBBXJ.js.map → hosts-AV5MHBAU.js.map} +0 -0
- /package/dist/{redact-6W23GGJC.js.map → install-PT4EZS4R.js.map} +0 -0
- /package/dist/{update-OJV22LR3.js.map → install-identity-5A4OE6YC.js.map} +0 -0
- /package/dist/{usdc-JK4RRFFQ.js.map → package-SR2WB6MK.js.map} +0 -0
- /package/dist/{viemAdapter-By13KInL-X2VY6CY3.js.map → passphrase-IFTDS3CU.js.map} +0 -0
- /package/dist/{wallet-PD2IMZDU.js.map → paths-XCSAKISU.js.map} +0 -0
|
@@ -2,32 +2,42 @@ import { createRequire as __tenjinCreateRequire } from 'node:module'; const requ
|
|
|
2
2
|
import {
|
|
3
3
|
maybeUpdate,
|
|
4
4
|
readUpdateSignal
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-I5TDIUKM.js";
|
|
6
6
|
import {
|
|
7
7
|
PERMISSIONS_DOC_URL
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-4LMUQMBH.js";
|
|
9
9
|
import {
|
|
10
10
|
defaultIo,
|
|
11
11
|
emitFailure,
|
|
12
12
|
emitSuccess
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-VJUVFZ2D.js";
|
|
14
|
+
import {
|
|
15
|
+
HARNESSES
|
|
16
|
+
} from "./chunk-MPZUYCAP.js";
|
|
14
17
|
import {
|
|
15
18
|
noteBaseUrlFlag
|
|
16
|
-
} from "./chunk-
|
|
17
|
-
import "./chunk-
|
|
19
|
+
} from "./chunk-DRDUIZIA.js";
|
|
20
|
+
import "./chunk-OTWLERSW.js";
|
|
21
|
+
import {
|
|
22
|
+
package_default
|
|
23
|
+
} from "./chunk-YUY4SAGM.js";
|
|
24
|
+
import "./chunk-AV5NZMYO.js";
|
|
25
|
+
import "./chunk-Y527D4TV.js";
|
|
18
26
|
import "./chunk-2I4QTOLB.js";
|
|
19
|
-
import "./chunk-
|
|
27
|
+
import "./chunk-2GNOFONN.js";
|
|
28
|
+
import "./chunk-DW4YTVR3.js";
|
|
29
|
+
import "./chunk-XQJXNMSB.js";
|
|
20
30
|
import {
|
|
21
|
-
CliError,
|
|
22
31
|
external_exports
|
|
23
|
-
} from "./chunk-
|
|
24
|
-
import "./chunk-
|
|
32
|
+
} from "./chunk-SNNSAGMT.js";
|
|
33
|
+
import "./chunk-7WEQQJLG.js";
|
|
25
34
|
import {
|
|
26
|
-
|
|
27
|
-
} from "./chunk-
|
|
35
|
+
CliError
|
|
36
|
+
} from "./chunk-3UCIG4TG.js";
|
|
37
|
+
import "./chunk-EDJWHDDL.js";
|
|
28
38
|
import {
|
|
29
|
-
|
|
30
|
-
} from "./chunk-
|
|
39
|
+
dataDir
|
|
40
|
+
} from "./chunk-OJNTCYQQ.js";
|
|
31
41
|
import {
|
|
32
42
|
__commonJS,
|
|
33
43
|
__require,
|
|
@@ -3484,17 +3494,23 @@ var {
|
|
|
3484
3494
|
Help
|
|
3485
3495
|
} = import_index.default;
|
|
3486
3496
|
|
|
3497
|
+
// src/cli/core.ts
|
|
3498
|
+
import { homedir } from "node:os";
|
|
3499
|
+
|
|
3487
3500
|
// src/cli/registration.ts
|
|
3488
3501
|
var SETUP = "Setup:";
|
|
3489
3502
|
var WALLET = "Wallet:";
|
|
3490
3503
|
var INTEGRATION = "Integration:";
|
|
3504
|
+
function collect(value, previous) {
|
|
3505
|
+
return [...previous ?? [], value];
|
|
3506
|
+
}
|
|
3491
3507
|
|
|
3492
3508
|
// src/cli/core.ts
|
|
3493
3509
|
function registerCore(reg) {
|
|
3494
3510
|
const { runCommand, leaf: leaf2, addGlobalFlags: addGlobalFlags2 } = reg;
|
|
3495
|
-
leaf2(SETUP, "install", "set up Tenjin for
|
|
3496
|
-
"Set up
|
|
3497
|
-
).option("--project", "register the plugin for this project only").option("--no-wallet", "create no wallet").option("--refresh", "bring the plugin this machine already has up to this version").option("--yes", "accept the defaults ($5 a day, $0.25 a call) instead of asking").option("--session-budget <usd|none>", "your own daily limit, or none, instead of asking").option("--max-auto-spend <usd>", "your own per-call limit, at least 0.25 (the default)").addHelpText(
|
|
3511
|
+
leaf2(SETUP, "install", "set up Tenjin for your agent and create a wallet").description(
|
|
3512
|
+
"Set up Tenjin for your agent: a wallet if this machine has none, spend limits for each lookup, and the Tenjin plugin (its routing hooks and its `router` MCP server), registered through the agent's own plugin commands. Run by an agent, it sets up the agent it runs in. In a terminal, it sets up Claude Code or Codex, whichever this machine has, and asks which when it has both. For Claude Code, a settings-based install from an earlier release is removed once the plugin has loaded. Codex is user scope only."
|
|
3513
|
+
).addOption(hostOverride()).option("--project", "register the plugin for this project only").option("--no-wallet", "create no wallet").option("--refresh", "bring the plugin this machine already has up to this version").option("--yes", "accept the defaults ($5 a day, $0.25 a call) instead of asking").option("--session-budget <usd|none>", "your own daily limit, or none, instead of asking").option("--max-auto-spend <usd>", "your own per-call limit, at least 0.25 (the default)").addHelpText(
|
|
3498
3514
|
"after",
|
|
3499
3515
|
`
|
|
3500
3516
|
Examples:
|
|
@@ -3513,32 +3529,90 @@ Learn more:
|
|
|
3513
3529
|
).action(async function() {
|
|
3514
3530
|
await runCommand("install", this, async (ctx) => {
|
|
3515
3531
|
const o = this.opts();
|
|
3516
|
-
const
|
|
3517
|
-
|
|
3518
|
-
|
|
3519
|
-
|
|
3520
|
-
|
|
3521
|
-
|
|
3522
|
-
|
|
3523
|
-
|
|
3524
|
-
|
|
3525
|
-
}
|
|
3526
|
-
|
|
3527
|
-
);
|
|
3532
|
+
const harness = o.harness;
|
|
3533
|
+
if (harness === "codex" && o.refresh === true) {
|
|
3534
|
+
throw new CliError("USAGE", "The Codex plugin has no refresh; omit --refresh.");
|
|
3535
|
+
}
|
|
3536
|
+
const { installHosts, otherHostNote, recordInstalledHost, runEach, withNote } = await import("./hosts-AV5MHBAU.js");
|
|
3537
|
+
const hostArgs = {
|
|
3538
|
+
...harness !== void 0 ? { harness } : {},
|
|
3539
|
+
...o.project === true ? { project: true } : {},
|
|
3540
|
+
...o.refresh === true ? { refresh: true } : {},
|
|
3541
|
+
...o.yes === true ? { yes: true } : {}
|
|
3542
|
+
};
|
|
3543
|
+
const hosts = await installHosts(hostArgs, ctx);
|
|
3544
|
+
const note = otherHostNote(hostArgs).catch(() => void 0);
|
|
3545
|
+
const runtime = (await import("./install-PT4EZS4R.js")).runtimeOncePerRun();
|
|
3546
|
+
const installAll = () => runEach(hosts, async (host) => {
|
|
3547
|
+
const one = host === "codex" ? await (await import("./codex-install-2C623HPW.js")).runCodexInstall(codexArgs(o), ctx, { runtime }) : await (await import("./install-PT4EZS4R.js")).runRouterInstall(
|
|
3548
|
+
{
|
|
3549
|
+
...o.project === true ? { project: true } : {},
|
|
3550
|
+
...o.refresh === true ? { refresh: true } : {},
|
|
3551
|
+
...o.yes === true ? { yes: true } : {},
|
|
3552
|
+
...o.wallet === false ? { noWallet: true } : {},
|
|
3553
|
+
...typeof o.maxAutoSpend === "string" ? { maxAutoSpend: o.maxAutoSpend } : {},
|
|
3554
|
+
...typeof o.sessionBudget === "string" ? { sessionBudget: o.sessionBudget } : {}
|
|
3555
|
+
},
|
|
3556
|
+
ctx,
|
|
3557
|
+
{ runtime }
|
|
3558
|
+
);
|
|
3559
|
+
if (o.refresh !== true) await recordInstalledHost(ctx.dataDir, host);
|
|
3560
|
+
return one;
|
|
3561
|
+
});
|
|
3562
|
+
if (o.refresh !== true || harness !== void 0) {
|
|
3563
|
+
return withNote(await installAll(), await note);
|
|
3564
|
+
}
|
|
3565
|
+
const { alongsideCodexRefresh, refreshCodexPlugin } = await import("./codex-install-2C623HPW.js");
|
|
3566
|
+
return alongsideCodexRefresh(installAll, () => refreshCodexPlugin(ctx));
|
|
3528
3567
|
});
|
|
3529
3568
|
});
|
|
3530
3569
|
leaf2(SETUP, "uninstall", "remove what install wrote; the wallet is kept").description(
|
|
3531
|
-
"Remove the
|
|
3532
|
-
).
|
|
3570
|
+
"Remove Tenjin's install for where you are: the project install of the folder you are in (from any subfolder), or else your user install. The tenjin marketplace, Tenjin's runtime and its launcher go once no install is left anywhere. Either all of it goes or nothing does, and it says what it keeps: your wallet, spend ledger and config. Run it before `npm uninstall -g tenjin-cli`."
|
|
3571
|
+
).addOption(hostOverride()).option(
|
|
3572
|
+
"--project [path]",
|
|
3573
|
+
"remove that project's install (this folder's when no path is given), from any folder"
|
|
3574
|
+
).option("--all", "remove every Tenjin install: your user install and each project's").action(async function() {
|
|
3533
3575
|
await runCommand("uninstall", this, async (ctx) => {
|
|
3534
3576
|
const o = this.opts();
|
|
3535
|
-
const
|
|
3536
|
-
|
|
3577
|
+
const harness = o.harness;
|
|
3578
|
+
const project = o.project;
|
|
3579
|
+
if (o.all === true && project !== void 0) {
|
|
3580
|
+
throw new CliError("USAGE", "Pass --all or --project, not both.");
|
|
3581
|
+
}
|
|
3582
|
+
if (harness === "codex" && project !== void 0) {
|
|
3583
|
+
throw new CliError("USAGE", "Codex has no project install; omit --project.");
|
|
3584
|
+
}
|
|
3585
|
+
const [{ recordedHosts, uninstallEach }, uninstall] = await Promise.all([
|
|
3586
|
+
import("./hosts-AV5MHBAU.js"),
|
|
3587
|
+
import("./uninstall-D5G67UJH.js")
|
|
3588
|
+
]);
|
|
3589
|
+
const target = harness === "codex" ? { kind: o.all === true ? "all" : "user" } : await uninstall.resolveUninstallTarget(
|
|
3590
|
+
{
|
|
3591
|
+
...o.all === true ? { all: true } : {},
|
|
3592
|
+
...project !== void 0 ? { project } : {}
|
|
3593
|
+
},
|
|
3594
|
+
ctx
|
|
3595
|
+
);
|
|
3596
|
+
const hosts = await recordedHosts(
|
|
3597
|
+
{ ...harness !== void 0 ? { harness } : {}, project: target.kind === "project" },
|
|
3598
|
+
ctx.dataDir
|
|
3599
|
+
);
|
|
3600
|
+
return uninstallEach(
|
|
3601
|
+
hosts,
|
|
3602
|
+
ctx.dataDir,
|
|
3603
|
+
target,
|
|
3604
|
+
async (host) => host === "codex" ? (await import("./codex-install-2C623HPW.js")).runCodexUninstall(codexArgs(o), ctx) : uninstall.runRouterUninstall({ target }, ctx),
|
|
3605
|
+
{
|
|
3606
|
+
remove: () => uninstall.removeRuntimeAndLaunchers(ctx.dataDir, homedir()),
|
|
3607
|
+
claudeLeft: () => uninstall.claudeInstallsLeft(ctx),
|
|
3608
|
+
keptFor: (users) => uninstall.runtimeKeptFor(ctx.dataDir, homedir(), users)
|
|
3609
|
+
}
|
|
3610
|
+
);
|
|
3537
3611
|
});
|
|
3538
3612
|
});
|
|
3539
3613
|
leaf2(SETUP, "doctor", "check this machine can run a lookup").description(
|
|
3540
|
-
"Check everything a lookup needs: the Node floor, Claude Code's version, the Tenjin plugin and its router server, any settings install an earlier release left, the spend limits, the wallet, and the router endpoint answering its 402. It prints one line per check with a fix for each failure, writes nothing, and exits nonzero if a required one fails."
|
|
3541
|
-
).option("--project", "check the project-only install, as --project registered it").addHelpText(
|
|
3614
|
+
"Check everything a lookup needs, for each agent `tenjin install` set up. For Claude Code: the Node floor, Claude Code's version, the Tenjin plugin, the runtime and launcher Claude Code starts, its router server, any settings install an earlier release left, the spend limits, whether the wallet can sign without a prompt, as the router Claude Code is running sees it when one is live, and the router endpoint answering its 402. For Codex: Codex's hook list for the plugin and its hook trust. It prints one line per check with a fix for each failure, writes nothing, and exits nonzero if a required one fails; a check it cannot answer is a warning, never ok."
|
|
3615
|
+
).addOption(hostOverride()).option("--project", "check the project-only install, as --project registered it").addHelpText(
|
|
3542
3616
|
"after",
|
|
3543
3617
|
`
|
|
3544
3618
|
Examples:
|
|
@@ -3548,16 +3622,31 @@ Examples:
|
|
|
3548
3622
|
`
|
|
3549
3623
|
).action(async function() {
|
|
3550
3624
|
await runCommand("doctor", this, async (ctx) => {
|
|
3551
|
-
const
|
|
3552
|
-
|
|
3625
|
+
const o = this.opts();
|
|
3626
|
+
const harness = o.harness;
|
|
3627
|
+
const { checkEach, recordedHosts } = await import("./hosts-AV5MHBAU.js");
|
|
3628
|
+
const hosts = await recordedHosts(
|
|
3629
|
+
{ ...harness !== void 0 ? { harness } : {}, project: o.project === true },
|
|
3630
|
+
ctx.dataDir
|
|
3631
|
+
);
|
|
3632
|
+
return checkEach(
|
|
3633
|
+
hosts,
|
|
3634
|
+
async (host) => host === "codex" ? (await import("./codex-install-2C623HPW.js")).runCodexDoctor(codexArgs(o), ctx) : (await import("./doctor-NKU4V5OV.js")).runRouterDoctor(
|
|
3635
|
+
ctx,
|
|
3636
|
+
o.project === true ? { project: true } : {}
|
|
3637
|
+
)
|
|
3638
|
+
);
|
|
3553
3639
|
});
|
|
3554
3640
|
});
|
|
3555
3641
|
leaf2(SETUP, "update", "update tenjin-cli to the newest published version").description(
|
|
3556
|
-
"Update
|
|
3557
|
-
).option("--check", "report whether a newer version exists without installing it").action(async function() {
|
|
3642
|
+
"Update Tenjin to the newest version on npm's latest tag, without npm: it downloads the release, checks it, and switches only once it runs; the previous version stays as the fallback."
|
|
3643
|
+
).option("--check", "report whether a newer version exists without installing it").addOption(new Option("--background").hideHelp()).action(async function() {
|
|
3558
3644
|
await runCommand("update", this, async (ctx) => {
|
|
3559
|
-
const { runUpdate } = await import("./update-
|
|
3560
|
-
return runUpdate(
|
|
3645
|
+
const { runUpdate } = await import("./update-LRNOEGSB.js");
|
|
3646
|
+
return runUpdate(
|
|
3647
|
+
{ check: this.opts().check === true, background: this.opts().background === true },
|
|
3648
|
+
ctx
|
|
3649
|
+
);
|
|
3561
3650
|
});
|
|
3562
3651
|
});
|
|
3563
3652
|
const config = leaf2(SETUP, "config", "read and set config values").description(
|
|
@@ -3575,7 +3664,7 @@ Examples:
|
|
|
3575
3664
|
);
|
|
3576
3665
|
config.action(async function() {
|
|
3577
3666
|
await runCommand("config", this, async (ctx) => {
|
|
3578
|
-
const { runConfigList } = await import("./config-
|
|
3667
|
+
const { runConfigList } = await import("./config-HOVJFEKD.js");
|
|
3579
3668
|
return runConfigList(ctx);
|
|
3580
3669
|
});
|
|
3581
3670
|
});
|
|
@@ -3583,7 +3672,7 @@ Examples:
|
|
|
3583
3672
|
"Print one effective config value by key. The effective value is what the command would use, defaults and environment overrides included."
|
|
3584
3673
|
).action(async function(key) {
|
|
3585
3674
|
await runCommand("config.get", this, async (ctx) => {
|
|
3586
|
-
const { runConfigGet } = await import("./config-
|
|
3675
|
+
const { runConfigGet } = await import("./config-HOVJFEKD.js");
|
|
3587
3676
|
return runConfigGet({ key }, ctx);
|
|
3588
3677
|
});
|
|
3589
3678
|
});
|
|
@@ -3595,7 +3684,7 @@ Examples:
|
|
|
3595
3684
|
).option("--local", "with --project, write .tenjin/config.local.json instead, which is yours").action(async function(key, value) {
|
|
3596
3685
|
const o = this.opts();
|
|
3597
3686
|
await runCommand("config.set", this, async (ctx) => {
|
|
3598
|
-
const { runConfigSet } = await import("./config-
|
|
3687
|
+
const { runConfigSet } = await import("./config-HOVJFEKD.js");
|
|
3599
3688
|
return runConfigSet(
|
|
3600
3689
|
{ key, value, project: o.project === true, local: o.local === true },
|
|
3601
3690
|
ctx
|
|
@@ -3605,7 +3694,7 @@ Examples:
|
|
|
3605
3694
|
const wallet = leaf2(
|
|
3606
3695
|
WALLET,
|
|
3607
3696
|
"wallet",
|
|
3608
|
-
"create, show, fund and send from the local wallet"
|
|
3697
|
+
"create, show, fund, repair and send from the local wallet"
|
|
3609
3698
|
).description(
|
|
3610
3699
|
"Manage the local x402 payment wallet used for paid reads and publishing. The private key is generated on this machine, stored encrypted, and never printed."
|
|
3611
3700
|
);
|
|
@@ -3614,11 +3703,29 @@ Examples:
|
|
|
3614
3703
|
).option(
|
|
3615
3704
|
"--replace",
|
|
3616
3705
|
"archive the existing wallet beside the new one, passphrase preserved, then create a new active wallet"
|
|
3706
|
+
).option(
|
|
3707
|
+
"--insecure-storage",
|
|
3708
|
+
"save the passphrase to a file only you can read, even where an OS keychain exists"
|
|
3617
3709
|
).action(async function() {
|
|
3618
3710
|
await runCommand("wallet.create", this, async (ctx) => {
|
|
3619
3711
|
const o = this.opts();
|
|
3620
|
-
const { runWalletCreate } = await import("./wallet-
|
|
3621
|
-
return runWalletCreate(ctx,
|
|
3712
|
+
const { runWalletCreate } = await import("./wallet-XFYC27BR.js");
|
|
3713
|
+
return runWalletCreate(ctx, {
|
|
3714
|
+
...o.replace === true ? { replace: true } : {},
|
|
3715
|
+
...o.insecureStorage === true ? { insecureStorage: true } : {}
|
|
3716
|
+
});
|
|
3717
|
+
});
|
|
3718
|
+
});
|
|
3719
|
+
addGlobalFlags2(wallet.command("repair")).summary("save the wallet passphrase so Claude Code can unlock it").description(
|
|
3720
|
+
"For a wallet Claude Code cannot unlock. Asks for the passphrase at the terminal (or uses TENJIN_WALLET_PASSPHRASE when that opens the wallet), checks it opens this wallet (the address does not change), saves it in the OS keychain, or in a file only you can read where there is none, and names a TENJIN_WALLET_PASSPHRASE in this shell that conflicts with it. Start a new Claude Code session afterwards: it confirms the unlock."
|
|
3721
|
+
).option(
|
|
3722
|
+
"--insecure-storage",
|
|
3723
|
+
"save the passphrase to a file only you can read, even where an OS keychain exists"
|
|
3724
|
+
).action(async function() {
|
|
3725
|
+
await runCommand("wallet.repair", this, async (ctx) => {
|
|
3726
|
+
const o = this.opts();
|
|
3727
|
+
const { runWalletRepair } = await import("./wallet-XFYC27BR.js");
|
|
3728
|
+
return runWalletRepair(ctx, o.insecureStorage === true ? { insecureStorage: true } : {});
|
|
3622
3729
|
});
|
|
3623
3730
|
});
|
|
3624
3731
|
addGlobalFlags2(wallet.command("show")).alias("address").summary("show the wallet address and key source").description(
|
|
@@ -3626,7 +3733,7 @@ Examples:
|
|
|
3626
3733
|
).option("--no-qr", "print the address without the QR code").action(async function() {
|
|
3627
3734
|
await runCommand("wallet.show", this, async (ctx) => {
|
|
3628
3735
|
const o = this.opts();
|
|
3629
|
-
const { runWalletShow } = await import("./wallet-
|
|
3736
|
+
const { runWalletShow } = await import("./wallet-XFYC27BR.js");
|
|
3630
3737
|
return runWalletShow(ctx, o.qr === false ? { qr: false } : {});
|
|
3631
3738
|
});
|
|
3632
3739
|
});
|
|
@@ -3634,7 +3741,7 @@ Examples:
|
|
|
3634
3741
|
"Read the wallet USDC balance on Base. It is a chain read: no key is unlocked and nothing is spent."
|
|
3635
3742
|
).action(async function() {
|
|
3636
3743
|
await runCommand("wallet.balance", this, async (ctx) => {
|
|
3637
|
-
const { runWalletBalance } = await import("./wallet-
|
|
3744
|
+
const { runWalletBalance } = await import("./wallet-XFYC27BR.js");
|
|
3638
3745
|
return runWalletBalance(ctx);
|
|
3639
3746
|
});
|
|
3640
3747
|
});
|
|
@@ -3646,7 +3753,7 @@ Examples:
|
|
|
3646
3753
|
).action(async function(amountUsd) {
|
|
3647
3754
|
await runCommand("wallet.fund", this, async (ctx) => {
|
|
3648
3755
|
const o = this.opts();
|
|
3649
|
-
const { runFund } = await import("./fund-
|
|
3756
|
+
const { runFund } = await import("./fund-WEBHTZGN.js");
|
|
3650
3757
|
return runFund(ctx, {
|
|
3651
3758
|
...amountUsd !== void 0 ? { amountUsd } : {},
|
|
3652
3759
|
...o.open === false ? { open: false } : {},
|
|
@@ -3666,54 +3773,88 @@ Examples:
|
|
|
3666
3773
|
).action(async function(amount, token, to) {
|
|
3667
3774
|
await runCommand("wallet.send", this, async (ctx) => {
|
|
3668
3775
|
const o = this.opts();
|
|
3669
|
-
const { runSend } = await import("./send-
|
|
3776
|
+
const { runSend } = await import("./send-HMKJLT34.js");
|
|
3670
3777
|
return runSend({ amount, token, to, ...o.yes === true ? { yes: true } : {} }, ctx);
|
|
3671
3778
|
});
|
|
3672
3779
|
});
|
|
3673
3780
|
leaf2(WALLET, "pay <url>", "pay an x402 endpoint with explicit user consent").description(
|
|
3674
3781
|
"Pay an x402 endpoint (exact scheme, USDC on Base) with explicit user consent. Manual pay ignores automatic router limits and always confirms; --yes records prior consent for this quote. Never use it as an autonomous workaround for router refusal. Unlisted endpoints need no warning flag. Registry lookup failures or listed-term mismatches require --ignore-warnings separately. Every paid call pays; entitled delivery remains free."
|
|
3675
|
-
).option(
|
|
3782
|
+
).option(
|
|
3783
|
+
"-X, --method <method>",
|
|
3784
|
+
"GET (default), POST (implied by a body), PUT, PATCH or DELETE"
|
|
3785
|
+
).option("-d, --data <json>", "JSON request body (sent as application/json)").option("--data-raw <text>", "request body sent byte for byte; needs -H 'Content-Type: <type>'").option("--max-price <usd>", "hard price cap in decimal USD (never bypassed by --yes)").option("--yes", "bypass the interactive confirm only (not the price cap)").option(
|
|
3676
3786
|
"--ignore-warnings",
|
|
3677
3787
|
"acknowledge direct-payment registry warnings only; all payment checks still apply"
|
|
3678
|
-
).option("--print-body", "print the full body instead of the capped preview").
|
|
3788
|
+
).option("--print-body", "print the full body instead of the capped preview").option(
|
|
3789
|
+
"--quote",
|
|
3790
|
+
"probe only: report the 402 terms and the advertised request shape; opens no wallet, signs nothing"
|
|
3791
|
+
).option(
|
|
3792
|
+
"-H, --header <line>",
|
|
3793
|
+
"a request header the endpoint asks for, as 'Name: value' (repeatable); payment, sign-in and bypass headers are refused",
|
|
3794
|
+
collect
|
|
3795
|
+
).addHelpText(
|
|
3679
3796
|
"after",
|
|
3680
3797
|
`
|
|
3681
3798
|
Examples:
|
|
3682
3799
|
$ tenjin pay https://api.example.com/quote --max-price 0.05
|
|
3683
3800
|
$ tenjin pay https://api.example.com/quote --json --max-price 0.05 --ignore-warnings --yes
|
|
3684
3801
|
$ tenjin pay https://api.example.com/quote -d '{"symbol":"ETH"}' --yes
|
|
3802
|
+
$ tenjin pay https://api.example.com/search -d '{"q":"x"}' --quote
|
|
3803
|
+
$ tenjin pay https://api.example.com/search -d '{"q":"x"}' -H 'X-Api-Beta: 2026-08-28' --yes
|
|
3804
|
+
$ tenjin pay https://api.example.com/items/7 -X PATCH -d '{"name":"y"}' --max-price 0.05 --yes
|
|
3805
|
+
$ tenjin pay https://api.example.com/form --data-raw 'a=1' -H 'Content-Type: application/x-www-form-urlencoded' --quote
|
|
3685
3806
|
`
|
|
3686
3807
|
).action(async function(url) {
|
|
3687
3808
|
await runCommand("pay", this, async (ctx) => {
|
|
3688
3809
|
const o = this.opts();
|
|
3689
|
-
const { runPay } = await import("./pay-
|
|
3810
|
+
const { runPay } = await import("./pay-OXC3WKYV.js");
|
|
3690
3811
|
return runPay(
|
|
3691
3812
|
{
|
|
3692
3813
|
url,
|
|
3693
3814
|
...typeof o.method === "string" ? { method: o.method } : {},
|
|
3694
3815
|
...typeof o.data === "string" ? { data: o.data } : {},
|
|
3816
|
+
...typeof o.dataRaw === "string" ? { dataRaw: o.dataRaw } : {},
|
|
3695
3817
|
...typeof o.maxPrice === "string" ? { maxPrice: o.maxPrice } : {},
|
|
3696
3818
|
...o.yes === true ? { yes: true } : {},
|
|
3697
3819
|
...o.printBody === true ? { printBody: true } : {},
|
|
3698
|
-
...o.ignoreWarnings === true ? { ignoreWarnings: true } : {}
|
|
3820
|
+
...o.ignoreWarnings === true ? { ignoreWarnings: true } : {},
|
|
3821
|
+
...o.quote === true ? { quote: true } : {},
|
|
3822
|
+
...Array.isArray(o.header) && o.header.length > 0 ? { header: o.header } : {}
|
|
3699
3823
|
},
|
|
3700
3824
|
ctx
|
|
3701
3825
|
);
|
|
3702
3826
|
});
|
|
3703
3827
|
});
|
|
3704
3828
|
}
|
|
3829
|
+
function hostOverride() {
|
|
3830
|
+
return new Option("--harness <host>", "only this agent host, instead of the ones found").choices(
|
|
3831
|
+
HARNESSES
|
|
3832
|
+
);
|
|
3833
|
+
}
|
|
3834
|
+
function codexArgs(o) {
|
|
3835
|
+
return {
|
|
3836
|
+
...o.project === true ? { project: true } : {},
|
|
3837
|
+
...o.yes === true ? { yes: true } : {},
|
|
3838
|
+
...o.wallet === false ? { noWallet: true } : {},
|
|
3839
|
+
...typeof o.maxAutoSpend === "string" ? { maxAutoSpend: o.maxAutoSpend } : {},
|
|
3840
|
+
...typeof o.sessionBudget === "string" ? { sessionBudget: o.sessionBudget } : {}
|
|
3841
|
+
};
|
|
3842
|
+
}
|
|
3705
3843
|
|
|
3706
3844
|
// src/cli/router.ts
|
|
3845
|
+
function harnessOption() {
|
|
3846
|
+
return new Option("--harness <host>", "the agent host").choices(HARNESSES).default("claude");
|
|
3847
|
+
}
|
|
3707
3848
|
function registerRouter(reg) {
|
|
3708
3849
|
const { io, runCommand, leaf: leaf2, addGlobalFlags: addGlobalFlags2, buildContext: buildContext2 } = reg;
|
|
3709
|
-
const hook = leaf2(INTEGRATION, "hook", "run one harness hook handler (called by
|
|
3710
|
-
"The handlers Tenjin's Claude Code
|
|
3850
|
+
const hook = leaf2(INTEGRATION, "hook", "run one harness hook handler (called by your agent host)").description(
|
|
3851
|
+
"The handlers Tenjin's Claude Code and Codex plugins run. Each reads one hook event on stdin and writes the harness response, or nothing, on stdout. You never run these by hand."
|
|
3711
3852
|
).helpCommand(false);
|
|
3712
3853
|
addGlobalFlags2(hook.command("alive")).summary("SessionStart: mark this session and machine as ones the plugin serves").action(async function() {
|
|
3713
3854
|
const ctx = buildContext2(this);
|
|
3714
3855
|
const [{ aliveMain }, { default: pkg }] = await Promise.all([
|
|
3715
|
-
import("./alive-
|
|
3716
|
-
import("./package-
|
|
3856
|
+
import("./alive-MROUMFH3.js"),
|
|
3857
|
+
import("./package-SR2WB6MK.js")
|
|
3717
3858
|
]);
|
|
3718
3859
|
await aliveMain({ dataDir: ctx.dataDir, version: pkg.version });
|
|
3719
3860
|
});
|
|
@@ -3728,36 +3869,48 @@ function registerRouter(reg) {
|
|
|
3728
3869
|
["ask", "PreToolUse on AskUserQuestion: allow the question, or redirect it once"],
|
|
3729
3870
|
["answer", "PostToolUse on AskUserQuestion: offer a paid lookup beside the user's answers"]
|
|
3730
3871
|
]) {
|
|
3731
|
-
addGlobalFlags2(hook.command(name)).summary(summary).action(async function() {
|
|
3872
|
+
addGlobalFlags2(hook.command(name)).addOption(harnessOption()).summary(summary).action(async function() {
|
|
3732
3873
|
const ctx = buildContext2(this);
|
|
3733
|
-
const { runHookCommand } = await import("./hook-command-
|
|
3874
|
+
const { runHookCommand } = await import("./hook-command-ZA2PNKS6.js");
|
|
3734
3875
|
await runHookCommand(name, io, {
|
|
3735
3876
|
dataDir: ctx.dataDir,
|
|
3877
|
+
harness: this.opts().harness,
|
|
3736
3878
|
...ctx.flags.baseUrl !== void 0 ? { baseUrl: ctx.flags.baseUrl } : {}
|
|
3737
3879
|
});
|
|
3738
3880
|
});
|
|
3739
3881
|
}
|
|
3740
3882
|
hook.command("unknown", { hidden: true, isDefault: true }).argument("[args...]").allowUnknownOption().allowExcessArguments().action(() => {
|
|
3741
3883
|
});
|
|
3742
|
-
leaf2(INTEGRATION, "mcp", "run the local stdio MCP server").addOption(new Option("--plugin", "started by the Tenjin Claude Code plugin").hideHelp()).description(
|
|
3884
|
+
leaf2(INTEGRATION, "mcp", "run the local stdio MCP server").addOption(new Option("--plugin", "started by the Tenjin Claude Code plugin").hideHelp()).addOption(harnessOption().hideHelp()).description(
|
|
3743
3885
|
"Run the local stdio MCP server that carries the `request` tool: one free routing decision per lookup, then the provider call, built here from the offer's spec and your assistant's input where it has one, under your local spend policy. It speaks on stdin and stdout and runs until the client disconnects, so it prints no envelope of its own."
|
|
3744
3886
|
).action(async function() {
|
|
3745
3887
|
const ctx = buildContext2(this);
|
|
3746
|
-
const
|
|
3747
|
-
|
|
3888
|
+
const harness = this.opts().harness;
|
|
3889
|
+
const { runRouterMcpServer } = await import("./mcp-HAWKCTPQ.js");
|
|
3890
|
+
await runRouterMcpServer({
|
|
3891
|
+
dataDir: ctx.dataDir,
|
|
3892
|
+
flags: ctx.flags,
|
|
3893
|
+
harness
|
|
3894
|
+
});
|
|
3895
|
+
if (harness === "codex") {
|
|
3896
|
+
(await import("./auto-update-OPWMRZLS.js")).maybeAutoUpdate({
|
|
3897
|
+
dataDir: ctx.dataDir,
|
|
3898
|
+
env: process.env
|
|
3899
|
+
});
|
|
3900
|
+
}
|
|
3748
3901
|
});
|
|
3749
3902
|
leaf2(INTEGRATION, "status-line", "the live footer, for Claude Code's status line").description(
|
|
3750
3903
|
"Print one line naming what this session is looking up right now: the provider actually being called, its bounded parameters, and what it cost. It reads Claude Code's status event on stdin for the session identity, reads that session's own progress records, writes nothing, and prints `x402 \xB7 ready` when this session has no activity. Opt-in: set it as your Claude Code status line command yourself."
|
|
3751
3904
|
).action(async function() {
|
|
3752
3905
|
const ctx = buildContext2(this);
|
|
3753
|
-
const { runStatusLine } = await import("./status-line-
|
|
3906
|
+
const { runStatusLine } = await import("./status-line-77XYZP7E.js");
|
|
3754
3907
|
await runStatusLine(io, { dataDir: ctx.dataDir });
|
|
3755
3908
|
});
|
|
3756
3909
|
leaf2(SETUP, "status", "what this machine has spent, and what is still open").description(
|
|
3757
3910
|
"Report the rolling 24h spend window from spend.json: what has settled, what is reserved by a request still in flight, and the per-call and per-day caps in force."
|
|
3758
3911
|
).action(async function() {
|
|
3759
3912
|
await runCommand("status", this, async (ctx) => {
|
|
3760
|
-
const { runRouterStatus } = await import("./status-
|
|
3913
|
+
const { runRouterStatus } = await import("./status-RWXIIWYS.js");
|
|
3761
3914
|
return runRouterStatus(ctx);
|
|
3762
3915
|
});
|
|
3763
3916
|
});
|
|
@@ -3766,7 +3919,7 @@ function registerRouter(reg) {
|
|
|
3766
3919
|
);
|
|
3767
3920
|
payments.action(async function() {
|
|
3768
3921
|
await runCommand("payments", this, async (ctx) => {
|
|
3769
|
-
const { runPaymentsList } = await import("./payments-
|
|
3922
|
+
const { runPaymentsList } = await import("./payments-3KHMP2MG.js");
|
|
3770
3923
|
return runPaymentsList(ctx);
|
|
3771
3924
|
});
|
|
3772
3925
|
});
|
|
@@ -3774,7 +3927,7 @@ function registerRouter(reg) {
|
|
|
3774
3927
|
"For each paid lookup whose seller never confirmed settlement and whose authorization has expired, ask USDC on Base (through the configured rpcUrl) whether it was used: used means it was charged, unused means it never can be. Nothing is signed or sent but that one read."
|
|
3775
3928
|
).action(async function() {
|
|
3776
3929
|
await runCommand("payments.reconcile", this, async (ctx) => {
|
|
3777
|
-
const { runPaymentsReconcile } = await import("./payments-
|
|
3930
|
+
const { runPaymentsReconcile } = await import("./payments-3KHMP2MG.js");
|
|
3778
3931
|
return runPaymentsReconcile(ctx);
|
|
3779
3932
|
});
|
|
3780
3933
|
});
|
|
@@ -3924,4 +4077,4 @@ export {
|
|
|
3924
4077
|
buildProgram,
|
|
3925
4078
|
main
|
|
3926
4079
|
};
|
|
3927
|
-
//# sourceMappingURL=cli-
|
|
4080
|
+
//# sourceMappingURL=cli-FB4LOA5A.js.map
|