saturndocs 0.1.2 → 0.2.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.
Files changed (50) hide show
  1. package/dist/{auth-FRCFGNYT.js → auth-DUYYFNEZ.js} +4 -4
  2. package/dist/{brokenLinks-TTOBP4P7.js → brokenLinks-E364XYH3.js} +1 -1
  3. package/dist/{chunk-SABK3R2P.js → chunk-2RZEC3VH.js} +132 -136
  4. package/dist/{chunk-KGJESHJC.js → chunk-2YTD2XNI.js} +1 -1
  5. package/dist/{chunk-QLFODLVN.js → chunk-4J33CCAC.js} +18 -15
  6. package/dist/{chunk-STCCGFKC.js → chunk-4ORVQCHY.js} +1 -1
  7. package/dist/chunk-56U46JVN.js +28 -0
  8. package/dist/chunk-6JGAA5TF.js +86 -0
  9. package/dist/{chunk-GYRVGWDM.js → chunk-ADZOBRZE.js} +88 -6
  10. package/dist/chunk-D3CLXV7D.js +131 -0
  11. package/dist/{chunk-5KX4ZK5E.js → chunk-DBMFJXKP.js} +11 -5
  12. package/dist/chunk-EB7RWFQA.js +3821 -0
  13. package/dist/{chunk-R3X2DPFF.js → chunk-FGKHDJOC.js} +133 -4
  14. package/dist/{chunk-3V753MRI.js → chunk-GGGL4O7Z.js} +2 -2
  15. package/dist/{chunk-OZWTXMO3.js → chunk-GLI3OUYL.js} +57 -4
  16. package/dist/{chunk-3P2OFTXR.js → chunk-K5YY6NSF.js} +2 -2
  17. package/dist/{chunk-TKISMN3P.js → chunk-KOJJUISB.js} +2 -2
  18. package/dist/chunk-O72DR5FK.js +152 -0
  19. package/dist/{chunk-U7PKMSB3.js → chunk-QF2ADHQZ.js} +4 -4
  20. package/dist/{chunk-S45UWCML.js → chunk-SVDVBZPA.js} +9 -9
  21. package/dist/{chunk-CMNX5DLQ.js → chunk-W3GKH5DY.js} +2 -2
  22. package/dist/{chunk-N7QPZMLP.js → chunk-WBI4EI3D.js} +1 -1
  23. package/dist/{chunk-OEAEX5YW.js → chunk-WHNL6UYJ.js} +8 -2
  24. package/dist/chunk-WUPP3THV.js +87 -0
  25. package/dist/chunk-YSFP37B7.js +76 -0
  26. package/dist/{chunk-XO4CUC7V.js → chunk-Z5CBPJ2L.js} +3 -3
  27. package/dist/cli.js +3 -3
  28. package/dist/coverage-EBWULNQQ.js +15 -0
  29. package/dist/deploy-QUVLOGII.js +13 -0
  30. package/dist/dist-XISZDQTR.js +120 -0
  31. package/dist/index.d.ts +35 -2
  32. package/dist/index.js +66 -38
  33. package/dist/{init-7T5TEPBH.js → init-PI4VTG7V.js} +2 -2
  34. package/dist/lint-SXBP37G3.js +13 -0
  35. package/dist/{manage-MKH27U3B.js → manage-OB6DQK3Q.js} +2 -2
  36. package/dist/nav-R4OORY2G.js +14 -0
  37. package/dist/{openapiCheck-KGBQJTIQ.js → openapiCheck-X2QQGETY.js} +6 -6
  38. package/dist/{pages-HIPXRLSY.js → pages-MKFZAVGI.js} +5 -5
  39. package/dist/{read-DMSJUEDA.js → read-VECMKHBW.js} +4 -4
  40. package/dist/{read-ZEVUZNNB.js → read-WWOMA67R.js} +4 -4
  41. package/dist/requests-A7WC3B4M.js +13 -0
  42. package/dist/{schema-XJUEZSIW.js → schema-NKOXZHQH.js} +3 -3
  43. package/dist/{sites-I4WI2MPG.js → sites-XMMGWPY2.js} +4 -4
  44. package/dist/{status-7R3NOI5H.js → status-SYIUUSSU.js} +4 -4
  45. package/dist/{suggestions-4WFQ3APX.js → suggestions-GX5CQK26.js} +4 -4
  46. package/dist/{validate-VXL4PL42.js → validate-D4I3DY2W.js} +5 -3
  47. package/package.json +6 -5
  48. package/dist/chunk-I6U4V7B4.js +0 -1552
  49. package/dist/deploy-QU7DCKWU.js +0 -11
  50. package/dist/requests-H5MIGBIS.js +0 -13
