@browserbasehq/orca 3.7.1-preview.0 → 3.7.2-preview.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.
Files changed (61) hide show
  1. package/dist/cjs/lib/v3/agent/tools/click.js +15 -4
  2. package/dist/cjs/lib/v3/agent/tools/click.js.map +1 -1
  3. package/dist/cjs/lib/v3/agent/tools/fillFormVision.js +12 -4
  4. package/dist/cjs/lib/v3/agent/tools/fillFormVision.js.map +1 -1
  5. package/dist/cjs/lib/v3/agent/tools/type.js +12 -3
  6. package/dist/cjs/lib/v3/agent/tools/type.js.map +1 -1
  7. package/dist/cjs/lib/v3/api.d.ts +1 -1
  8. package/dist/cjs/lib/v3/api.js +2 -1
  9. package/dist/cjs/lib/v3/api.js.map +1 -1
  10. package/dist/cjs/lib/v3/handlers/handlerUtils/actHandlerUtils.js +20 -0
  11. package/dist/cjs/lib/v3/handlers/handlerUtils/actHandlerUtils.js.map +1 -1
  12. package/dist/cjs/lib/v3/handlers/v3CuaAgentHandler.js +32 -0
  13. package/dist/cjs/lib/v3/handlers/v3CuaAgentHandler.js.map +1 -1
  14. package/dist/cjs/lib/v3/types/public/api.d.ts +53 -0
  15. package/dist/cjs/lib/v3/types/public/api.js +8 -0
  16. package/dist/cjs/lib/v3/types/public/api.js.map +1 -1
  17. package/dist/cjs/lib/v3/types/public/options.d.ts +13 -0
  18. package/dist/cjs/lib/v3/types/public/options.js.map +1 -1
  19. package/dist/cjs/lib/v3/understudy/locator.d.ts +12 -0
  20. package/dist/cjs/lib/v3/understudy/locator.js +44 -0
  21. package/dist/cjs/lib/v3/understudy/locator.js.map +1 -1
  22. package/dist/cjs/lib/v3/understudy/page.d.ts +15 -0
  23. package/dist/cjs/lib/v3/understudy/page.js +50 -0
  24. package/dist/cjs/lib/v3/understudy/page.js.map +1 -1
  25. package/dist/cjs/lib/v3/v3.d.ts +8 -0
  26. package/dist/cjs/lib/v3/v3.js +11 -0
  27. package/dist/cjs/lib/v3/v3.js.map +1 -1
  28. package/dist/cjs/lib/version.d.ts +1 -1
  29. package/dist/cjs/lib/version.js +1 -1
  30. package/dist/cjs/lib/version.js.map +1 -1
  31. package/dist/esm/lib/v3/agent/tools/click.js +15 -4
  32. package/dist/esm/lib/v3/agent/tools/click.js.map +1 -1
  33. package/dist/esm/lib/v3/agent/tools/fillFormVision.js +12 -4
  34. package/dist/esm/lib/v3/agent/tools/fillFormVision.js.map +1 -1
  35. package/dist/esm/lib/v3/agent/tools/type.js +12 -3
  36. package/dist/esm/lib/v3/agent/tools/type.js.map +1 -1
  37. package/dist/esm/lib/v3/api.d.ts +1 -1
  38. package/dist/esm/lib/v3/api.js +2 -1
  39. package/dist/esm/lib/v3/api.js.map +1 -1
  40. package/dist/esm/lib/v3/handlers/handlerUtils/actHandlerUtils.js +20 -0
  41. package/dist/esm/lib/v3/handlers/handlerUtils/actHandlerUtils.js.map +1 -1
  42. package/dist/esm/lib/v3/handlers/v3CuaAgentHandler.js +32 -0
  43. package/dist/esm/lib/v3/handlers/v3CuaAgentHandler.js.map +1 -1
  44. package/dist/esm/lib/v3/types/public/api.d.ts +53 -0
  45. package/dist/esm/lib/v3/types/public/api.js +8 -0
  46. package/dist/esm/lib/v3/types/public/api.js.map +1 -1
  47. package/dist/esm/lib/v3/types/public/options.d.ts +13 -0
  48. package/dist/esm/lib/v3/types/public/options.js.map +1 -1
  49. package/dist/esm/lib/v3/understudy/locator.d.ts +12 -0
  50. package/dist/esm/lib/v3/understudy/locator.js +44 -0
  51. package/dist/esm/lib/v3/understudy/locator.js.map +1 -1
  52. package/dist/esm/lib/v3/understudy/page.d.ts +15 -0
  53. package/dist/esm/lib/v3/understudy/page.js +50 -0
  54. package/dist/esm/lib/v3/understudy/page.js.map +1 -1
  55. package/dist/esm/lib/v3/v3.d.ts +8 -0
  56. package/dist/esm/lib/v3/v3.js +11 -0
  57. package/dist/esm/lib/v3/v3.js.map +1 -1
  58. package/dist/esm/lib/version.d.ts +1 -1
  59. package/dist/esm/lib/version.js +1 -1
  60. package/dist/esm/lib/version.js.map +1 -1
  61. package/package.json +1 -1
@@ -73,6 +73,14 @@ export declare class V3 {
73
73
  * @deprecated Use `isVerified` instead. This alias will be removed in a future version.
74
74
  */
75
75
  get isAdvancedStealth(): boolean;
76
+ /**
77
+ * Whether coordinate pointer actions should actuate as touch instead of mouse.
78
+ *
79
+ * Explicit opt-in via the `useTouch` option — no session-derived or probed
80
+ * detection, so the answer is known before the first action, is stable for the
81
+ * whole run, and never surprises a caller who didn't ask for touch.
82
+ */
83
+ get usesTouch(): boolean;
76
84
  /**
77
85
  * Returns the configured viewport dimensions from launch options.
78
86
  * Falls back to default 1288x711 if not configured.
@@ -231,6 +231,16 @@ let V3 = (() => {
231
231
  get isAdvancedStealth() {
232
232
  return this.isVerified;
233
233
  }
234
+ /**
235
+ * Whether coordinate pointer actions should actuate as touch instead of mouse.
236
+ *
237
+ * Explicit opt-in via the `useTouch` option — no session-derived or probed
238
+ * detection, so the answer is known before the first action, is stable for the
239
+ * whole run, and never surprises a caller who didn't ask for touch.
240
+ */
241
+ get usesTouch() {
242
+ return this.opts.useTouch === true;
243
+ }
234
244
  /**
235
245
  * Returns the configured viewport dimensions from launch options.
236
246
  * Falls back to default 1288x711 if not configured.
@@ -899,6 +909,7 @@ let V3 = (() => {
899
909
  verbose: this.verbose,
900
910
  systemPrompt: this.opts.systemPrompt,
901
911
  selfHeal: this.opts.selfHeal,
912
+ useTouch: this.opts.useTouch,
902
913
  browserbaseSessionCreateParams: createSessionPayload,
903
914
  browserbaseSessionID: this.opts.browserbaseSessionID,
904
915
  });