zames_pro 2.80.2 → 2.80.3

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.80.3] - 2026-10-20
11
+
12
+ ### Fixed
13
+
14
+ - a malformed uddg escape does not abort the web search
15
+
10
16
  ## [2.80.2] - 2026-10-20
11
17
 
12
18
  ### Fixed
package/dist/web.js CHANGED
@@ -643,8 +643,17 @@ export function parseDuckDuckGoResults(body, limit) {
643
643
  while ((m = re.exec(body)) && results.length < limit) {
644
644
  let href = m[1];
645
645
  const uddgMatch = href.match(/[?&]uddg=([^&]+)/);
646
- if (uddgMatch)
647
- href = decodeURIComponent(uddgMatch[1]);
646
+ if (uddgMatch) {
647
+ // decodeURIComponent THROWS on a malformed percent escape (`%ZZ`, a lone
648
+ // `%`). One broken href in the page must not abort the whole search: keep
649
+ // the raw href, which the http(s) check below then rejects.
650
+ try {
651
+ href = decodeURIComponent(uddgMatch[1]);
652
+ }
653
+ catch {
654
+ href = uddgMatch[1];
655
+ }
656
+ }
648
657
  const title = htmlToText(m[2] || '').trim();
649
658
  const snippet = htmlToText(m[3] || '').trim();
650
659
  // Only an absolute http(s) link is a real result. The page can carry a
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "zames_pro",
3
- "version": "2.80.2",
3
+ "version": "2.80.3",
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": {