@agentskit/doc-bridge 1.10.0 → 1.11.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.
@@ -1,2 +1,2 @@
1
- export { A as AgentCorpusConfig, x as AgentCorpusConfigSchema, C as ConfigNotFoundError, y as ConformanceConfigSchema, D as DocBridgeConfigV1, e as DocBridgeConfigV1Schema, a as DocumentationAuditConfig, f as DocumentationAuditConfigSchema, d as DocumentationStandardRuleId, g as DocumentationStandardRuleIdSchema, h as DocumentationStandardV1Config, i as DocumentationStandardV1ConfigSchema, E as EcosystemContractEvidenceSchema, H as HumanCorpusConfigSchema, z as ReconciliationConfig, B as ReconciliationConfigSchema, k as ReportConfig, l as ReportConfigSchema, F as RetrievalConfig, G as RetrievalConfigSchema, s as applyConfigDefaults, t as defineConfig, u as loadConfig, v as projectRootFromConfigPath, w as resolveProjectRoot } from '../index-7wYGbllW.js';
1
+ export { A as AgentCorpusConfig, x as AgentCorpusConfigSchema, C as ConfigNotFoundError, y as ConformanceConfigSchema, D as DocBridgeConfigV1, e as DocBridgeConfigV1Schema, a as DocumentationAuditConfig, f as DocumentationAuditConfigSchema, d as DocumentationStandardRuleId, g as DocumentationStandardRuleIdSchema, h as DocumentationStandardV1Config, i as DocumentationStandardV1ConfigSchema, E as EcosystemContractEvidenceSchema, H as HumanCorpusConfigSchema, z as ReconciliationConfig, B as ReconciliationConfigSchema, k as ReportConfig, l as ReportConfigSchema, F as RetrievalConfig, G as RetrievalConfigSchema, s as applyConfigDefaults, t as defineConfig, u as loadConfig, v as projectRootFromConfigPath, w as resolveProjectRoot } from '../index-CimDq6_e.js';
2
2
  import 'zod';
