@browserbasehq/stagehand 1.0.2 → 1.0.3-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.
@@ -0,0 +1,2 @@
1
+ (() => {
2
+ })();
package/dist/index.js CHANGED
@@ -1172,13 +1172,20 @@ var Stagehand = class {
1172
1172
  yield this.page.setViewportSize({ width: 1280, height: 720 });
1173
1173
  }
1174
1174
  yield this.page.addInitScript({
1175
- path: import_path2.default.join(__dirname, "..", "dist", "dom", "build", "process.js")
1175
+ path: import_path2.default.join(
1176
+ process.cwd(),
1177
+ "..",
1178
+ "dist",
1179
+ "dom",
1180
+ "build",
1181
+ "process.js"
1182
+ )
1176
1183
  });
1177
1184
  yield this.page.addInitScript({
1178
- path: import_path2.default.join(__dirname, "..", "dist", "dom", "build", "utils.js")
1185
+ path: import_path2.default.join(process.cwd(), "..", "dist", "dom", "build", "utils.js")
1179
1186
  });
1180
1187
  yield this.page.addInitScript({
1181
- path: import_path2.default.join(__dirname, "..", "dist", "dom", "build", "debug.js")
1188
+ path: import_path2.default.join(process.cwd(), "..", "dist", "dom", "build", "debug.js")
1182
1189
  });
1183
1190
  return { debugUrl, sessionUrl };
1184
1191
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@browserbasehq/stagehand",
3
- "version": "1.0.2",
3
+ "version": "1.0.3-alpha.1",
4
4
  "description": "An AI web browsing framework focused on simplicity and extensibility.",
5
5
  "main": "./dist/index.js",
6
6
  "module": "./dist/index.js",