@ultimat3/cli 31.51.0 → 31.53.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 +1 -1
- package/README.md +9 -9
- package/package.json +29 -29
- package/src/app-kit-disk.ts +39 -0
- package/src/app-kit-forms.ts +27 -0
- package/src/app-kit.ts +146 -0
- package/src/budgets.ts +3 -1
- package/src/catalog-layout.ts +194 -0
- package/src/cdp-shot-driver-screen.ts +72 -0
- package/src/cdp-shot-driver.ts +17 -1
- package/src/cmd-design-capture.ts +210 -0
- package/src/cmd-design-errors.ts +50 -0
- package/src/cmd-design-paths.ts +47 -0
- package/src/cmd-design-publish.ts +64 -0
- package/src/cmd-design-run.ts +229 -0
- package/src/cmd-design-spec.ts +47 -0
- package/src/cmd-design-theme.ts +107 -0
- package/src/cmd-design-url.ts +201 -0
- package/src/cmd-design.ts +188 -0
- package/src/cmd-doctor.ts +3 -0
- package/src/cmd-generate-spec.ts +5 -0
- package/src/cmd-generate.ts +3 -1
- package/src/cmd-i18n-spec.ts +4 -4
- package/src/cmd-i18n-split.ts +133 -0
- package/src/cmd-i18n.ts +46 -66
- package/src/cmd-kit-spec.ts +13 -0
- package/src/cmd-kit.ts +133 -0
- package/src/cmd-shot-against.ts +275 -0
- package/src/cmd-shot-spec.ts +9 -1
- package/src/cmd-shot.ts +19 -0
- package/src/cmd-upgrade.ts +11 -0
- package/src/codemods/agent-kit.ts +130 -0
- package/src/codemods/agents-md-budget.ts +47 -0
- package/src/codemods/docs-visual-quality.ts +198 -0
- package/src/codemods/index.ts +8 -0
- package/src/codemods/settings-kit-allow.ts +49 -0
- package/src/config-redact.ts +20 -4
- package/src/db-rollback-pass.ts +4 -1
- package/src/design-extract-script.ts +187 -0
- package/src/design-extract.ts +311 -0
- package/src/design-map-colors.ts +180 -0
- package/src/design-map.ts +288 -0
- package/src/dev-child-watch.ts +16 -0
- package/src/dev-db-migrate.ts +27 -46
- package/src/dev-db-migrator-hold.ts +131 -0
- package/src/dev-db-rollback.ts +11 -2
- package/src/dev-rebuild-schema.ts +7 -24
- package/src/doctor-kit.ts +25 -0
- package/src/error-catalog.ts +4 -2
- package/src/error-codes-kit.ts +24 -0
- package/src/error-codes.ts +12 -10
- package/src/generate-catalog-locales.ts +25 -2
- package/src/generate-files.ts +31 -1
- package/src/generate-follow-ups.ts +8 -3
- package/src/guards-shipped-names.ts +5 -0
- package/src/i18n-audit.ts +17 -33
- package/src/i18n-index.ts +108 -31
- package/src/i18n-locale-parity.ts +14 -6
- package/src/i18n-new-locale.ts +75 -0
- package/src/i18n-registration.ts +52 -27
- package/src/island-capture.ts +36 -7
- package/src/kit/agent-audit.ts +49 -0
- package/src/kit/agent-data.ts +32 -0
- package/src/kit/agent-server.ts +34 -0
- package/src/kit/agent-shape.ts +61 -0
- package/src/kit/agent-web.ts +49 -0
- package/src/kit/design-map.ts +106 -0
- package/src/kit/managed.ts +12 -0
- package/src/kit/registry.ts +89 -0
- package/src/kit/skill-design-research.ts +119 -0
- package/src/kit/skill-feature.ts +159 -0
- package/src/kit/skill-planx.ts +139 -0
- package/src/kit/skill-upgrade.ts +94 -0
- package/src/kit/skill-verify.ts +80 -0
- package/src/mcp-errors.ts +5 -0
- package/src/mcp-ui-diff.ts +13 -38
- package/src/mcp-ui.ts +30 -1
- package/src/merge-state.ts +3 -2
- package/src/messages-design.ts +104 -0
- package/src/messages-floor.ts +2 -0
- package/src/messages-upgrade.ts +9 -0
- package/src/messages.ts +4 -0
- package/src/registry.ts +4 -0
- package/src/serve-boot-telemetry.ts +106 -0
- package/src/serve-boot.ts +23 -4
- package/src/shot-blank.ts +70 -0
- package/src/shot-diff.ts +96 -0
- package/src/shot-gpu.ts +17 -5
- package/src/templates/catalog-barrel.ts +84 -0
- package/src/templates/guard-animated-layout-script.ts +173 -0
- package/src/templates/guard-effect-without-fallback.ts +117 -0
- package/src/templates/guard-motion-adapter.ts +161 -0
- package/src/templates/guard-raw-frame-loop.ts +134 -0
- package/src/templates/guard-raw-motion-script.ts +132 -0
- package/src/templates/guard-raw-motion-ts-scan.ts +95 -0
- package/src/templates/guard-released-forms.ts +12 -1
- package/src/templates/guard-untranslated-string.ts +27 -6
- package/src/templates/index.ts +1 -2
- package/src/templates/island.ts +55 -8
- package/src/templates/kit-released-forms.ts +63 -0
- package/src/templates/locales.ts +6 -0
- package/src/templates/motion-scale.ts +115 -0
- package/src/templates/scaffold-claude.ts +39 -26
- package/src/templates/scaffold-design.ts +41 -0
- package/src/templates/scaffold-docs.ts +31 -7
- package/src/templates/scaffold-gitattributes.ts +9 -2
- package/src/templates/scaffold-guards.ts +31 -2
- package/src/templates/scaffold-i18n.ts +10 -6
- package/src/templates/scaffold-verify-floor.ts +3 -0
- package/src/templates/shapes/blog-site.ts +15 -0
- package/src/templates/shapes/blog.ts +2 -0
- package/src/templates/shapes/content-site.ts +13 -0
- package/src/templates/shapes/content.ts +2 -0
- package/src/templates/shapes/dashboard-detail.ts +2 -0
- package/src/templates/shapes/dashboard-motion.ts +284 -0
- package/src/templates/shapes/dashboard.ts +19 -1
- package/src/templates/shapes/landing-motion.ts +67 -0
- package/src/templates/shapes/offline.ts +5 -2
- package/src/templates/shapes/saas.ts +4 -0
- package/src/test-ignores.ts +3 -2
- package/src/upgrade-gate.ts +14 -2
- package/src/upgrade-kit.ts +65 -0
- package/src/upgrade-report-kit.ts +28 -0
- package/src/upgrade-report.ts +3 -0
- package/src/verify-checks.ts +9 -1
- package/src/verify-floor.ts +9 -1
- package/src/verify-local-only.ts +66 -0
- package/src/verify-run.ts +17 -2
- package/src/workspace-checks.ts +3 -3
- package/wiki/Actions.md +1 -1
- package/wiki/Agents.md +33 -1
- package/wiki/Auth.md +3 -3
- package/wiki/Batching-And-Preloading.md +1 -0
- package/wiki/CLI-Reference-Data.md +241 -0
- package/wiki/CLI-Reference-Gate.md +572 -0
- package/wiki/CLI-Reference-Project.md +414 -0
- package/wiki/CLI-Reference-Ship.md +348 -0
- package/wiki/CLI-Reference-Tools.md +687 -0
- package/wiki/CLI-Reference.md +18 -2227
- package/wiki/Compared.md +8 -8
- package/wiki/Configuration.md +26 -2
- package/wiki/Deployment.md +1 -1
- package/wiki/Design-Research.md +96 -0
- package/wiki/Effects.md +83 -0
- package/wiki/Entities-And-Migrations.md +3 -2
- package/wiki/FAQ.md +1 -1
- package/wiki/Getting-Started.md +1 -1
- package/wiki/Home.md +2 -2
- package/wiki/I18n.md +39 -5
- package/wiki/Installation.md +1 -1
- package/wiki/Jobs-And-Workflows.md +29 -1
- package/wiki/Known-Gaps.md +6 -2
- package/wiki/MCP-And-AI.md +4 -0
- package/wiki/Motion.md +85 -0
- package/wiki/Observability.md +15 -1
- package/wiki/Outbound-HTTP.md +62 -2
- package/wiki/PWA-And-Offline.md +1 -1
- package/wiki/Policies-And-Authz.md +10 -0
- package/wiki/Project-Layout.md +1 -1
- package/wiki/Realtime.md +29 -2
- package/wiki/Static-Assets.md +1 -1
- package/wiki/Testing.md +33 -0
- package/wiki/Theming.md +31 -8
- package/wiki/Troubleshooting.md +1 -1
- package/wiki/Tutorial-02-First-Feature.md +1 -1
- package/wiki/UI-Components.md +2 -0
- package/wiki/Upgrading.md +9 -3
- package/src/templates/scaffold-claude-agents.ts +0 -161
- package/src/templates/scaffold-claude-commands.ts +0 -239
package/wiki/Motion.md
ADDED
|
@@ -0,0 +1,85 @@
|
|
|
1
|
+
# Motion
|
|
2
|
+
|
|
3
|
+
`@ultimat3/ui/motion`: one animation engine, the browser's own WAAPI, driven by the motion token
|
|
4
|
+
scale. Every engine is ours. No runtime dependency, and no second way to animate.
|
|
5
|
+
|
|
6
|
+
`As of 2026-11`. Stable API, semver from here ([Upgrading](Upgrading)). Issue #1374.
|
|
7
|
+
|
|
8
|
+
| Rule | Enforced by |
|
|
9
|
+
|---|---|
|
|
10
|
+
| Timing comes from tokens, never a literal | `motionTiming` reads `--duration-*` / `--easing-*`; the `raw-motion` guard refuses a literal duration or `cubic-bezier(` in app TS and SCSS |
|
|
11
|
+
| Reduced motion and the reader's pause still everything | `motionAllowed()` in every module; `reset.scss` and `theme.scss` for CSS |
|
|
12
|
+
| No layout property animates | `animate` frames accept none (a type error); `animated-layout-property` refuses one in `.animate(` keyframes and in SCSS |
|
|
13
|
+
| No second engine | the `motion-adapter` guard refuses `motion`, `framer-motion`, `gsap`, `animejs`, `solid-motionone`, `solid-transition-group`, … in app code |
|
|
14
|
+
| No bare frame loop | the `raw-frame-loop` guard refuses `requestAnimationFrame(` without a `// why:`; use `frameLoop` |
|
|
15
|
+
| A barrel island pays nothing for motion | `scripts/ui-motion-bytes.test.ts` pins zero motion modules, and a byte ceiling per entry |
|
|
16
|
+
|
|
17
|
+
## The API
|
|
18
|
+
|
|
19
|
+
```tsx
|
|
20
|
+
import {
|
|
21
|
+
animate, frameLoop, inView, layout, motionAllowed, motionTiming,
|
|
22
|
+
onMotionChange, Presence, PresenceList, scrollLinked, springLinear, springs, stagger,
|
|
23
|
+
} from '@ultimat3/ui/motion';
|
|
24
|
+
```
|
|
25
|
+
|
|
26
|
+
| Export | What it does |
|
|
27
|
+
|---|---|
|
|
28
|
+
| `motionTiming(duration, easing?)` | `{ duration, easing }` in WAAPI's units, from the RESOLVED custom properties, so `defineTheme({ motion })` applies. Stilled: `0.01` ms, never `0` (no finish event) |
|
|
29
|
+
| `animate(el, frames, options?)` | typed frames, `x` · `y` · `scale` · `scaleX` · `scaleY` · `rotate` · `opacity` · `filter` · `clipPath` · `origin` · `offset`, composed into one `transform`. Options: `duration` (a rung), `easing` (a rung or a spring), `delay`, `fill: 'backwards' \| 'both'`. Answers `{ finished, cancel, reverse }`; `finished` never rejects |
|
|
30
|
+
| `stagger(els, frames, { each, limit })` | each element starts one `each` (a duration rung, default `fast`) after the last; past `limit` (8) they start together |
|
|
31
|
+
| `inView(el, onEnter, { once, margin, amount })` | one shared `IntersectionObserver` per `(margin, amount)`. `once` defaults to `true`; with `once: false` a function `onEnter` returns is called on the exit. No observer: in view at once |
|
|
32
|
+
| `scrollLinked(el, frames, { source, axis, range })` | progress along a view timeline (the element crossing its viewport) or a scroll timeline, the engine behind CSS `animation-timeline`. Unsupported or stilled: the element rests |
|
|
33
|
+
| `layout(els, change, { scale })` | FLIP. Every box is read, `change()` runs, every box is read, then each moved element plays from its old place. `scale: true` also inverts size |
|
|
34
|
+
| `<Presence>` | enter and exit for one value. Props: `when`, `as`, `enter`, `exit`, `duration`, `easing`, `exitBeforeEnter`, `appear`, `onExit`, `class`. Owns its wrapper element; an exit is held until it finishes; turning back mid-flight reverses from the current value |
|
|
35
|
+
| `<PresenceList>` | the same for a keyed list: `each`, `key`, `as` (`ul` · `ol` · `div`), one root per key; a removed item exits in place |
|
|
36
|
+
| `frameLoop(tick, { el })` | the one per-frame loop. `tick(dt, now)`; stops on reduced motion, the reader's pause, a hidden tab, `el` offscreen; `dt` is 0 after any stop. Returns the stop |
|
|
37
|
+
| `motionAllowed()` · `onMotionChange(fn)` | false under `prefers-reduced-motion` or `html[data-motion="paused"]`; `fn(allowed)` on each change |
|
|
38
|
+
| `springs` · `springLinear({ stiffness, damping, mass })` | the rungs `gentle` · `snappy` · `bouncy`, committed as `linear()` curves and emitted as `--easing-<name>`; the generator for a rung of your own |
|
|
39
|
+
|
|
40
|
+
On the barrel, not the subpath: `MotionToggle`, the WCAG 2.2.2 pause. It writes
|
|
41
|
+
`data-motion="paused"` on `<html>`, remembers the choice, and stills every CSS animation and
|
|
42
|
+
transition plus every script above. In SCSS: `t.easing(snappy)` is a spring, and
|
|
43
|
+
`@include t.view-transition-name(post-#{$id})` names an element for render's route view transition.
|
|
44
|
+
|
|
45
|
+
```tsx
|
|
46
|
+
import { Card } from '@ultimat3/ui';
|
|
47
|
+
import { layout, Presence } from '@ultimat3/ui/motion';
|
|
48
|
+
|
|
49
|
+
declare const saved: () => boolean;
|
|
50
|
+
declare const cards: HTMLElement[];
|
|
51
|
+
declare const reorder: () => void;
|
|
52
|
+
|
|
53
|
+
export const toast = (
|
|
54
|
+
<Presence when={saved()} easing="snappy">
|
|
55
|
+
<Card>Saved</Card>
|
|
56
|
+
</Presence>
|
|
57
|
+
);
|
|
58
|
+
layout(cards, reorder);
|
|
59
|
+
```
|
|
60
|
+
|
|
61
|
+
## From React and Motion
|
|
62
|
+
|
|
63
|
+
React islands are declined ([FAQ](FAQ#why-no-react-and-no-rsc)). What a Motion or shadcn
|
|
64
|
+
example reaches for, and what to write here:
|
|
65
|
+
|
|
66
|
+
| Motion / React | Ultimate |
|
|
67
|
+
|---|---|
|
|
68
|
+
| `motion.div animate={…}` | `animate(el, frames, { duration, easing })` |
|
|
69
|
+
| `transition={{ type: 'spring', stiffness, damping, mass }}` | `easing: 'gentle' \| 'snappy' \| 'bouncy'`, or `springLinear({ stiffness, damping, mass })` |
|
|
70
|
+
| `AnimatePresence` | `<Presence when>`; `mode="wait"` → `exitBeforeEnter`; `initial={false}` is the default (`appear` opts in) |
|
|
71
|
+
| `AnimatePresence` over a `.map()` | `<PresenceList each key>` |
|
|
72
|
+
| `layout` · `layoutId` | `layout(els, change)` in a page; `@include t.view-transition-name(…)` across pages |
|
|
73
|
+
| `whileInView` · `useInView` | `inView(el, onEnter, { once, margin, amount })` |
|
|
74
|
+
| `useScroll` + `useTransform` | `scrollLinked(el, frames, { source, range })` |
|
|
75
|
+
| `staggerChildren` · `stagger()` | `stagger(els, frames, { each })` |
|
|
76
|
+
| `useAnimationFrame` | `frameLoop(tick, { el })` |
|
|
77
|
+
| `useReducedMotion` · `MotionConfig reducedMotion` | `motionAllowed()` · `onMotionChange(fn)`; always on, nothing to configure |
|
|
78
|
+
| shadcn / Radix `Dialog`, `Sheet`, `Toast`, `Tooltip`, … | the `ui` component with the same job: `Dialog`, `Drawer`, `Toast`, `Tooltip` ([UI components](UI-Components)) |
|
|
79
|
+
|
|
80
|
+
## Why it is built, not wrapped
|
|
81
|
+
|
|
82
|
+
Motion's hybrid `animate` is 26.95 kB gzip, past an island's 20,480 B raw default. `motion/mini`
|
|
83
|
+
is plain WAAPI. Neither handles reduced motion on the vanilla path. Minified island bytes, `As of
|
|
84
|
+
2026-11-28`: `animate` 7,272 B, `inView` + `stagger` 8,866 B, `layout` 7,982 B, `frameLoop` 6,539 B alone, ~3.4 kB of each the coded error every ui component already ships.
|
|
85
|
+
The record: [build vs wrap](https://github.com/developerz-ai/ultimate/blob/main/docs/idea/18-build-vs-wrap.md).
|
package/wiki/Observability.md
CHANGED
|
@@ -108,6 +108,20 @@ Proof, `As of 2026-11-09`: `packages/cli/src/otlp-export.live.test.ts` sends one
|
|
|
108
108
|
|
|
109
109
|
**Span cost.** An unsampled span costs 3.3 µs (root) / 2.0 µs (child), against a 1 µs target (`scripts/bench/results/span-overhead.json`, `As of 2026-11-09`): ids and clock reads are still paid before the sampling decision is known. Known gap, pinned by `scripts/bench/span-overhead.bench.test.ts`.
|
|
110
110
|
|
|
111
|
+
### The service identity
|
|
112
|
+
|
|
113
|
+
Every span, log record, metric collection, `target_info` line and Sentry event carries one resource. The container boot names it (`serve-boot-telemetry.ts`), env first — before `app.config.ts` loads, so a span the config's own import opens already carries what the deploy said. `As of 2026-11`.
|
|
114
|
+
|
|
115
|
+
| Attribute | First that is set wins |
|
|
116
|
+
|---|---|
|
|
117
|
+
| `service.name` | `OTEL_SERVICE_NAME` · `service.name` in `OTEL_RESOURCE_ATTRIBUTES` · `name` in `app.config.ts` |
|
|
118
|
+
| `service.version` | `service.version` in `OTEL_RESOURCE_ATTRIBUTES` · the build id (`BUILD_ID`, or the manifest hash an unstamped image computes — the `x-ultimate-build` value) · `APP_VERSION` (`dev` unset) |
|
|
119
|
+
|
|
120
|
+
- Empty is unset. `OTEL_RESOURCE_ATTRIBUTES` is `key=value,key=value`, values percent-decoded; one malformed pair discards the whole variable with one warn line (the OTel SDK rule), the value never echoed.
|
|
121
|
+
- Before the config loads, only the env can answer: a span opened then carries the env's name (or `unknown_service`) and the stamped `BUILD_ID` (else `APP_VERSION`).
|
|
122
|
+
- Unbooted — a script, a test — the resource is OTel's own `unknown_service` at `dev`. `configureTelemetry({ serviceName, serviceVersion })` returns its release; `resetTelemetry()` forgets the identity too.
|
|
123
|
+
- `x dev` keeps its own recorder and does not name the service.
|
|
124
|
+
|
|
111
125
|
## Instruments
|
|
112
126
|
|
|
113
127
|
```ts
|
|
@@ -279,7 +293,7 @@ CPU autoscaling is wrong for `sync` and `worker`: a node holding 80k idle socket
|
|
|
279
293
|
|
|
280
294
|
## The database, on demand
|
|
281
295
|
|
|
282
|
-
`x db diagnostics --json` (`As of 2026-11`) answers what the series cannot: who blocks whom (`data.blockers.rows[].blockedBy`), what each session is doing, the slowest statements (`pg_stat_statements`, when an operator installed it), unused and invalid indexes, `NOT VALID` constraints, dead tuples and the last autovacuum. Facts only, exit 0; `/readyz` stays the one-`select 1` probe. Read-only, 2 s per statement, no user table read, literals printed as `?`; whoever runs it sees the redacted SQL of every session on the app's database role → [CLI reference](CLI-Reference#x-db). The same report is `dbDiagnostics()` from `@ultimat3/db`.
|
|
296
|
+
`x db diagnostics --json` (`As of 2026-11`) answers what the series cannot: who blocks whom (`data.blockers.rows[].blockedBy`), what each session is doing, the slowest statements (`pg_stat_statements`, when an operator installed it), unused and invalid indexes, `NOT VALID` constraints, dead tuples and the last autovacuum. Facts only, exit 0; `/readyz` stays the one-`select 1` probe. Read-only, 2 s per statement, no user table read, literals printed as `?`; whoever runs it sees the redacted SQL of every session on the app's database role → [CLI reference](CLI-Reference-Data#x-db). The same report is `dbDiagnostics()` from `@ultimat3/db`.
|
|
283
297
|
|
|
284
298
|
## Spans and logs, in detail
|
|
285
299
|
|
package/wiki/Outbound-HTTP.md
CHANGED
|
@@ -68,6 +68,7 @@ re-screen each redirect. All of it is in this one option.
|
|
|
68
68
|
transport's message (`//…@`), and the proxy is never recorded.
|
|
69
69
|
- With no `proxy`, Bun's own `HTTPS_PROXY` / `HTTP_PROXY` / `NO_PROXY` still apply, as for any `fetch`.
|
|
70
70
|
- **Which proxy, and rotating them, is app code** (axiom 8): a resolver over your own inventory.
|
|
71
|
+
- `proxy: () => undefined` dials direct, past the app-wide proxy below.
|
|
71
72
|
|
|
72
73
|
```ts
|
|
73
74
|
import { outbound } from '@ultimat3/core/outbound';
|
|
@@ -84,6 +85,64 @@ await outbound({
|
|
|
84
85
|
});
|
|
85
86
|
```
|
|
86
87
|
|
|
88
|
+
### The app-wide proxy: `outbound` in `app.config.ts`
|
|
89
|
+
|
|
90
|
+
A deploy behind an egress gateway declares it once; every `outbound()` call with no `proxy` of its
|
|
91
|
+
own goes through it — the framework's senders included (APNs, FCM, Web Push, OAuth, MCP, webhooks,
|
|
92
|
+
CDN purge), with no call-site change. `As of 2026-11`.
|
|
93
|
+
|
|
94
|
+
```ts
|
|
95
|
+
import type { EnvSchema } from '@ultimat3/core';
|
|
96
|
+
import { defineConfig, defineEnv } from '@ultimat3/core';
|
|
97
|
+
|
|
98
|
+
export const envSchema = {
|
|
99
|
+
// http(s)://user:pass@egress:3128 — a credential: the environment's, never a literal here.
|
|
100
|
+
EGRESS_PROXY: { type: 'url', required: false, secret: true, description: 'The egress proxy.' },
|
|
101
|
+
} satisfies EnvSchema;
|
|
102
|
+
export const env = defineEnv(envSchema);
|
|
103
|
+
|
|
104
|
+
export const config = defineConfig({
|
|
105
|
+
name: 'shop',
|
|
106
|
+
outbound: {
|
|
107
|
+
proxy: env.EGRESS_PROXY,
|
|
108
|
+
direct: ['otel-collector.observability', 'svc.cluster.local'],
|
|
109
|
+
},
|
|
110
|
+
});
|
|
111
|
+
```
|
|
112
|
+
|
|
113
|
+
| A call's `proxy` | Goes through |
|
|
114
|
+
|---|---|
|
|
115
|
+
| unset | `outbound.proxy` — unless the hop's host is loopback or a `direct` host |
|
|
116
|
+
| a URL, `{ url, headers }` or a resolver | that, as above: the call's own choice always wins |
|
|
117
|
+
| `null` | nothing: direct |
|
|
118
|
+
|
|
119
|
+
- **Never proxied:** `localhost`, `*.localhost`, a loopback literal, and each `outbound.direct` entry
|
|
120
|
+
with every name under it, per label (`cluster.local` covers `a.svc.cluster.local`, never
|
|
121
|
+
`notcluster.local`). Asked per hop with the NAMED host, so a redirect is judged again.
|
|
122
|
+
- `direct` entries are bare host names or IP literals: a scheme, path, port or `*` is
|
|
123
|
+
`X_CONFIG_INVALID`. So is a `proxy` that is not an `http:`/`https:` URL — refused at
|
|
124
|
+
`defineConfig`, the credential never echoed; one installed by hand is still refused per hop
|
|
125
|
+
(`X_OUTBOUND_PROXY_INVALID`).
|
|
126
|
+
- **A plain-`http:` target through the proxy is cleartext** — the proxy reads every header, a
|
|
127
|
+
bearer token or a SigV4 signature included. Routing stays as declared; the first use per host logs
|
|
128
|
+
one `ultimate outbound proxy cleartext` warn line (host and port, never the path or the proxy URL)
|
|
129
|
+
whose fix is `defineConfig({ outbound: { direct: ['<host>'] } })`. An in-cluster gateway or MinIO belongs in `direct`.
|
|
130
|
+
- Installed by the container boot (`configureOutboundProxy`, `@ultimat3/core/outbound`), released at
|
|
131
|
+
stop; an app never calls it. The boot logs `ultimate outbound proxy` with the URL's userinfo as
|
|
132
|
+
`***`.
|
|
133
|
+
|
|
134
|
+
Transports that are not `outbound()` ask the same answer through `ambientProxyFor(url)`
|
|
135
|
+
(`@ultimat3/core/outbound`) and hand it to Bun's `fetch` as `init.proxy`:
|
|
136
|
+
|
|
137
|
+
| Transport | Takes `outbound.proxy` |
|
|
138
|
+
|---|---|
|
|
139
|
+
| `@ultimat3/ai`'s Anthropic and OpenAI-format providers (`baseUrl` included) | yes, same direct-host rule |
|
|
140
|
+
| `@ultimat3/storage`'s signed S3 requests: a PUT with metadata, `Cache-Control`, SSE or object lock; ranged and streamed reads; multipart; copies; retention reads | yes, same direct-host rule |
|
|
141
|
+
| `@ultimat3/storage`'s plain S3 calls on `Bun.S3Client` (`put`, `get`, `exists`, `delete`, `list`, `stat`) | **no.** `Bun.S3Client` takes no `proxy` option (measured, Bun 1.4.4): it ignores one, and honours only the process-wide `HTTPS_PROXY` / `HTTP_PROXY` / `NO_PROXY`. An egress-locked deploy using S3 sets those as well, with `NO_PROXY` naming the `direct` hosts |
|
|
142
|
+
| `@ultimat3/mail`'s SMTP driver (`Bun.connect`) | **no**: SMTP, not HTTP |
|
|
143
|
+
| `@ultimat3/scraping`'s browser (CDP) | **no**: the session's own `proxy` (`egress`) |
|
|
144
|
+
| core's OTLP exporter, the `x` CLI | **no**, on purpose: in-cluster collector, this machine |
|
|
145
|
+
|
|
87
146
|
## `deps.fetch`: the transport
|
|
88
147
|
|
|
89
148
|
`outbound(request, { fetch })` swaps the transport, for a test or in production (a client with its
|
|
@@ -131,6 +190,7 @@ the call's `refusal`:
|
|
|
131
190
|
| unset (default) | chunks until 1,024 characters are decoded, the rest cancelled (a whole chunk is kept, so one large chunk is read whole) | `meta.detail`: a JSON object, credential-named fields redacted, 200 characters; else `''`. A large error object that arrives in pieces is cut, does not parse, and is `''` |
|
|
132
191
|
| `{ schema }` | the whole body, up to the call's `maxBytes` | `meta.fields`: the schema's answer, credential-named fields redacted at any depth; absent when the body is not JSON, does not fit or passes `maxBytes`. `meta.detail` is the 200-character excerpt of that whole body |
|
|
133
192
|
| `{ detail: false }` | nothing for the excerpt | `meta.detail: ''`: the excerpt, and the free text it carries (an address, a name), never kept. Combines with `schema`; it does not filter `meta.fields`, so a schema keeps only fields that are safe to log |
|
|
193
|
+
| `{ headers: ['x-request-id'] }` | the answer's headers; body handling is unchanged | `meta.headers`: a record of lowercased name to value for each asked-for header the answer carries (`{}` when none), each value redacted and cut at 200 characters. Names are case-insensitive, at most 16, each at most 64 characters. A credential-named header (`set-cookie`, `authorization`, `www-authenticate`, `x-api-key` …), an overlong name or a name that is not a header is `X_INVARIANT` at the call, before a byte is sent. Combines with `schema` and `detail`; unset, no header is kept (`As of 2026-11`) |
|
|
134
194
|
|
|
135
195
|
```ts
|
|
136
196
|
import { isUltimateError } from '@ultimat3/core';
|
|
@@ -152,7 +212,7 @@ try {
|
|
|
152
212
|
}
|
|
153
213
|
```
|
|
154
214
|
|
|
155
|
-
The schema is the whole of what `meta.fields` keeps: undeclared keys never reach it. `meta.detail` is a separate excerpt of the raw body and may still carry an undeclared field (an `error.message` holding an email): set `detail: false` to keep only what the schema declares.
|
|
215
|
+
The schema is the whole of what `meta.fields` keeps: undeclared keys never reach it. `meta.detail` is a separate excerpt of the raw body and may still carry an undeclared field (an `error.message` holding an email): set `detail: false` to keep only what the schema declares. With `detail: false` and no schema, the body is not read, including when headers are requested.
|
|
156
216
|
|
|
157
217
|
**A 401 is `X_OUTBOUND_REFUSED` with `meta.status: 401`.** There is no refresh hook: the app's own
|
|
158
218
|
wrapper refreshes its token and calls again. Token storage and single-flight stay the app's.
|
|
@@ -196,5 +256,5 @@ Manual use: `const ticket = gate.admit()`, then `succeeded(ticket)`, `failed(tic
|
|
|
196
256
|
|---|---|
|
|
197
257
|
| `@ultimat3/jobs` webhook delivery | the job's signal outlives the drain on purpose, and a 3xx is an answer, never a hop |
|
|
198
258
|
| `@ultimat3/scraping`'s HTTP leg | session-bound: browser cookies and a hop chain it owns |
|
|
199
|
-
| `@ultimat3/ai` provider calls | own retry across providers, in-band stream errors |
|
|
259
|
+
| `@ultimat3/ai` provider calls | own retry across providers, in-band stream errors; the app-wide proxy still applies (`ambientProxyFor`) |
|
|
200
260
|
| core's OTLP exporter, `x` CLI transports | an exporter must not log through itself; the CLI dials this machine |
|
package/wiki/PWA-And-Offline.md
CHANGED
|
@@ -342,7 +342,7 @@ ES256) signing on WebCrypto. `As of 26.1.0`.
|
|
|
342
342
|
| Piece | What | Where |
|
|
343
343
|
|---|---|---|
|
|
344
344
|
| config | `pwa: { push: true, vapid: { subject: 'mailto:ops@example.com' } }` — a `subject` push services accept (`mailto:` or `https:`), required with `push`, refused without it | [Configuration](Configuration) |
|
|
345
|
-
| key pair | `ULTIMATE_VAPID_PUBLIC_KEY` + `ULTIMATE_VAPID_PRIVATE_KEY`, never config. `x vapid create` mints a P-256 pair and seals BOTH into `secrets.enc.json` in one write; `x vapid show` names the pair in force. Locally, neither set signs with a published development pair; a deployed boot refuses it, half a pair, or two halves that do not sign for each other (`X_PWA_VAPID_KEY_MISSING`, `X_PWA_VAPID_KEY_INVALID`) — at boot, before any service starts | [CLI reference](CLI-Reference#x-vapid) |
|
|
345
|
+
| key pair | `ULTIMATE_VAPID_PUBLIC_KEY` + `ULTIMATE_VAPID_PRIVATE_KEY`, never config. `x vapid create` mints a P-256 pair and seals BOTH into `secrets.enc.json` in one write; `x vapid show` names the pair in force. Locally, neither set signs with a published development pair; a deployed boot refuses it, half a pair, or two halves that do not sign for each other (`X_PWA_VAPID_KEY_MISSING`, `X_PWA_VAPID_KEY_INVALID`) — at boot, before any service starts | [CLI reference](CLI-Reference-Ship#x-vapid) |
|
|
346
346
|
| subscriptions | `x_push_subscriptions`, a framework table every boot applies; keyed by endpoint (a browser subscribed by a second person is theirs now), with the locale and zone it subscribed in | `@ultimat3/pwa/schema` |
|
|
347
347
|
| subscribe | `pushSubscribe({ permission })` / `pushUnsubscribe({ permission })` — factories returning real actions an app exports from its own actions module: route, OpenAPI, typed client, contract tests, the one policy path. Stored against `ctx.actor.id`; an agent is refused | `apps/web/app/<slice>/actions.ts` |
|
|
348
348
|
| the button | `subscribeToPush({ save: client.subscribePush })` from `@ultimat3/pwa/client` (an import-free subpath an island can afford), on a click; answers `subscribed`, `denied`, `unsupported` or `unconfigured` | an island |
|
|
@@ -44,6 +44,16 @@ Policies live in `<feature>/policy.ts` and are referenced by name from the featu
|
|
|
44
44
|
|
|
45
45
|
The decision is surface-blind. The surface selects only how a denial is *rendered* — never whether authz runs, and never how input was validated.
|
|
46
46
|
|
|
47
|
+
### Many rows in one action — `decide(rows)`
|
|
48
|
+
|
|
49
|
+
A handler acting on a batch asks the action's own policy once per row: `handle({ input, ctx,
|
|
50
|
+
decide })`, `decide(rows) → { allowed, denied: [{ row, code, reason }] }`. Same rule, same
|
|
51
|
+
surface as the call, one `policy.decision` event per row (`evaluateEach` in `@ultimat3/policy`). Rows
|
|
52
|
+
are its only parameter — another policy cannot be named. Only an exact allow allows; a throwing
|
|
53
|
+
predicate fails the call; a `null`/`undefined` row is denied without asking. The call's own guard
|
|
54
|
+
asks the rule with `row: null` first, so a batch rule answers `row === null` as "may this actor do
|
|
55
|
+
this at all". Skip-denied or abort-all is the app's choice (axiom 8): no bulk-action factory ships.
|
|
56
|
+
|
|
47
57
|
| Aspect | Rule |
|
|
48
58
|
|---|---|
|
|
49
59
|
| Projects to | HTTP guard, live-query row filter, job actor check, MCP tool gate, admin visibility |
|
package/wiki/Project-Layout.md
CHANGED
|
@@ -131,7 +131,7 @@ Inside the framework repo, a package may import from **strictly lower** tiers on
|
|
|
131
131
|
| 2 | `entity`, `policy`, `http`, `auth` | tier 0–1 |
|
|
132
132
|
| 3 | `action`, `query`, `jobs`, `realtime` | tier 0–2 |
|
|
133
133
|
| 4 | `render`, `pwa`, `mcp`, `ai`, `manifest`, `mail`, `ui`, `notify`, `scraping` | tier 0–3 |
|
|
134
|
-
| 5 | `admin`, `testing`, `cli` | tier 0–4 |
|
|
134
|
+
| 5 | `admin`, `testing`, `cli`, `effects` | tier 0–4 |
|
|
135
135
|
|
|
136
136
|
The declared sideways edges are `SIDEWAYS_ALLOW` in [`scripts/lib/tiers.ts`](https://github.com/developerz-ai/ultimate/blob/main/scripts/lib/tiers.ts), the executable copy of both tables; [`llms.txt`](https://github.com/developerz-ai/ultimate/blob/main/llms.txt) carries a generated copy of the list. `admin → ui` was deleted 2026-08-19 by moving `ui` from tier 5 to 4 — the edge existed only to undo a placement two tiers above what `ui` actually imports.
|
|
137
137
|
|
package/wiki/Realtime.md
CHANGED
|
@@ -516,7 +516,33 @@ Every frame carries an LSN. The client's last-seen LSN is what makes reconnect a
|
|
|
516
516
|
| Reconnect outside the window | one bounded snapshot query at a current LSN. Never WAL history traversal |
|
|
517
517
|
| Cursor unusable and no snapshot path supplied | `X_CURSOR_STALE` |
|
|
518
518
|
| Ordering | LSN is monotonic per DB, so a client can never apply an older change over a newer one |
|
|
519
|
-
| What a cursor carries | `{ qid, lsn, ids, at }` and nothing else
|
|
519
|
+
| What a cursor carries | `{ qid, lsn, ids, at }` and the node's optional `sig` over the first three ([below](#a-cursor-is-signed), `As of 2026-11`), nothing else. `As of 2026-08-24`: `digest` and `count` were written by every snapshot, encoded and validated on every `subscribe` frame, and **read by nothing** — `digest` cost a canonical-JSON render plus a hash over EVERY ROW of every snapshot, paid once per live query per reconnecting socket in the restart storm this package is measured on, and `count` would have been wrong had it ever gained a reader, because `advance` seeds its set from the already-truncated `ids`. Both are deleted, and that is what moved the wire version ([below](#wire-protocol-version)) |
|
|
520
|
+
|
|
521
|
+
### A cursor is signed
|
|
522
|
+
|
|
523
|
+
`As of 2026-11` (#1280). A cursor's `ids` are read as **rows this subscriber holds**: a delete, or a row a policy now refuses, is sent only to a subscriber holding it. On a resume the cursor is client data, so an id added to it was handed that row's `delete` — that the row exists, and when it went. The node signs what it hands out, and trusts ids only under its own signature.
|
|
524
|
+
|
|
525
|
+
| | |
|
|
526
|
+
|---|---|
|
|
527
|
+
| What is signed | the window (`qid`), the `lsn`, a SHA-256 of the sorted `ids`, and the subscriber — its actor id and tenant. Never `at` (the client's clock), never the `sid` (a reconnect uses a new one) |
|
|
528
|
+
| With what | `@ultimat3/core`'s `keyedFingerprint` under the app's signing secret (`ULTIMATE_CURSOR_SECRET`), with its own derived key. Every `sync` node of one app shares the secret, so a cursor signed on one node resumes on another |
|
|
529
|
+
| Where it rides | down: `snapshot.cursor.sig`, and `patch.sig` — the signature of the cursor that patch leaves the subscriber on. Up: `subscribe.target.cursor.sig` |
|
|
530
|
+
| The client | stores the `sig` of the last frame beside its cursor and echoes it. It never computes one, and holds no key to. A patch that carries none clears it |
|
|
531
|
+
| The browser bundle | carries no signing code: `cursor-sign.ts` is reachable from `@ultimat3/realtime/server` only (`cursor-sign.test.ts` walks the import graph) |
|
|
532
|
+
|
|
533
|
+
| The `sig` on a resume | What the node does | Counter (`LiveQueryRegistry`) |
|
|
534
|
+
|---|---|---|
|
|
535
|
+
| this cursor's, for this subscriber | resumes from it: a delta inside the window, a snapshot outside. A row really held, revoked while away, is still withdrawn | — |
|
|
536
|
+
| present and not this cursor's: edited `ids` or `lsn`, another subscriber's cursor, another window's, a secret rotated since, or a value that is no sig at all | a **cold start** — one snapshot of what this subscriber may see, no replay, no `delete` for an id it named | `cursorsRefused` · `onCursorRefused` |
|
|
537
|
+
| absent — no `sig` key at all: a client built before 2026-11, or one that stripped its own | resumes as it always did, ids trusted | `unsignedCursors` · `onUnsignedCursor` |
|
|
538
|
+
|
|
539
|
+
- **No honest client sends a mismatched `sig`** — only the node mints one — so the cold start is not a break. A steady `cursorsRefused` outside a secret rotation is somebody editing cursors.
|
|
540
|
+
- **The unsigned row is open on `main`**, on purpose: refusing it is a break, and it flips on `next` (an unsigned cursor cold-starts). `unsignedCursors` counts resumes that sent no `sig` — old builds, or a client stripping its own; at zero, nothing resumes unsigned.
|
|
541
|
+
- **Rotating the signing secret costs every open subscription one snapshot** on its next resume, as it invalidates every pagination cursor.
|
|
542
|
+
- **A subscriber's own older cursor still verifies.** It names rows it really held at that position; replaying it reveals nothing it was not sent.
|
|
543
|
+
- **Never the obvious fix**: intersecting `ids` with what the policy admits now cannot tell a forged id from a row held and since revoked, and drops the withdraw the second one is owed.
|
|
544
|
+
- **Optional on the wire, so no `PROTOCOL_VERSION` bump**: an older node sends no `sig` and ignores one. Only an **absent** `sig` is unsigned. One that is present and is no sig — not a string, `null`, longer than 64 characters, outside `[a-z0-9:]` — is kept by the decoder as a marker that verifies for nobody: a cold start, counted in `cursorsRefused`, never a refused frame and never the legacy path.
|
|
545
|
+
- **Cost**: one keyed fingerprint per subscriber per patch frame, ≈ 11 µs (measured 2026-11-27, one core); the ids digest is cached per ids array, and an update moves no id.
|
|
520
546
|
|
|
521
547
|
## Inbound frame order
|
|
522
548
|
|
|
@@ -711,7 +737,7 @@ No channel kind carries an ordered, two-way byte stream to a browser — a termi
|
|
|
711
737
|
| old node ← new client (v3) | the same, at the other end |
|
|
712
738
|
| v1 ↔ v2 (2026-08-24) | the old node's `cursor()` reads `digest` through a `str()` that **throws on an absent field**, which is precisely why that was a version and not a silent widening |
|
|
713
739
|
|
|
714
|
-
**The version guards incompatibility, never novelty.** Two earlier realtime changes deliberately did not move it: an additive optional field (`snapshot.entity`) and a removed field read through `list()` (`hello.resume`) are both readable in either direction, because `decode` builds a whitelist object and `list()` answers `[]` for an absent key. `cursor()` is the other kind of reader — `str`/`num` throw — so removing a field it reads is the one shape that needs the number.
|
|
740
|
+
**The version guards incompatibility, never novelty.** Two earlier realtime changes deliberately did not move it: an additive optional field (`snapshot.entity`; `cursor.sig` and `patch.sig` since) and a removed field read through `list()` (`hello.resume`) are both readable in either direction, because `decode` builds a whitelist object and `list()` answers `[]` for an absent key. `cursor()` is the other kind of reader — `str`/`num` throw — so removing a field it reads is the one shape that needs the number.
|
|
715
741
|
|
|
716
742
|
## Build skew
|
|
717
743
|
|
|
@@ -810,6 +836,7 @@ the listener's websocket paths are fixed when it binds. A container scans once,
|
|
|
810
836
|
| `X_DEVICE_OFFLINE` | `deviceLink.request()` named a device no node holds a socket for under the caller's tenant | `x doctor --json`, then retry once the device redials |
|
|
811
837
|
| `X_DEVICE_REQUEST_TIMEOUT` | the device took the request and sent no `response` with its id before `deadlineMs`; or the holding node did not confirm a `disconnect()` | a longer `deadlineMs`, or answer every request the node sends the device; a disconnect: retry, a dead holder closes on its own |
|
|
812
838
|
| `X_DEVICE_FRAME_TOO_LARGE` | a device frame, or a `request()` frame, past `DEVICE_FRAME_MAX_BYTES` | split the payload, or store the bytes and send their key |
|
|
839
|
+
| `X_DEVICE_WIRE_VERSION` | a `deviceAgent` read a node `hello` whose `v` is above the `DEVICE_WIRE_VERSION` it speaks (1; a hello with no `v` reads as 1). Server-only: raised in the agent, never on a browser's wire | `bun update @ultimat3/realtime` on the agent side, then restart it — or pin the node to the version the device firmware speaks |
|
|
813
840
|
| `X_BUILD_SKEW` | client build's contract is incompatible with the server's | reload the client; see the fix line on the error |
|
|
814
841
|
|
|
815
842
|
Verbatim shapes: [`packages/realtime/src/errors.ts`](https://github.com/developerz-ai/ultimate/blob/main/packages/realtime/src/errors.ts). Full index: [Error codes](Error-Codes).
|
package/wiki/Static-Assets.md
CHANGED
|
@@ -193,4 +193,4 @@ afterAll(() => setAssetResolver(undefined));
|
|
|
193
193
|
`x shot <route> --locale en` photographs `/en/<route>` with `Accept-Language: en`. With no
|
|
194
194
|
`--locale`, `Accept-Language` is still pinned to the app's default locale. `x shot --matrix`
|
|
195
195
|
photographs every site route in every locale, in light and dark, at 390 and 1440 px, into
|
|
196
|
-
`.x/shot/matrix/`, with an `index.html` contact sheet. See [CLI reference](CLI-Reference#x-shot).
|
|
196
|
+
`.x/shot/matrix/`, with an `index.html` contact sheet. See [CLI reference](CLI-Reference-Tools#x-shot).
|
package/wiki/Testing.md
CHANGED
|
@@ -1387,6 +1387,39 @@ export const exercise = defineExercise(
|
|
|
1387
1387
|
);
|
|
1388
1388
|
```
|
|
1389
1389
|
|
|
1390
|
+
### A plan budget, and a race
|
|
1391
|
+
|
|
1392
|
+
`As of 2026-11`. `expectPlanWithin(sql\`…\`, { maxCost, maxSortRows }, { client?, entities? })` plans one
|
|
1393
|
+
statement with its real parameters (`explain (format json)` in a read-only transaction; never
|
|
1394
|
+
`analyze`, so nothing runs) and refuses a root `Total Cost` or a `Sort` over more estimated rows
|
|
1395
|
+
than the budget. Both numbers are required: a budget is a measurement of your schema, not a
|
|
1396
|
+
default. Over budget it throws `X_QUERY_PLAN_OVER_BUDGET` (meta `totalCost`, `sortRows`, `node`,
|
|
1397
|
+
`table`); given `entities`, the fix names the `indexes:` entry the plan sweep would, else `analyze`.
|
|
1398
|
+
|
|
1399
|
+
```ts
|
|
1400
|
+
import { sql } from '@ultimat3/db';
|
|
1401
|
+
import { entity, text, uuid } from '@ultimat3/entity';
|
|
1402
|
+
import { expectPlanWithin } from '@ultimat3/testing';
|
|
1403
|
+
|
|
1404
|
+
const posts = entity('posts', { columns: { id: uuid().primaryKey(), orgId: uuid(), title: text({ max: 80 }) } });
|
|
1405
|
+
const org = '0b9f6c1e-0000-4000-8000-000000000000';
|
|
1406
|
+
|
|
1407
|
+
await expectPlanWithin(
|
|
1408
|
+
sql`select * from posts where org_id = ${org} order by title limit 20`,
|
|
1409
|
+
{ maxCost: 60, maxSortRows: 0 },
|
|
1410
|
+
{ entities: [posts] },
|
|
1411
|
+
);
|
|
1412
|
+
```
|
|
1413
|
+
|
|
1414
|
+
Analyze after seeding, and keep one budget per engine: PGlite and Postgres cost the same plan
|
|
1415
|
+
differently, and a table never analyzed is costed as a guess.
|
|
1416
|
+
|
|
1417
|
+
`raceActions(calls, { rounds })` fires `calls` (functions returning promises) together, `rounds`
|
|
1418
|
+
times, and returns `{ settled, serializationFailures }`: every `40P01` or `40001` is listed as
|
|
1419
|
+
`X_DB_SERIALIZATION_FAILURE` with its round and call; assert the list is empty. A call's own
|
|
1420
|
+
failure is never thrown, it is in `settled`. `expectPartial(await decide(rows), { allowed, denied:
|
|
1421
|
+
[{ row, code?, reason? }] })` states a `decide()` answer; a failure is a bun `expect` diff.
|
|
1422
|
+
|
|
1390
1423
|
### The statement ceiling
|
|
1391
1424
|
|
|
1392
1425
|
`As of 31.16.0`. The scale sweep judges growth; this judges the count. One call of an action, query
|
package/wiki/Theming.md
CHANGED
|
@@ -12,7 +12,7 @@ Every colour is a semantic token. A raw hex in any component or stylesheet is a
|
|
|
12
12
|
|
|
13
13
|
Named by **role**, not by value: `--color-bg`, never `--blue-500`. Stored as **space-separated RGB channels** so `rgb(var(--color-accent) / 0.5)` composites without a second token.
|
|
14
14
|
|
|
15
|
-
**
|
|
15
|
+
**32 palette roles** (`COLOR_ROLES`: the 24 below plus the eight `chart-*` series) and **four alias roles** (`ALIAS_ROLES`: `link`, `link-strong`, `nav-active`, `focus`); `THEME_ROLES` is both, in that order. A component that needs another is asking for a design decision, not a variable.
|
|
16
16
|
|
|
17
17
|
| Role | Light | Dark | Used for |
|
|
18
18
|
|---|---|---|---|
|
|
@@ -25,7 +25,7 @@ Named by **role**, not by value: `--color-bg`, never `--blue-500`. Stored as **s
|
|
|
25
25
|
| `fg-muted` | `110 102 94` | `155 151 145` | captions, placeholders |
|
|
26
26
|
| `line` | `208 198 188` | `72 72 80` | borders, dividers |
|
|
27
27
|
| `scrim` | `17 15 13` | `0 0 0` | modal backdrops — the darkest role in each theme |
|
|
28
|
-
| `accent` | `31 110 178` | `96 170 240` | primary action
|
|
28
|
+
| `accent` | `31 110 178` | `96 170 240` | primary action; links, nav and focus until their alias roles are set |
|
|
29
29
|
| `accent-strong` | `21 92 152` | `130 190 248` | hover/active of accent |
|
|
30
30
|
| `accent-fg` | `255 255 255` | `16 20 26` | text **on** accent |
|
|
31
31
|
| `success` | `21 123 80` | `74 190 130` | the success tone |
|
|
@@ -41,6 +41,28 @@ Named by **role**, not by value: `--color-bg`, never `--blue-500`. Stored as **s
|
|
|
41
41
|
| `info-soft` | `224 239 252` | `22 38 56` | its filled background |
|
|
42
42
|
| `info-fg` | `255 255 255` | `12 20 30` | text on `info` |
|
|
43
43
|
|
|
44
|
+
### Alias roles: links, navigation, focus
|
|
45
|
+
|
|
46
|
+
Four roles **default to the accent** and are never emitted by `theme.scss` (`As of 2026-11`). `t.role(link)` compiles to `rgb(var(--color-link, var(--color-accent)))`, and `colorVar('link')` answers the same fallback, so an app that never sets them renders exactly as before — its brand's accent included, and an accent a subtree overrides. Setting one in `defineTheme()` splits it off the accent.
|
|
47
|
+
|
|
48
|
+
| Role | Falls back to | Read by |
|
|
49
|
+
|---|---|---|
|
|
50
|
+
| `link` | `accent` | `Link` (`tone="accent"`), plain `<a>` in `reset.scss`, a hovered `Breadcrumb` link |
|
|
51
|
+
| `link-strong` | `accent-strong` | the hover of both |
|
|
52
|
+
| `nav-active` | `accent` | the current item of `NavList` and `BottomNav`, the selected `Tabs` tab and its indicator |
|
|
53
|
+
| `focus` | `accent` | every focus ring: `:focus-visible` in `reset.scss`, `t.focus-ring` (its default role) and each control's own focus outline |
|
|
54
|
+
|
|
55
|
+
```ts
|
|
56
|
+
// links and the focus ring in their own colour; buttons keep the accent
|
|
57
|
+
import { defineTheme } from '@ultimat3/ui';
|
|
58
|
+
|
|
59
|
+
export const brand = defineTheme({
|
|
60
|
+
colors: { light: { link: '20 90 60', focus: '150 60 0' }, dark: { link: '120 210 160' } },
|
|
61
|
+
});
|
|
62
|
+
```
|
|
63
|
+
|
|
64
|
+
An alias read raw is `var(--color-link, var(--color-accent))`, never a bare `var(--color-link)`: that property is unset until a brand sets it. A shadow override names a palette role only. `COLOR_ALIASES` (`color-tokens.ts`) mirrors `$aliases` (`_colors.scss`); `tokens.test.ts` fails on drift. `colorTokens` holds palette roles only; `colorRgb('dark', 'link')` answers the source's channels.
|
|
65
|
+
|
|
44
66
|
The six-name tone vocabulary components expose — `neutral`, `accent`, `success`, `warning`, `danger`, `info` — is `$tones` in `_colors.scss`, mirroring `TONES` in `components/variants.ts`; `variants.test.ts` fails on drift.
|
|
45
67
|
|
|
46
68
|
### The 1.1.0 contrast retune
|
|
@@ -65,7 +87,7 @@ Most scales carry a typed mirror in `tokens.ts` as well, for consumers that cann
|
|
|
65
87
|
|
|
66
88
|
| Scale | Custom property | Read it with | Values |
|
|
67
89
|
|---|---|---|---|
|
|
68
|
-
| colour | `--color-accent` | `t.role('accent', $alpha)` | the
|
|
90
|
+
| colour | `--color-accent` | `t.role('accent', $alpha)` | the roles above, as RGB channels; an alias with its fallback |
|
|
69
91
|
| space | `--space-4` | `t.space(4)` | `0 1 2 3 4 5 6 8 10 12 16` → `0` … `4rem` |
|
|
70
92
|
| radius | `--radius-md` | `t.radius(md)` | `none sm md lg xl pill full` |
|
|
71
93
|
| stroke | `--stroke-thick` | `t.stroke(thick)` | `hairline 1px`, `thick 2px`, `heavy 3px` — a border, an outline, a focus ring. px on purpose: a line weight does not grow with text size |
|
|
@@ -224,7 +246,7 @@ brandStyleTag(brand); // '<style>…</style>' — for a page you render yo
|
|
|
224
246
|
| Field | Shape | Notes |
|
|
225
247
|
|---|---|---|
|
|
226
248
|
| `preset` | `'scifi'` | a shipped palette every other slot layers onto, role by role |
|
|
227
|
-
| `colors` | `Partial<Record<'light' \| 'dark', Partial<Record<ColorRole, string>>>>` | any subset of
|
|
249
|
+
| `colors` | `Partial<Record<'light' \| 'dark', Partial<Record<ColorRole, string>>>>` | any subset of `THEME_ROLES` — palette and alias roles — per theme |
|
|
228
250
|
| `shadows` | `Partial<Record<'light' \| 'dark', Partial<Record<ShadowName, string>>>>` | elevation is themed like colour |
|
|
229
251
|
| `radius` | `Partial<Record<RadiusName, string>>` | `none sm md lg xl pill full` |
|
|
230
252
|
| `font` | `Partial<Record<'sans' \| 'mono' \| 'data', string>>` | the font slots |
|
|
@@ -299,7 +321,7 @@ The manifest is generated. Hand-editing a colour there drifts from the tokens an
|
|
|
299
321
|
|
|
300
322
|
```scss
|
|
301
323
|
:focus-visible {
|
|
302
|
-
outline: var(--stroke-thick) solid rgb(var(--color-accent));
|
|
324
|
+
outline: var(--stroke-thick) solid rgb(var(--color-focus, var(--color-accent)));
|
|
303
325
|
outline-offset: var(--stroke-thick);
|
|
304
326
|
}
|
|
305
327
|
|
|
@@ -326,10 +348,11 @@ The manifest is generated. Hand-editing a colour there drifts from the tokens an
|
|
|
326
348
|
|---|---|
|
|
327
349
|
| `fg`, `fg-strong`, `fg-muted` on every surface | `AA_TEXT` **4.5:1** |
|
|
328
350
|
| `accent`, `accent-strong` on every surface | 4.5:1 |
|
|
351
|
+
| `link`, `link-strong`, `nav-active` on every surface (`ALIAS_CONTRAST_PAIRS`) | 4.5:1 |
|
|
329
352
|
| `accent-fg` on `accent` / `accent-strong`; each `<tone>-fg` on its tone | 4.5:1 |
|
|
330
353
|
| each `<tone>` on its own `-soft`; `fg-muted` on every `-soft` | 4.5:1 |
|
|
331
354
|
| each `<tone>` on every surface | 4.5:1 |
|
|
332
|
-
| `accent` (the focus ring) on every surface | `AA_LARGE` **3:1** |
|
|
355
|
+
| `accent` and `focus` (the focus ring) on every surface | `AA_LARGE` **3:1** |
|
|
333
356
|
| `line` on every surface | **1.4:1** — a framework floor, not a WCAG level: a border is not text, but 1.16 is invisible |
|
|
334
357
|
| `scrim` | must be the darkest role in its theme — a luminance ordering, not a ratio |
|
|
335
358
|
|
|
@@ -338,8 +361,8 @@ The manifest is generated. Hand-editing a colour there drifts from the tokens an
|
|
|
338
361
|
| Check | Enforcement |
|
|
339
362
|
|---|---|
|
|
340
363
|
| Contrast, shipped pairings | the table above, run by `x verify`'s `unit` step |
|
|
341
|
-
| Contrast, a `defineTheme()` override | **refused when `defineTheme()` runs** — at import, since a brand is declared at module top level — before a single declaration renders. Every pair in `CONTRAST_PAIRS` (`packages/ui/src/tokens/contrast-pairs.ts`, the same
|
|
342
|
-
| Focus ring | `:focus-visible` from
|
|
364
|
+
| Contrast, a `defineTheme()` override | **refused when `defineTheme()` runs** — at import, since a brand is declared at module top level — before a single declaration renders. Every pair in `CONTRAST_PAIRS` and `ALIAS_CONTRAST_PAIRS` (`packages/ui/src/tokens/contrast-pairs.ts`, the same lists `contrast.test.ts` holds the shipped palette to) is measured on the resolved palette — your overrides on top of the shipped channels — at its floor: 4.5:1 text, 3:1 the focus ring, 1.4:1 `line`. Only pairs the brand changed, either side, are measured — an alias it left unset counts as its source, so a new `accent` alone is measured as the link and the focus ring it becomes; the rest are the shipped palette's. A miss throws `X_UI_CONTRAST_INSUFFICIENT` naming the pair, the theme and the ratio. The `scrim` ordering is not measured for a brand |
|
|
365
|
+
| Focus ring | `:focus-visible` from `focus` (the accent until set) in `reset.scss`, and `@include t.focus-ring` per control. Taking one away without painting one back is refused in an **app** by `guards/focus-visible.ts`, on `x verify`'s `boundaries` step — **not by lint**, which ignores `.scss` entirely |
|
|
343
366
|
| Reduced motion | honored globally, not per component — and it *deletes* rather than reduces, see below |
|
|
344
367
|
| Lighthouse a11y | minimum threshold in `app.config.ts`, default 95 → [Testing](Testing) |
|
|
345
368
|
|
package/wiki/Troubleshooting.md
CHANGED
|
@@ -15,7 +15,7 @@ Run these first, in this order. All support `--json`.
|
|
|
15
15
|
| `x doctor --json` | environment, versions, drift, ports, PWA prerequisites — each with a fix |
|
|
16
16
|
| `x dev` then `/_x` | the live panels: routes, timeline, jobs, db, mail, cache, policy, manifest |
|
|
17
17
|
| `x logs tail --json` | the last lines of `.x/dev.log`, or one role's with `--role` (its `.x/logs/<role>.log`, else its lines of the dev log) — the file the `logs.tail` MCP tool reads (since 31.17.0) |
|
|
18
|
-
| `x status --json` | the build each live worker runs, and what each `--url` origin's `/readyz` answers (`As of 2026-11-15`, [CLI reference](CLI-Reference#x-status)) |
|
|
18
|
+
| `x status --json` | the build each live worker runs, and what each `--url` origin's `/readyz` answers (`As of 2026-11-15`, [CLI reference](CLI-Reference-Ship#x-status)) |
|
|
19
19
|
|
|
20
20
|
The `--json` form is the same content as the terminal form. Paste the JSON into a bug report; do not paraphrase the terminal.
|
|
21
21
|
|
|
@@ -334,7 +334,7 @@ Timings, worker counts and the `slowest:` lines trimmed:
|
|
|
334
334
|
bunx x mcp serve --transport http --port 9229
|
|
335
335
|
```
|
|
336
336
|
|
|
337
|
-
|
|
337
|
+
24 tools, one catalog, the same on `stdio` and `http` — 18 framework tools (`routes.list`, `schema.describe`, `policies.list`, `actions.describe`, `jobs.inspect`, `queue.depth`, `manifest.read`, `errors.explain`, `docs.search`, `db.query`, `db.explain`, `db.migrate`, `tests.run`, `verify.run`, `verify.narrow`, `logs.tail`, `requests.statements`, `graph.query`) and six that look at the UI (`ui.shot`, `ui.island`, `ui.inspect`, `ui.interact`, `ui.diff`, `ui.research`). `bunx x mcp tools` prints them with their scopes.
|
|
338
338
|
|
|
339
339
|
`createTodo` reaches an agent's tool list through the app's own surface in `packages/mcp/src/index.ts` (`defineAppMcp({ include: 'exposed' })`), carrying `mcp: { expose: true }` and **the action's own policy** as its authorization. Full model: [MCP and AI](MCP-And-AI).
|
|
340
340
|
|
package/wiki/UI-Components.md
CHANGED
|
@@ -20,6 +20,8 @@ head -7 node_modules/@ultimat3/ui/CATALOG.md # the count and every name, on on
|
|
|
20
20
|
| Drift | `catalog.test.ts` compares the committed file byte-for-byte against a fresh build; a prop change with no regen is a red `x verify` |
|
|
21
21
|
| Hand edits | refused by the same test — the file carries a `GENERATED` banner |
|
|
22
22
|
|
|
23
|
+
Backgrounds, interaction and text effects (`Aurora`, `SpotlightCard`, `CountUp`, `ShaderBackground`, …) are the optional [`@ultimat3/effects`](Effects) package, not part of this one.
|
|
24
|
+
|
|
23
25
|
This page does **not** restate the catalog. It covers the four page composites, because they are the ones an agent picks wrong.
|
|
24
26
|
|
|
25
27
|
**Which component to reach for is not the same question as how it must behave.** The four-state
|
package/wiki/Upgrading.md
CHANGED
|
@@ -52,7 +52,7 @@ How that total is counted, and why `[Unreleased]` is cut: the header of [`script
|
|
|
52
52
|
|
|
53
53
|
Each entry changes a surface the table below covers.
|
|
54
54
|
|
|
55
|
-
> **Move to whatever `latest` is** — only the [footer](_Footer) stamps the number, because a version written into a page goes stale on the next tag. All
|
|
55
|
+
> **Move to whatever `latest` is** — only the [footer](_Footer) stamps the number, because a version written into a page goes stale on the next tag. All 32 workspaces resolve at one version — 29 `@ultimat3/*` plus the unscoped `create-ultimate`, `@ultimat3/scraping` and `@ultimat3/flags` included — and every tarball since 3.0.0 was published by the release workflow with a provenance attestation. Resolve before you pin, never take it from this page:
|
|
56
56
|
|
|
57
57
|
| Check | Command | Answer that means "go" |
|
|
58
58
|
|---|---|---|
|
|
@@ -330,6 +330,7 @@ A setter still on a package's `.` barrel is `X_ADAPTER_PORT_INCOMPLETE` on the `
|
|
|
330
330
|
| `x upgrade` stops requiring an `e2e` suite no codemod wrote (**31.47.1**): an app with pages but no `apps/web/site/page.tsx` was left on `X_VERIFY_SUITE_VANISHED`. Rerunning `x upgrade` at the target no longer replays every codemod | nothing: `x upgrade` applies codemod `e2e-suite-floor`, which writes a `page.e2e.test.ts` beside the shortest parameter-free page, or moves `e2e` to `skip` with its why when no page can be visited. To apply codemods an older CLI left behind: `x upgrade codemods --from 0.0.0 --json` |
|
|
331
331
|
| 24 shipped guards' fixes change (**31.49.0**), built in; their findings do not: `animated-layout-property`, `bare-error`, `error-declared`, `focus-visible`, `image-dimensions`, `island-mount-clears`, `native-confirm`, `raw-breakpoint`, `raw-colour`, `raw-fetch`, `raw-interval`, `raw-length`, `raw-motion`, `raw-shadow`, `raw-z-index`, `repo-await-in-loop`, `repo-raw-sql`, `repo-unbounded`, `runtime-pin`, `semantic-interactive`, `unbounded-fanout`, `undeclared-custom-property`, `undefined-style-class` and `unzoned-date` end their fix on the one step that re-checks it (`then: x verify --only boundaries`) in place of `then: x verify`, which started the whole gate. A copy still in `guards/` keeps the old text until `x upgrade` migrates it to the release after 31.48.0 | nothing |
|
|
332
332
|
| **Upgrading to the next release: what to check**, in this order. `As of 2026-11-19`; each row below names one check, and [`CHANGELOG.md`](https://github.com/developerz-ai/ultimate/blob/main/CHANGELOG.md)'s `[Unreleased]` carries the detail. Five `app.config.ts` keys that were validated and read by nothing are **read** now (the next row) | run the rows in order, then `x verify` |
|
|
333
|
+
| an app catalog in `ro`, `es` or `pt-BR` (any spelling, `es-MX` too) now stands on the framework's translation of `ui.*`, `errors.*`, `auth.*`, `admin.*` and the rest (next release): a framework key it never translated renders in its language where it rendered `⟦key⟧`; the link, nav and focus colours read alias roles that default to the accent | nothing. A test asserting `isMiss` on a framework key in one of those locales asserts the string instead; a brand that wants its own link or focus colour sets `link` / `focus` in `defineTheme({ colors })` ([Theming](Theming#alias-roles-links-navigation-focus)) |
|
|
333
334
|
| the shipped `raw-motion` guard's fix changes (**31.50.0**), built in; its findings do not: a stylesheet re-declaring a motion scale property (`--duration-base: 180ms`, `--easing-out: cubic-bezier(…)`) is still `X_RAW_MOTION`, and the fix now names `defineTheme({ motion: { duration: { base: '180ms' } } })` in `apps/web/shared/theme.ts` instead of a token that reads the property itself. A copy still in `guards/` keeps the old text until `x upgrade` migrates it to the release after 31.49.0 | nothing; an app that wants its own tempo moves the declaration into `defineTheme({ motion })` |
|
|
334
335
|
| `app.config.ts` keys now read (**31.49.0**): `roles` — a `ROLE` it does not list refuses to boot (`X_CONFIG_INVALID`, `meta.key: 'roles'`; `ROLE=migrate` exempt); `database.ssl: true` adds `sslmode=require` on **every** pool — serving roles, `x dev`, migrate, the replicator's `DATABASE_URL` and `REPLICATION_URL`, `x doctor`'s probes, `x db branch`, `x deploy verify` — unless the URL or `PGSSLMODE` states a mode; `cache.defaultTtlMs` sets the boot-built `lru`/`redis` lease (a Redis rung held such values 300 s, now 60 s by default; `0` is refused); `jobs.maxAttempts` (default now `3`, not the documented `5`) and `jobs.backoff` apply to every job declaring no `retry` | `grep -n 'roles\|ssl\|defaultTtlMs\|maxAttempts\|backoff' app.config.ts`. `roles`: every `ROLE` your compose services, Helm values or platform processes start is listed, or drop the key. `ssl: true` against a Postgres without TLS: `database: { ssl: false }` or `?sslmode=disable` in each URL. `defaultTtlMs: 0`: a positive lease. `maxAttempts` / `backoff`: keep them only if they are the retry you want for every job declaring none |
|
|
335
336
|
| `pwa.enabled`, `pwa.backgroundSync` and `pwa.push` must be real booleans (**31.49.0**), checked even when `enabled` is false: `'false'` used to turn the PWA **on**; a non-list `pwa.categories` / `shortcuts` / `screenshots`, a non-string `neverCache` entry or `site.favicon` are refused too — `X_CONFIG_INVALID` at boot | each a literal `true` or `false` in `app.config.ts`'s `pwa` block |
|
|
@@ -358,6 +359,11 @@ A setter still on a package's `.` barrel is `X_ADAPTER_PORT_INCOMPLETE` on the `
|
|
|
358
359
|
| new scaffolds (**31.49.0**): `docker/docker-compose.test.yml` is named `<app>-test-<hash of the directory>` with ports picked per directory, and `package.json` declares `@ultimat3/realtime` | nothing; an existing app keeps its `name:` and dependency set. One importing `@ultimat3/realtime` without declaring it: `bun add --exact @ultimat3/realtime@$(bun -p "require('./package.json').dependencies['@ultimat3/core']")`. Sharing a test stack with a same-named app: its own `name:` and ports in the compose file and `docker/test-services.env` |
|
|
359
360
|
| a production container runs one process per declared CPU (**31.49.0**, `ULTIMATE_PROCESSES=auto`, [Processes per container](Deployment#processes-per-container)), and `jobs.concurrency`, `jobs.maxInFlight` and `DATABASE_POOL_MAX` are per **container**, split across its processes. A no-op for a container that declares no CPU quota (no `cpus:` in Compose, no CPU limit in Kubernetes — every scaffold before this): it still runs one process, where container and process are the same. A service that **already** declares `cpus:` of 2 or more, or a Kubernetes CPU limit of 2 or more, runs that many processes once every clamp passes (shared state, the pool, a prebuilt image). The new scaffold's compose declares `cpus:` per role and `init: true`, and carries `sysctls: { net.ipv4.tcp_migrate_req: 1 }` on `web`/`sync` commented out (Linux ≥ 5.14 only: on an older kernel Docker refuses to create the container); its chart pins `ULTIMATE_PROCESSES: "1"` | with no CPU quota anywhere: nothing. A service with `cpus:` or a CPU limit ≥ 2: `x doctor` names the count each role would run; set `ULTIMATE_PROCESSES=1` on it to keep one process, or keep N and, on a host ≥ Linux 5.14, add `sysctls: { net.ipv4.tcp_migrate_req: 1 }` to `web`/`sync`. To use a second core on purpose: `cpus: '2'` on the service (and 256 MiB of `mem_limit` per process), `init: true`, the same `sysctls:` line where the kernel has it, then `x doctor`. A worker with `concurrency: 1` stays serial across the container |
|
|
360
361
|
| `x verify`'s `boundaries` step lists `X_BOUNDARY_DEV_IMPORT` under `warnings` for each import to cut where a module the boot scan imports reaches `@ultimat3/cli` (the barrel), `@ultimat3/testing` or `bun:test` through static imports of the app's own files (**31.51.0**). The step stays green; a refusal is planned for `next`. `X_APP_IMPORT_UNRESOLVED` for an import that failed inside an installed package is now `at` the app module that reached it, with `meta.chain` when static imports spell the way there | `git mv apps/web/app/<slice>/<name>.fixture.ts apps/web/test/` and repoint its tests, or drop the import from a module a role needs |
|
|
362
|
+
| telemetry from a process that never booted an app — a script, a test, a bare `x` command — reports `service.name="unknown_service"`, the OpenTelemetry default, where it reported `ultimate` and version `0.0.1` (**31.52.0**). A served role reports `OTEL_SERVICE_NAME`, then `OTEL_RESOURCE_ATTRIBUTES`' `service.name`, then the app's name, and its version from those attributes, then `BUILD_ID`, then `APP_VERSION` | a dashboard or alert filtering `service.name="ultimate"` filters on your app's name, or on `unknown_service` for scripts and tests |
|
|
363
|
+
| the log shows `input.unknown_key` (`X_INPUT_UNKNOWN_KEY`) once per action or query and set of key paths when a caller sends an input key the schema does not declare, naming the nearest declared key (**31.52.0**). The answer is the same as before: the key is dropped. Refusing it is planned for `next` (#1281) | fix each caller the line names — a typo (`limt`) or a stale field — before the next major |
|
|
364
|
+
| `x verify`'s `boundaries` step lists new built-in guards under `warnings` (**31.53.0**): `motion-adapter` (a direct `motion`, `framer-motion`, `gsap`, `animejs`, `three`, `ogl` or shader-library import in app code), `raw-frame-loop` (a bare `requestAnimationFrame(` with no `// why:`), `effect-without-fallback` (a `<canvas`, `getContext('webgl…')` or `navigator.gpu` outside `EffectCanvas`), `raw-motion-script` (a literal `duration`/`delay` in `.animate(` or a `cubic-bezier(` string) and `animated-layout-script` (a layout key in `.animate(` keyframes). In an existing app they warn and the step stays green; `x new` writes them as `error` rows in `guards/shipped.json`. An app holding a copy in `guards/` keeps it until `x upgrade` migrates it to the release after 31.52.0 | move the call onto `@ultimat3/ui/motion` (`animate`, `motionTiming('<rung>')`, `layout()`, `frameLoop`) or `@ultimat3/effects`, as each finding's fix names; to gate on them now, set the five to `"error"` in `guards/shipped.json` |
|
|
365
|
+
| the hop to **31.53.0** runs `x kit`: `.claude/skills/{feature,planx,verify,upgrade,design-research}/` and `.claude/agents/{shape,data,server,web,audit}.md` appear with a `.claude/kit.json` marker, codemod `agent-kit` deletes an unedited `.claude/commands/{feature,planx,verify}.md` or old agent and renames an edited one to `app-<name>.md` (its diff in the report), and `settings-kit-allow` adds `bunx x shot`, `bunx x kit` and `bunx x upgrade --dry-run` to `.claude/settings.json`. From then on `x verify`'s `manifest` step reports an edited or missing managed file (`X_KIT_DRIFT`) and an app file under a managed name (`X_KIT_SHADOWED`); without the marker it is one warning | keep your own skill or agent as `app-<name>`; to drop a managed one, name it in `kit.json`'s `"off"`; `bunx x kit` restores the rest |
|
|
366
|
+
| an app's catalogs may be split, one file per namespace under `packages/i18n/catalogs/<locale>/` (**31.52.0**); a flat `<locale>.json` keeps working unchanged. The shipped `untranslated-string` guard's fix changes, built in; its findings do not: `X_UNTRANSLATED_STRING` names the namespace file under `catalogs/en/` in a split app, `catalogs/en.json` otherwise. A copy still in `guards/` keeps the old fix text until `x upgrade` migrates it | nothing. To split: `bunx x i18n split`, then `bunx x verify` — it rewrites `packages/i18n/src/index.ts`'s imports and widens `.gitattributes`' catalog rule ([I18n](I18n#split-catalogs)) |
|
|
361
367
|
|
|
362
368
|
## 29.x → 30.0.0, entry by entry
|
|
363
369
|
|
|
@@ -3875,7 +3881,7 @@ The covered and uncovered surface, and what each bump means, are on [Stability](
|
|
|
3875
3881
|
| Rule | Detail |
|
|
3876
3882
|
|---|---|
|
|
3877
3883
|
| Pins | between `@ultimat3/*` packages, exact (`"@ultimat3/core": "<version>"` in each `package.json`). An app declares `^<version>`, as `x new` writes (`packages/cli/src/templates/scaffold-repo.ts`), and `bun.lock` pins the exact build: `bun install --frozen-lockfile` never upgrades silently |
|
|
3878
|
-
| Lockstep releases | one release bumps all
|
|
3884
|
+
| Lockstep releases | one release bumps all 32 packages — 31 `@ultimat3/*` plus the unscoped `create-ultimate` — to the same version. One version, one commit, one tag. A mixed set is unsupported |
|
|
3879
3885
|
| Published with provenance | npm via OIDC trusted publishing. Every tarball from 3.0.0 onward carries an attestation — verified through 5.0.1; **2.0.0's do not**, that release went out by hand. Per version: `npm view @ultimat3/core@<version> dist.attestations` |
|
|
3880
3886
|
| Breaking changes land with the edit named | **no release has shipped a codemod**, so every `BREAKING —` entry names the manual edit itself; `x upgrade` walks the pins, the Bun floor and the gate, and points at the section |
|
|
3881
3887
|
| Dependency upgrades are framework work | Solid is pinned to **`1.9.14`, the stable line** — Solid 2 is still prerelease (`2.0.0-beta.N`, DOM renderer split into `@solidjs/web`) and every app inherits whatever core this repo pins. Bumping it is a framework release, never an app-level `bun update`. There is no ArkType or Drizzle pin to carry: `@ultimat3/schema` ships dependency-free builtin validators (ArkType is an optional provider you adapt yourself) and `@ultimat3/entity` ships its own `postgresDriver()` |
|
|
@@ -3905,7 +3911,7 @@ bunx @ultimat3/cli@latest upgrade --json # an app below 30.0.0, whose own CLI
|
|
|
3905
3911
|
|
|
3906
3912
|
A repository with pins and no `app.config.ts` hops too: no `x verify` can run, so it runs the `typecheck` and `test` scripts it declares, and `data.proof` (`verify`, `scripts`, `none`) says what `done` rests on.
|
|
3907
3913
|
|
|
3908
|
-
Refusals name their own fix: `X_UPGRADE_MIXED_PINS` (`x upgrade --to <the lowest pins' next major> --json`), `X_UPGRADE_HOP_TOO_WIDE`, `X_UPGRADE_PIN_UNREADABLE`, `X_UPGRADE_REGISTRY_UNREACHABLE`, `X_UPGRADE_VERSION_UNPUBLISHED`, `X_UPGRADE_INSTALL_FAILED`. `data.bun.manual[]` lists what only you can move: a digest-pinned image, an expression. `data.guards.differs[]` offers `x g guard <name> --force`, and your guard is never touched. A hop below 30.0.0 reports `X_BUDGET_UNMEASURED` until `x build --target static --json` has run. Field by field: [CLI reference](CLI-Reference#x-upgrade).
|
|
3914
|
+
Refusals name their own fix: `X_UPGRADE_MIXED_PINS` (`x upgrade --to <the lowest pins' next major> --json`), `X_UPGRADE_HOP_TOO_WIDE`, `X_UPGRADE_PIN_UNREADABLE`, `X_UPGRADE_REGISTRY_UNREACHABLE`, `X_UPGRADE_VERSION_UNPUBLISHED`, `X_UPGRADE_INSTALL_FAILED`. `data.bun.manual[]` lists what only you can move: a digest-pinned image, an expression. `data.guards.differs[]` offers `x g guard <name> --force`, and your guard is never touched. A hop below 30.0.0 reports `X_BUDGET_UNMEASURED` until `x build --target static --json` has run. Field by field: [CLI reference](CLI-Reference-Tools#x-upgrade).
|
|
3909
3915
|
|
|
3910
3916
|
## Breaking-change classes and how each is detected
|
|
3911
3917
|
|