File tree Expand file tree Collapse file tree 4 files changed +16
-11
lines changed Expand file tree Collapse file tree 4 files changed +16
-11
lines changed Original file line number Diff line number Diff line change @@ -19,19 +19,24 @@ jobs:
19
19
uses : actions/setup-node@v4
20
20
with :
21
21
node-version : " 22"
22
- cache : " npm"
22
+ cache : " pnpm"
23
+
24
+ - name : Install pnpm
25
+ uses : pnpm/action-setup@v4
26
+ with :
27
+ version : 8
23
28
24
29
- name : Install dependencies
25
- run : npm ci
30
+ run : pnpm install --frozen-lockfile
26
31
27
32
- name : Run linting
28
- run : npm run lint
33
+ run : pnpm lint
29
34
30
35
- name : Check formatting
31
- run : npm run format
36
+ run : pnpm format
32
37
33
38
- name : Build project
34
- run : npm run build
39
+ run : pnpm build
35
40
36
41
- name : Run evaluation tests
37
42
env :
40
45
ANTHROPIC_API_KEY : ${{ secrets.ANTHROPIC_API_KEY }}
41
46
GEMINI_API_KEY : ${{ secrets.GEMINI_API_KEY }}
42
47
run : |
43
- npm run evals
48
+ pnpm evals
Original file line number Diff line number Diff line change 23
23
},
24
24
{
25
25
"user" : " Close the browser" ,
26
- "expectedState" : " session closed"
26
+ "expectedState" : " closed successfully via Stagehand "
27
27
}
28
28
],
29
29
"expectTools" : [
42
42
},
43
43
{
44
44
"user" : " Close the session" ,
45
- "expectedState" : " session closed"
45
+ "expectedState" : " closed successfully via Stagehand "
46
46
}
47
47
],
48
48
"expectTools" : [
Original file line number Diff line number Diff line change @@ -227,7 +227,7 @@ export const closeSessionTool = defineTool({
227
227
content : [
228
228
{
229
229
type : "text" ,
230
- text : `closed session ${ sessionId } ` ,
230
+ text : `Closed session ${ sessionId } ` ,
231
231
} ,
232
232
] ,
233
233
} ) ,
Original file line number Diff line number Diff line change @@ -108,7 +108,7 @@ async function handleCreateSession(
108
108
content : [
109
109
{
110
110
type : "text" ,
111
- text : `Browserbase Live Session View URL: https://www.browserbase.com/sessions/${ session . sessionId } \nBrowserbase Live Debugger URL: ${ debugUrl } \n session created ` ,
111
+ text : `Browserbase Live Session View URL: https://www.browserbase.com/sessions/${ session . sessionId } ` ,
112
112
} ,
113
113
{
114
114
type : "text" ,
@@ -224,7 +224,7 @@ async function handleCloseSession(context: Context): Promise<ToolResult> {
224
224
}
225
225
226
226
if ( stagehandClosedSuccessfully ) {
227
- let successMessage = `Browserbase session (${ previousSessionId || "default" } ) closed successfully via Stagehand. Context reset to default. session closed ` ;
227
+ let successMessage = `Browserbase session (${ previousSessionId || "default" } ) closed successfully via Stagehand. Context reset to default.` ;
228
228
if ( browserbaseSessionId && previousSessionId !== defaultSessionId ) {
229
229
successMessage += ` View replay at https://www.browserbase.com/sessions/${ browserbaseSessionId } ` ;
230
230
}
You can’t perform that action at this time.
0 commit comments