tenjin-cli 0.1.0-alpha.29 → 0.1.0-alpha.30

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.
Files changed (110) hide show
  1. package/README.md +7 -5
  2. package/dist/{chunk-25GGN553.js → chunk-3O2BQIF6.js} +86 -22
  3. package/dist/chunk-3O2BQIF6.js.map +1 -0
  4. package/dist/{chunk-R4AO7GC2.js → chunk-5LJCEMFD.js} +14 -12
  5. package/dist/{chunk-R4AO7GC2.js.map → chunk-5LJCEMFD.js.map} +1 -1
  6. package/dist/{chunk-QTGUDCIR.js → chunk-AEG2PXBP.js} +3 -3
  7. package/dist/{chunk-AMEUXNJT.js → chunk-AWFUPKTM.js} +2 -2
  8. package/dist/{chunk-XJQ6CH7X.js → chunk-EBVIKMCH.js} +2 -2
  9. package/dist/{chunk-XDYKZRLN.js → chunk-HE2MS4QO.js} +6 -6
  10. package/dist/{chunk-RJEPZMYY.js → chunk-IOODYAXL.js} +3 -3
  11. package/dist/{chunk-SBL4THYT.js → chunk-JMM6YE7J.js} +190 -90
  12. package/dist/chunk-JMM6YE7J.js.map +1 -0
  13. package/dist/{chunk-VKQXVCZR.js → chunk-KHE6L6TD.js} +3 -3
  14. package/dist/chunk-KOGZDMHO.js +21 -0
  15. package/dist/chunk-KOGZDMHO.js.map +1 -0
  16. package/dist/{chunk-TROZ6HL4.js → chunk-KYFZTGMC.js} +2 -2
  17. package/dist/{chunk-LX5OT4TQ.js → chunk-NZIP4PA2.js} +2 -2
  18. package/dist/chunk-O2FRQ2L2.js +168 -0
  19. package/dist/chunk-O2FRQ2L2.js.map +1 -0
  20. package/dist/{chunk-3FY5HG7R.js → chunk-OK2TDZQU.js} +4 -4
  21. package/dist/{chunk-ZQNGTLOC.js → chunk-OSYTBCUC.js} +7 -5
  22. package/dist/{chunk-ZQNGTLOC.js.map → chunk-OSYTBCUC.js.map} +1 -1
  23. package/dist/{chunk-MRUPDSUM.js → chunk-PAYV4XUA.js} +3 -5
  24. package/dist/chunk-PAYV4XUA.js.map +1 -0
  25. package/dist/{chunk-USOLCBKC.js → chunk-QUVVWYJW.js} +7 -5
  26. package/dist/{chunk-USOLCBKC.js.map → chunk-QUVVWYJW.js.map} +1 -1
  27. package/dist/{chunk-MOG7PB3A.js → chunk-RAULEAZ6.js} +3 -3
  28. package/dist/{chunk-MG3G644T.js → chunk-SPAVAYSW.js} +3 -3
  29. package/dist/{chunk-4FYMDRD3.js → chunk-TTBKWWTV.js} +22 -20
  30. package/dist/chunk-TTBKWWTV.js.map +1 -0
  31. package/dist/{chunk-OOSRB3OF.js → chunk-U6YQ6FRI.js} +2 -2
  32. package/dist/{chunk-P4LVLFO4.js → chunk-VFMQTSXG.js} +2 -2
  33. package/dist/{chunk-LRCJ2IZ5.js → chunk-VUFAK2LW.js} +2 -2
  34. package/dist/{chunk-LRCJ2IZ5.js.map → chunk-VUFAK2LW.js.map} +1 -1
  35. package/dist/{chunk-WM7TJEBP.js → chunk-VZGAONSJ.js} +7 -5
  36. package/dist/{chunk-WM7TJEBP.js.map → chunk-VZGAONSJ.js.map} +1 -1
  37. package/dist/{chunk-VVAHFCX2.js → chunk-WO5BJNIB.js} +45 -194
  38. package/dist/chunk-WO5BJNIB.js.map +1 -0
  39. package/dist/chunk-WVUSXNIE.js +39 -0
  40. package/dist/chunk-WVUSXNIE.js.map +1 -0
  41. package/dist/chunk-XKESD27X.js +10 -0
  42. package/dist/chunk-XKESD27X.js.map +1 -0
  43. package/dist/{chunk-SFEQGENI.js → chunk-YFQOA5AU.js} +7 -2
  44. package/dist/{chunk-SFEQGENI.js.map → chunk-YFQOA5AU.js.map} +1 -1
  45. package/dist/{cli-JPTDHGRX.js → cli-O5SN7ZJ4.js} +38 -30
  46. package/dist/{cli-JPTDHGRX.js.map → cli-O5SN7ZJ4.js.map} +1 -1
  47. package/dist/{config-YYKDH2TH.js → config-OJQI27LT.js} +13 -12
  48. package/dist/{doctor-SSTXGCHX.js → doctor-IQQJHGGM.js} +36 -62
  49. package/dist/doctor-IQQJHGGM.js.map +1 -0
  50. package/dist/{fund-QWVWRVDK.js → fund-WEV6DMTD.js} +17 -12
  51. package/dist/{fund-QWVWRVDK.js.map → fund-WEV6DMTD.js.map} +1 -1
  52. package/dist/hook-command-D2P3ILRV.js +32 -0
  53. package/dist/hosts/claude/.claude-plugin/marketplace.json +2 -2
  54. package/dist/hosts/claude/tenjin/.claude-plugin/plugin.json +2 -2
  55. package/dist/index.js +4 -4
  56. package/dist/{install-2GXXD4DK.js → install-TUCRF32I.js} +23 -14
  57. package/dist/{install-identity-FK3YF227.js → install-identity-WHPNMNMQ.js} +7 -6
  58. package/dist/{install-wallet-TC22U52X.js → install-wallet-MA27FTQ5.js} +11 -10
  59. package/dist/{install-wallet-TC22U52X.js.map → install-wallet-MA27FTQ5.js.map} +1 -1
  60. package/dist/{mcp-42H2F4NY.js → mcp-QML7ZMPH.js} +33 -40
  61. package/dist/mcp-QML7ZMPH.js.map +1 -0
  62. package/dist/{package-6DJA3Y2O.js → package-LGKYOEPV.js} +2 -2
  63. package/dist/{pay-LSDJBIAZ.js → pay-2C2UBBXJ.js} +14 -13
  64. package/dist/{payments-SPECLBRQ.js → payments-C44QUFXU.js} +10 -9
  65. package/dist/{payments-SPECLBRQ.js.map → payments-C44QUFXU.js.map} +1 -1
  66. package/dist/{send-MHAOLPK3.js → send-KVJX4XIR.js} +9 -8
  67. package/dist/{send-MHAOLPK3.js.map → send-KVJX4XIR.js.map} +1 -1
  68. package/dist/{status-O2RWLPS5.js → status-S7C3WMSH.js} +10 -9
  69. package/dist/{status-O2RWLPS5.js.map → status-S7C3WMSH.js.map} +1 -1
  70. package/dist/{status-line-45TVCRM3.js → status-line-YR2T5HC4.js} +6 -5
  71. package/dist/{status-line-45TVCRM3.js.map → status-line-YR2T5HC4.js.map} +1 -1
  72. package/dist/{uninstall-VOK2Z5M4.js → uninstall-HY6LKIIT.js} +17 -14
  73. package/dist/{uninstall-VOK2Z5M4.js.map → uninstall-HY6LKIIT.js.map} +1 -1
  74. package/dist/{update-FGP3HNLD.js → update-OJV22LR3.js} +17 -14
  75. package/dist/usdc-JK4RRFFQ.js +39 -0
  76. package/dist/{wallet-DA7OFNEW.js → wallet-PD2IMZDU.js} +11 -10
  77. package/dist/wallet-PD2IMZDU.js.map +1 -0
  78. package/docs/agent-permissions.md +16 -4
  79. package/package.json +1 -1
  80. package/dist/chunk-25GGN553.js.map +0 -1
  81. package/dist/chunk-4FYMDRD3.js.map +0 -1
  82. package/dist/chunk-EWLU46J6.js +0 -100
  83. package/dist/chunk-EWLU46J6.js.map +0 -1
  84. package/dist/chunk-MRUPDSUM.js.map +0 -1
  85. package/dist/chunk-SBL4THYT.js.map +0 -1
  86. package/dist/chunk-VVAHFCX2.js.map +0 -1
  87. package/dist/doctor-SSTXGCHX.js.map +0 -1
  88. package/dist/hook-command-VWJXRT7H.js +0 -31
  89. package/dist/mcp-42H2F4NY.js.map +0 -1
  90. /package/dist/{chunk-QTGUDCIR.js.map → chunk-AEG2PXBP.js.map} +0 -0
  91. /package/dist/{chunk-AMEUXNJT.js.map → chunk-AWFUPKTM.js.map} +0 -0
  92. /package/dist/{chunk-XJQ6CH7X.js.map → chunk-EBVIKMCH.js.map} +0 -0
  93. /package/dist/{chunk-XDYKZRLN.js.map → chunk-HE2MS4QO.js.map} +0 -0
  94. /package/dist/{chunk-RJEPZMYY.js.map → chunk-IOODYAXL.js.map} +0 -0
  95. /package/dist/{chunk-VKQXVCZR.js.map → chunk-KHE6L6TD.js.map} +0 -0
  96. /package/dist/{chunk-TROZ6HL4.js.map → chunk-KYFZTGMC.js.map} +0 -0
  97. /package/dist/{chunk-LX5OT4TQ.js.map → chunk-NZIP4PA2.js.map} +0 -0
  98. /package/dist/{chunk-3FY5HG7R.js.map → chunk-OK2TDZQU.js.map} +0 -0
  99. /package/dist/{chunk-MOG7PB3A.js.map → chunk-RAULEAZ6.js.map} +0 -0
  100. /package/dist/{chunk-MG3G644T.js.map → chunk-SPAVAYSW.js.map} +0 -0
  101. /package/dist/{chunk-OOSRB3OF.js.map → chunk-U6YQ6FRI.js.map} +0 -0
  102. /package/dist/{chunk-P4LVLFO4.js.map → chunk-VFMQTSXG.js.map} +0 -0
  103. /package/dist/{config-YYKDH2TH.js.map → config-OJQI27LT.js.map} +0 -0
  104. /package/dist/{hook-command-VWJXRT7H.js.map → hook-command-D2P3ILRV.js.map} +0 -0
  105. /package/dist/{install-2GXXD4DK.js.map → install-TUCRF32I.js.map} +0 -0
  106. /package/dist/{install-identity-FK3YF227.js.map → install-identity-WHPNMNMQ.js.map} +0 -0
  107. /package/dist/{package-6DJA3Y2O.js.map → package-LGKYOEPV.js.map} +0 -0
  108. /package/dist/{pay-LSDJBIAZ.js.map → pay-2C2UBBXJ.js.map} +0 -0
  109. /package/dist/{update-FGP3HNLD.js.map → update-OJV22LR3.js.map} +0 -0
  110. /package/dist/{wallet-DA7OFNEW.js.map → usdc-JK4RRFFQ.js.map} +0 -0
