@ultimat3/cli 31.30.0 → 31.31.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/package.json +30 -30
- package/src/ci-runs.ts +20 -5
- package/src/cmd-doctor.ts +14 -3
- package/wiki/Known-Gaps.md +30 -0
- package/wiki/Stability.md +21 -2
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ultimat3/cli",
|
|
3
|
-
"version": "31.
|
|
3
|
+
"version": "31.31.0",
|
|
4
4
|
"description": "The `x` binary: new, dev, build, verify, generate, db, mcp, doctor, deploy",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"ultimate",
|
|
@@ -52,35 +52,35 @@
|
|
|
52
52
|
"dev": "bun run src/bin.ts dev"
|
|
53
53
|
},
|
|
54
54
|
"dependencies": {
|
|
55
|
-
"@babel/core": "^8.0.
|
|
56
|
-
"@ultimat3/action": "31.
|
|
57
|
-
"@ultimat3/admin": "31.
|
|
58
|
-
"@ultimat3/ai": "31.
|
|
59
|
-
"@ultimat3/auth": "31.
|
|
60
|
-
"@ultimat3/cache": "31.
|
|
61
|
-
"@ultimat3/core": "31.
|
|
62
|
-
"@ultimat3/db": "31.
|
|
63
|
-
"@ultimat3/entity": "31.
|
|
64
|
-
"@ultimat3/flags": "31.
|
|
65
|
-
"@ultimat3/http": "31.
|
|
66
|
-
"@ultimat3/i18n": "31.
|
|
67
|
-
"@ultimat3/jobs": "31.
|
|
68
|
-
"@ultimat3/mail": "31.
|
|
69
|
-
"@ultimat3/manifest": "31.
|
|
70
|
-
"@ultimat3/mcp": "31.
|
|
71
|
-
"@ultimat3/money": "31.
|
|
72
|
-
"@ultimat3/notify": "31.
|
|
73
|
-
"@ultimat3/policy": "31.
|
|
74
|
-
"@ultimat3/pwa": "31.
|
|
75
|
-
"@ultimat3/query": "31.
|
|
76
|
-
"@ultimat3/realtime": "31.
|
|
77
|
-
"@ultimat3/render": "31.
|
|
78
|
-
"@ultimat3/schema": "31.
|
|
79
|
-
"@ultimat3/scraping": "31.
|
|
80
|
-
"@ultimat3/seo": "31.
|
|
81
|
-
"@ultimat3/storage": "31.
|
|
82
|
-
"@ultimat3/testing": "31.
|
|
83
|
-
"@ultimat3/time": "31.
|
|
55
|
+
"@babel/core": "^8.0.10",
|
|
56
|
+
"@ultimat3/action": "31.31.0",
|
|
57
|
+
"@ultimat3/admin": "31.31.0",
|
|
58
|
+
"@ultimat3/ai": "31.31.0",
|
|
59
|
+
"@ultimat3/auth": "31.31.0",
|
|
60
|
+
"@ultimat3/cache": "31.31.0",
|
|
61
|
+
"@ultimat3/core": "31.31.0",
|
|
62
|
+
"@ultimat3/db": "31.31.0",
|
|
63
|
+
"@ultimat3/entity": "31.31.0",
|
|
64
|
+
"@ultimat3/flags": "31.31.0",
|
|
65
|
+
"@ultimat3/http": "31.31.0",
|
|
66
|
+
"@ultimat3/i18n": "31.31.0",
|
|
67
|
+
"@ultimat3/jobs": "31.31.0",
|
|
68
|
+
"@ultimat3/mail": "31.31.0",
|
|
69
|
+
"@ultimat3/manifest": "31.31.0",
|
|
70
|
+
"@ultimat3/mcp": "31.31.0",
|
|
71
|
+
"@ultimat3/money": "31.31.0",
|
|
72
|
+
"@ultimat3/notify": "31.31.0",
|
|
73
|
+
"@ultimat3/policy": "31.31.0",
|
|
74
|
+
"@ultimat3/pwa": "31.31.0",
|
|
75
|
+
"@ultimat3/query": "31.31.0",
|
|
76
|
+
"@ultimat3/realtime": "31.31.0",
|
|
77
|
+
"@ultimat3/render": "31.31.0",
|
|
78
|
+
"@ultimat3/schema": "31.31.0",
|
|
79
|
+
"@ultimat3/scraping": "31.31.0",
|
|
80
|
+
"@ultimat3/seo": "31.31.0",
|
|
81
|
+
"@ultimat3/storage": "31.31.0",
|
|
82
|
+
"@ultimat3/testing": "31.31.0",
|
|
83
|
+
"@ultimat3/time": "31.31.0",
|
|
84
84
|
"babel-preset-solid": "^1.9.16"
|
|
85
85
|
}
|
|
86
86
|
}
|
package/src/ci-runs.ts
CHANGED
|
@@ -11,10 +11,20 @@ import type { GhRepo } from './gh-target';
|
|
|
11
11
|
export const RUN_FIELDS =
|
|
12
12
|
'databaseId,status,conclusion,headBranch,displayTitle,workflowName,url,createdAt,headSha';
|
|
13
13
|
|
|
14
|
+
/**
|
|
15
|
+
* A run's, a job's or a step's verdict as `gh` prints it: `""` until it has one (captured
|
|
16
|
+
* 2026-11-16, `ci-runs-fixture.ts`), so the empty string is read here and becomes `null` below.
|
|
17
|
+
*/
|
|
18
|
+
const VERDICT = t.nullable(t.string.min(0));
|
|
19
|
+
|
|
20
|
+
/** `""` is no verdict yet: the one spelling the rest of `x ci` reads is `null`. */
|
|
21
|
+
const verdictOf = (conclusion: string | null): string | null =>
|
|
22
|
+
conclusion === '' ? null : conclusion;
|
|
23
|
+
|
|
14
24
|
const RUN_ROW = t.object({
|
|
15
25
|
databaseId: t.number,
|
|
16
26
|
status: t.string,
|
|
17
|
-
conclusion:
|
|
27
|
+
conclusion: VERDICT,
|
|
18
28
|
headBranch: t.string,
|
|
19
29
|
headSha: t.string,
|
|
20
30
|
displayTitle: t.string,
|
|
@@ -23,12 +33,12 @@ const RUN_ROW = t.object({
|
|
|
23
33
|
createdAt: t.string,
|
|
24
34
|
});
|
|
25
35
|
|
|
26
|
-
const STEP = t.object({ name: t.string, conclusion:
|
|
36
|
+
const STEP = t.object({ name: t.string, conclusion: VERDICT, number: t.number });
|
|
27
37
|
|
|
28
38
|
const JOB = t.object({
|
|
29
39
|
name: t.string,
|
|
30
40
|
status: t.string,
|
|
31
|
-
conclusion:
|
|
41
|
+
conclusion: VERDICT,
|
|
32
42
|
url: t.string,
|
|
33
43
|
steps: t.array(STEP),
|
|
34
44
|
});
|
|
@@ -97,7 +107,7 @@ interface RunRow {
|
|
|
97
107
|
const runOf = (row: RunRow): CiRun => ({
|
|
98
108
|
id: row.databaseId,
|
|
99
109
|
status: row.status,
|
|
100
|
-
conclusion: row.conclusion,
|
|
110
|
+
conclusion: verdictOf(row.conclusion),
|
|
101
111
|
branch: row.headBranch,
|
|
102
112
|
headSha: row.headSha,
|
|
103
113
|
title: row.displayTitle,
|
|
@@ -170,7 +180,12 @@ export async function viewRun(
|
|
|
170
180
|
RUN_VIEW,
|
|
171
181
|
{ label: `gh run view ${id}`, fix: `x ci --run ${id} --repo ${repo.slug} --json` },
|
|
172
182
|
);
|
|
173
|
-
|
|
183
|
+
const jobs = viewed.jobs.map((job) => ({
|
|
184
|
+
...job,
|
|
185
|
+
conclusion: verdictOf(job.conclusion),
|
|
186
|
+
steps: job.steps.map((step) => ({ ...step, conclusion: verdictOf(step.conclusion) })),
|
|
187
|
+
}));
|
|
188
|
+
return { run: runOf(viewed), jobs };
|
|
174
189
|
}
|
|
175
190
|
|
|
176
191
|
/**
|
package/src/cmd-doctor.ts
CHANGED
|
@@ -10,6 +10,7 @@ import type { CliCommand, CommandContext } from './command';
|
|
|
10
10
|
import { advisoryFloorFindings } from './doctor-advisory-floors';
|
|
11
11
|
import { appUrlFindings } from './doctor-app-url';
|
|
12
12
|
import { authStorageFindings } from './doctor-auth';
|
|
13
|
+
import type { BrowserFact } from './doctor-browser';
|
|
13
14
|
import { browserProbe, browserWarnings, withBrowserReport } from './doctor-browser';
|
|
14
15
|
import { chartAlertsProbe, NOTHING_MISSING, withChartAlertsListing } from './doctor-chart-alerts';
|
|
15
16
|
import { coverageExcludesProbe, withCoverageExcludes } from './doctor-coverage';
|
|
@@ -144,8 +145,17 @@ export async function runDoctor(probe: DoctorProbe): Promise<readonly Finding[]>
|
|
|
144
145
|
return findings;
|
|
145
146
|
}
|
|
146
147
|
|
|
148
|
+
/**
|
|
149
|
+
* The report's probe: the verdict's, and the browser listed beside it. Its own member, never asked
|
|
150
|
+
* from inside the report: a `chrome --version` there was every report test's, on its clock.
|
|
151
|
+
*/
|
|
152
|
+
export interface DoctorReportProbe extends DoctorProbe {
|
|
153
|
+
/** Which Chrome the e2e driver would launch, and whether one is required (`doctor-browser.ts`). */
|
|
154
|
+
browser(): Promise<BrowserFact | undefined>;
|
|
155
|
+
}
|
|
156
|
+
|
|
147
157
|
/** The whole report over one probe: the verdict, then the listings and warnings beside it. */
|
|
148
|
-
export async function reportDoctor(probe:
|
|
158
|
+
export async function reportDoctor(probe: DoctorReportProbe): Promise<CommandResult> {
|
|
149
159
|
// Asked once: `runDoctor` reads the verdict and the report beside it reads the numbers.
|
|
150
160
|
const pooler = probe.root === undefined ? NO_POOLER_FACT : await probe.pooler();
|
|
151
161
|
const findings = await runDoctor({ ...probe, pooler: async () => pooler });
|
|
@@ -189,7 +199,7 @@ export async function reportDoctor(probe: DoctorProbe): Promise<CommandResult> {
|
|
|
189
199
|
);
|
|
190
200
|
// Last, and beside the verdict on `main`: the 31.16.0 checks (`doctor-warnings.ts`).
|
|
191
201
|
// A copy of a shipped guard among them (`X_GUARD_VENDORED`): a warning, so exit stays.
|
|
192
|
-
const browser = await
|
|
202
|
+
const browser = await probe.browser();
|
|
193
203
|
return withDoctorWarnings(withBrowserReport(reminded, browser), [
|
|
194
204
|
...(await doctorWarnings(probe)),
|
|
195
205
|
...vendoredGuardWarnings(guardEntries),
|
|
@@ -205,6 +215,7 @@ export const doctorCommand: CliCommand = {
|
|
|
205
215
|
spec: doctorSpec,
|
|
206
216
|
run(ctx: CommandContext): Promise<CommandResult> {
|
|
207
217
|
const port = doctorPort(ctx.args, ctx.env);
|
|
208
|
-
|
|
218
|
+
const probe = probeFor(ctx.cwd, ctx.bunVersion, port, ctx.env);
|
|
219
|
+
return reportDoctor({ ...probe, browser: () => browserProbe(probe.root, ctx.env) });
|
|
209
220
|
},
|
|
210
221
|
};
|
package/wiki/Known-Gaps.md
CHANGED
|
@@ -116,6 +116,36 @@ downstream app on Ultimate and of systems built without it; no row is a defect i
|
|
|
116
116
|
The test-kit row of that plan's table shipped in 23.0.0 work (`renderView`, `runJobs({ actor })`,
|
|
117
117
|
`mountIslandState`) and is not repeated here.
|
|
118
118
|
|
|
119
|
+
## Carried from the 2026-11 plans
|
|
120
|
+
|
|
121
|
+
`As of 2026-11-15`. The open rows of the
|
|
122
|
+
[2026/11/02](https://github.com/developerz-ai/ultimate/blob/main/docs/plans/2026/11/02/101-absorb-reinvented-patterns/status.yml)
|
|
123
|
+
and [2026/11/11](https://github.com/developerz-ai/ultimate/blob/main/docs/plans/2026/11/11/101-full-stack-efficiency-sweeps/status.yml)
|
|
124
|
+
plans that no slice of the
|
|
125
|
+
[live plan](https://github.com/developerz-ai/ultimate/blob/main/docs/plans/2026/11/14/101-finished-and-self-maintained/overview.md)
|
|
126
|
+
owns. Both trackers read `superseded`; each of their slice rows names where its open work went.
|
|
127
|
+
**Build** is owed work, **deferred** waits on the reason given, **rejected** will not be built. A
|
|
128
|
+
plan tracker left `in_progress` with no commit in its directory for 30 days fails the `roadmap`
|
|
129
|
+
step (`X_ROADMAP_TRACKER_STALE`), so this list, not a stale tracker, is where open work waits.
|
|
130
|
+
|
|
131
|
+
| Gap | Decision | Why, and the record |
|
|
132
|
+
|---|---|---|
|
|
133
|
+
| CI's critical path: `cli`'s own slow tests (the `x upgrade` hop, the scaffold typecheck) | deferred | speed, not correctness: every job is inside its timeout. Re-measure from the run history (`x ci runs --json`) before acting on a figure. 2026/11/02 slice 33 |
|
|
134
|
+
| The framework's own gate at `"isolate": false` | rejected | its suites exercise process-global registries on purpose; the slice's own fallback (keep the flag, record why) holds, [Testing](Testing) states it. Apps run without isolation by default. 2026/11/02 slice 31, step 4 |
|
|
135
|
+
| `x branch` previews, expand/contract renames, CRDT collaboration, mobile, more chart kinds, N-pane docking | deferred | each needs a plan of its own; none is rejected. [`90-deferred.md`](https://github.com/developerz-ai/ultimate/blob/main/docs/plans/2026/11/02/101-absorb-reinvented-patterns/90-deferred.md), "Too large for this plan" |
|
|
136
|
+
| A per-route request ceiling (`X_ISLAND_REQUESTS_OVER_BUDGET`) | deferred | requests per route are measured into `.x/build-stats.json` already; a ceiling waits for the first app that declares one. 2026/11/11 slice 11, I2 |
|
|
137
|
+
| One stylesheet per route instead of per surface | rejected | measured 23.8 kB gzip, immutable and cached across navigations; a per-route split costs requests for bytes the cache already holds. 2026/11/11 slice 11, I7 |
|
|
138
|
+
| Re-running the 2026-11-11 scaffold-and-break session (timing and error-grade tables) | deferred | evidence, not code: `scaffold-smoke` gates two scaffold shapes on every push; the session re-runs against the next change that claims a DX gain. 2026/11/11 slice 19, step 5 |
|
|
139
|
+
| Chart resource requests for the `sync` and `replicator` roles | deferred | unmeasured, so they keep their previous values; measure idle as `web`, `worker` and `scheduler` were before changing them. 2026/11/11 slice 20, O6 |
|
|
140
|
+
| Guards run on changed files only (`--changed`) | deferred | never measured; the slice's own rule drops it if the local saving is under 5 s. 2026/11/11 slice 16, step 5 |
|
|
141
|
+
| A faster `unit` step from the determinism work | rejected | measured at 2–5 %, inside run-to-run noise; determinism is the goal, not speed. 2026/11/11 slice 17 |
|
|
142
|
+
| Rolling the replicator only when its own image or config changed | deferred | the image updater repins every container naming the image and every build is a new digest, so a digest test rolls it every time; needs a per-role change signal. 2026/11/11 slice 30, I13 |
|
|
143
|
+
| Sign-in e2e against an out-of-process stub identity provider, in the reference app | deferred | the e2e suites sign in with the development viewer, which answers only a cookie-less request under `x dev`; a stub provider is a second process the e2e harness does not start. 2026/11/11 slice 18, A7 |
|
|
144
|
+
| A sync-node subscribe fixture for the deployed demo app (`dummy/social-media-clone`) | deferred | needs the app's API importable without its demo seeding side effect (`apps/web/api/index.ts`). 2026/11/11 slice 18, A8 |
|
|
145
|
+
| The reference app's three hourly task + job pairs, as `cronJob()` | build | the reference app shows every primitive once and idiomatically, and a hand-written pair beside the factory teaches the second way. 2026/11/11 slice 18, A13 |
|
|
146
|
+
| One shared `OnTheWire<T>` type | deferred | named once by the tracked-app pass with no second caller measured. 2026/11/11 slice 18 |
|
|
147
|
+
| The reference app's identity model (`members.userId` against `x_users.id == members.id`) | deferred | a schema change in the reference app with no defect behind it. 2026/11/11 slice 18 |
|
|
148
|
+
|
|
119
149
|
## Closed
|
|
120
150
|
|
|
121
151
|
**Historical:** every row is a defect that shipped; the third column is for readers still pinned below
|
package/wiki/Stability.md
CHANGED
|
@@ -50,6 +50,24 @@ Never "stable forever": a covered surface can change, in a scheduled major, with
|
|
|
50
50
|
|
|
51
51
|
Ruling 2026-11-09: the clock moved from v30 to v31. v30 shipped 2026-11-07 while only our own apps ran Ultimate in production, so the window protected no one yet; v31 carries the breaks of plan 101-final-hardening-before-v31, and the window protects adopters from there.
|
|
52
52
|
|
|
53
|
+
## Supported runtimes
|
|
54
|
+
|
|
55
|
+
**A runtime is supported when something runs the gate on it.** The gate runs one Bun, one Postgres and one Solid — the pins below — on every push and pull request; `compat.yml` runs the gate's `unit` and `live` steps weekly on each other version listed (`gh workflow run compat.yml` runs it now). A red cell files or updates one `compat` issue, closed by that cell's next green run: `gh issue list --label compat --state open`. Generated from the workflow's matrix and the pins; a hand edit fails the gate's `unit` step.
|
|
56
|
+
|
|
57
|
+
<!-- generated: compat-table — bun run scripts/compat-table.ts --write -->
|
|
58
|
+
| Runtime | Version | Run by | Status |
|
|
59
|
+
|---|---|---|---|
|
|
60
|
+
| Bun | `1.4.4`, the pin (`.bun-version`) | the gate, every push and pull request (`ci.yml`) | supported |
|
|
61
|
+
| Bun | newest stable | `compat.yml` cell `bun-latest`, weekly | supported |
|
|
62
|
+
| Bun | canary | `compat.yml` cell `bun-canary`, weekly | watched: tested, never promised |
|
|
63
|
+
| Postgres | `17`, the pin (`docker/docker-compose.test.yml`) | the gate, every push and pull request (`ci.yml`) | supported |
|
|
64
|
+
| Postgres | newest `16.x` image | `compat.yml` cell `postgres-16`, weekly | supported |
|
|
65
|
+
| Postgres | newest `17.x` image | `compat.yml` cell `postgres-17`, weekly | supported |
|
|
66
|
+
| Postgres | newest `18.x` image | `compat.yml` cell `postgres-18`, weekly | supported |
|
|
67
|
+
| Solid | `1.9.18`, the pin (root `package.json`) | the gate, every push and pull request (`ci.yml`) | supported |
|
|
68
|
+
| Solid | newest `1.x` | `compat.yml` cell `solid-1`, weekly | supported |
|
|
69
|
+
<!-- end generated -->
|
|
70
|
+
|
|
53
71
|
## The support window
|
|
54
72
|
|
|
55
73
|
| Major | Status | Security fixes until |
|
|
@@ -58,7 +76,7 @@ Ruling 2026-11-09: the clock moved from v30 to v31. v30 shipped 2026-11-07 while
|
|
|
58
76
|
| the previous major | security fixes, as patches on `release/<major>.x` | 6 months after the current major's `## X.0.0` date |
|
|
59
77
|
| anything older | none | [Upgrading](Upgrading), one major per `x upgrade` run |
|
|
60
78
|
|
|
61
|
-
|
|
79
|
+
`release/<major>.x` is cut by `bun run scripts/release-maint.ts --major <N>` (idempotent, `--dry-run` first) at the major's last tag, with `maint-<N>` on every package; on it `scripts/release.ts` ships patches only (`X_RELEASE_LANE_PATCH_ONLY`). Its name is enforced: `ci.yml` and `release-tag.yml` match exactly `release/[0-9]+.x`, and `scripts/release.ts --bump` refuses any other `release/*` branch (`X_RELEASE_BRANCH_NAME`). A bump PR's own branch is `chore/release-X.Y.Z`, never `release/X.Y.Z` (#1054). Once it exists, a patch is `latest` while its major is current and `maint-<major>` once its successor ships. `scripts/dist-tag.ts` decides the tag from the registry's `latest`, and `npm publish` never runs without it.
|
|
62
80
|
|
|
63
81
|
## Deprecation
|
|
64
82
|
|
|
@@ -69,7 +87,7 @@ A removal or a rename ships its alias, marked `@deprecated`, on `main` for at le
|
|
|
69
87
|
| Branch | Holds |
|
|
70
88
|
|---|---|
|
|
71
89
|
| `main` | minors and patches only while the window is closed; a `BREAKING —` changelog entry there is refused |
|
|
72
|
-
| `next` | every breaking change waiting for the window.
|
|
90
|
+
| `next` | every breaking change waiting for the window. `next-sync.yml` merges `main` into it weekly (a conflict, or a workflow-file change the job token may not push, opens one issue with the exact command, closed by the next clean merge), so it never falls behind a fix; `ci.yml` gates every push to it. `scripts/release-due.ts` proposes it as the `chore: release X.0.0` PR once the window opens; a person merges |
|
|
73
91
|
| `release/<major>.x` | the previous major's security patches |
|
|
74
92
|
|
|
75
93
|
A change with both kinds of edit splits into two pull requests: the non-breaking half to `main`, the break to `next`.
|
|
@@ -97,4 +115,5 @@ The maintainer bot judges whether a release is due and which kind (`.dz/briefs/r
|
|
|
97
115
|
| a removal was deprecated first | `bun run scripts/deprecation-window.ts` and the gate | `X_RELEASE_UNDEPRECATED_REMOVAL` |
|
|
98
116
|
| every release from 30.0.0 opens with Highlights, the Release body | `bun run changelog-check` and the gate, over `docs/changelog/` | `X_CHANGELOG_HIGHLIGHTS_MISSING` |
|
|
99
117
|
| a bump branch is `chore/release-X.Y.Z`; `release/*` is only `release/<major>.x` | `scripts/release.ts --bump`; `ci.yml` and `release-tag.yml` filter on `release/[0-9]+.x` (`scripts/release-tag-workflow-shape.test.ts`) | `X_RELEASE_BRANCH_NAME` |
|
|
118
|
+
| the supported runtimes are the ones `compat.yml` and the gate run | `scripts/compat-table.test.ts`, in the gate's `unit` step | `X_COMPAT_TABLE_DRIFT` |
|
|
100
119
|
| a maintenance publish never moves `latest` | `scripts/dist-tag.ts` in `release.yml`; `scripts/registry-audit.ts` audits `latest` and each `maint-*` tag | `X_REGISTRY_LATEST_DRIFT` |
|