agent-browser 0.8.3 → 0.8.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.
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.8.3",
3
+ "version": "0.8.4",
4
4
  "description": "Headless browser automation CLI for AI agents",
5
5
  "type": "module",
6
6
  "main": "dist/daemon.js",
@@ -70,7 +70,7 @@
70
70
  "test:watch": "vitest",
71
71
  "postinstall": "node scripts/postinstall.js",
72
72
  "changeset": "changeset",
73
- "ci:version": "changeset version && pnpm install --no-frozen-lockfile",
73
+ "ci:version": "changeset version && pnpm run version:sync && pnpm install --no-frozen-lockfile",
74
74
  "ci:publish": "pnpm run version:sync && pnpm run build && changeset publish"
75
75
  }
76
76
  }
@@ -0,0 +1,39 @@
1
+ #!/usr/bin/env node
2
+
3
+ /**
4
+ * Verifies that package.json and cli/Cargo.toml have the same version.
5
+ * Used in CI to catch version drift.
6
+ */
7
+
8
+ import { readFileSync } from 'fs';
9
+ import { dirname, join } from 'path';
10
+ import { fileURLToPath } from 'url';
11
+
12
+ const __dirname = dirname(fileURLToPath(import.meta.url));
13
+ const rootDir = join(__dirname, '..');
14
+
15
+ // Read package.json version
16
+ const packageJson = JSON.parse(readFileSync(join(rootDir, 'package.json'), 'utf-8'));
17
+ const packageVersion = packageJson.version;
18
+
19
+ // Read Cargo.toml version
20
+ const cargoToml = readFileSync(join(rootDir, 'cli/Cargo.toml'), 'utf-8');
21
+ const cargoVersionMatch = cargoToml.match(/^version\s*=\s*"([^"]*)"/m);
22
+
23
+ if (!cargoVersionMatch) {
24
+ console.error('Could not find version in cli/Cargo.toml');
25
+ process.exit(1);
26
+ }
27
+
28
+ const cargoVersion = cargoVersionMatch[1];
29
+
30
+ if (packageVersion !== cargoVersion) {
31
+ console.error('Version mismatch detected!');
32
+ console.error(` package.json: ${packageVersion}`);
33
+ console.error(` cli/Cargo.toml: ${cargoVersion}`);
34
+ console.error('');
35
+ console.error("Run 'pnpm run version:sync' to fix this.");
36
+ process.exit(1);
37
+ }
38
+
39
+ console.log(`Versions are in sync: ${packageVersion}`);