markitect-main/markitect
tegwick b4232b7a47 feat: Implement Issue #56 - Data-driven multiple draft generation
Add generate-drafts CLI command for batch document generation from data sources.
Supports JSON and CSV data with field mapping, validation, and automatic file naming.

Features:
- CLI command: markitect generate-drafts <schema> <data> -o <output_dir>
- JSON and CSV data source support
- Field mapping via x-markitect-field-mapping schema extensions
- Template variable substitution (e.g., {name} -> actual values)
- Data validation with required field checking
- Automatic file naming based on data content
- Schema reference metadata in generated files
- Integration with existing stub generation (Issue #55)

Technical implementation:
- New DraftGenerator class with comprehensive data processing
- Enhanced CLI with generate-drafts command and error handling
- Comprehensive test suite with 11 test cases covering all acceptance criteria
- Field mapping extraction and validation
- Template content substitution for data-driven content

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-10-01 12:13:43 +02:00
..
legacy feat: Complete Issue #39 - Database CLI Reorganization with Comprehensive Legacy Compatibility System 2025-09-30 17:28:39 +02:00
schemas feat: Complete Issue #50 - Define metaschema for JSON schema structure 2025-10-01 02:39:29 +02:00
__init__.py chore: gitignore and repo cleanup 2025-09-16 03:04:18 +02:00
associated_files.py feat: Complete Issue #40 - Associated Files Management with Interactive vs Automation Mode System 2025-09-30 13:09:37 +02:00
ast_cache.py feat: Strategic pivot to CLI implementation with comprehensive foundation 2025-09-24 01:14:27 +02:00
ast_service.py fix: Improve AST display content visibility for Issue #15 2025-09-27 09:31:47 +02:00
cache_service.py feat: Complete logging standardization with context-aware system 2025-09-27 08:28:10 +02:00
cli.py feat: Implement Issue #56 - Data-driven multiple draft generation 2025-10-01 12:13:43 +02:00
database.py feat: Complete Issue #3 - Schema Management with Enhanced Format Control 2025-09-30 02:59:43 +02:00
document_manager.py feat: Strategic pivot to CLI implementation with comprehensive foundation 2025-09-24 01:14:27 +02:00
draft_generator.py feat: Implement Issue #56 - Data-driven multiple draft generation 2025-10-01 12:13:43 +02:00
exceptions.py feat: Implement Issue #54 - Add content field instruction capabilities 2025-10-01 08:21:42 +02:00
frontmatter.py feat: Implement Issue #1 - Database initialization and front matter parsing 2025-09-23 04:28:29 +02:00
legacy_compat.py feat: Complete Issue #39 - Database CLI Reorganization with Comprehensive Legacy Compatibility System 2025-09-30 17:28:39 +02:00
legacy_integration_example.py feat: Complete Issue #39 - Database CLI Reorganization with Comprehensive Legacy Compatibility System 2025-09-30 17:28:39 +02:00
metaschema.py feat: Complete Issue #50 - Define metaschema for JSON schema structure 2025-10-01 02:39:29 +02:00
parser.py feat: Complete Issue #8 - Detailed Validation Error Reporting and CLI Enhancements 2025-09-29 21:21:21 +02:00
schema_generator.py feat: Implement Issue #54 - Add content field instruction capabilities 2025-10-01 08:21:42 +02:00
schema_validator.py feat: Complete Issue #52 - Capture actual heading text in schemas 2025-10-01 08:03:11 +02:00
serializer.py feat: Complete Issue #2 - Fast Document Loading & CLI Manipulation MAJOR MILESTONE 2025-09-25 03:01:40 +02:00
stub_generator.py feat: Implement Issue #55 - Schema-based draft generation with content instructions 2025-10-01 08:41:28 +02:00
validation_error.py feat: Complete Issue #8 - Detailed Validation Error Reporting and CLI Enhancements 2025-09-29 21:21:21 +02:00