zames_pro 2.82.75 → 2.82.76

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
@@ -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.76] - 2026-10-24
11
+
12
+ ### Fixed
13
+
14
+ - **login:** askPassword Backspace deletes a whole code point
15
+
10
16
  ## [2.82.75] - 2026-10-24
11
17
 
12
18
  ### Fixed
@@ -68,9 +68,16 @@ export function askPassword(question) {
68
68
  return;
69
69
  }
70
70
  // Backspace (0x7f or 0x08): remove the last char and one star.
71
+ // Delete a WHOLE code point: an emoji is two UTF-16 units, and
72
+ // removing one left a LONE surrogate in the password — a broken code
73
+ // point that never matches the real one.
71
74
  if (code === 127 || code === 8) {
72
75
  if (value.length > 0) {
73
- value = value.slice(0, -1);
76
+ const prev = value.charCodeAt(value.length - 1);
77
+ const low = prev >= 0xdc00 && prev <= 0xdfff;
78
+ const hi = value.length >= 2 ? value.charCodeAt(value.length - 2) : 0;
79
+ const pair = low && hi >= 0xd800 && hi <= 0xdbff;
80
+ value = value.slice(0, pair ? -2 : -1);
74
81
  process.stdout.write('\b \b');
75
82
  }
76
83
  continue;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "zames_pro",
3
- "version": "2.82.75",
3
+ "version": "2.82.76",
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": {