@t2000/cli 0.20.2 → 0.20.4

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/index.js CHANGED
@@ -368,14 +368,12 @@ function registerBalance(program2) {
368
368
  }
369
369
  printBlank();
370
370
  const stables = bal.stables ?? {};
371
- const stableEntries = Object.entries(stables).filter(([, v]) => v >= 0.01);
372
- if (stableEntries.length <= 1) {
373
- printKeyValue("Available", `${formatUsd2(bal.available)} ${pc3.dim("(checking \u2014 spendable)")}`);
374
- } else {
375
- printKeyValue("Available", `${formatUsd2(bal.available)} ${pc3.dim("(total stablecoins)")}`);
376
- for (const [symbol, amount] of stableEntries) {
377
- printLine(` ${pc3.dim(symbol)} ${formatUsd2(amount)}`);
378
- }
371
+ const usdcAmount = stables.USDC ?? 0;
372
+ const otherStables = Object.entries(stables).filter(([k, v]) => k !== "USDC" && v >= 0.01);
373
+ printKeyValue("Available", `${formatUsd2(usdcAmount)} ${pc3.dim("(checking \u2014 USDC)")}`);
374
+ for (const [symbol, amount] of otherStables) {
375
+ const sweepAmount = amount < 1 ? amount.toFixed(2) : Math.floor(amount);
376
+ printLine(` ${pc3.dim(symbol)} ${formatUsd2(amount)} ${pc3.dim(`(sweep: t2000 exchange ${sweepAmount} ${symbol} USDC)`)}`);
379
377
  }
380
378
  if (bal.savings > 0.01) {
381
379
  const positions = await agent.positions();
@@ -2045,7 +2043,7 @@ function registerMcp(program2) {
2045
2043
  mcp.command("start", { isDefault: true }).description("Start MCP server (stdio transport)").option("--key <path>", "Key file path").action(async (opts) => {
2046
2044
  let mod;
2047
2045
  try {
2048
- mod = await import("./dist-UJGH2XLF.js");
2046
+ mod = await import("./dist-V2C7NCAD.js");
2049
2047
  } catch {
2050
2048
  console.error(
2051
2049
  "MCP server not installed. Run:\n npm install -g @t2000/mcp"