@meetopenbot/stagehand 1.0.1 → 1.0.2

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,4 @@
1
+ import type { Plugin } from '@meetopenbot/plugin-sdk';
2
+ declare const plugin: Plugin;
3
+ export { plugin };
4
+ export default plugin;
package/dist/index.js CHANGED
@@ -128,7 +128,7 @@ var plugin = definePlugin({
128
128
  });
129
129
  }
130
130
  });
131
- var stagehand_default = plugin;
131
+ var plugin_stagehand_default = plugin;
132
132
  export {
133
- stagehand_default as default
133
+ plugin_stagehand_default as default
134
134
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@meetopenbot/stagehand",
3
- "version": "1.0.1",
3
+ "version": "1.0.2",
4
4
  "type": "module",
5
5
  "description": "Stagehand AI browser automation plugin for OpenBot",
6
6
  "main": "./dist/index.js",
@@ -8,27 +8,33 @@
8
8
  "access": "public"
9
9
  },
10
10
  "exports": {
11
- ".": "./dist/index.js"
11
+ ".": {
12
+ "types": "./dist/index.d.ts",
13
+ "import": "./dist/index.js",
14
+ "default": "./dist/index.js"
15
+ }
12
16
  },
13
17
  "files": [
14
18
  "dist"
15
19
  ],
16
- "scripts": {
17
- "build": "esbuild index.ts --bundle --platform=node --target=node18 --format=esm --packages=external --outfile=dist/index.js",
18
- "postinstall": "playwright install chromium --with-deps || playwright install chromium || true",
19
- "prepublishOnly": "npm run build"
20
- },
21
20
  "engines": {
22
21
  "node": ">=18"
23
22
  },
24
23
  "dependencies": {
25
24
  "@browserbasehq/stagehand": "^3.3.0",
26
- "@meetopenbot/plugin-sdk": "^0.1.2",
27
25
  "playwright": "^1.52.0",
28
- "zod": "^4.3.5"
26
+ "zod": "^4.3.5",
27
+ "@meetopenbot/plugin-sdk": "^0.2.0"
29
28
  },
30
29
  "devDependencies": {
31
30
  "@types/node": "^20.10.1",
32
31
  "esbuild": "^0.21.0"
32
+ },
33
+ "types": "./dist/index.d.ts",
34
+ "scripts": {
35
+ "build": "esbuild index.ts --bundle --platform=node --target=node18 --format=esm --packages=external --outfile=dist/index.js && node ../../scripts/write-plugin-declaration.mjs",
36
+ "setup:browser": "playwright install chromium",
37
+ "dev": "esbuild index.ts --bundle --platform=node --target=node18 --format=esm --packages=external --outfile=dist/index.js --watch",
38
+ "typecheck": "tsc --noEmit --allowImportingTsExtensions --module ESNext --moduleResolution Bundler --target ES2022 --skipLibCheck index.ts"
33
39
  }
34
- }
40
+ }