From 84dce5837c2acf9cbdd091a77a9c01fbe0f7330e Mon Sep 17 00:00:00 2001 From: Ed_ Date: Wed, 24 Jun 2026 09:43:39 -0400 Subject: [PATCH] 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). --- docs/type_registry/index.md | 35 +++- docs/type_registry/src_api_hooks.md | 13 ++ docs/type_registry/src_code_path_audit.md | 169 ++++++++++++++++++++ docs/type_registry/src_log_registry.md | 30 ++++ docs/type_registry/src_mcp_tool_specs.md | 27 ++++ docs/type_registry/src_openai_compatible.md | 36 ----- docs/type_registry/src_openai_schemas.md | 79 +++++++++ docs/type_registry/src_provider_state.md | 13 ++ docs/type_registry/src_type_aliases.md | 28 +++- docs/type_registry/type_aliases.md | 26 ++- 10 files changed, 410 insertions(+), 46 deletions(-) create mode 100644 docs/type_registry/src_api_hooks.md create mode 100644 docs/type_registry/src_code_path_audit.md create mode 100644 docs/type_registry/src_log_registry.md create mode 100644 docs/type_registry/src_mcp_tool_specs.md delete mode 100644 docs/type_registry/src_openai_compatible.md create mode 100644 docs/type_registry/src_openai_schemas.md create mode 100644 docs/type_registry/src_provider_state.md diff --git a/docs/type_registry/index.md b/docs/type_registry/index.md index 33343ee2..a291efd7 100644 --- a/docs/type_registry/index.md +++ b/docs/type_registry/index.md @@ -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) diff --git a/docs/type_registry/src_api_hooks.md b/docs/type_registry/src_api_hooks.md new file mode 100644 index 00000000..c4aacbfc --- /dev/null +++ b/docs/type_registry/src_api_hooks.md @@ -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` + diff --git a/docs/type_registry/src_code_path_audit.md b/docs/type_registry/src_code_path_audit.md new file mode 100644 index 00000000..bd465fc0 --- /dev/null +++ b/docs/type_registry/src_code_path_audit.md @@ -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` + diff --git a/docs/type_registry/src_log_registry.md b/docs/type_registry/src_log_registry.md new file mode 100644 index 00000000..dff10178 --- /dev/null +++ b/docs/type_registry/src_log_registry.md @@ -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]` + diff --git a/docs/type_registry/src_mcp_tool_specs.md b/docs/type_registry/src_mcp_tool_specs.md new file mode 100644 index 00000000..0f535a71 --- /dev/null +++ b/docs/type_registry/src_mcp_tool_specs.md @@ -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, ...]` + diff --git a/docs/type_registry/src_openai_compatible.md b/docs/type_registry/src_openai_compatible.md deleted file mode 100644 index d3ad825f..00000000 --- a/docs/type_registry/src_openai_compatible.md +++ /dev/null @@ -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]]` - diff --git a/docs/type_registry/src_openai_schemas.md b/docs/type_registry/src_openai_schemas.md new file mode 100644 index 00000000..65f3c24d --- /dev/null +++ b/docs/type_registry/src_openai_schemas.md @@ -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` + diff --git a/docs/type_registry/src_provider_state.md b/docs/type_registry/src_provider_state.md new file mode 100644 index 00000000..649f4d49 --- /dev/null +++ b/docs/type_registry/src_provider_state.md @@ -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` + diff --git a/docs/type_registry/src_type_aliases.md b/docs/type_registry/src_type_aliases.md index fed90ea1..66e4d8df 100644 --- a/docs/type_registry/src_type_aliases.md +++ b/docs/type_registry/src_type_aliases.md @@ -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. diff --git a/docs/type_registry/type_aliases.md b/docs/type_registry/type_aliases.md index 7c795ac4..8e3e3fb4 100644 --- a/docs/type_registry/type_aliases.md +++ b/docs/type_registry/type_aliases.md @@ -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.