Ripara la CI da codice
Un breve script chiede a OpenCode di correggere i test falliti, poi li riesegue.
Controlla OpenCode dai tuoi script, job di CI e strumenti. L'SDK esegue OpenCode nel tuo processo, con la tua configurazione e i tuoi modelli, e il suo client tipizzato crea sessioni, invia prompt e trasmette ogni evento.
Un breve script chiede a OpenCode di correggere i test falliti, poi li riesegue.
Trasmetti gli eventi e vedi ogni strumento chiamato dall'agente.
Integra OpenCode in bot, dashboard e workflow con poche righe.
Esegue OpenCode nel tuo processo, con la tua config e i tuoi modelli.
experimental.mcp.event events from MCP event subscriptionsparentID field.session.generate returns tokens and cost along with textOn a Location that is still loading plugins, agent.list returns the agents loaded so far, and integration.list, usage.limits, vcs.init, rpc.call and artifact.* no longer wait up to 5 seconds. Entries and actions that a plugin provides appear when it finishes loading, so refresh on the matching *.updated event. Model, provider, generate.*, voice.* and websearch.query endpoints still wait.
client.experimental.job.list() and its Effect equivalent for listing background shell, subagent, and image jobs, with session, descendant, kind, and status filters.#60698fetch implementation for OpenCode HTTP, model, web, and remote MCP traffic.#61582