opencode-quill 0.1.3 → 0.1.5
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 +14 -0
- package/README.md +21 -3
- package/package.json +3 -5
- package/src/tui.tsx +6 -6
package/CHANGELOG.md
CHANGED
|
@@ -4,6 +4,18 @@ All notable changes are documented in this file using
|
|
|
4
4
|
[Keep a Changelog](https://keepachangelog.com/en/1.1.0/) and
|
|
5
5
|
[Semantic Versioning](https://semver.org/).
|
|
6
6
|
|
|
7
|
+
## [0.1.5] - 2026-10-10
|
|
8
|
+
|
|
9
|
+
### Fixed
|
|
10
|
+
|
|
11
|
+
- **tui:** Skip history-learning warning for opportunistic syncs
|
|
12
|
+
|
|
13
|
+
## [0.1.4] - 2026-10-10
|
|
14
|
+
|
|
15
|
+
### Fixed
|
|
16
|
+
|
|
17
|
+
- **tui:** Depend on opentui 0.5.x so npm cannot resolve 0.6.0
|
|
18
|
+
|
|
7
19
|
## [0.1.3] - 2026-10-10
|
|
8
20
|
|
|
9
21
|
### Fixed
|
|
@@ -38,6 +50,8 @@ All notable changes are documented in this file using
|
|
|
38
50
|
- `/quill` command and command palette action to toggle autocomplete.
|
|
39
51
|
- Local installer script, full test suite, CI workflows, and release tooling.
|
|
40
52
|
|
|
53
|
+
[0.1.5]: https://github.com/ozandogrultan/opencode-quill/compare/v0.1.4...v0.1.5
|
|
54
|
+
[0.1.4]: https://github.com/ozandogrultan/opencode-quill/compare/v0.1.3...v0.1.4
|
|
41
55
|
[0.1.3]: https://github.com/ozandogrultan/opencode-quill/compare/v0.1.2...v0.1.3
|
|
42
56
|
[0.1.2]: https://github.com/ozandogrultan/opencode-quill/compare/v0.1.1...v0.1.2
|
|
43
57
|
[0.1.1]: https://github.com/ozandogrultan/opencode-quill/compare/v0.1.0...v0.1.1
|
package/README.md
CHANGED
|
@@ -46,7 +46,22 @@ Press <kbd>Tab</kbd> or <kbd>→</kbd> to accept it, or <kbd>Esc</kbd> to dismis
|
|
|
46
46
|
|
|
47
47
|
## Install
|
|
48
48
|
|
|
49
|
-
### From
|
|
49
|
+
### From npm (recommended)
|
|
50
|
+
|
|
51
|
+
Add the package to `plugins` in `~/.config/opencode/cli.json`:
|
|
52
|
+
|
|
53
|
+
```jsonc
|
|
54
|
+
{
|
|
55
|
+
"$schema": "https://opencode.ai/v2/cli.json",
|
|
56
|
+
"plugins": [
|
|
57
|
+
"opencode-quill@0.1.4"
|
|
58
|
+
]
|
|
59
|
+
}
|
|
60
|
+
```
|
|
61
|
+
|
|
62
|
+
OpenCode installs the package and its dependencies on the next start.
|
|
63
|
+
|
|
64
|
+
### From this repository
|
|
50
65
|
|
|
51
66
|
```sh
|
|
52
67
|
git clone https://github.com/ozandogrultan/opencode-quill.git
|
|
@@ -121,7 +136,10 @@ Custom keybindings can also be overridden using OpenCode's standard
|
|
|
121
136
|
## Commands
|
|
122
137
|
|
|
123
138
|
- `/quill` — Toggle word autocomplete on or off (persisted across sessions).
|
|
124
|
-
-
|
|
139
|
+
- `/quill on` / `/quill off` — Set autocomplete explicitly.
|
|
140
|
+
- `/quill clear` (alias `/quill reset`) — Erase everything Quill has learned from your prompts.
|
|
141
|
+
- **Command Palette (`Ctrl+P`)** — Includes **Word autocomplete: on/off** and
|
|
142
|
+
**Clear word autocomplete history**.
|
|
125
143
|
|
|
126
144
|
## Learning and Prediction Architecture
|
|
127
145
|
|
|
@@ -197,7 +215,7 @@ persists state as clean JSON files inside your standard XDG state directory:
|
|
|
197
215
|
|
|
198
216
|
**Privacy Guarantee:**
|
|
199
217
|
- The snapshot file stores **only token frequency pairs** (e.g. `["refactor", 12]`, `["run\0tests", 5]`)
|
|
200
|
-
and
|
|
218
|
+
and the IDs of processed messages (`<sessionID>:<messageID>`).
|
|
201
219
|
- **Raw prompt text is never written to disk or stored in snapshots.**
|
|
202
220
|
- The storage files stay strictly on your local machine and are never tracked in Git
|
|
203
221
|
or included in npm packages.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "opencode-quill",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.5",
|
|
4
4
|
"description": "Local word autocomplete for the OpenCode V2 prompt composer.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "MIT",
|
|
@@ -49,20 +49,18 @@
|
|
|
49
49
|
"prepublishOnly": "bun run test && bun run typecheck"
|
|
50
50
|
},
|
|
51
51
|
"dependencies": {
|
|
52
|
+
"@opentui/core": "^0.5.17",
|
|
53
|
+
"@opentui/solid": "^0.5.17",
|
|
52
54
|
"subtlex-word-frequencies": "2.0.0"
|
|
53
55
|
},
|
|
54
56
|
"peerDependencies": {
|
|
55
57
|
"@opencode/plugin": "*",
|
|
56
|
-
"@opentui/core": "^0.5.17",
|
|
57
|
-
"@opentui/solid": "^0.5.17",
|
|
58
58
|
"solid-js": "*"
|
|
59
59
|
},
|
|
60
60
|
"devDependencies": {
|
|
61
61
|
"@commitlint/cli": "^21.2.2",
|
|
62
62
|
"@commitlint/config-conventional": "^21.2.2",
|
|
63
63
|
"@opencode/plugin": "2.0.26",
|
|
64
|
-
"@opentui/core": "^0.5.17",
|
|
65
|
-
"@opentui/solid": "^0.5.17",
|
|
66
64
|
"@types/bun": "^1.4.2",
|
|
67
65
|
"@types/node": "26.6.4",
|
|
68
66
|
"husky": "^9.1.7",
|
package/src/tui.tsx
CHANGED
|
@@ -56,7 +56,7 @@ export default Plugin.define({
|
|
|
56
56
|
}, () => dimGhostColor(context.theme.text.muted), context.renderer)
|
|
57
57
|
}
|
|
58
58
|
|
|
59
|
-
const learn = async (sessionID: string) => {
|
|
59
|
+
const learn = async (sessionID: string, announce = true) => {
|
|
60
60
|
if (disposed || !settings.enabled || inFlight.has(sessionID)) return
|
|
61
61
|
inFlight.add(sessionID)
|
|
62
62
|
try {
|
|
@@ -72,10 +72,10 @@ export default Plugin.define({
|
|
|
72
72
|
const latest = new PersonalModel(draft.snapshot)
|
|
73
73
|
if (latest.observe(prompts)) draft.snapshot = latest.snapshot()
|
|
74
74
|
})
|
|
75
|
-
} catch {
|
|
76
|
-
if (!disposed && !warned) {
|
|
75
|
+
} catch (error) {
|
|
76
|
+
if (announce && !disposed && !warned) {
|
|
77
77
|
warned = true
|
|
78
|
-
context.ui.toast.show({ title: "Quill", message:
|
|
78
|
+
context.ui.toast.show({ title: "Quill", message: `History learning unavailable (${sessionID}: ${error instanceof Error ? error.message : String(error)}); vocabulary completion is still active.`, variant: "warning" })
|
|
79
79
|
}
|
|
80
80
|
} finally {
|
|
81
81
|
inFlight.delete(sessionID)
|
|
@@ -98,11 +98,11 @@ export default Plugin.define({
|
|
|
98
98
|
createEffect(() => {
|
|
99
99
|
if (!settings.enabled) return
|
|
100
100
|
const route = context.ui.router.current()
|
|
101
|
-
if (route.type === "session") untrack(() => { void learn(route.sessionID) })
|
|
101
|
+
if (route.type === "session") untrack(() => { void learn(route.sessionID, false) })
|
|
102
102
|
for (const session of context.data.session.list().filter((session) => !session.parentID).sort((a, b) => b.time.updated - a.time.updated).slice(0, 8)) {
|
|
103
103
|
if (seeded.has(session.id)) continue
|
|
104
104
|
seeded.add(session.id)
|
|
105
|
-
untrack(() => { void learn(session.id) })
|
|
105
|
+
untrack(() => { void learn(session.id, false) })
|
|
106
106
|
}
|
|
107
107
|
})
|
|
108
108
|
return dispose
|