feat(plugins): surface manifest provider setup choices (#71240)

This commit is contained in:
Vincent Koc
2026-04-24 13:14:49 -07:00
committed by GitHub
parent 8154337cb6
commit cf858258c7
5 changed files with 189 additions and 7 deletions

View File

@@ -71,7 +71,9 @@ or fallback behavior without changing runtime loading semantics.
Setup discovery now prefers descriptor-owned ids such as `setup.providers` and
`setup.cliBackends` to narrow candidate plugins before it falls back to
`setup-api` for plugins that still need setup-time runtime hooks. Explicit
`setup-api` for plugins that still need setup-time runtime hooks. Provider
setup flow uses manifest `providerAuthChoices` first, then falls back to
runtime wizard choices and install-catalog choices for compatibility. Explicit
`setup.requiresRuntime: false` is a descriptor-only cutoff; omitted
`requiresRuntime` keeps the legacy setup-api fallback for compatibility. If more
than one discovered plugin claims the same normalized setup provider or CLI

View File

@@ -168,6 +168,8 @@ or npm install metadata. Those belong in your plugin code and `package.json`.
Each `providerAuthChoices` entry describes one onboarding or auth choice.
OpenClaw reads this before provider runtime loads.
Provider setup flow prefers these manifest choices, then falls back to runtime
wizard metadata and install-catalog choices for compatibility.
| Field | Required | Type | What it means |
| --------------------- | -------- | ----------------------------------------------- | -------------------------------------------------------------------------------------------------------- |