Private
Public Access
0
0

chore(type-registry): regenerate after code_path_audit module additions

Regenerated docs/type_registry/ via scripts/generate_type_registry.py.
10 files differ from previous state:
- 5 ADDED: src_api_hooks.md, src_code_path_audit.md, src_log_registry.md,
  src_mcp_tool_specs.md, src_openai_schemas.md, src_provider_state.md
  (these src files were added in 2026-06-21 phase2_4_5 parent track but
  never had registry entries generated)
- 1 DELETED: src_openai_compatible.md (the file's types moved to src_openai_schemas.md)
- 4 MODIFIED: index.md, src_type_aliases.md, type_aliases.md, ...

Verification: uv run python scripts/generate_type_registry.py --check
returns 'Registry in sync (23 files checked)' (exit 0).
This commit is contained in:
2026-06-24 09:43:39 -04:00
parent 91d7763359
commit 84dce5837c
10 changed files with 410 additions and 46 deletions
+32 -3
View File
@@ -5,16 +5,21 @@ Generated by `scripts/generate_type_registry.py`. Re-run the script (or invoke `
## Table of Contents
- [`src\api_hooks.py`](src\api_hooks.md)
- [`src\beads_client.py`](src\beads_client.md)
- [`src\code_path_audit.py`](src\code_path_audit.md)
- [`src\command_palette.py`](src\command_palette.md)
- [`src\diff_viewer.py`](src\diff_viewer.md)
- [`src\history.py`](src\history.md)
- [`src\hot_reloader.py`](src\hot_reloader.md)
- [`src\log_registry.py`](src\log_registry.md)
- [`src\markdown_table.py`](src\markdown_table.md)
- [`src\mcp_tool_specs.py`](src\mcp_tool_specs.md)
- [`src\models.py`](src\models.md)
- [`src\openai_compatible.py`](src\openai_compatible.md)
- [`src\openai_schemas.py`](src\openai_schemas.md)
- [`src\patch_modal.py`](src\patch_modal.md)
- [`src\paths.py`](src\paths.md)
- [`src\provider_state.py`](src\provider_state.md)
- [`src\result_types.py`](src\result_types.md)
- [`src\startup_profiler.py`](src\startup_profiler.md)
- [`src\theme_models.py`](src\theme_models.md)
@@ -24,7 +29,20 @@ Generated by `scripts/generate_type_registry.py`. Re-run the script (or invoke `
## Cross-Module Index (by type name)
- `WebSocketMessage` (dataclass) - [`src\api_hooks.py`](src\api_hooks.md#src\api_hooks.py::WebSocketMessage)
- `Bead` (dataclass) - [`src\beads_client.py`](src\beads_client.md#src\beads_client.py::Bead)
- `FunctionRef` (dataclass) - [`src\code_path_audit.py`](src\code_path_audit.md#src\code_path_audit.py::FunctionRef)
- `AccessPatternEvidence` (dataclass) - [`src\code_path_audit.py`](src\code_path_audit.md#src\code_path_audit.py::AccessPatternEvidence)
- `FrequencyEvidence` (dataclass) - [`src\code_path_audit.py`](src\code_path_audit.md#src\code_path_audit.py::FrequencyEvidence)
- `ResultCoverage` (dataclass) - [`src\code_path_audit.py`](src\code_path_audit.md#src\code_path_audit.py::ResultCoverage)
- `TypeAliasCoverage` (dataclass) - [`src\code_path_audit.py`](src\code_path_audit.md#src\code_path_audit.py::TypeAliasCoverage)
- `CrossAuditFinding` (dataclass) - [`src\code_path_audit.py`](src\code_path_audit.md#src\code_path_audit.py::CrossAuditFinding)
- `CrossAuditFindings` (dataclass) - [`src\code_path_audit.py`](src\code_path_audit.md#src\code_path_audit.py::CrossAuditFindings)
- `DecompositionCost` (dataclass) - [`src\code_path_audit.py`](src\code_path_audit.md#src\code_path_audit.py::DecompositionCost)
- `OptimizationCandidate` (dataclass) - [`src\code_path_audit.py`](src\code_path_audit.md#src\code_path_audit.py::OptimizationCandidate)
- `AggregateProfile` (dataclass) - [`src\code_path_audit.py`](src\code_path_audit.md#src\code_path_audit.py::AggregateProfile)
- `ProducerConsumerGraph` (dataclass) - [`src\code_path_audit.py`](src\code_path_audit.md#src\code_path_audit.py::ProducerConsumerGraph)
- `AuditSummary` (dataclass) - [`src\code_path_audit.py`](src\code_path_audit.md#src\code_path_audit.py::AuditSummary)
- `Command` (dataclass) - [`src\command_palette.py`](src\command_palette.md#src\command_palette.py::Command)
- `ScoredCommand` (dataclass) - [`src\command_palette.py`](src\command_palette.md#src\command_palette.py::ScoredCommand)
- `DiffHunk` (dataclass) - [`src\diff_viewer.py`](src\diff_viewer.md#src\diff_viewer.py::DiffHunk)
@@ -32,7 +50,11 @@ Generated by `scripts/generate_type_registry.py`. Re-run the script (or invoke `
- `UISnapshot` (dataclass) - [`src\history.py`](src\history.md#src\history.py::UISnapshot)
- `HistoryEntry` (dataclass) - [`src\history.py`](src\history.md#src\history.py::HistoryEntry)
- `HotModule` (dataclass) - [`src\hot_reloader.py`](src\hot_reloader.md#src\hot_reloader.py::HotModule)
- `SessionMetadata` (dataclass) - [`src\log_registry.py`](src\log_registry.md#src\log_registry.py::SessionMetadata)
- `Session` (dataclass) - [`src\log_registry.py`](src\log_registry.md#src\log_registry.py::Session)
- `TableBlock` (dataclass) - [`src\markdown_table.py`](src\markdown_table.md#src\markdown_table.py::TableBlock)
- `ToolParameter` (dataclass) - [`src\mcp_tool_specs.py`](src\mcp_tool_specs.md#src\mcp_tool_specs.py::ToolParameter)
- `ToolSpec` (dataclass) - [`src\mcp_tool_specs.py`](src\mcp_tool_specs.md#src\mcp_tool_specs.py::ToolSpec)
- `ThinkingSegment` (dataclass) - [`src\models.py`](src\models.md#src\models.py::ThinkingSegment)
- `Ticket` (dataclass) - [`src\models.py`](src\models.md#src\models.py::Ticket)
- `Track` (dataclass) - [`src\models.py`](src\models.md#src\models.py::Track)
@@ -55,10 +77,15 @@ Generated by `scripts/generate_type_registry.py`. Re-run the script (or invoke `
- `MCPConfiguration` (dataclass) - [`src\models.py`](src\models.md#src\models.py::MCPConfiguration)
- `VectorStoreConfig` (dataclass) - [`src\models.py`](src\models.md#src\models.py::VectorStoreConfig)
- `RAGConfig` (dataclass) - [`src\models.py`](src\models.md#src\models.py::RAGConfig)
- `NormalizedResponse` (dataclass) - [`src\openai_compatible.py`](src\openai_compatible.md#src\openai_compatible.py::NormalizedResponse)
- `OpenAICompatibleRequest` (dataclass) - [`src\openai_compatible.py`](src\openai_compatible.md#src\openai_compatible.py::OpenAICompatibleRequest)
- `ToolCallFunction` (dataclass) - [`src\openai_schemas.py`](src\openai_schemas.md#src\openai_schemas.py::ToolCallFunction)
- `ToolCall` (dataclass) - [`src\openai_schemas.py`](src\openai_schemas.md#src\openai_schemas.py::ToolCall)
- `ChatMessage` (dataclass) - [`src\openai_schemas.py`](src\openai_schemas.md#src\openai_schemas.py::ChatMessage)
- `UsageStats` (dataclass) - [`src\openai_schemas.py`](src\openai_schemas.md#src\openai_schemas.py::UsageStats)
- `NormalizedResponse` (dataclass) - [`src\openai_schemas.py`](src\openai_schemas.md#src\openai_schemas.py::NormalizedResponse)
- `OpenAICompatibleRequest` (dataclass) - [`src\openai_schemas.py`](src\openai_schemas.md#src\openai_schemas.py::OpenAICompatibleRequest)
- `PendingPatch` (dataclass) - [`src\patch_modal.py`](src\patch_modal.md#src\patch_modal.py::PendingPatch)
- `PathsConfig` (dataclass) - [`src\paths.py`](src\paths.md#src\paths.py::PathsConfig)
- `ProviderHistory` (dataclass) - [`src\provider_state.py`](src\provider_state.md#src\provider_state.py::ProviderHistory)
- `ErrorInfo` (dataclass) - [`src\result_types.py`](src\result_types.md#src\result_types.py::ErrorInfo)
- `Result` (dataclass) - [`src\result_types.py`](src\result_types.md#src\result_types.py::Result)
- `NilPath` (dataclass) - [`src\result_types.py`](src\result_types.md#src\result_types.py::NilPath)
@@ -78,5 +105,7 @@ Generated by `scripts/generate_type_registry.py`. Re-run the script (or invoke `
- `ToolDefinition` (TypeAlias) - [`src\type_aliases.py`](src\type_aliases.md#src\type_aliases.py::ToolDefinition)
- `ToolCall` (TypeAlias) - [`src\type_aliases.py`](src\type_aliases.md#src\type_aliases.py::ToolCall)
- `CommsLogCallback` (TypeAlias) - [`src\type_aliases.py`](src\type_aliases.md#src\type_aliases.py::CommsLogCallback)
- `JsonPrimitive` (TypeAlias) - [`src\type_aliases.py`](src\type_aliases.md#src\type_aliases.py::JsonPrimitive)
- `JsonValue` (TypeAlias) - [`src\type_aliases.py`](src\type_aliases.md#src\type_aliases.py::JsonValue)
- `VendorCapabilities` (dataclass) - [`src\vendor_capabilities.py`](src\vendor_capabilities.md#src\vendor_capabilities.py::VendorCapabilities)
- `VendorMetric` (dataclass) - [`src\vendor_state.py`](src\vendor_state.md#src\vendor_state.py::VendorMetric)
+13
View File
@@ -0,0 +1,13 @@
# Module: `src\api_hooks.py`
Auto-generated from source. 1 struct(s) defined in this module.
## `src\api_hooks.py::WebSocketMessage`
**Kind:** `dataclass`
**Defined at:** line 21
**Fields:**
- `channel: str`
- `payload: JsonValue`
+169
View File
@@ -0,0 +1,169 @@
# Module: `src\code_path_audit.py`
Auto-generated from source. 12 struct(s) defined in this module.
## `src\code_path_audit.py::AccessPatternEvidence`
**Kind:** `dataclass`
**Defined at:** line 70
**Fields:**
- `function: FunctionRef`
- `pattern: AccessPattern`
- `field_accesses: dict[str, int]`
- `confidence: str`
## `src\code_path_audit.py::AggregateProfile`
**Kind:** `dataclass`
**Defined at:** line 136
**Fields:**
- `name: str`
- `aggregate_kind: AggregateKind`
- `memory_dim: MemoryDim`
- `producers: tuple[FunctionRef, ...]`
- `consumers: tuple[FunctionRef, ...]`
- `access_pattern: AccessPattern`
- `access_pattern_evidence: tuple[AccessPatternEvidence, ...]`
- `frequency: Frequency`
- `frequency_evidence: tuple[FrequencyEvidence, ...]`
- `result_coverage: ResultCoverage`
- `type_alias_coverage: TypeAliasCoverage`
- `cross_audit_findings: CrossAuditFindings`
- `decomposition_cost: DecompositionCost`
- `optimization_candidates: tuple[OptimizationCandidate, ...]`
- `is_candidate: bool`
- `mermaid: str`
- `markdown: str`
## `src\code_path_audit.py::AuditSummary`
**Kind:** `dataclass`
**Defined at:** line 1213
**Fields:**
- `aggregate_profiles: tuple[AggregateProfile, ...]`
- `output_paths: dict[str, str]`
## `src\code_path_audit.py::CrossAuditFinding`
**Kind:** `dataclass`
**Defined at:** line 99
**Fields:**
- `audit_script: str`
- `site_count: int`
- `example_file: str`
- `example_line: int`
- `note: str`
## `src\code_path_audit.py::CrossAuditFindings`
**Kind:** `dataclass`
**Defined at:** line 107
**Fields:**
- `weak_types: tuple[CrossAuditFinding, ...]`
- `exception_handling: tuple[CrossAuditFinding, ...]`
- `optional_in_baseline: tuple[CrossAuditFinding, ...]`
- `config_io_ownership: tuple[CrossAuditFinding, ...]`
- `import_graph: tuple[CrossAuditFinding, ...]`
## `src\code_path_audit.py::DecompositionCost`
**Kind:** `dataclass`
**Defined at:** line 115
**Fields:**
- `current_cost_estimate: int`
- `componentize_savings: int`
- `unify_savings: int`
- `recommended_direction: RecommendedDirection`
- `recommended_rationale: str`
- `batch_size: int | None`
- `struct_field_count: int`
- `struct_frozen: bool`
## `src\code_path_audit.py::FrequencyEvidence`
**Kind:** `dataclass`
**Defined at:** line 77
**Fields:**
- `function: FunctionRef`
- `frequency: Frequency`
- `source: str`
- `note: str`
## `src\code_path_audit.py::FunctionRef`
**Kind:** `dataclass`
**Defined at:** line 63
**Fields:**
- `fqname: str`
- `file: str`
- `line: int`
- `role: str`
## `src\code_path_audit.py::OptimizationCandidate`
**Kind:** `dataclass`
**Defined at:** line 126
**Fields:**
- `candidate: str`
- `direction: RecommendedDirection`
- `affected_files: tuple[str, ...]`
- `estimated_savings_us: int`
- `effort: str`
- `priority: str`
- `cross_ref: str`
## `src\code_path_audit.py::ProducerConsumerGraph`
**Kind:** `dataclass`
**Defined at:** line 156
**Summary:** Bipartite graph: aggregates <-> functions.
**Fields:**
- `edges: dict[tuple[str, str], set[str]]`
- `producers: dict[str, set[FunctionRef]]`
- `consumers: dict[str, set[FunctionRef]]`
- `field_accesses: dict[tuple[str, str], tuple[str, int]]`
## `src\code_path_audit.py::ResultCoverage`
**Kind:** `dataclass`
**Defined at:** line 84
**Fields:**
- `total_producers: int`
- `result_producers: int`
- `total_consumers: int`
- `result_consumers: int`
- `summary: str`
## `src\code_path_audit.py::TypeAliasCoverage`
**Kind:** `dataclass`
**Defined at:** line 92
**Fields:**
- `total_sites: int`
- `typed_sites: int`
- `untyped_sites: int`
- `summary: str`
+30
View File
@@ -0,0 +1,30 @@
# Module: `src\log_registry.py`
Auto-generated from source. 2 struct(s) defined in this module.
## `src\log_registry.py::Session`
**Kind:** `dataclass`
**Defined at:** line 74
**Fields:**
- `session_id: str`
- `path: str`
- `start_time: str`
- `whitelisted: bool`
- `metadata: Optional[SessionMetadata]`
## `src\log_registry.py::SessionMetadata`
**Kind:** `dataclass`
**Defined at:** line 54
**Fields:**
- `message_count: int`
- `errors: int`
- `size_kb: int`
- `whitelisted: bool`
- `reason: str`
- `timestamp: Optional[str]`
+27
View File
@@ -0,0 +1,27 @@
# Module: `src\mcp_tool_specs.py`
Auto-generated from source. 2 struct(s) defined in this module.
## `src\mcp_tool_specs.py::ToolParameter`
**Kind:** `dataclass`
**Defined at:** line 28
**Fields:**
- `name: str`
- `type: str`
- `description: str`
- `required: bool`
- `enum: tuple[str, ...] | None`
## `src\mcp_tool_specs.py::ToolSpec`
**Kind:** `dataclass`
**Defined at:** line 43
**Fields:**
- `name: str`
- `description: str`
- `parameters: tuple[ToolParameter, ...]`
@@ -1,36 +0,0 @@
# Module: `src\openai_compatible.py`
Auto-generated from source. 2 struct(s) defined in this module.
## `src\openai_compatible.py::NormalizedResponse`
**Kind:** `dataclass`
**Defined at:** line 10
**Fields:**
- `text: str`
- `tool_calls: list[dict[str, Any]]`
- `usage_input_tokens: int`
- `usage_output_tokens: int`
- `usage_cache_read_tokens: int`
- `usage_cache_creation_tokens: int`
- `raw_response: Any`
## `src\openai_compatible.py::OpenAICompatibleRequest`
**Kind:** `dataclass`
**Defined at:** line 20
**Fields:**
- `messages: list[dict[str, Any]]`
- `model: str`
- `temperature: float`
- `top_p: float`
- `max_tokens: int`
- `tools: Optional[list[dict[str, Any]]]`
- `tool_choice: str`
- `stream: bool`
- `stream_callback: Optional[Callable[[str], None]]`
- `extra_body: Optional[dict[str, Any]]`
+79
View File
@@ -0,0 +1,79 @@
# Module: `src\openai_schemas.py`
Auto-generated from source. 6 struct(s) defined in this module.
## `src\openai_schemas.py::ChatMessage`
**Kind:** `dataclass`
**Defined at:** line 49
**Fields:**
- `role: str`
- `content: str`
- `tool_calls: Optional[tuple[ToolCall, ...]]`
- `tool_call_id: Optional[str]`
- `name: Optional[str]`
## `src\openai_schemas.py::NormalizedResponse`
**Kind:** `dataclass`
**Defined at:** line 76
**Fields:**
- `text: str`
- `tool_calls: tuple[ToolCall, ...]`
- `usage: UsageStats`
- `raw_response: Any`
## `src\openai_schemas.py::OpenAICompatibleRequest`
**Kind:** `dataclass`
**Defined at:** line 97
**Fields:**
- `messages: list[ChatMessage]`
- `model: str`
- `temperature: float`
- `top_p: float`
- `max_tokens: int`
- `tools: Optional[list[JsonValue]]`
- `tool_choice: str`
- `stream: bool`
- `stream_callback: Optional[Callable[[str], None]]`
- `extra_body: Optional[JsonValue]`
## `src\openai_schemas.py::ToolCall`
**Kind:** `dataclass`
**Defined at:** line 32
**Fields:**
- `id: str`
- `function: ToolCallFunction`
- `type: str`
## `src\openai_schemas.py::ToolCallFunction`
**Kind:** `dataclass`
**Defined at:** line 26
**Fields:**
- `name: str`
- `arguments: str`
## `src\openai_schemas.py::UsageStats`
**Kind:** `dataclass`
**Defined at:** line 68
**Fields:**
- `input_tokens: int`
- `output_tokens: int`
- `cache_read_tokens: int`
- `cache_creation_tokens: int`
+13
View File
@@ -0,0 +1,13 @@
# Module: `src\provider_state.py`
Auto-generated from source. 1 struct(s) defined in this module.
## `src\provider_state.py::ProviderHistory`
**Kind:** `dataclass`
**Defined at:** line 26
**Fields:**
- `messages: list[HistoryMessage]`
- `lock: threading.Lock`
+24 -4
View File
@@ -1,6 +1,6 @@
# Module: `src\type_aliases.py`
Auto-generated from source. 11 struct(s) defined in this module.
Auto-generated from source. 13 struct(s) defined in this module.
## `src\type_aliases.py::CommsLog`
@@ -49,7 +49,7 @@ Auto-generated from source. 11 struct(s) defined in this module.
## `src\type_aliases.py::FileItemsDiff`
**Kind:** `NamedTuple`
**Defined at:** line 22
**Defined at:** line 25
**Fields:**
- `refreshed: FileItems`
@@ -61,6 +61,7 @@ Auto-generated from source. 11 struct(s) defined in this module.
**Kind:** `TypeAlias`
**Defined at:** line 11
**Resolves to:** `list[HistoryMessage]`
**Used by:** `ProviderHistory`
**Note:** `History` is a semantic alias. The type registry is auto-generated from the source code.
@@ -69,16 +70,34 @@ Auto-generated from source. 11 struct(s) defined in this module.
**Kind:** `TypeAlias`
**Defined at:** line 10
**Resolves to:** `Metadata`
**Used by:** `History`
**Used by:** `History`, `ProviderHistory`
**Note:** `HistoryMessage` is a semantic alias. The type registry is auto-generated from the source code.
## `src\type_aliases.py::JsonPrimitive`
**Kind:** `TypeAlias`
**Defined at:** line 21
**Resolves to:** `str | int | float | bool | None`
**Used by:** `JsonValue`
**Note:** `JsonPrimitive` is a semantic alias. The type registry is auto-generated from the source code.
## `src\type_aliases.py::JsonValue`
**Kind:** `TypeAlias`
**Defined at:** line 22
**Resolves to:** `JsonPrimitive | list['JsonValue'] | dict[str, 'JsonValue']`
**Used by:** `OpenAICompatibleRequest`, `WebSocketMessage`
**Note:** `JsonValue` is a semantic alias. The type registry is auto-generated from the source code.
## `src\type_aliases.py::Metadata`
**Kind:** `TypeAlias`
**Defined at:** line 5
**Resolves to:** `dict[str, Any]`
**Used by:** `CommsLogEntry`, `FileItem`, `HistoryMessage`, `Persona`, `ToolCall`, `ToolDefinition`, `TrackState`, `WorkerContext`, `WorkspaceProfile`
**Used by:** `CommsLogEntry`, `FileItem`, `HistoryMessage`, `Persona`, `Session`, `ToolCall`, `ToolDefinition`, `TrackState`, `WorkerContext`, `WorkspaceProfile`
**Note:** `Metadata` is a semantic alias. The type registry is auto-generated from the source code.
@@ -87,6 +106,7 @@ Auto-generated from source. 11 struct(s) defined in this module.
**Kind:** `TypeAlias`
**Defined at:** line 17
**Resolves to:** `Metadata`
**Used by:** `ChatMessage`, `NormalizedResponse`, `ToolCall`
**Note:** `ToolCall` is a semantic alias. The type registry is auto-generated from the source code.
+23 -3
View File
@@ -2,7 +2,7 @@
# Module: `src/type_aliases.py (TypeAliases only)`
Auto-generated from source. 10 struct(s) defined in this module.
Auto-generated from source. 12 struct(s) defined in this module.
## `src\type_aliases.py::CommsLog`
@@ -53,6 +53,7 @@ Auto-generated from source. 10 struct(s) defined in this module.
**Kind:** `TypeAlias`
**Defined at:** line 11
**Resolves to:** `list[HistoryMessage]`
**Used by:** `ProviderHistory`
**Note:** `History` is a semantic alias. The type registry is auto-generated from the source code.
@@ -61,16 +62,34 @@ Auto-generated from source. 10 struct(s) defined in this module.
**Kind:** `TypeAlias`
**Defined at:** line 10
**Resolves to:** `Metadata`
**Used by:** `History`
**Used by:** `History`, `ProviderHistory`
**Note:** `HistoryMessage` is a semantic alias. The type registry is auto-generated from the source code.
## `src\type_aliases.py::JsonPrimitive`
**Kind:** `TypeAlias`
**Defined at:** line 21
**Resolves to:** `str | int | float | bool | None`
**Used by:** `JsonValue`
**Note:** `JsonPrimitive` is a semantic alias. The type registry is auto-generated from the source code.
## `src\type_aliases.py::JsonValue`
**Kind:** `TypeAlias`
**Defined at:** line 22
**Resolves to:** `JsonPrimitive | list['JsonValue'] | dict[str, 'JsonValue']`
**Used by:** `OpenAICompatibleRequest`, `WebSocketMessage`
**Note:** `JsonValue` is a semantic alias. The type registry is auto-generated from the source code.
## `src\type_aliases.py::Metadata`
**Kind:** `TypeAlias`
**Defined at:** line 5
**Resolves to:** `dict[str, Any]`
**Used by:** `CommsLogEntry`, `FileItem`, `HistoryMessage`, `Persona`, `ToolCall`, `ToolDefinition`, `TrackState`, `WorkerContext`, `WorkspaceProfile`
**Used by:** `CommsLogEntry`, `FileItem`, `HistoryMessage`, `Persona`, `Session`, `ToolCall`, `ToolDefinition`, `TrackState`, `WorkerContext`, `WorkspaceProfile`
**Note:** `Metadata` is a semantic alias. The type registry is auto-generated from the source code.
@@ -79,6 +98,7 @@ Auto-generated from source. 10 struct(s) defined in this module.
**Kind:** `TypeAlias`
**Defined at:** line 17
**Resolves to:** `Metadata`
**Used by:** `ChatMessage`, `NormalizedResponse`, `ToolCall`
**Note:** `ToolCall` is a semantic alias. The type registry is auto-generated from the source code.