The best way to control Claude Code, Codex and more from any computer or phone
| 1 | import type { OrchestratorFixtureInput } from "../shared.ts"; |
| 2 | |
| 3 | export const MUSE_PERMISSION_APPROVED_FILE = "muse-approved.txt"; |
| 4 | export const MUSE_PERMISSION_DECLINED_FILE = "muse-declined.txt"; |
| 5 | |
| 6 | export function musePermissionInput(): OrchestratorFixtureInput { |
| 7 | return { |
| 8 | runtimeMode: "approval-required", |
| 9 | steps: [ |
| 10 | { |
| 11 | type: "message", |
| 12 | text: `Run the shell command \`touch ${MUSE_PERMISSION_APPROVED_FILE}\` with your shell tool, then reply DONE.`, |
| 13 | }, |
| 14 | { type: "approve_next_runtime_request" }, |
| 15 | { |
| 16 | type: "message", |
| 17 | text: `Run the shell command \`touch ${MUSE_PERMISSION_DECLINED_FILE}\` with your shell tool once. If it is rejected, do not retry; reply REJECTED.`, |
| 18 | }, |
| 19 | { type: "approve_next_runtime_request", decision: "decline" }, |
| 20 | ], |
| 21 | }; |
| 22 | } |