@@ -21,10 +21,11 @@ import {
21
21
  toClientEvmSigner,
22
22
  validateResultBody,
23
23
  x402Client
24
- } from "./chunk-R4AO7GC2.js";
24
+ } from "./chunk-5LJCEMFD.js";
25
25
  import {
26
26
  x402HTTPClient
27
27
  } from "./chunk-7EKYXMUO.js";
28
+ import "./chunk-POUWHWID.js";
28
29
  import "./chunk-LHHMV4GU.js";
29
30
  import {
30
31
  DEPOSIT_GATE_TIMEOUT_MS,
@@ -38,7 +39,7 @@ import {
38
39
  storeChoices,
39
40
  storeFullResult,
40
41
  storeSpecs
41
- } from "./chunk-4FYMDRD3.js";
42
+ } from "./chunk-TTBKWWTV.js";
42
43
  import {
43
44
  MAX_MEDIA_BYTES,
44
45
  MAX_MEDIA_FILES,
@@ -52,17 +53,17 @@ import {
52
53
  saveMedia,
53
54
  updatePaidRecord,
54
55
  writeAll
55
- } from "./chunk-3FY5HG7R.js";
56
+ } from "./chunk-OK2TDZQU.js";
56
57
  import {
57
58
  assertPublicHttpsUrl,
58
59
  resolvePublicDestination
59
- } from "./chunk-XJQ6CH7X.js";
60
- import "./chunk-SFEQGENI.js";
60
+ } from "./chunk-EBVIKMCH.js";
61
+ import "./chunk-YFQOA5AU.js";
61
62
  import {
62
63
  clearRouterMemo,
63
64
  readRouterMemo,
64
65
  writeRouterMemo
65
- } from "./chunk-MOG7PB3A.js";
66
+ } from "./chunk-RAULEAZ6.js";
66
67
  import {
67
68
  FileClientChannelStorage
68
69
  } from "./chunk-YHKXNYTB.js";