@@ -0,0 +1,87 @@
1
+ import {
2
+ readPageFiles
3
+ } from "./chunk-56U46JVN.js";
4
+ import {
5
+ asCliError
6
+ } from "./chunk-KOJJUISB.js";
7
+ import {
8
+ applyCommandHelp
9
+ } from "./chunk-M2BZEDAS.js";
10
+ import {
11
+ commandMetadata,
12
+ createResultWriter,
13
+ failureResult,
14
+ invalidInput,
15
+ messageOf,
16
+ resolveGlobalOptions,
17
+ successResult
18
+ } from "./chunk-ADZOBRZE.js";
19
+
20
+ // src/commands/coverage.ts
21
+ import { existsSync } from "fs";
22
+ import { readFile } from "fs/promises";
23
+ import { join, resolve } from "path";
24
+ var COVERAGE_METADATA = Object.freeze([
25
+ commandMetadata("coverage", {
26
+ description: "Compare the pages on disk with an approved outline and fail on any missing page, unplanned page, or missing section.",
27
+ target: { arguments: [{ name: "dir", required: false, description: "The docs directory. Defaults to the current directory." }] },
28
+ effect: "Nothing. Reads local files only.",
29
+ output: { fields: ["complete", "missing_pages", "unplanned_pages", "missing_sections"], ids: [], limitations: [] },
30
+ errors: ["invalid_input", "interrupted"],
31
+ examples: [
32
+ { command: "saturndocs coverage --outline .launch-docs/outline.json", description: "Check the pages in the current directory against the outline." },
33
+ { command: "saturndocs coverage --outline .launch-docs/outline.json --json", description: "The same check as one result object, for an agent." }
34
+ ]
35
+ })
36
+ ]);
37
+ function gapText(report) {
38
+ return [
39
+ ...report.missing_pages.map((path) => `missing page ${path}`),
40
+ ...report.unplanned_pages.map((path) => `unplanned page ${path}`),
41
+ ...report.missing_sections.map((gap) => `${gap.path} is missing section "${gap.section}"`)
42
+ ].join("\n");
43
+ }
44
+ async function runCoverage(docsDir, outlinePath) {
45
+ if (!existsSync(join(docsDir, "docs.json"))) throw invalidInput(`No docs.json found in ${docsDir}. Pass a docs directory.`);
46
+ let raw;
47
+ try {
48
+ raw = await readFile(outlinePath, "utf8");
49
+ } catch (error) {
50
+ throw invalidInput(`Cannot read the outline file ${outlinePath}: ${messageOf(error)}`);
51
+ }
52
+ const { parseOutline, outlineCoverage } = await import("./dist-XISZDQTR.js");
53
+ let outline;
54
+ try {
55
+ outline = parseOutline(JSON.parse(raw));
56
+ } catch (error) {
57
+ throw invalidInput(`The outline file ${outlinePath} is not a valid outline: ${messageOf(error)}`);
58
+ }
59
+ const report = outlineCoverage(outline, await readPageFiles(docsDir));
60
+ if (!report.complete) throw invalidInput(gapText(report), { data: report });
61
+ return { report, pages: outline.pages.length, sections: outline.pages.reduce((total, page) => total + page.sections.length, 0) };
62
+ }
63
+ async function coverageOfDocsDir(docsDir, outlinePath) {
64
+ return (await runCoverage(docsDir, outlinePath)).report;
65
+ }
66
+ function registerCoverage(program) {
67
+ const coverage = program.command("coverage").argument("[dir]", "The docs directory. Defaults to the current directory.").requiredOption("--outline <file>", "The approved outline JSON to check against.").action(async (dir, options, self) => {
68
+ const globals = resolveGlobalOptions(self);
69
+ const writer = createResultWriter({ json: globals.json });
70
+ const context = { command: "coverage", siteId: null };
71
+ try {
72
+ const run = await runCoverage(resolve(dir ?? process.cwd()), resolve(options.outline));
73
+ process.exitCode = writer.write(successResult(context, run.report), {
74
+ text: `Coverage complete: ${run.pages} pages, ${run.sections} sections.`
75
+ });
76
+ } catch (error) {
77
+ process.exitCode = writer.write(failureResult(asCliError(error), context));
78
+ }
79
+ });
80
+ applyCommandHelp(coverage, COVERAGE_METADATA[0]);
81
+ }
82
+
83
+ export {
84
+ COVERAGE_METADATA,
85
+ coverageOfDocsDir,
86
+ registerCoverage
87
+ };
@@ -0,0 +1,76 @@
1
+ import {
2
+ readPageFiles
3
+ } from "./chunk-56U46JVN.js";
4
+ import {
5
+ applyCommandHelp
6
+ } from "./chunk-M2BZEDAS.js";
7
+ import {
8
+ commandMetadata,
9
+ createResultWriter,
10
+ failureResult,
11
+ invalidInput,
12
+ resolveGlobalOptions,
13
+ successResult
14
+ } from "./chunk-ADZOBRZE.js";
15
+
16
+ // src/commands/lint.ts
17
+ import { existsSync } from "fs";
18
+ import { resolve } from "path";
19
+ var LINT_METADATA = Object.freeze([
20
+ commandMetadata("lint", {
21
+ description: "Run the content lint and the known-pitfalls catalog over every page under pages/ in a docs directory. Each finding carries its severity. The command exits 2 (invalid_input, with the report as data) when any finding is an error, and 0 otherwise.",
22
+ target: { arguments: [{ name: "dir", required: false, description: "The docs directory, which holds docs.json. Defaults to the current directory." }] },
23
+ effect: "Nothing. It reads page files on this machine and calls no service. Exits 2 when any finding is an error.",
24
+ output: { fields: ["pages", "findings"], ids: [], limitations: [] },
25
+ errors: ["invalid_input", "interrupted"],
26
+ examples: [
27
+ { command: "saturndocs lint", description: "Lint the pages of the docs directory in the current directory." },
28
+ { command: "saturndocs lint ./docs --json", description: "The same check on another directory, as one result object." }
29
+ ]
30
+ })
31
+ ]);
32
+ async function lintDocsDir(docsDir) {
33
+ const { lintContent, checkPitfalls } = await import("./dist-XISZDQTR.js");
34
+ const pages = await readPageFiles(docsDir);
35
+ const findings = [];
36
+ for (const page of pages) {
37
+ for (const finding of lintContent(page.path, page.content)) {
38
+ findings.push({ path: page.path, line: finding.line, rule: finding.rule, severity: finding.severity, message: finding.message });
39
+ }
40
+ }
41
+ for (const violation of checkPitfalls(pages)) {
42
+ findings.push({ path: violation.path ?? "", line: null, rule: violation.code, severity: violation.severity, message: violation.message });
43
+ }
44
+ return { pages: pages.length, findings };
45
+ }
46
+ function reportText(report) {
47
+ const count = `${report.pages} page(s)`;
48
+ if (report.findings.length === 0) return `No findings in ${count}.`;
49
+ const lines = report.findings.map((f) => `${f.path}${f.line === null ? "" : `:${f.line}`} ${f.rule}: ${f.message}`);
50
+ return [...lines, `${report.findings.length} finding(s) in ${count}.`].join("\n");
51
+ }
52
+ function registerLint(program) {
53
+ const command = program.command("lint").argument("[dir]", "The docs directory. Defaults to the current directory.").action(async (dir, _options, self) => {
54
+ const globals = resolveGlobalOptions(self);
55
+ const writer = createResultWriter({ json: globals.json });
56
+ const context = { command: "lint", siteId: null };
57
+ try {
58
+ const docsDir = resolve(dir ?? process.cwd());
59
+ if (!existsSync(resolve(docsDir, "docs.json"))) {
60
+ throw invalidInput(`No docs.json found in ${docsDir}. Pass a docs directory.`);
61
+ }
62
+ const report = await lintDocsDir(docsDir);
63
+ if (report.findings.some((finding) => finding.severity === "error")) throw invalidInput(reportText(report), { data: report });
64
+ process.exitCode = writer.write(successResult(context, report), { text: reportText(report) });
65
+ } catch (error) {
66
+ process.exitCode = writer.write(failureResult(error, context));
67
+ }
68
+ });
69
+ applyCommandHelp(command, LINT_METADATA[0]);
70
+ }
71
+
72
+ export {
73
+ LINT_METADATA,
74
+ lintDocsDir,
75
+ registerLint
76
+ };
@@ -1,10 +1,10 @@
1
1
  import {
2
2
  requestedSite
3
- } from "./chunk-CMNX5DLQ.js";
3
+ } from "./chunk-W3GKH5DY.js";
4
4
  import {
5
5
  asCliError,
6
6
  clientFor
7
- } from "./chunk-TKISMN3P.js";
7
+ } from "./chunk-KOJJUISB.js";
8
8
  import {
9
9
  applyCommandHelp
10
10
  } from "./chunk-M2BZEDAS.js";
