Skip to content

Releases

v0.2.2 — CodeMode 2.3.x compatibility

Choose a tag to compare

@hyein-cbio hyein-cbio released this 22 Nov 22:58
ec36d64
  • Support the installed @opencode/codemode 2.3.0, 2.3.1, or 2.3.2
    without a mode setting. The checkout lockfile still uses 2.3.0; a fresh
    install without a lockfile can select 2.3.2. Unverified versions are
    still rejected before guest execution.
  • Preserve each runtime’s tool-input behavior: 2.3.0 invokes custom
    toJSON() methods; 2.3.1 and 2.3.2 discard them before Pi validates
    the arguments. Build a plain argument object explicitly for portable calls.
  • Run the full suite, including real Pi sessions and version-specific
    serialization assertions, on all three CodeMode releases.

Release CI

v0.2.1 — CodeMode serialization guard and CI matrix

Choose a tag to compare

@hyein-cbio hyein-cbio released this 19 Nov 17:32
ee0c57e

CodeMode runtime support

  • Pin @opencode/codemode to 2.3.0 and verify the package owning the actual ESM entry before loading it. This preserves the existing custom toJSON() behavior and Pi bridge execution limits.
  • Refuse unverified runtimes before any guest code or host tools run. Published 2.3.1 and 2.3.2 both drop custom toJSON() upstream; these versions are not supported, and no automatic fallback is attempted.

CI verification

The release commit passed the 12-cell Modal CI run: eight full compatibility suites on Node 22.19.0/24.x and Pi/TUI 0.99.0, 1.3.0, 1.4.0, and 1.5.0, plus four checks that 2.3.1/2.3.2 are rejected through the real Pi loader without guest or host effects.

Full changes: v0.2.0...v0.2.1

0.2.0 — CodeMode 2.2.6 support and faster rendering

Choose a tag to compare

@hyein-cbio hyein-cbio released this 07 Nov 18:31
8fc0b99

CodeMode 2.2.6 support and local rendering/loading performance improvements,
with the existing execution, permission, cancellation and output contracts
preserved. See the verification scope and intentional display changes below.

Dependency support and execution safety

  • Upgrade the exact runtime pins to @opencode/codemode 2.2.6 and
    Effect 4.1.0, with Acorn 8.15.0 unchanged. This includes the previously
    unreleased 2.2.1/2.2.5 compatibility work; the final supported pin is 2.2.6.
    The extension and CodeMode resolve the same Effect module, preserving the
    shared interruption/cleanup behavior of the bridge.
  • Retain PR #6's dependency and compatibility changes. The default engine is
    still the legacy interpreter: the experimental bytecode VM, suspend/resume
    and snapshot APIs are not enabled by this release.
  • Reject require before backend loading, runtime construction or host effects.
    CodeMode 2.2.6 now binds this name and can load url, util and crypto;
    preflight conservatively rejects references and shadowed bindings, including
    references after a would-be host call. A noncomputed property named require
    remains ordinary data and is not rejected for its name alone.
  • Keep dynamic import() outside the syntax allowlist even though the new
    interpreter can execute it. Static imports remain script-mode syntax errors.
    Keep for...in rejected because inherited keys and keys deleted during
    iteration do not match the supported JavaScript behavior.
  • Preserve model-only invocation, the fresh runtime and callable catalog for
    every execution, Pi validation/permissions/result hooks and nested-call audit,
    the 64-call budget, bounded diagnostics/output, and awaited host cleanup.
    No automatic fallback, retry or replay is introduced.

Rendering and responsiveness

  • Cache source highlighting and output components per tool row instead of
    rebuilding unchanged text on every nested-call update. Expensive highlighting
    is deferred until an actual render. Stable output children retain TUI Text's
    width-aware wrapping cache when only timers or call records change.
  • Invalidate embedded ANSI/highlight strings when the component/theme changes,
    including palette changes behind a stable theme Proxy. Source replacement,
    expansion/collapse, resize, partial/final transitions and hook-replaced output
    still update correctly. Cache entries retain only the current children, not
    an unbounded history of sources or outputs.
  • Coalesce presentation notifications on a 16ms timer, independently of Pi's
    terminal paint scheduler. Host dispatch and record/status mutation remain
    immediate. Completion flushes pending state synchronously and removes the
    timer on success, error and cancellation; no notification is scheduled after
    the root result. Detached snapshots and observer-error isolation are retained.
  • Show a raw, unformatted/unhighlighted preview while arguments stream; restore
    structural formatting and syntax highlighting when arguments are complete or
    execution starts. Older hosts without argsComplete retain completed-source
    behavior.
  • Limit oversized collapsed source previews to 8,192 UTF-8 bytes, cut safely
    at Unicode boundaries, and show a visible notice. Expansion exposes the full
    unhighlighted original. Display formatting and limits never rewrite executed
    or stored source, change diagnostic offsets, or alter model-visible output.

