embedoc 0.14.4 → 0.14.6

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,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.1\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), 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)\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.1\",\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), 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)\"\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.5\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), 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)\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.5\",\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), 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)\"\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}";
5
5
  //# sourceMappingURL=contract.js.map
@@ -53,7 +53,7 @@ export function createProgram(handlers, version) {
53
53
  .option("-a, --all", "Extract all commands.", false)
54
54
  .option("--include-meta", "Include extraction metadata.", true)
55
55
  .option("-F, --format <format>", "Output format (yaml or json).", "yaml")
56
- .action(async (commands, opts, cmd) => {
56
+ .action(async (commands, opts) => {
57
57
  if (commands.length === 0 && !opts.all) {
58
58
  process.stderr.write(JSON.stringify({ code: "INVALID_ARGS", message: "Specify command IDs or use --all" }) + "\n");
59
59
  process.exit(2);
@@ -1 +1 @@
1
- {"version":3,"file":"program.js","sourceRoot":"","sources":["../../src/generated/program.ts"],"names":[],"mappings":"AAAA,gDAAgD;AAChD,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AACpC,OAAO,EAAE,aAAa,EAAE,iBAAiB,EAAE,MAAM,eAAe,CAAC;AASjE,MAAM,UAAU,aAAa,CAC3B,QAAyB,EACzB,OAAe;IAEf,MAAM,OAAO,GAAG,IAAI,OAAO,EAAE,CAAC;IAC9B,OAAO;SACJ,IAAI,CAAC,SAAS,CAAC;SACf,OAAO,CAAC,OAAO,EAAE,eAAe,CAAC;SACjC,WAAW,CAAC,0DAA0D,CAAC,CAAC;IAG3E,OAAO;SACJ,OAAO,CAAC,MAAM,CAAC;SACf,WAAW,CAAC,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ACjE,MAAM,IAAI,GAAI,EAA8B,CAAC,QAA+C,CAAC;gBAC7F,IAAI,CAAC,IAAI;oBAAE,SAAS;gBACpB,MAAM,OAAO,GAA4B,EAAE,CAAC;gBAC5C,KAAK,MAAM,CAAC,KAAK,EAAE,MAAM,CAAC,IAAI,MAAM,CAAC,OAAO,CAAC,IAAI,CAAC,EAAE,CAAC;oBACnD,MAAM,MAAM,GAAG,KAAK,GAAG,GAAG,GAAG,KAAK,CAAC;oBACnC,IAAI,MAAM,CAAC,IAAI,CAAC,CAAC,EAAE,EAAE,EAAE,CAAC,EAAE,KAAK,KAAK,IAAI,EAAE,KAAK,MAAM,IAAI,KAAK,CAAC,UAAU,CAAC,EAAE,GAAG,GAAG,CAAC,CAAC,EAAE,CAAC;wBACrF,OAAO,CAAC,KAAK,CAAC,GAAG,MAAM,CAAC;oBAC1B,CAAC;gBACH,CAAC;gBACD,IAAI,MAAM,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC,MAAM,GAAG,CAAC,EAAE,CAAC;oBACpC,MAAM,OAAO,GAAG,EAAE,GAAI,EAA8B,EAAE,CAAC;oBACvD,OAAO,CAAC,QAAQ,GAAG,OAAO,CAAC;oBAC3B,GAAG,CAAC,KAAK,CAAC,GAAG,OAAO,CAAC;gBACvB,CAAC;YACH,CAAC;YACD,IAAI,GAAG,CAAC,UAAU;gBAAE,QAAQ,CAAC,UAAU,GAAG,GAAG,CAAC,UAAU,CAAC;YACzD,OAAO,CAAC,MAAM,CAAC,KAAK,CAAC,IAAI,CAAC,SAAS,CAAC,QAAQ,EAAE,IAAI,EAAE,CAAC,CAAC,GAAG,IAAI,CAAC,CAAC;QACjE,CAAC;QACD,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;IAClB,CAAC,CAAC,CAAC;IACL,OAAO,OAAO,CAAC;AACjB,CAAC"}
@@ -2,7 +2,7 @@
2
2
 
3
3
  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), programmable TypeScript renderers, Handlebars file generation, and incremental builds with dependency tracking.
4
4
 
5
- **Version:** 0.12.0
5
+ **Version:** 0.14.5
6
6
 
7
7
  ## Table of Contents
8
8
 
@@ -65,11 +65,11 @@ embedoc init --force
65
65
  #### Extensions
66
66
 
67
67
  ```yaml
68
- x-agent:
68
+ x-agent:
69
69
  risk_level: low
70
70
  requires_confirmation: false
71
71
  idempotent: true
72
- side_effects:
72
+ side_effects:
73
73
  - file_write
74
74
  - directory_create
75
75
  ```
@@ -124,14 +124,14 @@ embedoc build --dry-run --verbose
124
124
  #### Extensions
125
125
 
126
126
  ```yaml
127
- x-agent:
127
+ x-agent:
128
128
  risk_level: medium
129
129
  requires_confirmation: false
130
130
  idempotent: true
131
- side_effects:
131
+ side_effects:
132
132
  - file_write
133
133
  safe_dry_run_option: --dry-run
134
- recommended_before_use:
134
+ recommended_before_use:
135
135
  - Ensure embedoc.config.yaml exists (run init if needed).
136
136
  - Verify datasource files are accessible.
137
137
  ```
@@ -183,14 +183,14 @@ embedoc generate --all --dry-run --verbose
183
183
  #### Extensions
184
184
 
185
185
  ```yaml
186
- x-agent:
186
+ x-agent:
187
187
  risk_level: medium
188
188
  requires_confirmation: false
189
189
  idempotent: true
190
- side_effects:
190
+ side_effects:
191
191
  - file_write
192
192
  safe_dry_run_option: --dry-run
193
- recommended_before_use:
193
+ recommended_before_use:
194
194
  - Ensure embedoc.config.yaml exists with generators configured.
195
195
  - Verify datasource files are accessible.
196
196
  - Ensure Handlebars templates exist in templates_dir.
@@ -246,13 +246,13 @@ embedoc watch --debug-deps
246
246
  #### Extensions
247
247
 
248
248
  ```yaml
249
- x-agent:
249
+ x-agent:
250
250
  risk_level: medium
251
251
  requires_confirmation: false
252
252
  idempotent: true
253
- side_effects:
253
+ side_effects:
254
254
  - file_write
255
- recommended_before_use:
255
+ recommended_before_use:
256
256
  - Ensure embedoc.config.yaml exists (run init if needed).
257
257
  - Verify datasource files are accessible.
258
258
  ```
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "embedoc",
3
- "version": "0.14.4",
3
+ "version": "0.14.6",
4
4
  "description": "In-place document generator that auto-updates marker blocks while preserving manual edits. Supports multiple datasources (SQLite, CSV, JSON, YAML, glob), programmable TypeScript embeds, and incremental builds with dependency tracking.",
5
5
  "type": "module",
6
6
  "workspaces": [
@@ -94,7 +94,7 @@
94
94
  "@types/node": "^22.10.2",
95
95
  "@typescript-eslint/eslint-plugin": "^8.0.0",
96
96
  "@typescript-eslint/parser": "^8.0.0",
97
- "cli-contracts": "^0.32.0",
97
+ "cli-contracts": "^0.34.6",
98
98
  "esbuild": "^0.28.0",
99
99
  "eslint": "^10.8.0",
100
100
  "globals": "^17.8.0",