@xerg/cli 0.3.0 → 0.4.0
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 +56 -33
- package/dist/index.js +685 -179
- package/dist/index.js.map +1 -1
- package/package.json +2 -1
- package/skills/xerg/SKILL.md +36 -12
package/README.md
CHANGED
|
@@ -1,28 +1,43 @@
|
|
|
1
1
|
# xerg
|
|
2
2
|
|
|
3
|
-
Audit OpenClaw and Hermes workflows in dollars, compare fixes, and
|
|
3
|
+
Audit OpenClaw and Hermes workflows in dollars, compare fixes, and optionally connect hosted follow-up after the first local result.
|
|
4
4
|
|
|
5
|
-
Xerg
|
|
5
|
+
Xerg runs locally by default. Local audits and `--compare` are free. No account is required for local value, and no data leaves your machine unless you explicitly push results to Xerg Cloud.
|
|
6
6
|
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
## 30-second quick start
|
|
7
|
+
## Fastest first run
|
|
10
8
|
|
|
11
9
|
```bash
|
|
12
|
-
npx @xerg/cli
|
|
13
|
-
npx @xerg/cli doctor --verbose
|
|
14
|
-
npx @xerg/cli audit
|
|
15
|
-
npx @xerg/cli audit --compare
|
|
10
|
+
npx @xerg/cli@latest init
|
|
16
11
|
```
|
|
17
12
|
|
|
13
|
+
`init` is the default first-run path. It:
|
|
14
|
+
|
|
15
|
+
- detects local OpenClaw or Hermes data
|
|
16
|
+
- runs a first audit and stores the local snapshot
|
|
17
|
+
- prints the standard terminal summary
|
|
18
|
+
- offers optional hosted follow-up with `connect` and `mcp-setup`
|
|
19
|
+
|
|
18
20
|
Prefer a global install?
|
|
19
21
|
|
|
20
22
|
```bash
|
|
21
23
|
npm install -g @xerg/cli
|
|
22
|
-
xerg
|
|
23
|
-
|
|
24
|
+
xerg init
|
|
25
|
+
```
|
|
26
|
+
|
|
27
|
+
## Direct commands for explicit control
|
|
28
|
+
|
|
29
|
+
If you already know what you want, skip `init` and use the direct flows:
|
|
30
|
+
|
|
31
|
+
```bash
|
|
32
|
+
npx @xerg/cli doctor
|
|
33
|
+
npx @xerg/cli audit
|
|
34
|
+
npx @xerg/cli audit --compare
|
|
35
|
+
npx @xerg/cli audit --json
|
|
36
|
+
npx @xerg/cli audit --markdown
|
|
24
37
|
```
|
|
25
38
|
|
|
39
|
+
Use these when you need non-interactive behavior, CI gates, JSON/Markdown output, or explicit runtime and path flags.
|
|
40
|
+
|
|
26
41
|
## Bundled skill
|
|
27
42
|
|
|
28
43
|
The published `@xerg/cli` package includes the portable Xerg skill bundle inside the installed package at:
|
|
@@ -63,30 +78,23 @@ First savings test
|
|
|
63
78
|
- Move heartbeat_monitor from Claude Opus to Sonnet
|
|
64
79
|
```
|
|
65
80
|
|
|
66
|
-
##
|
|
67
|
-
|
|
68
|
-
- Inspect local audit readiness:
|
|
69
|
-
|
|
70
|
-
```bash
|
|
71
|
-
xerg doctor
|
|
72
|
-
```
|
|
73
|
-
|
|
74
|
-
- Run the first audit:
|
|
75
|
-
|
|
76
|
-
```bash
|
|
77
|
-
xerg audit
|
|
78
|
-
```
|
|
79
|
-
|
|
80
|
-
- Compare the latest run against the newest compatible prior local snapshot:
|
|
81
|
+
## Common commands
|
|
81
82
|
|
|
82
83
|
```bash
|
|
84
|
+
xerg init
|
|
83
85
|
xerg audit --compare
|
|
86
|
+
xerg connect
|
|
87
|
+
xerg mcp-setup
|
|
84
88
|
```
|
|
85
89
|
|
|
86
|
-
|
|
90
|
+
More explicit examples:
|
|
87
91
|
|
|
88
92
|
```bash
|
|
93
|
+
xerg doctor --runtime openclaw
|
|
94
|
+
xerg audit --runtime hermes
|
|
89
95
|
xerg audit --since 24h --compare
|
|
96
|
+
xerg audit --push
|
|
97
|
+
xerg push
|
|
90
98
|
```
|
|
91
99
|
|
|
92
100
|
## Works where your agent data lives
|
|
@@ -121,14 +129,26 @@ xerg audit --runtime hermes --sessions-dir ~/.hermes/sessions
|
|
|
121
129
|
|
|
122
130
|
If only one supported local runtime is present, Xerg auto-selects it. If both OpenClaw and Hermes are present locally, rerun with `--runtime openclaw` or `--runtime hermes`.
|
|
123
131
|
|
|
124
|
-
If
|
|
132
|
+
If local defaults are empty, `xerg init` prints next-step commands for explicit local paths plus remote OpenClaw-only flows:
|
|
125
133
|
|
|
126
134
|
```bash
|
|
127
|
-
xerg
|
|
128
|
-
xerg
|
|
135
|
+
xerg audit --remote user@host
|
|
136
|
+
xerg audit --railway
|
|
129
137
|
```
|
|
130
138
|
|
|
131
|
-
|
|
139
|
+
## Hosted follow-up
|
|
140
|
+
|
|
141
|
+
Hosted sync and hosted MCP are optional paid workspace features. The simplest hosted path is:
|
|
142
|
+
|
|
143
|
+
```bash
|
|
144
|
+
xerg connect
|
|
145
|
+
xerg mcp-setup
|
|
146
|
+
```
|
|
147
|
+
|
|
148
|
+
- `connect` resolves auth from `XERG_API_KEY`, `~/.xerg/config.json`, or stored browser credentials, then offers to push the latest audit
|
|
149
|
+
- `mcp-setup` prints or writes hosted MCP config for Cursor, Claude Code, or another client
|
|
150
|
+
|
|
151
|
+
You can skip both and keep using local audits and compare.
|
|
132
152
|
|
|
133
153
|
## Authentication and config
|
|
134
154
|
|
|
@@ -136,7 +156,7 @@ Push commands resolve credentials in this order:
|
|
|
136
156
|
|
|
137
157
|
1. `XERG_API_KEY`
|
|
138
158
|
2. `~/.xerg/config.json`
|
|
139
|
-
3. `xerg login`
|
|
159
|
+
3. stored browser credentials from `xerg login` at `~/.config/xerg/credentials.json`
|
|
140
160
|
|
|
141
161
|
Optional API URL overrides:
|
|
142
162
|
|
|
@@ -152,7 +172,9 @@ Example `~/.xerg/config.json`:
|
|
|
152
172
|
}
|
|
153
173
|
```
|
|
154
174
|
|
|
155
|
-
`xerg
|
|
175
|
+
`xerg connect` is the guided hosted path. `xerg login` remains available when you want browser auth without the push prompt.
|
|
176
|
+
|
|
177
|
+
`xerg login` stores a browser-issued token in `~/.config/xerg/credentials.json`. That token store is separate from `~/.xerg/config.json`. Hosted MCP works best with a workspace API key.
|
|
156
178
|
|
|
157
179
|
## What the audit shows
|
|
158
180
|
|
|
@@ -178,6 +200,7 @@ Xerg v0 stores economic metadata and audit summaries locally. It does not store
|
|
|
178
200
|
## Troubleshooting
|
|
179
201
|
|
|
180
202
|
- `better-sqlite3` is a native dependency. If install fails, retry on a supported Node version and make sure standard native build tooling is available for your platform.
|
|
203
|
+
- `xerg init` is interactive in v1. Use direct `doctor` / `audit` commands when you need non-interactive control.
|
|
181
204
|
- `--verbose` prints progress updates to stderr for `xerg doctor` and `xerg audit`, which helps distinguish package install time from CLI runtime.
|
|
182
205
|
- If `xerg audit --remote ...` fails before pulling files, verify that both `ssh` and `rsync` are installed and reachable on your `PATH`.
|
|
183
206
|
- If `xerg audit --railway` fails immediately, verify that the `railway` CLI is installed, authenticated, and can access the target project.
|