@ultimat3/cli 31.36.0 → 31.37.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/CLAUDE.md CHANGED
@@ -88,7 +88,7 @@ Commands: `bun test ./packages/cli/` (repo root: the preload),
88
88
  | `job-budget.ts` | `X_JOB_OUTLASTS_DRAIN` (`manifest`): `timeout` vs `workerBudgetMs(drain)`, from the registry † |
89
89
  | `output-findings.ts` | render layer only: `runnableFix` (`bunx x`, decided by `dispatch.ts`'s `readerFor`) and `collapseFindings`. Throw sites keep `x …` |
90
90
  | `app-load-unresolved.ts` | `X_APP_IMPORT_UNRESOLVED`, read by the scan, `findingFrom` and `x doctor`'s `snapshots` probe |
91
- | `fix-truth.test.ts` / `fix-truth-fixture.ts` / `db-fix-truth.job.test.ts` | a printed fix, executed against a broken scaffold † |
91
+ | `fix-truth*.ts` / `db-fix-truth.job.test.ts` | a printed fix, executed against a broken scaffold † |
92
92
 
93
93
  ### Generators (`x g`, `x new`)
94
94
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ultimat3/cli",
3
- "version": "31.36.0",
3
+ "version": "31.37.0",
4
4
  "description": "The `x` binary: new, dev, build, verify, generate, db, mcp, doctor, deploy",
5
5
  "keywords": [
6
6
  "ultimate",
@@ -53,34 +53,34 @@
53
53
  },
54
54
  "dependencies": {
55
55
  "@babel/core": "^8.0.10",
56
- "@ultimat3/action": "31.36.0",
57
- "@ultimat3/admin": "31.36.0",
58
- "@ultimat3/ai": "31.36.0",
59
- "@ultimat3/auth": "31.36.0",
60
- "@ultimat3/cache": "31.36.0",
61
- "@ultimat3/core": "31.36.0",
62
- "@ultimat3/db": "31.36.0",
63
- "@ultimat3/entity": "31.36.0",
64
- "@ultimat3/flags": "31.36.0",
65
- "@ultimat3/http": "31.36.0",
66
- "@ultimat3/i18n": "31.36.0",
67
- "@ultimat3/jobs": "31.36.0",
68
- "@ultimat3/mail": "31.36.0",
69
- "@ultimat3/manifest": "31.36.0",
70
- "@ultimat3/mcp": "31.36.0",
71
- "@ultimat3/money": "31.36.0",
72
- "@ultimat3/notify": "31.36.0",
73
- "@ultimat3/policy": "31.36.0",
74
- "@ultimat3/pwa": "31.36.0",
75
- "@ultimat3/query": "31.36.0",
76
- "@ultimat3/realtime": "31.36.0",
77
- "@ultimat3/render": "31.36.0",
78
- "@ultimat3/schema": "31.36.0",
79
- "@ultimat3/scraping": "31.36.0",
80
- "@ultimat3/seo": "31.36.0",
81
- "@ultimat3/storage": "31.36.0",
82
- "@ultimat3/testing": "31.36.0",
83
- "@ultimat3/time": "31.36.0",
56
+ "@ultimat3/action": "31.37.0",
57
+ "@ultimat3/admin": "31.37.0",
58
+ "@ultimat3/ai": "31.37.0",
59
+ "@ultimat3/auth": "31.37.0",
60
+ "@ultimat3/cache": "31.37.0",
61
+ "@ultimat3/core": "31.37.0",
62
+ "@ultimat3/db": "31.37.0",
63
+ "@ultimat3/entity": "31.37.0",
64
+ "@ultimat3/flags": "31.37.0",
65
+ "@ultimat3/http": "31.37.0",
66
+ "@ultimat3/i18n": "31.37.0",
67
+ "@ultimat3/jobs": "31.37.0",
68
+ "@ultimat3/mail": "31.37.0",
69
+ "@ultimat3/manifest": "31.37.0",
70
+ "@ultimat3/mcp": "31.37.0",
71
+ "@ultimat3/money": "31.37.0",
72
+ "@ultimat3/notify": "31.37.0",
73
+ "@ultimat3/policy": "31.37.0",
74
+ "@ultimat3/pwa": "31.37.0",
75
+ "@ultimat3/query": "31.37.0",
76
+ "@ultimat3/realtime": "31.37.0",
77
+ "@ultimat3/render": "31.37.0",
78
+ "@ultimat3/schema": "31.37.0",
79
+ "@ultimat3/scraping": "31.37.0",
80
+ "@ultimat3/seo": "31.37.0",
81
+ "@ultimat3/storage": "31.37.0",
82
+ "@ultimat3/testing": "31.37.0",
83
+ "@ultimat3/time": "31.37.0",
84
84
  "babel-preset-solid": "^1.9.16"
85
85
  }
86
86
  }