@@ -18,7 +18,7 @@ import {
18
18
  resolveGlobalOptions,
19
19
  resolveTarget,
20
20
  successResult
21
- } from "./chunk-GYRVGWDM.js";
21
+ } from "./chunk-ADZOBRZE.js";
22
22
 
23
23
  // src/commands/pages.ts
24
24
  import { InvalidArgumentError } from "commander";
package/dist/cli.js CHANGED
@@ -2,10 +2,10 @@
2
2
  import {
3
3
  COMMAND_GROUPS,
4
4
  selectCommandGroup
5
- } from "./chunk-QLFODLVN.js";
5
+ } from "./chunk-4J33CCAC.js";
6
6
  import {
7
7
  installInterrupt
8
- } from "./chunk-KGJESHJC.js";
8
+ } from "./chunk-2YTD2XNI.js";
9
9
  import {
10
10
  EXIT,
11
11
  applyGlobalFlags,
@@ -14,7 +14,7 @@ import {
14
14
  failureResult,
15
15
  invalidInput,
16
16
  wantsJson
17
- } from "./chunk-GYRVGWDM.js";
17
+ } from "./chunk-ADZOBRZE.js";
18
18
 
19
19
  // src/cli.ts
20
20
  import { readFileSync } from "fs";
@@ -0,0 +1,15 @@
1
+ import {
2
+ COVERAGE_METADATA,
3
+ coverageOfDocsDir,
4
+ registerCoverage
5
+ } from "./chunk-WUPP3THV.js";
6
+ import "./chunk-56U46JVN.js";
7
+ import "./chunk-KOJJUISB.js";
8
+ import "./chunk-2YTD2XNI.js";
9
+ import "./chunk-M2BZEDAS.js";
10
+ import "./chunk-ADZOBRZE.js";
11
+ export {
12
+ COVERAGE_METADATA,
13
+ coverageOfDocsDir,
14
+ registerCoverage
15
+ };
@@ -0,0 +1,13 @@
1
+ import {
2
+ deployBundle,
3
+ registerDeploy
4
+ } from "./chunk-D3CLXV7D.js";
5
+ import "./chunk-O72DR5FK.js";
6
+ import "./chunk-VNYDYHXM.js";
7
+ import "./chunk-EB7RWFQA.js";
8
+ import "./chunk-SVDVBZPA.js";
9
+ import "./chunk-FGKHDJOC.js";
10
+ export {
11
+ deployBundle,
12
+ registerDeploy
13
+ };
@@ -0,0 +1,120 @@
1
+ import {
2
+ ADMISSIBLE_FRONTMATTER_KEYS,
3
+ GIT_COMMIT_PATTERN,
4
+ INCONSISTENT_VALUE_LIST,
5
+ KNOWN_PITFALLS,
6
+ KNOWN_PITFALL_CODE,
7
+ OutlineSchema,
8
+ PRODUCT_KINDS,
9
+ REJECTED_GENERATED_FILENAMES,
10
+ REJECTED_GENERATED_ROOTS,
11
+ RESERVED_URL_PREFIXES,
12
+ RUNBOOK_MAX_STEPS,
13
+ RUNBOOK_MAX_STEP_WORDS,
14
+ RUNBOOK_MIN_STEPS,
15
+ RUNBOOK_TARGETS,
16
+ SELF_CONTRADICTING_COUNT,
17
+ SOURCE_ABI_VERSION,
18
+ SOURCE_ALLOWED_EXTENSIONS,
19
+ SOURCE_ALLOWED_ROOTS,
20
+ SOURCE_LIMITS,
21
+ SOURCE_MEDIA_TYPES,
22
+ SourceAbiError,
23
+ TAR_BLOCK_SIZE,
24
+ TAR_TRAILER_SIZE,
25
+ VIOLATION_GUIDANCE,
26
+ applyChangeSet,
27
+ blankNonProse,
28
+ blobId,
29
+ canonicalizeRevisionManifest,
30
+ canonicalizeSourcePath,
31
+ changedLineIndexes,
32
+ checkPitfalls,
33
+ contentContract,
34
+ detectSourceMediaType,
35
+ extractClaimTokens,
36
+ extractLinks,
37
+ findUnresolvedLinks,
38
+ groundTokens,
39
+ headingsOf,
40
+ lintContent,
41
+ navigationFromOutline,
42
+ normalizeHeading,
43
+ outlineCoverage,
44
+ outlineDocId,
45
+ outlineJsonSchema,
46
+ pageSourceComponents,
47
+ parseOutline,
48
+ paxRecord,
49
+ resolveHref,
50
+ revisionId,
51
+ runbookProblems,
52
+ tarHeader,
53
+ tarPadding,
54
+ validateBundleSemantics,
55
+ validateBundleSemanticsAsync,
56
+ validateBundleStructure,
57
+ validatePageSource,
58
+ violationGuidance
59
+ } from "./chunk-EB7RWFQA.js";
60
+ import "./chunk-SVDVBZPA.js";
61
+ import "./chunk-FGKHDJOC.js";
62
+ export {
63
+ ADMISSIBLE_FRONTMATTER_KEYS,
64
+ GIT_COMMIT_PATTERN,
65
+ INCONSISTENT_VALUE_LIST,
66
+ KNOWN_PITFALLS,
67
+ KNOWN_PITFALL_CODE,
68
+ OutlineSchema,
69
+ PRODUCT_KINDS,
70
+ REJECTED_GENERATED_FILENAMES,
71
+ REJECTED_GENERATED_ROOTS,
72
+ RESERVED_URL_PREFIXES,
73
+ RUNBOOK_MAX_STEPS,
74
+ RUNBOOK_MAX_STEP_WORDS,
75
+ RUNBOOK_MIN_STEPS,
76
+ RUNBOOK_TARGETS,
77
+ SELF_CONTRADICTING_COUNT,
78
+ SOURCE_ABI_VERSION,
79
+ SOURCE_ALLOWED_EXTENSIONS,
80
+ SOURCE_ALLOWED_ROOTS,
81
+ SOURCE_LIMITS,
82
+ SOURCE_MEDIA_TYPES,
83
+ SourceAbiError,
84
+ TAR_BLOCK_SIZE,
85
+ TAR_TRAILER_SIZE,
86
+ VIOLATION_GUIDANCE,
87
+ applyChangeSet,
88
+ blankNonProse,
89
+ blobId,
90
+ canonicalizeRevisionManifest,
91
+ canonicalizeSourcePath,
92
+ changedLineIndexes,
93
+ checkPitfalls,
94
+ contentContract,
95
+ detectSourceMediaType,
96
+ extractClaimTokens,
97
+ extractLinks,
98
+ findUnresolvedLinks,
99
+ groundTokens,
100
+ headingsOf,
101
+ lintContent,
102
+ navigationFromOutline,
103
+ normalizeHeading,
104
+ outlineCoverage,
105
+ outlineDocId,
106
+ outlineJsonSchema,
107
+ pageSourceComponents,
108
+ parseOutline,
109
+ paxRecord,
110
+ resolveHref,
111
+ revisionId,
112
+ runbookProblems,
113
+ tarHeader,
114
+ tarPadding,
115
+ validateBundleSemantics,
116
+ validateBundleSemanticsAsync,
117
+ validateBundleStructure,
118
+ validatePageSource,
119
+ violationGuidance
120
+ };
package/dist/index.d.ts CHANGED
@@ -1,7 +1,7 @@
1
1
  import { Command } from 'commander';
