opencode-ghost 1.1.0 → 1.2.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,6 +5,12 @@ 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
+ ## [1.2.0] - 2026-10-09
9
+
10
+ ### Added
11
+
12
+ - **options:** Improve default suggestion system prompt
13
+
8
14
  ## [1.1.0] - 2026-10-08
9
15
 
10
16
  ### Added
@@ -234,6 +240,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
234
240
  - Options for `model`, `acceptKeys`, `maxChars`, `idleDelayMs`,
235
241
  `recentMessages` and `system`.
236
242
 
243
+ [1.2.0]: https://github.com/ozandogrultan/opencode-ghost/compare/v1.1.0...v1.2.0
237
244
  [1.1.0]: https://github.com/ozandogrultan/opencode-ghost/compare/v1.0.7...v1.1.0
238
245
  [1.0.7]: https://github.com/ozandogrultan/opencode-ghost/compare/v1.0.6...v1.0.7
239
246
  [1.0.6]: https://github.com/ozandogrultan/opencode-ghost/compare/v1.0.5...v1.0.6
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "opencode-ghost",
3
- "version": "1.1.0",
3
+ "version": "1.2.0",
4
4
  "description": "Stateless inline next-prompt ghosts for the empty OpenCode V2 composer, accepted with Tab or Right.",
5
5
  "type": "module",
6
6
  "license": "MIT",
package/src/options.ts CHANGED
@@ -27,9 +27,11 @@ export const DEFAULT_SYSTEM = [
27
27
  "",
28
28
  "Rules:",
29
29
  "- Move the conversation forward. Never repeat, quote, or paraphrase the user's own previous message.",
30
- "- Sound like the user: short and direct, one line, plain text only.",
31
- '- If the assistant proposed a next step, a brief affirmation such as "Yes." or "Go ahead." is best.',
32
- "- If the assistant asked a question, answer it briefly.",
30
+ "- Copy the tone, language and length of the user's earlier messages in the transcript: short, direct, one line, plain text only.",
31
+ '- If the assistant proposed a single next step or asked for approval, a brief affirmation such as "Yes." or "Go ahead." is best.',
32
+ "- If the assistant offered options or recommended one, pick the recommended option, or the first one if none is recommended.",
33
+ "- If the assistant asked a question the transcript answers, answer it briefly.",
34
+ "- If the work is finished and verified, ask for the natural follow-up (commit, open the PR, or run the remaining checks) only when the user has asked for that earlier in the transcript.",
33
35
  "- No markdown, no quotes, no backticks, no preamble.",
34
36
  "",
35
37
  "Examples:",
@@ -39,8 +41,12 @@ export const DEFAULT_SYSTEM = [
39
41
  "Next user message: yes, go ahead",
40
42
  "Assistant: Which model should the small tasks use?",
41
43
  "Next user message: the fast free one",
44
+ "Assistant: I see two approaches. A (recommended) patches the parser; B rewrites the loader.",
45
+ "Next user message: go with A",
46
+ "Assistant: The fix is in and verified. Anything else?",
47
+ "Next user message: NONE",
42
48
  "",
43
- "If no reply makes sense, output exactly: NONE",
49
+ "Output exactly NONE when no reply is clearly right: the assistant only reported status with nothing pending, or the answer needs information only the user has.",
44
50
  ].join("\n")
45
51
 
46
52
  const DEFAULTS = {