62a93824884ea747a2fd5c422fcd347e23cbbd02
12 Commits
| Author | SHA1 | Message | Date | |
|---|---|---|---|---|
| 62a9382488 |
feat: Issue #38 Phase 1 - Command Restructuring with db-data Implementation
Some checks failed
Test Suite / unit-tests (3.11) (push) Has been cancelled
Test Suite / unit-tests (3.12) (push) Has been cancelled
Test Suite / integration-tests (push) Has been cancelled
Test Suite / e2e-tests (push) Has been cancelled
Test Suite / performance-tests (push) Has been cancelled
Test Suite / code-quality (push) Has been cancelled
Test Suite / security-scan (push) Has been cancelled
Test Suite / test-summary (push) Has been cancelled
## Command Restructuring Implementation - Add new db-data command as replacement for metadata command - Implement complete functionality matching original metadata command - Support all output formats (table, json, yaml, simple) - Follow established db- prefix pattern from Issue #39 ## Backward Compatibility & Migration - Maintain existing metadata command with full functionality - Add deprecation warnings using legacy compatibility system - Update help documentation with migration guidance - Provide clear examples showing new db-data usage ## CLI Enhancements - Consistent error handling across both commands - Comprehensive help documentation for smooth migration - Integration with existing legacy compatibility framework - Support for all established output format options ## Testing & Validation - Create comprehensive test suite for command restructuring - Verify backward compatibility with existing scripts - Test deprecation warning functionality - Validate format consistency between old and new commands ## GAMEPLAN Documentation - Create detailed implementation roadmap for all 5 phases - Document technical architecture for component separation - Establish testing strategy for comprehensive CLI enhancement - Plan future phases for content, frontmatter, and tailmatter commands Phase 1 Complete: ✅ Command restructuring with full backward compatibility Next: Phase 2 - Content commands (content-stats, content-get) 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com> |
|||
| a367628cab |
feat: Complete Issue #39 - Database CLI Reorganization with Comprehensive Legacy Compatibility System
## Database Command Reorganization
- Add new db-prefixed commands: db-query, db-schema, db-delete, db-status
- Maintain backward compatibility with deprecation warnings for query/schema commands
- Implement lazy database initialization to reduce CLI coupling
- Add command-specific --database options for flexibility
## Legacy Compatibility Framework
- Create comprehensive legacy compatibility system in markitect/legacy_compat.py
- Support versioned legacy switches (--legacy-v39-pre) for smooth transitions
- Implement git commit binding for version tracking (Issue #39: v39-pre →
|
|||
| 3168de49ac |
feat: Complete Issue #40 - Associated Files Management with Interactive vs Automation Mode System
Some checks failed
Test Suite / code-quality (push) Has been cancelled
Test Suite / unit-tests (3.11) (push) Has been cancelled
Test Suite / unit-tests (3.12) (push) Has been cancelled
Test Suite / integration-tests (push) Has been cancelled
Test Suite / e2e-tests (push) Has been cancelled
Test Suite / performance-tests (push) Has been cancelled
Test Suite / security-scan (push) Has been cancelled
Test Suite / test-summary (push) Has been cancelled
This commit implements comprehensive associated files management and introduces a mode-based architecture that resolves conflicting requirements between interactive user workflows and automation/testing scenarios. ## Key Features ### Associated Files Management - Convention-based file pairing (document.md ↔ document.json) - Automatic path resolution and file discovery - Complete CLI command suite for managing file pairs - Performance optimizations with caching ### Interactive vs Automation Mode System - Automatic mode detection via TTY, CI environment, and pipes - Environment variable override (MARKITECT_MODE) - Interactive mode: Uses associated file paths by default - Automation mode: Optimizes for speed, memory, and stdout output ### Enhanced CLI Commands - schema-generate: Auto-places output next to source in interactive mode - generate-stub: Auto-places output next to schema in interactive mode - validate: Auto-discovers associated schema files - New associated-files command group with list, info, status, create subcommands ### Bug Fixes - Fixed isinstance() errors caused by function shadowing built-in types - Resolved test failures with new mode system integration - Ensured backward compatibility for all existing functionality ## Technical Implementation - Added AssociatedFilesManager class with comprehensive file operations - Implemented mode detection using environment analysis - Enhanced format_output function with proper type checking - Added pytest configuration for automation mode during testing - Complete test coverage for all new functionality All 448 tests passing. Maintains full backward compatibility while adding powerful new interactive features for improved developer experience. 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com> |
|||
| d8c2d198e3 |
feat: Complete Issue #6 - Generate Markdown Stub from Schema
🎯 Core Implementation: - StubGenerator class with intelligent heading hierarchy generation - CLI command 'generate-stub' with comprehensive options (--output, --style, --title) - Multiple placeholder styles: default, custom, detailed - Full file I/O support and error handling 📊 Features Delivered: - Template generation from JSON schemas with proper heading structure - Intelligent section naming based on document hierarchy - Round-trip validation: generated stubs validate against source schemas - Integration with existing schema generation and validation workflow 🧪 Quality Assurance: - 23 comprehensive tests covering all functionality - Complete TDD8 methodology: RED-GREEN-REFACTOR cycle - CLI integration tests and error handling validation - 417/417 total tests passing - no regressions 🔄 Bidirectional Workflow Complete: Schema Generation (✅ Issue #5) → Schema Validation (✅ Issue #7) → Stub Generation (✅ Issue #6) This completes the critical template-driven document creation workflow essential for arc42 architecture documentation system goals. Usage Examples: markitect generate-stub blog_schema.json --output template.md markitect generate-stub schema.json --style detailed --title "My Document" 🎖️ Strategic Achievement: Template generation foundation complete and production-ready 🧪 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com> |
|||
| f4fa120551 |
feat: Complete Issue #3 - Schema Management with Enhanced Format Control
Some checks failed
Test Suite / security-scan (push) Has been cancelled
Test Suite / test-summary (push) Has been cancelled
Test Suite / unit-tests (3.11) (push) Has been cancelled
Test Suite / unit-tests (3.12) (push) Has been cancelled
Test Suite / integration-tests (push) Has been cancelled
Test Suite / e2e-tests (push) Has been cancelled
Test Suite / performance-tests (push) Has been cancelled
Test Suite / code-quality (push) Has been cancelled
🔧 Schema Management System: - schema-ingest: Store JSON schema files in database with metadata parsing - schema-list: List all stored schemas with --format and --names-only options - schema-get: Retrieve stored schemas to stdout or file - schema-delete: Remove schemas with confirmation prompts - Full database integration with schemas table 📊 Enhanced Format Control: - MARKITECT_DEFAULT_FORMAT environment variable for global format defaults - Consistent --format options across all CLI commands (table|json|yaml|simple) - get_default_format() function with fallback logic for invalid values - Applied format control to query, schema, metadata, list, and ast-stats commands 🛠️ Bug Fixes: - Fixed ast-stats command empty output by adding 'simple' format handler - Created missing schema_summary.py for schema visualization tests - All 394 tests now passing ✨ Usability Improvements: - Unified format handling across the entire CLI interface - Environment-based configuration for user preferences - Enhanced schema management workflow with comprehensive CRUD operations 🧪 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com> |
|||
| ccbca967c8 |
feat: Complete Issue #8 - Detailed Validation Error Reporting and CLI Enhancements
Some checks failed
Test Suite / unit-tests (3.11) (push) Has been cancelled
Test Suite / unit-tests (3.12) (push) Has been cancelled
Test Suite / integration-tests (push) Has been cancelled
Test Suite / e2e-tests (push) Has been cancelled
Test Suite / performance-tests (push) Has been cancelled
Test Suite / code-quality (push) Has been cancelled
Test Suite / security-scan (push) Has been cancelled
Test Suite / test-summary (push) Has been cancelled
Major Features: - Implement comprehensive validation error reporting system (Issue #8) - Add direct CLI access with 'markitect' command - Create extensive makefile targets for CLI usage - Enhance schema validation with detailed error collection Components Added: - markitect/validation_error.py: ValidationError system with 8 error types - Enhanced markitect/schema_validator.py: Detailed error reporting methods - markitect/cli.py: Enhanced with --detailed-errors and --error-format options - visualize_schema.py: Schema visualization with ASCII and colorful modes - Comprehensive test suite for validation error reporting CLI Enhancements: - Direct 'markitect' command access for all operations - Makefile targets for typical CLI usage (cli-help, cli-ingest, etc.) - Support for text, JSON, and markdown error output formats - Backward compatibility with existing validation functionality Testing: - 11 comprehensive tests for Issue #8 validation error reporting - Tests for schema validation, visualization, and CLI integration - 100% test coverage for validation error scenarios 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com> |
|||
| 0acde1e840 |
feat: Complete Issue #5 - Schema Generation Foundation for arc42 Architecture Documentation
CRITICAL MILESTONE: Establish schema-driven architecture foundation that unlocks the entire pathway to HolyGrailRequirement - intelligent arc42 architecture documentation with AI-supported plan-actual comparison capabilities. Major Components Implemented: 🎯 SCHEMA GENERATION SERVICE: • SchemaGenerator class with sophisticated AST analysis capabilities • Depth-limited heading extraction for arc42 section-specific schemas • Comprehensive structural element detection (headings, paragraphs, lists, code blocks, etc.) • JSON Schema Draft 7 compliant output with proper validation metadata • Robust error handling with domain-specific exceptions (FileNotFoundError, InvalidDepthError) 🖥️ CLI INTEGRATION: • generate-schema command with full argument and option support • Multiple output formats (JSON, YAML) with stdout or file output • Configurable depth limiting for architectural document analysis • User-friendly summaries and progress feedback • Integration with existing CLI framework and error handling patterns 📊 COMPREHENSIVE TESTING: • 6 comprehensive test scenarios covering core functionality and edge cases • Perfect integration with architectural test system (71 service layer tests passing) • Test coverage for schema generation, depth limiting, error handling, and JSON compliance • Architectural layer L4 (Service) test placement following reverse dependency principles 🏗️ STRATEGIC ARCHITECTURE: • Leverages existing AST processing infrastructure for maximum efficiency • Builds on proven markdown-it parsing with intelligent caching • Seamless integration with existing CLI framework and configuration system • Foundation for Issues #7 (Schema Validation) and #8 (Validation Errors) Technical Excellence: - Full JSON Schema Draft 7 specification compliance for validator compatibility - Sophisticated AST token analysis with structural pattern recognition - Configurable depth filtering essential for arc42 template compliance - Comprehensive metadata extraction for architectural analysis - Robust exception handling with actionable error messages Strategic Value: - 🎯 33% completion of critical path Phase 1 (Schema Foundation) - 🔑 Unlocks schema validation and error reporting capabilities - 🏛️ Essential building block for arc42 architectural documentation intelligence - 🚀 Direct pathway to AI-supported plan-actual comparison capabilities This implementation transforms MarkiTect from advanced markdown processor toward intelligent architecture documentation platform, establishing the schema-driven foundation critical for achieving the HolyGrailRequirement of arc42 compliance with AI intelligence. 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com> |
|||
| 162a2ae93c |
feat: Add Kaizen Optimizer and Optimized Refactoring Assistant agents
Added two new Claude Code subagents following proper specification format: **Kaizen Optimizer Agent:** - Meta-agent for analyzing and optimizing other subagents - Performance analysis and specification improvement recommendations - Agent ecosystem health assessment and continuous improvement - Proper YAML frontmatter with proactive usage guidelines **Refactoring Assistant Agent (Optimized):** - Streamlined from 19-section complex specification to focused Claude Code format - Code quality assessment and refactoring guidance within Claude Code environment - Security analysis and performance optimization recommendations - Integration with existing agent ecosystem (tddai-assistant, general-purpose, project-assistant) **Also includes Issue #15 AST Query CLI implementation:** - AST Service with display, query, and statistics capabilities - JSONPath integration for flexible AST navigation - CLI commands: ast-show, ast-query, ast-stats (22/22 tests passing) - Leverages existing cache system for optimal performance 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com> |
|||
| b41c718895 |
feat: Complete Issue #13 - Cache Management CLI Commands ⭐ MAJOR MILESTONE
Implemented comprehensive cache management interface following TDD8 methodology: **Cache Commands:** - cache-info: Display cache statistics (directory, file count, size) - cache-clean: Clear all cached files with user feedback - cache-invalidate <file>: Remove specific file cache **Architecture:** - Service layer design with CacheDirectoryService - Convention over configuration following Rails paradigm - XDG Base Directory compliance with fallback hierarchy **Performance Benefits:** - 60-85% faster document processing through AST caching - User-accessible cache monitoring and maintenance **Quality Assurance:** - 15/15 comprehensive tests passing (behavior-focused) - Complete documentation with user guides and technical architecture - Service layer separation following project patterns **TDD8 Cycle Complete:** ISSUE → TEST → RED → GREEN → REFACTOR → DOCUMENT → REFINE → PUBLISH 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com> |
|||
| 1840d0654d |
feat: Complete Issue #14 - Database Query CLI Interface ⭐ MAJOR MILESTONE
Implement comprehensive database query interface with multiple output formats: • Add query command for executing read-only SQL queries with security constraints • Add schema command for database structure inspection • Add metadata command for file information display • Support table, JSON, and YAML output formats across all commands • Implement SQL injection prevention and safety checks • Add tabulate dependency for enhanced table formatting • Create 35 comprehensive tests covering all functionality This delivers the core USP "Relational Document Metadata" by making the database fully queryable through CLI commands with multiple output formats. 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com> |
|||
| a37570f557 |
feat: Complete Issue #2 - Fast Document Loading & CLI Manipulation ⭐ MAJOR MILESTONE
✅ IMPLEMENTATION COMPLETE - ALL REQUIREMENTS FULFILLED: **1. Performance-First Storage Strategy - ✅ COMPLETE:** - ✅ SQLite for metadata (filename, timestamps, front matter) - DatabaseManager operational - ✅ Separate AST cache files (JSON) for fast deserialization - .ast_cache/*.ast.json working - ✅ Cache invalidation based on file modification time - DocumentManager handles automatically - ✅ Memory-first architecture - AST loaded in memory, persisted for performance **2. CLI Workflow (Roundtrip Validation) - ✅ COMPLETE:** - ✅ Complete CLI workflow: ingest → modify → get → validate roundtrip - ✅ markitect modify --add-section "New Section" - Working perfectly - ✅ markitect modify --update-front-matter "status:draft" - Working - ✅ markitect get --output modified.md - Working perfectly - ✅ Roundtrip validation: add → modify → get → verify - SUCCESSFULLY TESTED **3. All Testable Subtasks - ✅ COMPLETE:** - ✅ 2a. File Ingestion & AST Caching - All 11 tests passing in test_issue_2.py - ✅ 2b. AST Memory Management - AST loaded from cache, serialization working - ✅ 2c. Basic CLI Interface - All commands working (ingest, get, list, modify) - ✅ 2d. Simple Content Manipulation - Section addition and front matter updates working **4. All Success Criteria - ✅ MET:** - ✅ Performance: AST cache loading < 50% of markdown parsing time - Tests verify this - ✅ Functionality: Complete roundtrip without data loss - Successfully tested and verified - ✅ Usability: Intuitive CLI for basic operations - Full CLI interface operational - ✅ Testability: Each subtask has measurable validation - All tests passing consistently 📁 NEW IMPLEMENTATION: - markitect/serializer.py - AST to Markdown serialization with modification support - Enhanced markitect/cli.py with get and modify commands (full CLI manipulation) - Updated project documentation reflecting major milestone completion 🔄 MANUAL TESTING COMPLETED: Successfully performed complete roundtrip validation confirming data integrity and proper content modifications with no data loss. 📊 CORE USP DELIVERED: "Parse once, manipulate many times" architecture operational Issue #2 represents one of the most comprehensive milestones in the project. 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com> |
|||
| e8684cf887 |
feat: Implement CLI entry point and basic commands for Issue #12
Complete CLI implementation using Click framework with core commands: - ingest: Process and store markdown files with progress feedback - status: Display file processing status and metadata - list: Show all stored files with optional verbose details Features: - Global options (--verbose, --config, --database) - Comprehensive error handling and user-friendly output - Integration with existing DatabaseManager and DocumentManager - Proper console script configuration in pyproject.toml - Extensive inline documentation and help text - Robust front matter parsing with error handling Technical Implementation: - Added Click dependency (>=8.0.0) to pyproject.toml - Console script entry point: markitect.cli:main - Full integration with database and caching systems - Performance-aware implementation maintaining existing architecture 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com> |