Lazy backend loading

  • Load CodeMode and Effect on the first preflight-approved execution instead of
    extension registration. Rejected programs do not load the backend.
  • Concurrent executions share only the module-load promise, never a runtime,
    context, signal, callable-tool wrapper or call log. A caller can stop waiting
    on cancellation without cancelling another waiter; late import failures stay
    observed and cancelled callers cannot dispatch host tools after loading.
  • This shifts one-time backend startup cost to first use. It does not eliminate
    that cost or claim a steady-state execution improvement by itself.

Intentional visible changes and upgrade notes

  • Very short host calls may finish between visual frames, so an intermediate
    running state need not appear. Final records retain every attempted call
    within the existing budget, including duplicate names, handled failures,
    cancellation and cleanup-aware durations.
  • Streaming source is temporarily shown without highlighting/structural layout.
    Oversized source uses a limited raw preview until expanded. The original
    source and authoritative result text remain available and unchanged.
  • After updating a source checkout, run npm ci to install the new exact pins,
    then reload/restart Pi. Do not use a stale 2.2.0/Effect 4.0.1 tree to validate
    2.2.6 support. Published-version installation commands must only be advanced
    after the corresponding npm package/tag actually exists.

Verification and measured scope

  • The combined PR #6 + performance implementation passed 115 tests, with
    no failures or skips, on Node 22.23.1 / macOS using Pi/TUI 1.3.0 and
    1.5.0. The clean-copy matrix also passed Pi/TUI 0.99.0 / 1.3.0 / 1.4.0
    with actual CodeMode 2.2.6 / Effect 4.1.0 and no skipped SDK coverage.
  • Release-time npm audit --omit=peer reported 0 known vulnerabilities in
    the runtime dependency tree. The full locked Pi 1.3.0 test-peer tree
    reported 2 moderate / 1 high entries via Pi, minimatch and undici.
    Those peer packages are not bundled in the extension tarball; keep the host
    Pi installation updated independently. This is not a security certification.
  • Regression coverage includes deterministic formatting/highlight work counts,
    stable child reuse, cache invalidation/eviction, Unicode and raw-source
    preservation, timer coalescing/final flush, no late updates, concurrent-root
    isolation, observer failures, lazy import cancellation/failure, actual Pi
    file/jiti loading, and existing permission/output/timeout/cleanup contracts.
  • A warm synthetic comparison on Node 26.13.0, with actual Pi 1.5.0 tool
    components, 300 catalog tools and 64 immediate in-memory hosts, measured
    105.6ms -> 3.8ms median and 108.6ms -> 4.4ms p95 for PR #6 alone versus
    PR #6 plus these local changes. Notifications fell from 129 to 2. Both
    sides used 2.2.6/Effect 4.1.0; samples included component setup, execution and
    final rendering, with partial component updates applied but terminal-line
    painting deferred to the end (36 samples/variant, six warmups, width120).
  • These measurements are not whole-app speedup ratios, model/provider or
    physical-terminal E2E timings, confidence intervals, or proof that seconds of
    perceived delay are eliminated. The upstream search-index optimization is
    not included. See TESTING.md for detailed evidence.

Known limits and validation scope

  • The interpreter is not an OS or memory-isolation sandbox. Host cancellation
    remains cooperative; a non-settling host may delay delivery beyond the
    nominal 30-second interruption deadline. Completed effects cannot be undone.
  • MCP readiness coordination, broad JavaScript support and live model behavior
    are unchanged; choose native codemode upfront where documented.
  • Hosted Node 22.19.0 / 24.x × Pi/TUI 0.99.0 / 1.3.0 / 1.4.0
    CI passed
    on the merged runtime revision. A configured-model/physical-TUI walkthrough
    was not performed; scripted sessions and component tests are not a substitute
    for a live-provider E2E guarantee.

Install

pi install npm:pi-opencode-mode@0.2.0

Reload/restart Pi after updating. A source checkout must run npm ci to install the exact new pins.

Release verification

  • Release commit: 8fc0b9900929c6c38d20b2ab2157bd45380d90b5.
  • Final six-cell hosted CI passed on the tagged release revision.
  • Attached npm tarball and SHA256SUMS identify the package artifact.

v0.1.5

Choose a tag to compare

@hyein-cbio hyein-cbio released this 28 Oct 13:18
e6c6439

