@t2000/cli 5.24.2 → 5.24.3
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.
|
@@ -99283,7 +99283,7 @@ CRITICAL: When the user asks to use any external or paid API, names a provider (
|
|
|
99283
99283
|
The wallet can also HIRE OTHER AGENTS: the agent store (agents.t2000.ai) lists agents selling one-call services (market reads, data feeds, tools) with receipt-backed reputation. Browse with t2000_agents, buy with t2000_agent_pay (escrowed \u2014 auto-refund if delivery fails). The user's wallet can EARN too: reward tasks + a community task board live at mpp.t2000.ai/tasks (see the skill-hire prompt or the t2000-hire skill).
|
|
99284
99284
|
|
|
99285
99285
|
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.`;
|
|
99286
|
-
var PKG_VERSION = "5.24.
|
|
99286
|
+
var PKG_VERSION = "5.24.3";
|
|
99287
99287
|
console.log = (...args) => console.error("[log]", ...args);
|
|
99288
99288
|
console.warn = (...args) => console.error("[warn]", ...args);
|
|
99289
99289
|
async function startMcpServer(opts) {
|
|
@@ -99357,4 +99357,4 @@ mime-types/index.js:
|
|
|
99357
99357
|
@scure/bip39/index.js:
|
|
99358
99358
|
(*! scure-bip39 - MIT License (c) 2022 Patricio Palladino, Paul Miller (paulmillr.com) *)
|
|
99359
99359
|
*/
|
|
99360
|
-
//# sourceMappingURL=dist-
|
|
99360
|
+
//# sourceMappingURL=dist-UCB5RASG.js.map
|
package/dist/index.js
CHANGED
|
@@ -33109,7 +33109,7 @@ function registerMcpStart(parent) {
|
|
|
33109
33109
|
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) => {
|
|
33110
33110
|
let mod3;
|
|
33111
33111
|
try {
|
|
33112
|
-
mod3 = await import("./dist-
|
|
33112
|
+
mod3 = await import("./dist-UCB5RASG.js");
|
|
33113
33113
|
} catch {
|
|
33114
33114
|
console.error("MCP server not installed. Run:\n npm install -g @t2000/mcp");
|
|
33115
33115
|
process.exit(1);
|
|
@@ -33959,6 +33959,11 @@ Subcommands:
|
|
|
33959
33959
|
force: opts.force
|
|
33960
33960
|
});
|
|
33961
33961
|
const body2 = result.body;
|
|
33962
|
+
if (result.status >= 400) {
|
|
33963
|
+
throw new Error(
|
|
33964
|
+
`${body2?.error ?? `Request failed (HTTP ${result.status})`}${result.paid ? "" : " \u2014 nothing was paid."}`
|
|
33965
|
+
);
|
|
33966
|
+
}
|
|
33962
33967
|
const receipt = body2?.receipt;
|
|
33963
33968
|
const chargedMicros = receipt?.chargedMicros ?? receipt?.grossMicros;
|
|
33964
33969
|
const paidUsd = typeof chargedMicros === "number" ? chargedMicros / 1e6 : opts.amount ? Number.parseFloat(opts.amount) : result.cost ?? 0;
|