History

Move worktree branch auto-rename into provider turn reactor

- Generate and rename temporary `t3code/*` worktree branches on first user turn in `ProviderCommandReactor` - Remove websocket/client branch-generation RPCs and related contract/API surface - Update Codex text-generation prompt to include attachment metadata only when attachments exist, with expanded tests

Julius Marminge committed 8 months ago

Commit 5e55aa31 parent a21095b12 files · +405 −264Browse files

Showing the changes to apps/server/src/serverLayers.ts (1 of 12 files). Show all

Unified · Split

apps/server/src/serverLayers.ts+6−3
@@ -56,6 +56,9 @@ export function makeServerProviderLayer(): Layer.Layer< · 55 unmodified lines
5656 }
5757
5858 export function makeServerRuntimeServicesLayer() {
59+ const gitCoreLayer = GitCoreLive.pipe(Layer.provideMerge(GitServiceLive));
60+ const textGenerationLayer = CodexTextGenerationLive;
61+
5962 const orchestrationLayer = OrchestrationEngineLive.pipe(
6063 Layer.provide(OrchestrationProjectionPipelineLive),
6164 Layer.provide(OrchestrationEventStoreLive),
@@ -78,6 +81,8 @@ export function makeServerRuntimeServicesLayer() { · 16 unmodified lines
7881 );
7982 const providerCommandReactorLayer = ProviderCommandReactorLive.pipe(
8083 Layer.provideMerge(runtimeServicesLayer),
84+ Layer.provideMerge(gitCoreLayer),
85+ Layer.provideMerge(textGenerationLayer),
8186 );
8287 const checkpointReactorLayer = CheckpointReactorLive.pipe(
8388 Layer.provideMerge(runtimeServicesLayer),
@@ -92,12 +97,10 @@ export function makeServerRuntimeServicesLayer() { · 8 unmodified lines
9297 Layer.provide(typeof Bun !== "undefined" ? BunPtyAdapterLive : NodePtyAdapterLive),
9398 );
9499
95− const gitCoreLayer = GitCoreLive.pipe(Layer.provideMerge(GitServiceLive));
96−
97100 const gitManagerLayer = GitManagerLive.pipe(
98101 Layer.provideMerge(gitCoreLayer),
99102 Layer.provideMerge(GitHubCliLive),
100− Layer.provideMerge(CodexTextGenerationLive),
103+ Layer.provideMerge(textGenerationLayer),
101104 );
102105
103106 return Layer.mergeAll(