Browser skill (#485)

* Add `BrowserTool`

* add some logging

* go with npm install -g

* remove dep changes since the switch to npm install -g

* tweak

* tweak

* tweak

* tweak

* tweak timeout

* tweak

* remove logs

* skill investigation doc

* wip

* wip

* tweak

* lock agent-browser version

* tweak

* logs

* logs

* more logs

* more debug stuff

* try this

* try this

* try this

* fix PATH

* try this

* tweak

* tweak

* tweak

* update wiki entries

* update wiki once again

* lint fix

---------

Co-authored-by: Colin McDonnell <colinmcd94@gmail.com>
This commit is contained in:
Mateusz Burzyński
2026-03-25 19:36:13 +00:00
committed by pullfrog[bot]
parent 6b18b6730b
commit c0f6f9ef2a
12 changed files with 2569 additions and 2097 deletions
+2 -1
View File
@@ -25743,6 +25743,7 @@ async function apiFetch(options) {
}
// utils/retry.ts
import { setTimeout as sleep } from "node:timers/promises";
var defaultShouldRetry = (error2) => {
if (!(error2 instanceof Error)) return false;
return error2.name === "AbortError" || error2.message.includes("fetch failed") || error2.message.includes("ECONNRESET") || error2.message.includes("ETIMEDOUT");
@@ -25763,7 +25764,7 @@ async function retry(fn, options = {}) {
}
const delay = delayMs * attempt;
log.info(`\xBB ${label} failed (attempt ${attempt}/${maxAttempts}), retrying in ${delay}ms...`);
await new Promise((resolve) => setTimeout(resolve, delay));
await sleep(delay);
}
}
throw lastError;