mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-29 21:45:03 +00:00
fix(plugins): expose model auth API to context-engine plugins (#41090)
Merged via squash.
Prepared head SHA: ee96e96bb9
Co-authored-by: xinhuagu <562450+xinhuagu@users.noreply.github.com>
Co-authored-by: jalehman <550978+jalehman@users.noreply.github.com>
Reviewed-by: @jalehman
This commit is contained in:
@@ -801,5 +801,11 @@ export type {
|
||||
export { registerContextEngine } from "../context-engine/registry.js";
|
||||
export type { ContextEngineFactory } from "../context-engine/registry.js";
|
||||
|
||||
// Model authentication types for plugins.
|
||||
// Plugins should use runtime.modelAuth (which strips unsafe overrides like
|
||||
// agentDir/store) rather than importing raw helpers directly.
|
||||
export { requireApiKey } from "../agents/model-auth.js";
|
||||
export type { ResolvedProviderAuth } from "../agents/model-auth.js";
|
||||
|
||||
// Security utilities
|
||||
export { redactSensitiveText } from "../logging/redact.js";
|
||||
|
||||
Reference in New Issue
Block a user