@@ -161,6 +161,7 @@ var GatesConfigSchema = z.object({
161
161
  include: z.array(
162
162
  z.enum([
163
163
  "index-freshness",
164
+ "index-reproducible",
164
165
  "human-guide-links",
165
166
  "link-rot",
166
167
  "okf-type",
@@ -173,6 +174,7 @@ var GatesConfigSchema = z.object({
173
174
  exclude: z.array(
174
175
  z.enum([
175
176
  "index-freshness",
177
+ "index-reproducible",
176
178
  "human-guide-links",
177
179
  "link-rot",
178
180
  "okf-type",
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/config/defaults.ts","../../src/config/schema.ts","../../src/config/define-config.ts","../../src/config/load-config.ts","../../src/lib/static-js-literal.ts"],"sourcesContent":["import type { DocBridgeConfigV1 } from './schema.js'\n\nconst DEFAULT_AGENT_EXCLUDE = ['**/node_modules/**', '**/.git/**'] as const\n\nexport const applyConfigDefaults = (config: DocBridgeConfigV1): DocBridgeConfigV1 => {\n const agentRoot = config.corpus.agent.root\n const agentIndex = config.corpus.agent.index ?? `${agentRoot}/INDEX.md`\n\n return {\n ...config,\n corpus: {\n ...config.corpus,\n agent: {\n ...config.corpus.agent,\n index: agentIndex,\n include: config.corpus.agent.include ?? ['**/*.{md,mdx}'],\n exclude: config.corpus.agent.exclude ?? [...DEFAULT_AGENT_EXCLUDE],\n },\n },\n index: {\n outFile: '.doc-bridge/index.json',\n contentHash: 'sha256-normalized-v1',\n llmsTxt: {\n enabled: true,\n outFile: 'llms.txt',\n ...config.index?.llmsTxt,\n },\n capabilities: {\n enabled: true,\n outFile: '.doc-bridge/capabilities.json',\n ...config.index?.capabilities,\n },\n ...config.index,\n },\n gates: {\n preset: 'minimal',\n ...config.gates,\n },\n rules: {\n mode: 'default',\n ...config.rules,\n },\n safety: {\n redactSecrets: true,\n ...config.safety,\n },\n surfaces: {\n cli: {\n bin: 'ak-docs',\n defaultFormat: 'json',\n ...config.surfaces?.cli,\n },\n mcp: {\n enabled: true,\n tools: [\n 'handoff.resolve', 'doc.search', 'doc.get', 'gate.status', 'retriever.query',\n 'memory.classify', 'memory.promoteDraft', 'registry.topology',\n 'docbridge.snapshot', 'docbridge.report', 'docbridge.diagnostics',\n 'docbridge.relations', 'docbridge.run', 'docbridge.proposals',\n 'knowledge.search', 'knowledge.lookup',\n ],\n transport: 'stdio',\n ...config.surfaces?.mcp,\n },\n ...config.surfaces,\n },\n intelligence: config.intelligence\n ? {\n enabled: false,\n ...config.intelligence,\n chat: config.intelligence.chat\n ? { handoffFirst: true, ...config.intelligence.chat }\n : undefined,\n }\n : { enabled: false },\n }\n}\n","import { z } from 'zod'\n\nexport const CONFIG_SCHEMA_VERSION = 1 as const\n\nexport const HumanCorpusPluginIdSchema = z.enum([\n 'plain-markdown',\n 'fumadocs',\n 'docusaurus',\n 'mkdocs',\n 'vitepress',\n 'starlight',\n 'nextra',\n 'custom',\n])\n\nexport const AgentCorpusConfigSchema = z\n .object({\n root: z.string().min(1).max(512),\n index: z.string().min(1).max(512).optional(),\n include: z.array(z.string().min(1).max(256)).max(64).optional(),\n exclude: z.array(z.string().min(1).max(256)).max(64).optional(),\n okf: z\n .object({\n requireType: z.boolean().optional(),\n allowedTypes: z.array(z.string().min(1).max(128)).max(64).optional(),\n })\n .strict()\n .optional(),\n })\n .strict()\n\nexport const HumanCorpusConfigSchema = z\n .object({\n plugin: HumanCorpusPluginIdSchema,\n options: z.record(z.string(), z.unknown()).optional(),\n })\n .strict()\n\nexport const IndexConfigSchema = z\n .object({\n outFile: z.string().min(1).max(512).optional(),\n llmsTxt: z\n .object({\n enabled: z.boolean().optional(),\n outFile: z.string().min(1).max(512).optional(),\n preamble: z.string().max(4_000).optional(),\n urlPrefix: z.string().url().optional(),\n pathPrefix: z.string().min(1).max(512).optional(),\n })\n .strict()\n .optional(),\n capabilities: z\n .object({\n enabled: z.boolean().optional(),\n outFile: z.string().min(1).max(512).optional(),\n })\n .strict()\n .optional(),\n contentHash: z.literal('sha256-normalized-v1').optional(),\n })\n .strict()\n\nexport const OwnershipEntrySchema = z\n .object({\n path: z.string().min(1).max(512),\n group: z.string().min(1).max(128).optional(),\n layer: z.string().min(1).max(32).optional(),\n purpose: z.string().max(1024).optional(),\n checks: z.array(z.string().min(1).max(256)).max(32).optional(),\n agentDoc: z.string().min(1).max(512).optional(),\n humanDoc: z.string().min(1).max(512).optional(),\n })\n .strict()\n\nexport const RoutingConfigSchema = z\n .object({\n plugin: z\n .enum(['pnpm-monorepo', 'npm-workspaces', 'yarn-workspaces', 'nx', 'pattern-files', 'custom'])\n .optional(),\n options: z\n .object({\n packages: z.array(z.string().min(1).max(256)).max(128).optional(),\n /** Infer ownership from corpus paths/frontmatter (default true). */\n ownershipFromCorpus: z.boolean().optional(),\n ownership: z.record(z.string().min(1).max(256), OwnershipEntrySchema).optional(),\n intents: z\n .array(\n z\n .object({\n id: z.string().min(1).max(128),\n title: z.string().min(1).max(256),\n paths: z.array(z.string().min(1).max(512)).max(32),\n })\n .strict(),\n )\n .max(128)\n .optional(),\n changes: z\n .array(\n z\n .object({\n id: z.string().min(1).max(128),\n title: z.string().min(1).max(256),\n startHere: z.string().min(1).max(512),\n relatedPackages: z.array(z.string().min(1).max(256)).max(32).optional(),\n })\n .strict(),\n )\n .max(128)\n .optional(),\n })\n .strict()\n .optional(),\n })\n .strict()\n\nexport const GatesConfigSchema = z\n .object({\n /** minimal: freshness · standard: + human links · strict: + okf-type · playbook: freshness + okf soft style */\n preset: z.enum(['minimal', 'standard', 'strict', 'playbook']).optional(),\n include: z\n .array(\n z.enum([\n 'index-freshness',\n 'human-guide-links',\n 'link-rot',\n 'okf-type',\n 'docs-style',\n 'routing-currency',\n 'bootstrap-size',\n 'documentation-standard-v1',\n ]),\n )\n .max(16)\n .optional(),\n exclude: z\n .array(\n z.enum([\n 'index-freshness',\n 'human-guide-links',\n 'link-rot',\n 'okf-type',\n 'docs-style',\n 'routing-currency',\n 'bootstrap-size',\n 'documentation-standard-v1',\n ]),\n )\n .max(16)\n .optional(),\n options: z.record(z.string(), z.unknown()).optional(),\n })\n .strict()\n\nexport const RuleIdSchema = z.enum([\n 'documentation-quality',\n 'graph-undocumented-relation',\n 'declared-unobserved-relation',\n 'unresolved-reference',\n 'conflicting-declaration',\n 'not-analyzed-coverage',\n 'stale-documentation',\n 'centrality-risk',\n 'critical-path-risk',\n 'freshness',\n 'ownership',\n])\n\nexport const RuleSeveritySchema = z.enum(['off', 'info', 'warn', 'error'])\n\nexport const RulesConfigSchema = z\n .object({\n mode: z.enum(['default', 'recommended', 'strict']).optional(),\n severity: z.partialRecord(RuleIdSchema, RuleSeveritySchema).optional(),\n ignore: z.array(RuleIdSchema).max(128).optional(),\n criticalEntities: z.array(z.string().min(1).max(256)).max(128).optional(),\n criticalPaths: z.array(z.string().min(1).max(512)).max(128).optional(),\n warningThresholds: z.partialRecord(RuleIdSchema, z.number().int().min(1).max(100_000)).optional(),\n })\n .strict()\n\nexport const ReconciliationConfigSchema = z\n .object({\n /** Semantic comparison level. Raw discovery always keeps file-level relations. */\n scope: z.enum(['file', 'module', 'area', 'package']).optional(),\n /** Relation kinds that must have documentation declarations. Omit to require all observed kinds; [] disables this signal. */\n requiredRelationKinds: z.array(z.string().min(1).max(128)).max(128).optional(),\n /** Limit missing-declaration findings to relations whose endpoints are internal project entities. */\n requiredRelationTargets: z.enum(['all', 'internal']).optional(),\n includeOrphanedDocuments: z.boolean().optional(),\n })\n .strict()\n\nexport const DocumentationAuditConfigSchema = z\n .object({\n /** Glob-like paths that should be compared for structure coverage. */\n criticalPaths: z.array(z.string().min(1).max(512)).max(128).optional(),\n /** Generated docs are checked for presence/freshness evidence only; content quality is skipped. */\n generatedPaths: z.array(z.string().min(1).max(512)).max(128).optional(),\n exclude: z.array(z.string().min(1).max(512)).max(128).optional(),\n minWords: z.number().int().nonnegative().max(100_000).optional(),\n requiredSections: z.array(z.string().min(1).max(128)).max(32).optional(),\n requireExamples: z.boolean().optional(),\n exactDuplicates: z.boolean().optional(),\n defaultTier: z.enum(['tier-0', 'tier-1', 'tier-2']).optional(),\n tierRules: z.array(z.object({\n pattern: z.string().min(1).max(512),\n tier: z.enum(['tier-0', 'tier-1', 'tier-2']),\n critical: z.boolean().optional(),\n }).strict()).max(128).optional(),\n requiredCriticalMetadata: z.array(z.enum(['owner', 'lifecycle', 'sourceOfTruth', 'validationPath'])).max(4).optional(),\n })\n .strict()\n\nexport const AnalysisConfigSchema = z\n .object({\n plugins: z\n .array(\n z\n .object({\n id: z.string().regex(/^[a-z][a-z0-9-]*$/).max(128),\n enabled: z.boolean().optional(),\n order: z.number().int().nonnegative().optional(),\n options: z.record(z.string(), z.unknown()).optional(),\n reason: z.string().min(1).max(1_024).optional(),\n })\n .strict(),\n )\n .max(128)\n .optional(),\n jsTs: z\n .object({\n runtimeWiringMethods: z.array(z.string().regex(/^[A-Za-z_$][A-Za-z0-9_$]*$/).max(64)).max(64).optional(),\n runtimeWiringAdapters: z\n .array(\n z\n .object({\n id: z.string().min(1).max(128),\n methods: z.array(z.string().regex(/^[A-Za-z_$][A-Za-z0-9_$]*$/).max(64)).min(1).max(64),\n })\n .strict(),\n )\n .max(32)\n .optional(),\n includeTestRuntimeWiring: z.boolean().optional(),\n })\n .strict()\n .optional(),\n /**\n * How code areas are derived — the unit of architecture between a package and a file.\n * `roots` names directories that contain areas rather than being one (`src` holds\n * `src/query`); `depth` is how many levels below such a root an area sits; `exclude`\n * names directories that hold code without being a unit of architecture.\n */\n areas: z\n .object({\n depth: z.number().int().min(1).max(8).optional(),\n roots: z.array(z.string().min(1).max(128)).max(32).optional(),\n /**\n * Glob patterns for directories that are not areas. A monorepo where every package\n * keeps `tests/` and `fixtures/` beside `src/` derives one area per directory, and\n * then connectivity asks for a document about a folder of test data. An ownership\n * record naming an excluded path still makes it an area: a person saying a directory\n * is a unit outranks a pattern saying it is not.\n */\n exclude: z.array(z.string().min(1).max(256)).max(64).optional(),\n })\n .strict()\n .optional(),\n })\n .strict()\n\nexport const WorkflowConfigSchema = z\n .object({\n stateDir: z.string().min(1).max(512).optional(),\n })\n .strict()\n\nexport const RepositorySafetyConfigSchema = z\n .object({\n exclude: z.array(z.string().min(1).max(512)).max(128).optional(),\n maxFiles: z.number().int().positive().max(1_000_000).optional(),\n maxBytes: z.number().int().positive().max(10_000_000_000).optional(),\n maxTimeMs: z.number().int().positive().max(86_400_000).optional(),\n maxMemoryMb: z.number().int().positive().max(1_048_576).optional(),\n redactSecrets: z.boolean().optional(),\n })\n .strict()\n\nexport const ReportConfigSchema = z\n .object({\n /** Public report privacy mode. Private is the default; anonymized preserves topology without project identity. */\n privacy: z.enum(['private', 'anonymized']).optional(),\n })\n .strict()\n\nexport const SurfacesConfigSchema = z\n .object({\n cli: z\n .object({\n bin: z.string().min(1).max(64).optional(),\n defaultFormat: z.enum(['json', 'text']).optional(),\n })\n .strict()\n .optional(),\n mcp: z\n .object({\n enabled: z.boolean().optional(),\n tools: z\n .array(\n z.enum([\n 'handoff.resolve',\n 'doc.search',\n 'doc.get',\n 'gate.status',\n 'playbook.pattern.get',\n 'retriever.query',\n 'memory.classify',\n 'memory.promoteDraft',\n 'registry.topology',\n 'docbridge.snapshot',\n 'docbridge.report',\n 'docbridge.diagnostics',\n 'docbridge.relations',\n 'docbridge.run',\n 'docbridge.proposals',\n 'knowledge.search',\n 'knowledge.lookup',\n ]),\n )\n .max(18)\n .optional(),\n transport: z.enum(['stdio', 'http']).optional(),\n http: z\n .object({\n port: z.number().int().min(1).max(65_535).optional(),\n path: z.string().min(1).max(256).optional(),\n })\n .strict()\n .optional(),\n })\n .strict()\n .optional(),\n })\n .strict()\n\n/** One enrichment role: an installed Registry agent and the prompt version it is run with. */\nexport const EnrichmentRoleSchema = z\n .object({\n enabled: z.boolean().optional(),\n /** Defaults to `intelligence.registry.agentId`. */\n agentId: z.string().min(1).max(256).optional(),\n promptVersion: z.string().min(1).max(64).optional(),\n })\n .strict()\n\nexport const IntelligenceConfigSchema = z\n .object({\n enabled: z.boolean().optional(),\n adapter: z\n .object({\n provider: z.enum(['openai', 'anthropic', 'ollama', 'openrouter', 'custom']),\n model: z.string().min(1).max(128).optional(),\n apiKeyEnv: z.string().min(0).max(128).optional(),\n baseUrl: z.string().url().optional(),\n options: z.record(z.string(), z.unknown()).optional(),\n })\n .strict()\n .optional(),\n chat: z\n .object({\n enabled: z.boolean().optional(),\n sources: z.array(z.enum(['agent', 'human', 'federation'])).max(8).optional(),\n handoffFirst: z.boolean().optional(),\n })\n .strict()\n .optional(),\n retriever: z\n .object({\n enabled: z.boolean().optional(),\n mode: z.enum(['local', 'remote', 'bm25', 'agentskit-rag']).optional(),\n embedModel: z.string().min(1).max(128).optional(),\n chunkSize: z.number().int().min(128).max(16_384).optional(),\n options: z.record(z.string(), z.unknown()).optional(),\n })\n .strict()\n .optional(),\n memory: z\n .object({\n enabled: z.boolean().optional(),\n adapters: z\n .array(z.enum(['playbook-memory', 'cursor-rules', 'session-export', 'bootstrap-delta']))\n .max(8)\n .optional(),\n ingestDir: z.string().min(1).max(512).optional(),\n classify: z.boolean().optional(),\n promote: z\n .object({\n enabled: z.boolean().optional(),\n targets: z.array(z.enum(['agent', 'human', 'agents-md'])).max(8).optional(),\n requireApproval: z.boolean().optional(),\n })\n .strict()\n .optional(),\n })\n .strict()\n .optional(),\n runtime: z.enum(['agentskit', 'custom']).optional(),\n runtimeModule: z.string().min(1).max(512).optional(),\n registry: z\n .object({\n enabled: z.boolean().optional(),\n agentId: z.string().min(1).max(256).optional(),\n agentRoot: z.string().min(1).max(512).optional(),\n runnerModule: z.string().min(1).max(512).optional(),\n cli: z\n .object({\n /** Executable name or absolute path. Arguments are passed without a shell. */\n command: z.string().min(1).max(512),\n args: z.array(z.string().max(2_048)).max(64).optional(),\n })\n .strict()\n .optional(),\n deterministic: z.boolean().optional(),\n timeoutMs: z.number().int().positive().max(600_000).optional(),\n maxInputBytes: z.number().int().positive().max(50_000_000).optional(),\n maxTokens: z.number().int().positive().max(1_000_000).optional(),\n maxResponseBytes: z.number().int().positive().max(10_000_000).optional(),\n maxConcurrency: z.number().int().positive().max(64).optional(),\n /** Byte budget of one enrichment context pack. Default 65536. */\n maxPackBytes: z.number().int().min(4_096).max(4_000_000).optional(),\n /**\n * Which installed agent plays which enrichment role. The default is the configured agent\n * as curator only. The adjudicator must be a different identity from both others.\n */\n roles: z\n .object({\n curator: EnrichmentRoleSchema.optional(),\n reviewer: EnrichmentRoleSchema.optional(),\n adjudicator: EnrichmentRoleSchema.optional(),\n })\n .strict()\n .optional(),\n })\n .strict()\n .optional(),\n })\n .strict()\n\nexport const FederationConfigSchema = z\n .object({\n enabled: z.boolean().optional(),\n sources: z\n .array(\n z\n .object({\n id: z.string().min(1).max(64),\n llmsTxt: z.string().min(1).max(512).optional(),\n rawBaseUrl: z.string().url().optional(),\n includeInRetriever: z.boolean().optional(),\n includeInChat: z.boolean().optional(),\n })\n .strict(),\n )\n .max(16)\n .optional(),\n })\n .strict()\n\nexport const DocumentationEvidenceFileSchema = z\n .object({\n path: z.string().min(1).max(512),\n contains: z.array(z.string().min(1).max(512)).min(1).max(32),\n })\n .strict()\n\nexport const DocumentationLinkEvidenceSchema = z\n .object({\n url: z.string().url().max(512),\n paths: z.array(z.string().min(1).max(512)).min(1).max(32),\n })\n .strict()\n\nexport const DocumentationQuickstartEvidenceSchema = z\n .object({\n id: z.string().regex(/^[a-z][a-z0-9-]*$/).max(128),\n doc: z.string().min(1).max(512),\n test: z.string().min(1).max(512),\n command: z.string().min(1).max(512),\n testContains: z.array(z.string().min(1).max(256)).min(1).max(16),\n })\n .strict()\n\nexport const EcosystemContractEvidenceSchema = z\n .object({\n manifest: z.string().min(1).max(512),\n claims: z.string().min(1).max(512),\n productId: z.string().regex(/^[a-z][a-z0-9-]*$/).max(128),\n })\n .strict()\n\nexport const DocumentationStandardRuleIdSchema = z.enum([\n 'human-docs',\n 'llms-and-raw-source',\n 'agent-handoffs',\n 'contribution',\n 'metadata',\n 'cross-links',\n 'tested-quickstarts',\n 'visual-explanations',\n 'structured-diagrams',\n])\n\nexport const DocumentationStandardExceptionSchema = z\n .object({\n ruleId: DocumentationStandardRuleIdSchema,\n reason: z.string().min(10).max(1_024),\n approvedBy: z.string().min(1).max(256),\n trackingUrl: z.string().url().max(512),\n })\n .strict()\n\nexport const DocumentationStandardV1ConfigSchema = z\n .object({\n rawSources: z.array(z.string().min(1).max(512)).max(64).optional(),\n contributionPaths: z.array(z.string().min(1).max(512)).max(16).optional(),\n metadata: z.array(DocumentationEvidenceFileSchema).max(32).optional(),\n links: z.array(DocumentationLinkEvidenceSchema).max(64).optional(),\n quickstarts: z.array(DocumentationQuickstartEvidenceSchema).max(32).optional(),\n visuals: z.array(z.string().min(1).max(512)).max(64).optional(),\n diagrams: z.array(DocumentationEvidenceFileSchema).max(32).optional(),\n ecosystemContract: EcosystemContractEvidenceSchema.optional(),\n exceptions: z.array(DocumentationStandardExceptionSchema).max(32).optional(),\n })\n .strict()\n .superRefine((value, context) => {\n const seen = new Set<string>()\n for (const [index, exception] of (value.exceptions ?? []).entries()) {\n if (seen.has(exception.ruleId)) {\n context.addIssue({\n code: 'custom',\n path: ['exceptions', index, 'ruleId'],\n message: `Duplicate exception for rule ${exception.ruleId}`,\n })\n }\n seen.add(exception.ruleId)\n }\n })\n\n/**\n * Retrieval tuning. Weights and parameters are configuration rather than code so a repository can\n * change what its agents find first without a release, and so the change is recorded in the index.\n */\nexport const RetrievalConfigSchema = z\n .object({\n corpus: z\n .object({\n /** Project repository documents and modules into the index. On by default. */\n enabled: z.boolean().optional(),\n })\n .strict()\n .optional(),\n weights: z.record(z.string().min(1).max(64), z.number().min(0).max(1_000)).optional(),\n params: z\n .object({ k1: z.number().min(0).max(100).optional(), b: z.number().min(0).max(1).optional() })\n .strict()\n .optional(),\n benchmark: z\n .object({\n /** The golden retrieval suite the doctor measures hit@3 against. `docs/bench/retrieval-suite-v1.json` by default. */\n suite: z.string().min(1).max(512).optional(),\n })\n .strict()\n .optional(),\n })\n .strict()\n\nexport const ConformanceConfigSchema = z\n .object({\n documentationStandardV1: DocumentationStandardV1ConfigSchema.optional(),\n })\n .strict()\n\nexport const RenderTemplateNameSchema = z.enum(['llms.txt', 'area', 'ownership', 'change-digest', 'overlay-review'])\n\nexport const RenderConfigSchema = z\n .object({\n /**\n * Project templates that replace the bundled ones, by template name, as paths relative to\n * the project root. `ak-docs render <name> --print-template` prints the bundled template to\n * start from.\n */\n templates: z.partialRecord(RenderTemplateNameSchema, z.string().min(1).max(512)).optional(),\n })\n .strict()\n\nexport const DocBridgeConfigV1Schema = z\n .object({\n schemaVersion: z.literal(CONFIG_SCHEMA_VERSION),\n project: z\n .object({\n name: z.string().min(1).max(128).optional(),\n root: z.string().min(1).max(512).optional(),\n })\n .strict()\n .optional(),\n corpus: z\n .object({\n agent: AgentCorpusConfigSchema,\n human: z.union([HumanCorpusConfigSchema, z.array(HumanCorpusConfigSchema).max(8)]).optional(),\n })\n .strict(),\n index: IndexConfigSchema.optional(),\n routing: RoutingConfigSchema.optional(),\n gates: GatesConfigSchema.optional(),\n reconciliation: ReconciliationConfigSchema.optional(),\n audit: z.object({ documentation: DocumentationAuditConfigSchema.optional() }).strict().optional(),\n analysis: AnalysisConfigSchema.optional(),\n rules: RulesConfigSchema.optional(),\n workflow: WorkflowConfigSchema.optional(),\n safety: RepositorySafetyConfigSchema.optional(),\n report: ReportConfigSchema.optional(),\n surfaces: SurfacesConfigSchema.optional(),\n intelligence: IntelligenceConfigSchema.optional(),\n federation: FederationConfigSchema.optional(),\n conformance: ConformanceConfigSchema.optional(),\n retrieval: RetrievalConfigSchema.optional(),\n render: RenderConfigSchema.optional(),\n })\n .strict()\n\nexport type DocBridgeConfigV1 = z.infer<typeof DocBridgeConfigV1Schema>\nexport type RenderConfig = z.infer<typeof RenderConfigSchema>\nexport type AgentCorpusConfig = z.infer<typeof AgentCorpusConfigSchema>\nexport type HumanCorpusConfig = z.infer<typeof HumanCorpusConfigSchema>\nexport type DocumentationStandardV1Config = z.infer<typeof DocumentationStandardV1ConfigSchema>\nexport type DocumentationStandardRuleId = z.infer<typeof DocumentationStandardRuleIdSchema>\nexport type ReconciliationConfig = z.infer<typeof ReconciliationConfigSchema>\nexport type DocumentationAuditConfig = z.infer<typeof DocumentationAuditConfigSchema>\nexport type AnalysisConfig = z.infer<typeof AnalysisConfigSchema>\nexport type RuleId = z.infer<typeof RuleIdSchema>\nexport type RuleSeverity = z.infer<typeof RuleSeveritySchema>\nexport type RulesConfig = z.infer<typeof RulesConfigSchema>\nexport type WorkflowConfig = z.infer<typeof WorkflowConfigSchema>\nexport type RepositorySafetyConfig = z.infer<typeof RepositorySafetyConfigSchema>\nexport type ReportConfig = z.infer<typeof ReportConfigSchema>\nexport type RetrievalConfig = z.infer<typeof RetrievalConfigSchema>\n","import { applyConfigDefaults } from './defaults.js'\nimport { DocBridgeConfigV1Schema, type DocBridgeConfigV1 } from './schema.js'\n\n/** Type-safe config helper for `doc-bridge.config.ts`. */\nexport const defineConfig = (config: DocBridgeConfigV1): DocBridgeConfigV1 =>\n applyConfigDefaults(DocBridgeConfigV1Schema.parse(config))","import { existsSync, readFileSync } from 'node:fs'\nimport { basename, dirname, join, resolve } from 'node:path'\n\nimport { parseStaticJsObject } from '../lib/static-js-literal.js'\nimport { applyConfigDefaults } from './defaults.js'\nimport { DocBridgeConfigV1Schema, type DocBridgeConfigV1 } from './schema.js'\n\nconst CONFIG_CANDIDATES = [\n 'doc-bridge.config.ts',\n 'doc-bridge.config.mts',\n 'doc-bridge.config.js',\n 'doc-bridge.config.mjs',\n 'doc-bridge.config.json',\n 'doc-bridge.config.yaml',\n 'doc-bridge.config.yml',\n 'package.json',\n] as const\n\nexport type LoadConfigOptions = {\n readonly cwd?: string\n readonly explicitPath?: string\n}\n\nexport type LoadConfigResult = {\n readonly config: DocBridgeConfigV1\n readonly path: string\n}\n\nexport class ConfigNotFoundError extends Error {\n constructor(readonly cwd: string) {\n super(\n `No doc-bridge config found in ${cwd}. Run: ak-docs init — or pass --config <path>.`,\n )\n this.name = 'ConfigNotFoundError'\n }\n}\n\nconst findConfigPath = (cwd: string, explicitPath?: string): string | null => {\n if (explicitPath) {\n const abs = resolve(cwd, explicitPath)\n return existsSync(abs) ? abs : null\n }\n for (const name of CONFIG_CANDIDATES) {\n const candidate = join(cwd, name)\n if (!existsSync(candidate)) continue\n if (name !== 'package.json') return candidate\n const pkg = parseJsonConfig(readFileSync(candidate, 'utf8'), candidate) as { docBridge?: unknown }\n if (pkg.docBridge) return candidate\n }\n return null\n}\n\nconst parseJsonConfig = (raw: string, path: string): unknown => {\n try {\n return JSON.parse(raw) as unknown\n } catch (error) {\n const message = error instanceof Error ? error.message : String(error)\n throw new Error(`Failed to parse JSON config at ${path}: ${message}`)\n }\n}\n\nconst parseCodeConfig = (raw: string, path: string): unknown => {\n const unsupportedImports = raw\n .replace(/import\\s+type\\s+[\\s\\S]*?;?\\n/g, '')\n .replace(/import\\s+\\{\\s*defineConfig\\s*\\}\\s+from\\s+['\"]@agentskit\\/doc-bridge(?:\\/config)?['\"];?\\n?/g, '')\n if (/\\bimport\\b/.test(unsupportedImports)) {\n throw new Error(`Unsupported import in ${path}. Static config only supports defineConfig imports.`)\n }\n try {\n return parseStaticJsObject(raw)\n } catch (error) {\n const message = error instanceof Error ? error.message : String(error)\n throw new Error(`Failed to load config at ${path}: ${message}`)\n }\n}\n\nconst parseConfig = (input: unknown): DocBridgeConfigV1 => {\n const result = DocBridgeConfigV1Schema.safeParse(input)\n if (result.success) return result.data\n throw new Error(\n `Invalid doc-bridge config:\\n${result.error.issues.map((issue) =>\n ` - ${issue.path.join('.') || '(root)'}: ${\n issue.code === 'invalid_type' && issue.message.endsWith('received undefined')\n ? 'Required'\n : issue.code === 'invalid_value' && 'values' in issue\n ? 'Invalid enum value'\n : issue.message\n }`,\n ).join('\\n')}`,\n )\n}\n\n/** v0.1 — static JS/TS config, JSON config files, and package.json#docBridge. */\nexport const loadConfig = (opts: LoadConfigOptions = {}): LoadConfigResult => {\n const cwd = resolve(opts.cwd ?? process.cwd())\n const path = findConfigPath(cwd, opts.explicitPath)\n if (!path) throw new ConfigNotFoundError(cwd)\n\n const raw = readFileSync(path, 'utf8')\n const ext = path.split('.').pop()?.toLowerCase()\n if (ext === 'yaml' || ext === 'yml') {\n throw new Error(`YAML config is not supported yet (${path}). Use doc-bridge.config.json for now.`)\n }\n\n const parsed =\n basename(path) === 'package.json'\n ? (parseJsonConfig(raw, path) as { docBridge?: unknown }).docBridge\n : ext === 'ts' || ext === 'mts' || ext === 'js' || ext === 'mjs'\n ? parseCodeConfig(raw, path)\n : parseJsonConfig(raw, path)\n const config = applyConfigDefaults(parseConfig(parsed))\n return { config, path }\n}\n\nexport const resolveProjectRoot = (start = process.cwd()): string => {\n let cur = resolve(start)\n for (let i = 0; i < 12; i += 1) {\n if (findConfigPath(cur)) return cur\n const parent = dirname(cur)\n if (parent === cur) break\n cur = parent\n }\n return resolve(start)\n}\n\n/** Project root for a loaded config file path (directory of the config). */\nexport const projectRootFromConfigPath = (\n configFilePath: string,\n projectRootField?: string,\n): string => {\n const configDir = dirname(resolve(configFilePath))\n if (projectRootField) return resolve(configDir, projectRootField)\n return configDir\n}\n","const stripComments = (source: string): string => {\n let out = ''\n let index = 0\n let quote: string | undefined\n while (index < source.length) {\n const char = source[index] ?? ''\n const next = source[index + 1] ?? ''\n if (quote) {\n out += char\n if (char === '\\\\') {\n out += next\n index += 2\n continue\n }\n if (char === quote) quote = undefined\n index += 1\n continue\n }\n if (char === '\"' || char === \"'\" || char === '`') {\n quote = char\n out += char\n index += 1\n continue\n }\n if (char === '/' && next === '/') {\n while (index < source.length && source[index] !== '\\n') index += 1\n out += '\\n'\n index += 1\n continue\n }\n if (char === '/' && next === '*') {\n index += 2\n while (index < source.length && !(source[index] === '*' && source[index + 1] === '/')) index += 1\n index += 2\n out += ' '\n continue\n }\n out += char\n index += 1\n }\n if (quote) throw new Error('Unterminated string in static JavaScript literal.')\n return out\n}\n\nclass LiteralParser {\n private index = 0\n\n constructor(private readonly source: string) {}\n\n parseAt(index: number): unknown {\n this.index = index\n const value = this.value()\n this.space()\n return value\n }\n\n private space(): void {\n while (/\\s/.test(this.source[this.index] ?? '')) this.index += 1\n }\n\n private value(): unknown {\n this.space()\n const char = this.source[this.index]\n if (char === '{') return this.object()\n if (char === '[') return this.array()\n if (char === '\"' || char === \"'\") return this.string()\n const word = this.word()\n if (word === 'true') return true\n if (word === 'false') return false\n if (word === 'null') return null\n if (/^-?\\d+(?:\\.\\d+)?$/.test(word)) return Number(word)\n throw new Error(`Unsupported dynamic sidebar expression near \"${word || char || 'EOF'}\".`)\n }\n\n private object(): Record<string, unknown> {\n const result: Record<string, unknown> = {}\n this.index += 1\n this.space()\n while (this.source[this.index] !== '}') {\n const key = this.source[this.index] === '\"' || this.source[this.index] === \"'\" ? this.string() : this.word()\n if (!key) throw new Error('Static sidebar object key is required.')\n this.space()\n if (this.source[this.index] !== ':') throw new Error(`Static sidebar key \"${key}\" requires a literal value.`)\n this.index += 1\n result[key] = this.value()\n this.space()\n if (this.source[this.index] === ',') {\n this.index += 1\n this.space()\n continue\n }\n if (this.source[this.index] !== '}') throw new Error('Expected comma or closing brace in static sidebar.')\n }\n this.index += 1\n return result\n }\n\n private array(): unknown[] {\n const result: unknown[] = []\n this.index += 1\n this.space()\n while (this.source[this.index] !== ']') {\n result.push(this.value())\n this.space()\n if (this.source[this.index] === ',') {\n this.index += 1\n this.space()\n continue\n }\n if (this.source[this.index] !== ']') throw new Error('Expected comma or closing bracket in static sidebar.')\n }\n this.index += 1\n return result\n }\n\n private string(): string {\n const quote = this.source[this.index] ?? ''\n this.index += 1\n let result = ''\n while (this.index < this.source.length) {\n const char = this.source[this.index] ?? ''\n if (char === quote) {\n this.index += 1\n return result\n }\n if (char === '\\\\') {\n const escaped = this.source[this.index + 1]\n if (escaped === undefined) break\n const escapes: Record<string, string> = { n: '\\n', r: '\\r', t: '\\t' }\n result += escapes[escaped] ?? escaped\n this.index += 2\n continue\n }\n result += char\n this.index += 1\n }\n throw new Error('Unterminated string in static sidebar.')\n }\n\n private word(): string {\n this.space()\n const start = this.index\n while (/[A-Za-z0-9_$.-]/.test(this.source[this.index] ?? '')) this.index += 1\n return this.source.slice(start, this.index)\n }\n}\n\nconst maskStrings = (source: string): string => {\n const chars = [...source]\n let quote: string | undefined\n let previousToken: string | undefined\n const regexPrefixKeywords = new Set([\n 'await', 'case', 'delete', 'do', 'else', 'in', 'instanceof', 'new',\n 'of', 'return', 'throw', 'typeof', 'void', 'yield',\n ])\n const canStartRegex = (): boolean => previousToken === undefined\n || '=(:,[!&|?{};'.includes(previousToken)\n || previousToken === '=>'\n || regexPrefixKeywords.has(previousToken)\n for (let index = 0; index < chars.length; index += 1) {\n const char = chars[index] ?? ''\n if (quote) {\n chars[index] = ' '\n if (char === '\\\\') {\n if (index + 1 < chars.length) chars[index + 1] = ' '\n index += 1\n } else if (char === quote) {\n quote = undefined\n previousToken = 'literal'\n }\n continue\n }\n if (char === '\"' || char === \"'\" || char === '`') {\n quote = char\n chars[index] = ' '\n continue\n }\n if (char === '/' && canStartRegex()) {\n chars[index] = ' '\n let inClass = false\n for (index += 1; index < chars.length; index += 1) {\n const regexChar = chars[index] ?? ''\n chars[index] = ' '\n if (regexChar === '\\\\') {\n if (index + 1 < chars.length) chars[index + 1] = ' '\n index += 1\n } else if (regexChar === '[') {\n inClass = true\n } else if (regexChar === ']') {\n inClass = false\n } else if (regexChar === '/' && !inClass) {\n while (/[A-Za-z]/.test(chars[index + 1] ?? '')) {\n index += 1\n chars[index] = ' '\n }\n break\n }\n }\n previousToken = 'literal'\n continue\n }\n if (/[A-Za-z_$]/.test(char)) {\n const start = index\n while (/[A-Za-z0-9_$]/.test(chars[index + 1] ?? '')) index += 1\n previousToken = chars.slice(start, index + 1).join('')\n continue\n }\n if (char === '=' && chars[index + 1] === '>') {\n previousToken = '=>'\n index += 1\n continue\n }\n if (!/\\s/.test(char)) previousToken = char\n }\n return chars.join('')\n}\n\nconst nonSpace = (source: string, start: number): number => {\n let index = start\n while (/\\s/.test(source[index] ?? '')) index += 1\n return index\n}\n\nconst escapedRegex = (value: string): string => value.replace(/[.*+?^${}()|[\\]\\\\]/g, '\\\\$&')\n\nexport const parseStaticJsObject = (source: string): unknown => {\n const clean = stripComments(source)\n const mask = maskStrings(clean)\n const parseBinding = (identifier: string): unknown => {\n const declaration = new RegExp(`\\\\b(?:const|let|var)\\\\s+${escapedRegex(identifier)}(?:\\\\s*:[^=;]+)?\\\\s*=`).exec(mask)\n if (!declaration) throw new Error(`Exported binding \"${identifier}\" must reference a static object declaration.`)\n const start = nonSpace(mask, declaration.index + declaration[0].length)\n if (mask[start] !== '{') throw new Error(`Exported binding \"${identifier}\" must be a static object literal.`)\n return new LiteralParser(clean).parseAt(start)\n }\n const commonJs = /\\bmodule\\.exports\\s*=/.exec(mask)\n if (commonJs) {\n const start = nonSpace(mask, commonJs.index + commonJs[0].length)\n if (mask[start] === '{') return new LiteralParser(clean).parseAt(start)\n const identifier = /^[A-Za-z_$][\\w$]*/.exec(mask.slice(start))?.[0]\n if (identifier) return parseBinding(identifier)\n throw new Error('module.exports must be assigned a static object literal or binding.')\n }\n\n const exported = /\\bexport\\s+default\\b/.exec(mask)\n if (exported) {\n let start = nonSpace(mask, exported.index + exported[0].length)\n if (mask.slice(start).startsWith('defineConfig')) {\n start = nonSpace(mask, start + 'defineConfig'.length)\n if (mask[start] !== '(') throw new Error('defineConfig must be called with a static object literal.')\n start = nonSpace(mask, start + 1)\n if (mask[start] !== '{') throw new Error('defineConfig must be called with a static object literal.')\n return new LiteralParser(clean).parseAt(start)\n }\n if (mask[start] === '{') return new LiteralParser(clean).parseAt(start)\n\n const identifier = /^[A-Za-z_$][\\w$]*/.exec(mask.slice(start))?.[0]\n if (identifier) return parseBinding(identifier)\n }\n throw new Error('Docusaurus sidebar must export a static object or assign one to a const.')\n}\n"],"mappings":";AAEA,IAAM,wBAAwB,CAAC,sBAAsB,YAAY;AAE1D,IAAM,sBAAsB,CAAC,WAAiD;AACnF,QAAM,YAAY,OAAO,OAAO,MAAM;AACtC,QAAM,aAAa,OAAO,OAAO,MAAM,SAAS,GAAG,SAAS;AAE5D,SAAO;AAAA,IACL,GAAG;AAAA,IACH,QAAQ;AAAA,MACN,GAAG,OAAO;AAAA,MACV,OAAO;AAAA,QACL,GAAG,OAAO,OAAO;AAAA,QACjB,OAAO;AAAA,QACP,SAAS,OAAO,OAAO,MAAM,WA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AM,iBACd,gBAAgB,KAAK,IAAI,EAA8B,YACxD,QAAQ,QAAQ,QAAQ,SAAS,QAAQ,QAAQ,QAAQ,QACvD,gBAAgB,KAAK,IAAI,IAC3B,gBAAgB,KAAK,IAAI;AAC/B,QAAM,SAAS,oBAAoB,YAAY,MAAM,CAAC;AACtD,SAAO,EAAE,QAAQ,KAAK;AACxB;AAEO,IAAM,qBAAqB,CAAC,QAAQ,QAAQ,IAAI,MAAc;AACnE,MAAI,MAAM,QAAQ,KAAK;AACvB,WAAS,IAAI,GAAG,IAAI,IAAI,KAAK,GAAG;AAC9B,QAAI,eAAe,GAAG,EAAG,QAAO;AAChC,UAAM,SAAS,QAAQ,GAAG;AAC1B,QAAI,WAAW,IAAK;AACpB,UAAM;AAAA,EACR;AACA,SAAO,QAAQ,KAAK;AACtB;AAGO,IAAM,4BAA4B,CACvC,gBACA,qBACW;AACX,QAAM,YAAY,QAAQ,QAAQ,cAAc,CAAC;AACjD,MAAI,iBAAkB,QAAO,QAAQ,WAAW,gBAAgB;AAChE,SAAO;AACT;","names":[]}
1
+ {"version":3,"sources":["../../src/config/defaults.ts","../../src/config/schema.ts","../../src/config/define-config.ts","../../src/config/load-config.ts","../../src/lib/static-js-literal.ts"],"sourcesContent":["import type { DocBridgeConfigV1 } from './schema.js'\n\nconst DEFAULT_AGENT_EXCLUDE = ['**/node_modules/**', '**/.git/**'] as const\n\nexport const applyConfigDefaults = (config: DocBridgeConfigV1): DocBridgeConfigV1 => {\n const agentRoot = config.corpus.agent.root\n const agentIndex = config.corpus.agent.index ?? `${agentRoot}/INDEX.md`\n\n return {\n ...config,\n corpus: {\n ...config.corpus,\n agent: {\n ...config.corpus.agent,\n index: agentIndex,\n include: config.corpus.agent.include ?? ['**/*.{md,mdx}'],\n exclude: config.corpus.agent.exclude ?? [...DEFAULT_AGENT_EXCLUDE],\n },\n },\n index: {\n outFile: '.doc-bridge/index.json',\n contentHash: 'sha256-normalized-v1',\n llmsTxt: {\n enabled: true,\n outFile: 'llms.txt',\n ...config.index?.llmsTxt,\n },\n capabilities: {\n enabled: true,\n outFile: '.doc-bridge/capabilities.json',\n ...config.index?.capabilities,\n },\n ...config.index,\n },\n gates: {\n preset: 'minimal',\n ...config.gates,\n },\n rules: {\n mode: 'default',\n ...config.rules,\n },\n safety: {\n redactSecrets: true,\n ...config.safety,\n },\n surfaces: {\n cli: {\n bin: 'ak-docs',\n defaultFormat: 'json',\n ...config.surfaces?.cli,\n },\n mcp: {\n enabled: true,\n tools: [\n 'handoff.resolve', 'doc.search', 'doc.get', 'gate.status', 'retriever.query',\n 'memory.classify', 'memory.promoteDraft', 'registry.topology',\n 'docbridge.snapshot', 'docbridge.report', 'docbridge.diagnostics',\n 'docbridge.relations', 'docbridge.run', 'docbridge.proposals',\n 'knowledge.search', 'knowledge.lookup',\n ],\n transport: 'stdio',\n ...config.surfaces?.mcp,\n },\n ...config.surfaces,\n },\n intelligence: config.intelligence\n ? {\n enabled: false,\n ...config.intelligence,\n chat: config.intelligence.chat\n ? { handoffFirst: true, ...config.intelligence.chat }\n : undefined,\n }\n : { enabled: false },\n }\n}\n","import { z } from 'zod'\n\nexport const CONFIG_SCHEMA_VERSION = 1 as const\n\nexport const HumanCorpusPluginIdSchema = z.enum([\n 'plain-markdown',\n 'fumadocs',\n 'docusaurus',\n 'mkdocs',\n 'vitepress',\n 'starlight',\n 'nextra',\n 'custom',\n])\n\nexport const AgentCorpusConfigSchema = z\n .object({\n root: z.string().min(1).max(512),\n index: z.string().min(1).max(512).optional(),\n include: z.array(z.string().min(1).max(256)).max(64).optional(),\n exclude: z.array(z.string().min(1).max(256)).max(64).optional(),\n okf: z\n .object({\n requireType: z.boolean().optional(),\n allowedTypes: z.array(z.string().min(1).max(128)).max(64).optional(),\n })\n .strict()\n .optional(),\n })\n .strict()\n\nexport const HumanCorpusConfigSchema = z\n .object({\n plugin: HumanCorpusPluginIdSchema,\n options: z.record(z.string(), z.unknown()).optional(),\n })\n .strict()\n\nexport const IndexConfigSchema = z\n .object({\n outFile: z.string().min(1).max(512).optional(),\n llmsTxt: z\n .object({\n enabled: z.boolean().optional(),\n outFile: z.string().min(1).max(512).optional(),\n preamble: z.string().max(4_000).optional(),\n urlPrefix: z.string().url().optional(),\n pathPrefix: z.string().min(1).max(512).optional(),\n })\n .strict()\n .optional(),\n capabilities: z\n .object({\n enabled: z.boolean().optional(),\n outFile: z.string().min(1).max(512).optional(),\n })\n .strict()\n .optional(),\n contentHash: z.literal('sha256-normalized-v1').optional(),\n })\n .strict()\n\nexport const OwnershipEntrySchema = z\n .object({\n path: z.string().min(1).max(512),\n group: z.string().min(1).max(128).optional(),\n layer: z.string().min(1).max(32).optional(),\n purpose: z.string().max(1024).optional(),\n checks: z.array(z.string().min(1).max(256)).max(32).optional(),\n agentDoc: z.string().min(1).max(512).optional(),\n humanDoc: z.string().min(1).max(512).optional(),\n })\n .strict()\n\nexport const RoutingConfigSchema = z\n .object({\n plugin: z\n .enum(['pnpm-monorepo', 'npm-workspaces', 'yarn-workspaces', 'nx', 'pattern-files', 'custom'])\n .optional(),\n options: z\n .object({\n packages: z.array(z.string().min(1).max(256)).max(128).optional(),\n /** Infer ownership from corpus paths/frontmatter (default true). */\n ownershipFromCorpus: z.boolean().optional(),\n ownership: z.record(z.string().min(1).max(256), OwnershipEntrySchema).optional(),\n intents: z\n .array(\n z\n .object({\n id: z.string().min(1).max(128),\n title: z.string().min(1).max(256),\n paths: z.array(z.string().min(1).max(512)).max(32),\n })\n .strict(),\n )\n .max(128)\n .optional(),\n changes: z\n .array(\n z\n .object({\n id: z.string().min(1).max(128),\n title: z.string().min(1).max(256),\n startHere: z.string().min(1).max(512),\n relatedPackages: z.array(z.string().min(1).max(256)).max(32).optional(),\n })\n .strict(),\n )\n .max(128)\n .optional(),\n })\n .strict()\n .optional(),\n })\n .strict()\n\nexport const GatesConfigSchema = z\n .object({\n /** minimal: freshness · standard: + human links · strict: + okf-type · playbook: freshness + okf soft style */\n preset: z.enum(['minimal', 'standard', 'strict', 'playbook']).optional(),\n include: z\n .array(\n z.enum([\n 'index-freshness',\n 'index-reproducible',\n 'human-guide-links',\n 'link-rot',\n 'okf-type',\n 'docs-style',\n 'routing-currency',\n 'bootstrap-size',\n 'documentation-standard-v1',\n ]),\n )\n .max(16)\n .optional(),\n exclude: z\n .array(\n z.enum([\n 'index-freshness',\n 'index-reproducible',\n 'human-guide-links',\n 'link-rot',\n 'okf-type',\n 'docs-style',\n 'routing-currency',\n 'bootstrap-size',\n 'documentation-standard-v1',\n ]),\n )\n .max(16)\n .optional(),\n options: z.record(z.string(), z.unknown()).optional(),\n })\n .strict()\n\nexport const RuleIdSchema = z.enum([\n 'documentation-quality',\n 'graph-undocumented-relation',\n 'declared-unobserved-relation',\n 'unresolved-reference',\n 'conflicting-declaration',\n 'not-analyzed-coverage',\n 'stale-documentation',\n 'centrality-risk',\n 'critical-path-risk',\n 'freshness',\n 'ownership',\n])\n\nexport const RuleSeveritySchema = z.enum(['off', 'info', 'warn', 'error'])\n\nexport const RulesConfigSchema = z\n .object({\n mode: z.enum(['default', 'recommended', 'strict']).optional(),\n severity: z.partialRecord(RuleIdSchema, RuleSeveritySchema).optional(),\n ignore: z.array(RuleIdSchema).max(128).optional(),\n criticalEntities: z.array(z.string().min(1).max(256)).max(128).optional(),\n criticalPaths: z.array(z.string().min(1).max(512)).max(128).optional(),\n warningThresholds: z.partialRecord(RuleIdSchema, z.number().int().min(1).max(100_000)).optional(),\n })\n .strict()\n\nexport const ReconciliationConfigSchema = z\n .object({\n /** Semantic comparison level. Raw discovery always keeps file-level relations. */\n scope: z.enum(['file', 'module', 'area', 'package']).optional(),\n /** Relation kinds that must have documentation declarations. Omit to require all observed kinds; [] disables this signal. */\n requiredRelationKinds: z.array(z.string().min(1).max(128)).max(128).optional(),\n /** Limit missing-declaration findings to relations whose endpoints are internal project entities. */\n requiredRelationTargets: z.enum(['all', 'internal']).optional(),\n includeOrphanedDocuments: z.boolean().optional(),\n })\n .strict()\n\nexport const DocumentationAuditConfigSchema = z\n .object({\n /** Glob-like paths that should be compared for structure coverage. */\n criticalPaths: z.array(z.string().min(1).max(512)).max(128).optional(),\n /** Generated docs are checked for presence/freshness evidence only; content quality is skipped. */\n generatedPaths: z.array(z.string().min(1).max(512)).max(128).optional(),\n exclude: z.array(z.string().min(1).max(512)).max(128).optional(),\n minWords: z.number().int().nonnegative().max(100_000).optional(),\n requiredSections: z.array(z.string().min(1).max(128)).max(32).optional(),\n requireExamples: z.boolean().optional(),\n exactDuplicates: z.boolean().optional(),\n defaultTier: z.enum(['tier-0', 'tier-1', 'tier-2']).optional(),\n tierRules: z.array(z.object({\n pattern: z.string().min(1).max(512),\n tier: z.enum(['tier-0', 'tier-1', 'tier-2']),\n critical: z.boolean().optional(),\n }).strict()).max(128).optional(),\n requiredCriticalMetadata: z.array(z.enum(['owner', 'lifecycle', 'sourceOfTruth', 'validationPath'])).max(4).optional(),\n })\n .strict()\n\nexport const AnalysisConfigSchema = z\n .object({\n plugins: z\n .array(\n z\n .object({\n id: z.string().regex(/^[a-z][a-z0-9-]*$/).max(128),\n enabled: z.boolean().optional(),\n order: z.number().int().nonnegative().optional(),\n options: z.record(z.string(), z.unknown()).optional(),\n reason: z.string().min(1).max(1_024).optional(),\n })\n .strict(),\n )\n .max(128)\n .optional(),\n jsTs: z\n .object({\n runtimeWiringMethods: z.array(z.string().regex(/^[A-Za-z_$][A-Za-z0-9_$]*$/).max(64)).max(64).optional(),\n runtimeWiringAdapters: z\n .array(\n z\n .object({\n id: z.string().min(1).max(128),\n methods: z.array(z.string().regex(/^[A-Za-z_$][A-Za-z0-9_$]*$/).max(64)).min(1).max(64),\n })\n .strict(),\n )\n .max(32)\n .optional(),\n includeTestRuntimeWiring: z.boolean().optional(),\n })\n .strict()\n .optional(),\n /**\n * How code areas are derived — the unit of architecture between a package and a file.\n * `roots` names directories that contain areas rather than being one (`src` holds\n * `src/query`); `depth` is how many levels below such a root an area sits; `exclude`\n * names directories that hold code without being a unit of architecture.\n */\n areas: z\n .object({\n depth: z.number().int().min(1).max(8).optional(),\n roots: z.array(z.string().min(1).max(128)).max(32).optional(),\n /**\n * Glob patterns for directories that are not areas. A monorepo where every package\n * keeps `tests/` and `fixtures/` beside `src/` derives one area per directory, and\n * then connectivity asks for a document about a folder of test data. An ownership\n * record naming an excluded path still makes it an area: a person saying a directory\n * is a unit outranks a pattern saying it is not.\n */\n exclude: z.array(z.string().min(1).max(256)).max(64).optional(),\n })\n .strict()\n .optional(),\n })\n .strict()\n\nexport const WorkflowConfigSchema = z\n .object({\n stateDir: z.string().min(1).max(512).optional(),\n })\n .strict()\n\nexport const RepositorySafetyConfigSchema = z\n .object({\n exclude: z.array(z.string().min(1).max(512)).max(128).optional(),\n maxFiles: z.number().int().positive().max(1_000_000).optional(),\n maxBytes: z.number().int().positive().max(10_000_000_000).optional(),\n maxTimeMs: z.number().int().positive().max(86_400_000).optional(),\n maxMemoryMb: z.number().int().positive().max(1_048_576).optional(),\n redactSecrets: z.boolean().optional(),\n })\n .strict()\n\nexport const ReportConfigSchema = z\n .object({\n /** Public report privacy mode. Private is the default; anonymized preserves topology without project identity. */\n privacy: z.enum(['private', 'anonymized']).optional(),\n })\n .strict()\n\nexport const SurfacesConfigSchema = z\n .object({\n cli: z\n .object({\n bin: z.string().min(1).max(64).optional(),\n defaultFormat: z.enum(['json', 'text']).optional(),\n })\n .strict()\n .optional(),\n mcp: z\n .object({\n enabled: z.boolean().optional(),\n tools: z\n .array(\n z.enum([\n 'handoff.resolve',\n 'doc.search',\n 'doc.get',\n 'gate.status',\n 'playbook.pattern.get',\n 'retriever.query',\n 'memory.classify',\n 'memory.promoteDraft',\n 'registry.topology',\n 'docbridge.snapshot',\n 'docbridge.report',\n 'docbridge.diagnostics',\n 'docbridge.relations',\n 'docbridge.run',\n 'docbridge.proposals',\n 'knowledge.search',\n 'knowledge.lookup',\n ]),\n )\n .max(18)\n .optional(),\n transport: z.enum(['stdio', 'http']).optional(),\n http: z\n .object({\n port: z.number().int().min(1).max(65_535).optional(),\n path: z.string().min(1).max(256).optional(),\n })\n .strict()\n .optional(),\n })\n .strict()\n .optional(),\n })\n .strict()\n\n/** One enrichment role: an installed Registry agent and the prompt version it is run with. */\nexport const EnrichmentRoleSchema = z\n .object({\n enabled: z.boolean().optional(),\n /** Defaults to `intelligence.registry.agentId`. */\n agentId: z.string().min(1).max(256).optional(),\n promptVersion: z.string().min(1).max(64).optional(),\n })\n .strict()\n\nexport const IntelligenceConfigSchema = z\n .object({\n enabled: z.boolean().optional(),\n adapter: z\n .object({\n provider: z.enum(['openai', 'anthropic', 'ollama', 'openrouter', 'custom']),\n model: z.string().min(1).max(128).optional(),\n apiKeyEnv: z.string().min(0).max(128).optional(),\n baseUrl: z.string().url().optional(),\n options: z.record(z.string(), z.unknown()).optional(),\n })\n .strict()\n .optional(),\n chat: z\n .object({\n enabled: z.boolean().optional(),\n sources: z.array(z.enum(['agent', 'human', 'federation'])).max(8).optional(),\n handoffFirst: z.boolean().optional(),\n })\n .strict()\n .optional(),\n retriever: z\n .object({\n enabled: z.boolean().optional(),\n mode: z.enum(['local', 'remote', 'bm25', 'agentskit-rag']).optional(),\n embedModel: z.string().min(1).max(128).optional(),\n chunkSize: z.number().int().min(128).max(16_384).optional(),\n options: z.record(z.string(), z.unknown()).optional(),\n })\n .strict()\n .optional(),\n memory: z\n .object({\n enabled: z.boolean().optional(),\n adapters: z\n .array(z.enum(['playbook-memory', 'cursor-rules', 'session-export', 'bootstrap-delta']))\n .max(8)\n .optional(),\n ingestDir: z.string().min(1).max(512).optional(),\n classify: z.boolean().optional(),\n promote: z\n .object({\n enabled: z.boolean().optional(),\n targets: z.array(z.enum(['agent', 'human', 'agents-md'])).max(8).optional(),\n requireApproval: z.boolean().optional(),\n })\n .strict()\n .optional(),\n })\n .strict()\n .optional(),\n runtime: z.enum(['agentskit', 'custom']).optional(),\n runtimeModule: z.string().min(1).max(512).optional(),\n registry: z\n .object({\n enabled: z.boolean().optional(),\n agentId: z.string().min(1).max(256).optional(),\n agentRoot: z.string().min(1).max(512).optional(),\n runnerModule: z.string().min(1).max(512).optional(),\n cli: z\n .object({\n /** Executable name or absolute path. Arguments are passed without a shell. */\n command: z.string().min(1).max(512),\n args: z.array(z.string().max(2_048)).max(64).optional(),\n })\n .strict()\n .optional(),\n deterministic: z.boolean().optional(),\n timeoutMs: z.number().int().positive().max(600_000).optional(),\n maxInputBytes: z.number().int().positive().max(50_000_000).optional(),\n maxTokens: z.number().int().positive().max(1_000_000).optional(),\n maxResponseBytes: z.number().int().positive().max(10_000_000).optional(),\n maxConcurrency: z.number().int().positive().max(64).optional(),\n /** Byte budget of one enrichment context pack. Default 65536. */\n maxPackBytes: z.number().int().min(4_096).max(4_000_000).optional(),\n /**\n * Which installed agent plays which enrichment role. The default is the configured agent\n * as curator only. The adjudicator must be a different identity from both others.\n */\n roles: z\n .object({\n curator: EnrichmentRoleSchema.optional(),\n reviewer: EnrichmentRoleSchema.optional(),\n adjudicator: EnrichmentRoleSchema.optional(),\n })\n .strict()\n .optional(),\n })\n .strict()\n .optional(),\n })\n .strict()\n\nexport const FederationConfigSchema = z\n .object({\n enabled: z.boolean().optional(),\n sources: z\n .array(\n z\n .object({\n id: z.string().min(1).max(64),\n llmsTxt: z.string().min(1).max(512).optional(),\n rawBaseUrl: z.string().url().optional(),\n includeInRetriever: z.boolean().optional(),\n includeInChat: z.boolean().optional(),\n })\n .strict(),\n )\n .max(16)\n .optional(),\n })\n .strict()\n\nexport const DocumentationEvidenceFileSchema = z\n .object({\n path: z.string().min(1).max(512),\n contains: z.array(z.string().min(1).max(512)).min(1).max(32),\n })\n .strict()\n\nexport const DocumentationLinkEvidenceSchema = z\n .object({\n url: z.string().url().max(512),\n paths: z.array(z.string().min(1).max(512)).min(1).max(32),\n })\n .strict()\n\nexport const DocumentationQuickstartEvidenceSchema = z\n .object({\n id: z.string().regex(/^[a-z][a-z0-9-]*$/).max(128),\n doc: z.string().min(1).max(512),\n test: z.string().min(1).max(512),\n command: z.string().min(1).max(512),\n testContains: z.array(z.string().min(1).max(256)).min(1).max(16),\n })\n .strict()\n\nexport const EcosystemContractEvidenceSchema = z\n .object({\n manifest: z.string().min(1).max(512),\n claims: z.string().min(1).max(512),\n productId: z.string().regex(/^[a-z][a-z0-9-]*$/).max(128),\n })\n .strict()\n\nexport const DocumentationStandardRuleIdSchema = z.enum([\n 'human-docs',\n 'llms-and-raw-source',\n 'agent-handoffs',\n 'contribution',\n 'metadata',\n 'cross-links',\n 'tested-quickstarts',\n 'visual-explanations',\n 'structured-diagrams',\n])\n\nexport const DocumentationStandardExceptionSchema = z\n .object({\n ruleId: DocumentationStandardRuleIdSchema,\n reason: z.string().min(10).max(1_024),\n approvedBy: z.string().min(1).max(256),\n trackingUrl: z.string().url().max(512),\n })\n .strict()\n\nexport const DocumentationStandardV1ConfigSchema = z\n .object({\n rawSources: z.array(z.string().min(1).max(512)).max(64).optional(),\n contributionPaths: z.array(z.string().min(1).max(512)).max(16).optional(),\n metadata: z.array(DocumentationEvidenceFileSchema).max(32).optional(),\n links: z.array(DocumentationLinkEvidenceSchema).max(64).optional(),\n quickstarts: z.array(DocumentationQuickstartEvidenceSchema).max(32).optional(),\n visuals: z.array(z.string().min(1).max(512)).max(64).optional(),\n diagrams: z.array(DocumentationEvidenceFileSchema).max(32).optional(),\n ecosystemContract: EcosystemContractEvidenceSchema.optional(),\n exceptions: z.array(DocumentationStandardExceptionSchema).max(32).optional(),\n })\n .strict()\n .superRefine((value, context) => {\n const seen = new Set<string>()\n for (const [index, exception] of (value.exceptions ?? []).entries()) {\n if (seen.has(exception.ruleId)) {\n context.addIssue({\n code: 'custom',\n path: ['exceptions', index, 'ruleId'],\n message: `Duplicate exception for rule ${exception.ruleId}`,\n })\n }\n seen.add(exception.ruleId)\n }\n })\n\n/**\n * Retrieval tuning. Weights and parameters are configuration rather than code so a repository can\n * change what its agents find first without a release, and so the change is recorded in the index.\n */\nexport const RetrievalConfigSchema = z\n .object({\n corpus: z\n .object({\n /** Project repository documents and modules into the index. On by default. */\n enabled: z.boolean().optional(),\n })\n .strict()\n .optional(),\n weights: z.record(z.string().min(1).max(64), z.number().min(0).max(1_000)).optional(),\n params: z\n .object({ k1: z.number().min(0).max(100).optional(), b: z.number().min(0).max(1).optional() })\n .strict()\n .optional(),\n benchmark: z\n .object({\n /** The golden retrieval suite the doctor measures hit@3 against. `docs/bench/retrieval-suite-v1.json` by default. */\n suite: z.string().min(1).max(512).optional(),\n })\n .strict()\n .optional(),\n })\n .strict()\n\nexport const ConformanceConfigSchema = z\n .object({\n documentationStandardV1: DocumentationStandardV1ConfigSchema.optional(),\n })\n .strict()\n\nexport const RenderTemplateNameSchema = z.enum(['llms.txt', 'area', 'ownership', 'change-digest', 'overlay-review'])\n\nexport const RenderConfigSchema = z\n .object({\n /**\n * Project templates that replace the bundled ones, by template name, as paths relative to\n * the project root. `ak-docs render <name> --print-template` prints the bundled template to\n * start from.\n */\n templates: z.partialRecord(RenderTemplateNameSchema, z.string().min(1).max(512)).optional(),\n })\n .strict()\n\nexport const DocBridgeConfigV1Schema = z\n .object({\n schemaVersion: z.literal(CONFIG_SCHEMA_VERSION),\n project: z\n .object({\n name: z.string().min(1).max(128).optional(),\n root: z.string().min(1).max(512).optional(),\n })\n .strict()\n .optional(),\n corpus: z\n .object({\n agent: AgentCorpusConfigSchema,\n human: z.union([HumanCorpusConfigSchema, z.array(HumanCorpusConfigSchema).max(8)]).optional(),\n })\n .strict(),\n index: IndexConfigSchema.optional(),\n routing: RoutingConfigSchema.optional(),\n gates: GatesConfigSchema.optional(),\n reconciliation: ReconciliationConfigSchema.optional(),\n audit: z.object({ documentation: DocumentationAuditConfigSchema.optional() }).strict().optional(),\n analysis: AnalysisConfigSchema.optional(),\n rules: RulesConfigSchema.optional(),\n workflow: WorkflowConfigSchema.optional(),\n safety: RepositorySafetyConfigSchema.optional(),\n report: ReportConfigSchema.optional(),\n surfaces: SurfacesConfigSchema.optional(),\n intelligence: IntelligenceConfigSchema.optional(),\n federation: FederationConfigSchema.optional(),\n conformance: ConformanceConfigSchema.optional(),\n retrieval: RetrievalConfigSchema.optional(),\n render: RenderConfigSchema.optional(),\n })\n .strict()\n\nexport type DocBridgeConfigV1 = z.infer<typeof DocBridgeConfigV1Schema>\nexport type RenderConfig = z.infer<typeof RenderConfigSchema>\nexport type AgentCorpusConfig = z.infer<typeof AgentCorpusConfigSchema>\nexport type HumanCorpusConfig = z.infer<typeof HumanCorpusConfigSchema>\nexport type DocumentationStandardV1Config = z.infer<typeof DocumentationStandardV1ConfigSchema>\nexport type DocumentationStandardRuleId = z.infer<typeof DocumentationStandardRuleIdSchema>\nexport type ReconciliationConfig = z.infer<typeof ReconciliationConfigSchema>\nexport type DocumentationAuditConfig = z.infer<typeof DocumentationAuditConfigSchema>\nexport type AnalysisConfig = z.infer<typeof AnalysisConfigSchema>\nexport type RuleId = z.infer<typeof RuleIdSchema>\nexport type RuleSeverity = z.infer<typeof RuleSeveritySchema>\nexport type RulesConfig = z.infer<typeof RulesConfigSchema>\nexport type WorkflowConfig = z.infer<typeof WorkflowConfigSchema>\nexport type RepositorySafetyConfig = z.infer<typeof RepositorySafetyConfigSchema>\nexport type ReportConfig = z.infer<typeof ReportConfigSchema>\nexport type RetrievalConfig = z.infer<typeof RetrievalConfigSchema>\n","import { applyConfigDefaults } from './defaults.js'\nimport { DocBridgeConfigV1Schema, type DocBridgeConfigV1 } from './schema.js'\n\n/** Type-safe config helper for `doc-bridge.config.ts`. */\nexport const defineConfig = (config: DocBridgeConfigV1): DocBridgeConfigV1 =>\n applyConfigDefaults(DocBridgeConfigV1Schema.parse(config))","import { existsSync, readFileSync } from 'node:fs'\nimport { basename, dirname, join, resolve } from 'node:path'\n\nimport { parseStaticJsObject } from '../lib/static-js-literal.js'\nimport { applyConfigDefaults } from './defaults.js'\nimport { DocBridgeConfigV1Schema, type DocBridgeConfigV1 } from './schema.js'\n\nconst CONFIG_CANDIDATES = [\n 'doc-bridge.config.ts',\n 'doc-bridge.config.mts',\n 'doc-bridge.config.js',\n 'doc-bridge.config.mjs',\n 'doc-bridge.config.json',\n 'doc-bridge.config.yaml',\n 'doc-bridge.config.yml',\n 'package.json',\n] as const\n\nexport type LoadConfigOptions = {\n readonly cwd?: string\n readonly explicitPath?: string\n}\n\nexport type LoadConfigResult = {\n readonly config: DocBridgeConfigV1\n readonly path: string\n}\n\nexport class ConfigNotFoundError extends Error {\n constructor(readonly cwd: string) {\n super(\n `No doc-bridge config found in ${cwd}. Run: ak-docs init — or pass --config <path>.`,\n )\n this.name = 'ConfigNotFoundError'\n }\n}\n\nconst findConfigPath = (cwd: string, explicitPath?: string): string | null => {\n if (explicitPath) {\n const abs = resolve(cwd, explicitPath)\n return existsSync(abs) ? abs : null\n }\n for (const name of CONFIG_CANDIDATES) {\n const candidate = join(cwd, name)\n if (!existsSync(candidate)) continue\n if (name !== 'package.json') return candidate\n const pkg = parseJsonConfig(readFileSync(candidate, 'utf8'), candidate) as { docBridge?: unknown }\n if (pkg.docBridge) return candidate\n }\n return null\n}\n\nconst parseJsonConfig = (raw: string, path: string): unknown => {\n try {\n return JSON.parse(raw) as unknown\n } catch (error) {\n const message = error instanceof Error ? error.message : String(error)\n throw new Error(`Failed to parse JSON config at ${path}: ${message}`)\n }\n}\n\nconst parseCodeConfig = (raw: string, path: string): unknown => {\n const unsupportedImports = raw\n .replace(/import\\s+type\\s+[\\s\\S]*?;?\\n/g, '')\n .replace(/import\\s+\\{\\s*defineConfig\\s*\\}\\s+from\\s+['\"]@agentskit\\/doc-bridge(?:\\/config)?['\"];?\\n?/g, '')\n if (/\\bimport\\b/.test(unsupportedImports)) {\n throw new Error(`Unsupported import in ${path}. Static config only supports defineConfig imports.`)\n }\n try {\n return parseStaticJsObject(raw)\n } catch (error) {\n const message = error instanceof Error ? error.message : String(error)\n throw new Error(`Failed to load config at ${path}: ${message}`)\n }\n}\n\nconst parseConfig = (input: unknown): DocBridgeConfigV1 => {\n const result = DocBridgeConfigV1Schema.safeParse(input)\n if (result.success) return result.data\n throw new Error(\n `Invalid doc-bridge config:\\n${result.error.issues.map((issue) =>\n ` - ${issue.path.join('.') || '(root)'}: ${\n issue.code === 'invalid_type' && issue.message.endsWith('received undefined')\n ? 'Required'\n : issue.code === 'invalid_value' && 'values' in issue\n ? 'Invalid enum value'\n : issue.message\n }`,\n ).join('\\n')}`,\n )\n}\n\n/** v0.1 — static JS/TS config, JSON config files, and package.json#docBridge. */\nexport const loadConfig = (opts: LoadConfigOptions = {}): LoadConfigResult => {\n const cwd = resolve(opts.cwd ?? process.cwd())\n const path = findConfigPath(cwd, opts.explicitPath)\n if (!path) throw new ConfigNotFoundError(cwd)\n\n const raw = readFileSync(path, 'utf8')\n const ext = path.split('.').pop()?.toLowerCase()\n if (ext === 'yaml' || ext === 'yml') {\n throw new Error(`YAML config is not supported yet (${path}). Use doc-bridge.config.json for now.`)\n }\n\n const parsed =\n basename(path) === 'package.json'\n ? (parseJsonConfig(raw, path) as { docBridge?: unknown }).docBridge\n : ext === 'ts' || ext === 'mts' || ext === 'js' || ext === 'mjs'\n ? parseCodeConfig(raw, path)\n : parseJsonConfig(raw, path)\n const config = applyConfigDefaults(parseConfig(parsed))\n return { config, path }\n}\n\nexport const resolveProjectRoot = (start = process.cwd()): string => {\n let cur = resolve(start)\n for (let i = 0; i < 12; i += 1) {\n if (findConfigPath(cur)) return cur\n const parent = dirname(cur)\n if (parent === cur) break\n cur = parent\n }\n return resolve(start)\n}\n\n/** Project root for a loaded config file path (directory of the config). */\nexport const projectRootFromConfigPath = (\n configFilePath: string,\n projectRootField?: string,\n): string => {\n const configDir = dirname(resolve(configFilePath))\n if (projectRootField) return resolve(configDir, projectRootField)\n return configDir\n}\n","const stripComments = (source: string): string => {\n let out = ''\n let index = 0\n let quote: string | undefined\n while (index < source.length) {\n const char = source[index] ?? ''\n const next = source[index + 1] ?? ''\n if (quote) {\n out += char\n if (char === '\\\\') {\n out += next\n index += 2\n continue\n }\n if (char === quote) quote = undefined\n index += 1\n continue\n }\n if (char === '\"' || char === \"'\" || char === '`') {\n quote = char\n out += char\n index += 1\n continue\n }\n if (char === '/' && next === '/') {\n while (index < source.length && source[index] !== '\\n') index += 1\n out += '\\n'\n index += 1\n continue\n }\n if (char === '/' && next === '*') {\n index += 2\n while (index < source.length && !(source[index] === '*' && source[index + 1] === '/')) index += 1\n index += 2\n out += ' '\n continue\n }\n out += char\n index += 1\n }\n if (quote) throw new Error('Unterminated string in static JavaScript literal.')\n return out\n}\n\nclass LiteralParser {\n private index = 0\n\n constructor(private readonly source: string) {}\n\n parseAt(index: number): unknown {\n this.index = index\n const value = this.value()\n this.space()\n return value\n }\n\n private space(): void {\n while (/\\s/.test(this.source[this.index] ?? '')) this.index += 1\n }\n\n private value(): unknown {\n this.space()\n const char = this.source[this.index]\n if (char === '{') return this.object()\n if (char === '[') return this.array()\n if (char === '\"' || char === \"'\") return this.string()\n const word = this.word()\n if (word === 'true') return true\n if (word === 'false') return false\n if (word === 'null') return null\n if (/^-?\\d+(?:\\.\\d+)?$/.test(word)) return Number(word)\n throw new Error(`Unsupported dynamic sidebar expression near \"${word || char || 'EOF'}\".`)\n }\n\n private object(): Record<string, unknown> {\n const result: Record<string, unknown> = {}\n this.index += 1\n this.space()\n while (this.source[this.index] !== '}') {\n const key = this.source[this.index] === '\"' || this.source[this.index] === \"'\" ? this.string() : this.word()\n if (!key) throw new Error('Static sidebar object key is required.')\n this.space()\n if (this.source[this.index] !== ':') throw new Error(`Static sidebar key \"${key}\" requires a literal value.`)\n this.index += 1\n result[key] = this.value()\n this.space()\n if (this.source[this.index] === ',') {\n this.index += 1\n this.space()\n continue\n }\n if (this.source[this.index] !== '}') throw new Error('Expected comma or closing brace in static sidebar.')\n }\n this.index += 1\n return result\n }\n\n private array(): unknown[] {\n const result: unknown[] = []\n this.index += 1\n this.space()\n while (this.source[this.index] !== ']') {\n result.push(this.value())\n this.space()\n if (this.source[this.index] === ',') {\n this.index += 1\n this.space()\n continue\n }\n if (this.source[this.index] !== ']') throw new Error('Expected comma or closing bracket in static sidebar.')\n }\n this.index += 1\n return result\n }\n\n private string(): string {\n const quote = this.source[this.index] ?? ''\n this.index += 1\n let result = ''\n while (this.index < this.source.length) {\n const char = this.source[this.index] ?? ''\n if (char === quote) {\n this.index += 1\n return result\n }\n if (char === '\\\\') {\n const escaped = this.source[this.index + 1]\n if (escaped === undefined) break\n const escapes: Record<string, string> = { n: '\\n', r: '\\r', t: '\\t' }\n result += escapes[escaped] ?? escaped\n this.index += 2\n continue\n }\n result += char\n this.index += 1\n }\n throw new Error('Unterminated string in static sidebar.')\n }\n\n private word(): string {\n this.space()\n const start = this.index\n while (/[A-Za-z0-9_$.-]/.test(this.source[this.index] ?? '')) this.index += 1\n return this.source.slice(start, this.index)\n }\n}\n\nconst maskStrings = (source: string): string => {\n const chars = [...source]\n let quote: string | undefined\n let previousToken: string | undefined\n const regexPrefixKeywords = new Set([\n 'await', 'case', 'delete', 'do', 'else', 'in', 'instanceof', 'new',\n 'of', 'return', 'throw', 'typeof', 'void', 'yield',\n ])\n const canStartRegex = (): boolean => previousToken === undefined\n || '=(:,[!&|?{};'.includes(previousToken)\n || previousToken === '=>'\n || regexPrefixKeywords.has(previousToken)\n for (let index = 0; index < chars.length; index += 1) {\n const char = chars[index] ?? ''\n if (quote) {\n chars[index] = ' '\n if (char === '\\\\') {\n if (index + 1 < chars.length) chars[index + 1] = ' '\n index += 1\n } else if (char === quote) {\n quote = undefined\n previousToken = 'literal'\n }\n continue\n }\n if (char === '\"' || char === \"'\" || char === '`') {\n quote = char\n chars[index] = ' '\n continue\n }\n if (char === '/' && canStartRegex()) {\n chars[index] = ' '\n let inClass = false\n for (index += 1; index < chars.length; index += 1) {\n const regexChar = chars[index] ?? ''\n chars[index] = ' '\n if (regexChar === '\\\\') {\n if (index + 1 < chars.length) chars[index + 1] = ' '\n index += 1\n } else if (regexChar === '[') {\n inClass = true\n } else if (regexChar === ']') {\n inClass = false\n } else if (regexChar === '/' && !inClass) {\n while (/[A-Za-z]/.test(chars[index + 1] ?? '')) {\n index += 1\n chars[index] = ' '\n }\n break\n }\n }\n previousToken = 'literal'\n continue\n }\n if (/[A-Za-z_$]/.test(char)) {\n const start = index\n while (/[A-Za-z0-9_$]/.test(chars[index + 1] ?? '')) index += 1\n previousToken = chars.slice(start, index + 1).join('')\n continue\n }\n if (char === '=' && chars[index + 1] === '>') {\n previousToken = '=>'\n index += 1\n continue\n }\n if (!/\\s/.test(char)) previousToken = char\n }\n return chars.join('')\n}\n\nconst nonSpace = (source: string, start: number): number => {\n let index = start\n while (/\\s/.test(source[index] ?? '')) index += 1\n return index\n}\n\nconst escapedRegex = (value: string): string => value.replace(/[.*+?^${}()|[\\]\\\\]/g, '\\\\$&')\n\nexport const parseStaticJsObject = (source: string): unknown => {\n const clean = stripComments(source)\n const mask = maskStrings(clean)\n const parseBinding = (identifier: string): unknown => {\n const declaration = new RegExp(`\\\\b(?:const|let|var)\\\\s+${escapedRegex(identifier)}(?:\\\\s*:[^=;]+)?\\\\s*=`).exec(mask)\n if (!declaration) throw new Error(`Exported binding \"${identifier}\" must reference a static object declaration.`)\n const start = nonSpace(mask, declaration.index + declaration[0].length)\n if (mask[start] !== '{') throw new Error(`Exported binding \"${identifier}\" must be a static object literal.`)\n return new LiteralParser(clean).parseAt(start)\n }\n const commonJs = /\\bmodule\\.exports\\s*=/.exec(mask)\n if (commonJs) {\n const start = nonSpace(mask, commonJs.index + commonJs[0].length)\n if (mask[start] === '{') return new LiteralParser(clean).parseAt(start)\n const identifier = /^[A-Za-z_$][\\w$]*/.exec(mask.slice(start))?.[0]\n if (identifier) return parseBinding(identifier)\n throw new Error('module.exports must be assigned a static object literal or binding.')\n }\n\n const exported = /\\bexport\\s+default\\b/.exec(mask)\n if (exported) {\n let start = nonSpace(mask, exported.index + exported[0].length)\n if (mask.slice(start).startsWith('defineConfig')) {\n start = nonSpace(mask, start + 'defineConfig'.length)\n if (mask[start] !== '(') throw new Error('defineConfig must be called with a static object literal.')\n start = nonSpace(mask, start + 1)\n if (mask[start] !== '{') throw new Error('defineConfig must be called with a static object literal.')\n return new LiteralParser(clean).parseAt(start)\n }\n if (mask[start] === '{') return new LiteralParser(clean).parseAt(start)\n\n const identifier = /^[A-Za-z_$][\\w$]*/.exec(mask.slice(start))?.[0]\n if (identifier) return parseBinding(identifier)\n }\n throw new Error('Docusaurus sidebar must export a static object or assign one to a const.')\n}\n"],"mappings":";AAEA,IAAM,wBAAwB,CAAC,sBAAsB,YAAY;AAE1D,IAAM,sBAAsB,CAAC,WAAiD;AACnF,QAAM,YAAY,OAAO,OAAO,MAAM;AACtC,QAAM,aAAa,OAAO,OAAO,MAAM,SAAS,GAAG,SAAS;AAE5D,SAAO;AAAA,IACL,GAAG;AAAA,IACH,QAAQ;AAAA,MACN,GAAG,OAAO;AAAA,MACV,OAAO;AAAA,QACL,GAAG,OAAO,OAAO;AAAA,QACjB,OAAO;AAAA,QACP,SAAS,OAAO,OAAO,MAAM,WAAW,CAAC,eAAe;AAAA,QACxD,SAAS,OAAO,OAAO,MAAM,WAAW,CAAC,GAAG,qBAAqB;AAAA,MACnE;AAAA,IACF;AAAA,IACA,OAAO;AAAA,MACL,SAAS;AAAA,MACT,aAAa;AAAA,MACb,SAAS;AAAA,QACP,SAAS;AAAA,QACT,SAAS;AAAA,QACT,GAAG,OAAO,OAAO;AAAA,MACnB;AAAA,MACA,cAAc;AAAA,QACZ,SAAS;AAAA,QACT,SAAS;AAAA,QACT,GAAG,OAAO,OAAO;AAAA,MACnB;AAAA,MACA,GAAG,OAAO;AAAA,IACZ;AAAA,IACA,OAAO;AAAA,MACL,QAAQ;AAAA,MACR,GAAG,OAAO;AAAA,IACZ;AAAA,IACA,OAAO;AAAA,MACL,MAAM;AAAA,MACN,GAAG,OAAO;AAAA,IACZ;AAAA,IACA,QAAQ;AAAA,MACN,eAAe;AAAA,MACf,GAAG,OAAO;AAAA,IACZ;AAAA,IACA,UAAU;AAAA,MACR,KAAK;AAAA,QACH,KAAK;AAAA,QACL,eAAe;AAA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W,gBAAgB;AAChE,SAAO;AACT;","names":[]}
@@ -381,6 +381,7 @@ declare const DocBridgeConfigV1Schema: z.ZodObject<{
381
381
  }>>;
382
382
  include: z.ZodOptional<z.ZodArray<z.ZodEnum<{
383
383
  "index-freshness": "index-freshness";
384
+ "index-reproducible": "index-reproducible";
384
385
  "human-guide-links": "human-guide-links";
385
386
  "link-rot": "link-rot";
386
387
  "okf-type": "okf-type";
@@ -391,6 +392,7 @@ declare const DocBridgeConfigV1Schema: z.ZodObject<{
391
392
  }>>>;
392
393
  exclude: z.ZodOptional<z.ZodArray<z.ZodEnum<{
393
394
  "index-freshness": "index-freshness";
395
+ "index-reproducible": "index-reproducible";
394
396
  "human-guide-links": "human-guide-links";
395
397
  "link-rot": "link-rot";
396
398
  "okf-type": "okf-type";
package/dist/index.d.ts CHANGED
@@ -1,5 +1,5 @@
1
- import { D as DocBridgeConfigV1, a as DocumentationAuditConfig, R as RulesConfig, b as RuleId, c as RuleSeverity, d as DocumentationStandardRuleId } from './index-7wYGbllW.js';
2
- export { A as AgentCorpusConfig, C as ConfigNotFoundError, e as DocBridgeConfigV1Schema, f as DocumentationAuditConfigSchema, g as DocumentationStandardRuleIdSchema, h as DocumentationStandardV1Config, i as DocumentationStandardV1ConfigSchema, E as EcosystemContractEvidenceSchema, L as LoadConfigOptions, j as LoadConfigResult, k as ReportConfig, l as ReportConfigSchema, m as RepositorySafetyConfig, n as RepositorySafetyConfigSchema, o as RuleIdSchema, p as RuleSeveritySchema, q as RulesConfigSchema, W as WorkflowConfig, r as WorkflowConfigSchema, s as applyConfigDefaults, t as defineConfig, u as loadConfig, v as projectRootFromConfigPath, w as resolveProjectRoot } from './index-7wYGbllW.js';
1
+ import { D as DocBridgeConfigV1, a as DocumentationAuditConfig, R as RulesConfig, b as RuleId, c as RuleSeverity, d as DocumentationStandardRuleId } from './index-CimDq6_e.js';
2
+ export { A as AgentCorpusConfig, C as ConfigNotFoundError, e as DocBridgeConfigV1Schema, f as DocumentationAuditConfigSchema, g as DocumentationStandardRuleIdSchema, h as DocumentationStandardV1Config, i as DocumentationStandardV1ConfigSchema, E as EcosystemContractEvidenceSchema, L as LoadConfigOptions, j as LoadConfigResult, k as ReportConfig, l as ReportConfigSchema, m as RepositorySafetyConfig, n as RepositorySafetyConfigSchema, o as RuleIdSchema, p as RuleSeveritySchema, q as RulesConfigSchema, W as WorkflowConfig, r as WorkflowConfigSchema, s as applyConfigDefaults, t as defineConfig, u as loadConfig, v as projectRootFromConfigPath, w as resolveProjectRoot } from './index-CimDq6_e.js';
3
3
  import { z } from 'zod';
4
4
  import { GraphologyGraph } from 'graphology';
5
5
  import * as ts from 'typescript';
@@ -4585,6 +4585,50 @@ type RepositoryInputsV1 = {
4585
4585
  */
4586
4586
  declare const repositoryInputs: (root: string, config: DocBridgeConfigV1 | undefined) => RepositoryInputsV1;
4587
4587
 
4588
+ /**
4589
+ * Whether a committed index could have been produced by a clean checkout.
4590
+ *
4591
+ * The recommended setup commits `.doc-bridge/index.json` so a gate can verify it, and that only
4592
+ * works while the index is a function of committed content. A scan has no reason to know about
4593
+ * `.gitignore` — it walks what is on disk — so a generated module or document silently joins the
4594
+ * corpus on any machine that has built, and silently leaves it on one that has not. The index then
4595
+ * disagrees with itself between two checkouts of the same commit, `index-freshness` reports an
4596
+ * artifact that nothing invalidated, and regenerating cannot fix it because the next machine
4597
+ * disagrees in the other direction.
4598
+ *
4599
+ * Dogfooding found this the expensive way: a 25-package monorepo whose gate passed locally and
4600
+ * failed in CI because `pnpm lint` had generated one `.ts` file into the corpus before the index
4601
+ * was written. The scan cannot guess which files are generated, but Git already knows, so the
4602
+ * check is: of the paths this index carries, which ones does Git ignore?
4603
+ *
4604
+ * It only applies when the index is itself tracked. A consumer who regenerates on every run has
4605
+ * nothing to reproduce, and reporting generated files to them would be noise.
4606
+ */
4607
+ type IgnoredIndexEntry = {
4608
+ readonly path: string;
4609
+ /** The ignore rule that matched, as `.gitignore:12:pattern`, so the fix is one lookup away. */
4610
+ readonly rule: string;
4611
+ };
4612
+ type IndexReproducibility = {
4613
+ /**
4614
+ * Whether the question was answerable. False outside a Git checkout, when Git is unavailable, or
4615
+ * when the index is not tracked — in all three cases `ignored` is empty and means nothing.
4616
+ */
4617
+ readonly checked: boolean;
4618
+ /** Why the check did not run, for a caller that wants to say so. */
4619
+ readonly skipped?: 'no-git' | 'index-untracked';
4620
+ /** Indexed paths that Git ignores, in path order. */
4621
+ readonly ignored: readonly IgnoredIndexEntry[];
4622
+ };
4623
+ /**
4624
+ * The paths a committed index carries that Git ignores.
4625
+ *
4626
+ * `git check-ignore` consults the index by default, so a tracked file that also matches an ignore
4627
+ * pattern is correctly reported as not ignored — being committed is the whole point. A test pins
4628
+ * that behaviour rather than trusting it.
4629
+ */
4630
+ declare const checkIndexReproducibility: (root: string, indexPath: string, paths: readonly string[]) => IndexReproducibility;
4631
+
4588
4632
  /**
4589
4633
  * The retrieval index: what ranking reads.
4590
4634
  *
@@ -4863,11 +4907,27 @@ type RetrievalIndexV1 = z.infer<typeof RetrievalIndexV1Schema>;
4863
4907
  * verified against the entity's content hash, so a file that changed since the scan is projected
4864
4908
  * from what the snapshot says about it rather than from what is on disk now.
4865
4909
  */
4866
- declare const RETRIEVAL_PROJECTION_VERSION: 1;
4910
+ declare const RETRIEVAL_PROJECTION_VERSION: 2;
4867
4911
  /** Documentation body kept for search. Long enough to answer a question, short enough to ship. */
4868
4912
  declare const DOCUMENT_BODY_LIMIT = 4000;
4869
4913
  /** The overlay hash when there is no overlay: the hash of an empty accepted set. */
4870
4914
  declare const EMPTY_OVERLAY_HASH: string;
4915
+ /**
4916
+ * What the snapshot observed, without the revision it observed it at.
4917
+ *
4918
+ * `snapshot.contentHash` seals the whole artifact, `sourceRevision` included — the commit SHA when
4919
+ * the working tree is clean, a digest of the scanned files when it is not. That is right for an
4920
+ * artifact whose job is to say what one revision looked like, and wrong as a projection input: the
4921
+ * projection is a function of what was found, not of where it was found. Sealing the revision into
4922
+ * it made an index that any commit invalidates without one thing it describes having changed — so
4923
+ * an index committed to a repository was stale the moment it landed, because landing it is a
4924
+ * commit, and a freshness gate could never pass twice.
4925
+ *
4926
+ * Entities and relations are the projection's whole input; the analyzer identity comes with them,
4927
+ * because two analyzer versions that observe the same entities and relations have nothing left to
4928
+ * disagree about, and one that observes different ones is caught by the entities.
4929
+ */
4930
+ declare const snapshotObservationHash: (snapshot: Pick<DiscoverySnapshotV1, "entities" | "relations" | "pipelineVersion" | "analyzerVersions">) => string;
4871
4931
  /** The weaker of two confidences: a chain is as trustworthy as its least trustworthy link. */
4872
4932
  declare const weakerConfidence: (a: Confidence, b: Confidence) => Confidence;
4873
4933
  /** What a relation's confidence is: its provenance, unless it resolved by similarity. */
@@ -4929,7 +4989,7 @@ type RetrievalOverlayInput = {
4929
4989
  readonly relations?: readonly KnowledgeRelation[];
4930
4990
  };
4931
4991
  type ProjectRetrievalOptions = {
4932
- readonly snapshot: Pick<DiscoverySnapshotV1, 'contentHash' | 'entities' | 'relations'>;
4992
+ readonly snapshot: Pick<DiscoverySnapshotV1, 'contentHash' | 'entities' | 'relations' | 'pipelineVersion' | 'analyzerVersions'>;
4933
4993
  readonly config: DocBridgeConfigV1 | undefined;
4934
4994
  readonly routes?: RetrievalRoutes;
4935
4995
  readonly curated?: readonly CuratedDocument[];
@@ -7664,7 +7724,7 @@ type DocumentationConformanceReportV1 = {
7664
7724
  declare const runDocumentationStandardV1: (root: string, config: DocBridgeConfigV1) => DocumentationConformanceReportV1;
7665
7725
  declare const formatDocumentationStandardText: (report: DocumentationConformanceReportV1) => string[];
7666
7726
 
7667
- type GateId = 'index-freshness' | 'human-guide-links' | 'okf-type' | 'docs-style' | 'documentation-standard-v1';
7727
+ type GateId = 'index-freshness' | 'index-reproducible' | 'human-guide-links' | 'okf-type' | 'docs-style' | 'documentation-standard-v1';
7668
7728
  type GateResult = {
7669
7729
  readonly id: GateId;
7670
7730
  readonly ok: boolean;
@@ -8099,6 +8159,8 @@ type DoctorCoverage = {
8099
8159
  readonly hasIndex: boolean;
8100
8160
  };
8101
8161
  readonly gates: GateRunResult;
8162
+ /** Whether a clean checkout would rebuild this index, or whether generated files leak into it. */
8163
+ readonly reproducibility: IndexReproducibility;
8102
8164
  };
8103
8165
  type DoctorReport = {
8104
8166
  readonly ok: boolean;
@@ -9574,7 +9636,7 @@ declare const chunksFromMarkdown: (property: string, raw: string, sourceUrl: str
9574
9636
  declare const loadFederatedChunks: (root: string, config: DocBridgeConfigV1, options?: FederatedRetrieverOptions) => Promise<DocBridgeRetrievedChunk[]>;
9575
9637
  declare const retrieveHybridChunks: (root: string, config: DocBridgeConfigV1, index: DocBridgeIndexV1, query: string, options?: FederatedRetrieverOptions) => Promise<DocBridgeRetrievedChunk[]>;
9576
9638
 
9577
- declare const PACKAGE_VERSION = "1.10.0";
9639
+ declare const PACKAGE_VERSION = "1.11.0";
9578
9640
 
9579
9641
  type FrontmatterValue = string | boolean | readonly string[];
9580
9642
  type FrontmatterData = Record<string, FrontmatterValue>;
@@ -11420,4 +11482,4 @@ declare const checkPublicParity: (options: CheckParityOptions) => PublicParityRe
11420
11482
  declare const parsePublicParityReport: (input: unknown) => PublicParityReportV1;
11421
11483
  declare const formatPublicParityText: (report: PublicParityReportV1) => readonly string[];
11422
11484
 
11423
- export { ACCEPTED_SIGNALS_SHARE, ACCEPTED_SIGNALS_WEIGHT, ALIAS_COLLISION_THRESHOLD, ALIAS_MAX, ANALYZER_PLUGIN_CONTRACT_VERSION, APPROVALS_DIR, AREA_ANALYZER_VERSION, ASSISTED_SCENARIO, type AcceptedEnrichment, AcceptedEnrichmentSchema, AffectedFileSchema, type AgentEfficiencyObservation, AgentHandoffLegacySchema, type AgentHandoffV1, AgentHandoffV1JsonSchema, AgentHandoffV1Schema, type AgentProposalV1, AgentProposalV1Schema, type AgentQueryMode, AgentQueryModeSchema, type AgentSearchV1, AgentSearchV1Schema, type AgentTaskEfficiencyObservation, type AnalyzerPlugin, type AnalyzerPluginInput, type AnalyzerPluginManifest, AnalyzerPluginManifestSchema, type AnalyzerPluginOutput, AnalyzerPluginOutputSchema, type AnalyzerRegistry, type Approval, type ApprovalDecision, type ApprovalGate, type ApprovalStore, type AreaModule, type AreaOwnership, type AreaPageView, type AreaSuggestion, type AssistedArmStatus, type Audience, AudienceSchema, BENCHMARK_SCHEMA_VERSION, BM25_VERSION, BUDGET_SECTION_ORDER, BUNDLED_TEMPLATES, type BenchmarkFixtureV1, BenchmarkFixtureV1Schema, type BenchmarkObservation, type BenchmarkResult, type BenchmarkSetMetrics, type BenchmarkSnapshot, type BenchmarkSnapshotDiff, type Bm25FieldWeights, type Bm25Hit, type Bm25Index, type Bm25Input, type Bm25Params, type BudgetMessage, type BudgetReport, BudgetReportSchema, type BudgetSection, BudgetSectionSchema, type BudgetTokenCounter, type BudgetedSection, type BuildContextPacksOptions, type BuildGraphOptions, type BuildIndexOptions, type BuildIndexResult, CLAIM_TRANSFORMS, CLAIM_VALUE_TYPES, CONFIG_EXTENSIONS, CONTEXT_PACK_VERSION, CORPUS_PROJECTION_VERSION, type ChangeDigestView, type CheckParityOptions, type CheckStudyExpectationsOptions, type ClaimEvidence, type ClaimTransform, type ClaimValueType, type CompareRetrievalBaselineOptions, type CompileBudgetInput, type CompileBudgetResult, type CompiledTemplate, type Confidence, ConfidenceSchema, type ContextPack, type ControlledCommandRequest, type ControlledStudyObservationLedgerV1, ControlledStudyObservationLedgerV1Schema, type ControlledStudyObservationV1, ControlledStudyObservationV1Schema, type ControlledStudyRunOptions, type ControlledStudyRunPlanV1, ControlledStudyRunPlanV1Schema, type ControlledStudyRunSummary, type ControlledStudyVerifiedResultV1, ControlledStudyVerifiedResultV1Schema, type CorrelationContextV1, CorrelationContextV1Schema, CoverageSchema, type CreateRetrievalBaselineOptions, type CuratedDocument, DEFAULT_AREA_DEPTH, DEFAULT_AREA_ROOTS, DEFAULT_COMMUNITY_SEED, DEFAULT_LARGE_REPORT_THRESHOLD_BYTES, DEFAULT_PACK_BYTES, DEFAULT_PROXIMITY_DEPTH, DEFAULT_REGISTRY_AGENT_ID, DEFAULT_SAFETY_EXCLUDES, DEFAULT_SEARCH_PARAMS, DEFAULT_SEARCH_WEIGHTS, DOCUMENTATION_AUDIT_SCHEMA_VERSION, DOCUMENTATION_EDGE_KINDS, DOCUMENTATION_STANDARD_V1_ID, DOCUMENTATION_STANDARD_V1_STATUS, DOCUMENT_BODY_LIMIT, DOCUMENT_EXTENSIONS, DOC_BRIDGE_PATTERN_ID, DOC_BRIDGE_PATTERN_META, type DecideEnrichmentOptions, type DecideEnrichmentResult, type DeriveAreasOptions, type DerivedArea, type DiagnosticSeverity, DiagnosticSeveritySchema, type DiscoveryOptions, type DiscoverySnapshotV1, DiscoverySnapshotV1Schema, DocBridgeConfigV1, type DocBridgeIndexV1, DocBridgeIndexV1JsonSchema, DocBridgeIndexV1Schema, DocBridgeJsonSchemas, type DocBridgeRetrievedChunk, type DocBridgeRetriever, type DocBridgeRetrieverOptions, type DoctorBadgeMetrics, type DoctorCoverage, type DoctorIssue, type DoctorReport, type DocumentationAnalysisResult, DocumentationAuditConfig, type DocumentationAuditDocument, DocumentationAuditDocumentSchema, type DocumentationAuditFinding, DocumentationAuditFindingSchema, type DocumentationAuditOptions, type DocumentationAuditReportV1, DocumentationAuditReportV1Schema, type DocumentationConformanceReportV1, type DocumentationDeclarationInput, type DocumentationDeclarationOptions, type DocumentationDeclarationResult, type DocumentationDiagnostic, type DocumentationStandardEvidence, type DocumentationStandardRemediation, DocumentationStandardRuleId, type DocumentationStandardRuleLevel, type DocumentationStandardRuleResult, type DocumentationStandardRuleStatus, EMPTY_OVERLAY_HASH, ENRICHMENT_APPROVAL_GATE, ENRICHMENT_DIR, ENRICHMENT_KINDS, ENRICHMENT_OVERLAY_FILE, ENRICHMENT_POLICY, ENRICHMENT_REJECTION_REASONS, ENRICHMENT_SCHEMA_VERSION, EVAL_FORMAT_VERSION, type EcosystemLlmsProduct, type EffectiveOverlay, type EnrichmentAdjudicationV1, EnrichmentAdjudicationV1Schema, type EnrichmentAgent, type EnrichmentCache, type EnrichmentCacheKeyInput, type EnrichmentKind, type EnrichmentOrigin, EnrichmentOriginSchema, type EnrichmentOverlayV1, EnrichmentOverlayV1Schema, type EnrichmentPartition, type EnrichmentPayloads, type EnrichmentPolicy, type EnrichmentProposalOf, type EnrichmentProposalV1, EnrichmentProposalV1Schema, type EnrichmentRejectionReason, type EnrichmentReview, type EnrichmentRole, type EnrichmentRunOptions, type EnrichmentRunResult, type EnrichmentStability, type EnrichmentStats, type EnrichmentTask, type EnrichmentValidationContext, type EnrichmentVerdict, EntitySchema, type Evidence, EvidenceSchema$1 as EvidenceSchema, EvidenceSourceSchema, FILE_BACKED_KINDS, FIX_APPROVAL_GATE, FUZZY_RESOLUTION_THRESHOLD, type FederatedRetrieverOptions, type FetchText, type Finding, type FindingStatus, FindingStatusSchema, type FixApplyOptions, type FixChange, FixChangeSchema, type FixProposalOptions, FixProposalStatusSchema, type FixProposalV1, FixProposalV1Schema, type FormatEcosystemLlmsBlockOptions, type FuzzyMatch, GENERATED_REGION_CLOSE, GRAPH_ANALYZER_VERSION, type GateId, type GateResult, type GateRunResult, type GeneratedRegionMismatch, type GeneratedRegionRef, type GithubPrOptions, type GithubPrResult, type GraphEdge, type GraphMemory, type GraphNode, type GraphQuery, type GraphSignal, HANDOFF_SCHEMA_VERSION, type HandoffBridge, HandoffBridgeSchema, type HandoffOptions, type HandoffTarget, type HandoffTargetType, HandoffTargetTypeSchema, type HistoricalEvidenceRecordV1, HistoricalEvidenceRecordV1Schema, type HistoricalEvidenceRegistryV1, HistoricalEvidenceRegistryV1Schema, type HumanDocMap, type HumanDocRecord, IMPORT_EDGE_KINDS, INDEX_SCHEMA_VERSION, INTENT_MAX, INVENTED_RELATION_REASONS, type ImportCycle, type IndependentStudyAdjudicationOptions, IndexNotFoundError, IndexStaleError, KNOWLEDGE_CONTENT_HASH_ALGO, KNOWLEDGE_SCHEMA_VERSION, KNOWLEDGE_TOOLS_SCHEMA_VERSION, type KnowledgeArtifactV1, type KnowledgeDiagnostic, type KnowledgeDocumentRef, type KnowledgeEntity, type KnowledgeEntry, KnowledgeEntrySchema, type KnowledgeEvidence, type KnowledgeLookupEntity, type KnowledgeLookupOptions, type KnowledgeLookupRequest, type KnowledgeLookupResponse, type KnowledgeNeighbour, type KnowledgeOverlay, type KnowledgeRelation, type KnowledgeSearchRequest, type KnowledgeSearchResponse, type KnowledgeSearchResult, type LlmsTxtEntry, type LlmsTxtVariables, MARKDOWN_ANALYZER_VERSION, MARKDOWN_RELATION_CAP, MAX_LOOKUP_DEPTH, MAX_PACK_NEIGHBOURS, MAX_REPORTED_CYCLES, MCP_TOOLS, MEMORY_CANDIDATE_SCHEMA_VERSION, type MarkdownAnalysis, type MarkdownDocumentV1, type MarkdownFrontmatter, type MarkdownGeneratedRegion, type MarkdownHeading, type MarkdownNote, type MarkdownReference, type MarkdownResolution, type McpInstallResult, type McpInstallTarget, type MeasureOverlayRetrievalDeltaOptions, type MemoryCandidateV1, MemoryCandidateV1JsonSchema, MemoryCandidateV1Schema, type MemoryClassification, type MemoryPromotionDraft, type MemoryRoute, OVERLAY_BLOCKING_METRIC, OVERLAY_DELTA_METRICS, type OfflineReportArtifact, type OfflineReportInput, type OfflineReportOptions, type OverlayMetricDelta, type OverlayRetrievalDelta, type OverlayReviewInput, type OverlayReviewView, type OwnershipPageView, PACKAGE_VERSION, PARITY_CODES, PARITY_EXCERPT_LIMIT, PROJECTED_ENTRY_TYPES, PROPOSABLE_RELATION_KINDS, PROXIMITY_EDGE_KINDS, PUBLIC_CLAIMS_CONTENT_HASH_ALGO, PUBLIC_CLAIMS_SCHEMA_VERSION, PUBLIC_PARITY_SCHEMA_VERSION, type ParityCode, type ParityFinding, type ParseIssue, type ParseResult, PeerMissingError, type PendingEnrichment, PendingEnrichmentSchema, type PriorFile, type PriorSnapshot, ProjectIdentitySchema, type ProjectRetrievalOptions, ProposalOriginSchema, type Provenance, ProvenanceSchema, type ProviderToolTelemetry, type ProximityOptions, type PublicClaim, type PublicClaimException, type PublicClaimsV1, PublicClaimsV1Schema, type PublicParityReportV1, PublicParityReportV1Schema, type QualityScorecard, type QualityScorecardInput, type QueryKind, type QueryRequest, type QueryResult, REGISTRY_AGENT_PROTOCOL_V2, RELEVANCE_FLOOR, RENDER_TEMPLATES, RENDER_TEMPLATE_NAMES, RETRIEVAL_BENCH_SCHEMA_VERSION, RETRIEVAL_INDEX_SCHEMA_VERSION, RETRIEVAL_PROJECTION_VERSION, ROLE_TARGET_KINDS, ROLE_TASK, RUBRIC_MECHANICAL_CHECKS, type RankExplanation, type RankOptions, type RankedEntry, type ReconciliationReportV1, ReconciliationReportV1Schema, type RegistryAgentAdapter, type RegistryAgentContext, type RegistryAgentMetadata, type RegistryAgentRunner, type RegistryEnrichmentContext, type RejectedEnrichment, RejectedEnrichmentSchema, RelationSchema, type RenderArtifactOptions, type RenderArtifactResult, type RenderTemplateInfo, type RenderTemplateName, type RenderedPage, type ReportableDiagnostic, type RepositoryInputs, RepositoryInputsSchema, type RepositoryInputsV1, type ResolveContext, type ResolvedClaim, type ResolvedRole, type RetrievalBaselineV1, RetrievalBaselineV1Schema, type RetrievalBenchResultV1, RetrievalBenchResultV1Schema, type RetrievalCaseOutcome, type RetrievalComparison, type RetrievalComparisonStatus, type RetrievalEdge, type RetrievalEntry, RetrievalEntrySchema, type RetrievalFields, type RetrievalGraph, type RetrievalIndexV1, RetrievalIndexV1Schema, type RetrievalKind, RetrievalKindSchema, type RetrievalMetadata, RetrievalMetadataSchema, type RetrievalMetricDelta, type RetrievalMetrics, type RetrievalOverlayInput, type RetrievalRoutes, type RetrievalSuite, type RetrievalSuiteCase, RetrievalSuiteCaseSchema, RetrievalSuiteSchema, type RetrievedDocument, type Retriever, type RetrieverRequest, type ReuseLedger, type RubricItem, type RubricMechanicalCheck, type RuleEngineOptions, type RuleEvaluationResult, type RuleFinding, RuleId, type RuleMode, RuleSeverity, RulesConfig, type RunRetrievalBenchOptions, SEARCH_LEXICON_VERSION, SEARCH_STOPWORDS, SEVERITY_ORDER, SOURCE_EXTENSIONS, STUDY_ADJUDICATION_METHOD, STUDY_EXPECTATIONS_SCHEMA_VERSION, STUDY_METRICS_SCHEMA_VERSION, STUDY_PROTOCOL_CONTENT_HASH_ALGO, STUDY_PROTOCOL_SCHEMA_VERSION, STUDY_PROVIDER_CLI_CONTENT_HASH_ALGO, STUDY_PROVIDER_CLI_SCHEMA_VERSION, STUDY_REPOSITORY_CONFIG_CONTENT_HASH_ALGO, STUDY_REPOSITORY_CONFIG_SCHEMA_VERSION, STUDY_RUNNER_CONTENT_HASH_ALGO, STUDY_RUNNER_SCHEMA_VERSION, STUDY_TASK_SUITE_CONTENT_HASH_ALGO, STUDY_TASK_SUITE_SCHEMA_VERSION, STUDY_VERIFICATION_CONTENT_HASH_ALGO, STUDY_VERIFICATION_SCHEMA_VERSION, SUMMARY_MAX, type SafeWalkOptions, type SafeWalkResult, type SafetyFinding, type ScoreComponents, type ScorecardCriterion, type ScorecardDimension, type ScorecardStatus, type SearchMatch, type SearchOptions, type SearchTokenizeOptions, type Severity, type SnapshotForDigest, type StudyAdjudicatorCli, type StudyExpectationCheck, type StudyExpectationOutcome, type StudyExpectationsV1, StudyExpectationsV1Schema, type StudyMetricComparisonV1, type StudyMetricGroupV1, type StudyMetricSetV1, type StudyMetricsReportV1, StudyMetricsReportV1Schema, type StudyPrivacyScan, type StudyProtocolV1, StudyProtocolV1Schema, type StudyProviderCli, type StudyProviderCliConfigV1, StudyProviderCliConfigV1Schema, type StudyProviderCostPricing, type StudyRepositoryConfigV1, StudyRepositoryConfigV1Schema, type StudyRetrievalSuite, type StudyTaskSuiteV1, StudyTaskSuiteV1Schema, type StudyTaskV1, type StudyVerificationBindingV1, StudyVerificationBindingV1Schema, TOKEN_METHOD, type TaskEvaluation, type TaskEvaluationInput, type TaskExecution, type TaskExecutionV1, type TaskOutcomeStatus, TemplateError, type TemplateSource, type TemplateVariables, type UnresolvedExpectation, type ValidateStudyTaskSuiteOptions, WORKFLOW_STAGES, type WatchIndexOptions, type WorkflowExecutionResult, type WorkflowOptions, type WorkflowRunV1, WorkflowRunV1Schema, type WorkflowStage, type WorkflowStageContext, type WorkflowStageHandler, type WorkflowState, WorkflowStateSchema, WorkflowStepSchema, WorkflowTransitionSchema, adjudicateControlledStudyObservation, adjudicatedLedgerInputHash, adjudicatorRubric, analyzeMarkdownDocument, applyBudget, applyDocumentationDeclarations, applyEnrichmentAdjudication, applyFixProposal, applyGeneratedRegions, approvalsDir, approveFixProposal, approximateCounter, areaPagesView, areaSuggestionCoverage, areaSuggestions, assertObservedSurvive, assistedArmReadiness, auditDocumentation, batchContextPacks, benchmarkFixture, bm25Idf, bm25Search, budgetedHandoff, buildBm25Index, buildContextPacks, buildDocBridgeIndex, buildKnowledgeGraph, buildLookup, cacheHitRate, calculateStudyCostUsd, calculateStudyMetrics, canonicalJsonV1, canonicality, centrality, changeDigestView, checkPublicParity, checkStudyExpectations, chunksFromMarkdown, claimPattern, claimSurfaces, classifyMemoryCandidates, collectPackages, compareBenchmarkSnapshots, compareRetrievalBaseline, compileBudget, compileTemplate, containedPath, contentHashForArtifactV1, contextPackHash, conventionalAreaPath, createAnalyzerRegistry, createApprovalGateMirror, createArtifactNormalizationProposal, createControlledStudyLedger, createControlledStudyObservation, createControlledStudyRunPlan, createControlledStudyVerifiedResult, createDocBridgeGraphMemory, createDocBridgeRag, createDocBridgeRetriever, createEnrichmentCache, createFileApprovalStore, createHistoricalEvidenceRegistry, createMarkdownLinkFixProposal, createMemoryEnrichmentCache, createPublicClaims, createRegistryAgentAdapter, createRetrievalBaseline, createStudyExpectations, createStudyProtocol, createStudyProviderCliConfig, createStudyRepositoryConfig, createStudyTaskSuite, createStudyVerificationBinding, decideEnrichment, declaredAudience, declaredExportsOf, defaultPromotionDraftPath, deriveAreas, discoverNxProjects, discoverRepository, docBridgePatternMarkdown, docBridgePatternPayload, doctorBadgeMetrics, documentClassification, draftMemoryPromotion, effectiveEnrichment, enrichmentAdjudicationId, enrichmentApprovalId, enrichmentCacheKey, enrichmentCost, enrichmentFindings, enrichmentOverlayContentHash, enrichmentOverlayHash, enrichmentOverlayPath, enrichmentProposalId, enrichmentProposalKey, enrichmentStability, entityContentHash, entityId, evaluateQualityScorecard, evaluateRules, evaluateStudyTask, exceptionFor, expandSearchToken, exportedNames, exportsOf, fileContentHash, findingFromDiagnostic, findingsFromDiagnostics, fitContextPack, fixApprovalId, foldAccents, formatBenchmarkText, formatControlledStudyRunPlanText, formatControlledStudyRunText, formatDoctorBadgeJson, formatDoctorBadgeMarkdown, formatDoctorText, formatDocumentationAuditText, formatDocumentationStandardText, formatEcosystemLlmsBlock, formatEcosystemLlmsSection, formatEnrichmentStatsText, formatEnrichmentText, formatHistoricalEvidenceText, formatKnowledgeLookupText, formatKnowledgeSearchText, formatOverlayRetrievalDeltaText, formatPublicParityText, formatRetrievalBenchText, formatRetrievalComparisonText, formatRetrievedDocuments, formatStudyExpectationsText, formatStudyMetricsText, formatStudyProtocolText, formatStudyProviderCliText, formatStudyTaskSuiteText, formatStudyVerificationText, fuzzyMatchList, generatedRegionHash, generatedRegionOpen, handleMcpRequest, handoffForEntity, hasRetrievalExpectations, hasSearchToken, importCycles, independentlyAdjudicateStudyLedger, independentlyAdjudicateStudyObservation, indexConfigurationHash, indexFilePath, indexPriorSnapshot, ingestAgentMemory, ingestCursorRules, ingestMemoryCandidates, installMcpConfig, inventedReferenceCount, isEnrichmentKind, isProjectedEntry, isRenderTemplateName, isSearchStopword, jaro, jaroWinkler, knowledgeLookup, knowledgeSearch, layer1InstallHint, listApprovals, listEnrichment, llmsTxtVariables, loadApprovalGate, loadDocBridgeIndex, loadFederatedChunks, loadFreshDocBridgeIndex, loadRegistryAgentMetadata, loadRegistryAgentRunner, loadWorkflowManifest, loadWorkflowStepOutput, markdownContentHash, matchesRetrievalExpectation, mcpSnippet, measureAgentEfficiency, measureAgentTaskEfficiency, measureBenchmark, measureOverlayRetrievalDelta, measureProviderToolTelemetry, mechanicalRubricItems, modelRubricItems, moduleUniverseFingerprint, normalizeAgentHandoff, overlayProposalIds, overlayReviewView, ownershipPagesView, packByteBudget, pageFileName, parseAgentHandoff, parseAgentProposal, parseAgentSearch, parseControlledStudyLedger, parseControlledStudyObservation, parseControlledStudyRunPlan, parseControlledStudyVerifiedResult, parseDiscoverySnapshot, parseDocBridgeConfig, parseDocBridgeIndex, parseDocumentationDeclarations, parseEnrichmentOverlay, parseFixProposal, parseHistoricalEvidenceRegistry, parseLlmsTxtLinks, parseMarkdownDocument, parseMemoryCandidate, parsePublicClaims, parsePublicParityReport, parseReconciliationReport, parseRetrievalBaseline, parseRetrievalBenchResult, parseRetrievalSuite, parseRuleId, parseRuleSeverity, parseStudyExpectations, parseStudyMetrics, parseStudyProtocol, parseStudyProviderCliConfig, parseStudyRepositoryConfig, parseStudyTaskSuite, parseStudyVerificationBinding, parseWorkflowRun, partitionEnrichmentProposals, persistControlledStudyLedger, persistIndependentlyAdjudicatedLedger, persistRegistryAgentProposal, projectEnrichmentOverlay, projectRetrievalIndex, promoteMemoryToGithubPr, providerForStudyExecution, proximity, rankRetrieval, rankedOutput, readEnrichmentOverlay, reconcileKnowledge, recordApproval, redactSecrets, redactValue, relationConfidence, relationId, renderArtifact, renderClaim, renderCompiledTemplate, renderNamedTemplate, renderOfflineReport, renderOfflineReportArtifact, renderTemplate, renderTemplateWithKnap, replayableRelations, repositoryInputs, resolutionFingerprint, resolveClaim, resolveEnrichmentRoles, resolveFuzzyReference, resolveGateIds, resolveHandoffEntry, resolveLookupEntry, resolveRoot, resolveSearchParams, resolveSearchWeights, resolveTemplateSource, respondMcpRequest, retrieveDocBridgeChunks, retrieveDocBridgeDocuments, retrieveHybridChunks, reuseCoverage, revalidateEnrichmentOverlay, rubricItemCheck, rubricItemText, runChatOnce, runControlledCommand, runControlledStudy, runDoctor, runDocumentationStandardV1, runEnrichment, runGate, runGates, runQuery, runRetrievalBench, runWorkflow, safeParseAgentHandoff, safeWalkFiles, safeWalkOptions, scanHumanDocRecords, scanHumanDocs, scanMemorySafety, scanStudyPublicationArtifact, sealEnrichmentOverlay, searchIndex, searchTokens, seededRandom, selectTaskExecutions, sha256NormalizedV1, singularizeSearchToken, startInkChat, startMcpStdioServer, studyRetrievalSuite, taskRetrievalQueries, templateFor, toKnowledgeEntry, tokenizeSearchText, unobservedOwnershipPaths, upsertControlledStudyObservation, validateEnrichmentAdjudication, validateEnrichmentProposal, validateHistoricalEvidenceRegistry, validateStudyProviderCommand, validateStudyTaskSuite, verifyGeneratedRegions, watchDocBridgeIndex, weakerConfidence, withAcceptedRelations, wrapGeneratedRegion, writeEnrichmentOverlay, writePromotionDraft, writeRenderedPages };
11485
+ export { ACCEPTED_SIGNALS_SHARE, ACCEPTED_SIGNALS_WEIGHT, ALIAS_COLLISION_THRESHOLD, ALIAS_MAX, ANALYZER_PLUGIN_CONTRACT_VERSION, APPROVALS_DIR, AREA_ANALYZER_VERSION, ASSISTED_SCENARIO, type AcceptedEnrichment, AcceptedEnrichmentSchema, AffectedFileSchema, type AgentEfficiencyObservation, AgentHandoffLegacySchema, type AgentHandoffV1, AgentHandoffV1JsonSchema, AgentHandoffV1Schema, type AgentProposalV1, AgentProposalV1Schema, type AgentQueryMode, AgentQueryModeSchema, type AgentSearchV1, AgentSearchV1Schema, type AgentTaskEfficiencyObservation, type AnalyzerPlugin, type AnalyzerPluginInput, type AnalyzerPluginManifest, AnalyzerPluginManifestSchema, type AnalyzerPluginOutput, AnalyzerPluginOutputSchema, type AnalyzerRegistry, type Approval, type ApprovalDecision, type ApprovalGate, type ApprovalStore, type AreaModule, type AreaOwnership, type AreaPageView, type AreaSuggestion, type AssistedArmStatus, type Audience, AudienceSchema, BENCHMARK_SCHEMA_VERSION, BM25_VERSION, BUDGET_SECTION_ORDER, BUNDLED_TEMPLATES, type BenchmarkFixtureV1, BenchmarkFixtureV1Schema, type BenchmarkObservation, type BenchmarkResult, type BenchmarkSetMetrics, type BenchmarkSnapshot, type BenchmarkSnapshotDiff, type Bm25FieldWeights, type Bm25Hit, type Bm25Index, type Bm25Input, type Bm25Params, type BudgetMessage, type BudgetReport, BudgetReportSchema, type BudgetSection, BudgetSectionSchema, type BudgetTokenCounter, type BudgetedSection, type BuildContextPacksOptions, type BuildGraphOptions, type BuildIndexOptions, type BuildIndexResult, CLAIM_TRANSFORMS, CLAIM_VALUE_TYPES, CONFIG_EXTENSIONS, CONTEXT_PACK_VERSION, CORPUS_PROJECTION_VERSION, type ChangeDigestView, type CheckParityOptions, type CheckStudyExpectationsOptions, type ClaimEvidence, type ClaimTransform, type ClaimValueType, type CompareRetrievalBaselineOptions, type CompileBudgetInput, type CompileBudgetResult, type CompiledTemplate, type Confidence, ConfidenceSchema, type ContextPack, type ControlledCommandRequest, type ControlledStudyObservationLedgerV1, ControlledStudyObservationLedgerV1Schema, type ControlledStudyObservationV1, ControlledStudyObservationV1Schema, type ControlledStudyRunOptions, type ControlledStudyRunPlanV1, ControlledStudyRunPlanV1Schema, type ControlledStudyRunSummary, type ControlledStudyVerifiedResultV1, ControlledStudyVerifiedResultV1Schema, type CorrelationContextV1, CorrelationContextV1Schema, CoverageSchema, type CreateRetrievalBaselineOptions, type CuratedDocument, DEFAULT_AREA_DEPTH, DEFAULT_AREA_ROOTS, DEFAULT_COMMUNITY_SEED, DEFAULT_LARGE_REPORT_THRESHOLD_BYTES, DEFAULT_PACK_BYTES, DEFAULT_PROXIMITY_DEPTH, DEFAULT_REGISTRY_AGENT_ID, DEFAULT_SAFETY_EXCLUDES, DEFAULT_SEARCH_PARAMS, DEFAULT_SEARCH_WEIGHTS, DOCUMENTATION_AUDIT_SCHEMA_VERSION, DOCUMENTATION_EDGE_KINDS, DOCUMENTATION_STANDARD_V1_ID, DOCUMENTATION_STANDARD_V1_STATUS, DOCUMENT_BODY_LIMIT, DOCUMENT_EXTENSIONS, DOC_BRIDGE_PATTERN_ID, DOC_BRIDGE_PATTERN_META, type DecideEnrichmentOptions, type DecideEnrichmentResult, type DeriveAreasOptions, type DerivedArea, type DiagnosticSeverity, DiagnosticSeveritySchema, type DiscoveryOptions, type DiscoverySnapshotV1, DiscoverySnapshotV1Schema, DocBridgeConfigV1, type DocBridgeIndexV1, DocBridgeIndexV1JsonSchema, DocBridgeIndexV1Schema, DocBridgeJsonSchemas, type DocBridgeRetrievedChunk, type DocBridgeRetriever, type DocBridgeRetrieverOptions, type DoctorBadgeMetrics, type DoctorCoverage, type DoctorIssue, type DoctorReport, type DocumentationAnalysisResult, DocumentationAuditConfig, type DocumentationAuditDocument, DocumentationAuditDocumentSchema, type DocumentationAuditFinding, DocumentationAuditFindingSchema, type DocumentationAuditOptions, type DocumentationAuditReportV1, DocumentationAuditReportV1Schema, type DocumentationConformanceReportV1, type DocumentationDeclarationInput, type DocumentationDeclarationOptions, type DocumentationDeclarationResult, type DocumentationDiagnostic, type DocumentationStandardEvidence, type DocumentationStandardRemediation, DocumentationStandardRuleId, type DocumentationStandardRuleLevel, type DocumentationStandardRuleResult, type DocumentationStandardRuleStatus, EMPTY_OVERLAY_HASH, ENRICHMENT_APPROVAL_GATE, ENRICHMENT_DIR, ENRICHMENT_KINDS, ENRICHMENT_OVERLAY_FILE, ENRICHMENT_POLICY, ENRICHMENT_REJECTION_REASONS, ENRICHMENT_SCHEMA_VERSION, EVAL_FORMAT_VERSION, type EcosystemLlmsProduct, type EffectiveOverlay, type EnrichmentAdjudicationV1, EnrichmentAdjudicationV1Schema, type EnrichmentAgent, type EnrichmentCache, type EnrichmentCacheKeyInput, type EnrichmentKind, type EnrichmentOrigin, EnrichmentOriginSchema, type EnrichmentOverlayV1, EnrichmentOverlayV1Schema, type EnrichmentPartition, type EnrichmentPayloads, type EnrichmentPolicy, type EnrichmentProposalOf, type EnrichmentProposalV1, EnrichmentProposalV1Schema, type EnrichmentRejectionReason, type EnrichmentReview, type EnrichmentRole, type EnrichmentRunOptions, type EnrichmentRunResult, type EnrichmentStability, type EnrichmentStats, type EnrichmentTask, type EnrichmentValidationContext, type EnrichmentVerdict, EntitySchema, type Evidence, EvidenceSchema$1 as EvidenceSchema, EvidenceSourceSchema, FILE_BACKED_KINDS, FIX_APPROVAL_GATE, FUZZY_RESOLUTION_THRESHOLD, type FederatedRetrieverOptions, type FetchText, type Finding, type FindingStatus, FindingStatusSchema, type FixApplyOptions, type FixChange, FixChangeSchema, type FixProposalOptions, FixProposalStatusSchema, type FixProposalV1, FixProposalV1Schema, type FormatEcosystemLlmsBlockOptions, type FuzzyMatch, GENERATED_REGION_CLOSE, GRAPH_ANALYZER_VERSION, type GateId, type GateResult, type GateRunResult, type GeneratedRegionMismatch, type GeneratedRegionRef, type GithubPrOptions, type GithubPrResult, type GraphEdge, type GraphMemory, type GraphNode, type GraphQuery, type GraphSignal, HANDOFF_SCHEMA_VERSION, type HandoffBridge, HandoffBridgeSchema, type HandoffOptions, type HandoffTarget, type HandoffTargetType, HandoffTargetTypeSchema, type HistoricalEvidenceRecordV1, HistoricalEvidenceRecordV1Schema, type HistoricalEvidenceRegistryV1, HistoricalEvidenceRegistryV1Schema, type HumanDocMap, type HumanDocRecord, IMPORT_EDGE_KINDS, INDEX_SCHEMA_VERSION, INTENT_MAX, INVENTED_RELATION_REASONS, type IgnoredIndexEntry, type ImportCycle, type IndependentStudyAdjudicationOptions, IndexNotFoundError, type IndexReproducibility, IndexStaleError, KNOWLEDGE_CONTENT_HASH_ALGO, KNOWLEDGE_SCHEMA_VERSION, KNOWLEDGE_TOOLS_SCHEMA_VERSION, type KnowledgeArtifactV1, type KnowledgeDiagnostic, type KnowledgeDocumentRef, type KnowledgeEntity, type KnowledgeEntry, KnowledgeEntrySchema, type KnowledgeEvidence, type KnowledgeLookupEntity, type KnowledgeLookupOptions, type KnowledgeLookupRequest, type KnowledgeLookupResponse, type KnowledgeNeighbour, type KnowledgeOverlay, type KnowledgeRelation, type KnowledgeSearchRequest, type KnowledgeSearchResponse, type KnowledgeSearchResult, type LlmsTxtEntry, type LlmsTxtVariables, MARKDOWN_ANALYZER_VERSION, MARKDOWN_RELATION_CAP, MAX_LOOKUP_DEPTH, MAX_PACK_NEIGHBOURS, MAX_REPORTED_CYCLES, MCP_TOOLS, MEMORY_CANDIDATE_SCHEMA_VERSION, type MarkdownAnalysis, type MarkdownDocumentV1, type MarkdownFrontmatter, type MarkdownGeneratedRegion, type MarkdownHeading, type MarkdownNote, type MarkdownReference, type MarkdownResolution, type McpInstallResult, type McpInstallTarget, type MeasureOverlayRetrievalDeltaOptions, type MemoryCandidateV1, MemoryCandidateV1JsonSchema, MemoryCandidateV1Schema, type MemoryClassification, type MemoryPromotionDraft, type MemoryRoute, OVERLAY_BLOCKING_METRIC, OVERLAY_DELTA_METRICS, type OfflineReportArtifact, type OfflineReportInput, type OfflineReportOptions, type OverlayMetricDelta, type OverlayRetrievalDelta, type OverlayReviewInput, type OverlayReviewView, type OwnershipPageView, PACKAGE_VERSION, PARITY_CODES, PARITY_EXCERPT_LIMIT, PROJECTED_ENTRY_TYPES, PROPOSABLE_RELATION_KINDS, PROXIMITY_EDGE_KINDS, PUBLIC_CLAIMS_CONTENT_HASH_ALGO, PUBLIC_CLAIMS_SCHEMA_VERSION, PUBLIC_PARITY_SCHEMA_VERSION, type ParityCode, type ParityFinding, type ParseIssue, type ParseResult, PeerMissingError, type PendingEnrichment, PendingEnrichmentSchema, type PriorFile, type PriorSnapshot, ProjectIdentitySchema, type ProjectRetrievalOptions, ProposalOriginSchema, type Provenance, ProvenanceSchema, type ProviderToolTelemetry, type ProximityOptions, type PublicClaim, type PublicClaimException, type PublicClaimsV1, PublicClaimsV1Schema, type PublicParityReportV1, PublicParityReportV1Schema, type QualityScorecard, type QualityScorecardInput, type QueryKind, type QueryRequest, type QueryResult, REGISTRY_AGENT_PROTOCOL_V2, RELEVANCE_FLOOR, RENDER_TEMPLATES, RENDER_TEMPLATE_NAMES, RETRIEVAL_BENCH_SCHEMA_VERSION, RETRIEVAL_INDEX_SCHEMA_VERSION, RETRIEVAL_PROJECTION_VERSION, ROLE_TARGET_KINDS, ROLE_TASK, RUBRIC_MECHANICAL_CHECKS, type RankExplanation, type RankOptions, type RankedEntry, type ReconciliationReportV1, ReconciliationReportV1Schema, type RegistryAgentAdapter, type RegistryAgentContext, type RegistryAgentMetadata, type RegistryAgentRunner, type RegistryEnrichmentContext, type RejectedEnrichment, RejectedEnrichmentSchema, RelationSchema, type RenderArtifactOptions, type RenderArtifactResult, type RenderTemplateInfo, type RenderTemplateName, type RenderedPage, type ReportableDiagnostic, type RepositoryInputs, RepositoryInputsSchema, type RepositoryInputsV1, type ResolveContext, type ResolvedClaim, type ResolvedRole, type RetrievalBaselineV1, RetrievalBaselineV1Schema, type RetrievalBenchResultV1, RetrievalBenchResultV1Schema, type RetrievalCaseOutcome, type RetrievalComparison, type RetrievalComparisonStatus, type RetrievalEdge, type RetrievalEntry, RetrievalEntrySchema, type RetrievalFields, type RetrievalGraph, type RetrievalIndexV1, RetrievalIndexV1Schema, type RetrievalKind, RetrievalKindSchema, type RetrievalMetadata, RetrievalMetadataSchema, type RetrievalMetricDelta, type RetrievalMetrics, type RetrievalOverlayInput, type RetrievalRoutes, type RetrievalSuite, type RetrievalSuiteCase, RetrievalSuiteCaseSchema, RetrievalSuiteSchema, type RetrievedDocument, type Retriever, type RetrieverRequest, type ReuseLedger, type RubricItem, type RubricMechanicalCheck, type RuleEngineOptions, type RuleEvaluationResult, type RuleFinding, RuleId, type RuleMode, RuleSeverity, RulesConfig, type RunRetrievalBenchOptions, SEARCH_LEXICON_VERSION, SEARCH_STOPWORDS, SEVERITY_ORDER, SOURCE_EXTENSIONS, STUDY_ADJUDICATION_METHOD, STUDY_EXPECTATIONS_SCHEMA_VERSION, STUDY_METRICS_SCHEMA_VERSION, STUDY_PROTOCOL_CONTENT_HASH_ALGO, STUDY_PROTOCOL_SCHEMA_VERSION, STUDY_PROVIDER_CLI_CONTENT_HASH_ALGO, STUDY_PROVIDER_CLI_SCHEMA_VERSION, STUDY_REPOSITORY_CONFIG_CONTENT_HASH_ALGO, STUDY_REPOSITORY_CONFIG_SCHEMA_VERSION, STUDY_RUNNER_CONTENT_HASH_ALGO, STUDY_RUNNER_SCHEMA_VERSION, STUDY_TASK_SUITE_CONTENT_HASH_ALGO, STUDY_TASK_SUITE_SCHEMA_VERSION, STUDY_VERIFICATION_CONTENT_HASH_ALGO, STUDY_VERIFICATION_SCHEMA_VERSION, SUMMARY_MAX, type SafeWalkOptions, type SafeWalkResult, type SafetyFinding, type ScoreComponents, type ScorecardCriterion, type ScorecardDimension, type ScorecardStatus, type SearchMatch, type SearchOptions, type SearchTokenizeOptions, type Severity, type SnapshotForDigest, type StudyAdjudicatorCli, type StudyExpectationCheck, type StudyExpectationOutcome, type StudyExpectationsV1, StudyExpectationsV1Schema, type StudyMetricComparisonV1, type StudyMetricGroupV1, type StudyMetricSetV1, type StudyMetricsReportV1, StudyMetricsReportV1Schema, type StudyPrivacyScan, type StudyProtocolV1, StudyProtocolV1Schema, type StudyProviderCli, type StudyProviderCliConfigV1, StudyProviderCliConfigV1Schema, type StudyProviderCostPricing, type StudyRepositoryConfigV1, StudyRepositoryConfigV1Schema, type StudyRetrievalSuite, type StudyTaskSuiteV1, StudyTaskSuiteV1Schema, type StudyTaskV1, type StudyVerificationBindingV1, StudyVerificationBindingV1Schema, TOKEN_METHOD, type TaskEvaluation, type TaskEvaluationInput, type TaskExecution, type TaskExecutionV1, type TaskOutcomeStatus, TemplateError, type TemplateSource, type TemplateVariables, type UnresolvedExpectation, type ValidateStudyTaskSuiteOptions, WORKFLOW_STAGES, type WatchIndexOptions, type WorkflowExecutionResult, type WorkflowOptions, type WorkflowRunV1, WorkflowRunV1Schema, type WorkflowStage, type WorkflowStageContext, type WorkflowStageHandler, type WorkflowState, WorkflowStateSchema, WorkflowStepSchema, WorkflowTransitionSchema, adjudicateControlledStudyObservation, adjudicatedLedgerInputHash, adjudicatorRubric, analyzeMarkdownDocument, applyBudget, applyDocumentationDeclarations, applyEnrichmentAdjudication, applyFixProposal, applyGeneratedRegions, approvalsDir, approveFixProposal, approximateCounter, areaPagesView, areaSuggestionCoverage, areaSuggestions, assertObservedSurvive, assistedArmReadiness, auditDocumentation, batchContextPacks, benchmarkFixture, bm25Idf, bm25Search, budgetedHandoff, buildBm25Index, buildContextPacks, buildDocBridgeIndex, buildKnowledgeGraph, buildLookup, cacheHitRate, calculateStudyCostUsd, calculateStudyMetrics, canonicalJsonV1, canonicality, centrality, changeDigestView, checkIndexReproducibility, checkPublicParity, checkStudyExpectations, chunksFromMarkdown, claimPattern, claimSurfaces, classifyMemoryCandidates, collectPackages, compareBenchmarkSnapshots, compareRetrievalBaseline, compileBudget, compileTemplate, containedPath, contentHashForArtifactV1, contextPackHash, conventionalAreaPath, createAnalyzerRegistry, createApprovalGateMirror, createArtifactNormalizationProposal, createControlledStudyLedger, createControlledStudyObservation, createControlledStudyRunPlan, createControlledStudyVerifiedResult, createDocBridgeGraphMemory, createDocBridgeRag, createDocBridgeRetriever, createEnrichmentCache, createFileApprovalStore, createHistoricalEvidenceRegistry, createMarkdownLinkFixProposal, createMemoryEnrichmentCache, createPublicClaims, createRegistryAgentAdapter, createRetrievalBaseline, createStudyExpectations, createStudyProtocol, createStudyProviderCliConfig, createStudyRepositoryConfig, createStudyTaskSuite, createStudyVerificationBinding, decideEnrichment, declaredAudience, declaredExportsOf, defaultPromotionDraftPath, deriveAreas, discoverNxProjects, discoverRepository, docBridgePatternMarkdown, docBridgePatternPayload, doctorBadgeMetrics, documentClassification, draftMemoryPromotion, effectiveEnrichment, enrichmentAdjudicationId, enrichmentApprovalId, enrichmentCacheKey, enrichmentCost, enrichmentFindings, enrichmentOverlayContentHash, enrichmentOverlayHash, enrichmentOverlayPath, enrichmentProposalId, enrichmentProposalKey, enrichmentStability, entityContentHash, entityId, evaluateQualityScorecard, evaluateRules, evaluateStudyTask, exceptionFor, expandSearchToken, exportedNames, exportsOf, fileContentHash, findingFromDiagnostic, findingsFromDiagnostics, fitContextPack, fixApprovalId, foldAccents, formatBenchmarkText, formatControlledStudyRunPlanText, formatControlledStudyRunText, formatDoctorBadgeJson, formatDoctorBadgeMarkdown, formatDoctorText, formatDocumentationAuditText, formatDocumentationStandardText, formatEcosystemLlmsBlock, formatEcosystemLlmsSection, formatEnrichmentStatsText, formatEnrichmentText, formatHistoricalEvidenceText, formatKnowledgeLookupText, formatKnowledgeSearchText, formatOverlayRetrievalDeltaText, formatPublicParityText, formatRetrievalBenchText, formatRetrievalComparisonText, formatRetrievedDocuments, formatStudyExpectationsText, formatStudyMetricsText, formatStudyProtocolText, formatStudyProviderCliText, formatStudyTaskSuiteText, formatStudyVerificationText, fuzzyMatchList, generatedRegionHash, generatedRegionOpen, handleMcpRequest, handoffForEntity, hasRetrievalExpectations, hasSearchToken, importCycles, independentlyAdjudicateStudyLedger, independentlyAdjudicateStudyObservation, indexConfigurationHash, indexFilePath, indexPriorSnapshot, ingestAgentMemory, ingestCursorRules, ingestMemoryCandidates, installMcpConfig, inventedReferenceCount, isEnrichmentKind, isProjectedEntry, isRenderTemplateName, isSearchStopword, jaro, jaroWinkler, knowledgeLookup, knowledgeSearch, layer1InstallHint, listApprovals, listEnrichment, llmsTxtVariables, loadApprovalGate, loadDocBridgeIndex, loadFederatedChunks, loadFreshDocBridgeIndex, loadRegistryAgentMetadata, loadRegistryAgentRunner, loadWorkflowManifest, loadWorkflowStepOutput, markdownContentHash, matchesRetrievalExpectation, mcpSnippet, measureAgentEfficiency, measureAgentTaskEfficiency, measureBenchmark, measureOverlayRetrievalDelta, measureProviderToolTelemetry, mechanicalRubricItems, modelRubricItems, moduleUniverseFingerprint, normalizeAgentHandoff, overlayProposalIds, overlayReviewView, ownershipPagesView, packByteBudget, pageFileName, parseAgentHandoff, parseAgentProposal, parseAgentSearch, parseControlledStudyLedger, parseControlledStudyObservation, parseControlledStudyRunPlan, parseControlledStudyVerifiedResult, parseDiscoverySnapshot, parseDocBridgeConfig, parseDocBridgeIndex, parseDocumentationDeclarations, parseEnrichmentOverlay, parseFixProposal, parseHistoricalEvidenceRegistry, parseLlmsTxtLinks, parseMarkdownDocument, parseMemoryCandidate, parsePublicClaims, parsePublicParityReport, parseReconciliationReport, parseRetrievalBaseline, parseRetrievalBenchResult, parseRetrievalSuite, parseRuleId, parseRuleSeverity, parseStudyExpectations, parseStudyMetrics, parseStudyProtocol, parseStudyProviderCliConfig, parseStudyRepositoryConfig, parseStudyTaskSuite, parseStudyVerificationBinding, parseWorkflowRun, partitionEnrichmentProposals, persistControlledStudyLedger, persistIndependentlyAdjudicatedLedger, persistRegistryAgentProposal, projectEnrichmentOverlay, projectRetrievalIndex, promoteMemoryToGithubPr, providerForStudyExecution, proximity, rankRetrieval, rankedOutput, readEnrichmentOverlay, reconcileKnowledge, recordApproval, redactSecrets, redactValue, relationConfidence, relationId, renderArtifact, renderClaim, renderCompiledTemplate, renderNamedTemplate, renderOfflineReport, renderOfflineReportArtifact, renderTemplate, renderTemplateWithKnap, replayableRelations, repositoryInputs, resolutionFingerprint, resolveClaim, resolveEnrichmentRoles, resolveFuzzyReference, resolveGateIds, resolveHandoffEntry, resolveLookupEntry, resolveRoot, resolveSearchParams, resolveSearchWeights, resolveTemplateSource, respondMcpRequest, retrieveDocBridgeChunks, retrieveDocBridgeDocuments, retrieveHybridChunks, reuseCoverage, revalidateEnrichmentOverlay, rubricItemCheck, rubricItemText, runChatOnce, runControlledCommand, runControlledStudy, runDoctor, runDocumentationStandardV1, runEnrichment, runGate, runGates, runQuery, runRetrievalBench, runWorkflow, safeParseAgentHandoff, safeWalkFiles, safeWalkOptions, scanHumanDocRecords, scanHumanDocs, scanMemorySafety, scanStudyPublicationArtifact, sealEnrichmentOverlay, searchIndex, searchTokens, seededRandom, selectTaskExecutions, sha256NormalizedV1, singularizeSearchToken, snapshotObservationHash, startInkChat, startMcpStdioServer, studyRetrievalSuite, taskRetrievalQueries, templateFor, toKnowledgeEntry, tokenizeSearchText, unobservedOwnershipPaths, upsertControlledStudyObservation, validateEnrichmentAdjudication, validateEnrichmentProposal, validateHistoricalEvidenceRegistry, validateStudyProviderCommand, validateStudyTaskSuite, verifyGeneratedRegions, watchDocBridgeIndex, weakerConfidence, withAcceptedRelations, wrapGeneratedRegion, writeEnrichmentOverlay, writePromotionDraft, writeRenderedPages };