zames_pro 2.82.70 → 2.82.71
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 +6 -0
- package/dist/prompt.js +10 -3
- package/package.json +1 -1
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
|
+
## [2.82.71] - 2026-10-24
|
|
11
|
+
|
|
12
|
+
### Fixed
|
|
13
|
+
|
|
14
|
+
- **prompt:** Backspace deletes a whole code point in promptOnce
|
|
15
|
+
|
|
10
16
|
## [2.82.70] - 2026-10-24
|
|
11
17
|
|
|
12
18
|
### Fixed
|
package/dist/prompt.js
CHANGED
|
@@ -139,10 +139,17 @@ export async function promptOnce(question) {
|
|
|
139
139
|
continue;
|
|
140
140
|
}
|
|
141
141
|
if (code === 127 || code === 8) {
|
|
142
|
-
// Backspace
|
|
142
|
+
// Backspace deletes a CODE POINT, not one UTF-16 unit: an emoji is
|
|
143
|
+
// two units, and removing one left a LONE surrogate in the line — a
|
|
144
|
+
// broken code point the caller then received as the answer.
|
|
143
145
|
if (cursor > 0) {
|
|
144
|
-
|
|
145
|
-
|
|
146
|
+
const prev = line.charCodeAt(cursor - 1);
|
|
147
|
+
const low = prev >= 0xdc00 && prev <= 0xdfff;
|
|
148
|
+
const hi = cursor >= 2 ? line.charCodeAt(cursor - 2) : 0;
|
|
149
|
+
const pair = low && hi >= 0xd800 && hi <= 0xdbff;
|
|
150
|
+
const cut = pair ? cursor - 2 : cursor - 1;
|
|
151
|
+
line = line.slice(0, cut) + line.slice(cursor);
|
|
152
|
+
cursor = cut;
|
|
146
153
|
redraw();
|
|
147
154
|
}
|
|
148
155
|
continue;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "zames_pro",
|
|
3
|
-
"version": "2.82.
|
|
3
|
+
"version": "2.82.71",
|
|
4
4
|
"description": "Terminal coding agent that drives a real browser to chat with DeepSeek, Qwen and other web LLMs — no API key required. Reads and edits files, runs commands, commits to git, like Claude Code / Codex CLI.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"bin": {
|