@sdxc/kit 2026.10.20 → 2026.10.21

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.
Files changed (49) hide show
  1. package/README.md +95 -90
  2. package/changelog.jsonl +11 -0
  3. package/config.schema.json +6 -0
  4. package/dist/commands/make.d.ts +6 -0
  5. package/dist/commands/make.js +7 -1
  6. package/dist/commands/scaffold.d.ts +1 -0
  7. package/dist/commands/scaffold.js +1 -0
  8. package/dist/config.d.ts +2 -0
  9. package/dist/config.js +4 -0
  10. package/dist/contract.d.ts +4 -0
  11. package/dist/contract.js +16 -5
  12. package/dist/dependencies.d.ts +2 -1
  13. package/dist/dependencies.js +4 -1
  14. package/dist/destroy.d.ts +4 -4
  15. package/dist/destroy.js +11 -5
  16. package/dist/doctor/checks.js +2 -0
  17. package/dist/doctor/jsdoc.d.ts +44 -0
  18. package/dist/doctor/jsdoc.js +201 -0
  19. package/dist/make/generate.d.ts +11 -2
  20. package/dist/make/generate.js +47 -16
  21. package/dist/make/index.d.ts +4 -2
  22. package/dist/make/index.js +4 -1
  23. package/dist/make/kinds.d.ts +5 -0
  24. package/dist/make/kinds.js +14 -2
  25. package/dist/make/stubs.d.ts +7 -2
  26. package/dist/make/stubs.js +8 -3
  27. package/dist/make/test.js +1 -0
  28. package/dist/scaffold/index.d.ts +2 -0
  29. package/dist/scaffold/index.js +13 -4
  30. package/dist/scaffold/render.d.ts +11 -1
  31. package/dist/scaffold/render.js +86 -1
  32. package/package.json +2 -2
  33. package/registry/ui/sidebar.json +3 -3
  34. package/registry/ui/typeset.json +3 -3
  35. package/stubs/command.spec.stub +15 -0
  36. package/stubs/controller.api.spec.stub +15 -0
  37. package/stubs/controller.spec.stub +15 -0
  38. package/stubs/mcp.spec.stub +16 -0
  39. package/stubs/scaffold.migration.stub +2 -1
  40. package/stubs/scaffold.spec.stub +7 -0
  41. package/templates/app/AGENTS.md +8 -4
  42. package/templates/app/README.md +6 -3
  43. package/templates/app/app/commands/typegen.test.ts +20 -1
  44. package/templates/app/app/commands/typegen.ts +16 -2
  45. package/templates/app/app/initializers/cli.ts +7 -0
  46. package/templates/app/app/initializers/mail-transport.test.ts +8 -2
  47. package/templates/app/app/test/cloudflare-workers.ts +2 -0
  48. package/templates/app/package.json +1 -0
  49. package/templates/app/spec/config.jsonc +16 -0
package/README.md CHANGED
@@ -14,15 +14,15 @@ The package installs a command named `sdxc`. It works on projects that depend on
14
14
 
