| 975 | } |
| 976 | |
| 977 | export async function runMini(input: MiniCommandInput) { |
| 978 | if (!RunCommand.handler) throw new Error("Mini command handler is unavailable") |
| 979 | await RunCommand.handler({ |
| 980 | $0: "opencode", |
| 981 | _: ["mini"], |
| 982 | message: input.prompt ? [input.prompt] : [], |
| 983 | command: undefined, |
| 984 | continue: input.continue, |
| 985 | session: input.session, |
| 986 | fork: input.fork, |
| 987 | share: undefined, |
| 988 | model: input.model, |
| 989 | agent: input.agent, |
| 990 | format: "default", |
| 991 | file: undefined, |
| 992 | title: undefined, |
| 993 | attach: input.attach, |
| 994 | password: input.password, |
| 995 | username: input.username, |
| 996 | dir: input.directory, |
| 997 | port: undefined, |
| 998 | variant: undefined, |
| 999 | thinking: undefined, |
| 1000 | mini: true, |
| 1001 | interactive: false, |
| 1002 | replay: input.replay ?? true, |
| 1003 | "replay-limit": input.replayLimit, |
| 1004 | replayLimit: input.replayLimit, |
| 1005 | auto: false, |
| 1006 | yolo: false, |
| 1007 | "dangerously-skip-permissions": false, |
| 1008 | dangerouslySkipPermissions: false, |
| 1009 | demo: input.demo ?? false, |
| 1010 | }) |
| 1011 | } |