Factory function that creates a new BugBugSDK instance.
Prefer this over new BugBugSDK(...) — it keeps call sites concise and is the documented entry point for the SDK.
new BugBugSDK(...)
SDK configuration (API token, base URL, rate limits, etc.)
A fully initialized SDK instance with all modules ready to use
import { createBugBug } from '@bugbug-io/sdk';const sdk = createBugBug({ apiToken: process.env.BUGBUG_API_TOKEN! });const result = await sdk.tests.startRun('my-test', { watchProgress: true }); Copy
import { createBugBug } from '@bugbug-io/sdk';const sdk = createBugBug({ apiToken: process.env.BUGBUG_API_TOKEN! });const result = await sdk.tests.startRun('my-test', { watchProgress: true });
Factory function that creates a new BugBugSDK instance.
Prefer this over
new BugBugSDK(...)— it keeps call sites concise and is the documented entry point for the SDK.