@ultimat3/cli 31.39.0 → 31.40.1
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 +1 -1
- package/package.json +29 -29
- package/src/cmd-errors-guards.ts +69 -0
- package/src/cmd-errors.ts +11 -4
- package/src/cmd-exercise.ts +3 -2
- package/src/cmd-new-spec.ts +8 -1
- package/src/cmd-new-target.ts +115 -0
- package/src/cmd-new.ts +13 -19
- package/src/cmd-repro.ts +2 -1
- package/src/codemods/ci-e2e-browser.ts +7 -1
- package/src/codemods/ci-services-env.ts +25 -0
- package/src/codemods/docs-env-guard.ts +31 -0
- package/src/codemods/index.ts +4 -0
- package/src/dev-boot.ts +3 -0
- package/src/dev-rebuild-isr.ts +17 -0
- package/src/dev-rebuild.ts +14 -5
- package/src/error-contract.ts +11 -4
- package/src/exercise-findings-unreached.ts +94 -0
- package/src/exercise-findings.ts +9 -57
- package/src/exercise-route-api.ts +3 -4
- package/src/fix-sequence.ts +28 -3
- package/src/framework-schema-wait.ts +41 -2
- package/src/generate-feature-required.ts +40 -3
- package/src/generate-kinds.ts +23 -2
- package/src/guards-shipped-names.ts +1 -0
- package/src/messages.ts +8 -0
- package/src/serve-boot.ts +4 -0
- package/src/templates/action.ts +7 -2
- package/src/templates/github/ci.yml.ts +3 -2
- package/src/templates/guard-raw-colour.ts +88 -13
- package/src/templates/guard-released-forms.ts +9 -3
- package/src/templates/guard-undeclared-env.ts +192 -0
- package/src/templates/guard-untranslated-string.ts +29 -1
- package/src/templates/policy.ts +7 -1
- package/src/templates/query.ts +8 -6
- package/src/templates/scaffold-docs.ts +1 -0
- package/src/templates/scaffold-guards.ts +4 -1
- package/src/templates/scaffold-i18n.ts +1 -1
- package/src/templates/scaffold-repo.ts +26 -24
- package/src/templates/shapes/agent.ts +2 -2
- package/src/templates/shapes/offline.ts +1 -1
- package/src/templates/shapes/realtime.ts +2 -2
- package/src/templates/shapes/saas.ts +5 -4
- package/src/templates/slice-foundation.ts +29 -9
- package/wiki/Actions.md +1 -1
- package/wiki/CLI-Reference.md +2 -2
- package/wiki/Getting-Started.md +1 -1
- package/wiki/Installation.md +2 -2
- package/wiki/Queries-And-Live-Queries.md +4 -4
- package/wiki/Realtime.md +12 -2
- package/wiki/Tutorial-04-Jobs-And-Realtime.md +3 -2
- package/wiki/Upgrading.md +2 -1
|
@@ -136,12 +136,12 @@ import * as recentPosts from '../app/post/queries/recent-posts';
|
|
|
136
136
|
{
|
|
137
137
|
path: 'package.json',
|
|
138
138
|
find: ' "@ultimat3/policy": ',
|
|
139
|
-
replace: ` "@ultimat3/notify": "
|
|
139
|
+
replace: ` "@ultimat3/notify": "${loadVersion()}",\n "@ultimat3/policy": `,
|
|
140
140
|
},
|
|
141
141
|
{
|
|
142
142
|
path: 'package.json',
|
|
143
143
|
find: ' "@ultimat3/render": ',
|
|
144
|
-
replace: ` "@ultimat3/realtime": "
|
|
144
|
+
replace: ` "@ultimat3/realtime": "${loadVersion()}",\n "@ultimat3/render": `,
|
|
145
145
|
},
|
|
146
146
|
...shapeLines(
|
|
147
147
|
'realtime',
|
|
@@ -72,15 +72,16 @@ const edits = (app: NameSet): readonly ShapeEdit[] => [
|
|
|
72
72
|
replace:
|
|
73
73
|
" entities: adminEntitiesOf(db),\n db,\n // A plan is the payment webhook's to write (`apps/web/app/billing/`): operators only read it.\n resources: { subscriptions: { operations: ['list', 'detail', 'search'] } },\n",
|
|
74
74
|
},
|
|
75
|
-
// A plan's features are flags: the package joins the app's dependencies, at the
|
|
75
|
+
// A plan's features are flags: the package joins the app's dependencies, pinned EXACT at the
|
|
76
|
+
// release like every other @ultimat3/* the scaffold writes (D9) — never a caret range.
|
|
76
77
|
{
|
|
77
78
|
path: 'package.json',
|
|
78
|
-
find:
|
|
79
|
-
replace: ` "@ultimat3/flags": "
|
|
79
|
+
find: ` "@ultimat3/http": "${loadVersion()}",`,
|
|
80
|
+
replace: ` "@ultimat3/flags": "${loadVersion()}",\n "@ultimat3/http": "${loadVersion()}",`,
|
|
80
81
|
},
|
|
81
82
|
...shapeLines(
|
|
82
83
|
'saas',
|
|
83
|
-
`a multi-tenant app — billing is app code in \`${BILLING_DIR}/plans.ts\`, a signed payment webhook (\`${BILLING_DIR}/jobs/${RECEIVER_NAME}.ts\`) moves an org between plans
|
|
84
|
+
`a multi-tenant app — billing is app code in \`${BILLING_DIR}/plans.ts\`, a signed payment webhook (\`${BILLING_DIR}/jobs/${RECEIVER_NAME}.ts\`) moves an org between plans; \`x g sign-in --password\` and \`x g invite\` wrote its auth`,
|
|
84
85
|
),
|
|
85
86
|
];
|
|
86
87
|
|
|
@@ -9,7 +9,7 @@ import type { FeatureTarget } from './entity';
|
|
|
9
9
|
import { entityFiles } from './entity';
|
|
10
10
|
import type { GeneratedFile, NameSet } from './naming';
|
|
11
11
|
import { names } from './naming';
|
|
12
|
-
import { policyFiles } from './policy';
|
|
12
|
+
import { ORG_WRITE_RULE, policyFiles } from './policy';
|
|
13
13
|
|
|
14
14
|
/**
|
|
15
15
|
* Which slice modules a generator's own source imports. Named per generator rather than emitted as
|
|
@@ -271,14 +271,34 @@ export function sliceTakesScaffoldRow(
|
|
|
271
271
|
}
|
|
272
272
|
|
|
273
273
|
/**
|
|
274
|
-
* The ONE permission `name` grants, when `source` declares it as a single literal call
|
|
275
|
-
* `export const canBlogWrite = can('blog:publish')
|
|
276
|
-
* `
|
|
277
|
-
*
|
|
274
|
+
* The ONE permission `name` grants, when `source` declares it as a single literal call —
|
|
275
|
+
* `export const canBlogWrite = can('blog:publish');` — or as the write rule `x g policy` /
|
|
276
|
+
* `x g resource` write themselves (`ORG_WRITE_RULE`: the grant, then the input's org equals the
|
|
277
|
+
* actor's), which a writer in the org passes. Anything else — another predicate, `and`/`or`, a
|
|
278
|
+
* function, a re-export — is `undefined`: the grant cannot be read, and a generated test must not
|
|
279
|
+
* assume one.
|
|
278
280
|
*/
|
|
279
281
|
export function grantOf(source: string, name: string): string | undefined {
|
|
280
|
-
const
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
282
|
+
const code = stripComments(source);
|
|
283
|
+
return grantPattern(name, 'literal').exec(code)?.[2] ?? grantPattern(name, 'org').exec(code)?.[2];
|
|
284
|
+
}
|
|
285
|
+
|
|
286
|
+
/**
|
|
287
|
+
* Whether `name` is the generator's own org write rule (`ORG_WRITE_RULE`): then the contract's
|
|
288
|
+
* exercise pins the input's org to the actor's, exactly as for a slice this run's policy writes.
|
|
289
|
+
*/
|
|
290
|
+
export function writesOrgRule(source: string, name: string): boolean {
|
|
291
|
+
return grantPattern(name, 'org').test(stripComments(source));
|
|
284
292
|
}
|
|
293
|
+
|
|
294
|
+
function grantPattern(name: string, form: 'literal' | 'org'): RegExp {
|
|
295
|
+
const head = `\\bexport\\s+const\\s+${name}\\s*=\\s*can(?:<[A-Za-z0-9_]+>)?\\(\\s*(['"\`])([A-Za-z0-9_.*:-]+)\\1`;
|
|
296
|
+
return form === 'literal'
|
|
297
|
+
? new RegExp(`${head}\\s*\\)\\s*;`)
|
|
298
|
+
: new RegExp(`${head}\\s*,\\s*${ORG_WRITE_RULE_PATTERN}\\s*,?\\s*\\)\\s*;`);
|
|
299
|
+
}
|
|
300
|
+
|
|
301
|
+
/** `ORG_WRITE_RULE` with every run of whitespace free, so a formatter's line breaks still match. */
|
|
302
|
+
const ORG_WRITE_RULE_PATTERN = ORG_WRITE_RULE.split(/\s+/)
|
|
303
|
+
.map((token) => token.replace(/[.*+?^${}()|[\]\\]/g, '\\$&'))
|
|
304
|
+
.join('\\s*');
|
package/wiki/Actions.md
CHANGED
|
@@ -279,7 +279,7 @@ export const likePost = mutator({
|
|
|
279
279
|
|
|
280
280
|
| Code | When | Fix |
|
|
281
281
|
|---|---|---|
|
|
282
|
-
| `X_ACTION_POLICY_MISSING` | an action registered without `policy` | add `policy: can('<
|
|
282
|
+
| `X_ACTION_POLICY_MISSING` | an action registered without `policy` | add `policy: can('<resource>:<verb>')` (a permission `definePermissions()` declares, never the action's name) or `policy: allow('public')` to the declaration |
|
|
283
283
|
| `X_ACTION_DUPLICATE` | two actions share an export name | rename one — names are globally unique |
|
|
284
284
|
| `X_INPUT_INVALID` | body fails the `input` schema — including a string (or a `t.record` key) carrying U+0000, which every string-backed `t` refuses because Postgres `text`/`jsonb` cannot store it. Tabs, newlines and the other C0 controls are accepted. `As of 2026-09-29` | `x actions show <name> --json` prints the expected schema |
|
|
285
285
|
| `X_FORBIDDEN` | the policy said no — one code for the direct call, the HTTP 403 and the MCP tool error | grant the capability, or call as an actor who has it |
|
package/wiki/CLI-Reference.md
CHANGED
|
@@ -87,7 +87,7 @@ x new <name> [--dir path] [--shape api|blog|dashboard] [--no-example] [--no-git]
|
|
|
87
87
|
| `--shape` | string | none | start from an app shape — `api`, `blog` or `dashboard`, each an overlay over this scaffold ([Shapes](Shapes)). An unknown name is `X_NEW_SHAPE_UNKNOWN`; with `--no-example`, `X_NEW_SHAPE_CONFLICT` (a shape is its own example). Both refuse before a file is written. `dashboard` then runs `x g sign-in --password` in the new app (listed under `data.generate` by `--dry-run`); a refusal there is `X_NEW_SHAPE_GENERATE_FAILED` |
|
|
88
88
|
| `--git` / `--no-git` | boolean | `true` | `git init`, then one commit named `x new`. On by default because three surfaces assume a repository — `x affected`, `x ci` and `x pr`. A git that is absent or fails never fails `x new`: the tree is the verdict, and `data.git` carries `{ initialized, committed, problem }` |
|
|
89
89
|
| `--dry-run` | boolean | `false` | print the file list, write nothing |
|
|
90
|
-
| `--force` | boolean | `false` | write into a directory that already exists |
|
|
90
|
+
| `--force` | boolean | `false` | write into a directory that already exists and holds no `app.config.ts`, only into free paths: one path the scaffold would write already on disk (`README.md`, `package.json`, `.gitignore`, …) refuses the run before a byte is written — `X_GENERATE_CONFLICT`, the first five taken paths and a count in `cause`, the same free-directory fix. Never an overwrite. A fresh clone holding `.git` and a `LICENSE` scaffolds. Over an app it is refused, `--force` included (`X_GENERATE_CONFLICT`), and the fix names a free directory (`<name>-2`), never `--force`. `As of 2026-11` |
|
|
91
91
|
|
|
92
92
|
**The name must be one `app.config.ts` accepts.** `x new` asks core's own `defineConfig` about the slug before anything is planned (`appNameIssue`, `packages/cli/src/app-name.ts`) — it is written verbatim as `name:`. Refused with `X_CLI_BAD_FLAG` and a corrected name in the `fix:`, the rest of your flags kept:
|
|
93
93
|
|
|
@@ -127,7 +127,7 @@ Deployment artifacts are part of the scaffold — an app is deployable the momen
|
|
|
127
127
|
|
|
128
128
|
The framework repo's own `docker/helm` carries one template the scaffold does not — `pdb.yaml`, cluster policy rather than app topology. It ships in no npm tarball, so copying it is a `git clone` of this repo, not an install. An app chart from before the monitoring pair gets it from `x g chart-alerts`.
|
|
129
129
|
|
|
130
|
-
`bunx create-ultimate myapp` is the same generator without a global install — and it says so in its own refusals, `As of 2026-08-23`: a `fix:` line is a command the reader is meant to RUN, and `x new myapp` named a binary they have not installed yet. Errors: `X_GENERATE_CONFLICT` (the directory exists — `fix` is the same command with `--force`), `X_CLI_BAD_FLAG` (no name given, or a path where a name goes), `X_BUN_VERSION`.
|
|
130
|
+
`bunx create-ultimate myapp` is the same generator without a global install — and it says so in its own refusals, `As of 2026-08-23`: a `fix:` line is a command the reader is meant to RUN, and `x new myapp` named a binary they have not installed yet. Errors: `X_GENERATE_CONFLICT` (the directory exists — `fix` is the same command with a free name, `<name>-2`; never `--force`), `X_CLI_BAD_FLAG` (no name given, or a path where a name goes), `X_BUN_VERSION`.
|
|
131
131
|
|
|
132
132
|
## x dev
|
|
133
133
|
|
package/wiki/Getting-Started.md
CHANGED
package/wiki/Installation.md
CHANGED
|
@@ -69,7 +69,7 @@ one.
|
|
|
69
69
|
| `--shape <shape>` | none | start from `api`, `blog` or `dashboard` instead of the dashboard and example slice — what each writes and leaves out: [Shapes](Shapes) |
|
|
70
70
|
| `--git` / `--no-git` | `--git` | `git init` and commit the scaffold |
|
|
71
71
|
| `--dry-run` | off | print the file list, write nothing |
|
|
72
|
-
| `--force` | off | write into a directory that already exists |
|
|
72
|
+
| `--force` | off | write into a directory that already exists, holds no `app.config.ts` and none of the paths the scaffold writes (a fresh clone: `.git`, a `LICENSE`); one taken path (`README.md`, `package.json`, …) refuses the run with `X_GENERATE_CONFLICT` naming them, nothing written — never an overwrite |
|
|
73
73
|
| `--json` | off | machine-readable result: the directory, every path written, the git outcome |
|
|
74
74
|
|
|
75
75
|
There is **no** `--admin`, `--locale`, `--tz`, `--currency`, `--no-install` or `--yes` — this table
|
|
@@ -201,6 +201,6 @@ Read tools are unrestricted in dev; write tools are scoped to branch environment
|
|
|
201
201
|
| Remove dev state (embedded PG, storage, caches) | `rm -rf .x` |
|
|
202
202
|
| Remove the CLI | it ships with the app; deleting the repo is the uninstall |
|
|
203
203
|
|
|
204
|
-
Framework
|
|
204
|
+
Framework pins: an app declares every `@ultimat3/*` package at the exact `<version>`, as `x new` and `x upgrade` write it; a range is `X_FRAMEWORK_PIN_RANGE` on `x doctor`. Keep them on one version: the packages move in lockstep, and `x upgrade` moves them together. A third-party wrapper declares them as `peerDependencies` at `^<major>` ([Publish it](Building-Your-Own-Base#publish-it)).
|
|
205
205
|
|
|
206
206
|
Version pinning: `As of 2026-11`, the Bun floor is the one stated at the top of this page and 2.0 the target; SolidJS 2 is in beta and is pinned exactly, and its upgrade is framework work, not app work. There is no ArkType or Drizzle pin to carry — `@ultimat3/schema` ships its own dependency-free validators and `@ultimat3/entity` its own `postgresDriver()`. Details and codemod inventory in [Upgrading](Upgrading). Boot failures and port conflicts in [Troubleshooting](Troubleshooting).
|
|
@@ -244,13 +244,13 @@ the `DownloadFile` and `await runRecording.url(input, { ctx })` the path.
|
|
|
244
244
|
|
|
245
245
|
## `live: true` requires deterministic, bounded SQL
|
|
246
246
|
|
|
247
|
-
`
|
|
247
|
+
A live query without a `.limit()` is `X_QUERY_LIVE_UNBOUNDED` wherever its source is built (`packages/query/src/live-bounds.ts`), so `x verify`'s `exercise` step rejects it. As of 2026-11.
|
|
248
248
|
|
|
249
249
|
| Requirement | Why | Failure |
|
|
250
250
|
|---|---|---|
|
|
251
|
-
| `
|
|
252
|
-
| `
|
|
253
|
-
| No `now()`, `random()`, or non-deterministic function | the same `(input, row)` must always yield the same membership answer |
|
|
251
|
+
| `limit` | an unbounded result set has no bounded change buffer and no bounded reconnect snapshot | `X_QUERY_LIVE_UNBOUNDED` (500) on every read, `exercise` included |
|
|
252
|
+
| `orderBy` | the window's order is what a reader sees; without one it is `id asc` (the order is always made total by the id) | none: the id order is served |
|
|
253
|
+
| No `now()`, `random()`, or non-deterministic function | the same `(input, row)` must always yield the same membership answer | not checked: the author's to keep |
|
|
254
254
|
| No cross-tenant predicate | tenant scoping comes from `ctx`, not from `input` | `X_FORBIDDEN` at subscribe |
|
|
255
255
|
| The source reads as its subscriber's tenant | a sync node shares one read per `(query, input)` **per org**, in a context carrying that org — so `repo.list(limit)` needs no org argument on a live query, exactly as on a request | a source naming another org is `X_TENANCY_ACTOR_MISMATCH`; a subscriber with no org reading a tenant table is `X_TENANCY_ACTOR_ORG_REQUIRED` |
|
|
256
256
|
|
package/wiki/Realtime.md
CHANGED
|
@@ -260,7 +260,7 @@ Solid signal patch — fine-grained, no re-render of the list
|
|
|
260
260
|
| socket | `sync` (stateless, no sticky sessions) | client re-subscribes anywhere; scales on connection count |
|
|
261
261
|
| authz | `policy` on the `query` | evaluated at subscribe **and** re-checked on row delivery — a row that fails the policy is dropped, never sent |
|
|
262
262
|
|
|
263
|
-
The matcher is why this is affordable: membership is decided from the changed row plus the query's predicate, order, and limit — never by re-running the query. Which is exactly why `live: true` requires a
|
|
263
|
+
The matcher is why this is affordable: membership is decided from the changed row plus the query's predicate, order, and limit — never by re-running the query. Which is exactly why `live: true` requires a bounded `sql`: no `.limit()` is `X_QUERY_LIVE_UNBOUNDED` when the source is built ([Queries and live queries](Queries-And-Live-Queries)).
|
|
264
264
|
|
|
265
265
|
## One record per `type:key`
|
|
266
266
|
|
|
@@ -368,6 +368,16 @@ plan-101 DX ledger #21.
|
|
|
368
368
|
| the browser | `useChannel(decl, params, handlers?)`; `topic()` is the one way to spell a topic, and `bun run channel-literals` refuses any other |
|
|
369
369
|
| the manifest | lists every channel (`describeChannels`, on `@ultimat3/realtime/server`). In a contract diff these are **breaking**: a channel removed, its params changed, its policy changed, a record type no longer carried, `events` switched off |
|
|
370
370
|
|
|
371
|
+
### A tenant param is the subscriber's org
|
|
372
|
+
|
|
373
|
+
`As of 2026-11-17` (31.41.0). A channel param that names a records entity's tenant column — `orgId` on
|
|
374
|
+
`records: [posts]` — must equal the subscribing actor's org, checked by the hub before the policy
|
|
375
|
+
runs: the topic `org-feed.<orgId>` IS that org's stream of records, events and presence. Another
|
|
376
|
+
org's value is `X_TOPIC_FORBIDDEN` (cause `X_TENANCY_ACTOR_MISMATCH`), an actor with no org
|
|
377
|
+
`X_TENANCY_ACTOR_ORG_REQUIRED`, a proven `crossTenant()` scope passes. So `policy: can('post:read')`
|
|
378
|
+
is enough: the policy decides the permission, the mechanism decides the tenant — the same split an
|
|
379
|
+
HTTP read has.
|
|
380
|
+
|
|
371
381
|
## A channel event re-reads the page
|
|
372
382
|
|
|
373
383
|
`As of 30.0.0`. For a server-rendered page with nothing to push but "this changed": the channel
|
|
@@ -770,7 +780,7 @@ Verbatim shapes: [`packages/realtime/src/errors.ts`](https://github.com/develope
|
|
|
770
780
|
- Truth is always the server. A client is never the merge authority.
|
|
771
781
|
- One authz system — the `query`'s `policy`, re-evaluated per delivered row.
|
|
772
782
|
- `sync` is stateless. Any state that must survive a restart lives in Postgres or NATS.
|
|
773
|
-
- A live query must be
|
|
783
|
+
- A live query must be bounded: a `live: true` read whose `sql:` declares no `.limit()` is refused `X_QUERY_LIVE_UNBOUNDED` wherever its source is built (`packages/query/src/live-bounds.ts`, called by `read.ts`) — the subscribe, the route, and `x verify`'s `exercise` step, which reads every query once. Its order is deterministic by construction: the declared `orderBy` keys, then `id`.
|
|
774
784
|
- Presence and typing indicators are tier 1 forever — never model ephemeral state as rows.
|
|
775
785
|
- `local` does no I/O, no `Date.now()`, no `Math.random()`. It must be replayable.
|
|
776
786
|
- Offline writes go through the tier-3 mutator queue, never Background Sync guesswork.
|
|
@@ -160,8 +160,9 @@ export const todoList = query({
|
|
|
160
160
|
}),
|
|
161
161
|
policy: canTodoRead,
|
|
162
162
|
live: true,
|
|
163
|
-
//
|
|
164
|
-
|
|
163
|
+
// No `mcp`, as an action writes none: a tool's description is what an agent reads to decide to
|
|
164
|
+
// call it, and a placeholder there is worse than no tool. A read hands rows to an agent, so
|
|
165
|
+
// silence exposes nothing. Write one, then `mcp: { expose: true, description: '…' }`.
|
|
165
166
|
sql: ({ limit, sort, dir }) =>
|
|
166
167
|
// `feature.table`, not the kebab plural: `from()` quotes the identifier into the SQL text,
|
|
167
168
|
// and the entity created the table as snake_case.
|
package/wiki/Upgrading.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# Upgrading
|
|
2
2
|
|
|
3
|
-
**`As of 2026-08`. Semver applies from here.** A breaking change to a documented API needs a major. Every `@ultimat3/*` package moves in lockstep — never mix versions. `x new` declares them at
|
|
3
|
+
**`As of 2026-08`. Semver applies from here.** A breaking change to a documented API needs a major. Every `@ultimat3/*` package moves in lockstep — never mix versions. `x new` declares them at the exact version and `x upgrade` rewrites every pin it moves exact (`20.1.0`, no caret), on purpose — a caret is how `^19.0.0` beside `^19.4.0` came to be mixed, and a range is a silent upgrade that skips the hop's codemods. `x doctor` reports a ranged pin (`X_FRAMEWORK_PIN_RANGE`), naming the exact version to write.
|
|
4
4
|
|
|
5
5
|
> **From v31, one major per 90 days.** The window, what semver covers, the support window and the security exception: [Stability](Stability). A removal now ships its `@deprecated` alias for at least one minor before a major takes it, so `x upgrade` across one major names no edit a minor did not already warn about. The 30 sections below stay as they are.
|
|
6
6
|
|
|
@@ -300,6 +300,7 @@ A setter still on a package's `.` barrel is `X_ADAPTER_PORT_INCOMPLETE` on the `
|
|
|
300
300
|
| a stopped `x upgrade` (**31.28.0**) leaves `.x/upgrade.json`; rerunning it to the same `--to` finishes the hop — install, codemods, gate — and a second `x upgrade` in the same app is refused while one runs (`X_UPGRADE_LOCKED`). Ctrl-C or SIGTERM now stops the hop's own children too | stash a stopped hop's tree, never commit it: `git stash push --include-untracked`, then `x upgrade --to <same version> --json` |
|
|
301
301
|
| a serving role over a schema behind its build **waits** for the migrate step (**31.29.0**) instead of exiting — framework stamp and app migrations alike — and exits after `ULTIMATE_SCHEMA_WAIT_MS` (default 300000); the chart's migrate Job is an Argo CD `Sync` hook in wave −1, named by a hash of its image, its migrate settings and the chart version, deleted on success, and runs on `helm rollback` too | `x upgrade --json` (codemods `migrate-job-ordered`, `helm-alerts-deploy`); after a pre-31.29 chart, `kubectl delete job <release>-migrate` once; `ULTIMATE_SCHEMA_WAIT_MS=0` keeps the old refuse-at-once |
|
|
302
302
|
| `overrides` an app carries for `seroval`, `seroval-plugins` or `source-map-js` are no longer needed from **31.28.0**: `@ultimat3/ui`'s `solid-js` peer is `^1.9.18`, which requires the patched `seroval`; `source-map-js` and `immutable` arrive through `sass` and need a refreshed lockfile. `x doctor` warns below each floor (`X_ADVISORY_FLOOR_UNMET`) | drop those `overrides`, then `x upgrade --json` (its `solid-floor` codemod raises `solid-js`) and `bun update source-map-js immutable` |
|
|
303
|
+
| two shipped guards report more (**31.40.0**), built in: `raw-colour` (`X_RAW_COLOUR`) also reads a component's inline `style` (`style={{ color: '#f00' }}`, a quoted CSS string), and `untranslated-string` (`X_UNTRANSLATED_STRING`) also reads typed user-facing attributes (`aria-label`, `title`, `placeholder`, `alt`, …). A third, `undeclared-env` (`X_UNDECLARED_ENV`), is new: a raw `process.env.X` / `Bun.env.X` that `app.config.ts` does not declare. Every app runs them on its next install; a copy still in `guards/` keeps the old rule until `x upgrade` migrates it to the release after 31.39.0 | each finding names its edit: a semantic token, a `t('…')` key, or the `envSchema` entry to add; `"<name>": "off"` in `guards/shipped.json` opts out |
|
|
303
304
|
|
|
304
305
|
## 29.x → 30.0.0, entry by entry
|
|
305
306
|
|