opencode-ghost 0.2.2 → 0.2.3
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 +8 -3
- package/package.json +1 -1
- package/src/tui.tsx +0 -12
package/CHANGELOG.md
CHANGED
|
@@ -7,6 +7,12 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
|
7
7
|
|
|
8
8
|
## [Unreleased]
|
|
9
9
|
|
|
10
|
+
## [0.2.3] - 2026-09-25
|
|
11
|
+
|
|
12
|
+
### Removed
|
|
13
|
+
|
|
14
|
+
- The temporary `GHOST_DEBUG` diagnostic toasts introduced while localizing
|
|
15
|
+
the in-box ghost overlay.
|
|
10
16
|
## [0.2.2] - 2026-09-25
|
|
11
17
|
|
|
12
18
|
### Changed
|
|
@@ -17,8 +23,6 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
|
17
23
|
- Typing ghosts are positioned from absolute screen coordinates (the prompt
|
|
18
24
|
editor's `screenX/screenY` plus the caret's visual column/row) instead of a
|
|
19
25
|
relative slot offset, and clear reliably when the input no longer matches.
|
|
20
|
-
- `GHOST_DEBUG=1` makes the plugin emit diagnostic toasts about ghost
|
|
21
|
-
placement (temporary, for localization feedback).
|
|
22
26
|
## [0.2.1] - 2026-09-24
|
|
23
27
|
|
|
24
28
|
### Changed
|
|
@@ -78,7 +82,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
|
78
82
|
- Options for `model`, `acceptKeys`, `maxChars`, `idleDelayMs`,
|
|
79
83
|
`recentMessages` and `system`.
|
|
80
84
|
|
|
81
|
-
[Unreleased]: https://github.com/ozandogrultan/opencode-ghost/compare/v0.2.
|
|
85
|
+
[Unreleased]: https://github.com/ozandogrultan/opencode-ghost/compare/v0.2.3...HEAD
|
|
86
|
+
[0.2.3]: https://github.com/ozandogrultan/opencode-ghost/compare/v0.2.2...v0.2.3
|
|
82
87
|
[0.2.2]: https://github.com/ozandogrultan/opencode-ghost/compare/v0.2.1...v0.2.2
|
|
83
88
|
[0.2.1]: https://github.com/ozandogrultan/opencode-ghost/compare/v0.2.0...v0.2.1
|
|
84
89
|
[0.2.0]: https://github.com/ozandogrultan/opencode-ghost/compare/v0.1.1...v0.2.0
|
package/package.json
CHANGED
package/src/tui.tsx
CHANGED
|
@@ -19,7 +19,6 @@ const MAX_MESSAGE_CHARS = 800
|
|
|
19
19
|
const MAX_TRANSCRIPT_CHARS = 6000
|
|
20
20
|
const ENABLED_KEY = "ghost.enabled"
|
|
21
21
|
const MODEL_KEY = "ghost.model"
|
|
22
|
-
const GHOST_DEBUG = Boolean(process.env.GHOST_DEBUG)
|
|
23
22
|
|
|
24
23
|
const HIDDEN_TOOLS = {
|
|
25
24
|
bash: false,
|
|
@@ -441,17 +440,6 @@ const tui: TuiPlugin = async (api, rawOptions) => {
|
|
|
441
440
|
completionKey = key
|
|
442
441
|
const drawn = display ? placeInBoxGhost(sessionID, display) : false
|
|
443
442
|
if (!drawn) setInBox(undefined)
|
|
444
|
-
if (GHOST_DEBUG && (display || input.startsWith("/"))) {
|
|
445
|
-
const overlay = inBox()
|
|
446
|
-
try {
|
|
447
|
-
api.ui.toast({
|
|
448
|
-
title: "ghost-debug",
|
|
449
|
-
message: `display=${display.slice(0, 20) || "∅"} drawn=${drawn} slot=${slotNode ? `${slotNode.screenX}/${slotNode.screenY}` : "n"} box=${overlay ? `${overlay.x}/${overlay.y}` : "∅"}`,
|
|
450
|
-
})
|
|
451
|
-
} catch {
|
|
452
|
-
// ignore
|
|
453
|
-
}
|
|
454
|
-
}
|
|
455
443
|
setCompletion(
|
|
456
444
|
found
|
|
457
445
|
? {
|