@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.
- package/dist/{chunk-DNBWOMKV.js → chunk-FSE25UF3.js} +70 -56
- package/dist/{chunk-DNBWOMKV.js.map → chunk-FSE25UF3.js.map} +1 -1
- package/dist/{dist-ZHHT2ROZ.js → dist-AY4QEDAC.js} +8 -10
- package/dist/{dist-ZHHT2ROZ.js.map → dist-AY4QEDAC.js.map} +1 -1
- package/dist/{dist-JZ5RZWFT.js → dist-ZKTRDHRL.js} +16 -2
- package/dist/index.js +9 -10
- package/dist/index.js.map +1 -1
- package/package.json +3 -3
- /package/dist/{dist-JZ5RZWFT.js.map → dist-ZKTRDHRL.js.map} +0 -0
|
@@ -7,7 +7,7 @@ import {
|
|
|
7
7
|
ZodOptional,
|
|
8
8
|
external_exports,
|
|
9
9
|
objectType
|
|
10
|
-
} from "./chunk-
|
|
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
|
|
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,
|
|
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:
|
|
17311
|
-
currentApy: rates
|
|
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
|
|
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-
|
|
18315
|
+
//# sourceMappingURL=dist-AY4QEDAC.js.map
|