Skip to content

[AP-3232] Add function deletion to SDK and CLI - #44

Draft
sharvaribrowserbase wants to merge 1 commit into
mainfrom
codex/ap-3232-delete-functions
Draft

sharvaribrowserbase wants to merge 1 commit into
mainfrom
codex/ap-3232-delete-functions

Conversation

@sharvaribrowserbase

@sharvaribrowserbase sharvaribrowserbase commented Nov 23, 2026 •

Copy link
Copy Markdown

Summary

  • Add deleteFunction() to the existing @browserbasehq/sdk-functions root SDK export.
  • Add bb delete <function-id> to the bundled CLI.
  • Return { deleted: true | false } so callers can distinguish a deletion from an idempotent no-op.
  • Base the change directly on main; this PR no longer depends on feat: expose reusable Functions core #40.

Testing

  • pnpm lint
  • pnpm test (61/61 passed)
  • pnpm build
  • pnpm test:integration (32/32 passed against the packed tarball)

Manual E2E verification

Ran the built dist/cli.js twice against a local HTTP server using function ID fn/with?reserved#characters.

SERVER_REQUEST {"method":"DELETE","url":"/v1/functions/fn%2Fwith%3Freserved%23characters","apiKey":"bb_manual_e2e"}
✓ Function deleted
SERVER_REQUEST {"method":"DELETE","url":"/v1/functions/fn%2Fwith%3Freserved%23characters","apiKey":"bb_manual_e2e"}
No active function was deleted
E2E_EXIT_CODES first=0 second=0 server=0

This proves the built CLI sends an authenticated, percent-encoded DELETE request, preserves both server response states, and exits successfully for the initial deletion and the idempotent no-op.

@sharvaribrowserbase
sharvaribrowserbase force-pushed the codex/ap-3232-delete-functions branch from 7062443 to 4e580ea Compare November 25, 2026 02:21
@sharvaribrowserbase
sharvaribrowserbase changed the base branch from agent/extract-functions-core to main November 25, 2026 02:21

This branch has not been deployed

No deployments
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