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 +7 -1
- package/package.json +1 -1
- package/src/tui.tsx +12 -1
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.
|
|
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
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
|
-
|
|
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
|