embedoc 0.14.11 → 0.14.13

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 +1 @@
1
- {"version":3,"file":"contract.d.ts","sourceRoot":"","sources":["../../src/generated/contract.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,aAAa,EAAE,MAAinW,CAAC;AAE9oW,eAAO,MAAM,iBAAiB,EAAE,MAAkje,CAAC"}
1
+ {"version":3,"file":"contract.d.ts","sourceRoot":"","sources":["../../src/generated/contract.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,aAAa,EAAE,MAA2wW,CAAC;AAExyW,eAAO,MAAM,iBAAiB,EAAE,MAA4pe,CAAC"}
@@ -1,5 +1,5 @@
1
1
  // Auto-generated by cli-contracts. Do not edit.
2
2
  // Embedded contract for the extract subcommand.
3
- export const CONTRACT_YAML = "# yaml-language-server: $schema=./node_modules/cli-contracts/schemas/cli-contract.schema.json\ncli_contracts: 0.1.0\n\ninfo:\n title: embedoc CLI\n version: 0.14.11\n description: >-\n In-place document generator that auto-updates marker blocks in documents\n and source code while preserving manually edited sections. Supports\n multiple datasources (SQLite, CSV, JSON, YAML, glob, TypeScript API), programmable\n TypeScript renderers, Handlebars file generation, and incremental builds\n with dependency tracking.\n license:\n name: MIT\n contact:\n name: foo-ogawa\n url: https://github.com/foo-ogawa/embedoc\n\nartifact_slots:\n config:\n direction: read\n description: embedoc.config.yaml configuration\n documents:\n direction: readwrite\n description: Target documents with @embedoc marker blocks\n templates:\n direction: read\n description: Handlebars templates for file generation\n datasources:\n direction: read\n description: Datasource files (SQLite, CSV, JSON, YAML, TypeScript sources)\n generated-files:\n direction: write\n description: Files generated by Handlebars templates\n\ncommand_sets:\n embedoc:\n summary: In-place document generator with marker-based embedding.\n executable: embedoc\n\n global_options:\n - name: version\n aliases: [V]\n description: Print version and exit.\n schema:\n type: boolean\n\n - name: help\n aliases: [h]\n description: Show help and exit.\n schema:\n type: boolean\n\n commands:\n # ── init ──────────────────────────────────────────\n init:\n summary: Initialize embedoc in the current project.\n description: >-\n Creates starter configuration and directory structure:\n embedoc.config.yaml, .embedoc/renderers/index.ts,\n .embedoc/datasources/index.ts, and .embedoc/templates/.\n If package.json exists, adds embedoc:build, embedoc:watch,\n and embedoc:generate npm scripts.\n usage:\n - embedoc init\n - embedoc init --force\n\n options:\n - name: force\n aliases: [f]\n description: Overwrite existing files.\n schema:\n type: boolean\n default: false\n\n exits:\n '0':\n description: Initialization succeeded.\n stdout:\n format: text\n files:\n - path: embedoc.config.yaml\n required: false\n media_type: application/yaml\n encoding: utf-8\n description: Configuration file.\n - path: .embedoc/renderers/index.ts\n required: false\n media_type: text/x-typescript\n encoding: utf-8\n description: Renderer registration file.\n - path: .embedoc/datasources/index.ts\n required: false\n media_type: text/x-typescript\n encoding: utf-8\n description: Custom datasource registration file.\n - path: .embedoc/templates/.gitkeep\n required: false\n description: Templates directory placeholder.\n\n '1':\n description: Initialization failed (write error).\n stderr:\n format: text\n\n x-agent:\n risk_level: low\n requires_confirmation: false\n idempotent: true\n side_effects:\n - file_write\n - directory_create\n\n # ── build ─────────────────────────────────────────\n build:\n summary: Build documents by replacing markers with rendered content.\n description: >-\n Loads configuration, initializes datasources, loads TypeScript\n renderers, and processes all target files (or specific files if\n provided). Each @embedoc marker block is re-rendered and the\n content between start/end markers is replaced in-place.\n usage:\n - embedoc build\n - embedoc build --config embedoc.config.yaml\n - embedoc build ./docs/tables/users.md\n - embedoc build --dry-run --verbose\n\n arguments:\n - name: files\n description: Specific file paths to process. If omitted, processes all targets from config.\n schema:\n type: array\n items:\n type: string\n variadic: true\n file:\n mode: readWrite\n exists: true\n\n options:\n - name: config\n aliases: [c]\n description: Path to config file (YAML or JSON).\n value_name: path\n schema:\n type: string\n default: embedoc.config.yaml\n file:\n mode: read\n exists: true\n media_type: application/yaml\n encoding: utf-8\n\n - name: dry-run\n aliases: [d]\n description: Preview changes without writing files.\n schema:\n type: boolean\n default: false\n\n - name: verbose\n aliases: [v]\n description: Enable verbose output.\n schema:\n type: boolean\n default: false\n\n exits:\n '0':\n description: Build succeeded. All markers were processed without errors.\n stdout:\n format: text\n\n '1':\n description: Build failed (config not found, datasource error, or marker processing error).\n stderr:\n format: text\n\n x-agent:\n risk_level: medium\n requires_confirmation: false\n idempotent: true\n side_effects:\n - file_write\n safe_dry_run_option: --dry-run\n recommended_before_use:\n - Ensure embedoc.config.yaml exists (run init if needed).\n - Verify datasource files are accessible.\n\n # ── generate ──────────────────────────────────────\n generate:\n summary: Generate new files from datasource records using Handlebars templates.\n description: >-\n Reads datasource records and generates new files using Handlebars\n templates defined in the generators config. Requires either\n --datasource to process a specific datasource or --all to process\n all datasources that have generators configured. Optionally filter\n by generator template name with --generator.\n usage:\n - embedoc generate --datasource tables\n - embedoc generate --all\n - embedoc generate --datasource tables --generator table_doc.hbs\n - embedoc generate --all --dry-run --verbose\n\n options:\n - name: config\n aliases: [c]\n description: Path to config file (YAML or JSON).\n value_name: path\n schema:\n type: string\n default: embedoc.config.yaml\n file:\n mode: read\n exists: true\n media_type: application/yaml\n encoding: utf-8\n\n - name: datasource\n aliases: [s]\n description: Specific datasource to process.\n value_name: name\n schema:\n type: string\n\n - name: generator\n aliases: [g]\n description: Specific generator template to use.\n value_name: name\n schema:\n type: string\n\n - name: all\n aliases: [a]\n description: Process all datasources that have generators configured.\n schema:\n type: boolean\n default: false\n\n - name: dry-run\n aliases: [d]\n description: Preview generation without writing files.\n schema:\n type: boolean\n default: false\n\n - name: verbose\n aliases: [v]\n description: Enable verbose output.\n schema:\n type: boolean\n default: false\n\n exits:\n '0':\n description: Generation succeeded.\n stdout:\n format: text\n\n '1':\n description: >-\n Generation failed (missing --datasource/--all, config not found,\n datasource error, or template error).\n stderr:\n format: text\n\n x-agent:\n risk_level: medium\n requires_confirmation: false\n idempotent: true\n side_effects:\n - file_write\n safe_dry_run_option: --dry-run\n recommended_before_use:\n - Ensure embedoc.config.yaml exists with generators configured.\n - Verify datasource files are accessible.\n - Ensure Handlebars templates exist in templates_dir.\n\n # ── watch ─────────────────────────────────────────\n watch:\n summary: Watch files and rebuild on changes with dependency tracking.\n description: >-\n Monitors target files, renderers, and datasource files for changes.\n When a change is detected, rebuilds only affected documents using\n the dependency graph. Renderer changes trigger a full renderer\n reload and dependency graph rebuild. Runs until interrupted with\n SIGINT (Ctrl+C).\n usage:\n - embedoc watch\n - embedoc watch --config embedoc.config.yaml\n - embedoc watch --verbose\n - embedoc watch --debug-deps\n\n options:\n - name: config\n aliases: [c]\n description: Path to config file (YAML or JSON).\n value_name: path\n schema:\n type: string\n default: embedoc.config.yaml\n file:\n mode: read\n exists: true\n media_type: application/yaml\n encoding: utf-8\n\n - name: verbose\n aliases: [v]\n description: Enable verbose rebuild output.\n schema:\n type: boolean\n default: false\n\n - name: debug-deps\n description: Print dependency graph at startup for debugging.\n schema:\n type: boolean\n default: false\n\n signals:\n SIGINT:\n description: Gracefully stops the watcher, closes datasources, and exits.\n\n exits:\n '0':\n description: Watcher stopped gracefully (via SIGINT).\n stdout:\n format: text\n\n '1':\n description: Watch failed (config not found or initialization error).\n stderr:\n format: text\n\n x-agent:\n risk_level: medium\n requires_confirmation: false\n idempotent: true\n side_effects:\n - file_write\n recommended_before_use:\n - Ensure embedoc.config.yaml exists (run init if needed).\n - Verify datasource files are accessible.\n";
4
- export const CONTRACT_JSON_STR = "{\n \"cli_contracts\": \"0.1.0\",\n \"info\": {\n \"title\": \"embedoc CLI\",\n \"version\": \"0.14.11\",\n \"description\": \"In-place document generator that auto-updates marker blocks in documents and source code while preserving manually edited sections. Supports multiple datasources (SQLite, CSV, JSON, YAML, glob, TypeScript API), programmable TypeScript renderers, Handlebars file generation, and incremental builds with dependency tracking.\",\n \"license\": {\n \"name\": \"MIT\"\n },\n \"contact\": {\n \"name\": \"foo-ogawa\",\n \"url\": \"https://github.com/foo-ogawa/embedoc\"\n }\n },\n \"artifact_slots\": {\n \"config\": {\n \"direction\": \"read\",\n \"description\": \"embedoc.config.yaml configuration\"\n },\n \"documents\": {\n \"direction\": \"readwrite\",\n \"description\": \"Target documents with @embedoc marker blocks\"\n },\n \"templates\": {\n \"direction\": \"read\",\n \"description\": \"Handlebars templates for file generation\"\n },\n \"datasources\": {\n \"direction\": \"read\",\n \"description\": \"Datasource files (SQLite, CSV, JSON, YAML, TypeScript sources)\"\n },\n \"generated-files\": {\n \"direction\": \"write\",\n \"description\": \"Files generated by Handlebars templates\"\n }\n },\n \"command_sets\": {\n \"embedoc\": {\n \"summary\": \"In-place document generator with marker-based embedding.\",\n \"executable\": \"embedoc\",\n \"global_options\": [\n {\n \"name\": \"version\",\n \"aliases\": [\n \"V\"\n ],\n \"description\": \"Print version and exit.\",\n \"schema\": {\n \"type\": \"boolean\"\n }\n },\n {\n \"name\": \"help\",\n \"aliases\": [\n \"h\"\n ],\n \"description\": \"Show help and exit.\",\n \"schema\": {\n \"type\": \"boolean\"\n }\n }\n ],\n \"commands\": {\n \"init\": {\n \"summary\": \"Initialize embedoc in the current project.\",\n \"description\": \"Creates starter configuration and directory structure: embedoc.config.yaml, .embedoc/renderers/index.ts, .embedoc/datasources/index.ts, and .embedoc/templates/. If package.json exists, adds embedoc:build, embedoc:watch, and embedoc:generate npm scripts.\",\n \"usage\": [\n \"embedoc init\",\n \"embedoc init --force\"\n ],\n \"options\": [\n {\n \"name\": \"force\",\n \"aliases\": [\n \"f\"\n ],\n \"description\": \"Overwrite existing files.\",\n \"schema\": {\n \"type\": \"boolean\",\n \"default\": false\n }\n }\n ],\n \"exits\": {\n \"0\": {\n \"description\": \"Initialization succeeded.\",\n \"stdout\": {\n \"format\": \"text\"\n },\n \"files\": [\n {\n \"path\": \"embedoc.config.yaml\",\n \"required\": false,\n \"media_type\": \"application/yaml\",\n \"encoding\": \"utf-8\",\n \"description\": \"Configuration file.\"\n },\n {\n \"path\": \".embedoc/renderers/index.ts\",\n \"required\": false,\n \"media_type\": \"text/x-typescript\",\n \"encoding\": \"utf-8\",\n \"description\": \"Renderer registration file.\"\n },\n {\n \"path\": \".embedoc/datasources/index.ts\",\n \"required\": false,\n \"media_type\": \"text/x-typescript\",\n \"encoding\": \"utf-8\",\n \"description\": \"Custom datasource registration file.\"\n },\n {\n \"path\": \".embedoc/templates/.gitkeep\",\n \"required\": false,\n \"description\": \"Templates directory placeholder.\"\n }\n ]\n },\n \"1\": {\n \"description\": \"Initialization failed (write error).\",\n \"stderr\": {\n \"format\": \"text\"\n }\n }\n },\n \"x-agent\": {\n \"risk_level\": \"low\",\n \"requires_confirmation\": false,\n \"idempotent\": true,\n \"side_effects\": [\n \"file_write\",\n \"directory_create\"\n ]\n }\n },\n \"build\": {\n \"summary\": \"Build documents by replacing markers with rendered content.\",\n \"description\": \"Loads configuration, initializes datasources, loads TypeScript renderers, and processes all target files (or specific files if provided). Each @embedoc marker block is re-rendered and the content between start/end markers is replaced in-place.\",\n \"usage\": [\n \"embedoc build\",\n \"embedoc build --config embedoc.config.yaml\",\n \"embedoc build ./docs/tables/users.md\",\n \"embedoc build --dry-run --verbose\"\n ],\n \"arguments\": [\n {\n \"name\": \"files\",\n \"description\": \"Specific file paths to process. If omitted, processes all targets from config.\",\n \"schema\": {\n \"type\": \"array\",\n \"items\": {\n \"type\": \"string\"\n }\n },\n \"variadic\": true,\n \"file\": {\n \"mode\": \"readWrite\",\n \"exists\": true\n }\n }\n ],\n \"options\": [\n {\n \"name\": \"config\",\n \"aliases\": [\n \"c\"\n ],\n \"description\": \"Path to config file (YAML or JSON).\",\n \"value_name\": \"path\",\n \"schema\": {\n \"type\": \"string\",\n \"default\": \"embedoc.config.yaml\"\n },\n \"file\": {\n \"mode\": \"read\",\n \"exists\": true,\n \"media_type\": \"application/yaml\",\n \"encoding\": \"utf-8\"\n }\n },\n {\n \"name\": \"dry-run\",\n \"aliases\": [\n \"d\"\n ],\n \"description\": \"Preview changes without writing files.\",\n \"schema\": {\n \"type\": \"boolean\",\n \"default\": false\n }\n },\n {\n \"name\": \"verbose\",\n \"aliases\": [\n \"v\"\n ],\n \"description\": \"Enable verbose output.\",\n \"schema\": {\n \"type\": \"boolean\",\n \"default\": false\n }\n }\n ],\n \"exits\": {\n \"0\": {\n \"description\": \"Build succeeded. All markers were processed without errors.\",\n \"stdout\": {\n \"format\": \"text\"\n }\n },\n \"1\": {\n \"description\": \"Build failed (config not found, datasource error, or marker processing error).\",\n \"stderr\": {\n \"format\": \"text\"\n }\n }\n },\n \"x-agent\": {\n \"risk_level\": \"medium\",\n \"requires_confirmation\": false,\n \"idempotent\": true,\n \"side_effects\": [\n \"file_write\"\n ],\n \"safe_dry_run_option\": \"--dry-run\",\n \"recommended_before_use\": [\n \"Ensure embedoc.config.yaml exists (run init if needed).\",\n \"Verify datasource files are accessible.\"\n ]\n }\n },\n \"generate\": {\n \"summary\": \"Generate new files from datasource records using Handlebars templates.\",\n \"description\": \"Reads datasource records and generates new files using Handlebars templates defined in the generators config. Requires either --datasource to process a specific datasource or --all to process all datasources that have generators configured. Optionally filter by generator template name with --generator.\",\n \"usage\": [\n \"embedoc generate --datasource tables\",\n \"embedoc generate --all\",\n \"embedoc generate --datasource tables --generator table_doc.hbs\",\n \"embedoc generate --all --dry-run --verbose\"\n ],\n \"options\": [\n {\n \"name\": \"config\",\n \"aliases\": [\n \"c\"\n ],\n \"description\": \"Path to config file (YAML or JSON).\",\n \"value_name\": \"path\",\n \"schema\": {\n \"type\": \"string\",\n \"default\": \"embedoc.config.yaml\"\n },\n \"file\": {\n \"mode\": \"read\",\n \"exists\": true,\n \"media_type\": \"application/yaml\",\n \"encoding\": \"utf-8\"\n }\n },\n {\n \"name\": \"datasource\",\n \"aliases\": [\n \"s\"\n ],\n \"description\": \"Specific datasource to process.\",\n \"value_name\": \"name\",\n \"schema\": {\n \"type\": \"string\"\n }\n },\n {\n \"name\": \"generator\",\n \"aliases\": [\n \"g\"\n ],\n \"description\": \"Specific generator template to use.\",\n \"value_name\": \"name\",\n \"schema\": {\n \"type\": \"string\"\n }\n },\n {\n \"name\": \"all\",\n \"aliases\": [\n \"a\"\n ],\n \"description\": \"Process all datasources that have generators configured.\",\n \"schema\": {\n \"type\": \"boolean\",\n \"default\": false\n }\n },\n {\n \"name\": \"dry-run\",\n \"aliases\": [\n \"d\"\n ],\n \"description\": \"Preview generation without writing files.\",\n \"schema\": {\n \"type\": \"boolean\",\n \"default\": false\n }\n },\n {\n \"name\": \"verbose\",\n \"aliases\": [\n \"v\"\n ],\n \"description\": \"Enable verbose output.\",\n \"schema\": {\n \"type\": \"boolean\",\n \"default\": false\n }\n }\n ],\n \"exits\": {\n \"0\": {\n \"description\": \"Generation succeeded.\",\n \"stdout\": {\n \"format\": \"text\"\n }\n },\n \"1\": {\n \"description\": \"Generation failed (missing --datasource/--all, config not found, datasource error, or template error).\",\n \"stderr\": {\n \"format\": \"text\"\n }\n }\n },\n \"x-agent\": {\n \"risk_level\": \"medium\",\n \"requires_confirmation\": false,\n \"idempotent\": true,\n \"side_effects\": [\n \"file_write\"\n ],\n \"safe_dry_run_option\": \"--dry-run\",\n \"recommended_before_use\": [\n \"Ensure embedoc.config.yaml exists with generators configured.\",\n \"Verify datasource files are accessible.\",\n \"Ensure Handlebars templates exist in templates_dir.\"\n ]\n }\n },\n \"watch\": {\n \"summary\": \"Watch files and rebuild on changes with dependency tracking.\",\n \"description\": \"Monitors target files, renderers, and datasource files for changes. When a change is detected, rebuilds only affected documents using the dependency graph. Renderer changes trigger a full renderer reload and dependency graph rebuild. Runs until interrupted with SIGINT (Ctrl+C).\",\n \"usage\": [\n \"embedoc watch\",\n \"embedoc watch --config embedoc.config.yaml\",\n \"embedoc watch --verbose\",\n \"embedoc watch --debug-deps\"\n ],\n \"options\": [\n {\n \"name\": \"config\",\n \"aliases\": [\n \"c\"\n ],\n \"description\": \"Path to config file (YAML or JSON).\",\n \"value_name\": \"path\",\n \"schema\": {\n \"type\": \"string\",\n \"default\": \"embedoc.config.yaml\"\n },\n \"file\": {\n \"mode\": \"read\",\n \"exists\": true,\n \"media_type\": \"application/yaml\",\n \"encoding\": \"utf-8\"\n }\n },\n {\n \"name\": \"verbose\",\n \"aliases\": [\n \"v\"\n ],\n \"description\": \"Enable verbose rebuild output.\",\n \"schema\": {\n \"type\": \"boolean\",\n \"default\": false\n }\n },\n {\n \"name\": \"debug-deps\",\n \"description\": \"Print dependency graph at startup for debugging.\",\n \"schema\": {\n \"type\": \"boolean\",\n \"default\": false\n }\n }\n ],\n \"signals\": {\n \"SIGINT\": {\n \"description\": \"Gracefully stops the watcher, closes datasources, and exits.\"\n }\n },\n \"exits\": {\n \"0\": {\n \"description\": \"Watcher stopped gracefully (via SIGINT).\",\n \"stdout\": {\n \"format\": \"text\"\n }\n },\n \"1\": {\n \"description\": \"Watch failed (config not found or initialization error).\",\n \"stderr\": {\n \"format\": \"text\"\n }\n }\n },\n \"x-agent\": {\n \"risk_level\": \"medium\",\n \"requires_confirmation\": false,\n \"idempotent\": true,\n \"side_effects\": [\n \"file_write\"\n ],\n \"recommended_before_use\": [\n \"Ensure embedoc.config.yaml exists (run init if needed).\",\n \"Verify datasource files are accessible.\"\n ]\n }\n }\n }\n }\n }\n}";
3
+ export const CONTRACT_YAML = "# yaml-language-server: $schema=./node_modules/cli-contracts/schemas/cli-contract.schema.json\ncli_contracts: 0.1.0\n\ninfo:\n title: embedoc CLI\n version: 0.14.13\n description: >-\n In-place document generator that auto-updates marker blocks in documents\n and source code while preserving manually edited sections. Supports\n multiple datasources (SQLite, CSV, JSON, YAML, glob, TypeScript API), programmable\n TypeScript renderers, Handlebars file generation, and incremental builds\n with dependency tracking.\n license:\n name: MIT\n contact:\n name: foo-ogawa\n url: https://github.com/foo-ogawa/embedoc\n\nartifact_slots:\n config:\n direction: read\n description: embedoc.config.yaml configuration\n documents:\n direction: readwrite\n description: Target documents with @embedoc marker blocks\n templates:\n direction: read\n description: Handlebars templates for file generation\n datasources:\n direction: read\n description: Datasource files (SQLite, CSV, JSON, YAML, TypeScript sources)\n generated-files:\n direction: write\n description: Files generated by Handlebars templates\n\ncommand_sets:\n embedoc:\n summary: In-place document generator with marker-based embedding.\n executable: embedoc\n\n global_options:\n - name: version\n aliases: [V]\n description: Print version and exit.\n schema:\n type: boolean\n\n - name: help\n aliases: [h]\n description: Show help and exit.\n schema:\n type: boolean\n\n commands:\n # ── init ──────────────────────────────────────────\n init:\n summary: Initialize embedoc in the current project.\n description: >-\n Creates starter configuration and directory structure:\n embedoc.config.yaml, .embedoc/renderers/index.ts,\n .embedoc/datasources/index.ts, and .embedoc/templates/.\n If package.json exists, adds embedoc:build, embedoc:watch,\n and embedoc:generate npm scripts.\n usage:\n - embedoc init\n - embedoc init --force\n\n options:\n - name: force\n aliases: [f]\n description: Overwrite existing files.\n schema:\n type: boolean\n default: false\n\n exits:\n '0':\n description: Initialization succeeded.\n stdout:\n format: text\n files:\n - path: embedoc.config.yaml\n required: false\n media_type: application/yaml\n encoding: utf-8\n description: Configuration file.\n - path: .embedoc/renderers/index.ts\n required: false\n media_type: text/x-typescript\n encoding: utf-8\n description: Renderer registration file.\n - path: .embedoc/datasources/index.ts\n required: false\n media_type: text/x-typescript\n encoding: utf-8\n description: Custom datasource registration file.\n - path: .embedoc/templates/.gitkeep\n required: false\n description: Templates directory placeholder.\n\n '1':\n description: Initialization failed (write error).\n stderr:\n format: text\n\n x-agent:\n risk_level: low\n requires_confirmation: false\n idempotent: true\n side_effects:\n - file_write\n - directory_create\n\n # ── build ─────────────────────────────────────────\n build:\n summary: Build documents by replacing markers with rendered content.\n description: >-\n Loads configuration, initializes datasources, loads TypeScript\n renderers, and processes all target files (or specific files if\n provided). Each @embedoc marker block is re-rendered and the\n content between start/end markers is replaced in-place.\n usage:\n - embedoc build\n - embedoc build --config embedoc.config.yaml\n - embedoc build ./docs/tables/users.md\n - embedoc build --dry-run --verbose\n\n arguments:\n - name: files\n description: Specific file paths to process. If omitted, processes all targets from config.\n schema:\n type: array\n items:\n type: string\n variadic: true\n file:\n mode: readWrite\n exists: true\n\n options:\n - name: config\n aliases: [c]\n description: Path to config file (YAML or JSON).\n value_name: path\n schema:\n type: string\n default: embedoc.config.yaml\n file:\n mode: read\n exists: true\n media_type: application/yaml\n encoding: utf-8\n\n - name: dry-run\n aliases: [d]\n description: Preview changes without writing files.\n schema:\n type: boolean\n default: false\n\n - name: verbose\n aliases: [v]\n description: Enable verbose output.\n schema:\n type: boolean\n default: false\n\n exits:\n '0':\n description: Build succeeded. All markers were processed without errors.\n stdout:\n format: text\n\n '1':\n description: >-\n Build failed (config not found, renderers or custom datasources that\n cannot be loaded, datasource error, a marker whose embed no renderer\n provides, or another marker processing error).\n stderr:\n format: text\n\n x-agent:\n risk_level: medium\n requires_confirmation: false\n idempotent: true\n side_effects:\n - file_write\n safe_dry_run_option: --dry-run\n recommended_before_use:\n - Ensure embedoc.config.yaml exists (run init if needed).\n - Verify datasource files are accessible.\n\n # ── generate ──────────────────────────────────────\n generate:\n summary: Generate new files from datasource records using Handlebars templates.\n description: >-\n Reads datasource records and generates new files using Handlebars\n templates defined in the generators config. Requires either\n --datasource to process a specific datasource or --all to process\n all datasources that have generators configured. Optionally filter\n by generator template name with --generator.\n usage:\n - embedoc generate --datasource tables\n - embedoc generate --all\n - embedoc generate --datasource tables --generator table_doc.hbs\n - embedoc generate --all --dry-run --verbose\n\n options:\n - name: config\n aliases: [c]\n description: Path to config file (YAML or JSON).\n value_name: path\n schema:\n type: string\n default: embedoc.config.yaml\n file:\n mode: read\n exists: true\n media_type: application/yaml\n encoding: utf-8\n\n - name: datasource\n aliases: [s]\n description: Specific datasource to process.\n value_name: name\n schema:\n type: string\n\n - name: generator\n aliases: [g]\n description: Specific generator template to use.\n value_name: name\n schema:\n type: string\n\n - name: all\n aliases: [a]\n description: Process all datasources that have generators configured.\n schema:\n type: boolean\n default: false\n\n - name: dry-run\n aliases: [d]\n description: Preview generation without writing files.\n schema:\n type: boolean\n default: false\n\n - name: verbose\n aliases: [v]\n description: Enable verbose output.\n schema:\n type: boolean\n default: false\n\n exits:\n '0':\n description: Generation succeeded.\n stdout:\n format: text\n\n '1':\n description: >-\n Generation failed (missing --datasource/--all, config not found,\n datasource error, or template error).\n stderr:\n format: text\n\n x-agent:\n risk_level: medium\n requires_confirmation: false\n idempotent: true\n side_effects:\n - file_write\n safe_dry_run_option: --dry-run\n recommended_before_use:\n - Ensure embedoc.config.yaml exists with generators configured.\n - Verify datasource files are accessible.\n - Ensure Handlebars templates exist in templates_dir.\n\n # ── watch ─────────────────────────────────────────\n watch:\n summary: Watch files and rebuild on changes with dependency tracking.\n description: >-\n Monitors target files, renderers, and datasource files for changes.\n When a change is detected, rebuilds only affected documents using\n the dependency graph. Renderer changes trigger a full renderer\n reload and dependency graph rebuild. Runs until interrupted with\n SIGINT (Ctrl+C).\n usage:\n - embedoc watch\n - embedoc watch --config embedoc.config.yaml\n - embedoc watch --verbose\n - embedoc watch --debug-deps\n\n options:\n - name: config\n aliases: [c]\n description: Path to config file (YAML or JSON).\n value_name: path\n schema:\n type: string\n default: embedoc.config.yaml\n file:\n mode: read\n exists: true\n media_type: application/yaml\n encoding: utf-8\n\n - name: verbose\n aliases: [v]\n description: Enable verbose rebuild output.\n schema:\n type: boolean\n default: false\n\n - name: debug-deps\n description: Print dependency graph at startup for debugging.\n schema:\n type: boolean\n default: false\n\n signals:\n SIGINT:\n description: Gracefully stops the watcher, closes datasources, and exits.\n\n exits:\n '0':\n description: Watcher stopped gracefully (via SIGINT).\n stdout:\n format: text\n\n '1':\n description: Watch failed (config not found or initialization error).\n stderr:\n format: text\n\n x-agent:\n risk_level: medium\n requires_confirmation: false\n idempotent: true\n side_effects:\n - file_write\n recommended_before_use:\n - Ensure embedoc.config.yaml exists (run init if needed).\n - Verify datasource files are accessible.\n";
4
+ export const CONTRACT_JSON_STR = "{\n \"cli_contracts\": \"0.1.0\",\n \"info\": {\n \"title\": \"embedoc CLI\",\n \"version\": \"0.14.13\",\n \"description\": \"In-place document generator that auto-updates marker blocks in documents and source code while preserving manually edited sections. Supports multiple datasources (SQLite, CSV, JSON, YAML, glob, TypeScript API), programmable TypeScript renderers, Handlebars file generation, and incremental builds with dependency tracking.\",\n \"license\": {\n \"name\": \"MIT\"\n },\n \"contact\": {\n \"name\": \"foo-ogawa\",\n \"url\": \"https://github.com/foo-ogawa/embedoc\"\n }\n },\n \"artifact_slots\": {\n \"config\": {\n \"direction\": \"read\",\n \"description\": \"embedoc.config.yaml configuration\"\n },\n \"documents\": {\n \"direction\": \"readwrite\",\n \"description\": \"Target documents with @embedoc marker blocks\"\n },\n \"templates\": {\n \"direction\": \"read\",\n \"description\": \"Handlebars templates for file generation\"\n },\n \"datasources\": {\n \"direction\": \"read\",\n \"description\": \"Datasource files (SQLite, CSV, JSON, YAML, TypeScript sources)\"\n },\n \"generated-files\": {\n \"direction\": \"write\",\n \"description\": \"Files generated by Handlebars templates\"\n }\n },\n \"command_sets\": {\n \"embedoc\": {\n \"summary\": \"In-place document generator with marker-based embedding.\",\n \"executable\": \"embedoc\",\n \"global_options\": [\n {\n \"name\": \"version\",\n \"aliases\": [\n \"V\"\n ],\n \"description\": \"Print version and exit.\",\n \"schema\": {\n \"type\": \"boolean\"\n }\n },\n {\n \"name\": \"help\",\n \"aliases\": [\n \"h\"\n ],\n \"description\": \"Show help and exit.\",\n \"schema\": {\n \"type\": \"boolean\"\n }\n }\n ],\n \"commands\": {\n \"init\": {\n \"summary\": \"Initialize embedoc in the current project.\",\n \"description\": \"Creates starter configuration and directory structure: embedoc.config.yaml, .embedoc/renderers/index.ts, .embedoc/datasources/index.ts, and .embedoc/templates/. If package.json exists, adds embedoc:build, embedoc:watch, and embedoc:generate npm scripts.\",\n \"usage\": [\n \"embedoc init\",\n \"embedoc init --force\"\n ],\n \"options\": [\n {\n \"name\": \"force\",\n \"aliases\": [\n \"f\"\n ],\n \"description\": \"Overwrite existing files.\",\n \"schema\": {\n \"type\": \"boolean\",\n \"default\": false\n }\n }\n ],\n \"exits\": {\n \"0\": {\n \"description\": \"Initialization succeeded.\",\n \"stdout\": {\n \"format\": \"text\"\n },\n \"files\": [\n {\n \"path\": \"embedoc.config.yaml\",\n \"required\": false,\n \"media_type\": \"application/yaml\",\n \"encoding\": \"utf-8\",\n \"description\": \"Configuration file.\"\n },\n {\n \"path\": \".embedoc/renderers/index.ts\",\n \"required\": false,\n \"media_type\": \"text/x-typescript\",\n \"encoding\": \"utf-8\",\n \"description\": \"Renderer registration file.\"\n },\n {\n \"path\": \".embedoc/datasources/index.ts\",\n \"required\": false,\n \"media_type\": \"text/x-typescript\",\n \"encoding\": \"utf-8\",\n \"description\": \"Custom datasource registration file.\"\n },\n {\n \"path\": \".embedoc/templates/.gitkeep\",\n \"required\": false,\n \"description\": \"Templates directory placeholder.\"\n }\n ]\n },\n \"1\": {\n \"description\": \"Initialization failed (write error).\",\n \"stderr\": {\n \"format\": \"text\"\n }\n }\n },\n \"x-agent\": {\n \"risk_level\": \"low\",\n \"requires_confirmation\": false,\n \"idempotent\": true,\n \"side_effects\": [\n \"file_write\",\n \"directory_create\"\n ]\n }\n },\n \"build\": {\n \"summary\": \"Build documents by replacing markers with rendered content.\",\n \"description\": \"Loads configuration, initializes datasources, loads TypeScript renderers, and processes all target files (or specific files if provided). Each @embedoc marker block is re-rendered and the content between start/end markers is replaced in-place.\",\n \"usage\": [\n \"embedoc build\",\n \"embedoc build --config embedoc.config.yaml\",\n \"embedoc build ./docs/tables/users.md\",\n \"embedoc build --dry-run --verbose\"\n ],\n \"arguments\": [\n {\n \"name\": \"files\",\n \"description\": \"Specific file paths to process. If omitted, processes all targets from config.\",\n \"schema\": {\n \"type\": \"array\",\n \"items\": {\n \"type\": \"string\"\n }\n },\n \"variadic\": true,\n \"file\": {\n \"mode\": \"readWrite\",\n \"exists\": true\n }\n }\n ],\n \"options\": [\n {\n \"name\": \"config\",\n \"aliases\": [\n \"c\"\n ],\n \"description\": \"Path to config file (YAML or JSON).\",\n \"value_name\": \"path\",\n \"schema\": {\n \"type\": \"string\",\n \"default\": \"embedoc.config.yaml\"\n },\n \"file\": {\n \"mode\": \"read\",\n \"exists\": true,\n \"media_type\": \"application/yaml\",\n \"encoding\": \"utf-8\"\n }\n },\n {\n \"name\": \"dry-run\",\n \"aliases\": [\n \"d\"\n ],\n \"description\": \"Preview changes without writing files.\",\n \"schema\": {\n \"type\": \"boolean\",\n \"default\": false\n }\n },\n {\n \"name\": \"verbose\",\n \"aliases\": [\n \"v\"\n ],\n \"description\": \"Enable verbose output.\",\n \"schema\": {\n \"type\": \"boolean\",\n \"default\": false\n }\n }\n ],\n \"exits\": {\n \"0\": {\n \"description\": \"Build succeeded. All markers were processed without errors.\",\n \"stdout\": {\n \"format\": \"text\"\n }\n },\n \"1\": {\n \"description\": \"Build failed (config not found, renderers or custom datasources that cannot be loaded, datasource error, a marker whose embed no renderer provides, or another marker processing error).\",\n \"stderr\": {\n \"format\": \"text\"\n }\n }\n },\n \"x-agent\": {\n \"risk_level\": \"medium\",\n \"requires_confirmation\": false,\n \"idempotent\": true,\n \"side_effects\": [\n \"file_write\"\n ],\n \"safe_dry_run_option\": \"--dry-run\",\n \"recommended_before_use\": [\n \"Ensure embedoc.config.yaml exists (run init if needed).\",\n \"Verify datasource files are accessible.\"\n ]\n }\n },\n \"generate\": {\n \"summary\": \"Generate new files from datasource records using Handlebars templates.\",\n \"description\": \"Reads datasource records and generates new files using Handlebars templates defined in the generators config. Requires either --datasource to process a specific datasource or --all to process all datasources that have generators configured. Optionally filter by generator template name with --generator.\",\n \"usage\": [\n \"embedoc generate --datasource tables\",\n \"embedoc generate --all\",\n \"embedoc generate --datasource tables --generator table_doc.hbs\",\n \"embedoc generate --all --dry-run --verbose\"\n ],\n \"options\": [\n {\n \"name\": \"config\",\n \"aliases\": [\n \"c\"\n ],\n \"description\": \"Path to config file (YAML or JSON).\",\n \"value_name\": \"path\",\n \"schema\": {\n \"type\": \"string\",\n \"default\": \"embedoc.config.yaml\"\n },\n \"file\": {\n \"mode\": \"read\",\n \"exists\": true,\n \"media_type\": \"application/yaml\",\n \"encoding\": \"utf-8\"\n }\n },\n {\n \"name\": \"datasource\",\n \"aliases\": [\n \"s\"\n ],\n \"description\": \"Specific datasource to process.\",\n \"value_name\": \"name\",\n \"schema\": {\n \"type\": \"string\"\n }\n },\n {\n \"name\": \"generator\",\n \"aliases\": [\n \"g\"\n ],\n \"description\": \"Specific generator template to use.\",\n \"value_name\": \"name\",\n \"schema\": {\n \"type\": \"string\"\n }\n },\n {\n \"name\": \"all\",\n \"aliases\": [\n \"a\"\n ],\n \"description\": \"Process all datasources that have generators configured.\",\n \"schema\": {\n \"type\": \"boolean\",\n \"default\": false\n }\n },\n {\n \"name\": \"dry-run\",\n \"aliases\": [\n \"d\"\n ],\n \"description\": \"Preview generation without writing files.\",\n \"schema\": {\n \"type\": \"boolean\",\n \"default\": false\n }\n },\n {\n \"name\": \"verbose\",\n \"aliases\": [\n \"v\"\n ],\n \"description\": \"Enable verbose output.\",\n \"schema\": {\n \"type\": \"boolean\",\n \"default\": false\n }\n }\n ],\n \"exits\": {\n \"0\": {\n \"description\": \"Generation succeeded.\",\n \"stdout\": {\n \"format\": \"text\"\n }\n },\n \"1\": {\n \"description\": \"Generation failed (missing --datasource/--all, config not found, datasource error, or template error).\",\n \"stderr\": {\n \"format\": \"text\"\n }\n }\n },\n \"x-agent\": {\n \"risk_level\": \"medium\",\n \"requires_confirmation\": false,\n \"idempotent\": true,\n \"side_effects\": [\n \"file_write\"\n ],\n \"safe_dry_run_option\": \"--dry-run\",\n \"recommended_before_use\": [\n \"Ensure embedoc.config.yaml exists with generators configured.\",\n \"Verify datasource files are accessible.\",\n \"Ensure Handlebars templates exist in templates_dir.\"\n ]\n }\n },\n \"watch\": {\n \"summary\": \"Watch files and rebuild on changes with dependency tracking.\",\n \"description\": \"Monitors target files, renderers, and datasource files for changes. When a change is detected, rebuilds only affected documents using the dependency graph. Renderer changes trigger a full renderer reload and dependency graph rebuild. Runs until interrupted with SIGINT (Ctrl+C).\",\n \"usage\": [\n \"embedoc watch\",\n \"embedoc watch --config embedoc.config.yaml\",\n \"embedoc watch --verbose\",\n \"embedoc watch --debug-deps\"\n ],\n \"options\": [\n {\n \"name\": \"config\",\n \"aliases\": [\n \"c\"\n ],\n \"description\": \"Path to config file (YAML or JSON).\",\n \"value_name\": \"path\",\n \"schema\": {\n \"type\": \"string\",\n \"default\": \"embedoc.config.yaml\"\n },\n \"file\": {\n \"mode\": \"read\",\n \"exists\": true,\n \"media_type\": \"application/yaml\",\n \"encoding\": \"utf-8\"\n }\n },\n {\n \"name\": \"verbose\",\n \"aliases\": [\n \"v\"\n ],\n \"description\": \"Enable verbose rebuild output.\",\n \"schema\": {\n \"type\": \"boolean\",\n \"default\": false\n }\n },\n {\n \"name\": \"debug-deps\",\n \"description\": \"Print dependency graph at startup for debugging.\",\n \"schema\": {\n \"type\": \"boolean\",\n \"default\": false\n }\n }\n ],\n \"signals\": {\n \"SIGINT\": {\n \"description\": \"Gracefully stops the watcher, closes datasources, and exits.\"\n }\n },\n \"exits\": {\n \"0\": {\n \"description\": \"Watcher stopped gracefully (via SIGINT).\",\n \"stdout\": {\n \"format\": \"text\"\n }\n },\n \"1\": {\n \"description\": \"Watch failed (config not found or initialization error).\",\n \"stderr\": {\n \"format\": \"text\"\n }\n }\n },\n \"x-agent\": {\n \"risk_level\": \"medium\",\n \"requires_confirmation\": false,\n \"idempotent\": true,\n \"side_effects\": [\n \"file_write\"\n ],\n \"recommended_before_use\": [\n \"Ensure embedoc.config.yaml exists (run init if needed).\",\n \"Verify datasource files are accessible.\"\n ]\n }\n }\n }\n }\n }\n}";
5
5
  //# sourceMappingURL=contract.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"contract.js","sourceRoot":"","sources":["../../src/generated/contract.ts"],"names":[],"mappings":"AAAA,gDAAgD;AAChD,gDAAgD;AAEhD,MAAM,CAAC,MAAM,aAAa,GAAW,wmWAAwmW,CAAC;AAE9oW,MAAM,CAAC,MAAM,iBAAiB,GAAW,yieAAyie,CAAC"}
1
+ {"version":3,"file":"contract.js","sourceRoot":"","sources":["../../src/generated/contract.ts"],"names":[],"mappings":"AAAA,gDAAgD;AAChD,gDAAgD;AAEhD,MAAM,CAAC,MAAM,aAAa,GAAW,kwWAAkwW,CAAC;AAExyW,MAAM,CAAC,MAAM,iBAAiB,GAAW,mpeAAmpe,CAAC"}
@@ -2,17 +2,11 @@
2
2
  * API Markdown Helper
3
3
  * Render records of the `typescript` datasource (ApiSymbol) as Markdown.
4
4
  */
5
- import type { ApiSymbolKind, QueryResult } from '../types/index.js';
5
+ import type { QueryResult } from '../types/index.js';
6
6
  /**
7
7
  * Options for {@link renderApiIndex} and {@link renderApiPage}.
8
8
  */
9
9
  export interface ApiMarkdownOptions {
10
- /**
11
- * Kinds whose symbols get a page of their own at `<kindDir>/<name>.md`
12
- * (e.g. `['class', 'interface', 'function']`). Symbols of the other kinds are
13
- * written in full on the index page. Default: none, so everything is on the index.
14
- */
15
- ownFileKinds?: ApiSymbolKind[];
16
10
  /**
17
11
  * Order of category headings. `*` marks where the categories that are not
18
12
  * listed go (alphabetically); without `*` they go last. Symbols without a
@@ -28,7 +22,7 @@ export interface ApiMarkdownOptions {
28
22
  /**
29
23
  * Render the index page of an API: symbols grouped by kind (and by `@category`).
30
24
  *
31
- * Symbols of `ownFileKinds` are listed as links to `<kindDir>/<name>.md`;
25
+ * Symbols with a page (the datasource's `pages`) are listed as links to it;
32
26
  * the others are written in full. Records keep the order of the datasource.
33
27
  *
34
28
  * @param records - Records of a `typescript` datasource
@@ -37,10 +31,10 @@ export interface ApiMarkdownOptions {
37
31
  */
38
32
  export declare function renderApiIndex(records: QueryResult, options?: ApiMarkdownOptions): string;
39
33
  /**
40
- * Render the page of one symbol (for `<kindDir>/<name>.md`).
34
+ * Render the page of one symbol (its `page`, `<kindDir>/<name>.md`).
41
35
  *
42
36
  * @param record - One record of a `typescript` datasource
43
- * @param options - Rendering options; `ownFileKinds` and `indexFile` decide the links to other symbols
37
+ * @param options - Rendering options; `indexFile` is used for links to symbols written on the index
44
38
  * @returns Markdown
45
39
  */
46
40
  export declare function renderApiPage(record: Record<string, unknown>, options?: ApiMarkdownOptions): string;
@@ -1 +1 @@
1
- {"version":3,"file":"api-markdown.d.ts","sourceRoot":"","sources":["../../src/helpers/api-markdown.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,KAAK,EAKV,aAAa,EAGb,WAAW,EACZ,MAAM,mBAAmB,CAAC;AAG3B;;GAEG;AACH,MAAM,WAAW,kBAAkB;IACjC;;;;OAIG;IACH,YAAY,CAAC,EAAE,aAAa,EAAE,CAAC;IAC/B;;;;;OAKG;IACH,aAAa,CAAC,EAAE,MAAM,EAAE,CAAC;IACzB,uFAAuF;IACvF,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,uEAAuE;IACvE,YAAY,CAAC,EAAE,MAAM,CAAC;CACvB;AAmVD;;;;;;;;;GASG;AACH,wBAAgB,cAAc,CAAC,OAAO,EAAE,WAAW,EAAE,OAAO,GAAE,kBAAuB,GAAG,MAAM,CAgC7F;AAED;;;;;;GAMG;AACH,wBAAgB,aAAa,CAAC,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EAAE,OAAO,GAAE,kBAAuB,GAAG,MAAM,CAMvG"}
1
+ {"version":3,"file":"api-markdown.d.ts","sourceRoot":"","sources":["../../src/helpers/api-markdown.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,KAAK,EASV,WAAW,EACZ,MAAM,mBAAmB,CAAC;AAG3B;;GAEG;AACH,MAAM,WAAW,kBAAkB;IACjC;;;;;OAKG;IACH,aAAa,CAAC,EAAE,MAAM,EAAE,CAAC;IACzB,uFAAuF;IACvF,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,uEAAuE;IACvE,YAAY,CAAC,EAAE,MAAM,CAAC;CACvB;AAoZD;;;;;;;;;GASG;AACH,wBAAgB,cAAc,CAAC,OAAO,EAAE,WAAW,EAAE,OAAO,GAAE,kBAAuB,GAAG,MAAM,CA+B7F;AAED;;;;;;GAMG;AACH,wBAAgB,aAAa,CAAC,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EAAE,OAAO,GAAE,kBAAuB,GAAG,MAAM,CAOvG"}
@@ -2,7 +2,7 @@
2
2
  * API Markdown Helper
3
3
  * Render records of the `typescript` datasource (ApiSymbol) as Markdown.
4
4
  */
5
- import { INLINE_LINK } from '../datasources/typescript.js';
5
+ import { INLINE_LINK, splitTypeText } from '../datasources/typescript.js';
6
6
  /** Kind groups on the index page, in this order. */
7
7
  const KIND_GROUPS = [
8
8
  { kind: 'namespace', title: 'Namespaces' },
@@ -24,6 +24,8 @@ const MEMBER_GROUPS = [
24
24
  { kind: 'enum-member', title: 'Enumeration Members' },
25
25
  ];
26
26
  const DEFAULT_CATEGORY = 'Other';
27
+ /** Tags a table cell shows in their own way. */
28
+ const CELL_TAGS = new Set(['example', 'deprecated', 'see', 'default', 'defaultValue', 'internal', 'category']);
27
29
  /** Tags rendered in their own way (not as a generic section). */
28
30
  const SPECIAL_TAGS = new Set([
29
31
  'example',
@@ -66,21 +68,32 @@ function code(text) {
66
68
  const pad = fence === '``' ? ' ' : '';
67
69
  return `${fence}${pad}${flat}${pad}${fence}`;
68
70
  }
69
- /** A table cell: one line, pipes escaped. */
71
+ /** Text for a table cell: on one line (blank lines become `<br><br>`). */
70
72
  function cell(text) {
71
73
  return text
72
74
  .replace(/\r?\n\s*\r?\n/g, '<br><br>')
73
75
  .replace(/\s*\r?\n\s*/g, ' ')
74
- .replace(/\|/g, '\\|')
75
76
  .trim();
76
77
  }
77
- function linkPath(ctx, name, kind, kindDir, member) {
78
- if (ctx.ownFileKinds.has(kind)) {
79
- const file = `${kindDir}/${name}.md`;
80
- const path = ctx.onOwnPage ? `../${file}` : file;
81
- return member ? `${path}#${anchor(member)}` : path;
78
+ /**
79
+ * A table row. Every table is written through here: an unescaped `|` in any
80
+ * cell (in code spans too, which GitHub also splits on) is escaped, so a row
81
+ * always has as many columns as its header.
82
+ */
83
+ function tableRow(cells) {
84
+ return `| ${cells.map((c) => c.replace(/(?<!\\)\|/g, '\\|')).join(' | ')} |`;
85
+ }
86
+ /** A table: header row, separator, rows. */
87
+ function table(header, rows) {
88
+ return [tableRow(header), tableRow(header.map(() => '------')), ...rows.map(tableRow)].join('\n');
89
+ }
90
+ /** Link to an exported symbol: its page, or its heading on the index. */
91
+ function linkPath(ctx, link) {
92
+ if (link.page !== null) {
93
+ const path = ctx.onOwnPage ? `../${link.page}` : link.page;
94
+ return link.member ? `${path}#${anchor(link.member)}` : path;
82
95
  }
83
- const target = `#${anchor(name)}`;
96
+ const target = `#${anchor(link.name)}`;
84
97
  return ctx.onOwnPage ? `../${ctx.indexFile}${target}` : target;
85
98
  }
86
99
  /** Replace `{@link ...}` with Markdown links (or code when the target is not an exported symbol). */
@@ -90,9 +103,35 @@ function resolveText(ctx, text) {
90
103
  const link = ctx.symbol.links.find((l) => l.target === target);
91
104
  if (!link)
92
105
  return code(shown);
93
- return `[${code(shown)}](${linkPath(ctx, link.name, link.kind, link.kindDir, link.member)})`;
106
+ return `[${code(shown)}](${linkPath(ctx, link)})`;
94
107
  });
95
108
  }
109
+ /**
110
+ * A type as inline code, with the names of exported symbols linked to them
111
+ * (`[`Column`](../interfaces/Column.md)` + `` `<V>` ``).
112
+ */
113
+ function typeCode(ctx, type) {
114
+ const out = [];
115
+ let pending = '';
116
+ const flush = () => {
117
+ if (pending.trim() !== '')
118
+ out.push(code(pending));
119
+ else if (pending !== '')
120
+ out.push(' ');
121
+ pending = '';
122
+ };
123
+ for (const part of splitTypeText(type)) {
124
+ const link = part.identifier ? ctx.symbol.links.find((l) => l.target === part.text) : undefined;
125
+ if (!link || link.name === ctx.symbol.name) {
126
+ pending += part.text;
127
+ continue;
128
+ }
129
+ flush();
130
+ out.push(`[${code(part.text)}](${linkPath(ctx, link)})`);
131
+ }
132
+ flush();
133
+ return out.join('');
134
+ }
96
135
  function definedIn(source) {
97
136
  const label = `${source.file}:${source.line}`;
98
137
  return source.url ? `Defined in: [${label}](${source.url})` : `Defined in: ${label}`;
@@ -142,16 +181,45 @@ function docBlocks(ctx, summary, tags, level) {
142
181
  }
143
182
  return out;
144
183
  }
145
- /** Description used in a table cell, with `@default` / `@deprecated` folded in. */
184
+ /** An `@example` on one line: its title, then each code line as inline code. */
185
+ function inlineExample(text) {
186
+ const out = [];
187
+ let inCode = false;
188
+ for (const line of text.split('\n')) {
189
+ if (/^\s*(```|~~~)/.test(line)) {
190
+ inCode = !inCode;
191
+ continue;
192
+ }
193
+ if (line.trim() === '')
194
+ continue;
195
+ out.push(inCode ? code(line) : line.trim());
196
+ }
197
+ return out.join(' ');
198
+ }
199
+ /**
200
+ * Description in a table cell: everything the documentation says, on one line
201
+ * (deprecation, summary, other tags, default, examples, see-also).
202
+ */
146
203
  function cellDescription(ctx, summary, tags) {
147
204
  const parts = [];
148
205
  for (const t of tagsNamed(tags, 'deprecated'))
149
206
  parts.push(`**Deprecated**${t.text ? ` ${t.text}` : ''}`);
150
207
  if (summary)
151
208
  parts.push(summary);
209
+ for (const t of tags) {
210
+ if (CELL_TAGS.has(t.tag))
211
+ continue;
212
+ parts.push(`**${t.tag.charAt(0).toUpperCase() + t.tag.slice(1)}**${t.text ? ` ${t.text}` : ''}`);
213
+ }
152
214
  for (const t of [...tagsNamed(tags, 'default'), ...tagsNamed(tags, 'defaultValue')]) {
153
215
  parts.push(`**Default** ${code(t.text)}`);
154
216
  }
217
+ const examples = tagsNamed(tags, 'example');
218
+ if (examples.length > 0) {
219
+ parts.push(`**${examples.length > 1 ? 'Examples' : 'Example'}** ${examples.map((t) => inlineExample(t.text)).join(' ')}`);
220
+ }
221
+ for (const t of tagsNamed(tags, 'see'))
222
+ parts.push(`**See** ${t.text}`);
155
223
  return cell(resolveText(ctx, parts.join('\n\n')));
156
224
  }
157
225
  function typeParameterTable(ctx, params, level) {
@@ -167,33 +235,34 @@ function typeParameterTable(ctx, params, level) {
167
235
  const cols = [code(name)];
168
236
  if (withDescription)
169
237
  cols.push(cell(resolveText(ctx, p.description)));
170
- return `| ${cols.join(' | ')} |`;
238
+ return cols;
171
239
  });
172
- const header = withDescription ? '| Type Parameter | Description |\n| ------ | ------ |' : '| Type Parameter |\n| ------ |';
173
- return [heading(level, 'Type Parameters'), [header, ...rows].join('\n')];
240
+ const header = withDescription ? ['Type Parameter', 'Description'] : ['Type Parameter'];
241
+ return [heading(level, 'Type Parameters'), table(header, rows)];
174
242
  }
175
243
  function signatureBlocks(ctx, sig, level) {
176
244
  const out = [codeBlock(sig.code), definedIn(sig.source)];
177
245
  out.push(...docBlocks(ctx, sig.summary, sig.tags, level));
178
246
  out.push(...typeParameterTable(ctx, sig.typeParameters, level));
179
247
  if (sig.parameters.length > 0) {
180
- const withDescription = sig.parameters.some((p) => p.description);
181
- const header = withDescription ? '| Parameter | Type | Description |\n| ------ | ------ | ------ |' : '| Parameter | Type |\n| ------ | ------ |';
248
+ // A default value is written in the description column, so it needs the column too.
249
+ const withDescription = sig.parameters.some((p) => p.description || p.defaultValue !== null);
250
+ const header = withDescription ? ['Parameter', 'Type', 'Description'] : ['Parameter', 'Type'];
182
251
  const rows = sig.parameters.map((p) => {
183
252
  const name = `${p.rest ? '...' : ''}${p.name}${p.optional && !p.rest ? '?' : ''}`;
184
- const cols = [code(name), code(p.type)];
253
+ const cols = [code(name), typeCode(ctx, p.type)];
185
254
  if (withDescription) {
186
255
  let description = resolveText(ctx, p.description);
187
256
  if (p.defaultValue !== null)
188
257
  description += `${description ? ' ' : ''}**Default** ${code(p.defaultValue)}`;
189
258
  cols.push(cell(description));
190
259
  }
191
- return `| ${cols.join(' | ')} |`;
260
+ return cols;
192
261
  });
193
- out.push(heading(level, 'Parameters'), [header, ...rows].join('\n'));
262
+ out.push(heading(level, 'Parameters'), table(header, rows));
194
263
  }
195
264
  if (sig.returns) {
196
- out.push(heading(level, 'Returns'), code(sig.returns.type));
265
+ out.push(heading(level, 'Returns'), typeCode(ctx, sig.returns.type));
197
266
  if (sig.returns.description)
198
267
  out.push(resolveText(ctx, sig.returns.description));
199
268
  }
@@ -217,17 +286,23 @@ function memberBlocks(ctx, members, level) {
217
286
  if (group.kind === 'property' || group.kind === 'enum-member' || group.kind === 'index-signature') {
218
287
  const isEnum = group.kind === 'enum-member';
219
288
  const header = isEnum
220
- ? '| Member | Value | Description | Defined in |\n| ------ | ------ | ------ | ------ |'
221
- : `| ${group.kind === 'index-signature' ? 'Index' : 'Property'} | Type | Description | Defined in |\n| ------ | ------ | ------ | ------ |`;
289
+ ? ['Member', 'Value', 'Description', 'Defined in']
290
+ : [group.kind === 'index-signature' ? 'Index' : 'Property', 'Type', 'Description', 'Defined in'];
222
291
  const rows = list.map((m) => {
223
- const flags = [m.static ? 'static' : '', m.readonly && !isEnum ? 'readonly' : '', m.protected ? 'protected' : '']
292
+ const flags = [
293
+ m.static ? 'static' : '',
294
+ m.abstract ? 'abstract' : '',
295
+ m.readonly && !isEnum ? 'readonly' : '',
296
+ m.protected ? 'protected' : '',
297
+ ]
224
298
  .filter(Boolean)
225
299
  .join(' ');
226
300
  const name = `<a id="${anchor(m.name)}"></a> ${code(`${m.name}${m.optional ? '?' : ''}`)}${flags ? ` (${flags})` : ''}`;
227
301
  const source = m.source.url ? `[${m.source.file}:${m.source.line}](${m.source.url})` : `${m.source.file}:${m.source.line}`;
228
- return `| ${name} | ${m.type === null ? '' : code(m.type)} | ${cellDescription(ctx, m.summary, m.tags)} | ${source} |`;
302
+ const type = m.type === null ? '' : isEnum ? code(m.type) : typeCode(ctx, m.type);
303
+ return [name, type, cellDescription(ctx, m.summary, m.tags), source];
229
304
  });
230
- out.push([header, ...rows].join('\n'));
305
+ out.push(table(header, rows));
231
306
  continue;
232
307
  }
233
308
  list.forEach((m, i) => {
@@ -255,7 +330,7 @@ function symbolBody(ctx, level) {
255
330
  if (s.referenceOf !== null) {
256
331
  const link = s.links.find((l) => l.target === s.referenceOf);
257
332
  const target = link
258
- ? `[${escapeMarkdown(s.referenceOf)}](${linkPath(ctx, link.name, link.kind, link.kindDir, null)})`
333
+ ? `[${escapeMarkdown(s.referenceOf)}](${linkPath(ctx, { ...link, member: null })})`
259
334
  : code(s.referenceOf);
260
335
  out.push(`Renames and re-exports ${target}`);
261
336
  out.push(...docBlocks(ctx, s.summary, s.tags, level));
@@ -268,10 +343,12 @@ function symbolBody(ctx, level) {
268
343
  out.push(definedIn(s.source));
269
344
  out.push(...docBlocks(ctx, s.summary, s.tags, level));
270
345
  }
271
- if (s.extends.length > 0)
272
- out.push(heading(level, 'Extends'), s.extends.map((t) => `- ${code(t)}`).join('\n'));
273
- if (s.implements.length > 0)
274
- out.push(heading(level, 'Implements'), s.implements.map((t) => `- ${code(t)}`).join('\n'));
346
+ if (s.extends.length > 0) {
347
+ out.push(heading(level, 'Extends'), s.extends.map((t) => `- ${typeCode(ctx, t)}`).join('\n'));
348
+ }
349
+ if (s.implements.length > 0) {
350
+ out.push(heading(level, 'Implements'), s.implements.map((t) => `- ${typeCode(ctx, t)}`).join('\n'));
351
+ }
275
352
  if (s.kind !== 'function')
276
353
  out.push(...typeParameterTable(ctx, s.typeParameters, level));
277
354
  if (s.kind === 'function') {
@@ -293,18 +370,8 @@ function symbolTitle(s, withTypeParameters) {
293
370
  const call = s.kind === 'function' ? '()' : '';
294
371
  return escapeMarkdown(`${s.name}${call}${params}`);
295
372
  }
296
- function ownFileKinds(options) {
297
- const kinds = options.ownFileKinds ?? [];
298
- for (const kind of kinds) {
299
- if (!KIND_GROUPS.some((g) => g.kind === kind)) {
300
- throw new Error(`Unknown symbol kind "${String(kind)}" in ownFileKinds (expected: ${KIND_GROUPS.map((g) => g.kind).join(', ')})`);
301
- }
302
- }
303
- return new Set(kinds);
304
- }
305
373
  function makeContext(symbol, options, onOwnPage) {
306
374
  return {
307
- ownFileKinds: ownFileKinds(options),
308
375
  categoryOrder: options.categoryOrder ?? [],
309
376
  indexFile: options.indexFile ?? 'README.md',
310
377
  onOwnPage,
@@ -324,7 +391,7 @@ function orderCategories(categories, order) {
324
391
  /**
325
392
  * Render the index page of an API: symbols grouped by kind (and by `@category`).
326
393
  *
327
- * Symbols of `ownFileKinds` are listed as links to `<kindDir>/<name>.md`;
394
+ * Symbols with a page (the datasource's `pages`) are listed as links to it;
328
395
  * the others are written in full. Records keep the order of the datasource.
329
396
  *
330
397
  * @param records - Records of a `typescript` datasource
@@ -334,7 +401,6 @@ function orderCategories(categories, order) {
334
401
  export function renderApiIndex(records, options = {}) {
335
402
  const symbols = records.map(toSymbol);
336
403
  const level = options.headingLevel ?? 2;
337
- const ownFile = ownFileKinds(options);
338
404
  const out = [];
339
405
  for (const group of KIND_GROUPS) {
340
406
  const inGroup = symbols.filter((s) => s.kind === group.kind);
@@ -350,11 +416,11 @@ export function renderApiIndex(records, options = {}) {
350
416
  if (category !== null)
351
417
  out.push(heading(level + 1, escapeMarkdown(category)));
352
418
  const list = category === null ? inGroup : inGroup.filter((s) => (s.category ?? DEFAULT_CATEGORY) === category);
353
- if (ownFile.has(group.kind)) {
354
- out.push(list.map((s) => `- [${escapeMarkdown(s.name)}](${s.kindDir}/${s.name}.md)`).join('\n'));
355
- continue;
419
+ const withPage = list.filter((s) => s.page !== null);
420
+ if (withPage.length > 0) {
421
+ out.push(withPage.map((s) => `- [${escapeMarkdown(s.name)}](${s.page})`).join('\n'));
356
422
  }
357
- list.forEach((s, i) => {
423
+ list.filter((s) => s.page === null).forEach((s, i) => {
358
424
  if (i > 0)
359
425
  out.push('***');
360
426
  const ctx = makeContext(s, options, false);
@@ -365,17 +431,18 @@ export function renderApiIndex(records, options = {}) {
365
431
  return out.join('\n\n') + '\n';
366
432
  }
367
433
  /**
368
- * Render the page of one symbol (for `<kindDir>/<name>.md`).
434
+ * Render the page of one symbol (its `page`, `<kindDir>/<name>.md`).
369
435
  *
370
436
  * @param record - One record of a `typescript` datasource
371
- * @param options - Rendering options; `ownFileKinds` and `indexFile` decide the links to other symbols
437
+ * @param options - Rendering options; `indexFile` is used for links to symbols written on the index
372
438
  * @returns Markdown
373
439
  */
374
440
  export function renderApiPage(record, options = {}) {
375
441
  const symbol = toSymbol(record);
376
442
  const ctx = makeContext(symbol, options, true);
377
443
  const breadcrumb = `[API](../${ctx.indexFile}) / ${escapeMarkdown(symbol.name)}`;
378
- const title = heading(1, `${symbol.kindLabel}: ${symbolTitle(symbol, true)}`);
444
+ const kind = symbol.abstract ? `Abstract ${symbol.kindLabel}` : symbol.kindLabel;
445
+ const title = heading(1, `${kind}: ${symbolTitle(symbol, true)}`);
379
446
  return [breadcrumb, title, ...symbolBody(ctx, 2)].join('\n\n') + '\n';
380
447
  }
381
448
  //# sourceMappingURL=api-markdown.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"api-markdown.js","sourceRoot":"","sources":["../../src/helpers/api-markdown.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAYH,OAAO,EAAE,WAAW,EAAE,MAAM,8BAA8B,CAAC;AAyB3D,oDAAoD;AACpD,MAAM,WAAW,GAA6C;IAC5D,EAAE,IAAI,EAAE,WAAW,EAAE,KAAK,EAAE,YAAY,EAAE;IAC1C,EAAE,IAAI,EAAE,MAAM,EAAE,KAAK,EAAE,cAAc,EAAE;IACvC,EAAE,IAAI,EAAE,OAAO,EAAE,KAAK,EAAE,SAAS,EAAE;IACnC,EAAE,IAAI,EAAE,WAAW,EAAE,KAAK,EAAE,YAAY,EAAE;IAC1C,EAAE,IAAI,EAAE,MAAM,EAAE,KAAK,EAAE,cAAc,EAAE;IACvC,EAAE,IAAI,EAAE,UAAU,EAAE,KAAK,EAAE,WAAW,EAAE;IACxC,EAAE,IAAI,EAAE,UAAU,EAAE,KAAK,EAAE,WAAW,EAAE;IACxC,EAAE,IAAI,EAAE,WAAW,EAAE,KAAK,EAAE,YAAY,EAAE;CAC3C,CAAC;AAEF,MAAM,aAAa,GAAiD;IAClE,EAAE,IAAI,EAAE,aAAa,EAAE,KAAK,EAAE,cAAc,EAAE;IAC9C,EAAE,IAAI,EAAE,gBAAgB,EAAE,KAAK,EAAE,gBAAgB,EAAE;IACnD,EAAE,IAAI,EAAE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