@xerg/cli 0.1.6 → 0.1.8
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 +17 -8
- package/package.json +3 -3
- package/skills/xerg/SKILL.md +13 -2
package/README.md
CHANGED
|
@@ -1,8 +1,10 @@
|
|
|
1
1
|
# xerg
|
|
2
2
|
|
|
3
|
-
Audit OpenClaw
|
|
3
|
+
Audit OpenClaw workflows in dollars, compare fixes, and surface savings opportunities.
|
|
4
4
|
|
|
5
|
-
Xerg audits OpenClaw workflows in dollars, not tokens. It reads your gateway logs and session transcripts,
|
|
5
|
+
Xerg audits OpenClaw workflows in dollars, not tokens. It reads your gateway logs and session transcripts, surfaces five spend categories across confirmed waste and savings opportunities, and lets you re-run the same audit with `--compare` so you can see exactly what changed after a fix.
|
|
6
|
+
|
|
7
|
+
Everything runs locally by default. No account is required for local audits. No data leaves your machine unless you explicitly `--push` results to the Xerg API for a team dashboard.
|
|
6
8
|
|
|
7
9
|
## 30-second quick start
|
|
8
10
|
|
|
@@ -22,19 +24,25 @@ xerg audit
|
|
|
22
24
|
|
|
23
25
|
## Bundled skill
|
|
24
26
|
|
|
25
|
-
The published `@xerg/cli` package includes the portable Xerg skill bundle at:
|
|
27
|
+
The published `@xerg/cli` package includes the portable Xerg skill bundle inside the installed package at:
|
|
28
|
+
|
|
29
|
+
```text
|
|
30
|
+
skills/xerg/SKILL.md
|
|
31
|
+
```
|
|
32
|
+
|
|
33
|
+
For a local project install, that usually resolves to:
|
|
26
34
|
|
|
27
35
|
```text
|
|
28
36
|
node_modules/@xerg/cli/skills/xerg/SKILL.md
|
|
29
37
|
```
|
|
30
38
|
|
|
31
|
-
That file is a packaged copy of the canonical repo skill at [`skills/xerg/SKILL.md`](../../skills/xerg/SKILL.md). Use it if your agent platform imports skills from disk; installing the npm package does not automatically register the skill with every agent product.
|
|
39
|
+
For a global install, the same file lives inside the global npm package directory instead. That file is a packaged copy of the canonical repo skill at [`skills/xerg/SKILL.md`](../../skills/xerg/SKILL.md). Use it if your agent platform imports skills from disk; installing the npm package does not automatically register the skill with every agent product.
|
|
32
40
|
|
|
33
41
|
## Supported runtime
|
|
34
42
|
|
|
35
|
-
`@xerg/cli` supports Node `
|
|
43
|
+
`@xerg/cli` supports Node `22` and `24`.
|
|
36
44
|
|
|
37
|
-
If you are developing
|
|
45
|
+
If you are developing or releasing from this repo, `.nvmrc` pins the default toolchain to Node `24.14.0`.
|
|
38
46
|
|
|
39
47
|
## Sample output
|
|
40
48
|
|
|
@@ -84,7 +92,7 @@ xerg audit --since 24h --compare
|
|
|
84
92
|
|
|
85
93
|
- Local machine: yes
|
|
86
94
|
- VPS or remote server: yes
|
|
87
|
-
- If OpenClaw runs remotely,
|
|
95
|
+
- If OpenClaw runs remotely, you can audit it from your local machine with `xerg audit --remote user@host`
|
|
88
96
|
- Or point Xerg at exported files directly with flags
|
|
89
97
|
|
|
90
98
|
Remote prerequisites:
|
|
@@ -134,7 +142,8 @@ Example `~/.xerg/config.json`:
|
|
|
134
142
|
|
|
135
143
|
- Total spend by workflow and model, in dollars
|
|
136
144
|
- Observed vs. estimated cost (always labeled)
|
|
137
|
-
-
|
|
145
|
+
- Confirmed waste: retry, loop
|
|
146
|
+
- Savings opportunities: context bloat, downgrade candidates, idle
|
|
138
147
|
- Savings recommendations with suggested A/B tests
|
|
139
148
|
- Before/after deltas on re-audit
|
|
140
149
|
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@xerg/cli",
|
|
3
|
-
"version": "0.1.
|
|
4
|
-
"description": "Audit OpenClaw
|
|
3
|
+
"version": "0.1.8",
|
|
4
|
+
"description": "Audit OpenClaw workflows in dollars, compare fixes, and surface savings opportunities.",
|
|
5
5
|
"keywords": ["ai", "agents", "finops", "llm", "openclaw", "cost", "cli"],
|
|
6
6
|
"homepage": "https://xerg.ai",
|
|
7
7
|
"repository": {
|
|
@@ -30,7 +30,7 @@
|
|
|
30
30
|
}
|
|
31
31
|
},
|
|
32
32
|
"engines": {
|
|
33
|
-
"node": ">=
|
|
33
|
+
"node": ">=22 <25"
|
|
34
34
|
},
|
|
35
35
|
"scripts": {
|
|
36
36
|
"prebuild": "node ../../scripts/sync-cli-skill.mjs",
|
package/skills/xerg/SKILL.md
CHANGED
|
@@ -1,13 +1,23 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: xerg
|
|
3
|
-
description: Audit OpenClaw
|
|
3
|
+
description: Audit OpenClaw workflows in dollars. Local-first audits with compare mode, remote and Railway support, CI gates, and structured recommendations.
|
|
4
4
|
---
|
|
5
5
|
|
|
6
6
|
# Xerg
|
|
7
7
|
|
|
8
8
|
Use `xerg` if it is already installed. If not, use `npx @xerg/cli` with the same arguments.
|
|
9
9
|
|
|
10
|
-
Xerg audits OpenClaw
|
|
10
|
+
Xerg audits OpenClaw workflows in dollars, not tokens. It reads gateway logs and session transcripts, surfaces five spend categories across confirmed waste and savings opportunities, and helps you measure fixes with `--compare`.
|
|
11
|
+
|
|
12
|
+
Local audits need no account. No data leaves your machine unless you explicitly `--push` results to the Xerg API.
|
|
13
|
+
|
|
14
|
+
## Quick Start
|
|
15
|
+
|
|
16
|
+
```bash
|
|
17
|
+
xerg doctor
|
|
18
|
+
xerg audit
|
|
19
|
+
xerg audit --compare
|
|
20
|
+
```
|
|
11
21
|
|
|
12
22
|
## Inputs
|
|
13
23
|
|
|
@@ -180,6 +190,7 @@ Before finalizing work that used Xerg:
|
|
|
180
190
|
- If `--compare` was used, confirm that it compared against a compatible stored snapshot
|
|
181
191
|
- If no data was found, run `xerg doctor` or use explicit source flags rather than guessing
|
|
182
192
|
- Say whether results were pushed to the Xerg API
|
|
193
|
+
- Distinguish confirmed waste (`retry-waste`, `loop-waste`) from directional opportunities (`context-outlier`, `idle-spend`, `candidate-downgrade`)
|
|
183
194
|
|
|
184
195
|
## Notes
|
|
185
196
|
|