@sdxc/kit 2026.11.3 → 2026.11.10
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 +38 -24
- package/changelog.jsonl +130 -0
- package/dist/cli.js +1 -0
- package/dist/commands/ci/clean.d.ts +11 -0
- package/dist/commands/ci/clean.js +15 -0
- package/dist/commands/ci/list.d.ts +1 -0
- package/dist/commands/ci/run.d.ts +14 -0
- package/dist/commands/ci/run.js +13 -2
- package/dist/commands/destroy.d.ts +1 -1
- package/dist/config.d.ts +6 -6
- package/dist/contract.d.ts +15 -1
- package/dist/contract.js +8 -3
- package/dist/make/generate.js +1 -1
- package/dist/make/index.js +2 -1
- package/dist/make/stubs.d.ts +5 -4
- package/dist/make/stubs.js +16 -21
- package/dist/pkg/catalog.js +3 -1
- package/dist/scaffold/fields.d.ts +0 -5
- package/dist/scaffold/fields.js +1 -11
- package/dist/scaffold/index.js +7 -3
- package/package.json +12 -10
- package/templates/app/app/commands/db/fresh.test.ts +3 -1
- package/templates/app/app/http/middleware/page.test.ts +3 -2
- package/templates/app/app/http/middleware/page.ts +10 -5
- package/templates/app/config/security-policy.ts +26 -21
- package/templates/app/package.json +1 -1
package/README.md
CHANGED
|
@@ -80,34 +80,40 @@ Commands run from the project root, the nearest directory with a `package.json`.
|
|
|
80
80
|
|
|
81
81
|
Run the project's CI script (.config/sdxc/ci.ts), and sign green commits off on GitHub
|
|
82
82
|
|
|
83
|
-
| Flag | Does
|
|
84
|
-
| --------------------- |
|
|
85
|
-
| `--only <pattern>` | Run only steps, groups or entries (Workspaces/@acme/ui) matching it; * spans /
|
|
86
|
-
| `--skip <pattern>` | Leave out steps, groups or entries matching it
|
|
87
|
-
| `--scope <workspace>` | Keep matrix entries for this workspace path or name and its dependents
|
|
88
|
-
| `--
|
|
89
|
-
| `--
|
|
90
|
-
| `--
|
|
91
|
-
| `--no-
|
|
92
|
-
| `--
|
|
93
|
-
| `--
|
|
94
|
-
| `--
|
|
95
|
-
|
|
|
96
|
-
| `--
|
|
97
|
-
| `--
|
|
83
|
+
| Flag | Does |
|
|
84
|
+
| --------------------- | ------------------------------------------------------------------------------------------------------------------------------------- |
|
|
85
|
+
| `--only <pattern>` | Run only steps, groups or entries (Workspaces/@acme/ui) matching it; * spans / |
|
|
86
|
+
| `--skip <pattern>` | Leave out steps, groups or entries matching it |
|
|
87
|
+
| `--scope <workspace>` | Keep matrix entries for this workspace path or name and its dependents |
|
|
88
|
+
| `--since <ref>` | Keep matrix entries for workspaces changed since this ref (and their dependents); a change outside every workspace covers every entry |
|
|
89
|
+
| `--runner <runner>` | local or remote: run as on a laptop or on a CI host; detected from the CI variable |
|
|
90
|
+
| `--push` | After a green run, push the tested commit to its upstream branch, then sign off |
|
|
91
|
+
| `--no-signoff` | Make ci.signoff a plain success that posts nothing |
|
|
92
|
+
| `--no-cache` | Run every step, ignoring passes stored for unchanged inputs |
|
|
93
|
+
| `--concurrency <n>` | Concurrency slots running steps share, each holding its weight (1 by default); the machine's available parallelism by default |
|
|
94
|
+
| `--memory <size>` | RAM budget for step memory reservations (2GB, 512MB); three quarters of total RAM by default |
|
|
95
|
+
| `--worktree` | Run in a temporary detached worktree of HEAD so a dirty checkout can still sign off |
|
|
96
|
+
| `--watch` | Re-run when tracked files change; unchanged cached steps replay; never signs off or pushes |
|
|
97
|
+
| `--remote <name>` | Git remote to push to and read the GitHub repository from; the upstream's by default |
|
|
98
|
+
| `--token-env <NAME>` | Environment variable holding the GitHub token; `gh auth token` answers when it is unset |
|
|
99
|
+
| `-v, --verbose` | Print every step's log, not only a failed one's |
|
|
100
|
+
| `--json` | Print the report as JSON |
|
|
101
|
+
| `--rerun-failed` | Run only the steps the last recorded run failed |
|
|
102
|
+
| `--no-install` | Skip the frozen-lockfile install a local run starts with |
|
|
98
103
|
|
|
99
104
|
#### `sdxc ci list`
|
|
100
105
|
|
|
101
106
|
Print the steps and matrix entries a fully passing run takes, without running any
|
|
102
107
|
|
|
103
|
-
| Flag | Does
|
|
104
|
-
| --------------------- |
|
|
105
|
-
| `--only <pattern>` | Run only steps, groups or entries (Workspaces/@acme/ui) matching it; * spans /
|
|
106
|
-
| `--skip <pattern>` | Leave out steps, groups or entries matching it
|
|
107
|
-
| `--scope <workspace>` | Keep matrix entries for this workspace path or name and its dependents
|
|
108
|
-
| `--
|
|
109
|
-
| `--
|
|
110
|
-
| `--
|
|
108
|
+
| Flag | Does |
|
|
109
|
+
| --------------------- | ------------------------------------------------------------------------------------------------------------------------------------- |
|
|
110
|
+
| `--only <pattern>` | Run only steps, groups or entries (Workspaces/@acme/ui) matching it; * spans / |
|
|
111
|
+
| `--skip <pattern>` | Leave out steps, groups or entries matching it |
|
|
112
|
+
| `--scope <workspace>` | Keep matrix entries for this workspace path or name and its dependents |
|
|
113
|
+
| `--since <ref>` | Keep matrix entries for workspaces changed since this ref (and their dependents); a change outside every workspace covers every entry |
|
|
114
|
+
| `--runner <runner>` | local or remote: run as on a laptop or on a CI host; detected from the CI variable |
|
|
115
|
+
| `--matrix <name>` | Print only the entry keys of this matrix |
|
|
116
|
+
| `--json` | Print the report as JSON |
|
|
111
117
|
|
|
112
118
|
#### `sdxc ci signoff [sha]`
|
|
113
119
|
|
|
@@ -131,6 +137,14 @@ Exit 0 when a contributor signed the commit off, 1 when nobody did, 2 when GitHu
|
|
|
131
137
|
| `--token-env <NAME>` | Environment variable holding the GitHub token; `gh auth token` answers when it is unset |
|
|
132
138
|
| `--json` | Print the report as JSON |
|
|
133
139
|
|
|
140
|
+
#### `sdxc ci clean`
|
|
141
|
+
|
|
142
|
+
Remove the step cache and run history kept in the git directory; signoff records stay
|
|
143
|
+
|
|
144
|
+
| Flag | Does |
|
|
145
|
+
| -------- | ------------------------ |
|
|
146
|
+
| `--json` | Print the report as JSON |
|
|
147
|
+
|
|
134
148
|
#### `sdxc create [directory]`
|
|
135
149
|
|
|
136
150
|
Write a new project from a built-in template or a GitHub repository
|
|
@@ -467,7 +481,7 @@ Write a resource's model, migration, pages, tests and more, declared and mapped
|
|
|
467
481
|
|
|
468
482
|
| Flag | Does |
|
|
469
483
|
| ----------------- | --------------------------------------------------------------------------------------------------------------------- |
|
|
470
|
-
| `--plural <word>` | The plural the table, URLs and folders take (default: <name>
|
|
484
|
+
| `--plural <word>` | The plural the table, URLs and folders take (default: the English plural of <name>) |
|
|
471
485
|
| `--mcp` | Also write MCP tools to list, get, create, update and delete |
|
|
472
486
|
| `--command` | Also write app commands to list, show, create and delete |
|
|
473
487
|
| `--api` | JSON endpoints in routes/api.ts with their OpenAPI operations, instead of pages |
|
package/changelog.jsonl
CHANGED
|
@@ -461,7 +461,9 @@
|
|
|
461
461
|
{"release":"2026.10.2","package":"@sdxc/auth","type":"chore","breaking":false,"title":"Update Remix to 3.0.0","body":"Remix 3 is stable. Every workspace now pins `remix@3.0.0`, and\n`@remix-run/data-schema` moves to `^1.0.0`.\n\nThe component runtime moved from `remix/ui` to `remix/component`, along with\nits subpaths (`remix/component/server`, `remix/component/test`, the JSX\nruntimes), so every import and every `jsxImportSource` now points there.\n\nThe headless primitives (`anchor`, `combobox`, `listbox`, `tabs`) are no\nlonger part of `remix`. They ship in the standalone `@remix-run/ui` package,\npinned at 0.12.1, which `@sdxc/ui` and the sdxc app now depend on directly."}
|
|
462
462
|
{"release":"2026.10.2","package":"@sdxc/authz","type":"chore","breaking":false,"title":"Update Remix to 3.0.0","body":"Remix 3 is stable. Every workspace now pins `remix@3.0.0`, and\n`@remix-run/data-schema` moves to `^1.0.0`.\n\nThe component runtime moved from `remix/ui` to `remix/component`, along with\nits subpaths (`remix/component/server`, `remix/component/test`, the JSX\nruntimes), so every import and every `jsxImportSource` now points there.\n\nThe headless primitives (`anchor`, `combobox`, `listbox`, `tabs`) are no\nlonger part of `remix`. They ship in the standalone `@remix-run/ui` package,\npinned at 0.12.1, which `@sdxc/ui` and the sdxc app now depend on directly."}
|
|
463
463
|
{"release":"2026.10.2","package":"@sdxc/backoff","type":"chore","breaking":false,"title":"Update Remix to 3.0.0","body":"Remix 3 is stable. Every workspace now pins `remix@3.0.0`, and\n`@remix-run/data-schema` moves to `^1.0.0`.\n\nThe component runtime moved from `remix/ui` to `remix/component`, along with\nits subpaths (`remix/component/server`, `remix/component/test`, the JSX\nruntimes), so every import and every `jsxImportSource` now points there.\n\nThe headless primitives (`anchor`, `combobox`, `listbox`, `tabs`) are no\nlonger part of `remix`. They ship in the standalone `@remix-run/ui` package,\npinned at 0.12.1, which `@sdxc/ui` and the sdxc app now depend on directly."}
|
|
464
|
+
{"release":"2026.10.2","package":"@sdxc/bench","type":"chore","breaking":false,"title":"Update Remix to 3.0.0","body":"Remix 3 is stable. Every workspace now pins `remix@3.0.0`, and\n`@remix-run/data-schema` moves to `^1.0.0`.\n\nThe component runtime moved from `remix/ui` to `remix/component`, along with\nits subpaths (`remix/component/server`, `remix/component/test`, the JSX\nruntimes), so every import and every `jsxImportSource` now points there.\n\nThe headless primitives (`anchor`, `combobox`, `listbox`, `tabs`) are no\nlonger part of `remix`. They ship in the standalone `@remix-run/ui` package,\npinned at 0.12.1, which `@sdxc/ui` and the sdxc app now depend on directly."}
|
|
464
465
|
{"release":"2026.10.2","package":"@sdxc/billing","type":"chore","breaking":false,"title":"Update Remix to 3.0.0","body":"Remix 3 is stable. Every workspace now pins `remix@3.0.0`, and\n`@remix-run/data-schema` moves to `^1.0.0`.\n\nThe component runtime moved from `remix/ui` to `remix/component`, along with\nits subpaths (`remix/component/server`, `remix/component/test`, the JSX\nruntimes), so every import and every `jsxImportSource` now points there.\n\nThe headless primitives (`anchor`, `combobox`, `listbox`, `tabs`) are no\nlonger part of `remix`. They ship in the standalone `@remix-run/ui` package,\npinned at 0.12.1, which `@sdxc/ui` and the sdxc app now depend on directly."}
|
|
466
|
+
{"release":"2026.10.2","package":"@sdxc/blueprint","type":"chore","breaking":false,"title":"Update Remix to 3.0.0","body":"Remix 3 is stable. Every workspace now pins `remix@3.0.0`, and\n`@remix-run/data-schema` moves to `^1.0.0`.\n\nThe component runtime moved from `remix/ui` to `remix/component`, along with\nits subpaths (`remix/component/server`, `remix/component/test`, the JSX\nruntimes), so every import and every `jsxImportSource` now points there.\n\nThe headless primitives (`anchor`, `combobox`, `listbox`, `tabs`) are no\nlonger part of `remix`. They ship in the standalone `@remix-run/ui` package,\npinned at 0.12.1, which `@sdxc/ui` and the sdxc app now depend on directly."}
|
|
465
467
|
{"release":"2026.10.2","package":"@sdxc/bracket-params","type":"chore","breaking":false,"title":"Update Remix to 3.0.0","body":"Remix 3 is stable. Every workspace now pins `remix@3.0.0`, and\n`@remix-run/data-schema` moves to `^1.0.0`.\n\nThe component runtime moved from `remix/ui` to `remix/component`, along with\nits subpaths (`remix/component/server`, `remix/component/test`, the JSX\nruntimes), so every import and every `jsxImportSource` now points there.\n\nThe headless primitives (`anchor`, `combobox`, `listbox`, `tabs`) are no\nlonger part of `remix`. They ship in the standalone `@remix-run/ui` package,\npinned at 0.12.1, which `@sdxc/ui` and the sdxc app now depend on directly."}
|
|
466
468
|
{"release":"2026.10.2","package":"@sdxc/cache","type":"chore","breaking":false,"title":"Update Remix to 3.0.0","body":"Remix 3 is stable. Every workspace now pins `remix@3.0.0`, and\n`@remix-run/data-schema` moves to `^1.0.0`.\n\nThe component runtime moved from `remix/ui` to `remix/component`, along with\nits subpaths (`remix/component/server`, `remix/component/test`, the JSX\nruntimes), so every import and every `jsxImportSource` now points there.\n\nThe headless primitives (`anchor`, `combobox`, `listbox`, `tabs`) are no\nlonger part of `remix`. They ship in the standalone `@remix-run/ui` package,\npinned at 0.12.1, which `@sdxc/ui` and the sdxc app now depend on directly."}
|
|
467
469
|
{"release":"2026.10.2","package":"@sdxc/captcha","type":"chore","breaking":false,"title":"Update Remix to 3.0.0","body":"Remix 3 is stable. Every workspace now pins `remix@3.0.0`, and\n`@remix-run/data-schema` moves to `^1.0.0`.\n\nThe component runtime moved from `remix/ui` to `remix/component`, along with\nits subpaths (`remix/component/server`, `remix/component/test`, the JSX\nruntimes), so every import and every `jsxImportSource` now points there.\n\nThe headless primitives (`anchor`, `combobox`, `listbox`, `tabs`) are no\nlonger part of `remix`. They ship in the standalone `@remix-run/ui` package,\npinned at 0.12.1, which `@sdxc/ui` and the sdxc app now depend on directly."}
|
|
@@ -1850,3 +1852,131 @@
|
|
|
1850
1852
|
{"release":"2026.11.3","package":"@sdxc/zone-file","type":"feat","breaking":false,"title":"Add the sdxc-zone-file command line","body":"`@sdxc/zone-file` now ships a command line for checking, reading and\nnormalizing DNS zone files without writing a script. Each command reads a\npath, or stdin when it is `-` or absent; `$INCLUDE` paths resolve beside the\nzone file. `--origin` (default the root) and `--ttl` (seconds) set the\ndefaults for a file without `$ORIGIN` or `$TTL`. Exit codes: 0 done, 1 the\nzone has entries that could not be read, 2 usage or unreadable input.\n\nCheck a zone, printing every problem with its line:\n\n bunx @sdxc/zone-file validate example.com.zone --origin example.com\n # example.com.zone:12: Invalid A record data: \"999.1.1.1\" (invalid-data)\n\nPrint its records, one `name ttl class type data` line each, or as JSON:\n\n bunx @sdxc/zone-file parse example.com.zone --origin example.com --json\n\nWrite a normalized zone file from JSON records (a bare array, a\n`{ origin, ttl, records }` object, or `parse --json` output) or from a zone\nfile; records that do not fit their type are reported and nothing is\nwritten:\n\n bunx @sdxc/zone-file format records.json --relative > example.com.zone\n\n`--json` on `validate` prints `{ valid, records, rejected }`. The library\nAPI is unchanged; consumers need not act."}
|
|
1851
1853
|
{"release":"2026.11.3","package":"@sdxc/zone-file","type":"chore","breaking":false,"title":"Lock the command-line dependencies and mark each bin executable","body":"Records `@sdxc/cli` and the other dependencies the new package command lines added in the lockfile, and marks each `sdxc-<package>` entry executable, like the existing `sdxc`, `spec` and `mcp-bridge` bins. No consumer action is needed."}
|
|
1852
1854
|
{"release":"2026.11.3","package":"@sdxc/zone-file","type":"docs","breaking":false,"title":"Point to sdxc pkg in the README","body":"The README's command-line section now notes that `sdxc pkg zone-file …` runs the same command line once `@sdxc/kit` is installed. No consumer action is needed."}
|
|
1855
|
+
{"release":"2026.11.4","package":"@sdxc/ci","type":"feat","breaking":false,"title":"Add retries, weights, run logs, --rerun-failed and clean","body":"Steps take two new options. `retry: n` runs a failed step again up to\nn times; a pass on a retry is reported as flaky, with its attempt count,\nin the summary and in --json. `weight: n` makes a heavy step hold n\nconcurrency slots while it runs.\n\n await ci.step(\"E2E\", \"npm run e2e\", { retry: 1, weight: 4 });\n\nMatrix entries now start slowest first, using how long each took in the\nprevious run. Every run keeps its report and one log file per step\nunder .git/sdxc-ci/runs/ (the newest 20), and prints that folder as its\nlast line, or as `logs` in --json. `run --rerun-failed` runs only the\nsteps the last run failed.\n\nOn a terminal, a status line names the steps still running. On GitHub\nActions each step's log folds into a group, failed steps are annotated,\nand a summary table is written to the job summary. Cached passes unused\nfor 30 days are pruned, and `npx @sdxc/ci clean` removes the cache and\nthe run history, keeping signoff records. `ci.files`, the new reporters\nand `lastRun`/`recordRun` are exported for scripts and wrappers."}
|
|
1856
|
+
{"release":"2026.11.4","package":"@sdxc/kit","type":"feat","breaking":false,"title":"Add sdxc ci clean and sdxc ci --rerun-failed","body":"`sdxc ci` takes the new flags of `npx @sdxc/ci run`, including\n`--rerun-failed`, which runs only the steps the last run failed, and\nshows a live status line of running steps on a terminal.\n`sdxc ci clean` removes the CI cache and run history, keeping signoff\nrecords."}
|
|
1857
|
+
{"release":"2026.11.4","package":"@sdxc/ui","type":"fix","breaking":false,"title":"Render DocsNav's title filter on the server and make it work without script","body":"Before, `DocsNav`'s filter field was rendered `hidden` and only appeared once the\nbrowser entry loaded `@sdxc/ui/docs/docs-nav-tools`, so the sidebar shifted down\nwhen the script ran, and a reader without script never got a filter.\n\nNow the field is part of the server HTML, inside a `GET` form on the current\naddress. Without script, pressing Enter reloads the page with `?filter=<query>`.\nPass that parameter back as `filter.query` and the tree renders filtered: pages\nthat miss the query are `hidden`, groups holding a match open, and the\n\"no results\" line shows when nothing matches. With script, the field filters as\nthe reader types and the form never submits.\n\n <DocsNav\n tree={tree}\n activePath={url.pathname}\n filter={{\n label: \"Filter pages\",\n placeholder: \"Filter pages\",\n noResults: \"No page matches\",\n query: url.searchParams.get(\"filter\") ?? undefined,\n }}\n />\n\n`filter.name` changes the query parameter (default `\"filter\"`). Matching now\nreads only a page's title, so a badge such as \"New\" no longer matches a query.\nExisting callers keep working without changes; pass `query` to support readers\nwithout script."}
|
|
1858
|
+
{"release":"2026.11.10","package":"@sdxc/activitypub","type":"chore","breaking":false,"title":"Bump remix to 3.2.0","body":"Every workspace that depended on remix 3.1.0 now pins 3.2.0, including\nthe kit app template and the lockfile. Remix 3.2.0 ships\n`remix/middleware/csp` for Content-Security-Policy and per-request\nnonces; vendor docs under docs/vendor/@remix-run are refreshed to match,\nincluding the new csp-middleware package notes.\n\nNo consumer code changes in this commit."}
|
|
1859
|
+
{"release":"2026.11.10","package":"@sdxc/assets-middleware","type":"chore","breaking":false,"title":"Bump remix to 3.2.0","body":"Every workspace that depended on remix 3.1.0 now pins 3.2.0, including\nthe kit app template and the lockfile. Remix 3.2.0 ships\n`remix/middleware/csp` for Content-Security-Policy and per-request\nnonces; vendor docs under docs/vendor/@remix-run are refreshed to match,\nincluding the new csp-middleware package notes.\n\nNo consumer code changes in this commit."}
|
|
1860
|
+
{"release":"2026.11.10","package":"@sdxc/attribution","type":"chore","breaking":false,"title":"Bump remix to 3.2.0","body":"Every workspace that depended on remix 3.1.0 now pins 3.2.0, including\nthe kit app template and the lockfile. Remix 3.2.0 ships\n`remix/middleware/csp` for Content-Security-Policy and per-request\nnonces; vendor docs under docs/vendor/@remix-run are refreshed to match,\nincluding the new csp-middleware package notes.\n\nNo consumer code changes in this commit."}
|
|
1861
|
+
{"release":"2026.11.10","package":"@sdxc/auth","type":"chore","breaking":false,"title":"Bump remix to 3.2.0","body":"Every workspace that depended on remix 3.1.0 now pins 3.2.0, including\nthe kit app template and the lockfile. Remix 3.2.0 ships\n`remix/middleware/csp` for Content-Security-Policy and per-request\nnonces; vendor docs under docs/vendor/@remix-run are refreshed to match,\nincluding the new csp-middleware package notes.\n\nNo consumer code changes in this commit."}
|
|
1862
|
+
{"release":"2026.11.10","package":"@sdxc/authz","type":"chore","breaking":false,"title":"Bump remix to 3.2.0","body":"Every workspace that depended on remix 3.1.0 now pins 3.2.0, including\nthe kit app template and the lockfile. Remix 3.2.0 ships\n`remix/middleware/csp` for Content-Security-Policy and per-request\nnonces; vendor docs under docs/vendor/@remix-run are refreshed to match,\nincluding the new csp-middleware package notes.\n\nNo consumer code changes in this commit."}
|
|
1863
|
+
{"release":"2026.11.10","package":"@sdxc/bench","type":"feat","breaking":false,"title":"Add weigh, HTTP latency CLI and gzipped budgets","body":"Introduces `@sdxc/bench` so packages can assert entry-point gzipped size\nafter `bun build --minify` and sample latency against a running URL.\n\n```ts\nimport { weigh } from \"@sdxc/bench\";\nimport { unwrap } from \"@sdxc/result\";\n\nlet weight = unwrap(await weigh(\"./src/index.ts\"));\n// weight.gzipped held in CI\n```\n\n```sh\nbunx sdxc-bench weigh ./src/index.ts --max-gzipped 25600\nbunx sdxc-bench http https://example.com/ --p95 200ms\n```\n\nMarkdown weight tests now import the package and assert gzipped budgets.\nNo doctor check and no first-class `sdxc bench` yet — use `sdxc pkg bench`.\nFirst npm publish still needs `bun run release:bootstrap @sdxc/bench`."}
|
|
1864
|
+
{"release":"2026.11.10","package":"@sdxc/bench","type":"fix","breaking":false,"title":"Weigh entries with esbuild instead of Bun","body":"`weigh` builds a minified browser bundle through esbuild in-process, so\nthe package no longer shells out to `bun build` and stays usable wherever\nNode runs the test suite. Gzipped budgets and the CLI `--max-gzipped`\npath are unchanged."}
|
|
1865
|
+
{"release":"2026.11.10","package":"@sdxc/bench","type":"docs","breaking":false,"title":"Prefer expect(gzipped) and drop the Vitest section","body":"Rewrites the README in affirmative terms: consumers weigh with esbuild\nvia `weigh`, assert size with `expect(weight.gzipped).toBeLessThan(…)`,\nand invoke the CLI as `bunx @sdxc/bench`. Removes the Vitest performance\nguide; keeps `assertWeight` documented only for the CLI Result path.\nMarkdown weight tests use `toBeLessThan` to match that style."}
|
|
1866
|
+
{"release":"2026.11.10","package":"@sdxc/bench","type":"docs","breaking":false,"title":"Show HTTP latency budgets inside a Vitest test","body":"The Sample HTTP latency section now mirrors the weigh example: sampleHttp\nruns in a test and expect() asserts ok / p95 / p99 on the report. Longer\nhow-to lives in the sdxc-site guides; this README stays a short install\nand usage sketch. No consumer code change."}
|
|
1867
|
+
{"release":"2026.11.10","package":"@sdxc/bench","type":"docs","breaking":false,"title":"Prefer sdxc pkg bench for CLI examples","body":"README command-line examples invoke the package through `sdxc pkg bench`\ninstead of `bunx @sdxc/bench`, matching how other package guides teach the\nterminal. No consumer code change."}
|
|
1868
|
+
{"release":"2026.11.10","package":"@sdxc/bench","type":"feat","breaking":false,"title":"Rename HttpReport.errors to failures","body":"`HttpReport.failures` is the count of requests that errored or timed out\n(`requests - ok`), so a latency test asserts `expect(report.failures).toBe(0)`\ninstead of comparing `ok` to `requests`. The README example and field JSDoc\nuse that wording; the CLI summary prints `failures` the same way. Before the\nfirst dated release, rename any `report.errors` reads to `report.failures`."}
|
|
1869
|
+
{"release":"2026.11.10","package":"@sdxc/bench","type":"docs","breaking":false,"title":"Link duration strings to @sdxc/duration","body":"The CLI flag note links “duration string” to the @sdxc/duration npm page,\nmatching the DurationInput links already in the README. No consumer code\nchange."}
|
|
1870
|
+
{"release":"2026.11.10","package":"@sdxc/bench","type":"chore","breaking":false,"title":"Bump remix to 3.2.0","body":"Every workspace that depended on remix 3.1.0 now pins 3.2.0, including\nthe kit app template and the lockfile. Remix 3.2.0 ships\n`remix/middleware/csp` for Content-Security-Policy and per-request\nnonces; vendor docs under docs/vendor/@remix-run are refreshed to match,\nincluding the new csp-middleware package notes.\n\nNo consumer code changes in this commit."}
|
|
1871
|
+
{"release":"2026.11.10","package":"@sdxc/billing","type":"fix","breaking":false,"title":"Verify Polar deliveries signed with a whsec_ secret's decoded key","body":"`PolarBilling` verified every webhook delivery with the configured secret's UTF-8 bytes as\nthe key, which is how Polar signs for its dashboard secrets. An endpoint whose secret has the\nStandard Webhooks form `whsec_<base64>` is signed with the decoded base64 instead, so each of\nits deliveries failed verification, the endpoint answered 401, and Polar disabled it.\n\nA delivery now verifies under either reading of the secret. Both come from the same secret,\nso nothing new is accepted. No configuration changes; upgrade, redeploy, and re-enable any\nendpoint Polar disabled."}
|
|
1872
|
+
{"release":"2026.11.10","package":"@sdxc/billing","type":"chore","breaking":false,"title":"Bump remix to 3.2.0","body":"Every workspace that depended on remix 3.1.0 now pins 3.2.0, including\nthe kit app template and the lockfile. Remix 3.2.0 ships\n`remix/middleware/csp` for Content-Security-Policy and per-request\nnonces; vendor docs under docs/vendor/@remix-run are refreshed to match,\nincluding the new csp-middleware package notes.\n\nNo consumer code changes in this commit."}
|
|
1873
|
+
{"release":"2026.11.10","package":"@sdxc/blueprint","type":"feat","breaking":false,"title":"Generate files from .stub templates, in code or with sdxc-blueprint","body":"New package `@sdxc/blueprint`. A stub is the text of a file with `{{placeholders}}`, an optional YAML front matter block, and two blocks: `{{#if}}` and `{{#each}}`. Placeholders pipe through filters (`camel`, `pascal`, `kebab`, `snake`, `plural`, `singular`, `humanize`, `title`, `slug`, `upper`, `lower`, `upperFirst`, `lowerFirst`, `base`). Rendering is strict: a missing value or unknown filter is an error naming the stub and line.\n\n```ts\nimport * as blueprint from \"@sdxc/blueprint\";\nimport * as s from \"remix/data-schema\";\n\nlet stub = blueprint.parse(text, { schema: s.object({ to: s.string() }), source: \"flag.stub\" });\nlet content = blueprint.render(stub.data, { name: \"checkout-v2\", beta: true });\nlet planned = await blueprint.plan([{ path: \"app/flags/checkout-v2.ts\", content: content.data }], {\n\troot: process.cwd(),\n});\nif (planned.data.conflicts.length === 0) await blueprint.write(planned.data);\n```\n\n`variables` lists the values a set of stubs reads, each as text, a flag or a list, for building prompts or help. `plan` marks each file create, replace or conflict without writing, and `write` refuses a plan with conflicts.\n\nThe `sdxc-blueprint` command line (also `sdxc pkg blueprint`) runs the blueprints in `.config/blueprint/`: a folder of stubs or a single `<name>.stub`, each naming its output in front matter `to:`. Values are flags named after placeholders; `<blueprint> --help`, or a run missing a value, prints what the blueprint needs. `--dry-run` reports the plan, `--force` replaces existing files, `--json` prints data, and `--list` names every blueprint.\n\n```sh\nbunx @sdxc/blueprint flag --name checkout-v2 --beta --variants control --dry-run\n```"}
|
|
1874
|
+
{"release":"2026.11.10","package":"@sdxc/blueprint","type":"chore","breaking":false,"title":"Mark the sdxc-blueprint entry executable","body":"The `sdxc-blueprint` entry in the repository is now executable, like the other package command lines, so it runs directly from a checkout. Installs from npm are unaffected, and no consumer action is needed."}
|
|
1875
|
+
{"release":"2026.11.10","package":"@sdxc/bracket-params","type":"chore","breaking":false,"title":"Bump remix to 3.2.0","body":"Every workspace that depended on remix 3.1.0 now pins 3.2.0, including\nthe kit app template and the lockfile. Remix 3.2.0 ships\n`remix/middleware/csp` for Content-Security-Policy and per-request\nnonces; vendor docs under docs/vendor/@remix-run are refreshed to match,\nincluding the new csp-middleware package notes.\n\nNo consumer code changes in this commit."}
|
|
1876
|
+
{"release":"2026.11.10","package":"@sdxc/captcha","type":"chore","breaking":false,"title":"Bump remix to 3.2.0","body":"Every workspace that depended on remix 3.1.0 now pins 3.2.0, including\nthe kit app template and the lockfile. Remix 3.2.0 ships\n`remix/middleware/csp` for Content-Security-Policy and per-request\nnonces; vendor docs under docs/vendor/@remix-run are refreshed to match,\nincluding the new csp-middleware package notes.\n\nNo consumer code changes in this commit."}
|
|
1877
|
+
{"release":"2026.11.10","package":"@sdxc/catch-response-middleware","type":"chore","breaking":false,"title":"Bump remix to 3.2.0","body":"Every workspace that depended on remix 3.1.0 now pins 3.2.0, including\nthe kit app template and the lockfile. Remix 3.2.0 ships\n`remix/middleware/csp` for Content-Security-Policy and per-request\nnonces; vendor docs under docs/vendor/@remix-run are refreshed to match,\nincluding the new csp-middleware package notes.\n\nNo consumer code changes in this commit."}
|
|
1878
|
+
{"release":"2026.11.10","package":"@sdxc/ci","type":"feat","breaking":false,"title":"Add worktree, since, memory and watch to local runs","body":"`--worktree` runs the script in a detached worktree of HEAD with a\nfrozen install inside it, so a dirty shared checkout can still sign\noff while the step cache and run logs stay in the common git dir.\n`--since <ref>` scopes to workspaces changed since that ref (plus\nuncommitted files) the same way `--scope` does, and never signs off;\na change outside every workspace falls back to every entry.\nSteps take an optional `memory` reservation from a `--memory` budget\n(default three quarters of RAM), beside `weight`, and `ci.memory`\nexposes total and free bytes. `--watch` re-runs on file changes with\ndebounce and abort; uncached steps re-run every cycle, cached ones\nreplay; `--push` with `--watch` is a usage error.\n\nThis repository's CI script narrows typegen and doctor with `ci.scope`,\nscopes Check through `vp check <paths>`, and reserves 2GB for browser\ntest suites instead of capping matrix concurrency to cores/3."}
|
|
1879
|
+
{"release":"2026.11.10","package":"@sdxc/ci","type":"docs","breaking":false,"title":"Describe --concurrency as slots that weighted steps share","body":"`sdxc-ci run --help` described `--concurrency` as the most steps running at once. It is the\nnumber of concurrency slots, and a step holds as many as its `weight` (1 by default), so a\nscript that weights heavy steps runs fewer of them side by side. The help text now says so. No\nbehavior change."}
|
|
1880
|
+
{"release":"2026.11.10","package":"@sdxc/ci","type":"chore","breaking":false,"title":"Worker per core. A cold full run on a 10-core Mac went from 627–668 s with 5–7 failed entries to 604 s with none. CI hosts run one entry per machine and keep Vitest's default. The root Vitest project now collects tests anywhere under `.config/sdxc/`. No consumer effect.","body":""}
|
|
1881
|
+
{"release":"2026.11.10","package":"@sdxc/ci","type":"chore","breaking":false,"title":"Bump remix to 3.2.0","body":"Every workspace that depended on remix 3.1.0 now pins 3.2.0, including\nthe kit app template and the lockfile. Remix 3.2.0 ships\n`remix/middleware/csp` for Content-Security-Policy and per-request\nnonces; vendor docs under docs/vendor/@remix-run are refreshed to match,\nincluding the new csp-middleware package notes.\n\nNo consumer code changes in this commit."}
|
|
1882
|
+
{"release":"2026.11.10","package":"@sdxc/ci","type":"fix","breaking":false,"title":"Trim a step log's trailing newlines in linear time","body":"Before, the terminal and GitHub Actions reporters stripped a step's trailing newlines with\nthe regular expression `/\\n+$/`, which backtracks quadratically on a log holding many runs of\nblank lines: a log of 200,000 newlines took seconds to print. Now the reporters scan back\nfrom the end of the log, so printing takes time proportional to its length. The printed\noutput is unchanged, and consumers need not act."}
|
|
1883
|
+
{"release":"2026.11.10","package":"@sdxc/cli","type":"chore","breaking":false,"title":"Bump remix to 3.2.0","body":"Every workspace that depended on remix 3.1.0 now pins 3.2.0, including\nthe kit app template and the lockfile. Remix 3.2.0 ships\n`remix/middleware/csp` for Content-Security-Policy and per-request\nnonces; vendor docs under docs/vendor/@remix-run are refreshed to match,\nincluding the new csp-middleware package notes.\n\nNo consumer code changes in this commit."}
|
|
1884
|
+
{"release":"2026.11.10","package":"@sdxc/cli","type":"feat","breaking":false,"title":"Let a program with no commands read its whole command line","body":"A program built with `@sdxc/cli` that has no subcommands can now declare `argument.rest()` on its root group and map a handler to the program itself. The handler receives every token unparsed, `--help` included, so a program whose flags are only known at run time (for example, read from files the user names) can parse and document them itself.\n\n```ts\nimport { argument, commands, createCLI, success } from \"@sdxc/cli\";\n\nlet program = commands({\n\tdescription: \"Run a template\",\n\targuments: { args: argument.rest() },\n});\n\nlet cli = createCLI({ name: \"gen\", commands: program });\ncli.map(program, (ctx) => {\n\tctx.stdout(`${JSON.stringify(ctx.arguments.args)}\\n`); // gen flag --name x → [\"flag\",\"--name\",\"x\"]\n\treturn success();\n});\n```\n\nA root `argument.rest()` beside subcommands, flags or another argument still throws when the CLI is created. Programs with subcommands behave as before."}
|
|
1885
|
+
{"release":"2026.11.10","package":"@sdxc/cloudflare-mocks","type":"chore","breaking":false,"title":"Bump remix to 3.2.0","body":"Every workspace that depended on remix 3.1.0 now pins 3.2.0, including\nthe kit app template and the lockfile. Remix 3.2.0 ships\n`remix/middleware/csp` for Content-Security-Policy and per-request\nnonces; vendor docs under docs/vendor/@remix-run are refreshed to match,\nincluding the new csp-middleware package notes.\n\nNo consumer code changes in this commit."}
|
|
1886
|
+
{"release":"2026.11.10","package":"@sdxc/crypto","type":"chore","breaking":false,"title":"Bump remix to 3.2.0","body":"Every workspace that depended on remix 3.1.0 now pins 3.2.0, including\nthe kit app template and the lockfile. Remix 3.2.0 ships\n`remix/middleware/csp` for Content-Security-Policy and per-request\nnonces; vendor docs under docs/vendor/@remix-run are refreshed to match,\nincluding the new csp-middleware package notes.\n\nNo consumer code changes in this commit."}
|
|
1887
|
+
{"release":"2026.11.10","package":"@sdxc/data-model","type":"chore","breaking":false,"title":"Bump remix to 3.2.0","body":"Every workspace that depended on remix 3.1.0 now pins 3.2.0, including\nthe kit app template and the lockfile. Remix 3.2.0 ships\n`remix/middleware/csp` for Content-Security-Policy and per-request\nnonces; vendor docs under docs/vendor/@remix-run are refreshed to match,\nincluding the new csp-middleware package notes.\n\nNo consumer code changes in this commit."}
|
|
1888
|
+
{"release":"2026.11.10","package":"@sdxc/data-table-d1","type":"chore","breaking":false,"title":"Bump remix to 3.2.0","body":"Every workspace that depended on remix 3.1.0 now pins 3.2.0, including\nthe kit app template and the lockfile. Remix 3.2.0 ships\n`remix/middleware/csp` for Content-Security-Policy and per-request\nnonces; vendor docs under docs/vendor/@remix-run are refreshed to match,\nincluding the new csp-middleware package notes.\n\nNo consumer code changes in this commit."}
|
|
1889
|
+
{"release":"2026.11.10","package":"@sdxc/data-table-sqlstorage","type":"chore","breaking":false,"title":"Bump remix to 3.2.0","body":"Every workspace that depended on remix 3.1.0 now pins 3.2.0, including\nthe kit app template and the lockfile. Remix 3.2.0 ships\n`remix/middleware/csp` for Content-Security-Policy and per-request\nnonces; vendor docs under docs/vendor/@remix-run are refreshed to match,\nincluding the new csp-middleware package notes.\n\nNo consumer code changes in this commit."}
|
|
1890
|
+
{"release":"2026.11.10","package":"@sdxc/database-middleware","type":"chore","breaking":false,"title":"Bump remix to 3.2.0","body":"Every workspace that depended on remix 3.1.0 now pins 3.2.0, including\nthe kit app template and the lockfile. Remix 3.2.0 ships\n`remix/middleware/csp` for Content-Security-Policy and per-request\nnonces; vendor docs under docs/vendor/@remix-run are refreshed to match,\nincluding the new csp-middleware package notes.\n\nNo consumer code changes in this commit."}
|
|
1891
|
+
{"release":"2026.11.10","package":"@sdxc/diagram","type":"chore","breaking":false,"title":"Bump remix to 3.2.0","body":"Every workspace that depended on remix 3.1.0 now pins 3.2.0, including\nthe kit app template and the lockfile. Remix 3.2.0 ships\n`remix/middleware/csp` for Content-Security-Policy and per-request\nnonces; vendor docs under docs/vendor/@remix-run are refreshed to match,\nincluding the new csp-middleware package notes.\n\nNo consumer code changes in this commit."}
|
|
1892
|
+
{"release":"2026.11.10","package":"@sdxc/distill","type":"chore","breaking":false,"title":"Bump remix to 3.2.0","body":"Every workspace that depended on remix 3.1.0 now pins 3.2.0, including\nthe kit app template and the lockfile. Remix 3.2.0 ships\n`remix/middleware/csp` for Content-Security-Policy and per-request\nnonces; vendor docs under docs/vendor/@remix-run are refreshed to match,\nincluding the new csp-middleware package notes.\n\nNo consumer code changes in this commit."}
|
|
1893
|
+
{"release":"2026.11.10","package":"@sdxc/doh","type":"chore","breaking":false,"title":"Bump remix to 3.2.0","body":"Every workspace that depended on remix 3.1.0 now pins 3.2.0, including\nthe kit app template and the lockfile. Remix 3.2.0 ships\n`remix/middleware/csp` for Content-Security-Policy and per-request\nnonces; vendor docs under docs/vendor/@remix-run are refreshed to match,\nincluding the new csp-middleware package notes.\n\nNo consumer code changes in this commit."}
|
|
1894
|
+
{"release":"2026.11.10","package":"@sdxc/email-auth","type":"chore","breaking":false,"title":"Bump remix to 3.2.0","body":"Every workspace that depended on remix 3.1.0 now pins 3.2.0, including\nthe kit app template and the lockfile. Remix 3.2.0 ships\n`remix/middleware/csp` for Content-Security-Policy and per-request\nnonces; vendor docs under docs/vendor/@remix-run are refreshed to match,\nincluding the new csp-middleware package notes.\n\nNo consumer code changes in this commit."}
|
|
1895
|
+
{"release":"2026.11.10","package":"@sdxc/epub","type":"feat","breaking":false,"title":"Build EPUB books from Markdown, in code or with sdxc-epub","body":"`@sdxc/epub/markdown` turns a Markdown file, or a folder of chapter files,\ninto the input `EPUB.build` takes. Every file is read through your own\n`read`, so a book can live on a disk, in a bucket or in memory:\n\n import { EPUB } from \"@sdxc/epub\";\n import { fromMarkdown } from \"@sdxc/epub/markdown\";\n\n let book = await fromMarkdown({\n source: { files: [\"index.md\", \"ch1.md\", \"ch2.md\", \"img/map.png\"] },\n read: async (path) => ({ bytes: await bucket.bytes(`book/${path}`) }),\n });\n if (isFailure(book)) throw book.error;\n let built = EPUB.build(book.data.input);\n\n- The `#` heading is the title, shown alone on a centered title page. Each\n `##` heading starts a chapter, and deeper headings fill the contents\n down to `tocDepth` (default 3). Text between the title and the first\n chapter gets a page of its own.\n- A folder reads `index.md`, then `ch<N>.md` files sorted by number (so\n `ch10.md` follows `ch9.md`), then `styles.css`.\n- Images, the cover and stylesheet `url()`s are read once each and keep\n the folder's layout. Links to headings or `.md` files in other chapters\n point at the right page. Footnotes stay with the chapter that cites them.\n- `metadata` overrides the frontmatter. Without an identifier, one is\n derived from the title and authors, so every rebuild is the same book.\n- `fonts` embeds font files and writes their `@font-face` rules from the\n fonts themselves. A font whose license forbids embedding fails with the\n new `invalid-font` code (`EpubFontError`).\n- `remote: true` reads `http(s)` images through `read` too.\n- `onProgress` reports each read against a known total.\n\nThe package now ships the `sdxc-epub` command line:\n\n bunx @sdxc/epub build book/ --font Literata-Regular.woff2\n bunx @sdxc/epub build post.md -o dist/post.epub --json\n bunx @sdxc/epub check book/\n\n- Progress goes to stderr, one counted line per step, with downloads on a\n line of their own.\n- `--allow-remote` downloads web images at your own risk, with a 30-second\n deadline and a 20 MB cap per file.\n- With `SOURCE_DATE_EPOCH` set, two builds of one source are byte for byte\n equal.\n- `check` exits 1 with the file to fix.\n\n`EPUB.build` now writes `ibooks:specified-fonts` whenever a book holds a\nfont, because Apple Books ignores embedded fonts without it. Books that hold\nno font are written exactly as before, so no action is needed."}
|
|
1896
|
+
{"release":"2026.11.10","package":"@sdxc/epub","type":"chore","breaking":false,"title":"Mark the sdxc-epub entry executable","body":"The `sdxc-epub` entry in the repository is now executable, like the other package command lines, so it runs directly from a checkout. Installs from npm are unaffected, and no consumer action is needed."}
|
|
1897
|
+
{"release":"2026.11.10","package":"@sdxc/expression","type":"chore","breaking":false,"title":"Bump remix to 3.2.0","body":"Every workspace that depended on remix 3.1.0 now pins 3.2.0, including\nthe kit app template and the lockfile. Remix 3.2.0 ships\n`remix/middleware/csp` for Content-Security-Policy and per-request\nnonces; vendor docs under docs/vendor/@remix-run are refreshed to match,\nincluding the new csp-middleware package notes.\n\nNo consumer code changes in this commit."}
|
|
1898
|
+
{"release":"2026.11.10","package":"@sdxc/file-storage-r2","type":"chore","breaking":false,"title":"Bump remix to 3.2.0","body":"Every workspace that depended on remix 3.1.0 now pins 3.2.0, including\nthe kit app template and the lockfile. Remix 3.2.0 ships\n`remix/middleware/csp` for Content-Security-Policy and per-request\nnonces; vendor docs under docs/vendor/@remix-run are refreshed to match,\nincluding the new csp-middleware package notes.\n\nNo consumer code changes in this commit."}
|
|
1899
|
+
{"release":"2026.11.10","package":"@sdxc/flags","type":"chore","breaking":false,"title":"Bump remix to 3.2.0","body":"Every workspace that depended on remix 3.1.0 now pins 3.2.0, including\nthe kit app template and the lockfile. Remix 3.2.0 ships\n`remix/middleware/csp` for Content-Security-Policy and per-request\nnonces; vendor docs under docs/vendor/@remix-run are refreshed to match,\nincluding the new csp-middleware package notes.\n\nNo consumer code changes in this commit."}
|
|
1900
|
+
{"release":"2026.11.10","package":"@sdxc/flags-engine","type":"chore","breaking":false,"title":"Bump remix to 3.2.0","body":"Every workspace that depended on remix 3.1.0 now pins 3.2.0, including\nthe kit app template and the lockfile. Remix 3.2.0 ships\n`remix/middleware/csp` for Content-Security-Policy and per-request\nnonces; vendor docs under docs/vendor/@remix-run are refreshed to match,\nincluding the new csp-middleware package notes.\n\nNo consumer code changes in this commit."}
|
|
1901
|
+
{"release":"2026.11.10","package":"@sdxc/get-client-ip","type":"chore","breaking":false,"title":"Bump remix to 3.2.0","body":"Every workspace that depended on remix 3.1.0 now pins 3.2.0, including\nthe kit app template and the lockfile. Remix 3.2.0 ships\n`remix/middleware/csp` for Content-Security-Policy and per-request\nnonces; vendor docs under docs/vendor/@remix-run are refreshed to match,\nincluding the new csp-middleware package notes.\n\nNo consumer code changes in this commit."}
|
|
1902
|
+
{"release":"2026.11.10","package":"@sdxc/health","type":"chore","breaking":false,"title":"Bump remix to 3.2.0","body":"Every workspace that depended on remix 3.1.0 now pins 3.2.0, including\nthe kit app template and the lockfile. Remix 3.2.0 ships\n`remix/middleware/csp` for Content-Security-Policy and per-request\nnonces; vendor docs under docs/vendor/@remix-run are refreshed to match,\nincluding the new csp-middleware package notes.\n\nNo consumer code changes in this commit."}
|
|
1903
|
+
{"release":"2026.11.10","package":"@sdxc/honeypot","type":"chore","breaking":false,"title":"Bump remix to 3.2.0","body":"Every workspace that depended on remix 3.1.0 now pins 3.2.0, including\nthe kit app template and the lockfile. Remix 3.2.0 ships\n`remix/middleware/csp` for Content-Security-Policy and per-request\nnonces; vendor docs under docs/vendor/@remix-run are refreshed to match,\nincluding the new csp-middleware package notes.\n\nNo consumer code changes in this commit."}
|
|
1904
|
+
{"release":"2026.11.10","package":"@sdxc/hostname","type":"chore","breaking":false,"title":"Bump remix to 3.2.0","body":"Every workspace that depended on remix 3.1.0 now pins 3.2.0, including\nthe kit app template and the lockfile. Remix 3.2.0 ships\n`remix/middleware/csp` for Content-Security-Policy and per-request\nnonces; vendor docs under docs/vendor/@remix-run are refreshed to match,\nincluding the new csp-middleware package notes.\n\nNo consumer code changes in this commit."}
|
|
1905
|
+
{"release":"2026.11.10","package":"@sdxc/html","type":"chore","breaking":false,"title":"Bump remix to 3.2.0","body":"Every workspace that depended on remix 3.1.0 now pins 3.2.0, including\nthe kit app template and the lockfile. Remix 3.2.0 ships\n`remix/middleware/csp` for Content-Security-Policy and per-request\nnonces; vendor docs under docs/vendor/@remix-run are refreshed to match,\nincluding the new csp-middleware package notes.\n\nNo consumer code changes in this commit."}
|
|
1906
|
+
{"release":"2026.11.10","package":"@sdxc/http","type":"chore","breaking":false,"title":"Bump remix to 3.2.0","body":"Every workspace that depended on remix 3.1.0 now pins 3.2.0, including\nthe kit app template and the lockfile. Remix 3.2.0 ships\n`remix/middleware/csp` for Content-Security-Policy and per-request\nnonces; vendor docs under docs/vendor/@remix-run are refreshed to match,\nincluding the new csp-middleware package notes.\n\nNo consumer code changes in this commit."}
|
|
1907
|
+
{"release":"2026.11.10","package":"@sdxc/http-signatures","type":"chore","breaking":false,"title":"Bump remix to 3.2.0","body":"Every workspace that depended on remix 3.1.0 now pins 3.2.0, including\nthe kit app template and the lockfile. Remix 3.2.0 ships\n`remix/middleware/csp` for Content-Security-Policy and per-request\nnonces; vendor docs under docs/vendor/@remix-run are refreshed to match,\nincluding the new csp-middleware package notes.\n\nNo consumer code changes in this commit."}
|
|
1908
|
+
{"release":"2026.11.10","package":"@sdxc/i18n","type":"chore","breaking":false,"title":"Bump remix to 3.2.0","body":"Every workspace that depended on remix 3.1.0 now pins 3.2.0, including\nthe kit app template and the lockfile. Remix 3.2.0 ships\n`remix/middleware/csp` for Content-Security-Policy and per-request\nnonces; vendor docs under docs/vendor/@remix-run are refreshed to match,\nincluding the new csp-middleware package notes.\n\nNo consumer code changes in this commit."}
|
|
1909
|
+
{"release":"2026.11.10","package":"@sdxc/icalendar","type":"chore","breaking":false,"title":"Bump remix to 3.2.0","body":"Every workspace that depended on remix 3.1.0 now pins 3.2.0, including\nthe kit app template and the lockfile. Remix 3.2.0 ships\n`remix/middleware/csp` for Content-Security-Policy and per-request\nnonces; vendor docs under docs/vendor/@remix-run are refreshed to match,\nincluding the new csp-middleware package notes.\n\nNo consumer code changes in this commit."}
|
|
1910
|
+
{"release":"2026.11.10","package":"@sdxc/icons","type":"chore","breaking":false,"title":"Bump remix to 3.2.0","body":"Every workspace that depended on remix 3.1.0 now pins 3.2.0, including\nthe kit app template and the lockfile. Remix 3.2.0 ships\n`remix/middleware/csp` for Content-Security-Policy and per-request\nnonces; vendor docs under docs/vendor/@remix-run are refreshed to match,\nincluding the new csp-middleware package notes.\n\nNo consumer code changes in this commit."}
|
|
1911
|
+
{"release":"2026.11.10","package":"@sdxc/idempotency","type":"chore","breaking":false,"title":"Bump remix to 3.2.0","body":"Every workspace that depended on remix 3.1.0 now pins 3.2.0, including\nthe kit app template and the lockfile. Remix 3.2.0 ships\n`remix/middleware/csp` for Content-Security-Policy and per-request\nnonces; vendor docs under docs/vendor/@remix-run are refreshed to match,\nincluding the new csp-middleware package notes.\n\nNo consumer code changes in this commit."}
|
|
1912
|
+
{"release":"2026.11.10","package":"@sdxc/jmap","type":"chore","breaking":false,"title":"Bump remix to 3.2.0","body":"Every workspace that depended on remix 3.1.0 now pins 3.2.0, including\nthe kit app template and the lockfile. Remix 3.2.0 ships\n`remix/middleware/csp` for Content-Security-Policy and per-request\nnonces; vendor docs under docs/vendor/@remix-run are refreshed to match,\nincluding the new csp-middleware package notes.\n\nNo consumer code changes in this commit."}
|
|
1913
|
+
{"release":"2026.11.10","package":"@sdxc/jobs","type":"chore","breaking":false,"title":"Bump remix to 3.2.0","body":"Every workspace that depended on remix 3.1.0 now pins 3.2.0, including\nthe kit app template and the lockfile. Remix 3.2.0 ships\n`remix/middleware/csp` for Content-Security-Policy and per-request\nnonces; vendor docs under docs/vendor/@remix-run are refreshed to match,\nincluding the new csp-middleware package notes.\n\nNo consumer code changes in this commit."}
|
|
1914
|
+
{"release":"2026.11.10","package":"@sdxc/jscalendar","type":"chore","breaking":false,"title":"Bump remix to 3.2.0","body":"Every workspace that depended on remix 3.1.0 now pins 3.2.0, including\nthe kit app template and the lockfile. Remix 3.2.0 ships\n`remix/middleware/csp` for Content-Security-Policy and per-request\nnonces; vendor docs under docs/vendor/@remix-run are refreshed to match,\nincluding the new csp-middleware package notes.\n\nNo consumer code changes in this commit."}
|
|
1915
|
+
{"release":"2026.11.10","package":"@sdxc/jscontact","type":"chore","breaking":false,"title":"Bump remix to 3.2.0","body":"Every workspace that depended on remix 3.1.0 now pins 3.2.0, including\nthe kit app template and the lockfile. Remix 3.2.0 ships\n`remix/middleware/csp` for Content-Security-Policy and per-request\nnonces; vendor docs under docs/vendor/@remix-run are refreshed to match,\nincluding the new csp-middleware package notes.\n\nNo consumer code changes in this commit."}
|
|
1916
|
+
{"release":"2026.11.10","package":"@sdxc/jsdoc","type":"chore","breaking":false,"title":"Bump remix to 3.2.0","body":"Every workspace that depended on remix 3.1.0 now pins 3.2.0, including\nthe kit app template and the lockfile. Remix 3.2.0 ships\n`remix/middleware/csp` for Content-Security-Policy and per-request\nnonces; vendor docs under docs/vendor/@remix-run are refreshed to match,\nincluding the new csp-middleware package notes.\n\nNo consumer code changes in this commit."}
|
|
1917
|
+
{"release":"2026.11.10","package":"@sdxc/json-canonical","type":"chore","breaking":false,"title":"Bump remix to 3.2.0","body":"Every workspace that depended on remix 3.1.0 now pins 3.2.0, including\nthe kit app template and the lockfile. Remix 3.2.0 ships\n`remix/middleware/csp` for Content-Security-Policy and per-request\nnonces; vendor docs under docs/vendor/@remix-run are refreshed to match,\nincluding the new csp-middleware package notes.\n\nNo consumer code changes in this commit."}
|
|
1918
|
+
{"release":"2026.11.10","package":"@sdxc/json-schema","type":"chore","breaking":false,"title":"Bump remix to 3.2.0","body":"Every workspace that depended on remix 3.1.0 now pins 3.2.0, including\nthe kit app template and the lockfile. Remix 3.2.0 ships\n`remix/middleware/csp` for Content-Security-Policy and per-request\nnonces; vendor docs under docs/vendor/@remix-run are refreshed to match,\nincluding the new csp-middleware package notes.\n\nNo consumer code changes in this commit."}
|
|
1919
|
+
{"release":"2026.11.10","package":"@sdxc/jsonc","type":"chore","breaking":false,"title":"Bump remix to 3.2.0","body":"Every workspace that depended on remix 3.1.0 now pins 3.2.0, including\nthe kit app template and the lockfile. Remix 3.2.0 ships\n`remix/middleware/csp` for Content-Security-Policy and per-request\nnonces; vendor docs under docs/vendor/@remix-run are refreshed to match,\nincluding the new csp-middleware package notes.\n\nNo consumer code changes in this commit."}
|
|
1920
|
+
{"release":"2026.11.10","package":"@sdxc/jsonpath","type":"chore","breaking":false,"title":"Bump remix to 3.2.0","body":"Every workspace that depended on remix 3.1.0 now pins 3.2.0, including\nthe kit app template and the lockfile. Remix 3.2.0 ships\n`remix/middleware/csp` for Content-Security-Policy and per-request\nnonces; vendor docs under docs/vendor/@remix-run are refreshed to match,\nincluding the new csp-middleware package notes.\n\nNo consumer code changes in this commit."}
|
|
1921
|
+
{"release":"2026.11.10","package":"@sdxc/jwt","type":"chore","breaking":false,"title":"Bump remix to 3.2.0","body":"Every workspace that depended on remix 3.1.0 now pins 3.2.0, including\nthe kit app template and the lockfile. Remix 3.2.0 ships\n`remix/middleware/csp` for Content-Security-Policy and per-request\nnonces; vendor docs under docs/vendor/@remix-run are refreshed to match,\nincluding the new csp-middleware package notes.\n\nNo consumer code changes in this commit."}
|
|
1922
|
+
{"release":"2026.11.10","package":"@sdxc/kit","type":"feat","breaking":false,"title":"Register sdxc-bench in the pkg catalog","body":"Lists `bench` among packages with a command line so `sdxc pkg bench`\nruns `@sdxc/bench`'s weigh and HTTP latency CLI through the installed\nbinary."}
|
|
1923
|
+
{"release":"2026.11.10","package":"@sdxc/kit","type":"feat","breaking":false,"title":"Wire worktree, since, memory and watch into sdxc ci","body":"`sdxc ci` forwards the new `@sdxc/ci` flags. With `--worktree` it skips\nthe main checkout's frozen install so the temporary worktree installs\nand links workspace packages against HEAD itself."}
|
|
1924
|
+
{"release":"2026.11.10","package":"@sdxc/kit","type":"docs","breaking":false,"title":"Describe sdxc ci --concurrency as slots that weighted steps share","body":"The command reference now says `--concurrency` sets the concurrency slots running steps share,\neach holding its `weight` (1 by default), rather than a count of steps. No behavior change."}
|
|
1925
|
+
{"release":"2026.11.10","package":"@sdxc/kit","type":"chore","breaking":false,"title":"Bump remix to 3.2.0","body":"Every workspace that depended on remix 3.1.0 now pins 3.2.0, including\nthe kit app template and the lockfile. Remix 3.2.0 ships\n`remix/middleware/csp` for Content-Security-Policy and per-request\nnonces; vendor docs under docs/vendor/@remix-run are refreshed to match,\nincluding the new csp-middleware package notes.\n\nNo consumer code changes in this commit."}
|
|
1926
|
+
{"release":"2026.11.10","package":"@sdxc/kit","type":"feat","breaking":false,"title":"Wire generated apps to Remix csp() plus securityHeaders","body":"The app template splits Content-Security-Policy into\n`CONTENT_SECURITY_POLICY` for Remix's `csp()` and keeps HSTS,\nReferrer-Policy and the rest on `SECURITY_POLICY` for\n`securityHeaders()`. Page middleware installs `csp()` before\n`securityHeaders()` and hands `getCspNonce` to `assets()`.\n\n```ts\ncsp({ policy: ({ nonce }) => remixCsp(CONTENT_SECURITY_POLICY, nonce) }),\nsecurityHeaders(SECURITY_POLICY),\nassets(resolver, { nonce: (ctx) => getCspNonce(ctx) }),\n```\n\nApps already generated are unchanged; only new `sdxc create` output\npicks this up."}
|
|
1927
|
+
{"release":"2026.11.10","package":"@sdxc/kit","type":"fix","breaking":false,"title":"Shorten app template JSDoc to three lines","body":"`sdxc doctor`'s jsdoc check rejected the Remix CSP migration comments on\n`config/security-policy.ts` and the page middleware export, so a freshly\ncreated app failed the create template suite. Consumers get the same wording\ncompressed to the three-line limit; no runtime change."}
|
|
1928
|
+
{"release":"2026.11.10","package":"@sdxc/kit","type":"feat","breaking":false,"title":"Run @sdxc/epub's command line with sdxc pkg epub","body":"`sdxc pkg epub` now runs the `sdxc-epub` command line from `@sdxc/epub`,\nwhich writes EPUB books from a Markdown file or a folder of chapter files:\n\n sdxc pkg epub build book/ --font Literata-Regular.woff2\n sdxc pkg epub check book/\n\n`sdxc pkg --help` lists it among the packages with a command line. Nothing\nchanges for other commands."}
|
|
1929
|
+
{"release":"2026.11.10","package":"@sdxc/kit","type":"feat","breaking":false,"title":"Run @sdxc/blueprint's command line with sdxc pkg blueprint","body":"`sdxc pkg blueprint` now runs `sdxc-blueprint` from `@sdxc/blueprint`, which generates files from the `.stub` blueprints a project keeps in `.config/blueprint/`, and `sdxc pkg --help` lists it.\n\n```sh\nsdxc pkg blueprint --list\nsdxc pkg blueprint flag --name checkout-v2 --dry-run\n```\n\n`sdxc make` is unchanged and keeps using the kit's built-in stubs and their overrides in `make.stubs`."}
|
|
1930
|
+
{"release":"2026.11.10","package":"@sdxc/kit","type":"feat","breaking":false,"title":"Render make and scaffold stubs with @sdxc/blueprint","body":"`sdxc make` and `sdxc scaffold` now render their stubs with `@sdxc/blueprint`, so a stub you override in `make.stubs` can use its filters and blocks as well as plain placeholders:\n\n```text\nexport const {{name}}Label = \"{{title | upper}}\";\n{{#if specifier}}\n// imported as {{specifier}}\n{{/if}}\n```\n\nA placeholder a kind does not define is still an error naming the stub and the placeholders it accepts.\n\nPlurals now come from `@sdxc/strings` instead of three suffix rules. Before, `sdxc make model person` named its table `persons`, and `sdxc scaffold child` wrote `childs`. Now they are `people` and `children`, and `quiz` becomes `quizzes`. Regular nouns (`post`, `category`, `box`) are unchanged. Files you already generated keep their names; pass `--plural` to `sdxc scaffold` to keep the old spelling for a new resource.\n\n`sdxc scaffold` now refuses a name that reads the same in the plural, such as `news` or `series`, since its singular and plural names would collide; name the plural with `--plural news-items`."}
|
|
1931
|
+
{"release":"2026.11.10","package":"@sdxc/lazy-frame","type":"chore","breaking":false,"title":"Bump remix to 3.2.0","body":"Every workspace that depended on remix 3.1.0 now pins 3.2.0, including\nthe kit app template and the lockfile. Remix 3.2.0 ships\n`remix/middleware/csp` for Content-Security-Policy and per-request\nnonces; vendor docs under docs/vendor/@remix-run are refreshed to match,\nincluding the new csp-middleware package notes.\n\nNo consumer code changes in this commit."}
|
|
1932
|
+
{"release":"2026.11.10","package":"@sdxc/lazy-route","type":"chore","breaking":false,"title":"Bump remix to 3.2.0","body":"Every workspace that depended on remix 3.1.0 now pins 3.2.0, including\nthe kit app template and the lockfile. Remix 3.2.0 ships\n`remix/middleware/csp` for Content-Security-Policy and per-request\nnonces; vendor docs under docs/vendor/@remix-run are refreshed to match,\nincluding the new csp-middleware package notes.\n\nNo consumer code changes in this commit."}
|
|
1933
|
+
{"release":"2026.11.10","package":"@sdxc/logger","type":"chore","breaking":false,"title":"Bump remix to 3.2.0","body":"Every workspace that depended on remix 3.1.0 now pins 3.2.0, including\nthe kit app template and the lockfile. Remix 3.2.0 ships\n`remix/middleware/csp` for Content-Security-Policy and per-request\nnonces; vendor docs under docs/vendor/@remix-run are refreshed to match,\nincluding the new csp-middleware package notes.\n\nNo consumer code changes in this commit."}
|
|
1934
|
+
{"release":"2026.11.10","package":"@sdxc/mail","type":"chore","breaking":false,"title":"Bump remix to 3.2.0","body":"Every workspace that depended on remix 3.1.0 now pins 3.2.0, including\nthe kit app template and the lockfile. Remix 3.2.0 ships\n`remix/middleware/csp` for Content-Security-Policy and per-request\nnonces; vendor docs under docs/vendor/@remix-run are refreshed to match,\nincluding the new csp-middleware package notes.\n\nNo consumer code changes in this commit."}
|
|
1935
|
+
{"release":"2026.11.10","package":"@sdxc/markdown","type":"test","breaking":false,"title":"Add a Vitest bench for Markdown.parse","body":"Registers a suite benchmark on a short GFM article so parser throughput\nis measured with `vp test bench --project packages`. Comparisons with\n`toBeFasterThan` wait on Vitest 5's bench fixture; until then this file\nis the pattern for input→output benches."}
|
|
1936
|
+
{"release":"2026.11.10","package":"@sdxc/markdown","type":"fix","breaking":false,"title":"Parse long paragraphs, reference runs and deep lists in linear time","body":"Three inputs made `Markdown.parse` slow down faster than the document grew:\n\n- A paragraph of many lines: locating each text node and line break in the source scanned\n every line before it. 60,000 short lines took about 2.4 seconds; they now take a few\n milliseconds.\n- A run of reference definitions: each definition re-joined the rest of the paragraph before\n reading the next one. 10,000 definitions took about 400 ms; they now take about 5 ms.\n- Deeply nested lists: every list item re-measured the leading spaces of the line. A list\n 1,000 levels deep took about 630 ms; it now takes about 30 ms.\n\nThe parsed tree, positions included, is unchanged. No action is needed; upgrading makes large\ndocuments parse faster."}
|
|
1937
|
+
{"release":"2026.11.10","package":"@sdxc/markdown","type":"chore","breaking":false,"title":"Bump remix to 3.2.0","body":"Every workspace that depended on remix 3.1.0 now pins 3.2.0, including\nthe kit app template and the lockfile. Remix 3.2.0 ships\n`remix/middleware/csp` for Content-Security-Policy and per-request\nnonces; vendor docs under docs/vendor/@remix-run are refreshed to match,\nincluding the new csp-middleware package notes.\n\nNo consumer code changes in this commit."}
|
|
1938
|
+
{"release":"2026.11.10","package":"@sdxc/math","type":"chore","breaking":false,"title":"Bump remix to 3.2.0","body":"Every workspace that depended on remix 3.1.0 now pins 3.2.0, including\nthe kit app template and the lockfile. Remix 3.2.0 ships\n`remix/middleware/csp` for Content-Security-Policy and per-request\nnonces; vendor docs under docs/vendor/@remix-run are refreshed to match,\nincluding the new csp-middleware package notes.\n\nNo consumer code changes in this commit."}
|
|
1939
|
+
{"release":"2026.11.10","package":"@sdxc/mcp","type":"chore","breaking":false,"title":"Bump remix to 3.2.0","body":"Every workspace that depended on remix 3.1.0 now pins 3.2.0, including\nthe kit app template and the lockfile. Remix 3.2.0 ships\n`remix/middleware/csp` for Content-Security-Policy and per-request\nnonces; vendor docs under docs/vendor/@remix-run are refreshed to match,\nincluding the new csp-middleware package notes.\n\nNo consumer code changes in this commit."}
|
|
1940
|
+
{"release":"2026.11.10","package":"@sdxc/merge-patch","type":"chore","breaking":false,"title":"Bump remix to 3.2.0","body":"Every workspace that depended on remix 3.1.0 now pins 3.2.0, including\nthe kit app template and the lockfile. Remix 3.2.0 ships\n`remix/middleware/csp` for Content-Security-Policy and per-request\nnonces; vendor docs under docs/vendor/@remix-run are refreshed to match,\nincluding the new csp-middleware package notes.\n\nNo consumer code changes in this commit."}
|
|
1941
|
+
{"release":"2026.11.10","package":"@sdxc/messaging","type":"chore","breaking":false,"title":"Bump remix to 3.2.0","body":"Every workspace that depended on remix 3.1.0 now pins 3.2.0, including\nthe kit app template and the lockfile. Remix 3.2.0 ships\n`remix/middleware/csp` for Content-Security-Policy and per-request\nnonces; vendor docs under docs/vendor/@remix-run are refreshed to match,\nincluding the new csp-middleware package notes.\n\nNo consumer code changes in this commit."}
|
|
1942
|
+
{"release":"2026.11.10","package":"@sdxc/microformats","type":"chore","breaking":false,"title":"Bump remix to 3.2.0","body":"Every workspace that depended on remix 3.1.0 now pins 3.2.0, including\nthe kit app template and the lockfile. Remix 3.2.0 ships\n`remix/middleware/csp` for Content-Security-Policy and per-request\nnonces; vendor docs under docs/vendor/@remix-run are refreshed to match,\nincluding the new csp-middleware package notes.\n\nNo consumer code changes in this commit."}
|
|
1943
|
+
{"release":"2026.11.10","package":"@sdxc/micropub","type":"chore","breaking":false,"title":"Bump remix to 3.2.0","body":"Every workspace that depended on remix 3.1.0 now pins 3.2.0, including\nthe kit app template and the lockfile. Remix 3.2.0 ships\n`remix/middleware/csp` for Content-Security-Policy and per-request\nnonces; vendor docs under docs/vendor/@remix-run are refreshed to match,\nincluding the new csp-middleware package notes.\n\nNo consumer code changes in this commit."}
|
|
1944
|
+
{"release":"2026.11.10","package":"@sdxc/newsletter","type":"chore","breaking":false,"title":"Bump remix to 3.2.0","body":"Every workspace that depended on remix 3.1.0 now pins 3.2.0, including\nthe kit app template and the lockfile. Remix 3.2.0 ships\n`remix/middleware/csp` for Content-Security-Policy and per-request\nnonces; vendor docs under docs/vendor/@remix-run are refreshed to match,\nincluding the new csp-middleware package notes.\n\nNo consumer code changes in this commit."}
|
|
1945
|
+
{"release":"2026.11.10","package":"@sdxc/no-www-middleware","type":"chore","breaking":false,"title":"Bump remix to 3.2.0","body":"Every workspace that depended on remix 3.1.0 now pins 3.2.0, including\nthe kit app template and the lockfile. Remix 3.2.0 ships\n`remix/middleware/csp` for Content-Security-Policy and per-request\nnonces; vendor docs under docs/vendor/@remix-run are refreshed to match,\nincluding the new csp-middleware package notes.\n\nNo consumer code changes in this commit."}
|
|
1946
|
+
{"release":"2026.11.10","package":"@sdxc/openapi","type":"chore","breaking":false,"title":"Bump remix to 3.2.0","body":"Every workspace that depended on remix 3.1.0 now pins 3.2.0, including\nthe kit app template and the lockfile. Remix 3.2.0 ships\n`remix/middleware/csp` for Content-Security-Policy and per-request\nnonces; vendor docs under docs/vendor/@remix-run are refreshed to match,\nincluding the new csp-middleware package notes.\n\nNo consumer code changes in this commit."}
|
|
1947
|
+
{"release":"2026.11.10","package":"@sdxc/openpgp","type":"chore","breaking":false,"title":"Bump remix to 3.2.0","body":"Every workspace that depended on remix 3.1.0 now pins 3.2.0, including\nthe kit app template and the lockfile. Remix 3.2.0 ships\n`remix/middleware/csp` for Content-Security-Policy and per-request\nnonces; vendor docs under docs/vendor/@remix-run are refreshed to match,\nincluding the new csp-middleware package notes.\n\nNo consumer code changes in this commit."}
|
|
1948
|
+
{"release":"2026.11.10","package":"@sdxc/pagination","type":"chore","breaking":false,"title":"Bump remix to 3.2.0","body":"Every workspace that depended on remix 3.1.0 now pins 3.2.0, including\nthe kit app template and the lockfile. Remix 3.2.0 ships\n`remix/middleware/csp` for Content-Security-Policy and per-request\nnonces; vendor docs under docs/vendor/@remix-run are refreshed to match,\nincluding the new csp-middleware package notes.\n\nNo consumer code changes in this commit."}
|
|
1949
|
+
{"release":"2026.11.10","package":"@sdxc/passkey","type":"chore","breaking":false,"title":"Bump remix to 3.2.0","body":"Every workspace that depended on remix 3.1.0 now pins 3.2.0, including\nthe kit app template and the lockfile. Remix 3.2.0 ships\n`remix/middleware/csp` for Content-Security-Policy and per-request\nnonces; vendor docs under docs/vendor/@remix-run are refreshed to match,\nincluding the new csp-middleware package notes.\n\nNo consumer code changes in this commit."}
|
|
1950
|
+
{"release":"2026.11.10","package":"@sdxc/privacy-pass","type":"chore","breaking":false,"title":"Bump remix to 3.2.0","body":"Every workspace that depended on remix 3.1.0 now pins 3.2.0, including\nthe kit app template and the lockfile. Remix 3.2.0 ships\n`remix/middleware/csp` for Content-Security-Policy and per-request\nnonces; vendor docs under docs/vendor/@remix-run are refreshed to match,\nincluding the new csp-middleware package notes.\n\nNo consumer code changes in this commit."}
|
|
1951
|
+
{"release":"2026.11.10","package":"@sdxc/problem","type":"chore","breaking":false,"title":"Bump remix to 3.2.0","body":"Every workspace that depended on remix 3.1.0 now pins 3.2.0, including\nthe kit app template and the lockfile. Remix 3.2.0 ships\n`remix/middleware/csp` for Content-Security-Policy and per-request\nnonces; vendor docs under docs/vendor/@remix-run are refreshed to match,\nincluding the new csp-middleware package notes.\n\nNo consumer code changes in this commit."}
|
|
1952
|
+
{"release":"2026.11.10","package":"@sdxc/qr","type":"chore","breaking":false,"title":"Bump remix to 3.2.0","body":"Every workspace that depended on remix 3.1.0 now pins 3.2.0, including\nthe kit app template and the lockfile. Remix 3.2.0 ships\n`remix/middleware/csp` for Content-Security-Policy and per-request\nnonces; vendor docs under docs/vendor/@remix-run are refreshed to match,\nincluding the new csp-middleware package notes.\n\nNo consumer code changes in this commit."}
|
|
1953
|
+
{"release":"2026.11.10","package":"@sdxc/random","type":"chore","breaking":false,"title":"Bump remix to 3.2.0","body":"Every workspace that depended on remix 3.1.0 now pins 3.2.0, including\nthe kit app template and the lockfile. Remix 3.2.0 ships\n`remix/middleware/csp` for Content-Security-Policy and per-request\nnonces; vendor docs under docs/vendor/@remix-run are refreshed to match,\nincluding the new csp-middleware package notes.\n\nNo consumer code changes in this commit."}
|
|
1954
|
+
{"release":"2026.11.10","package":"@sdxc/rate-limit","type":"chore","breaking":false,"title":"Bump remix to 3.2.0","body":"Every workspace that depended on remix 3.1.0 now pins 3.2.0, including\nthe kit app template and the lockfile. Remix 3.2.0 ships\n`remix/middleware/csp` for Content-Security-Policy and per-request\nnonces; vendor docs under docs/vendor/@remix-run are refreshed to match,\nincluding the new csp-middleware package notes.\n\nNo consumer code changes in this commit."}
|
|
1955
|
+
{"release":"2026.11.10","package":"@sdxc/rdap","type":"chore","breaking":false,"title":"Bump remix to 3.2.0","body":"Every workspace that depended on remix 3.1.0 now pins 3.2.0, including\nthe kit app template and the lockfile. Remix 3.2.0 ships\n`remix/middleware/csp` for Content-Security-Policy and per-request\nnonces; vendor docs under docs/vendor/@remix-run are refreshed to match,\nincluding the new csp-middleware package notes.\n\nNo consumer code changes in this commit."}
|
|
1956
|
+
{"release":"2026.11.10","package":"@sdxc/robots","type":"chore","breaking":false,"title":"Bump remix to 3.2.0","body":"Every workspace that depended on remix 3.1.0 now pins 3.2.0, including\nthe kit app template and the lockfile. Remix 3.2.0 ships\n`remix/middleware/csp` for Content-Security-Policy and per-request\nnonces; vendor docs under docs/vendor/@remix-run are refreshed to match,\nincluding the new csp-middleware package notes.\n\nNo consumer code changes in this commit."}
|
|
1957
|
+
{"release":"2026.11.10","package":"@sdxc/scim","type":"chore","breaking":false,"title":"Bump remix to 3.2.0","body":"Every workspace that depended on remix 3.1.0 now pins 3.2.0, including\nthe kit app template and the lockfile. Remix 3.2.0 ships\n`remix/middleware/csp` for Content-Security-Policy and per-request\nnonces; vendor docs under docs/vendor/@remix-run are refreshed to match,\nincluding the new csp-middleware package notes.\n\nNo consumer code changes in this commit."}
|
|
1958
|
+
{"release":"2026.11.10","package":"@sdxc/search","type":"chore","breaking":false,"title":"Bump remix to 3.2.0","body":"Every workspace that depended on remix 3.1.0 now pins 3.2.0, including\nthe kit app template and the lockfile. Remix 3.2.0 ships\n`remix/middleware/csp` for Content-Security-Policy and per-request\nnonces; vendor docs under docs/vendor/@remix-run are refreshed to match,\nincluding the new csp-middleware package notes.\n\nNo consumer code changes in this commit."}
|
|
1959
|
+
{"release":"2026.11.10","package":"@sdxc/security-headers","type":"feat","breaking":false,"title":"Hand CSP and nonces to Remix's csp()","body":"`SecurityHeaders.Policy` no longer carries Content-Security-Policy\nfields, and `securityHeaders()` no longer publishes a nonce. CSP parse,\nstringify, merge, reports, audit and Permissions-Policy stay here.\n\nNew exports:\n- `@sdxc/security-headers/remix` — `remixCsp(directives, nonce)` turns\n this package's unquoted directives into the quoted object Remix's\n `csp({ policy })` factory expects.\n- `@sdxc/security-headers/csp-patch` — `cspPatch()` / `patchCsp(ctx, …)`\n rewrite a CSP header Remix already serialized (import-map hash,\n front-channel logout `frame-src`, check-session).\n\n```ts\nimport { remixCsp } from \"@sdxc/security-headers/remix\";\nimport { securityHeaders } from \"@sdxc/security-headers/middleware\";\nimport { csp, getCspNonce } from \"remix/middleware/csp\";\n\ncreateRouter({\n middleware: [\n csp({ policy: ({ nonce }) => remixCsp(CONTENT_SECURITY_POLICY, nonce) }),\n securityHeaders(SECURITY_POLICY),\n assets(resolver, { nonce: (ctx) => getCspNonce(ctx) }),\n ],\n});\n```\n\nADR-191 records the split; ADR-089 points at it. Peer dependency is\nremix 3.2.0. No other consumer migration is in this commit."}
|
|
1960
|
+
{"release":"2026.11.10","package":"@sdxc/security-headers","type":"fix","breaking":false,"title":"Skip cspPatch rebuild when Remix wrote no CSP","body":"`importMapHash` (and similar) can queue a CSP patch on every request.\nWhen Remix's default HTML-only `csp()` left a JSON response untouched,\n`cspPatch` still rebuilt it and under MSW that Headers copy dropped\nContent-Type on `/health` and `/stats.json`.\n\nBefore: any queued patch rebuilt the response and could invent CSP on\nnon-HTML answers.\nAfter: patches apply only to headers Remix already wrote; otherwise the\nresponse passes through. No consumer action."}
|
|
1961
|
+
{"release":"2026.11.10","package":"@sdxc/semver","type":"chore","breaking":false,"title":"Bump remix to 3.2.0","body":"Every workspace that depended on remix 3.1.0 now pins 3.2.0, including\nthe kit app template and the lockfile. Remix 3.2.0 ships\n`remix/middleware/csp` for Content-Security-Policy and per-request\nnonces; vendor docs under docs/vendor/@remix-run are refreshed to match,\nincluding the new csp-middleware package notes.\n\nNo consumer code changes in this commit."}
|
|
1962
|
+
{"release":"2026.11.10","package":"@sdxc/seo","type":"chore","breaking":false,"title":"Bump remix to 3.2.0","body":"Every workspace that depended on remix 3.1.0 now pins 3.2.0, including\nthe kit app template and the lockfile. Remix 3.2.0 ships\n`remix/middleware/csp` for Content-Security-Policy and per-request\nnonces; vendor docs under docs/vendor/@remix-run are refreshed to match,\nincluding the new csp-middleware package notes.\n\nNo consumer code changes in this commit."}
|
|
1963
|
+
{"release":"2026.11.10","package":"@sdxc/session-storage-kv","type":"chore","breaking":false,"title":"Bump remix to 3.2.0","body":"Every workspace that depended on remix 3.1.0 now pins 3.2.0, including\nthe kit app template and the lockfile. Remix 3.2.0 ships\n`remix/middleware/csp` for Content-Security-Policy and per-request\nnonces; vendor docs under docs/vendor/@remix-run are refreshed to match,\nincluding the new csp-middleware package notes.\n\nNo consumer code changes in this commit."}
|
|
1964
|
+
{"release":"2026.11.10","package":"@sdxc/sitemap","type":"chore","breaking":false,"title":"Bump remix to 3.2.0","body":"Every workspace that depended on remix 3.1.0 now pins 3.2.0, including\nthe kit app template and the lockfile. Remix 3.2.0 ships\n`remix/middleware/csp` for Content-Security-Policy and per-request\nnonces; vendor docs under docs/vendor/@remix-run are refreshed to match,\nincluding the new csp-middleware package notes.\n\nNo consumer code changes in this commit."}
|
|
1965
|
+
{"release":"2026.11.10","package":"@sdxc/spam","type":"chore","breaking":false,"title":"Bump remix to 3.2.0","body":"Every workspace that depended on remix 3.1.0 now pins 3.2.0, including\nthe kit app template and the lockfile. Remix 3.2.0 ships\n`remix/middleware/csp` for Content-Security-Policy and per-request\nnonces; vendor docs under docs/vendor/@remix-run are refreshed to match,\nincluding the new csp-middleware package notes.\n\nNo consumer code changes in this commit."}
|
|
1966
|
+
{"release":"2026.11.10","package":"@sdxc/spec","type":"chore","breaking":false,"title":"Bump remix to 3.2.0","body":"Every workspace that depended on remix 3.1.0 now pins 3.2.0, including\nthe kit app template and the lockfile. Remix 3.2.0 ships\n`remix/middleware/csp` for Content-Security-Policy and per-request\nnonces; vendor docs under docs/vendor/@remix-run are refreshed to match,\nincluding the new csp-middleware package notes.\n\nNo consumer code changes in this commit."}
|
|
1967
|
+
{"release":"2026.11.10","package":"@sdxc/structured-fields","type":"chore","breaking":false,"title":"Bump remix to 3.2.0","body":"Every workspace that depended on remix 3.1.0 now pins 3.2.0, including\nthe kit app template and the lockfile. Remix 3.2.0 ships\n`remix/middleware/csp` for Content-Security-Policy and per-request\nnonces; vendor docs under docs/vendor/@remix-run are refreshed to match,\nincluding the new csp-middleware package notes.\n\nNo consumer code changes in this commit."}
|
|
1968
|
+
{"release":"2026.11.10","package":"@sdxc/trace-context","type":"chore","breaking":false,"title":"Bump remix to 3.2.0","body":"Every workspace that depended on remix 3.1.0 now pins 3.2.0, including\nthe kit app template and the lockfile. Remix 3.2.0 ships\n`remix/middleware/csp` for Content-Security-Policy and per-request\nnonces; vendor docs under docs/vendor/@remix-run are refreshed to match,\nincluding the new csp-middleware package notes.\n\nNo consumer code changes in this commit."}
|
|
1969
|
+
{"release":"2026.11.10","package":"@sdxc/trailing-slash-middleware","type":"chore","breaking":false,"title":"Bump remix to 3.2.0","body":"Every workspace that depended on remix 3.1.0 now pins 3.2.0, including\nthe kit app template and the lockfile. Remix 3.2.0 ships\n`remix/middleware/csp` for Content-Security-Policy and per-request\nnonces; vendor docs under docs/vendor/@remix-run are refreshed to match,\nincluding the new csp-middleware package notes.\n\nNo consumer code changes in this commit."}
|
|
1970
|
+
{"release":"2026.11.10","package":"@sdxc/typeid","type":"chore","breaking":false,"title":"Bump remix to 3.2.0","body":"Every workspace that depended on remix 3.1.0 now pins 3.2.0, including\nthe kit app template and the lockfile. Remix 3.2.0 ships\n`remix/middleware/csp` for Content-Security-Policy and per-request\nnonces; vendor docs under docs/vendor/@remix-run are refreshed to match,\nincluding the new csp-middleware package notes.\n\nNo consumer code changes in this commit."}
|
|
1971
|
+
{"release":"2026.11.10","package":"@sdxc/u","type":"chore","breaking":false,"title":"Bump remix to 3.2.0","body":"Every workspace that depended on remix 3.1.0 now pins 3.2.0, including\nthe kit app template and the lockfile. Remix 3.2.0 ships\n`remix/middleware/csp` for Content-Security-Policy and per-request\nnonces; vendor docs under docs/vendor/@remix-run are refreshed to match,\nincluding the new csp-middleware package notes.\n\nNo consumer code changes in this commit."}
|
|
1972
|
+
{"release":"2026.11.10","package":"@sdxc/ui","type":"chore","breaking":false,"title":"Bump remix to 3.2.0","body":"Every workspace that depended on remix 3.1.0 now pins 3.2.0, including\nthe kit app template and the lockfile. Remix 3.2.0 ships\n`remix/middleware/csp` for Content-Security-Policy and per-request\nnonces; vendor docs under docs/vendor/@remix-run are refreshed to match,\nincluding the new csp-middleware package notes.\n\nNo consumer code changes in this commit."}
|
|
1973
|
+
{"release":"2026.11.10","package":"@sdxc/user-agent","type":"chore","breaking":false,"title":"Bump remix to 3.2.0","body":"Every workspace that depended on remix 3.1.0 now pins 3.2.0, including\nthe kit app template and the lockfile. Remix 3.2.0 ships\n`remix/middleware/csp` for Content-Security-Policy and per-request\nnonces; vendor docs under docs/vendor/@remix-run are refreshed to match,\nincluding the new csp-middleware package notes.\n\nNo consumer code changes in this commit."}
|
|
1974
|
+
{"release":"2026.11.10","package":"@sdxc/uuid","type":"chore","breaking":false,"title":"Bump remix to 3.2.0","body":"Every workspace that depended on remix 3.1.0 now pins 3.2.0, including\nthe kit app template and the lockfile. Remix 3.2.0 ships\n`remix/middleware/csp` for Content-Security-Policy and per-request\nnonces; vendor docs under docs/vendor/@remix-run are refreshed to match,\nincluding the new csp-middleware package notes.\n\nNo consumer code changes in this commit."}
|
|
1975
|
+
{"release":"2026.11.10","package":"@sdxc/validate","type":"chore","breaking":false,"title":"Bump remix to 3.2.0","body":"Every workspace that depended on remix 3.1.0 now pins 3.2.0, including\nthe kit app template and the lockfile. Remix 3.2.0 ships\n`remix/middleware/csp` for Content-Security-Policy and per-request\nnonces; vendor docs under docs/vendor/@remix-run are refreshed to match,\nincluding the new csp-middleware package notes.\n\nNo consumer code changes in this commit."}
|
|
1976
|
+
{"release":"2026.11.10","package":"@sdxc/web-push","type":"chore","breaking":false,"title":"Bump remix to 3.2.0","body":"Every workspace that depended on remix 3.1.0 now pins 3.2.0, including\nthe kit app template and the lockfile. Remix 3.2.0 ships\n`remix/middleware/csp` for Content-Security-Policy and per-request\nnonces; vendor docs under docs/vendor/@remix-run are refreshed to match,\nincluding the new csp-middleware package notes.\n\nNo consumer code changes in this commit."}
|
|
1977
|
+
{"release":"2026.11.10","package":"@sdxc/webhooks","type":"chore","breaking":false,"title":"Bump remix to 3.2.0","body":"Every workspace that depended on remix 3.1.0 now pins 3.2.0, including\nthe kit app template and the lockfile. Remix 3.2.0 ships\n`remix/middleware/csp` for Content-Security-Policy and per-request\nnonces; vendor docs under docs/vendor/@remix-run are refreshed to match,\nincluding the new csp-middleware package notes.\n\nNo consumer code changes in this commit."}
|
|
1978
|
+
{"release":"2026.11.10","package":"@sdxc/webmention","type":"chore","breaking":false,"title":"Bump remix to 3.2.0","body":"Every workspace that depended on remix 3.1.0 now pins 3.2.0, including\nthe kit app template and the lockfile. Remix 3.2.0 ships\n`remix/middleware/csp` for Content-Security-Policy and per-request\nnonces; vendor docs under docs/vendor/@remix-run are refreshed to match,\nincluding the new csp-middleware package notes.\n\nNo consumer code changes in this commit."}
|
|
1979
|
+
{"release":"2026.11.10","package":"@sdxc/well-known","type":"chore","breaking":false,"title":"Bump remix to 3.2.0","body":"Every workspace that depended on remix 3.1.0 now pins 3.2.0, including\nthe kit app template and the lockfile. Remix 3.2.0 ships\n`remix/middleware/csp` for Content-Security-Policy and per-request\nnonces; vendor docs under docs/vendor/@remix-run are refreshed to match,\nincluding the new csp-middleware package notes.\n\nNo consumer code changes in this commit."}
|
|
1980
|
+
{"release":"2026.11.10","package":"@sdxc/workers-cache","type":"chore","breaking":false,"title":"Bump remix to 3.2.0","body":"Every workspace that depended on remix 3.1.0 now pins 3.2.0, including\nthe kit app template and the lockfile. Remix 3.2.0 ships\n`remix/middleware/csp` for Content-Security-Policy and per-request\nnonces; vendor docs under docs/vendor/@remix-run are refreshed to match,\nincluding the new csp-middleware package notes.\n\nNo consumer code changes in this commit."}
|
|
1981
|
+
{"release":"2026.11.10","package":"@sdxc/x402","type":"chore","breaking":false,"title":"Bump remix to 3.2.0","body":"Every workspace that depended on remix 3.1.0 now pins 3.2.0, including\nthe kit app template and the lockfile. Remix 3.2.0 ships\n`remix/middleware/csp` for Content-Security-Policy and per-request\nnonces; vendor docs under docs/vendor/@remix-run are refreshed to match,\nincluding the new csp-middleware package notes.\n\nNo consumer code changes in this commit."}
|
|
1982
|
+
{"release":"2026.11.10","package":"@sdxc/zone-file","type":"chore","breaking":false,"title":"Bump remix to 3.2.0","body":"Every workspace that depended on remix 3.1.0 now pins 3.2.0, including\nthe kit app template and the lockfile. Remix 3.2.0 ships\n`remix/middleware/csp` for Content-Security-Policy and per-request\nnonces; vendor docs under docs/vendor/@remix-run are refreshed to match,\nincluding the new csp-middleware package notes.\n\nNo consumer code changes in this commit."}
|
package/dist/cli.js
CHANGED
|
@@ -35,6 +35,7 @@ export function createSDXC(options = {}) {
|
|
|
35
35
|
cli.map(SDXC_COMMANDS.ci.list, lazy(() => import("./commands/ci/list.js")));
|
|
36
36
|
cli.map(SDXC_COMMANDS.ci.signoff, lazy(() => import("./commands/ci/signoff.js")));
|
|
37
37
|
cli.map(SDXC_COMMANDS.ci.verify, lazy(() => import("./commands/ci/verify.js")));
|
|
38
|
+
cli.map(SDXC_COMMANDS.ci.clean, lazy(() => import("./commands/ci/clean.js")));
|
|
38
39
|
cli.map(SDXC_COMMANDS.deploy, lazy(() => import("./commands/deploy.js")));
|
|
39
40
|
cli.map(SDXC_COMMANDS.destroy, lazy(() => import("./commands/destroy.js")));
|
|
40
41
|
cli.map(SDXC_COMMANDS.doctor, lazy(() => import("./commands/doctor.js")));
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The `sdxc ci clean` handler: empties the step cache and run history `sdxc ci` keeps in the
|
|
3
|
+
* clone's git directory, leaving the signoff records `sdxc ci signoff` posts from.
|
|
4
|
+
*
|
|
5
|
+
* @author [Sergio Xalambrí](https://sergiodxa.com)
|
|
6
|
+
* @copyright Sergio Xalambrí 2026
|
|
7
|
+
*/
|
|
8
|
+
declare const _default: import("@sdxc/cli").CommandAction<import("@sdxc/cli").Command<Readonly<Record<string, import("@sdxc/cli").Argument<unknown>>>, {
|
|
9
|
+
json: import("@sdxc/cli").Flag<boolean>;
|
|
10
|
+
}>, readonly []>;
|
|
11
|
+
export default _default;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The `sdxc ci clean` handler: empties the step cache and run history `sdxc ci` keeps in the
|
|
3
|
+
* clone's git directory, leaving the signoff records `sdxc ci signoff` posts from.
|
|
4
|
+
*
|
|
5
|
+
* @author [Sergio Xalambrí](https://sergiodxa.com)
|
|
6
|
+
* @copyright Sergio Xalambrí 2026
|
|
7
|
+
*/
|
|
8
|
+
import { cleanAction } from "@sdxc/ci/command-line";
|
|
9
|
+
import { createCommand } from "@sdxc/cli";
|
|
10
|
+
import { SDXC_COMMANDS } from "../../contract.js";
|
|
11
|
+
export default createCommand(SDXC_COMMANDS.ci.clean, {
|
|
12
|
+
middleware: [],
|
|
13
|
+
/** Exits 2 outside a git repository, where there is no store to clean. */
|
|
14
|
+
handler: (ctx) => cleanAction(ctx, ctx.flags),
|
|
15
|
+
});
|
|
@@ -11,6 +11,7 @@ declare const _default: import("@sdxc/cli").CommandAction<import("@sdxc/cli").Co
|
|
|
11
11
|
only: import("@sdxc/cli").ValueFlag<string, false, true, false>;
|
|
12
12
|
skip: import("@sdxc/cli").ValueFlag<string, false, true, false>;
|
|
13
13
|
scope: import("@sdxc/cli").ValueFlag<string, false, true, false>;
|
|
14
|
+
since: import("@sdxc/cli").ValueFlag<string, false, false, false>;
|
|
14
15
|
runner: import("@sdxc/cli").ValueFlag<"remote" | "local", false, false, false>;
|
|
15
16
|
}>, readonly []>;
|
|
16
17
|
export default _default;
|
|
@@ -14,13 +14,18 @@ declare const _default: import("@sdxc/cli").CommandAction<import("@sdxc/cli").Gr
|
|
|
14
14
|
readonly signoff: import("@sdxc/cli").Flag<boolean>;
|
|
15
15
|
readonly cache: import("@sdxc/cli").Flag<boolean>;
|
|
16
16
|
readonly concurrency: import("@sdxc/cli").ValueFlag<number, false, false, false>;
|
|
17
|
+
readonly memory: import("@sdxc/cli").ValueFlag<string, false, false, false>;
|
|
18
|
+
readonly worktree: import("@sdxc/cli").Flag<boolean>;
|
|
19
|
+
readonly watch: import("@sdxc/cli").Flag<boolean>;
|
|
17
20
|
readonly remote: import("@sdxc/cli").ValueFlag<string, false, false, false>;
|
|
18
21
|
readonly tokenEnv: import("@sdxc/cli").ValueFlag<string, true, false, false>;
|
|
19
22
|
readonly verbose: import("@sdxc/cli").Flag<boolean>;
|
|
20
23
|
readonly json: import("@sdxc/cli").Flag<boolean>;
|
|
24
|
+
readonly rerunFailed: import("@sdxc/cli").Flag<boolean>;
|
|
21
25
|
readonly only: import("@sdxc/cli").ValueFlag<string, false, true, false>;
|
|
22
26
|
readonly skip: import("@sdxc/cli").ValueFlag<string, false, true, false>;
|
|
23
27
|
readonly scope: import("@sdxc/cli").ValueFlag<string, false, true, false>;
|
|
28
|
+
readonly since: import("@sdxc/cli").ValueFlag<string, false, false, false>;
|
|
24
29
|
readonly runner: import("@sdxc/cli").ValueFlag<"remote" | "local", false, false, false>;
|
|
25
30
|
};
|
|
26
31
|
readonly list: import("@sdxc/cli").Command<Readonly<Record<string, import("@sdxc/cli").Argument<unknown>>>, {
|
|
@@ -29,6 +34,7 @@ declare const _default: import("@sdxc/cli").CommandAction<import("@sdxc/cli").Gr
|
|
|
29
34
|
only: import("@sdxc/cli").ValueFlag<string, false, true, false>;
|
|
30
35
|
skip: import("@sdxc/cli").ValueFlag<string, false, true, false>;
|
|
31
36
|
scope: import("@sdxc/cli").ValueFlag<string, false, true, false>;
|
|
37
|
+
since: import("@sdxc/cli").ValueFlag<string, false, false, false>;
|
|
32
38
|
runner: import("@sdxc/cli").ValueFlag<"remote" | "local", false, false, false>;
|
|
33
39
|
}>;
|
|
34
40
|
readonly signoff: import("@sdxc/cli").Command<{
|
|
@@ -47,19 +53,27 @@ declare const _default: import("@sdxc/cli").CommandAction<import("@sdxc/cli").Gr
|
|
|
47
53
|
tokenEnv: import("@sdxc/cli").ValueFlag<string, true, false, false>;
|
|
48
54
|
json: import("@sdxc/cli").Flag<boolean>;
|
|
49
55
|
}>;
|
|
56
|
+
readonly clean: import("@sdxc/cli").Command<Readonly<Record<string, import("@sdxc/cli").Argument<unknown>>>, {
|
|
57
|
+
json: import("@sdxc/cli").Flag<boolean>;
|
|
58
|
+
}>;
|
|
50
59
|
}, "description" | "hidden" | "arguments" | "flags" | "tasks">, Record<never, never>, {
|
|
51
60
|
readonly install: import("@sdxc/cli").Flag<boolean>;
|
|
52
61
|
readonly push: import("@sdxc/cli").Flag<boolean>;
|
|
53
62
|
readonly signoff: import("@sdxc/cli").Flag<boolean>;
|
|
54
63
|
readonly cache: import("@sdxc/cli").Flag<boolean>;
|
|
55
64
|
readonly concurrency: import("@sdxc/cli").ValueFlag<number, false, false, false>;
|
|
65
|
+
readonly memory: import("@sdxc/cli").ValueFlag<string, false, false, false>;
|
|
66
|
+
readonly worktree: import("@sdxc/cli").Flag<boolean>;
|
|
67
|
+
readonly watch: import("@sdxc/cli").Flag<boolean>;
|
|
56
68
|
readonly remote: import("@sdxc/cli").ValueFlag<string, false, false, false>;
|
|
57
69
|
readonly tokenEnv: import("@sdxc/cli").ValueFlag<string, true, false, false>;
|
|
58
70
|
readonly verbose: import("@sdxc/cli").Flag<boolean>;
|
|
59
71
|
readonly json: import("@sdxc/cli").Flag<boolean>;
|
|
72
|
+
readonly rerunFailed: import("@sdxc/cli").Flag<boolean>;
|
|
60
73
|
readonly only: import("@sdxc/cli").ValueFlag<string, false, true, false>;
|
|
61
74
|
readonly skip: import("@sdxc/cli").ValueFlag<string, false, true, false>;
|
|
62
75
|
readonly scope: import("@sdxc/cli").ValueFlag<string, false, true, false>;
|
|
76
|
+
readonly since: import("@sdxc/cli").ValueFlag<string, false, false, false>;
|
|
63
77
|
readonly runner: import("@sdxc/cli").ValueFlag<"remote" | "local", false, false, false>;
|
|
64
78
|
}>, readonly []>;
|
|
65
79
|
export default _default;
|
package/dist/commands/ci/run.js
CHANGED
|
@@ -24,13 +24,24 @@ export default createCommand(SDXC_COMMANDS.ci, {
|
|
|
24
24
|
if (isFailure(located))
|
|
25
25
|
return exit(2, located.error.message);
|
|
26
26
|
let runner = ctx.flags.runner ?? detectRunner(ctx.env);
|
|
27
|
-
|
|
27
|
+
/**
|
|
28
|
+
* `--worktree` installs inside the temporary worktree itself; installing the main
|
|
29
|
+
* checkout first would leave the worktree without its own correct workspace links.
|
|
30
|
+
*/
|
|
31
|
+
if (runner === "local" && ctx.flags.install && !ctx.flags.worktree) {
|
|
28
32
|
let installed = await frozenInstall(ctx, located.data.root);
|
|
29
33
|
if (isFailure(installed))
|
|
30
34
|
return installed;
|
|
31
35
|
}
|
|
32
36
|
let workspace = located.data.workspace;
|
|
33
37
|
let scope = ctx.flags.scope.length > 0 || workspace === null ? ctx.flags.scope : [workspace];
|
|
34
|
-
return runAction(
|
|
38
|
+
return runAction({
|
|
39
|
+
cwd: ctx.cwd,
|
|
40
|
+
env: ctx.env,
|
|
41
|
+
stdout: ctx.stdout,
|
|
42
|
+
style: ctx.style,
|
|
43
|
+
signal: ctx.signal,
|
|
44
|
+
interactive: process.stdout.isTTY === true,
|
|
45
|
+
}, located.data.script, { ...ctx.flags, runner, scope }, located.data.root);
|
|
35
46
|
},
|
|
36
47
|
});
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
*/
|
|
9
9
|
/** Removes what `sdxc make` wrote for one kind and name, after one confirmation. */
|
|
10
10
|
declare const _default: import("@sdxc/cli").CommandAction<import("@sdxc/cli").Command<{
|
|
11
|
-
readonly kind: import("@sdxc/cli").Argument<"
|
|
11
|
+
readonly kind: import("@sdxc/cli").Argument<"command" | "email" | "controller" | "middleware" | "validator" | "job" | "model" | "factory" | "service" | "initializer" | "mcp">;
|
|
12
12
|
readonly name: import("@sdxc/cli").Argument<string>;
|
|
13
13
|
}, {
|
|
14
14
|
readonly yes: import("@sdxc/cli").Flag<boolean>;
|
package/dist/config.d.ts
CHANGED
|
@@ -16,6 +16,9 @@ export declare const CONFIG_LOCATIONS: readonly [".config/sdxc.jsonc", "sdxc.jso
|
|
|
16
16
|
* a misspelt key is reported instead of silently ignored.
|
|
17
17
|
*/
|
|
18
18
|
export declare const CONFIG_SCHEMA: s.Schema<{
|
|
19
|
+
ci?: {
|
|
20
|
+
script?: string | undefined;
|
|
21
|
+
} | undefined;
|
|
19
22
|
run?: {
|
|
20
23
|
entry?: string | undefined;
|
|
21
24
|
} | undefined;
|
|
@@ -65,11 +68,11 @@ export declare const CONFIG_SCHEMA: s.Schema<{
|
|
|
65
68
|
maxSurvived?: number | undefined;
|
|
66
69
|
} | undefined;
|
|
67
70
|
} | undefined;
|
|
68
|
-
ci?: {
|
|
69
|
-
script?: string | undefined;
|
|
70
|
-
} | undefined;
|
|
71
71
|
lock?: string | undefined;
|
|
72
72
|
}, {
|
|
73
|
+
ci: {
|
|
74
|
+
script: string;
|
|
75
|
+
};
|
|
73
76
|
run: {
|
|
74
77
|
entry: string;
|
|
75
78
|
};
|
|
@@ -117,9 +120,6 @@ export declare const CONFIG_SCHEMA: s.Schema<{
|
|
|
117
120
|
maxSurvived: number;
|
|
118
121
|
};
|
|
119
122
|
};
|
|
120
|
-
ci: {
|
|
121
|
-
script: string;
|
|
122
|
-
};
|
|
123
123
|
lock: string;
|
|
124
124
|
$schema?: string | undefined;
|
|
125
125
|
format?: string[] | undefined;
|
package/dist/contract.d.ts
CHANGED
|
@@ -18,13 +18,18 @@ export declare const SDXC_COMMANDS: import("@sdxc/cli").Group<Omit<{
|
|
|
18
18
|
readonly signoff: import("@sdxc/cli").Flag<boolean>;
|
|
19
19
|
readonly cache: import("@sdxc/cli").Flag<boolean>;
|
|
20
20
|
readonly concurrency: import("@sdxc/cli").ValueFlag<number, false, false, false>;
|
|
21
|
+
readonly memory: import("@sdxc/cli").ValueFlag<string, false, false, false>;
|
|
22
|
+
readonly worktree: import("@sdxc/cli").Flag<boolean>;
|
|
23
|
+
readonly watch: import("@sdxc/cli").Flag<boolean>;
|
|
21
24
|
readonly remote: import("@sdxc/cli").ValueFlag<string, false, false, false>;
|
|
22
25
|
readonly tokenEnv: import("@sdxc/cli").ValueFlag<string, true, false, false>;
|
|
23
26
|
readonly verbose: import("@sdxc/cli").Flag<boolean>;
|
|
24
27
|
readonly json: import("@sdxc/cli").Flag<boolean>;
|
|
28
|
+
readonly rerunFailed: import("@sdxc/cli").Flag<boolean>;
|
|
25
29
|
readonly only: import("@sdxc/cli").ValueFlag<string, false, true, false>;
|
|
26
30
|
readonly skip: import("@sdxc/cli").ValueFlag<string, false, true, false>;
|
|
27
31
|
readonly scope: import("@sdxc/cli").ValueFlag<string, false, true, false>;
|
|
32
|
+
readonly since: import("@sdxc/cli").ValueFlag<string, false, false, false>;
|
|
28
33
|
readonly runner: import("@sdxc/cli").ValueFlag<"remote" | "local", false, false, false>;
|
|
29
34
|
};
|
|
30
35
|
readonly list: import("@sdxc/cli").Command<Readonly<Record<string, import("@sdxc/cli").Argument<unknown>>>, {
|
|
@@ -33,6 +38,7 @@ export declare const SDXC_COMMANDS: import("@sdxc/cli").Group<Omit<{
|
|
|
33
38
|
only: import("@sdxc/cli").ValueFlag<string, false, true, false>;
|
|
34
39
|
skip: import("@sdxc/cli").ValueFlag<string, false, true, false>;
|
|
35
40
|
scope: import("@sdxc/cli").ValueFlag<string, false, true, false>;
|
|
41
|
+
since: import("@sdxc/cli").ValueFlag<string, false, false, false>;
|
|
36
42
|
runner: import("@sdxc/cli").ValueFlag<"remote" | "local", false, false, false>;
|
|
37
43
|
}>;
|
|
38
44
|
readonly signoff: import("@sdxc/cli").Command<{
|
|
@@ -51,19 +57,27 @@ export declare const SDXC_COMMANDS: import("@sdxc/cli").Group<Omit<{
|
|
|
51
57
|
tokenEnv: import("@sdxc/cli").ValueFlag<string, true, false, false>;
|
|
52
58
|
json: import("@sdxc/cli").Flag<boolean>;
|
|
53
59
|
}>;
|
|
60
|
+
readonly clean: import("@sdxc/cli").Command<Readonly<Record<string, import("@sdxc/cli").Argument<unknown>>>, {
|
|
61
|
+
json: import("@sdxc/cli").Flag<boolean>;
|
|
62
|
+
}>;
|
|
54
63
|
}, "description" | "hidden" | "arguments" | "flags" | "tasks">, Record<never, never>, {
|
|
55
64
|
readonly install: import("@sdxc/cli").Flag<boolean>;
|
|
56
65
|
readonly push: import("@sdxc/cli").Flag<boolean>;
|
|
57
66
|
readonly signoff: import("@sdxc/cli").Flag<boolean>;
|
|
58
67
|
readonly cache: import("@sdxc/cli").Flag<boolean>;
|
|
59
68
|
readonly concurrency: import("@sdxc/cli").ValueFlag<number, false, false, false>;
|
|
69
|
+
readonly memory: import("@sdxc/cli").ValueFlag<string, false, false, false>;
|
|
70
|
+
readonly worktree: import("@sdxc/cli").Flag<boolean>;
|
|
71
|
+
readonly watch: import("@sdxc/cli").Flag<boolean>;
|
|
60
72
|
readonly remote: import("@sdxc/cli").ValueFlag<string, false, false, false>;
|
|
61
73
|
readonly tokenEnv: import("@sdxc/cli").ValueFlag<string, true, false, false>;
|
|
62
74
|
readonly verbose: import("@sdxc/cli").Flag<boolean>;
|
|
63
75
|
readonly json: import("@sdxc/cli").Flag<boolean>;
|
|
76
|
+
readonly rerunFailed: import("@sdxc/cli").Flag<boolean>;
|
|
64
77
|
readonly only: import("@sdxc/cli").ValueFlag<string, false, true, false>;
|
|
65
78
|
readonly skip: import("@sdxc/cli").ValueFlag<string, false, true, false>;
|
|
66
79
|
readonly scope: import("@sdxc/cli").ValueFlag<string, false, true, false>;
|
|
80
|
+
readonly since: import("@sdxc/cli").ValueFlag<string, false, false, false>;
|
|
67
81
|
readonly runner: import("@sdxc/cli").ValueFlag<"remote" | "local", false, false, false>;
|
|
68
82
|
}>;
|
|
69
83
|
readonly create: import("@sdxc/cli").Command<{
|
|
@@ -78,7 +92,7 @@ export declare const SDXC_COMMANDS: import("@sdxc/cli").Group<Omit<{
|
|
|
78
92
|
readonly skip: import("@sdxc/cli").ValueFlag<"build" | "migrate" | "deploy", false, true, false>;
|
|
79
93
|
}>;
|
|
80
94
|
readonly destroy: import("@sdxc/cli").Command<{
|
|
81
|
-
readonly kind: import("@sdxc/cli").Argument<"
|
|
95
|
+
readonly kind: import("@sdxc/cli").Argument<"command" | "email" | "controller" | "middleware" | "validator" | "job" | "model" | "factory" | "service" | "initializer" | "mcp">;
|
|
82
96
|
readonly name: import("@sdxc/cli").Argument<string>;
|
|
83
97
|
}, {
|
|
84
98
|
readonly yes: import("@sdxc/cli").Flag<boolean>;
|
package/dist/contract.js
CHANGED
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
* @author [Sergio Xalambrí](https://sergiodxa.com)
|
|
7
7
|
* @copyright Sergio Xalambrí 2026
|
|
8
8
|
*/
|
|
9
|
-
import { LIST_FLAGS, RUN_FLAGS, SIGNOFF_FLAGS, VERIFY_FLAGS } from "@sdxc/ci/command-line";
|
|
9
|
+
import { CLEAN_FLAGS, LIST_FLAGS, RUN_FLAGS, SIGNOFF_FLAGS, VERIFY_FLAGS, } from "@sdxc/ci/command-line";
|
|
10
10
|
import { argument, command, commands, flag, prompt } from "@sdxc/cli";
|
|
11
11
|
import * as s from "remix/data-schema";
|
|
12
12
|
import { BUILTIN_TEMPLATES, DEFAULT_TEMPLATE } from "./create/templates.js";
|
|
@@ -114,6 +114,11 @@ export const SDXC_COMMANDS = commands({
|
|
|
114
114
|
flags: VERIFY_FLAGS,
|
|
115
115
|
examples: ['ci verify "$GITHUB_SHA" --wait 60s'],
|
|
116
116
|
}),
|
|
117
|
+
clean: command({
|
|
118
|
+
description: "Remove the step cache and run history kept in the git directory; signoff records stay",
|
|
119
|
+
flags: CLEAN_FLAGS,
|
|
120
|
+
examples: ["ci clean", "ci clean --json"],
|
|
121
|
+
}),
|
|
117
122
|
}),
|
|
118
123
|
create: command({
|
|
119
124
|
description: "Write a new project from a built-in template or a GitHub repository",
|
|
@@ -646,7 +651,7 @@ export const SDXC_COMMANDS = commands({
|
|
|
646
651
|
flags: {
|
|
647
652
|
plural: flag.string("plural", {
|
|
648
653
|
valueName: "word",
|
|
649
|
-
description: "The plural the table, URLs and folders take (default: <name>
|
|
654
|
+
description: "The plural the table, URLs and folders take (default: the English plural of <name>)",
|
|
650
655
|
}),
|
|
651
656
|
mcp: flag.boolean("mcp", {
|
|
652
657
|
description: "Also write MCP tools to list, get, create, update and delete",
|
|
@@ -670,7 +675,7 @@ export const SDXC_COMMANDS = commands({
|
|
|
670
675
|
},
|
|
671
676
|
examples: [
|
|
672
677
|
"scaffold post title body published_at featured view_count:integer",
|
|
673
|
-
"scaffold person name email website 'bio?' born_on --
|
|
678
|
+
"scaffold person name email website 'bio?' born_on --mcp --command",
|
|
674
679
|
"scaffold post title body --skip model,migration,factory",
|
|
675
680
|
"scaffold post title body --api",
|
|
676
681
|
],
|
package/dist/make/generate.js
CHANGED
|
@@ -11,8 +11,8 @@
|
|
|
11
11
|
import { readFile, stat } from "node:fs/promises";
|
|
12
12
|
import { dirname, join } from "node:path";
|
|
13
13
|
import { failure, isFailure, isSuccess, success, wrap } from "@sdxc/result";
|
|
14
|
+
import { pluralize } from "@sdxc/strings";
|
|
14
15
|
import { headerTags, resolveAuthor } from "../author.js";
|
|
15
|
-
import { pluralize } from "../scaffold/fields.js";
|
|
16
16
|
import { COMMON_PLACEHOLDERS, KINDS, MCP_RESOURCES_FOLDER } from "./kinds.js";
|
|
17
17
|
import { chainFolder, nextMigrationFile } from "./migrations.js";
|
|
18
18
|
import { camel } from "./names.js";
|
package/dist/make/index.js
CHANGED
|
@@ -12,11 +12,12 @@
|
|
|
12
12
|
import { mkdir, writeFile } from "node:fs/promises";
|
|
13
13
|
import { dirname, join } from "node:path";
|
|
14
14
|
import { failure, isFailure, success, wrap } from "@sdxc/result";
|
|
15
|
+
import { pluralize } from "@sdxc/strings";
|
|
15
16
|
import { missingDependencies } from "../dependencies.js";
|
|
16
17
|
import { unifiedDiff } from "../diff.js";
|
|
17
18
|
import { formatFiles } from "../format.js";
|
|
18
19
|
import { projectPackageManager } from "../package-manager.js";
|
|
19
|
-
import { columnSource, factorySource, parseFields,
|
|
20
|
+
import { columnSource, factorySource, parseFields, resolveReferences } from "../scaffold/fields.js";
|
|
20
21
|
import { declare, declaresAbilities, findRow } from "./declare.js";
|
|
21
22
|
import { planEmail } from "./email.js";
|
|
22
23
|
import { fieldMigration } from "./from-fields.js";
|
package/dist/make/stubs.d.ts
CHANGED
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* The stubs `sdxc make` writes files from. A project overrides any of them by keeping a file
|
|
3
3
|
* of the same name in `make.stubs`; every other stub comes from the `@sdxc/kit` package. A stub is
|
|
4
|
-
* the file's text
|
|
4
|
+
* the file's text in the `@sdxc/blueprint` format, and a placeholder the kind does not define is
|
|
5
|
+
* an error.
|
|
5
6
|
*
|
|
6
7
|
* @author [Sergio Xalambrí](https://sergiodxa.com)
|
|
7
8
|
* @copyright Sergio Xalambrí 2026
|
|
@@ -38,9 +39,9 @@ export declare function builtinStubsDir(packageRoot: string): string;
|
|
|
38
39
|
*/
|
|
39
40
|
export declare function loadStub(names: readonly string[], root: string, stubsDir: string, packageRoot: string): Promise<Result<Stub, Error>>;
|
|
40
41
|
/**
|
|
41
|
-
* `stub`'s text with
|
|
42
|
-
*
|
|
43
|
-
*
|
|
42
|
+
* `stub`'s text rendered with `values` by `@sdxc/blueprint`, filters and blocks included. A
|
|
43
|
+
* placeholder without a value fails naming the stub and the placeholders this kind accepts, so
|
|
44
|
+
* an edited project stub points at the name to fix.
|
|
44
45
|
*/
|
|
45
46
|
export declare function renderStub(stub: Stub, values: Readonly<Record<string, string>>): Result<string, Error>;
|
|
46
47
|
/**
|
package/dist/make/stubs.js
CHANGED
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* The stubs `sdxc make` writes files from. A project overrides any of them by keeping a file
|
|
3
3
|
* of the same name in `make.stubs`; every other stub comes from the `@sdxc/kit` package. A stub is
|
|
4
|
-
* the file's text
|
|
4
|
+
* the file's text in the `@sdxc/blueprint` format, and a placeholder the kind does not define is
|
|
5
|
+
* an error.
|
|
5
6
|
*
|
|
6
7
|
* @author [Sergio Xalambrí](https://sergiodxa.com)
|
|
7
8
|
* @copyright Sergio Xalambrí 2026
|
|
8
9
|
*/
|
|
9
10
|
import { mkdir, readdir, readFile, stat, writeFile } from "node:fs/promises";
|
|
10
11
|
import { join } from "node:path";
|
|
12
|
+
import * as blueprint from "@sdxc/blueprint";
|
|
11
13
|
import { failure, isFailure, isSuccess, success, wrap } from "@sdxc/result";
|
|
12
|
-
/** A placeholder as stubs spell it: `{{name}}`, spaces inside the braces allowed. */
|
|
13
|
-
const PLACEHOLDER = /\{\{\s*([A-Za-z]+)\s*\}\}/g;
|
|
14
14
|
/**
|
|
15
15
|
* The stub file name for `kind`, its `variant` and `role`: `controller.api.spec.stub`,
|
|
16
16
|
* `command.test.stub`, `mcp.stub`.
|
|
@@ -46,30 +46,25 @@ export async function loadStub(names, root, stubsDir, packageRoot) {
|
|
|
46
46
|
return failure(new Error(`No stub ${names.join(" or ")} in ${stubsDir} or @sdxc/kit`));
|
|
47
47
|
}
|
|
48
48
|
/**
|
|
49
|
-
* `stub`'s text with
|
|
50
|
-
*
|
|
51
|
-
*
|
|
49
|
+
* `stub`'s text rendered with `values` by `@sdxc/blueprint`, filters and blocks included. A
|
|
50
|
+
* placeholder without a value fails naming the stub and the placeholders this kind accepts, so
|
|
51
|
+
* an edited project stub points at the name to fix.
|
|
52
52
|
*/
|
|
53
53
|
export function renderStub(stub, values) {
|
|
54
|
-
let
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
54
|
+
let template = blueprint.compile(stub.text, stub.source);
|
|
55
|
+
if (isFailure(template))
|
|
56
|
+
return template;
|
|
57
|
+
let used = blueprint.variables([template.data]);
|
|
58
|
+
if (isFailure(used))
|
|
59
|
+
return used;
|
|
60
|
+
let unknown = used.data.find((variable) => !Object.hasOwn(values, variable.name));
|
|
61
|
+
if (unknown !== undefined) {
|
|
58
62
|
let accepted = Object.keys(values)
|
|
59
63
|
.map((name) => `{{${name}}}`)
|
|
60
64
|
.join(", ");
|
|
61
|
-
return failure(new Error(`${stub.source} uses {{${unknown
|
|
65
|
+
return failure(new Error(`${stub.source} uses {{${unknown.name}}}, which this kind does not define; it accepts ${accepted}`));
|
|
62
66
|
}
|
|
63
|
-
return
|
|
64
|
-
let value = values[name] ?? "";
|
|
65
|
-
let start = stub.text.lastIndexOf("\n", offset - 1) + 1;
|
|
66
|
-
let indent = stub.text.slice(start, offset);
|
|
67
|
-
let end = stub.text.indexOf("\n", offset);
|
|
68
|
-
let rest = stub.text.slice(offset + match.length, end === -1 ? undefined : end);
|
|
69
|
-
if (!/^[ \t]+$/.test(indent) || rest.trim() !== "")
|
|
70
|
-
return value;
|
|
71
|
-
return value.replaceAll(/\n(?=.)/g, `\n${indent}`);
|
|
72
|
-
}));
|
|
67
|
+
return blueprint.render(template.data, values);
|
|
73
68
|
}
|
|
74
69
|
/**
|
|
75
70
|
* Copies the built-in stubs of `kinds`, each a kind or `scaffold` (every stub when empty), into
|
package/dist/pkg/catalog.js
CHANGED
|
@@ -8,6 +8,8 @@
|
|
|
8
8
|
*/
|
|
9
9
|
/** Every package with a command line, by name, with what its command line does. */
|
|
10
10
|
export const PACKAGE_COMMAND_LINES = {
|
|
11
|
+
bench: "bundle-weight budgets and HTTP latency samples against a running URL",
|
|
12
|
+
blueprint: "generate files from the .stub blueprints in .config/blueprint",
|
|
11
13
|
ci: "run a CI script locally or on a CI host, and sign green commits off on GitHub",
|
|
12
14
|
cron: "upcoming runs, descriptions and validation for cron schedules",
|
|
13
15
|
crypto: "tokens, digests, MACs, one-time codes and password hashes",
|
|
@@ -16,6 +18,7 @@ export const PACKAGE_COMMAND_LINES = {
|
|
|
16
18
|
doh: "typed DNS over HTTPS lookups",
|
|
17
19
|
"email-address": "parse and check email addresses",
|
|
18
20
|
"email-auth": "check a domain's email-authentication DNS policies",
|
|
21
|
+
epub: "EPUB books from a Markdown file or a folder of chapters",
|
|
19
22
|
font: "inspect and subset fonts",
|
|
20
23
|
html: "read a served page by role and accessible name",
|
|
21
24
|
"http-signatures": "sign and verify HTTP message signatures",
|
|
@@ -74,7 +77,6 @@ export const PACKAGES_WITHOUT_COMMAND_LINES = [
|
|
|
74
77
|
"dates",
|
|
75
78
|
"digest-fields",
|
|
76
79
|
"duration",
|
|
77
|
-
"epub",
|
|
78
80
|
"expression",
|
|
79
81
|
"feed",
|
|
80
82
|
"file-storage-r2",
|
|
@@ -122,8 +122,3 @@ export declare function fieldsTable(name: string, fields: readonly Field[]): Any
|
|
|
122
122
|
* leaves out, since only a test knows which row it should point at.
|
|
123
123
|
*/
|
|
124
124
|
export declare function factorySource(field: Field): string | null;
|
|
125
|
-
/**
|
|
126
|
-
* The plural of a kebab-case `name`, pluralizing its last word by three English rules: a
|
|
127
|
-
* sibilant ending adds `es`, a consonant before `y` becomes `ies`, and anything else adds `s`.
|
|
128
|
-
*/
|
|
129
|
-
export declare function pluralize(name: string): string;
|
package/dist/scaffold/fields.js
CHANGED
|
@@ -9,6 +9,7 @@
|
|
|
9
9
|
import { readFile } from "node:fs/promises";
|
|
10
10
|
import { join } from "node:path";
|
|
11
11
|
import { failure, isFailure, success, wrap } from "@sdxc/result";
|
|
12
|
+
import { pluralize } from "@sdxc/strings";
|
|
12
13
|
import { column, table } from "remix/data-table";
|
|
13
14
|
import { quote } from "../make/schema.js";
|
|
14
15
|
/** Every modifier, in the order the help lists them. */
|
|
@@ -404,17 +405,6 @@ export function factorySource(field) {
|
|
|
404
405
|
return "({ sequence }) => `https://example.com/${sequence}`";
|
|
405
406
|
return `({ sequence }) => \`${field.label} \${sequence}\``;
|
|
406
407
|
}
|
|
407
|
-
/**
|
|
408
|
-
* The plural of a kebab-case `name`, pluralizing its last word by three English rules: a
|
|
409
|
-
* sibilant ending adds `es`, a consonant before `y` becomes `ies`, and anything else adds `s`.
|
|
410
|
-
*/
|
|
411
|
-
export function pluralize(name) {
|
|
412
|
-
if (/(s|x|z|ch|sh)$/.test(name))
|
|
413
|
-
return `${name}es`;
|
|
414
|
-
if (/[^aeiou]y$/.test(name))
|
|
415
|
-
return `${name.slice(0, -1)}ies`;
|
|
416
|
-
return `${name}s`;
|
|
417
|
-
}
|
|
418
408
|
/** `word` with its first letter upper case. */
|
|
419
409
|
function capitalize(word) {
|
|
420
410
|
return word.charAt(0).toUpperCase() + word.slice(1);
|
package/dist/scaffold/index.js
CHANGED
|
@@ -10,6 +10,7 @@ import { cp, mkdir, mkdtemp, readdir, readFile, rm, stat, writeFile } from "node
|
|
|
10
10
|
import { tmpdir } from "node:os";
|
|
11
11
|
import { dirname, join } from "node:path";
|
|
12
12
|
import { failure, isFailure, isSuccess, success, wrap } from "@sdxc/result";
|
|
13
|
+
import { pluralize } from "@sdxc/strings";
|
|
13
14
|
import { headerTags, resolveAuthor } from "../author.js";
|
|
14
15
|
import { missingDependencies } from "../dependencies.js";
|
|
15
16
|
import { unifiedDiff } from "../diff.js";
|
|
@@ -21,7 +22,7 @@ import { chainFolder, nextMigrationFile } from "../make/migrations.js";
|
|
|
21
22
|
import { parseName } from "../make/names.js";
|
|
22
23
|
import { loadStub, renderStub } from "../make/stubs.js";
|
|
23
24
|
import { projectPackageManager } from "../package-manager.js";
|
|
24
|
-
import { parseFields
|
|
25
|
+
import { parseFields } from "./fields.js";
|
|
25
26
|
import { apiOperationNames, apiOperations, flagProperties, jsonProperties, localeBlock, placeholders, } from "./render.js";
|
|
26
27
|
/** The endpoints `--api` writes, in the order the contract declares them. */
|
|
27
28
|
const API_ACTIONS = ["index", "show", "create", "update", "destroy"];
|
|
@@ -158,8 +159,8 @@ export async function scaffold(ctx, project, packageRoot, input) {
|
|
|
158
159
|
return formatted;
|
|
159
160
|
}
|
|
160
161
|
/**
|
|
161
|
-
* The resource `input` names: one name without folders, its plural from `--plural` or
|
|
162
|
-
*
|
|
162
|
+
* The resource `input` names: one name without folders, its plural from `--plural` or English
|
|
163
|
+
* inflection, different from the singular, and at least one field a form must fill. A reference is refused, since every
|
|
163
164
|
* generated test would need a row of the referenced table to point at.
|
|
164
165
|
*/
|
|
165
166
|
function parseResource(input) {
|
|
@@ -172,6 +173,9 @@ function parseResource(input) {
|
|
|
172
173
|
let plural = parseName(input.plural ?? pluralize(singular.data.base));
|
|
173
174
|
if (isFailure(plural))
|
|
174
175
|
return plural;
|
|
176
|
+
if (plural.data.base === singular.data.base) {
|
|
177
|
+
return failure(new Error(`"${singular.data.base}" reads the same in the plural; name the plural with --plural`));
|
|
178
|
+
}
|
|
175
179
|
if (plural.data.segments.length > 1) {
|
|
176
180
|
return failure(new Error(`A plural cannot hold folders: ${input.plural ?? ""}`));
|
|
177
181
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sdxc/kit",
|
|
3
|
-
"version": "2026.11.
|
|
3
|
+
"version": "2026.11.10",
|
|
4
4
|
"description": "The sdxc command line: start a Remix v3 app, generate its files, copy UI components into it and upgrade it",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"bin": {
|
|
@@ -14,24 +14,26 @@
|
|
|
14
14
|
"./lock.schema.json": "./lock.schema.json"
|
|
15
15
|
},
|
|
16
16
|
"dependencies": {
|
|
17
|
-
"@sdxc/
|
|
18
|
-
"@sdxc/
|
|
17
|
+
"@sdxc/blueprint": "2026.11.10",
|
|
18
|
+
"@sdxc/ci": "2026.11.10",
|
|
19
|
+
"@sdxc/cli": "2026.11.10",
|
|
19
20
|
"@sdxc/codemod": "2026.10.29",
|
|
20
|
-
"@sdxc/cron": "2026.11.
|
|
21
|
-
"@sdxc/diagram": "2026.11.
|
|
21
|
+
"@sdxc/cron": "2026.11.10",
|
|
22
|
+
"@sdxc/diagram": "2026.11.10",
|
|
22
23
|
"@sdxc/iife": "2026.10.23",
|
|
23
|
-
"@sdxc/json-schema": "2026.10
|
|
24
|
-
"@sdxc/jsonc": "2026.11.
|
|
24
|
+
"@sdxc/json-schema": "2026.11.10",
|
|
25
|
+
"@sdxc/jsonc": "2026.11.10",
|
|
25
26
|
"@sdxc/jsonl": "2026.11.3",
|
|
26
27
|
"@sdxc/messageformat": "2026.10.23",
|
|
27
28
|
"@sdxc/result": "2026.10.13",
|
|
28
|
-
"@sdxc/semver": "2026.11.
|
|
29
|
+
"@sdxc/semver": "2026.11.10",
|
|
30
|
+
"@sdxc/strings": "2026.10.16",
|
|
29
31
|
"oxc-parser": "^0.154.0"
|
|
30
32
|
},
|
|
31
33
|
"peerDependencies": {
|
|
32
|
-
"remix": "3.
|
|
34
|
+
"remix": "3.2.0"
|
|
33
35
|
},
|
|
34
|
-
"gitHead": "
|
|
36
|
+
"gitHead": "6191b60a13885b1d826884d574c4a393f9b8eeee",
|
|
35
37
|
"publishConfig": {
|
|
36
38
|
"access": "public"
|
|
37
39
|
},
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* `db fresh`, run on a temporary local database holding rows and a table no migration makes.
|
|
3
|
+
* A test's first run of a command imports that command, which a busy machine stretches past
|
|
4
|
+
* Vitest's default timeout, so each test here has 30 seconds.
|
|
3
5
|
*/
|
|
4
6
|
|
|
5
7
|
import { invoke } from "@sdxc/cli/test";
|
|
@@ -25,7 +27,7 @@ function snapshot() {
|
|
|
25
27
|
return { posts, stray: stray.length > 0 };
|
|
26
28
|
}
|
|
27
29
|
|
|
28
|
-
describe("db fresh", () => {
|
|
30
|
+
describe("db fresh", { timeout: 30_000 }, () => {
|
|
29
31
|
test("drops every table and applies the chain again", async () => {
|
|
30
32
|
await invoke(cli, ["db", "migrate"]);
|
|
31
33
|
let database = openDatabase(project.databaseFile);
|
|
@@ -18,10 +18,11 @@ describe("page", () => {
|
|
|
18
18
|
expect(response.headers.get("x-frame-options")).toBe("DENY");
|
|
19
19
|
});
|
|
20
20
|
|
|
21
|
-
test("
|
|
21
|
+
test("names a request nonce in script-src for when the document hydrates", async () => {
|
|
22
22
|
let response = await createWebRouter().fetch("https://example.com/");
|
|
23
|
+
let policy = response.headers.get("content-security-policy") ?? "";
|
|
23
24
|
|
|
24
|
-
expect(
|
|
25
|
+
expect(policy).toMatch(/script-src[^;]*'nonce-[A-Za-z0-9+/=]+'/);
|
|
25
26
|
});
|
|
26
27
|
|
|
27
28
|
test("renders in the language the visitor asks for, or the fallback", async () => {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* The chain every page controller passes as its `middleware`: form body, cross-origin check,
|
|
3
|
-
* session, access, language, honeypot, security headers, and the document's assets and
|
|
3
|
+
* session, access, language, honeypot, CSP, security headers, and the document's assets and
|
|
4
4
|
* renderer, so only requests that render a document pay for them.
|
|
5
5
|
*/
|
|
6
6
|
|
|
@@ -8,7 +8,9 @@ import { assets } from "@sdxc/assets-middleware";
|
|
|
8
8
|
import { honeypot } from "@sdxc/honeypot/middleware";
|
|
9
9
|
import i18n from "@sdxc/i18n/middleware";
|
|
10
10
|
import { securityHeaders } from "@sdxc/security-headers/middleware";
|
|
11
|
+
import { remixCsp } from "@sdxc/security-headers/remix";
|
|
11
12
|
import { cop } from "remix/middleware/cop";
|
|
13
|
+
import { csp, getCspNonce } from "remix/middleware/csp";
|
|
12
14
|
import { formData } from "remix/middleware/form-data";
|
|
13
15
|
import { render } from "remix/middleware/render";
|
|
14
16
|
import { session } from "remix/middleware/session";
|
|
@@ -19,12 +21,12 @@ import { assetResolver } from "~/app/initializers/assets";
|
|
|
19
21
|
import { honeypot as trap } from "~/app/initializers/honeypot";
|
|
20
22
|
import { FALLBACK_LANGUAGE, RESOURCES, SUPPORTED_LANGUAGES } from "~/app/initializers/i18n";
|
|
21
23
|
import { sessionCookie, sessionStorage } from "~/app/initializers/session";
|
|
22
|
-
import { SECURITY_POLICY } from "~/config/security-policy";
|
|
24
|
+
import { CONTENT_SECURITY_POLICY, SECURITY_POLICY } from "~/config/security-policy";
|
|
23
25
|
|
|
24
26
|
/**
|
|
25
27
|
* Publishes `ctx.formData`, `ctx.session`, `ctx.access`, `ctx.locale`, `ctx.intl`, `ctx.honeypot`,
|
|
26
|
-
* `ctx.securityHeaders`, `ctx.assets` and `ctx.render` on a page's context. A POST without
|
|
27
|
-
*
|
|
28
|
+
* `ctx.securityHeaders`, `ctx.assets` and `ctx.render` on a page's context. A POST without a
|
|
29
|
+
* valid honeypot is refused with 400; Remix CSP and the other headers sit before assets/render.
|
|
28
30
|
*/
|
|
29
31
|
export default createMiddleware(
|
|
30
32
|
formData(),
|
|
@@ -40,11 +42,14 @@ export default createMiddleware(
|
|
|
40
42
|
resources: RESOURCES,
|
|
41
43
|
}),
|
|
42
44
|
honeypot(trap),
|
|
45
|
+
csp({
|
|
46
|
+
policy: ({ nonce }) => remixCsp(CONTENT_SECURITY_POLICY, nonce),
|
|
47
|
+
}),
|
|
43
48
|
securityHeaders(SECURITY_POLICY),
|
|
44
49
|
assets(assetResolver, {
|
|
45
50
|
stylesheets: "resources/layouts/document.tsx",
|
|
46
51
|
script: "bootstrap/browser.ts",
|
|
47
|
-
nonce: (ctx) => ctx
|
|
52
|
+
nonce: (ctx) => getCspNonce(ctx),
|
|
48
53
|
}),
|
|
49
54
|
render({ assets: assetResolver }),
|
|
50
55
|
);
|
|
@@ -1,34 +1,39 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* The
|
|
3
|
-
*
|
|
4
|
-
* referrer and device APIs to itself. Name an origin here before a page loads from it.
|
|
2
|
+
* The CSP Remix's `csp()` sends plus the non-CSP headers that keep the page out of frames and
|
|
3
|
+
* its referrer and device APIs to itself. Name an origin here before a page loads from it.
|
|
5
4
|
*/
|
|
6
5
|
|
|
7
|
-
import type { SecurityHeaders } from "@sdxc/security-headers";
|
|
6
|
+
import type { CSP, SecurityHeaders } from "@sdxc/security-headers";
|
|
8
7
|
|
|
9
8
|
/** Where Cloudflare Turnstile loads its script and renders its challenge frame. */
|
|
10
9
|
const TURNSTILE_ORIGIN = "https://challenges.cloudflare.com";
|
|
11
10
|
|
|
12
|
-
/**
|
|
11
|
+
/**
|
|
12
|
+
* The Content-Security-Policy Remix's `csp()` sends for every page. Keywords stay unquoted;
|
|
13
|
+
* `remixCsp` quotes them and substitutes the request nonce.
|
|
14
|
+
*/
|
|
15
|
+
export const CONTENT_SECURITY_POLICY: CSP.Directives = {
|
|
16
|
+
defaultSrc: ["self"],
|
|
17
|
+
/** The document's inline import map is admitted by the response's nonce. */
|
|
18
|
+
scriptSrc: ["self", "nonce", TURNSTILE_ORIGIN],
|
|
19
|
+
/** `css()` styles render as `<style>` elements; Remix stamps the nonce when `csp()` runs. */
|
|
20
|
+
styleSrc: ["self", "unsafe-inline"],
|
|
21
|
+
imgSrc: ["self", "data:"],
|
|
22
|
+
fontSrc: ["self"],
|
|
23
|
+
/** Same-origin requests, including the dev server's HMR socket. */
|
|
24
|
+
connectSrc: ["self"],
|
|
25
|
+
frameSrc: [TURNSTILE_ORIGIN],
|
|
26
|
+
formAction: ["self"],
|
|
27
|
+
frameAncestors: ["none"],
|
|
28
|
+
baseUri: ["none"],
|
|
29
|
+
objectSrc: ["none"],
|
|
30
|
+
};
|
|
31
|
+
|
|
32
|
+
/** The non-CSP policy `app/http/middleware/page.ts` applies to every page response. */
|
|
13
33
|
export const SECURITY_POLICY: SecurityHeaders.Policy = {
|
|
14
|
-
contentSecurityPolicy: {
|
|
15
|
-
defaultSrc: ["self"],
|
|
16
|
-
/** The document's inline import map is admitted by the response's nonce. */
|
|
17
|
-
scriptSrc: ["self", "nonce", TURNSTILE_ORIGIN],
|
|
18
|
-
/** `css()` styles render as `<style>` elements while the page streams, before any nonce. */
|
|
19
|
-
styleSrc: ["self", "unsafe-inline"],
|
|
20
|
-
imgSrc: ["self", "data:"],
|
|
21
|
-
fontSrc: ["self"],
|
|
22
|
-
/** Same-origin requests, including the dev server's HMR socket. */
|
|
23
|
-
connectSrc: ["self"],
|
|
24
|
-
frameSrc: [TURNSTILE_ORIGIN],
|
|
25
|
-
formAction: ["self"],
|
|
26
|
-
frameAncestors: ["none"],
|
|
27
|
-
baseUri: ["none"],
|
|
28
|
-
objectSrc: ["none"],
|
|
29
|
-
},
|
|
30
34
|
strictTransportSecurity: { maxAge: 31_536_000 },
|
|
31
35
|
referrerPolicy: "strict-origin-when-cross-origin",
|
|
32
36
|
crossOriginOpenerPolicy: "same-origin",
|
|
37
|
+
xFrameOptions: "DENY",
|
|
33
38
|
permissionsPolicy: { camera: [], microphone: [], geolocation: [], payment: [], usb: [] },
|
|
34
39
|
};
|