Skip to content

Releases

v2.0.0-alpha.10

v2.0.0-alpha.10 Pre-release
Pre-release

Choose a tag to compare

@github-actions github-actions released this 20 Nov 11:48
v2.0.0-alpha.10
b94979b

[Version: v2.0.0-alpha.10] - 2026-11-20

Full Changelog: v2.0.0-alpha.9...v2.0.0-alpha.10

发布范围

  • ACP 2.0 Alpha 性能维护更新,减少长历史的重复 token 编码及工具事件中的完整历史读取。

功能优化

  • 为精确 token 计数增加最多 65,536 条的进程内 LRU 缓存,仅保留内容指纹和计数,不保留原文。内容改变后重新计算,失败后的近似估算不进入缓存。
  • 优先从工具生命周期事件获取工具名,正常事件序列无需为此读取完整历史;缺失事件或缓存淘汰时保留历史查询及重试,压缩计时行为保持不变。
  • 扩展现有请求级诊断,记录计数路径、缓存命中、未命中、淘汰、错误及耗时;离线汇总兼容旧记录,不记录输入文本或指纹。

兼容性与升级前置条件

  • 要求 OpenCode >=2.1.4 且 <3。
  • 不增加配置项或依赖,不改变持久化格式、message refs 或 compression block IDs;从 alpha.9 升级无需数据迁移。
  • 保留既有文本归一化、特殊 token、失败回退及历史 provider usage 处理方式。

已知问题

  • 缓存命中仍需扫描文本生成指纹,首次或淘汰后的内容仍需编码;并发会话总工作集超过容量时仍可能反复淘汰,不保证冷路径加速。
  • 本版不消除其他历史加载或全部长历史等待,也不包含 #51 中的图片/base64 问题及解压预算修复。

[Version: v2.0.0-alpha.10] - 2026-11-20

Full Changelog: v2.0.0-alpha.9...v2.0.0-alpha.10

Release scope

  • An ACP 2.0 Alpha performance maintenance update reducing repeated token encoding for long histories and full-history reads during tool events.

Improvements

  • Add a process-local LRU cache with up to 65,536 exact token counts, retaining only content fingerprints and counts, not original text. Changed content is recounted, and approximate fallback results are not cached.
  • Resolve tool names from lifecycle events, avoiding full-history reads for this purpose during normal event sequences. Preserve history lookup and retries for missing events or evicted entries, without changing compression timing.
  • Extend existing request-local diagnostics with counting paths, cache hits, misses, evictions, errors, and elapsed time. Offline summaries remain compatible with older records; input text and fingerprints are not logged.

Compatibility and upgrade prerequisites

  • Requires OpenCode >=2.1.4 and <3.
  • No new configuration options or dependencies, and no changes to persisted formats, message refs, or compression block IDs. Upgrading from alpha.9 requires no data migration.
  • Preserve existing text normalization, special-token handling, failure fallback, and historical provider usage handling.

Known issues

  • Cache hits still scan text to compute fingerprints; first-seen or evicted content still requires encoding. Concurrent sessions whose combined working set exceeds capacity may still cause repeated eviction. Cold-path speedups are not guaranteed.
  • This release does not eliminate other history loading or all long-history delays, and does not include the image/base64 or decompression-budget fixes discussed in #51.

v2.0.0-alpha.9

v2.0.0-alpha.9 Pre-release
Pre-release

Choose a tag to compare

@github-actions github-actions released this 19 Nov 18:05
v2.0.0-alpha.9
19a8cba

[Version: v2.0.0-alpha.9] - 2026-11-19

Full Changelog: v2.0.0-alpha.8...v2.0.0-alpha.9

发布范围

  • ACP 2.0 Alpha 维护更新,改善模型上下文窗口未知时的目录恢复、诊断和 fallback 提示。

缺陷修复

  • 修复模型目录补载仅尝试一次的问题:目录未命中时,后续请求可重新加载;并发请求共享进行中的加载,每次完成后冷却 30 秒,避免未知模型每轮都触发目录请求。
  • 补充目录加载诊断,区分 API 不可用、响应结构错误、请求失败、空目录和无有效上下文窗口;记录条目数量,不记录原始响应或异常正文。
  • 修正未知窗口告警,准确区分使用 compress.contextLimitFallback 与禁用 fallback,不再错误声称默认 fallback 下所有相关检查均已禁用。
  • 补充 fallback 配置与预算风险说明,修正缺陷报告模板中的 OpenCode V2 支持范围。

兼容性与升级前置条件

  • 要求 OpenCode >=2.1.4 且 <3。
  • 不增加配置项或依赖,不改变持久化状态格式;从 alpha.8 升级无需数据迁移。
  • compress.contextLimitFallback 默认仍为 128000,设为 0 可禁用。恢复真实模型窗口后,相关阈值会改按该窗口计算。

已知问题

  • 本版不包含摘要引用保真门禁的调整,不保证解决 #60 中所有压缩后重复取证现象。
  • fallback 不会扩大模型真实容量;自定义模型应优先正确配置 OpenCode 的 limit.context。

[Version: v2.0.0-alpha.9] - 2026-11-19

Full Changelog: v2.0.0-alpha.8...v2.0.0-alpha.9

Release scope

  • An ACP 2.0 Alpha maintenance update improving catalog recovery, diagnostics, and fallback warnings when the model context window is unknown.

Fixes

  • Fix catalog hydration being attempted only once on a miss. Later requests can retry; concurrent requests share an in-flight load, with a 30-second cooldown after completion to avoid catalog requests on every turn for unknown models.
  • Add catalog diagnostics distinguishing unavailable APIs, malformed responses, request failures, empty catalogs, and entries without valid context limits. Log entry counts without raw responses or exception text.
  • Correct missing-window warnings to distinguish an active compress.contextLimitFallback from a disabled fallback, rather than incorrectly claiming that all related checks are disabled with the default fallback.
  • Document fallback configuration and budget risks, and correct the bug report template’s OpenCode V2 compatibility statement.

Compatibility and upgrade prerequisites

  • Requires OpenCode >=2.1.4 and <3.
  • No new configuration options or dependencies, and no changes to persisted state formats. Upgrading from alpha.8 requires no data migration.
  • compress.contextLimitFallback still defaults to 128000; set it to 0 to disable it. Once the actual model window is recovered, related thresholds use that window.

Known issues

  • This release does not change summary citation-fidelity gates or guarantee resolution of every repeated evidence-retrieval loop reported in #60.
  • A fallback does not increase the model’s actual capacity. Custom models should have an accurate OpenCode limit.context configuration.

v2.0.0-alpha.8

v2.0.0-alpha.8 Pre-release
Pre-release

Choose a tag to compare

@github-actions github-actions released this 19 Nov 17:19
v2.0.0-alpha.8
4fd42b0

[Version: v2.0.0-alpha.8] - 2026-11-19

Full Changelog: v2.0.0-alpha.7...v2.0.0-alpha.8

发布范围

  • ACP 2.0 Alpha 维护更新,修复后台 agent handoff 在 V2 模型请求中被静默丢弃的问题。

缺陷修复

  • 保留当前请求已交付的后台 agent 结果及其消息标识和 metadata,支持仅包含 handoff、没有人工 prompt 的请求。
  • 区分 handoff 与人工 prompt,避免错误应用用户消息保护;压缩后不再重新带回 handoff 原文,持久化重启后仍可解压恢复。
  • 防止运行中晚到、模型尚未看到的 handoff 被提前纳入压缩。
  • 保留已有 message refs,按实际消息顺序规划压缩范围;历史引用无法可靠恢复时保留原始历史,避免错误裁剪。

兼容性与升级前置条件

  • 要求 OpenCode >=2.1.4 且 <3。
  • 不增加配置项或依赖,不改变持久化状态格式或 compression block IDs;从 alpha.7 升级无需数据迁移。
  • 新压缩结果包含内部引用语义标记;缺少可靠历史引用时,部分历史会保持未压缩状态。

已知问题

  • 本版不包含 #51 中的图片/base64、解压预算或其他性能问题修复,也不代表所有后台 agent 唤醒问题均已解决。

[Version: v2.0.0-alpha.8] - 2026-11-19

Full Changelog: v2.0.0-alpha.7...v2.0.0-alpha.8

Release scope

  • An ACP 2.0 Alpha maintenance update fixing background-agent handoffs silently dropped from V2 model requests.

Fixes

  • Preserve background-agent results already delivered to the current request, including message identity and metadata. Support handoff-only requests without a human prompt.
  • Distinguish handoffs from human prompts to avoid incorrect user-message protection. Compressed handoff payloads no longer reappear, and decompression remains available after a persisted restart.
  • Prevent late-arriving handoffs that the model has not seen from being compressed prematurely.
  • Preserve existing message refs and plan compression ranges in transcript order. Retain raw history when historical references cannot be recovered reliably, avoiding incorrect pruning.

