How shanhuang08/xmind_reader works
This is a Vendor API test-knowledge management tool. Its main workflow reads XMind, Confluence-exported documents, URLs, or PDFs into vendor-detail knowledge, then builds and validates generated test cases and writes a MeterSphere-compatible XMind. The graph also preserves the separate Rovo Confluence Phase 0 spike. Connections are limited to README statements and SOURCE INDEX references; several reader internals and the Phase 0 implementation were not sampled.
Main entry points: main.py Unified CLI · generator_main.py Generation entry · xmind_reader_main.py XMind reader · doc_reader_main.py Document reader
Components 34
Knowledge ingestion
- XMind reader
src/xmind_reader_main.py - XMind parser
src/xmind_reader/xmind_parser.py - Case extraction
src/extractor/knowledge_extractor.py - Knowledge chunking
src/chunker/knowledge_chunker.py - Knowledge exporters
src/exporters
Vendor documentation
- Document reader
src/doc_reader_main.py - Document parser
src/doc_reader/doc_parser.py - Vendor detail extraction
src/doc_reader/doc_extractor.py - Parameter dependencies
src/doc_reader/parameter_dependency.py - Vendor detail export
src/doc_reader/doc_exporter.py - URL reader
src/url_reader_main.py - URL fetching
src/url_reader/url_fetcher.py - URL content indexing
src/url_reader - PDF reader
src/pdf_reader_main.py - PDF endpoint index
src/pdf_reader/pdf_endpoint_indexer.py - PDF section processing
src/pdf_reader - New-vendor workflow
src/new_vendor_main.py
Test generation
- Generation entry
src/generator_main.py - Draft builder
src/generator/draft_builder.py - Draft schema
src/generator/draft_schema.py - Draft validation
src/generator/draft_validator.py - Generation context
src/generator/case_generation_context.py - Endpoint analysis
src/generator/endpoint_analyzer.py - Behavior mapping
src/generator/user_behavior_mapping.py - Error policy
src/generator/multi_error_policy.py - Reference selection
src/generator/reference_selector.py - Human XMind merger
src/generator/human_xmind_merger.py
XMind output
- MeterSphere XMind writer
src/xmind_writer/metersphere_xmind_writer.py - XMind validation
src/xmind_writer/xmind_validator.py
Confluence spike
- Rovo Phase 0 runner
scripts/run_rovo_phase0.py
Other components
- Engineer
- Unified CLI
main.py - Confluence
- Vendor API docs
Connections 42
- Engineer → Unified CLI: runs command
- Unified CLI → XMind reader: dispatches XMind
main.py - Unified CLI → Document reader: dispatches docs
main.py - Unified CLI → PDF reader: dispatches PDF
main.py - Unified CLI → URL reader: dispatches URL
main.py - Unified CLI → Generation entry: dispatches generation
main.py - Unified CLI → New-vendor workflow: dispatches vendor
main.py - XMind reader → XMind parser: parses maps
src/xmind_reader_main.py - XMind reader → Case extraction: extracts cases
src/xmind_reader_main.py - XMind reader → Knowledge chunking: creates chunks
src/xmind_reader_main.py - XMind reader → Knowledge exporters: exports knowledge
src/xmind_reader_main.py - Document reader → Document parser: parses documents
src/doc_reader_main.py - Document reader → Vendor detail extraction: extracts details
src/doc_reader_main.py - Document reader → Vendor detail export: exports details
src/doc_reader_main.py - Vendor detail extraction → Parameter dependencies: uses dependencies
src/doc_reader/doc_extractor.py - Confluence → Document reader: provides exports
- Vendor API docs → URL reader: provides pages
- URL reader → URL fetching: fetches content
src/url_reader_main.py - URL reader → URL content indexing: indexes content
src/url_reader_main.py - Vendor API docs → PDF reader: provides PDFs
- PDF reader → PDF endpoint index: indexes endpoints
src/pdf_reader_main.py - PDF reader → PDF section processing: processes sections
src/pdf_reader_main.py - New-vendor workflow → Document reader: runs document read
src/new_vendor_main.py - New-vendor workflow → XMind reader: runs XMind read
src/new_vendor_main.py - New-vendor workflow → Generation entry: runs generation
src/new_vendor_main.py - Generation entry → Generation context: builds context
src/generator_main.py - Generation entry → Draft builder: builds draft
src/generator_main.py - Generation entry → Human XMind merger: merges edits
src/generator_main.py - Generation entry → MeterSphere XMind writer: writes cases
src/generator_main.py - Generation entry → XMind validation: validates output
src/generator_main.py - Draft builder → Endpoint analysis: analyzes endpoints
src/generator/draft_builder.py - Draft builder → Behavior mapping: maps behavior
src/generator/draft_builder.py - Draft validation → Draft schema: checks schema
src/generator/draft_validator.py - Draft validation → Behavior mapping: checks mapping
src/generator/draft_validator.py - Generation context → Error policy: selects error policy
src/generator/case_generation_context.py - Human XMind merger → Draft schema: uses draft schema
src/generator/human_xmind_merger.py - Human XMind merger → XMind parser: reads source map
src/generator/human_xmind_merger.py - MeterSphere XMind writer → Draft schema: uses case schema
src/xmind_writer/metersphere_xmind_writer.py - MeterSphere XMind writer → Draft validation: validates draft
src/xmind_writer/metersphere_xmind_writer.py - MeterSphere XMind writer → Behavior mapping: uses behavior mapping
src/xmind_writer/metersphere_xmind_writer.py - Engineer → Rovo Phase 0 runner: runs isolated spike
- Rovo Phase 0 runner → Confluence: reads pages