zames_pro 2.82.26 → 2.82.28

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.28] - 2026-10-22
11
+
12
+ ### Fixed
13
+
14
+ - **scheduler:** render a zero interval as 0s, not 0h
15
+
16
+ ## [2.82.27] - 2026-10-22
17
+
18
+ ### Fixed
19
+
20
+ - **attachments:** reject a data URL with an empty payload
21
+
10
22
  ## [2.82.26] - 2026-10-22
11
23
 
12
24
  ### Fixed
@@ -90,10 +90,13 @@ export function parseDataUrl(text) {
90
90
  if (!m)
91
91
  return null;
92
92
  try {
93
- return {
94
- mime: m[1] || 'application/octet-stream',
95
- data: Buffer.from(m[2].replace(/\s+/g, ''), 'base64'),
96
- };
93
+ const data = Buffer.from(m[2].replace(/\s+/g, ''), 'base64');
94
+ // An EMPTY or unparsable payload decodes to a zero-length Buffer, which is
95
+ // still a truthy object: the paste handler then showed an `[image#N]`
96
+ // marker for a zero-byte file and submitted a broken attachment.
97
+ if (!data.length)
98
+ return null;
99
+ return { mime: m[1] || 'application/octet-stream', data };
97
100
  }
98
101
  catch {
99
102
  return null;
package/dist/scheduler.js CHANGED
@@ -33,6 +33,10 @@ export const MAX_TIMER_MS = 2_147_483_647;
33
33
  export function formatInterval(ms) {
34
34
  if (!Number.isFinite(ms))
35
35
  return '-';
36
+ // Zero must stay in SECONDS: `0 % 3_600_000 === 0`, so the hour branch used
37
+ // to render a job that is due NOW as `next ~0h`.
38
+ if (ms === 0)
39
+ return '0s';
36
40
  if (ms % 3_600_000 === 0)
37
41
  return ms / 3_600_000 + 'h';
38
42
  if (ms % 60_000 === 0)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "zames_pro",
3
- "version": "2.82.26",
3
+ "version": "2.82.28",
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": {