@@ -71,15 +72,14 @@ import "./chunk-EL56RW2J.js";
71
72
  import {
72
73
  resolveSpendAuthorizer,
73
74
  resolveWalletProvider
74
- } from "./chunk-ZQNGTLOC.js";
75
+ } from "./chunk-OSYTBCUC.js";
75
76
  import {
76
77
  createLocalSpendAuthorizer,
77
78
  releaseUnchargedExposure
78
- } from "./chunk-QTGUDCIR.js";
79
- import "./chunk-LX5OT4TQ.js";
79
+ } from "./chunk-AEG2PXBP.js";
80
+ import "./chunk-NZIP4PA2.js";
80
81
  import "./chunk-TTNESUPQ.js";
81
82
  import "./chunk-HPWO4O6S.js";
82
- import "./chunk-POUWHWID.js";
83
83
  import "./chunk-XZKD7DIF.js";
84
84
  import {
85
85
  ALL_CHOICES,
@@ -94,7 +94,7 @@ import {
94
94
  isUnreachable,
95
95
  reportSpecOutcome,
96
96
  requestDecision
97
- } from "./chunk-VKQXVCZR.js";
97
+ } from "./chunk-KHE6L6TD.js";
98
98
  import {
99
99
  HOOK_KINDS,
100
100
  HOOK_TOOL,
@@ -103,13 +103,11 @@ import {
103
103
  } from "./chunk-AKWGE6JQ.js";
104
104
  import {
105
105
  MCP_SERVER_NAME,
106
- launchedByPlugin,
107
- unpaidNotice
108
- } from "./chunk-EWLU46J6.js";
106
+ launchedByPlugin
107
+ } from "./chunk-WVUSXNIE.js";
109
108
  import {
110
109
  CHANNEL_DEPOSIT_ATOMIC,
111
110
  FEE_REQUIRED,
112
- MIN_DEPOSIT_ATOMIC,
113
111
  ROUTE_PAID_PATH,
114
112
  ROUTING_DEPOSIT_KEY,
115
113
  ROUTING_FEE_ATOMIC,
@@ -119,12 +117,12 @@ import {
119
117
  payerDir,
120
118
  refusedWhy,
121
119
  unpaidSentence
122
- } from "./chunk-MRUPDSUM.js";
120
+ } from "./chunk-PAYV4XUA.js";
123
121
  import {
124
122
  withFileLock
125
123
  } from "./chunk-MEFB5KHA.js";
