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

ProviderOrchestrationAdapterInfrastructure.ts

29 lines1022 Bytes

1import * as Layer from "effect/Layer";
2​
3import {
4 ClaudeAgentSdkQueryRunner,
5 claudeAgentSdkQueryRunnerLiveLayer,
6} from "../../orchestration-v2/Adapters/ClaudeAdapterV2.ts";
7import {
8 CodexAppServerClientFactory,
9 codexAppServerClientFactoryFromSettingsLayer,
10} from "../../orchestration-v2/Adapters/CodexAdapterV2.ts";
11import {
12 CursorAgentSdkRunner,
13 cursorAgentSdkRunnerLiveLayer,
14} from "../../orchestration-v2/Adapters/CursorAgentSdk.ts";
15import { IdAllocatorV2, layer as idAllocatorLayer } from "../../orchestration-v2/IdAllocator.ts";
16​
17export type ProviderOrchestrationAdapterInfrastructure =
18 | ClaudeAgentSdkQueryRunner
19 | CodexAppServerClientFactory
20 | CursorAgentSdkRunner
21 | IdAllocatorV2;
22​
23/** Infrastructure shared by the V2 adapters materialized inside provider instances. */
24export const ProviderOrchestrationAdapterInfrastructureLive = Layer.mergeAll(
25 claudeAgentSdkQueryRunnerLiveLayer,
26 codexAppServerClientFactoryFromSettingsLayer,
27 cursorAgentSdkRunnerLiveLayer,
28 idAllocatorLayer,
29);