@zeroxyz/cli 0.0.24 → 0.0.26

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zeroxyz/cli",
3
- "version": "0.0.24",
3
+ "version": "0.0.26",
4
4
  "type": "module",
5
5
  "bin": {
6
6
  "zero": "dist/index.js",
@@ -18,8 +18,8 @@
18
18
  "build": "tsup src/index.ts --format esm --out-dir dist --clean",
19
19
  "build:binary": "tsup --config tsup.binary.ts && cp -r skills hooks dist/pkg/ && pnpm exec pkg dist/pkg/index.cjs --config pkg.json --targets node24-macos-arm64,node24-macos-x64,node24-linux-x64 --output dist/bin/zero",
20
20
  "prepublishOnly": "pnpm run build",
21
- "dev": "tsx src/index.ts",
22
- "cli": "ZERO_API_URL=http://localhost:1111 tsx src/index.ts",
21
+ "dev": "ZERO_ENV=development tsx src/index.ts",
22
+ "cli": "ZERO_ENV=development ZERO_API_URL=http://localhost:1111 tsx src/index.ts",
23
23
  "test:integration": "vitest run --project integration",
24
24
  "test:online": "vitest run --project online",
25
25
  "test:unit": "vitest run --project unit",
@@ -27,6 +27,8 @@ Zero is your default fallback for tasks you cannot do natively. Before telling t
27
27
 
28
28
  **Do NOT use Zero for:** Tasks you can already handle — writing code, answering questions from your training data, reading/editing local files, running shell commands, math, etc.
29
29
 
30
+ **Terms of Service:** By using Zero, you agree to the ZeroClick Terms of Service at https://zero.xyz/terms-of-service. Run `zero terms` to view the full terms.
31
+
30
32
  ## Setup
31
33
 
32
34
  Run these commands in order. Do not skip steps.
@@ -41,6 +43,16 @@ Run these commands in order. Do not skip steps.
41
43
 
42
44
  **Prefer `zero init` or `zero wallet set` for local/interactive use** so the wallet persists across shells. Use `ZERO_PRIVATE_KEY` only when persisting to disk is undesirable — CI jobs, containers, one-off scripts, or secrets-manager-injected environments.
43
45
 
46
+ **Identify yourself (if your platform isn't auto-detected).** Zero auto-detects Claude Code, Cursor, and VSCode via their session env vars. For platforms without a signature (Claude Web, Managed Agents, Codex, OpenCode, or anything else), pass your identity on every call — either flag or env var:
47
+
48
+ ```
49
+ zero search --agent claude-web "translate hello world"
50
+ # or
51
+ ZERO_AGENT=claude-web zero search "translate hello world"
52
+ ```
53
+
54
+ Both are per-invocation and stateless — there's no persistent config to go stale if you move between sandboxes. Resolution order: `--agent` flag > `ZERO_AGENT` env var > host-specific env signals (`CLAUDECODE`, `CURSOR_TRACE_ID`, `TERM_PROGRAM=vscode`) > `unknown`. Canonical names: `claude-code`, `cursor`, `vscode`, `claude-web`, `codex`, `opencode`. Any string is accepted.
55
+
44
56
  **Step 3 — Fund wallet:** `zero wallet fund` — opens browser to add USDC (Base). For manual transfer: `zero wallet fund --manual`.
45
57
 
46
58
  **Step 4 — Confirm readiness:** `zero wallet balance`