@t2000/cli 0.38.0 → 0.40.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,6 +1,5 @@
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,
4
3
  ALL_NAVI_ASSETS,
5
4
  BPS_DENOMINATOR,
6
5
  CETUS_USDC_SUI_POOL,
@@ -45,19 +44,11 @@ import {
45
44
  WBTC_TYPE,
46
45
  ZkLoginSigner,
47
46
  addCollectFeeToTx,
48
- addDepositAllowanceTx,
49
47
  allDescriptors,
50
48
  assertAllowedAsset,
51
- buildAdminDepositAllowanceTx,
52
- buildCreateAllowanceTx,
53
- buildDeductAllowanceTx,
54
- buildDepositAllowanceTx,
55
- buildScopedIntent,
56
49
  buildStakeVSuiTx,
57
50
  buildSwapTx,
58
51
  buildUnstakeVSuiTx,
59
- buildWithdrawAllowanceTx,
60
- buildWithdrawAmountAllowanceTx,
61
52
  calculateFee,
62
53
  executeAutoTopUp,
63
54
  executeWithGas,
@@ -68,8 +59,6 @@ import {
68
59
  formatUsd,
69
60
  generateKeypair,
70
61
  getAddress,
71
- getAllowance,
72
- getAllowanceBalance,
73
62
  getDecimals,
74
63
  getDecimalsForCoinType,
75
64
  getFinancialSummary,
@@ -103,15 +92,13 @@ import {
103
92
  truncateAddress,
104
93
  usdcToRaw,
105
94
  validateAddress,
106
- verifyScopedIntent,
107
95
  walletExists
108
- } from "./chunk-J7X23P3A.js";
96
+ } from "./chunk-4YV63VD3.js";
109
97
  import "./chunk-V7PXDEKG.js";
110
98
  import "./chunk-Q2LY5BHK.js";
111
99
  import "./chunk-3XUF7GM3.js";
112
100
  import "./chunk-YPWSCLE3.js";
113
101
  export {
114
- ALLOWANCE_FEATURES,
115
102
  ALL_NAVI_ASSETS,
116
103
  BPS_DENOMINATOR,
117
104
  CETUS_USDC_SUI_POOL,
@@ -156,19 +143,11 @@ export {
156
143
  WBTC_TYPE,
157
144
  ZkLoginSigner,
158
145
  addCollectFeeToTx,
159
- addDepositAllowanceTx,
160
146
  allDescriptors,
161
147
  assertAllowedAsset,
162
- buildAdminDepositAllowanceTx,
163
- buildCreateAllowanceTx,
164
- buildDeductAllowanceTx,
165
- buildDepositAllowanceTx,
166
- buildScopedIntent,
167
148
  buildStakeVSuiTx,
168
149
  buildSwapTx,
169
150
  buildUnstakeVSuiTx,
170
- buildWithdrawAllowanceTx,
171
- buildWithdrawAmountAllowanceTx,
172
151
  calculateFee,
173
152
  executeAutoTopUp,
174
153
  executeWithGas,
@@ -179,8 +158,6 @@ export {
179
158
  formatUsd,
180
159
  generateKeypair,
181
160
  getAddress,
182
- getAllowance,
183
- getAllowanceBalance,
184
161
  getDecimals,
185
162
  getDecimalsForCoinType,
186
163
  getFinancialSummary,
@@ -214,7 +191,6 @@ export {
214
191
  truncateAddress,
215
192
  usdcToRaw,
216
193
  validateAddress,
217
- verifyScopedIntent,
218
194
  walletExists
219
195
  };
220
- //# sourceMappingURL=dist-4XKBULY7.js.map
196
+ //# sourceMappingURL=dist-X2WIJABG.js.map
package/dist/index.js CHANGED
@@ -17,7 +17,7 @@ import {
17
17
  saveKey,
18
18
  truncateAddress,
19
19
  walletExists
20
- } from "./chunk-J7X23P3A.js";
20
+ } from "./chunk-4YV63VD3.js";
21
21
  import "./chunk-V7PXDEKG.js";
22
22
  import "./chunk-Q2LY5BHK.js";
23
23
  import "./chunk-3XUF7GM3.js";
@@ -7832,7 +7832,7 @@ function registerLock(program3) {
7832
7832
  });
7833
7833
  program3.command("unlock").description("Unlock agent \u2014 resume operations").action(async () => {
7834
7834
  try {
7835
- const { T2000: T20003 } = await import("./dist-4XKBULY7.js");
7835
+ const { T2000: T20003 } = await import("./dist-X2WIJABG.js");
7836
7836
  const MAX_ATTEMPTS2 = 3;
7837
7837
  let pin;
7838
7838
  for (let attempt = 1; attempt <= MAX_ATTEMPTS2; attempt++) {
@@ -8006,7 +8006,7 @@ function registerMcp(program3) {
8006
8006
  mcp.command("start", { isDefault: true }).description("Start MCP server (stdio transport)").option("--key <path>", "Key file path").action(async (opts) => {
8007
8007
  let mod;
8008
8008
  try {
8009
- mod = await import("./dist-CEF2K35K.js");
8009
+ mod = await import("./dist-NPNSPZLJ.js");
8010
8010
  } catch {
8011
8011
  console.error(
8012
8012
  "MCP server not installed. Run:\n npm install -g @t2000/mcp"
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@t2000/cli",
3
- "version": "0.38.0",
4
- "description": "A bank account for AI agents on Sui — guided setup, MCP, send, save, borrow, rebalance",
3
+ "version": "0.40.0",
4
+ "description": "A bank account for AI agents on Sui — guided setup, MCP integration, send, save, borrow, swap. Same 40 tools as the engine, scriptable from any shell.",
5
5
  "type": "module",
6
6
  "bin": {
7
7
  "t2000": "./dist/index.js"
@@ -42,8 +42,8 @@
42
42
  "tsup": "^8",
43
43
  "typescript": "^5",
44
44
  "vitest": "^3",
45
- "@t2000/sdk": "0.38.0",
46
- "@t2000/mcp": "0.38.0"
45
+ "@t2000/mcp": "0.40.0",
46
+ "@t2000/sdk": "0.40.0"
47
47
  },
48
48
  "license": "MIT",
49
49
  "scripts": {