@elizaos/plugin-browser 1.0.3 → 2.0.0-alpha.1

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.
Files changed (87) hide show
  1. package/README.md +75 -23
  2. package/dist/actions/click.d.ts +3 -0
  3. package/dist/actions/click.d.ts.map +1 -0
  4. package/dist/actions/click.js +98 -0
  5. package/dist/actions/click.js.map +1 -0
  6. package/dist/actions/extract.d.ts +3 -0
  7. package/dist/actions/extract.d.ts.map +1 -0
  8. package/dist/actions/extract.js +110 -0
  9. package/dist/actions/extract.js.map +1 -0
  10. package/dist/actions/index.d.ts +7 -0
  11. package/dist/actions/index.d.ts.map +1 -0
  12. package/dist/actions/index.js +7 -0
  13. package/dist/actions/index.js.map +1 -0
  14. package/dist/actions/navigate.d.ts +3 -0
  15. package/dist/actions/navigate.d.ts.map +1 -0
  16. package/dist/actions/navigate.js +129 -0
  17. package/dist/actions/navigate.js.map +1 -0
  18. package/dist/actions/screenshot.d.ts +3 -0
  19. package/dist/actions/screenshot.d.ts.map +1 -0
  20. package/dist/actions/screenshot.js +107 -0
  21. package/dist/actions/screenshot.js.map +1 -0
  22. package/dist/actions/select.d.ts +3 -0
  23. package/dist/actions/select.d.ts.map +1 -0
  24. package/dist/actions/select.js +105 -0
  25. package/dist/actions/select.js.map +1 -0
  26. package/dist/actions/type.d.ts +3 -0
  27. package/dist/actions/type.d.ts.map +1 -0
  28. package/dist/actions/type.js +105 -0
  29. package/dist/actions/type.js.map +1 -0
  30. package/dist/index.d.ts +17 -5
  31. package/dist/index.d.ts.map +1 -0
  32. package/dist/index.js +119 -348
  33. package/dist/index.js.map +1 -1
  34. package/dist/providers/browser-state.d.ts +3 -0
  35. package/dist/providers/browser-state.d.ts.map +1 -0
  36. package/dist/providers/browser-state.js +47 -0
  37. package/dist/providers/browser-state.js.map +1 -0
  38. package/dist/providers/index.d.ts +2 -0
  39. package/dist/providers/index.d.ts.map +1 -0
  40. package/dist/providers/index.js +2 -0
  41. package/dist/providers/index.js.map +1 -0
  42. package/dist/services/browser-service.d.ts +30 -0
  43. package/dist/services/browser-service.d.ts.map +1 -0
  44. package/dist/services/browser-service.js +164 -0
  45. package/dist/services/browser-service.js.map +1 -0
  46. package/dist/services/index.d.ts +4 -0
  47. package/dist/services/index.d.ts.map +1 -0
  48. package/dist/services/index.js +4 -0
  49. package/dist/services/index.js.map +1 -0
  50. package/dist/services/process-manager.d.ts +15 -0
  51. package/dist/services/process-manager.d.ts.map +1 -0
  52. package/dist/services/process-manager.js +186 -0
  53. package/dist/services/process-manager.js.map +1 -0
  54. package/dist/services/websocket-client.d.ts +35 -0
  55. package/dist/services/websocket-client.d.ts.map +1 -0
  56. package/dist/services/websocket-client.js +219 -0
  57. package/dist/services/websocket-client.js.map +1 -0
  58. package/dist/types.d.ts +101 -0
  59. package/dist/types.d.ts.map +1 -0
  60. package/dist/types.js +2 -0
  61. package/dist/types.js.map +1 -0
  62. package/dist/utils/captcha.d.ts +33 -0
  63. package/dist/utils/captcha.d.ts.map +1 -0
  64. package/dist/utils/captcha.js +219 -0
  65. package/dist/utils/captcha.js.map +1 -0
  66. package/dist/utils/errors.d.ts +37 -0
  67. package/dist/utils/errors.d.ts.map +1 -0
  68. package/dist/utils/errors.js +81 -0
  69. package/dist/utils/errors.js.map +1 -0
  70. package/dist/utils/index.d.ts +5 -0
  71. package/dist/utils/index.d.ts.map +1 -0
  72. package/dist/utils/index.js +5 -0
  73. package/dist/utils/index.js.map +1 -0
  74. package/dist/utils/retry.d.ts +26 -0
  75. package/dist/utils/retry.d.ts.map +1 -0
  76. package/dist/utils/retry.js +55 -0
  77. package/dist/utils/retry.js.map +1 -0
  78. package/dist/utils/security.d.ts +27 -0
  79. package/dist/utils/security.d.ts.map +1 -0
  80. package/dist/utils/security.js +138 -0
  81. package/dist/utils/security.js.map +1 -0
  82. package/dist/utils/url.d.ts +12 -0
  83. package/dist/utils/url.d.ts.map +1 -0
  84. package/dist/utils/url.js +38 -0
  85. package/dist/utils/url.js.map +1 -0
  86. package/package.json +60 -42
  87. package/LICENSE +0 -21
