Unified · Split
| @@ -3,6 +3,7 @@ import * as NodeServices from "@effect/platform-node/NodeServices"; · 2 unmodified lines | |||
| 3 | import { | 3 | import { |
| 4 | CommandId, | 4 | CommandId, |
| 5 | EnvironmentId, | 5 | EnvironmentId, |
| 6 | GitManagerError, | ||
| 6 | type OrchestrationV2ThreadProjection, | 7 | type OrchestrationV2ThreadProjection, |
| 7 | type OrchestrationV2ThreadShell, | 8 | type OrchestrationV2ThreadShell, |
| 8 | type Project, | 9 | type Project, |
| @@ -454,10 +455,16 @@ const makeHarness = (options: HarnessOptions = {}) => { · 445 unmodified lines | |||
| 454 | return Effect.die(new Error("simulated local status defect")); | 455 | return Effect.die(new Error("simulated local status defect")); |
| 455 | } | 456 | } |
| 456 | if (localStatusCallCount === 1 && options.localStatusFailure === "interrupt") { | 457 | if (localStatusCallCount === 1 && options.localStatusFailure === "interrupt") { |
| 457 | return Effect.failCause(Cause.interrupt()) as never; | 458 | return Effect.interrupt; |
| 458 | } | 459 | } |
| 459 | if (localStatusCallCount === 1 && options.localStatusFailure === "typed") { | 460 | if (localStatusCallCount === 1 && options.localStatusFailure === "typed") { |
| 460 | return Effect.fail("simulated local status failure") as never; | 461 | return Effect.fail( |
| 462 | new GitManagerError({ | ||
| 463 | operation: "WorktreeMcpService.test.localStatus", | ||
| 464 | cwd: input.cwd, | ||
| 465 | detail: "simulated local status failure", | ||
| 466 | }), | ||
| 467 | ); | ||
| 461 | } | 468 | } |
| 462 | if (options.localStatusFailsOnCall === localStatusCallCount) { | 469 | if (options.localStatusFailsOnCall === localStatusCallCount) { |
| 463 | return Effect.fail("simulated local status failure") as never; | 470 | return Effect.fail("simulated local status failure") as never; |