# Changelog
## [0.2.1] - 2026-08-13

### Changed
- 0.2.1 (plan 021): model-discovery success read migrated to the bounded readBoundedResponseJson reader; strict completion opt-in retained.



## [0.1.0] - 2026-08-09

### Changed
- Released with exact 0.1.0 graph.

## [0.0.28] - 2026-08-08

### Changed
- Released with exact 0.0.28 graph.

## [0.0.27] - 2026-08-07

### Changed
- Released with exact 0.0.27 graph.

## [0.0.26] - 2026-08-06

### Changed
- Released with exact 0.0.26 graph.

## [0.0.25] - 2026-08-06

### Changed
- Released with exact 0.0.25 graph.

## [0.0.24] - 2026-08-04

### Added
- Durable `AgentEventSource` (memory + PostgreSQL LISTEN/NOTIFY), recoverable `ToolEffectStore`, and AG-UI MCP/MCP Apps/A2A fronting for Phase 7.

### Changed
- Publishable graph remains **47** manifests at **0.0.24**; peers and lockfile move together.

See [migration guide](../../docs/migration.md) for the 0.0.23 → 0.0.24 notes.

## [0.0.23] - 2026-08-03

### Changed
- Released with exact 0.0.23 graph.

## [0.0.22] - 2026-07-31

### Changed
- Released with exact 0.0.22 graph.

## [0.0.21] - 2026-07-31

### Changed
- Released with exact 0.0.21 graph.

## [0.0.20] - 2026-07-31

### Changed
- Released with exact 0.0.20 graph.

## [0.0.19] - 2026-07-30

### Changed
- Released with exact 0.0.19 graph.

## [0.0.18] - 2026-07-30

### Changed
- Released with exact 0.0.18 graph.

## [0.0.17] - 2026-07-29

### Changed
- HTTP errors now carry numeric `code` and parsed `Retry-After` (`retryAfterMs`) for transient classification and backpressure-aware retries.
- Released with exact 0.0.17 graph.

## [0.0.16] - 2026-07-26

### Changed
- Released with exact 0.0.16 graph.

## [0.0.15] - 2026-07-26

### Changed

- Released with exact 0.0.15 graph.

## [0.0.14] - 2026-07-26

### Changed

- Released with exact 0.0.14 graph.

## [0.0.13] - 2026-07-24

### Changed

- Released with exact 0.0.13 graph.

## [0.0.12] - 2026-07-22

### Changed

- Released with exact 0.0.12 graph.

## [0.0.11] - 2026-07-22

### Changed

- Released with exact 0.0.11 graph.

## [0.0.10] - 2026-07-21

### Changed

- Released with exact 0.0.10 graph.

## [0.0.96] - 2026-07-21

### Changed

- Released with exact 0.0.96 graph.

## [0.0.9] - 2026-07-21

- Released with the exact 0.0.9 first-party package graph.

### Fixed

- Malformed streamed tool-call arguments yield recoverable tool calls via `toolCallFromArgumentsText` instead of throwing `ProviderTransportError` / terminal stream errors.

## [0.0.8] - 2026-07-20

- Released with the exact 0.0.8 first-party package graph.

### Fixed

- Anthropic route (`POST /messages`) sends provider-owned `x-api-key` and `anthropic-version: 2023-06-01` headers alongside Bearer, fixing HTTP 401 on MiniMax/Qwen models; caller headers cannot override them.
- `structuredOutput: "json_schema"` is no longer inferred from OpenAI-compatible routing alone. Only live-verified models (`mimo-v2.5`, `mimo-v2.5-pro`) advertise it, fixing HTTP 400 on `deepseek-v4-pro`; hosts can set the capability explicitly via `defineOpenCodeGoModel({ capabilities })`.
- Both stream parsers require protocol completion evidence (`[DONE]` + terminal `finish_reason` on the OpenAI route, `message_stop` on the Anthropic route) and complete tool-call accumulators; truncated streams end with a terminal `error` instead of a false `done`.

## [0.0.7] - 2026-07-19

- Released with the exact 0.0.7 first-party package graph.

All notable changes to @arnilo/prism-provider-opencode-go will be documented in this file.

The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [0.0.6] - 2026-07-19

### Changed

- Default base URL is now official `https://opencode.ai/zen/go/v1` (was `https://api.opencode.ai/v1`).
- Featured catalog refreshed to official Go open coding models (Grok/GLM/Kimi/MiMo/MiniMax/Qwen/DeepSeek); removed stale Zen-style `gpt-5.1-go` / `claude-sonnet-4.5-go` aliases.
- Anthropic route assigned to MiniMax + Qwen per official endpoint table; OpenAI route for all others.
- OpenAI route preserves thinking as `reasoning_content` (never folds into text); Anthropic preserveThinking uses shared helper; owned compat keys stripped before opaque spreads.

### Added

- Caller-gated `listOpenCodeGoModels` / `mapOpenCodeGoModel` / `defineOpenCodeGoModel` / `routeForOpenCodeGoModel` against official `GET /zen/go/v1/models`.
- Thinking helpers: `openCodeGoThinking`, `openCodeGoReasoningEffort`, `openCodeGoReasoning`, `openCodeGoPreserveThinking`, `stripOpenCodeGoOwnedCompat`.

## [0.0.5] - 2026-07-16

- Pinned the required `@arnilo/prism` peer and package metadata to 0.0.5; runtime behavior is unchanged.

## [0.0.4] - 2026-07-14

### Changed

- OpenAI and Anthropic routes use shared bounded transport/serialization helpers with protected headers, structured-output mapping, multimodal capability checks, and complete tool-call reconstruction.

## [0.0.2] - 2026-07-05

### Added

- Added `LICENSE` (MIT) and `CHANGELOG.md`.
- Added npm package metadata: `license`, `repository`, `bugs`, `homepage`,
  `keywords`, and `sideEffects`.

### Changed

- `files` whitelist now explicitly excludes `dist/__tests__/` and
  `dist/**/*.map` from published tarballs.
- Made `prism` a required peer dependency; it is no longer optional.

## [0.0.1] - 2026-06-22

### Added

- Initial release of @arnilo/prism-provider-opencode-go.
