@browserbasehq/convex-stagehand 0.0.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.
- package/LICENSE +21 -0
- package/README.md +477 -0
- package/dist/client/index.d.ts +258 -0
- package/dist/client/index.d.ts.map +1 -0
- package/dist/client/index.js +216 -0
- package/dist/client/index.js.map +1 -0
- package/dist/component/_generated/api.d.ts +36 -0
- package/dist/component/_generated/api.d.ts.map +1 -0
- package/dist/component/_generated/api.js +31 -0
- package/dist/component/_generated/api.js.map +1 -0
- package/dist/component/_generated/component.d.ts +24 -0
- package/dist/component/_generated/component.d.ts.map +1 -0
- package/dist/component/_generated/component.js +11 -0
- package/dist/component/_generated/component.js.map +1 -0
- package/dist/component/_generated/dataModel.d.ts +15 -0
- package/dist/component/_generated/dataModel.d.ts.map +1 -0
- package/dist/component/_generated/dataModel.js +11 -0
- package/dist/component/_generated/dataModel.js.map +1 -0
- package/dist/component/_generated/server.d.ts +121 -0
- package/dist/component/_generated/server.d.ts.map +1 -0
- package/dist/component/_generated/server.js +78 -0
- package/dist/component/_generated/server.js.map +1 -0
- package/dist/component/api.d.ts +90 -0
- package/dist/component/api.d.ts.map +1 -0
- package/dist/component/api.js +112 -0
- package/dist/component/api.js.map +1 -0
- package/dist/component/convex.config.d.ts +3 -0
- package/dist/component/convex.config.d.ts.map +1 -0
- package/dist/component/convex.config.js +3 -0
- package/dist/component/convex.config.js.map +1 -0
- package/dist/component/lib.d.ts +62 -0
- package/dist/component/lib.d.ts.map +1 -0
- package/dist/component/lib.js +356 -0
- package/dist/component/lib.js.map +1 -0
- package/dist/component/schema.d.ts +23 -0
- package/dist/component/schema.d.ts.map +1 -0
- package/dist/component/schema.js +14 -0
- package/dist/component/schema.js.map +1 -0
- package/dist/test.d.ts +48 -0
- package/dist/test.d.ts.map +1 -0
- package/dist/test.js +25 -0
- package/dist/test.js.map +1 -0
- package/package.json +87 -0
- package/src/client/index.ts +348 -0
- package/src/component/README.md +90 -0
- package/src/component/_generated/api.ts +52 -0
- package/src/component/_generated/component.ts +26 -0
- package/src/component/_generated/dataModel.ts +17 -0
- package/src/component/_generated/server.ts +156 -0
- package/src/component/api.ts +243 -0
- package/src/component/convex.config.ts +3 -0
- package/src/component/lib.ts +416 -0
- package/src/component/schema.ts +23 -0
- package/src/component/tsconfig.json +25 -0
- package/src/test.ts +33 -0
|
@@ -0,0 +1,121 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Generated utilities for implementing server-side Convex query and mutation functions.
|
|
3
|
+
*
|
|
4
|
+
* THIS CODE IS AUTOMATICALLY GENERATED.
|
|
5
|
+
*
|
|
6
|
+
* To regenerate, run `npx convex dev`.
|
|
7
|
+
* @module
|
|
8
|
+
*/
|
|
9
|
+
import type { ActionBuilder, HttpActionBuilder, MutationBuilder, QueryBuilder, GenericActionCtx, GenericMutationCtx, GenericQueryCtx, GenericDatabaseReader, GenericDatabaseWriter } from "convex/server";
|
|
10
|
+
import type { DataModel } from "./dataModel.js";
|
|
11
|
+
/**
|
|
12
|
+
* Define a query in this Convex app's public API.
|
|
13
|
+
*
|
|
14
|
+
* This function will be allowed to read your Convex database and will be accessible from the client.
|
|
15
|
+
*
|
|
16
|
+
* @param func - The query function. It receives a {@link QueryCtx} as its first argument.
|
|
17
|
+
* @returns The wrapped query. Include this as an `export` to name it and make it accessible.
|
|
18
|
+
*/
|
|
19
|
+
export declare const query: QueryBuilder<DataModel, "public">;
|
|
20
|
+
/**
|
|
21
|
+
* Define a query that is only accessible from other Convex functions (but not from the client).
|
|
22
|
+
*
|
|
23
|
+
* This function will be allowed to read from your Convex database. It will not be accessible from the client.
|
|
24
|
+
*
|
|
25
|
+
* @param func - The query function. It receives a {@link QueryCtx} as its first argument.
|
|
26
|
+
* @returns The wrapped query. Include this as an `export` to name it and make it accessible.
|
|
27
|
+
*/
|
|
28
|
+
export declare const internalQuery: QueryBuilder<DataModel, "internal">;
|
|
29
|
+
/**
|
|
30
|
+
* Define a mutation in this Convex app's public API.
|
|
31
|
+
*
|
|
32
|
+
* This function will be allowed to modify your Convex database and will be accessible from the client.
|
|
33
|
+
*
|
|
34
|
+
* @param func - The mutation function. It receives a {@link MutationCtx} as its first argument.
|
|
35
|
+
* @returns The wrapped mutation. Include this as an `export` to name it and make it accessible.
|
|
36
|
+
*/
|
|
37
|
+
export declare const mutation: MutationBuilder<DataModel, "public">;
|
|
38
|
+
/**
|
|
39
|
+
* Define a mutation that is only accessible from other Convex functions (but not from the client).
|
|
40
|
+
*
|
|
41
|
+
* This function will be allowed to modify your Convex database. It will not be accessible from the client.
|
|
42
|
+
*
|
|
43
|
+
* @param func - The mutation function. It receives a {@link MutationCtx} as its first argument.
|
|
44
|
+
* @returns The wrapped mutation. Include this as an `export` to name it and make it accessible.
|
|
45
|
+
*/
|
|
46
|
+
export declare const internalMutation: MutationBuilder<DataModel, "internal">;
|
|
47
|
+
/**
|
|
48
|
+
* Define an action in this Convex app's public API.
|
|
49
|
+
*
|
|
50
|
+
* An action is a function which can execute any JavaScript code, including non-deterministic
|
|
51
|
+
* code and code with side-effects, like calling third-party services.
|
|
52
|
+
* They can be run in Convex's JavaScript environment or in Node.js using the "use node" directive.
|
|
53
|
+
* They can interact with the database indirectly by calling queries and mutations using the {@link ActionCtx}.
|
|
54
|
+
*
|
|
55
|
+
* @param func - The action. It receives an {@link ActionCtx} as its first argument.
|
|
56
|
+
* @returns The wrapped action. Include this as an `export` to name it and make it accessible.
|
|
57
|
+
*/
|
|
58
|
+
export declare const action: ActionBuilder<DataModel, "public">;
|
|
59
|
+
/**
|
|
60
|
+
* Define an action that is only accessible from other Convex functions (but not from the client).
|
|
61
|
+
*
|
|
62
|
+
* @param func - The function. It receives an {@link ActionCtx} as its first argument.
|
|
63
|
+
* @returns The wrapped function. Include this as an `export` to name it and make it accessible.
|
|
64
|
+
*/
|
|
65
|
+
export declare const internalAction: ActionBuilder<DataModel, "internal">;
|
|
66
|
+
/**
|
|
67
|
+
* Define an HTTP action.
|
|
68
|
+
*
|
|
69
|
+
* The wrapped function will be used to respond to HTTP requests received
|
|
70
|
+
* by a Convex deployment if the requests matches the path and method where
|
|
71
|
+
* this action is routed. Be sure to route your httpAction in `convex/http.js`.
|
|
72
|
+
*
|
|
73
|
+
* @param func - The function. It receives an {@link ActionCtx} as its first argument
|
|
74
|
+
* and a Fetch API `Request` object as its second.
|
|
75
|
+
* @returns The wrapped function. Import this function from `convex/http.js` and route it to hook it up.
|
|
76
|
+
*/
|
|
77
|
+
export declare const httpAction: HttpActionBuilder;
|
|
78
|
+
/**
|
|
79
|
+
* A set of services for use within Convex query functions.
|
|
80
|
+
*
|
|
81
|
+
* The query context is passed as the first argument to any Convex query
|
|
82
|
+
* function run on the server.
|
|
83
|
+
*
|
|
84
|
+
* If you're using code generation, use the `QueryCtx` type in `convex/_generated/server.d.ts` instead.
|
|
85
|
+
*/
|
|
86
|
+
export type QueryCtx = GenericQueryCtx<DataModel>;
|
|
87
|
+
/**
|
|
88
|
+
* A set of services for use within Convex mutation functions.
|
|
89
|
+
*
|
|
90
|
+
* The mutation context is passed as the first argument to any Convex mutation
|
|
91
|
+
* function run on the server.
|
|
92
|
+
*
|
|
93
|
+
* If you're using code generation, use the `MutationCtx` type in `convex/_generated/server.d.ts` instead.
|
|
94
|
+
*/
|
|
95
|
+
export type MutationCtx = GenericMutationCtx<DataModel>;
|
|
96
|
+
/**
|
|
97
|
+
* A set of services for use within Convex action functions.
|
|
98
|
+
*
|
|
99
|
+
* The action context is passed as the first argument to any Convex action
|
|
100
|
+
* function run on the server.
|
|
101
|
+
*/
|
|
102
|
+
export type ActionCtx = GenericActionCtx<DataModel>;
|
|
103
|
+
/**
|
|
104
|
+
* An interface to read from the database within Convex query functions.
|
|
105
|
+
*
|
|
106
|
+
* The two entry points are {@link DatabaseReader.get}, which fetches a single
|
|
107
|
+
* document by its {@link Id}, or {@link DatabaseReader.query}, which starts
|
|
108
|
+
* building a query.
|
|
109
|
+
*/
|
|
110
|
+
export type DatabaseReader = GenericDatabaseReader<DataModel>;
|
|
111
|
+
/**
|
|
112
|
+
* An interface to read from and write to the database within Convex mutation
|
|
113
|
+
* functions.
|
|
114
|
+
*
|
|
115
|
+
* Convex guarantees that all writes within a single mutation are
|
|
116
|
+
* executed atomically, so you never have to worry about partial writes leaving
|
|
117
|
+
* your data in an inconsistent state. See [the Convex Guide](https://docs.convex.dev/understanding/convex-fundamentals/functions#atomicity-and-optimistic-concurrency-control)
|
|
118
|
+
* for the guarantees Convex provides your functions.
|
|
119
|
+
*/
|
|
120
|
+
export type DatabaseWriter = GenericDatabaseWriter<DataModel>;
|
|
121
|
+
//# sourceMappingURL=server.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"server.d.ts","sourceRoot":"","sources":["../../../src/component/_generated/server.ts"],"names":[],"mappings":"AACA;;;;;;;GAOG;AAEH,OAAO,KAAK,EACV,aAAa,EACb,iBAAiB,EACjB,eAAe,EACf,YAAY,EACZ,gBAAgB,EAChB,kBAAkB,EAClB,eAAe,EACf,qBAAqB,EACrB,qBAAqB,EACtB,MAAM,eAAe,CAAC;AAUvB,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAC;AAEhD;;;;;;;GAOG;AACH,eAAO,MAAM,KAAK,EAAE,YAAY,CAAC,SAAS,EAAE,QAAQ,CAAgB,CAAC;AAErE;;;;;;;GAOG;AACH,eAAO,MAAM,aAAa,EAAE,YAAY,CAAC,SAAS,EAAE,UAAU,CACxC,CAAC;AAEvB;;;;;;;GAOG;AACH,eAAO,MAAM,QAAQ,EAAE,eAAe,CAAC,SAAS,EAAE,QAAQ,CAAmB,CAAC;AAE9E;;;;;;;GAOG;AACH,eAAO,MAAM,gBAAgB,EAAE,eAAe,CAAC,SAAS,EAAE,UAAU,CAC3C,CAAC;AAE1B;;;;;;;;;;GAUG;AACH,eAAO,MAAM,MAAM,EAAE,aAAa,CAAC,SAAS,EAAE,QAAQ,CAAiB,CAAC;AAExE;;;;;GAKG;AACH,eAAO,MAAM,cAAc,EAAE,aAAa,CAAC,SAAS,EAAE,UAAU,CACzC,CAAC;AAExB;;;;;;;;;;GAUG;AACH,eAAO,MAAM,UAAU,EAAE,iBAAqC,CAAC;AAE/D;;;;;;;GAOG;AACH,MAAM,MAAM,QAAQ,GAAG,eAAe,CAAC,SAAS,CAAC,CAAC;AAElD;;;;;;;GAOG;AACH,MAAM,MAAM,WAAW,GAAG,kBAAkB,CAAC,SAAS,CAAC,CAAC;AAExD;;;;;GAKG;AACH,MAAM,MAAM,SAAS,GAAG,gBAAgB,CAAC,SAAS,CAAC,CAAC;AAEpD;;;;;;GAMG;AACH,MAAM,MAAM,cAAc,GAAG,qBAAqB,CAAC,SAAS,CAAC,CAAC;AAE9D;;;;;;;;GAQG;AACH,MAAM,MAAM,cAAc,GAAG,qBAAqB,CAAC,SAAS,CAAC,CAAC"}
|
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
/* eslint-disable */
|
|
2
|
+
/**
|
|
3
|
+
* Generated utilities for implementing server-side Convex query and mutation functions.
|
|
4
|
+
*
|
|
5
|
+
* THIS CODE IS AUTOMATICALLY GENERATED.
|
|
6
|
+
*
|
|
7
|
+
* To regenerate, run `npx convex dev`.
|
|
8
|
+
* @module
|
|
9
|
+
*/
|
|
10
|
+
import { actionGeneric, httpActionGeneric, queryGeneric, mutationGeneric, internalActionGeneric, internalMutationGeneric, internalQueryGeneric, } from "convex/server";
|
|
11
|
+
/**
|
|
12
|
+
* Define a query in this Convex app's public API.
|
|
13
|
+
*
|
|
14
|
+
* This function will be allowed to read your Convex database and will be accessible from the client.
|
|
15
|
+
*
|
|
16
|
+
* @param func - The query function. It receives a {@link QueryCtx} as its first argument.
|
|
17
|
+
* @returns The wrapped query. Include this as an `export` to name it and make it accessible.
|
|
18
|
+
*/
|
|
19
|
+
export const query = queryGeneric;
|
|
20
|
+
/**
|
|
21
|
+
* Define a query that is only accessible from other Convex functions (but not from the client).
|
|
22
|
+
*
|
|
23
|
+
* This function will be allowed to read from your Convex database. It will not be accessible from the client.
|
|
24
|
+
*
|
|
25
|
+
* @param func - The query function. It receives a {@link QueryCtx} as its first argument.
|
|
26
|
+
* @returns The wrapped query. Include this as an `export` to name it and make it accessible.
|
|
27
|
+
*/
|
|
28
|
+
export const internalQuery = internalQueryGeneric;
|
|
29
|
+
/**
|
|
30
|
+
* Define a mutation in this Convex app's public API.
|
|
31
|
+
*
|
|
32
|
+
* This function will be allowed to modify your Convex database and will be accessible from the client.
|
|
33
|
+
*
|
|
34
|
+
* @param func - The mutation function. It receives a {@link MutationCtx} as its first argument.
|
|
35
|
+
* @returns The wrapped mutation. Include this as an `export` to name it and make it accessible.
|
|
36
|
+
*/
|
|
37
|
+
export const mutation = mutationGeneric;
|
|
38
|
+
/**
|
|
39
|
+
* Define a mutation that is only accessible from other Convex functions (but not from the client).
|
|
40
|
+
*
|
|
41
|
+
* This function will be allowed to modify your Convex database. It will not be accessible from the client.
|
|
42
|
+
*
|
|
43
|
+
* @param func - The mutation function. It receives a {@link MutationCtx} as its first argument.
|
|
44
|
+
* @returns The wrapped mutation. Include this as an `export` to name it and make it accessible.
|
|
45
|
+
*/
|
|
46
|
+
export const internalMutation = internalMutationGeneric;
|
|
47
|
+
/**
|
|
48
|
+
* Define an action in this Convex app's public API.
|
|
49
|
+
*
|
|
50
|
+
* An action is a function which can execute any JavaScript code, including non-deterministic
|
|
51
|
+
* code and code with side-effects, like calling third-party services.
|
|
52
|
+
* They can be run in Convex's JavaScript environment or in Node.js using the "use node" directive.
|
|
53
|
+
* They can interact with the database indirectly by calling queries and mutations using the {@link ActionCtx}.
|
|
54
|
+
*
|
|
55
|
+
* @param func - The action. It receives an {@link ActionCtx} as its first argument.
|
|
56
|
+
* @returns The wrapped action. Include this as an `export` to name it and make it accessible.
|
|
57
|
+
*/
|
|
58
|
+
export const action = actionGeneric;
|
|
59
|
+
/**
|
|
60
|
+
* Define an action that is only accessible from other Convex functions (but not from the client).
|
|
61
|
+
*
|
|
62
|
+
* @param func - The function. It receives an {@link ActionCtx} as its first argument.
|
|
63
|
+
* @returns The wrapped function. Include this as an `export` to name it and make it accessible.
|
|
64
|
+
*/
|
|
65
|
+
export const internalAction = internalActionGeneric;
|
|
66
|
+
/**
|
|
67
|
+
* Define an HTTP action.
|
|
68
|
+
*
|
|
69
|
+
* The wrapped function will be used to respond to HTTP requests received
|
|
70
|
+
* by a Convex deployment if the requests matches the path and method where
|
|
71
|
+
* this action is routed. Be sure to route your httpAction in `convex/http.js`.
|
|
72
|
+
*
|
|
73
|
+
* @param func - The function. It receives an {@link ActionCtx} as its first argument
|
|
74
|
+
* and a Fetch API `Request` object as its second.
|
|
75
|
+
* @returns The wrapped function. Import this function from `convex/http.js` and route it to hook it up.
|
|
76
|
+
*/
|
|
77
|
+
export const httpAction = httpActionGeneric;
|
|
78
|
+
//# sourceMappingURL=server.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"server.js","sourceRoot":"","sources":["../../../src/component/_generated/server.ts"],"names":[],"mappings":"AAAA,oBAAoB;AACpB;;;;;;;GAOG;AAaH,OAAO,EACL,aAAa,EACb,iBAAiB,EACjB,YAAY,EACZ,eAAe,EACf,qBAAqB,EACrB,uBAAuB,EACvB,oBAAoB,GACrB,MAAM,eAAe,CAAC;AAGvB;;;;;;;GAOG;AACH,MAAM,CAAC,MAAM,KAAK,GAAsC,YAAY,CAAC;AAErE;;;;;;;GAOG;AACH,MAAM,CAAC,MAAM,aAAa,GACxB,oBAAoB,CAAC;AAEvB;;;;;;;GAOG;AACH,MAAM,CAAC,MAAM,QAAQ,GAAyC,eAAe,CAAC;AAE9E;;;;;;;GAOG;AACH,MAAM,CAAC,MAAM,gBAAgB,GAC3B,uBAAuB,CAAC;AAE1B;;;;;;;;;;GAUG;AACH,MAAM,CAAC,MAAM,MAAM,GAAuC,aAAa,CAAC;AAExE;;;;;GAKG;AACH,MAAM,CAAC,MAAM,cAAc,GACzB,qBAAqB,CAAC;AAExB;;;;;;;;;;GAUG;AACH,MAAM,CAAC,MAAM,UAAU,GAAsB,iBAAiB,CAAC"}
|
|
@@ -0,0 +1,90 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Stagehand REST API Client
|
|
3
|
+
*
|
|
4
|
+
* Wraps the Stagehand API at https://api.stagehand.browserbase.com
|
|
5
|
+
*/
|
|
6
|
+
export interface ApiConfig {
|
|
7
|
+
browserbaseApiKey: string;
|
|
8
|
+
browserbaseProjectId: string;
|
|
9
|
+
modelApiKey: string;
|
|
10
|
+
modelName?: string;
|
|
11
|
+
}
|
|
12
|
+
export interface SessionData {
|
|
13
|
+
sessionId: string;
|
|
14
|
+
browserbaseSessionId?: string;
|
|
15
|
+
cdpUrl?: string;
|
|
16
|
+
available: boolean;
|
|
17
|
+
}
|
|
18
|
+
export interface StartSessionOptions {
|
|
19
|
+
browserbaseSessionId?: string;
|
|
20
|
+
domSettleTimeoutMs?: number;
|
|
21
|
+
selfHeal?: boolean;
|
|
22
|
+
systemPrompt?: string;
|
|
23
|
+
}
|
|
24
|
+
export interface ApiResponse<T> {
|
|
25
|
+
data: T;
|
|
26
|
+
success: boolean;
|
|
27
|
+
}
|
|
28
|
+
export declare function startSession(config: ApiConfig, options?: StartSessionOptions): Promise<SessionData>;
|
|
29
|
+
export declare function endSession(sessionId: string, config: ApiConfig): Promise<void>;
|
|
30
|
+
export interface NavigateOptions {
|
|
31
|
+
waitUntil?: "load" | "domcontentloaded" | "networkidle";
|
|
32
|
+
timeout?: number;
|
|
33
|
+
}
|
|
34
|
+
export declare function navigate(sessionId: string, url: string, config: ApiConfig, options?: NavigateOptions): Promise<void>;
|
|
35
|
+
export interface ExtractResult<T = any> {
|
|
36
|
+
result: T;
|
|
37
|
+
actionId: string;
|
|
38
|
+
}
|
|
39
|
+
export declare function extract(sessionId: string, instruction: string, schema: any, config: ApiConfig): Promise<ExtractResult>;
|
|
40
|
+
export interface ActResult {
|
|
41
|
+
result: {
|
|
42
|
+
actionDescription: string;
|
|
43
|
+
actions: Array<{
|
|
44
|
+
description: string;
|
|
45
|
+
selector: string;
|
|
46
|
+
arguments?: string[];
|
|
47
|
+
method: string;
|
|
48
|
+
}>;
|
|
49
|
+
message: string;
|
|
50
|
+
success: boolean;
|
|
51
|
+
};
|
|
52
|
+
actionId: string;
|
|
53
|
+
}
|
|
54
|
+
export declare function act(sessionId: string, action: string, config: ApiConfig): Promise<ActResult>;
|
|
55
|
+
export interface ObserveResult {
|
|
56
|
+
result: Array<{
|
|
57
|
+
description: string;
|
|
58
|
+
selector: string;
|
|
59
|
+
arguments?: string[];
|
|
60
|
+
backendNodeId?: number;
|
|
61
|
+
method: string;
|
|
62
|
+
}>;
|
|
63
|
+
actionId: string;
|
|
64
|
+
}
|
|
65
|
+
export declare function observe(sessionId: string, instruction: string, config: ApiConfig): Promise<ObserveResult>;
|
|
66
|
+
export interface AgentConfig {
|
|
67
|
+
cua?: boolean;
|
|
68
|
+
model?: string;
|
|
69
|
+
systemPrompt?: string;
|
|
70
|
+
}
|
|
71
|
+
export interface AgentExecuteOptions {
|
|
72
|
+
instruction: string;
|
|
73
|
+
maxSteps?: number;
|
|
74
|
+
}
|
|
75
|
+
export interface AgentAction {
|
|
76
|
+
type: string;
|
|
77
|
+
action?: string;
|
|
78
|
+
reasoning?: string;
|
|
79
|
+
timeMs?: number;
|
|
80
|
+
}
|
|
81
|
+
export interface AgentExecuteResult {
|
|
82
|
+
result: {
|
|
83
|
+
actions: AgentAction[];
|
|
84
|
+
completed: boolean;
|
|
85
|
+
message: string;
|
|
86
|
+
success: boolean;
|
|
87
|
+
};
|
|
88
|
+
}
|
|
89
|
+
export declare function agentExecute(sessionId: string, agentConfig: AgentConfig, executeOptions: AgentExecuteOptions, config: ApiConfig): Promise<AgentExecuteResult>;
|
|
90
|
+
//# sourceMappingURL=api.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"api.d.ts","sourceRoot":"","sources":["../../src/component/api.ts"],"names":[],"mappings":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,WAAW,EAAE,MAAM,CAAC;IACpB,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB;AAED,MAAM,WAAW,WAAW;IAC1B,IAAI,EAAE,MAAM,CAAC;IACb,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AAED,MAAM,WAAW,kBAAkB;IACjC,MAAM,EAAE;QACN,OAAO,EAAE,WAAW,EAAE,CAAC;QACvB,SAAS,EAAE,OAAO,CAAC;QACnB,OAAO,EAAE,MAAM,CAAC;QAChB,OAAO,EAAE,OAAO,CAAC;KAClB,CAAC;CACH;AAED,wBAAsB,YAAY,CAChC,SAAS,EAAE,MAAM,EACjB,WAAW,EAAE,WAAW,EACxB,cAAc,EAAE,mBAAmB,EACnC,MAAM,EAAE,SAAS,GAChB,OAAO,CAAC,kBAAkB,CAAC,CAkB7B"}
|
|
@@ -0,0 +1,112 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Stagehand REST API Client
|
|
3
|
+
*
|
|
4
|
+
* Wraps the Stagehand API at https://api.stagehand.browserbase.com
|
|
5
|
+
*/
|
|
6
|
+
const API_BASE = "https://api.stagehand.browserbase.com/v1";
|
|
7
|
+
function getHeaders(config) {
|
|
8
|
+
return {
|
|
9
|
+
"Content-Type": "application/json",
|
|
10
|
+
"x-bb-api-key": config.browserbaseApiKey,
|
|
11
|
+
"x-bb-project-id": config.browserbaseProjectId,
|
|
12
|
+
"x-model-api-key": config.modelApiKey,
|
|
13
|
+
};
|
|
14
|
+
}
|
|
15
|
+
async function handleResponse(response) {
|
|
16
|
+
if (!response.ok) {
|
|
17
|
+
const errorText = await response.text();
|
|
18
|
+
throw new Error(`Stagehand API error (${response.status}): ${errorText}`);
|
|
19
|
+
}
|
|
20
|
+
const json = (await response.json());
|
|
21
|
+
if (!json.success) {
|
|
22
|
+
throw new Error(`Stagehand API returned success: false`);
|
|
23
|
+
}
|
|
24
|
+
return json.data;
|
|
25
|
+
}
|
|
26
|
+
export async function startSession(config, options) {
|
|
27
|
+
const response = await fetch(`${API_BASE}/sessions/start`, {
|
|
28
|
+
method: "POST",
|
|
29
|
+
headers: getHeaders(config),
|
|
30
|
+
body: JSON.stringify({
|
|
31
|
+
modelName: config.modelName || "openai/gpt-4o",
|
|
32
|
+
browserbaseSessionId: options?.browserbaseSessionId,
|
|
33
|
+
domSettleTimeoutMs: options?.domSettleTimeoutMs,
|
|
34
|
+
selfHeal: options?.selfHeal,
|
|
35
|
+
systemPrompt: options?.systemPrompt,
|
|
36
|
+
}),
|
|
37
|
+
});
|
|
38
|
+
return handleResponse(response);
|
|
39
|
+
}
|
|
40
|
+
export async function endSession(sessionId, config) {
|
|
41
|
+
try {
|
|
42
|
+
await fetch(`${API_BASE}/sessions/${sessionId}/end`, {
|
|
43
|
+
method: "POST",
|
|
44
|
+
headers: getHeaders(config),
|
|
45
|
+
});
|
|
46
|
+
}
|
|
47
|
+
catch {
|
|
48
|
+
// Ignore errors when ending session - best effort cleanup
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
export async function navigate(sessionId, url, config, options) {
|
|
52
|
+
const response = await fetch(`${API_BASE}/sessions/${sessionId}/navigate`, {
|
|
53
|
+
method: "POST",
|
|
54
|
+
headers: getHeaders(config),
|
|
55
|
+
body: JSON.stringify({
|
|
56
|
+
url,
|
|
57
|
+
options: {
|
|
58
|
+
waitUntil: options?.waitUntil || "networkidle",
|
|
59
|
+
timeout: options?.timeout,
|
|
60
|
+
},
|
|
61
|
+
}),
|
|
62
|
+
});
|
|
63
|
+
await handleResponse(response);
|
|
64
|
+
}
|
|
65
|
+
export async function extract(sessionId, instruction, schema, config) {
|
|
66
|
+
const response = await fetch(`${API_BASE}/sessions/${sessionId}/extract`, {
|
|
67
|
+
method: "POST",
|
|
68
|
+
headers: getHeaders(config),
|
|
69
|
+
body: JSON.stringify({
|
|
70
|
+
instruction,
|
|
71
|
+
schema,
|
|
72
|
+
}),
|
|
73
|
+
});
|
|
74
|
+
return handleResponse(response);
|
|
75
|
+
}
|
|
76
|
+
export async function act(sessionId, action, config) {
|
|
77
|
+
const response = await fetch(`${API_BASE}/sessions/${sessionId}/act`, {
|
|
78
|
+
method: "POST",
|
|
79
|
+
headers: getHeaders(config),
|
|
80
|
+
body: JSON.stringify({
|
|
81
|
+
input: action,
|
|
82
|
+
}),
|
|
83
|
+
});
|
|
84
|
+
return handleResponse(response);
|
|
85
|
+
}
|
|
86
|
+
export async function observe(sessionId, instruction, config) {
|
|
87
|
+
const response = await fetch(`${API_BASE}/sessions/${sessionId}/observe`, {
|
|
88
|
+
method: "POST",
|
|
89
|
+
headers: getHeaders(config),
|
|
90
|
+
body: JSON.stringify({
|
|
91
|
+
instruction,
|
|
92
|
+
}),
|
|
93
|
+
});
|
|
94
|
+
return handleResponse(response);
|
|
95
|
+
}
|
|
96
|
+
export async function agentExecute(sessionId, agentConfig, executeOptions, config) {
|
|
97
|
+
const response = await fetch(`${API_BASE}/sessions/${sessionId}/agent/execute`, {
|
|
98
|
+
method: "POST",
|
|
99
|
+
headers: getHeaders(config),
|
|
100
|
+
body: JSON.stringify({
|
|
101
|
+
agentConfig: {
|
|
102
|
+
cua: agentConfig.cua,
|
|
103
|
+
model: agentConfig.model,
|
|
104
|
+
systemPrompt: agentConfig.systemPrompt,
|
|
105
|
+
},
|
|
106
|
+
instruction: executeOptions.instruction,
|
|
107
|
+
maxSteps: executeOptions.maxSteps,
|
|
108
|
+
}),
|
|
109
|
+
});
|
|
110
|
+
return handleResponse(response);
|
|
111
|
+
}
|
|
112
|
+
//# sourceMappingURL=api.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"api.js","sourceRoot":"","sources":["../../src/component/api.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,MAAM,QAAQ,GAAG,0CAA0C,CAAC;AA4B5D,SAAS,UAAU,CAAC,MAAiB;IACnC,OAAO;QACL,cAAc,EAAE,kBA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oot":"","sources":["../../src/component/convex.config.ts"],"names":[],"mappings":";AAEA,wBAA4C"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"convex.config.js","sourceRoot":"","sources":["../../src/component/convex.config.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,eAAe,CAAC;AAEhD,eAAe,eAAe,CAAC,WAAW,CAAC,CAAC"}
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Stagehand Component Library
|
|
3
|
+
*
|
|
4
|
+
* AI-powered browser automation actions using the Stagehand REST API.
|
|
5
|
+
* Supports both automatic session management and manual session control.
|
|
6
|
+
*/
|
|
7
|
+
import * as api from "./api.js";
|
|
8
|
+
/**
|
|
9
|
+
* Start a new browser session.
|
|
10
|
+
* Returns session info including cdpUrl for direct Playwright/Puppeteer connection.
|
|
11
|
+
*/
|
|
12
|
+
export declare const startSession: import("convex/server").RegisteredAction<"public", any, Promise<{
|
|
13
|
+
sessionId: string;
|
|
14
|
+
browserbaseSessionId: string | undefined;
|
|
15
|
+
cdpUrl: string | undefined;
|
|
16
|
+
}>>;
|
|
17
|
+
/**
|
|
18
|
+
* End a browser session.
|
|
19
|
+
*/
|
|
20
|
+
export declare const endSession: import("convex/server").RegisteredAction<"public", any, Promise<{
|
|
21
|
+
success: boolean;
|
|
22
|
+
}>>;
|
|
23
|
+
/**
|
|
24
|
+
* Extract structured data from a web page using AI.
|
|
25
|
+
* If sessionId is provided, uses existing session (doesn't end it).
|
|
26
|
+
* Otherwise, handles full session lifecycle: start -> navigate -> extract -> end
|
|
27
|
+
*/
|
|
28
|
+
export declare const extract: import("convex/server").RegisteredAction<"public", any, Promise<any>>;
|
|
29
|
+
/**
|
|
30
|
+
* Execute browser actions using natural language instructions.
|
|
31
|
+
* If sessionId is provided, uses existing session (doesn't end it).
|
|
32
|
+
* Otherwise, handles full session lifecycle: start -> navigate -> act -> end
|
|
33
|
+
*/
|
|
34
|
+
export declare const act: import("convex/server").RegisteredAction<"public", any, Promise<{
|
|
35
|
+
success: boolean;
|
|
36
|
+
message: string;
|
|
37
|
+
actionDescription: string;
|
|
38
|
+
}>>;
|
|
39
|
+
/**
|
|
40
|
+
* Find available actions on a web page matching an instruction.
|
|
41
|
+
* If sessionId is provided, uses existing session (doesn't end it).
|
|
42
|
+
* Otherwise, handles full session lifecycle: start -> navigate -> observe -> end
|
|
43
|
+
*/
|
|
44
|
+
export declare const observe: import("convex/server").RegisteredAction<"public", any, Promise<{
|
|
45
|
+
description: string;
|
|
46
|
+
selector: string;
|
|
47
|
+
method: string;
|
|
48
|
+
arguments: string[] | undefined;
|
|
49
|
+
}[]>>;
|
|
50
|
+
/**
|
|
51
|
+
* Execute autonomous multi-step browser automation using an AI agent.
|
|
52
|
+
* The agent interprets the instruction and decides what actions to take.
|
|
53
|
+
* If sessionId is provided, uses existing session (doesn't end it).
|
|
54
|
+
* Otherwise, handles full session lifecycle.
|
|
55
|
+
*/
|
|
56
|
+
export declare const agent: import("convex/server").RegisteredAction<"public", any, Promise<{
|
|
57
|
+
actions: api.AgentAction[];
|
|
58
|
+
completed: boolean;
|
|
59
|
+
message: string;
|
|
60
|
+
success: boolean;
|
|
61
|
+
}>>;
|
|
62
|
+
//# sourceMappingURL=lib.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"lib.d.ts","sourceRoot":"","sources":["../../src/component/lib.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAIH,OAAO,KAAK,GAAG,MAAM,UAAU,CAAC;AAsBhC;;;GAGG;AACH,eAAO,MAAM,YAAY;;;;GAsDvB,CAAC;AAEH;;GAEG;AACH,eAAO,MAAM,UAAU;;GAkBrB,CAAC;AAEH;;;;GAIG;AACH,eAAO,MAAM,OAAO,uEAiElB,CAAC;AAEH;;;;GAIG;AACH,eAAO,MAAM,GAAG;;;;GAmEd,CAAC;AAEH;;;;GAIG;AACH,eAAO,MAAM,OAAO;;;;;KAgElB,CAAC;AAEH;;;;;GAKG;AACH,eAAO,MAAM,KAAK;;;;;GA8EhB,CAAC"}
|