import { runScene } from "./runner.ts"; await runScene("prompt-autopsy", { assertOnly: true, scene: { title: "Prompt editor handoff acceptance", extensions: ["prompt-autopsy"], args: ["--system-prompt", "HANDOFF_EDITOR_ACCEPTANCE"], turns: [ { text: "Ready to inspect the prompt." }, { text: "POST_EDITOR_INPUT_CONFIRMED" }, ], steps: [ { type: "Prepare the prompt inspection.", key: "enter", expect: "Ready to inspect the prompt.", hold: 6, }, { type: "/prompt-autopsy", key: "enter", fresh: true, expect: "HANDOFF_EDITOR_ACCEPTANCE", hold: 6, }, { key: "escape" }, { type: ":q!", key: "enter", fresh: true, expect: "wrote ", hold: 6 }, { type: "Confirm terminal input after editor exit.", key: "enter", fresh: true, expect: "POST_EDITOR_INPUT_CONFIRMED", hold: 6, }, { key: "ctrl-c" }, { key: "ctrl-c" }, ], }, }); console.log( "OK prompt-autopsy: native editor displayed the prompt and returned terminal control to Pi", );