opencode-ghost 0.5.0 → 0.5.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -7,6 +7,11 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
7
7
 
8
8
  ## [Unreleased]
9
9
 
10
+ ## [0.5.1] - 2026-09-30
11
+
12
+ ### Fixed
13
+
14
+ - Support OpenCode v2 TUI plugin module contract (`default` export object with non-empty `id` and `setup` function) while preserving v1 `tui` export.
10
15
  ## [0.5.0] - 2026-09-30
11
16
 
12
17
  ### Added
@@ -146,7 +151,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
146
151
  - Options for `model`, `acceptKeys`, `maxChars`, `idleDelayMs`,
147
152
  `recentMessages` and `system`.
148
153
 
149
- [Unreleased]: https://github.com/ozandogrultan/opencode-ghost/compare/v0.5.0...HEAD
154
+ [Unreleased]: https://github.com/ozandogrultan/opencode-ghost/compare/v0.5.1...HEAD
155
+ [0.5.1]: https://github.com/ozandogrultan/opencode-ghost/compare/v0.5.0...v0.5.1
150
156
  [0.5.0]: https://github.com/ozandogrultan/opencode-ghost/compare/v0.4.0...v0.5.0
151
157
  [0.4.0]: https://github.com/ozandogrultan/opencode-ghost/compare/v0.3.1...v0.4.0
152
158
  [0.3.1]: https://github.com/ozandogrultan/opencode-ghost/compare/v0.3.0...v0.3.1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "opencode-ghost",
3
- "version": "0.5.0",
3
+ "version": "0.5.1",
4
4
  "description": "Claude Code-style next-prompt suggestions in the opencode TUI, shown as dimmed ghost text and accepted with Tab. An opencode plugin.",
5
5
  "type": "module",
6
6
  "license": "MIT",
package/src/tui.tsx CHANGED
@@ -936,4 +936,15 @@ const tui: TuiPlugin = async (api, rawOptions) => {
936
936
 
937
937
  export const id = "ghost"
938
938
  export { tui }
939
- export default Object.assign(tui, { id: "ghost", tui })
939
+
940
+ const plugin = {
941
+ id: "ghost",
942
+ tui,
943
+ setup(ctx: any) {
944
+ if (ctx && typeof ctx.slots?.register === "function") {
945
+ return tui(ctx, ctx.options, ctx.meta)
946
+ }
947
+ },
948
+ }
949
+
950
+ export default plugin