Map orchestration turns to provider instances
- Separate provider driver identity from configured provider instances - Add durable event, effect, checkpoint, and turn-position persistence - Route turn lifecycle and recovery through shared orchestration services
This commit is contained in:
1 parent
9b18afb890
commit
c4eea8d512
109 files changed
+8377
-3592
No files matched your search
@@ -138,6 +138,7 @@ export interface ThreadManagementServiceShape {
|
||||
readonly getThreadProjection: (
|
||||
threadId: ThreadId,
|
||||
) => Effect.Effect<OrchestrationV2ThreadProjection, OrchestratorV2Error>;
|
||||
readonly getThreadSnapshot: OrchestratorV2["Service"]["getThreadSnapshot"];
|
||||
readonly getProjectThread: (input: {
|
||||
readonly projectId: ProjectId;
|
||||
readonly threadId: ThreadId;
|
||||
@@ -158,6 +159,7 @@ export interface ThreadManagementServiceShape {
|
||||
) => Effect.Effect<ThreadManagementInterruptResult, ThreadManagementFailure>;
|
||||
readonly getThreadEventSequence: OrchestratorV2["Service"]["getThreadEventSequence"];
|
||||
readonly streamStoredEvents: OrchestratorV2["Service"]["streamStoredEvents"];
|
||||
readonly streamStoredEventsFrom: OrchestratorV2["Service"]["streamStoredEventsFrom"];
|
||||
readonly streamDomainEvents: OrchestratorV2["Service"]["streamDomainEvents"];
|
||||
}
|
||||
|
||||
@@ -442,6 +444,7 @@ const make = Effect.gen(function* () {
|
||||
return ThreadManagementService.of({
|
||||
dispatch: orchestrator.dispatch,
|
||||
getThreadProjection: orchestrator.getThreadProjection,
|
||||
getThreadSnapshot: orchestrator.getThreadSnapshot,
|
||||
getProjectThread,
|
||||
getShellSnapshot: orchestrator.getShellSnapshot,
|
||||
listProjectThreads,
|
||||
@@ -450,6 +453,7 @@ const make = Effect.gen(function* () {
|
||||
interruptThread,
|
||||
getThreadEventSequence: orchestrator.getThreadEventSequence,
|
||||
streamStoredEvents: orchestrator.streamStoredEvents,
|
||||
streamStoredEventsFrom: orchestrator.streamStoredEventsFrom,
|
||||
streamDomainEvents: orchestrator.streamDomainEvents,
|
||||
});
|
||||
});
|
||||
|
||||
Reference in new issue
Block a user