Skip to content
Source
Sign inSign up
pingdotgg/t3code

Add AI-generated worktree branch naming with safe Git branch rename flow #129

Mergedjuliusmarmingemerged 22 commits intomain fromcodething/34345440merged by juliusmarminge View on GitHub

Showing 35 changed files with 13 additions and 0 deletions (loading 34).

x
0 of 35 viewed, 35 left
13 additions and 0 deletionsapps/server/integration/OrchestrationEngineHarness.integration.tsModified
View file
@@ -23,6 +23,8 @@
​
import { CheckpointStoreLive } from "../src/checkpointing/Layers/CheckpointStore.ts";
import { CheckpointStore } from "../src/checkpointing/Services/CheckpointStore.ts";
+import { GitCore, type GitCoreShape } from "../src/git/Services/GitCore.ts";
+import { TextGeneration, type TextGenerationShape } from "../src/git/Services/TextGeneration.ts";
import { OrchestrationCommandReceiptRepositoryLive } from "../src/persistence/Layers/OrchestrationCommandReceipts.ts";
import { OrchestrationEventStoreLive } from "../src/persistence/Layers/OrchestrationEventStore.ts";
import { ProjectionCheckpointRepositoryLive } from "../src/persistence/Layers/ProjectionCheckpoints.ts";
@@ -54,6 +56,7 @@
makeTestProviderAdapterHarness,
type TestProviderAdapterHarness,
} from "./TestProviderAdapter.integration.ts";
+import { ServerConfig } from "../src/config.ts";
​
function runGit(cwd: string, args: ReadonlyArray<string>) {
return execFileSync("git", args, {
@@ -227,8 +230,17 @@
const runtimeIngestionLayer = ProviderRuntimeIngestionLive.pipe(
Layer.provideMerge(runtimeServicesLayer),
+ const gitCoreLayer = Layer.succeed(GitCore, {
+ renameBranch: (input: Parameters<GitCoreShape["renameBranch"]>[0]) =>
+ Effect.succeed({ branch: input.newBranch }),
+ } as unknown as GitCoreShape);
+ const textGenerationLayer = Layer.succeed(TextGeneration, {
+ generateBranchName: () => Effect.succeed({ branch: null }),
+ } as unknown as TextGenerationShape);