用代码修复 CI
一段简短的脚本让 OpenCode 修复失败的测试,然后重新运行。
在你自己的脚本、CI 任务和工具中驱动 OpenCode。SDK 在你的进程内运行 OpenCode,使用你的配置和模型。带类型的客户端可以创建会话、发送提示词并流式传输每个事件。
一段简短的脚本让 OpenCode 修复失败的测试,然后重新运行。
流式传输事件,实时查看 agent 调用的每个工具。
只需几行代码,就能把 OpenCode 接入机器人、仪表盘和工作流。
在你的进程内运行 OpenCode,使用你的配置和模型。
Click Run now next to Pause on an active timer automation in Desktop to run it right away. It counts as a normal run, and its schedule doesn't move.#68034
查看 v2.4.5 的全部亮点session.form.#67863client.experimental.automation.run, and filter the blob list by mime type with mime.#68034#68315experimental.push.relays option and OPENCODE_EXPERIMENTAL_PUSH_RELAYS were removed.#68153OpenCodeWorkerd (@opencode/sdk/workerd and @opencode/sdk/workerd/effect) now exposes fetch, password, cors, workspace, machine-link WebSocket upgrades, Durable Object WebSocket hibernation handlers, and a host imageResizer hook, with demand-driven background timers so Durable Objects can hibernate.#67022#67023#67026#67037@opencode/sdk/workerd@opencode/sdk/workerd: forward your Durable Object's alarm() to opencode.alarm() so idle remote workspaces suspend.#66183#66240