Compatibility and upgrade prerequisites

  • Requires OpenCode >=2.1.4 and <3.
  • No new configuration options or dependencies, and no changes to persisted state formats or compression block IDs. Upgrading from alpha.7 requires no data migration.
  • New compression results include an internal reference-semantics marker. Some history remains uncompressed when reliable historical references are unavailable.

Known issues

  • This release does not include fixes for image/base64 handling, decompression budgets, or other performance issues tracked in #51, and does not resolve every background-agent wake-up issue.

v2.0.0-alpha.7

v2.0.0-alpha.7 Pre-release
Pre-release

Choose a tag to compare

@github-actions github-actions released this 18 Nov 07:57
v2.0.0-alpha.7
fcb4508

[Version: v2.0.0-alpha.7] - 2026-11-17

Full Changelog: v2.0.0-alpha.6...v2.0.0-alpha.7

发布范围

  • ACP 2.0 Alpha 维护更新,修复 V2 模型上下文上限的读取与使用。

缺陷修复

  • 修复模型目录响应解析错误,避免目录中已有上下文上限的模型仍使用 fallback。
  • system prompt 阶段按当前 provider/model 读取同一模型目录中的上限,不再固定传入零值。
  • 依赖上下文上限的百分比阈值按当前模型目录值计算;未知模型继续沿用既有 fallback 行为。

兼容性与升级前置条件

  • 要求 OpenCode >=2.1.4 且 <3。
  • 不改变配置、持久化状态格式、message refs 或 compression block IDs;从 alpha.6 升级无需进行这些数据的迁移。

已知问题

  • 本修复不保证本地 token 估算等同于 provider 的实际请求预算,也不代表 #51 中的性能及图片压缩问题已全部解决。

[Version: v2.0.0-alpha.7] - 2026-11-17

Full Changelog: v2.0.0-alpha.6...v2.0.0-alpha.7

Release scope

  • An ACP 2.0 Alpha maintenance update fixing how V2 model context limits are loaded and used.

Fixes

  • Fix model catalog response parsing so models with a catalog-provided context limit no longer incorrectly use the fallback.
  • Resolve the context limit for the current provider/model from the same catalog during system prompt processing instead of always passing zero.
  • Percentage-based thresholds use the current model's catalog limit. Unknown models retain the existing fallback behavior.

Compatibility and upgrade prerequisites

  • Requires OpenCode >=2.1.4 and <3.
  • No changes to configuration, persisted state formats, message refs, or compression block IDs. Upgrading from alpha.6 requires no migration of these data.

Known issues

  • This fix does not guarantee that local token estimates match the provider's actual request budget, nor does it resolve all performance and image-compression issues tracked in #51.

v2.0.0-alpha.6

Choose a tag to compare

@github-actions github-actions released this 17 Nov 12:16
v2.0.0-alpha.6
26d9b8b

[Version: v2.0.0-alpha.6] - 2026-11-17

Full Changelog: v2.0.0-alpha.5...v2.0.0-alpha.6

发布范围

  • ACP 2.0 Alpha 性能维护更新,减少请求前 token usage 估算中的重复工作。

功能优化

  • 复用 tokenizer 实例,避免每次计数都重新初始化和释放 WASM tokenizer;保留原有文本归一化、特殊 token 处理及异常回退行为。
  • 在 batch cleanup 与裁剪前统计之间共享同一消息投影的 token 计数,避免重复扫描;裁剪后的统计仍重新计算。

兼容性与升级前置条件

  • 要求 OpenCode >=2.1.4 且 <3。
  • 不改变配置、持久化状态格式、message refs 或 compression block IDs;从 alpha.5 升级无需进行这些数据的迁移。
  • 不引入文本内容缓存,不改变历史 provider usage 的处理方式。

已知问题

  • 本版针对 token 计数中的重复工作进行优化,不代表长历史会话的整体等待问题或图片压缩问题已全部解决,见 #51。

[Version: v2.0.0-alpha.6] - 2026-11-17

Full Changelog: v2.0.0-alpha.5...v2.0.0-alpha.6

Release scope

  • An ACP 2.0 Alpha performance maintenance update reducing repeated work in pre-request token usage estimation.

Improvements

  • Reuse the tokenizer instance instead of initializing and freeing the WASM tokenizer for every count, preserving text normalization, special-token handling, and fallback behavior.
  • Share the token count for the same message projection between batch cleanup and pre-pruning accounting to avoid duplicate scans. Post-pruning accounting is still recomputed.

