docs(guides): fix stale src/models.py refs + line-number drift across 11 guides
Sweep of the per-source-file guides + Readme.md for stale references to src/models.py as the data model home. models.py is now a ~1.5KB re-export shim per module_taxonomy_refactor_20260627; dataclasses moved to src/mma.py, src/project_files.py, src/type_aliases.py, src/mcp_tool_specs.py, src/result_types.py, src/context_presets.py, src/workspace_manager.py, src/personas.py. - guide_gui_2.md: _gui_func line 754->1062; render_main_interface line 1259->1898. - python.md §10 exemption table: App gui_2.py:307->314; AppController 795->801; RAGEngine 123->125; HookServer 856->941; HookServerInstance 130->171; HookHandler 155->208; WebSocketServer 908->993. - guide_multi_agent_conductor.md: Ticket now in src/mma.py (not models.py); ConductorEngine 116+->112+; WorkerPool 50-114->52-110. - guide_agent_memory_dimensions.md: FileItem ref models.py:510-559 -> src/project_files.py. - guide_context_aggregation.md: FileItem + ContextPreset refs -> src/project_files.py + src/context_presets.py; ai_client _send_* count 5->8. - guide_discussions.md: parse_history_entries now in src/mma.py; ContextPreset/FileItem cross-refs updated. - guide_personas.md: Persona now in src/personas.py; import example updated. - guide_rag.md: RAGConfig now in src/mcp_client.py. - guide_workspace_profiles.md: WorkspaceProfile now in src/workspace_manager.py. - guide_mma.md: Data Structures section notes src/mma.py as the live location. - Readme.md: MMA Engine + Data Models rows updated for the models.py shim reality + 8 providers + mma_exec deprecation. - guide_ai_client.md: '5 provider SDKs'->8 (added note); PROVIDERS line 56->62; __getattr__ re-export line 261->31; provider switching examples use real registered model names (claude-sonnet- 4-5, MiniMax-M2, gemini-2.5-flash, qwen-plus, grok-2, llama-3.1); _provider union lists all 8 providers.
This commit is contained in:
@@ -87,7 +87,7 @@ The `auto` strategy is the *only* one that respects `config.project.summary_only
|
||||
|
||||
## The FileItem Schema (Full)
|
||||
|
||||
`src/models.py:510-559 FileItem` is the **per-file curation memory** that nagent_review identified as Manual Slop's strongest dimension. The dataclass has 9 mutable fields + a `__post_init__` normalizer:
|
||||
`src/project_files.py:FileItem` is the **per-file curation memory** that nagent_review identified as Manual Slop's strongest dimension (moved out of `src/models.py` per `module_taxonomy_refactor_20260627`). The dataclass has 9 mutable fields + a `__post_init__` normalizer:
|
||||
|
||||
```python
|
||||
@dataclass
|
||||
@@ -139,7 +139,7 @@ Multiple slices in a file are joined with `\n\n`.
|
||||
|
||||
## The ContextPreset Schema
|
||||
|
||||
`src/models.py:909-937 ContextPreset` is a *named, persisted set* of `FileItem`s — a reusable "context composition":
|
||||
`src/context_presets.py:ContextPreset` is a *named, persisted set* of `FileItem`s — a reusable "context composition" (moved out of `src/models.py`; see [guide_models.md](guide_models.md) for the current per-system file map):
|
||||
|
||||
```python
|
||||
@dataclass
|
||||
@@ -381,10 +381,10 @@ For very large codebases (1000+ files), the bottleneck is the tree-sitter parsin
|
||||
## Cross-References
|
||||
|
||||
- **The pipeline source:** `src/aggregate.py` (518 lines)
|
||||
- **FileItem schema:** `src/models.py:510-559 FileItem`
|
||||
- **ContextPreset schema:** `src/models.py:909-937 ContextPreset`
|
||||
- **FileItem schema:** `src/project_files.py:FileItem` (moved out of `src/models.py`)
|
||||
- **ContextPreset schema:** `src/context_presets.py:ContextPreset` (moved out of `src/models.py`)
|
||||
- **ContextPresetManager:** `src/context_presets.py` (30 lines)
|
||||
- **AI client consumption:** `src/ai_client.py:_send_<provider>` × 5, see `guide_ai_client.md`
|
||||
- **AI client consumption:** `src/ai_client.py:_send_<provider>` × 8 (gemini, anthropic, gemini_cli, deepseek, minimax, qwen, grok, llama), see `guide_ai_client.md`
|
||||
- **Tier 3 worker consumption:** `src/multi_agent_conductor.py:run_worker_lifecycle`, see `guide_multi_agent_conductor.md`
|
||||
- **Per-file curation features:** `guide_context_curation.md` (Fuzzy Anchors, AST Inspector, Granular AST Control)
|
||||
- **Cache strategy:** `guide_architecture.md §"Cache Hit Strategy"`, `guide_ai_client.md §"Caching"`
|
||||
|
||||
Reference in New Issue
Block a user