The best way to control Claude Code, Codex and more from any computer or phone
| 1 | import { describe, it } from "@effect/vitest"; |
| 2 | |
| 3 | import { CursorOrchestratorReplayHarness } from "../Adapters/CursorAdapterV2.testkit.ts"; |
| 4 | import { messageRestartInput } from "./fixtures/message_steering/input.ts"; |
| 5 | import { |
| 6 | findReplayFixture, |
| 7 | itRunsReplayFixtures, |
| 8 | runReplayFixture, |
| 9 | } from "./ProviderReplayFixtures.ts"; |
| 10 | |
| 11 | describe("Cursor replay fixtures", () => { |
| 12 | itRunsReplayFixtures("cursor", (input) => |
| 13 | runReplayFixture({ ...input, harness: CursorOrchestratorReplayHarness }), |
| 14 | ); |
| 15 | |
| 16 | const cursorSteeringProvider = findReplayFixture("message_steering")?.providers.find( |
| 17 | (provider) => provider.driver === "cursor", |
| 18 | ); |
| 19 | if (cursorSteeringProvider !== undefined) { |
| 20 | it.effect("executes explicit Cursor restart_active through the recorded SDK boundary", () => |
| 21 | runReplayFixture({ |
| 22 | fixtureName: "message_steering", |
| 23 | buildInput: messageRestartInput, |
| 24 | driver: { |
| 25 | ...cursorSteeringProvider, |
| 26 | transcriptFile: new URL( |
| 27 | "./fixtures/message_steering/cursor_restart_transcript.ndjson", |
| 28 | import.meta.url, |
| 29 | ), |
| 30 | }, |
| 31 | harness: CursorOrchestratorReplayHarness, |
| 32 | }), |
| 33 | ); |
| 34 | } |
| 35 | }); |