docs: refresh provider package barrel refs

This commit is contained in:
Peter Steinberger
2026-04-04 12:51:31 +01:00
parent e5b48ea2b4
commit 120b1d2ed2
3 changed files with 25 additions and 0 deletions

View File

@@ -238,6 +238,13 @@ For the full subpath reference, see [SDK Overview](/plugins/sdk-overview).
Within your plugin, use local barrel files (`api.ts`, `runtime-api.ts`) for
internal imports — never import your own plugin through its SDK path.
For provider plugins, keep provider-specific helpers in those package-root
barrels unless the seam is truly generic. Current bundled examples:
- Anthropic: Claude stream wrappers and `service_tier` / beta helpers
- OpenAI: provider builders, default-model helpers, realtime providers
- OpenRouter: provider builder plus onboarding/config helpers
## Pre-submission checklist
<Check>**package.json** has correct `openclaw` metadata</Check>