{ "$schema": "https://ckm.dev/schemas/v2.json", "version": "2.0.0", "meta": { "project": "forge-ts", "language": "typescript", "generator": "forge-ts@0.22.0", "generated": "2026-04-13T23:10:12.265Z" }, "concepts": [ { "id": "concept-AuditEventType", "name": "AuditEventType", "slug": "auditeventtype", "what": "Discriminated event types recorded in the audit trail.", "tags": [ "domain" ] }, { "id": "concept-AuditEvent", "name": "AuditEvent", "slug": "auditevent", "what": "A single audit event recorded in the forge-ts audit trail.", "tags": [ "event" ], "properties": [ { "name": "timestamp", "type": { "canonical": "string" }, "description": "ISO 8601 timestamp of when the event occurred.", "required": true, "default": null }, { "name": "event", "type": { "canonical": "object", "original": "AuditEventType" }, "description": "Discriminated event type.", "required": true, "default": null }, { "name": "user", "type": { "canonical": "string" }, "description": "OS username of the actor (falls back to \"unknown\").", "required": true, "default": null }, { "name": "reason", "type": { "canonical": "string", "original": "string | undefined" }, "description": "Mandatory for lock/unlock/bypass events; optional otherwise.", "required": true, "default": null }, { "name": "details", "type": { "canonical": "object", "original": "Record" }, "description": "Event-specific payload.", "required": true, "default": null } ] }, { "id": "concept-ReadAuditOptions", "name": "ReadAuditOptions", "slug": "readaudit", "what": "Options for reading the audit log.", "tags": [ "options" ], "properties": [ { "name": "limit", "type": { "canonical": "string", "original": "number | undefined" }, "description": "Maximum number of events to return.", "required": true, "default": null }, { "name": "eventType", "type": { "canonical": "string", "original": "AuditEventType | undefined" }, "description": "Filter to a single event type.", "required": true, "default": null } ] }, { "id": "concept-BypassConfig", "name": "BypassConfig", "slug": "bypass", "what": "Configuration for the bypass budget system.", "tags": [ "config" ], "properties": [ { "name": "dailyBudget", "type": { "canonical": "number" }, "description": "Maximum number of bypasses allowed per calendar day. Default: 3", "required": true, "default": null }, { "name": "durationHours", "type": { "canonical": "number" }, "description": "Duration in hours before a bypass automatically expires. Default: 24", "required": true, "default": null } ] }, { "id": "concept-BypassRecord", "name": "BypassRecord", "slug": "bypassrecord", "what": "A single bypass record stored in `.forge-bypass.json`.", "tags": [ "data" ], "properties": [ { "name": "id", "type": { "canonical": "string" }, "description": "Unique identifier for this bypass.", "required": true, "default": null }, { "name": "createdAt", "type": { "canonical": "string" }, "description": "ISO 8601 timestamp when the bypass was created.", "required": true, "default": null }, { "name": "expiresAt", "type": { "canonical": "string" }, "description": "ISO 8601 timestamp when the bypass expires.", "required": true, "default": null }, { "name": "reason", "type": { "canonical": "string" }, "description": "Mandatory justification for why the bypass was created.", "required": true, "default": null }, { "name": "rule", "type": { "canonical": "string" }, "description": "Specific rule code bypassed (e.g., \"E009\"), or \"all\" for a blanket bypass.", "required": true, "default": null }, { "name": "user", "type": { "canonical": "string" }, "description": "OS username of the actor who created the bypass.", "required": true, "default": null } ] }, { "id": "concept-ForgeConfig", "name": "ForgeConfig", "slug": "forge", "what": "Full configuration for a forge-ts run.", "tags": [ "config" ], "properties": [ { "name": "rootDir", "type": { "canonical": "string" }, "description": "Root directory of the project.", "required": true, "default": null }, { "name": "tsconfig", "type": { "canonical": "string" }, "description": "Path to the `tsconfig.json` used for TypeScript compilation and type resolution.", "required": true, "default": null }, { "name": "outDir", "type": { "canonical": "string" }, "description": "Output directory for all generated documentation artifacts.", "required": true, "default": null }, { "name": "enforce", "type": { "canonical": "string", "original": "{ enabled: boolean; minVisibility: Visibility | \"public\" | \"beta\" | \"internal\" | \"private\"; strict: boolean; rules: EnforceRules; ignoreFile?: string; }" }, "description": "Enforcement configuration — controls which TSDoc rules run and at what severity.", "required": true, "default": null }, { "name": "doctest", "type": { "canonical": "object", "original": "{ enabled: boolean; cacheDir: string; }" }, "description": "DocTest configuration — controls execution of `@example` blocks as live tests.", "required": true, "default": null }, { "name": "api", "type": { "canonical": "object", "original": "{ enabled: boolean; openapi: boolean; openapiPath: string; }" }, "description": "API generation configuration — controls OpenAPI spec output.", "required": true, "default": null }, { "name": "gen", "type": { "canonical": "string", "original": "{ enabled: boolean; formats: Array<\"markdown\" | \"mdx\">; llmsTxt: boolean; readmeSync: boolean; ssgTarget?: \"docusaurus\" | \"mintlify\" | \"nextra\" | \"vitepress\" | \"fumadocs\"; ckm?: boolean; }" }, "description": "Documentation generation configuration — controls what files are written by `forge gen`.", "required": true, "default": null }, { "name": "skill", "type": { "canonical": "array", "original": "{ enabled?: boolean; customSections?: Array<{ heading: string; content: string; }>; extraGotchas?: string[]; }" }, "description": "SKILL.md generation settings.", "required": true, "default": null }, { "name": "tsdoc", "type": { "canonical": "string", "original": "{ writeConfig: boolean; customTags: Array<{ tagName: string; syntaxKind: \"block\" | \"inline\" | \"modifier\"; }>; enforce: { core: \"error\" | \"warn\" | \"off\"; extended: \"error\" | \"warn\" | \"off\"; discretionary: \"error\" | \"warn\" | \"off\"; }; }" }, "description": "TSDoc ecosystem configuration — tag definitions and group-level enforcement.", "required": true, "default": null }, { "name": "bypass", "type": { "canonical": "object", "original": "{ dailyBudget: number; durationHours: number; }" }, "description": "Bypass budget — controls how many temporary rule suppressions are allowed.", "required": true, "default": null }, { "name": "guides", "type": { "canonical": "array", "original": "{ enabled: boolean; autoDiscover: boolean; custom: Array<{ slug: string; title: string; sources: string[]; }>; }" }, "description": "Guide generation configuration — controls intelligent guide page output.", "required": true, "default": null }, { "name": "guards", "type": { "canonical": "array", "original": "{ tsconfig: { enabled: boolean; requiredFlags: string[]; }; biome: { enabled: boolean; lockedRules: string[]; }; packageJson: { enabled: boolean; minNodeVersion: string; requiredFields: string[]; }; }" }, "description": "Downstream config drift guards — validate tooling config files stay in sync.", "required": true, "default": null }, { "name": "_configWarnings", "type": { "canonical": "array", "original": "string[] | undefined" }, "description": "Warnings generated during config loading (e.g., unknown keys, failed imports).", "required": true, "default": null }, { "name": "project", "type": { "canonical": "array", "original": "{ repository?: string; homepage?: string; packageName?: string; description?: string; version?: string; bin?: Record; scripts?: Record; keywords?: string[]; }" }, "description": "Project metadata — auto-detected from `package.json` when not provided.", "required": true, "default": null } ] }, { "id": "concept-ForgeResult", "name": "ForgeResult", "slug": "forge", "what": "The result of a forge-ts compilation pass.", "tags": [ "result" ], "properties": [ { "name": "success", "type": { "canonical": "boolean" }, "description": "Whether the run succeeded without errors.", "required": true, "default": null }, { "name": "symbols", "type": { "canonical": "array", "original": "ForgeSymbol[]" }, "description": "All symbols extracted during this run.", "required": true, "default": null }, { "name": "errors", "type": { "canonical": "array", "original": "ForgeError[]" }, "description": "Errors that caused or would cause failure.", "required": true, "default": null }, { "name": "warnings", "type": { "canonical": "array", "original": "ForgeWarning[]" }, "description": "Non-fatal warnings.", "required": true, "default": null }, { "name": "duration", "type": { "canonical": "number" }, "description": "Wall-clock duration of the run in milliseconds.", "required": true, "default": null }, { "name": "writtenFiles", "type": { "canonical": "array", "original": "string[] | undefined" }, "description": "Absolute paths of files written during this run (populated by gen).", "required": true, "default": null } ] }, { "id": "concept-ReferenceEntry", "name": "ReferenceEntry", "slug": "referenceentry", "what": "A single entry in the generated API reference.", "tags": [ "data" ], "properties": [ { "name": "name", "type": { "canonical": "string" }, "description": "Symbol name.", "required": true, "default": null }, { "name": "kind", "type": { "canonical": "string", "original": "\"function\" | \"class\" | \"interface\" | \"type\" | \"enum\" | \"variable\" | \"method\" | \"property\" | \"file\"" }, "description": "Symbol kind.", "required": true, "default": null }, { "name": "summary", "type": { "canonical": "string", "original": "string | undefined" }, "description": "TSDoc summary.", "required": true, "default": null }, { "name": "signature", "type": { "canonical": "string", "original": "string | undefined" }, "description": "Human-readable type signature.", "required": true, "default": null }, { "name": "visibility", "type": { "canonical": "object", "original": "Visibility" }, "description": "Resolved visibility level.", "required": true, "default": null }, { "name": "deprecated", "type": { "canonical": "string", "original": "string | undefined" }, "description": "Deprecation notice, if present.", "required": true, "default": null }, { "name": "params", "type": { "canonical": "array", "original": "{ name: string; description: string; type?: string; }[] | undefined" }, "description": "Documented parameters.", "required": true, "default": null }, { "name": "returns", "type": { "canonical": "string", "original": "{ description: string; type?: string; } | undefined" }, "description": "Documented return value.", "required": true, "default": null }, { "name": "throws", "type": { "canonical": "array", "original": "{ type?: string; description: string; }[] | undefined" }, "description": "Documented thrown exceptions.", "required": true, "default": null }, { "name": "examples", "type": { "canonical": "array", "original": "{ code: string; language: string; }[] | undefined" }, "description": "Code examples from TSDoc `@example` tags.", "required": true, "default": null }, { "name": "children", "type": { "canonical": "array", "original": "ReferenceEntry[] | undefined" }, "description": "Nested child symbols (class methods, interface properties, enum members).", "required": true, "default": null }, { "name": "location", "type": { "canonical": "object", "original": "{ filePath: string; line: number; }" }, "description": "Source file location.", "required": true, "default": null } ] }, { "id": "concept-ForgeLoggerOptions", "name": "ForgeLoggerOptions", "slug": "forgelogger", "what": "Options for configuring the forge-ts logger at CLI startup.", "tags": [ "options" ], "properties": [ { "name": "quiet", "type": { "canonical": "string", "original": "boolean | undefined" }, "description": "Suppress all consola output (--quiet flag).", "required": true, "default": null }, { "name": "json", "type": { "canonical": "string", "original": "boolean | undefined" }, "description": "JSON output mode (--json flag). LAFS handles JSON; suppress consola.", "required": true, "default": null }, { "name": "verbose", "type": { "canonical": "string", "original": "boolean | undefined" }, "description": "Enable debug-level output (--verbose flag).", "required": true, "default": null } ] }, { "id": "concept-AuditResult", "name": "AuditResult", "slug": "audit", "what": "Typed result for the `audit` command.", "tags": [ "result" ], "properties": [ { "name": "success", "type": { "canonical": "boolean" }, "description": "Whether the audit log was read successfully.", "required": true, "default": null }, { "name": "count", "type": { "canonical": "number" }, "description": "Number of events returned.", "required": true, "default": null }, { "name": "events", "type": { "canonical": "array", "original": "AuditEvent[]" }, "description": "The audit events, newest first.", "required": true, "default": null } ] }, { "id": "concept-BarometerResult", "name": "BarometerResult", "slug": "barometer", "what": "Full barometer output written to `.forge/barometer.json`.", "tags": [ "result" ], "properties": [ { "name": "$schema", "type": { "canonical": "string" }, "description": "JSON schema URL.", "required": true, "default": null }, { "name": "version", "type": { "canonical": "string" }, "description": "Barometer format version.", "required": true, "default": null }, { "name": "project", "type": { "canonical": "string" }, "description": "Project name from package.json or config.", "required": true, "default": null }, { "name": "generated", "type": { "canonical": "string" }, "description": "ISO 8601 timestamp of when the barometer was generated.", "required": true, "default": null }, { "name": "symbolCount", "type": { "canonical": "number" }, "description": "Total number of exported symbols analyzed.", "required": true, "default": null }, { "name": "questions", "type": { "canonical": "array", "original": "BarometerQuestion[]" }, "description": "Generated questions with ground-truth answers.", "required": true, "default": null }, { "name": "rubric", "type": { "canonical": "array", "original": "{ scale: BarometerRatingBand[]; scoring: string; }" }, "description": "Scoring rubric for evaluating documentation effectiveness.", "required": true, "default": null }, { "name": "instructions", "type": { "canonical": "string", "original": "BarometerInstructions | undefined" }, "description": "Agent instructions — present only in `--questions-only` output.", "required": true, "default": null } ] }, { "id": "concept-BarometerScoreResult", "name": "BarometerScoreResult", "slug": "barometerscore", "what": "Full barometer score output.", "tags": [ "result" ], "properties": [ { "name": "score", "type": { "canonical": "number" }, "description": "Score as a percentage (0-100).", "required": true, "default": null }, { "name": "rating", "type": { "canonical": "string" }, "description": "Rating band label (e.g. \"Elite SSoT\").", "required": true, "default": null }, { "name": "ratingDescription", "type": { "canonical": "string" }, "description": "Rating band description.", "required": true, "default": null }, { "name": "correct", "type": { "canonical": "number" }, "description": "Number of fully correct answers.", "required": true, "default": null }, { "name": "partial", "type": { "canonical": "number" }, "description": "Number of partially correct answers.", "required": true, "default": null }, { "name": "wrong", "type": { "canonical": "number" }, "description": "Number of wrong answers.", "required": true, "default": null }, { "name": "total", "type": { "canonical": "number" }, "description": "Total questions scored.", "required": true, "default": null }, { "name": "missed", "type": { "canonical": "array", "original": "BarometerScoredAnswer[]" }, "description": "Details for every non-correct answer.", "required": true, "default": null } ] }, { "id": "concept-FrontmatterResult", "name": "FrontmatterResult", "slug": "frontmatter", "what": "Result of parsing frontmatter from markdown/MDX content.", "tags": [ "result" ], "properties": [ { "name": "body", "type": { "canonical": "string" }, "description": "The body content without the frontmatter block.", "required": true, "default": null }, { "name": "data", "type": { "canonical": "object", "original": "Record" }, "description": "The parsed frontmatter data as a key-value map.", "required": true, "default": null } ] }, { "id": "concept-SiteGeneratorOptions", "name": "SiteGeneratorOptions", "slug": "sitegenerator", "what": "Options controlling the doc site generator.", "tags": [ "options" ], "properties": [ { "name": "format", "type": { "canonical": "string", "original": "\"markdown\" | \"mdx\"" }, "description": "Output format", "required": true, "default": null }, { "name": "ssgTarget", "type": { "canonical": "string", "original": "\"docusaurus\" | \"mintlify\" | \"nextra\" | \"vitepress\" | \"fumadocs\" | undefined" }, "description": "SSG target for frontmatter.", "required": true, "default": null }, { "name": "projectName", "type": { "canonical": "string" }, "description": "Project name", "required": true, "default": null }, { "name": "projectDescription", "type": { "canonical": "string", "original": "string | undefined" }, "description": "Project description.", "required": true, "default": null }, { "name": "repositoryUrl", "type": { "canonical": "string", "original": "string | undefined" }, "description": "Repository URL (auto-detected from package.json).", "required": true, "default": null }, { "name": "packageName", "type": { "canonical": "string", "original": "string | undefined" }, "description": "npm package name for install commands.", "required": true, "default": null } ] }, { "id": "concept-CKMConfigEntry", "name": "CKMConfigEntry", "slug": "ckmconfigentry", "what": "A single entry in the configuration schema.", "tags": [ "data" ] }, { "id": "concept-MarkdownOptions", "name": "MarkdownOptions", "slug": "markdown", "what": "Options controlling Markdown output.", "tags": [ "options" ], "properties": [ { "name": "mdx", "type": { "canonical": "string", "original": "boolean | undefined" }, "description": "Whether to use MDX syntax (default: Markdown).", "required": true, "default": null } ] }, { "id": "concept-ReadmeSyncOptions", "name": "ReadmeSyncOptions", "slug": "readmesync", "what": "Options controlling README sync behaviour.", "tags": [ "options" ], "properties": [ { "name": "badge", "type": { "canonical": "string", "original": "boolean | undefined" }, "description": "Include a \"Documented with forge-ts\" badge above the API table.", "required": true, "default": null }, { "name": "includeExamples", "type": { "canonical": "string", "original": "boolean | undefined" }, "description": "Include first", "required": true, "default": null } ] }, { "id": "concept-SSGConfigFile", "name": "SSGConfigFile", "slug": "ssgconfigfile", "what": "A single generated SSG configuration file.", "tags": [ "domain" ], "properties": [ { "name": "path", "type": { "canonical": "string" }, "description": "Relative path from outDir (e.g., \"mint.json\", \"_meta.json\")", "required": true, "default": null }, { "name": "content", "type": { "canonical": "string" }, "description": "File content", "required": true, "default": null } ] }, { "id": "concept-GenerateOptions", "name": "GenerateOptions", "slug": "generate", "what": "Options for the generation pipeline.", "tags": [ "options" ], "properties": [ { "name": "forceStubs", "type": { "canonical": "string", "original": "boolean | undefined" }, "description": "When true, overwrite stub pages even if they already exist on disk. Normally stub pages (concepts, guides, faq, contributing, changelog) are only created on the first build to preserve manual edits. Use this to reset stubs to their scaffolding state.", "required": true, "default": null } ] }, { "id": "concept-BuildResult", "name": "BuildResult", "slug": "build", "what": "Typed result for the `build` command.", "tags": [ "result" ], "properties": [ { "name": "success", "type": { "canonical": "boolean" }, "description": "Whether the build succeeded.", "required": true, "default": null }, { "name": "summary", "type": { "canonical": "object", "original": "{ steps: number; succeeded: number; failed: number; duration: number; }" }, "description": "Aggregate pipeline counts — always present.", "required": true, "default": null }, { "name": "steps", "type": { "canonical": "array", "original": "BuildStep[]" }, "description": "Per-step details.", "required": true, "default": null }, { "name": "generatedFiles", "type": { "canonical": "array", "original": "string[] | undefined" }, "description": "Files written during the build — present at standard and full MVI levels.", "required": true, "default": null } ] }, { "id": "concept-BypassCreateResult", "name": "BypassCreateResult", "slug": "bypasscreate", "what": "Typed result for the `bypass` command when creating a bypass.", "tags": [ "result" ], "properties": [ { "name": "success", "type": { "canonical": "boolean" }, "description": "Whether the bypass was successfully created.", "required": true, "default": null }, { "name": "bypass", "type": { "canonical": "object", "original": "BypassRecord" }, "description": "The bypass record that was created.", "required": true, "default": null }, { "name": "remainingBudget", "type": { "canonical": "number" }, "description": "Number of remaining bypass slots for today after creation.", "required": true, "default": null }, { "name": "dailyBudget", "type": { "canonical": "number" }, "description": "The configured daily budget.", "required": true, "default": null } ] }, { "id": "concept-BypassStatusResult", "name": "BypassStatusResult", "slug": "bypassstatus", "what": "Typed result for the `bypass --status` command.", "tags": [ "result" ], "properties": [ { "name": "success", "type": { "canonical": "boolean" }, "description": "Always true for status queries.", "required": true, "default": null }, { "name": "activeBypasses", "type": { "canonical": "array", "original": "BypassRecord[]" }, "description": "Active (non-expired) bypass records.", "required": true, "default": null }, { "name": "remainingBudget", "type": { "canonical": "number" }, "description": "Number of remaining bypass slots for today.", "required": true, "default": null }, { "name": "dailyBudget", "type": { "canonical": "number" }, "description": "The configured daily budget.", "required": true, "default": null }, { "name": "expiredRemoved", "type": { "canonical": "number" }, "description": "Number of expired bypasses that were cleaned up.", "required": true, "default": null } ] }, { "id": "concept-FormatOptions", "name": "FormatOptions", "slug": "format", "what": "Options that control how `formatResults` renders its output.", "tags": [ "options" ], "properties": [ { "name": "colors", "type": { "canonical": "boolean" }, "description": "Emit ANSI colour escape sequences when `true`.", "required": true, "default": null }, { "name": "verbose", "type": { "canonical": "boolean" }, "description": "When `true`, include the symbol's type signature alongside each diagnostic so the reader has immediate context.", "required": true, "default": null } ] }, { "id": "concept-CheckResult", "name": "CheckResult", "slug": "check", "what": "Typed result for the `check` command.", "tags": [ "result" ], "properties": [ { "name": "success", "type": { "canonical": "boolean" }, "description": "Whether the check passed without errors.", "required": true, "default": null }, { "name": "summary", "type": { "canonical": "object", "original": "{ errors: number; warnings: number; files: number; symbols: number; duration: number; }" }, "description": "Aggregate counts — always present regardless of MVI level.", "required": true, "default": null }, { "name": "triage", "type": { "canonical": "string", "original": "CheckTriage | undefined" }, "description": "Triage data for prioritizing fixes — present when errors 0 (except minimal).", "required": true, "default": null }, { "name": "byFile", "type": { "canonical": "array", "original": "CheckFileGroup[] | undefined" }, "description": "Per-file breakdown — present at standard and full MVI levels, paginated.", "required": true, "default": null }, { "name": "page", "type": { "canonical": "string", "original": "CheckPage | undefined" }, "description": "Pagination metadata when byFile is paginated.", "required": true, "default": null }, { "name": "filters", "type": { "canonical": "string", "original": "{ rule?: string; file?: string; } | undefined" }, "description": "Active filters applied to this result.", "required": true, "default": null }, { "name": "nextCommand", "type": { "canonical": "string", "original": "string | undefined" }, "description": "CLI command hint for the agent to run next.", "required": true, "default": null } ] }, { "id": "concept-InitHooksResult", "name": "InitHooksResult", "slug": "inithooks", "what": "Result of the `init hooks` command.", "tags": [ "result" ], "properties": [ { "name": "success", "type": { "canonical": "boolean" }, "description": "Whether the hook scaffolding succeeded.", "required": true, "default": null }, { "name": "hookManager", "type": { "canonical": "object", "original": "HookManager" }, "description": "The detected or chosen hook manager.", "required": true, "default": null }, { "name": "summary", "type": { "canonical": "object", "original": "{ filesWritten: number; filesSkipped: number; }" }, "description": "Summary of what was created.", "required": true, "default": null }, { "name": "files", "type": { "canonical": "array", "original": "string[]" }, "description": "Relative paths of all files written.", "required": true, "default": null }, { "name": "instructions", "type": { "canonical": "array", "original": "string[]" }, "description": "Post-scaffold instructions for the user.", "required": true, "default": null } ] }, { "id": "concept-InitProjectResult", "name": "InitProjectResult", "slug": "initproject", "what": "Result of the `init` (project setup) command.", "tags": [ "result" ], "properties": [ { "name": "success", "type": { "canonical": "boolean" }, "description": "Whether the init succeeded.", "required": true, "default": null }, { "name": "created", "type": { "canonical": "array", "original": "string[]" }, "description": "Files that were created.", "required": true, "default": null }, { "name": "skipped", "type": { "canonical": "array", "original": "string[]" }, "description": "Files that already existed and were skipped.", "required": true, "default": null }, { "name": "warnings", "type": { "canonical": "array", "original": "string[]" }, "description": "Warning messages collected during init.", "required": true, "default": null }, { "name": "environment", "type": { "canonical": "object", "original": "InitProjectEnvironment" }, "description": "Detected project environment.", "required": true, "default": null }, { "name": "nextSteps", "type": { "canonical": "array", "original": "string[]" }, "description": "Next steps for the user.", "required": true, "default": null }, { "name": "scriptsAdded", "type": { "canonical": "array", "original": "string[]" }, "description": "Scripts that were added to package.json (empty if none were added).", "required": true, "default": null } ] }, { "id": "concept-DoctorCheckStatus", "name": "DoctorCheckStatus", "slug": "doctorcheckstatus", "what": "Status of a single doctor check.", "tags": [ "state" ] }, { "id": "concept-DoctorCheckResult", "name": "DoctorCheckResult", "slug": "doctorcheck", "what": "Result of a single doctor check.", "tags": [ "result" ], "properties": [ { "name": "name", "type": { "canonical": "string" }, "description": "Name of the check.", "required": true, "default": null }, { "name": "status", "type": { "canonical": "object", "original": "DoctorCheckStatus" }, "description": "Status of the check.", "required": true, "default": null }, { "name": "message", "type": { "canonical": "string" }, "description": "Human-readable message.", "required": true, "default": null }, { "name": "fixable", "type": { "canonical": "boolean" }, "description": "Whether this issue can be auto-fixed with --fix.", "required": true, "default": null } ] }, { "id": "concept-DoctorResult", "name": "DoctorResult", "slug": "doctor", "what": "Result of the `doctor` command.", "tags": [ "result" ], "properties": [ { "name": "success", "type": { "canonical": "boolean" }, "description": "Whether all checks passed without errors.", "required": true, "default": null }, { "name": "checks", "type": { "canonical": "array", "original": "DoctorCheckResult[]" }, "description": "Individual check results.", "required": true, "default": null }, { "name": "summary", "type": { "canonical": "object", "original": "{ passed: number; warnings: number; errors: number; info: number; }" }, "description": "Summary counts.", "required": true, "default": null }, { "name": "fixed", "type": { "canonical": "array", "original": "string[]" }, "description": "Files that were fixed (only populated when --fix is used).", "required": true, "default": null } ] }, { "id": "concept-InitDocsResult", "name": "InitDocsResult", "slug": "initdocs", "what": "Result of the `init docs` command.", "tags": [ "result" ], "properties": [ { "name": "success", "type": { "canonical": "boolean" }, "description": "Whether the scaffold succeeded.", "required": true, "default": null }, { "name": "target", "type": { "canonical": "object", "original": "SSGTarget" }, "description": "The SSG target that was scaffolded.", "required": true, "default": null }, { "name": "summary", "type": { "canonical": "object", "original": "{ filesCreated: number; dependencies: number; scripts: number; }" }, "description": "Summary of what was created.", "required": true, "default": null }, { "name": "files", "type": { "canonical": "array", "original": "string[]" }, "description": "Relative paths of all files created.", "required": true, "default": null }, { "name": "instructions", "type": { "canonical": "array", "original": "string[]" }, "description": "Post-scaffold instructions for the user.", "required": true, "default": null } ] }, { "id": "concept-LockResult", "name": "LockResult", "slug": "lock", "what": "Typed result for the `lock` command.", "tags": [ "result" ], "properties": [ { "name": "success", "type": { "canonical": "boolean" }, "description": "Whether the lock was successfully created.", "required": true, "default": null }, { "name": "lockFile", "type": { "canonical": "string" }, "description": "Path to the lock file that was written.", "required": true, "default": null }, { "name": "lockedAt", "type": { "canonical": "string" }, "description": "ISO-8601 timestamp when the lock was created.", "required": true, "default": null }, { "name": "lockedBy", "type": { "canonical": "string" }, "description": "Identifier of who created the lock.", "required": true, "default": null }, { "name": "locked", "type": { "canonical": "object", "original": "{ rules: number; tsconfig: boolean; biome: boolean; }" }, "description": "Summary of what was locked.", "required": true, "default": null }, { "name": "overwrote", "type": { "canonical": "boolean" }, "description": "Whether a previous lock file was overwritten.", "required": true, "default": null } ] }, { "id": "concept-PrepublishResult", "name": "PrepublishResult", "slug": "prepublish", "what": "Typed result for the `prepublish` command.", "tags": [ "result" ], "properties": [ { "name": "success", "type": { "canonical": "boolean" }, "description": "Whether both check and build passed.", "required": true, "default": null }, { "name": "summary", "type": { "canonical": "object", "original": "{ steps: number; passed: number; failed: number; duration: number; }" }, "description": "Summary of the prepublish pipeline.", "required": true, "default": null }, { "name": "check", "type": { "canonical": "object", "original": "{ success: boolean; errors: number; warnings: number; duration: number; }" }, "description": "Result of the check step.", "required": true, "default": null }, { "name": "build", "type": { "canonical": "string", "original": "{ success: boolean; steps: number; succeeded: number; failed: number; duration: number; } | undefined" }, "description": "Result of the build step (absent if check failed and build was skipped).", "required": true, "default": null }, { "name": "skippedReason", "type": { "canonical": "string", "original": "string | undefined" }, "description": "If check failed, the reason build was skipped.", "required": true, "default": null } ] }, { "id": "concept-GeneratorOptions", "name": "GeneratorOptions", "slug": "generator", "what": "Options for virtual test file generation.", "tags": [ "options" ], "properties": [ { "name": "cacheDir", "type": { "canonical": "string" }, "description": "Directory where virtual test files will be written.", "required": true, "default": null } ] }, { "id": "concept-RunResult", "name": "RunResult", "slug": "run", "what": "Result of running the generated test files.", "tags": [ "result" ], "properties": [ { "name": "success", "type": { "canonical": "boolean" }, "description": "Whether all tests passed.", "required": true, "default": null }, { "name": "passed", "type": { "canonical": "number" }, "description": "Number of tests that passed.", "required": true, "default": null }, { "name": "failed", "type": { "canonical": "number" }, "description": "Number of tests that failed.", "required": true, "default": null }, { "name": "output", "type": { "canonical": "string" }, "description": "Combined stdout + stderr output from the test runner.", "required": true, "default": null }, { "name": "tests", "type": { "canonical": "array", "original": "TestCaseResult[]" }, "description": "Individual test results with name and status.", "required": true, "default": null } ] }, { "id": "concept-TestCaseResult", "name": "TestCaseResult", "slug": "testcase", "what": "The result of a single test case.", "tags": [ "result" ], "properties": [ { "name": "name", "type": { "canonical": "string" }, "description": "The full test name as reported by the runner.", "required": true, "default": null }, { "name": "passed", "type": { "canonical": "boolean" }, "description": "Whether this test passed.", "required": true, "default": null }, { "name": "sourceFile", "type": { "canonical": "string", "original": "string | undefined" }, "description": "The source file this test was generated from, if determinable.", "required": true, "default": null } ] }, { "id": "concept-TestResult", "name": "TestResult", "slug": "test", "what": "Typed result for the `test` command.", "tags": [ "result" ], "properties": [ { "name": "success", "type": { "canonical": "boolean" }, "description": "Whether all doctests passed.", "required": true, "default": null }, { "name": "summary", "type": { "canonical": "object", "original": "{ passed: number; failed: number; total: number; duration: number; }" }, "description": "Aggregate counts — always present regardless of MVI level.", "required": true, "default": null }, { "name": "failures", "type": { "canonical": "array", "original": "TestFailure[] | undefined" }, "description": "Per-failure details — present at standard and full MVI levels.", "required": true, "default": null } ] }, { "id": "concept-UnlockResult", "name": "UnlockResult", "slug": "unlock", "what": "Typed result for the `unlock` command.", "tags": [ "result" ], "properties": [ { "name": "success", "type": { "canonical": "boolean" }, "description": "Whether the unlock was successful.", "required": true, "default": null }, { "name": "reason", "type": { "canonical": "string" }, "description": "The reason provided for unlocking.", "required": true, "default": null }, { "name": "previousLockedBy", "type": { "canonical": "string", "original": "string | null" }, "description": "Who originally locked the config, if known.", "required": true, "default": null }, { "name": "previousLockedAt", "type": { "canonical": "string", "original": "string | null" }, "description": "When the config was originally locked, if known.", "required": true, "default": null } ] } ], "operations": [ { "id": "op-createBypass", "name": "createBypass", "what": "Creates a new bypass record, writes it to `.forge-bypass.json`, and appends an audit event.", "tags": [ "bypass", "forge", "audit" ], "preconditions": [ "Error when the daily bypass budget is exhausted." ], "inputs": [ { "name": "rootDir", "type": { "canonical": "any", "original": "unknown" }, "required": true, "description": "Absolute path to the project root directory." }, { "name": "reason", "type": { "canonical": "any", "original": "unknown" }, "required": true, "description": "Mandatory justification for the bypass." }, { "name": "rule", "type": { "canonical": "any", "original": "unknown" }, "required": true, "description": "Specific rule code to bypass (e.g., \"E009\"), or \"all\". Defaults to \"all\"." }, { "name": "config", "type": { "canonical": "any", "original": "unknown" }, "required": true, "description": "Optional bypass budget configuration overrides." } ], "outputs": { "type": { "canonical": "object", "original": "The created bypass record." }, "description": "The created bypass record." } }, { "id": "op-createLockManifest", "name": "createLockManifest", "what": "Creates a `ForgeLockManifest` from the current project config.", "tags": [ "forge", "lock" ], "inputs": [ { "name": "config", "type": { "canonical": "any", "original": "unknown" }, "required": true, "description": "The fully-resolved `ForgeConfig` to snapshot." }, { "name": "lockedBy", "type": { "canonical": "any", "original": "unknown" }, "required": true, "description": "Identifier of the user or agent creating the lock. Defaults to `\"forge-ts lock\"`." } ], "outputs": { "type": { "canonical": "object", "original": "A new lock manifest ready to be written with `writeLockFile`." }, "description": "A new lock manifest ready to be written with `writeLockFile`." } }, { "id": "op-validateAgainstLock", "name": "validateAgainstLock", "what": "Validates the current config against a locked manifest.", "tags": [ "lock" ], "inputs": [ { "name": "config", "type": { "canonical": "any", "original": "unknown" }, "required": true, "description": "The current fully-resolved `ForgeConfig`." }, { "name": "lock", "type": { "canonical": "any", "original": "unknown" }, "required": true, "description": "The lock manifest to validate against." } ], "outputs": { "type": { "canonical": "object", "original": "An array of `LockViolation` entries. Empty means no weakening detected." }, "description": "An array of `LockViolation` entries. Empty means no weakening detected." } }, { "id": "op-createWalker", "name": "createWalker", "what": "Creates an `ASTWalker` configured for the given forge config.", "tags": [ "forge" ], "inputs": [ { "name": "config", "type": { "canonical": "any", "original": "unknown" }, "required": true, "description": "The resolved `ForgeConfig` for the project." } ], "outputs": { "type": { "canonical": "object", "original": "An `ASTWalker` instance whose `walk()` method performs the extraction." }, "description": "An `ASTWalker` instance whose `walk()` method performs the extraction." } }, { "id": "op-generateOpenAPISpec", "name": "generateOpenAPISpec", "what": "Generates a production-quality OpenAPI 3.2 document from the extracted SDK types. The document is populated with: - An `info` block sourced from the config or reasonable defaults. - A `components.schemas` section with one schema per exported type. - `tags` derived from unique source file paths (grouping by file). - Visibility filtering: `@internal` symbols are never emitted. - HTTP paths are extracted from `@route` tags and appropriately mapped.", "tags": [ "generate", "lock" ], "inputs": [ { "name": "config", "type": { "canonical": "any", "original": "unknown" }, "required": true, "description": "The resolved `ForgeConfig`." }, { "name": "sdkTypes", "type": { "canonical": "any", "original": "unknown" }, "required": true, "description": "SDK types to include as component schemas." }, { "name": "symbols", "type": { "canonical": "any", "original": "unknown" }, "required": true, "description": "Raw symbols used to extract HTTP route paths from `@route` tags." } ], "outputs": { "type": { "canonical": "object", "original": "An `OpenAPIDocument` object." }, "description": "An `OpenAPIDocument` object." } }, { "id": "op-buildReference", "name": "buildReference", "what": "Builds a structured API reference from a list of exported symbols. Unlike the minimal stub, this version includes nested children (class methods, interface properties) and all available TSDoc metadata. Symbols with `Visibility.Internal` or `Visibility.Private` are excluded from the top-level results. Children with private/internal visibility are also filtered out.", "tags": [ "build" ], "inputs": [ { "name": "symbols", "type": { "canonical": "any", "original": "unknown" }, "required": true, "description": "All symbols from the AST walker." } ], "outputs": { "type": { "canonical": "object", "original": "An array of `ReferenceEntry` objects sorted by name." }, "description": "An array of `ReferenceEntry` objects sorted by name." } }, { "id": "op-generateApi", "name": "generateApi", "what": "Runs the API generation pipeline: walk → extract → generate → write.", "tags": [ "generate", "run" ], "inputs": [ { "name": "config", "type": { "canonical": "any", "original": "unknown" }, "required": true, "description": "The resolved `ForgeConfig` for the project. The relevant fields are `config.api.openapiPath` (output destination), `config.rootDir`, and `config.tsconfig`." } ], "outputs": { "type": { "canonical": "object", "original": "A `ForgeResult` whose `success` field is `true` when the spec was written without error. `symbols` contains the full symbol graph from the walk step. `errors` and `warnings` are empty on success; file-system or walker errors are thrown rather than returned." }, "description": "A `ForgeResult` whose `success` field is `true` when the spec was written without error. `symbols` contains the full symbol graph from the walk step. `errors` and `warnings` are empty on success; file-system or walker errors are thrown rather than returned." } }, { "id": "op-runAudit", "name": "runAudit", "what": "Reads the audit log and returns a typed command output.", "tags": [ "audit", "run" ], "inputs": [ { "name": "args", "type": { "canonical": "any", "original": "unknown" }, "required": true, "description": "CLI arguments for the audit command." } ], "outputs": { "type": { "canonical": "object", "original": "A typed `CommandOutput`." }, "description": "A typed `CommandOutput`." } }, { "id": "op-auditCommand", "name": "auditCommand", "what": "Citty command definition for `forge-ts audit`.", "tags": [ "forge", "audit" ], "inputs": [] }, { "id": "op-runBarometer", "name": "runBarometer", "what": "Runs the barometer generation pass. Loads the project config, walks the symbol graph, extracts testable facts from five categories, generates questions with ground-truth answers, and writes the result to `.forge/barometer.json`.", "tags": [ "forge", "barometer", "generate", "run", "test" ], "inputs": [ { "name": "args", "type": { "canonical": "any", "original": "unknown" }, "required": true, "description": "CLI arguments for the barometer command." } ], "outputs": { "type": { "canonical": "object", "original": "A typed `CommandOutput`." }, "description": "A typed `CommandOutput`." } }, { "id": "op-runBarometerScore", "name": "runBarometerScore", "what": "Scores agent answers against the barometer answer key.", "tags": [ "barometer", "barometerscore", "run" ], "inputs": [ { "name": "args", "type": { "canonical": "any", "original": "unknown" }, "required": true, "description": "CLI arguments including project root and path to agent answers file." } ], "outputs": { "type": { "canonical": "object", "original": "A typed `CommandOutput`." }, "description": "A typed `CommandOutput`." } }, { "id": "op-barometerCommand", "name": "barometerCommand", "what": "Citty command definition for `forge-ts barometer`. Generates a documentation effectiveness test (questions + answers + rubric) from the project's source code. Includes a `score` subcommand for evaluating agent answers.", "tags": [ "forge", "barometer", "generate", "test" ], "inputs": [] }, { "id": "op-generateDocSite", "name": "generateDocSite", "what": "Generates a full multi-page documentation site from symbols grouped by package. Follows a 5-stage information architecture: 1. ORIENT — Landing page, Getting Started 2. LEARN — Concepts (stub) 3. BUILD — Guides (stub) 4. REFERENCE — API Reference, Types, Configuration, Changelog 5. COMMUNITY — FAQ, Contributing (stubs)", "tags": [ "generate", "build", "format" ], "inputs": [ { "name": "symbolsByPackage", "type": { "canonical": "any", "original": "unknown" }, "required": true, "description": "Symbols grouped by package name." }, { "name": "config", "type": { "canonical": "any", "original": "unknown" }, "required": true, "description": "The resolved `ForgeConfig`." }, { "name": "options", "type": { "canonical": "any", "original": "unknown" }, "required": true, "description": "Site generation options." } ], "outputs": { "type": { "canonical": "object", "original": "An array of `DocPage` objects ready to be written to disk." }, "description": "An array of `DocPage` objects ready to be written to disk." } }, { "id": "op-generateCKM", "name": "generateCKM", "what": "Generates a Codebase Knowledge Manifest from the symbol graph.", "tags": [ "generate" ], "inputs": [ { "name": "symbols", "type": { "canonical": "any", "original": "unknown" }, "required": true, "description": "All symbols extracted from the project." }, { "name": "config", "type": { "canonical": "any", "original": "unknown" }, "required": true, "description": "The resolved `ForgeConfig` for the project." } ], "outputs": { "type": { "canonical": "object", "original": "A complete `CKMManifest` ready for JSON serialization." }, "description": "A complete `CKMManifest` ready for JSON serialization." } }, { "id": "op-generateLlmsTxt", "name": "generateLlmsTxt", "what": "Generates an `llms.txt` routing manifest from the extracted symbols. The file follows the llms.txt specification: a compact, structured overview designed to help large language models navigate a project's documentation. Symbols are grouped by package with summaries.", "tags": [ "generate" ], "inputs": [ { "name": "symbols", "type": { "canonical": "any", "original": "unknown" }, "required": true, "description": "The symbols to include." }, { "name": "config", "type": { "canonical": "any", "original": "unknown" }, "required": true, "description": "The resolved `ForgeConfig`." } ], "outputs": { "type": { "canonical": "object", "original": "The generated `llms.txt` content as a string." }, "description": "The generated `llms.txt` content as a string." } }, { "id": "op-generateLlmsFullTxt", "name": "generateLlmsFullTxt", "what": "Generates an `llms-full.txt` dense context file from the extracted symbols. Unlike `llms.txt`, this file contains complete documentation for every exported symbol, intended for LLM ingestion that requires full context. Symbols are grouped by package with summaries.", "tags": [ "generate" ], "inputs": [ { "name": "symbols", "type": { "canonical": "any", "original": "unknown" }, "required": true, "description": "The symbols to include." }, { "name": "config", "type": { "canonical": "any", "original": "unknown" }, "required": true, "description": "The resolved `ForgeConfig`." } ], "outputs": { "type": { "canonical": "object", "original": "The generated `llms-full.txt` content as a string." }, "description": "The generated `llms-full.txt` content as a string." } }, { "id": "op-generateMarkdown", "name": "generateMarkdown", "what": "Generates a Markdown (or MDX) string from a list of symbols.", "tags": [ "markdown", "generate" ], "inputs": [ { "name": "symbols", "type": { "canonical": "any", "original": "unknown" }, "required": true, "description": "The symbols to document." }, { "name": "config", "type": { "canonical": "any", "original": "unknown" }, "required": true, "description": "The resolved `ForgeConfig`." }, { "name": "options", "type": { "canonical": "any", "original": "unknown" }, "required": true, "description": "Rendering options." } ], "outputs": { "type": { "canonical": "object", "original": "The generated Markdown string." }, "description": "The generated Markdown string." } }, { "id": "op-generateSkillPackage", "name": "generateSkillPackage", "what": "Generates an agentskills.io-compliant skill package for ANY TypeScript project. All content is derived from the project's exported symbols and metadata. No hardcoded project-specific content. Works for any project that forge-ts analyzes.", "tags": [ "forge", "generate" ], "inputs": [ { "name": "symbols", "type": { "canonical": "any", "original": "unknown" }, "required": true, "description": "All symbols from the project." }, { "name": "config", "type": { "canonical": "any", "original": "unknown" }, "required": true, "description": "The resolved forge-ts config." } ], "outputs": { "type": { "canonical": "object", "original": "A `SkillPackage` describing the directory and its files." }, "description": "A `SkillPackage` describing the directory and its files." } }, { "id": "op-generateSkillMd", "name": "generateSkillMd", "what": "Generates a SKILL.md string following the Agent Skills specification. Generic for any TypeScript project — content derived from symbols.", "tags": [ "generate" ], "inputs": [ { "name": "symbols", "type": { "canonical": "any", "original": "unknown" }, "required": true, "description": "All symbols from the project." }, { "name": "config", "type": { "canonical": "any", "original": "unknown" }, "required": true, "description": "The resolved forge-ts config." } ], "outputs": { "type": { "canonical": "object", "original": "The SKILL.md content as a string." }, "description": "The SKILL.md content as a string." } }, { "id": "op-generateSSGConfigs", "name": "generateSSGConfigs", "what": "Generate navigation configuration file(s) for the given SSG target. Returns one file for most targets, but multiple files for Nextra (which uses per-directory `_meta.json` files).", "tags": [ "generate" ], "inputs": [ { "name": "pages", "type": { "canonical": "any", "original": "unknown" }, "required": true, "description": "The `DocPage` array produced by `generateDocSite`." }, { "name": "target", "type": { "canonical": "any", "original": "unknown" }, "required": true, "description": "The SSG target." }, { "name": "projectName", "type": { "canonical": "any", "original": "unknown" }, "required": true, "description": "The project name (used in config metadata)." } ], "outputs": { "type": { "canonical": "object", "original": "An array of `SSGConfigFile` objects ready to be written to disk." }, "description": "An array of `SSGConfigFile` objects ready to be written to disk." } }, { "id": "op-generate", "name": "generate", "what": "Runs the full documentation generation pipeline: walk → render → write. Auto-generated pages are always regenerated from source code on each run. Stub pages (concepts, guides, FAQ, contributing, changelog) are written only the first time, preserving manual edits across subsequent builds. Pass `{ forceStubs: true }` to reset stubs to their scaffolded state.", "tags": [ "generate", "build", "run" ], "inputs": [ { "name": "config", "type": { "canonical": "any", "original": "unknown" }, "required": true, "description": "The resolved `ForgeConfig` for the project." }, { "name": "options", "type": { "canonical": "any", "original": "unknown" }, "required": true, "description": "Optional generation flags (see `GenerateOptions`)." } ], "outputs": { "type": { "canonical": "object", "original": "A `ForgeResult` whose `writtenFiles` lists every path written. `success` is always `true` on normal completion; file-system errors throw." }, "description": "A `ForgeResult` whose `writtenFiles` lists every path written. `success` is always `true` on normal completion; file-system errors throw." } }, { "id": "op-runBuild", "name": "runBuild", "what": "Runs the full build pipeline and returns a typed command output.", "tags": [ "build", "run" ], "inputs": [ { "name": "args", "type": { "canonical": "any", "original": "unknown" }, "required": true, "description": "CLI arguments for the build command." } ], "outputs": { "type": { "canonical": "object", "original": "A typed `CommandOutput`." }, "description": "A typed `CommandOutput`." } }, { "id": "op-buildCommand", "name": "buildCommand", "what": "Citty command definition for `forge-ts build`.", "tags": [ "forge", "build" ], "inputs": [] }, { "id": "op-runBypassCreate", "name": "runBypassCreate", "what": "Runs the bypass creation: creates a new bypass record with budget enforcement.", "tags": [ "bypass", "bypasscreate", "run" ], "inputs": [ { "name": "args", "type": { "canonical": "any", "original": "unknown" }, "required": true, "description": "CLI arguments for the bypass command." } ], "outputs": { "type": { "canonical": "object", "original": "A typed `CommandOutput`." }, "description": "A typed `CommandOutput`." } }, { "id": "op-runBypassStatus", "name": "runBypassStatus", "what": "Runs the bypass status query: shows active bypasses and remaining budget.", "tags": [ "bypass", "bypassstatus", "run" ], "inputs": [ { "name": "args", "type": { "canonical": "any", "original": "unknown" }, "required": true, "description": "CLI arguments for the bypass status command." } ], "outputs": { "type": { "canonical": "object", "original": "A typed `CommandOutput`." }, "description": "A typed `CommandOutput`." } }, { "id": "op-bypassCommand", "name": "bypassCommand", "what": "Citty command definition for `forge-ts bypass`.", "tags": [ "bypass", "forge" ], "inputs": [] }, { "id": "op-enforce", "name": "enforce", "what": "Runs the TSDoc enforcement pass against a project. The enforcer walks all exported symbols that meet the configured minimum visibility threshold and emits diagnostics for any documentation deficiencies it finds. ### Error codes | Code | Severity | Condition | |------|----------|-----------| | E001 | error | Exported symbol is missing a TSDoc summary. | | E002 | error | Function/method parameter lacks a `@param` tag. | | E003 | error | Non-void function/method lacks a `@returns` tag. | | E004 | error | Exported function/method is missing an `@example` block. | | E005 | error | Package entry point (index.ts) is missing `@packageDocumentation`. | | E006 | error | Public/protected class member is missing a TSDoc comment. | | E007 | error | Interface/type alias property is missing a TSDoc comment. | | W001 | warning | TSDoc comment contains parse errors. | | W002 | warning | Function body throws but has no `@throws` tag. | | W003 | warning | `@deprecated` tag is present without explanation. | | W006 | warning | TSDoc parser-level syntax error (invalid tag, malformed block, etc.). | | E009 | error | tsconfig.json required strict-mode flag is missing or disabled (guard). | | E010 | error | Config drift: a rule severity is weaker than the locked value. | | E013 | error | Exported function/class is missing a `@remarks` block. | | E014 | warn | Optional property of interface/type is missing `@defaultValue`. | | E015 | error | Generic symbol is missing `@typeParam` for a type parameter. | | W005 | warn | Symbol references other symbols via `{@link}` but has no `@see` tags. | | W007 | warn | Guide FORGE:AUTO section references a symbol that no longer exists. | | W008 | warn | Exported public symbol is not mentioned in any guide page. | | E017 | error | `@internal` symbol re-exported through public barrel (index.ts). | | E018 | warn | `@route`-tagged function missing `@response` tag. | | W009 | warn | `{@inheritDoc}` references a symbol that does not exist. | | W010 | warn | `@breaking` tag present without `@migration` path. | | W011 | warn | New public export missing `@since` version tag. | | E019 | error | Non-test file contains `@ts-expect-error` / `@ts-expect-error`. | | E020 | error | Exported symbol has `any` in its public API signature. | | W012 | warn | `{@link}` display text appears stale relative to target summary. | | W013 | warn | `@example` block may be stale (arg count mismatch). | | W014 | warn | `@param` name in TSDoc doesn't match actual parameter name. | | W015 | warn | `@param` count in TSDoc doesn't match actual parameter count. | | W016 | warn | `@returns` tag on a void/Promise function. | | W017 | warn | `@remarks` block is empty or contains only placeholder text. | | W018 | warn | `@operation`-tagged function missing required CKM docs (`@param`, `@returns`, `@remarks`, `@example`). | | W019 | warn | CKM tag (`@operation`, `@constraint`, `@workflow`, `@concept`) has insufficient content. | | W020 | warn | `@constraint`-tagged symbol missing `@throws` to document constraint violation. | When `config.enforce.strict` is `true` all warnings are promoted to errors.", "tags": [ "forge", "lock", "run", "test" ], "inputs": [ { "name": "config", "type": { "canonical": "any", "original": "unknown" }, "required": true, "description": "The resolved `ForgeConfig` for the project." } ], "outputs": { "type": { "canonical": "object", "original": "A `ForgeResult` describing which symbols passed or failed." }, "description": "A `ForgeResult` describing which symbols passed or failed." } }, { "id": "op-runCheck", "name": "runCheck", "what": "Runs the TSDoc enforcement pass and returns a typed command output.", "tags": [ "check", "run" ], "inputs": [ { "name": "args", "type": { "canonical": "any", "original": "unknown" }, "required": true, "description": "CLI arguments for the check command." } ], "outputs": { "type": { "canonical": "object", "original": "A typed `CommandOutput`." }, "description": "A typed `CommandOutput`." } }, { "id": "op-checkCommand", "name": "checkCommand", "what": "Citty command definition for `forge-ts check`.", "tags": [ "forge", "check" ], "inputs": [] }, { "id": "op-runDocsDev", "name": "runDocsDev", "what": "Starts the local dev server for the configured SSG target. Reads `gen.ssgTarget` from the forge-ts config, resolves the adapter, and spawns the platform's dev server in the output directory.", "tags": [ "forge", "run" ], "inputs": [ { "name": "args", "type": { "canonical": "any", "original": "unknown" }, "required": true, "description": "Command arguments." } ], "outputs": { "type": { "canonical": "object", "original": "A promise that resolves when the server exits." }, "description": "A promise that resolves when the server exits." } }, { "id": "op-docsDevCommand", "name": "docsDevCommand", "what": "Citty command definition for `forge-ts docs dev`.", "tags": [ "forge" ], "inputs": [] }, { "id": "op-generateHuskyHook", "name": "generateHuskyHook", "what": "Generates the husky pre-commit hook file content (modern husky v9+).", "tags": [ "generate" ], "inputs": [] }, { "id": "op-generateHuskyPrePushHook", "name": "generateHuskyPrePushHook", "what": "Generates the husky pre-push hook file content (modern husky v9+).", "tags": [ "generate" ], "inputs": [] }, { "id": "op-generateLefthookBlock", "name": "generateLefthookBlock", "what": "Generates the lefthook block with both pre-commit and pre-push sections.", "tags": [ "generate", "lock" ], "inputs": [] }, { "id": "op-runInitHooks", "name": "runInitHooks", "what": "Scaffolds git hook integration for the project. Detects the hook manager (husky or lefthook), generates appropriate hook files, and reports what was written.", "tags": [ "generate", "inithooks", "run" ], "inputs": [ { "name": "args", "type": { "canonical": "any", "original": "unknown" }, "required": true, "description": "CLI arguments for the init hooks command." } ], "outputs": { "type": { "canonical": "object", "original": "A typed `CommandOutput`." }, "description": "A typed `CommandOutput`." } }, { "id": "op-initHooksCommand", "name": "initHooksCommand", "what": "Citty command definition for `forge-ts init hooks`. Scaffolds git hook integration for the project by detecting the hook manager (husky or lefthook) and generating pre-commit hooks.", "tags": [ "forge", "inithooks" ], "inputs": [] }, { "id": "op-buildTsdocContent", "name": "buildTsdocContent", "what": "Builds tsdoc.json content, merging in customTags from the forge config. When `customTags` is non-empty, the written tsdoc.json includes both `tagDefinitions` and `supportForTags` entries so that the TSDoc parser (and any editor extensions) recognise the custom tags.", "tags": [ "forge", "build" ], "inputs": [ { "name": "customTags", "type": { "canonical": "any", "original": "unknown" }, "required": true, "description": "Custom tag definitions from `ForgeConfig.tsdoc.customTags`." } ], "outputs": { "type": { "canonical": "object", "original": "A JSON string for tsdoc.json." }, "description": "A JSON string for tsdoc.json." } }, { "id": "op-runInitProject", "name": "runInitProject", "what": "Runs the full project init flow.", "tags": [ "initproject", "run" ], "inputs": [ { "name": "args", "type": { "canonical": "any", "original": "unknown" }, "required": true, "description": "CLI arguments for the init command." } ], "outputs": { "type": { "canonical": "object", "original": "A typed `CommandOutput`." }, "description": "A typed `CommandOutput`." } }, { "id": "op-initProjectCommand", "name": "initProjectCommand", "what": "Citty command definition for `forge-ts init` (bare — full project setup). Detects the project environment, writes default configuration files, validates tsconfig/package.json, and reports a summary.", "tags": [ "forge", "initproject" ], "inputs": [] }, { "id": "op-runDoctor", "name": "runDoctor", "what": "Runs the doctor integrity check flow.", "tags": [ "check", "doctor", "run" ], "inputs": [ { "name": "args", "type": { "canonical": "any", "original": "unknown" }, "required": true, "description": "CLI arguments for the doctor command." } ], "outputs": { "type": { "canonical": "object", "original": "A typed `CommandOutput`." }, "description": "A typed `CommandOutput`." } }, { "id": "op-doctorCommand", "name": "doctorCommand", "what": "Citty command definition for `forge-ts doctor`. Performs project integrity checks and optionally auto-fixes resolvable issues with `--fix`.", "tags": [ "forge", "check", "doctor" ], "inputs": [] }, { "id": "op-runInitDocs", "name": "runInitDocs", "what": "Scaffolds a documentation site for the target SSG platform. Resolves the target from args, validates it, checks for an existing scaffold, calls the adapter's `scaffold()` method, and writes all files produced by the manifest to `outDir`.", "tags": [ "check", "initdocs", "run" ], "inputs": [ { "name": "args", "type": { "canonical": "any", "original": "unknown" }, "required": true, "description": "CLI arguments for the init docs command." } ], "outputs": { "type": { "canonical": "object", "original": "A typed `CommandOutput`." }, "description": "A typed `CommandOutput`." } }, { "id": "op-initDocsCommand", "name": "initDocsCommand", "what": "Citty command definition for `forge-ts init docs`. Scaffolds a complete documentation site for the target SSG platform. Use `--json` for LAFS JSON envelope output (agent/CI-friendly).", "tags": [ "forge", "initdocs" ], "inputs": [] }, { "id": "op-initCommand", "name": "initCommand", "what": "Citty command definition for `forge-ts init`. Exposes subcommands for scaffolding project artefacts.", "tags": [ "forge" ], "inputs": [] }, { "id": "op-runLock", "name": "runLock", "what": "Runs the lock command: reads current config and creates `.forge-lock.json`.", "tags": [ "forge", "lock", "run", "unlock" ], "inputs": [ { "name": "args", "type": { "canonical": "any", "original": "unknown" }, "required": true, "description": "CLI arguments for the lock command." } ], "outputs": { "type": { "canonical": "object", "original": "A typed `CommandOutput`." }, "description": "A typed `CommandOutput`." } }, { "id": "op-lockCommand", "name": "lockCommand", "what": "Citty command definition for `forge-ts lock`.", "tags": [ "forge", "lock" ], "inputs": [] }, { "id": "op-runPrepublish", "name": "runPrepublish", "what": "Runs the prepublish safety gate: check then build. If the check step fails, the build step is skipped entirely. Both steps use the same project root (cwd).", "tags": [ "build", "check", "prepublish", "run" ], "inputs": [ { "name": "args", "type": { "canonical": "any", "original": "unknown" }, "required": true, "description": "CLI arguments for the prepublish command." } ], "outputs": { "type": { "canonical": "object", "original": "A typed `CommandOutput`." }, "description": "A typed `CommandOutput`." } }, { "id": "op-prepublishCommand", "name": "prepublishCommand", "what": "Citty command definition for `forge-ts prepublish`. Runs check then build as a publish safety gate. Add to package.json as: `\"prepublishOnly\": \"forge-ts prepublish\"`", "tags": [ "forge", "build", "check", "prepublish", "run" ], "inputs": [] }, { "id": "op-generateTestFiles", "name": "generateTestFiles", "what": "Generates a virtual test file for a set of extracted examples. Each example is wrapped in an `it()` block using the Node built-in `node:test` runner so that no additional test framework is required. Auto-imports the tested symbol from the source file, processes `// =>` assertion patterns, and appends an inline source map.", "tags": [ "generate", "lock", "run", "test" ], "inputs": [ { "name": "examples", "type": { "canonical": "any", "original": "unknown" }, "required": true, "description": "Examples to include in the generated file." }, { "name": "options", "type": { "canonical": "any", "original": "unknown" }, "required": true, "description": "Output configuration." } ], "outputs": { "type": { "canonical": "object", "original": "An array of `VirtualTestFile` objects (one per source file)." }, "description": "An array of `VirtualTestFile` objects (one per source file)." } }, { "id": "op-runTests", "name": "runTests", "what": "Writes virtual test files to disk and executes them with Node 24 native TypeScript support (`--experimental-strip-types --test`).", "tags": [ "run", "test" ], "inputs": [ { "name": "files", "type": { "canonical": "any", "original": "unknown" }, "required": true, "description": "The virtual test files to write and run." } ], "outputs": { "type": { "canonical": "object", "original": "A `RunResult` summarising the test outcome." }, "description": "A `RunResult` summarising the test outcome." } }, { "id": "op-runTest", "name": "runTest", "what": "Runs the doctest pipeline and returns a typed command output.", "tags": [ "run", "test" ], "inputs": [ { "name": "args", "type": { "canonical": "any", "original": "unknown" }, "required": true, "description": "CLI arguments for the test command." } ], "outputs": { "type": { "canonical": "object", "original": "A typed `CommandOutput`." }, "description": "A typed `CommandOutput`." } }, { "id": "op-testCommand", "name": "testCommand", "what": "Citty command definition for `forge-ts test`.", "tags": [ "forge", "test" ], "inputs": [] }, { "id": "op-runUnlock", "name": "runUnlock", "what": "Runs the unlock command: removes `.forge-lock.json` with a mandatory reason.", "tags": [ "forge", "lock", "run", "unlock" ], "inputs": [ { "name": "args", "type": { "canonical": "any", "original": "unknown" }, "required": true, "description": "CLI arguments for the unlock command." } ], "outputs": { "type": { "canonical": "object", "original": "A typed `CommandOutput`." }, "description": "A typed `CommandOutput`." } }, { "id": "op-unlockCommand", "name": "unlockCommand", "what": "Citty command definition for `forge-ts unlock`.", "tags": [ "forge", "lock", "unlock" ], "inputs": [] } ], "constraints": [ { "id": "constraint-createBypass-Error-when-the-daily-bypass-bu", "rule": "Error when the daily bypass budget is exhausted.", "enforcedBy": "createBypass", "severity": "error" }, { "id": "constraint-getAdapter--Error--if-the-target-is-not-r", "rule": "`Error` if the target is not registered.", "enforcedBy": "getAdapter", "severity": "error" } ], "workflows": [], "configSchema": [ { "key": "readaudit.limit", "type": { "canonical": "string", "original": "number | undefined" }, "description": "Maximum number of events to return.", "required": true, "default": "undefined" }, { "key": "readaudit.eventType", "type": { "canonical": "string", "original": "AuditEventType | undefined" }, "description": "Filter to a single event type.", "required": true, "default": "undefined" }, { "key": "bypass.dailyBudget", "type": { "canonical": "number" }, "description": "Maximum number of bypasses allowed per calendar day. Default: 3", "required": true, "default": null }, { "key": "bypass.durationHours", "type": { "canonical": "number" }, "description": "Duration in hours before a bypass automatically expires. Default: 24", "required": true, "default": null }, { "key": "forge.rootDir", "type": { "canonical": "string" }, "description": "Root directory of the project.", "required": true, "default": "`process.cwd()` (resolved by `loadConfig`)", "effect": "All relative paths inside the config (e.g. `tsconfig`, `outDir`) are resolved against this directory. When loaded via `loadConfig` this is set to `process.cwd()` automatically; override only when invoking the API programmatically from a different working directory." }, { "key": "forge.tsconfig", "type": { "canonical": "string" }, "description": "Path to the `tsconfig.json` used for TypeScript compilation and type resolution.", "required": true, "default": "`\"/tsconfig.json\"`", "effect": "forge-ts passes this file to the TypeScript compiler API for AST walking and type extraction. The path may be absolute or relative to `rootDir`. If the file does not exist the run fails immediately with a clear error." }, { "key": "forge.outDir", "type": { "canonical": "string" }, "description": "Output directory for all generated documentation artifacts.", "required": true, "default": "`\"/docs\"`", "effect": "All generated files — MDX/Markdown pages, `llms.txt`, `llms-full.txt`, `meta.json` sidebar files, `openapi.json`, and `ckm.json` — are written relative to this directory. The directory is created automatically if it does not exist. Commit this directory or add it to `.gitignore` depending on your workflow." }, { "key": "forge.enforce", "type": { "canonical": "string", "original": "{ enabled: boolean; minVisibility: Visibility | \"public\" | \"beta\" | \"internal\" | \"private\"; strict: boolean; rules: EnforceRules; ignoreFile?: string; }" }, "description": "Enforcement configuration — controls which TSDoc rules run and at what severity.", "required": true, "default": "See individual sub-properties.", "effect": "When `enforce.enabled` is `true`, `forge check` validates every exported symbol against the active rule set. Rules produce either errors (which fail the build) or warnings (which are reported but do not fail). The `tsdoc.enforce` group severities act as coarse-grained defaults; individual entries in `enforce.rules` take precedence over group defaults." }, { "key": "forge.doctest", "type": { "canonical": "object", "original": "{ enabled: boolean; cacheDir: string; }" }, "description": "DocTest configuration — controls execution of `@example` blocks as live tests.", "required": true, "default": "See individual sub-properties.", "effect": "When `doctest.enabled` is `true`, `forge doctest` extracts every `@example` code block from the TSDoc of exported symbols, wraps each block in a Vitest test file, and executes it. Failures are reported as test errors. This ensures examples in documentation stay runnable as the codebase evolves." }, { "key": "forge.api", "type": { "canonical": "object", "original": "{ enabled: boolean; openapi: boolean; openapiPath: string; }" }, "description": "API generation configuration — controls OpenAPI spec output.", "required": true, "default": "See individual sub-properties.", "effect": "When `api.enabled` is `true`, forge-ts scans exported functions annotated with `@route` tags and assembles an OpenAPI 3.1 specification. This requires `api.openapi` to be `true` as well. The feature is disabled by default because most projects do not expose HTTP routes through exported TypeScript functions." }, { "key": "forge.gen", "type": { "canonical": "string", "original": "{ enabled: boolean; formats: Array<\"markdown\" | \"mdx\">; llmsTxt: boolean; readmeSync: boolean; ssgTarget?: \"docusaurus\" | \"mintlify\" | \"nextra\" | \"vitepress\" | \"fumadocs\"; ckm?: boolean; }" }, "description": "Documentation generation configuration — controls what files are written by `forge gen`.", "required": true, "default": "See individual sub-properties.", "effect": "`forge gen` extracts symbols, enriches them with TSDoc metadata, and writes human- and machine-readable documentation artifacts to `outDir`. The output format and target SSG platform are controlled here." }, { "key": "forge.skill", "type": { "canonical": "array", "original": "{ enabled?: boolean; customSections?: Array<{ heading: string; content: string; }>; extraGotchas?: string[]; }" }, "description": "SKILL.md generation settings.", "required": true, "default": "See individual sub-properties.", "effect": "`forge gen` can produce a `SKILL.md` package alongside `llms.txt`. This file is a structured knowledge document intended for AI coding assistants that need deep project-specific context: workflow steps, domain gotchas, and architectural invariants that cannot be inferred from symbol signatures alone. Custom sections defined here are merged into the auto-generated body." }, { "key": "forge.tsdoc", "type": { "canonical": "string", "original": "{ writeConfig: boolean; customTags: Array<{ tagName: string; syntaxKind: \"block\" | \"inline\" | \"modifier\"; }>; enforce: { core: \"error\" | \"warn\" | \"off\"; extended: \"error\" | \"warn\" | \"off\"; discretionary: \"error\" | \"warn\" | \"off\"; }; }" }, "description": "TSDoc ecosystem configuration — tag definitions and group-level enforcement.", "required": true, "default": "See individual sub-properties.", "effect": "Controls two concerns: (1) which custom TSDoc tags are registered in the generated `tsdoc.json` preset, and (2) how the three TSDoc standardisation groups map to default severities for enforcement rules. Individual rule overrides in `enforce.rules` always take precedence over group severities." }, { "key": "forge.bypass", "type": { "canonical": "object", "original": "{ dailyBudget: number; durationHours: number; }" }, "description": "Bypass budget — controls how many temporary rule suppressions are allowed.", "required": true, "default": "See individual sub-properties.", "effect": "The bypass system lets developers temporarily suppress a failing rule on a specific symbol using a `@forgeBypass` tag without disabling the rule project-wide. Each bypass is time-limited and counted against a daily budget to prevent bypass sprawl. Bypasses that exceed the budget or have expired are reported by `forge check`." }, { "key": "forge.guides", "type": { "canonical": "array", "original": "{ enabled: boolean; autoDiscover: boolean; custom: Array<{ slug: string; title: string; sources: string[]; }>; }" }, "description": "Guide generation configuration — controls intelligent guide page output.", "required": true, "default": "See individual sub-properties.", "effect": "`forge gen` can auto-discover logical guide topics from code patterns and write narrative guide pages alongside the API reference. Guides are written to `/guides/` and are intended for human readers learning the API, as opposed to the symbol-level API reference pages." }, { "key": "forge.guards", "type": { "canonical": "array", "original": "{ tsconfig: { enabled: boolean; requiredFlags: string[]; }; biome: { enabled: boolean; lockedRules: string[]; }; packageJson: { enabled: boolean; minNodeVersion: string; requiredFields: string[]; }; }" }, "description": "Downstream config drift guards — validate tooling config files stay in sync.", "required": true, "default": "See individual sub-properties.", "effect": "Guards run during `forge check` and validate that key configuration files (`tsconfig.json`, `biome.json`, `package.json`) meet minimum quality requirements. They catch configuration drift that could silently weaken type safety or code quality enforcement." }, { "key": "forge._configWarnings", "type": { "canonical": "array", "original": "string[] | undefined" }, "description": "Warnings generated during config loading (e.g., unknown keys, failed imports).", "required": true, "default": "`undefined`", "effect": "Populated by `loadConfig` when the user's config contains keys that forge-ts does not recognise, or when the config file exists but cannot be imported (e.g. missing `\"type\": \"module\"`). Agents and CI scripts should surface these warnings in their output so problems are caught early. This field is never set in user-authored config files." }, { "key": "forge.project", "type": { "canonical": "array", "original": "{ repository?: string; homepage?: string; packageName?: string; description?: string; version?: string; bin?: Record; scripts?: Record; keywords?: string[]; }" }, "description": "Project metadata — auto-detected from `package.json` when not provided.", "required": true, "default": "`{}` (all fields auto-detected from `package.json`)", "effect": "forge-ts reads `package.json` after loading the user config and fills in any `project.*` fields that were not explicitly set. Explicit values always win over auto-detected ones. This data is embedded in generated docs, `llms.txt`, and the CKM manifest." }, { "key": "forgelogger.quiet", "type": { "canonical": "string", "original": "boolean | undefined" }, "description": "Suppress all consola output (--quiet flag).", "required": true, "default": null }, { "key": "forgelogger.json", "type": { "canonical": "string", "original": "boolean | undefined" }, "description": "JSON output mode (--json flag). LAFS handles JSON; suppress consola.", "required": true, "default": null }, { "key": "forgelogger.verbose", "type": { "canonical": "string", "original": "boolean | undefined" }, "description": "Enable debug-level output (--verbose flag).", "required": true, "default": null }, { "key": "sitegenerator.format", "type": { "canonical": "string", "original": "\"markdown\" | \"mdx\"" }, "description": "Output format", "required": true, "default": null }, { "key": "sitegenerator.ssgTarget", "type": { "canonical": "string", "original": "\"docusaurus\" | \"mintlify\" | \"nextra\" | \"vitepress\" | \"fumadocs\" | undefined" }, "description": "SSG target for frontmatter.", "required": true, "default": "undefined" }, { "key": "sitegenerator.projectName", "type": { "canonical": "string" }, "description": "Project name", "required": true, "default": null }, { "key": "sitegenerator.projectDescription", "type": { "canonical": "string", "original": "string | undefined" }, "description": "Project description.", "required": true, "default": "undefined" }, { "key": "sitegenerator.repositoryUrl", "type": { "canonical": "string", "original": "string | undefined" }, "description": "Repository URL (auto-detected from package.json).", "required": true, "default": "undefined" }, { "key": "sitegenerator.packageName", "type": { "canonical": "string", "original": "string | undefined" }, "description": "npm package name for install commands.", "required": true, "default": "undefined" }, { "key": "markdown.mdx", "type": { "canonical": "string", "original": "boolean | undefined" }, "description": "Whether to use MDX syntax (default: Markdown).", "required": true, "default": "false" }, { "key": "readmesync.badge", "type": { "canonical": "string", "original": "boolean | undefined" }, "description": "Include a \"Documented with forge-ts\" badge above the API table.", "required": true, "default": "false" }, { "key": "readmesync.includeExamples", "type": { "canonical": "string", "original": "boolean | undefined" }, "description": "Include first", "required": true, "default": "false" }, { "key": "ssgconfigfile.path", "type": { "canonical": "string" }, "description": "Relative path from outDir (e.g., \"mint.json\", \"_meta.json\")", "required": true, "default": null }, { "key": "ssgconfigfile.content", "type": { "canonical": "string" }, "description": "File content", "required": true, "default": null }, { "key": "generate.forceStubs", "type": { "canonical": "string", "original": "boolean | undefined" }, "description": "When true, overwrite stub pages even if they already exist on disk. Normally stub pages (concepts, guides, faq, contributing, changelog) are only created on the first build to preserve manual edits. Use this to reset stubs to their scaffolding state.", "required": true, "default": "false" }, { "key": "format.colors", "type": { "canonical": "boolean" }, "description": "Emit ANSI colour escape sequences when `true`.", "required": true, "default": null }, { "key": "format.verbose", "type": { "canonical": "boolean" }, "description": "When `true`, include the symbol's type signature alongside each diagnostic so the reader has immediate context.", "required": true, "default": null }, { "key": "generator.cacheDir", "type": { "canonical": "string" }, "description": "Directory where virtual test files will be written.", "required": true, "default": null } ] }