| 1 | import * as Effect from "effect/Effect"; |
| 2 | import * as S from "effect/Schema"; |
| 3 | |
| 4 | import * as AI from "alchemy/AI"; |
| 5 | |
| 6 | export const cmd = AI.Parameter("cmd")( |
| 7 | S.String.pipe(S.optional), |
| 8 | )`The command to run.`; |
| 9 | |
| 10 | export const Bash = AI.Tool("bash")` |
| 11 | Run a shell ${cmd} and return its stdout, stderr, and exit code.`( |
| 12 | Effect.fn(function* ({ cmd }) { |
| 13 | void cmd; |
| 14 | }), |
| 15 | ); |