15
15
  ```sh
16
16
  sdxc create my-app # a Remix v3 app, or --template org/repo from GitHub
17
- sdxc make controller posts/show # a file where the app layout puts it, with its test
18
- sdxc make controller api/keys --routes api # a JSON endpoint in the API contract
17
+ sdxc make controller posts/show # a file where the app layout puts it, with its test and .spec
18
+ sdxc make controller api/keys --routes api # a JSON endpoint and an http .spec
19
19
  sdxc make middleware require-user --mount page # called last in the page chain
20
20
  sdxc make model post title author_id # the model, its migration and its factory
21
21
  sdxc make migration add-slug-to-posts 'slug?' # ALTER TABLE, read from the name
22
22
  sdxc make migration add-slug --from-model post # the SQL app/models/post.ts needs
23
23
  sdxc scaffold post title body published_at # types follow the names: text, timestamp
24
- sdxc scaffold post title body --api # JSON endpoints and their OpenAPI operations
25
- sdxc destroy controller posts/show # remove it, its mapping and its declaration
24
+ sdxc scaffold post title body --api # JSON endpoints, OpenAPI ops and one feature .spec
25
+ sdxc destroy controller posts/show # remove it, its .spec, its mapping and its declaration
26
26
  sdxc models post # the table app/models/post.ts declares, vs the migrations
27
27
  sdxc ui add dialog # copy a component into the project to edit it
28
28
  sdxc ui update --all # move every unedited copy to the installed @sdxc/ui
@@ -45,31 +45,31 @@ Every `@sdxc/*` package versions as the UTC date it was published, and a daily r
45
45
  - `sdxc upgrade [release]` moves every `@sdxc/*` package the project lists to the target release, latest when left out, and `remix` to the version that release requires, then installs and prints a prompt for an AI agent from that release's changelog.
46
46
  - `sdxc doctor` reports packages pinned behind the project's release and a `remix` pin other than the release's peer; `sdxc upgrade <release>` fixes both.
47
47
 
48
- `sdxc doctor` also checks secrets, migrations and the app layout, and runs a project's own checks written with `defineCheck` from `@sdxc/kit/doctor`. The [doctor guide](https://sdxc.dev/docs/sdxc/check-a-project) lists every check.
48
+ `sdxc doctor` also checks secrets, migrations, the app layout and JSDoc comment shape, and runs a project's own checks written with `defineCheck` from `@sdxc/kit/doctor`. The [doctor guide](https://sdxc.dev/docs/sdxc/check-a-project) lists every check.
49
49
 
50
50
  ## API
51
51
 
52
52
  ### Commands
53
53
 
54
- | Command | What it does |
55
- | ------------------- | ---------------------------------------------------------------------------------- |
56
- | `sdxc create` | Writes a new project from the built-in `app` template or a GitHub repository |
57
- | `sdxc init` | Writes `.config/sdxc.jsonc` with every key at its default |
58
- | `sdxc make` | Writes a controller, job, model, migration or other file, declared and mapped |
59
- | `sdxc scaffold` | Writes a resource's model, migration, pages or JSON endpoints, and tests |
60
- | `sdxc destroy` | Removes what `sdxc make` wrote, its mapping and its declaration, once confirmed |
61
- | `sdxc routes` | Prints every route with its controller and middleware |
62
- | `sdxc models` | Prints each model's table and whether the migrations create it |
63
- | `sdxc schedule` | Lists scheduled jobs, their next runs and the Worker triggers that fire them |
64
- | `sdxc middleware` | Prints each router's global middleware and every chain in `app/http/middleware` |
65
- | `sdxc initializers` | Lists the initializers, their exports and the factories that build them |
66
- | `sdxc notes` | Lists the `TODO`, `FIXME`, `HACK` and `OPTIMIZE` comments in the app's code |
67
- | `sdxc stats` | Counts lines of code per kind of code, and the code to test ratio |
68
- | `sdxc run` | Runs the app's own command line, `bootstrap/cli.ts`, with the project's runtime |
69
- | `sdxc doctor` | Lints the project: release drift, secrets, migrations, layout and its own checks |
70
- | `sdxc ui` | Copies `@sdxc/ui` components into the project and points imports at the copies |
71
- | `sdxc upgrade` | Moves the `@sdxc/*` packages and `remix` to a release and prints the prompt |
72
- | `sdxc deploy` | Builds, then runs the app's own `db migrate --remote` and `deploy`, once confirmed |
54
+ | Command | What it does |
55
+ | ------------------- | --------------------------------------------------------------------------------------- |
56
+ | `sdxc create` | Writes a new project from the built-in `app` template or a GitHub repository |
57
+ | `sdxc init` | Writes `.config/sdxc.jsonc` with every key at its default |
58
+ | `sdxc make` | Writes a controller, job, model, migration or other file, declared and mapped |
59
+ | `sdxc scaffold` | Writes a resource's model, migration, pages or JSON endpoints, and tests |
60
+ | `sdxc destroy` | Removes what `sdxc make` wrote, its mapping and its declaration, once confirmed |
61
+ | `sdxc routes` | Prints every route with its controller and middleware |
62
+ | `sdxc models` | Prints each model's table and whether the migrations create it |
63
+ | `sdxc schedule` | Lists scheduled jobs, their next runs and the Worker triggers that fire them |
64
+ | `sdxc middleware` | Prints each router's global middleware and every chain in `app/http/middleware` |
65
+ | `sdxc initializers` | Lists the initializers, their exports and the factories that build them |
66
+ | `sdxc notes` | Lists the `TODO`, `FIXME`, `HACK` and `OPTIMIZE` comments in the app's code |
67
+ | `sdxc stats` | Counts lines of code per kind of code, and the code to test ratio |
68
+ | `sdxc run` | Runs the app's own command line, `bootstrap/cli.ts`, with the project's runtime |
69
+ | `sdxc doctor` | Lints the project: release drift, secrets, migrations, layout, JSDoc and its own checks |
70
+ | `sdxc ui` | Copies `@sdxc/ui` components into the project and points imports at the copies |
71
+ | `sdxc upgrade` | Moves the `@sdxc/*` packages and `remix` to a release and prints the prompt |
72
+ | `sdxc deploy` | Builds, then runs the app's own `db migrate --remote` and `deploy`, once confirmed |
73
73
 
74
74
  Commands run from the project root, the nearest directory with a `package.json`. `sdxc <command> --help` prints a command's arguments and flags, and `--help --json` prints them as data for an agent. Every command that runs tasks also takes `--no-progress`.
75
75
 
@@ -94,7 +94,7 @@ Build, then run the app's db migrate --remote and deploy commands
94
94
 
95
95
  #### `sdxc destroy <kind> <name>`
96
96
 
97
- Remove a file sdxc make wrote, its test, its mapping and its declaration
97
+ Remove a file sdxc make wrote, its test, its pairing .spec, its mapping and its declaration
98
98
 
99
99
  | Flag | Does |
100
100
  | ------------ | ----------------------------------------------------------- |
@@ -132,11 +132,11 @@ List the initializers in app/initializers, their exports and what builds them
132
132
 
133
133
  Write a controller, job, model or other file where the app layout puts it
134
134
 
135
- | Flag | Does |
136
- | ----------- | ----------------------------------------------------------------------------- |
137
- | `--test` | Write a test beside the file, or skip it with --no-test (default: make.tests) |
138
- | `--dry-run` | Print what would be written and change nothing |
139
- | `--force` | Replace the file and its test when they exist, keeping their declaration |
135
+ | Flag | Does |
136
+ | ----------- | ------------------------------------------------------------------------------------------- |
137
+ | `--test` | Write a test beside the file, or skip it with --no-test (default: make.tests) |
138
+ | `--dry-run` | Print what would be written and change nothing |
139
+ | `--force` | Replace the file, its test and its pairing .spec when they exist, keeping their declaration |
140
140
 
141
141
  #### `sdxc make controller <name>`
142
142
 
@@ -150,52 +150,53 @@ A route handler in app/http/controllers, declared and mapped
150
150
  | `--resource <name>` | Check the resource's ability the method implies (get reads, form and post create, put and patch update, delete deletes); a read, update or delete route takes /&lt;name&gt;/:id |
151
151
  | `--actions <action>` | One controller per action under &lt;name&gt;: index, new, show, edit and destroy pages, or with --routes api index, show, create, update and destroy endpoints; all writes each |
152
152
  | `--test` | Write a test beside the file, or skip it with --no-test (default: make.tests) |
153
+ | `--spec` | Write a pairing .spec under spec/, or skip it with --no-spec (default: make.specs) |
153
154
  | `--dry-run` | Print what would be written and change nothing |
154
- | `--force` | Replace the file and its test when they exist, keeping their declaration |
155
+ | `--force` | Replace the file, its test and its pairing .spec when they exist, keeping their declaration |
155
156
 
156
157
  #### `sdxc make middleware <name>`
157
158
 
158
159
  A middleware in app/http/middleware
159
160
 
160
- | Flag | Does |
161
- | ------------------ | ----------------------------------------------------------------------------------------- |
162
- | `--mount <target>` | Also call it last in a chain: a router initializer (router) or a chain module (page, api) |
163
- | `--test` | Write a test beside the file, or skip it with --no-test (default: make.tests) |
164
- | `--dry-run` | Print what would be written and change nothing |
165
- | `--force` | Replace the file and its test when they exist, keeping their declaration |
161
+ | Flag | Does |
162
+ | ------------------ | ------------------------------------------------------------------------------------------- |
163
+ | `--mount <target>` | Also call it last in a chain: a router initializer (router) or a chain module (page, api) |
164
+ | `--test` | Write a test beside the file, or skip it with --no-test (default: make.tests) |
165
+ | `--dry-run` | Print what would be written and change nothing |
166
+ | `--force` | Replace the file, its test and its pairing .spec when they exist, keeping their declaration |
166
167
 
167
168
  #### `sdxc make validator <name>`
168
169
 
169
170
  An input validator in app/http/validators
170
171
 
171
- | Flag | Does |
172
- | ----------- | ----------------------------------------------------------------------------- |
173
- | `--test` | Write a test beside the file, or skip it with --no-test (default: make.tests) |
174
- | `--dry-run` | Print what would be written and change nothing |
175
- | `--force` | Replace the file and its test when they exist, keeping their declaration |
172
+ | Flag | Does |
173
+ | ----------- | ------------------------------------------------------------------------------------------- |
174
+ | `--test` | Write a test beside the file, or skip it with --no-test (default: make.tests) |
175
+ | `--dry-run` | Print what would be written and change nothing |
176
+ | `--force` | Replace the file, its test and its pairing .spec when they exist, keeping their declaration |
176
177
 
177
178
  #### `sdxc make job <name>`
178
179
 
179
180
  A background job in app/jobs, declared and mapped
180
181
 
181
- | Flag | Does |
182
- | --------------------- | -------------------------------------------------------------------------------- |
183
- | `--cron <expression>` | A scheduled job instead of one with input, with the Worker trigger that fires it |
184
- | `--test` | Write a test beside the file, or skip it with --no-test (default: make.tests) |
185
- | `--dry-run` | Print what would be written and change nothing |
186
- | `--force` | Replace the file and its test when they exist, keeping their declaration |
182
+ | Flag | Does |
183
+ | --------------------- | ------------------------------------------------------------------------------------------- |
184
+ | `--cron <expression>` | A scheduled job instead of one with input, with the Worker trigger that fires it |
185
+ | `--test` | Write a test beside the file, or skip it with --no-test (default: make.tests) |
186
+ | `--dry-run` | Print what would be written and change nothing |
187
+ | `--force` | Replace the file, its test and its pairing .spec when they exist, keeping their declaration |
187
188
 
188
189
  #### `sdxc make model <name> [field[:type][?]...]`
189
190
 
190
191
  A model in app/models, with the migration creating its table and its factory
191
192
 
192
- | Flag | Does |
193
- | ----------------- | ----------------------------------------------------------------------------- |
194
- | `--chain <chain>` | The chain in make.migrations the migration goes in (default: default) |
195
- | `--skip <file>` | Leave out the migration or the factory; repeat it or list them |
196
- | `--test` | Write a test beside the file, or skip it with --no-test (default: make.tests) |
197
- | `--dry-run` | Print what would be written and change nothing |
198
- | `--force` | Replace the file and its test when they exist, keeping their declaration |
193
+ | Flag | Does |
194
+ | ----------------- | ------------------------------------------------------------------------------------------- |
195
+ | `--chain <chain>` | The chain in make.migrations the migration goes in (default: default) |
196
+ | `--skip <file>` | Leave out the migration or the factory; repeat it or list them |
197
+ | `--test` | Write a test beside the file, or skip it with --no-test (default: make.tests) |
198
+ | `--dry-run` | Print what would be written and change nothing |
199
+ | `--force` | Replace the file, its test and its pairing .spec when they exist, keeping their declaration |
199
200
 
200
201
  #### `sdxc make migration <name> [field[:type][?]...]`
201
202
 
@@ -211,71 +212,73 @@ A numbered SQL migration in a configured chain
211
212
 
212
213
  A test factory in database/factories
213
214
 
214
- | Flag | Does |
215
- | ----------- | ------------------------------------------------------------------------ |
216
- | `--dry-run` | Print what would be written and change nothing |
217
- | `--force` | Replace the file and its test when they exist, keeping their declaration |
215
+ | Flag | Does |
216
+ | ----------- | ------------------------------------------------------------------------------------------- |
217
+ | `--dry-run` | Print what would be written and change nothing |
218
+ | `--force` | Replace the file, its test and its pairing .spec when they exist, keeping their declaration |
218
219
 
219
220
  #### `sdxc make service <name>`
220
221
 
221
222
  A service in app/services
222
223
 
223
- | Flag | Does |
224
- | ----------- | ----------------------------------------------------------------------------- |
225
- | `--test` | Write a test beside the file, or skip it with --no-test (default: make.tests) |
226
- | `--dry-run` | Print what would be written and change nothing |
227
- | `--force` | Replace the file and its test when they exist, keeping their declaration |
224
+ | Flag | Does |
225
+ | ----------- | ------------------------------------------------------------------------------------------- |
226
+ | `--test` | Write a test beside the file, or skip it with --no-test (default: make.tests) |
227
+ | `--dry-run` | Print what would be written and change nothing |
228
+ | `--force` | Replace the file, its test and its pairing .spec when they exist, keeping their declaration |
228
229
 
229
230
  #### `sdxc make policy <name>`
230
231
 
231
232
  A resource's create, read, update and delete abilities in app/policies, with their test
232
233
 
233
- | Flag | Does |
234
- | ----------- | ----------------------------------------------------------------------------- |
235
- | `--test` | Write a test beside the file, or skip it with --no-test (default: make.tests) |
236
- | `--dry-run` | Print what would be written and change nothing |
237
- | `--force` | Replace the file and its test when they exist, keeping their declaration |
234
+ | Flag | Does |
235
+ | ----------- | ------------------------------------------------------------------------------------------- |
236
+ | `--test` | Write a test beside the file, or skip it with --no-test (default: make.tests) |
237
+ | `--dry-run` | Print what would be written and change nothing |
238
+ | `--force` | Replace the file, its test and its pairing .spec when they exist, keeping their declaration |
238
239
 
239
240
  #### `sdxc make initializer <name>`
240
241
 
241
242
  An initializer in app/initializers
242
243
 
243
- | Flag | Does |
244
- | ----------- | ----------------------------------------------------------------------------- |
245
- | `--test` | Write a test beside the file, or skip it with --no-test (default: make.tests) |
246
- | `--dry-run` | Print what would be written and change nothing |
247
- | `--force` | Replace the file and its test when they exist, keeping their declaration |
244
+ | Flag | Does |
245
+ | ----------- | ------------------------------------------------------------------------------------------- |
246
+ | `--test` | Write a test beside the file, or skip it with --no-test (default: make.tests) |
247
+ | `--dry-run` | Print what would be written and change nothing |
248
+ | `--force` | Replace the file, its test and its pairing .spec when they exist, keeping their declaration |
248
249
 
249
250
  #### `sdxc make email <name> [field[:type][?]...]`
250
251
 
251
252
  An email template in app/emails, its props declared and the template mapped
252
253
 
253
- | Flag | Does |
254
- | ----------- | ----------------------------------------------------------------------------- |
255
- | `--test` | Write a test beside the file, or skip it with --no-test (default: make.tests) |
256
- | `--dry-run` | Print what would be written and change nothing |
257
- | `--force` | Replace the file and its test when they exist, keeping their declaration |
254
+ | Flag | Does |
255
+ | ----------- | ------------------------------------------------------------------------------------------- |
256
+ | `--test` | Write a test beside the file, or skip it with --no-test (default: make.tests) |
257
+ | `--dry-run` | Print what would be written and change nothing |
258
+ | `--force` | Replace the file, its test and its pairing .spec when they exist, keeping their declaration |
258
259
 
259
260
  #### `sdxc make mcp <name>`
260
261
 
261
262
  An MCP tool in app/mcp/tools, or a resource, declared and mapped
262
263
 
263
- | Flag | Does |
264
- | ------------ | ----------------------------------------------------------------------------- |
265
- | `--resource` | A resource in app/mcp/resources instead of a tool |
266
- | `--test` | Write a test beside the file, or skip it with --no-test (default: make.tests) |
267
- | `--dry-run` | Print what would be written and change nothing |
268
- | `--force` | Replace the file and its test when they exist, keeping their declaration |
264
+ | Flag | Does |
265
+ | ------------ | ------------------------------------------------------------------------------------------- |
266
+ | `--resource` | A resource in app/mcp/resources instead of a tool |
267
+ | `--test` | Write a test beside the file, or skip it with --no-test (default: make.tests) |
268
+ | `--spec` | Write a pairing .spec under spec/, or skip it with --no-spec (default: make.specs) |
269
+ | `--dry-run` | Print what would be written and change nothing |
270
+ | `--force` | Replace the file, its test and its pairing .spec when they exist, keeping their declaration |
269
271
 
270
272
  #### `sdxc make command <name>`
271
273
 
272
274
  A command-line command in app/commands, declared and mapped
273
275
 
274
- | Flag | Does |
275
- | ----------- | ----------------------------------------------------------------------------- |
276
- | `--test` | Write a test beside the file, or skip it with --no-test (default: make.tests) |
277
- | `--dry-run` | Print what would be written and change nothing |
278
- | `--force` | Replace the file and its test when they exist, keeping their declaration |
276
+ | Flag | Does |
277
+ | ----------- | ------------------------------------------------------------------------------------------- |
278
+ | `--test` | Write a test beside the file, or skip it with --no-test (default: make.tests) |
279
+ | `--spec` | Write a pairing .spec under spec/, or skip it with --no-spec (default: make.specs) |
280
+ | `--dry-run` | Print what would be written and change nothing |
281
+ | `--force` | Replace the file, its test and its pairing .spec when they exist, keeping their declaration |
279
282
 
280
283
  #### `sdxc make test <file>`
281
284
 
@@ -347,6 +350,7 @@ Write a resource's model, migration, pages, tests and more, declared and mapped
347
350
  | `--api` | JSON endpoints in routes/api.ts with their OpenAPI operations, instead of pages |
348
351
  | `--skip <piece>` | Leave out pieces the project already has: model, migration, factory, validator, policy, pages; repeat it or list them |
349
352
  | `--test` | Write a test beside the file, or skip it with --no-test (default: make.tests) |
353
+ | `--spec` | Write a pairing .spec under spec/, or skip it with --no-spec (default: make.specs) |
350
354
  | `--dry-run` | Print what would be written and change nothing |
351
355
 
352
356
  #### `sdxc schedule`
@@ -426,6 +430,7 @@ The CLI reads `.config/sdxc.jsonc` (or `sdxc.jsonc` at the project root). Every
426
430
  | `make.routes` | `web` | Route contract `sdxc make controller` adds to, a module in `routes/` |
427
431
  | `make.migrations` | `{ "default": "database/migrations" }` | Migration chains by name |
428
432
  | `make.tests` | `true` | Write a test beside every generated file except migrations and factories |
433
+ | `make.specs` | `true` | Write a pairing `.spec` for controllers, commands, MCP tools and scaffolds |
429
434
  | `make.stubs` | `.config/sdxc/stubs` | Stubs that replace the built-in ones |
430
435
  | `doctor.checks` | `.config/sdxc/checks` | The project's own `sdxc doctor` checks, one module each |
431
436
  | `doctor.migrations.accept` | `[]` | Migration errors `sdxc doctor` steps past, each `{ "file", "column" }` |
package/changelog.jsonl CHANGED
@@ -1163,3 +1163,14 @@
1163
1163
  {"release":"2026.10.20","package":"@sdxc/mail","type":"fix","breaking":false,"title":"Trim a previews path's trailing slashes in time linear in its length","body":"Before: `previews(mail, { path })` trimmed trailing slashes from `path` with a regular expression\nthat backtracks, so a path holding a long run of `/` not at its end took seconds to set up the\nmiddleware (1.7s for 50,000 slashes). After: the slashes are removed by walking back from the\nend, so any path is handled in time linear in its length, and `/inbox///` still serves at\n`/inbox`. No action is needed."}
1164
1164
  {"release":"2026.10.20","package":"@sdxc/u","type":"fix","breaking":false,"title":"Read import.meta.env through optional chaining","body":"`when()` and the a11y debug helper read `import.meta.env.DEV` directly. A project's Vitest run\nleaves installed packages untransformed, where `import.meta.env` is undefined, so calling either\nfrom a test threw `TypeError: Cannot read properties of undefined (reading 'DEV')`. Both now read\n`import.meta.env?.DEV`: under a bundler they behave as before, and where nothing defines\n`import.meta.env` they run as production. Consumers need not change anything."}
1165
1165
  {"release":"2026.10.20","package":"@sdxc/ui","type":"fix","breaking":false,"title":"Render components in tests that leave @sdxc/ui untransformed","body":"Components and mixins checked `import.meta.env.DEV` for their dev-mode warnings. Vitest leaves\ninstalled packages untransformed, where `import.meta.env` is undefined, so a project's test\nrendering a `Button` (or any component with a dev warning) threw\n`TypeError: Cannot read properties of undefined (reading 'DEV')`. Every read is now\n`import.meta.env?.DEV`: apps built with Vite still warn in development, and where nothing defines\n`import.meta.env` the components render without the warnings. A project that added\n`test.server.deps.inline: [\"@sdxc/ui\"]` to work around it can remove that line."}
1166
+ {"release":"2026.10.21","package":"@sdxc/crypto","type":"feat","breaking":false,"title":"Add alphabet-based `randomString`","body":"`randomString({ length, alphabet })` draws a cryptographically strong string\nby rejection-sampling `crypto.getRandomValues` over a caller-chosen alphabet,\nso every index is equally likely.\n\nUse it when an existing format needs a custom character set (CSRF cookies,\nhoneypot field names). Prefer `randomToken` for new URL-safe secrets.\n\n```ts\nimport { randomString } from \"@sdxc/crypto\";\n\nlet csrf = randomString({\n length: 32,\n alphabet: \"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789!@#$%^&*()_+\",\n});\n```\n\nDefault length is 32; default alphabet is A–Z a–z 0–9. Throws `RangeError` for\nan invalid length (not an integer in 0..65536) or an empty / oversize alphabet."}
1167
+ {"release":"2026.10.21","package":"@sdxc/kit","type":"fix","breaking":false,"title":"Type command handlers, mock the queue and clear stale typegen in new apps","body":"Three fixes to the app `sdxc create` writes, and one to `sdxc scaffold`:\n\n- `app/initializers/cli.ts` now declares the `CLITypes` augmentation, so a command handler in\n its own file reads `ctx.db`, `ctx.models`, `ctx.email` and `ctx.intl` with their types.\n Before, `ctx.models` failed to type check (TS2339) until the augmentation was added by hand.\n- `app/test/cloudflare-workers.ts` now mocks the `QUEUE` binding with `createQueue()` from\n `@sdxc/cloudflare-mocks`, so a test that enqueues a job or calls `ctx.email.queue()` runs\n and can read the queued messages from `env.QUEUE`. Before, such a test failed.\n- `sdxc run typegen` now stamps `.cloudflare/types/index.d.ts` with the current time after\n `cf workers types` succeeds. `cf` leaves an unchanged file alone, so after a config edit that\n adds no binding (a cron trigger from `sdxc make job --cron`, say) `sdxc doctor` kept warning\n that the types were stale; it now passes once typegen runs.\n- `sdxc scaffold` writes its migration header in the form `sdxc make model` and `sdxc make\n migration` use: `-- CreatePosts: creates the posts table.`, then a blank line.\n\nExisting apps can take the first three by hand: add to the end of `app/initializers/cli.ts`\n\n declare module \"@sdxc/cli\" {\n \tinterface CLITypes {\n \t\tcli: typeof cli;\n \t}\n }\n\nadd `QUEUE: createQueue()` to the `env` in `app/test/cloudflare-workers.ts`, and after the\n`cf workers types` call in `app/commands/typegen.ts` call\n`utimes(\".cloudflare/types/index.d.ts\", now, now)` from `node:fs/promises`. A project stub\nfor `scaffold.migration.stub` keeps its own header."}
1168
+ {"release":"2026.10.21","package":"@sdxc/kit","type":"feat","breaking":false,"title":"Enforce JSDoc shape in sdxc doctor","body":"`sdxc doctor` gains a `jsdoc` check that walks app source and warns when a\ncomment is not JSDoc, when a description runs past three prose lines, when\n`@description` appears, or when `@param` / `@returns` / `@throws` spill onto\na second line. Tooling directives stay allowed.\n\n```bash\nsdxc doctor --only jsdoc\n```\n\nA finding names the file and line; the fix is to rewrite the comment within\nthose limits. Tags other than the one-line set do not count toward the\ndescription budget."}
1169
+ {"release":"2026.10.21","package":"@sdxc/kit","type":"docs","breaking":false,"title":"Widen the command table for the JSDoc doctor line","body":"The `sdxc doctor` row now mentions JSDoc beside layout, which lengthens the\ncolumn; oxfmt reflows the whole commands table to match.\n\nNo consumer-facing behavior change."}
1170
+ {"release":"2026.10.21","package":"@sdxc/kit","type":"feat","breaking":false,"title":"Generate pairing .spec files for controllers, commands, MCP and scaffolds","body":"`sdxc make controller`, `command` and `mcp` now write a black-box `.spec` under\n`spec/` beside the Vitest test, and `sdxc scaffold` writes one feature suite for\nthe whole resource. Pages use `browser`, API routes use `http`, commands use\n`cli`, and MCP tools use `mcp`. Scaffold mixes whichever surfaces it wrote.\n\n```sh\nsdxc make controller about # also writes spec/about.spec\nsdxc make controller keys --routes api # http .spec\nsdxc make command users/grant # spec/commands/users/grant.spec\nsdxc make mcp get-post # spec/mcp/get-post.spec\nsdxc scaffold post title body --mcp # spec/posts.spec with browser + mcp\n```\n\n`make.specs` (default true) and `--spec` / `--no-spec` control it; `sdxc destroy`\nremoves the pairing file. Writing a `.spec` adds `@sdxc/spec` when missing. The\napp template ships `@sdxc/spec` and a starter `spec/config.jsonc`."}
1171
+ {"release":"2026.10.21","package":"@sdxc/spec","type":"feat","breaking":false,"title":"Add an mcp capability for Streamable HTTP tool calls","body":"Call a Streamable HTTP MCP server from a `.spec` without spelling JSON-RPC.\n`mcp.discover`, `mcp.list_tools` and `mcp.call` POST through `fetch` with the\nheaders and `_meta` the protocol requires, resolve targets through bases like\n`http`, and reuse `--allow-net`.\n\n```text\nuse mcp\n\nwhen {\n\tlet tools = mcp.list_tools \"/mcp\" on \"web\"\n\tlet result = mcp.call \"/mcp\" \"search_jobs\" { query: \"Remix\" } on \"web\"\n}\nthen {\n\texpect result.ok true\n\texpect result.is_error false\n\texpect result.text …\n}\n```\n\n`ok` is HTTP 2xx with no JSON-RPC error; a tool-level `isError` surfaces as\n`is_error` so the suite can assert it. `text` is the first text content block\nand `json` prefers `structuredContent`. The Workers entry exports the same\nfactory — MCP is fetch-only."}
1172
+ {"release":"2026.10.21","package":"@sdxc/spec","type":"feat","breaking":false,"title":"Collect Chrome DevTools Protocol traces from browser specs","body":"`.spec` files that `use browser` can record a Performance timeline, read\nChrome metrics, and send one-shot CDP commands:\n\n```\nuse browser\nuse fs\n\ntest \"checkout leaves a Performance trace\" {\n\tgiven {\n\t\tbrowser.trace.start\n\t\tbrowser.open \"/checkout\" on \"web\"\n\t}\n\twhen {\n\t\tbrowser.click button \"Pay\"\n\t\tlet trace = browser.trace.stop \"checkout.json\"\n\t}\n\tthen {\n\t\texpect trace.path \"checkout.json\"\n\t\texpect file \"checkout.json\" exists\n\t}\n}\n```\n\n`browser.trace.start` / `browser.trace.stop` write chrome://tracing JSON\ninto the test workspace and return `{ path, event_count }`.\n`browser.metrics` returns `Performance.getMetrics` as a name→number\nobject. `browser.cdp \"Domain.method\" [params]` is the escape hatch for\nany other one-shot CDP command.\n\nBoth the local `agent-browser` backend and the Cloudflare Browser Run\nbackend implement the same four tools (ADR-019)."}
1173
+ {"release":"2026.10.21","package":"@sdxc/spec","type":"feat","breaking":false,"title":"Store Performance traces through artifacts without a filesystem","body":"`browser.trace.stop` already writes chrome://tracing JSON into the test\nworkspace. Hosts that run specs without a filesystem — Cloudflare Workers\nwith `createNoFilesystemWorkspace` — had nowhere for that file to land.\n\nWhen `workspace.resolve` refuses the path and the run supplies\n`context.artifacts`, the tool now writes the JSON through the artifact\nstore and still returns `{ path, event_count }`. A missing store fails\nwith a clear error instead of a filesystem exception.\n\n```ts\nawait runTests({\n suite,\n createWorkspace: createNoFilesystemWorkspace,\n artifacts: {\n directory: \"flow-traces\",\n write: async (name, contents) => { /* upload or buffer */ return name; },\n },\n});\n```"}
1174
+ {"release":"2026.10.21","package":"@sdxc/spec","type":"refactor","breaking":false,"title":"Drop the ADR citation from the Browser Run module comment","body":"The module header already states that the binding is injected so this\npackage never owns the remote browser service. No API change."}
1175
+ {"release":"2026.10.21","package":"@sdxc/ui","type":"fix","breaking":false,"title":"Animate the Sidebar's collapse in both directions","body":"Before, collapsing a `Sidebar` with `collapsible=\"offcanvas\"` or `\"icon\"`\nleft it at full width: the collapse rules lost to the rail's own size, so\n`inline-size` and the slide-out transform never applied and nothing animated.\nNow the rail shrinks and slides out together when collapsing and back in when\nexpanding, using its existing 200ms transition.\n\nConsumers who worked around it, for example with a negative\n`margin-inline-start` on the collapsed rail, should remove that override, or\nthe rail will be offset twice."}
1176
+ {"release":"2026.10.21","package":"@sdxc/ui","type":"feat","breaking":false,"title":"Set long-form Typeset body copy at 18px and 20px","body":"`Typeset` used to set body copy at 16px for the `docs` preset (the default) and 18px for `reading`. `docs` is now `1.125rem` (18px on a 16px root) and `reading` is `1.25rem` (20px), so a documentation page or an article is large enough to read. `chat` stays at 15px.\n\nNo call-site change is required. Headings, code and tables still scale from `--ui-typeset-size`. To keep a 16px body, set that property on the host:\n\n```tsx\nimport { css } from \"remix/component\";\nimport { Typeset } from \"@sdxc/ui\";\n\n<Typeset mix={css({ \"--ui-typeset-size\": \"1rem\" })}>{article}</Typeset>\n```"}
@@ -54,6 +54,11 @@
54
54
  "default": true,
