@@ -24,11 +24,7 @@ import * as Stream from "effect/Stream";
2424import { ClaudeProviderCapabilitiesV2 } from "../orchestration-v2/Adapters/ClaudeAdapterV2.ts" ;
2525import * as EffectWorker from "../orchestration-v2/EffectWorker.ts" ;
2626import * as Orchestrator from "../orchestration-v2/Orchestrator.ts" ;
27- import type {
28- ProviderAdapterV2Event ,
29- ProviderAdapterV2Shape ,
30- ProviderAdapterV2TurnInput ,
31- } from "@t3tools/provider-core/server/ProviderAdapter" ;
27+ import * as ProviderAdapter from "@t3tools/provider-core/server/ProviderAdapter" ;
3228import * as ProviderAdapterRegistry from "../orchestration-v2/ProviderAdapterRegistry.ts" ;
3329import * as ThreadManagementService from "../orchestration-v2/ThreadManagementService.ts" ;
3430import * as ProviderReplayHarness from "../orchestration-v2/testkit/ProviderReplayHarness.ts" ;
@@ -52,18 +48,18 @@ it.effect("task_cancel ends a delegated child's background native subagent", ()
5248 Effect . gen ( function * ( ) {
5349 const cwd = yield * checkpointWorkspace ( "task-cancel-native-subagent" ) ;
5450 const turns : Array < {
55- readonly turn : ProviderAdapterV2TurnInput ;
56- readonly events : Queue . Queue < ProviderAdapterV2Event > ;
51+ readonly turn : ProviderAdapter . ProviderAdapterV2TurnInput ;
52+ readonly events : Queue . Queue < ProviderAdapter . ProviderAdapterV2Event > ;
5753 } > = [ ] ;
58- const adapter : ProviderAdapterV2Shape = {
54+ const adapter : ProviderAdapter . ProviderAdapterV2 [ "Service" ] = {
5955 instanceId,
6056 driver,
6157 getCapabilities : ( ) => Effect . succeed ( ClaudeProviderCapabilitiesV2 ) ,
6258 planSelectionTransition : ( ) => Effect . succeed ( { type : "apply_on_next_turn" } ) ,
6359 openSession : ( input ) =>
6460 Effect . gen ( function * ( ) {
6561 const now = yield * DateTime . now ;
66- const events = yield * Queue . unbounded < ProviderAdapterV2Event > ( ) ;
62+ const events = yield * Queue . unbounded < ProviderAdapter . ProviderAdapterV2Event > ( ) ;
6763 return {
6864 instanceId,
6965 driver,
@@ -309,7 +305,7 @@ it.effect("task_cancel ends a delegated child's background native subagent", ()
309305 failure : null ,
310306 threadDisposition : "reusable" ,
311307 } ,
312- ] satisfies ReadonlyArray < ProviderAdapterV2Event > ) {
308+ ] satisfies ReadonlyArray < ProviderAdapter . ProviderAdapterV2Event > ) {
313309 yield * Queue . offer ( child . events , event ) ;
314310 }
315311 yield * Fiber . join ( waiting ) ;
0 commit comments