Чините CI из кода
Скрипт просит OpenCode починить упавшие тесты и запускает их снова.
Управляйте OpenCode из своих скриптов, CI-задач и инструментов. SDK запускает OpenCode внутри вашего процесса, с вашей конфигурацией и моделями, а его типизированный клиент создаёт сессии, отправляет промпты и передаёт поток всех событий.
Скрипт просит OpenCode починить упавшие тесты и запускает их снова.
Получайте поток событий и видьте каждый инструмент, который вызывает агент.
Встраивайте OpenCode в ботов, дашборды и процессы парой строк кода.
Запускает OpenCode в вашем процессе с вашими настройками и моделями.
Enable "experimental": { "artifacts": true } in opencode.json to let agents publish, update, and serve HTML or static artifacts through the built-in local provider or plugin-provided storage.#60351
client.experimental.persistentPty.update to rename terminals or clear a user title, and exposed userTitle plus persistent-pty.updated events.#60329experimental.media_blob is enabledAdded lazy loading for stored image references when experimental.media_blob is enabled. Images are downloaded only for previews, while undo, revert, fork, and prompt recall restore referenced attachments safely.#60116
LLMResponse output on AIError.partial when generation, object generation, or a tool loop fails.#60477tool(...), with optional output schemas and executable or declaration-only tools.#60407debug, models, plugins, provider, and user options to the Responses route.#60044execute handler can throw available to the AI client.#60431filename alongside file_url on OpenAI Responses requests.#60382SessionInfo.time.busy for the latest execution’s start timeif and until inputs for client.experimental.schedule.create, plus schedule check results and output fields.#60137