zames_pro 2.82.75 → 2.82.77

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,18 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
7
7
 
8
8
  ## [Unreleased]
9
9
 
10
+ ## [2.82.77] - 2026-10-24
11
+
12
+ ### Fixed
13
+
14
+ - **scheduler:** a zero-interval loop no longer fires on every tick
15
+
16
+ ## [2.82.76] - 2026-10-24
17
+
18
+ ### Fixed
19
+
20
+ - **login:** askPassword Backspace deletes a whole code point
21
+
10
22
  ## [2.82.75] - 2026-10-24
11
23
 
12
24
  ### 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/dist/scheduler.js CHANGED
@@ -258,6 +258,13 @@ export class Scheduler {
258
258
  const missed = Math.floor((now - job.nextAt) / job.intervalMs);
259
259
  job.nextAt = job.nextAt + (missed + 1) * job.intervalMs;
260
260
  }
261
+ else if (job.kind === 'loop') {
262
+ // A loop with a ZERO/missing interval (a hand-edited or restored job)
263
+ // matched neither branch, so `nextAt` was never advanced and the job
264
+ // fired on EVERY 1-second tick. Never fire it again rather than
265
+ // busy-loop the scheduler.
266
+ job.nextAt = Number.POSITIVE_INFINITY;
267
+ }
261
268
  else if (job.cron) {
262
269
  const nxt = nextCronTime(job.cron, now);
263
270
  job.nextAt = nxt === null ? Number.POSITIVE_INFINITY : nxt;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "zames_pro",
3
- "version": "2.82.75",
3
+ "version": "2.82.77",
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": {