Skip to content

v1.0.0

Choose a tag to compare

@SolitudeRA SolitudeRA released this 22 Sep 06:49
· 8 commits to main since this release

Initial sidebar release for OpenCode V1

This historical release uses the OpenCode V1 plugin API and provides a standalone tui.js asset. For an easier prebuilt npm or ZIP installation on V1, use v1.0.1 with the explicit package version opencode-tui-context@1.0.1. Neither of these historical releases supports the OpenCode V2 plugin API.

Install the exact v1.0.0 asset

  1. Download the attached tui.js and save it as dist/tui.js inside your opencode-tui-context directory.
  2. Save package.json from the v1.0.0 tag alongside dist/. Its ./tui export points to ./dist/tui.js; placing the asset beside the manifest would not match that export.
  3. Place the complete directory in local-plugins/ beside your V1 tui.json and add the configuration below, preserving other entries. Restart OpenCode and show the sidebar.
local-plugins/opencode-tui-context/
├── package.json
└── dist/
    └── tui.js
{
  "plugin": ["./local-plugins/opencode-tui-context"]
}

An absolute directory path also works. Do not use ~/... inside the JSON entry: the V1 loader does not expand it. To build this exact source instead, check out tag v1.0.0 and follow its tagged README.

Highlights

  • Context-window overview (used, reserved, free) and token composition (cached, prompt, think, out), each with its own legend.
  • Four session-event subscriptions with a 50 ms leading-edge repaint throttle and disposal cleanup.
  • Narrow-width behavior that keeps bars inside the border and displays legend counts completely or hides them.

Verification recorded at release

  • bun test: 72 passed, 0 failed, 136 assertions across four files.
  • Wide render output at container widths of at least 39 columns was byte-identical to the previously verified build.
  • Attached tui.js: 14,151 bytes; SHA-256 f6a48f17f588f33e3b1f6a1333d564d651a80be6222b4382f622dc43613787d2.

These are the original automated and artifact checks. They do not establish npm installation or real-provider conversation rendering. The corrected installation layout above does not alter the tag or attached asset.