(sdk: OpencodeClient)
| 659 | } |
| 660 | |
| 661 | async function pickAgent(sdk: OpencodeClient) { |
| 662 | if (!args.agent) return undefined |
| 663 | if (args.attach) { |
| 664 | return attachAgent(sdk) |
| 665 | } |
| 666 | |
| 667 | return localAgent() |
| 668 | } |
| 669 | |
| 670 | async function execute(sdk: OpencodeClient) { |
| 671 | const sess = await session(sdk) |
no test coverage detected