Open History to see the last commit
1/**
2 * OpenCodeAdapter — shape type for the OpenCode 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/OpenCodeDriver}) 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 OpenCodeAdapter
11 */
12import type { ProviderAdapterError } from "../Errors.ts";
13import type { ProviderAdapterShape } from "./ProviderAdapter.ts";
14
15/**
16 * OpenCodeAdapterShape — per-instance OpenCode adapter contract. Carries
17 * a branded driver kind as the nominal discriminant.
18 */
19export interface OpenCodeAdapterShape extends ProviderAdapterShape<ProviderAdapterError> {}