@t2000/cli 0.26.1 → 0.27.0

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.
@@ -1,5 +1,6 @@
1
1
  import { createRequire as __createRequire } from 'module'; import { fileURLToPath as __fileURLToPath } from 'url'; import { dirname as __pathDirname } from 'path'; const require = __createRequire(import.meta.url); const __filename = __fileURLToPath(import.meta.url); const __dirname = __pathDirname(__filename);
2
2
  import {
3
+ ALLOWANCE_FEATURES,
3
4
  ALL_NAVI_ASSETS,
4
5
  BPS_DENOMINATOR,
5
6
  CETUS_USDC_SUI_POOL,
@@ -10,6 +11,8 @@ import {
10
11
  DEFAULT_SAFEGUARD_CONFIG,
11
12
  ETH_TYPE,
12
13
  GAS_RESERVE_MIN,
14
+ HF_CRITICAL_THRESHOLD,
15
+ HF_WARN_THRESHOLD,
13
16
  IKA_TYPE,
14
17
  KeypairSigner,
15
18
  LOFI_TYPE,
@@ -17,6 +20,7 @@ import {
17
20
  MIST_PER_SUI,
18
21
  NAVX_TYPE,
19
22
  NaviAdapter,
23
+ OPERATION_ASSETS,
20
24
  OUTBOUND_OPS,
21
25
  ProtocolRegistry,
22
26
  STABLE_ASSETS,
@@ -41,10 +45,19 @@ import {
41
45
  WBTC_TYPE,
42
46
  ZkLoginSigner,
43
47
  addCollectFeeToTx,
48
+ addDepositAllowanceTx,
44
49
  allDescriptors,
50
+ assertAllowedAsset,
51
+ buildAdminDepositAllowanceTx,
52
+ buildCreateAllowanceTx,
53
+ buildDeductAllowanceTx,
54
+ buildDepositAllowanceTx,
55
+ buildScopedIntent,
45
56
  buildStakeVSuiTx,
46
57
  buildSwapTx,
47
58
  buildUnstakeVSuiTx,
59
+ buildWithdrawAllowanceTx,
60
+ buildWithdrawAmountAllowanceTx,
48
61
  calculateFee,
49
62
  executeAutoTopUp,
50
63
  executeWithGas,
@@ -55,13 +68,17 @@ import {
55
68
  formatUsd,
56
69
  generateKeypair,
57
70
  getAddress,
71
+ getAllowance,
72
+ getAllowanceBalance,
58
73
  getDecimals,
59
74
  getDecimalsForCoinType,
75
+ getFinancialSummary,
60
76
  getGasStatus,
61
77
  getRates,
62
78
  getSwapQuote,
63
79
  getTier,
64
80
  getVoloStats,
81
+ isAllowedAsset,
65
82
  isSupported,
66
83
  isTier1,
67
84
  isTier2,
@@ -85,13 +102,15 @@ import {
85
102
  truncateAddress,
86
103
  usdcToRaw,
87
104
  validateAddress,
105
+ verifyScopedIntent,
88
106
  walletExists
89
- } from "./chunk-FSE25UF3.js";
107
+ } from "./chunk-2JUMTEBB.js";
90
108
  import "./chunk-V7PXDEKG.js";
91
109
  import "./chunk-Q2LY5BHK.js";
92
110
  import "./chunk-3XUF7GM3.js";
93
111
  import "./chunk-YPWSCLE3.js";
94
112
  export {
113
+ ALLOWANCE_FEATURES,
95
114
  ALL_NAVI_ASSETS,
96
115
  BPS_DENOMINATOR,
97
116
  CETUS_USDC_SUI_POOL,
@@ -102,6 +121,8 @@ export {
102
121
  DEFAULT_SAFEGUARD_CONFIG,
103
122
  ETH_TYPE,
104
123
  GAS_RESERVE_MIN,
124
+ HF_CRITICAL_THRESHOLD,
125
+ HF_WARN_THRESHOLD,
105
126
  IKA_TYPE,
106
127
  KeypairSigner,
107
128
  LOFI_TYPE,
@@ -109,6 +130,7 @@ export {
109
130
  MIST_PER_SUI,
110
131
  NAVX_TYPE,
111
132
  NaviAdapter,
133
+ OPERATION_ASSETS,
112
134
  OUTBOUND_OPS,
113
135
  ProtocolRegistry,
114
136
  STABLE_ASSETS,
@@ -133,10 +155,19 @@ export {
133
155
  WBTC_TYPE,
134
156
  ZkLoginSigner,
135
157
  addCollectFeeToTx,
158
+ addDepositAllowanceTx,
136
159
  allDescriptors,
160
+ assertAllowedAsset,
161
+ buildAdminDepositAllowanceTx,
162
+ buildCreateAllowanceTx,
163
+ buildDeductAllowanceTx,
164
+ buildDepositAllowanceTx,
165
+ buildScopedIntent,
137
166
  buildStakeVSuiTx,
138
167
  buildSwapTx,
139
168
  buildUnstakeVSuiTx,
169
+ buildWithdrawAllowanceTx,
170
+ buildWithdrawAmountAllowanceTx,
140
171
  calculateFee,
141
172
  executeAutoTopUp,
142
173
  executeWithGas,
@@ -147,13 +178,17 @@ export {
147
178
  formatUsd,
148
179
  generateKeypair,
149
180
  getAddress,
181
+ getAllowance,
182
+ getAllowanceBalance,
150
183
  getDecimals,
151
184
  getDecimalsForCoinType,
185
+ getFinancialSummary,
152
186
  getGasStatus,
153
187
  getRates,
154
188
  getSwapQuote,
155
189
  getTier,
156
190
  getVoloStats,
191
+ isAllowedAsset,
157
192
  isSupported,
158
193
  isTier1,
159
194
  isTier2,
@@ -177,6 +212,7 @@ export {
177
212
  truncateAddress,
178
213
  usdcToRaw,
179
214
  validateAddress,
215
+ verifyScopedIntent,
180
216
  walletExists
181
217
  };
182
- //# sourceMappingURL=dist-ZKTRDHRL.js.map
218
+ //# sourceMappingURL=dist-F462ZUVT.js.map
@@ -7,7 +7,7 @@ import {
7
7
  ZodOptional,
8
8
  external_exports,
9
9
  objectType
10
- } from "./chunk-FSE25UF3.js";
10
+ } from "./chunk-2JUMTEBB.js";
11
11
  import "./chunk-V7PXDEKG.js";
12
12
  import "./chunk-Q2LY5BHK.js";
13
13
  import "./chunk-3XUF7GM3.js";
@@ -17153,6 +17153,24 @@ function registerReadTools(server, agent) {
17153
17153
  }
17154
17154
  }
17155
17155
  );
17156
+ server.tool(
17157
+ "t2000_receive",
17158
+ "Generate a payment request \u2014 returns wallet address, QR-ready URI, and optional amount/memo. Use when the user wants to receive a payment, create a payment request, or share their address for receiving funds.",
17159
+ {
17160
+ amount: external_exports.number().optional().describe("Amount to request (omit for open amount)"),
17161
+ currency: external_exports.string().optional().describe("Currency symbol (default: USDC)"),
17162
+ memo: external_exports.string().optional().describe("Payment note"),
17163
+ label: external_exports.string().optional().describe("Description for the request")
17164
+ },
17165
+ async ({ amount, currency, memo, label }) => {
17166
+ try {
17167
+ const result = agent.receive({ amount, currency, memo, label });
17168
+ return { content: [{ type: "text", text: JSON.stringify(result) }] };
17169
+ } catch (err) {
17170
+ return errorResult(err);
17171
+ }
17172
+ }
17173
+ );
17156
17174
  server.tool(
17157
17175
  "t2000_all_rates",
17158
17176
  'Compare USDC (and other) interest rates across all protocols side-by-side. Use when the user asks "am I getting the best rate?" or wants to compare protocols. NOTE: Deposits are USDC-only \u2014 t2000_save always saves USDC at the best USDC rate. This tool is for informational comparisons.',
@@ -18312,4 +18330,4 @@ async function startMcpServer(opts) {
18312
18330
  export {
18313
18331
  startMcpServer
18314
18332
  };
18315
- //# sourceMappingURL=dist-AY4QEDAC.js.map
18333
+ //# sourceMappingURL=dist-UDCEDQVB.js.map