55
55
  "description": "Write a test beside every generated file except migrations and factories"
56
56
  },
57
+ "specs": {
58
+ "type": "boolean",
59
+ "default": true,
60
+ "description": "Write a pairing .spec under spec/ for controllers, commands, MCP tools and scaffolds"
61
+ },
57
62
  "stubs": {
58
63
  "type": "string",
59
64
  "default": ".config/sdxc/stubs",
@@ -67,6 +72,7 @@
67
72
  "default": "database/migrations"
68
73
  },
69
74
  "tests": true,
75
+ "specs": true,
70
76
  "stubs": ".config/sdxc/stubs"
71
77
  }
72
78
  },
@@ -16,6 +16,7 @@ export declare const controller: import("@sdxc/cli").CommandAction<import("@sdxc
16
16
  readonly resource: import("@sdxc/cli").ValueFlag<string, false, false, false>;
17
17
  readonly actions: import("@sdxc/cli").ValueFlag<"index" | "all" | "new" | "show" | "edit" | "create" | "update" | "destroy", false, true, false>;
18
18
  readonly test: import("@sdxc/cli").Flag<boolean | undefined>;
19
+ readonly spec: import("@sdxc/cli").Flag<boolean | undefined>;
19
20
  readonly dryRun: import("@sdxc/cli").Flag<boolean>;
20
21
  readonly force: import("@sdxc/cli").Flag<boolean>;
21
22
  }>, readonly [import("@sdxc/cli").CommandMiddleware<{
@@ -50,6 +51,7 @@ export declare const mcp: import("@sdxc/cli").CommandAction<import("@sdxc/cli").
50
51
  }, {
51
52
  readonly resource: import("@sdxc/cli").Flag<boolean>;
52
53
  readonly test: import("@sdxc/cli").Flag<boolean | undefined>;
54
+ readonly spec: import("@sdxc/cli").Flag<boolean | undefined>;
53
55
  readonly dryRun: import("@sdxc/cli").Flag<boolean>;
54
56
  readonly force: import("@sdxc/cli").Flag<boolean>;
55
57
  }>, readonly [import("@sdxc/cli").CommandMiddleware<{
@@ -216,6 +218,7 @@ export declare const command: import("@sdxc/cli").CommandAction<import("@sdxc/cl
216
218
  readonly name: import("@sdxc/cli").Argument<string>;
217
219
  }, {
218
220
  readonly test: import("@sdxc/cli").Flag<boolean | undefined>;
221
+ readonly spec: import("@sdxc/cli").Flag<boolean | undefined>;
219
222
  readonly dryRun: import("@sdxc/cli").Flag<boolean>;
220
223
  readonly force: import("@sdxc/cli").Flag<boolean>;
221
224
  }>, readonly [import("@sdxc/cli").CommandMiddleware<{
@@ -280,6 +283,7 @@ export declare const group: import("@sdxc/cli").CommandAction<import("@sdxc/cli"
280
283
  readonly resource: import("@sdxc/cli").ValueFlag<string, false, false, false>;
281
284
  readonly actions: import("@sdxc/cli").ValueFlag<"index" | "all" | "new" | "show" | "edit" | "create" | "update" | "destroy", false, true, false>;
282
285
  readonly test: import("@sdxc/cli").Flag<boolean | undefined>;
286
+ readonly spec: import("@sdxc/cli").Flag<boolean | undefined>;
283
287
  readonly dryRun: import("@sdxc/cli").Flag<boolean>;
284
288
  readonly force: import("@sdxc/cli").Flag<boolean>;
285
289
  }>;
@@ -364,6 +368,7 @@ export declare const group: import("@sdxc/cli").CommandAction<import("@sdxc/cli"
364
368
  }, {
365
369
  readonly resource: import("@sdxc/cli").Flag<boolean>;
366
370
  readonly test: import("@sdxc/cli").Flag<boolean | undefined>;
371
+ readonly spec: import("@sdxc/cli").Flag<boolean | undefined>;
367
372
  readonly dryRun: import("@sdxc/cli").Flag<boolean>;
368
373
  readonly force: import("@sdxc/cli").Flag<boolean>;
369
374
  }>;
@@ -371,6 +376,7 @@ export declare const group: import("@sdxc/cli").CommandAction<import("@sdxc/cli"
371
376
  readonly name: import("@sdxc/cli").Argument<string>;
372
377
  }, {
373
378
  readonly test: import("@sdxc/cli").Flag<boolean | undefined>;
379
+ readonly spec: import("@sdxc/cli").Flag<boolean | undefined>;
374
380
  readonly dryRun: import("@sdxc/cli").Flag<boolean>;
375
381
  readonly force: import("@sdxc/cli").Flag<boolean>;
376
382
  }>;
@@ -37,6 +37,7 @@ export const controller = createCommand(SDXC_COMMANDS.make.controller, {
37
37
  routes: flags.routes,
38
38
  guardedBy: flags.resource,
39
39
  test: flags.test,
40
+ spec: flags.spec,
40
41
  dryRun: flags.dryRun,
41
42
  force: flags.force,
42
43
  };
@@ -89,6 +90,7 @@ export const mcp = createCommand(SDXC_COMMANDS.make.mcp, {
89
90
  name: ctx.arguments.name,
90
91
  resource: ctx.flags.resource,
91
92
  test: ctx.flags.test,
93
+ spec: ctx.flags.spec,
92
94
  dryRun: ctx.flags.dryRun,
93
95
  force: ctx.flags.force,
94
96
  }),
@@ -130,11 +132,15 @@ export const factory = createCommand(SDXC_COMMANDS.make.factory, {
130
132
  function plain(kind) {
131
133
  return createCommand(SDXC_COMMANDS.make[kind], {
132
134
  middleware: MAKE_MIDDLEWARE,
133
- /** Writes the file and, unless `--no-test` or `make.tests` says otherwise, its test. */
135
+ /**
136
+ * Writes the file and, unless `--no-test` or `make.tests` says otherwise, its test; a
137
+ * command also takes `--spec` / `make.specs` for its pairing `.spec`.
138
+ */
134
139
  handler: (ctx) => run(ctx, {
135
140
  kind,
136
141
  name: ctx.arguments.name,
137
142
  test: ctx.flags.test,
143
+ spec: "spec" in ctx.flags ? ctx.flags.spec : undefined,
138
144
  dryRun: ctx.flags.dryRun,
139
145
  force: ctx.flags.force,
140
146
  }),
@@ -16,6 +16,7 @@ declare const _default: import("@sdxc/cli").CommandAction<import("@sdxc/cli").Co
16
16
  readonly api: import("@sdxc/cli").Flag<boolean>;
17
17
  readonly skip: import("@sdxc/cli").ValueFlag<"validator" | "model" | "migration" | "factory" | "policy" | "pages", false, true, false>;
18
18
  readonly test: import("@sdxc/cli").Flag<boolean | undefined>;
19
+ readonly spec: import("@sdxc/cli").Flag<boolean | undefined>;
19
20
  readonly dryRun: import("@sdxc/cli").Flag<boolean>;
20
21
  }>, readonly [import("@sdxc/cli").CommandMiddleware<{
21
22
  key: typeof import("../middleware.js").CurrentProject;
@@ -22,6 +22,7 @@ export default createCommand(SDXC_COMMANDS.scaffold, {
22
22
  mcp: ctx.flags.mcp,
23
23
  command: ctx.flags.command,
24
24
  test: ctx.flags.test,
25
+ spec: ctx.flags.spec,
25
26
  dryRun: ctx.flags.dryRun,
26
27
  skip: ctx.flags.skip,
27
28
  api: ctx.flags.api,
package/dist/config.d.ts CHANGED
@@ -27,6 +27,7 @@ export declare const CONFIG_SCHEMA: s.Schema<{
27
27
  tests?: boolean | undefined;
28
28
  routes?: string | undefined;
29
29
  migrations?: Record<string, string> | undefined;
30
+ specs?: boolean | undefined;
30
31
  stubs?: string | undefined;
31
32
  } | undefined;
32
33
  doctor?: {
@@ -49,6 +50,7 @@ export declare const CONFIG_SCHEMA: s.Schema<{
49
50
  tests: boolean;
50
51
  routes: string;
51
52
  migrations: Record<string, string>;
53
+ specs: boolean;
52
54
  stubs: string;
53
55
  };
54
56
  doctor: {
package/dist/config.js CHANGED
@@ -22,6 +22,7 @@ const MAKE_DEFAULTS = {
22
22
  routes: "web",
23
23
  migrations: { default: "database/migrations" },
24
24
  tests: true,
25
+ specs: true,
25
26
  stubs: ".config/sdxc/stubs",
26
27
  };
27
28
  /**
@@ -69,6 +70,9 @@ export const CONFIG_SCHEMA = s.object({
69
70
  tests: s.defaulted(s.boolean(), MAKE_DEFAULTS.tests).meta({
70
71
  description: "Write a test beside every generated file except migrations and factories",
71
72
  }),
73
+ specs: s.defaulted(s.boolean(), MAKE_DEFAULTS.specs).meta({
74
+ description: "Write a pairing .spec under spec/ for controllers, commands, MCP tools and scaffolds",
75
+ }),
72
76
  stubs: s.defaulted(s.string(), MAKE_DEFAULTS.stubs).meta({
73
77
  description: "Stubs here replace the built-in ones; `sdxc make stubs` copies them out",
74
78
  }),
@@ -61,6 +61,7 @@ export declare const SDXC_COMMANDS: import("@sdxc/cli").Group<Omit<{
61
61
  readonly resource: import("@sdxc/cli").ValueFlag<string, false, false, false>;
62
62
  readonly actions: import("@sdxc/cli").ValueFlag<"index" | "all" | "new" | "show" | "edit" | "create" | "update" | "destroy", false, true, false>;
63
63
  readonly test: import("@sdxc/cli").Flag<boolean | undefined>;
64
+ readonly spec: import("@sdxc/cli").Flag<boolean | undefined>;
64
65
  readonly dryRun: import("@sdxc/cli").Flag<boolean>;
65
66
  readonly force: import("@sdxc/cli").Flag<boolean>;
66
67
  }>;
@@ -145,6 +146,7 @@ export declare const SDXC_COMMANDS: import("@sdxc/cli").Group<Omit<{
145
146
  }, {
146
147
  readonly resource: import("@sdxc/cli").Flag<boolean>;
147
148
  readonly test: import("@sdxc/cli").Flag<boolean | undefined>;
149
+ readonly spec: import("@sdxc/cli").Flag<boolean | undefined>;
148
150
  readonly dryRun: import("@sdxc/cli").Flag<boolean>;
149
151
  readonly force: import("@sdxc/cli").Flag<boolean>;
150
152
  }>;
@@ -152,6 +154,7 @@ export declare const SDXC_COMMANDS: import("@sdxc/cli").Group<Omit<{
152
154
  readonly name: import("@sdxc/cli").Argument<string>;
153
155
  }, {
154
156
  readonly test: import("@sdxc/cli").Flag<boolean | undefined>;
157
+ readonly spec: import("@sdxc/cli").Flag<boolean | undefined>;
155
158
  readonly dryRun: import("@sdxc/cli").Flag<boolean>;
156
159
  readonly force: import("@sdxc/cli").Flag<boolean>;
157
160
  }>;
@@ -208,6 +211,7 @@ export declare const SDXC_COMMANDS: import("@sdxc/cli").Group<Omit<{
208
211
  readonly api: import("@sdxc/cli").Flag<boolean>;
209
212
  readonly skip: import("@sdxc/cli").ValueFlag<"validator" | "model" | "migration" | "factory" | "policy" | "pages", false, true, false>;
210
213
  readonly test: import("@sdxc/cli").Flag<boolean | undefined>;
214
+ readonly spec: import("@sdxc/cli").Flag<boolean | undefined>;
211
215
  readonly dryRun: import("@sdxc/cli").Flag<boolean>;
212
216
  }>;
213
217
  readonly schedule: import("@sdxc/cli").Command<Readonly<Record<string, import("@sdxc/cli").Argument<unknown>>>, {
package/dist/contract.js CHANGED
@@ -54,16 +54,24 @@ const TEST_FLAG = flag.boolean("test", {
54
54
  default: undefined,
55
55
  description: "Write a test beside the file, or skip it with --no-test (default: make.tests)",
56
56
  });
57
+ /**
58
+ * `--spec` / `--no-spec`, for kinds that write a pairing `.spec` under `spec/`; unset, it takes
59
+ * `make.specs`.
60
+ */
61
+ const SPEC_FLAG = flag.boolean("spec", {
62
+ default: undefined,
63
+ description: "Write a pairing .spec under spec/, or skip it with --no-spec (default: make.specs)",
64
+ });
57
65
  /** `--dry-run`, shared by every command that can print what it would write instead. */
58
66
  const DRY_RUN_FLAG = flag.boolean("dry-run", {
59
67
  description: "Print what would be written and change nothing",
60
68
  });
61
69
  /**
62
- * `--force`, shared by every kind whose file takes its own name: an existing file and its test
63
- * are replaced, and the declaration and mapping they already have are kept.
70
+ * `--force`, shared by every kind whose file takes its own name: an existing file, its test and
71
+ * its pairing `.spec` are replaced, and the declaration and mapping they already have are kept.
64
72
  */
65
73
  const FORCE_FLAG = flag.boolean("force", {
66
- description: "Replace the file and its test when they exist, keeping their declaration",
74
+ description: "Replace the file, its test and its pairing .spec when they exist, keeping their declaration",
67
75
  });
68
76
  /** Every command `sdxc` takes. */
69
77
  export const SDXC_COMMANDS = commands({
@@ -121,7 +129,7 @@ export const SDXC_COMMANDS = commands({
121
129
  ],
122
130
  }),
123
131
  destroy: command({
124
- description: "Remove a file sdxc make wrote, its test, its mapping and its declaration",
132
+ description: "Remove a file sdxc make wrote, its test, its pairing .spec, its mapping and its declaration",
125
133
  arguments: {
126
134
  kind: argument(s.enum_(DESTROY_KINDS), {
127
135
  description: "What to remove; every make kind but migration and policy",
@@ -214,6 +222,7 @@ export const SDXC_COMMANDS = commands({
214
222
  })
215
223
  .list(),
216
224
  test: TEST_FLAG,
225
+ spec: SPEC_FLAG,
217
226
  dryRun: DRY_RUN_FLAG,
218
227
  force: FORCE_FLAG,
219
228
  },
@@ -360,6 +369,7 @@ export const SDXC_COMMANDS = commands({
360
369
  description: "A resource in app/mcp/resources instead of a tool",
361
370
  }),
362
371
  test: TEST_FLAG,
372
+ spec: SPEC_FLAG,
363
373
  dryRun: DRY_RUN_FLAG,
364
374
  force: FORCE_FLAG,
365
375
  },
@@ -368,7 +378,7 @@ export const SDXC_COMMANDS = commands({
368
378
  description: "A command-line command in app/commands, declared and mapped",
369
379
  tasks: true,
370
380
  arguments: { name: nameArgument("command", "users/grant") },
371
- flags: { test: TEST_FLAG, dryRun: DRY_RUN_FLAG, force: FORCE_FLAG },
381
+ flags: { test: TEST_FLAG, spec: SPEC_FLAG, dryRun: DRY_RUN_FLAG, force: FORCE_FLAG },
372
382
  examples: ["make command users/grant"],
373
383
  }),
374
384
  test: command({
@@ -527,6 +537,7 @@ export const SDXC_COMMANDS = commands({
527
537
  })
528
538
  .list(),
529
539
  test: TEST_FLAG,
540
+ spec: SPEC_FLAG,
530
541
  dryRun: DRY_RUN_FLAG,
531
542
  },
532
543
  examples: [
@@ -25,7 +25,8 @@ export interface DependencyEdit {
25
25
  }
26
26
  /**
27
27
  * Every `@sdxc/*` package `files` import, statically or dynamically, with the optional peers
28
- * an imported subpath needs at runtime, sorted.
28
+ * an imported subpath needs at runtime, and `@sdxc/spec` when any file is a pairing `.spec`,
29
+ * sorted.
29
30
  */
30
31
  export declare function importedPackages(files: readonly SourceText[]): string[];
31
32
  /**