@velanir/openclaw-browserbase 0.1.0

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.
@@ -0,0 +1,125 @@
1
+ {
2
+ "id": "velanir-browserbase",
3
+ "activation": {
4
+ "onStartup": true
5
+ },
6
+ "name": "Velanir Browserbase Sessions",
7
+ "description": "Brokers Browserbase sessions behind a loopback CDP endpoint for the bundled browser tool: explicit session creation with a persistent per-coworker context, deterministic release, idle disconnect, and stale-session reaping.",
8
+ "configSchema": {
9
+ "type": "object",
10
+ "additionalProperties": false,
11
+ "required": ["projectId", "apiKey", "listenPort"],
12
+ "properties": {
13
+ "projectId": {
14
+ "type": "string",
15
+ "minLength": 1
16
+ },
17
+ "apiKey": {
18
+ "type": "string",
19
+ "minLength": 1
20
+ },
21
+ "region": {
22
+ "type": "string",
23
+ "enum": ["us-west-2", "us-east-1", "eu-central-1", "ap-southeast-1"],
24
+ "default": "us-west-2"
25
+ },
26
+ "listenPort": {
27
+ "type": "number",
28
+ "minimum": 1,
29
+ "maximum": 65535
30
+ },
31
+ "token": {
32
+ "type": "string",
33
+ "minLength": 8
34
+ },
35
+ "instanceKey": {
36
+ "type": "string",
37
+ "minLength": 1
38
+ },
39
+ "metadata": {
40
+ "type": "object",
41
+ "additionalProperties": { "type": "string" }
42
+ },
43
+ "defaults": {
44
+ "type": "object",
45
+ "additionalProperties": false,
46
+ "properties": {
47
+ "timeoutSeconds": {
48
+ "type": "number",
49
+ "default": 3600,
50
+ "minimum": 60,
51
+ "maximum": 21600
52
+ },
53
+ "viewport": {
54
+ "type": "object",
55
+ "additionalProperties": false,
56
+ "properties": {
57
+ "width": { "type": "number", "minimum": 320, "maximum": 3840 },
58
+ "height": { "type": "number", "minimum": 320, "maximum": 2160 }
59
+ }
60
+ },
61
+ "solveCaptchas": { "type": "boolean", "default": true },
62
+ "recordSession": { "type": "boolean", "default": true },
63
+ "logSession": { "type": "boolean", "default": true },
64
+ "ignoreCertificateErrors": { "type": "boolean", "default": false }
65
+ }
66
+ },
67
+ "context": {
68
+ "type": "object",
69
+ "additionalProperties": false,
70
+ "properties": {
71
+ "persist": { "type": "boolean", "default": true },
72
+ "cooldownSeconds": { "type": "number", "default": 10, "minimum": 0, "maximum": 120 },
73
+ "waitMs": { "type": "number", "default": 10000, "minimum": 0, "maximum": 60000 }
74
+ }
75
+ },
76
+ "proxies": {
77
+ "type": "array",
78
+ "items": { "type": "object" },
79
+ "default": []
80
+ },
81
+ "idleDisconnectMinutes": {
82
+ "type": "number",
83
+ "default": 15,
84
+ "minimum": 0
85
+ },
86
+ "reaperIntervalMinutes": {
87
+ "type": "number",
88
+ "default": 5,
89
+ "minimum": 0
90
+ }
91
+ }
92
+ },
93
+ "contracts": {
94
+ "tools": [
95
+ "browserbase_live_view",
96
+ "browserbase_session_status",
97
+ "browserbase_session_release"
98
+ ]
99
+ },
100
+ "uiHints": {
101
+ "apiKey": {
102
+ "label": "Browserbase API Key",
103
+ "sensitive": true,
104
+ "help": "Use ${ENV_VAR} substitution (for example ${OCT8_BROWSERBASE_API_KEY}) so the key never lives in openclaw.json on disk."
105
+ },
106
+ "token": {
107
+ "label": "Broker Token",
108
+ "sensitive": true,
109
+ "help": "Loopback bearer token the browser profile cdpUrl must carry as ?token=. Omit to generate a per-boot token (requires the cdpUrl to use ${ENV} substitution of the same value)."
110
+ },
111
+ "proxies": {
112
+ "label": "Proxy Routing",
113
+ "sensitive": true,
114
+ "help": "Browserbase session proxies array passed through at session creation. Leave empty to browse without proxies."
115
+ },
116
+ "defaults.timeoutSeconds": {
117
+ "label": "Session Timeout (s)",
118
+ "help": "Browserbase session timeout set at creation; immutable per session. Sessions are normally released much earlier by task end or idle disconnect."
119
+ },
120
+ "idleDisconnectMinutes": {
121
+ "label": "Idle Disconnect (min)",
122
+ "help": "Close and release the Browserbase session after this many minutes without CDP traffic. 0 disables. Login state survives via the persistent context."
123
+ }
124
+ }
125
+ }
package/package.json ADDED
@@ -0,0 +1,68 @@
1
+ {
2
+ "name": "@velanir/openclaw-browserbase",
3
+ "version": "0.1.0",
4
+ "description": "OpenClaw plugin that brokers Browserbase sessions behind a loopback CDP endpoint: explicit session creation with per-coworker persistent contexts, deterministic release, and stale-session reaping.",
5
+ "license": "UNLICENSED",
6
+ "type": "module",
7
+ "main": "./dist/index.js",
8
+ "types": "./dist/index.d.ts",
9
+ "exports": {
10
+ ".": {
11
+ "types": "./dist/index.d.ts",
12
+ "default": "./dist/index.js"
13
+ }
14
+ },
15
+ "files": [
16
+ "dist",
17
+ "openclaw.plugin.json",
18
+ "README.md"
19
+ ],
20
+ "publishConfig": {
21
+ "access": "public"
22
+ },
23
+ "repository": {
24
+ "type": "git",
25
+ "url": "git+https://github.com/Botero-Labs/platform.git",
26
+ "directory": "packages/openclaw-plugins/browserbase"
27
+ },
28
+ "engines": {
29
+ "node": ">=22.14.0"
30
+ },
31
+ "scripts": {
32
+ "build": "tsup src/index.ts --format esm --target node22 --dts --external openclaw --external ws --external typebox --out-dir dist --clean",
33
+ "check-types": "tsc -p tsconfig.json --noEmit",
34
+ "test": "vitest run"
35
+ },
36
+ "dependencies": {
37
+ "typebox": "1.1.39",
38
+ "ws": "8.21.0"
39
+ },
40
+ "peerDependencies": {
41
+ "openclaw": "2026.6.5"
42
+ },
43
+ "peerDependenciesMeta": {
44
+ "openclaw": {
45
+ "optional": true
46
+ }
47
+ },
48
+ "devDependencies": {
49
+ "@types/node": "^22.19.1",
50
+ "@types/ws": "^8.18.1",
51
+ "openclaw": "2026.6.5",
52
+ "tsup": "^8.4.0",
53
+ "typescript": "^5.7.0",
54
+ "vitest": "^4.0.0"
55
+ },
56
+ "openclaw": {
57
+ "extensions": [
58
+ "./src/index.ts"
59
+ ],
60
+ "runtimeExtensions": [
61
+ "./dist/index.js"
62
+ ],
63
+ "compat": {
64
+ "pluginApi": "2026.6.5",
65
+ "minGatewayVersion": "2026.6.5"
66
+ }
67
+ }
68
+ }