From ad9c028accaa1d24ec0bd505f7615fd3745e28a2 Mon Sep 17 00:00:00 2001 From: Ed_ Date: Sun, 21 Jun 2026 17:43:43 -0400 Subject: [PATCH] docs(type_registry): regenerate for Phase 1-5 new modules Auto-generated by scripts/generate_type_registry.py after the Phase 2 + 4 + 5 commits. These were untracked in the working tree because commit 4a774eb3 was made before Phase 5 (api_hooks) committed. NEW files (5): - docs/type_registry/src_mcp_tool_specs.md (Phase 1; ToolSpec + ToolParameter) - docs/type_registry/src_openai_schemas.md (Phase 2; ToolCall + ChatMessage + UsageStats + NormalizedResponse + OpenAICompatibleRequest) - docs/type_registry/src_provider_state.md (Phase 3 partial; ProviderHistory + _PROVIDER_HISTORIES) - docs/type_registry/src_api_hooks.md (Phase 5; WebSocketMessage) - docs/type_registry/src_log_registry.md (Phase 4; Session + SessionMetadata) Verified: uv run python scripts/generate_type_registry.py --check Registry in sync (22 files checked) These 5 .md files were generated after the Phase 5 commit (e9fa69dd) and the Phase 4 commit (fef6c20e); they were left in the working tree because commit 4a774eb3 (verify) was made after the Phase 2 registry regen but before Phase 4/5 changes were fully committed. --- docs/type_registry/src_api_hooks.md | 13 ++++ docs/type_registry/src_log_registry.md | 30 +++++++++ docs/type_registry/src_mcp_tool_specs.md | 27 ++++++++ docs/type_registry/src_openai_schemas.md | 79 ++++++++++++++++++++++++ docs/type_registry/src_provider_state.md | 13 ++++ 5 files changed, 162 insertions(+) create mode 100644 docs/type_registry/src_api_hooks.md create mode 100644 docs/type_registry/src_log_registry.md create mode 100644 docs/type_registry/src_mcp_tool_specs.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/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_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..83ae14b4 --- /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 26 + +**Fields:** +- `name: str` +- `type: str` +- `description: str` +- `required: bool` +- `enum: tuple[str, ...] | None` + + +## `src\mcp_tool_specs.py::ToolSpec` + +**Kind:** `dataclass` +**Defined at:** line 41 + +**Fields:** +- `name: str` +- `description: str` +- `parameters: tuple[ToolParameter, ...]` + diff --git a/docs/type_registry/src_openai_schemas.md b/docs/type_registry/src_openai_schemas.md new file mode 100644 index 00000000..7056ef29 --- /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 47 + +**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 74 + +**Fields:** +- `text: str` +- `tool_calls: tuple[ToolCall, ...]` +- `usage: UsageStats` +- `raw_response: Any` + + +## `src\openai_schemas.py::OpenAICompatibleRequest` + +**Kind:** `dataclass` +**Defined at:** line 95 + +**Fields:** +- `messages: list[ChatMessage]` +- `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]]` + + +## `src\openai_schemas.py::ToolCall` + +**Kind:** `dataclass` +**Defined at:** line 30 + +**Fields:** +- `id: str` +- `function: ToolCallFunction` +- `type: str` + + +## `src\openai_schemas.py::ToolCallFunction` + +**Kind:** `dataclass` +**Defined at:** line 24 + +**Fields:** +- `name: str` +- `arguments: str` + + +## `src\openai_schemas.py::UsageStats` + +**Kind:** `dataclass` +**Defined at:** line 66 + +**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` +