Compatibility and upgrade prerequisites

  • Requires OpenCode >=2.1.4 and <3.
  • No changes to configuration, persisted state formats, message refs, or compression block IDs. Upgrading from alpha.5 requires no migration of these data.
  • No text-content cache is introduced, and historical provider usage handling is unchanged.

Known issues

  • This release targets repeated token-counting work. It does not resolve all long-history delays or image-compression issues tracked in #51.

v2.0.0-alpha.5

Choose a tag to compare

@github-actions github-actions released this 17 Nov 08:51
v2.0.0-alpha.5
58aba15

[Version: v2.0.0-alpha.5] - 2026-11-17

Full Changelog: v2.0.0-alpha.4...v2.0.0-alpha.5

发布范围

  • ACP 2.0 Alpha 维护更新,移除冗余的工具历史处理、调整 V2 集成层结构并更新 Zod 依赖。

功能优化

  • 移除未被使用的工具参数缓存及其历史同步步骤,避免每次消息转换时执行这部分冗余工作;保留工具调用顺序记录与 token 统计。
  • 将 hook handlers 迁入 src/v2/,集中维护 OpenCode V2 宿主集成逻辑。

缺陷修复

  • 将 Zod 最低允许版本提高到 4.6.6,排除安全公告 GHSA-mrhx-c7xc-m3w5 涉及的受影响版本。

兼容性与升级前置条件

  • 要求 OpenCode >=2.1.4 且 <3。
  • 不修改公开 API、配置、持久化状态格式、message refs 或 compression block IDs。

已知问题

  • 长历史会话的请求前等待问题仍在排查中,本版不代表整体性能问题已经解决,见 #34 和 #51。

[Version: v2.0.0-alpha.5] - 2026-11-17

Full Changelog: v2.0.0-alpha.4...v2.0.0-alpha.5

Release scope

  • An ACP 2.0 Alpha maintenance update removing redundant tool-history processing, organizing the V2 integration layer, and updating Zod.

Improvements

  • Remove the unused tool parameter cache and its history synchronization step, avoiding this redundant work during each message transform while retaining tool-call ordering and token accounting.
  • Move hook handlers into src/v2/ to keep OpenCode V2 host integration logic together.

Fixes

  • Raise the minimum allowed Zod version to 4.6.6, excluding versions affected by GHSA-mrhx-c7xc-m3w5.

Compatibility and upgrade prerequisites

  • Requires OpenCode >=2.1.4 and <3.
  • No changes to public APIs, configuration, persisted state formats, message refs, or compression block IDs.

Known issues

  • Pre-request delays in long-history sessions remain under investigation. This release does not resolve the overall performance issues tracked in #34 and #51.

v2.0.0-alpha.4

Choose a tag to compare

@github-actions github-actions released this 09 Nov 17:05
v2.0.0-alpha.4
227545f

[Version: v2.0.0-alpha.4] - 2026-11-09

Full Changelog: v2.0.0-alpha.3...v2.0.0-alpha.4

发布范围

  • ACP 2.0 Alpha 维护更新,整理 hooks 代码结构并明确后续 V2 集成边界,通过 GitHub Release 和 npm alpha 渠道分发。

功能优化

  • 将 hooks 按 system、messages、command、text 和 event 职责拆分,保留统一入口和现有处理逻辑,便于独立维护各类 handler。
  • 补充 hook 回归测试,并记录 V2 宿主集成层与业务能力模块的职责边界。hooks 迁入 src/v2/ 留待后续轮次完成。

兼容性与升级前置条件

  • 要求 OpenCode >=2.1.4 且 <3。
  • 本次更新不修改公开 API、依赖、配置或持久化状态格式,不改变 message refs 和 compression block IDs。

已知问题

  • 本次结构调整不修复长历史会话的请求前等待问题,见 #34。

[Version: v2.0.0-alpha.4] - 2026-11-09

Full Changelog: v2.0.0-alpha.3...v2.0.0-alpha.4

Release scope

  • An ACP 2.0 Alpha maintenance update organizing hook implementations and defining the target V2 integration boundary, distributed through GitHub Release and the npm alpha channel.

Improvements

  • Separate hook implementations by system, messages, command, text, and event responsibilities while retaining a single entry point and existing processing logic.
  • Add hook regression tests and document the boundary between V2 host integration and ACP capabilities. Relocating hooks into src/v2/ remains separate follow-up work.

Compatibility and upgrade prerequisites

  • Requires OpenCode >=2.1.4 and <3.
  • This update does not change public APIs, dependencies, configuration, persisted state formats, message refs, or compression block IDs.

