| 1 | import { SUBAGENT_V2_APPROVAL_PROMPT, type OrchestratorFixtureInput } from "../shared.ts"; |
| 2 | |
| 3 | export const SUBAGENT_APPROVAL_PENDING_SHELL_KEY = "subagent-approval-pending"; |
| 4 | |
| 5 | /** The adapter's approval-required turn policy, which the recording ran under. */ |
| 6 | export const SUBAGENT_V2_APPROVAL_POLICY = { |
| 7 | approvalPolicy: "untrusted", |
| 8 | sandboxPolicy: { type: "readOnly" }, |
| 9 | } as const; |
| 10 | |
| 11 | export function subagentV2ApprovalInput(): OrchestratorFixtureInput { |
| 12 | return { |
| 13 | steps: [ |
| 14 | { type: "message", text: SUBAGENT_V2_APPROVAL_PROMPT }, |
| 15 | { |
| 16 | type: "approve_next_runtime_request", |
| 17 | shellSnapshotKeyWhilePending: SUBAGENT_APPROVAL_PENDING_SHELL_KEY, |
| 18 | }, |
| 19 | ], |
| 20 | }; |
| 21 | } |