@zeroxyz/cli 0.0.1 → 0.0.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/dist/index.js +48 -4
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -438,7 +438,7 @@ var createApp = (appContext2) => {
|
|
|
438
438
|
// src/app/app-env.ts
|
|
439
439
|
import z from "zod";
|
|
440
440
|
var envSchema = z.object({
|
|
441
|
-
ZERO_API_URL: z.string().default("https://api.zero.
|
|
441
|
+
ZERO_API_URL: z.string().default("https://api.zero.xyz"),
|
|
442
442
|
ZERO_PRIVATE_KEY: z.string().optional()
|
|
443
443
|
});
|
|
444
444
|
var getEnv = () => {
|
|
@@ -453,11 +453,56 @@ var getEnv = () => {
|
|
|
453
453
|
|
|
454
454
|
// src/app/app-services.ts
|
|
455
455
|
import { existsSync as existsSync5, readFileSync as readFileSync5 } from "fs";
|
|
456
|
-
import { createRequire } from "module";
|
|
457
456
|
import { homedir as homedir3 } from "os";
|
|
458
457
|
import { join as join4 } from "path";
|
|
459
458
|
import { privateKeyToAccount as privateKeyToAccount2 } from "viem/accounts";
|
|
460
459
|
|
|
460
|
+
// package.json
|
|
461
|
+
var package_default = {
|
|
462
|
+
name: "@zeroxyz/cli",
|
|
463
|
+
version: "0.0.3",
|
|
464
|
+
type: "module",
|
|
465
|
+
bin: {
|
|
466
|
+
zero: "dist/index.js",
|
|
467
|
+
zerocli: "dist/index.js"
|
|
468
|
+
},
|
|
469
|
+
files: [
|
|
470
|
+
"dist"
|
|
471
|
+
],
|
|
472
|
+
publishConfig: {
|
|
473
|
+
access: "public"
|
|
474
|
+
},
|
|
475
|
+
scripts: {
|
|
476
|
+
build: "tsup src/index.ts --format esm --out-dir dist --clean",
|
|
477
|
+
prepublishOnly: "pnpm run build",
|
|
478
|
+
dev: "tsx src/index.ts",
|
|
479
|
+
cli: "ZERO_API_URL=http://localhost:1111 tsx src/index.ts",
|
|
480
|
+
"test:integration": "vitest run --project integration",
|
|
481
|
+
"test:unit": "vitest run --project unit",
|
|
482
|
+
test: "pnpm run test:integration",
|
|
483
|
+
typecheck: "tsc"
|
|
484
|
+
},
|
|
485
|
+
dependencies: {
|
|
486
|
+
"@clack/prompts": "^0.11.0",
|
|
487
|
+
"@relayprotocol/relay-sdk": "^5.2.1",
|
|
488
|
+
"@x402/core": "^2.9.0",
|
|
489
|
+
"@x402/evm": "^2.9.0",
|
|
490
|
+
commander: "^13.0.0",
|
|
491
|
+
mppx: "^0.5.9",
|
|
492
|
+
open: "^11.0.0",
|
|
493
|
+
"posthog-node": "^5.29.2",
|
|
494
|
+
viem: "^2.47.10",
|
|
495
|
+
zod: "^4.3.5"
|
|
496
|
+
},
|
|
497
|
+
devDependencies: {
|
|
498
|
+
"@types/node": "^25.0.7",
|
|
499
|
+
tsup: "^8.5.1",
|
|
500
|
+
tsx: "^4.21.0",
|
|
501
|
+
typescript: "^5.9.3",
|
|
502
|
+
vitest: "^4.0.17"
|
|
503
|
+
}
|
|
504
|
+
};
|
|
505
|
+
|
|
461
506
|
// src/services/analytics-service.ts
|
|
462
507
|
import { randomUUID } from "crypto";
|
|
463
508
|
import { existsSync as existsSync3, mkdirSync as mkdirSync3, readFileSync as readFileSync3, writeFileSync as writeFileSync3 } from "fs";
|
|
@@ -962,8 +1007,7 @@ var WalletService = class {
|
|
|
962
1007
|
};
|
|
963
1008
|
|
|
964
1009
|
// src/app/app-services.ts
|
|
965
|
-
var
|
|
966
|
-
var CLI_VERSION = require2("../../package.json").version;
|
|
1010
|
+
var CLI_VERSION = package_default.version;
|
|
967
1011
|
var getServices = (env) => {
|
|
968
1012
|
let privateKey = env.ZERO_PRIVATE_KEY ? env.ZERO_PRIVATE_KEY : null;
|
|
969
1013
|
const account = privateKey ? privateKeyToAccount2(privateKey) : null;
|