Skip to content

Conversation

@dprevoznik
Copy link
Contributor

@dprevoznik dprevoznik commented Nov 3, 2025

Updated Stagehand example app to v3 Stagehand compatible version of script.

Implementation Checklist

  • Implemented this change in TypeScript
  • Implemented this change in Python

Testing

  • All tests pass locally
  • Linted
  • Added tests for new functionality (if applicable)

Note

Upgrades the Stagehand TypeScript sample to v3 with a new teamsize-task, updates CLI invoke/deploy text, and bumps related dependencies.

  • Templates — TypeScript stagehand
    • Migrate implementation to Stagehand v3 API in templates/typescript/stagehand/index.ts:
      • New teamsize-task that navigates YC Companies, searches by company, and extracts { teamSize } via zod schema.
      • Uses Stagehand v3 options (model, apiKey, domSettleTimeout) and stagehand.context.pages()[0].
      • Adds Kernel browser session handling (live view logging and explicit session deletion).
    • Rewrite README.md to describe the new task, I/O schema, setup, deploy, and invoke commands.
  • CLI
    • Update template description to "Stagehand v3 SDK" and change invoke sample for ts-stagehand to teamsize-task in index.ts.
  • Dependencies
    • Bump @browserbasehq/stagehand to ^3.0.1, @onkernel/sdk to ^0.18.0, and pin zod to 3.25.67 (lockfile updated accordingly).

Written by Cursor Bugbot for commit a8b5265. This will update automatically on new commits. Configure here.

Updated Stagehand example app to v3 Stagehand compatible version of script.
@mesa-dot-dev
Copy link

mesa-dot-dev bot commented Nov 3, 2025

Mesa Description

Updated Stagehand example app to v3 Stagehand compatible version of script.

Implementation Checklist

  • Implemented this change in TypeScript
  • Implemented this change in Python

Testing

  • All tests pass locally
  • Linted
  • Added tests for new functionality (if applicable)

Note

This PR updates the TypeScript Stagehand sample application to be compatible with Stagehand v3, introducing a more practical example task and updating relevant dependencies.

  • Stagehand TS Sample App (templates/typescript/stagehand):
    • Migrated the core logic to the Stagehand v3 API.
    • Replaced the generic stagehand-task with a new headcount-task that demonstrates a real-world browser automation flow: searching for a company on Y Combinator and extracting its team size.
    • Updated the README.md to reflect the new functionality, setup instructions, and invocation examples.
  • CLI (index.ts):
    • Updated the template description in the main CLI to specify "Stagehand v3 SDK" for clarity.
  • Dependencies:
    • Bumped @browserbasehq/stagehand to ^3.0.1 and @onkernel/sdk to ^0.18.0 in package.json to support the v3 API.

Description generated by Mesa. Update settings

cursor[bot]

This comment was marked as resolved.

mesa-dot-dev[bot]

This comment was marked as outdated.

Remove "-v3" from the end of the app name as it's not used.
cursor[bot]

This comment was marked as outdated.

Updated the next steps invocation example for Stagehand so that it's accurate now.
Add more descriptive and accurate input and output schemas and payloads for the stagehand sample app.
Copy link
Contributor

@masnwilliams masnwilliams left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

@dprevoznik dprevoznik merged commit b7ac6de into main Nov 5, 2025
7 checks passed
@dprevoznik dprevoznik deleted the danny/kernel-494-create-kernel-app-update-stagehand-sample-app-to-stagehand branch November 5, 2025 19:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants