Skip to content

Releases

v0.1.0-preview.2 - preserve Windows export bytes

Choose a tag to compare

@Eldorado-ling Eldorado-ling released this 05 Nov 16:24
3320850

Windows export instructions now write native JSON bytes directly to the file, preserving UTF-8 when the PowerShell console uses another encoding. Choose a new output filename and place any remote server option inside the quoted command.

The converter is unchanged from preview.1. This remains a filtered view of supported saved JSON, with no server needed for conversion. Visible secrets are not redacted, and normalized JSON is not a native import archive.

Download the ZIP and verify it with SHA256SUMS. Unpack it and run the bundled example with Python 3.10 or newer:

python scripts/extract_opencode_export.py examples/opencode-v2.synthetic.json

v0.1.0 preview 1: saved-file conversation conversion

Choose a tag to compare

@Eldorado-ling Eldorado-ling released this 02 Nov 02:07
611aafd

First preview of the saved-file converter. Convert an existing OpenCode native
JSON export into Markdown and filtered JSON with Python 3.10 or newer and the
standard library. Conversion needs no running OpenCode server or installation.

Download opencode-share-v0.1.0-preview.1.zip and SHA256SUMS. Check the ZIP's
SHA-256 against the checksum file, extract it, and open the extracted folder:

python .\scripts\extract_opencode_export.py .\examples\opencode-v2.synthetic.json

To convert your own saved export:

python .\scripts\extract_opencode_export.py .\session.json --out .\session.md --json-out .\filtered.json

Visible user and assistant text stays verbatim and in export-array order.
Tool/reasoning blocks, attachments and session identity metadata are omitted;
the output reports omission counts and retained source positions. Existing
output files are protected from overwrite. The ZIP includes the MIT license,
README, synthetic example, scripts and regression tests.

The tested native shape is the OpenCode v2.2.1 export. This is a filtered
conversation view, not a full backup or secret redaction: secrets within
visible text remain. Review output before sharing. The filtered JSON cannot be
imported as an OpenCode session. Saved share-HTML support remains a separate
legacy route; this release does not restore retired sharing services.

From the extracted ZIP, Windows Python 3.11.15 and 3.14.3 each passed 79 unit
tests and four CLI scenarios covering the example, both output files,
overwrite refusal and unsupported-input refusal. Real histories and current
native-client interoperability were not tested for this release. The unchanged
source commit has existing Windows/Linux Python 3.10/3.14 CI results; hosted CI
was not rerun for this packaging step.

Source: 611aafd.