@intentius/chant 0.44.13 → 0.45.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.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/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.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/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/surface-snapshot.d.ts +27 -3
- package/dist/codegen/surface-snapshot.d.ts.map +1 -1
- package/dist/codegen/validate.d.ts +11 -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 +57 -5
- package/dist/config.d.ts.map +1 -1
- package/dist/discovery/fold-import.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/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/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/types.d.ts +7 -0
- package/dist/lifecycle/types.d.ts.map +1 -1
- package/dist/lint/policy.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/index.d.ts +1 -1
- package/dist/op/index.d.ts.map +1 -1
- package/dist/yaml.d.ts +0 -8
- package/dist/yaml.d.ts.map +1 -1
- package/package.json +1 -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 +144 -5
- package/src/cli/commands/build.ts +66 -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 +1 -1
- package/src/cli/commands/check-lexicon.ts +19 -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 +1 -1
- 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 +22 -2
- package/src/cli/handlers/lifecycle.test.ts +117 -0
- package/src/cli/handlers/lifecycle.ts +16 -0
- 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 +55 -6
- package/src/cli/main.ts +5 -3
- 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 +3 -1
- 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 +16 -3
- package/src/codegen/validate.ts +17 -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 +56 -1
- package/src/config.ts +152 -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/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/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/observe.ts +29 -2
- package/src/lifecycle/replay.ts +3 -0
- package/src/lifecycle/snapshot.ts +3 -0
- package/src/lifecycle/types.ts +7 -0
- package/src/lint/policy.ts +14 -3
- 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-exports.test.ts +60 -0
- package/src/op/index.ts +1 -1
- package/src/ownership.test.ts +63 -1
- 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;;;;;;;;;;;;;;;;;;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AO,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,MAAM,CAAC;IACb,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,KAAK,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;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,KAAK,iBAAiB,EAAE,MAAM,iBAAiB,CAAC;AAC7E,OAAO,KAAK,EAAE,o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AChD,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,KAAK,WAAW,EAAE,MAAM,yBAAyB,CAAC;AAOvE,MAAM,MAAM,WAAW,GAAG,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C;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":"AAWA,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,CA0e9E;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 +1 @@
|
|
|
1
|
-
{"version":3,"file":"check-lexicon.d.ts","sourceRoot":"","sources":["../../../src/cli/commands/check-lexicon.ts"],"names":[],"mappings":"AAWA,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;AAiDD;;GAEG;AACH,wBAAsB,YAAY,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC,WAAW,CAAC,
|
|
1
|
+
{"version":3,"file":"check-lexicon.d.ts","sourceRoot":"","sources":["../../../src/cli/commands/check-lexicon.ts"],"names":[],"mappings":"AAWA,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;AAiDD;;GAEG;AACH,wBAAsB,YAAY,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC,WAAW,CAAC,CAulBpE;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"}
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
export interface OnboardOptions {
|
|
2
2
|
name: string;
|
|
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"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"lifecycle.d.ts","sourceRoot":"","sources":["../../../src/cli/handlers/lifecycle.ts"],"names":[],"mappings":"AAqCA,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,
|
|
1
|
+
{"version":3,"file":"lifecycle.d.ts","sourceRoot":"","sources":["../../../src/cli/handlers/lifecycle.ts"],"names":[],"mappings":"AAqCA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,aAAa,CAAC;AAqDlD;;GAEG;AACH,wBAAsB,oBAAoB,CAAC,GAAG,EAAE,cAAc,GAAG,OAAO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O,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,CAkQpE;AAGD,0EAA0E;AAC1E,KAAK,YAAY,GACb;IAAE,IAAI,EAAE,UAAU,CAAA;CAAE,GACpB;IAAE,IAAI,EAAE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E9E;;GAEG;AACH,wBAAgB,SAAS,CAAC,IAAI,EAAE,MAAM,EAAE,GAAG,UAAU,CA8RpD;
|
|
1
|
+
{"version":3,"file":"main.d.ts","sourceRoot":"","sources":["../../src/cli/main.ts"],"names":[],"mappings":";AAMA,OAAO,EAAmC,KAAK,UAAU,EAAE,MAAM,YAAY,CAAC;AA4E9E;;GAEG;AACH,wBAAgB,SAAS,CAAC,IAAI,EAAE,MAAM,EAAE,GAAG,UAAU,CA8RpD;AAkjBD;;;;;;;;GAQG;AACH,wBAAgB,kBAAkB,CAAC,MAAM,EAAE,MAAM,CAAC,WAAW,GAAG,OAAO,CAAC,IAAI,CAAC,CAuB5E"}
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Authored lexicon doc pages (chant #1731 / #1733).
|
|
3
|
+
*
|
|
4
|
+
* A lexicon's prose lives as `.mdx` files under `lexicons/<name>/docs/pages/`.
|
|
5
|
+
* Each carries a `diataxis` frontmatter field naming its Diátaxis quadrant
|
|
6
|
+
* (https://diataxis.fr). The pipeline expands `{{file:...}}` markers, stamps a
|
|
7
|
+
* provenance marker and writes the result into `src/content/docs/`, and the
|
|
8
|
+
* sidebar is grouped from the field. This replaced two older modes — prose
|
|
9
|
+
* inside `docs.ts` template literals (`extraPages`) and hand-written content
|
|
10
|
+
* pages wired through `sidebarExtra` — removed in chant #1757.
|
|
11
|
+
*
|
|
12
|
+
* Frontmatter recognised here, on top of Starlight's `title` / `description`:
|
|
13
|
+
*
|
|
14
|
+
* - `diataxis`: `tutorial | how-to | reference | explanation`. Required.
|
|
15
|
+
* - `label`: sidebar label; defaults to `title`.
|
|
16
|
+
* - `group`: a nested subgroup label inside the quadrant (e.g. "Vendor Composites").
|
|
17
|
+
* - `order`: number; lower sorts first within its group. Unordered pages follow, by label.
|
|
18
|
+
* - `hidden`: `true` keeps the page out of the sidebar (reachable by URL only).
|
|
19
|
+
*
|
|
20
|
+
* `group` / `order` / `hidden` / `label` are stripped from the written copy so
|
|
21
|
+
* Starlight's schema never sees them; `diataxis` stays, and the generated
|
|
22
|
+
* `content.config.ts` declares it.
|
|
23
|
+
*/
|
|
24
|
+
import type { DocsConfig, Quadrant, SidebarPage } from "./docs-types.js";
|
|
25
|
+
export declare const QUADRANTS: readonly Quadrant[];
|
|
26
|
+
/** Sidebar group label for each quadrant, in display order. */
|
|
27
|
+
export declare const QUADRANT_LABELS: Record<Quadrant, string>;
|
|
28
|
+
export interface AuthoredPage extends SidebarPage {
|
|
29
|
+
/** Source file name under `pagesDir`, e.g. `getting-started.mdx`. */
|
|
30
|
+
file: string;
|
|
31
|
+
/** Page body with the rewritten frontmatter, markers expanded. */
|
|
32
|
+
content: string;
|
|
33
|
+
}
|
|
34
|
+
/**
|
|
35
|
+
* Read every authored page under `pagesDir`. Returns an empty list when the
|
|
36
|
+
* directory does not exist, which is every lexicon before it migrates.
|
|
37
|
+
*/
|
|
38
|
+
export declare function readAuthoredPages(config: DocsConfig): AuthoredPage[];
|
|
39
|
+
//# sourceMappingURL=docs-pages.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"docs-pages.d.ts","sourceRoot":"","sources":["../../src/codegen/docs-pages.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;GAsBG;AAMH,OAAO,KAAK,EAAE,UAAU,EAAE,QAAQ,EAAE,WAAW,EAAE,MAAM,cAAc,CAAC;AAEtE,eAAO,MAAM,SAAS,EAAE,SAAS,QAAQ,EAAuD,CAAC;AAEjG,+DAA+D;AAC/D,eAAO,MAAM,eAAe,EAAE,MAAM,CAAC,QAAQ,EAAE,MAAM,CAKpD,CAAC;AAEF,MAAM,WAAW,YAAa,SAAQ,WAAW;IAC/C,qEAAqE;IACrE,IAAI,EAAE,MAAM,CAAC;IACb,kEAAkE;IAClE,OAAO,EAAE,MAAM,CAAC;CACjB;AAyCD;;;GAGG;AACH,wBAAgB,iBAAiB,CAAC,MAAM,EAAE,UAAU,GAAG,YAAY,EAAE,CA+CpE"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"docs-sections.d.ts","sourceRoot":"","sources":["../../src/codegen/docs-sections.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAIH,OAAO,KAAK,EAAE,UAAU,EAAE,YAAY,EAAE,SAAS,EAAE,QAAQ,EAAE,MAAM,cAAc,CAAC;AAElF,wBAAgB,gBAAgB,CAC9B,MAAM,EAAE,UAAU,EAClB,QAAQ,EAAE,YAAY,EACtB,SAAS,EAAE,GAAG,CAAC,MAAM,EAAE,SAAS,CAAC,EACjC,UAAU,EAAE,GAAG,CAAC,MAAM,EAAE,SAAS,CAAC,EAClC,aAAa,EAAE,GAAG,CAAC,MAAM,EAAE,GAAG,CAAC,MAAM,EAAE,SAAS,CAAC,CAAC,EAClD,KAAK,EAAE,QAAQ,EAAE,GAChB,MAAM,
|
|
1
|
+
{"version":3,"file":"docs-sections.d.ts","sourceRoot":"","sources":["../../src/codegen/docs-sections.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAIH,OAAO,KAAK,EAAE,UAAU,EAAE,YAAY,EAAE,SAAS,EAAE,QAAQ,EAAE,MAAM,cAAc,CAAC;AAElF,wBAAgB,gBAAgB,CAC9B,MAAM,EAAE,UAAU,EAClB,QAAQ,EAAE,YAAY,EACtB,SAAS,EAAE,GAAG,CAAC,MAAM,EAAE,SAAS,CAAC,EACjC,UAAU,EAAE,GAAG,CAAC,MAAM,EAAE,SAAS,CAAC,EAClC,aAAa,EAAE,GAAG,CAAC,MAAM,EAAE,GAAG,CAAC,MAAM,EAAE,SAAS,CAAC,CAAC,EAClD,KAAK,EAAE,QAAQ,EAAE,GAChB,MAAM,CA2DR;AAED,wBAAgB,kBAAkB,CAChC,MAAM,EAAE,UAAU,EAClB,QAAQ,EAAE,YAAY,GACrB,MAAM,CA0BR;AAED,wBAAgB,wBAAwB,CACtC,MAAM,EAAE,UAAU,EAClB,QAAQ,EAAE,YAAY,GACrB,MAAM,CAqBR;AAED,wBAAgB,qBAAqB,CAAC,MAAM,EAAE,UAAU,GAAG,MAAM,CAqBhE"}
|
|
@@ -1,6 +1,17 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Sidebar generation for Starlight docs sites.
|
|
3
|
+
*
|
|
4
|
+
* Grouped by Diátaxis quadrant (https://diataxis.fr), chant #1731. Every page
|
|
5
|
+
* the pipeline knows about — authored under docs/pages/ and generated reference
|
|
6
|
+
* tables — arrives as a {@link SidebarPage} with a quadrant; this module only sorts and nests. Empty quadrants are omitted.
|
|
3
7
|
*/
|
|
4
|
-
import type { DocsConfig, DocsResult } from "./docs-types.js";
|
|
5
|
-
|
|
8
|
+
import type { DocsConfig, DocsResult, SidebarPage } from "./docs-types.js";
|
|
9
|
+
type Entry = Record<string, unknown>;
|
|
10
|
+
/**
|
|
11
|
+
* One quadrant's entries: ungrouped pages first (by order, then label), then
|
|
12
|
+
* each nested `group` in order of its lowest-ordered member.
|
|
13
|
+
*/
|
|
14
|
+
export declare function quadrantItems(pages: SidebarPage[]): Entry[];
|
|
15
|
+
export declare function buildSidebar(config: DocsConfig, result: DocsResult): Entry[];
|
|
16
|
+
export {};
|
|
6
17
|
//# sourceMappingURL=docs-sidebar.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"docs-sidebar.d.ts","sourceRoot":"","sources":["../../src/codegen/docs-sidebar.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"docs-sidebar.d.ts","sourceRoot":"","sources":["../../src/codegen/docs-sidebar.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAGH,OAAO,KAAK,EAAE,UAAU,EAAE,UAAU,EAAY,WAAW,EAAE,MAAM,cAAc,CAAC;AAElF,KAAK,KAAK,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;AASrC;;;GAGG;AACH,wBAAgB,aAAa,CAAC,KAAK,EAAE,WAAW,EAAE,GAAG,KAAK,EAAE,CAiB3D;AAED,wBAAgB,YAAY,CAC1B,MAAM,EAAE,UAAU,EAClB,MAAM,EAAE,UAAU,GACjB,KAAK,EAAE,CA4BT"}
|