@intentius/chant 0.44.14 → 0.46.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/dist/audit/discover.d.ts +26 -2
- package/dist/audit/discover.d.ts.map +1 -1
- package/dist/audit/report-model.d.ts +10 -0
- package/dist/audit/report-model.d.ts.map +1 -1
- package/dist/audit/rules-doc.d.ts.map +1 -1
- package/dist/cli/build-params-cli.d.ts +16 -7
- package/dist/cli/build-params-cli.d.ts.map +1 -1
- package/dist/cli/commands/audit.d.ts +20 -0
- package/dist/cli/commands/audit.d.ts.map +1 -1
- package/dist/cli/commands/build.d.ts +9 -0
- package/dist/cli/commands/build.d.ts.map +1 -1
- package/dist/cli/commands/check-lexicon-docs.d.ts +13 -0
- package/dist/cli/commands/check-lexicon-docs.d.ts.map +1 -1
- package/dist/cli/commands/check-lexicon-examples.d.ts +24 -14
- package/dist/cli/commands/check-lexicon-examples.d.ts.map +1 -1
- package/dist/cli/commands/check-lexicon.d.ts +14 -0
- package/dist/cli/commands/check-lexicon.d.ts.map +1 -1
- package/dist/cli/commands/init-lexicon/templates/codegen.d.ts.map +1 -1
- package/dist/cli/commands/init-lexicon/templates/docs.d.ts +5 -0
- package/dist/cli/commands/init-lexicon/templates/docs.d.ts.map +1 -1
- package/dist/cli/commands/init-lexicon.d.ts.map +1 -1
- package/dist/cli/commands/lexicon-surface-diff.d.ts +6 -0
- package/dist/cli/commands/lexicon-surface-diff.d.ts.map +1 -1
- package/dist/cli/commands/lint.d.ts.map +1 -1
- package/dist/cli/commands/onboard.d.ts +28 -0
- package/dist/cli/commands/onboard.d.ts.map +1 -1
- package/dist/cli/handlers/build.d.ts.map +1 -1
- package/dist/cli/handlers/graph.d.ts.map +1 -1
- package/dist/cli/handlers/lifecycle.d.ts +13 -0
- package/dist/cli/handlers/lifecycle.d.ts.map +1 -1
- package/dist/cli/handlers/run.d.ts.map +1 -1
- package/dist/cli/handlers/search.d.ts +27 -0
- package/dist/cli/handlers/search.d.ts.map +1 -1
- package/dist/cli/main.d.ts.map +1 -1
- package/dist/cli/registry.d.ts +7 -0
- package/dist/cli/registry.d.ts.map +1 -1
- package/dist/codegen/docs-pages.d.ts +39 -0
- package/dist/codegen/docs-pages.d.ts.map +1 -0
- package/dist/codegen/docs-sections.d.ts.map +1 -1
- package/dist/codegen/docs-sidebar.d.ts +13 -2
- package/dist/codegen/docs-sidebar.d.ts.map +1 -1
- package/dist/codegen/docs-types.d.ts +30 -10
- package/dist/codegen/docs-types.d.ts.map +1 -1
- package/dist/codegen/docs.d.ts +14 -2
- package/dist/codegen/docs.d.ts.map +1 -1
- package/dist/codegen/lexicon-regen.d.ts +11 -0
- package/dist/codegen/lexicon-regen.d.ts.map +1 -1
- package/dist/codegen/surface-snapshot.d.ts +27 -3
- package/dist/codegen/surface-snapshot.d.ts.map +1 -1
- package/dist/codegen/validate.d.ts +21 -3
- package/dist/codegen/validate.d.ts.map +1 -1
- package/dist/components/capability-plugin.d.ts +13 -2
- package/dist/components/capability-plugin.d.ts.map +1 -1
- package/dist/components/driver.d.ts +38 -0
- package/dist/components/driver.d.ts.map +1 -1
- package/dist/components/index.d.ts +1 -1
- package/dist/components/index.d.ts.map +1 -1
- package/dist/components/starter-plugin.d.ts.map +1 -1
- package/dist/config.d.ts +85 -5
- package/dist/config.d.ts.map +1 -1
- package/dist/discovery/fold-import.d.ts.map +1 -1
- package/dist/env.d.ts +12 -1
- package/dist/env.d.ts.map +1 -1
- package/dist/fold/fold.d.ts +100 -1
- package/dist/fold/fold.d.ts.map +1 -1
- package/dist/graph-ir.d.ts +12 -0
- package/dist/graph-ir.d.ts.map +1 -1
- package/dist/graph-ops.d.ts +17 -0
- package/dist/graph-ops.d.ts.map +1 -0
- package/dist/lexicon.d.ts +182 -2
- package/dist/lexicon.d.ts.map +1 -1
- package/dist/lifecycle/change-set.d.ts +23 -2
- package/dist/lifecycle/change-set.d.ts.map +1 -1
- package/dist/lifecycle/deep-observe.d.ts.map +1 -1
- package/dist/lifecycle/index.d.ts +1 -0
- package/dist/lifecycle/index.d.ts.map +1 -1
- package/dist/lifecycle/observe.d.ts +8 -0
- package/dist/lifecycle/observe.d.ts.map +1 -1
- package/dist/lifecycle/replay.d.ts.map +1 -1
- package/dist/lifecycle/snapshot.d.ts.map +1 -1
- package/dist/lifecycle/teardown.d.ts +130 -0
- package/dist/lifecycle/teardown.d.ts.map +1 -0
- package/dist/lifecycle/types.d.ts +7 -0
- package/dist/lifecycle/types.d.ts.map +1 -1
- package/dist/lint/engine.d.ts +6 -2
- package/dist/lint/engine.d.ts.map +1 -1
- package/dist/lint/policy.d.ts.map +1 -1
- package/dist/lint/rule.d.ts +31 -0
- package/dist/lint/rule.d.ts.map +1 -1
- package/dist/lint/rules/cor021-env-literal-name.d.ts +3 -0
- package/dist/lint/rules/cor021-env-literal-name.d.ts.map +1 -0
- package/dist/lint/rules/index.d.ts +2 -1
- package/dist/lint/rules/index.d.ts.map +1 -1
- package/dist/managed-fields.d.ts +33 -21
- package/dist/managed-fields.d.ts.map +1 -1
- package/dist/observation.d.ts +23 -1
- package/dist/observation.d.ts.map +1 -1
- package/dist/op/builders.d.ts +36 -7
- package/dist/op/builders.d.ts.map +1 -1
- package/dist/op/index.d.ts +1 -1
- package/dist/op/index.d.ts.map +1 -1
- package/dist/testing.d.ts +136 -0
- package/dist/testing.d.ts.map +1 -0
- package/dist/yaml.d.ts +0 -8
- package/dist/yaml.d.ts.map +1 -1
- package/package.json +6 -1
- package/src/__snapshots__/okf.test.ts.snap +20 -0
- package/src/audit/discover.test.ts +55 -1
- package/src/audit/discover.ts +70 -2
- package/src/audit/edge-init-safety.test.ts +149 -18
- package/src/audit/report-model.ts +12 -1
- package/src/audit/rules-doc.ts +1 -0
- package/src/build-params.test.ts +52 -0
- package/src/cli/build-params-cli.test.ts +25 -8
- package/src/cli/build-params-cli.ts +37 -23
- package/src/cli/commands/__fixtures__/audit-coverage/.github/workflows/ci.yml +5 -0
- package/src/cli/commands/__fixtures__/audit-coverage/Dockerfile +2 -0
- package/src/cli/commands/__fixtures__/audit-coverage/infra/main.tf +3 -0
- package/src/cli/commands/__fixtures__/audit-coverage/infra/stack.json +6 -0
- package/src/cli/commands/__fixtures__/audit-coverage/k8s/deploy.yaml +12 -0
- package/src/cli/commands/__fixtures__/init-lexicon-output/docs/pages/getting-started.mdx +16 -0
- package/src/cli/commands/__fixtures__/init-lexicon-output/docs/src/content.config.ts +10 -2
- package/src/cli/commands/__fixtures__/init-lexicon-output/src/codegen/generate-cli.ts +3 -1
- package/src/cli/commands/__fixtures__/init-lexicon-output/src/codegen/generate.ts +2 -1
- package/src/cli/commands/__snapshots__/init-lexicon.test.ts.snap +2 -1
- package/src/cli/commands/audit.test.ts +83 -1
- package/src/cli/commands/audit.ts +121 -28
- package/src/cli/commands/build.test.ts +275 -5
- package/src/cli/commands/build.ts +86 -14
- package/src/cli/commands/check-lexicon-docs.ts +30 -0
- package/src/cli/commands/check-lexicon-examples.test.ts +73 -7
- package/src/cli/commands/check-lexicon-examples.ts +66 -17
- package/src/cli/commands/check-lexicon.test.ts +46 -2
- package/src/cli/commands/check-lexicon.ts +64 -4
- package/src/cli/commands/init-lexicon/templates/codegen.ts +5 -2
- package/src/cli/commands/init-lexicon/templates/docs.ts +35 -2
- package/src/cli/commands/init-lexicon.test.ts +42 -1
- package/src/cli/commands/init-lexicon.ts +3 -1
- package/src/cli/commands/lexicon-rolling-upgrade.ts +1 -1
- package/src/cli/commands/lexicon-surface-diff.test.ts +1 -1
- package/src/cli/commands/lexicon-surface-diff.ts +10 -1
- package/src/cli/commands/lexicon-surface-diff.update.test.ts +112 -0
- package/src/cli/commands/lint.ts +19 -6
- package/src/cli/commands/onboard.test.ts +319 -225
- package/src/cli/commands/onboard.ts +144 -58
- package/src/cli/handlers/build.test.ts +3 -3
- package/src/cli/handlers/build.ts +2 -0
- package/src/cli/handlers/components.ts +2 -2
- package/src/cli/handlers/graph.test.ts +44 -0
- package/src/cli/handlers/graph.ts +24 -4
- package/src/cli/handlers/lifecycle.test.ts +348 -1
- package/src/cli/handlers/lifecycle.ts +235 -3
- package/src/cli/handlers/run.test.ts +5 -5
- package/src/cli/handlers/run.ts +1 -0
- package/src/cli/handlers/search-live.test.ts +217 -0
- package/src/cli/handlers/search.test.ts +41 -1
- package/src/cli/handlers/search.ts +60 -8
- package/src/cli/main.ts +17 -4
- package/src/cli/registry.ts +7 -0
- package/src/cli/security-boundary.test.ts +2 -1
- package/src/codegen/docs-pages.test.ts +194 -0
- package/src/codegen/docs-pages.ts +138 -0
- package/src/codegen/docs-sections.ts +0 -8
- package/src/codegen/docs-sidebar.ts +50 -37
- package/src/codegen/docs-types.ts +32 -4
- package/src/codegen/docs.ts +78 -40
- package/src/codegen/lexicon-regen.ts +22 -2
- package/src/codegen/rolling-upgrade.test.ts +1 -1
- package/src/codegen/rolling-upgrade.ts +1 -1
- package/src/codegen/surface-snapshot.test.ts +139 -0
- package/src/codegen/surface-snapshot.ts +297 -122
- package/src/codegen/validate.test.ts +49 -3
- package/src/codegen/validate.ts +36 -7
- package/src/components/auto-release.ts +1 -1
- package/src/components/capability-plugin.ts +23 -2
- package/src/components/driver.test.ts +45 -0
- package/src/components/driver.ts +64 -27
- package/src/components/index.ts +2 -0
- package/src/components/starter-plugin.ts +5 -2
- package/src/config.test.ts +40 -0
- package/src/config.ts +159 -8
- package/src/discovery/fold-import.test.ts +427 -2
- package/src/discovery/fold-import.ts +163 -7
- package/src/discovery/sandbox/driver.test.ts +11 -0
- package/src/env.test.ts +35 -1
- package/src/env.ts +17 -3
- package/src/fold/fold.test.ts +41 -0
- package/src/fold/fold.ts +372 -2
- package/src/graph-ir-live.test.ts +42 -0
- package/src/graph-ir.ts +42 -2
- package/src/graph-ops.test.ts +69 -0
- package/src/graph-ops.ts +42 -0
- package/src/lexicon.ts +182 -2
- package/src/lifecycle/change-set.test.ts +41 -0
- package/src/lifecycle/change-set.ts +30 -2
- package/src/lifecycle/deep-observe.ts +4 -0
- package/src/lifecycle/index.ts +1 -0
- package/src/lifecycle/observe.ts +29 -2
- package/src/lifecycle/replay.ts +3 -0
- package/src/lifecycle/snapshot.ts +3 -0
- package/src/lifecycle/teardown.test.ts +537 -0
- package/src/lifecycle/teardown.ts +357 -0
- package/src/lifecycle/types.ts +7 -0
- package/src/lint/engine.ts +7 -1
- package/src/lint/policy.ts +14 -3
- package/src/lint/rule.ts +23 -0
- package/src/lint/rules/cor021-env-literal-name.test.ts +128 -0
- package/src/lint/rules/cor021-env-literal-name.ts +114 -0
- package/src/lint/rules/index.ts +4 -1
- package/src/managed-fields.test.ts +15 -42
- package/src/managed-fields.ts +43 -26
- package/src/observation.test.ts +24 -8
- package/src/observation.ts +48 -4
- package/src/op/builders.ts +40 -7
- package/src/op/index.ts +1 -1
- package/src/ownership.test.ts +63 -1
- package/src/testing.test.ts +261 -0
- package/src/testing.ts +338 -0
- package/src/yaml.test.ts +15 -0
- package/src/yaml.ts +19 -2
package/dist/audit/discover.d.ts
CHANGED
|
@@ -27,7 +27,7 @@
|
|
|
27
27
|
* normalized to a JSON string here.
|
|
28
28
|
*/
|
|
29
29
|
import type { LexiconPlugin } from "../lexicon.js";
|
|
30
|
-
import type { AuditInput } from "./core.js";
|
|
30
|
+
import type { AuditInput, AuditLexicon } from "./core.js";
|
|
31
31
|
/** Lexicons the auditor knows how to detect and run checks for. */
|
|
32
32
|
export declare const AUDIT_LEXICONS: readonly ["github", "gitlab", "forgejo", "k8s", "docker", "aws", "azure", "gcp", "helm"];
|
|
33
33
|
/**
|
|
@@ -58,6 +58,28 @@ export interface DetectPlugin {
|
|
|
58
58
|
* crucially, the remote fetch (so we never pull a whole repo's contents).
|
|
59
59
|
*/
|
|
60
60
|
export declare function isCandidatePath(path: string): boolean;
|
|
61
|
+
/**
|
|
62
|
+
* What a candidate file looks like it wants, judged cheaply by core alone
|
|
63
|
+
* (path, filename, a few content markers) with no lexicon plugin involved.
|
|
64
|
+
* Names the lexicon that would have claimed a file when that lexicon isn't
|
|
65
|
+
* installed (#1623). Deliberately coarse: precision comes from the plugin's
|
|
66
|
+
* `detectTemplate`, which is exactly what's missing in that case.
|
|
67
|
+
* `terraform` is not an audit lexicon; `*.tf` is surfaced so the user learns
|
|
68
|
+
* the audit never reads it (see `chant carve`).
|
|
69
|
+
*/
|
|
70
|
+
export type LexiconHint = AuditLexicon | "terraform";
|
|
71
|
+
export declare function hintLexiconForFile(path: string, content: string): LexiconHint | undefined;
|
|
72
|
+
/** A candidate file that looked like it belonged to a lexicon the audit did not have. */
|
|
73
|
+
export interface UnclaimedFile {
|
|
74
|
+
path: string;
|
|
75
|
+
lexicon: LexiconHint;
|
|
76
|
+
}
|
|
77
|
+
/**
|
|
78
|
+
* Files no loaded lexicon claimed, paired with the lexicon core guesses they
|
|
79
|
+
* wanted. Only files whose guessed lexicon is absent are reported; a file an
|
|
80
|
+
* installed lexicon declined is that plugin's call, not a coverage gap.
|
|
81
|
+
*/
|
|
82
|
+
export declare function unclaimedFiles(files: RepoFile[], inputs: AuditInput[], plugins: DetectPlugin[]): UnclaimedFile[];
|
|
61
83
|
/**
|
|
62
84
|
* Classify an in-memory set of repo files into per-lexicon audit inputs. Pure
|
|
63
85
|
* (no fs, no network) so the local walk and the remote tree-fetch share exactly
|
|
@@ -72,5 +94,7 @@ export declare function classifyFiles(files: RepoFile[], plugins: DetectPlugin[]
|
|
|
72
94
|
* then handed to the shared `classifyFiles`. Detection is skipped for any
|
|
73
95
|
* lexicon whose plugin isn't provided, so a caller can scope discovery.
|
|
74
96
|
*/
|
|
75
|
-
export declare function discoverByDetection(root: string, plugins:
|
|
97
|
+
export declare function discoverByDetection(root: string, plugins: DetectPlugin[]): AuditInput[];
|
|
98
|
+
/** The walk half of `discoverByDetection`: candidate files read into memory, paths relative to the root. */
|
|
99
|
+
export declare function collectCandidates(root: string): RepoFile[];
|
|
76
100
|
//# sourceMappingURL=discover.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"discover.d.ts","sourceRoot":"","sources":["../../src/audit/discover.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;GA2BG;AAKH,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,YAAY,CAAC;AAChD,OAAO,KAAK,EAAE,UAAU,
|
|
1
|
+
{"version":3,"file":"discover.d.ts","sourceRoot":"","sources":["../../src/audit/discover.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;GA2BG;AAKH,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,YAAY,CAAC;AAChD,OAAO,KAAK,EAAE,UAAU,EAAE,YAAY,EAAE,MAAM,QAAQ,CAAC;AAEvD,mEAAmE;AACnE,eAAO,MAAM,cAAc,0FAA2F,CAAC;AAEvH;;;;;;GAMG;AACH,wBAAsB,gBAAgB,CAAC,KAAK,GAAE,SAAS,MAAM,EAAmB,GAAG,OAAO,CAAC,aAAa,EAAE,CAAC,CAe1G;AAoJD,wGAAwG;AACxG,MAAM,WAAW,QAAQ;IACvB,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,EAAE,MAAM,CAAC;CACjB;AAED;;;;;GAKG;AACH,MAAM,WAAW,YAAY;IAC3B,IAAI,EAAE,MAAM,CAAC;IACb,cAAc,CAAC,EAAE,CAAC,IAAI,EAAE,OAAO,KAAK,OAAO,CAAC;CAC7C;AAUD;;;GAGG;AACH,wBAAgB,eAAe,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAMrD;AAED;;;;;;;;GAQG;AACH,MAAM,MAAM,WAAW,GAAG,YAAY,GAAG,WAAW,CAAC;AAErD,wBAAgB,kBAAkB,CAAC,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,GAAG,WAAW,GAAG,SAAS,CAgBzF;AAED,yFAAyF;AACzF,MAAM,WAAW,aAAa;IAC5B,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,EAAE,WAAW,CAAC;CACtB;AAED;;;;GAIG;AACH,wBAAgB,cAAc,CAAC,KAAK,EAAE,QAAQ,EAAE,EAAE,MAAM,EAAE,UAAU,EAAE,EAAE,OAAO,EAAE,YAAY,EAAE,GAAG,aAAa,EAAE,CAehH;AA0BD;;;;;;;GAOG;AACH,wBAAgB,aAAa,CAAC,KAAK,EAAE,QAAQ,EAAE,EAAE,OAAO,EAAE,YAAY,EAAE,GAAG,UAAU,EAAE,CAiCtF;AAED;;;;GAIG;AACH,wBAAgB,mBAAmB,CAAC,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,YAAY,EAAE,GAAG,UAAU,EAAE,CAEvF;AAED,4GAA4G;AAC5G,wBAAgB,iBAAiB,CAAC,IAAI,EAAE,MAAM,GAAG,QAAQ,EAAE,CAiB1D"}
|
|
@@ -5,6 +5,7 @@
|
|
|
5
5
|
* proof.ts), guidance clusters, and severity counts.
|
|
6
6
|
*/
|
|
7
7
|
import type { AuditFinding } from "./core.js";
|
|
8
|
+
import type { UnclaimedFile } from "./discover.js";
|
|
8
9
|
import { type Authority, type Category, type FixKind, type RuleMeta, type Tier } from "./catalog.js";
|
|
9
10
|
import { type ProveOptions } from "./proof.js";
|
|
10
11
|
import type { Severity } from "../lint/rule.js";
|
|
@@ -95,9 +96,17 @@ export interface AuditReportJson {
|
|
|
95
96
|
name: string;
|
|
96
97
|
version: string;
|
|
97
98
|
};
|
|
99
|
+
/**
|
|
100
|
+
* Whether the audit had lexicons to look with (#1623). `"ok"` when at least
|
|
101
|
+
* one audit lexicon resolved; `"no-lexicons"` means nothing was inspected and
|
|
102
|
+
* the report carries no findings by construction.
|
|
103
|
+
*/
|
|
104
|
+
status: "ok" | "no-lexicons";
|
|
98
105
|
snapshot?: AuditSnapshot;
|
|
99
106
|
summary: ReportCounts;
|
|
100
107
|
findings: SerializedFinding[];
|
|
108
|
+
/** Candidate files that looked like they wanted a lexicon that is not installed. */
|
|
109
|
+
unclaimed?: UnclaimedFile[];
|
|
101
110
|
}
|
|
102
111
|
export declare function metaFor(id: string, catalog?: Record<string, RuleMeta>): RuleMeta;
|
|
103
112
|
export declare function sortFindings(a: EnrichedFinding, b: EnrichedFinding): number;
|
|
@@ -118,5 +127,6 @@ export declare function buildReportJson(findings: AuditFinding[], opts?: {
|
|
|
118
127
|
snapshot?: AuditSnapshot;
|
|
119
128
|
toolVersion?: string;
|
|
120
129
|
catalog?: Record<string, RuleMeta>;
|
|
130
|
+
unclaimed?: UnclaimedFile[];
|
|
121
131
|
}): AuditReportJson;
|
|
122
132
|
//# sourceMappingURL=report-model.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"report-model.d.ts","sourceRoot":"","sources":["../../src/audit/report-model.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,QAAQ,CAAC;AAC3C,OAAO,EAA4B,KAAK,SAAS,EAAE,KAAK,QAAQ,EAAE,KAAK,OAAO,EAAE,KAAK,QAAQ,EAAE,KAAK,IAAI,EAAE,MAAM,WAAW,CAAC;AAC5H,OAAO,EAAyB,KAAK,YAAY,EAAE,MAAM,SAAS,CAAC;AACnE,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,cAAc,CAAC;AAE7C;;;;;GAKG;AAGH,eAAO,MAAM,qBAAqB,QAAQ,CAAC;AAE3C,eAAO,MAAM,eAAe,EAAE,MAAM,CAAC,QAAQ,EAAE,MAAM,CAAqC,CAAC;AAO3F,MAAM,WAAW,eAAgB,SAAQ,YAAY;IACnD,IAAI,EAAE,QAAQ,CAAC;CAChB;AAED,oFAAoF;AACpF,MAAM,WAAW,YAAY;IAC3B,IAAI,EAAE,MAAM,CAAC;IACb,6EAA6E;IAC7E,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,gCAAgC;IAChC,SAAS,EAAE,QAAQ,EAAE,CAAC;IACtB,mFAAmF;IACnF,UAAU,EAAE,eAAe,EAAE,CAAC;CAC/B;AAED,4DAA4D;AAC5D,MAAM,WAAW,eAAe;IAC9B,IAAI,EAAE,M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AK,CAAC;QAAE,IAAI,EAAE,MAAM,CAAC;QAAC,OAAO,EAAE,MAAM,CAAA;KAAE,CAAC,CAAC;IACjD,UAAU,CAAC,EAAE,YAAY,CAAC,YAAY,CAAC,CAAC;IACxC,aAAa,CAAC,EAAE,YAAY,CAAC,eAAe,CAAC,CAAC;IAC9C,iIAAiI;IACjI,OAAO,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,QAAQ,CAAC,CAAC;CACpC;AAED,2DAA2D;AAC3D,wBAAgB,gBAAgB,CAAC,QAAQ,EAAE,YAAY,EAAE,EAAE,IAAI,GAAE,iBAAsB,GAAG,WAAW,CAwCpG;AAED,2EAA2E;AAC3E,wBAAgB,eAAe,CAC7B,QAAQ,EAAE,YAAY,EAAE,EACxB,IAAI,GAAE;IAAE,QAAQ,CAAC,EAAE,aAAa,CAAC;IAAC,WAAW,CAAC,EAAE,MAAM,CAAC;IAAC,OAAO,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,QAAQ,CAAC,CAAC;IAAC,SAAS,CAAC,EAAE,aAAa,EAAE,CAAA;CAAO,GAC7H,eAAe,CA0BjB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"rules-doc.d.ts","sourceRoot":"","sources":["../../src/audit/rules-doc.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAyBH;;;;;;GAMG;AACH,wBAAsB,oBAAoB,IAAI,OAAO,CAAC,MAAM,CAAC,
|
|
1
|
+
{"version":3,"file":"rules-doc.d.ts","sourceRoot":"","sources":["../../src/audit/rules-doc.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAyBH;;;;;;GAMG;AACH,wBAAsB,oBAAoB,IAAI,OAAO,CAAC,MAAM,CAAC,CAqB5D"}
|
|
@@ -24,6 +24,8 @@ export interface CliBuildParamsArgs {
|
|
|
24
24
|
cli?: Record<string, string>;
|
|
25
25
|
/** `--params-file <path>` — a JSON file of `{ "name": value }` values, read and parsed here. */
|
|
26
26
|
paramsFile?: string;
|
|
27
|
+
/** `--verbose` — list every resolved parameter one per line instead of the one-line count (#1424). */
|
|
28
|
+
verbose?: boolean;
|
|
27
29
|
}
|
|
28
30
|
export interface CliBuildParamsResolution {
|
|
29
31
|
success: boolean;
|
|
@@ -46,15 +48,22 @@ export interface CliBuildParamsResolution {
|
|
|
46
48
|
* chant #1064's acceptance criterion that this never surfaces as a thrown
|
|
47
49
|
* error from inside user source.
|
|
48
50
|
*
|
|
49
|
-
* On success,
|
|
50
|
-
* `
|
|
51
|
-
*
|
|
52
|
-
*
|
|
53
|
-
*
|
|
54
|
-
*
|
|
55
|
-
* never varies, which is exactly why they can be a count.
|
|
51
|
+
* On success, the resolution is summarized on one `console.error` line —
|
|
52
|
+
* `N build parameters resolved (a default, b from cli, ...); --verbose to
|
|
53
|
+
* list` — so silence never means "no parameters reached us", and the count
|
|
54
|
+
* by source says whether an override arrived. Under `--verbose` (or
|
|
55
|
+
* `CHANT_PARAM_ECHO=all`) every parameter is listed as
|
|
56
|
+
* `[param] <name> = <value> (<source>)` instead (#1424).
|
|
56
57
|
*/
|
|
57
58
|
export declare function resolveCliBuildParams(buildParamsConfig: BuildParamsConfig | undefined, args: CliBuildParamsArgs): CliBuildParamsResolution;
|
|
59
|
+
/**
|
|
60
|
+
* `N build parameters resolved (1 from cli, 3 default); --verbose to list` —
|
|
61
|
+
* the non-verbose echo of a successful resolution (#1424). Sources appear in
|
|
62
|
+
* precedence order; a source nobody used is left out.
|
|
63
|
+
*/
|
|
64
|
+
export declare function summarizeBuildParams(provenance: readonly {
|
|
65
|
+
source: string;
|
|
66
|
+
}[]): string;
|
|
58
67
|
/**
|
|
59
68
|
* Resolve a command's declared build-time parameters, the same way `chant
|
|
60
69
|
* build` does, so a `build()`/`discover()` on the declared side sees the values
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"build-params-cli.d.ts","sourceRoot":"","sources":["../../src/cli/build-params-cli.ts"],"names":[],"mappings":"AAEA,OAAO,EAAsB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oBG;AACH,wBAAgB,qBAAqB,CACnC,iBAAiB,EAAE,iBAAiB,GAAG,SAAS,EAChD,IAAI,EAAE,kBAAkB,GACvB,wBAAwB,CA4C1B;AAED;;;;GAIG;AACH,wBAAgB,oBAAoB,CAAC,UAAU,EAAE,SAAS;IAAE,MAAM,EAAE,MAAM,CAAA;CAAE,EAAE,GAAG,MAAM,CAUtF;AAED;;;;;;;;;;;;;;;;;;;GAmBG;AACH,wBAAsB,kBAAkB,CACtC,iBAAiB,EAAE,iBAAiB,GAAG,SAAS,EAChD,IAAI,EAAE;IAAE,KAAK,CAAC,EAAE,MAAM,EAAE,CAAC;IAAC,UAAU,CAAC,EAAE,MAAM,CAAA;CAAE,GAC9C,OAAO,CAAC,oBAAoB,EAAE,GAAG,SAAS,CAAC,CAU7C"}
|
|
@@ -5,6 +5,7 @@
|
|
|
5
5
|
* directly and runs the real post-synth checks via the audit core.
|
|
6
6
|
*/
|
|
7
7
|
import { type AuditInput, type AuditFinding, type ChecksProvider } from "../../audit/core.js";
|
|
8
|
+
import { type DetectPlugin, type UnclaimedFile } from "../../audit/discover.js";
|
|
8
9
|
import { type ReportTheme } from "../../audit/report-html.js";
|
|
9
10
|
export type AuditFormat = "stylish" | "json" | "sarif" | "markdown" | "html";
|
|
10
11
|
export type AuditTier = "merge-worthy" | "all";
|
|
@@ -33,6 +34,8 @@ export interface AuditCommandOptions {
|
|
|
33
34
|
now?: string;
|
|
34
35
|
/** Tool version recorded in the HTML snapshot. */
|
|
35
36
|
toolVersion?: string;
|
|
37
|
+
/** Injectable detection plugins (testing); defaults to every installed audit lexicon. */
|
|
38
|
+
plugins?: DetectPlugin[];
|
|
36
39
|
}
|
|
37
40
|
export interface AuditCommandResult {
|
|
38
41
|
success: boolean;
|
|
@@ -45,7 +48,24 @@ export interface AuditCommandResult {
|
|
|
45
48
|
error?: string;
|
|
46
49
|
/** Set when the report was written to a file (via `output`). */
|
|
47
50
|
wroteTo?: string;
|
|
51
|
+
/**
|
|
52
|
+
* `"no-lexicons"` when not a single audit lexicon resolved, so nothing was
|
|
53
|
+
* inspected (#1623). `output` then carries the diagnostic, not a report.
|
|
54
|
+
*/
|
|
55
|
+
status?: "ok" | "no-lexicons";
|
|
56
|
+
/** Candidate files that looked like they wanted a lexicon that is not installed. */
|
|
57
|
+
unclaimed?: UnclaimedFile[];
|
|
58
|
+
/** Where `output` belongs; diagnostics go to stderr, reports to stdout (default). */
|
|
59
|
+
stream?: "stdout" | "stderr";
|
|
48
60
|
}
|
|
61
|
+
/** Exit code when the audit had no lexicons to look with. Distinct from 1 (findings / failure). */
|
|
62
|
+
export declare const NO_LEXICONS_EXIT_CODE = 2;
|
|
63
|
+
/**
|
|
64
|
+
* The exact one-liner that gives a bare `npx @intentius/chant audit` the
|
|
65
|
+
* lexicons it needs. Every wanted lexicon is a `-p` package so npx puts all of
|
|
66
|
+
* them on the same resolution path.
|
|
67
|
+
*/
|
|
68
|
+
export declare function installLine(lexicons: string[], target: string): string;
|
|
49
69
|
/**
|
|
50
70
|
* Select the fetch token for a repo host. Tokens are host-specific — a GitHub
|
|
51
71
|
* PAT sent to GitLab/Codeberg is rejected (401) — so we never cross hosts.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"audit.d.ts","sourceRoot":"","sources":["../../../src/cli/commands/audit.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAGH,OAAO,EAAc,KAAK,UAAU,EAAE,KAAK,YAAY,EAAE,KAAK,cAAc,EAAE,MAAM,kBAAkB,CAAC;
|
|
1
|
+
{"version":3,"file":"audit.d.ts","sourceRoot":"","sources":["../../../src/cli/commands/audit.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAGH,OAAO,EAAc,KAAK,UAAU,EAAE,KAAK,YAAY,EAAE,KAAK,cAAc,EAAE,MAAM,kBAAkB,CAAC;AACvG,OAAO,EAAsF,KAAK,YAAY,EAAiB,KAAK,aAAa,EAAE,MAAM,sBAAsB,CAAC;AAGhL,OAAO,EAAc,K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AM,CAAC;IACjB;;;OAGG;IACH,MAAM,CAAC,EAAE,IAAI,GAAG,aAAa,CAAC;IAC9B,oFAAoF;IACpF,SAAS,CAAC,EAAE,aAAa,EAAE,CAAC;IAC5B,qFAAqF;IACrF,MAAM,CAAC,EAAE,QAAQ,GAAG,QAAQ,CAAC;CAC9B;AAED,mGAAmG;AACnG,eAAO,MAAM,qBAAqB,IAAI,CAAC;AAYvC;;;;GAIG;AACH,wBAAgB,WAAW,CAAC,QAAQ,EAAE,MAAM,EAAE,EAAE,MAAM,EAAE,MAAM,GAAG,MAAM,CAGtE;AA0DD;;;GAGG;AACH,wBAAgB,YAAY,CAAC,GAAG,EAAE,MAAM,EAAE,GAAG,GAAE,MAAM,CAAC,UAAwB,GAAG,MAAM,GAAG,SAAS,CAiBlG;AAuBD,oEAAoE;AACpE,wBAAgB,aAAa,CAAC,MAAM,EAAE,UAAU,EAAE,GAAG,MAAM,EAAE,CAS5D;AAmFD,mDAAmD;AACnD,wBAAsB,YAAY,CAAC,OAAO,EAAE,mBAAmB,GAAG,OAAO,CAAC,kBAAkB,CAAC,CAyI5F;AAED,uCAAuC;AACvC,wBAAgB,gBAAgB,CAAC,MAAM,EAAE,kBAAkB,GAAG,IAAI,CAWjE"}
|
|
@@ -86,6 +86,15 @@ export interface BuildResult {
|
|
|
86
86
|
* Execute the build command
|
|
87
87
|
*/
|
|
88
88
|
export declare function buildCommand(options: BuildOptions): Promise<BuildResult>;
|
|
89
|
+
/**
|
|
90
|
+
* `fold: 8 files folded, 13 ran (--verbose for reasons)` — the non-verbose
|
|
91
|
+
* report of a fold build's per-file decisions (#1424). The "(--verbose for
|
|
92
|
+
* reasons)" hint appears only when something ran, since that is the only case
|
|
93
|
+
* with a reason to read.
|
|
94
|
+
*/
|
|
95
|
+
export declare function summarizeFoldDecisions(decisions: readonly {
|
|
96
|
+
mode: string;
|
|
97
|
+
}[]): string;
|
|
89
98
|
/**
|
|
90
99
|
* Print errors to stderr
|
|
91
100
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"build.d.ts","sourceRoot":"","sources":["../../../src/cli/commands/build.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"build.d.ts","sourceRoot":"","sources":["../../../src/cli/commands/build.ts"],"names":[],"mappings":"AAaA,OAAO,KAAK,EAAE,UAAU,EAAoB,MAAM,kBAAkB,CAAC;AACrE,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,eAAe,CAAC;AAYnD;;GAEG;AACH,MAAM,WAAW,YAAY;IAC3B,uCAAuC;IACvC,IAAI,EAAE,MAAM,CAAC;IACb,4CAA4C;IAC5C,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,oBAAoB;IACpB,MAAM,EAAE,MAAM,GAAG,MAAM,CAAC;IACxB,2CAA2C;IAC3C,WAAW,EAAE,UAAU,EAAE,CAAC;IAC1B,8CAA8C;IAC9C,OAAO,CAAC,EAAE,aAAa,EAAE,CAAC;IAC1B,8BAA8B;IAC9B,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB;;;;OAIG;IACH,GAAG,CAAC,EAAE,MAAM,CAAC;IACb;;;;;;;OAOG;IACH,IAAI,CAAC,EAAE,OAAO,CAAC;IAEf;;;;;;OAMG;IACH,OAAO,CAAC,EAAE,OAAO,CAAC;IAElB;;;;;OAKG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IAEhC;;;;OAIG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC;CACrB;AAED;;;;;;;GAOG;AACH,wBAAgB,kBAAkB,CAChC,QAAQ,EAAE,MAAM,GAAG,SAAS,EAC5B,MAAM,EAAE,MAAM,GAAG,SAAS,GACzB;IAAE,MAAM,EAAE,MAAM,GAAG,MAAM,CAAC;IAAC,OAAO,CAAC,EAAE,MAAM,CAAA;CAAE,CAoB/C;AAED;;GAEG;AACH,MAAM,WAAW,WAAW;IAC1B,kCAAkC;IAClC,OAAO,EAAE,OAAO,CAAC;IACjB,gCAAgC;IAChC,aAAa,EAAE,MAAM,CAAC;IACtB,uCAAuC;IACvC,SAAS,EAAE,MAAM,CAAC;IAClB,qBAAqB;IACrB,MAAM,EAAE,MAAM,EAAE,CAAC;IACjB,uBAAuB;IACvB,QAAQ,EAAE,MAAM,EAAE,CAAC;IACnB,2JAA2J;IAC3J,WAAW,CAAC,EAAE,OAAO,kBAAkB,EAAE,oBAAoB,EAAE,CAAC;CACjE;AAED;;GAEG;AACH,wBAAsB,YAAY,CAAC,OAAO,EAAE,YAAY,GAAG,OAAO,CAAC,WAAW,CAAC,CA4f9E;AAED;;;;;GAKG;AACH,wBAAgB,sBAAsB,CAAC,SAAS,EAAE,SAAS;IAAE,IAAI,EAAE,MAAM,CAAA;CAAE,EAAE,GAAG,MAAM,CAMrF;AAiDD;;GAEG;AACH,wBAAgB,WAAW,CAAC,MAAM,EAAE,MAAM,EAAE,GAAG,IAAI,CAIlD;AAED;;GAEG;AACH,wBAAgB,aAAa,CAAC,QAAQ,EAAE,MAAM,EAAE,GAAG,IAAI,CAItD;AAED;;;GAGG;AACH,wBAAgB,iBAAiB,CAC/B,OAAO,EAAE,YAAY,EACrB,SAAS,CAAC,EAAE,CAAC,MAAM,EAAE,WAAW,KAAK,IAAI,GACxC,MAAM,IAAI,CAmCZ"}
|
|
@@ -39,4 +39,17 @@ export declare function sidebarSlugs(configSource: string): Set<string>;
|
|
|
39
39
|
* twice would just be noise.
|
|
40
40
|
*/
|
|
41
41
|
export declare function auditDocsReachability(lexiconDir: string): DocsReachability;
|
|
42
|
+
export interface DocsClassification {
|
|
43
|
+
/** Whether this lexicon has a docs/pages/ directory at all. */
|
|
44
|
+
hasPages: boolean;
|
|
45
|
+
/** Authored page files under docs/pages/ that lack a valid `diataxis` field. */
|
|
46
|
+
unclassified: string[];
|
|
47
|
+
}
|
|
48
|
+
/**
|
|
49
|
+
* Audit docs/pages/ for authored pages with no Diátaxis quadrant (#1731).
|
|
50
|
+
*
|
|
51
|
+
* The docs pipeline throws on the same condition, so this is the cheap
|
|
52
|
+
* pre-flight that reports every offender at once instead of the first one.
|
|
53
|
+
*/
|
|
54
|
+
export declare function auditDocsClassification(lexiconDir: string): DocsClassification;
|
|
42
55
|
//# sourceMappingURL=check-lexicon-docs.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"check-lexicon-docs.d.ts","sourceRoot":"","sources":["../../../src/cli/commands/check-lexicon-docs.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAKH,MAAM,WAAW,gBAAgB;IAC/B,0DAA0D;IAC1D,OAAO,EAAE,OAAO,CAAC;IACjB,+DAA+D;IAC/D,KAAK,EAAE,MAAM,EAAE,CAAC;IAChB,+DAA+D;IAC/D,WAAW,EAAE,MAAM,EAAE,CAAC;CACvB;AAED;;;;;;;;GAQG;AACH,wBAAgB,YAAY,CAAC,YAAY,EAAE,MAAM,GAAG,GAAG,CAAC,MAAM,CAAC,CAM9D;AAED;;;;;;GAMG;AACH,wBAAgB,qBAAqB,CAAC,UAAU,EAAE,MAAM,GAAG,gBAAgB,CAkB1E"}
|
|
1
|
+
{"version":3,"file":"check-lexicon-docs.d.ts","sourceRoot":"","sources":["../../../src/cli/commands/check-lexicon-docs.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAKH,MAAM,WAAW,gBAAgB;IAC/B,0DAA0D;IAC1D,OAAO,EAAE,OAAO,CAAC;IACjB,+DAA+D;IAC/D,KAAK,EAAE,MAAM,EAAE,CAAC;IAChB,+DAA+D;IAC/D,WAAW,EAAE,MAAM,EAAE,CAAC;CACvB;AAED;;;;;;;;GAQG;AACH,wBAAgB,YAAY,CAAC,YAAY,EAAE,MAAM,GAAG,GAAG,CAAC,MAAM,CAAC,CAM9D;AAED;;;;;;GAMG;AACH,wBAAgB,qBAAqB,CAAC,UAAU,EAAE,MAAM,GAAG,gBAAgB,CAkB1E;AAED,MAAM,WAAW,kBAAkB;IACjC,+DAA+D;IAC/D,QAAQ,EAAE,OAAO,CAAC;IAClB,gFAAgF;IAChF,YAAY,EAAE,MAAM,EAAE,CAAC;CACxB;AAID;;;;;GAKG;AACH,wBAAgB,uBAAuB,CAAC,UAAU,EAAE,MAAM,GAAG,kBAAkB,CAa9E"}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* "Every shipped example builds" (chant #1067)
|
|
2
|
+
* "Every shipped example builds" (chant #1067) and "every shipped example
|
|
3
|
+
* passes its own lexicon's post-synth checks" (chant #1400).
|
|
3
4
|
*
|
|
4
5
|
* `check-lexicon.ts`'s existing example checks only count directories
|
|
5
6
|
* ("At least 1 example", "At least 3 examples", "At least 5 examples with
|
|
@@ -12,25 +13,34 @@
|
|
|
12
13
|
* pipeline `chant build` runs and report whether it produced output with no
|
|
13
14
|
* structural error.
|
|
14
15
|
*
|
|
15
|
-
*
|
|
16
|
-
*
|
|
17
|
-
*
|
|
18
|
-
*
|
|
19
|
-
*
|
|
20
|
-
*
|
|
21
|
-
*
|
|
22
|
-
*
|
|
23
|
-
*
|
|
24
|
-
*
|
|
25
|
-
* that axis into "does it build" would fail this new check for all of them
|
|
26
|
-
* on its very first run, for defects this issue never set out to fix.
|
|
27
|
-
* Tracked separately; not silently absorbed here.
|
|
16
|
+
* #1067 scoped "builds" to discovery + serialization on purpose, and said
|
|
17
|
+
* so here: three aws examples (lambda-api, lambda-s3, shared-alb) failed
|
|
18
|
+
* WAW042/WAW054 at error severity at the time, for defects that issue never
|
|
19
|
+
* set out to fix. #1400 fixed those three and added the second axis: after
|
|
20
|
+
* serialization, the post-synth checks each loaded plugin ships run against
|
|
21
|
+
* that plugin's own output, exactly as `chant build` runs them (scoped per
|
|
22
|
+
* plugin, `lint.rules` from the example's chant.config applied), and any
|
|
23
|
+
* diagnostic left at `error` severity fails the example. Warnings do not.
|
|
24
|
+
* An example is what a user copies wholesale; it must not teach a pattern
|
|
25
|
+
* the lexicon it demonstrates flags as an error.
|
|
28
26
|
*/
|
|
27
|
+
import { type BuildResult } from "../../build.js";
|
|
28
|
+
import { type PostSynthDiagnostic } from "../../lint/post-synth.js";
|
|
29
|
+
import { applyConfiguredSeverity } from "../../lint/config.js";
|
|
30
|
+
import type { LexiconPlugin } from "../../lexicon.js";
|
|
29
31
|
export interface ExampleBuildResult {
|
|
30
32
|
example: string;
|
|
31
33
|
ok: boolean;
|
|
32
34
|
detail?: string;
|
|
33
35
|
}
|
|
36
|
+
/**
|
|
37
|
+
* Run each plugin's own post-synth checks against that plugin's output —
|
|
38
|
+
* the same per-plugin scoping and `lint.rules` severity resolution
|
|
39
|
+
* `cli/commands/build.ts` applies — and return what is left at `error`
|
|
40
|
+
* severity. Project `lint.policies` are not run here: those are the
|
|
41
|
+
* example author's organizational policy, not the lexicon's contract.
|
|
42
|
+
*/
|
|
43
|
+
export declare function postSynthErrors(plugins: LexiconPlugin[], result: BuildResult, lintRules: Parameters<typeof applyConfiguredSeverity>[1]): PostSynthDiagnostic[];
|
|
34
44
|
/**
|
|
35
45
|
* Build every non-empty example under `<lexiconDir>/examples/*\/src` and
|
|
36
46
|
* report per-example pass/fail. Returns `[]` when the lexicon has no
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"check-lexicon-examples.d.ts","sourceRoot":"","sources":["../../../src/cli/commands/check-lexicon-examples.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"check-lexicon-examples.d.ts","sourceRoot":"","sources":["../../../src/cli/commands/check-lexicon-examples.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;GAyBG;AAIH,OAAO,EAAS,KAAK,WAAW,EAAE,MAAM,aAAa,CAAC;AAKtD,OAAO,EAAsB,KAAK,mBAAmB,EAAE,MAAM,uBAAuB,CAAC;AACrF,OAAO,EAAE,uBAAuB,EAAE,MAAM,mBAAmB,CAAC;AAC5D,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,eAAe,CAAC;AAGnD,MAAM,WAAW,kBAAkB;IACjC,OAAO,EAAE,MAAM,CAAC;IAChB,EAAE,EAAE,OAAO,CAAC;IACZ,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AAED;;;;;;GAMG;AACH,wBAAgB,eAAe,CAC7B,OAAO,EAAE,aAAa,EAAE,EACxB,MAAM,EAAE,WAAW,EACnB,SAAS,EAAE,UAAU,CAAC,OAAO,uBAAuB,CAAC,CAAC,CAAC,CAAC,GACvD,mBAAmB,EAAE,CAmBvB;AAOD;;;;;GAKG;AACH,wBAAsB,kBAAkB,CAAC,UAAU,EAAE,MAAM,GAAG,OAAO,CAAC,kBAAkB,EAAE,CAAC,CA8E1F"}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import type { LexiconPlugin } from "../../lexicon.js";
|
|
1
2
|
export interface CheckItem {
|
|
2
3
|
name: string;
|
|
3
4
|
tier: 1 | 2 | 3;
|
|
@@ -8,6 +9,19 @@ export interface CheckResult {
|
|
|
8
9
|
items: CheckItem[];
|
|
9
10
|
tier1Pass: boolean;
|
|
10
11
|
}
|
|
12
|
+
/**
|
|
13
|
+
* #1330 — gate on the plugin's own spec-coverage accounting.
|
|
14
|
+
*
|
|
15
|
+
* fountain's `coverage.test.ts` asserts `unaccountedKinds == []` in CI, but a
|
|
16
|
+
* lexicon-local test is a convention, not a check-lexicon contract — the same
|
|
17
|
+
* class of gap #1342 closed for LSP providers. `coverageReport()` gives core
|
|
18
|
+
* the one fact to gate on: which upstream spec kinds are neither modeled nor
|
|
19
|
+
* on the lexicon's exclusion list. A lexicon without the member passes
|
|
20
|
+
* vacuously, the same conditional shape as the docs-reachability and
|
|
21
|
+
* Diátaxis checks; a report that throws fails, for the same reason `safeList`
|
|
22
|
+
* treats a throw as worse than absence.
|
|
23
|
+
*/
|
|
24
|
+
export declare function coverageReportCheck(plugin: LexiconPlugin | undefined): Promise<CheckItem>;
|
|
11
25
|
/**
|
|
12
26
|
* Run all completeness checks against a lexicon directory.
|
|
13
27
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"check-lexicon.d.ts","sourceRoot":"","sources":["../../../src/cli/commands/check-lexicon.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"check-lexicon.d.ts","sourceRoot":"","sources":["../../../src/cli/commands/check-lexicon.ts"],"names":[],"mappings":"AAQA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,eAAe,CAAC;AAInD,MAAM,WAAW,SAAS;IACxB,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC;IAChB,IAAI,EAAE,OAAO,CAAC;IACd,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AAED,MAAM,WAAW,WAAW;IAC1B,KAAK,EAAE,SAAS,EAAE,CAAC;IACnB,SAAS,EAAE,OAAO,CAAC;CACpB;AA+CD;;;;;;;;;;;GAWG;AACH,wBAAsB,mBAAmB,CAAC,MAAM,EAAE,aAAa,GAAG,SAAS,GAAG,OAAO,CAAC,SAAS,CAAC,CAyB/F;AAID;;GAEG;AACH,wBAAsB,YAAY,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC,WAAW,CAAC,CA4lBpE;AAqBD;;GAEG;AACH,wBAAgB,gBAAgB,CAAC,MAAM,EAAE,WAAW,EAAE,IAAI,EAAE,OAAO,GAAG,IAAI,CAmDzE"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"codegen.d.ts","sourceRoot":"","sources":["../../../../../src/cli/commands/init-lexicon/templates/codegen.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,wBAAgB,yBAAyB,IAAI,MAAM,
|
|
1
|
+
{"version":3,"file":"codegen.d.ts","sourceRoot":"","sources":["../../../../../src/cli/commands/init-lexicon/templates/codegen.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,wBAAgB,yBAAyB,IAAI,MAAM,CA6ElD;AAED,wBAAgB,4BAA4B,IAAI,MAAM,CAYrD;AAED,wBAAgB,uBAAuB,IAAI,MAAM,CAmChD;AAED,wBAAgB,wBAAwB,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,CA2B7D;AAED,wBAAgB,qBAAqB,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,CA2B1D"}
|
|
@@ -5,5 +5,10 @@ export declare function generateDocsPackageJson(name: string): string;
|
|
|
5
5
|
export declare function generateDocsTsConfig(): string;
|
|
6
6
|
export declare function generateDocsAstroConfig(name: string): string;
|
|
7
7
|
export declare function generateDocsContentConfig(): string;
|
|
8
|
+
/**
|
|
9
|
+
* First authored page. Lives under docs/pages/; the docs pipeline copies it
|
|
10
|
+
* into src/content/docs/ and builds the sidebar from its `diataxis` field.
|
|
11
|
+
*/
|
|
12
|
+
export declare function generateDocsGettingStartedMdx(name: string): string;
|
|
8
13
|
export declare function generateDocsIndexMdx(name: string): string;
|
|
9
14
|
//# sourceMappingURL=docs.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"docs.d.ts","sourceRoot":"","sources":["../../../../../src/cli/commands/init-lexicon/templates/docs.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,wBAAgB,uBAAuB,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,CAqB5D;AAED,wBAAgB,oBAAoB,IAAI,MAAM,CAU7C;AAED,wBAAgB,uBAAuB,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,CAiB5D;AAED,wBAAgB,yBAAyB,IAAI,MAAM,
|
|
1
|
+
{"version":3,"file":"docs.d.ts","sourceRoot":"","sources":["../../../../../src/cli/commands/init-lexicon/templates/docs.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,wBAAgB,uBAAuB,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,CAqB5D;AAED,wBAAgB,oBAAoB,IAAI,MAAM,CAU7C;AAED,wBAAgB,uBAAuB,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,CAiB5D;AAED,wBAAgB,yBAAyB,IAAI,MAAM,CAiBlD;AAED;;;GAGG;AACH,wBAAgB,6BAA6B,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,CAmBlE;AAED,wBAAgB,oBAAoB,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,CAWzD"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"init-lexicon.d.ts","sourceRoot":"","sources":["../../../src/cli/commands/init-lexicon.ts"],"names":[],"mappings":"AAeA;;GAEG;AACH,MAAM,WAAW,kBAAkB;IACjC,gCAAgC;IAChC,IAAI,EAAE,MAAM,CAAC;IACb,uDAAuD;IACvD,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,6CAA6C;IAC7C,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB,0BAA0B;IAC1B,WAAW,CAAC,EAAE,OAAO,CAAC;CACvB;AAED;;GAEG;AACH,MAAM,WAAW,iBAAiB;IAChC,OAAO,EAAE,OAAO,CAAC;IACjB,YAAY,EAAE,MAAM,EAAE,CAAC;IACvB,QAAQ,EAAE,MAAM,EAAE,CAAC;IACnB,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB;AAQD,wBAAgB,WAAW,CAAC,IAAI,EAAE,MAAM;;;;;EAQvC;AAqBD;;GAEG;AACH,wBAAsB,kBAAkB,CAAC,OAAO,EAAE,kBAAkB,GAAG,OAAO,CAAC,iBAAiB,CAAC,
|
|
1
|
+
{"version":3,"file":"init-lexicon.d.ts","sourceRoot":"","sources":["../../../src/cli/commands/init-lexicon.ts"],"names":[],"mappings":"AAeA;;GAEG;AACH,MAAM,WAAW,kBAAkB;IACjC,gCAAgC;IAChC,IAAI,EAAE,MAAM,CAAC;IACb,uDAAuD;IACvD,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,6CAA6C;IAC7C,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB,0BAA0B;IAC1B,WAAW,CAAC,EAAE,OAAO,CAAC;CACvB;AAED;;GAEG;AACH,MAAM,WAAW,iBAAiB;IAChC,OAAO,EAAE,OAAO,CAAC;IACjB,YAAY,EAAE,MAAM,EAAE,CAAC;IACvB,QAAQ,EAAE,MAAM,EAAE,CAAC;IACnB,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB;AAQD,wBAAgB,WAAW,CAAC,IAAI,EAAE,MAAM;;;;;EAQvC;AAqBD;;GAEG;AACH,wBAAsB,kBAAkB,CAAC,OAAO,EAAE,kBAAkB,GAAG,OAAO,CAAC,iBAAiB,CAAC,CAuHhG;AAED;;GAEG;AACH,wBAAsB,sBAAsB,CAAC,MAAM,EAAE,iBAAiB,GAAG,OAAO,CAAC,IAAI,CAAC,CAyBrF"}
|
|
@@ -9,6 +9,12 @@
|
|
|
9
9
|
*
|
|
10
10
|
* The snapshot file is written to `<lexicon-dir>/surface.snapshot.json`.
|
|
11
11
|
* Pass `--update-snapshot` to commit the fresh snapshot after a successful run.
|
|
12
|
+
*
|
|
13
|
+
* An update run is exempt from the `surface-matches-snapshot` validate check
|
|
14
|
+
* and from nothing else (#1825): that check fails on the stale baseline the
|
|
15
|
+
* run exists to replace, and with an `"always"` gate (#1475) the documented
|
|
16
|
+
* re-baseline flow would deadlock. Any other failing step still refuses the
|
|
17
|
+
* write, so a broken generate cannot be baselined.
|
|
12
18
|
*/
|
|
13
19
|
import { type RegenResult } from "../../codegen/lexicon-regen.js";
|
|
14
20
|
export interface SurfaceDiffOptions {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"lexicon-surface-diff.d.ts","sourceRoot":"","sources":["../../../src/cli/commands/lexicon-surface-diff.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"lexicon-surface-diff.d.ts","sourceRoot":"","sources":["../../../src/cli/commands/lexicon-surface-diff.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;GAiBG;AAIH,OAAO,EAAyD,KAAK,WAAW,EAAE,MAAM,6BAA6B,CAAC;AAKtH,MAAM,WAAW,kBAAkB;IACjC,8CAA8C;IAC9C,UAAU,EAAE,MAAM,CAAC;IACnB,sDAAsD;IACtD,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB,6CAA6C;IAC7C,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,4BAA4B;IAC5B,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,iCAAiC;IACjC,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,mCAAmC;IACnC,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,iEAAiE;IACjE,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,sDAAsD;IACtD,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,8EAA8E;IAC9E,cAAc,CAAC,EAAE,OAAO,CAAC;IACzB;;;OAGG;IACH,IAAI,CAAC,EAAE,OAAO,CAAC;CAChB;AAID;;;GAGG;AACH,wBAAsB,cAAc,CAAC,IAAI,EAAE,kBAAkB,GAAG,OAAO,CAAC,WAAW,CAAC,CA0DnF;AAqBD;;GAEG;AACH,wBAAgB,sBAAsB,CAAC,MAAM,EAAE,WAAW,EAAE,IAAI,EAAE,OAAO,GAAG,IAAI,CAqD/E"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"lint.d.ts","sourceRoot":"","sources":["../../../src/cli/commands/lint.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,kBAAkB,CAAC;AAI7D,OAAO,KAAK,EAAE,QAAQ,EAAE,cAAc,EAAW,MAAM,iBAAiB,CAAC;
|
|
1
|
+
{"version":3,"file":"lint.d.ts","sourceRoot":"","sources":["../../../src/cli/commands/lint.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,kBAAkB,CAAC;AAI7D,OAAO,KAAK,EAAE,QAAQ,EAAE,cAAc,EAAW,MAAM,iBAAiB,CAAC;AAoBzE;;GAEG;AACH,wBAAgB,UAAU,CAAC,KAAK,EAAE,OAAO,GAAG,KAAK,IAAI,Q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;
|
|
3
3
|
verbose?: boolean;
|
|
4
|
+
/** Monorepo root to patch. Defaults to the root this module lives in. */
|
|
5
|
+
root?: string;
|
|
4
6
|
}
|
|
5
7
|
export interface OnboardResult {
|
|
6
8
|
success: boolean;
|
|
@@ -8,6 +10,32 @@ export interface OnboardResult {
|
|
|
8
10
|
skipped: string[];
|
|
9
11
|
error?: string;
|
|
10
12
|
}
|
|
13
|
+
export interface PatchResult {
|
|
14
|
+
patched: boolean;
|
|
15
|
+
reason?: string;
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* Patch the root tsconfig.json `paths` map (#1614).
|
|
19
|
+
*
|
|
20
|
+
* The whole-repo typecheck runs with `moduleResolution: node`, which never
|
|
21
|
+
* reads package exports maps, so every lexicon needs a bare + subpath
|
|
22
|
+
* mapping here or an example importing the package fails to resolve.
|
|
23
|
+
*/
|
|
24
|
+
export declare function patchRootTsconfigPaths(root: string, name: string): PatchResult;
|
|
25
|
+
/**
|
|
26
|
+
* Insert a new prepack line after every last-in-group prepack line (groups of 1+).
|
|
27
|
+
* Used for publish.yml and Dockerfiles that list one RUN per lexicon.
|
|
28
|
+
*/
|
|
29
|
+
export declare function insertPrepackAfterEach(lines: string[], name: string): boolean;
|
|
30
|
+
/**
|
|
31
|
+
* Patch a smoke Dockerfile so it covers the lexicon.
|
|
32
|
+
*
|
|
33
|
+
* Two layouts exist. Loop-based files (`for lex in aws gcp ...; do`) get the
|
|
34
|
+
* name appended to every loop list. Per-lexicon files (`RUN npm run --prefix
|
|
35
|
+
* lexicons/<x> prepack` lines) get one more RUN line. A file that already
|
|
36
|
+
* covers the lexicon either way is reported as such and left untouched.
|
|
37
|
+
*/
|
|
38
|
+
export declare function patchDockerfile(filePath: string, name: string): PatchResult;
|
|
11
39
|
/**
|
|
12
40
|
* Execute the onboard command — patches monorepo infrastructure for a new lexicon.
|
|
13
41
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"onboard.d.ts","sourceRoot":"","sources":["../../../src/cli/commands/onboard.ts"],"names":[],"mappings":"AAKA,MAAM,WAAW,cAAc;IAC7B,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,CAAC,EAAE,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"onboard.d.ts","sourceRoot":"","sources":["../../../src/cli/commands/onboard.ts"],"names":[],"mappings":"AAKA,MAAM,WAAW,cAAc;IAC7B,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,yEAAyE;IACzE,IAAI,CAAC,EAAE,MAAM,CAAC;CACf;AAED,MAAM,WAAW,aAAa;IAC5B,OAAO,EAAE,OAAO,CAAC;IACjB,OAAO,EAAE,MAAM,EAAE,CAAC;IAClB,OAAO,EAAE,MAAM,EAAE,CAAC;IAClB,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB;AAED,MAAM,WAAW,WAAW;IAC1B,OAAO,EAAE,OAAO,CAAC;IACjB,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AAiFD;;;;;;GAMG;AACH,wBAAgB,sBAAsB,CAAC,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,GAAG,WAAW,CAyB9E;AAoCD;;;GAGG;AACH,wBAAgB,sBAAsB,CAAC,KAAK,EAAE,MAAM,EAAE,EAAE,IAAI,EAAE,MAAM,GAAG,OAAO,CAoB7E;AAiFD;;;;;;;GAOG;AACH,wBAAgB,eAAe,CAAC,QAAQ,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,GAAG,WAAW,CAe3E;AAED;;GAEG;AACH,wBAAgB,cAAc,CAAC,OAAO,EAAE,cAAc,GAAG,aAAa,CA+BrE;AAED;;GAEG;AACH,wBAAsB,kBAAkB,CAAC,MAAM,EAAE,aAAa,EAAE,IAAI,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC,CA2C3F"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"build.d.ts","sourceRoot":"","sources":["../../../src/cli/handlers/build.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,aAAa,CAAC;
|
|
1
|
+
{"version":3,"file":"build.d.ts","sourceRoot":"","sources":["../../../src/cli/handlers/build.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,aAAa,CAAC;AAiFlD,wBAAsB,QAAQ,CAAC,GAAG,EAAE,cAAc,GAAG,OAAO,CAAC,MAAM,CAAC,CA8EnE"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"graph.d.ts","sourceRoot":"","sources":["../../../src/cli/handlers/graph.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"graph.d.ts","sourceRoot":"","sources":["../../../src/cli/handlers/graph.ts"],"names":[],"mappings":"AAqBA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,aAAa,CAAC;AAiHlD;;;;;;;;;GASG;AACH,wBAAsB,QAAQ,CAAC,GAAG,EAAE,cAAc,GAAG,OAAO,CAAC,MAAM,CAAC,CAwCnE"}
|
|
@@ -30,6 +30,19 @@ export declare function runLifecycleDiff(ctx: CommandContext): Promise<number>;
|
|
|
30
30
|
* (#1089) — a create is only ever proposed against a confirmed absence.
|
|
31
31
|
*/
|
|
32
32
|
export declare function runLifecyclePlan(ctx: CommandContext): Promise<number>;
|
|
33
|
+
/**
|
|
34
|
+
* chant lifecycle teardown <environment> (#1222).
|
|
35
|
+
*
|
|
36
|
+
* Enumerates what deleting the environment would remove: every live resource
|
|
37
|
+
* carrying this project's ownership marker (managed-by + `ownership.stack`)
|
|
38
|
+
* with the requested env identity. Stateless — live markers only, no build, no
|
|
39
|
+
* snapshot. Without `--yes` nothing is deleted; with it the planned set is
|
|
40
|
+
* executed per lexicon with one bounded retry pass over failures, and every
|
|
41
|
+
* candidate's outcome is reported (deleted / failed / not-prunable / skipped —
|
|
42
|
+
* never silence). A production-like environment name additionally requires an
|
|
43
|
+
* interactive confirmation, or `--confirm-prod` non-interactively.
|
|
44
|
+
*/
|
|
45
|
+
export declare function runLifecycleTeardown(ctx: CommandContext): Promise<number>;
|
|
33
46
|
/**
|
|
34
47
|
* chant lifecycle log [environment]
|
|
35
48
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"lifecycle.d.ts","sourceRoot":"","sources":["../../../src/cli/handlers/lifecycle.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"lifecycle.d.ts","sourceRoot":"","sources":["../../../src/cli/handlers/lifecycle.ts"],"names":[],"mappings":"AAuCA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,aAAa,CAAC;AAqDlD;;GAEG;AACH,wBAAsB,oBAAoB,CAAC,GAAG,EAAE,cAAc,GAAG,OAAO,CAAC,MAAM,CAAC,CAyH/E;AAED;;GAEG;AACH,wBAAsB,gBAAgB,CAAC,GAAG,EAAE,cAAc,GAAG,OAAO,CAAC,MAAM,CAAC,CA4C3E;AAED;;;;;;GAMG;AACH,wBAAsB,oBAAoB,CAAC,GAAG,EAAE,cAAc,GAAG,OAAO,CAAC,MAAM,CAAC,CA8B/E;AAED;;GAEG;AACH,wBAAsB,gBAAgB,CAAC,GAAG,EAAE,cAAc,GAAG,OAAO,CAAC,MAAM,CAAC,CA4K3E;AA2kBD;;;;;;;;;GASG;AACH,wBAAsB,gBAAgB,CAAC,GAAG,EAAE,cAAc,GAAG,OAAO,CAAC,MAAM,CAAC,CAoK3E;AAED;;;;;;;;;;;GAWG;AACH,wBAAsB,oBAAoB,CAAC,GAAG,EAAE,cAAc,GAAG,OAAO,CAAC,MAAM,CAAC,CAoL/E;AAsBD;;GAEG;AACH,wBAAsB,eAAe,CAAC,GAAG,EAAE,cAAc,GAAG,OAAO,CAAC,MAAM,CAAC,CAiB1E;AAED;;GAEG;AACH,wBAAsB,mBAAmB,CAAC,GAAG,EAAE,cAAc,GAAG,OAAO,CAAC,MAAM,CAAC,CAM9E;AAkBD;;;;;;GAMG;AACH,wBAAsB,oBAAoB,CAAC,GAAG,EAAE,cAAc,GAAG,OAAO,CAAC,MAAM,CAAC,CA+C/E"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"run.d.ts","sourceRoot":"","sources":["../../../src/cli/handlers/run.ts"],"names":[],"mappings":"AAIA,OAAO,EAA+C,KAAK,WAAW,EAAE,MAAM,cAAc,CAAC;AAO7F,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,aAAa,CAAC;AA4ClD,wBAAsB,kBAAkB,CAAC,WAAW,EAAE,MAAM,GAAG,SAAS,EAAE,WAAW,EAAE,MAAM;;;;GAO5F;AA8BD,wBAAsB,SAAS,CAAC,GAAG,EAAE,cAAc,GAAG,OAAO,CAAC,MAAM,CAAC,CAgEpE;AAoFD,wBAAsB,WAAW,CAAC,GAAG,EAAE,cAAc,GAAG,OAAO,CAAC,MAAM,CAAC,CAuCtE;AA0CD,wBAAsB,QAAQ,CAAC,GAAG,EAAE,cAAc,GAAG,OAAO,CAAC,MAAM,CAAC,CA6CnE;AA2DD;;;;;;;;GAQG;AACH,wBAAsB,WAAW,CAAC,GAAG,EAAE,cAAc,GAAG,OAAO,CAAC,MAAM,CAAC,CAkCtE;AAID,2LAA2L;AAC3L,wBAAsB,WAAW,CAAC,GAAG,EAAE,cAAc,GAAG,OAAO,CAAC,MAAM,CAAC,CA8BtE;AAmCD;;;;;;;;;;;;;;;;;;;;GAoBG;AACH,wBAAsB,KAAK,CAAC,GAAG,EAAE,cAAc,GAAG,OAAO,CAAC,MAAM,CAAC,CAqBhE;AA6ED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA2CG;AACH,wBAAsB,eAAe,CAAC,GAAG,EAAE,cAAc,GAAG,OAAO,CAAC,MAAM,CAAC,
|
|
1
|
+
{"version":3,"file":"run.d.ts","sourceRoot":"","sources":["../../../src/cli/handlers/run.ts"],"names":[],"mappings":"AAIA,OAAO,EAA+C,KAAK,WAAW,EAAE,MAAM,cAAc,CAAC;AAO7F,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,aAAa,CAAC;AA4ClD,wBAAsB,kBAAkB,CAAC,WAAW,EAAE,MAAM,GAAG,SAAS,EAAE,WAAW,EAAE,MAAM;;;;GAO5F;AA8BD,wBAAsB,SAAS,CAAC,GAAG,EAAE,cAAc,GAAG,OAAO,CAAC,MAAM,CAAC,CAgEpE;AAoFD,wBAAsB,WAAW,CAAC,GAAG,EAAE,cAAc,GAAG,OAAO,CAAC,MAAM,CAAC,CAuCtE;AA0CD,wBAAsB,QAAQ,CAAC,GAAG,EAAE,cAAc,GAAG,OAAO,CAAC,MAAM,CAAC,CA6CnE;AA2DD;;;;;;;;GAQG;AACH,wBAAsB,WAAW,CAAC,GAAG,EAAE,cAAc,GAAG,OAAO,CAAC,MAAM,CAAC,CAkCtE;AAID,2LAA2L;AAC3L,wBAAsB,WAAW,CAAC,GAAG,EAAE,cAAc,GAAG,OAAO,CAAC,MAAM,CAAC,CA8BtE;AAmCD;;;;;;;;;;;;;;;;;;;;GAoBG;AACH,wBAAsB,KAAK,CAAC,GAAG,EAAE,cAAc,GAAG,OAAO,CAAC,MAAM,CAAC,CAqBhE;AA6ED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA2CG;AACH,wBAAsB,eAAe,CAAC,GAAG,EAAE,cAAc,GAAG,OAAO,CAAC,MAAM,CAAC,CAuF1E;AA+OD;;;;GAIG;AACH,wBAAsB,UAAU,CAAC,GAAG,EAAE,cAAc,GAAG,OAAO,CAAC,MAAM,CAAC,CAiFrE;AAuLD,wBAAgB,YAAY,CAAC,GAAG,EAAE,cAAc,GAAG,OAAO,CAAC,MAAM,CAAC,CAMjE"}
|
|
@@ -24,6 +24,16 @@ import type { CommandContext } from "../registry.js";
|
|
|
24
24
|
* thousands.
|
|
25
25
|
*/
|
|
26
26
|
export declare function runSearch(ctx: CommandContext): Promise<number>;
|
|
27
|
+
/** Where an answer's facts came from, for the provenance line (#1266). */
|
|
28
|
+
type AnswerSource = {
|
|
29
|
+
kind: "declared";
|
|
30
|
+
} | {
|
|
31
|
+
kind: "live";
|
|
32
|
+
} | {
|
|
33
|
+
kind: "snapshot";
|
|
34
|
+
commit: string;
|
|
35
|
+
timestamp: string;
|
|
36
|
+
};
|
|
27
37
|
/**
|
|
28
38
|
* Name the `--show` columns nothing carries (#1279).
|
|
29
39
|
*
|
|
@@ -67,6 +77,22 @@ declare function regionSpread(terms: Term[], matches: IRNode[], show: string[]):
|
|
|
67
77
|
declare function ambientHint(matches: IRNode[], ambientKinds: string[], asked: boolean, replay?: {
|
|
68
78
|
recordedAmbient: boolean;
|
|
69
79
|
}): void;
|
|
80
|
+
/**
|
|
81
|
+
* Say what backed this answer (#1266).
|
|
82
|
+
*
|
|
83
|
+
* Two things went wrong without it. A `--live` read that failed entirely
|
|
84
|
+
* returned the declared graph, exit 0, with no physical ids and nothing to say
|
|
85
|
+
* so — indistinguishable from a working live answer (#1263). And the derived
|
|
86
|
+
* surface below named folds like `internetFacing` whether or not the
|
|
87
|
+
* observation could support them, which is worse than saying nothing.
|
|
88
|
+
*
|
|
89
|
+
* It is also the most direct thing the tool can say to a caller deciding
|
|
90
|
+
* whether to re-check with a raw provider sweep: the API has already been read,
|
|
91
|
+
* and this many resources were bound to what it returned. A sweep repeats work
|
|
92
|
+
* already done. That is a fact about the query, printed for every query, and it
|
|
93
|
+
* encodes no expected answer.
|
|
94
|
+
*/
|
|
95
|
+
declare function provenance(matches: IRNode[], source: AnswerSource, recorded?: string, liveFailures?: string[]): void;
|
|
70
96
|
/**
|
|
71
97
|
* Name the facts chant computed for the kinds in this result that the query did not use.
|
|
72
98
|
*
|
|
@@ -154,6 +180,7 @@ export declare const __searchInternals: {
|
|
|
154
180
|
ambientHint: typeof ambientHint;
|
|
155
181
|
regionSpread: typeof regionSpread;
|
|
156
182
|
showMiss: typeof showMiss;
|
|
183
|
+
provenance: typeof provenance;
|
|
157
184
|
};
|
|
158
185
|
export {};
|
|
159
186
|
//# sourceMappingURL=search.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"search.d.ts","sourceRoot":"","sources":["../../../src/cli/handlers/search.ts"],"names":[],"mappings":"AAEA,OAAO,
|
|
1
|
+
{"version":3,"file":"search.d.ts","sourceRoot":"","sources":["../../../src/cli/handlers/search.ts"],"names":[],"mappings":"AAEA,OAAO,EAA0E,KAAK,OAAO,EAAE,KAAK,MAAM,EAAe,MAAM,gBAAgB,CAAC;AAYhJ,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,aAAa,CAAC;AAElD;;;;;;;;;;;;;;;;;;;;;;GAsBG;AACH,wBAAsB,SAAS,CAAC,GAAG,EAAE,cAAc,GAAG,OAAO,CAAC,MAAM,CAAC,CAqQpE;AAGD,0EAA0E;AAC1E,KAAK,YAAY,GACb;IAAE,IAAI,EAAE,UAAU,CAAA;CAAE,GACpB;IAAE,IAAI,EAAE,MAAM,CAAA;CAAE,GAChB;IAAE,IAAI,EAAE,UAAU,CAAC;IAAC,MAAM,EAAE,MAAM,CAAC;IAAC,SAAS,EAAE,MAAM,CAAA;CAAE,CAAC;AAK5D;;;;;;;;GAQG;AACH,iBAAS,QAAQ,CAAC,OAAO,EAAE,MAAM,EAAE,EAAE,IAAI,EAAE,MAAM,EAAE,GAAG,IAAI,CAQzD;AAED;;;;;;;;;;;;;GAaG;AACH,iBAAS,YAAY,CAAC,KAAK,EAAE,IAAI,EAAE,EAAE,OAAO,EAAE,MAAM,EAAE,EAAE,IAAI,EAAE,MAAM,EAAE,GAAG,IAAI,CAW5E;AAED;;;;;;;;;;;;;;GAcG;AACH,iBAAS,WAAW,CAClB,OAAO,EAAE,MAAM,EAAE,EACjB,YAAY,EAAE,MAAM,EAAE,EACtB,KAAK,EAAE,OAAO,EACd,MAAM,CAAC,EAAE;IAAE,eAAe,EAAE,OAAO,CAAA;CAAE,GACpC,IAAI,CAuBN;AAED;;;;;;;;;;;;;;GAcG;AACH,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2CD,iBAAS,UAAU,CAAC,KAAK,EAAE,MAAM,GAAG,IAAI,EAAE,CA+CzC;AAeD,iBAAS,SAAS,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,IAAI,EAAE,EAAE,CAAC,EAAE,OAAO,EAAE,IAAI,CAAC,EAAE,GAAG,CAAC,MAAM,EAAE,MAAM,CAAC,GAAG,OAAO,CAmCxF;AAED,iBAAS,SAAS,CAAC,CAAC,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,EAAE,GAAG,MAAM,CA+BpD;AAED,wCAAwC;AACxC,eAAO,MAAM,iBAAiB;;;;;;;;;;;;CAA+I,CAAC"}
|
package/dist/cli/main.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"main.d.ts","sourceRoot":"","sources":["../../src/cli/main.ts"],"names":[],"mappings":";AAMA,OAAO,EAAmC,KAAK,UAAU,EAAE,MAAM,YAAY,CAAC;
|
|
1
|
+
{"version":3,"file":"main.d.ts","sourceRoot":"","sources":["../../src/cli/main.ts"],"names":[],"mappings":";AAMA,OAAO,EAAmC,KAAK,UAAU,EAAE,MAAM,YAAY,CAAC;AA8E9E;;GAEG;AACH,wBAAgB,SAAS,CAAC,IAAI,EAAE,MAAM,EAAE,GAAG,UAAU,CAkSpD;AAujBD;;;;;;;;GAQG;AACH,wBAAgB,kBAAkB,CAAC,MAAM,EAAE,MAAM,CAAC,WAAW,GAAG,OAAO,CAAC,IAAI,CAAC,CAuB5E"}
|
package/dist/cli/registry.d.ts
CHANGED
|
@@ -84,6 +84,13 @@ export interface ParsedArgs {
|
|
|
84
84
|
namespace?: string;
|
|
85
85
|
/** `chant lifecycle rollback --dry-run` — compute the rollback delta and print it; open no PR, push nothing, leave no branch. */
|
|
86
86
|
dryRun?: boolean;
|
|
87
|
+
/** `chant lifecycle teardown <env> --yes` — execute the planned deletion
|
|
88
|
+
* (#1222). Without it the command plans and stops. */
|
|
89
|
+
yes?: boolean;
|
|
90
|
+
/** `chant lifecycle teardown <env> --yes --confirm-prod` — the non-interactive
|
|
91
|
+
* form of the extra confirmation a production-like environment name demands
|
|
92
|
+
* (#1222). Meaningless without `--yes`. */
|
|
93
|
+
confirmProd?: boolean;
|
|
87
94
|
/** `chant import --verbatim` — keep server-defaulted fields in live import */
|
|
88
95
|
verbatim?: boolean;
|
|
89
96
|
/** `chant lifecycle … --src <dir>` — build root override for lifecycle commands */
|