The best way to control Claude Code, Codex and more from any computer or phone
| 1 | import * as Alchemy from "alchemy"; |
| 2 | import * as Effect from "effect/Effect"; |
| 3 | import * as Layer from "effect/Layer"; |
| 4 | |
| 5 | /** |
| 6 | * A program that cannot be evaluated, standing in for a declaration that |
| 7 | * calls a cloud API while it is declared (#1976). Only a destroy, which plans |
| 8 | * from state alone, can run this stack. |
| 9 | */ |
| 10 | export default Alchemy.Stack( |
| 11 | "CliDestroySkipsProgram", |
| 12 | { providers: Layer.empty, state: Alchemy.localState() }, |
| 13 | Effect.die(new Error("STACK_PROGRAM_EVALUATED")), |
| 14 | ); |