@withgauge/cli 0.10.2 → 0.11.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.
Files changed (3) hide show
  1. package/README.md +53 -1
  2. package/dist/index.js +2401 -1592
  3. package/package.json +1 -1
package/README.md CHANGED
@@ -27,6 +27,12 @@ gauge stats rankings -o json # brand rankings (share of voice) as JSON
27
27
  gauge query -d ecosystem -m installs,install_rate -o json # a flexible report
28
28
  ```
29
29
 
30
+ `gauge instructions` prints the CLI's own agent instructions to stdout: one
31
+ skill file covering every command group. `gauge instructions <topic>` reprints
32
+ one group alone. `gauge --help` points agents at it, or write the file into the
33
+ repo with `gauge instructions --install`. The text ships inside the CLI, so it
34
+ never drifts from the commands it describes.
35
+
30
36
  Run `gauge --help` (or `gauge <command> --help`) for the full command set:
31
37
  evals, preference, models, personas, skills, mcp, repos, runs, optimizations,
32
38
  experiments,
@@ -93,6 +99,52 @@ immediate launches. They use the stored configuration and ask before spending
93
99
  `gauge preference run <id> --scenario <scenarioId>` (repeatable) runs a subset;
94
100
  omit it and every scenario runs. Neither launch touches the cadence clock.
95
101
 
102
+ ## Optimizations: Gauge measures, you author
103
+
104
+ `gauge optimizations` improves one surface you own — a docs page or a skill —
105
+ against an eval or a preference prompt. Gauge measures a baseline, runs the
106
+ trials you author, judges them, and tells you which change won. It never writes
107
+ the change itself, and it never touches your repository. You edit on disk and
108
+ send the text; Gauge serves it to the sandboxed agent in place of the live page
109
+ or skill version.
110
+
111
+ A scripted or agent-driven loop:
112
+
113
+ ```sh
114
+ gauge optimizations diagnose --eval es_1 # where the sessions fail
115
+ gauge optimizations estimate --eval es_1 --target claude-code:claude-opus-4-8
116
+ gauge optimizations start --eval es_1 --target claude-code:claude-opus-4-8 --yes
117
+ gauge optimizations watch cl_1 # exit 4 = your turn
118
+
119
+ gauge optimizations page cl_1 --url https://docs.acme.dev/start > start.md
120
+ $EDITOR start.md
121
+ gauge optimizations trials add cl_1 \
122
+ --title "Lead with the env var" --page https://docs.acme.dev/start \
123
+ --body-file start.md --launch --idempotency-key start-env-var --yes
124
+
125
+ gauge optimizations watch cl_1
126
+ gauge optimizations trial cl_1 R1 # score, verdict, sessions
127
+ gauge optimizations change cl_1 R1 --body # the winning text, to paste
128
+ gauge optimizations adopt cl_1 R1 --yes # the new moving baseline
129
+ gauge optimizations complete cl_1 --yes
130
+ ```
131
+
132
+ `page` and `skill-files` print the exact frozen content a trial starts from.
133
+ Edit a skill with `--edit-skill <versionId> --skill-dir <path>`: the directory
134
+ holds the complete bundle, `SKILL.md` included. `trials template --kind <kind>`
135
+ prints a skeleton for the `--file` form.
136
+
137
+ Every detail carries `nextAction` — `START`, `WAIT`, `AUTHOR_TRIAL`,
138
+ `LAUNCH_ROUND`, `ADOPT`, `RESUME`, or `NONE`. Read it (`get -o json`) instead of
139
+ inferring whose turn it is from round and trial statuses. `watch` exits `4` when
140
+ the answer is you.
141
+
142
+ `--idempotency-key` makes `trials add` safe to retry: the same key returns the
143
+ trial the first call created, and never buys a second set of sessions.
144
+
145
+ Adoption moves Gauge's measured baseline. It does not open a pull request, so
146
+ take the winning text from `change --body` and apply it to your own source.
147
+
96
148
  ## Models, reports, and scripting
97
149
 
98
150
  Use `gauge models list` before pinning models. It reads the organization's live
@@ -107,7 +159,7 @@ and effective capabilities. Open harnesses use `--agent pi:<model>` and
107
159
 
108
160
  Every read supports `-o json` for scripting. `GAUGE_API_TOKEN` overrides
109
161
  stored credentials (useful in CI). Exit codes: `0` ok · `1` error ·
110
- `2` usage · `3` billing-blocked.
162
+ `2` usage · `3` billing-blocked · `4` needs your input (`optimizations watch`).
111
163
 
112
164
  ## Support
113
165