@radicaltools/cli 0.5.0 → 0.6.1

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 CHANGED
@@ -275,7 +275,10 @@ the base Studio compares with follows the branch checked out, and then
275
275
  `radical check <folder> --from-ci --quiet --detach`, which fetches the test
276
276
  results of CI for the commit checked out in the background (a command of its
277
277
  own, its output closed: a CLI built before `--from-ci` still saves the
278
- base, and without the GitHub CLI nothing is fetched). The line goes
278
+ base, and without the GitHub CLI nothing is fetched). What it found, or why
279
+ it found nothing, is kept in the model folder's `.state/ci-fetch.json`, which
280
+ the Inspector and `radical setup --status` show; CI has to keep its test
281
+ reports as artifacts (see *Test results from CI*). The line goes
279
282
  right after the hook's `#!` line, where an `exit` or `exec` further down
280
283
  cannot skip it; what the hooks already do stays. Each model folder of the
281
284
  repository has a line of its own, a second install adds nothing (or brings
@@ -512,14 +515,50 @@ test reports in it. Which artifacts hold reports is set in the repository's
512
515
  { "ci": { "artifacts": ["test-reports", "e2e-report"] } }
513
516
  ```
514
517
 
515
- (every artifact of the run without it). The results are kept in
518
+ (every artifact of the run without it). **CI has to keep the reports as
519
+ artifacts of the run**: reports kept elsewhere (S3, say) are not found. A
520
+ GitHub Actions step after the tests:
521
+
522
+ ```yaml
523
+ - uses: actions/upload-artifact@v4
524
+ if: always() # failed tests are results too
525
+ with:
526
+ name: test-reports # as "ci": { "artifacts": [...] } names it
527
+ path: reports/ # the Vitest/Jest/Playwright JSON or JUnit XML,
528
+ # and the radical sense --out files
529
+ ```
530
+
531
+ The results are kept in
516
532
  `.state/test-results.json` with the commit they stand for, the runs, when
517
533
  each ran and how many commits HEAD is past it, which the Inspector's *Tests*
518
- chip shows; the same runs a second time download nothing. Results read with
519
- `--report` at that commit or a later one are kept, and checked. `--quiet`
520
- prints nothing; `--detach` starts the check in the background and returns,
521
- as the git hooks of `radical hooks install` do after every checkout, commit,
522
- pull and rebase.
534
+ chip shows (*· CI*, or *· local* for results read with `--report`); the same
535
+ runs a second time download nothing. Results read with `--report` at that
536
+ commit or a later one are kept, and checked. The `radical-metrics/1` files
537
+ in the artifacts (what `radical sense --out` wrote in CI) are added to
538
+ `.state/measurements.json` as `--metrics` adds them, each with the run and
539
+ commit in its context (`ci.run`, `ci.commit`), so metrics measured in CI
540
+ reach Studio too. `--quiet` prints nothing; `--detach` starts the check in
541
+ the background and returns, as the git hooks of `radical hooks install` do
542
+ after every checkout, commit, pull and rebase.
543
+
544
+ What each fetch found is kept in `.state/ci-fetch.json`, with `--quiet` too:
545
+ the runs and what was read, or why nothing was (no `gh`, no run with
546
+ artifacts, no test report in them). The Inspector marks its *Tests* chip
547
+ when the last fetch found no test results and says what it said, and
548
+ `radical setup --status` prints the last fetch.
549
+
550
+ ### A check that keeps nothing
551
+
552
+ ```sh
553
+ radical check path/to/model --report broken.json --no-keep
554
+ ```
555
+
556
+ `--no-keep` reads the reports and measurements given and judges with them,
557
+ but writes nothing beside the model: neither `.state/test-results.json` nor
558
+ `.state/measurements.json` (nor, with `--from-ci`, `.state/ci-fetch.json`).
559
+ For a check used as a gate whose verdict Studio should not show, such as a
560
+ test of the gate on a deliberately broken report. `--evidence`, `--ratchet`
561
+ and `--adopt` still write the file they name.
523
562
 
524
563
  ### Measured values
525
564
 
@@ -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.5.0", commit: "166db2f", date: "2026-11-16", release: true };
19
+ define_RADICAL_BUILD_default = { version: "0.6.1", commit: "ce06b9e", date: "2026-11-27", release: true };
20
20
  }
21
21
  });
22
22
 
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  init_define_RADICAL_BUILD
3
- } from "./chunk-J5ULJOOY.js";
3
+ } from "./chunk-SBQRTX3Y.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-SWTQBTNZ.js");
44
+ const { resolvePDFJS } = await import("./pdfjs-WWNLOMK2.js");
45
45
  resolvedModule = await resolvePDFJS();
46
46
  } catch (error) {
47
47
  console.error(error);