Skip to content
Source
Sign inSign up
pingdotgg/t3code
Open History to see the last commit

CodexAdapter.ts

19 lines803 Bytes

1/**
2 * CodexAdapter — shape type for the Codex provider adapter.
3 *
4 * Historically this module exposed a `Context.Service` tag so consumers
5 * could inject the adapter through the Effect layer graph. The driver
6 * model ({@link ../Drivers/CodexDriver}) bundles one adapter per
7 * instance as a captured closure instead, so the tag is gone — we only
8 * retain the shape interface as a naming anchor for the driver bundle.
9 *
10 * @module CodexAdapter
11 */
12import type { ProviderAdapterError } from "../Errors.ts";
13import type { ProviderAdapterShape } from "./ProviderAdapter.ts";
14​
15/**
16 * CodexAdapterShape — per-instance Codex adapter contract. Carries
17 * a branded driver kind as the nominal discriminant.
18 */
19export interface CodexAdapterShape extends ProviderAdapterShape<ProviderAdapterError> {}