@t2000/cli 8.0.0 → 8.0.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/index.js CHANGED
@@ -28193,7 +28193,7 @@ function resolveApiKey(apiKey) {
28193
28193
  if (!key) {
28194
28194
  throw new T2000Error(
28195
28195
  "INVALID_KEY",
28196
- "No Private API key. Pass `apiKey` or set T2000_API_KEY. Generate one at agents.t2000.ai/manage (Pro/Max)."
28196
+ "No Private Inference key. Pass `apiKey` or set T2000_API_KEY. Generate one at agents.t2000.ai/manage."
28197
28197
  );
28198
28198
  }
28199
28199
  return key;
@@ -28900,9 +28900,9 @@ var T2000 = class _T2000 extends import_index2.default {
28900
28900
  //
28901
28901
  // Inference as a wallet verb — the agent's brain + wallet in one package.
28902
28902
  // Key-based today (`apiKey` / `T2000_API_KEY`); the x402 no-key pay-per-call
28903
- // path is a later add. The model runs on the t2000 Private API (ZDR; a
28903
+ // path is a later add. The model runs on t2000 Private Inference (ZDR; a
28904
28904
  // `phala/*` confidential tier runs in a GPU-TEE).
28905
- /** Non-streaming chat completion against the Private API. */
28905
+ /** Non-streaming chat completion against Private Inference. */
28906
28906
  async chat(params) {
28907
28907
  return chatCompletion(params);
28908
28908
  }
@@ -28911,7 +28911,7 @@ var T2000 = class _T2000 extends import_index2.default {
28911
28911
  chatStream(params) {
28912
28912
  return chatCompletionStream(params);
28913
28913
  }
28914
- /** The Private API model catalog (`GET /v1/models`). */
28914
+ /** The Private Inference model catalog (`GET /v1/models`). */
28915
28915
  async models(opts) {
28916
28916
  return listModels(opts);
28917
28917
  }
@@ -32619,8 +32619,8 @@ function numOrUndef(v) {
32619
32619
  }
32620
32620
  function registerChat(program3) {
32621
32621
  program3.command("chat").argument("<message...>", "Your prompt").description(
32622
- "Chat with a model on the t2000 Private API (OpenAI-compatible, ZDR; a phala/* tier is GPU-TEE confidential). Needs an API key \u2014 generate one at agents.t2000.ai/manage, then pass --api-key or set T2000_API_KEY."
32623
- ).option("--model <id>", `Model id (default ${DEFAULT_MODEL}; see \`t2 models\`)`, DEFAULT_MODEL).option("--system <text>", "System prompt").option("--max-tokens <n>", "Max output tokens").option("--temperature <t>", "Sampling temperature (0\u20132)").option("--no-stream", "Wait for the full response instead of streaming").option("--api-key <key>", "Private API key (or set T2000_API_KEY)").option("--api <url>", "API base URL (default https://api.t2000.ai/v1)").action(
32622
+ "Chat with a model on t2000 Private Inference (OpenAI-compatible, ZDR; a phala/* tier is GPU-TEE confidential). Needs an API key \u2014 generate one at agents.t2000.ai/manage, then pass --api-key or set T2000_API_KEY."
32623
+ ).option("--model <id>", `Model id (default ${DEFAULT_MODEL}; see \`t2 models\`)`, DEFAULT_MODEL).option("--system <text>", "System prompt").option("--max-tokens <n>", "Max output tokens").option("--temperature <t>", "Sampling temperature (0\u20132)").option("--no-stream", "Wait for the full response instead of streaming").option("--api-key <key>", "Private Inference key (or set T2000_API_KEY)").option("--api <url>", "API base URL (default https://api.t2000.ai/v1)").action(
32624
32624
  async (messageParts, opts) => {
32625
32625
  try {
32626
32626
  const messages = [];
@@ -32668,7 +32668,7 @@ function registerChat(program3) {
32668
32668
  }
32669
32669
  }
32670
32670
  );
32671
- program3.command("models").description("List the t2000 Private API model catalog (id \xB7 privacy tier \xB7 per-1M pricing).").option("--api-key <key>", "Private API key (or set T2000_API_KEY)").option("--api <url>", "API base URL (default https://api.t2000.ai/v1)").action(async (opts) => {
32671
+ program3.command("models").description("List the t2000 Private Inference model catalog (id \xB7 privacy tier \xB7 per-1M pricing).").option("--api-key <key>", "Private Inference key (or set T2000_API_KEY)").option("--api <url>", "API base URL (default https://api.t2000.ai/v1)").action(async (opts) => {
32672
32672
  try {
32673
32673
  const models = await listModels({ apiKey: opts.apiKey, apiBase: opts.api });
32674
32674
  if (isJsonMode()) {
@@ -33122,7 +33122,7 @@ function registerMcpStart(parent) {
33122
33122
  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) => {
33123
33123
  let mod3;
33124
33124
  try {
33125
- mod3 = await import("./dist-BOOS6EPV.js");
33125
+ mod3 = await import("./dist-OACLYMM2.js");
33126
33126
  } catch {
33127
33127
  console.error("MCP server not installed. Run:\n npm install -g @t2000/mcp");
33128
33128
  process.exit(1);
@@ -33800,7 +33800,7 @@ Subcommands:
33800
33800
  );
33801
33801
  registerAgentCreate(group);
33802
33802
  group.command("onboard").description(
33803
- "Buy-side setup: fund credit (gasless USDC/USDsui) + mint a Private API key. Registering an Agent ID is free and separate \u2014 `t2 init` / `t2 agent register`."
33803
+ "Buy-side setup: fund credit (gasless USDC/USDsui) + mint a Private Inference key. Registering an Agent ID is free and separate \u2014 `t2 init` / `t2 agent register`."
33804
33804
  ).option("--fund <amount>", "Stablecoin amount to deposit as credit (omit if already funded)").option("--asset <asset>", "USDC (default) or USDsui", "USDC").option("--key <path>", "Custom wallet path (default ~/.t2000/wallet.key)").option("--api <url>", `API base URL (default ${DEFAULT_API_BASE4})`).action(
33805
33805
  async (opts) => {
33806
33806
  try {
@@ -34197,8 +34197,8 @@ Examples:
34197
34197
  $ t2 balance Show USDC / USDsui / SUI holdings
34198
34198
  $ t2 send 5 USDC alice.sui Send 5 USDC (gasless; asset required)
34199
34199
  $ t2 swap 100 USDC SUI Swap 100 USDC for SUI via Cetus
34200
- $ t2 chat "Summarize Sui in 3 lines" Private inference (OpenAI-compatible; needs T2000_API_KEY)
34201
- $ t2 models List the Private API model catalog
34200
+ $ t2 chat "Summarize Sui in 3 lines" Private Inference (OpenAI-compatible; needs T2000_API_KEY)
34201
+ $ t2 models List the Private Inference model catalog
34202
34202
  $ t2 pay <url> --estimate Preview an x402 service's price + input schema (no payment)
34203
34203
  $ t2 services search "image" Discover x402 services in the gateway catalog
34204
34204
  $ t2 agents Look up the agent directory (agents.t2000.ai)