@t2000/cli 0.18.1 → 0.18.2

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
@@ -194,12 +194,22 @@ function registerInit(program2) {
194
194
  if (!pin || pin.length < 4) throw new Error("PIN must be at least 4 characters");
195
195
  const pinConfirm = await password3({ message: "Confirm PIN:" });
196
196
  if (pin !== pinConfirm) throw new Error("PINs do not match");
197
- const { agent, address: addr } = await T2000.init({ pin, keyPath: opts.key, sponsored: true });
197
+ printBlank();
198
+ printInfo("Creating agent wallet...");
199
+ const { agent, address: addr, sponsored } = await T2000.init({ pin, keyPath: opts.key, sponsored: opts.sponsor });
198
200
  address = addr;
199
201
  await saveSession(pin);
200
202
  printSuccess("Keypair generated");
201
- printSuccess("Sui mainnet");
202
- printSuccess("5 accounts: Checking, Savings, Credit, Exchange, Investment");
203
+ printSuccess(`Network ${pc2.dim("Sui mainnet")}`);
204
+ printSuccess(`Gas sponsorship ${pc2.dim(sponsored ? "enabled" : "disabled")}`);
205
+ printBlank();
206
+ printInfo("Setting up accounts...");
207
+ printLine(
208
+ ` ${pc2.green("\u2713")} Checking ${pc2.green("\u2713")} Savings ${pc2.green("\u2713")} Credit ${pc2.green("\u2713")} Exchange ${pc2.green("\u2713")} Investment`
209
+ );
210
+ printBlank();
211
+ printLine(` \u{1F389} ${pc2.green("Bank account created")}`);
212
+ printLine(` Address: ${pc2.yellow(address.slice(0, 6) + "..." + address.slice(-4))}`);
203
213
  printBlank();
204
214
  }
205
215
  const stepNum = skipWallet ? 1 : 3;
@@ -2058,7 +2068,7 @@ function registerMcp(program2) {
2058
2068
  mcp.command("start", { isDefault: true }).description("Start MCP server (stdio transport)").option("--key <path>", "Key file path").action(async (opts) => {
2059
2069
  let mod;
2060
2070
  try {
2061
- mod = await import("./dist-4RT6I45C.js");
2071
+ mod = await import("./dist-YUEEJ6TK.js");
2062
2072
  } catch {
2063
2073
  console.error(
2064
2074
  "MCP server not installed. Run:\n npm install -g @t2000/mcp"