@sdxc/kit 2026.11.3 → 2026.11.4
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 +9 -0
- package/changelog.jsonl +3 -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/run.d.ts +5 -0
- package/dist/commands/ci/run.js +8 -1
- package/dist/contract.d.ts +5 -0
- package/dist/contract.js +6 -1
- package/package.json +3 -3
package/README.md
CHANGED
|
@@ -94,6 +94,7 @@ Run the project's CI script (.config/sdxc/ci.ts), and sign green commits off on
|
|
|
94
94
|
| `--token-env <NAME>` | Environment variable holding the GitHub token; `gh auth token` answers when it is unset |
|
|
95
95
|
| `-v, --verbose` | Print every step's log, not only a failed one's |
|
|
96
96
|
| `--json` | Print the report as JSON |
|
|
97
|
+
| `--rerun-failed` | Run only the steps the last recorded run failed |
|
|
97
98
|
| `--no-install` | Skip the frozen-lockfile install a local run starts with |
|
|
98
99
|
|
|
99
100
|
#### `sdxc ci list`
|
|
@@ -131,6 +132,14 @@ Exit 0 when a contributor signed the commit off, 1 when nobody did, 2 when GitHu
|
|
|
131
132
|
| `--token-env <NAME>` | Environment variable holding the GitHub token; `gh auth token` answers when it is unset |
|
|
132
133
|
| `--json` | Print the report as JSON |
|
|
133
134
|
|
|
135
|
+
#### `sdxc ci clean`
|
|
136
|
+
|
|
137
|
+
Remove the step cache and run history kept in the git directory; signoff records stay
|
|
138
|
+
|
|
139
|
+
| Flag | Does |
|
|
140
|
+
| -------- | ------------------------ |
|
|
141
|
+
| `--json` | Print the report as JSON |
|
|
142
|
+
|
|
134
143
|
#### `sdxc create [directory]`
|
|
135
144
|
|
|
136
145
|
Write a new project from a built-in template or a GitHub repository
|
package/changelog.jsonl
CHANGED
|
@@ -1850,3 +1850,6 @@
|
|
|
1850
1850
|
{"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
1851
|
{"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
1852
|
{"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."}
|
|
1853
|
+
{"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."}
|
|
1854
|
+
{"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."}
|
|
1855
|
+
{"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."}
|
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
|
+
});
|
|
@@ -18,6 +18,7 @@ declare const _default: import("@sdxc/cli").CommandAction<import("@sdxc/cli").Gr
|
|
|
18
18
|
readonly tokenEnv: import("@sdxc/cli").ValueFlag<string, true, false, false>;
|
|
19
19
|
readonly verbose: import("@sdxc/cli").Flag<boolean>;
|
|
20
20
|
readonly json: import("@sdxc/cli").Flag<boolean>;
|
|
21
|
+
readonly rerunFailed: import("@sdxc/cli").Flag<boolean>;
|
|
21
22
|
readonly only: import("@sdxc/cli").ValueFlag<string, false, true, false>;
|
|
22
23
|
readonly skip: import("@sdxc/cli").ValueFlag<string, false, true, false>;
|
|
23
24
|
readonly scope: import("@sdxc/cli").ValueFlag<string, false, true, false>;
|
|
@@ -47,6 +48,9 @@ declare const _default: import("@sdxc/cli").CommandAction<import("@sdxc/cli").Gr
|
|
|
47
48
|
tokenEnv: import("@sdxc/cli").ValueFlag<string, true, false, false>;
|
|
48
49
|
json: import("@sdxc/cli").Flag<boolean>;
|
|
49
50
|
}>;
|
|
51
|
+
readonly clean: import("@sdxc/cli").Command<Readonly<Record<string, import("@sdxc/cli").Argument<unknown>>>, {
|
|
52
|
+
json: import("@sdxc/cli").Flag<boolean>;
|
|
53
|
+
}>;
|
|
50
54
|
}, "description" | "hidden" | "arguments" | "flags" | "tasks">, Record<never, never>, {
|
|
51
55
|
readonly install: import("@sdxc/cli").Flag<boolean>;
|
|
52
56
|
readonly push: import("@sdxc/cli").Flag<boolean>;
|
|
@@ -57,6 +61,7 @@ declare const _default: import("@sdxc/cli").CommandAction<import("@sdxc/cli").Gr
|
|
|
57
61
|
readonly tokenEnv: import("@sdxc/cli").ValueFlag<string, true, false, false>;
|
|
58
62
|
readonly verbose: import("@sdxc/cli").Flag<boolean>;
|
|
59
63
|
readonly json: import("@sdxc/cli").Flag<boolean>;
|
|
64
|
+
readonly rerunFailed: import("@sdxc/cli").Flag<boolean>;
|
|
60
65
|
readonly only: import("@sdxc/cli").ValueFlag<string, false, true, false>;
|
|
61
66
|
readonly skip: import("@sdxc/cli").ValueFlag<string, false, true, false>;
|
|
62
67
|
readonly scope: import("@sdxc/cli").ValueFlag<string, false, true, false>;
|
package/dist/commands/ci/run.js
CHANGED
|
@@ -31,6 +31,13 @@ export default createCommand(SDXC_COMMANDS.ci, {
|
|
|
31
31
|
}
|
|
32
32
|
let workspace = located.data.workspace;
|
|
33
33
|
let scope = ctx.flags.scope.length > 0 || workspace === null ? ctx.flags.scope : [workspace];
|
|
34
|
-
return runAction(
|
|
34
|
+
return runAction({
|
|
35
|
+
cwd: ctx.cwd,
|
|
36
|
+
env: ctx.env,
|
|
37
|
+
stdout: ctx.stdout,
|
|
38
|
+
style: ctx.style,
|
|
39
|
+
signal: ctx.signal,
|
|
40
|
+
interactive: process.stdout.isTTY === true,
|
|
41
|
+
}, located.data.script, { ...ctx.flags, runner, scope }, located.data.root);
|
|
35
42
|
},
|
|
36
43
|
});
|
package/dist/contract.d.ts
CHANGED
|
@@ -22,6 +22,7 @@ export declare const SDXC_COMMANDS: import("@sdxc/cli").Group<Omit<{
|
|
|
22
22
|
readonly tokenEnv: import("@sdxc/cli").ValueFlag<string, true, false, false>;
|
|
23
23
|
readonly verbose: import("@sdxc/cli").Flag<boolean>;
|
|
24
24
|
readonly json: import("@sdxc/cli").Flag<boolean>;
|
|
25
|
+
readonly rerunFailed: import("@sdxc/cli").Flag<boolean>;
|
|
25
26
|
readonly only: import("@sdxc/cli").ValueFlag<string, false, true, false>;
|
|
26
27
|
readonly skip: import("@sdxc/cli").ValueFlag<string, false, true, false>;
|
|
27
28
|
readonly scope: import("@sdxc/cli").ValueFlag<string, false, true, false>;
|
|
@@ -51,6 +52,9 @@ export declare const SDXC_COMMANDS: import("@sdxc/cli").Group<Omit<{
|
|
|
51
52
|
tokenEnv: import("@sdxc/cli").ValueFlag<string, true, false, false>;
|
|
52
53
|
json: import("@sdxc/cli").Flag<boolean>;
|
|
53
54
|
}>;
|
|
55
|
+
readonly clean: import("@sdxc/cli").Command<Readonly<Record<string, import("@sdxc/cli").Argument<unknown>>>, {
|
|
56
|
+
json: import("@sdxc/cli").Flag<boolean>;
|
|
57
|
+
}>;
|
|
54
58
|
}, "description" | "hidden" | "arguments" | "flags" | "tasks">, Record<never, never>, {
|
|
55
59
|
readonly install: import("@sdxc/cli").Flag<boolean>;
|
|
56
60
|
readonly push: import("@sdxc/cli").Flag<boolean>;
|
|
@@ -61,6 +65,7 @@ export declare const SDXC_COMMANDS: import("@sdxc/cli").Group<Omit<{
|
|
|
61
65
|
readonly tokenEnv: import("@sdxc/cli").ValueFlag<string, true, false, false>;
|
|
62
66
|
readonly verbose: import("@sdxc/cli").Flag<boolean>;
|
|
63
67
|
readonly json: import("@sdxc/cli").Flag<boolean>;
|
|
68
|
+
readonly rerunFailed: import("@sdxc/cli").Flag<boolean>;
|
|
64
69
|
readonly only: import("@sdxc/cli").ValueFlag<string, false, true, false>;
|
|
65
70
|
readonly skip: import("@sdxc/cli").ValueFlag<string, false, true, false>;
|
|
66
71
|
readonly scope: import("@sdxc/cli").ValueFlag<string, false, true, false>;
|
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",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sdxc/kit",
|
|
3
|
-
"version": "2026.11.
|
|
3
|
+
"version": "2026.11.4",
|
|
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,7 +14,7 @@
|
|
|
14
14
|
"./lock.schema.json": "./lock.schema.json"
|
|
15
15
|
},
|
|
16
16
|
"dependencies": {
|
|
17
|
-
"@sdxc/ci": "2026.11.
|
|
17
|
+
"@sdxc/ci": "2026.11.4",
|
|
18
18
|
"@sdxc/cli": "2026.11.3",
|
|
19
19
|
"@sdxc/codemod": "2026.10.29",
|
|
20
20
|
"@sdxc/cron": "2026.11.3",
|
|
@@ -31,7 +31,7 @@
|
|
|
31
31
|
"peerDependencies": {
|
|
32
32
|
"remix": "3.1.0"
|
|
33
33
|
},
|
|
34
|
-
"gitHead": "
|
|
34
|
+
"gitHead": "f9b4adfc3d85b98a3d628b69cc2e1b9c0b7af2d8",
|
|
35
35
|
"publishConfig": {
|
|
36
36
|
"access": "public"
|
|
37
37
|
},
|