Skip to content

Show raw streaming and buffered curl in browser routing example#102

Merged
rgarcia merged 3 commits into
nextfrom
hypeship/clean-browser-routing-example
Apr 27, 2026
Merged

Show raw streaming and buffered curl in browser routing example#102
rgarcia merged 3 commits into
nextfrom
hypeship/clean-browser-routing-example

Conversation

@rgarcia
Copy link
Copy Markdown
Contributor

@rgarcia rgarcia commented Apr 27, 2026

Summary

  • Demonstrate both kernel.browsers.fetch (streaming, returns Response) and kernel.browsers.curl (buffered JSON envelope) in the browser-routing example
  • Add comments noting when to use each
  • Mirrors the equivalent change to the Python SDK

Test plan

  • Verified end-to-end with a real API key: prints "status 200" and the full body

Note

Low Risk
Low risk example-only change; it updates sample usage of kernel.browsers.fetch/curl without affecting SDK behavior or production code paths.

Overview
Updates the examples/browser-routing.ts sample to demonstrate two browser request modes: kernel.browsers.fetch returning a streaming Response (logged via response.text()), and kernel.browsers.curl returning a buffered JSON envelope (logged via buffered.body).

Adds brief guidance comments on when to use each approach and removes the prior status-only logging.

Reviewed by Cursor Bugbot for commit d530ee3. Bugbot is set up for automated code reviews on this repo. Configure here.

rgarcia and others added 2 commits April 27, 2026 23:05
Mirror the Python SDK example by demonstrating both kernel.browsers.fetch
(streaming, returns Response) and kernel.browsers.curl (buffered JSON
envelope), with comments noting when to use each.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
@rgarcia rgarcia marked this pull request as ready for review April 27, 2026 23:12
@firetiger-agent
Copy link
Copy Markdown

Firetiger deploy monitoring skipped

This PR didn't match the auto-monitor filter configured on your GitHub connection:

Any PR that changes the kernel API. Monitor changes to API endpoints (packages/api/cmd/api/) and Temporal workflows (packages/api/lib/temporal) in the kernel repo

Reason: PR modifies browser routing examples and SDK documentation, not kernel API endpoints or Temporal workflows.

To monitor this PR anyway, reply with @firetiger monitor this.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
@rgarcia rgarcia merged commit 7c94980 into next Apr 27, 2026
7 checks passed
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.

1 participant