Known issues

  • This structural update does not fix pre-request delays in long-history sessions. See #34.

v2.0.0-alpha.3

v2.0.0-alpha.3 Pre-release
Pre-release

Choose a tag to compare

@github-actions github-actions released this 02 Nov 03:50
v2.0.0-alpha.3
cc99f38

[Version: v2.0.0-alpha.3] - 2026-11-02

Full Changelog: v2.0.0-alpha.2...v2.0.0-alpha.3

发布范围

  • ACP 2.0 Alpha 更新,新增可长期保留的上下文处理诊断机制,通过 GitHub Release 和 npm alpha 渠道分发。

新增功能

  • 在现有 daily log 中记录结构化请求摘要,包含会话与请求标识、处理结果、总耗时、分阶段耗时及消息和压缩块数量,便于关联慢请求和失败位置。
  • 提供仓库内只读日志汇总工具,支持按会话筛选、重复记录去重,以及 P50、P95、最大耗时和阶段热点统计。该工具不包含在 npm 包中。

缺陷修复

  • 日志时间戳改为在调用时捕获,避免后续同步处理延迟时间戳,影响排查判断。

兼容性与升级前置条件

  • 要求 OpenCode >=2.1.4 且 <3。
  • 无新增配置字段,不改变压缩行为或持久化状态格式;继续使用现有 logLevel 控制记录范围。
  • info 记录请求完成摘要;debug 额外记录开始与阶段轨迹。现有 debug 内容快照可能包含敏感信息,共享前请检查。

已知问题

  • 本版本提供排查能力,尚未修复长历史会话的请求前等待问题,见 #34。
  • 阶段耗时是经过时间,不代表独占 CPU 耗时;父子处理链存在重叠,不能相加。进程崩溃、卡死或日志写入失败时可能缺少完成记录。

[Version: v2.0.0-alpha.3] - 2026-11-02

Full Changelog: v2.0.0-alpha.2...v2.0.0-alpha.3

Release scope

  • An ACP 2.0 Alpha update introducing persistent context-processing diagnostics, distributed through GitHub Release and the npm alpha channel.

New features

  • Record structured request summaries in the existing daily log, including session and trace IDs, outcomes, total and per-stage durations, and message and compression-block counts.
  • Add a read-only repository tool for session filtering, deduplication, P50/P95/maximum durations, and stage hotspot summaries. The tool is not included in the npm package.

Fixes

  • Capture log timestamps at invocation time so subsequent synchronous work does not delay timestamps and mislead investigations.

Compatibility and upgrade prerequisites

  • Requires OpenCode >=2.1.4 and <3.
  • No new configuration fields or changes to compression behavior or persisted state formats. Diagnostics use the existing logLevel.
  • info records completion summaries; debug adds request-start and stage breadcrumbs. Existing debug content snapshots may contain sensitive information; review logs before sharing.

Known issues

  • This release adds diagnostic capabilities; it does not fix pre-request delays in long-history sessions. See #34.
  • Stage durations measure elapsed time, not exclusive CPU usage. Parent and child lanes overlap and must not be added together. Crashes, hangs, or log-write failures may leave no completion record.

v2.0.0-alpha.2

v2.0.0-alpha.2 Pre-release
Pre-release

Choose a tag to compare

@github-actions github-actions released this 31 Oct 12:45
v2.0.0-alpha.2
65a0c70

[Version: v2.0.0-alpha.2] - 2026-10-31

Full Changelog: v2.0.0-alpha.1...v2.0.0-alpha.2

发布范围

  • ACP 2.0 Alpha 渠道更新,仅支持 OpenCode V2。
  • 通过 GitHub Release 和 npm 包 @infituit/opencode-acp 分发;本版本更新 npm alpha 渠道,不更新 latest。

功能优化

  • 移除 billion-context 环境检测及自动避让逻辑。ACP 不再因相关环境标记而跳过初始化、上下文处理或拒绝工具调用。
  • 发布流程将 GitHub Release 的预构建安装包直接发布到 npm,npm 安装无需从 Git 源码构建。
  • 精简使用文档,明确配置加载顺序、工具保护、质量门控和插件维护范围。

缺陷修复

  • 将自动更新的目标包名改为 @infituit/opencode-acp,与本项目实际发布的 npm 包保持一致。

