@browserbasehq/orca 3.0.9-alpha-2 → 3.0.9-alpha-3
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.
- package/dist/index.d.ts +3 -46
- package/dist/index.js +3646 -10434
- package/package.json +2 -5
package/dist/index.d.ts
CHANGED
|
@@ -191,7 +191,6 @@ declare class Frame implements FrameManager {
|
|
|
191
191
|
private getMainWorldExecutionContextId;
|
|
192
192
|
}
|
|
193
193
|
|
|
194
|
-
type MouseButton = "left" | "right" | "middle";
|
|
195
194
|
interface SetInputFilePayload {
|
|
196
195
|
name: string;
|
|
197
196
|
mimeType?: string;
|
|
@@ -200,6 +199,7 @@ interface SetInputFilePayload {
|
|
|
200
199
|
}
|
|
201
200
|
type SetInputFilesArgument = string | string[] | SetInputFilePayload | SetInputFilePayload[];
|
|
202
201
|
|
|
202
|
+
type MouseButton = "left" | "right" | "middle";
|
|
203
203
|
/**
|
|
204
204
|
* Locator
|
|
205
205
|
*
|
|
@@ -367,7 +367,7 @@ declare class Locator {
|
|
|
367
367
|
*/
|
|
368
368
|
innerText(): Promise<string>;
|
|
369
369
|
/**
|
|
370
|
-
*
|
|
370
|
+
* For API parity, returns the same locator (querySelector already returns the first match).
|
|
371
371
|
*/
|
|
372
372
|
first(): Locator;
|
|
373
373
|
/** Return a locator narrowed to the element at the given zero-based index. */
|
|
@@ -380,14 +380,6 @@ declare class Locator {
|
|
|
380
380
|
nodeId: Protocol.DOM.NodeId | null;
|
|
381
381
|
objectId: Protocol.Runtime.RemoteObjectId;
|
|
382
382
|
}>;
|
|
383
|
-
/**
|
|
384
|
-
* Resolve all matching nodes for this locator.
|
|
385
|
-
* If the locator is narrowed via nth(), only that index is returned.
|
|
386
|
-
*/
|
|
387
|
-
resolveNodesForMask(): Promise<Array<{
|
|
388
|
-
nodeId: Protocol.DOM.NodeId | null;
|
|
389
|
-
objectId: Protocol.Runtime.RemoteObjectId;
|
|
390
|
-
}>>;
|
|
391
383
|
/** Compute a center point from a BoxModel content quad */
|
|
392
384
|
private centerFromBoxContent;
|
|
393
385
|
}
|
|
@@ -484,8 +476,7 @@ declare class FrameLocator {
|
|
|
484
476
|
declare class LocatorDelegate {
|
|
485
477
|
private readonly fl;
|
|
486
478
|
private readonly sel;
|
|
487
|
-
|
|
488
|
-
constructor(fl: FrameLocator, sel: string, nthIndex?: number);
|
|
479
|
+
constructor(fl: FrameLocator, sel: string);
|
|
489
480
|
private real;
|
|
490
481
|
click(options?: {
|
|
491
482
|
button?: "left" | "right" | "middle";
|
|
@@ -506,7 +497,6 @@ declare class LocatorDelegate {
|
|
|
506
497
|
innerText(): Promise<string>;
|
|
507
498
|
count(): Promise<number>;
|
|
508
499
|
first(): LocatorDelegate;
|
|
509
|
-
nth(index: number): LocatorDelegate;
|
|
510
500
|
}
|
|
511
501
|
|
|
512
502
|
type RemoteObject = Protocol.Runtime.RemoteObject;
|
|
@@ -1293,22 +1283,6 @@ declare const AgentConfigSchema: z$1.ZodObject<{
|
|
|
1293
1283
|
}, z$1.core.$strip>, z$1.ZodString]>>;
|
|
1294
1284
|
systemPrompt: z$1.ZodOptional<z$1.ZodString>;
|
|
1295
1285
|
cua: z$1.ZodOptional<z$1.ZodBoolean>;
|
|
1296
|
-
mode: z$1.ZodOptional<z$1.ZodEnum<{
|
|
1297
|
-
cua: "cua";
|
|
1298
|
-
dom: "dom";
|
|
1299
|
-
hybrid: "hybrid";
|
|
1300
|
-
}>>;
|
|
1301
|
-
executionModel: z$1.ZodOptional<z$1.ZodUnion<readonly [z$1.ZodObject<{
|
|
1302
|
-
provider: z$1.ZodOptional<z$1.ZodEnum<{
|
|
1303
|
-
openai: "openai";
|
|
1304
|
-
anthropic: "anthropic";
|
|
1305
|
-
google: "google";
|
|
1306
|
-
microsoft: "microsoft";
|
|
1307
|
-
}>>;
|
|
1308
|
-
modelName: z$1.ZodString;
|
|
1309
|
-
apiKey: z$1.ZodOptional<z$1.ZodString>;
|
|
1310
|
-
baseURL: z$1.ZodOptional<z$1.ZodString>;
|
|
1311
|
-
}, z$1.core.$strip>, z$1.ZodString]>>;
|
|
1312
1286
|
}, z$1.core.$strip>;
|
|
1313
1287
|
/** Action taken by the agent during execution */
|
|
1314
1288
|
declare const AgentActionSchema: z$1.ZodObject<{
|
|
@@ -1383,22 +1357,6 @@ declare const AgentExecuteRequestSchema: z$1.ZodObject<{
|
|
|
1383
1357
|
}, z$1.core.$strip>, z$1.ZodString]>>;
|
|
1384
1358
|
systemPrompt: z$1.ZodOptional<z$1.ZodString>;
|
|
1385
1359
|
cua: z$1.ZodOptional<z$1.ZodBoolean>;
|
|
1386
|
-
mode: z$1.ZodOptional<z$1.ZodEnum<{
|
|
1387
|
-
cua: "cua";
|
|
1388
|
-
dom: "dom";
|
|
1389
|
-
hybrid: "hybrid";
|
|
1390
|
-
}>>;
|
|
1391
|
-
executionModel: z$1.ZodOptional<z$1.ZodUnion<readonly [z$1.ZodObject<{
|
|
1392
|
-
provider: z$1.ZodOptional<z$1.ZodEnum<{
|
|
1393
|
-
openai: "openai";
|
|
1394
|
-
anthropic: "anthropic";
|
|
1395
|
-
google: "google";
|
|
1396
|
-
microsoft: "microsoft";
|
|
1397
|
-
}>>;
|
|
1398
|
-
modelName: z$1.ZodString;
|
|
1399
|
-
apiKey: z$1.ZodOptional<z$1.ZodString>;
|
|
1400
|
-
baseURL: z$1.ZodOptional<z$1.ZodString>;
|
|
1401
|
-
}, z$1.core.$strip>, z$1.ZodString]>>;
|
|
1402
1360
|
}, z$1.core.$strip>;
|
|
1403
1361
|
executeOptions: z$1.ZodObject<{
|
|
1404
1362
|
instruction: z$1.ZodString;
|
|
@@ -2919,7 +2877,6 @@ declare class Page {
|
|
|
2919
2877
|
* Supports iframe hop notation with '>>' (e.g., 'iframe#checkout >> .submit-btn').
|
|
2920
2878
|
*
|
|
2921
2879
|
* @param selector CSS selector to wait for (supports '>>' for iframe hops)
|
|
2922
|
-
* @param options
|
|
2923
2880
|
* @param options.state Element state to wait for: 'attached' | 'detached' | 'visible' | 'hidden' (default: 'visible')
|
|
2924
2881
|
* @param options.timeout Maximum time to wait in milliseconds (default: 30000)
|
|
2925
2882
|
* @param options.pierceShadow Whether to search inside shadow DOM (default: true)
|