Changes

  • Update the pinned OpenCode CodeMode runtime to 2.2.0. Its published interpreter sources are unchanged from 2.1.4; Acorn remains 8.15.0 and Effect remains 4.0.1.
  • Admit direct String.raw tagged templates for backslash-heavy shell commands and heredocs. Other tags remain rejected, substitutions retain existing preflight checks, and source is never rewritten.
  • Clarify model guidance for ordinary versus raw template escaping, interpolation, and backtick delimiters.
  • Include bounded upstream recovery suggestions in model-visible error and warning text without automatic retry or replay.
  • Show only an N failed count when host-call failures exist, including failures outside the last-eight-call preview. No total or success count is added; cancellations do not count as failures, and script success semantics remain unchanged.

Verification

  • Clean local full suite: 93 passed, 0 failures, 0 skips.
  • Disposable full-suite checks passed against Pi 0.99.0 / 1.3.0 / 1.4.0, with no skips.
  • All six hosted CI combinations passed on release commit e6c6439a3b781883c93fe208c09fcbcb6af6b836: Node 22.19.0 / 24.x × Pi 0.99.0 / 1.3.0 / 1.4.0.
  • CI: https://github.com/hyein-cbio/pi-opencode-mode/actions/runs/40694964415
  • Installed the 11-file tarball in a disposable directory and verified raw-template execution, recovery suggestions, hidden-failure rendering, model guidance, and byte-for-byte agreement with the release checkout.
  • CodeRabbit's escaping-guidance finding was corrected; the follow-up review reported no new findings.
  • Non-peer dependency audit: 0 vulnerabilities. Full audit retains the previously documented moderate/high entries through the locked test host and undici; those host packages are not bundled in this tarball.
  • No live-provider/model walkthrough or new benchmark was performed.

Install

pi install npm:pi-opencode-mode@0.1.5

Published to npm as pi-opencode-mode@0.1.5, with latest pointing to 0.1.5. The attached tarball matches the registry SHA-512 integrity, SHA-1 checksum, and downloaded bytes. A fresh npm registry installation passed runtime and recovery-suggestion smoke tests; all 11 installed files match the release checkout.

v0.1.4

Choose a tag to compare

@hyein-cbio hyein-cbio released this 26 Oct 10:37
b963af7

Changes

  • Update the pinned OpenCode CodeMode runtime to 2.1.4.
  • Admit switch/case and supported Date, RegExp, Map, Set, URL, EvalError, and URIError constructors through preflight.
  • Prefer codemode_o for short compatible programs using ordinary bash and edit host calls. Name codemode_o and native codemode explicitly as the model-only direct-call targets.

Fixes

  • Keep for...in rejected before runtime construction or any host effects. CodeMode 2.1.4 skips inherited properties and still visits keys deleted during iteration; regression tests cover both cases and rejection before earlier host calls.
  • Preserve the no-automatic-fallback/replay contract and existing constructor restrictions.

Verification

  • Clean local full suite: 87 passed, 0 failures, 0 skips.
  • Disposable full-suite checks passed against Pi 0.99.0 / 1.3.0 / 1.4.0, with no skips.
  • All six hosted CI combinations passed on release commit b963af77a64144378462af98ea2108f34a86c018: Node 22.19.0 / 24.x × Pi 0.99.0 / 1.3.0 / 1.4.0.
  • CI: https://github.com/hyein-cbio/pi-opencode-mode/actions/runs/40308655745
  • CodeRabbit implementation review: no remaining findings.
  • Inspected the 11-file tarball; installed it in a disposable directory and verified runtime, preflight rejection, prompt guidance, and byte-for-byte agreement with the release checkout.
  • Non-peer dependency audit: 0 vulnerabilities. The full audit retains the previously documented moderate/high entries through the locked test host and undici, which are not bundled in this package. No live-provider walkthrough or new benchmark was performed.

Install

pi install npm:pi-opencode-mode@0.1.4

Published to npm as pi-opencode-mode@0.1.4, with latest pointing to 0.1.4. The attached tarball matches the registry integrity and SHA-1 checksums. A fresh registry installation passed runtime and preflight smoke tests; all 11 installed files match the release checkout.

v0.1.3

Choose a tag to compare

@hyein-cbio hyein-cbio released this 25 Oct 22:24
f62e350

Improvements

  • Simplify the source-preview notice to Preview; expand for original.

Fixes

  • Preserve native Pi panel backgrounds through call-row truncation and wrapping, including duration text and padding.
  • Allow supported regular-expression literals instead of incorrectly returning NativeCodemodeRequired. Malformed patterns/flags still fail as source syntax errors; BigInt and Pi-only restrictions remain unchanged.

Verification

  • 82 tests passed with no failures or skips after a clean install.
  • All six CI combinations passed: Node 22.19.0 / 24.x with Pi 0.99.0 / 1.3.0 / 1.4.0.
  • Non-peer dependency audit: 0 vulnerabilities. The full audit retains the previously documented moderate/high entries through the test host and undici, which are not bundled in this package.

