@radicaltools/cli 0.3.2 → 0.3.3
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 +4 -5
- package/dist/index.js +4 -3
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -588,11 +588,10 @@ world, seed, path and length that replay it, the steps and what differs.
|
|
|
588
588
|
`--no-known` lets the fuzz files' known failures filter nothing, `--no-shrink`
|
|
589
589
|
reports the first failure as found.
|
|
590
590
|
|
|
591
|
-
A fuzz file is written with the engine,
|
|
592
|
-
|
|
593
|
-
|
|
594
|
-
|
|
595
|
-
scenario or a fitness function can name in its Metrics.
|
|
591
|
+
A fuzz file is written with the engine,
|
|
592
|
+
[`@radicaltools/crucible`](https://www.npmjs.com/package/@radicaltools/crucible). It reports
|
|
593
|
+
a test case per world and one per world and rule (`on the bookstore model: undoRestores
|
|
594
|
+
holds`), which `radical verify` can bind to a scenario or a fitness function.
|
|
596
595
|
|
|
597
596
|
Exit status: 0 every file passed, 1 one failed, 2 radical fuzz could not run.
|
|
598
597
|
|
package/dist/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
|
|
3
3
|
// <define:__RADICAL_BUILD__>
|
|
4
|
-
var define_RADICAL_BUILD_default = { version: "0.3.
|
|
4
|
+
var define_RADICAL_BUILD_default = { version: "0.3.3", commit: "b56a895", date: "2026-11-03", release: true };
|
|
5
5
|
|
|
6
6
|
// src/index.ts
|
|
7
7
|
import { spawn as spawn8 } from "child_process";
|
|
@@ -6692,6 +6692,7 @@ function parseDeps(text3) {
|
|
|
6692
6692
|
});
|
|
6693
6693
|
return { name, dependencies: deps };
|
|
6694
6694
|
}
|
|
6695
|
+
var folderInRepository = (path) => path.replace(/^\.(?:\/|$)|\/$/g, "");
|
|
6695
6696
|
var LATEST = "latest";
|
|
6696
6697
|
var originFor = (name, commit) => `${name}@${commit.slice(0, 7)}`;
|
|
6697
6698
|
function composeFederation(own, deps) {
|
|
@@ -12282,7 +12283,7 @@ async function fetchRef(dir, dep) {
|
|
|
12282
12283
|
return git3(dir, ["rev-parse", "FETCH_HEAD^{commit}"]);
|
|
12283
12284
|
}
|
|
12284
12285
|
async function modelFilesAt(dir, commit, path) {
|
|
12285
|
-
const folder = path
|
|
12286
|
+
const folder = folderInRepository(path);
|
|
12286
12287
|
const tree = folder ? `${commit}:${folder}` : `${commit}^{tree}`;
|
|
12287
12288
|
const listing = await gitOk2(dir, ["ls-tree", "-r", "-z", tree]);
|
|
12288
12289
|
if (listing === null) return {};
|
|
@@ -12400,7 +12401,7 @@ async function fetchAll(root, deps) {
|
|
|
12400
12401
|
}
|
|
12401
12402
|
async function locationOf(dep, home) {
|
|
12402
12403
|
const address = repoAddress(dep.repo, home);
|
|
12403
|
-
const folder = dep.path
|
|
12404
|
+
const folder = folderInRepository(dep.path) || ".";
|
|
12404
12405
|
if (!isAddress(address)) return `file:${await realpath3(join12(address, folder)).catch(() => resolve9(address, folder))}`;
|
|
12405
12406
|
return `${addressKey(address)}#${folder}`;
|
|
12406
12407
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@radicaltools/cli",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.3",
|
|
4
4
|
"description": "Connect coding agents to Radical Markdown architecture models, check, diff and export them, and fuzz a project against them, from the command line.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"homepage": "https://radical.tools",
|