@t2000/cli 5.2.0 → 5.3.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.
@@ -81006,7 +81006,7 @@ Through this wallet you can reach essentially any major external API, billed to
81006
81006
  CRITICAL: When the user asks to use any external or paid API, names a provider (e.g. "via fal.ai", "with ElevenLabs"), or requests a capability one of the services above provides, DO NOT say you cannot reach that service, that it isn't on an allowlist, or that there's no connector \u2014 and do NOT fall back to writing a script for the user to run. You CAN do it directly through this wallet. Use t2000_services to discover the endpoint and request shape, then t2000_pay to execute, then show the user the result (display image/audio URLs returned in the response).
81007
81007
 
81008
81008
  Spending is the user's own USDC and every t2000_pay call is bounded by maxPrice. For larger or multi-step spends, state the estimated cost first and proceed once the user is happy. Use t2000_balance to check funds. The v4 wallet is payments-only; savings / lending live on audric.ai.`;
81009
- var PKG_VERSION = "5.2.0";
81009
+ var PKG_VERSION = "5.3.0";
81010
81010
  console.log = (...args) => console.error("[log]", ...args);
81011
81011
  console.warn = (...args) => console.error("[warn]", ...args);
81012
81012
  async function startMcpServer(opts) {
@@ -81072,4 +81072,4 @@ mime-types/index.js:
81072
81072
  @scure/bip39/index.js:
81073
81073
  (*! scure-bip39 - MIT License (c) 2022 Patricio Palladino, Paul Miller (paulmillr.com) *)
81074
81074
  */
81075
- //# sourceMappingURL=dist-KVEHGTYJ.js.map
81075
+ //# sourceMappingURL=dist-U65BYMC5.js.map
package/dist/index.js CHANGED
@@ -31169,7 +31169,9 @@ async function askHidden(message) {
31169
31169
  }
31170
31170
 
31171
31171
  // src/commands/init.ts
31172
- var NO_LIMITS_FOOTER = "No spending limits set. Run `t2 limit set --daily <usd>` to add them.";
31172
+ var DEFAULT_PER_TX_USD = 25;
31173
+ var DEFAULT_DAILY_USD = 100;
31174
+ var limitsFooter = (perTx, daily) => `Spending limits ON: $${perTx}/tx, $${daily}/day (cumulative). Change with \`t2 limit set\`, or override a single call with --force.`;
31173
31175
  function registerInit(program3) {
31174
31176
  program3.command("init").description("Create a new Agent Wallet (no PIN; plain Bech32 key file with 0o600 perms)").option("--key <path>", "Custom wallet path (default ~/.t2000/wallet.key)").option(
31175
31177
  "--import [secret]",
@@ -31196,8 +31198,16 @@ function registerInit(program3) {
31196
31198
  await saveKey(keypair, void 0, opts.key);
31197
31199
  address = getAddress(keypair);
31198
31200
  }
31201
+ if (!hasLimits()) {
31202
+ setLimits({ perTxUsd: DEFAULT_PER_TX_USD, dailyUsd: DEFAULT_DAILY_USD });
31203
+ }
31199
31204
  if (isJsonMode()) {
31200
- printJson({ address, imported, configPath: opts.key ?? "~/.t2000/wallet.key" });
31205
+ printJson({
31206
+ address,
31207
+ imported,
31208
+ configPath: opts.key ?? "~/.t2000/wallet.key",
31209
+ limits: { perTxUsd: DEFAULT_PER_TX_USD, dailyUsd: DEFAULT_DAILY_USD }
31210
+ });
31201
31211
  return;
31202
31212
  }
31203
31213
  printBlank();
@@ -31205,7 +31215,7 @@ function registerInit(program3) {
31205
31215
  printKeyValue("Address", address);
31206
31216
  printKeyValue("Path", opts.key ?? "~/.t2000/wallet.key");
31207
31217
  printBlank();
31208
- printLine(`\u26A0 ${NO_LIMITS_FOOTER}`);
31218
+ printLine(`\u26A0 ${limitsFooter(DEFAULT_PER_TX_USD, DEFAULT_DAILY_USD)}`);
31209
31219
  printBlank();
31210
31220
  try {
31211
31221
  await T2000.create({ keyPath: opts.key });
@@ -32116,7 +32126,7 @@ function registerMcpStart(parent) {
32116
32126
  parent.command("start", { isDefault: true }).description("Start MCP server (stdio transport \u2014 for AI client integration)").option("--key <path>", "Custom wallet path (default ~/.t2000/wallet.key)").action(async (opts) => {
32117
32127
  let mod2;
32118
32128
  try {
32119
- mod2 = await import("./dist-KVEHGTYJ.js");
32129
+ mod2 = await import("./dist-U65BYMC5.js");
32120
32130
  } catch {
32121
32131
  console.error("MCP server not installed. Run:\n npm install -g @t2000/mcp");
32122
32132
  process.exit(1);