Repository navigation
rm initialization result from v3 docs - #1299
Conversation
|
Greptile OverviewGreptile SummaryUpdated v3 documentation to reflect that Changes:
Confidence Score: 4/5
Important Files ChangedFile Analysis
Sequence DiagramsequenceDiagram
participant Dev as Developer
participant SH as Stagehand v3
participant BB as Browserbase
Note over Dev,BB: Stagehand v2 (Old Behavior)
Dev->>SH: await stagehand.init()
SH->>BB: Create session
BB-->>SH: Session created
SH-->>Dev: {debugUrl, sessionUrl, sessionId}
Dev->>Dev: Access via result object
Note over Dev,BB: Stagehand v3 (New Behavior)
Dev->>SH: await stagehand.init()
SH->>BB: Create session
BB-->>SH: Session created
SH-->>Dev: Promise<void>
Dev->>SH: stagehand.browserbaseDebugURL
SH-->>Dev: debugUrl
Dev->>SH: stagehand.browserbaseSessionURL
SH-->>Dev: sessionUrl
Dev->>SH: stagehand.browserbaseSessionID
SH-->>Dev: sessionId
|
# why
- `stagehand.init()` used to return the following in stagehand v2:
```
{
debugUrl: '',
sessionUrl: '',
sessionId: ''
}
```
- in v3, the debugUrl, sessionUrl, and sessionId are all accessible via
the stagehand object
# what changed
- updated stagehand v3 docs to reflect the changes
# test plan
why
stagehand.init()used to return the following in stagehand v2:what changed
test plan