/** * The `docs-gen` command-line interface (the package `bin`, driving * `bun run docs:gen:*` from the repo root). Commands: * * - `generate` / `build` (default) — run the pipeline for one target * (`--target blocks|docs|table|auth`) or all. The `all` run additionally * assembles the cross-target artifacts: `llms-full.txt`, the MCP component * catalog, and the `@urbicon-ui/design-content` bundle — which is why JSDoc * edits require `docs:gen:all`, not a single target. * - `scaffold [--group primitives|components]` — create the docs * route skeleton (+page.svelte / Docs.svelte) for a new component. * - `help` — usage text. * * Any command failure exits with code 1 (fail-loud; CI relies on this). */ export declare class DocsGeneratorCLI { /** * Parse argv and dispatch to the requested command. Defaults to * `generate`; unknown commands print help and exit 1. */ run(args?: string[]): Promise; /** * Run generation for `--target` (default `all`). `all` runs the four * package targets sequentially and then the cross-target assembly step * (`assembleLlmsFull`); a single target deliberately skips assembly, which * leaves the aggregated artifacts stale until the next full run. */ private generateCommand; /** * Execute the full pipeline for one package target using its * `ConfigurationFactory` preset. Throws (→ exit 1) when the pipeline * reports failure, printing every collected error first. */ private generateTarget; /** * The cross-target assembly step that only `--target all` runs, in order: * (1) `llms-full.txt` from the per-scope static trees, (2) the MCP * component catalog (stamped with the repo-root version — fail-loud when * that is missing), (3) the `@urbicon-ui/design-content` bundle the MCP * server and `urbicon` CLI consume. */ private assembleLlmsFull; /** * Scaffold the docs route for a component: creates * `apps/docs/src/routes/blocks///` with a `+page.svelte` * (playground + API sections wired to the generated `api.ts`) and a * `Docs.svelte` (the authored example/customization/a11y sections that the * page composes in). Refuses to overwrite an * existing directory; the `api.ts` itself comes from a later * `docs:gen:all` run. */ private scaffoldCommand; /** * Minimal `--flag [value]` parser: a `--key` followed by a non-flag token * becomes `key: value`, a bare `--key` becomes `key: true`. Positional * arguments are handled by the callers, not here. */ private parseOptions; /** Print command/option usage to stdout. */ private showHelp; } //# sourceMappingURL=CLI.d.ts.map