兼容性与升级前置条件

  • 要求 OpenCode >=2.1.4 且 <3,不支持 OpenCode 1.x。
  • 安装或切换来源前移除已有的 ACP npm、Git 或本地插件项,避免重复加载;无 scope 的 opencode-acp 不是本项目发布的包。
  • 禁用 OpenCode 内置自动压缩。不要依赖 ACP 自动避让 billion-context;如同时使用其他上下文压缩机制,请自行禁用其中一方,避免重复处理。
  • 本次未变更 ACP 配置字段或持久化格式。首次从 V1 升级时,请备份旧状态并新建会话;复制 V1 JSON 状态文件不会迁移会话或压缩块。

已知问题

  • 长历史会话的 V2 上下文处理仍可能在模型请求发送前增加明显等待;已有约 8–9 秒及 36.7 秒的报告,尚未修复,见 #34。

安装

opencode plugin add @infituit/opencode-acp@2.0.0-alpha.2

也可使用 @alpha 跟随 Alpha 渠道。安装后执行 /reload,开启新会话并使用 /acp 确认插件可用。


[Version: v2.0.0-alpha.2] - 2026-10-31

Full Changelog: v2.0.0-alpha.1...v2.0.0-alpha.2

Release scope

  • An update to the ACP 2.0 Alpha channel, supporting OpenCode V2 only.
  • Distributed through GitHub Release and the npm package @infituit/opencode-acp. This version updates the npm alpha channel without updating latest.

Improvements

  • Remove billion-context environment detection and automatic yielding. ACP no longer skips initialization, bypasses context processing, or rejects tool calls because of those environment markers.
  • Publish the prebuilt GitHub Release package directly to npm. Installing from npm does not require a Git source build.
  • Simplify usage documentation and clarify configuration loading, tool protection, quality gates, and the scope of plugin maintenance.

Fixes

  • Change the automatic update target to @infituit/opencode-acp, matching the npm package published by this project.

Compatibility and upgrade prerequisites

  • Requires OpenCode >=2.1.4 and <3; OpenCode 1.x is not supported.
  • Remove existing ACP npm, Git, or local plugin entries before installing or switching sources to avoid duplicate loading. The unscoped opencode-acp package is not published by this project.
  • Disable OpenCode's built-in automatic compaction. Do not rely on ACP to yield automatically to billion-context; if another context compression mechanism is enabled, disable one of them to avoid duplicate processing.
  • This release does not change ACP configuration fields or the persisted state format. When upgrading from V1, back up existing state and start a new session; copying V1 JSON state files does not migrate sessions or compression blocks.

Known issues

  • V2 context processing in long-history sessions can still introduce noticeable delays before a model request is sent. Delays of approximately 8–9 seconds and 36.7 seconds have been reported and remain unresolved; see #34.

Installation

opencode plugin add @infituit/opencode-acp@2.0.0-alpha.2

Alternatively, use @alpha to follow the Alpha channel. Run /reload after installation, start a new session, and use /acp to confirm the plugin is available.

v2.0.0-alpha.1

Choose a tag to compare

@github-actions github-actions released this 28 Oct 09:11
Immutable release. Only release title and notes can be modified.
e1a1ce3

[Version: v2.0.0-alpha.1] - 2026-10-28

本版本为 Alpha 预发布,仅支持 OpenCode V2。升级前请备份现有状态,并移除旧的 ACP 插件配置。

发布范围

  • ACP 2.0 的首个 Alpha,包含当前 master 上的 OpenCode V2 插件实现。
  • 仅通过 GitHub 分发,不发布到 npm;opencode-acp@stable 和 opencode-acp@latest 不会安装本版本。

主要变更

  • 将插件入口和运行时集成迁移到 OpenCode V2 插件 API。
  • 接入 V2 宿主的工具、/acp 命令、会话 hooks、事件和原生插件存储。
  • 转换 V2 消息,接入 ACP 的压缩与恢复流程。
  • 保留模型驱动的三级压缩、解压、上下文状态查看和压缩内容搜索。

兼容性与升级前置条件

  • 要求 OpenCode >=2.1.4 且 <3,不支持 OpenCode 1.x。
  • 安装需要 Git 和 Node.js/npm,Git 安装过程会构建插件。
  • 安装前移除旧的 npm 或本地 ACP 插件项,避免重复加载。
  • 默认使用 OpenCode 原生插件存储。请备份旧状态并新建会话;复制 V1 JSON 状态文件不会迁移会话或压缩块。

安装

opencode plugin add github:infituit/opencode-acp#v2.0.0-alpha.1

安装后执行 /reload,开启新会话并使用 /acp 确认插件可用。