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:
@@ -137,16 +137,16 @@ When refactoring a class to functions:
|
||||
|
||||
| Class | File:Line | State held |
|
||||
|---|---|---|
|
||||
| `App` | `src/gui_2.py:307` | GUI state (show_windows, active_discussion, disc_entries), delegation proxies |
|
||||
| `AppController` | `src/app_controller.py:795` | 11 locks, all subsystem managers, presets/personas/RAG state |
|
||||
| `App` | `src/gui_2.py:314` | GUI state (show_windows, active_discussion, disc_entries), delegation proxies |
|
||||
| `AppController` | `src/app_controller.py:801` | 11 locks, all subsystem managers, presets/personas/RAG state |
|
||||
| `ConductorEngine` | `src/multi_agent_conductor.py:112` | TrackDAG, ExecutionEngine, WorkerPool, tier_usage |
|
||||
| `WorkerPool` | `src/multi_agent_conductor.py:52` | active workers dict, semaphore, lock |
|
||||
| `RAGEngine` | `src/rag_engine.py:123` | embedding provider, chroma client/collection |
|
||||
| `RAGEngine` | `src/rag_engine.py:125` | embedding provider, chroma client/collection |
|
||||
| `BaseEmbeddingProvider` + subclasses (`LocalEmbeddingProvider`, `GeminiEmbeddingProvider`) | `src/rag_engine.py:74,78,87` | loaded model state |
|
||||
| `EventEmitter` | `src/events.py:40` | listeners dict |
|
||||
| `AsyncEventQueue` | `src/events.py:77` | asyncio.Queue |
|
||||
| `HistoryManager` | `src/history.py:71` | undo/redo stack (100-snapshot capacity) |
|
||||
| `HookServer` + `HookServerInstance` + `HookHandler` + `WebSocketServer` | `src/api_hooks.py:856,130,155,908` | HTTP server thread, port binding, event queue |
|
||||
| `HookServer` + `HookServerInstance` + `HookHandler` + `WebSocketServer` | `src/api_hooks.py:941,171,208,993` | HTTP server thread, port binding, event queue |
|
||||
| `HotReloader` + `HotModule` | `src/hot_reloader.py:21,15` | HOT_MODULES registry, last_error, is_error_state |
|
||||
|
||||
**NOT exempt** (these are dataclasses / data carriers / context managers, not stateful subsystems):
|
||||
|
||||
Reference in New Issue
Block a user