@codyswann/lisa 8.3.0 → 8.5.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/all/copy-overwrite/scripts/lib/private-key-redaction.d.mts +4 -0
- package/all/copy-overwrite/scripts/lib/private-key-redaction.mjs +59 -0
- package/all/copy-overwrite/scripts/lisa-gates.mjs +1 -0
- package/all/copy-overwrite/scripts/lisa-hooks/block-direct-issue-create.sh +4 -1
- package/all/copy-overwrite/scripts/lisa-hooks/worktree-binding-guard.mjs +56 -1
- package/all/copy-overwrite/scripts/lisa-run-gates.mjs +17 -14
- package/all/copy-overwrite/scripts/npm-updater-helper-graph.json +2 -2
- package/cdk/package-lisa/package.lisa.json +1 -1
- package/dist/cli/confined-project-read.d.ts +2 -1
- package/dist/cli/confined-project-read.d.ts.map +1 -1
- package/dist/cli/confined-project-read.js +22 -5
- package/dist/cli/confined-project-read.js.map +1 -1
- package/dist/cli/gh-cli.d.ts +2 -1
- package/dist/cli/gh-cli.d.ts.map +1 -1
- package/dist/cli/gh-cli.js +5 -3
- package/dist/cli/gh-cli.js.map +1 -1
- package/dist/cli/github-read-issue-cmd.d.ts +62 -0
- package/dist/cli/github-read-issue-cmd.d.ts.map +1 -0
- package/dist/cli/github-read-issue-cmd.js +121 -0
- package/dist/cli/github-read-issue-cmd.js.map +1 -0
- package/dist/cli/github-reader-relationships.d.ts +41 -0
- package/dist/cli/github-reader-relationships.d.ts.map +1 -0
- package/dist/cli/github-reader-relationships.js +218 -0
- package/dist/cli/github-reader-relationships.js.map +1 -0
- package/dist/cli/github-reader-target.d.ts +24 -0
- package/dist/cli/github-reader-target.d.ts.map +1 -0
- package/dist/cli/github-reader-target.js +95 -0
- package/dist/cli/github-reader-target.js.map +1 -0
- package/dist/cli/github-reader-wire.d.ts +72 -0
- package/dist/cli/github-reader-wire.d.ts.map +1 -0
- package/dist/cli/github-reader-wire.js +125 -0
- package/dist/cli/github-reader-wire.js.map +1 -0
- package/dist/cli/index.d.ts.map +1 -1
- package/dist/cli/index.js +2 -2
- package/dist/cli/index.js.map +1 -1
- package/dist/controls/carrier-edits.d.ts +1 -1
- package/dist/controls/carrier-edits.d.ts.map +1 -1
- package/dist/controls/carrier-edits.js +13 -3
- package/dist/controls/carrier-edits.js.map +1 -1
- package/dist/controls/carriers.d.ts.map +1 -1
- package/dist/controls/carriers.js +7 -2
- package/dist/controls/carriers.js.map +1 -1
- package/dist/controls/checks-binding.d.ts.map +1 -1
- package/dist/controls/checks-binding.js +13 -7
- package/dist/controls/checks-binding.js.map +1 -1
- package/dist/controls/commands/attest-before-enforce.d.ts.map +1 -1
- package/dist/controls/commands/attest-before-enforce.js +4 -5
- package/dist/controls/commands/attest-before-enforce.js.map +1 -1
- package/dist/controls/commands/attest-workspace.d.ts.map +1 -1
- package/dist/controls/commands/attest-workspace.js +3 -1
- package/dist/controls/commands/attest-workspace.js.map +1 -1
- package/dist/controls/commands/declaration-check.d.ts.map +1 -1
- package/dist/controls/commands/declaration-check.js +7 -4
- package/dist/controls/commands/declaration-check.js.map +1 -1
- package/dist/controls/commands/proof-check.js +1 -1
- package/dist/controls/commands/proof-check.js.map +1 -1
- package/dist/controls/commands/seed.d.ts +1 -9
- package/dist/controls/commands/seed.d.ts.map +1 -1
- package/dist/controls/commands/seed.js +72 -65
- package/dist/controls/commands/seed.js.map +1 -1
- package/dist/controls/configure-road.d.ts +2 -0
- package/dist/controls/configure-road.d.ts.map +1 -1
- package/dist/controls/configure-road.js +18 -14
- package/dist/controls/configure-road.js.map +1 -1
- package/dist/controls/enforce-entry-outcome.d.ts +2 -1
- package/dist/controls/enforce-entry-outcome.d.ts.map +1 -1
- package/dist/controls/enforce-entry-outcome.js +17 -15
- package/dist/controls/enforce-entry-outcome.js.map +1 -1
- package/dist/controls/enforce-points.d.ts +2 -0
- package/dist/controls/enforce-points.d.ts.map +1 -1
- package/dist/controls/enforce-points.js +4 -1
- package/dist/controls/enforce-points.js.map +1 -1
- package/dist/controls/enforce-report.d.ts.map +1 -1
- package/dist/controls/enforce-report.js +6 -1
- package/dist/controls/enforce-report.js.map +1 -1
- package/dist/controls/evidence-redact.d.ts.map +1 -1
- package/dist/controls/evidence-redact.js +11 -6
- package/dist/controls/evidence-redact.js.map +1 -1
- package/dist/controls/gates-declaration.d.ts.map +1 -1
- package/dist/controls/gates-declaration.js +6 -1
- package/dist/controls/gates-declaration.js.map +1 -1
- package/dist/controls/proof-copy-preparation.d.ts +33 -0
- package/dist/controls/proof-copy-preparation.d.ts.map +1 -0
- package/dist/controls/proof-copy-preparation.js +159 -0
- package/dist/controls/proof-copy-preparation.js.map +1 -0
- package/dist/controls/proof-copy-prepared-state.d.ts +33 -0
- package/dist/controls/proof-copy-prepared-state.d.ts.map +1 -0
- package/dist/controls/proof-copy-prepared-state.js +117 -0
- package/dist/controls/proof-copy-prepared-state.js.map +1 -0
- package/dist/controls/proof-copy-workspace.d.ts.map +1 -1
- package/dist/controls/proof-copy-workspace.js +17 -4
- package/dist/controls/proof-copy-workspace.js.map +1 -1
- package/dist/controls/proof-copy.d.ts +5 -0
- package/dist/controls/proof-copy.d.ts.map +1 -1
- package/dist/controls/proof-copy.js +17 -15
- package/dist/controls/proof-copy.js.map +1 -1
- package/dist/controls/proof-patch.d.ts +12 -0
- package/dist/controls/proof-patch.d.ts.map +1 -1
- package/dist/controls/proof-patch.js +28 -0
- package/dist/controls/proof-patch.js.map +1 -1
- package/dist/controls/proof-preparation-declaration.d.ts +15 -0
- package/dist/controls/proof-preparation-declaration.d.ts.map +1 -0
- package/dist/controls/proof-preparation-declaration.js +57 -0
- package/dist/controls/proof-preparation-declaration.js.map +1 -0
- package/dist/controls/proof-tools.d.ts +7 -4
- package/dist/controls/proof-tools.d.ts.map +1 -1
- package/dist/controls/proof-tools.js +1 -1
- package/dist/controls/proof-tools.js.map +1 -1
- package/dist/controls/register-drift.d.ts.map +1 -1
- package/dist/controls/register-drift.js +4 -3
- package/dist/controls/register-drift.js.map +1 -1
- package/dist/controls/register-evidence-rule.d.ts +2 -0
- package/dist/controls/register-evidence-rule.d.ts.map +1 -1
- package/dist/controls/register-evidence-rule.js +8 -7
- package/dist/controls/register-evidence-rule.js.map +1 -1
- package/dist/controls/register-rules.d.ts +2 -0
- package/dist/controls/register-rules.d.ts.map +1 -1
- package/dist/controls/register-rules.js.map +1 -1
- package/dist/controls/register-types.d.ts +2 -4
- package/dist/controls/register-types.d.ts.map +1 -1
- package/dist/controls/register-types.js.map +1 -1
- package/dist/controls/register.d.ts +2 -0
- package/dist/controls/register.d.ts.map +1 -1
- package/dist/controls/register.js +3 -1
- package/dist/controls/register.js.map +1 -1
- package/dist/controls/secret-scan.d.ts.map +1 -1
- package/dist/controls/secret-scan.js +7 -5
- package/dist/controls/secret-scan.js.map +1 -1
- package/dist/controls/secret-shapes.d.ts +7 -7
- package/dist/controls/secret-shapes.d.ts.map +1 -1
- package/dist/controls/secret-shapes.js +7 -18
- package/dist/controls/secret-shapes.js.map +1 -1
- package/dist/controls/shipped-parts.d.ts +89 -0
- package/dist/controls/shipped-parts.d.ts.map +1 -0
- package/dist/controls/shipped-parts.js +233 -0
- package/dist/controls/shipped-parts.js.map +1 -0
- package/dist/core/lisa-owned-hash-ledger.json +38 -0
- package/dist/core/nightly-e2e-guard-behavior-certificate.js +2 -2
- package/dist/core/upstream-evidence-manifest.json +90 -23
- package/dist/strategies/package-lisa-host-pins.d.ts +7 -12
- package/dist/strategies/package-lisa-host-pins.d.ts.map +1 -1
- package/dist/strategies/package-lisa-host-pins.js +29 -30
- package/dist/strategies/package-lisa-host-pins.js.map +1 -1
- package/dist/strategies/package-lisa-range-intersection.d.ts +8 -0
- package/dist/strategies/package-lisa-range-intersection.d.ts.map +1 -0
- package/dist/strategies/package-lisa-range-intersection.js +73 -0
- package/dist/strategies/package-lisa-range-intersection.js.map +1 -0
- package/harper-fabric/package-lisa/package.lisa.json +3 -2
- package/package.json +4 -4
- package/phaser/package-lisa/package.lisa.json +3 -2
- package/plugins/lisa/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa/.codex-plugin/plugin.json +1 -1
- package/plugins/lisa/.codex-plugin/skills/lisa-attest/SKILL.md +12 -2
- package/plugins/lisa/.codex-plugin/skills/lisa-configure/SKILL.md +27 -13
- package/plugins/lisa/.codex-plugin/skills/lisa-github-read-issue/SKILL.md +22 -106
- package/plugins/lisa/.codex-plugin/skills/lisa-persist-learning/SKILL.md +37 -5
- package/plugins/lisa/.codex-plugin/skills/lisa-session-manager/SKILL.md +9 -10
- package/plugins/lisa/.codex-plugin/skills/lisa-session-manager/scripts/answer-record.mjs +24 -20
- package/plugins/lisa/.codex-plugin/skills/lisa-session-manager/scripts/cli-answer-record.mjs +3 -1
- package/plugins/lisa/hooks/block-direct-issue-create.sh +4 -1
- package/plugins/lisa/hooks/worktree-binding-guard.mjs +56 -1
- package/plugins/lisa/skills/lisa-attest/SKILL.md +12 -2
- package/plugins/lisa/skills/lisa-configure/SKILL.md +27 -13
- package/plugins/lisa/skills/lisa-github-read-issue/SKILL.md +22 -106
- package/plugins/lisa/skills/lisa-persist-learning/SKILL.md +37 -5
- package/plugins/lisa/skills/lisa-session-manager/SKILL.md +9 -10
- package/plugins/lisa/skills/lisa-session-manager/scripts/answer-record.mjs +24 -20
- package/plugins/lisa/skills/lisa-session-manager/scripts/cli-answer-record.mjs +3 -1
- package/plugins/lisa-agy/hooks/block-direct-issue-create.sh +4 -1
- package/plugins/lisa-agy/plugin.json +1 -1
- package/plugins/lisa-agy/skills/lisa-attest/SKILL.md +12 -2
- package/plugins/lisa-agy/skills/lisa-configure/SKILL.md +27 -13
- package/plugins/lisa-agy/skills/lisa-github-read-issue/SKILL.md +22 -106
- package/plugins/lisa-agy/skills/lisa-persist-learning/SKILL.md +37 -5
- package/plugins/lisa-agy/skills/lisa-session-manager/SKILL.md +9 -10
- package/plugins/lisa-agy/skills/lisa-session-manager/scripts/answer-record.mjs +24 -20
- package/plugins/lisa-agy/skills/lisa-session-manager/scripts/cli-answer-record.mjs +3 -1
- package/plugins/lisa-cdk/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-cdk/.codex-plugin/plugin.json +1 -1
- package/plugins/lisa-cdk-agy/plugin.json +1 -1
- package/plugins/lisa-cdk-copilot/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-cdk-cursor/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-cdk-devin/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-cdk-devin/.devin-plugin/plugin.json +1 -1
- package/plugins/lisa-copilot/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-copilot/hooks/block-direct-issue-create.sh +4 -1
- package/plugins/lisa-copilot/hooks/worktree-binding-guard.mjs +56 -1
- package/plugins/lisa-copilot/skills/lisa-attest/SKILL.md +12 -2
- package/plugins/lisa-copilot/skills/lisa-configure/SKILL.md +27 -13
- package/plugins/lisa-copilot/skills/lisa-github-read-issue/SKILL.md +22 -106
- package/plugins/lisa-copilot/skills/lisa-persist-learning/SKILL.md +37 -5
- package/plugins/lisa-copilot/skills/lisa-session-manager/SKILL.md +9 -10
- package/plugins/lisa-copilot/skills/lisa-session-manager/scripts/answer-record.mjs +24 -20
- package/plugins/lisa-copilot/skills/lisa-session-manager/scripts/cli-answer-record.mjs +3 -1
- package/plugins/lisa-cursor/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-cursor/hooks/block-direct-issue-create.sh +4 -1
- package/plugins/lisa-cursor/hooks/worktree-binding-guard.mjs +56 -1
- package/plugins/lisa-cursor/skills/lisa-attest/SKILL.md +12 -2
- package/plugins/lisa-cursor/skills/lisa-configure/SKILL.md +27 -13
- package/plugins/lisa-cursor/skills/lisa-github-read-issue/SKILL.md +22 -106
- package/plugins/lisa-cursor/skills/lisa-persist-learning/SKILL.md +37 -5
- package/plugins/lisa-cursor/skills/lisa-session-manager/SKILL.md +9 -10
- package/plugins/lisa-cursor/skills/lisa-session-manager/scripts/answer-record.mjs +24 -20
- package/plugins/lisa-cursor/skills/lisa-session-manager/scripts/cli-answer-record.mjs +3 -1
- package/plugins/lisa-devin/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-devin/.devin-plugin/plugin.json +1 -1
- package/plugins/lisa-devin/hooks/block-direct-issue-create.sh +4 -1
- package/plugins/lisa-devin/hooks/worktree-binding-guard.mjs +56 -1
- package/plugins/lisa-devin/skills/lisa-attest/SKILL.md +12 -2
- package/plugins/lisa-devin/skills/lisa-configure/SKILL.md +27 -13
- package/plugins/lisa-devin/skills/lisa-github-read-issue/SKILL.md +22 -106
- package/plugins/lisa-devin/skills/lisa-persist-learning/SKILL.md +37 -5
- package/plugins/lisa-devin/skills/lisa-session-manager/SKILL.md +9 -10
- package/plugins/lisa-devin/skills/lisa-session-manager/scripts/answer-record.mjs +24 -20
- package/plugins/lisa-devin/skills/lisa-session-manager/scripts/cli-answer-record.mjs +3 -1
- package/plugins/lisa-expo/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-expo/.codex-plugin/plugin.json +1 -1
- package/plugins/lisa-expo-agy/plugin.json +1 -1
- package/plugins/lisa-expo-copilot/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-expo-cursor/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-expo-devin/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-expo-devin/.devin-plugin/plugin.json +1 -1
- package/plugins/lisa-harper-fabric/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-harper-fabric/.codex-plugin/plugin.json +1 -1
- package/plugins/lisa-harper-fabric-agy/plugin.json +1 -1
- package/plugins/lisa-harper-fabric-copilot/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-harper-fabric-cursor/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-harper-fabric-devin/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-harper-fabric-devin/.devin-plugin/plugin.json +1 -1
- package/plugins/lisa-nestjs/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-nestjs/.codex-plugin/plugin.json +1 -1
- package/plugins/lisa-nestjs-agy/plugin.json +1 -1
- package/plugins/lisa-nestjs-copilot/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-nestjs-cursor/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-nestjs-devin/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-nestjs-devin/.devin-plugin/plugin.json +1 -1
- package/plugins/lisa-phaser/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-phaser/.codex-plugin/plugin.json +1 -1
- package/plugins/lisa-phaser-agy/plugin.json +1 -1
- package/plugins/lisa-phaser-copilot/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-phaser-cursor/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-phaser-devin/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-phaser-devin/.devin-plugin/plugin.json +1 -1
- package/plugins/lisa-rails/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-rails/.codex-plugin/plugin.json +1 -1
- package/plugins/lisa-rails-agy/plugin.json +1 -1
- package/plugins/lisa-rails-copilot/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-rails-cursor/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-rails-devin/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-rails-devin/.devin-plugin/plugin.json +1 -1
- package/plugins/lisa-typescript/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-typescript/.codex-plugin/plugin.json +1 -1
- package/plugins/lisa-typescript-agy/plugin.json +1 -1
- package/plugins/lisa-typescript-copilot/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-typescript-cursor/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-typescript-devin/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-typescript-devin/.devin-plugin/plugin.json +1 -1
- package/plugins/lisa-wiki/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-wiki/.codex-plugin/plugin.json +1 -1
- package/plugins/lisa-wiki-agy/plugin.json +1 -1
- package/plugins/lisa-wiki-copilot/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-wiki-cursor/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-wiki-devin/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-wiki-devin/.devin-plugin/plugin.json +1 -1
- package/plugins/src/base/hooks/block-direct-issue-create.sh +4 -1
- package/plugins/src/base/hooks/worktree-binding-guard.mjs +56 -1
- package/plugins/src/base/skills/lisa-attest/SKILL.md +12 -2
- package/plugins/src/base/skills/lisa-configure/SKILL.md +27 -13
- package/plugins/src/base/skills/lisa-github-read-issue/SKILL.md +22 -106
- package/plugins/src/base/skills/lisa-persist-learning/SKILL.md +37 -5
- package/plugins/src/base/skills/lisa-session-manager/SKILL.md +9 -10
- package/plugins/src/base/skills/lisa-session-manager/scripts/answer-record.mjs +24 -20
- package/plugins/src/base/skills/lisa-session-manager/scripts/cli-answer-record.mjs +3 -1
- package/rails/copy-overwrite/scripts/check-nightly-e2e-health.mjs +5115 -0
- package/scripts/check-derived-artifacts.mjs +1 -0
- package/scripts/generate-nightly-e2e-guard-certificate.mjs +15 -1
- package/scripts/lib/phrase-tests/redact.mjs +3 -8
- package/scripts/two-channel-couplings.json +5 -3
- package/typescript/copy-overwrite/.prettierignore +2 -0
- package/typescript/copy-overwrite/scripts/lisa-typecheck.mjs +82 -0
- package/typescript/package-lisa/package.lisa.json +3 -2
|
@@ -2,15 +2,15 @@
|
|
|
2
2
|
* `lisa controls seed [path]`: say which road the configure step takes for a
|
|
3
3
|
* repository and, on the paved road, declare the checks Lisa ships for it.
|
|
4
4
|
*
|
|
5
|
-
*
|
|
6
|
-
* type,
|
|
7
|
-
*
|
|
5
|
+
* When the whole repository or every audited folder has a supported project
|
|
6
|
+
* type, the checks come from the shipped gate registry. This command declares
|
|
7
|
+
* them in the `gates` block of
|
|
8
8
|
* `.lisa.config.json` with the same seeding `lisa apply` uses (`seedGates` in
|
|
9
9
|
* the shipped gate registry), which declares a check only when the task that
|
|
10
10
|
* runs it is a script the repository actually has, and never changes a
|
|
11
11
|
* declaration that is already there. A supported repository that has none of
|
|
12
|
-
* those tasks yet gets nothing declared
|
|
13
|
-
*
|
|
12
|
+
* those tasks yet gets nothing declared. Folder checks use each part's own
|
|
13
|
+
* task runner and scope. A second run declares nothing new.
|
|
14
14
|
*
|
|
15
15
|
* Anywhere else it writes nothing and says so: the checks are then declared
|
|
16
16
|
* from what the audit found, by the configure step, one decision at a time.
|
|
@@ -29,7 +29,6 @@
|
|
|
29
29
|
import { readFile } from "node:fs/promises";
|
|
30
30
|
import path from "node:path";
|
|
31
31
|
import { importGateRegistry } from "../../cli/gate-registry-source.js";
|
|
32
|
-
import { createDetectorRegistry } from "../../detection/index.js";
|
|
33
32
|
import { detectRunner } from "../../migrations/ensure-seeded-gates.js";
|
|
34
33
|
import { isJsonObject } from "../../sync/json-path.js";
|
|
35
34
|
import { writeJson } from "../../utils/json-utils.js";
|
|
@@ -37,22 +36,12 @@ import { loadAuditReport, pathKind, resolveRepositoryRoot, } from "../audit-repo
|
|
|
37
36
|
import { AUDIT_REPORT_JSON_PATH } from "../audit-report.js";
|
|
38
37
|
import { decideConfigureRoad } from "../configure-road.js";
|
|
39
38
|
import { GATES_DECLARATION_PATH, readGatesDeclaration, } from "../gates-declaration.js";
|
|
40
|
-
import {
|
|
39
|
+
import { WHOLE_REPOSITORY_SCOPE } from "../register-types.js";
|
|
40
|
+
import { detectSupportedTypes, MANIFEST_PATH, planShippedPartGates, readProjectScripts, readShippedFolder, } from "../shipped-parts.js";
|
|
41
41
|
/** The subcommand's name under `lisa controls`. */
|
|
42
42
|
export const SEED_COMMAND = "seed";
|
|
43
|
-
/** The file a repository's tasks are read from. */
|
|
44
|
-
const MANIFEST_PATH = "package.json";
|
|
45
43
|
/** The version of {@link SeedOutput}. A changed shape gets a new one. */
|
|
46
44
|
export const SEED_SCHEMA_VERSION = 1;
|
|
47
|
-
/**
|
|
48
|
-
* Detect the supported project types at a folder, parents included.
|
|
49
|
-
* @param root - Real path of the repository
|
|
50
|
-
* @returns The types, in Lisa's own order; empty when it is none of them
|
|
51
|
-
*/
|
|
52
|
-
async function detectSupportedTypes(root) {
|
|
53
|
-
const registry = createDetectorRegistry();
|
|
54
|
-
return registry.expandAndOrderTypes(await registry.detectAll(root));
|
|
55
|
-
}
|
|
56
45
|
/**
|
|
57
46
|
* Read the parts the audit report names.
|
|
58
47
|
* @param root - Real path of the repository
|
|
@@ -105,41 +94,6 @@ async function readConfig(root) {
|
|
|
105
94
|
};
|
|
106
95
|
}
|
|
107
96
|
}
|
|
108
|
-
/**
|
|
109
|
-
* Read the scripts of the repository's `package.json`.
|
|
110
|
-
*
|
|
111
|
-
* A manifest that is not there has no scripts, and neither has one with no
|
|
112
|
-
* `scripts` entry. One that is there and cannot be read is a different
|
|
113
|
-
* thing: what tasks the repository has is then not known, and saying "none"
|
|
114
|
-
* would be a guess.
|
|
115
|
-
* @param root - Real path of the repository
|
|
116
|
-
* @returns The scripts, none when there is no manifest or it has none, or
|
|
117
|
-
* why a manifest that exists cannot be used
|
|
118
|
-
*/
|
|
119
|
-
async function readScripts(root) {
|
|
120
|
-
const file = path.join(root, MANIFEST_PATH);
|
|
121
|
-
if ((await pathKind(file)) === "missing") {
|
|
122
|
-
return { problems: null, value: {} };
|
|
123
|
-
}
|
|
124
|
-
const refused = (why) => ({
|
|
125
|
-
problems: [
|
|
126
|
-
`${MANIFEST_PATH} ${why}, so the tasks this repository has cannot be read from it.`,
|
|
127
|
-
],
|
|
128
|
-
});
|
|
129
|
-
try {
|
|
130
|
-
const manifest = JSON.parse(await readFile(file, "utf8"));
|
|
131
|
-
if (!isJsonObject(manifest))
|
|
132
|
-
return refused("does not hold a JSON object");
|
|
133
|
-
if (manifest.scripts === undefined)
|
|
134
|
-
return { problems: null, value: {} };
|
|
135
|
-
return isJsonObject(manifest.scripts)
|
|
136
|
-
? { problems: null, value: manifest.scripts }
|
|
137
|
-
: refused(`has a "scripts" entry that is not an object`);
|
|
138
|
-
}
|
|
139
|
-
catch (error) {
|
|
140
|
-
return refused(`cannot be read as JSON (${parseProblemWithoutExcerpt(error)})`);
|
|
141
|
-
}
|
|
142
|
-
}
|
|
143
97
|
/**
|
|
144
98
|
* Declare the checks Lisa ships that this repository has a task for.
|
|
145
99
|
*
|
|
@@ -148,20 +102,23 @@ async function readScripts(root) {
|
|
|
148
102
|
* @param root - Real path of the repository
|
|
149
103
|
* @param registry - The shipped gate registry
|
|
150
104
|
* @param scripts - The scripts of the repository's `package.json`
|
|
105
|
+
* @param folders - The per-folder projects, when the audit named folders
|
|
151
106
|
* @returns What was declared, or why nothing could be
|
|
152
107
|
*/
|
|
153
|
-
async function seedDeclaration(root, registry, scripts) {
|
|
108
|
+
async function seedDeclaration(root, registry, scripts, folders) {
|
|
154
109
|
const config = await readConfig(root);
|
|
155
110
|
if (config.problems !== null)
|
|
156
111
|
return config;
|
|
157
112
|
const gates = isJsonObject(config.value.gates) ? config.value.gates : {};
|
|
158
|
-
const result =
|
|
159
|
-
gates,
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
:
|
|
164
|
-
|
|
113
|
+
const result = folders.length > 0
|
|
114
|
+
? seedFolderDeclarations(gates, folders, registry)
|
|
115
|
+
: registry.seedGates({
|
|
116
|
+
gates,
|
|
117
|
+
scripts,
|
|
118
|
+
runner: typeof gates.runner === "string"
|
|
119
|
+
? gates.runner
|
|
120
|
+
: await detectRunner(root),
|
|
121
|
+
});
|
|
165
122
|
const seeded = result.seeded.map(({ gate, moment, run }) => ({
|
|
166
123
|
gate,
|
|
167
124
|
moment,
|
|
@@ -176,6 +133,41 @@ async function seedDeclaration(root, registry, scripts) {
|
|
|
176
133
|
});
|
|
177
134
|
return { problems: null, value: { wrote: true, seeded } };
|
|
178
135
|
}
|
|
136
|
+
/**
|
|
137
|
+
* Add scoped defaults for new gates while preserving existing declarations.
|
|
138
|
+
* @param gates - The existing declaration
|
|
139
|
+
* @param folders - Projects identified by the audit
|
|
140
|
+
* @param registry - The shipped gate registry
|
|
141
|
+
* @returns The merged declaration and newly seeded moments
|
|
142
|
+
*/
|
|
143
|
+
function seedFolderDeclarations(gates, folders, registry) {
|
|
144
|
+
const planned = [...planShippedPartGates(folders, registry)].filter(([gate]) => !Object.hasOwn(gates, gate));
|
|
145
|
+
return {
|
|
146
|
+
gates: {
|
|
147
|
+
...gates,
|
|
148
|
+
...Object.fromEntries(planned.map(([gate, row]) => [gate, row.declaration])),
|
|
149
|
+
},
|
|
150
|
+
seeded: planned.flatMap(([, row]) => row.seeded),
|
|
151
|
+
};
|
|
152
|
+
}
|
|
153
|
+
/**
|
|
154
|
+
* Read the audited folder projects before writing any declaration.
|
|
155
|
+
* @param root - Real path of the repository
|
|
156
|
+
* @param parts - The audit's scoped folders and repository root
|
|
157
|
+
* @param detect - The supported project type detector
|
|
158
|
+
* @returns The folder projects or their read errors
|
|
159
|
+
*/
|
|
160
|
+
async function readFolderProjects(root, parts, detect) {
|
|
161
|
+
const scopes = (parts ?? []).filter(scope => scope !== WHOLE_REPOSITORY_SCOPE);
|
|
162
|
+
const reads = await Promise.all(scopes.map(scope => readShippedFolder(root, scope, detect)));
|
|
163
|
+
const problems = reads.flatMap(read => read.problems ?? []);
|
|
164
|
+
return problems.length > 0
|
|
165
|
+
? { problems }
|
|
166
|
+
: {
|
|
167
|
+
problems: null,
|
|
168
|
+
value: reads.flatMap(read => read.problems === null ? [read.value] : []),
|
|
169
|
+
};
|
|
170
|
+
}
|
|
179
171
|
/**
|
|
180
172
|
* Decide the road for a repository and, on the paved road, seed its
|
|
181
173
|
* declaration.
|
|
@@ -209,17 +201,32 @@ async function decideAndSeed(root, dependencies) {
|
|
|
209
201
|
}
|
|
210
202
|
// Read before the road is decided: the project type is detected from the
|
|
211
203
|
// same file, so nothing is decided from one that cannot be read.
|
|
212
|
-
const scripts = await
|
|
204
|
+
const scripts = await readProjectScripts(root);
|
|
213
205
|
if (scripts.problems !== null) {
|
|
214
206
|
return {
|
|
215
207
|
problems: scripts.problems,
|
|
216
208
|
summary: `${MANIFEST_PATH} cannot be relied on, so nothing was decided or declared. Correct it, then run this again`,
|
|
217
209
|
};
|
|
218
210
|
}
|
|
219
|
-
const
|
|
220
|
-
const
|
|
211
|
+
const detect = dependencies.detectProjectTypes ?? detectSupportedTypes;
|
|
212
|
+
const [projectTypes, folderProjects] = await Promise.all([
|
|
213
|
+
detect(root),
|
|
214
|
+
readFolderProjects(root, parts.value, detect),
|
|
215
|
+
]);
|
|
216
|
+
if (folderProjects.problems !== null) {
|
|
217
|
+
return {
|
|
218
|
+
problems: folderProjects.problems,
|
|
219
|
+
summary: "The audited folders could not be read, so nothing was declared. Fix the problems above, then run this again",
|
|
220
|
+
};
|
|
221
|
+
}
|
|
222
|
+
const folders = folderProjects.value;
|
|
223
|
+
const decision = decideConfigureRoad({
|
|
224
|
+
projectTypes,
|
|
225
|
+
parts: parts.value,
|
|
226
|
+
partTypes: Object.fromEntries(folders.map(({ scope, types }) => [scope, types])),
|
|
227
|
+
});
|
|
221
228
|
const seeding = decision.road === "paved"
|
|
222
|
-
? await seedDeclaration(root, registry, scripts.value)
|
|
229
|
+
? await seedDeclaration(root, registry, scripts.value, folders)
|
|
223
230
|
: { problems: null, value: { wrote: false, seeded: [] } };
|
|
224
231
|
if (seeding.problems !== null) {
|
|
225
232
|
return {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"seed.js","sourceRoot":"","sources":["../../../src/controls/commands/seed.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;GA2BG;AACH,OAAO,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AAC5C,OAAO,IAAI,MAAM,WAAW,CAAC;AAI7B,OAAO,EAAE,kBAAkB,EAAE,MAAM,mCAAmC,CAAC;AACvE,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"seed.js","sourceRoot":"","sources":["../../../src/controls/commands/seed.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;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,OAAO,EAAE,8CAA8C;SACxD;QACH,CAAC,CAAC,MAAM,aAAa,CAAC,IAAI,EAAE,YAAY,CAAC,CAAC;IAC9C,IAAI,UAAU,IAAI,OAAO,EAAE,CAAC;QAC1B,OAAO,CAAC,QAAQ,CAAC,OAAO,CAAC,OAAO,CAAC,EAAE;YACjC,MAAM,CAAC,OAAO,CAAC,UAAU,CAAC,OAAO,EAAE,GAAG,CAAC,CAAC,CAAC;QAC3C,CAAC,CAAC,CAAC;QACH,MAAM,CAAC,GAAG,YAAY,WAAW,OAAO,CAAC,OAAO,EAAE,CAAC,CAAC;QACpD,OAAO,CAAC,CAAC;IACX,CAAC;IACD,MAAM,CAAC,IAAI,CAAC,SAAS,CAAC,OAAO,EAAE,IAAI,EAAE,CAAC,CAAC,CAAC,CAAC;IACzC,OAAO,CAAC,CAAC;AACX,CAAC;AAOD;;;;GAIG;AACH,MAAM,UAAU,YAAY,CAC1B,KAAc,EACd,eAAwC;IACtC,OAAO,EAAE,UAAU,CAAC,EAAE,CAAC,OAAO,CAAC,UAAU,CAAC;CAC3C;IAED,KAAK;SACF,OAAO,CAAC,YAAY,CAAC;SACrB,WAAW,CACV,iJAAiJ,sBAAsB,EAAE,CAC1K;SACA,QAAQ,CAAC,QAAQ,EAAE,2CAA2C,CAAC;SAC/D,MAAM,CAAC,KAAK,EAAE,UAA8B,EAAE,EAAE;QAC/C,MAAM,IAAI,GAAG,MAAM,YAAY,CAAC,OAAO,CAAC,UAAU,CAAC,CAAC;QACpD,IAAI,IAAI,KAAK,CAAC;YAAE,OAAO,CAAC,QAAQ,GAAG,IAAI,CAAC;IAC1C,CAAC,CAAC,CAAC;AACP,CAAC"}
|
|
@@ -8,6 +8,8 @@ export interface ConfigureRoadFacts {
|
|
|
8
8
|
readonly projectTypes: readonly string[];
|
|
9
9
|
/** The parts the audit report names, or `null` when there is no report. */
|
|
10
10
|
readonly parts: readonly string[] | null;
|
|
11
|
+
/** The supported project types detected in each audited folder. */
|
|
12
|
+
readonly partTypes?: Readonly<Record<string, readonly string[]>>;
|
|
11
13
|
}
|
|
12
14
|
/** The road, and why, in words an operator can be told. */
|
|
13
15
|
export interface ConfigureRoadDecision {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"configure-road.d.ts","sourceRoot":"","sources":["../../src/controls/configure-road.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"configure-road.d.ts","sourceRoot":"","sources":["../../src/controls/configure-road.ts"],"names":[],"mappings":"AAgBA,+CAA+C;AAC/C,eAAO,MAAM,eAAe,iCAAkC,CAAC;AAE/D,4BAA4B;AAC5B,MAAM,MAAM,aAAa,GAAG,CAAC,OAAO,eAAe,CAAC,CAAC,MAAM,CAAC,CAAC;AAE7D,qCAAqC;AACrC,MAAM,WAAW,kBAAkB;IACjC,mEAAmE;IACnE,QAAQ,CAAC,YAAY,EAAE,SAAS,MAAM,EAAE,CAAC;IACzC,2EAA2E;IAC3E,QAAQ,CAAC,KAAK,EAAE,SAAS,MAAM,EAAE,GAAG,IAAI,CAAC;IACzC,mEAAmE;IACnE,QAAQ,CAAC,SAAS,CAAC,EAAE,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,SAAS,MAAM,EAAE,CAAC,CAAC,CAAC;CAClE;AAED,2DAA2D;AAC3D,MAAM,WAAW,qBAAqB;IACpC,QAAQ,CAAC,IAAI,EAAE,aAAa,CAAC;IAC7B,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAC;CACzB;AAED;;;;GAIG;AACH,wBAAgB,mBAAmB,CACjC,KAAK,EAAE,kBAAkB,GACxB,qBAAqB,CAkCvB"}
|
|
@@ -1,22 +1,14 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Which of two roads the configure step takes for a repository.
|
|
3
3
|
*
|
|
4
|
-
* - **paved**: the whole repository
|
|
5
|
-
*
|
|
6
|
-
*
|
|
7
|
-
* discover anything.
|
|
4
|
+
* - **paved**: the whole repository or each folder part is on a project type
|
|
5
|
+
* Lisa ships checks for. Lisa declares those checks by code, so two runs
|
|
6
|
+
* give the same declaration.
|
|
8
7
|
* - **discovery**: anything else. The checks are declared from what the audit
|
|
9
8
|
* found, one decision at a time, and every part names what supports it.
|
|
10
9
|
*
|
|
11
|
-
* The decision
|
|
12
|
-
*
|
|
13
|
-
* and the parts the audit report names, when there is a report.
|
|
14
|
-
*
|
|
15
|
-
* A repository with more than one part is always on the discovery road, even
|
|
16
|
-
* when a part is itself a supported project type. The checks Lisa ships run
|
|
17
|
-
* through the task runner at the repository root and cover the repository as
|
|
18
|
-
* one piece; applying a project type to one folder of a mixed repository is
|
|
19
|
-
* not something Lisa does.
|
|
10
|
+
* The decision uses the audit's folder list and the project types detected at
|
|
11
|
+
* the root and in each listed folder.
|
|
20
12
|
* @module controls/configure-road
|
|
21
13
|
*/
|
|
22
14
|
import { describeScope } from "./audit-report-wording.js";
|
|
@@ -29,8 +21,20 @@ export const CONFIGURE_ROADS = ["paved", "discovery"];
|
|
|
29
21
|
* @returns The road and the reason for it
|
|
30
22
|
*/
|
|
31
23
|
export function decideConfigureRoad(facts) {
|
|
32
|
-
const { projectTypes, parts } = facts;
|
|
24
|
+
const { projectTypes, parts, partTypes } = facts;
|
|
33
25
|
const folders = (parts ?? []).filter(part => part !== WHOLE_REPOSITORY_SCOPE);
|
|
26
|
+
if (folders.length > 0 && partTypes !== undefined) {
|
|
27
|
+
const unknown = folders.filter(folder => !Object.hasOwn(partTypes, folder) || !partTypes[folder]?.length);
|
|
28
|
+
return unknown.length > 0
|
|
29
|
+
? {
|
|
30
|
+
road: "discovery",
|
|
31
|
+
reason: `Lisa found no supported project type in ${unknown.map(describeScope).join(", ")}. The checks for this repository are declared from what the audit found.`,
|
|
32
|
+
}
|
|
33
|
+
: {
|
|
34
|
+
road: "paved",
|
|
35
|
+
reason: `Lisa ships checks for every audited part (${folders.map(folder => `${describeScope(folder)}: ${partTypes[folder]?.join(", ")}`).join("; ")}). Each part has its own declared tasks.`,
|
|
36
|
+
};
|
|
37
|
+
}
|
|
34
38
|
if (folders.length > 0) {
|
|
35
39
|
return {
|
|
36
40
|
road: "discovery",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"configure-road.js","sourceRoot":"","sources":["../../src/controls/configure-road.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"configure-road.js","sourceRoot":"","sources":["../../src/controls/configure-road.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;GAYG;AACH,OAAO,EAAE,aAAa,EAAE,MAAM,2BAA2B,CAAC;AAC1D,OAAO,EAAE,sBAAsB,EAAE,MAAM,qBAAqB,CAAC;AAE7D,+CAA+C;AAC/C,MAAM,CAAC,MAAM,eAAe,GAAG,CAAC,OAAO,EAAE,WAAW,CAAU,CAAC;AAqB/D;;;;GAIG;AACH,MAAM,UAAU,mBAAmB,CACjC,KAAyB;IAEzB,MAAM,EAAE,YAAY,EAAE,KAAK,EAAE,SAAS,EAAE,GAAG,KAAK,CAAC;IACjD,MAAM,OAAO,GAAG,CAAC,KAAK,IAAI,EAAE,CAAC,CAAC,MAAM,CAAC,IAAI,CAAC,EAAE,CAAC,IAAI,KAAK,sBAAsB,CAAC,CAAC;IAC9E,IAAI,OAAO,CAAC,MAAM,GAAG,CAAC,IAAI,SAAS,KAAK,SAAS,EAAE,CAAC;QAClD,MAAM,OAAO,GAAG,OAAO,CAAC,MAAM,CAC5B,MAAM,CAAC,EAAE,CAAC,CAAC,MAAM,CAAC,MAAM,CAAC,SAAS,EAAE,MAAM,CAAC,IAAI,CAAC,SAAS,CAAC,MAAM,CAAC,EAAE,MAAM,CAC1E,CAAC;QACF,OAAO,OAAO,CAAC,MAAM,GAAG,CAAC;YACvB,CAAC,CAAC;gBACE,IAAI,EAAE,WAAW;gBACjB,MAAM,EAAE,2CAA2C,OAAO,CAAC,GAAG,CAAC,aAAa,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,0EAA0E;aACnK;YACH,CAAC,CAAC;gBACE,IAAI,EAAE,OAAO;gBACb,MAAM,EAAE,6CAA6C,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,EAAE,CAAC,GAAG,aAAa,CAAC,MAAM,CAAC,KAAK,SAAS,CAAC,MAAM,CAAC,EAAE,IAAI,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,0CAA0C;aAC9L,CAAC;IACR,CAAC;IACD,IAAI,OAAO,CAAC,MAAM,GAAG,CAAC,EAAE,CAAC;QACvB,OAAO;YACL,IAAI,EAAE,WAAW;YACjB,MAAM,EAAE,mBAAmB,OAAO,CAAC,MAAM,KAAK,CAAC,CAAC,CAAC,CAAC,iBAAiB,CAAC,CAAC,CAAC,gBAAgB,wBAAwB,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,EAAE,CAAC,aAAa,CAAC,MAAM,CAAC,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,+IAA+I;SACrT,CAAC;IACJ,CAAC;IACD,IAAI,YAAY,CAAC,MAAM,KAAK,CAAC,EAAE,CAAC;QAC9B,OAAO;YACL,IAAI,EAAE,WAAW;YACjB,MAAM,EACJ,8HAA8H;SACjI,CAAC;IACJ,CAAC;IACD,OAAO;QACL,IAAI,EAAE,OAAO;QACb,MAAM,EAAE,qFAAqF,YAAY,CAAC,IAAI,CAAC,IAAI,CAAC,0DAA0D,KAAK,KAAK,IAAI,CAAC,CAAC,CAAC,sFAAsF,CAAC,CAAC,CAAC,EAAE,EAAE;KAC7R,CAAC;AACJ,CAAC"}
|
|
@@ -24,8 +24,9 @@ export declare function hasNoMoment(entry: Pick<EnforcedEntry, "points">): boole
|
|
|
24
24
|
* the entry's own order
|
|
25
25
|
* @param servesGate - Whether the entry serves a requirement a check can
|
|
26
26
|
* refuse a change for
|
|
27
|
+
* @param hasSupportedProjectType - Whether the project has a supported type
|
|
27
28
|
* @returns The outcome and the reason
|
|
28
29
|
*/
|
|
29
|
-
export declare function entryOutcome(entry: ControlRegisterEntry, points: readonly EnforcedPoint[], servesGate: boolean): EntryOutcome;
|
|
30
|
+
export declare function entryOutcome(entry: ControlRegisterEntry, points: readonly EnforcedPoint[], servesGate: boolean, hasSupportedProjectType: boolean): EntryOutcome;
|
|
30
31
|
export {};
|
|
31
32
|
//# sourceMappingURL=enforce-entry-outcome.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"enforce-entry-outcome.d.ts","sourceRoot":"","sources":["../../src/controls/enforce-entry-outcome.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"enforce-entry-outcome.d.ts","sourceRoot":"","sources":["../../src/controls/enforce-entry-outcome.ts"],"names":[],"mappings":"AA6CA,OAAO,EAEL,KAAK,aAAa,EAClB,KAAK,aAAa,EAEnB,MAAM,oBAAoB,CAAC;AAC5B,OAAO,EAEL,KAAK,oBAAoB,EAE1B,MAAM,qBAAqB,CAAC;AAE7B,2EAA2E;AAC3E,eAAO,MAAM,WAAW,gBAAgB,CAAC;AAEzC;;;;GAIG;AACH,eAAO,MAAM,gBAAgB,OAAO,CAAC;AAErC,+CAA+C;AAC/C,KAAK,YAAY,GAAG,IAAI,CAAC,aAAa,EAAE,SAAS,GAAG,QAAQ,CAAC,CAAC;AAgC9D;;;;;GAKG;AACH,wBAAgB,WAAW,CAAC,KAAK,EAAE,IAAI,CAAC,aAAa,EAAE,QAAQ,CAAC,GAAG,OAAO,CAEzE;AAuGD;;;;;;;;;GASG;AACH,wBAAgB,YAAY,CAC1B,KAAK,EAAE,oBAAoB,EAC3B,MAAM,EAAE,SAAS,aAAa,EAAE,EAChC,UAAU,EAAE,OAAO,EACnB,uBAAuB,EAAE,OAAO,GAC/B,YAAY,CAyCd"}
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
* | Otherwise, at least one is `wired` | `wired` |
|
|
13
13
|
* | None was checked, and at one of them the check is one Lisa itself ships | `nothing-to-enforce`: what Lisa ships runs it, and this step did not look |
|
|
14
14
|
* | None was checked, none is one Lisa ships, and at one of them the check is a command the repository declares | `blocked`: nothing Lisa installs starts a command there |
|
|
15
|
-
* | None was checked, the check is a task the repository declares
|
|
15
|
+
* | None was checked, the check is a task the repository declares and Lisa does not ship for this project type, one another system reports, or nothing measures it, and it serves a requirement a check can refuse a change for | `blocked`: the configure step has to choose when it must pass |
|
|
16
16
|
* | None was checked, the same kinds of check, and it serves no such requirement | `nothing-to-enforce` |
|
|
17
17
|
*
|
|
18
18
|
* Every row about unchecked points goes by the check at each point, not by
|
|
@@ -21,13 +21,10 @@
|
|
|
21
21
|
*
|
|
22
22
|
* ## What counts as a check Lisa ships
|
|
23
23
|
*
|
|
24
|
-
*
|
|
25
|
-
*
|
|
26
|
-
* and
|
|
27
|
-
*
|
|
28
|
-
* them. Any gate that names a task to run is recorded as a task, so going by
|
|
29
|
-
* that alone would say of a host's own lint script, declared where this step
|
|
30
|
-
* cannot look, that Lisa runs it, in a repository where nothing does.
|
|
24
|
+
* Interceptors and built-in workflow jobs carry shipped mechanisms. A
|
|
25
|
+
* registry task also counts where a supported project type supplies its
|
|
26
|
+
* plugin and pipelines. Project-defined gates (ids starting with
|
|
27
|
+
* {@link HOST_GATE_PREFIX}) require the project's own wiring.
|
|
31
28
|
*
|
|
32
29
|
* ## Why an entry with no moment makes no claim
|
|
33
30
|
*
|
|
@@ -94,12 +91,15 @@ const MOMENTLESS_ENTRY = {
|
|
|
94
91
|
* Tell whether a check is one Lisa itself ships and runs.
|
|
95
92
|
* @param entry - The register entry
|
|
96
93
|
* @param mechanism - What measures it at one point
|
|
94
|
+
* @param hasSupportedProjectType - Whether the project has a supported type
|
|
97
95
|
* @returns Whether a Lisa project type brings what runs it
|
|
98
96
|
*/
|
|
99
|
-
function isShipped(entry, mechanism) {
|
|
97
|
+
function isShipped(entry, mechanism, hasSupportedProjectType) {
|
|
100
98
|
return (mechanism.kind === "interceptor" ||
|
|
101
99
|
mechanism.kind === "built-in" ||
|
|
102
|
-
(mechanism.kind === "task" &&
|
|
100
|
+
(mechanism.kind === "task" &&
|
|
101
|
+
hasSupportedProjectType &&
|
|
102
|
+
!entry.gate.startsWith(HOST_GATE_PREFIX)));
|
|
103
103
|
}
|
|
104
104
|
/**
|
|
105
105
|
* Say what a check that is neither shipped by Lisa nor a declared command
|
|
@@ -109,7 +109,7 @@ function isShipped(entry, mechanism) {
|
|
|
109
109
|
*/
|
|
110
110
|
function describeUnshipped(mechanism) {
|
|
111
111
|
if (mechanism.kind === "task") {
|
|
112
|
-
return `This check is a task the repository declares itself ("${mechanism.command}"),
|
|
112
|
+
return `This check is a task the repository declares itself ("${mechanism.command}"), and nothing Lisa ships runs it.`;
|
|
113
113
|
}
|
|
114
114
|
return mechanism.kind === "external-check"
|
|
115
115
|
? "Another system reports this check, and nothing Lisa ships runs it."
|
|
@@ -132,14 +132,15 @@ function alsoUnchecked(rest) {
|
|
|
132
132
|
* measures the check there
|
|
133
133
|
* @param servesGate - Whether it serves a requirement a check can refuse a
|
|
134
134
|
* change for
|
|
135
|
+
* @param hasSupportedProjectType - Whether the project has a supported type
|
|
135
136
|
* @returns The outcome and the reason
|
|
136
137
|
*/
|
|
137
|
-
function uncheckedEntry(entry, unchecked, servesGate) {
|
|
138
|
+
function uncheckedEntry(entry, unchecked, servesGate, hasSupportedProjectType) {
|
|
138
139
|
const split = (wanted) => [
|
|
139
140
|
unchecked.filter(wanted),
|
|
140
141
|
unchecked.filter(each => !wanted(each)),
|
|
141
142
|
];
|
|
142
|
-
const [shipped, unshipped] = split(each => isShipped(entry, each.mechanism));
|
|
143
|
+
const [shipped, unshipped] = split(each => isShipped(entry, each.mechanism, hasSupportedProjectType));
|
|
143
144
|
if (shipped.length > 0) {
|
|
144
145
|
return {
|
|
145
146
|
outcome: NOTHING_TO_ENFORCE,
|
|
@@ -168,9 +169,10 @@ function uncheckedEntry(entry, unchecked, servesGate) {
|
|
|
168
169
|
* the entry's own order
|
|
169
170
|
* @param servesGate - Whether the entry serves a requirement a check can
|
|
170
171
|
* refuse a change for
|
|
172
|
+
* @param hasSupportedProjectType - Whether the project has a supported type
|
|
171
173
|
* @returns The outcome and the reason
|
|
172
174
|
*/
|
|
173
|
-
export function entryOutcome(entry, points, servesGate) {
|
|
175
|
+
export function entryOutcome(entry, points, servesGate, hasSupportedProjectType) {
|
|
174
176
|
const having = (state) => points.filter(point => point.state === state);
|
|
175
177
|
if (points.length === 0)
|
|
176
178
|
return MOMENTLESS_ENTRY;
|
|
@@ -193,7 +195,7 @@ export function entryOutcome(entry, points, servesGate) {
|
|
|
193
195
|
: mechanismAt(entry, declared),
|
|
194
196
|
point,
|
|
195
197
|
};
|
|
196
|
-
}), servesGate);
|
|
198
|
+
}), servesGate, hasSupportedProjectType);
|
|
197
199
|
}
|
|
198
200
|
const unchecked = having(NOT_CHECKED);
|
|
199
201
|
return {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"enforce-entry-outcome.js","sourceRoot":"","sources":["../../src/controls/enforce-entry-outcome.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"enforce-entry-outcome.js","sourceRoot":"","sources":["../../src/controls/enforce-entry-outcome.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA2CG;AACH,OAAO,EAAE,mBAAmB,EAAE,MAAM,oBAAoB,CAAC;AACzD,OAAO,EACL,kBAAkB,GAInB,MAAM,oBAAoB,CAAC;AAC5B,OAAO,EACL,WAAW,GAGZ,MAAM,qBAAqB,CAAC;AAE7B,2EAA2E;AAC3E,MAAM,CAAC,MAAM,WAAW,GAAG,aAAa,CAAC;AAEzC;;;;GAIG;AACH,MAAM,CAAC,MAAM,gBAAgB,GAAG,IAAI,CAAC;AAWrC,6EAA6E;AAC7E,MAAM,SAAS,GACb,gFAAgF,CAAC;AAEnF;;;;GAIG;AACH,SAAS,YAAY,CAAC,KAAwB;IAC5C,OAAO,KAAK,CAAC,MAAM,GAAG,CAAC;QACrB,CAAC,CAAC,KAAK,CAAC,IAAI,CA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,CAAC,MAAM,KAAK,CAAC,MAAM,KAAK,KAAK,CAAC,MAAM,EAAE,CAAC;iBACnD,IAAI,CAAC,GAAG,CAAC;SACb,CAAC;IACJ,CAAC;IACD,MAAM,KAAK,GAAG,MAAM,CAAC,OAAO,CAAC,CAAC;IAC9B,IAAI,KAAK,CAAC,MAAM,KAAK,CAAC,EAAE,CAAC;QACvB,OAAO,cAAc,CACnB,KAAK,EACL,MAAM,CAAC,GAAG,CAAC,CAAC,KAAK,EAAE,KAAK,EAAE,EAAE;YAC1B,MAAM,QAAQ,GAAG,KAAK,CAAC,kBAAkB,CAAC,KAAK,CAAC,CAAC;YACjD,OAAO;gBACL,SAAS,EACP,QAAQ,KAAK,SAAS;oBACpB,CAAC,CAAC,KAAK,CAAC,mBAAmB;oBAC3B,CAAC,CAAC,WAAW,CAAC,KAAK,EAAE,QAAQ,CAAC;gBAClC,KAAK;aACN,CAAC;QACJ,CAAC,CAAC,EACF,UAAU,EACV,uBAAuB,CACxB,CAAC;IACJ,CAAC;IACD,MAAM,SAAS,GAAG,MAAM,CAAC,WAAW,CAAC,CAAC;IACtC,OAAO;QACL,OAAO,EAAE,OAAO;QAChB,MAAM,EAAE;YACN,GAAG,KAAK,CAAC,GAAG,CAAC,KAAK,CAAC,EAAE,CAAC,KAAK,CAAC,MAAM,CAAC;YACnC,GAAG,CAAC,SAAS,CAAC,MAAM,GAAG,CAAC;gBACtB,CAAC,CAAC,CAAC,oCAAoC,SAAS,CAAC,SAAS,CAAC,GAAG,CAAC;gBAC/D,CAAC,CAAC,EAAE,CAAC;SACR,CAAC,IAAI,CAAC,GAAG,CAAC;KACZ,CAAC;AACJ,CAAC"}
|
|
@@ -7,6 +7,8 @@ import { type ControlRegister, type PullRequestExecutor } from "./register-types
|
|
|
7
7
|
export interface EnforcedPointSources {
|
|
8
8
|
/** The carriers of the checkout as a read made for this report found them. */
|
|
9
9
|
readonly installed: readonly InstalledCarrier[];
|
|
10
|
+
/** Scopes where a supported project type supplies its usual checks. */
|
|
11
|
+
readonly supportedProjectScopes: ReadonlySet<string>;
|
|
10
12
|
/** The comparison of merge protection with the register. */
|
|
11
13
|
readonly protect: HandedProtect;
|
|
12
14
|
/** Reads the pipeline file a register names and says whether it is wired. */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"enforce-points.d.ts","sourceRoot":"","sources":["../../src/controls/enforce-points.ts"],"names":[],"mappings":"AA0BA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,uBAAuB,CAAC;AAE9D,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,qBAAqB,CAAC;AACzD,OAAO,KAAK,EAAE,aAAa,EAAiB,MAAM,oBAAoB,CAAC;AAGvE,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,sBAAsB,CAAC;AACzD,OAAO,EAEL,KAAK,eAAe,EAIpB,KAAK,mBAAmB,EACzB,MAAM,qBAAqB,CAAC;AAE7B,6CAA6C;AAC7C,MAAM,WAAW,oBAAoB;IACnC,8EAA8E;IAC9E,QAAQ,CAAC,SAAS,EAAE,SAAS,gBAAgB,EAAE,CAAC;IAChD,4DAA4D;IAC5D,QAAQ,CAAC,OAAO,EAAE,aAAa,CAAC;IAChC,6EAA6E;IAC7E,QAAQ,CAAC,eAAe,EAAE,CACxB,QAAQ,EAAE,mBAAmB,KAC1B,OAAO,CAAC,YAAY,CAAC,CAAC;IAC3B;;;OAGG;IACH,QAAQ,CAAC,YAAY,EAAE,SAAS,MAAM,EAAE,CAAC;CAC1C;
|
|
1
|
+
{"version":3,"file":"enforce-points.d.ts","sourceRoot":"","sources":["../../src/controls/enforce-points.ts"],"names":[],"mappings":"AA0BA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,uBAAuB,CAAC;AAE9D,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,qBAAqB,CAAC;AACzD,OAAO,KAAK,EAAE,aAAa,EAAiB,MAAM,oBAAoB,CAAC;AAGvE,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,sBAAsB,CAAC;AACzD,OAAO,EAEL,KAAK,eAAe,EAIpB,KAAK,mBAAmB,EACzB,MAAM,qBAAqB,CAAC;AAE7B,6CAA6C;AAC7C,MAAM,WAAW,oBAAoB;IACnC,8EAA8E;IAC9E,QAAQ,CAAC,SAAS,EAAE,SAAS,gBAAgB,EAAE,CAAC;IAChD,uEAAuE;IACvE,QAAQ,CAAC,sBAAsB,EAAE,WAAW,CAAC,MAAM,CAAC,CAAC;IACrD,4DAA4D;IAC5D,QAAQ,CAAC,OAAO,EAAE,aAAa,CAAC;IAChC,6EAA6E;IAC7E,QAAQ,CAAC,eAAe,EAAE,CACxB,QAAQ,EAAE,mBAAmB,KAC1B,OAAO,CAAC,YAAY,CAAC,CAAC;IAC3B;;;OAGG;IACH,QAAQ,CAAC,YAAY,EAAE,SAAS,MAAM,EAAE,CAAC;CAC1C;AAgPD;;;;;GAKG;AACH,wBAAsB,eAAe,CACnC,QAAQ,EAAE,eAAe,EACzB,OAAO,EAAE,oBAAoB,GAC5B,OAAO,CAAC,SAAS,aAAa,EAAE,CAAC,CA2BnC"}
|
|
@@ -85,6 +85,9 @@ function checkoutPoint(point, installed) {
|
|
|
85
85
|
? {
|
|
86
86
|
reason: sentences([
|
|
87
87
|
`Git starts the declared checks at ${point.moment} in this checkout.`,
|
|
88
|
+
point.level === "optional"
|
|
89
|
+
? `This check is optional, so a failure does not stop the ${point.moment}.`
|
|
90
|
+
: null,
|
|
88
91
|
carrier.contradicts,
|
|
89
92
|
]),
|
|
90
93
|
state: "wired",
|
|
@@ -242,7 +245,7 @@ export async function enforcedEntries(register, sources) {
|
|
|
242
245
|
gate: entry.gate,
|
|
243
246
|
id: entry.id,
|
|
244
247
|
scope: entry.scope,
|
|
245
|
-
...entryOutcome(entry, points, entry.criteria.some(id => sources.gateCriteria.includes(id))),
|
|
248
|
+
...entryOutcome(entry, points, entry.criteria.some(id => sources.gateCriteria.includes(id)), sources.supportedProjectScopes.has(entry.scope)),
|
|
246
249
|
points,
|
|
247
250
|
};
|
|
248
251
|
}));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"enforce-points.js","sourceRoot":"","sources":["../../src/controls/enforce-points.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;GAwBG;AACH,OAAO,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AAEtD,OAAO,EAAE,WAAW,EAAE,YAAY,EAAE,MAAM,4BAA4B,CAAC;AAGvE,OAAO,EAAE,aAAa,EAAE,MAAM,uBAAuB,CAAC;AACtD,OAAO,EAAE,eAAe,EAAE,MAAM,4BAA4B,CAAC;AAE7D,OAAO,EACL,WAAW,GAMZ,MAAM,qBAAqB,CAAC;
|
|
1
|
+
{"version":3,"file":"enforce-points.js","sourceRoot":"","sources":["../../src/controls/enforce-points.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;GAwBG;AACH,OAAO,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AAEtD,OAAO,EAAE,WAAW,EAAE,YAAY,EAAE,MAAM,4BAA4B,CAAC;AAGvE,OAAO,EAAE,aAAa,EAAE,MAAM,uBAAuB,CAAC;AACtD,OAAO,EAAE,eAAe,EAAE,MAAM,4BAA4B,CAAC;AAE7D,OAAO,EACL,WAAW,GAMZ,MAAM,qBAAqB,CAAC;AAwB7B,kEAAkE;AAClE,MAAM,UAAU,GAAG,UAAU,CAAC;AAE9B,8EAA8E;AAC9E,MAAM,eAAe,GAAkD;IACrE,cAAc,EAAE,sCAAsC;IACtD,qBAAqB,EAAE,yBAAyB;IAChD,kBAAkB,EAAE,6CAA6C;IACjE,gBAAgB,EAAE,KAAK;IACvB,eAAe,EAAE,mBAAmB;CACrC,CAAC;AAEF;;;;GAIG;AACH,SAAS,YAAY,CAAC,KAAwB;IAC5C,OAAO,KAAK,CAAC,MAAM,GAAG,CAAC;QACrB,CAAC,CAAC,KAAK,CAAC,IAAI,CAAC,EAAE,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-report.d.ts","sourceRoot":"","sources":["../../src/controls/enforce-report.ts"],"names":[],"mappings":"AAwCA,OAAO,EAEL,KAAK,YAAY,EAClB,MAAM,uBAAuB,CAAC;AAM/B,OAAO,EAEL,KAAK,mBAAmB,EACzB,MAAM,uBAAuB,CAAC;AAC/B,OAAO,EAEL,KAAK,iBAAiB,EAGvB,MAAM,qBAAqB,CAAC;AAS7B,OAAO,EAEL,KAAK,gBAAgB,EACrB,KAAK,aAAa,EACnB,MAAM,oBAAoB,CAAC;AAE5B,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,sBAAsB,CAAC;AAEzD,OAAO,EAEL,KAAK,yBAAyB,EAC/B,MAAM,eAAe,CAAC;AACvB,OAAO,EAEL,KAAK,eAAe,EACpB,KAAK,mBAAmB,EACzB,MAAM,qBAAqB,CAAC;
|
|
1
|
+
{"version":3,"file":"enforce-report.d.ts","sourceRoot":"","sources":["../../src/controls/enforce-report.ts"],"names":[],"mappings":"AAwCA,OAAO,EAEL,KAAK,YAAY,EAClB,MAAM,uBAAuB,CAAC;AAM/B,OAAO,EAEL,KAAK,mBAAmB,EACzB,MAAM,uBAAuB,CAAC;AAC/B,OAAO,EAEL,KAAK,iBAAiB,EAGvB,MAAM,qBAAqB,CAAC;AAS7B,OAAO,EAEL,KAAK,gBAAgB,EACrB,KAAK,aAAa,EACnB,MAAM,oBAAoB,CAAC;AAE5B,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,sBAAsB,CAAC;AAEzD,OAAO,EAEL,KAAK,yBAAyB,EAC/B,MAAM,eAAe,CAAC;AACvB,OAAO,EAEL,KAAK,eAAe,EACpB,KAAK,mBAAmB,EACzB,MAAM,qBAAqB,CAAC;AAK7B,+EAA+E;AAC/E,MAAM,WAAW,yBAAyB;IACxC,uEAAuE;IACvE,QAAQ,CAAC,GAAG,CAAC,EAAE,IAAI,CAAC;IACpB,2DAA2D;IAC3D,QAAQ,CAAC,QAAQ,CAAC,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,OAAO,CAAC,yBAAyB,CAAC,CAAC;IACzE,+DAA+D;IAC/D,QAAQ,CAAC,aAAa,CAAC,EAAE,YAAY,CAAC;IACtC,kEAAkE;IAClE,QAAQ,CAAC,OAAO,CAAC,EAAE,CACjB,IAAI,EAAE,MAAM,EACZ,QAAQ,EAAE,eAAe,EACzB,cAAc,EAAE,MAAM,GAAG,IAAI,KAC1B,OAAO,CAAC,gBAAgB,CAAC,CAAC;IAC/B,gDAAgD;IAChD,QAAQ,CAAC,eAAe,CAAC,EAAE,CACzB,IAAI,EAAE,MAAM,EACZ,QAAQ,EAAE,mBAAmB,KAC1B,OAAO,CAAC,YAAY,CAAC,CAAC;IAC3B,0DAA0D;IAC1D,QAAQ,CAAC,IAAI,CAAC,EAAE,mBAAmB,CAAC;CACrC;AAED,wDAAwD;AACxD,MAAM,MAAM,gBAAgB,GACxB;IAAE,QAAQ,CAAC,QAAQ,EAAE,IAAI,CAAC;IAAC,QAAQ,CAAC,MAAM,EAAE,aAAa,CAAA;CAAE,GAC3D;IAAE,QAAQ,CAAC,QAAQ,EAAE,SAAS,MAAM,EAAE,CAAA;CAAE,CAAC;AAwF7C;;;;;;GAMG;AACH,wBAAsB,kBAAkB,CACtC,IAAI,EAAE,MAAM,EACZ,KAAK,EAAE,iBAAiB,EACxB,YAAY,GAAE,yBAA8B,GAC3C,OAAO,CAAC,gBAAgB,CAAC,CAiE3B"}
|
|
@@ -51,6 +51,7 @@ import { generateControlRegister, } from "./register.js";
|
|
|
51
51
|
import { CONTROL_REGISTER_PATH, } from "./register-types.js";
|
|
52
52
|
import { readConfiguredTracker } from "./tracker-config.js";
|
|
53
53
|
import { openTrackerQuestionId } from "./tracker-question.js";
|
|
54
|
+
import { supportedControlScopes } from "./shipped-parts.js";
|
|
54
55
|
/**
|
|
55
56
|
* Read the register a repository has committed, and compare it with what the
|
|
56
57
|
* declaration generates.
|
|
@@ -137,7 +138,10 @@ export async function buildEnforceReport(root, paths, dependencies = {}) {
|
|
|
137
138
|
const tickets = await ticketsOf(root, loaded, inputs.tickets);
|
|
138
139
|
if (tickets.problems !== null)
|
|
139
140
|
return tickets;
|
|
140
|
-
const installed = await
|
|
141
|
+
const [installed, supportedProjectScopes] = await Promise.all([
|
|
142
|
+
readInstalledCarriers(root, inputs.carriers, dependencies.checkCarriers),
|
|
143
|
+
supportedControlScopes(root, register.entries.map(entry => entry.scope)),
|
|
144
|
+
]);
|
|
141
145
|
if (installed.problems !== null)
|
|
142
146
|
return installed;
|
|
143
147
|
const entries = await enforcedEntries(register, {
|
|
@@ -145,6 +149,7 @@ export async function buildEnforceReport(root, paths, dependencies = {}) {
|
|
|
145
149
|
gateCriteria: loaded.criteria
|
|
146
150
|
.filter(criterion => criterion.kind === GATE_KIND)
|
|
147
151
|
.map(criterion => criterion.id),
|
|
152
|
+
supportedProjectScopes,
|
|
148
153
|
installed: installed.carriers,
|
|
149
154
|
protect: inputs.protect,
|
|
150
155
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"enforce-report.js","sourceRoot":"","sources":["../../src/controls/enforce-report.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAkCG;AACH,OAAO,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AAC5C,OAAO,IAAI,MAAM,WAAW,CAAC;AAE7B,OAAO,EAAE,eAAe,EAAE,MAAM,wBAAwB,CAAC;AACzD,OAAO,EAAE,eAAe,EAAE,MAAM,oBAAoB,CAAC;AACrD,OAAO,EACL,qBAAqB,GAEtB,MAAM,uBAAuB,CAAC;AAC/B,OAAO,EACL,SAAS,EACT,cAAc,EACd,eAAe,GAChB,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EACL,uBAAuB,GAExB,MAAM,uBAAuB,CAAC;AAC/B,OAAO,EACL,iBAAiB,GAIlB,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EAAE,eAAe,EAAE,MAAM,qBAAqB,CAAC;AACtD,OA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,OAAO,GAAG,eAAe,CAAC,MAAM,EAAE,OAAO,CAAC,OAAO,CAAC,CAAC;IACzD,MAAM,MAAM,GAAG,aAAa,CAAC,QAAQ,CAAC,CAAC;IACvC,OAAO;QACL,QAAQ,EAAE,IAAI;QACd,MAAM,EAAE;YACN,cAAc,EAAE,6BAA6B;YAC7C,MAAM,EAAE,SAAS,CAAC,MAAM,EAAE,OAAO,EAAE,OAAO,CAAC;YAC3C,YAAY,EAAE,QAAQ,CAAC,MAAM;YAC7B,MAAM;YACN,QAAQ;YACR,OAAO;YACP,iBAAiB,EAAE,OAAO;YAC1B,OAAO;YACP,MAAM,EAAE,YAAY,CAAC,QAAQ,EAAE,SAAS,CAAC,QAAQ,CAAC;SACnD;KACF,CAAC;AACJ,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"evidence-redact.d.ts","sourceRoot":"","sources":["../../src/controls/evidence-redact.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;GAwBG;AACH,OAAO,KAAK,EACV,aAAa,EACb,cAAc,EAEf,MAAM,qBAAqB,CAAC;
|
|
1
|
+
{"version":3,"file":"evidence-redact.d.ts","sourceRoot":"","sources":["../../src/controls/evidence-redact.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;GAwBG;AACH,OAAO,KAAK,EACV,aAAa,EACb,cAAc,EAEf,MAAM,qBAAqB,CAAC;AAQ7B;;;;GAIG;AACH,wBAAgB,yBAAyB,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,CAEhE;AAED;;;;;;GAMG;AACH,wBAAgB,yBAAyB,CACvC,MAAM,EAAE,cAAc,GACrB,cAAc,CAiBhB;AAyBD;;;;;;;;;GASG;AACH,wBAAgB,oBAAoB,CAClC,OAAO,EAAE,SAAS,aAAa,EAAE,GAChC,MAAM,GAAG,IAAI,CAwBf"}
|