opencode-ghost 0.5.0 → 0.6.0

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
@@ -5,8 +5,17 @@ All notable changes to this project are documented in this file.
5
5
  The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/),
6
6
  and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
7
7
 
8
- ## [Unreleased]
8
+ ## [0.6.0] - 2026-09-30
9
9
 
10
+ ### Added
11
+
12
+ - **release:** Generate changelogs from released commit ranges
13
+
14
+ ## [0.5.1] - 2026-09-30
15
+
16
+ ### Fixed
17
+
18
+ - Support OpenCode v2 TUI plugin module contract (`default` export object with non-empty `id` and `setup` function) while preserving v1 `tui` export.
10
19
  ## [0.5.0] - 2026-09-30
11
20
 
12
21
  ### Added
@@ -146,7 +155,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
146
155
  - Options for `model`, `acceptKeys`, `maxChars`, `idleDelayMs`,
147
156
  `recentMessages` and `system`.
148
157
 
149
- [Unreleased]: https://github.com/ozandogrultan/opencode-ghost/compare/v0.5.0...HEAD
158
+ [0.6.0]: https://github.com/ozandogrultan/opencode-ghost/compare/v0.5.1...v0.6.0
159
+ [0.5.1]: https://github.com/ozandogrultan/opencode-ghost/compare/v0.5.0...v0.5.1
150
160
  [0.5.0]: https://github.com/ozandogrultan/opencode-ghost/compare/v0.4.0...v0.5.0
151
161
  [0.4.0]: https://github.com/ozandogrultan/opencode-ghost/compare/v0.3.1...v0.4.0
152
162
  [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.6.0",
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