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 +6 -0
- package/dist/web.js +11 -2
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
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
|
-
|
|
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.
|
|
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": {
|