tenjin-cli 0.1.0-alpha.27 → 0.1.0-alpha.29
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 +18 -26
- package/dist/alive-3J3CHOQP.js +21 -0
- package/dist/{chunk-XVYATBKD.js → chunk-25GGN553.js} +897 -522
- package/dist/chunk-25GGN553.js.map +1 -0
- package/dist/{chunk-B2L53TMK.js → chunk-2SNUOHAT.js} +28 -23
- package/dist/chunk-2SNUOHAT.js.map +1 -0
- package/dist/{chunk-5NEHH2E5.js → chunk-3FY5HG7R.js} +86 -19
- package/dist/chunk-3FY5HG7R.js.map +1 -0
- package/dist/{chunk-YQOQ6XEI.js → chunk-4FYMDRD3.js} +51 -41
- package/dist/chunk-4FYMDRD3.js.map +1 -0
- package/dist/chunk-6W5GYG3W.js +128 -0
- package/dist/chunk-6W5GYG3W.js.map +1 -0
- package/dist/{chunk-G4AM2SOL.js → chunk-AMEUXNJT.js} +4 -8
- package/dist/{chunk-G4AM2SOL.js.map → chunk-AMEUXNJT.js.map} +1 -1
- package/dist/chunk-EWLU46J6.js +100 -0
- package/dist/chunk-EWLU46J6.js.map +1 -0
- package/dist/chunk-LRCJ2IZ5.js +115 -0
- package/dist/{chunk-HC3QEZKT.js.map → chunk-LRCJ2IZ5.js.map} +1 -1
- package/dist/{chunk-X7I343ZY.js → chunk-LX5OT4TQ.js} +3 -3
- package/dist/{chunk-X7I343ZY.js.map → chunk-LX5OT4TQ.js.map} +1 -1
- package/dist/{chunk-DATCR7AU.js → chunk-MG3G644T.js} +5 -7
- package/dist/{chunk-DATCR7AU.js.map → chunk-MG3G644T.js.map} +1 -1
- package/dist/{chunk-BOAI23CX.js → chunk-MOG7PB3A.js} +21 -15
- package/dist/chunk-MOG7PB3A.js.map +1 -0
- package/dist/{chunk-GU4GGKYP.js → chunk-MRUPDSUM.js} +14 -59
- package/dist/chunk-MRUPDSUM.js.map +1 -0
- package/dist/{chunk-AWKQSKUL.js → chunk-OOSRB3OF.js} +2 -2
- package/dist/{chunk-PZ5N6BAL.js → chunk-ORWL5BSN.js} +5 -4
- package/dist/chunk-ORWL5BSN.js.map +1 -0
- package/dist/chunk-P4LVLFO4.js +29 -0
- package/dist/chunk-P4LVLFO4.js.map +1 -0
- package/dist/{chunk-VXIBZ6W5.js → chunk-QTGUDCIR.js} +5 -5
- package/dist/{chunk-YKM2ZTA2.js → chunk-R4AO7GC2.js} +462 -105
- package/dist/chunk-R4AO7GC2.js.map +1 -0
- package/dist/{chunk-OHZYNZSD.js → chunk-RJEPZMYY.js} +12 -8
- package/dist/chunk-RJEPZMYY.js.map +1 -0
- package/dist/chunk-SBL4THYT.js +2074 -0
- package/dist/chunk-SBL4THYT.js.map +1 -0
- package/dist/{chunk-VNNXAYJE.js → chunk-SFEQGENI.js} +2 -2
- package/dist/{chunk-K6AXXYCG.js → chunk-SJLTEINJ.js} +10 -2
- package/dist/{chunk-K6AXXYCG.js.map → chunk-SJLTEINJ.js.map} +1 -1
- package/dist/{chunk-5FGO6TYT.js → chunk-TROZ6HL4.js} +3 -5
- package/dist/{chunk-5FGO6TYT.js.map → chunk-TROZ6HL4.js.map} +1 -1
- package/dist/{chunk-SKQQOEWH.js → chunk-USOLCBKC.js} +6 -8
- package/dist/{chunk-SKQQOEWH.js.map → chunk-USOLCBKC.js.map} +1 -1
- package/dist/{chunk-64SE3QC5.js → chunk-VKQXVCZR.js} +54 -5
- package/dist/chunk-VKQXVCZR.js.map +1 -0
- package/dist/{chunk-VIOUZW7Z.js → chunk-VVAHFCX2.js} +209 -37
- package/dist/chunk-VVAHFCX2.js.map +1 -0
- package/dist/{chunk-4L7KMA7P.js → chunk-WM7TJEBP.js} +8 -10
- package/dist/{chunk-4L7KMA7P.js.map → chunk-WM7TJEBP.js.map} +1 -1
- package/dist/{chunk-2TYQD22Q.js → chunk-XDYKZRLN.js} +23 -16
- package/dist/chunk-XDYKZRLN.js.map +1 -0
- package/dist/{chunk-LAIZ2AQA.js → chunk-XJQ6CH7X.js} +3 -2
- package/dist/{chunk-O7CUHHYU.js → chunk-ZQNGTLOC.js} +8 -10
- package/dist/{chunk-O7CUHHYU.js.map → chunk-ZQNGTLOC.js.map} +1 -1
- package/dist/{cli-6JNIPZQ6.js → cli-JPTDHGRX.js} +58 -52
- package/dist/{cli-6JNIPZQ6.js.map → cli-JPTDHGRX.js.map} +1 -1
- package/dist/{config-G75YT6NC.js → config-YYKDH2TH.js} +12 -15
- package/dist/{doctor-3GMDOW4Y.js → doctor-SSTXGCHX.js} +298 -269
- package/dist/doctor-SSTXGCHX.js.map +1 -0
- package/dist/{fund-3IPR5YRJ.js → fund-QWVWRVDK.js} +95 -43
- package/dist/{fund-3IPR5YRJ.js.map → fund-QWVWRVDK.js.map} +1 -1
- package/dist/hook-command-VWJXRT7H.js +31 -0
- package/dist/hosts/claude/.claude-plugin/marketplace.json +19 -0
- package/dist/hosts/claude/tenjin/.claude-plugin/plugin.json +14 -0
- package/dist/hosts/claude/tenjin/.mcp.json +12 -0
- package/dist/hosts/claude/tenjin/hooks/hooks.json +221 -0
- package/dist/index.js +13 -4
- package/dist/index.js.map +1 -1
- package/dist/install-2GXXD4DK.js +51 -0
- package/dist/{install-identity-PM4AGFFX.js → install-identity-FK3YF227.js} +7 -9
- package/dist/{install-wallet-6756NOB5.js → install-wallet-TC22U52X.js} +21 -17
- package/dist/{install-wallet-6756NOB5.js.map → install-wallet-TC22U52X.js.map} +1 -1
- package/dist/{mcp-33FAAZ7F.js → mcp-42H2F4NY.js} +2128 -372
- package/dist/mcp-42H2F4NY.js.map +1 -0
- package/dist/package-6DJA3Y2O.js +37 -0
- package/dist/{paths-MUXHUOCM.js → paths-POPTXJO6.js} +6 -2
- package/dist/{pay-XOYR4PCH.js → pay-LSDJBIAZ.js} +20 -18
- package/dist/payments-SPECLBRQ.js +105 -0
- package/dist/payments-SPECLBRQ.js.map +1 -0
- package/dist/{send-CVGNOQW3.js → send-MHAOLPK3.js} +13 -17
- package/dist/{send-CVGNOQW3.js.map → send-MHAOLPK3.js.map} +1 -1
- package/dist/status-O2RWLPS5.js +114 -0
- package/dist/status-O2RWLPS5.js.map +1 -0
- package/dist/{status-line-3IQKGRUH.js → status-line-45TVCRM3.js} +7 -9
- package/dist/{status-line-3IQKGRUH.js.map → status-line-45TVCRM3.js.map} +1 -1
- package/dist/uninstall-VOK2Z5M4.js +146 -0
- package/dist/uninstall-VOK2Z5M4.js.map +1 -0
- package/dist/update-FGP3HNLD.js +33 -0
- package/dist/update-FGP3HNLD.js.map +1 -0
- package/dist/{wallet-B3FVHNTS.js → wallet-DA7OFNEW.js} +18 -14
- package/dist/wallet-DA7OFNEW.js.map +1 -0
- package/docs/agent-permissions.md +35 -22
- package/docs/safety-model.md +3 -1
- package/package.json +2 -2
- package/dist/chunk-2TYQD22Q.js.map +0 -1
- package/dist/chunk-5NEHH2E5.js.map +0 -1
- package/dist/chunk-64SE3QC5.js.map +0 -1
- package/dist/chunk-6ZSGER3A.js +0 -52
- package/dist/chunk-6ZSGER3A.js.map +0 -1
- package/dist/chunk-B2L53TMK.js.map +0 -1
- package/dist/chunk-BOAI23CX.js.map +0 -1
- package/dist/chunk-DSNXKUXI.js +0 -172
- package/dist/chunk-DSNXKUXI.js.map +0 -1
- package/dist/chunk-GU4GGKYP.js.map +0 -1
- package/dist/chunk-H2L33M7F.js +0 -944
- package/dist/chunk-H2L33M7F.js.map +0 -1
- package/dist/chunk-HC3QEZKT.js +0 -87
- package/dist/chunk-JLEF5WHM.js +0 -132
- package/dist/chunk-JLEF5WHM.js.map +0 -1
- package/dist/chunk-MAQUL5BD.js +0 -99
- package/dist/chunk-MAQUL5BD.js.map +0 -1
- package/dist/chunk-OHZYNZSD.js.map +0 -1
- package/dist/chunk-PY7MQUKP.js +0 -755
- package/dist/chunk-PY7MQUKP.js.map +0 -1
- package/dist/chunk-PZ5N6BAL.js.map +0 -1
- package/dist/chunk-TGLKKLQG.js +0 -11
- package/dist/chunk-TGLKKLQG.js.map +0 -1
- package/dist/chunk-VIOUZW7Z.js.map +0 -1
- package/dist/chunk-XVYATBKD.js.map +0 -1
- package/dist/chunk-YKM2ZTA2.js.map +0 -1
- package/dist/chunk-YQOQ6XEI.js.map +0 -1
- package/dist/doctor-3GMDOW4Y.js.map +0 -1
- package/dist/hook-command-ZXX4FT4N.js +0 -32
- package/dist/install-6OROTYHZ.js +0 -72
- package/dist/mcp-33FAAZ7F.js.map +0 -1
- package/dist/payments-UTQDBO7H.js +0 -48
- package/dist/payments-UTQDBO7H.js.map +0 -1
- package/dist/status-NACN4DGX.js +0 -72
- package/dist/status-NACN4DGX.js.map +0 -1
- package/dist/status-line-wiring-QXBOOY2T.js +0 -31
- package/dist/uninstall-NYFKSYW4.js +0 -175
- package/dist/uninstall-NYFKSYW4.js.map +0 -1
- package/dist/update-RJDA5ZY3.js +0 -442
- package/dist/update-RJDA5ZY3.js.map +0 -1
- /package/dist/{config-G75YT6NC.js.map → alive-3J3CHOQP.js.map} +0 -0
- /package/dist/{chunk-AWKQSKUL.js.map → chunk-OOSRB3OF.js.map} +0 -0
- /package/dist/{chunk-VXIBZ6W5.js.map → chunk-QTGUDCIR.js.map} +0 -0
- /package/dist/{chunk-VNNXAYJE.js.map → chunk-SFEQGENI.js.map} +0 -0
- /package/dist/{chunk-LAIZ2AQA.js.map → chunk-XJQ6CH7X.js.map} +0 -0
- /package/dist/{hook-command-ZXX4FT4N.js.map → config-YYKDH2TH.js.map} +0 -0
- /package/dist/{install-6OROTYHZ.js.map → hook-command-VWJXRT7H.js.map} +0 -0
- /package/dist/{install-identity-PM4AGFFX.js.map → install-2GXXD4DK.js.map} +0 -0
- /package/dist/{paths-MUXHUOCM.js.map → install-identity-FK3YF227.js.map} +0 -0
- /package/dist/{pay-XOYR4PCH.js.map → package-6DJA3Y2O.js.map} +0 -0
- /package/dist/{status-line-wiring-QXBOOY2T.js.map → paths-POPTXJO6.js.map} +0 -0
- /package/dist/{wallet-B3FVHNTS.js.map → pay-LSDJBIAZ.js.map} +0 -0
|
@@ -2,11 +2,7 @@ import { createRequire as __tenjinCreateRequire } from 'node:module'; const requ
|
|
|
2
2
|
import {
|
|
3
3
|
maybeUpdate,
|
|
4
4
|
readUpdateSignal
|
|
5
|
-
} from "./chunk-
|
|
6
|
-
import {
|
|
7
|
-
noteBaseUrlFlag
|
|
8
|
-
} from "./chunk-SKQQOEWH.js";
|
|
9
|
-
import "./chunk-OHZYNZSD.js";
|
|
5
|
+
} from "./chunk-WM7TJEBP.js";
|
|
10
6
|
import {
|
|
11
7
|
PERMISSIONS_DOC_URL
|
|
12
8
|
} from "./chunk-A36LQPHV.js";
|
|
@@ -14,22 +10,23 @@ import {
|
|
|
14
10
|
defaultIo,
|
|
15
11
|
emitFailure,
|
|
16
12
|
emitSuccess
|
|
17
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-TROZ6HL4.js";
|
|
18
14
|
import {
|
|
19
|
-
|
|
20
|
-
} from "./chunk-
|
|
15
|
+
noteBaseUrlFlag
|
|
16
|
+
} from "./chunk-USOLCBKC.js";
|
|
17
|
+
import "./chunk-RJEPZMYY.js";
|
|
21
18
|
import "./chunk-2I4QTOLB.js";
|
|
22
|
-
import "./chunk-
|
|
23
|
-
import "./chunk-6ZSGER3A.js";
|
|
19
|
+
import "./chunk-AMEUXNJT.js";
|
|
24
20
|
import {
|
|
21
|
+
CliError,
|
|
25
22
|
external_exports
|
|
26
|
-
} from "./chunk-
|
|
27
|
-
import {
|
|
28
|
-
CliError
|
|
29
|
-
} from "./chunk-JLEF5WHM.js";
|
|
23
|
+
} from "./chunk-VVAHFCX2.js";
|
|
30
24
|
import {
|
|
31
25
|
dataDir
|
|
32
|
-
} from "./chunk-
|
|
26
|
+
} from "./chunk-SJLTEINJ.js";
|
|
27
|
+
import {
|
|
28
|
+
package_default
|
|
29
|
+
} from "./chunk-LRCJ2IZ5.js";
|
|
33
30
|
import {
|
|
34
31
|
__commonJS,
|
|
35
32
|
__require,
|
|
@@ -3495,11 +3492,8 @@ var INTEGRATION = "Integration:";
|
|
|
3495
3492
|
function registerCore(reg) {
|
|
3496
3493
|
const { runCommand, leaf: leaf2, addGlobalFlags: addGlobalFlags2 } = reg;
|
|
3497
3494
|
leaf2(SETUP, "install", "set up Tenjin for Claude Code and create a wallet").description(
|
|
3498
|
-
"Set up Claude Code to use Tenjin:
|
|
3499
|
-
).option("--project", "
|
|
3500
|
-
"--status-line <mode>",
|
|
3501
|
-
"the live footer: `own` registers it when you have no status line of your own, `compose` appends it to the one you do have, `skip` leaves the setting alone"
|
|
3502
|
-
).addHelpText(
|
|
3495
|
+
"Set up Claude Code to use Tenjin: a wallet if this machine has none, spend limits for each lookup, and the Claude Code plugin `tenjin` (its routing hooks and its `router` MCP server), registered through Claude Code's own `claude plugin` commands. A settings-based install from an earlier release is removed once the plugin has loaded."
|
|
3496
|
+
).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 default spend limits instead of asking").addHelpText(
|
|
3503
3497
|
"after",
|
|
3504
3498
|
`
|
|
3505
3499
|
Examples:
|
|
@@ -3513,14 +3507,12 @@ Learn more:
|
|
|
3513
3507
|
).action(async function() {
|
|
3514
3508
|
await runCommand("install", this, async (ctx) => {
|
|
3515
3509
|
const o = this.opts();
|
|
3516
|
-
const { runRouterInstall } = await import("./install-
|
|
3517
|
-
const { statusLineMode } = await import("./status-line-wiring-QXBOOY2T.js");
|
|
3510
|
+
const { runRouterInstall } = await import("./install-2GXXD4DK.js");
|
|
3518
3511
|
return runRouterInstall(
|
|
3519
3512
|
{
|
|
3520
3513
|
...o.project === true ? { project: true } : {},
|
|
3521
3514
|
...o.refresh === true ? { refresh: true } : {},
|
|
3522
3515
|
...o.yes === true ? { yes: true } : {},
|
|
3523
|
-
...o.statusLine !== void 0 ? { statusLine: statusLineMode(String(o.statusLine)) } : {},
|
|
3524
3516
|
...o.wallet === false ? { noWallet: true } : {}
|
|
3525
3517
|
},
|
|
3526
3518
|
ctx
|
|
@@ -3528,17 +3520,17 @@ Learn more:
|
|
|
3528
3520
|
});
|
|
3529
3521
|
});
|
|
3530
3522
|
leaf2(SETUP, "uninstall", "remove what install wrote; the wallet is kept").description(
|
|
3531
|
-
"Remove the
|
|
3532
|
-
).option("--project", "remove
|
|
3523
|
+
"Remove the Tenjin plugin `tenjin install` registered, and any settings-based install an earlier release wrote. Your wallet, spend ledger and config are kept."
|
|
3524
|
+
).option("--project", "remove the project-only install").action(async function() {
|
|
3533
3525
|
await runCommand("uninstall", this, async (ctx) => {
|
|
3534
3526
|
const o = this.opts();
|
|
3535
|
-
const { runRouterUninstall } = await import("./uninstall-
|
|
3527
|
+
const { runRouterUninstall } = await import("./uninstall-VOK2Z5M4.js");
|
|
3536
3528
|
return runRouterUninstall({ ...o.project === true ? { project: true } : {} }, ctx);
|
|
3537
3529
|
});
|
|
3538
3530
|
});
|
|
3539
3531
|
leaf2(SETUP, "doctor", "check this machine can run a lookup").description(
|
|
3540
|
-
"Check everything a lookup needs: the Node floor, the
|
|
3541
|
-
).option("--project", "check
|
|
3532
|
+
"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."
|
|
3533
|
+
).option("--project", "check the project-only install, as --project registered it").addHelpText(
|
|
3542
3534
|
"after",
|
|
3543
3535
|
`
|
|
3544
3536
|
Examples:
|
|
@@ -3548,15 +3540,15 @@ Examples:
|
|
|
3548
3540
|
`
|
|
3549
3541
|
).action(async function() {
|
|
3550
3542
|
await runCommand("doctor", this, async (ctx) => {
|
|
3551
|
-
const { runRouterDoctor } = await import("./doctor-
|
|
3543
|
+
const { runRouterDoctor } = await import("./doctor-SSTXGCHX.js");
|
|
3552
3544
|
return runRouterDoctor(ctx, this.opts().project === true ? { project: true } : {});
|
|
3553
3545
|
});
|
|
3554
3546
|
});
|
|
3555
3547
|
leaf2(SETUP, "update", "update tenjin-cli to the newest published version").description(
|
|
3556
|
-
"Update tenjin-cli to the newest version npm publishes on the latest tag. It then runs `install --refresh` on the new binary, so
|
|
3548
|
+
"Update tenjin-cli to the newest version npm publishes on the latest tag. It then runs `install --refresh` on the new binary, so the Claude Code plugin is registered at the build that just landed."
|
|
3557
3549
|
).option("--check", "report whether a newer version exists without installing it").action(async function() {
|
|
3558
3550
|
await runCommand("update", this, async (ctx) => {
|
|
3559
|
-
const { runUpdate } = await import("./update-
|
|
3551
|
+
const { runUpdate } = await import("./update-FGP3HNLD.js");
|
|
3560
3552
|
return runUpdate({ check: this.opts().check === true }, ctx);
|
|
3561
3553
|
});
|
|
3562
3554
|
});
|
|
@@ -3575,7 +3567,7 @@ Examples:
|
|
|
3575
3567
|
);
|
|
3576
3568
|
config.action(async function() {
|
|
3577
3569
|
await runCommand("config", this, async (ctx) => {
|
|
3578
|
-
const { runConfigList } = await import("./config-
|
|
3570
|
+
const { runConfigList } = await import("./config-YYKDH2TH.js");
|
|
3579
3571
|
return runConfigList(ctx);
|
|
3580
3572
|
});
|
|
3581
3573
|
});
|
|
@@ -3583,7 +3575,7 @@ Examples:
|
|
|
3583
3575
|
"Print one effective config value by key. The effective value is what the command would use, defaults and environment overrides included."
|
|
3584
3576
|
).action(async function(key) {
|
|
3585
3577
|
await runCommand("config.get", this, async (ctx) => {
|
|
3586
|
-
const { runConfigGet } = await import("./config-
|
|
3578
|
+
const { runConfigGet } = await import("./config-YYKDH2TH.js");
|
|
3587
3579
|
return runConfigGet({ key }, ctx);
|
|
3588
3580
|
});
|
|
3589
3581
|
});
|
|
@@ -3595,7 +3587,7 @@ Examples:
|
|
|
3595
3587
|
).option("--local", "with --project, write .tenjin/config.local.json instead, which is yours").action(async function(key, value) {
|
|
3596
3588
|
const o = this.opts();
|
|
3597
3589
|
await runCommand("config.set", this, async (ctx) => {
|
|
3598
|
-
const { runConfigSet } = await import("./config-
|
|
3590
|
+
const { runConfigSet } = await import("./config-YYKDH2TH.js");
|
|
3599
3591
|
return runConfigSet(
|
|
3600
3592
|
{ key, value, project: o.project === true, local: o.local === true },
|
|
3601
3593
|
ctx
|
|
@@ -3617,7 +3609,7 @@ Examples:
|
|
|
3617
3609
|
).action(async function() {
|
|
3618
3610
|
await runCommand("wallet.create", this, async (ctx) => {
|
|
3619
3611
|
const o = this.opts();
|
|
3620
|
-
const { runWalletCreate } = await import("./wallet-
|
|
3612
|
+
const { runWalletCreate } = await import("./wallet-DA7OFNEW.js");
|
|
3621
3613
|
return runWalletCreate(ctx, o.replace === true ? { replace: true } : {});
|
|
3622
3614
|
});
|
|
3623
3615
|
});
|
|
@@ -3626,7 +3618,7 @@ Examples:
|
|
|
3626
3618
|
).option("--no-qr", "print the address without the QR code").action(async function() {
|
|
3627
3619
|
await runCommand("wallet.show", this, async (ctx) => {
|
|
3628
3620
|
const o = this.opts();
|
|
3629
|
-
const { runWalletShow } = await import("./wallet-
|
|
3621
|
+
const { runWalletShow } = await import("./wallet-DA7OFNEW.js");
|
|
3630
3622
|
return runWalletShow(ctx, o.qr === false ? { qr: false } : {});
|
|
3631
3623
|
});
|
|
3632
3624
|
});
|
|
@@ -3634,19 +3626,19 @@ Examples:
|
|
|
3634
3626
|
"Read the wallet USDC balance on Base. It is a chain read: no key is unlocked and nothing is spent."
|
|
3635
3627
|
).action(async function() {
|
|
3636
3628
|
await runCommand("wallet.balance", this, async (ctx) => {
|
|
3637
|
-
const { runWalletBalance } = await import("./wallet-
|
|
3629
|
+
const { runWalletBalance } = await import("./wallet-DA7OFNEW.js");
|
|
3638
3630
|
return runWalletBalance(ctx);
|
|
3639
3631
|
});
|
|
3640
3632
|
});
|
|
3641
|
-
addGlobalFlags2(wallet.command("fund [amountUsd]")).summary("
|
|
3642
|
-
"
|
|
3633
|
+
addGlobalFlags2(wallet.command("fund [amountUsd]")).summary("fund this wallet through a checkout link for your region").description(
|
|
3634
|
+
"Get a checkout link for THIS wallet, open it in the browser, and wait for the USDC to land on Base. In the US: Apple Pay or Google Pay with no Coinbase account. Elsewhere: your Coinbase account. The link moves no money: a human completes the payment."
|
|
3643
3635
|
).option("--no-open", "print the checkout link without opening a browser").option("--no-qr", "skip the QR code of the address for sending USDC from a phone").option(
|
|
3644
3636
|
"--no-wait",
|
|
3645
3637
|
"return once the link is issued instead of polling the balance (already the default when not at a TTY)"
|
|
3646
3638
|
).action(async function(amountUsd) {
|
|
3647
3639
|
await runCommand("wallet.fund", this, async (ctx) => {
|
|
3648
3640
|
const o = this.opts();
|
|
3649
|
-
const { runFund } = await import("./fund-
|
|
3641
|
+
const { runFund } = await import("./fund-QWVWRVDK.js");
|
|
3650
3642
|
return runFund(ctx, {
|
|
3651
3643
|
...amountUsd !== void 0 ? { amountUsd } : {},
|
|
3652
3644
|
...o.open === false ? { open: false } : {},
|
|
@@ -3666,7 +3658,7 @@ Examples:
|
|
|
3666
3658
|
).action(async function(amount, token, to) {
|
|
3667
3659
|
await runCommand("wallet.send", this, async (ctx) => {
|
|
3668
3660
|
const o = this.opts();
|
|
3669
|
-
const { runSend } = await import("./send-
|
|
3661
|
+
const { runSend } = await import("./send-MHAOLPK3.js");
|
|
3670
3662
|
return runSend({ amount, token, to, ...o.yes === true ? { yes: true } : {} }, ctx);
|
|
3671
3663
|
});
|
|
3672
3664
|
});
|
|
@@ -3686,7 +3678,7 @@ Examples:
|
|
|
3686
3678
|
).action(async function(url) {
|
|
3687
3679
|
await runCommand("pay", this, async (ctx) => {
|
|
3688
3680
|
const o = this.opts();
|
|
3689
|
-
const { runPay } = await import("./pay-
|
|
3681
|
+
const { runPay } = await import("./pay-LSDJBIAZ.js");
|
|
3690
3682
|
return runPay(
|
|
3691
3683
|
{
|
|
3692
3684
|
url,
|
|
@@ -3707,8 +3699,16 @@ Examples:
|
|
|
3707
3699
|
function registerRouter(reg) {
|
|
3708
3700
|
const { io, runCommand, leaf: leaf2, addGlobalFlags: addGlobalFlags2, buildContext: buildContext2 } = reg;
|
|
3709
3701
|
const hook = leaf2(INTEGRATION, "hook", "run one harness hook handler (called by Claude Code)").description(
|
|
3710
|
-
"The handlers
|
|
3702
|
+
"The handlers Tenjin's Claude Code plugin runs. Each reads one hook event on stdin and writes the harness response, or nothing, on stdout. You never run these by hand."
|
|
3711
3703
|
).helpCommand(false);
|
|
3704
|
+
addGlobalFlags2(hook.command("alive")).summary("SessionStart: mark this session and machine as ones the plugin serves").action(async function() {
|
|
3705
|
+
const ctx = buildContext2(this);
|
|
3706
|
+
const [{ aliveMain }, { default: pkg }] = await Promise.all([
|
|
3707
|
+
import("./alive-3J3CHOQP.js"),
|
|
3708
|
+
import("./package-6DJA3Y2O.js")
|
|
3709
|
+
]);
|
|
3710
|
+
await aliveMain({ dataDir: ctx.dataDir, version: pkg.version });
|
|
3711
|
+
});
|
|
3712
3712
|
for (const [name, summary] of [
|
|
3713
3713
|
["prompt", "UserPromptSubmit: build the session packet and ask the free gate"],
|
|
3714
3714
|
["native", "PreToolUse on WebSearch|WebFetch: allow the call, or redirect it"],
|
|
@@ -3722,7 +3722,7 @@ function registerRouter(reg) {
|
|
|
3722
3722
|
]) {
|
|
3723
3723
|
addGlobalFlags2(hook.command(name)).summary(summary).action(async function() {
|
|
3724
3724
|
const ctx = buildContext2(this);
|
|
3725
|
-
const { runHookCommand } = await import("./hook-command-
|
|
3725
|
+
const { runHookCommand } = await import("./hook-command-VWJXRT7H.js");
|
|
3726
3726
|
await runHookCommand(name, io, {
|
|
3727
3727
|
dataDir: ctx.dataDir,
|
|
3728
3728
|
...ctx.flags.baseUrl !== void 0 ? { baseUrl: ctx.flags.baseUrl } : {}
|
|
@@ -3731,36 +3731,42 @@ function registerRouter(reg) {
|
|
|
3731
3731
|
}
|
|
3732
3732
|
hook.command("unknown", { hidden: true, isDefault: true }).argument("[args...]").allowUnknownOption().allowExcessArguments().action(() => {
|
|
3733
3733
|
});
|
|
3734
|
-
leaf2(INTEGRATION, "mcp", "run the local stdio MCP server").description(
|
|
3734
|
+
leaf2(INTEGRATION, "mcp", "run the local stdio MCP server").addOption(new Option("--plugin", "started by the Tenjin Claude Code plugin").hideHelp()).description(
|
|
3735
3735
|
"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."
|
|
3736
3736
|
).action(async function() {
|
|
3737
3737
|
const ctx = buildContext2(this);
|
|
3738
|
-
const { runRouterMcpServer } = await import("./mcp-
|
|
3738
|
+
const { runRouterMcpServer } = await import("./mcp-42H2F4NY.js");
|
|
3739
3739
|
await runRouterMcpServer({ dataDir: ctx.dataDir, flags: ctx.flags });
|
|
3740
3740
|
});
|
|
3741
3741
|
leaf2(INTEGRATION, "status-line", "the live footer, for Claude Code's status line").description(
|
|
3742
|
-
"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.
|
|
3742
|
+
"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."
|
|
3743
3743
|
).action(async function() {
|
|
3744
3744
|
const ctx = buildContext2(this);
|
|
3745
|
-
const { runStatusLine } = await import("./status-line-
|
|
3745
|
+
const { runStatusLine } = await import("./status-line-45TVCRM3.js");
|
|
3746
3746
|
await runStatusLine(io, { dataDir: ctx.dataDir });
|
|
3747
3747
|
});
|
|
3748
3748
|
leaf2(SETUP, "status", "what this machine has spent, and what is still open").description(
|
|
3749
3749
|
"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."
|
|
3750
3750
|
).action(async function() {
|
|
3751
3751
|
await runCommand("status", this, async (ctx) => {
|
|
3752
|
-
const { runRouterStatus } = await import("./status-
|
|
3752
|
+
const { runRouterStatus } = await import("./status-O2RWLPS5.js");
|
|
3753
3753
|
return runRouterStatus(ctx);
|
|
3754
3754
|
});
|
|
3755
3755
|
});
|
|
3756
3756
|
const payments = leaf2(SETUP, "payments", "the paid lookups this machine made").description(
|
|
3757
|
-
"The local record of paid router lookups, in `~/.tenjin/paid/ledger.jsonl`."
|
|
3757
|
+
"The local record of paid router lookups, in `~/.tenjin/paid/ledger.jsonl`. A bare `tenjin payments` lists the newest: when, who was paid, how much, whether it settled, and the transaction."
|
|
3758
3758
|
);
|
|
3759
|
+
payments.action(async function() {
|
|
3760
|
+
await runCommand("payments", this, async (ctx) => {
|
|
3761
|
+
const { runPaymentsList } = await import("./payments-SPECLBRQ.js");
|
|
3762
|
+
return runPaymentsList(ctx);
|
|
3763
|
+
});
|
|
3764
|
+
});
|
|
3759
3765
|
addGlobalFlags2(payments.command("reconcile")).summary("resolve paid lookups whose settlement is unknown").description(
|
|
3760
3766
|
"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."
|
|
3761
3767
|
).action(async function() {
|
|
3762
3768
|
await runCommand("payments.reconcile", this, async (ctx) => {
|
|
3763
|
-
const { runPaymentsReconcile } = await import("./payments-
|
|
3769
|
+
const { runPaymentsReconcile } = await import("./payments-SPECLBRQ.js");
|
|
3764
3770
|
return runPaymentsReconcile(ctx);
|
|
3765
3771
|
});
|
|
3766
3772
|
});
|
|
@@ -3910,4 +3916,4 @@ export {
|
|
|
3910
3916
|
buildProgram,
|
|
3911
3917
|
main
|
|
3912
3918
|
};
|
|
3913
|
-
//# sourceMappingURL=cli-
|
|
3919
|
+
//# sourceMappingURL=cli-JPTDHGRX.js.map
|