Skip to content
TypeScript
593 B
Raw Blame
import {
  OPENCODE2_CANCELLED_PROMPT,
  OPENCODE2_QUEUED_PROMPT,
  OPENCODE2_STEER_PROMPT,
  OPENCODE2_STEER_TEXT,
  type OrchestratorFixtureInput,
} from "../shared.ts";

export function openCode2InboxInput(): OrchestratorFixtureInput {
  return {
    steps: [
      { type: "message", text: OPENCODE2_STEER_PROMPT },
      { type: "queue_message", text: OPENCODE2_QUEUED_PROMPT },
      { type: "queue_message", text: OPENCODE2_CANCELLED_PROMPT },
      { type: "cancel_queued_run", targetRunIndex: 3 },
      { type: "steer", text: OPENCODE2_STEER_TEXT, targetRunIndex: 1 },
    ],
  };
}