Add typed OpenAI transport spine
This commit is contained in:
parent
7bc3a5cb63
commit
c23c16450c
7 changed files with 346 additions and 12 deletions
|
|
@ -122,9 +122,16 @@ The first workspace-verified wrapper now exists as
|
|||
keeper Codex auth types and projects `AuthManager` / `CodexAuth` into a typed
|
||||
`EpiphanyOpenAiAdapterStatus`. `epiphany-codex-bridge` re-exports this spine so
|
||||
the current app-server compatibility shell can compile it without making the
|
||||
pure document crate depend on Codex. The remaining extraction is model
|
||||
transport: typed Epiphany model requests must call the keeper Responses API
|
||||
transport through this boundary rather than route through Epiphany JSON-RPC or
|
||||
pure document crate depend on Codex.
|
||||
|
||||
The first transport wrapper is now also in that spine. It maps typed
|
||||
`EpiphanyOpenAiModelRequest` documents into Codex API `ResponsesApiRequest`,
|
||||
resolves auth/provider through `codex-login` + `codex-model-provider`, opens an
|
||||
HTTP Responses stream with `codex-api`, and converts stream deltas/completion
|
||||
into typed `EpiphanyOpenAiStreamEvent` / `EpiphanyOpenAiModelReceipt`
|
||||
documents. This is still a compatibility reliquary, not final native purity:
|
||||
the next cut is to make an Epiphany-native runtime call this transport boundary
|
||||
directly instead of reaching model turns through `thread/epiphany/*` JSON-RPC or
|
||||
the Codex host brain.
|
||||
|
||||
The point is ownership: Epiphany calls a model adapter; it does not live inside
|
||||
|
|
|
|||
|
|
@ -555,18 +555,25 @@ workspace-verified wrapper now exists as `epiphany-openai-codex-spine`: it
|
|||
depends on the pure typed adapter plus the keeper Codex auth types and projects
|
||||
`AuthManager` / `CodexAuth` into a typed `EpiphanyOpenAiAdapterStatus`.
|
||||
`epiphany-codex-bridge` re-exports that spine so the current app-server shell
|
||||
can compile the attachment without contaminating the pure document crate.
|
||||
can compile the attachment without contaminating the pure document crate. The
|
||||
same spine now owns the first HTTP Responses transport wrapper: typed
|
||||
`EpiphanyOpenAiModelRequest` documents map into Codex API
|
||||
`ResponsesApiRequest`, auth/provider resolves through `codex-login` and
|
||||
`codex-model-provider`, the stream opens through `codex-api`, and deltas /
|
||||
completion map back into typed `EpiphanyOpenAiStreamEvent` and
|
||||
`EpiphanyOpenAiModelReceipt` documents.
|
||||
|
||||
Also: MCP itself is allowed to be JSON. The target is not "replace MCP JSON";
|
||||
the target is an Epiphany-owned boundary that speaks typed Epiphany
|
||||
intent/result/receipt documents internally and normal MCP JSON-RPC externally.
|
||||
|
||||
Continue with the actual whale-carcass cut: add model transport behind the
|
||||
native typed request/event/receipt surface, using the keeper Responses API
|
||||
transport identified in `notes/codex-auth-spine-inventory.md`. Success is
|
||||
Epiphany calling a model adapter rather than living inside the Codex host brain.
|
||||
Do not resume Rider, Unity, Aquarium, Face, dogfood, planning, app, skill,
|
||||
marketplace, or bridge expansion until this organ is being cut cleanly.
|
||||
Continue with the actual whale-carcass cut: make an Epiphany-native runtime
|
||||
surface call the typed OpenAI adapter/spine directly, then starve the old model
|
||||
turn path out of `thread/epiphany/*` JSON-RPC and `codex_message_processor.rs`.
|
||||
Success is Epiphany calling the model adapter from its own CultCache/CultNet
|
||||
runtime boundary rather than living inside the Codex host brain. Do not resume
|
||||
Rider, Unity, Aquarium, Face, dogfood, planning, app, skill, marketplace, or
|
||||
bridge expansion until this organ is being cut cleanly.
|
||||
|
||||
The Phase 6 freshness slice is landed. It exposes read-only
|
||||
`thread/epiphany/freshness` from live retrieval summaries plus graph
|
||||
|
|
|
|||
Reference in a new issue