File tree Expand file tree Collapse file tree 3 files changed +21
-12
lines changed Expand file tree Collapse file tree 3 files changed +21
-12
lines changed Original file line number Diff line number Diff line change 4
4
"commit" : false ,
5
5
"fixed" : [],
6
6
"linked" : [],
7
- "access" : " restricted " ,
7
+ "access" : " public " ,
8
8
"baseBranch" : " main" ,
9
9
"updateInternalDependencies" : " patch" ,
10
10
"ignore" : []
Original file line number Diff line number Diff line change @@ -16,20 +16,23 @@ jobs:
16
16
- name : Checkout
17
17
uses : actions/checkout@v4
18
18
19
+ - name : Setup pnpm
20
+ uses : pnpm/action-setup@v4
21
+ with :
22
+ version : 10.12.4
19
23
- name : Setup Node
20
24
uses : actions/setup-node@v4
21
25
with :
22
26
node-version : 20
23
27
cache : ' pnpm'
24
-
25
- - name : Setup pnpm
26
- uses : pnpm/action-setup@v4
27
- with :
28
- version : 10
28
+ registry-url : ' https://registry.npmjs.org'
29
29
30
30
- name : Install deps
31
31
run : pnpm install --frozen-lockfile
32
32
33
+ - name : Build
34
+ run : pnpm build
35
+
33
36
- name : Create Release PR or Publish
34
37
uses : changesets/action@v1
35
38
with :
38
41
env :
39
42
GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
40
43
NPM_TOKEN : ${{ secrets.NPM_TOKEN }}
41
-
42
-
44
+ NODE_AUTH_TOKEN : ${{ secrets.NPM_TOKEN }}
Original file line number Diff line number Diff line change @@ -83,14 +83,21 @@ async function handleCreateSession(
83
83
const bb = new Browserbase ( {
84
84
apiKey : config . browserbaseApiKey ,
85
85
} ) ;
86
- const debugUrl = ( await bb . sessions . debug ( session . sessionId ) )
86
+
87
+ const browserbaseSessionId = session . stagehand . browserbaseSessionID ;
88
+ if ( ! browserbaseSessionId ) {
89
+ throw new Error (
90
+ "Browserbase session ID not found in Stagehand instance" ,
91
+ ) ;
92
+ }
93
+ const debugUrl = ( await bb . sessions . debug ( browserbaseSessionId ) )
87
94
. debuggerFullscreenUrl ;
88
95
process . stderr . write (
89
- `[tool.connected] Successfully connected to Browserbase session. Internal ID: ${ targetSessionId } , Actual ID: ${ session . sessionId } ` ,
96
+ `[tool.connected] Successfully connected to Browserbase session. Internal ID: ${ targetSessionId } , Actual ID: ${ browserbaseSessionId } ` ,
90
97
) ;
91
98
92
99
process . stderr . write (
93
- `[SessionManager] Browserbase Live Session View URL: https://www.browserbase.com/sessions/${ session . sessionId } ` ,
100
+ `[SessionManager] Browserbase Live Session View URL: https://www.browserbase.com/sessions/${ browserbaseSessionId } ` ,
94
101
) ;
95
102
96
103
process . stderr . write (
@@ -101,7 +108,7 @@ async function handleCreateSession(
101
108
content : [
102
109
{
103
110
type : "text" ,
104
- text : `Browserbase Live Session View URL: https://www.browserbase.com/sessions/${ session . sessionId } ` ,
111
+ text : `Browserbase Live Session View URL: https://www.browserbase.com/sessions/${ browserbaseSessionId } ` ,
105
112
} ,
106
113
{
107
114
type : "text" ,
You can’t perform that action at this time.
0 commit comments