Skip to content
Source
Sign inSign up
Open History to see the last commit

input.ts

14 lines556 Bytes

1import { OPENCODE2_PERMISSION_PROMPT, type OrchestratorFixtureInput } from "../shared.ts";
2​
3export function openCode2PermissionInput(): OrchestratorFixtureInput {
4 return {
5 runtimeMode: "approval-required",
6 steps: [
7 { type: "message", text: OPENCODE2_PERMISSION_PROMPT },
8 { type: "approve_next_runtime_request" },
9 { type: "approve_next_runtime_request", decision: "decline" },
10 { type: "approve_next_runtime_request", decision: "decline" },
11 { type: "approve_next_runtime_request", decision: "decline" },
12 ],
13 };