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

input.ts

22 lines818 Bytes

1import type { OrchestratorFixtureInput } from "../shared.ts";
2​
3export const MUSE_PERMISSION_APPROVED_FILE = "muse-approved.txt";
4export const MUSE_PERMISSION_DECLINED_FILE = "muse-declined.txt";
5​
6export 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 };