@zeroxyz/cli 0.0.4 → 0.0.5
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 +47 -47
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -3,6 +3,52 @@
|
|
|
3
3
|
// src/app.ts
|
|
4
4
|
import { Command as Command8 } from "commander";
|
|
5
5
|
|
|
6
|
+
// package.json
|
|
7
|
+
var package_default = {
|
|
8
|
+
name: "@zeroxyz/cli",
|
|
9
|
+
version: "0.0.5",
|
|
10
|
+
type: "module",
|
|
11
|
+
bin: {
|
|
12
|
+
zero: "dist/index.js",
|
|
13
|
+
zerocli: "dist/index.js"
|
|
14
|
+
},
|
|
15
|
+
files: [
|
|
16
|
+
"dist"
|
|
17
|
+
],
|
|
18
|
+
publishConfig: {
|
|
19
|
+
access: "public"
|
|
20
|
+
},
|
|
21
|
+
scripts: {
|
|
22
|
+
build: "tsup src/index.ts --format esm --out-dir dist --clean",
|
|
23
|
+
prepublishOnly: "pnpm run build",
|
|
24
|
+
dev: "tsx src/index.ts",
|
|
25
|
+
cli: "ZERO_API_URL=http://localhost:1111 tsx src/index.ts",
|
|
26
|
+
"test:integration": "vitest run --project integration",
|
|
27
|
+
"test:unit": "vitest run --project unit",
|
|
28
|
+
test: "pnpm run test:integration",
|
|
29
|
+
typecheck: "tsc"
|
|
30
|
+
},
|
|
31
|
+
dependencies: {
|
|
32
|
+
"@clack/prompts": "^0.11.0",
|
|
33
|
+
"@relayprotocol/relay-sdk": "^5.2.1",
|
|
34
|
+
"@x402/core": "^2.9.0",
|
|
35
|
+
"@x402/evm": "^2.9.0",
|
|
36
|
+
commander: "^13.0.0",
|
|
37
|
+
mppx: "^0.5.9",
|
|
38
|
+
open: "^11.0.0",
|
|
39
|
+
"posthog-node": "^5.29.2",
|
|
40
|
+
viem: "^2.47.10",
|
|
41
|
+
zod: "^4.3.5"
|
|
42
|
+
},
|
|
43
|
+
devDependencies: {
|
|
44
|
+
"@types/node": "^25.0.7",
|
|
45
|
+
tsup: "^8.5.1",
|
|
46
|
+
tsx: "^4.21.0",
|
|
47
|
+
typescript: "^5.9.3",
|
|
48
|
+
vitest: "^4.0.17"
|
|
49
|
+
}
|
|
50
|
+
};
|
|
51
|
+
|
|
6
52
|
// src/commands/config-command.ts
|
|
7
53
|
import { existsSync, mkdirSync, readFileSync, writeFileSync } from "fs";
|
|
8
54
|
import { homedir } from "os";
|
|
@@ -422,7 +468,7 @@ var walletCommand = (appContext2) => {
|
|
|
422
468
|
// src/app.ts
|
|
423
469
|
var createApp = (appContext2) => {
|
|
424
470
|
const { analyticsService } = appContext2.services;
|
|
425
|
-
const program = new Command8().name("zero").description("Zero CLI \u2014 Search engine and payment platform for AI agents").exitOverride().hook("preAction", (_thisCommand, actionCommand) => {
|
|
471
|
+
const program = new Command8().name("zero").description("Zero CLI \u2014 Search engine and payment platform for AI agents").version(package_default.version, "-v, --version").exitOverride().hook("preAction", (_thisCommand, actionCommand) => {
|
|
426
472
|
analyticsService.capture("command_executed", {
|
|
427
473
|
command: actionCommand.name()
|
|
428
474
|
});
|
|
@@ -459,52 +505,6 @@ import { homedir as homedir3 } from "os";
|
|
|
459
505
|
import { join as join4 } from "path";
|
|
460
506
|
import { privateKeyToAccount as privateKeyToAccount2 } from "viem/accounts";
|
|
461
507
|
|
|
462
|
-
// package.json
|
|
463
|
-
var package_default = {
|
|
464
|
-
name: "@zeroxyz/cli",
|
|
465
|
-
version: "0.0.4",
|
|
466
|
-
type: "module",
|
|
467
|
-
bin: {
|
|
468
|
-
zero: "dist/index.js",
|
|
469
|
-
zerocli: "dist/index.js"
|
|
470
|
-
},
|
|
471
|
-
files: [
|
|
472
|
-
"dist"
|
|
473
|
-
],
|
|
474
|
-
publishConfig: {
|
|
475
|
-
access: "public"
|
|
476
|
-
},
|
|
477
|
-
scripts: {
|
|
478
|
-
build: "tsup src/index.ts --format esm --out-dir dist --clean",
|
|
479
|
-
prepublishOnly: "pnpm run build",
|
|
480
|
-
dev: "tsx src/index.ts",
|
|
481
|
-
cli: "ZERO_API_URL=http://localhost:1111 tsx src/index.ts",
|
|
482
|
-
"test:integration": "vitest run --project integration",
|
|
483
|
-
"test:unit": "vitest run --project unit",
|
|
484
|
-
test: "pnpm run test:integration",
|
|
485
|
-
typecheck: "tsc"
|
|
486
|
-
},
|
|
487
|
-
dependencies: {
|
|
488
|
-
"@clack/prompts": "^0.11.0",
|
|
489
|
-
"@relayprotocol/relay-sdk": "^5.2.1",
|
|
490
|
-
"@x402/core": "^2.9.0",
|
|
491
|
-
"@x402/evm": "^2.9.0",
|
|
492
|
-
commander: "^13.0.0",
|
|
493
|
-
mppx: "^0.5.9",
|
|
494
|
-
open: "^11.0.0",
|
|
495
|
-
"posthog-node": "^5.29.2",
|
|
496
|
-
viem: "^2.47.10",
|
|
497
|
-
zod: "^4.3.5"
|
|
498
|
-
},
|
|
499
|
-
devDependencies: {
|
|
500
|
-
"@types/node": "^25.0.7",
|
|
501
|
-
tsup: "^8.5.1",
|
|
502
|
-
tsx: "^4.21.0",
|
|
503
|
-
typescript: "^5.9.3",
|
|
504
|
-
vitest: "^4.0.17"
|
|
505
|
-
}
|
|
506
|
-
};
|
|
507
|
-
|
|
508
508
|
// src/services/analytics-service.ts
|
|
509
509
|
import { randomUUID } from "crypto";
|
|
510
510
|
import { existsSync as existsSync3, mkdirSync as mkdirSync3, readFileSync as readFileSync3, writeFileSync as writeFileSync3 } from "fs";
|