@ultimat3/cli 31.18.1 → 31.19.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +29 -29
- package/src/cmd-verify-spec.ts +3 -1
- package/src/cmd-verify.ts +3 -1
- package/wiki/CI-Parallel-Gate.md +3 -3
- package/wiki/Upgrading.md +2 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ultimat3/cli",
|
|
3
|
-
"version": "31.
|
|
3
|
+
"version": "31.19.0",
|
|
4
4
|
"description": "The `x` binary: new, dev, build, verify, generate, db, mcp, doctor, deploy",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"ultimate",
|
|
@@ -53,34 +53,34 @@
|
|
|
53
53
|
},
|
|
54
54
|
"dependencies": {
|
|
55
55
|
"@babel/core": "^8.0.9",
|
|
56
|
-
"@ultimat3/action": "31.
|
|
57
|
-
"@ultimat3/admin": "31.
|
|
58
|
-
"@ultimat3/ai": "31.
|
|
59
|
-
"@ultimat3/auth": "31.
|
|
60
|
-
"@ultimat3/cache": "31.
|
|
61
|
-
"@ultimat3/core": "31.
|
|
62
|
-
"@ultimat3/db": "31.
|
|
63
|
-
"@ultimat3/entity": "31.
|
|
64
|
-
"@ultimat3/flags": "31.
|
|
65
|
-
"@ultimat3/http": "31.
|
|
66
|
-
"@ultimat3/i18n": "31.
|
|
67
|
-
"@ultimat3/jobs": "31.
|
|
68
|
-
"@ultimat3/mail": "31.
|
|
69
|
-
"@ultimat3/manifest": "31.
|
|
70
|
-
"@ultimat3/mcp": "31.
|
|
71
|
-
"@ultimat3/money": "31.
|
|
72
|
-
"@ultimat3/notify": "31.
|
|
73
|
-
"@ultimat3/policy": "31.
|
|
74
|
-
"@ultimat3/pwa": "31.
|
|
75
|
-
"@ultimat3/query": "31.
|
|
76
|
-
"@ultimat3/realtime": "31.
|
|
77
|
-
"@ultimat3/render": "31.
|
|
78
|
-
"@ultimat3/schema": "31.
|
|
79
|
-
"@ultimat3/scraping": "31.
|
|
80
|
-
"@ultimat3/seo": "31.
|
|
81
|
-
"@ultimat3/storage": "31.
|
|
82
|
-
"@ultimat3/testing": "31.
|
|
83
|
-
"@ultimat3/time": "31.
|
|
56
|
+
"@ultimat3/action": "31.19.0",
|
|
57
|
+
"@ultimat3/admin": "31.19.0",
|
|
58
|
+
"@ultimat3/ai": "31.19.0",
|
|
59
|
+
"@ultimat3/auth": "31.19.0",
|
|
60
|
+
"@ultimat3/cache": "31.19.0",
|
|
61
|
+
"@ultimat3/core": "31.19.0",
|
|
62
|
+
"@ultimat3/db": "31.19.0",
|
|
63
|
+
"@ultimat3/entity": "31.19.0",
|
|
64
|
+
"@ultimat3/flags": "31.19.0",
|
|
65
|
+
"@ultimat3/http": "31.19.0",
|
|
66
|
+
"@ultimat3/i18n": "31.19.0",
|
|
67
|
+
"@ultimat3/jobs": "31.19.0",
|
|
68
|
+
"@ultimat3/mail": "31.19.0",
|
|
69
|
+
"@ultimat3/manifest": "31.19.0",
|
|
70
|
+
"@ultimat3/mcp": "31.19.0",
|
|
71
|
+
"@ultimat3/money": "31.19.0",
|
|
72
|
+
"@ultimat3/notify": "31.19.0",
|
|
73
|
+
"@ultimat3/policy": "31.19.0",
|
|
74
|
+
"@ultimat3/pwa": "31.19.0",
|
|
75
|
+
"@ultimat3/query": "31.19.0",
|
|
76
|
+
"@ultimat3/realtime": "31.19.0",
|
|
77
|
+
"@ultimat3/render": "31.19.0",
|
|
78
|
+
"@ultimat3/schema": "31.19.0",
|
|
79
|
+
"@ultimat3/scraping": "31.19.0",
|
|
80
|
+
"@ultimat3/seo": "31.19.0",
|
|
81
|
+
"@ultimat3/storage": "31.19.0",
|
|
82
|
+
"@ultimat3/testing": "31.19.0",
|
|
83
|
+
"@ultimat3/time": "31.19.0",
|
|
84
84
|
"babel-preset-solid": "^1.9.16"
|
|
85
85
|
}
|
|
86
86
|
}
|
package/src/cmd-verify-spec.ts
CHANGED
|
@@ -16,7 +16,9 @@ export const verifySpec: CommandSpec = {
|
|
|
16
16
|
summary: 'the gate: typecheck, lint, boundaries, all tests, drift, contract, budgets',
|
|
17
17
|
usage:
|
|
18
18
|
'x verify [--only <step>[,<step>…] [--shard i/n [--timings file]] | --changed [--base <ref>] [--dirty]] [--workers N] [--isolate] [--json] · x verify merge <part.json…> [--json] · x verify plan [--parts n] [--json]',
|
|
19
|
-
requiresApp
|
|
19
|
+
// No `requiresApp`: the dispatcher reads it per command, and `plan` reads nothing from an app —
|
|
20
|
+
// ci.yml runs it at the repo root. `run` and `merge` call `requireAppRoot` first, before any
|
|
21
|
+
// flag is read (`cmd-verify.ts`; `cmd-verify-plan.test.ts` holds both sides).
|
|
20
22
|
subcommands: VERIFY_SUBCOMMANDS,
|
|
21
23
|
defaultSubcommand: 'run',
|
|
22
24
|
// `--workers` and `--isolate` change how the test steps run, never which steps run. `--only`
|
package/src/cmd-verify.ts
CHANGED
|
@@ -44,9 +44,11 @@ export { runVerify } from './verify-run';
|
|
|
44
44
|
export const verifyCommand: CliCommand = {
|
|
45
45
|
spec: verifySpec,
|
|
46
46
|
async run(ctx: CommandContext): Promise<CommandResult> {
|
|
47
|
+
// The plan is the step list cut into parts and reads nothing from an app, so it answers before
|
|
48
|
+
// the root is required: ci.yml's `tested` job runs it at the repo root, where X_NOT_IN_APP is.
|
|
49
|
+
if (ctx.args.subcommand === 'plan') return verifyPlanCommand(ctx.args);
|
|
47
50
|
const root = requireAppRoot('verify', ctx.cwd).dir;
|
|
48
51
|
if (ctx.args.subcommand === 'merge') return mergeCommand(root, ctx.args.positionals, ctx.cwd);
|
|
49
|
-
if (ctx.args.subcommand === 'plan') return verifyPlanCommand(ctx.args);
|
|
50
52
|
// Every reader before the run: an unrunnable flag must be refused in milliseconds, not after
|
|
51
53
|
// `tsc -b` has spent fourteen seconds on a run the caller cannot use.
|
|
52
54
|
const workers = readWorkers(ctx.args);
|
package/wiki/CI-Parallel-Gate.md
CHANGED
|
@@ -111,9 +111,9 @@ green; `verify` downloads every part and runs `bun run verify merge`. An app sca
|
|
|
111
111
|
keeps its one-job workflow, which still works; to adopt, copy a fresh scaffold's
|
|
112
112
|
`.github/workflows/ci.yml`.
|
|
113
113
|
|
|
114
|
-
This repository's own `ci.yml`
|
|
115
|
-
|
|
116
|
-
|
|
114
|
+
This repository's own `ci.yml` reads the same plan: its `tested` job runs `x verify plan --parts 7`
|
|
115
|
+
and `jq` gives each row the test services its `needs` level names; `gate` is `fromJSON` of that.
|
|
116
|
+
`scripts/ci-workflow-shape.test.ts` runs the step and holds every row to `verifyPlan(7)`.
|
|
117
117
|
|
|
118
118
|
## A GitHub Actions workflow, by hand
|
|
119
119
|
|
package/wiki/Upgrading.md
CHANGED
|
@@ -280,6 +280,8 @@ A setter still on a package's `.` barrel is `X_ADAPTER_PORT_INCOMPLETE` on the `
|
|
|
280
280
|
| a hand-written `AdminRepo` receives `caseSensitive: true` on each `contains` filter the app declared (`rows`, a scope's `where`), and a bare `contains` from what an operator typed (**31.18.0**). The admin's search also reads up to four resources at once instead of one after another | nothing for `adminRepoFor`. A custom repo that compiles `contains` itself: keep the exact, case-sensitive match where `filter.caseSensitive === true`, and fold case otherwise to match the entity repo. A custom repo must already allow concurrent reads, which every pool does |
|
|
281
281
|
| the framework's Helm chart (`docker/helm`) and `x new`'s chart request less memory for web and worker and more for the scheduler (**31.18.0**): web 256Mi → 128Mi, worker 256Mi → 160Mi, scheduler 128Mi → 160Mi. These are measured idle plus headroom. Limits are unchanged | nothing. To keep the old requests on the framework's chart: `--set roles.web.resources.requests.memory=256Mi` (and `roles.worker…`/`roles.scheduler…`). An app chart `x new` wrote keeps its own values until you edit them |
|
|
282
282
|
| the chart has six new alert rules (**31.18.0**): `UltimateErrorBudgetFastBurn` / `UltimateErrorBudgetSlowBurn` against `alerts.objective` (default 99.9), plus `UltimateJobFailures`, `UltimatePoolSaturated`, `UltimateEventLoopLag` and `UltimateMemoryNearLimit`. It also has an opt-in Grafana dashboard (`dashboard.enabled: false`). Every process on a memory-limited container now emits `process_memory_limit_bytes` | nothing; an older app chart keeps its rules. To adopt the new rules: `x g chart-alerts --force`. To add the dashboard: `x g chart-dashboard`, then set `dashboard.enabled: true` where a Grafana sidecar runs. `x doctor` lists the dashboard files while the chart lacks them. To disable one rule: `alerts: { rules: { UltimateEventLoopLag: { enabled: false } } }` |
|
|
283
|
+
| the reference app's and the demo's `docker/Dockerfile` (`examples/dummy`, `dummy/social-media-clone`) now match `x new`'s template (**31.19.0**): a `manifests` stage copies every workspace `package.json` and nothing else, the `deps` stage installs from it and `bun.lock`, the runtime stage is built `FROM deps`, and it runs as `USER 1000:1000` where it said `USER bun` | nothing for an app `x new` wrote: its Dockerfile already had this shape. An app that copied either tracked file: copy a fresh scaffold's (`x new <scratch> && cp <scratch>/docker/Dockerfile docker/`). `1000` is the base image's `bun` user, so a volume owned by `bun` still opens |
|
|
284
|
+
| the framework repo's `manifest` step prints `warning: X_PUBLIC_API_BREAK_UNDECLARED …` for an exported symbol whose declaration changed or that is gone with no `BREAKING —` entry naming it, and `X_PUBLIC_API_UNSCANNED` when the lock cannot be read (**31.19.0**). Report-only in 31.x: the step stays green, and only `bun run scripts/public-api.ts --strict` is red | nothing for an app. In this repo: revert the change, or land it on `next` with a `- **BREAKING —** (#N) <name> …` line under [Unreleased]; an addition is recorded with `bun run scripts/public-api.ts --write --json` |
|
|
283
285
|
|
|
284
286
|
## 29.x → 30.0.0, entry by entry
|
|
285
287
|
|