@generativereality/browser-automation 0.4.8 → 0.4.9
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/.claude-plugin/plugin.json +1 -1
- package/dist/index.js +63 -1
- package/package.json +5 -3
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "browser-automation",
|
|
3
3
|
"description": "Daemonless, per-tab-isolated browser automation for Claude Code via the `browser-automation` CLI. Drives one shared headed Chrome (persistent profile + extensions) over per-target CDP — many parallel sessions, no focus stealing, nothing long-lived to crash.",
|
|
4
|
-
"version": "0.4.
|
|
4
|
+
"version": "0.4.9",
|
|
5
5
|
"author": {
|
|
6
6
|
"name": "generativereality"
|
|
7
7
|
},
|
package/dist/index.js
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
+
import updateNotifier from "update-notifier";
|
|
2
3
|
import { cli, define } from "gunshi";
|
|
3
4
|
import { consola } from "consola";
|
|
4
5
|
import { homedir } from "node:os";
|
|
@@ -7,8 +8,63 @@ import { existsSync, mkdirSync, readFileSync, readdirSync, renameSync, rmSync, s
|
|
|
7
8
|
import { execFileSync, spawnSync } from "node:child_process";
|
|
8
9
|
import { fileURLToPath } from "node:url";
|
|
9
10
|
//#region package.json
|
|
10
|
-
var
|
|
11
|
+
var name = "@generativereality/browser-automation";
|
|
12
|
+
var version = "0.4.9";
|
|
11
13
|
var description = "Daemonless, per-tab-isolated browser automation CLI for Claude Code. Drives one shared headed Chrome (persistent profile + extensions) over per-target CDP — many parallel sessions, no focus stealing, nothing long-lived to crash.";
|
|
14
|
+
var package_default = {
|
|
15
|
+
name,
|
|
16
|
+
version,
|
|
17
|
+
description,
|
|
18
|
+
type: "module",
|
|
19
|
+
bin: { "browser-automation": "dist/index.js" },
|
|
20
|
+
files: [
|
|
21
|
+
"dist",
|
|
22
|
+
".claude-plugin",
|
|
23
|
+
"skills",
|
|
24
|
+
"scripts"
|
|
25
|
+
],
|
|
26
|
+
scripts: {
|
|
27
|
+
"dev": "bun run ./src/index.ts",
|
|
28
|
+
"build": "tsdown",
|
|
29
|
+
"typecheck": "tsc --noEmit",
|
|
30
|
+
"check": "npm run typecheck && bash scripts/check-one-port.sh && npm run build",
|
|
31
|
+
"release": "bumpp && npm publish",
|
|
32
|
+
"sync-plugin": "bash scripts/sync-plugin.sh",
|
|
33
|
+
"prepack": "npm run build"
|
|
34
|
+
},
|
|
35
|
+
keywords: [
|
|
36
|
+
"claude-code",
|
|
37
|
+
"browser-automation",
|
|
38
|
+
"cdp",
|
|
39
|
+
"chrome-devtools-protocol",
|
|
40
|
+
"playwright-alternative",
|
|
41
|
+
"ai-agents"
|
|
42
|
+
],
|
|
43
|
+
author: "motin",
|
|
44
|
+
license: "MIT",
|
|
45
|
+
repository: {
|
|
46
|
+
"type": "git",
|
|
47
|
+
"url": "git+https://github.com/generativereality/browser-automation.git"
|
|
48
|
+
},
|
|
49
|
+
homepage: "https://github.com/generativereality/browser-automation",
|
|
50
|
+
engines: { "node": ">=22.0.0" },
|
|
51
|
+
publishConfig: {
|
|
52
|
+
"registry": "https://registry.npmjs.org",
|
|
53
|
+
"access": "public"
|
|
54
|
+
},
|
|
55
|
+
dependencies: {
|
|
56
|
+
"consola": "^3.4.0",
|
|
57
|
+
"gunshi": "^0.23.0",
|
|
58
|
+
"update-notifier": "^7.3.1"
|
|
59
|
+
},
|
|
60
|
+
devDependencies: {
|
|
61
|
+
"@types/node": "^22.0.0",
|
|
62
|
+
"@types/update-notifier": "^6.0.8",
|
|
63
|
+
"bumpp": "^9.11.1",
|
|
64
|
+
"tsdown": "^0.12.0",
|
|
65
|
+
"typescript": "^5.8.0"
|
|
66
|
+
}
|
|
67
|
+
};
|
|
12
68
|
//#endregion
|
|
13
69
|
//#region src/core/session.ts
|
|
14
70
|
const DIR = join(homedir(), ".browser-automation", "sessions");
|
|
@@ -2227,6 +2283,12 @@ process.stdout.on("error", (err) => {
|
|
|
2227
2283
|
if (err.code === "EPIPE") process.exit(0);
|
|
2228
2284
|
throw err;
|
|
2229
2285
|
});
|
|
2286
|
+
const notifier = updateNotifier({ pkg: package_default });
|
|
2287
|
+
notifier.notify();
|
|
2288
|
+
if (notifier.update && notifier.update.latest !== notifier.update.current) {
|
|
2289
|
+
const { current, latest } = notifier.update;
|
|
2290
|
+
process.stdout.write(`[browser-automation] OUTDATED ${current} < ${latest} — run: npm install -g ${name}@latest\n`);
|
|
2291
|
+
}
|
|
2230
2292
|
run().catch((err) => {
|
|
2231
2293
|
console.error(err instanceof Error ? err.message : String(err));
|
|
2232
2294
|
process.exit(1);
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@generativereality/browser-automation",
|
|
3
|
-
"version": "0.4.
|
|
4
|
-
"description": "Daemonless, per-tab-isolated browser automation CLI for Claude Code. Drives one shared headed Chrome (persistent profile + extensions) over per-target CDP
|
|
3
|
+
"version": "0.4.9",
|
|
4
|
+
"description": "Daemonless, per-tab-isolated browser automation CLI for Claude Code. Drives one shared headed Chrome (persistent profile + extensions) over per-target CDP — many parallel sessions, no focus stealing, nothing long-lived to crash.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"bin": {
|
|
7
7
|
"browser-automation": "dist/index.js"
|
|
@@ -45,10 +45,12 @@
|
|
|
45
45
|
},
|
|
46
46
|
"dependencies": {
|
|
47
47
|
"consola": "^3.4.0",
|
|
48
|
-
"gunshi": "^0.23.0"
|
|
48
|
+
"gunshi": "^0.23.0",
|
|
49
|
+
"update-notifier": "^7.3.1"
|
|
49
50
|
},
|
|
50
51
|
"devDependencies": {
|
|
51
52
|
"@types/node": "^22.0.0",
|
|
53
|
+
"@types/update-notifier": "^6.0.8",
|
|
52
54
|
"bumpp": "^9.11.1",
|
|
53
55
|
"tsdown": "^0.12.0",
|
|
54
56
|
"typescript": "^5.8.0"
|