Compare commits

...
Author SHA1 Message Date
Chris Tate a208f2802c chore: bump version to 0.6.0 2026-01-18 11:32:37 -06:00
Chris Tate 818d9fa95e format code (#152) 2026-01-18 11:21:28 -06:00
5 changed files with 8 additions and 13 deletions
+1 -1
View File
@@ -4,7 +4,7 @@ version = 4
[[package]]
name = "agent-browser"
version = "0.5.0"
version = "0.6.0"
dependencies = [
"libc",
"serde",
+1 -1
View File
@@ -1,6 +1,6 @@
[package]
name = "agent-browser"
version = "0.5.0"
version = "0.6.0"
edition = "2021"
description = "Fast browser automation CLI for AI agents"
license = "Apache-2.0"
+1 -1
View File
@@ -1,6 +1,6 @@
{
"name": "agent-browser",
"version": "0.5.0",
"version": "0.6.0",
"description": "Headless browser automation CLI for AI agents",
"type": "module",
"main": "dist/daemon.js",
+4 -7
View File
@@ -1286,13 +1286,10 @@ async function handleStyles(
// Check if it's a ref - single element
if (browser.isRef(command.selector)) {
const locator = browser.getLocator(command.selector);
const element = (await locator.evaluate(
(el, script) => {
const fn = eval(script);
return fn(el);
},
extractStylesScript
)) as StylesData['elements'][0];
const element = (await locator.evaluate((el, script) => {
const fn = eval(script);
return fn(el);
}, extractStylesScript)) as StylesData['elements'][0];
return successResponse(command.id, { elements: [element] });
}
+1 -3
View File
@@ -739,9 +739,7 @@ export class BrowserManager {
}
// Filter out pages with empty URLs, which can cause Playwright to hang
const allPages = contexts
.flatMap((context) => context.pages())
.filter((page) => page.url());
const allPages = contexts.flatMap((context) => context.pages()).filter((page) => page.url());
if (allPages.length === 0) {
throw new Error('No page found. Make sure the app has loaded content.');