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:
Xinhua Gu
2026-03-10 00:07:26 +01:00
committed by GitHub
parent c9a6c542ef
commit 4790e40ac6
6 changed files with 63 additions and 0 deletions

View File

@@ -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";