tenjin-cli 0.1.0-alpha.10 → 0.1.0-alpha.11
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 +54 -30
- package/dist/{buy-FMDBZ4NY.js → buy-THMVOPUH.js} +17 -17
- package/dist/{chunk-AWQ6A4CI.js → chunk-2SDUV6MQ.js} +83 -72
- package/dist/chunk-2SDUV6MQ.js.map +1 -0
- package/dist/{chunk-DKQMJTG7.js → chunk-3GSZUADW.js} +14 -3
- package/dist/{chunk-DKQMJTG7.js.map → chunk-3GSZUADW.js.map} +1 -1
- package/dist/{chunk-5SE6BJRP.js → chunk-4NTZETIL.js} +25 -2
- package/dist/chunk-4NTZETIL.js.map +1 -0
- package/dist/{chunk-TWRYSGAW.js → chunk-4TCU3YRD.js} +8 -12
- package/dist/chunk-4TCU3YRD.js.map +1 -0
- package/dist/{chunk-7WDY4AXV.js → chunk-6BGYHARE.js} +18 -18
- package/dist/{chunk-UOJRKQTZ.js → chunk-6UY2UQMY.js} +3 -3
- package/dist/{chunk-36X2CA3N.js → chunk-ALUNME53.js} +1 -6
- package/dist/{chunk-36X2CA3N.js.map → chunk-ALUNME53.js.map} +1 -1
- package/dist/{chunk-GECSWJ7O.js → chunk-CNUXRXI2.js} +2 -2
- package/dist/chunk-E6YOODH7.js +913 -0
- package/dist/chunk-E6YOODH7.js.map +1 -0
- package/dist/{chunk-O6CAUZGY.js → chunk-EDVI7RRD.js} +3 -3
- package/dist/{chunk-MD7WGYYI.js → chunk-GKV6VZSZ.js} +9 -9
- package/dist/{chunk-JSSIMGQT.js → chunk-GUUAYR3K.js} +27 -26
- package/dist/chunk-GUUAYR3K.js.map +1 -0
- package/dist/{chunk-ZUAQRIVP.js → chunk-IAFYUFIC.js} +64 -25
- package/dist/chunk-IAFYUFIC.js.map +1 -0
- package/dist/{chunk-R2VLGNFD.js → chunk-IB63U6BM.js} +5 -1
- package/dist/chunk-IB63U6BM.js.map +1 -0
- package/dist/chunk-IXTENA2H.js +235 -0
- package/dist/chunk-IXTENA2H.js.map +1 -0
- package/dist/{chunk-BJJ5BQO6.js → chunk-JTYIX6OD.js} +3 -4
- package/dist/{chunk-5JXAZP7H.js → chunk-NUF2PKJO.js} +2 -1
- package/dist/{chunk-KYH4KPE5.js → chunk-O25VWJCG.js} +26 -26
- package/dist/{chunk-BUDHTDKL.js → chunk-OCN27NJV.js} +6 -6
- package/dist/{chunk-GSDZRCGF.js → chunk-OZHJ3FLR.js} +4 -4
- package/dist/{chunk-X3OOVSPX.js → chunk-RSBN67PA.js} +2 -4
- package/dist/{chunk-5JMKIDMM.js → chunk-SFGXAZ3M.js} +3 -3
- package/dist/{chunk-POF7HPRV.js → chunk-TDDN5GXR.js} +3 -3
- package/dist/{chunk-STND72DS.js → chunk-UFPJBS4C.js} +4 -4
- package/dist/chunk-UFPJBS4C.js.map +1 -0
- package/dist/{chunk-A6KCZPNQ.js → chunk-UY6CGULW.js} +2 -2
- package/dist/{chunk-A6KCZPNQ.js.map → chunk-UY6CGULW.js.map} +1 -1
- package/dist/{chunk-VRRLTZ2Q.js → chunk-VWY3U732.js} +40 -17
- package/dist/chunk-VWY3U732.js.map +1 -0
- package/dist/{chunk-6BZLSRNU.js → chunk-XWHXX2BI.js} +6 -6
- package/dist/{chunk-V4WWTZHZ.js → chunk-ZE7KOO7A.js} +7 -7
- package/dist/{cli-HK2XAWNW.js → cli-Y2HBOSGK.js} +57 -60
- package/dist/{cli-HK2XAWNW.js.map → cli-Y2HBOSGK.js.map} +1 -1
- package/dist/{config-LYCHHNAJ.js → config-WDGMZKHU.js} +4 -4
- package/dist/{doctor-2KPUQURC.js → doctor-CSIWKWM2.js} +9 -9
- package/dist/{edit-TST3OCKQ.js → edit-E7N6F3OY.js} +15 -15
- package/dist/fund-OKK627GL.js +38 -0
- package/dist/index.js +1 -1
- package/dist/{inspect-TPTHVPBB.js → inspect-573WHEV4.js} +13 -13
- package/dist/{install-PT3XEDJ6.js → install-SQAYMNQC.js} +88 -823
- package/dist/install-SQAYMNQC.js.map +1 -0
- package/dist/{outcome-NPNSF2Q7.js → outcome-W3KYGF23.js} +9 -9
- package/dist/{publish-XP5SEWST.js → publish-N5U4XYVA.js} +16 -17
- package/dist/{read-D4VXRWOG.js → read-PJ7Z6UGF.js} +18 -18
- package/dist/{run-3IPGEXW7.js → run-FSO3MMXN.js} +71 -90
- package/dist/{run-3IPGEXW7.js.map → run-FSO3MMXN.js.map} +1 -1
- package/dist/{search-YOBD6VDI.js → search-ZWOP4EGK.js} +10 -11
- package/dist/{send-BWNP6WN4.js → send-F34ZDXDZ.js} +5 -5
- package/dist/{session-GZEZBOMI.js → session-4N4ZT3AH.js} +13 -13
- package/dist/{skill-heal-OK6YALW6.js → skill-heal-XBEK272G.js} +3 -3
- package/dist/uninstall-BTKPHPDL.js +68 -0
- package/dist/uninstall-BTKPHPDL.js.map +1 -0
- package/dist/{wallet-YEGQBWWL.js → wallet-UL4P2JRO.js} +3 -3
- package/dist/{wallet-5RHDFPN2.js → wallet-WJ6UP5OU.js} +5 -5
- package/docs/agent-permissions.md +42 -29
- package/package.json +1 -1
- package/skills/tenjin-publish/SKILL.md +49 -36
- package/skills/tenjin-search/SKILL.md +34 -28
- package/dist/candidate-7LAELUQD.js +0 -23
- package/dist/chunk-2GSRYTZS.js +0 -127
- package/dist/chunk-2GSRYTZS.js.map +0 -1
- package/dist/chunk-5SE6BJRP.js.map +0 -1
- package/dist/chunk-AWQ6A4CI.js.map +0 -1
- package/dist/chunk-JSSIMGQT.js.map +0 -1
- package/dist/chunk-R2VLGNFD.js.map +0 -1
- package/dist/chunk-STND72DS.js.map +0 -1
- package/dist/chunk-TEL27PR5.js +0 -124
- package/dist/chunk-TEL27PR5.js.map +0 -1
- package/dist/chunk-TWRYSGAW.js.map +0 -1
- package/dist/chunk-VRRLTZ2Q.js.map +0 -1
- package/dist/chunk-ZUAQRIVP.js.map +0 -1
- package/dist/install-PT3XEDJ6.js.map +0 -1
- /package/dist/{buy-FMDBZ4NY.js.map → buy-THMVOPUH.js.map} +0 -0
- /package/dist/{chunk-7WDY4AXV.js.map → chunk-6BGYHARE.js.map} +0 -0
- /package/dist/{chunk-UOJRKQTZ.js.map → chunk-6UY2UQMY.js.map} +0 -0
- /package/dist/{chunk-GECSWJ7O.js.map → chunk-CNUXRXI2.js.map} +0 -0
- /package/dist/{chunk-O6CAUZGY.js.map → chunk-EDVI7RRD.js.map} +0 -0
- /package/dist/{chunk-MD7WGYYI.js.map → chunk-GKV6VZSZ.js.map} +0 -0
- /package/dist/{chunk-BJJ5BQO6.js.map → chunk-JTYIX6OD.js.map} +0 -0
- /package/dist/{chunk-5JXAZP7H.js.map → chunk-NUF2PKJO.js.map} +0 -0
- /package/dist/{chunk-KYH4KPE5.js.map → chunk-O25VWJCG.js.map} +0 -0
- /package/dist/{chunk-BUDHTDKL.js.map → chunk-OCN27NJV.js.map} +0 -0
- /package/dist/{chunk-GSDZRCGF.js.map → chunk-OZHJ3FLR.js.map} +0 -0
- /package/dist/{chunk-X3OOVSPX.js.map → chunk-RSBN67PA.js.map} +0 -0
- /package/dist/{chunk-5JMKIDMM.js.map → chunk-SFGXAZ3M.js.map} +0 -0
- /package/dist/{chunk-POF7HPRV.js.map → chunk-TDDN5GXR.js.map} +0 -0
- /package/dist/{chunk-6BZLSRNU.js.map → chunk-XWHXX2BI.js.map} +0 -0
- /package/dist/{chunk-V4WWTZHZ.js.map → chunk-ZE7KOO7A.js.map} +0 -0
- /package/dist/{candidate-7LAELUQD.js.map → config-WDGMZKHU.js.map} +0 -0
- /package/dist/{config-LYCHHNAJ.js.map → doctor-CSIWKWM2.js.map} +0 -0
- /package/dist/{doctor-2KPUQURC.js.map → edit-E7N6F3OY.js.map} +0 -0
- /package/dist/{edit-TST3OCKQ.js.map → fund-OKK627GL.js.map} +0 -0
- /package/dist/{inspect-TPTHVPBB.js.map → inspect-573WHEV4.js.map} +0 -0
- /package/dist/{outcome-NPNSF2Q7.js.map → outcome-W3KYGF23.js.map} +0 -0
- /package/dist/{publish-XP5SEWST.js.map → publish-N5U4XYVA.js.map} +0 -0
- /package/dist/{read-D4VXRWOG.js.map → read-PJ7Z6UGF.js.map} +0 -0
- /package/dist/{search-YOBD6VDI.js.map → search-ZWOP4EGK.js.map} +0 -0
- /package/dist/{send-BWNP6WN4.js.map → send-F34ZDXDZ.js.map} +0 -0
- /package/dist/{session-GZEZBOMI.js.map → session-4N4ZT3AH.js.map} +0 -0
- /package/dist/{skill-heal-OK6YALW6.js.map → skill-heal-XBEK272G.js.map} +0 -0
- /package/dist/{wallet-5RHDFPN2.js.map → wallet-UL4P2JRO.js.map} +0 -0
- /package/dist/{wallet-YEGQBWWL.js.map → wallet-WJ6UP5OU.js.map} +0 -0
|
@@ -1,31 +1,35 @@
|
|
|
1
1
|
import { createRequire as __tenjinCreateRequire } from 'node:module'; const require = __tenjinCreateRequire(import.meta.url);
|
|
2
|
+
import {
|
|
3
|
+
runBuy
|
|
4
|
+
} from "./chunk-O25VWJCG.js";
|
|
5
|
+
import {
|
|
6
|
+
runPublish
|
|
7
|
+
} from "./chunk-2SDUV6MQ.js";
|
|
2
8
|
import {
|
|
3
9
|
runEdit
|
|
4
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-OCN27NJV.js";
|
|
11
|
+
import "./chunk-IAFYUFIC.js";
|
|
5
12
|
import {
|
|
6
13
|
runOutcome
|
|
7
|
-
} from "./chunk-
|
|
8
|
-
import {
|
|
9
|
-
runCandidateAdd,
|
|
10
|
-
runCandidateDrop,
|
|
11
|
-
runCandidateList
|
|
12
|
-
} from "./chunk-2GSRYTZS.js";
|
|
14
|
+
} from "./chunk-GKV6VZSZ.js";
|
|
13
15
|
import {
|
|
14
|
-
|
|
15
|
-
} from "./chunk-
|
|
16
|
+
runFund
|
|
17
|
+
} from "./chunk-IXTENA2H.js";
|
|
18
|
+
import "./chunk-QW2Q2KAH.js";
|
|
16
19
|
import {
|
|
17
|
-
|
|
18
|
-
} from "./chunk-
|
|
19
|
-
import "./chunk-GSDZRCGF.js";
|
|
20
|
-
import "./chunk-V4WWTZHZ.js";
|
|
20
|
+
runSearch
|
|
21
|
+
} from "./chunk-GUUAYR3K.js";
|
|
21
22
|
import {
|
|
22
|
-
|
|
23
|
-
} from "./chunk-
|
|
24
|
-
import "./chunk-
|
|
25
|
-
import "./chunk-
|
|
23
|
+
runInspect
|
|
24
|
+
} from "./chunk-XWHXX2BI.js";
|
|
25
|
+
import "./chunk-OZHJ3FLR.js";
|
|
26
|
+
import "./chunk-ZE7KOO7A.js";
|
|
26
27
|
import "./chunk-SGK2B724.js";
|
|
27
|
-
import "./chunk-
|
|
28
|
-
import "./chunk-
|
|
28
|
+
import "./chunk-6UY2UQMY.js";
|
|
29
|
+
import "./chunk-4NTZETIL.js";
|
|
30
|
+
import "./chunk-EDVI7RRD.js";
|
|
31
|
+
import "./chunk-TDDN5GXR.js";
|
|
32
|
+
import "./chunk-6BGYHARE.js";
|
|
29
33
|
import "./chunk-S5RYMCV6.js";
|
|
30
34
|
import "./chunk-POJRB2AE.js";
|
|
31
35
|
import "./chunk-YLYINX2H.js";
|
|
@@ -33,32 +37,25 @@ import {
|
|
|
33
37
|
runWalletBalance,
|
|
34
38
|
runWalletCreate,
|
|
35
39
|
runWalletShow
|
|
36
|
-
} from "./chunk-
|
|
37
|
-
import "./chunk-5JXAZP7H.js";
|
|
38
|
-
import "./chunk-QW2Q2KAH.js";
|
|
40
|
+
} from "./chunk-UFPJBS4C.js";
|
|
39
41
|
import "./chunk-MJZZTKCC.js";
|
|
40
|
-
import "./chunk-
|
|
41
|
-
import "./chunk-
|
|
42
|
-
import {
|
|
43
|
-
runSearch
|
|
44
|
-
} from "./chunk-JSSIMGQT.js";
|
|
45
|
-
import "./chunk-UOJRKQTZ.js";
|
|
46
|
-
import "./chunk-TEL27PR5.js";
|
|
47
|
-
import "./chunk-O6CAUZGY.js";
|
|
48
|
-
import "./chunk-5SE6BJRP.js";
|
|
49
|
-
import "./chunk-DKQMJTG7.js";
|
|
42
|
+
import "./chunk-CNUXRXI2.js";
|
|
43
|
+
import "./chunk-3GSZUADW.js";
|
|
50
44
|
import {
|
|
51
45
|
package_default
|
|
52
|
-
} from "./chunk-
|
|
46
|
+
} from "./chunk-UY6CGULW.js";
|
|
47
|
+
import "./chunk-NUF2PKJO.js";
|
|
53
48
|
import "./chunk-PZSUWDF2.js";
|
|
49
|
+
import "./chunk-Y7ERTA7D.js";
|
|
50
|
+
import "./chunk-KZAAWQNP.js";
|
|
54
51
|
import {
|
|
55
52
|
buildFailureEnvelope,
|
|
56
53
|
buildSuccessEnvelope,
|
|
57
54
|
normalizeError
|
|
58
|
-
} from "./chunk-
|
|
59
|
-
import "./chunk-
|
|
55
|
+
} from "./chunk-IB63U6BM.js";
|
|
56
|
+
import "./chunk-JTYIX6OD.js";
|
|
60
57
|
import "./chunk-FKSAUOJU.js";
|
|
61
|
-
import "./chunk-
|
|
58
|
+
import "./chunk-ALUNME53.js";
|
|
62
59
|
import {
|
|
63
60
|
dataDir
|
|
64
61
|
} from "./chunk-ZQIQ55KK.js";
|
|
@@ -68,7 +65,6 @@ import {
|
|
|
68
65
|
$ZodObject,
|
|
69
66
|
$ZodType,
|
|
70
67
|
$constructor,
|
|
71
|
-
CliError,
|
|
72
68
|
ZodOptional,
|
|
73
69
|
_enum,
|
|
74
70
|
_null,
|
|
@@ -16570,13 +16566,18 @@ var outcomeInput = {
|
|
|
16570
16566
|
};
|
|
16571
16567
|
var publishInput = {
|
|
16572
16568
|
file: external_exports.string().optional().describe("Path to the Markdown file to publish"),
|
|
16573
|
-
|
|
16569
|
+
searchId: external_exports.string().optional().describe(
|
|
16570
|
+
"The search this file answers; closes its open loop and prefills its question when the draft names none"
|
|
16571
|
+
),
|
|
16574
16572
|
draft: external_exports.boolean().optional().describe("Save as a private draft instead of publishing"),
|
|
16575
16573
|
yes: external_exports.boolean().optional().describe(
|
|
16576
16574
|
"Clear soft findings and the review confirm after user approval (never a hard block)"
|
|
16577
16575
|
),
|
|
16578
16576
|
mode: external_exports.string().optional().describe("Consent mode for this run: review | auto | full-auto"),
|
|
16579
16577
|
price: external_exports.coerce.string().optional().describe('Post price in decimal USD, e.g. "0.10"'),
|
|
16578
|
+
excerpt: external_exports.string().optional().describe(
|
|
16579
|
+
"The public preview a non-buyer reads (max 500 chars); omit to let the server derive one from the body"
|
|
16580
|
+
),
|
|
16580
16581
|
question: external_exports.array(external_exports.string()).optional().describe("Questions this piece answers"),
|
|
16581
16582
|
task: external_exports.array(external_exports.string()).optional().describe("Tasks this piece supports"),
|
|
16582
16583
|
scope: external_exports.string().optional().describe("What the piece covers (card scope)"),
|
|
@@ -16616,22 +16617,12 @@ var editInput = {
|
|
|
16616
16617
|
"Card fields to clear: scope, exclusions, asOf, validUntil, provenance, methodology, supersedesPostId, questionsAnswered, tasksSupported, appliesTo"
|
|
16617
16618
|
)
|
|
16618
16619
|
};
|
|
16619
|
-
var candidateAddInput = {
|
|
16620
|
-
file: external_exports.string().optional().describe("add: path to the Markdown draft to park"),
|
|
16621
|
-
searchId: external_exports.string().optional().describe("add: the searchId whose unmet demand this draft answers"),
|
|
16622
|
-
question: external_exports.string().optional().describe("add: the question this draft answers")
|
|
16623
|
-
};
|
|
16624
|
-
var candidateDropInput = {
|
|
16625
|
-
id: external_exports.string().optional().describe("drop: the candidate id to discard")
|
|
16626
|
-
};
|
|
16627
|
-
var candidateInput = {
|
|
16628
|
-
action: external_exports.enum(["add", "list", "drop"]).describe("add | list | drop"),
|
|
16629
|
-
...candidateAddInput,
|
|
16630
|
-
...candidateDropInput
|
|
16631
|
-
};
|
|
16632
16620
|
var walletInput = {
|
|
16633
16621
|
action: external_exports.enum(["show", "balance", "create"]).describe("show | balance | create")
|
|
16634
16622
|
};
|
|
16623
|
+
var fundInput = {
|
|
16624
|
+
amountUsd: external_exports.string().optional().describe('optional USD preset for the checkout, e.g. "5" (Coinbase clamps to its own floor)')
|
|
16625
|
+
};
|
|
16635
16626
|
function buildTenjinMcpServer(opts = {}) {
|
|
16636
16627
|
const server = new McpServer(
|
|
16637
16628
|
{ name: "tenjin-cli", version: package_default.version },
|
|
@@ -16739,7 +16730,7 @@ function buildTenjinMcpServer(opts = {}) {
|
|
|
16739
16730
|
"tenjin_publish",
|
|
16740
16731
|
{
|
|
16741
16732
|
title: "Publish a piece",
|
|
16742
|
-
description: "Publish a Markdown file
|
|
16733
|
+
description: "Publish a Markdown file as a paid or free piece with an optional answer card. Gated by a deterministic local scan and your publish.mode consent: in review mode, or on a soft finding, it returns NEEDS_CONFIRMATION with the exact payload (mode, price, findings, card, target) for you to show the user before re-calling with yes:true. A hard block (a live secret) returns PUBLISH_BLOCKED and is NEVER cleared by yes or any mode. The wallet signs the write locally; the key never leaves this machine.",
|
|
16743
16734
|
inputSchema: publishInput,
|
|
16744
16735
|
annotations: { readOnlyHint: false, destructiveHint: false, openWorldHint: true }
|
|
16745
16736
|
},
|
|
@@ -16748,11 +16739,12 @@ function buildTenjinMcpServer(opts = {}) {
|
|
|
16748
16739
|
(ctx) => runPublish(
|
|
16749
16740
|
{
|
|
16750
16741
|
...args.file !== void 0 ? { file: args.file } : {},
|
|
16751
|
-
...args.
|
|
16742
|
+
...args.searchId !== void 0 ? { searchId: args.searchId } : {},
|
|
16752
16743
|
...args.draft !== void 0 ? { draft: args.draft } : {},
|
|
16753
16744
|
...args.yes !== void 0 ? { yes: args.yes } : {},
|
|
16754
16745
|
...args.mode !== void 0 ? { mode: args.mode } : {},
|
|
16755
16746
|
...args.price !== void 0 ? { price: args.price } : {},
|
|
16747
|
+
...args.excerpt !== void 0 ? { excerpt: args.excerpt } : {},
|
|
16756
16748
|
...args.question !== void 0 ? { question: args.question } : {},
|
|
16757
16749
|
...args.task !== void 0 ? { task: args.task } : {},
|
|
16758
16750
|
...args.scope !== void 0 ? { scope: args.scope } : {},
|
|
@@ -16809,42 +16801,6 @@ function buildTenjinMcpServer(opts = {}) {
|
|
|
16809
16801
|
)
|
|
16810
16802
|
)
|
|
16811
16803
|
);
|
|
16812
|
-
server.registerTool(
|
|
16813
|
-
"tenjin_candidate",
|
|
16814
|
-
{
|
|
16815
|
-
title: "Manage publish candidates",
|
|
16816
|
-
description: "Manage local publish candidates: parked Markdown drafts that never upload on their own. action:add parks a file tied to a searchId; action:list shows pending candidates; action:drop discards one. Nothing reaches the network until a later tenjin_publish, under the same scan and consent gates.",
|
|
16817
|
-
inputSchema: candidateInput,
|
|
16818
|
-
annotations: { readOnlyHint: false, openWorldHint: false }
|
|
16819
|
-
},
|
|
16820
|
-
async (args) => runCore(`candidate.${args.action}`, (ctx) => {
|
|
16821
|
-
if (args.action === "add") {
|
|
16822
|
-
if (args.file === void 0 || args.searchId === void 0) {
|
|
16823
|
-
throw new CliError("USAGE", "candidate add needs both file and searchId.", {
|
|
16824
|
-
fix: "Pass file (a Markdown path) and searchId (from a prior search)."
|
|
16825
|
-
});
|
|
16826
|
-
}
|
|
16827
|
-
return runCandidateAdd(
|
|
16828
|
-
{
|
|
16829
|
-
file: args.file,
|
|
16830
|
-
searchId: args.searchId,
|
|
16831
|
-
...args.question !== void 0 ? { question: args.question } : {}
|
|
16832
|
-
},
|
|
16833
|
-
ctx,
|
|
16834
|
-
deps.candidate
|
|
16835
|
-
);
|
|
16836
|
-
}
|
|
16837
|
-
if (args.action === "drop") {
|
|
16838
|
-
if (args.id === void 0) {
|
|
16839
|
-
throw new CliError("USAGE", "candidate drop needs an id.", {
|
|
16840
|
-
fix: "Pass the id of a candidate from `candidate list`."
|
|
16841
|
-
});
|
|
16842
|
-
}
|
|
16843
|
-
return runCandidateDrop({ id: args.id }, ctx);
|
|
16844
|
-
}
|
|
16845
|
-
return runCandidateList(ctx, deps.candidate);
|
|
16846
|
-
})
|
|
16847
|
-
);
|
|
16848
16804
|
server.registerTool(
|
|
16849
16805
|
"tenjin_wallet",
|
|
16850
16806
|
{
|
|
@@ -16859,6 +16815,31 @@ function buildTenjinMcpServer(opts = {}) {
|
|
|
16859
16815
|
return runWalletShow(ctx, deps.wallet);
|
|
16860
16816
|
})
|
|
16861
16817
|
);
|
|
16818
|
+
server.registerTool(
|
|
16819
|
+
"tenjin_fund",
|
|
16820
|
+
{
|
|
16821
|
+
title: "Mint a card-funding checkout link",
|
|
16822
|
+
description: "Mint a Coinbase Onramp checkout link that card-funds THIS wallet (the server refuses any other destination). Minting moves no money: funds move only when the HUMAN opens the link and completes payment on pay.coinbase.com, so always hand the returned checkoutUrl to the user and never treat minting as funding. The link is single-use, expires in ~5 minutes, works only from this machine\u2019s network, and completing it requires a Coinbase account. Confirm arrival afterwards with tenjin_wallet action:balance.",
|
|
16823
|
+
inputSchema: fundInput,
|
|
16824
|
+
annotations: { readOnlyHint: false, openWorldHint: true }
|
|
16825
|
+
},
|
|
16826
|
+
async (args) => runCore(
|
|
16827
|
+
"fund",
|
|
16828
|
+
(ctx) => runFund(ctx, {
|
|
16829
|
+
...deps.fund,
|
|
16830
|
+
...args.amountUsd !== void 0 ? { amountUsd: args.amountUsd } : {},
|
|
16831
|
+
// Pinned LAST so no injected dep re-enables them on this surface: no
|
|
16832
|
+
// browser open from a possibly-headless stdio server, no minutes-long
|
|
16833
|
+
// poll inside a tool call. `runFund` also defaults both off when
|
|
16834
|
+
// stdout is not a TTY, which it never is here (sinkIo) — these lines
|
|
16835
|
+
// are the explicit belt to that braces, and a test asserts the two
|
|
16836
|
+
// values actually reach `runFund` rather than inferring it from
|
|
16837
|
+
// behaviour the TTY default would produce anyway.
|
|
16838
|
+
open: false,
|
|
16839
|
+
wait: false
|
|
16840
|
+
})
|
|
16841
|
+
)
|
|
16842
|
+
);
|
|
16862
16843
|
return server;
|
|
16863
16844
|
}
|
|
16864
16845
|
function ok(command, result) {
|
|
@@ -16899,4 +16880,4 @@ async function runMcpServer(opts = {}) {
|
|
|
16899
16880
|
export {
|
|
16900
16881
|
runMcpServer
|
|
16901
16882
|
};
|
|
16902
|
-
//# sourceMappingURL=run-
|
|
16883
|
+
//# sourceMappingURL=run-FSO3MMXN.js.map
|