@t2000/cli 0.18.1 → 0.18.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.
- package/README.md +8 -2
- package/dist/{dist-DOHDQ4GX.js → dist-Q3ZX35TI.js} +8 -4
- package/dist/{dist-DOHDQ4GX.js.map → dist-Q3ZX35TI.js.map} +1 -1
- package/dist/{dist-4RT6I45C.js → dist-YUEEJ6TK.js} +2 -2
- package/dist/{dist-4RT6I45C.js.map → dist-YUEEJ6TK.js.map} +1 -1
- package/dist/index.js +15 -5
- package/dist/index.js.map +1 -1
- package/package.json +6 -6
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
|
-
|
|
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(
|
|
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-
|
|
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"
|
|
@@ -2922,7 +2932,7 @@ function registerGateway(program2) {
|
|
|
2922
2932
|
console.log("");
|
|
2923
2933
|
console.log(` ${pc16.bold("t2000 gateway")}`);
|
|
2924
2934
|
console.log("");
|
|
2925
|
-
const { Gateway } = await import("./dist-
|
|
2935
|
+
const { Gateway } = await import("./dist-Q3ZX35TI.js");
|
|
2926
2936
|
const gateway = await Gateway.create({
|
|
2927
2937
|
agent,
|
|
2928
2938
|
port: parseInt(opts.port, 10),
|