Install

pi install npm:pi-opencode-mode@0.1.3

v0.1.2

Choose a tag to compare

@hyein-cbio hyein-cbio released this 25 Oct 09:13
a738624

pi-opencode-mode 0.1.2

Changes

  • Report invalid JS source as SourceSyntaxError, preserving the bounded Acorn message and both string-start/newline-detection locations. Explain JS/JSON newline escaping instead of recommending native replay. Unexpected parser exceptions remain distinct (PreflightParserError).
  • Show live host-call rows with per-attempt status, bounded argument/error previews, and duration. Duplicate names stay separate; cancellation waits for host cleanup and final metadata survives restored sessions.
  • Format display-only source previews so batched calls and block statements appear on separate indented lines. Expansion also shows the original source. Execution input is never rewritten; malformed or incomplete source falls back without repair.

Verification

  • Clean-copy full suites passed with Pi 0.99.0, 1.3.0, and 1.4.0 on macOS/Node 26.12.1, without skips (76-test suite).
  • GitHub CI gates all six Node 22.19.0 / 24.x × Pi 0.99.0 / 1.3.0 / 1.4.0 combinations.
  • Non-peer dependency audit: 0 vulnerabilities. The full development tree retains existing test-host Pi/undici advisories (1 moderate / 1 high); see TESTING.md.
  • Attached npm tarball contents match the tagged source; SHA256SUMS identifies that artifact.

Limits

Rendering/session checks use safe fixtures, not a live-provider/model walkthrough or new performance measurement. Argument/error previews remain bounded and can be incomplete. The interpreter is not an OS sandbox; cooperative cancellation does not roll back host effects. No automatic source repair, delegation, or replay is added.

Install

pi install npm:pi-opencode-mode@0.1.2

Or:

pi install git:github.com/hyein-cbio/pi-opencode-mode@v0.1.2

Full changelog

v0.1.1

Choose a tag to compare

@hyein-cbio hyein-cbio released this 24 Oct 20:30
4154b01

pi-opencode-mode 0.1.1

Changes

  • Prefer codemode_o for short, compatible programs using concise LLM context guidance (3 bullets, 61 words).
  • Keep tool selection in the LLM context; execution uses compatibility-only preflight, not automatic routing.
  • Expose details.preflight while preserving the historical routing helper and metadata.
  • Clarify native-tool availability and retain the prohibition on automatic delegation or replay after execution failures.
  • Add prompt activation/deactivation/unloaded and duplicate-free reactivation regression coverage.

Verification

  • Clean-copy full suites passed without skips with Pi 0.99.0, 1.3.0, and 1.4.0.
  • GitHub CI checks Node 22.19.0 and 24.x against all three Pi versions.
  • Non-peer dependency audit: 0 vulnerabilities. The full development tree has existing host-Pi/undici advisories; see TESTING.md.

Limits

Guidance is not enforced routing or a performance guarantee. Prefer native codemode for Pi globals, images, MCP readiness, long-running work, or uncertain compatibility. MCP readiness coordination and live-model selection E2E verification are not included.

Install

pi install npm:pi-opencode-mode@0.1.1

Full changelog

v0.1.0

Choose a tag to compare

@hyein-cbio hyein-cbio released this 23 Oct 12:03
012c2d9

Initial public release of pi-opencode-mode 0.1.0.

Adds codemode_o, backed by OpenCode CodeMode 2.1.0, alongside Pi's unchanged native codemode.

Highlights

  • Call already-available Pi tools and discover their signatures with synchronous search.
  • Preserve Pi validation, permission/result hooks, and nested-call audits.
  • Reject native-only programs before execution; no automatic fallback or replay.
  • Await cooperative cancellation and cleanup; bound final text to 65,536 UTF-8 bytes with visible diagnostics.
  • Highlighted source, collapsible output, and elapsed-time presentation.

Requirements

Node.js >= 22.19.0; Pi >= 0.99.0, < 2.0.0.

Install

pi install git:github.com/hyein-cbio/pi-opencode-mode@v0.1.0
# Or install from npm:
pi install npm:pi-opencode-mode@0.1.0

CI covers Node 22.19.0 / 24.x × Pi 0.99.0 / 1.3.0 / 1.4.0, including isolated real-SDK sessions. The README includes a separately sourced historical benchmark; it is not a fresh 0.1.0 performance measurement.

The interpreter is not an OS or memory sandbox. Cancellation is cooperative, cannot undo side effects, and a non-settling host can delay delivery beyond the nominal 30-second interruption deadline.

See README, changelog, and security policy.