Skip to content

feat(acp-next): add content conversion helpers#29231

Merged
nexxeln merged 1 commit into
devfrom
nxl/implement-acp-content-conversion
May 25, 2026
Merged

feat(acp-next): add content conversion helpers#29231
nexxeln merged 1 commit into
devfrom
nxl/implement-acp-content-conversion

Conversation

@nexxeln
Copy link
Copy Markdown
Member

@nexxeln nexxeln commented May 25, 2026

Summary

  • add a pure acp-next content module for converting ACP prompt blocks into OpenCode text/file parts
  • handle audience annotations, file:// and zed:// resource links, and embedded data URLs
  • add replay helpers for turning stored OpenCode text/file/reasoning parts back into ACP content chunks
  • cover the conversion rules with focused unit tests

Testing

  • bun test test/acp-next/content.test.ts passed
  • bun typecheck was run from packages/opencode; the package script path in this environment depends on a broken local Node linkage, so full typecheck verification was limited by the toolchain

@nexxeln nexxeln merged commit 2fce3c1 into dev May 25, 2026
12 checks passed
@nexxeln nexxeln deleted the nxl/implement-acp-content-conversion branch May 25, 2026 15:24
HaleTom pushed a commit to HaleTom/opencode that referenced this pull request May 25, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant