@t2000/cli 0.36.0 → 0.36.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/{chunk-IEDON62D.js → chunk-FSSTF3LM.js} +2 -32
- package/dist/{chunk-IEDON62D.js.map → chunk-FSSTF3LM.js.map} +1 -1
- package/dist/{dist-YS7HI7LP.js → dist-4JQX7CWE.js} +2 -2
- package/dist/{dist-UOEUHDJW.js → dist-55H37ULN.js} +2 -2
- package/dist/index.js +4 -7
- package/dist/index.js.map +1 -1
- package/package.json +3 -3
- /package/dist/{dist-YS7HI7LP.js.map → dist-4JQX7CWE.js.map} +0 -0
- /package/dist/{dist-UOEUHDJW.js.map → dist-55H37ULN.js.map} +0 -0
|
@@ -105,7 +105,7 @@ import {
|
|
|
105
105
|
validateAddress,
|
|
106
106
|
verifyScopedIntent,
|
|
107
107
|
walletExists
|
|
108
|
-
} from "./chunk-
|
|
108
|
+
} from "./chunk-FSSTF3LM.js";
|
|
109
109
|
import "./chunk-V7PXDEKG.js";
|
|
110
110
|
import "./chunk-Q2LY5BHK.js";
|
|
111
111
|
import "./chunk-3XUF7GM3.js";
|
|
@@ -217,4 +217,4 @@ export {
|
|
|
217
217
|
verifyScopedIntent,
|
|
218
218
|
walletExists
|
|
219
219
|
};
|
|
220
|
-
//# sourceMappingURL=dist-
|
|
220
|
+
//# sourceMappingURL=dist-4JQX7CWE.js.map
|
|
@@ -7,7 +7,7 @@ import {
|
|
|
7
7
|
ZodOptional,
|
|
8
8
|
external_exports,
|
|
9
9
|
objectType
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-FSSTF3LM.js";
|
|
11
11
|
import "./chunk-V7PXDEKG.js";
|
|
12
12
|
import "./chunk-Q2LY5BHK.js";
|
|
13
13
|
import "./chunk-3XUF7GM3.js";
|
|
@@ -18330,4 +18330,4 @@ async function startMcpServer(opts) {
|
|
|
18330
18330
|
export {
|
|
18331
18331
|
startMcpServer
|
|
18332
18332
|
};
|
|
18333
|
-
//# sourceMappingURL=dist-
|
|
18333
|
+
//# sourceMappingURL=dist-55H37ULN.js.map
|
package/dist/index.js
CHANGED
|
@@ -17,7 +17,7 @@ import {
|
|
|
17
17
|
saveKey,
|
|
18
18
|
truncateAddress,
|
|
19
19
|
walletExists
|
|
20
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-FSSTF3LM.js";
|
|
21
21
|
import "./chunk-V7PXDEKG.js";
|
|
22
22
|
import "./chunk-Q2LY5BHK.js";
|
|
23
23
|
import "./chunk-3XUF7GM3.js";
|
|
@@ -3636,15 +3636,12 @@ function registerInit(program3) {
|
|
|
3636
3636
|
if (pin !== pinConfirm) throw new Error("PINs do not match");
|
|
3637
3637
|
printBlank();
|
|
3638
3638
|
printInfo("Creating agent wallet...");
|
|
3639
|
-
const { address: addr, sponsored
|
|
3639
|
+
const { address: addr, sponsored } = await T2000.init({ pin, keyPath: opts.key, sponsored: opts.sponsor });
|
|
3640
3640
|
address = addr;
|
|
3641
3641
|
await saveSession(pin);
|
|
3642
3642
|
printSuccess("Keypair generated");
|
|
3643
3643
|
printSuccess(`Network ${import_picocolors2.default.dim("Sui mainnet")}`);
|
|
3644
3644
|
printSuccess(`Gas sponsorship ${import_picocolors2.default.dim(sponsored ? "enabled" : "disabled")}`);
|
|
3645
|
-
if (usdcSponsored) {
|
|
3646
|
-
printSuccess(`USDC onboarding ${import_picocolors2.default.dim("$1 USDC funded")}`);
|
|
3647
|
-
}
|
|
3648
3645
|
printBlank();
|
|
3649
3646
|
printInfo("Setting up accounts...");
|
|
3650
3647
|
printLine(
|
|
@@ -7835,7 +7832,7 @@ function registerLock(program3) {
|
|
|
7835
7832
|
});
|
|
7836
7833
|
program3.command("unlock").description("Unlock agent \u2014 resume operations").action(async () => {
|
|
7837
7834
|
try {
|
|
7838
|
-
const { T2000: T20003 } = await import("./dist-
|
|
7835
|
+
const { T2000: T20003 } = await import("./dist-4JQX7CWE.js");
|
|
7839
7836
|
const MAX_ATTEMPTS2 = 3;
|
|
7840
7837
|
let pin;
|
|
7841
7838
|
for (let attempt = 1; attempt <= MAX_ATTEMPTS2; attempt++) {
|
|
@@ -8009,7 +8006,7 @@ function registerMcp(program3) {
|
|
|
8009
8006
|
mcp.command("start", { isDefault: true }).description("Start MCP server (stdio transport)").option("--key <path>", "Key file path").action(async (opts) => {
|
|
8010
8007
|
let mod;
|
|
8011
8008
|
try {
|
|
8012
|
-
mod = await import("./dist-
|
|
8009
|
+
mod = await import("./dist-55H37ULN.js");
|
|
8013
8010
|
} catch {
|
|
8014
8011
|
console.error(
|
|
8015
8012
|
"MCP server not installed. Run:\n npm install -g @t2000/mcp"
|