2
2
  import { CommandMetadata, ClientErrorCode, ServerFault, MutationOutcome, ExitCode, ClientLimitation, ClientRecovery, DurableIds, ClientError, ClientFailure, ClientSuccess, ClientResult, TextInput, ManagementClient, SiteDiscovery, PagesResult, SiteStatus } from '@saturndocs/management-client';
3
+ import { CoverageReport, AbiViolation } from '@saturndocs/source-abi';
3
4
  import { DocsConfig } from '@saturndocs/config';
4
- import { AbiViolation } from '@saturndocs/source-abi';
5
5
  import { BrandExtraction, extractBrandFromUrl } from '@saturndocs/brand';
6
6
  export { BrandAssetExtraction, BrandExtraction, BrandFetchOptions, BrandFetcher, ColorCandidate, DEFAULT_PRIMARY_COLOR, FetchImplementation, LogoCandidate, LogoSelection, ScoredColor, UrlValidator, colorToHex, deriveDocsJson, extensionForContentType, extractBrandFromUrl, extractBrandText, extractCssColorCandidates, extractManifestUrl, extractStylesheetUrls, extractThemeColorMetas, fetchBrandAsset, normalizeHexColor, normalizeHttpUrl, parseCssColor, pickPrimaryColor, scoreColorCandidates, selectLogoAssets } from '@saturndocs/brand';
