agent-browser 0.23.2 → 0.23.4
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/bin/agent-browser-darwin-arm64 +0 -0
- package/bin/agent-browser-darwin-x64 +0 -0
- package/bin/agent-browser-linux-arm64 +0 -0
- package/bin/agent-browser-linux-musl-arm64 +0 -0
- package/bin/agent-browser-linux-musl-x64 +0 -0
- package/bin/agent-browser-linux-x64 +0 -0
- package/bin/agent-browser-win32-x64.exe +0 -0
- package/package.json +2 -7
- package/scripts/check-version-sync.js +14 -2
- package/scripts/sync-version.js +12 -0
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "agent-browser",
|
|
3
|
-
"version": "0.23.
|
|
3
|
+
"version": "0.23.4",
|
|
4
4
|
"description": "Browser automation CLI for AI agents",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"files": [
|
|
@@ -29,9 +29,7 @@
|
|
|
29
29
|
"url": "https://github.com/vercel-labs/agent-browser/issues"
|
|
30
30
|
},
|
|
31
31
|
"homepage": "https://agent-browser.dev",
|
|
32
|
-
"devDependencies": {
|
|
33
|
-
"@changesets/cli": "^2.29.8"
|
|
34
|
-
},
|
|
32
|
+
"devDependencies": {},
|
|
35
33
|
"scripts": {
|
|
36
34
|
"version:sync": "node scripts/sync-version.js",
|
|
37
35
|
"version": "npm run version:sync && git add cli/Cargo.toml",
|
|
@@ -43,9 +41,6 @@
|
|
|
43
41
|
"build:docker": "docker build -t agent-browser-builder -f docker/Dockerfile.build .",
|
|
44
42
|
"release": "npm run version:sync && npm run build:all-platforms && npm publish",
|
|
45
43
|
"postinstall": "node scripts/postinstall.js",
|
|
46
|
-
"changeset": "changeset",
|
|
47
|
-
"ci:version": "changeset version && pnpm run version:sync && pnpm install --no-frozen-lockfile",
|
|
48
|
-
"ci:publish": "pnpm run version:sync && changeset publish",
|
|
49
44
|
"build:dashboard": "cd packages/dashboard && pnpm build"
|
|
50
45
|
}
|
|
51
46
|
}
|
|
@@ -27,10 +27,22 @@ if (!cargoVersionMatch) {
|
|
|
27
27
|
|
|
28
28
|
const cargoVersion = cargoVersionMatch[1];
|
|
29
29
|
|
|
30
|
+
// Read dashboard package.json version
|
|
31
|
+
const dashboardPkg = JSON.parse(readFileSync(join(rootDir, 'packages/dashboard/package.json'), 'utf-8'));
|
|
32
|
+
const dashboardVersion = dashboardPkg.version;
|
|
33
|
+
|
|
34
|
+
const mismatches = [];
|
|
30
35
|
if (packageVersion !== cargoVersion) {
|
|
36
|
+
mismatches.push(` cli/Cargo.toml: ${cargoVersion}`);
|
|
37
|
+
}
|
|
38
|
+
if (packageVersion !== dashboardVersion) {
|
|
39
|
+
mismatches.push(` packages/dashboard: ${dashboardVersion}`);
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
if (mismatches.length > 0) {
|
|
31
43
|
console.error('Version mismatch detected!');
|
|
32
|
-
console.error(` package.json:
|
|
33
|
-
console.error(
|
|
44
|
+
console.error(` package.json: ${packageVersion}`);
|
|
45
|
+
for (const m of mismatches) console.error(m);
|
|
34
46
|
console.error('');
|
|
35
47
|
console.error("Run 'pnpm run version:sync' to fix this.");
|
|
36
48
|
process.exit(1);
|
package/scripts/sync-version.js
CHANGED
|
@@ -44,6 +44,18 @@ if (cargoVersionRegex.test(cargoToml)) {
|
|
|
44
44
|
process.exit(1);
|
|
45
45
|
}
|
|
46
46
|
|
|
47
|
+
// Update packages/dashboard/package.json
|
|
48
|
+
const dashboardPkgPath = join(rootDir, "packages", "dashboard", "package.json");
|
|
49
|
+
const dashboardPkg = JSON.parse(readFileSync(dashboardPkgPath, "utf-8"));
|
|
50
|
+
if (dashboardPkg.version !== version) {
|
|
51
|
+
const oldVersion = dashboardPkg.version;
|
|
52
|
+
dashboardPkg.version = version;
|
|
53
|
+
writeFileSync(dashboardPkgPath, JSON.stringify(dashboardPkg, null, 2) + "\n");
|
|
54
|
+
console.log(` Updated packages/dashboard/package.json: ${oldVersion} -> ${version}`);
|
|
55
|
+
} else {
|
|
56
|
+
console.log(` packages/dashboard/package.json already up to date`);
|
|
57
|
+
}
|
|
58
|
+
|
|
47
59
|
// Update Cargo.lock to match Cargo.toml
|
|
48
60
|
if (cargoTomlUpdated) {
|
|
49
61
|
try {
|