refactor(cli): migrate contexts and extensions commands to Browserbase SDK

SH
6h ago
+15-21

Summary

Migrates contexts and extensions commands from raw HTTP calls to the Browserbase SDK client methods.

Changes

  • contexts/delete.ts → client.contexts.delete(id)
  • contexts/update.ts → client.contexts.update(id)
  • extensions/delete.ts → client.extensions.delete(id)
  • api.ts → Add success telemetry to withBrowserbaseApi to preserve requestHadHttpResponse tracking

Stack

  1. #3495 — SDK bump ← base
  2. This PR — Migrate contexts and extensions commands
  3. #3481 — Add search filtering options and migrate search to SDK
Open in Web Open in Cursor 

Summary by cubic

Migrates the CLI's contexts and extensions commands from raw HTTP calls to the Browserbase SDK client methods.

  • contexts delete and contexts update now use client.contexts.delete and client.contexts.update.
  • extensions delete now uses client.extensions.delete.
  • withBrowserbaseApi now sets requestHadHttpResponse: true and httpStatus: 200 on success so telemetry tracking from the old raw HTTP calls is preserved.