Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,7 @@ import {
import { ThreadDeletionReactor } from "../src/orchestration/Services/ThreadDeletionReactor.ts";
import * as ThreadSettlementReactor from "../src/orchestration/ThreadSettlementReactor.ts";
import * as DelegationFollowThroughReactor from "../src/orchestration/DelegationFollowThroughReactor.ts";
import * as PairLifecycleReactor from "../src/orchestration/PairLifecycleReactor.ts";
import * as PullRequestSyncReactor from "../src/orchestration/PullRequestSyncReactor.ts";
import * as ThreadPullRequestReactor from "../src/orchestration/ThreadPullRequestReactor.ts";
import * as ProjectSettingsReactor from "../src/orchestration/ProjectSettingsReactor.ts";
Expand Down Expand Up @@ -401,6 +402,12 @@ export const makeOrchestrationIntegrationHarness = (
drain: Effect.void,
}),
),
Layer.provide(
Layer.succeed(PairLifecycleReactor.PairLifecycleReactor, {
start: () => Effect.void,
drain: Effect.void,
}),
),
Layer.provideMerge(
Layer.succeed(ThreadSettlementReactor.ThreadSettlementReactor, {
start: () => Effect.void,
Expand Down
11 changes: 11 additions & 0 deletions apps/server/src/orchestration/Layers/OrchestrationReactor.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ import { ProviderRuntimeIngestionService } from "../Services/ProviderRuntimeInge
import { ThreadDeletionReactor } from "../Services/ThreadDeletionReactor.ts";
import * as ThreadSettlementReactor from "../ThreadSettlementReactor.ts";
import * as DelegationFollowThroughReactor from "../DelegationFollowThroughReactor.ts";
import * as PairLifecycleReactor from "../PairLifecycleReactor.ts";
import * as PullRequestSyncReactor from "../PullRequestSyncReactor.ts";
import * as ProjectSettingsReactor from "../ProjectSettingsReactor.ts";
import * as ThreadPullRequestReactor from "../ThreadPullRequestReactor.ts";
Expand Down Expand Up @@ -96,6 +97,15 @@ describe("OrchestrationReactor", () => {
drain: Effect.void,
}),
),
Layer.provideMerge(
Layer.succeed(PairLifecycleReactor.PairLifecycleReactor, {
start: () =>
Effect.sync(() => {
started.push("pair-lifecycle");
}),
drain: Effect.void,
}),
),
Layer.provideMerge(
Layer.succeed(ThreadSettlementReactor.ThreadSettlementReactor, {
start: () => {
Expand Down Expand Up @@ -142,6 +152,7 @@ describe("OrchestrationReactor", () => {
"pull-request-sync-reactor",
"agent-awareness-relay",
"delegation-follow-through",
"pair-lifecycle",
]);

await Effect.runPromise(Scope.close(scope, Exit.void));
Expand Down
3 changes: 3 additions & 0 deletions apps/server/src/orchestration/Layers/OrchestrationReactor.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ import { ProviderRuntimeIngestionService } from "../Services/ProviderRuntimeInge
import { ThreadDeletionReactor } from "../Services/ThreadDeletionReactor.ts";
import * as ThreadSettlementReactor from "../ThreadSettlementReactor.ts";
import * as DelegationFollowThroughReactor from "../DelegationFollowThroughReactor.ts";
import * as PairLifecycleReactor from "../PairLifecycleReactor.ts";
import * as PullRequestSyncReactor from "../PullRequestSyncReactor.ts";
import * as ProjectSettingsReactor from "../ProjectSettingsReactor.ts";
import * as ThreadPullRequestReactor from "../ThreadPullRequestReactor.ts";
Expand All @@ -23,6 +24,7 @@ export const makeOrchestrationReactor = Effect.gen(function* () {
const threadDeletionReactor = yield* ThreadDeletionReactor;
const delegationFollowThrough =
yield* DelegationFollowThroughReactor.DelegationFollowThroughReactor;
const pairLifecycle = yield* PairLifecycleReactor.PairLifecycleReactor;
const threadSettlementReactor = yield* ThreadSettlementReactor.ThreadSettlementReactor;
const pullRequestSyncReactor = yield* PullRequestSyncReactor.PullRequestSyncReactor;
const threadPullRequestReactor = yield* ThreadPullRequestReactor.ThreadPullRequestReactor;
Expand All @@ -40,6 +42,7 @@ export const makeOrchestrationReactor = Effect.gen(function* () {
yield* pullRequestSyncReactor.start();
yield* agentAwarenessRelay.start();
yield* delegationFollowThrough.start();
yield* pairLifecycle.start();
});

return {
Expand Down
Loading
Loading