browserclaw 0.12.1 → 0.12.2

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/dist/index.cjs CHANGED
@@ -1549,10 +1549,10 @@ async function launchChrome(opts = {}) {
1549
1549
  proc.stderr.on("data", onStderr);
1550
1550
  const readyDeadline = Date.now() + 15e3;
1551
1551
  while (Date.now() < readyDeadline) {
1552
- if (await isChromeReachable(cdpUrl, 500)) break;
1552
+ if (await isChromeCdpReady(cdpUrl, 500)) break;
1553
1553
  await new Promise((r) => setTimeout(r, 200));
1554
1554
  }
1555
- if (!await isChromeReachable(cdpUrl, 500)) {
1555
+ if (!await isChromeCdpReady(cdpUrl, 500)) {
1556
1556
  const stderrOutput = Buffer.concat(stderrChunks).toString("utf8").trim();
1557
1557
  const stderrHint = stderrOutput ? `
1558
1558
  Chrome stderr:
@@ -6716,7 +6716,7 @@ var BrowserClaw = class _BrowserClaw {
6716
6716
  * will be terminated. If connected via `BrowserClaw.connect()`, only the
6717
6717
  * Playwright connection is closed.
6718
6718
  *
6719
- * @param exitReason - Optional structured reason for stopping (e.g. `'success'`, `'auth_failed'`, `'timeout'`)
6719
+ * @param exitReason - Optional structured reason for stopping. One of: `'success'`, `'auth_failed'`, `'timeout'`, `'error'`, `'manual'`, `'nav_failed'`, `'crash'`, `'disconnected'`
6720
6720
  */
6721
6721
  async stop(exitReason) {
6722
6722
  this._telemetry.timestamps.stoppedAt = (/* @__PURE__ */ new Date()).toISOString();