build: add canonical product catalog and docs drift checks

Derive package, tool-family, provider, setup-client, schema-version, and CLI facts from the runtime contract sources into a deterministic checked-in catalog.

Add non-mutating generated-file checks, exact TypeDoc regenerate-and-compare validation, caller-visible documentation fact checks, and CI enforcement through docs:check.

Cover command-router parity, source-derived catalog values, deliberate documentation drift, and stale generated artifacts while preserving runtime behavior.
This commit is contained in:
N0zoM1z0
2026-07-15 17:43:52 +08:00
parent addc208f12
commit beb9ece7d1
109 changed files with 1878 additions and 281 deletions
+1 -1
View File
@@ -76,7 +76,7 @@ const entrySchema = z.object({
});
/** Provider-neutral, deterministic cache of successful immutable analysis calls. */
const analysisSnapshotSchema = z.object({
export const analysisSnapshotSchema = z.object({
snapshot_version: z.literal(1),
target: targetSchema,
entries: z.array(entrySchema).max(10_000),
+2 -1
View File
@@ -161,7 +161,8 @@ export const investigationRunSummarySchema = z.object({
limitations: z.array(z.string().max(4_096)).max(100),
});
const investigationWorkspaceSchema = z.object({
/** Durable schema for one revisioned cross-version investigation workspace. */
export const investigationWorkspaceSchema = z.object({
workspace_version: z.literal(1),
workspace_id: z.string().regex(/^ws_[a-f0-9]{64}$/u),
name: z.string().trim().min(1).max(200),