openclaw/extensions
Xinhua Gu 42cc548431
fix(plugins): expose model auth API to context-engine plugins
Context-engine plugins (e.g. lossless-claw) that call LLM APIs via
completeSimple cannot resolve API keys from the main OpenClaw config.
This causes repeated 'No API key for provider' errors and forces
fallback to truncation.

Add runtime.modelAuth to PluginRuntimeCore with getApiKeyForModel and
resolveApiKeyForProvider so plugins can resolve credentials through
the standard auth pipeline (config, env vars, auth profiles).

Also re-export these helpers and the ResolvedProviderAuth type from
the plugin-sdk barrel for direct import by plugin authors.

Fixes #40902
2026-03-09 15:59:24 -07:00
..
acpx acp: add regression coverage and smoke-test docs (#41456) 2026-03-09 22:40:14 +01:00
bluebubbles build: sync plugin versions for 2026.3.9 2026-03-09 08:39:52 +00:00
copilot-proxy build: sync plugin versions for 2026.3.9 2026-03-09 08:39:52 +00:00
device-pair Plugins/device-pair: migrate to scoped plugin-sdk imports 2026-03-04 02:35:12 -05:00
diagnostics-otel build: sync plugin versions for 2026.3.9 2026-03-09 08:39:52 +00:00
diffs build: sync plugin versions for 2026.3.9 2026-03-09 08:39:52 +00:00
discord build: sync plugin versions for 2026.3.9 2026-03-09 08:39:52 +00:00
feishu build: sync plugin versions for 2026.3.9 2026-03-09 08:39:52 +00:00
google-gemini-cli-auth build: sync plugin versions for 2026.3.9 2026-03-09 08:39:52 +00:00
googlechat build: sync plugin versions for 2026.3.9 2026-03-09 08:39:52 +00:00
imessage build: sync plugin versions for 2026.3.9 2026-03-09 08:39:52 +00:00
irc build: sync plugin versions for 2026.3.9 2026-03-09 08:39:52 +00:00
line build: sync plugin versions for 2026.3.9 2026-03-09 08:39:52 +00:00
llm-task build: sync plugin versions for 2026.3.9 2026-03-09 08:39:52 +00:00
lobster build: sync plugin versions for 2026.3.9 2026-03-09 08:39:52 +00:00
matrix build: sync plugin versions for 2026.3.9 2026-03-09 08:39:52 +00:00
mattermost build: sync plugin versions for 2026.3.9 2026-03-09 08:39:52 +00:00
memory-core build: sync plugin versions for 2026.3.9 2026-03-09 08:39:52 +00:00
memory-lancedb build: sync plugin versions for 2026.3.9 2026-03-09 08:39:52 +00:00
minimax-portal-auth build: sync plugin versions for 2026.3.9 2026-03-09 08:39:52 +00:00
msteams build: sync plugin versions for 2026.3.9 2026-03-09 08:39:52 +00:00
nextcloud-talk build: sync plugin versions for 2026.3.9 2026-03-09 08:39:52 +00:00
nostr build: sync plugin versions for 2026.3.9 2026-03-09 08:39:52 +00:00
open-prose build: sync plugin versions for 2026.3.9 2026-03-09 08:39:52 +00:00
phone-control feature(context): extend plugin system to support custom context management (#22201) 2026-03-06 05:31:59 -08:00
qwen-portal-auth refactor(extensions): reuse shared helper primitives 2026-03-07 10:41:05 +00:00
shared fix(acpx): share windows wrapper resolver and add strict hardening mode 2026-03-01 23:57:06 +00:00
signal build: sync plugin versions for 2026.3.9 2026-03-09 08:39:52 +00:00
slack build: sync plugin versions for 2026.3.9 2026-03-09 08:39:52 +00:00
synology-chat build: sync plugin versions for 2026.3.9 2026-03-09 08:39:52 +00:00
talk-voice fix(discord): avoid native plugin command collisions 2026-03-07 21:59:44 +00:00
telegram build: sync plugin versions for 2026.3.9 2026-03-09 08:39:52 +00:00
test-utils fix(plugins): expose model auth API to context-engine plugins 2026-03-09 15:59:24 -07:00
thread-ownership Plugins/thread-ownership: migrate to scoped plugin-sdk imports 2026-03-04 02:35:13 -05:00
tlon build: sync plugin versions for 2026.3.9 2026-03-09 08:39:52 +00:00
twitch build: sync plugin versions for 2026.3.9 2026-03-09 08:39:52 +00:00
voice-call build: sync plugin versions for 2026.3.9 2026-03-09 08:39:52 +00:00
whatsapp build: sync plugin versions for 2026.3.9 2026-03-09 08:39:52 +00:00
zalo build: sync plugin versions for 2026.3.9 2026-03-09 08:39:52 +00:00
zalouser build: sync plugin versions for 2026.3.9 2026-03-09 08:39:52 +00:00