@intellectual-frontiers/libraries 0.0.0-stage → 0.1.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/LICENSE +21 -0
- package/README.md +8 -2
- package/dist/affected.d.ts +28 -0
- package/dist/affected.js +250 -0
- package/dist/changes.d.ts +27 -0
- package/dist/changes.js +470 -0
- package/dist/check.d.ts +15 -0
- package/dist/check.js +198 -0
- package/dist/generate-ontology.d.ts +37 -0
- package/dist/generate-ontology.js +293 -0
- package/dist/generate-workflows.d.ts +12 -0
- package/dist/generate-workflows.js +102 -0
- package/dist/imports/nist-sp-800-53.import.d.ts +33 -0
- package/dist/imports/nist-sp-800-53.import.js +34 -0
- package/dist/imports/schema-org.import.d.ts +33 -0
- package/dist/imports/schema-org.import.js +31 -0
- package/dist/install-bun.d.ts +1 -0
- package/dist/install-bun.js +58 -0
- package/dist/libraries.d.ts +79 -0
- package/dist/libraries.js +386 -0
- package/dist/mod.d.ts +16 -0
- package/dist/mod.js +16 -0
- package/dist/newer.d.ts +27 -0
- package/dist/newer.js +147 -0
- package/dist/oscal-register.d.ts +65 -0
- package/dist/oscal-register.js +344 -0
- package/dist/pack-library.d.ts +47 -0
- package/dist/pack-library.js +498 -0
- package/dist/pins.d.ts +15 -0
- package/dist/pins.js +29 -0
- package/dist/publish-ontology.d.ts +160 -0
- package/dist/publish-ontology.js +227 -0
- package/dist/versions.d.ts +26 -0
- package/dist/versions.js +556 -0
- package/dist/workflows/definitions.d.ts +65 -0
- package/dist/workflows/definitions.js +614 -0
- package/dist/workflows/mod.d.ts +10 -0
- package/dist/workflows/mod.js +10 -0
- package/dist/workflows/model.d.ts +143 -0
- package/dist/workflows/model.js +81 -0
- package/dist/workflows/render.d.ts +9 -0
- package/dist/workflows/render.js +179 -0
- package/package.json +129 -4
- package/src/affected.ts +265 -0
- package/src/changes.ts +546 -0
- package/src/check.ts +223 -0
- package/src/generate-ontology.ts +350 -0
- package/src/generate-workflows.ts +103 -0
- package/src/imports/nist-sp-800-53.import.ts +36 -0
- package/src/imports/schema-org.import.ts +31 -0
- package/src/install-bun.ts +53 -0
- package/src/libraries.ts +385 -0
- package/src/mod.ts +16 -0
- package/src/newer.ts +154 -0
- package/src/oscal-register.ts +443 -0
- package/src/pack-library.ts +522 -0
- package/src/pins.ts +30 -0
- package/src/publish-ontology.ts +354 -0
- package/src/versions.ts +594 -0
- package/src/workflows/definitions.ts +847 -0
- package/src/workflows/mod.ts +30 -0
- package/src/workflows/model.ts +187 -0
- package/src/workflows/render.ts +176 -0
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The import of the controls of NIST SP 800-53 Rev. 5.2.0 that Mizan's specifications cite (commons 0019-mizan-integrations FR-005, FR-006, FR-009, FR-014, 0018-standards-first FR-001):
|
|
3
|
+
* the OSCAL catalog NIST publishes, fetched from the versioned URL of its tagged release and held to the SHA-256 pinned here, so that the control identifiers a specification names
|
|
4
|
+
* are typed values that rest on bytes that cannot change unseen. Its provenance is `nist-sp-800-53.auto.prov.ttl` beside this file. Run
|
|
5
|
+
* `bun commons/mizan/src/integrations/host/import.ts commons/libraries/src/imports/nist-sp-800-53.import.ts` to write the module again, with `--check` to see whether it is current
|
|
6
|
+
* (offline; with `--fetch` it fetches the source and compares fully).
|
|
7
|
+
*
|
|
8
|
+
* The slice is the configuration management controls IFCCM cites (CM-2, CM-3, CM-4, CM-5, CM-9) and the ones the workspace and quality specifications cite (CM-6, CM-7, CM-8,
|
|
9
|
+
* CM-10, SA-10, SI-7, IA-5).
|
|
10
|
+
*
|
|
11
|
+
* Spec: 0001-libraries FR-009
|
|
12
|
+
*
|
|
13
|
+
* @module
|
|
14
|
+
*/
|
|
15
|
+
export declare const manifest: {
|
|
16
|
+
readonly standard: {
|
|
17
|
+
readonly id: "nist-sp-800-53";
|
|
18
|
+
readonly issuer: "National Institute of Standards and Technology";
|
|
19
|
+
readonly name: "NIST SP 800-53 Rev. 5.2.0 (OSCAL catalog)";
|
|
20
|
+
readonly version: "5.2.0";
|
|
21
|
+
readonly location: "https://raw.githubusercontent.com/usnistgov/oscal-content/f0de6d8d8c059d374f15e0ae07508d82e370fc1d/nist.gov/SP800-53/rev5/json/NIST_SP-800-53_rev5_catalog.json";
|
|
22
|
+
readonly license: "Public domain (a work of the United States Government, 17 U.S.C. 105)";
|
|
23
|
+
readonly redistributable: true;
|
|
24
|
+
readonly sha256: "64ca6b4161de51ab6af098a7d101d326f14c95e1abf721396cd8a049e8115eeb";
|
|
25
|
+
};
|
|
26
|
+
readonly source: "https://raw.githubusercontent.com/usnistgov/oscal-content/f0de6d8d8c059d374f15e0ae07508d82e370fc1d/nist.gov/SP800-53/rev5/json/NIST_SP-800-53_rev5_catalog.json";
|
|
27
|
+
readonly latest: "https://raw.githubusercontent.com/usnistgov/oscal-content/main/nist.gov/SP800-53/rev5/json/NIST_SP-800-53_rev5_catalog.json";
|
|
28
|
+
readonly format: "oscal-catalog";
|
|
29
|
+
readonly slice: readonly ["cm-2", "cm-3", "cm-4", "cm-5", "cm-6", "cm-7", "cm-8", "cm-9", "cm-10", "sa-10", "si-7", "ia-5"];
|
|
30
|
+
readonly out: "../../../ontology/src/standards/nist-sp-800-53/controls.auto.ts";
|
|
31
|
+
readonly provOut: "nist-sp-800-53.auto.prov.ttl";
|
|
32
|
+
readonly rdfImport: "@intellectual-frontiers/rdf";
|
|
33
|
+
};
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The import of the controls of NIST SP 800-53 Rev. 5.2.0 that Mizan's specifications cite (commons 0019-mizan-integrations FR-005, FR-006, FR-009, FR-014, 0018-standards-first FR-001):
|
|
3
|
+
* the OSCAL catalog NIST publishes, fetched from the versioned URL of its tagged release and held to the SHA-256 pinned here, so that the control identifiers a specification names
|
|
4
|
+
* are typed values that rest on bytes that cannot change unseen. Its provenance is `nist-sp-800-53.auto.prov.ttl` beside this file. Run
|
|
5
|
+
* `bun commons/mizan/src/integrations/host/import.ts commons/libraries/src/imports/nist-sp-800-53.import.ts` to write the module again, with `--check` to see whether it is current
|
|
6
|
+
* (offline; with `--fetch` it fetches the source and compares fully).
|
|
7
|
+
*
|
|
8
|
+
* The slice is the configuration management controls IFCCM cites (CM-2, CM-3, CM-4, CM-5, CM-9) and the ones the workspace and quality specifications cite (CM-6, CM-7, CM-8,
|
|
9
|
+
* CM-10, SA-10, SI-7, IA-5).
|
|
10
|
+
*
|
|
11
|
+
* Spec: 0001-libraries FR-009
|
|
12
|
+
*
|
|
13
|
+
* @module
|
|
14
|
+
*/
|
|
15
|
+
export const manifest = {
|
|
16
|
+
standard: {
|
|
17
|
+
id: "nist-sp-800-53",
|
|
18
|
+
issuer: "National Institute of Standards and Technology",
|
|
19
|
+
name: "NIST SP 800-53 Rev. 5.2.0 (OSCAL catalog)",
|
|
20
|
+
version: "5.2.0",
|
|
21
|
+
location: "https://raw.githubusercontent.com/usnistgov/oscal-content/f0de6d8d8c059d374f15e0ae07508d82e370fc1d/nist.gov/SP800-53/rev5/json/NIST_SP-800-53_rev5_catalog.json",
|
|
22
|
+
license: "Public domain (a work of the United States Government, 17 U.S.C. 105)",
|
|
23
|
+
redistributable: true,
|
|
24
|
+
sha256: "64ca6b4161de51ab6af098a7d101d326f14c95e1abf721396cd8a049e8115eeb",
|
|
25
|
+
},
|
|
26
|
+
source: "https://raw.githubusercontent.com/usnistgov/oscal-content/f0de6d8d8c059d374f15e0ae07508d82e370fc1d/nist.gov/SP800-53/rev5/json/NIST_SP-800-53_rev5_catalog.json",
|
|
27
|
+
// the URL that always serves the newest release: only `newer.ts` reads it (0018-standards-first FR-014); an import never does (0019-mizan-integrations FR-014)
|
|
28
|
+
latest: "https://raw.githubusercontent.com/usnistgov/oscal-content/main/nist.gov/SP800-53/rev5/json/NIST_SP-800-53_rev5_catalog.json",
|
|
29
|
+
format: "oscal-catalog",
|
|
30
|
+
slice: ["cm-2", "cm-3", "cm-4", "cm-5", "cm-6", "cm-7", "cm-8", "cm-9", "cm-10", "sa-10", "si-7", "ia-5"],
|
|
31
|
+
out: "../../../ontology/src/standards/nist-sp-800-53/controls.auto.ts",
|
|
32
|
+
provOut: "nist-sp-800-53.auto.prov.ttl",
|
|
33
|
+
rdfImport: "@intellectual-frontiers/rdf",
|
|
34
|
+
};
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The import of the slice of schema.org that the packaging ontology specializes (commons 0019-mizan-integrations FR-005, FR-006, FR-009, FR-014): its source is fetched from the
|
|
3
|
+
* versioned URL and held to the SHA-256 pinned here, so that what `schema.auto.ts` says rests on bytes that cannot change unseen, and its provenance is `schema-org.auto.prov.ttl`
|
|
4
|
+
* beside this file. Run `bun commons/mizan/src/integrations/host/import.ts commons/libraries/src/imports/schema-org.import.ts` to write the module again, with `--check` to see whether
|
|
5
|
+
* it is current (offline; with `--fetch` it fetches the source and compares fully).
|
|
6
|
+
*
|
|
7
|
+
* Spec: 0001-libraries FR-009
|
|
8
|
+
*
|
|
9
|
+
* @module
|
|
10
|
+
*/
|
|
11
|
+
export declare const manifest: {
|
|
12
|
+
readonly standard: {
|
|
13
|
+
readonly id: "schema-org";
|
|
14
|
+
readonly issuer: "Schema.org Community Group";
|
|
15
|
+
readonly name: "schema.org";
|
|
16
|
+
readonly version: "30.1";
|
|
17
|
+
readonly location: "https://schema.org/version/30.1/schemaorg-current-https.ttl";
|
|
18
|
+
readonly license: "CC-BY-SA-3.0";
|
|
19
|
+
readonly redistributable: true;
|
|
20
|
+
readonly sha256: "7f15ca89398c4f235f478a4b3b8d1f975d63c5a860b77c8a8fce01f791b7ae2f";
|
|
21
|
+
};
|
|
22
|
+
readonly source: "https://schema.org/version/30.1/schemaorg-current-https.ttl";
|
|
23
|
+
readonly latest: "https://schema.org/version/latest/schemaorg-current-https.ttl";
|
|
24
|
+
readonly format: "turtle";
|
|
25
|
+
readonly namespace: {
|
|
26
|
+
readonly prefix: "schema";
|
|
27
|
+
readonly iri: "https://schema.org/";
|
|
28
|
+
};
|
|
29
|
+
readonly slice: readonly ["Action", "SoftwareApplication", "Thing", "name", "operatingSystem", "processorRequirements", "softwareVersion"];
|
|
30
|
+
readonly out: "../../../ontology/src/supply-chain/packaging/schema.auto.ts";
|
|
31
|
+
readonly provOut: "schema-org.auto.prov.ttl";
|
|
32
|
+
readonly rdfImport: "@intellectual-frontiers/rdf";
|
|
33
|
+
};
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The import of the slice of schema.org that the packaging ontology specializes (commons 0019-mizan-integrations FR-005, FR-006, FR-009, FR-014): its source is fetched from the
|
|
3
|
+
* versioned URL and held to the SHA-256 pinned here, so that what `schema.auto.ts` says rests on bytes that cannot change unseen, and its provenance is `schema-org.auto.prov.ttl`
|
|
4
|
+
* beside this file. Run `bun commons/mizan/src/integrations/host/import.ts commons/libraries/src/imports/schema-org.import.ts` to write the module again, with `--check` to see whether
|
|
5
|
+
* it is current (offline; with `--fetch` it fetches the source and compares fully).
|
|
6
|
+
*
|
|
7
|
+
* Spec: 0001-libraries FR-009
|
|
8
|
+
*
|
|
9
|
+
* @module
|
|
10
|
+
*/
|
|
11
|
+
export const manifest = {
|
|
12
|
+
standard: {
|
|
13
|
+
id: "schema-org",
|
|
14
|
+
issuer: "Schema.org Community Group",
|
|
15
|
+
name: "schema.org",
|
|
16
|
+
version: "30.1",
|
|
17
|
+
location: "https://schema.org/version/30.1/schemaorg-current-https.ttl",
|
|
18
|
+
license: "CC-BY-SA-3.0",
|
|
19
|
+
redistributable: true,
|
|
20
|
+
sha256: "7f15ca89398c4f235f478a4b3b8d1f975d63c5a860b77c8a8fce01f791b7ae2f",
|
|
21
|
+
},
|
|
22
|
+
source: "https://schema.org/version/30.1/schemaorg-current-https.ttl",
|
|
23
|
+
// the URL that always serves the newest version: only `newer.ts` reads it (0018-standards-first FR-014); an import never does (0019-mizan-integrations FR-014)
|
|
24
|
+
latest: "https://schema.org/version/latest/schemaorg-current-https.ttl",
|
|
25
|
+
format: "turtle",
|
|
26
|
+
namespace: { prefix: "schema", iri: "https://schema.org/" },
|
|
27
|
+
slice: ["Action", "SoftwareApplication", "Thing", "name", "operatingSystem", "processorRequirements", "softwareVersion"],
|
|
28
|
+
out: "../../../ontology/src/supply-chain/packaging/schema.auto.ts",
|
|
29
|
+
provOut: "schema-org.auto.prov.ttl",
|
|
30
|
+
rdfImport: "@intellectual-frontiers/rdf",
|
|
31
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Bun at the version commons pins (`BUN_VERSION` and its SHA-256 per platform in `commons/generated/pins.auto.env`, commons
|
|
3
|
+
* 0005-typescript-runtime FR-026), fetched from Bun's release with retries, kept only where its SHA-256 is the pinned one, unpacked by the
|
|
4
|
+
* kernel's own zip reader and put in a folder; nothing but IFC TypeScript itself, so it runs on Node 26 (or Bun) on Linux, macOS
|
|
5
|
+
* and Windows with no shell, no Python and no unzip. CI's `.github/actions/bun` runs it.
|
|
6
|
+
*
|
|
7
|
+
* `node commons/libraries/src/install-bun.ts <folder>` (the folder is required) prints the folder that holds `bun` (or `bun.exe`); with `GITHUB_PATH` set, it is also
|
|
8
|
+
* added there.
|
|
9
|
+
*
|
|
10
|
+
* Spec: 0001-libraries FR-006
|
|
11
|
+
*
|
|
12
|
+
* @module
|
|
13
|
+
*/
|
|
14
|
+
import { formatArchiveError, unzip } from "@intellectual-frontiers/formats/archive";
|
|
15
|
+
import { sha256Of } from "@intellectual-frontiers/crypto/sha256";
|
|
16
|
+
import { chmod, ensureDir, readFile, readTextFile, writeFile, writeTextFile } from "@intellectual-frontiers/system/fs";
|
|
17
|
+
import { downloadVerified, Retries } from "@intellectual-frontiers/net/net";
|
|
18
|
+
import { dirname, fromFileUrl, join, resolve } from "@intellectual-frontiers/system/path";
|
|
19
|
+
import { args, build, env, exit } from "@intellectual-frontiers/system/proc";
|
|
20
|
+
import { bunTarget, readEnvFile } from "./pins.js";
|
|
21
|
+
/** Stop with a message and status 1. */
|
|
22
|
+
function stop(message) {
|
|
23
|
+
console.error(`install-bun: ${message}`);
|
|
24
|
+
return exit(1);
|
|
25
|
+
}
|
|
26
|
+
const ROOT = resolve(dirname(fromFileUrl(import.meta.url)), "..", "..", "..");
|
|
27
|
+
const given = args[0];
|
|
28
|
+
if (given === undefined)
|
|
29
|
+
stop("give the folder to put Bun in");
|
|
30
|
+
const dest = resolve(given);
|
|
31
|
+
const pins = readEnvFile(await readTextFile(join(ROOT, "commons", "generated", "pins.auto.env")));
|
|
32
|
+
const platform = bunTarget(build.os, build.arch);
|
|
33
|
+
if (platform === undefined)
|
|
34
|
+
stop(`Bun has no build for ${build.os} on ${build.arch}`);
|
|
35
|
+
const version = pins.get("BUN_VERSION");
|
|
36
|
+
const sum = sha256Of(pins.get(`BUN_SHA256_${platform.key}`) ?? "");
|
|
37
|
+
if (version === undefined || sum === undefined)
|
|
38
|
+
stop(`commons pins no Bun for ${platform.key}`);
|
|
39
|
+
const retries = new Retries({ tries: 5, base: 2, cap: 30 }, (line) => console.error(line));
|
|
40
|
+
const url = `https://github.com/oven-sh/bun/releases/download/bun-v${version}/bun-${platform.target}.zip`;
|
|
41
|
+
const zip = await downloadVerified(retries, url, sum, join(dest, "cache"));
|
|
42
|
+
if (zip.kind === "err")
|
|
43
|
+
stop(zip.error);
|
|
44
|
+
const files = await unzip(await readFile(zip.value));
|
|
45
|
+
if (files.kind === "err")
|
|
46
|
+
stop(formatArchiveError(files.error));
|
|
47
|
+
const exe = build.os === "windows" ? "bun.exe" : "bun";
|
|
48
|
+
const bytes = files.value.get(`bun-${platform.target}/${exe}`);
|
|
49
|
+
if (bytes === undefined)
|
|
50
|
+
stop(`the zip holds no bun-${platform.target}/${exe}`);
|
|
51
|
+
const bin = join(dest, `bun-${version}`);
|
|
52
|
+
await ensureDir(bin);
|
|
53
|
+
await writeFile(join(bin, exe), bytes);
|
|
54
|
+
await chmod(join(bin, exe), 0o755);
|
|
55
|
+
const githubPath = env.get("GITHUB_PATH");
|
|
56
|
+
if (githubPath !== undefined && githubPath !== "")
|
|
57
|
+
await writeTextFile(githubPath, `${bin}\n`, { append: true });
|
|
58
|
+
console.log(bin);
|
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
import { type Result } from "@intellectual-frontiers/core";
|
|
2
|
+
import { type LevelKey } from "@intellectual-frontiers/mizan/levels";
|
|
3
|
+
/** The name of a library's manifest in its folder. */
|
|
4
|
+
export declare const LIBRARY_FILE = "library.ts";
|
|
5
|
+
/** The specification that holds the requirements of the libraries, and the first number of the requirements it generates. */
|
|
6
|
+
export declare const LIBRARIES_SPEC = "0027-commons-libraries";
|
|
7
|
+
/** The first requirement number of the section "The libraries", which is generated (0027-commons-libraries FR-011). */
|
|
8
|
+
export declare const FIRST_GENERATED = 101;
|
|
9
|
+
/** The marker that opens the generated section, and the one that closes it. */
|
|
10
|
+
export declare const BEGIN = "<!-- libraries:begin -->";
|
|
11
|
+
export declare const END = "<!-- libraries:end -->";
|
|
12
|
+
/** A library's manifest. */
|
|
13
|
+
export type Library = {
|
|
14
|
+
/** The folder's name, and the package's: `@intellectual-frontiers/<name>`. */
|
|
15
|
+
readonly name: string;
|
|
16
|
+
/** The conformance level the library is held to (`L1` where the manifest declares none). */
|
|
17
|
+
readonly level: LevelKey;
|
|
18
|
+
/** The path of its spec kit from its folder; none at L0. */
|
|
19
|
+
readonly specKit?: string;
|
|
20
|
+
/** The command that proves it, run from its folder with no argument. */
|
|
21
|
+
readonly verify: string;
|
|
22
|
+
/** Its version: the package's. */
|
|
23
|
+
readonly version: string;
|
|
24
|
+
/** The keys of the package's `exports`. */
|
|
25
|
+
readonly exports: readonly string[];
|
|
26
|
+
/** What it is, in a sentence, for the requirement made of it. */
|
|
27
|
+
readonly summary?: string;
|
|
28
|
+
/** Where it is published: always `github` (the GitHub package registry of the organization), and `npm` as well where a decision about that package has made it so (FR-015 and FR-016). */
|
|
29
|
+
readonly distribution: readonly Registry[];
|
|
30
|
+
};
|
|
31
|
+
/** The registries a library may be published to: the kinds only, never a host or a credential (0027-commons-libraries FR-018). */
|
|
32
|
+
export declare const REGISTRIES: readonly ["github", "npm"];
|
|
33
|
+
export type Registry = (typeof REGISTRIES)[number];
|
|
34
|
+
/** Where a manifest that declares no distribution is published. */
|
|
35
|
+
export declare const DEFAULT_DISTRIBUTION: readonly Registry[];
|
|
36
|
+
/** The manifest read from the text of its file: `export const library = { ... }` and no other export, read as data and never run (0027-commons-libraries FR-012). */
|
|
37
|
+
export declare function decodeLibrarySource(source: string): Result<Library, string>;
|
|
38
|
+
/** A library found in the folder of commons: its folder and what its manifest says, or why it cannot be read. */
|
|
39
|
+
export type Found = {
|
|
40
|
+
readonly dir: string;
|
|
41
|
+
readonly library: Library;
|
|
42
|
+
} | {
|
|
43
|
+
readonly dir: string;
|
|
44
|
+
readonly problem: string;
|
|
45
|
+
};
|
|
46
|
+
/** The manifests of `commons/*`, in the order of the folders' names: every folder that holds a `library.ts`. */
|
|
47
|
+
export declare function readLibraries(repo: string): readonly Found[];
|
|
48
|
+
/**
|
|
49
|
+
* What is wrong where a manifest and its folder disagree (0027-commons-libraries FR-013), one sentence each: a folder with a spec kit and no manifest, a manifest that cannot be read, that names another
|
|
50
|
+
* folder, a level above L0 with no spec kit, a spec kit that is not there, a package of another name, a version that is not the package's, exports that are not the package's, and a verify that is no script of the package.
|
|
51
|
+
*/
|
|
52
|
+
export declare function manifestFindings(repo: string): readonly string[];
|
|
53
|
+
/** The requirement of a library, as the section "The libraries" holds it (FR-014): one line. */
|
|
54
|
+
export declare function requirementOf(id: string, l: Library): string;
|
|
55
|
+
/** The row of `enforcement.tsv` of a library's requirement. */
|
|
56
|
+
export declare function rowOf(id: string, l: Library): string;
|
|
57
|
+
/** The ids the section already gives each library, by name, read from its text between the markers. */
|
|
58
|
+
export declare function idsIn(spec: string): ReadonlyMap<string, string>;
|
|
59
|
+
/** The id each library has: the one it had, or the next number after the greatest. */
|
|
60
|
+
export declare function idsFor(libraries: readonly Library[], had: ReadonlyMap<string, string>): ReadonlyMap<string, string>;
|
|
61
|
+
/** The text of the specification and of the register, made again from the libraries: nothing where the specification has no markers. */
|
|
62
|
+
export declare function generated(spec: string, enforcement: string, libraries: readonly Library[]): Result<{
|
|
63
|
+
readonly spec: string;
|
|
64
|
+
readonly enforcement: string;
|
|
65
|
+
}, string>;
|
|
66
|
+
/** The files that are not what the manifests make (relative to the repository), and what is wrong with the manifests; with `write`, the files are written. */
|
|
67
|
+
export declare function synchronize(repo: string, write: boolean): {
|
|
68
|
+
readonly stale: readonly string[];
|
|
69
|
+
readonly problems: readonly string[];
|
|
70
|
+
};
|
|
71
|
+
/** The result of one library's `verify`. */
|
|
72
|
+
export type Verified = {
|
|
73
|
+
readonly name: string;
|
|
74
|
+
readonly code: number;
|
|
75
|
+
};
|
|
76
|
+
/** Runs the `verify` of every library a manifest declares, each from its own folder, and gives each status (0028-conformance-levels FR-012). */
|
|
77
|
+
export declare function verifyAll(repo: string): Promise<readonly Verified[]>;
|
|
78
|
+
/** The command line. Returns the exit status: 0, or 1 where a file is not what the manifests make or a manifest and its folder disagree. */
|
|
79
|
+
export declare function main(argv: readonly string[]): number;
|