@t2000/cli 0.25.16 → 0.26.1

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.
@@ -7,7 +7,7 @@ import {
7
7
  ZodOptional,
8
8
  external_exports,
9
9
  objectType
10
- } from "./chunk-DNBWOMKV.js";
10
+ } from "./chunk-FSE25UF3.js";
11
11
  import "./chunk-V7PXDEKG.js";
12
12
  import "./chunk-Q2LY5BHK.js";
13
13
  import "./chunk-3XUF7GM3.js";
@@ -17287,19 +17287,17 @@ function registerWriteTools(server, agent) {
17287
17287
  );
17288
17288
  server.tool(
17289
17289
  "t2000_save",
17290
- 'Deposit to NAVI lending to earn yield. Supports USDC (default), USDT, SUI, USDe, USDsui. Amount is in token units. Use "all" to save entire available balance. Set dryRun: true to preview.',
17290
+ 'Deposit USDC into NAVI lending to earn yield. Amount is in USDC. Use "all" to save entire available balance. Set dryRun: true to preview.',
17291
17291
  {
17292
- amount: external_exports.union([external_exports.number(), external_exports.literal("all")]).describe('Amount to save, or "all"'),
17293
- asset: external_exports.enum(["USDC", "USDT", "SUI", "USDe", "USDsui"]).optional().describe("Asset to deposit (default: USDC)"),
17292
+ amount: external_exports.union([external_exports.number(), external_exports.literal("all")]).describe('Amount of USDC to save, or "all"'),
17294
17293
  dryRun: external_exports.boolean().optional().describe("Preview without signing (default: false)")
17295
17294
  },
17296
- async ({ amount, asset, dryRun }) => {
17295
+ async ({ amount, dryRun }) => {
17297
17296
  try {
17298
17297
  if (dryRun) {
17299
17298
  agent.enforcer.assertNotLocked();
17300
17299
  const balance = await agent.balance();
17301
17300
  const rates = await agent.rates();
17302
- const assetKey = asset ?? "USDC";
17303
17301
  const saveAmount = amount === "all" ? balance.available - 1 : amount;
17304
17302
  return {
17305
17303
  content: [{
@@ -17307,14 +17305,14 @@ function registerWriteTools(server, agent) {
17307
17305
  text: JSON.stringify({
17308
17306
  preview: true,
17309
17307
  amount: saveAmount,
17310
- asset: assetKey,
17311
- currentApy: rates[assetKey]?.saveApy ?? rates.USDC?.saveApy ?? 0,
17308
+ asset: "USDC",
17309
+ currentApy: rates.USDC?.saveApy ?? 0,
17312
17310
  savingsBalanceAfter: balance.savings + saveAmount
17313
17311
  })
17314
17312
  }]
17315
17313
  };
17316
17314
  }
17317
- const result = await mutex.run(() => agent.save({ amount, asset }));
17315
+ const result = await mutex.run(() => agent.save({ amount }));
17318
17316
  return { content: [{ type: "text", text: JSON.stringify(result) }] };
17319
17317
  } catch (err) {
17320
17318
  return errorResult(err);
@@ -18314,4 +18312,4 @@ async function startMcpServer(opts) {
18314
18312
  export {
18315
18313
  startMcpServer
18316
18314
  };
18317
- //# sourceMappingURL=dist-ZHHT2ROZ.js.map
18315
+ //# sourceMappingURL=dist-AY4QEDAC.js.map