tenjin-cli 0.1.0-alpha.31 → 0.1.0-alpha.32
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +5 -5
- package/dist/{_esm-MEXZI5DL.js → _esm-RLLC72MS.js} +128 -132
- package/dist/{alive-J64H46HI.js → alive-MROUMFH3.js} +13 -6
- package/dist/auto-update-OPWMRZLS.js +22 -0
- package/dist/{ccip-7RMRLAGV.js → ccip-DHDFKTQV.js} +2 -2
- package/dist/chunk-2GNOFONN.js +560 -0
- package/dist/chunk-2GNOFONN.js.map +1 -0
- package/dist/{chunk-TTNESUPQ.js → chunk-2GP3HRYK.js} +2120 -193
- package/dist/chunk-2GP3HRYK.js.map +1 -0
- package/dist/chunk-3AIHRXKO.js +72 -0
- package/dist/chunk-3AIHRXKO.js.map +1 -0
- package/dist/{chunk-LEFIX6RS.js → chunk-3DIL66VX.js} +31 -11
- package/dist/chunk-3DIL66VX.js.map +1 -0
- package/dist/{chunk-S4SAZ7OD.js → chunk-3FMZGI7I.js} +12 -2
- package/dist/{chunk-S4SAZ7OD.js.map → chunk-3FMZGI7I.js.map} +1 -1
- package/dist/{chunk-7Q5FDF65.js → chunk-445VQTVM.js} +3 -3
- package/dist/{chunk-A36LQPHV.js → chunk-4LMUQMBH.js} +1 -1
- package/dist/{chunk-A36LQPHV.js.map → chunk-4LMUQMBH.js.map} +1 -1
- package/dist/{chunk-KXQ4UIP7.js → chunk-4USCZ2NI.js} +2 -2
- package/dist/chunk-62KNUYWD.js +111 -0
- package/dist/chunk-62KNUYWD.js.map +1 -0
- package/dist/{chunk-POUWHWID.js → chunk-6CMM6YCB.js} +3 -3
- package/dist/{chunk-POUWHWID.js.map → chunk-6CMM6YCB.js.map} +1 -1
- package/dist/{chunk-5MARFNSB.js → chunk-AD226HDR.js} +49 -30
- package/dist/chunk-AD226HDR.js.map +1 -0
- package/dist/chunk-ADV4LDTB.js +106 -0
- package/dist/chunk-ADV4LDTB.js.map +1 -0
- package/dist/{chunk-7WU4OPLP.js → chunk-AV5NZMYO.js} +5 -3
- package/dist/{chunk-7WU4OPLP.js.map → chunk-AV5NZMYO.js.map} +1 -1
- package/dist/chunk-B7EM4GGF.js +198 -0
- package/dist/chunk-B7EM4GGF.js.map +1 -0
- package/dist/chunk-BFDQ4WNW.js +119 -0
- package/dist/chunk-BFDQ4WNW.js.map +1 -0
- package/dist/{chunk-2XLC3AEX.js → chunk-BI673VEJ.js} +536 -510
- package/dist/chunk-BI673VEJ.js.map +1 -0
- package/dist/chunk-CEXSOI5R.js +808 -0
- package/dist/chunk-CEXSOI5R.js.map +1 -0
- package/dist/{chunk-FW75G2W4.js → chunk-CISYM4EO.js} +5 -5
- package/dist/{chunk-B7HUUJOK.js → chunk-D3ZURCG7.js} +3 -3
- package/dist/chunk-D5TOQSO4.js +474 -0
- package/dist/chunk-D5TOQSO4.js.map +1 -0
- package/dist/{chunk-UQUOVWBG.js → chunk-DRDUIZIA.js} +7 -7
- package/dist/{chunk-27EPWVOY.js → chunk-DW4YTVR3.js} +2 -2
- package/dist/chunk-E7LGOMH6.js +449 -0
- package/dist/chunk-E7LGOMH6.js.map +1 -0
- package/dist/{chunk-QSCPK4F5.js → chunk-E7SW44LM.js} +4 -11
- package/dist/chunk-E7SW44LM.js.map +1 -0
- package/dist/chunk-EDJWHDDL.js +33 -0
- package/dist/chunk-EDJWHDDL.js.map +1 -0
- package/dist/chunk-F3ED5WTR.js +13 -0
- package/dist/chunk-F3ED5WTR.js.map +1 -0
- package/dist/chunk-G75OPGAK.js +111 -0
- package/dist/chunk-G75OPGAK.js.map +1 -0
- package/dist/{chunk-R5LCN54M.js → chunk-GAKUQHKA.js} +13 -17
- package/dist/{chunk-R5LCN54M.js.map → chunk-GAKUQHKA.js.map} +1 -1
- package/dist/{chunk-4ZZO6ULA.js → chunk-HDPUXS3Z.js} +19 -48
- package/dist/chunk-HDPUXS3Z.js.map +1 -0
- package/dist/{chunk-ORWL5BSN.js → chunk-HGZEPQUT.js} +2 -2
- package/dist/{chunk-6E5R45ZO.js → chunk-HREHWL32.js} +4 -4
- package/dist/{chunk-6E5R45ZO.js.map → chunk-HREHWL32.js.map} +1 -1
- package/dist/{chunk-KXVP2VKA.js → chunk-I5TDIUKM.js} +15 -34
- package/dist/chunk-I5TDIUKM.js.map +1 -0
- package/dist/{chunk-7QKHZQKW.js → chunk-IADZOXKN.js} +39 -6
- package/dist/chunk-IADZOXKN.js.map +1 -0
- package/dist/{chunk-P4NH7OUK.js → chunk-IDTRSAHE.js} +2 -2
- package/dist/{chunk-YFPY4ONH.js → chunk-JEVQ5LKO.js} +4 -4
- package/dist/chunk-JNJWBTU2.js +3497 -0
- package/dist/chunk-JNJWBTU2.js.map +1 -0
- package/dist/{chunk-MNXS2U45.js → chunk-JRZBBPO6.js} +167 -86
- package/dist/chunk-JRZBBPO6.js.map +1 -0
- package/dist/{chunk-WJXLQXJY.js → chunk-MPZUYCAP.js} +4 -1
- package/dist/{chunk-WJXLQXJY.js.map → chunk-MPZUYCAP.js.map} +1 -1
- package/dist/{chunk-SJLTEINJ.js → chunk-OJNTCYQQ.js} +17 -1
- package/dist/chunk-OJNTCYQQ.js.map +1 -0
- package/dist/{chunk-AGZ7PJKY.js → chunk-OTWLERSW.js} +22 -5
- package/dist/chunk-OTWLERSW.js.map +1 -0
- package/dist/{chunk-NEFNKLBE.js → chunk-PJNENX2A.js} +1535 -422
- package/dist/chunk-PJNENX2A.js.map +1 -0
- package/dist/{chunk-UKY4CHNC.js → chunk-PKHI276N.js} +8 -4
- package/dist/chunk-PKHI276N.js.map +1 -0
- package/dist/{chunk-5K5W4S66.js → chunk-QF3LSMGS.js} +2 -2
- package/dist/{chunk-XZKD7DIF.js → chunk-RL5UUDT4.js} +3 -3
- package/dist/{chunk-XZKD7DIF.js.map → chunk-RL5UUDT4.js.map} +1 -1
- package/dist/{chunk-OHRR5OYM.js → chunk-SFASB5FL.js} +10 -4
- package/dist/chunk-SFASB5FL.js.map +1 -0
- package/dist/{chunk-YVFXE7RR.js → chunk-SNNSAGMT.js} +7279 -2627
- package/dist/chunk-SNNSAGMT.js.map +1 -0
- package/dist/{chunk-WK7F3B2E.js → chunk-SO3XRZPX.js} +3 -3
- package/dist/chunk-SYOS5CAC.js +176 -0
- package/dist/chunk-SYOS5CAC.js.map +1 -0
- package/dist/chunk-TAW4UFFF.js +293 -0
- package/dist/chunk-TAW4UFFF.js.map +1 -0
- package/dist/{hosts-FWZOV26H.js → chunk-TF5HCP33.js} +79 -24
- package/dist/chunk-TF5HCP33.js.map +1 -0
- package/dist/{chunk-AKWGE6JQ.js → chunk-UUGOUOVT.js} +37 -2
- package/dist/chunk-UUGOUOVT.js.map +1 -0
- package/dist/{chunk-7ZRL2LBQ.js → chunk-V2LQLN5H.js} +6 -6
- package/dist/{chunk-K72RURN3.js → chunk-VJUVFZ2D.js} +2 -2
- package/dist/{chunk-77TCKDEC.js → chunk-VOZA6O7K.js} +663 -477
- package/dist/chunk-VOZA6O7K.js.map +1 -0
- package/dist/{chunk-D65GNPS3.js → chunk-VUGQTZ2L.js} +208 -84
- package/dist/chunk-VUGQTZ2L.js.map +1 -0
- package/dist/chunk-WOM257PW.js +393 -0
- package/dist/chunk-WOM257PW.js.map +1 -0
- package/dist/chunk-WYXUQGOL.js +191 -0
- package/dist/chunk-WYXUQGOL.js.map +1 -0
- package/dist/chunk-X5ZBP3IY.js +97 -0
- package/dist/chunk-X5ZBP3IY.js.map +1 -0
- package/dist/{chunk-5C32RLTA.js → chunk-YUY4SAGM.js} +17 -2
- package/dist/chunk-YUY4SAGM.js.map +1 -0
- package/dist/{cli-D5OE3URZ.js → cli-FB4LOA5A.js} +144 -63
- package/dist/{cli-D5OE3URZ.js.map → cli-FB4LOA5A.js.map} +1 -1
- package/dist/{codex-event-PPNVRRDH.js → codex-event-TYVES3UX.js} +2 -2
- package/dist/{codex-host-2RJOJW2B.js → codex-host-WW4H2SKT.js} +7 -6
- package/dist/codex-install-2C623HPW.js +393 -0
- package/dist/codex-install-2C623HPW.js.map +1 -0
- package/dist/{config-ZD4OB2DO.js → config-HOVJFEKD.js} +21 -17
- package/dist/doctor-NKU4V5OV.js +1312 -0
- package/dist/doctor-NKU4V5OV.js.map +1 -0
- package/dist/{env-proxy-XL4P73MZ.js → env-proxy-R6ZMLQTT.js} +6 -2
- package/dist/{ethersCompat-Df4a6QIZ-THAVUGIJ.js → ethersCompat-Df4a6QIZ-X6YZWAML.js} +3 -3
- package/dist/{fund-5ITKQGYF.js → fund-WEBHTZGN.js} +37 -36
- package/dist/{fund-5ITKQGYF.js.map → fund-WEBHTZGN.js.map} +1 -1
- package/dist/hook-command-ZA2PNKS6.js +44 -0
- package/dist/hosts/claude/.claude-plugin/marketplace.json +2 -2
- package/dist/hosts/claude/tenjin/.claude-plugin/plugin.json +2 -2
- package/dist/hosts/claude/tenjin/skills/tenjin-pay/SKILL.md +82 -0
- package/dist/hosts/codex/tenjin/.mcp.json +3 -0
- package/dist/hosts/codex/tenjin/hooks/hooks.json +51 -5
- package/dist/hosts-AV5MHBAU.js +38 -0
- package/dist/index.js +28 -8
- package/dist/index.js.map +1 -1
- package/dist/{install-XWGE4Q7L.js → install-PT4EZS4R.js} +53 -30
- package/dist/{install-identity-K7EJIQFP.js → install-identity-5A4OE6YC.js} +11 -10
- package/dist/install-wallet-SAAPKB73.js +281 -0
- package/dist/install-wallet-SAAPKB73.js.map +1 -0
- package/dist/{mcp-3LIJSSJB.js → mcp-HAWKCTPQ.js} +785 -210
- package/dist/mcp-HAWKCTPQ.js.map +1 -0
- package/dist/{mine.wasm-6PIT3DK6.js → mine.wasm-QFAHIFPY.js} +2 -2
- package/dist/{mine.wasm-6PIT3DK6.js.map → mine.wasm-QFAHIFPY.js.map} +1 -1
- package/dist/{package-ZKQFDWLE.js → package-SR2WB6MK.js} +4 -2
- package/dist/passphrase-IFTDS3CU.js +44 -0
- package/dist/{paths-POPTXJO6.js → paths-XCSAKISU.js} +10 -2
- package/dist/{pay-WHBERZ3W.js → pay-OXC3WKYV.js} +29 -29
- package/dist/{payments-KVICEKD2.js → payments-3KHMP2MG.js} +15 -14
- package/dist/{payments-KVICEKD2.js.map → payments-3KHMP2MG.js.map} +1 -1
- package/dist/plugin-registration-N3GRIZVM.js +67 -0
- package/dist/{redact-6W23GGJC.js → redact-D7ASVWKL.js} +2 -2
- package/dist/runtime-UVNUA3AS.js +1203 -0
- package/dist/runtime-UVNUA3AS.js.map +1 -0
- package/dist/runtime-fetch-EKFRNR6Z.js +20 -0
- package/dist/runtime-layout-BDWZG2TQ.js +25 -0
- package/dist/{send-7G7Y7DLN.js → send-HMKJLT34.js} +24 -22
- package/dist/{send-7G7Y7DLN.js.map → send-HMKJLT34.js.map} +1 -1
- package/dist/{status-OF7RH5HM.js → status-RWXIIWYS.js} +55 -25
- package/dist/status-RWXIIWYS.js.map +1 -0
- package/dist/{status-line-XOUE6MPL.js → status-line-77XYZP7E.js} +10 -9
- package/dist/{status-line-XOUE6MPL.js.map → status-line-77XYZP7E.js.map} +1 -1
- package/dist/uninstall-D5G67UJH.js +480 -0
- package/dist/uninstall-D5G67UJH.js.map +1 -0
- package/dist/update-LRNOEGSB.js +53 -0
- package/dist/update-LRNOEGSB.js.map +1 -0
- package/dist/{usdc-OGOGEHV2.js → usdc-D6X7EIQ2.js} +6 -8
- package/dist/usdc-D6X7EIQ2.js.map +1 -0
- package/dist/{viemAdapter-By13KInL-S3DA7DFW.js → viemAdapter-By13KInL-RL742ETX.js} +3 -3
- package/dist/viemAdapter-By13KInL-RL742ETX.js.map +1 -0
- package/dist/wallet-XFYC27BR.js +55 -0
- package/dist/wallet-XFYC27BR.js.map +1 -0
- package/dist/wallet-kdf-worker.mjs +8 -8
- package/docs/agent-permissions.md +40 -22
- package/docs/safety-model.md +1 -1
- package/docs/troubleshooting.md +72 -1
- package/package.json +14 -1
- package/dist/ccip-NLCSCHKI.js +0 -19
- package/dist/chunk-2XLC3AEX.js.map +0 -1
- package/dist/chunk-4ZZO6ULA.js.map +0 -1
- package/dist/chunk-5C32RLTA.js.map +0 -1
- package/dist/chunk-5IEP5EGE.js +0 -5332
- package/dist/chunk-5IEP5EGE.js.map +0 -1
- package/dist/chunk-5MARFNSB.js.map +0 -1
- package/dist/chunk-77TCKDEC.js.map +0 -1
- package/dist/chunk-7EKYXMUO.js +0 -7536
- package/dist/chunk-7EKYXMUO.js.map +0 -1
- package/dist/chunk-7QKHZQKW.js.map +0 -1
- package/dist/chunk-AGZ7PJKY.js.map +0 -1
- package/dist/chunk-AKWGE6JQ.js.map +0 -1
- package/dist/chunk-BL3332HQ.js +0 -7611
- package/dist/chunk-BL3332HQ.js.map +0 -1
- package/dist/chunk-D65GNPS3.js.map +0 -1
- package/dist/chunk-EGELTSPU.js +0 -2865
- package/dist/chunk-EGELTSPU.js.map +0 -1
- package/dist/chunk-GA7JETVM.js +0 -150
- package/dist/chunk-GA7JETVM.js.map +0 -1
- package/dist/chunk-I3EQFHCD.js +0 -175
- package/dist/chunk-I3EQFHCD.js.map +0 -1
- package/dist/chunk-K3I7C2MO.js +0 -1185
- package/dist/chunk-K3I7C2MO.js.map +0 -1
- package/dist/chunk-KXVP2VKA.js.map +0 -1
- package/dist/chunk-LEFIX6RS.js.map +0 -1
- package/dist/chunk-MNXS2U45.js.map +0 -1
- package/dist/chunk-NEFNKLBE.js.map +0 -1
- package/dist/chunk-OHRR5OYM.js.map +0 -1
- package/dist/chunk-QSCPK4F5.js.map +0 -1
- package/dist/chunk-SJLTEINJ.js.map +0 -1
- package/dist/chunk-TTNESUPQ.js.map +0 -1
- package/dist/chunk-UKY4CHNC.js.map +0 -1
- package/dist/chunk-V6BSF6OC.js +0 -260
- package/dist/chunk-V6BSF6OC.js.map +0 -1
- package/dist/chunk-YVFXE7RR.js.map +0 -1
- package/dist/codex-install-UUZ6QMBQ.js +0 -221
- package/dist/codex-install-UUZ6QMBQ.js.map +0 -1
- package/dist/doctor-KBR34Q4B.js +0 -601
- package/dist/doctor-KBR34Q4B.js.map +0 -1
- package/dist/hook-command-4TYCHHRL.js +0 -39
- package/dist/hosts-FWZOV26H.js.map +0 -1
- package/dist/install-wallet-XQ6XFZV4.js +0 -117
- package/dist/install-wallet-XQ6XFZV4.js.map +0 -1
- package/dist/mcp-3LIJSSJB.js.map +0 -1
- package/dist/plugin-registration-5TIA564H.js +0 -54
- package/dist/status-OF7RH5HM.js.map +0 -1
- package/dist/uninstall-JXUAFNDB.js +0 -158
- package/dist/uninstall-JXUAFNDB.js.map +0 -1
- package/dist/update-ZKUERSO2.js +0 -44
- package/dist/wallet-2HA6W4R4.js +0 -43
- /package/dist/{_esm-MEXZI5DL.js.map → _esm-RLLC72MS.js.map} +0 -0
- /package/dist/{alive-J64H46HI.js.map → alive-MROUMFH3.js.map} +0 -0
- /package/dist/{ccip-7RMRLAGV.js.map → auto-update-OPWMRZLS.js.map} +0 -0
- /package/dist/{ccip-NLCSCHKI.js.map → ccip-DHDFKTQV.js.map} +0 -0
- /package/dist/{chunk-7Q5FDF65.js.map → chunk-445VQTVM.js.map} +0 -0
- /package/dist/{chunk-KXQ4UIP7.js.map → chunk-4USCZ2NI.js.map} +0 -0
- /package/dist/{chunk-FW75G2W4.js.map → chunk-CISYM4EO.js.map} +0 -0
- /package/dist/{chunk-B7HUUJOK.js.map → chunk-D3ZURCG7.js.map} +0 -0
- /package/dist/{chunk-UQUOVWBG.js.map → chunk-DRDUIZIA.js.map} +0 -0
- /package/dist/{chunk-27EPWVOY.js.map → chunk-DW4YTVR3.js.map} +0 -0
- /package/dist/{chunk-ORWL5BSN.js.map → chunk-HGZEPQUT.js.map} +0 -0
- /package/dist/{chunk-P4NH7OUK.js.map → chunk-IDTRSAHE.js.map} +0 -0
- /package/dist/{chunk-YFPY4ONH.js.map → chunk-JEVQ5LKO.js.map} +0 -0
- /package/dist/{chunk-5K5W4S66.js.map → chunk-QF3LSMGS.js.map} +0 -0
- /package/dist/{chunk-WK7F3B2E.js.map → chunk-SO3XRZPX.js.map} +0 -0
- /package/dist/{chunk-7ZRL2LBQ.js.map → chunk-V2LQLN5H.js.map} +0 -0
- /package/dist/{chunk-K72RURN3.js.map → chunk-VJUVFZ2D.js.map} +0 -0
- /package/dist/{codex-event-PPNVRRDH.js.map → codex-event-TYVES3UX.js.map} +0 -0
- /package/dist/{codex-host-2RJOJW2B.js.map → codex-host-WW4H2SKT.js.map} +0 -0
- /package/dist/{config-ZD4OB2DO.js.map → config-HOVJFEKD.js.map} +0 -0
- /package/dist/{env-proxy-XL4P73MZ.js.map → env-proxy-R6ZMLQTT.js.map} +0 -0
- /package/dist/{ethersCompat-Df4a6QIZ-THAVUGIJ.js.map → ethersCompat-Df4a6QIZ-X6YZWAML.js.map} +0 -0
- /package/dist/{hook-command-4TYCHHRL.js.map → hook-command-ZA2PNKS6.js.map} +0 -0
- /package/dist/{install-XWGE4Q7L.js.map → hosts-AV5MHBAU.js.map} +0 -0
- /package/dist/{install-identity-K7EJIQFP.js.map → install-PT4EZS4R.js.map} +0 -0
- /package/dist/{package-ZKQFDWLE.js.map → install-identity-5A4OE6YC.js.map} +0 -0
- /package/dist/{paths-POPTXJO6.js.map → package-SR2WB6MK.js.map} +0 -0
- /package/dist/{pay-WHBERZ3W.js.map → passphrase-IFTDS3CU.js.map} +0 -0
- /package/dist/{plugin-registration-5TIA564H.js.map → paths-XCSAKISU.js.map} +0 -0
- /package/dist/{redact-6W23GGJC.js.map → pay-OXC3WKYV.js.map} +0 -0
- /package/dist/{update-ZKUERSO2.js.map → plugin-registration-N3GRIZVM.js.map} +0 -0
- /package/dist/{usdc-OGOGEHV2.js.map → redact-D7ASVWKL.js.map} +0 -0
- /package/dist/{viemAdapter-By13KInL-S3DA7DFW.js.map → runtime-fetch-EKFRNR6Z.js.map} +0 -0
- /package/dist/{wallet-2HA6W4R4.js.map → runtime-layout-BDWZG2TQ.js.map} +0 -0
|
@@ -1,54 +0,0 @@
|
|
|
1
|
-
import { createRequire as __tenjinCreateRequire } from 'node:module'; const require = __tenjinCreateRequire(import.meta.url);
|
|
2
|
-
import {
|
|
3
|
-
folderFor,
|
|
4
|
-
folderState,
|
|
5
|
-
ownMarketplace,
|
|
6
|
-
packageCliEntry,
|
|
7
|
-
packageHostsDir,
|
|
8
|
-
packageMod,
|
|
9
|
-
readPluginListing,
|
|
10
|
-
registerPlugin
|
|
11
|
-
} from "./chunk-77TCKDEC.js";
|
|
12
|
-
import "./chunk-UKY4CHNC.js";
|
|
13
|
-
import "./chunk-KXVP2VKA.js";
|
|
14
|
-
import "./chunk-GA7JETVM.js";
|
|
15
|
-
import "./chunk-KOGZDMHO.js";
|
|
16
|
-
import "./chunk-QXP3Z3JN.js";
|
|
17
|
-
import "./chunk-5MARFNSB.js";
|
|
18
|
-
import "./chunk-3623BLPV.js";
|
|
19
|
-
import "./chunk-A36LQPHV.js";
|
|
20
|
-
import "./chunk-QSCPK4F5.js";
|
|
21
|
-
import "./chunk-AKWGE6JQ.js";
|
|
22
|
-
import "./chunk-WJXLQXJY.js";
|
|
23
|
-
import "./chunk-XKESD27X.js";
|
|
24
|
-
import "./chunk-4ZZO6ULA.js";
|
|
25
|
-
import "./chunk-MEFB5KHA.js";
|
|
26
|
-
import "./chunk-2SNUOHAT.js";
|
|
27
|
-
import "./chunk-K72RURN3.js";
|
|
28
|
-
import "./chunk-DOQGNFHM.js";
|
|
29
|
-
import "./chunk-YFPY4ONH.js";
|
|
30
|
-
import "./chunk-I3EQFHCD.js";
|
|
31
|
-
import "./chunk-S4SAZ7OD.js";
|
|
32
|
-
import "./chunk-AGZ7PJKY.js";
|
|
33
|
-
import "./chunk-2I4QTOLB.js";
|
|
34
|
-
import "./chunk-7WU4OPLP.js";
|
|
35
|
-
import "./chunk-Y527D4TV.js";
|
|
36
|
-
import "./chunk-YVFXE7RR.js";
|
|
37
|
-
import "./chunk-XQJXNMSB.js";
|
|
38
|
-
import "./chunk-3UCIG4TG.js";
|
|
39
|
-
import "./chunk-27EPWVOY.js";
|
|
40
|
-
import "./chunk-7WEQQJLG.js";
|
|
41
|
-
import "./chunk-SJLTEINJ.js";
|
|
42
|
-
import "./chunk-5C32RLTA.js";
|
|
43
|
-
import "./chunk-ZXTAQYNA.js";
|
|
44
|
-
export {
|
|
45
|
-
folderFor,
|
|
46
|
-
folderState,
|
|
47
|
-
ownMarketplace,
|
|
48
|
-
packageCliEntry,
|
|
49
|
-
packageHostsDir,
|
|
50
|
-
packageMod,
|
|
51
|
-
readPluginListing,
|
|
52
|
-
registerPlugin
|
|
53
|
-
};
|
|
54
|
-
//# sourceMappingURL=plugin-registration-5TIA564H.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/router/status.ts"],"sourcesContent":["import { toMoney } from '../lib/money';\nimport { loadRawConfig, retiredPaymentKeys, RETIRED_PAYMENT_GUIDANCE } from '../lib/config';\nimport { spentOf } from '../lib/spend-ledger';\nimport { resolveContextSettings } from '../lib/settings';\nimport { describeWallet, resolveWalletProvider } from '../lib/wallet';\nimport { readSpendSummary } from '../lib/wallet/spend';\nimport type { CommandContext, CommandResult } from '../context';\nimport { channelCredit } from './channel-credit';\nimport { ROUTING_DEPOSIT_KEY, ROUTING_FEE_ATOMIC } from './fee';\n\n/**\n * `tenjin status`: what this machine has spent and what it is still holding.\n *\n * IT READS `spend.json`, NOT THE BACKEND. The rolling window, the committed\n * total and the reservations still open are the local truth about money, and\n * the reservations are also the record of a request whose outcome is unknown:\n * an authorization that was transmitted is committed, so anything still open\n * here is either in flight or a crash that has not yet aged out.\n *\n * A ROUTING DEPOSIT IS NOT A LOOKUP. It is prepaid credit the routing fee\n * draws from, so it is shown apart from what lookups cost, with what the\n * channel still holds. It still counts toward the daily limit, like any\n * automatic payment.\n */\n\nexport interface StatusDeps {\n now?: () => number;\n /** Seam for the wallet's routing credit; production reads its channel files. */\n routingCredit?: (ctx: CommandContext) => Promise<bigint>;\n}\n\n/** What the wallet's routing channel still holds; 0n with no wallet, or one\n * this cannot read without a prompt. */\nasync function walletRoutingCredit(ctx: CommandContext): Promise<bigint> {\n try {\n const { address } = await describeWallet(resolveWalletProvider(ctx));\n return await channelCredit(ctx.dataDir, address);\n } catch {\n return 0n;\n }\n}\n\nexport async function runRouterStatus(\n ctx: CommandContext,\n deps: StatusDeps = {},\n): Promise<CommandResult> {\n const now = deps.now ?? Date.now;\n const settings = await resolveContextSettings(ctx);\n // The same projection an authorization would make, so what this prints is\n // what the next lookup would actually be measured against.\n const ledger = await readSpendSummary(ctx.dataDir, { now });\n const committedAtomic = BigInt(ledger?.committedAtomic ?? '0');\n const reservedAtomic = (ledger?.reservations ?? []).reduce(\n (sum, r) => sum + BigInt(r.amountAtomic),\n 0n,\n );\n const retired = retiredPaymentKeys(await loadRawConfig(ctx.dataDir));\n const warnings = retired.length\n ? [`Ignored retired keys: ${retired.join(', ')}. ${RETIRED_PAYMENT_GUIDANCE}`]\n : [];\n const automaticAtomic = ledger === null ? 0n : spentOf(ledger);\n const depositedAtomic = (ledger?.exposures ?? [])\n .filter((e) => e.nonce.startsWith(ROUTING_DEPOSIT_KEY))\n .reduce((sum, e) => sum + BigInt(e.amountAtomic), 0n);\n // Never below zero, whatever an older ledger holds.\n const lookupsAtomic = committedAtomic > depositedAtomic ? committedAtomic - depositedAtomic : 0n;\n const creditAtomic = await (deps.routingCredit ?? walletRoutingCredit)(ctx);\n const budgetAtomic = settings.policy.sessionBudgetAtomic;\n const data = {\n baseUrl: settings.baseUrl,\n warnings,\n window: {\n startedAtMs: ledger?.windowStartMs ?? null,\n committed: toMoney(committedAtomic.toString()),\n lookups: toMoney(lookupsAtomic.toString()),\n routingDeposits: toMoney(depositedAtomic.toString()),\n automaticExposure: toMoney(automaticAtomic.toString()),\n reserved: toMoney(reservedAtomic.toString()),\n budget: budgetAtomic === null ? null : toMoney(budgetAtomic.toString()),\n },\n routingCredit: {\n remaining: toMoney(creditAtomic.toString()),\n calls: Number(creditAtomic / ROUTING_FEE_ATOMIC),\n },\n caps: {\n maxAutoSpend: toMoney(settings.policy.maxAutoSpendAtomic.toString()),\n },\n inFlight: (ledger?.reservations ?? []).map((r) => ({\n amount: toMoney(r.amountAtomic),\n ageSeconds: Math.max(0, Math.round((now() - r.atMs) / 1000)),\n ...(r.requestKey !== undefined ? { request: r.requestKey } : {}),\n })),\n };\n const automatic = toMoney(automaticAtomic.toString()).usd;\n const budgetLine =\n budgetAtomic === null\n ? `automatic spend ${automatic} USD; no daily limit`\n : `counted toward the daily limit: ${automatic} USD of ${toMoney(budgetAtomic.toString()).usd} USD in the rolling 24h window`;\n const credit = [\n ...(depositedAtomic > 0n ? [`${toMoney(depositedAtomic.toString()).usd} USD prepaid`] : []),\n ...(depositedAtomic > 0n || creditAtomic > 0n\n ? [`${data.routingCredit.remaining.usd} USD left (~${data.routingCredit.calls} calls)`]\n : []),\n ];\n return {\n data,\n humanLines: [\n `lookups ${toMoney(lookupsAtomic.toString()).usd} USD` +\n (credit.length > 0 ? ` · routing credit ${credit.join(', ')}` : ''),\n budgetLine,\n `reserved ${toMoney(reservedAtomic.toString()).usd} USD in ${data.inFlight.length} open request(s)`,\n `automatic router up to ${toMoney(settings.policy.maxAutoSpendAtomic.toString()).usd} USD per call; manual pay always requires consent`,\n ...warnings,\n ],\n };\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAiCA,eAAe,oBAAoB,KAAsC;AACvE,MAAI;AACF,UAAM,EAAE,QAAQ,IAAI,MAAM,eAAe,sBAAsB,GAAG,CAAC;AACnE,WAAO,MAAM,cAAc,IAAI,SAAS,OAAO;AAAA,EACjD,QAAQ;AACN,WAAO;AAAA,EACT;AACF;AAEA,eAAsB,gBACpB,KACA,OAAmB,CAAC,GACI;AACxB,QAAM,MAAM,KAAK,OAAO,KAAK;AAC7B,QAAM,WAAW,MAAM,uBAAuB,GAAG;AAGjD,QAAM,SAAS,MAAM,iBAAiB,IAAI,SAAS,EAAE,IAAI,CAAC;AAC1D,QAAM,kBAAkB,OAAO,QAAQ,mBAAmB,GAAG;A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CAAC;AAAA,IACrE;AAAA,IACA,WAAW,QAAQ,gBAAgB,CAAC,GAAG,IAAI,CAAC,OAAO;AAAA,MACjD,QAAQ,QAAQ,EAAE,YAAY;AAAA,MAC9B,YAAY,KAAK,IAAI,GAAG,KAAK,OAAO,IAAI,IAAI,EAAE,QAAQ,GAAI,CAAC;AAAA,MAC3D,GAAI,EAAE,eAAe,SAAY,EAAE,SAAS,EAAE,WAAW,IAAI,CAAC;AAAA,IAChE,EAAE;AAAA,EACJ;AACA,QAAM,YAAY,QAAQ,gBAAgB,SAAS,CAAC,EAAE;AACtD,QAAM,aACJ,iBAAiB,OACb,mBAAmB,SAAS,yBAC5B,mCAAmC,SAAS,WAAW,QAAQ,aAAa,SAAS,CAAC,EAAE,GAAG;AACjG,QAAM,SAAS;AAAA,IACb,GAAI,kBAAkB,KAAK,CAAC,GAAG,QAAQ,gBAAgB,SAAS,CAAC,EAAE,GAAG,cAAc,IAAI,CAAC;AAAA,IACzF,GAAI,kBAAkB,MAAM,eAAe,KACvC,CAAC,GAAG,KAAK,cAAc,UAAU,GAAG,eAAe,KAAK,cAAc,KAAK,SAAS,IACpF,CAAC;AAAA,EACP;AACA,SAAO;AAAA,IACL;AAAA,IACA,YAAY;AAAA,MACV,WAAW,QAAQ,cAAc,SAAS,CAAC,EAAE,GAAG,UAC7C,OAAO,SAAS,IAAI,wBAAqB,OAAO,KAAK,IAAI,CAAC,KAAK;AAAA,MAClE;AAAA,MACA,YAAY,QAAQ,eAAe,SAAS,CAAC,EAAE,GAAG,WAAW,KAAK,SAAS,MAAM;AAAA,MACjF,0BAA0B,QAAQ,SAAS,OAAO,mBAAmB,SAAS,CAAC,EAAE,GAAG;AAAA,MACpF,GAAG;AAAA,IACL;AAAA,EACF;AACF;","names":[]}
|
|
@@ -1,158 +0,0 @@
|
|
|
1
|
-
import { createRequire as __tenjinCreateRequire } from 'node:module'; const require = __tenjinCreateRequire(import.meta.url);
|
|
2
|
-
import {
|
|
3
|
-
folderFor,
|
|
4
|
-
inspectLegacyInstall,
|
|
5
|
-
ownMarketplace,
|
|
6
|
-
projectInstallHere,
|
|
7
|
-
removeLegacyInstall,
|
|
8
|
-
removePluginFolder,
|
|
9
|
-
settingsInstallPaths
|
|
10
|
-
} from "./chunk-77TCKDEC.js";
|
|
11
|
-
import "./chunk-UKY4CHNC.js";
|
|
12
|
-
import "./chunk-KXVP2VKA.js";
|
|
13
|
-
import "./chunk-GA7JETVM.js";
|
|
14
|
-
import "./chunk-KOGZDMHO.js";
|
|
15
|
-
import {
|
|
16
|
-
findClaudeBinary,
|
|
17
|
-
jsonList,
|
|
18
|
-
jsonResult,
|
|
19
|
-
runClaude
|
|
20
|
-
} from "./chunk-QXP3Z3JN.js";
|
|
21
|
-
import {
|
|
22
|
-
persistRouterProject
|
|
23
|
-
} from "./chunk-5MARFNSB.js";
|
|
24
|
-
import "./chunk-3623BLPV.js";
|
|
25
|
-
import "./chunk-A36LQPHV.js";
|
|
26
|
-
import "./chunk-QSCPK4F5.js";
|
|
27
|
-
import "./chunk-AKWGE6JQ.js";
|
|
28
|
-
import {
|
|
29
|
-
MARKETPLACE_NAME,
|
|
30
|
-
PLUGIN_ID
|
|
31
|
-
} from "./chunk-WJXLQXJY.js";
|
|
32
|
-
import "./chunk-XKESD27X.js";
|
|
33
|
-
import "./chunk-4ZZO6ULA.js";
|
|
34
|
-
import "./chunk-MEFB5KHA.js";
|
|
35
|
-
import "./chunk-2SNUOHAT.js";
|
|
36
|
-
import "./chunk-K72RURN3.js";
|
|
37
|
-
import "./chunk-DOQGNFHM.js";
|
|
38
|
-
import "./chunk-YFPY4ONH.js";
|
|
39
|
-
import {
|
|
40
|
-
removeAliveState
|
|
41
|
-
} from "./chunk-I3EQFHCD.js";
|
|
42
|
-
import "./chunk-S4SAZ7OD.js";
|
|
43
|
-
import "./chunk-AGZ7PJKY.js";
|
|
44
|
-
import "./chunk-2I4QTOLB.js";
|
|
45
|
-
import "./chunk-7WU4OPLP.js";
|
|
46
|
-
import "./chunk-Y527D4TV.js";
|
|
47
|
-
import "./chunk-YVFXE7RR.js";
|
|
48
|
-
import "./chunk-XQJXNMSB.js";
|
|
49
|
-
import "./chunk-3UCIG4TG.js";
|
|
50
|
-
import "./chunk-27EPWVOY.js";
|
|
51
|
-
import "./chunk-7WEQQJLG.js";
|
|
52
|
-
import "./chunk-SJLTEINJ.js";
|
|
53
|
-
import "./chunk-5C32RLTA.js";
|
|
54
|
-
import "./chunk-ZXTAQYNA.js";
|
|
55
|
-
|
|
56
|
-
// src/router/uninstall.ts
|
|
57
|
-
import { homedir } from "node:os";
|
|
58
|
-
import { isAbsolute } from "node:path";
|
|
59
|
-
async function runRouterUninstall(args, ctx, deps = {}) {
|
|
60
|
-
const env = deps.env ?? process.env;
|
|
61
|
-
const home = deps.homeDir ?? homedir();
|
|
62
|
-
if (!isAbsolute(home)) throw new Error("The home directory is not an absolute path.");
|
|
63
|
-
const cwd = deps.cwd ?? process.cwd();
|
|
64
|
-
const project = args.project === true;
|
|
65
|
-
const scope = project ? "local" : "user";
|
|
66
|
-
const binary = (deps.findClaude ?? findClaudeBinary)(env);
|
|
67
|
-
const plugin = await removePlugin(binary, scope, env, home, cwd);
|
|
68
|
-
const paths = settingsInstallPaths(project, env, home, cwd);
|
|
69
|
-
const legacy = await inspectLegacyInstall(paths.settingsPath, paths.mcpFile);
|
|
70
|
-
const settings = legacy.present ? await removeLegacyInstall(legacy, { binary, env, cwd, mcpScope: paths.mcpScope }) : null;
|
|
71
|
-
const alive = await removeAliveState(ctx.dataDir);
|
|
72
|
-
if (project) await persistRouterProject(ctx.dataDir, cwd, false).catch(() => void 0);
|
|
73
|
-
const projectLeft = !project && await projectInstallHere(cwd, home, env);
|
|
74
|
-
const data = {
|
|
75
|
-
plugin,
|
|
76
|
-
settings: { path: paths.settingsPath, found: legacy.present, removed: settings },
|
|
77
|
-
aliveRemoved: alive,
|
|
78
|
-
...projectLeft ? { projectInstallLeft: cwd } : {},
|
|
79
|
-
kept: ["wallet.json", "spend.json", "config.json"]
|
|
80
|
-
};
|
|
81
|
-
const lines = uninstallLines(plugin, paths.settingsPath, settings);
|
|
82
|
-
if (projectLeft) {
|
|
83
|
-
lines.splice(
|
|
84
|
-
-1,
|
|
85
|
-
0,
|
|
86
|
-
"This project has its own Tenjin install, which this left in place; `tenjin uninstall --project` here removes it."
|
|
87
|
-
);
|
|
88
|
-
}
|
|
89
|
-
return { data, humanLines: lines };
|
|
90
|
-
}
|
|
91
|
-
async function removePlugin(binary, scope, env, home, cwd) {
|
|
92
|
-
const folder = await removePluginFolder(folderFor(scope, env, home, cwd));
|
|
93
|
-
if (binary === null) {
|
|
94
|
-
return {
|
|
95
|
-
plugin: "kept",
|
|
96
|
-
marketplace: "kept",
|
|
97
|
-
folder,
|
|
98
|
-
reason: `no claude binary on PATH or in CLAUDE_CODE_EXECPATH, so ${PLUGIN_ID} could not be checked; if Claude Code still lists it, type /plugin uninstall ${PLUGIN_ID} in a Claude Code session`
|
|
99
|
-
};
|
|
100
|
-
}
|
|
101
|
-
const run = (a) => runClaude(binary, a, { env, cwd });
|
|
102
|
-
const uninstall = await run(["plugin", "uninstall", PLUGIN_ID, "--scope", scope, "--json"]);
|
|
103
|
-
const result = jsonResult(uninstall.stdout);
|
|
104
|
-
const pluginState = uninstall.code === 0 ? "removed" : result?.failureCode === "not_installed" ? "absent" : "kept";
|
|
105
|
-
const listed = jsonList((await run(["plugin", "marketplace", "list", "--json"])).stdout) ?? [];
|
|
106
|
-
const row = listed.find((m) => m.name === MARKETPLACE_NAME);
|
|
107
|
-
let marketplace = "absent";
|
|
108
|
-
if (row !== void 0) {
|
|
109
|
-
if (await ownMarketplace(row)) {
|
|
110
|
-
const scoped = scope === "user" ? [] : ["--scope", scope];
|
|
111
|
-
const removed = await run([
|
|
112
|
-
"plugin",
|
|
113
|
-
"marketplace",
|
|
114
|
-
"remove",
|
|
115
|
-
MARKETPLACE_NAME,
|
|
116
|
-
...scoped,
|
|
117
|
-
"--json"
|
|
118
|
-
]);
|
|
119
|
-
marketplace = removed.code === 0 ? "removed" : "kept";
|
|
120
|
-
} else marketplace = "kept";
|
|
121
|
-
}
|
|
122
|
-
const message = typeof result?.message === "string" ? result.message : uninstall.stderr.trim().slice(0, 200);
|
|
123
|
-
return {
|
|
124
|
-
plugin: pluginState,
|
|
125
|
-
marketplace,
|
|
126
|
-
folder,
|
|
127
|
-
...pluginState === "kept" ? { reason: `claude plugin uninstall did not succeed: ${message}` } : {}
|
|
128
|
-
};
|
|
129
|
-
}
|
|
130
|
-
function uninstallLines(plugin, settingsPath, settings) {
|
|
131
|
-
const lines = [
|
|
132
|
-
plugin.plugin === "removed" ? `removed the ${PLUGIN_ID} plugin` : plugin.plugin === "absent" ? `plugin: ${PLUGIN_ID} was not installed` : `plugin: ${plugin.reason ?? "left in place"}`
|
|
133
|
-
];
|
|
134
|
-
if (plugin.marketplace === "removed") lines.push(`removed the ${MARKETPLACE_NAME} marketplace`);
|
|
135
|
-
if (plugin.folder.removed) {
|
|
136
|
-
lines.push(
|
|
137
|
-
plugin.folder.left.length === 0 ? `removed the plugin folder ${plugin.folder.path}` : `removed the plugin's files from ${plugin.folder.path}; kept what is not Tenjin's: ${plugin.folder.left.join(", ")}`
|
|
138
|
-
);
|
|
139
|
-
} else if (plugin.folder.reason !== void 0) lines.push(`folder: ${plugin.folder.reason}`);
|
|
140
|
-
if (settings !== null) {
|
|
141
|
-
const parts = [
|
|
142
|
-
...settings.events.length > 0 ? [`hook entries (${settings.events.join(", ")})`] : [],
|
|
143
|
-
...settings.allowRule || settings.denyRule ? ["the permission rules"] : [],
|
|
144
|
-
...settings.statusLine !== "kept" ? ["the status line"] : [],
|
|
145
|
-
...settings.mcp === "removed" ? ["the x402 MCP server"] : []
|
|
146
|
-
];
|
|
147
|
-
if (parts.length > 0) {
|
|
148
|
-
lines.push(`removed the settings install's ${parts.join(", ")} from ${settingsPath}`);
|
|
149
|
-
}
|
|
150
|
-
lines.push(...settings.warnings.map((w) => `settings: ${w}`));
|
|
151
|
-
}
|
|
152
|
-
lines.push("Your wallet, spend ledger and config are kept.");
|
|
153
|
-
return lines;
|
|
154
|
-
}
|
|
155
|
-
export {
|
|
156
|
-
runRouterUninstall
|
|
157
|
-
};
|
|
158
|
-
//# sourceMappingURL=uninstall-JXUAFNDB.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/router/uninstall.ts"],"sourcesContent":["import { homedir } from 'node:os';\nimport { isAbsolute } from 'node:path';\nimport { persistRouterProject } from '../commands/config';\nimport type { CommandContext, CommandResult } from '../context';\nimport { removeAliveState } from './alive';\nimport { findClaudeBinary, jsonList, jsonResult, runClaude, type ClaudeBinary } from './claude-cli';\nimport { projectInstallHere, settingsInstallPaths } from './install';\nimport { inspectLegacyInstall, removeLegacyInstall, type LegacyRemoval } from './legacy-install';\nimport { MARKETPLACE_NAME, PLUGIN_ID } from './names';\nimport { removePluginFolder, type FolderRemoval } from './plugin-folder';\nimport { folderFor, ownMarketplace, type PluginScope } from './plugin-registration';\n\n/**\n * `tenjin uninstall`: take out the plugin and anything a settings install of\n * an earlier release left, and nothing else.\n *\n * THE PLUGIN goes through Claude Code's own commands (`claude plugin\n * uninstall`, then `claude plugin marketplace remove` for the marketplace\n * `install` added), and a plugin folder of ours loses its listed files. The\n * settings install's hook entries, rules, status line and `x402` server go\n * under the exact-shape rules of `legacy-install.ts`.\n *\n * THE WALLET AND `spend.json` STAY. Removing an integration is not a reason to\n * destroy a key that holds funds or a ledger that records what was spent; both\n * are the user's, and `tenjin wallet` is where they go to move either.\n */\n\nexport interface RouterUninstallArgs {\n project?: boolean;\n}\n\nexport interface RouterUninstallDeps {\n homeDir?: string;\n cwd?: string;\n env?: NodeJS.ProcessEnv;\n findClaude?: (env: NodeJS.ProcessEnv) => ClaudeBinary | null;\n}\n\nexport interface PluginRemoval {\n /** `removed`, `absent` (it was not installed), or `kept` with the reason. */\n plugin: 'removed' | 'absent' | 'kept';\n marketplace: 'removed' | 'absent' | 'kept';\n folder: FolderRemoval;\n reason?: string;\n}\n\nexport async function runRouterUninstall(\n args: RouterUninstallArgs,\n ctx: CommandContext,\n deps: RouterUninstallDeps = {},\n): Promise<CommandResult> {\n const env = deps.env ?? process.env;\n const home = deps.homeDir ?? homedir();\n if (!isAbsolute(home)) throw new Error('The home directory is not an absolute path.');\n const cwd = deps.cwd ?? process.cwd();\n const project = args.project === true;\n const scope: PluginScope = project ? 'local' : 'user';\n const binary = (deps.findClaude ?? findClaudeBinary)(env);\n\n const plugin = await removePlugin(binary, scope, env, home, cwd);\n const paths = settingsInstallPaths(project, env, home, cwd);\n const legacy = await inspectLegacyInstall(paths.settingsPath, paths.mcpFile);\n const settings: LegacyRemoval | null = legacy.present\n ? await removeLegacyInstall(legacy, { binary, env, cwd, mcpScope: paths.mcpScope })\n : null;\n const alive = await removeAliveState(ctx.dataDir);\n // Forgotten, so a later `tenjin update` does not go looking for a project\n // this machine no longer wires.\n if (project) await persistRouterProject(ctx.dataDir, cwd, false).catch(() => undefined);\n // A BARE UNINSTALL TOUCHES USER SCOPE ONLY: a project install here is left,\n // and said to be, with the command that removes it.\n const projectLeft = !project && (await projectInstallHere(cwd, home, env));\n const data = {\n plugin,\n settings: { path: paths.settingsPath, found: legacy.present, removed: settings },\n aliveRemoved: alive,\n ...(projectLeft ? { projectInstallLeft: cwd } : {}),\n kept: ['wallet.json', 'spend.json', 'config.json'],\n };\n const lines = uninstallLines(plugin, paths.settingsPath, settings);\n if (projectLeft) {\n lines.splice(\n -1,\n 0,\n 'This project has its own Tenjin install, which this left in place; `tenjin uninstall --project` here removes it.',\n );\n }\n return { data, humanLines: lines };\n}\n\nasync function removePlugin(\n binary: ClaudeBinary | null,\n scope: PluginScope,\n env: NodeJS.ProcessEnv,\n home: string,\n cwd: string,\n): Promise<PluginRemoval> {\n const folder = await removePluginFolder(folderFor(scope, env, home, cwd));\n if (binary === null) {\n return {\n plugin: 'kept',\n marketplace: 'kept',\n folder,\n reason: `no claude binary on PATH or in CLAUDE_CODE_EXECPATH, so ${PLUGIN_ID} could not be checked; if Claude Code still lists it, type /plugin uninstall ${PLUGIN_ID} in a Claude Code session`,\n };\n }\n const run = (a: string[]) => runClaude(binary, a, { env, cwd });\n const uninstall = await run(['plugin', 'uninstall', PLUGIN_ID, '--scope', scope, '--json']);\n const result = jsonResult(uninstall.stdout);\n const pluginState: PluginRemoval['plugin'] =\n uninstall.code === 0 ? 'removed' : result?.failureCode === 'not_installed' ? 'absent' : 'kept';\n // THE MARKETPLACE GOES ONLY WHEN IT IS THE ONE `install` ADDED. A marketplace\n // of the same name from anywhere else is somebody else's.\n const listed = jsonList((await run(['plugin', 'marketplace', 'list', '--json'])).stdout) ?? [];\n const row = listed.find((m) => m.name === MARKETPLACE_NAME);\n let marketplace: PluginRemoval['marketplace'] = 'absent';\n if (row !== undefined) {\n if (await ownMarketplace(row)) {\n // Named only for a project install, as `install` added it.\n const scoped = scope === 'user' ? [] : ['--scope', scope];\n const removed = await run([\n 'plugin',\n 'marketplace',\n 'remove',\n MARKETPLACE_NAME,\n ...scoped,\n '--json',\n ]);\n marketplace = removed.code === 0 ? 'removed' : 'kept';\n } else marketplace = 'kept';\n }\n const message =\n typeof result?.message === 'string' ? result.message : uninstall.stderr.trim().slice(0, 200);\n return {\n plugin: pluginState,\n marketplace,\n folder,\n ...(pluginState === 'kept'\n ? { reason: `claude plugin uninstall did not succeed: ${message}` }\n : {}),\n };\n}\n\nfunction uninstallLines(\n plugin: PluginRemoval,\n settingsPath: string,\n settings: LegacyRemoval | null,\n): string[] {\n const lines: string[] = [\n plugin.plugin === 'removed'\n ? `removed the ${PLUGIN_ID} plugin`\n : plugin.plugin === 'absent'\n ? `plugin: ${PLUGIN_ID} was not installed`\n : `plugin: ${plugin.reason ?? 'left in place'}`,\n ];\n if (plugin.marketplace === 'removed') lines.push(`removed the ${MARKETPLACE_NAME} marketplace`);\n if (plugin.folder.removed) {\n lines.push(\n plugin.folder.left.length === 0\n ? `removed the plugin folder ${plugin.folder.path}`\n : `removed the plugin's files from ${plugin.folder.path}; kept what is not Tenjin's: ${plugin.folder.left.join(', ')}`,\n );\n } else if (plugin.folder.reason !== undefined) lines.push(`folder: ${plugin.folder.reason}`);\n if (settings !== null) {\n const parts = [\n ...(settings.events.length > 0 ? [`hook entries (${settings.events.join(', ')})`] : []),\n ...(settings.allowRule || settings.denyRule ? ['the permission rules'] : []),\n ...(settings.statusLine !== 'kept' ? ['the status line'] : []),\n ...(settings.mcp === 'removed' ? ['the x402 MCP server'] : []),\n ];\n if (parts.length > 0) {\n lines.push(`removed the settings install's ${parts.join(', ')} from ${settingsPath}`);\n }\n lines.push(...settings.warnings.map((w) => `settings: ${w}`));\n }\n lines.push('Your wallet, spend ledger and config are kept.');\n return lines;\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,SAAS,eAAe;AACxB,SAAS,kBAAkB;AA6C3B,eAAsB,mBACpB,MACA,KACA,OAA4B,CAAC,GACL;AACxB,QAAM,MAAM,KAAK,OAAO,QAAQ;AAChC,QAAM,OAAO,KAAK,WAAW,QAAQ;AACrC,MAAI,CAAC,WAAW,IAAI,EAAG,OAAM,IAAI,MAAM,6CAA6C;AACpF,QAAM,MAAM,KAAK,OAAO,QAAQ,IAAI;AACpC,QAAM,UAAU,KAAK,YAAY;AACjC,QAAM,QAAqB,UAAU,UAAU;AAC/C,QAAM,UAAU,KAAK,cAAc,kBAAkB,GAAG;AAExD,QAAM,SAAS,MAAM,aAAa,QAAQ,OAAO,KAAK,MAAM,GAAG;AAC/D,QAAM,QAAQ,qBAAqB,SAAS,KAAK,MAAM,GAAG;AAC1D,QAAM,SAAS,MAAM,qBAAqB,MAAM,cAAc,MAAM,OAAO;AAC3E,QAAM,WAAiC,OAAO,UAC1C,MAAM,oBAAoB,QAAQ,EAAE,QAAQ,KAAK,KAAK,UAAU,MAAM,SAAS,CAAC,IAChF;AACJ,QAAM,QAAQ,MA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AAS,OAAO,KAAK,IAAI,CAAC,GAAG,IAAI,CAAC;AAAA,MACrF,GAAI,SAAS,aAAa,SAAS,WAAW,CAAC,sBAAsB,IAAI,CAAC;AAAA,MAC1E,GAAI,SAAS,eAAe,SAAS,CAAC,iBAAiB,IAAI,CAAC;AAAA,MAC5D,GAAI,SAAS,QAAQ,YAAY,CAAC,qBAAqB,IAAI,CAAC;AAAA,IAC9D;AACA,QAAI,MAAM,SAAS,GAAG;AACpB,YAAM,KAAK,kCAAkC,MAAM,KAAK,IAAI,CAAC,SAAS,YAAY,EAAE;AAAA,IACtF;AACA,UAAM,KAAK,GAAG,SAAS,SAAS,IAAI,CAAC,MAAM,aAAa,CAAC,EAAE,CAAC;AAAA,EAC9D;AACA,QAAM,KAAK,gDAAgD;AAC3D,SAAO;AACT;","names":[]}
|
package/dist/update-ZKUERSO2.js
DELETED
|
@@ -1,44 +0,0 @@
|
|
|
1
|
-
import { createRequire as __tenjinCreateRequire } from 'node:module'; const require = __tenjinCreateRequire(import.meta.url);
|
|
2
|
-
import {
|
|
3
|
-
runUpdate,
|
|
4
|
-
spawnCapture,
|
|
5
|
-
versionFreeEntry
|
|
6
|
-
} from "./chunk-77TCKDEC.js";
|
|
7
|
-
import "./chunk-UKY4CHNC.js";
|
|
8
|
-
import "./chunk-KXVP2VKA.js";
|
|
9
|
-
import "./chunk-GA7JETVM.js";
|
|
10
|
-
import "./chunk-KOGZDMHO.js";
|
|
11
|
-
import "./chunk-QXP3Z3JN.js";
|
|
12
|
-
import "./chunk-5MARFNSB.js";
|
|
13
|
-
import "./chunk-3623BLPV.js";
|
|
14
|
-
import "./chunk-A36LQPHV.js";
|
|
15
|
-
import "./chunk-QSCPK4F5.js";
|
|
16
|
-
import "./chunk-AKWGE6JQ.js";
|
|
17
|
-
import "./chunk-WJXLQXJY.js";
|
|
18
|
-
import "./chunk-XKESD27X.js";
|
|
19
|
-
import "./chunk-4ZZO6ULA.js";
|
|
20
|
-
import "./chunk-MEFB5KHA.js";
|
|
21
|
-
import "./chunk-2SNUOHAT.js";
|
|
22
|
-
import "./chunk-K72RURN3.js";
|
|
23
|
-
import "./chunk-DOQGNFHM.js";
|
|
24
|
-
import "./chunk-YFPY4ONH.js";
|
|
25
|
-
import "./chunk-I3EQFHCD.js";
|
|
26
|
-
import "./chunk-S4SAZ7OD.js";
|
|
27
|
-
import "./chunk-AGZ7PJKY.js";
|
|
28
|
-
import "./chunk-2I4QTOLB.js";
|
|
29
|
-
import "./chunk-7WU4OPLP.js";
|
|
30
|
-
import "./chunk-Y527D4TV.js";
|
|
31
|
-
import "./chunk-YVFXE7RR.js";
|
|
32
|
-
import "./chunk-XQJXNMSB.js";
|
|
33
|
-
import "./chunk-3UCIG4TG.js";
|
|
34
|
-
import "./chunk-27EPWVOY.js";
|
|
35
|
-
import "./chunk-7WEQQJLG.js";
|
|
36
|
-
import "./chunk-SJLTEINJ.js";
|
|
37
|
-
import "./chunk-5C32RLTA.js";
|
|
38
|
-
import "./chunk-ZXTAQYNA.js";
|
|
39
|
-
export {
|
|
40
|
-
runUpdate,
|
|
41
|
-
spawnCapture,
|
|
42
|
-
versionFreeEntry
|
|
43
|
-
};
|
|
44
|
-
//# sourceMappingURL=update-ZKUERSO2.js.map
|
package/dist/wallet-2HA6W4R4.js
DELETED
|
@@ -1,43 +0,0 @@
|
|
|
1
|
-
import { createRequire as __tenjinCreateRequire } from 'node:module'; const require = __tenjinCreateRequire(import.meta.url);
|
|
2
|
-
import {
|
|
3
|
-
runWalletBalance,
|
|
4
|
-
runWalletCreate,
|
|
5
|
-
runWalletShow
|
|
6
|
-
} from "./chunk-V6BSF6OC.js";
|
|
7
|
-
import "./chunk-B7HUUJOK.js";
|
|
8
|
-
import "./chunk-5K5W4S66.js";
|
|
9
|
-
import "./chunk-7Q5FDF65.js";
|
|
10
|
-
import "./chunk-ORWL5BSN.js";
|
|
11
|
-
import "./chunk-BL3332HQ.js";
|
|
12
|
-
import "./chunk-2XLC3AEX.js";
|
|
13
|
-
import "./chunk-7ZRL2LBQ.js";
|
|
14
|
-
import "./chunk-WK7F3B2E.js";
|
|
15
|
-
import "./chunk-R5LCN54M.js";
|
|
16
|
-
import "./chunk-NEFNKLBE.js";
|
|
17
|
-
import "./chunk-K3I7C2MO.js";
|
|
18
|
-
import "./chunk-5IEP5EGE.js";
|
|
19
|
-
import "./chunk-EGELTSPU.js";
|
|
20
|
-
import "./chunk-JRGFKVAZ.js";
|
|
21
|
-
import "./chunk-TTNESUPQ.js";
|
|
22
|
-
import "./chunk-KG3D7FIF.js";
|
|
23
|
-
import "./chunk-RBJPAZFI.js";
|
|
24
|
-
import "./chunk-BPMWXTFX.js";
|
|
25
|
-
import "./chunk-4ZZO6ULA.js";
|
|
26
|
-
import "./chunk-MEFB5KHA.js";
|
|
27
|
-
import "./chunk-2SNUOHAT.js";
|
|
28
|
-
import "./chunk-K72RURN3.js";
|
|
29
|
-
import "./chunk-2I4QTOLB.js";
|
|
30
|
-
import "./chunk-Y527D4TV.js";
|
|
31
|
-
import "./chunk-YVFXE7RR.js";
|
|
32
|
-
import "./chunk-XQJXNMSB.js";
|
|
33
|
-
import "./chunk-3UCIG4TG.js";
|
|
34
|
-
import "./chunk-27EPWVOY.js";
|
|
35
|
-
import "./chunk-7WEQQJLG.js";
|
|
36
|
-
import "./chunk-SJLTEINJ.js";
|
|
37
|
-
import "./chunk-ZXTAQYNA.js";
|
|
38
|
-
export {
|
|
39
|
-
runWalletBalance,
|
|
40
|
-
runWalletCreate,
|
|
41
|
-
runWalletShow
|
|
42
|
-
};
|
|
43
|
-
//# sourceMappingURL=wallet-2HA6W4R4.js.map
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
/package/dist/{ethersCompat-Df4a6QIZ-THAVUGIJ.js.map → ethersCompat-Df4a6QIZ-X6YZWAML.js.map}
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|