iclavue 11.3.6 → 11.3.7

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.
@@ -7,7 +7,7 @@ import { createInterface } from 'node:readline/promises'
7
7
  import { stdin, stdout } from 'node:process'
8
8
  import { fileURLToPath } from 'node:url'
9
9
 
10
- const APP_VERSION = '11.3.6'
10
+ const APP_VERSION = '11.3.7'
11
11
  const APP_NPM_PACKAGE_NAME = 'clavue'
12
12
  export const CURRENT_PROVIDER_PROFILE_ID = '__current_provider__'
13
13
  const SUPPORTED_LANGUAGES = new Set(['en', 'zh'])
@@ -81,13 +81,13 @@ Also: **Ctrl+U** clears draft anytime (kill line).
81
81
  | Order | Condition | Effect |
82
82
  |-------|-----------|--------|
83
83
  | 0 | Esc×2 rewind picker open | Close picker |
84
- | 1 | Running | Steal-Esc first: clear text selection → Scrollback→Prompt. Then **cancel turn** and **keep draft** (Grok default). Tip: `cancelled · draft kept`. **Post-cancel grace ~1s**: idle empty Esc **does not** arm rewind (mashing Esc to stop cannot open the picker). Draft-clear and other Esc branches stay available. |
84
+ | 1 | Running | Steal-Esc first: clear text selection → Scrollback→Prompt. Then **cancel turn**. **Empty composer + no file mutations** (typo / misclick): conversation-rewind that last send and **restore the prompt** (Grok cancelRewind — no `/rewind`). Typed follow-up drafts are kept. File-touching turns: cancel only + ~1s grace so mashed Esc cannot open the picker. |
85
85
  | 2 | Completions open | Close menu |
86
86
  | 3 | History browse | Restore live buffer |
87
87
  | 4 | Text selection | Clear selection |
88
88
  | 5 | Scrollback focus | Focus prompt (Clavue convenience; Grok does not use Esc for focus) |
89
89
  | 6 | Draft non-empty | **Double-Esc within 800ms** clears draft (first press tips `Esc again to clear`) · non-`/` drafts save to ↑ history |
90
- | 7 | Idle empty | **Double-Esc** within 800ms · first press tips · second opens **rewind picker** |
90
+ | 7 | Idle empty | **Double-Esc** within 800ms · first press tips. Second: **lossless last turn unsends** (prompt back in the dock). Otherwise opens the **rewind picker**. |
91
91
 
92
92
  **Ctrl+C vs Esc (Grok):** mid-turn non-empty draft — Ctrl+C clears draft first (turn keeps running); Esc cancels immediately and keeps draft. Idle non-empty — Ctrl+C clears in one press; Esc requires two presses within 800ms.
93
93
 
@@ -101,22 +101,25 @@ Also: **Ctrl+U** clears draft anytime (kill line).
101
101
 
102
102
  Status tip: default path **truncates** the selected turn and everything after.
103
103
 
104
- ### Esc×2 confirm overlay (Ink MessageSelector parity · 时间轴)
104
+ ### Esc×2 confirm overlay (Grok Rewind radios)
105
105
 
106
- Skip confirm when lossless (no file-checkpoint delta): direct conversation rewind + fill prompt.
106
+ Skip confirm when lossless (no file-checkpoint delta): direct conversation rewind + fill prompt. After send with no file mutations, Esc (running) / Esc×2 (idle) unsends without opening this overlay.
107
107
 
108
- | Option (zh) | Effect |
109
- |-------------|--------|
110
- | **⚠ 截断会话+恢复代码** (default) | Engine: HEAD + branch, file checkpoints, rehydrate truncated journal, put prompt in draft |
111
- | ⚠ 仅截断会话日记 | Engine: conversation HEAD rewind only |
112
- | 仅恢复代码 | Engine: file checkpoints only (journal stays) |
113
- | **只重填这句话(不截断 · 安全)** | Local: fill draft for re-send (no engine mutate) |
114
- | 取消 | Back to picker |
108
+ Shown only when the selected turn **touched files**. Title **Rewind**. Default = conversation **&** code.
109
+
110
+ | Option | Effect |
111
+ |--------|--------|
112
+ | **1 Restore conversation & code** (recommended) | Engine: HEAD + branch, file checkpoints, rehydrate truncated journal, put prompt in draft |
113
+ | 2 Restore conversation only | Engine: conversation HEAD rewind only |
114
+ | 3 Restore files only | Engine: file checkpoints only (journal stays) |
115
+ | 4 Restore prompt only | Local: fill draft for re-send (no engine mutate) |
115
116
 
116
117
  | Key | Effect |
117
118
  |-----|--------|
118
119
  | ↑ ↓ | Move option |
119
- | Enter | Apply selected option (`session.rewind` → engine) |
120
+ | 1-4 | Jump to option |
121
+ | y | Copy selected prompt |
122
+ | Enter | Submit (`session.rewind` → engine) |
120
123
  | Esc / q | Back to message list |
121
124
 
122
125
  **Forbidden:** wiping the entire a2p journal when prompt text fails exact match — fall back to picker rank (`indexFromEnd`).
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "iclavue",
3
- "version": "11.3.6",
3
+ "version": "11.3.7",
4
4
  "description": "Clavue: execution-first AI coding CLI with direct repo tools, provider routing, native workflows, MCP integration, and long-session recovery",
5
5
  "keywords": [
6
6
  "iclavue",