@koda-sl/baker-cli 0.328.0 → 0.330.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 +8 -4
- package/dist/cli.js +312 -256
- package/dist/cli.js.map +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -99,8 +99,9 @@ An option a command does not declare stops the run with `UNKNOWN_ARGUMENT`, nami
|
|
|
99
99
|
closest real one. Previously such an option was accepted and ignored, so a call that
|
|
100
100
|
looked like it had filtered or narrowed a result was in fact answering the unfiltered
|
|
101
101
|
question — and nothing in the output said so. Both spellings of an option work
|
|
102
|
-
(`--run-id` and `--runId`), as they always did.
|
|
103
|
-
every option
|
|
102
|
+
(`--run-id` and `--runId`), as they always did. The error's `fix` names the exact call
|
|
103
|
+
that lists every option: `baker schema <command>` (`check_schema`) when the command
|
|
104
|
+
registers a schema, `baker <command> --help` (`check_help`) when it does not.
|
|
104
105
|
|
|
105
106
|
### Fresh reads: `--no-cache`
|
|
106
107
|
|
|
@@ -1426,6 +1427,8 @@ baker experiment fold # make the page
|
|
|
1426
1427
|
|
|
1427
1428
|
**A finished test is a record.** Its counts are frozen when it ends, so it reads the same next year as it did that day; its `learning` is what it taught, in a person's words. `history` returns every finished test — the claim, what was different, the numbers with their interval and confidence, what was kept and whether that went against the numbers, whether the belief held, and the learning — and `plan` returns the same entries as `pastTests` for the page it sizes, so a hypothesis is chosen against the page's record rather than in ignorance of it.
|
|
1428
1429
|
|
|
1430
|
+
**The verdict is one interval against two numbers.** A 95% anytime-valid interval on the lift, against zero and against the lift the test was built to find (δ): above zero is a `winner` (variant), below zero a `winner` (control), entirely inside ±δ `no_difference`, and under +δ otherwise `cannot_win` — the new version can no longer win by what the test was looking for. Nothing is gated on days; `stillNeeded` says how many more visitors and conversions the test needs if the gap holds, and `earliestDecisionAt` is only that at today's pace.
|
|
1431
|
+
|
|
1429
1432
|
**The confidence is anytime-valid.** `--full` carries `evidence.confidence`, how sure the numbers are that the two versions differ at all, read off the same construction as the verdict — so it holds however often it is read, and a winner is called exactly when it crosses 95%. Beside it, `probabilityVariantBetter` is the Bayesian chance the new variant is the better one, which is for printing and never for deciding.
|
|
1430
1433
|
|
|
1431
1434
|
**Finishing with the variant takes two beats, and `fold` is the second.** `finish --keep variant` records which version is live and the edge serves it to everyone at once. `baker experiment fold` moves that version into the page's own folder, archives the one that lost as a self-contained snapshot under `src/_variants/<page id>/<n>/`, and deletes the variant folder. Until it runs, the page is served by a rewrite and cannot be tested again. Run `fold` with no arguments after any test ends, then publish; Baker drops the rewrite by itself once the new pages are live.
|
|
@@ -3659,8 +3662,9 @@ Inspect command argument schemas for AI agent introspection.
|
|
|
3659
3662
|
|
|
3660
3663
|
```bash
|
|
3661
3664
|
baker schema # List all commands
|
|
3662
|
-
baker schema ads
|
|
3663
|
-
baker schema
|
|
3665
|
+
baker schema ads google query # Get query command schema, path as typed
|
|
3666
|
+
baker schema ads.google.query # Same schema, dotted name
|
|
3667
|
+
baker schema tag-manager read # Kebab-case paths resolve to their registered name (tagManager.read)
|
|
3664
3668
|
```
|
|
3665
3669
|
|
|
3666
3670
|
Not every command registers a schema. On `NOT_FOUND` the error carries a structured `fix` pointing at `--help` and the family's agent doc (`__tooling__/docs/tools/baker/<family>.md` in sandboxes). Every top-level family's `--help` also ends with a `Full guide:` line pointing at that doc; `packages/cli/__tests__/doc-coverage.test.ts` fails CI if a mounted command is missing from its family doc.
|