@@ -41,11 +41,16 @@ x verify --only unit --shard 2/4 --json > part-unit-2.json
41
41
  services — so when sharded, their shards split across runners, never across workers. `As of 2026-11-07` this
42
42
  repository's CI still runs each as one part: its longest job is a `packages` coverage shard, so
43
43
  a second live or e2e runner would cost runner minutes and save no wall clock.
44
- - The split is a pure function of the step's **sorted** file list: round-robin by default, so job
45
- 2 of 4 is the same files on every runner and on your laptop. `--timings <file>` (Bun's
46
- `--timings` file, e.g. the `.x/test-timings.json` every parallel run refreshes — cache it
47
- between CI runs) splits greedy longest-first instead; a file the timings do
48
- not know is costed at their median.
44
+ - The split is a pure function of the step's **sorted** file list, `n` and the `--timings` file
45
+ when given: round-robin by default, so job 2 of 4 is the same files on every runner and on your
46
+ laptop. `--timings <file>` — `{ "path": ms }`, or any JSON object whose `files` is that map
47
+ (Bun's own `--update-timings` file is one) — deals longest-first instead: every file, heaviest
48
+ first (ties by path), to the lightest shard so far (ties to the lowest index). A file the timings
49
+ do not know costs their median; timings that know none of the step's files deal exactly
50
+ round-robin. **Commit the file** and pass the same path to every shard: the deal is then as
51
+ reproducible as round-robin. A per-run cache (`.x/test-timings.json`) restored in one job and not
52
+ another splits two ways — `merge` names the file that ran twice or nowhere. Stale timings cost
53
+ balance, never a verdict.
49
54
  - The part's JSON carries `data.shard` (`index`, `total`, and per step the `corpusHash` of the whole
50
55
  list plus the `files` this shard ran), and each step carries the same facts as `steps[].shard`.
51
56
  - A shard whose slice is empty, or ran only skipped tests, is not red: the zero-tests floor
@@ -111,9 +116,14 @@ green; `verify` downloads every part and runs `bun run verify merge`. An app sca
111
116
  keeps its one-job workflow, which still works; to adopt, copy a fresh scaffold's
112
117
  `.github/workflows/ci.yml`.
113
118
 
114
- This repository's own `ci.yml` reads the same plan: its `tested` job runs `x verify plan --parts 7`
115
- and `jq` gives each row the test services its `needs` level names; `gate` is `fromJSON` of that.
116
- `scripts/ci-workflow-shape.test.ts` runs the step and holds every row to `verifyPlan(7)`.
119
+ This repository's own `ci.yml` reads the same plan: its `tested` job runs `x verify plan --parts 9`
120
+ (four unit shards, three live) and `jq` gives each row the test services its `needs` level names;
121
+ `gate` is `fromJSON` of that. `scripts/ci-workflow-shape.test.ts` runs the step and holds every row
122
+ to `verifyPlan(9)`. Every shard passes `--timings scripts/lib/ci/test-weights.json`, the per-file
123
+ wall ms of one green run's unit parts, written by `bun run scripts/test-weights.ts <artifacts-dir>`
124
+ (the download command is its header) and held canonical by
125
+ `scripts/lib/ci/test-weights.test.ts`. As of 2026-11-16, from run 43903381662's own timings: three
126
+ round-robin shards 378/343/207 s, three weighted 309 each, four weighted 232 each.
117
127
 
118
128
  ## A GitHub Actions workflow, by hand
119
129
 
@@ -681,7 +681,9 @@ at most one per core, printed on the step line; `ULTIMATE_TEST_MEMORY_BUDGET` /
681
681
  `ULTIMATE_TEST_MAX_WORKERS` override, `--workers` wins), shared machine-wide across concurrent runs,
682
682
  and test files are NOT isolated unless `--isolate` or `x.verify.json` `"isolate": true` says so →
683
683
  [Testing](Testing#memory-width-and-isolation). `--shard i/n` (with `--only unit|contract|live|job|e2e`)
684
- runs one CI job's deterministic slice — `live` and `e2e` stay one process inside it, a slice per
684
+ runs one CI job's deterministic slice — round-robin over the sorted files, or with `--timings
685
+ <file>` (`{ "path": ms }`, committed so every job reads one) heaviest-first to the lightest shard,
686
+ an unknown file at the median; `live` and `e2e` stay one process inside it, a slice per
685
687
  runner, each runner with its own services (`As of 2026-11-07`) — and `x verify merge` folds every job's `--json` part back
686
688
  into the gate verdict (`X_VERIFY_SHARD_INVALID`, `X_VERIFY_MERGE_INCOMPLETE`,
687
689
  `X_VERIFY_MERGE_INPUT`) → [CI: the gate across parallel jobs](CI-Parallel-Gate). The paragraphs