@radicaltools/cli 0.4.0 → 0.6.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +54 -27
- package/dist/{chunk-3H4ISGOV.js → chunk-CWKX2ULF.js} +1 -1
- package/dist/{dist-5ZBGYT7R.js → dist-KTTOUFHF.js} +2 -2
- package/dist/hub-catalogue/concern/concern-accessibility.radical +871 -0
- package/dist/hub-catalogue/concern/concern-api-collections.radical +24 -12
- package/dist/hub-catalogue/concern/concern-api-errors.radical +26 -13
- package/dist/hub-catalogue/concern/concern-api-evolution.radical +26 -13
- package/dist/hub-catalogue/concern/concern-api-idempotency.radical +28 -14
- package/dist/hub-catalogue/concern/concern-api-resource-design.radical +24 -12
- package/dist/hub-catalogue/concern/concern-api-style-guide.radical +26 -13
- package/dist/hub-catalogue/concern/concern-architecture-style.radical +26 -13
- package/dist/hub-catalogue/concern/concern-audit-trail.radical +26 -13
- package/dist/hub-catalogue/concern/concern-authentication.radical +18 -9
- package/dist/hub-catalogue/concern/concern-authorization.radical +34 -17
- package/dist/hub-catalogue/concern/concern-availability.radical +20 -10
- package/dist/hub-catalogue/concern/concern-backend-stack.radical +16 -8
- package/dist/hub-catalogue/concern/concern-backup-recovery.radical +30 -15
- package/dist/hub-catalogue/concern/concern-caching.radical +28 -14
- package/dist/hub-catalogue/concern/concern-capacity.radical +18 -9
- package/dist/hub-catalogue/concern/concern-ci-cd-pipeline.radical +975 -0
- package/dist/hub-catalogue/concern/concern-code-documentation.radical +32 -16
- package/dist/hub-catalogue/concern/concern-code-quality-gate.radical +30 -15
- package/dist/hub-catalogue/concern/concern-code-review-branching.radical +32 -16
- package/dist/hub-catalogue/concern/concern-code-style.radical +24 -12
- package/dist/hub-catalogue/concern/concern-communication-style.radical +28 -14
- package/dist/hub-catalogue/concern/concern-data-classification.radical +20 -10
- package/dist/hub-catalogue/concern/concern-data-consistency.radical +20 -10
- package/dist/hub-catalogue/concern/concern-data-store.radical +24 -12
- package/dist/hub-catalogue/concern/concern-decomposition.radical +28 -14
- package/dist/hub-catalogue/concern/concern-definition-of-done.radical +26 -13
- package/dist/hub-catalogue/concern/concern-delivery-metrics.radical +22 -11
- package/dist/hub-catalogue/concern/concern-dependency-hygiene.radical +28 -14
- package/dist/hub-catalogue/concern/concern-deployment.radical +24 -12
- package/dist/hub-catalogue/concern/concern-encryption.radical +28 -14
- package/dist/hub-catalogue/concern/concern-error-handling-logging.radical +28 -14
- package/dist/hub-catalogue/concern/concern-eu-dora.radical +26 -13
- package/dist/hub-catalogue/concern/concern-frontend-stack.radical +96 -309
- package/dist/hub-catalogue/concern/concern-incident-management.radical +26 -13
- package/dist/hub-catalogue/concern/concern-infrastructure.radical +34 -17
- package/dist/hub-catalogue/concern/concern-integration-resilience.radical +26 -13
- package/dist/hub-catalogue/concern/concern-messaging.radical +18 -9
- package/dist/hub-catalogue/concern/concern-mobile-performance.radical +710 -0
- package/dist/hub-catalogue/concern/concern-module-boundaries.radical +18 -9
- package/dist/hub-catalogue/concern/concern-observability.radical +22 -11
- package/dist/hub-catalogue/concern/concern-operational-readiness.radical +28 -14
- package/dist/hub-catalogue/concern/concern-personal-data.radical +42 -21
- package/dist/hub-catalogue/concern/concern-quality-priorities.radical +24 -12
- package/dist/hub-catalogue/concern/concern-rate-limiting.radical +30 -15
- package/dist/hub-catalogue/concern/concern-release-versioning.radical +308 -57
- package/dist/hub-catalogue/concern/concern-retention.radical +28 -14
- package/dist/hub-catalogue/concern/concern-secrets.radical +32 -16
- package/dist/hub-catalogue/concern/concern-secure-coding.radical +28 -14
- package/dist/hub-catalogue/concern/concern-secure-development.radical +26 -13
- package/dist/hub-catalogue/concern/concern-security-detection.radical +22 -11
- package/dist/hub-catalogue/concern/concern-supply-chain.radical +28 -14
- package/dist/hub-catalogue/concern/concern-technical-debt.radical +30 -15
- package/dist/hub-catalogue/concern/concern-technology-lifecycle.radical +26 -13
- package/dist/hub-catalogue/concern/concern-tenant-isolation.radical +26 -13
- package/dist/hub-catalogue/concern/concern-test-strategy.radical +27 -14
- package/dist/hub-catalogue/concern/concern-threat-modelling.radical +26 -13
- package/dist/hub-catalogue/concern/concern-usability.radical +1266 -0
- package/dist/index.js +2563 -463
- package/dist/{pdfjs-I4NKVZXV.js → pdfjs-ABY3IR7F.js} +1 -1
- package/dist/{undici-4Q3DBBHR.js → undici-7Z7ZFI7Q.js} +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -214,13 +214,19 @@ radical implement "Orders API" --path services/orders-api
|
|
|
214
214
|
radical implement 8c66e024-… --path apps/cli --path apps/cli-shared
|
|
215
215
|
radical implement "Orders API" # where it is built
|
|
216
216
|
radical implement "Orders API" --remove
|
|
217
|
+
radical implement 8c66e024-… --remove # an element the model no longer has
|
|
217
218
|
```
|
|
218
219
|
|
|
219
220
|
The element is its id or its name (an element of another model of the
|
|
220
221
|
federation, as fetched, too); a name two elements share needs the id. Paths
|
|
221
222
|
are from the working directory and kept from the repository's root; they
|
|
222
223
|
replace the element's paths. An element without an entry is built where its
|
|
223
|
-
nearest parent with one is.
|
|
224
|
+
nearest parent with one is. `--remove` also takes out an entry whose element
|
|
225
|
+
the model no longer has, by its id or name (`radical verify --remove` too).
|
|
226
|
+
The file is the one `radical check` reads: found from the model folder up to
|
|
227
|
+
the repository's root, else a new one in the repository's `.radical/` (outside
|
|
228
|
+
a repository, beside the model folder), where the MCP server and Studio write
|
|
229
|
+
it too. Keys the command does not know (`$schema`, an `owner`) stay.
|
|
224
230
|
|
|
225
231
|
## radical diff
|
|
226
232
|
|
|
@@ -283,7 +289,7 @@ installs the hooks for `.radical/model/` and saves its base once.
|
|
|
283
289
|
## radical federation
|
|
284
290
|
|
|
285
291
|
```sh
|
|
286
|
-
node apps/cli/dist/index.js federation
|
|
292
|
+
node apps/cli/dist/index.js federation fetch [path/to/model] [--quiet] [--detach]
|
|
287
293
|
```
|
|
288
294
|
|
|
289
295
|
One model across many repositories. A model folder names the models it
|
|
@@ -299,27 +305,22 @@ depends on in `deps.json`:
|
|
|
299
305
|
```
|
|
300
306
|
|
|
301
307
|
`repo` is a git address or a path relative to the model folder, `path` the
|
|
302
|
-
model folder in that repository, `ref` a branch, tag or commit
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
model folder and drops the composed folder's changes.
|
|
319
|
-
- `watch` opens, then keeps both in step until stopped (Ctrl-C).
|
|
320
|
-
|
|
321
|
-
Dependencies are not composed transitively. With a `deps.json`,
|
|
322
|
-
`radical check` checks the model composed with its dependencies (see below).
|
|
308
|
+
model folder in that repository, `ref` a branch, tag or commit, or `latest`
|
|
309
|
+
(the newest version tag, else the default branch, at each fetch).
|
|
310
|
+
|
|
311
|
+
`fetch` fetches each dependency at its ref into the cache (`$RADICAL_CACHE`,
|
|
312
|
+
else the user's cache directory; one bare partial clone per repository, so
|
|
313
|
+
only the model files are downloaded), and the models it depends on in turn
|
|
314
|
+
(a model pinned twice at the nearest pin: the folder's own `deps.json`
|
|
315
|
+
first). It writes their elements, relations and views, each with
|
|
316
|
+
`origin: "<name>@<commit>"`, into `.state/federation.json` in the model
|
|
317
|
+
folder, out of git. Studio and the MCP server open the model folder itself
|
|
318
|
+
and show them beside its own, read-only; they never write them into the
|
|
319
|
+
folder. Without a `deps.json` there is nothing to fetch (exit 0). `--quiet`
|
|
320
|
+
prints nothing, `--detach` fetches in the background and returns at once:
|
|
321
|
+
`radical hooks install` runs `fetch --quiet --detach` after a checkout, a
|
|
322
|
+
commit, a pull and a rebase. With a `deps.json`, `radical check` checks the
|
|
323
|
+
model composed with its dependencies (see below).
|
|
323
324
|
|
|
324
325
|
## radical check
|
|
325
326
|
|
|
@@ -374,7 +375,14 @@ check, so an existing model can adopt a rule before every gap is closed.
|
|
|
374
375
|
`--ratchet` lowers each `max` to the count found now and writes the config
|
|
375
376
|
back; it never raises one. A rule that did not run keeps its `max`: the
|
|
376
377
|
`test-*` rules without `--report` (the output marks them `–` and "not run"),
|
|
377
|
-
every rule but the folder's when the folder is no model.
|
|
378
|
+
every rule but the folder's when the folder is no model. In a repository
|
|
379
|
+
that judges only its part of a model kept in a repository of its own
|
|
380
|
+
(`"model": { "repo": … }` in `.radical/radical.json`), the model's
|
|
381
|
+
`check.json` holds the whole model's baselines: `--ratchet` refuses to lower
|
|
382
|
+
them (exit 2), and lowers only a config of the repository's own named with
|
|
383
|
+
`--config`. With `--alone` or `--trigger`, which leave part of the model out
|
|
384
|
+
(the models `deps.json` names, the metric conditions of other events),
|
|
385
|
+
`--ratchet` lowers no baseline (exit 2).
|
|
378
386
|
|
|
379
387
|
### Goals
|
|
380
388
|
|
|
@@ -421,7 +429,10 @@ The model names no test: the repository binds its tests to the model's
|
|
|
421
429
|
scenarios and fitness functions in `.radical/radical.json` ("verifies"), and
|
|
422
430
|
a scenario or fitness function passes when every test bound to it passed and
|
|
423
431
|
its `metrics` (metric conditions only) hold. A test is named as Vitest and
|
|
424
|
-
Playwright print it, from the repository's root
|
|
432
|
+
Playwright print it, from the repository's root, its parts joined by `›`
|
|
433
|
+
(Vitest's `>` is read too, and `radical verify` keeps it with `›`; the
|
|
434
|
+
project Playwright or Vitest prints before the file, `[chromium] › ` or
|
|
435
|
+
`|unit| `, and the line and column after it, `:2:3`, are left out):
|
|
425
436
|
|
|
426
437
|
```sh
|
|
427
438
|
radical verify "Prints JSON" --test "apps/cli/src/cli.test.ts › radical check › prints the result as JSON"
|
|
@@ -432,6 +443,14 @@ radical verify "Prints JSON" # its tests
|
|
|
432
443
|
radical verify "Prints JSON" --drop "<test>" # take one off
|
|
433
444
|
```
|
|
434
445
|
|
|
446
|
+
A test may be bound to a scenario or fitness function of another model of
|
|
447
|
+
the federation (a consumer contract test): it is this repository's, so
|
|
448
|
+
`radical check` judges it with the model's own (a failed or missing test is
|
|
449
|
+
an error here), and `--trace` shows that scenario's path, with the other
|
|
450
|
+
model's requirement above a failed one broken, as the check says. Before any
|
|
451
|
+
results, `--trace` lists the tests bound to each scenario and fitness function
|
|
452
|
+
with no outcome yet.
|
|
453
|
+
|
|
435
454
|
`radical check` warns about a scenario the repository must verify (an
|
|
436
455
|
element it builds satisfies its requirement) that has no test bound and no
|
|
437
456
|
metric condition (`scenario-not-verified-here`), and about a test still
|
|
@@ -758,12 +777,20 @@ ports (`<ports>+NN`, `+100+NN`, `+200+NN`) and a `PROMPT.md` with its area;
|
|
|
758
777
|
`BRIEF.md` names the commit, the commits and the model elements changed since
|
|
759
778
|
the last round (by area), the open findings, the setup, the rules and the
|
|
760
779
|
report's JSON form. `--since`, `--from` and `--no-build` change what it
|
|
761
|
-
counts from, the first run's number and whether it builds
|
|
780
|
+
counts from, the first run's number and whether it builds; a run number an
|
|
781
|
+
earlier round has is refused (exit 2). The brief asks
|
|
762
782
|
that scripts name no absolute path (they find the repository by walking up to
|
|
763
783
|
`.radical/crucible/crucible.json`), since a finding's script is copied out of the round.
|
|
764
784
|
`verify` serves a run's build on its ports (each server `serve` lists, on the
|
|
765
785
|
run's port it names: `app`, `hub` or `other`), runs its scripts from its
|
|
766
|
-
folder and stops the servers
|
|
786
|
+
folder and stops the servers; a script not in the folder stops it before
|
|
787
|
+
anything runs (exit 2). A script shows the bug when it exits 1, and
|
|
788
|
+
says so in a line of its own (`REPRODUCED: yes` or `REPRODUCED: no`; `BUG: …`
|
|
789
|
+
and `FINDING: …` count as yes, whatever they say): `verify` prints those lines and whether the
|
|
790
|
+
bug shows for each script (the line wins, as a script that throws exits 1
|
|
791
|
+
too, and it says when exit and line disagree), keeps both in `round.json`, and
|
|
792
|
+
ends with the scripts that show the bug and those that do not. A run's folder
|
|
793
|
+
is `run-NN` in its round's folder, wherever the rounds folder is now. `record` writes a report's findings (`open`, or
|
|
767
794
|
`question`) with copies of their scripts and of the screenshot each names,
|
|
768
795
|
and warns about a copied script that names the repository's or the round's
|
|
769
796
|
absolute paths.
|
|
@@ -16,7 +16,7 @@ var __commonJS = (cb, mod) => function __require2() {
|
|
|
16
16
|
var define_RADICAL_BUILD_default;
|
|
17
17
|
var init_define_RADICAL_BUILD = __esm({
|
|
18
18
|
"<define:__RADICAL_BUILD__>"() {
|
|
19
|
-
define_RADICAL_BUILD_default = { version: "0.
|
|
19
|
+
define_RADICAL_BUILD_default = { version: "0.6.0", commit: "6b160c8", date: "2026-11-24", release: true };
|
|
20
20
|
}
|
|
21
21
|
});
|
|
22
22
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
init_define_RADICAL_BUILD
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-CWKX2ULF.js";
|
|
4
4
|
|
|
5
5
|
// ../../packages/assay/node_modules/unpdf/dist/index.mjs
|
|
6
6
|
init_define_RADICAL_BUILD();
|
|
@@ -41,7 +41,7 @@ async function resolvePDFJSImports(pdfjsResolver, { force = false } = {}) {
|
|
|
41
41
|
}
|
|
42
42
|
}
|
|
43
43
|
try {
|
|
44
|
-
const { resolvePDFJS } = await import("./pdfjs-
|
|
44
|
+
const { resolvePDFJS } = await import("./pdfjs-ABY3IR7F.js");
|
|
45
45
|
resolvedModule = await resolvePDFJS();
|
|
46
46
|
} catch (error) {
|
|
47
47
|
console.error(error);
|