124
+ import "./chunk-KYFZTGMC.js";
126
125
  import "./chunk-2SNUOHAT.js";
127
- import "./chunk-TROZ6HL4.js";
128
126
  import {
129
127
  createPublicClient,
130
128
  http
@@ -142,10 +140,10 @@ import {
142
140
  import {
143
141
  SILENT_FOOTER,
144
142
  openLookupFooter
145
- } from "./chunk-OOSRB3OF.js";
143
+ } from "./chunk-U6YQ6FRI.js";
146
144
  import {
147
145
  routerSettings
148
- } from "./chunk-MG3G644T.js";
146
+ } from "./chunk-SPAVAYSW.js";
149
147
  import {
150
148
  markSessionServed,
151
149
  sessionServedByPlugin
@@ -155,11 +153,11 @@ import {
155
153
  composeUserAgent,
156
154
  httpRequest,
157
155
  isBinaryContentType
158
- } from "./chunk-RJEPZMYY.js";
156
+ } from "./chunk-IOODYAXL.js";
159
157
  import "./chunk-2I4QTOLB.js";
160
158
  import {
161
159
  resolveContextSettings
162
- } from "./chunk-AMEUXNJT.js";
160
+ } from "./chunk-AWFUPKTM.js";
163
161
  import {
164
162
  $ZodObject,
165
163
  $ZodType,
@@ -178,7 +176,6 @@ import {
178
176
  intersection,
179
177
  iso_exports,
180
178
  literal,
181
- loadRawConfig,
182
179
  looseObject,
183
180
  normalizeParams,
184
181
  number,
@@ -188,8 +185,6 @@ import {
188
185
  parseAsync,
189
186
  parseUsdToAtomic,
190
187
  preprocess,
191
- readUsdcBalance,
192
- readUsdcBalanceWithFallback,
193
188
  record,
194
189
  safeParse,
195
190
  safeParseAsync,
@@ -197,9 +192,13 @@ import {
197
192
  toJSONSchema,
198
193
  toMoney,
199
194
  union,
200
- unknown,
195
+ unknown
196
+ } from "./chunk-WO5BJNIB.js";
197
+ import {
198
+ readUsdcBalance,
199
+ readUsdcBalanceWithFallback,
201
200
  writeFileAtomic
202
- } from "./chunk-VVAHFCX2.js";
201
+ } from "./chunk-O2FRQ2L2.js";
203
202
  import {
204
203
  dataDir,
205
204
  downloadsDir,
@@ -207,7 +206,7 @@ import {
207
206
  } from "./chunk-SJLTEINJ.js";
208
207
  import {
209
208
  package_default
210
- } from "./chunk-LRCJ2IZ5.js";
209
+ } from "./chunk-VUFAK2LW.js";
211
210
  import {
212
211
  __toESM
213
212
  } from "./chunk-ZXTAQYNA.js";
@@ -10272,21 +10271,16 @@ var RoutingPayer = class {
10272
10271
  }
10273
10272
  /**
10274
10273
  * THE SDK'S `depositStrategy`, called right before it signs a deposit: the
10275
- * size, and the refusals. The SDK's ceiling ($0.25) comes down to a smaller
10276
- * per-call limit while that still covers {@link MIN_DEPOSIT_ATOMIC}; a wallet
10277
- * that cannot cover it, or a spend the authorizer denies (the daily budget,
10278
- * the creator allowlist), refuses the deposit and the call is not paid.
10274
+ * size, and the refusals. The deposit is always the SDK's ceiling ($0.25); a
10275
+ * wallet that cannot cover it, or a spend the authorizer denies (the per-call
10276
+ * limit, the daily budget, the creator allowlist), refuses it and the call is
10277
+ * not paid.
10279
10278
  */
10280
10279
  async deposit(ctx) {
10281
10280
  const call = this.call;
10282
10281
  if (call === null) this.refuse("no_call");
10283
10282
  const policy = await this.deps.policy();
10284
- const ceiling = BigInt(ctx.maxDeposit ?? CHANNEL_DEPOSIT_ATOMIC.toString());
10285
- const amount = ceiling < policy.maxAutoSpendAtomic ? ceiling : policy.maxAutoSpendAtomic;
10286
- const floor = BigInt(ctx.minimumDepositAmount);
10287
- if (amount < (floor > MIN_DEPOSIT_ATOMIC ? floor : MIN_DEPOSIT_ATOMIC)) {
10288
- this.refuse("limit_below_deposit");
10289
- }
10283
+ const amount = BigInt(ctx.maxDeposit ?? CHANNEL_DEPOSIT_ATOMIC.toString());
10290
10284
  const left = call.until - this.now();
10291
10285
  if (left <= 0) this.refuse("busy");
10292
10286
  const payer = this.channel.payer;
@@ -12005,10 +11999,9 @@ async function requestTool(args, deps) {
12005
11999
  if (isFeeRequired(fresh.decision)) {
12006
12000
  await clearRouterMemo(deps.ctx.dataDir, "paid-path-absent", settings.baseUrl);
12007
12001
  await footer.done("native");
12008
- const raw = await loadRawConfig(deps.ctx.dataDir).catch(() => ({}));
12009
12002
  return fail(
12010
12003
  "native",
12011
- unpaidNotice(fresh.freePath ?? FEE_REQUIRED, raw, "agent") ?? unpaidSentence(FEE_REQUIRED),
12004
+ unpaidSentence(fresh.freePath ?? FEE_REQUIRED) ?? unpaidSentence(FEE_REQUIRED),
12012
12005
  { nextStep: "Tell the user this once, and use your own tools for now." }
12013
12006
  );
12014
12007
  }
@@ -13431,4 +13424,4 @@ export {
13431
13424
  runRouterMcpServer,
13432
13425
  waitsForJobs
13433
13426
  };
13434
- //# sourceMappingURL=mcp-42H2F4NY.js.map
13427
+ //# sourceMappingURL=mcp-QML7ZMPH.js.map