API Reference
Define the public package API surface, stability expectations, and how it maps to the CLI.
Abstract
Define the public package API surface, stability expectations, and how it maps to the CLI.
This page is the boundary between supported public APIs and internal implementation details. If a symbol or import path is not described here, treat it as unstable unless the project says otherwise.
Audience
Developers who want to call Blackbox from code, build wrappers, or understand which exports are supported across releases.
What This Page Should Contain
- Stable public imports.
- Exported types and helpers.
- Async behavior and error shape.
- Mapping to the CLI.
- Explicit internal boundaries.
Content Outline
- State whether a stable public library API ships in the current alpha.
- List the supported imports, exported types, async behavior, and error shape.
- Map common API calls to their equivalent CLI workflows.
- Explain versioning guarantees and which modules are internal.
- Link to the Testbed API, Scenario DSL, catalog schema, and report format pages.
Practical Guidance
- Show a minimal import and call example.
- Explain which exports are safe for external code.
- Keep the internal modules clearly labeled.
- Call out any alpha-only behavior explicitly.
Evidence To Add
- Minimal runnable package API examples.
- Type signatures generated from the published package.
- Clear alpha disclaimers for any API that is not yet stable.