package/package.json CHANGED
@@ -1,21 +1,27 @@
1
1
  {
2
2
  "name": "@elizaos/plugin-browser",
3
- "description": "Plugin for browser actions and web scraping",
4
- "version": "1.0.3",
3
+ "description": "Browser automation plugin for ElizaOS - enables AI agents to browse websites, interact with elements, and extract data",
4
+ "version": "2.0.0-alpha.1",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",
7
7
  "module": "dist/index.js",
8
8
  "types": "dist/index.d.ts",
9
+ "packageType": "plugin",
10
+ "platform": "node",
11
+ "license": "MIT",
9
12
  "keywords": [
10
13
  "plugin",
11
14
  "elizaos",
12
15
  "browser",
13
- "web-scraping"
16
+ "automation",
17
+ "stagehand",
18
+ "playwright"
14
19
  ],
15
20
  "repository": {
16
21
  "type": "git",
17
- "url": ""
22
+ "url": "https://github.com/elizaos/eliza"
18
23
  },
24
+ "homepage": "https://elizaos.ai",
19
25
  "exports": {
20
26
  "./package.json": "./package.json",
21
27
  ".": {
@@ -26,57 +32,69 @@
26
32
  }
27
33
  },
28
34
  "files": [
29
- "dist"
35
+ "dist",
36
+ "README.md",
37
+ "package.json"
30
38
  ],
31
39
  "dependencies": {
32
- "@elizaos/core": "^1.0.0",
33
- "@elizaos/plugin-anthropic": "^1.0.0-beta.54",
34
- "@elizaos/plugin-bootstrap": "^1.0.0-beta.76",
35
- "@elizaos/plugin-knowledge": "^1.0.0-beta.78",
36
- "@elizaos/plugin-openai": "^1.0.0-beta.74",
37
- "@elizaos/plugin-telegram": "^1.0.0-beta.55",
38
- "@elizaos/plugin-twitter": "^1.0.0-beta.57",
39
- "@types/uuid": "10.0.0",
40
- "capsolver-npm": "2.0.2",
41
- "fluent-ffmpeg": "2.1.3",
42
- "glob": "11.0.0",
43
- "patchright": "1.50.1",
44
- "uuid": "11.0.3",
45
- "zod": "3.25.23"
46
- },
47
- "devDependencies": {
48
- "tsup": "8.5.0",
49
- "typescript": "5.8.3",
50
- "prettier": "3.5.3"
51
- },
52
- "scripts": {
53
- "dev": "tsup --watch",
54
- "build": "tsup",
55
- "lint": "prettier --write ./src",
56
- "test": "elizaos test",
57
- "format": "prettier --write ./src",
58
- "format:check": "prettier --check ./src",
59
- "clean": "rm -rf dist .turbo node_modules .turbo-tsconfig.json tsconfig.tsbuildinfo"
40
+ "ws": "^8.18.0",
41
+ "axios": "^1.7.7",
42
+ "zod": "^4.3.5"
60
43
  },
61
44
  "peerDependencies": {
62
- "whatwg-url": "7.1.0"
45
+ "@elizaos/core": "workspace:*"
63
46
  },
64
- "publishConfig": {
65
- "access": "public"
47
+ "devDependencies": {
48
+ "@types/ws": "^8.5.10",
49
+ "typescript": "^5.9.3",
50
+ "@biomejs/biome": "^2.3.11"
66
51
  },
67
- "resolutions": {
68
- "zod": "3.25.23"
52
+ "scripts": {
53
+ "dev": "bun --hot build.ts",
54
+ "test": "vitest run || echo 'TypeScript tests skipped - no tests found'",
55
+ "lint": "bunx @biomejs/biome check --write --unsafe .",
56
+ "typecheck": "tsc --noEmit",
57
+ "clean": "rm -rf dist .turbo",
58
+ "lint:check": "bunx @biomejs/biome check .",
59
+ "build": "bun run build.ts",
60
+ "build:ts": "bun run build.ts"
69
61
  },
70
- "gitHead": "646c632924826e2b75c2304a75ee56959fe4a460",
71
62
  "agentConfig": {
72
63
  "pluginType": "elizaos:plugin:1.0.0",
73
64
  "pluginParameters": {
65
+ "BROWSERBASE_API_KEY": {
66
+ "type": "string",
67
+ "description": "API key for Browserbase cloud browser service",
68
+ "required": false
69
+ },
70
+ "BROWSERBASE_PROJECT_ID": {
71
+ "type": "string",
72
+ "description": "Project ID for Browserbase",
73
+ "required": false
74
+ },
75
+ "OPENAI_API_KEY": {
76
+ "type": "string",
77
+ "description": "OpenAI API key for AI-powered browser interactions",
78
+ "required": false
79
+ },
80
+ "ANTHROPIC_API_KEY": {
81
+ "type": "string",
82
+ "description": "Anthropic API key for Claude-powered interactions",
83
+ "required": false
84
+ },
85
+ "BROWSER_HEADLESS": {
86
+ "type": "boolean",
87
+ "description": "Run browser in headless mode (default: true)",
88
+ "required": false
89
+ },
74
90
  "CAPSOLVER_API_KEY": {
75
91
  "type": "string",
76
- "description": "API key used by the CaptchaSolver library to solve hCaptcha and reCaptcha challenges.",
77
- "required": false,
78
- "sensitive": true
92
+ "description": "CapSolver API key for automated CAPTCHA solving",
93
+ "required": false
79
94
  }
80
95
  }
96
+ },
97
+ "publishConfig": {
98
+ "access": "public"
81
99
  }
82
100
  }
package/LICENSE DELETED
@@ -1,21 +0,0 @@
1
- MIT License
2
-
3
- Copyright (c) 2025 Shaw Walters and elizaOS Contributors
4
-
5
- Permission is hereby granted, free of charge, to any person obtaining a copy
6
- of this software and associated documentation files (the "Software"), to deal
7
- in the Software without restriction, including without limitation the rights
8
- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
- copies of the Software, and to permit persons to whom the Software is
10
- furnished to do so, subject to the following conditions:
11
-
12
- The above copyright notice and this permission notice shall be included in all
13
- copies or substantial portions of the Software.
14
-
15
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
- SOFTWARE.