7
7
 
@@ -218,6 +218,10 @@ declare function clientFor(globals: GlobalOptions, environment?: ClientEnvironme
218
218
  */
219
219
  declare function asCliError(error: unknown): unknown;
220
220
 
221
+ declare const COVERAGE_METADATA: readonly CommandMetadata[];
222
+ declare function coverageOfDocsDir(docsDir: string, outlinePath: string): Promise<CoverageReport>;
223
+ declare function registerCoverage(program: Command): void;
224
+
221
225
  declare const AUTH_METADATA: readonly CommandMetadata[];
222
226
  interface AuthStatus {
223
227
  /** The site the credential resolves to, exactly as discovery returned it. */
@@ -254,10 +258,35 @@ interface CreateEnvironment extends ClientEnvironment {
254
258
  }
255
259
  declare function registerRequestsCreate(group: Command, environment?: CreateEnvironment): void;
256
260
 
261
+ declare const LINT_METADATA: readonly CommandMetadata[];
262
+ interface LintReportFinding {
263
+ path: string;
264
+ line: number | null;
265
+ rule: string;
266
+ severity: "warning" | "error";
267
+ message: string;
268
+ }
269
+ interface LintReport {
270
+ pages: number;
271
+ findings: LintReportFinding[];
272
+ }
273
+ /** Paths are docs-root-relative with forward slashes. Pitfall violations carry line null. */
274
+ declare function lintDocsDir(docsDir: string): Promise<LintReport>;
275
+ declare function registerLint(program: Command): void;
276
+
257
277
  declare const STATUS_METADATA: readonly CommandMetadata[];
258
278
  declare function statusText(status: SiteStatus): string;
259
279
  declare function registerStatus(program: Command, _cliDir: string, environment?: ClientEnvironment): void;
260
280
 
281
+ declare const NAV_METADATA: readonly CommandMetadata[];
282
+ interface NavResult {
283
+ groups: number;
284
+ pages: number;
285
+ }
286
+ /** Replaces only `navigation` in docs.json; every other key survives. Throws invalid_input before writing on a bad outline or docs.json. */
287
+ declare function applyOutlineNavigation(docsDir: string, outlinePath: string): Promise<NavResult>;
288
+ declare function registerNav(program: Command): void;
289
+
261
290
  /**
262
291
  * Walk up the directory tree from `startDir` looking for the SaturnDocs
263
292
  * workspace root. The root is the first ancestor directory that contains BOTH
@@ -317,6 +346,9 @@ declare function scanBrokenLinks(distDir: string): Promise<BrokenLink[]>;
317
346
  * - `models.toml` (only if present) loads and passes the schema.
318
347
  * - every navigation page resolves under the file-resolution rule.
319
348
  * - every navigation-group `openapi` file exists and parses.
349
+ * - when all of the above pass: the bundle structure and semantic checks
350
+ * ingest runs, then every internal link resolves to a page, an OpenAPI
351
+ * operation, or a platform route.
320
352
  */
321
353
  declare function validateDocs(docsDir: string): Promise<string[]>;
322
354
 
@@ -354,6 +386,7 @@ declare function deployBundle(input: {
354
386
  timeoutMs?: number;
355
387
  fetchImpl?: typeof fetch;
356
388
  onState?: (status: JobStatus) => void;
389
+ onWarning?: (warning: AbiViolation) => void;
357
390
  }): Promise<JobStatus>;
358
391
 
359
392
  interface InitOptions {
@@ -379,4 +412,4 @@ declare function buildDocsConfig(input: {
379
412
  favicon?: string;
380
413
  }): DocsConfig;
381
414
 
382
- export { AUTH_METADATA, type AuthStatus, type BrokenLink, type BundleArchive, COMMAND_GROUPS, COMMAND_GROUP_NAMES, CliError, type ClientEnvironment, type CommandGroup, type CreateEnvironment, type GlobalOptions, type InitOptions, type InitResult, type InterruptHandle, MANAGE_METADATA, PAGES_METADATA, REQUESTS_CREATE_METADATA, REQUESTS_METADATA, type RegisterGroup, type ResolvedPage, type ResultContext, type ResultWriter, SCHEMA_METADATA, SITES_METADATA, STATUS_METADATA, STDIN_BYTE_CEILING, TOKEN_VARIABLE, type TextInputFlags, applyCommandHelp, applyGlobalFlags, applyGlobalFlagsDeep, asCliError, authStatusOf, buildDocsConfig, clientError, clientFor, collectPageEntries, createBundleArchive, createResultWriter, deployBundle, failureResult, findCommandGroup, findWebDir, findWorkspaceRoot, helpBody, installInterrupt, interruptSignal, interrupted, invalidInput, pageUrl, pagesLimitations, readTextInput, registerAuth, registerPages, registerRequests, registerRequestsCreate, registerSchema, registerSites, registerStatus, renderTable, requestedSite, resolveGlobalOptions, resolvePageFile, scaffoldDocsProject, scanBrokenLinks, schemaDocument, selectCommandGroup, statusText, successResult, validateDocs, wantsJson };
415
+ export { AUTH_METADATA, type AuthStatus, type BrokenLink, type BundleArchive, COMMAND_GROUPS, COMMAND_GROUP_NAMES, COVERAGE_METADATA, CliError, type ClientEnvironment, type CommandGroup, type CreateEnvironment, type GlobalOptions, type InitOptions, type InitResult, type InterruptHandle, LINT_METADATA, type LintReport, type LintReportFinding, MANAGE_METADATA, NAV_METADATA, type NavResult, PAGES_METADATA, REQUESTS_CREATE_METADATA, REQUESTS_METADATA, type RegisterGroup, type ResolvedPage, type ResultContext, type ResultWriter, SCHEMA_METADATA, SITES_METADATA, STATUS_METADATA, STDIN_BYTE_CEILING, TOKEN_VARIABLE, type TextInputFlags, applyCommandHelp, applyGlobalFlags, applyGlobalFlagsDeep, applyOutlineNavigation, asCliError, authStatusOf, buildDocsConfig, clientError, clientFor, collectPageEntries, coverageOfDocsDir, createBundleArchive, createResultWriter, deployBundle, failureResult, findCommandGroup, findWebDir, findWorkspaceRoot, helpBody, installInterrupt, interruptSignal, interrupted, invalidInput, lintDocsDir, pageUrl, pagesLimitations, readTextInput, registerAuth, registerCoverage, registerLint, registerNav, registerPages, registerRequests, registerRequestsCreate, registerSchema, registerSites, registerStatus, renderTable, requestedSite, resolveGlobalOptions, resolvePageFile, scaffoldDocsProject, scanBrokenLinks, schemaDocument, selectCommandGroup, statusText, successResult, validateDocs, wantsJson };
package/dist/index.js CHANGED
@@ -1,23 +1,3 @@
1
- import {
2
- createBundleArchive,
3
- deployBundle
4
- } from "./chunk-I6U4V7B4.js";
5
- import {
6
- scanBrokenLinks
7
- } from "./chunk-OEAEX5YW.js";
8
- import {
9
- renderTable
10
- } from "./chunk-J6P3VGGE.js";
11
- import {
12
- PAGES_METADATA,
13
- pagesLimitations,
14
- registerPages
15
- } from "./chunk-XO4CUC7V.js";
16
- import {
17
- STATUS_METADATA,
18
- registerStatus,
19
- statusText
20
- } from "./chunk-3V753MRI.js";
21
1
  import {
22
2
  BrandFetcher,
23
3
  DEFAULT_PRIMARY_COLOR,
@@ -39,63 +19,102 @@ import {
39
19
  scaffoldDocsProject,
40
20
  scoreColorCandidates,
41
21
  selectLogoAssets
42
- } from "./chunk-SABK3R2P.js";
22
+ } from "./chunk-2RZEC3VH.js";
43
23
  import {
44
24
  collectPageEntries,
45
25
  pageUrl,
46
26
  resolvePageFile,
47
27
  validateDocs
48
- } from "./chunk-OZWTXMO3.js";
49
- import "./chunk-S45UWCML.js";
50
- import "./chunk-R3X2DPFF.js";
28
+ } from "./chunk-GLI3OUYL.js";
29
+ import {
30
+ deployBundle
31
+ } from "./chunk-D3CLXV7D.js";
32
+ import {
33
+ createBundleArchive
34
+ } from "./chunk-O72DR5FK.js";
35
+ import {
36
+ scanBrokenLinks
37
+ } from "./chunk-WHNL6UYJ.js";
51
38
  import {
52
39
  findWebDir,
53
40
  findWorkspaceRoot
54
41
  } from "./chunk-VXEUNRVA.js";
42
+ import {
43
+ renderTable
44
+ } from "./chunk-J6P3VGGE.js";
55
45
  import "./chunk-VNYDYHXM.js";
46
+ import {
47
+ PAGES_METADATA,
48
+ pagesLimitations,
49
+ registerPages
50
+ } from "./chunk-Z5CBPJ2L.js";
51
+ import {
52
+ STATUS_METADATA,
53
+ registerStatus,
54
+ statusText
55
+ } from "./chunk-GGGL4O7Z.js";
56
+ import {
57
+ SITES_METADATA,
58
+ registerSites,
59
+ requestedSite
60
+ } from "./chunk-W3GKH5DY.js";
61
+ import {
62
+ NAV_METADATA,
63
+ applyOutlineNavigation,
64
+ registerNav
65
+ } from "./chunk-6JGAA5TF.js";
66
+ import {
67
+ LINT_METADATA,
68
+ lintDocsDir,
69
+ registerLint
70
+ } from "./chunk-YSFP37B7.js";
71
+ import {
72
+ COVERAGE_METADATA,
73
+ coverageOfDocsDir,
74
+ registerCoverage
75
+ } from "./chunk-WUPP3THV.js";
76
+ import "./chunk-56U46JVN.js";
56
77
  import {
57
78
  MANAGE_METADATA
58
- } from "./chunk-STCCGFKC.js";
79
+ } from "./chunk-4ORVQCHY.js";
59
80
  import {
60
81
  REQUESTS_CREATE_METADATA,
61
82
  REQUESTS_METADATA,
62
83
  registerRequests,
63
84
  registerRequestsCreate
64
- } from "./chunk-U7PKMSB3.js";
85
+ } from "./chunk-QF2ADHQZ.js";
65
86
  import {
66
87
  STDIN_BYTE_CEILING,
67
88
  readTextInput
68
- } from "./chunk-N7QPZMLP.js";
89
+ } from "./chunk-WBI4EI3D.js";
90
+ import "./chunk-EB7RWFQA.js";
91
+ import "./chunk-SVDVBZPA.js";
92
+ import "./chunk-FGKHDJOC.js";
69
93
  import {
70
94
  SCHEMA_METADATA,
71
95
  registerSchema,
72
96
  schemaDocument
73
- } from "./chunk-5KX4ZK5E.js";
97
+ } from "./chunk-DBMFJXKP.js";
74
98
  import {
75
99
  COMMAND_GROUPS,
76
100
  COMMAND_GROUP_NAMES,
77
101
  findCommandGroup,
78
102
  selectCommandGroup
79
- } from "./chunk-QLFODLVN.js";
103
+ } from "./chunk-4J33CCAC.js";
80
104
  import {
81
105
  AUTH_METADATA,
82
106
  authStatusOf,
83
107
  registerAuth
84
- } from "./chunk-3P2OFTXR.js";
85
- import {
86
- SITES_METADATA,
87
- registerSites,
88
- requestedSite
89
- } from "./chunk-CMNX5DLQ.js";
108
+ } from "./chunk-K5YY6NSF.js";
90
109
  import {
91
110
  TOKEN_VARIABLE,
92
111
  asCliError,
93
112
  clientFor
94
- } from "./chunk-TKISMN3P.js";
113
+ } from "./chunk-KOJJUISB.js";
95
114
  import {
96
115
  installInterrupt,
97
116
  interruptSignal
98
- } from "./chunk-KGJESHJC.js";
117
+ } from "./chunk-2YTD2XNI.js";
99
118
  import {
100
119
  applyCommandHelp,
101
120
  helpBody
@@ -112,15 +131,18 @@ import {
112
131
  resolveGlobalOptions,
113
132
  successResult,
114
133
  wantsJson
115
- } from "./chunk-GYRVGWDM.js";
134
+ } from "./chunk-ADZOBRZE.js";
116
135
  export {
117
136
  AUTH_METADATA,
118
137
  BrandFetcher,
119
138
  COMMAND_GROUPS,
120
139
  COMMAND_GROUP_NAMES,
140
+ COVERAGE_METADATA,
121
141
  CliError,
122
142
  DEFAULT_PRIMARY_COLOR,
143
+ LINT_METADATA,
123
144
  MANAGE_METADATA,
145
+ NAV_METADATA,
124
146
  PAGES_METADATA,
125
147
  REQUESTS_CREATE_METADATA,
126
148
  REQUESTS_METADATA,
@@ -132,6 +154,7 @@ export {
132
154
  applyCommandHelp,
133
155
  applyGlobalFlags,
134
156
  applyGlobalFlagsDeep,
157
+ applyOutlineNavigation,
135
158
  asCliError,
136
159
  authStatusOf,
137
160
  buildDocsConfig,
@@ -139,6 +162,7 @@ export {
139
162
  clientFor,
140
163
  collectPageEntries,
141
164
  colorToHex,
165
+ coverageOfDocsDir,
142
166
  createBundleArchive,
143
167
  createResultWriter,
144
168
  deployBundle,
@@ -160,6 +184,7 @@ export {
160
184
  interruptSignal,
161
185
  interrupted,
162
186
  invalidInput,
187
+ lintDocsDir,
163
188
  normalizeHexColor,
164
189
  normalizeHttpUrl,
165
190
  pageUrl,
@@ -168,6 +193,9 @@ export {
168
193
  pickPrimaryColor,
169
194
  readTextInput,
170
195
  registerAuth,
196
+ registerCoverage,
197
+ registerLint,
198
+ registerNav,
171
199
  registerPages,
172
200
  registerRequests,
173
201
  registerRequestsCreate,
@@ -3,9 +3,9 @@ import {
3
3
  printExtractionReport,
4
4
  registerInit,
5
5
  scaffoldDocsProject
6
- } from "./chunk-SABK3R2P.js";
7
- import "./chunk-R3X2DPFF.js";
6
+ } from "./chunk-2RZEC3VH.js";
8
7
  import "./chunk-VNYDYHXM.js";
8
+ import "./chunk-FGKHDJOC.js";
9
9
  export {
10
10
  buildDocsConfig,
11
11
  printExtractionReport,
@@ -0,0 +1,13 @@
1
+ import {
2
+ LINT_METADATA,
3
+ lintDocsDir,
4
+ registerLint
5
+ } from "./chunk-YSFP37B7.js";
6
+ import "./chunk-56U46JVN.js";
7
+ import "./chunk-M2BZEDAS.js";
8
+ import "./chunk-ADZOBRZE.js";
9
+ export {
10
+ LINT_METADATA,
11
+ lintDocsDir,
12
+ registerLint
13
+ };
@@ -2,9 +2,9 @@ import {
2
2
  MANAGE_METADATA,
3
3
  callManagement,
4
4
  registerManage
5
- } from "./chunk-STCCGFKC.js";
5
+ } from "./chunk-4ORVQCHY.js";
6
6
  import "./chunk-M2BZEDAS.js";
7
- import "./chunk-GYRVGWDM.js";
7
+ import "./chunk-ADZOBRZE.js";
8
8
  export {
9
9
  MANAGE_METADATA,
10
10
  callManagement,
@@ -0,0 +1,14 @@
1
+ import {
2
+ NAV_METADATA,
3
+ applyOutlineNavigation,
4
+ registerNav
5
+ } from "./chunk-6JGAA5TF.js";
6
+ import "./chunk-KOJJUISB.js";
7
+ import "./chunk-2YTD2XNI.js";
8
+ import "./chunk-M2BZEDAS.js";
9
+ import "./chunk-ADZOBRZE.js";
10
+ export {
11
+ NAV_METADATA,
12
+ applyOutlineNavigation,
13
+ registerNav
14
+ };