()
| 229 | process.exit(exitCode) |
| 230 | |
| 231 | function createOpencode() { |
| 232 | const host = "127.0.0.1" |
| 233 | const port = 4096 |
| 234 | const url = `http://${host}:${port}` |
| 235 | const proc = spawn(`opencode`, [`serve`, `--hostname=${host}`, `--port=${port}`]) |
| 236 | const client = createOpencodeClient({ baseUrl: url }) |
| 237 | |
| 238 | return { |
| 239 | server: { url, close: () => proc.kill() }, |
| 240 | client, |
| 241 | } |
| 242 | } |
| 243 | |
| 244 | function assertPayloadKeyword() { |
| 245 | const payload = useContext().payload as IssueCommentEvent | PullRequestReviewCommentEvent |
no test coverage detected