mirror of
https://github.com/openclaw/openclaw.git
synced 2026-08-17 16:12:21 -06:00
e4d1b7e0d3
* refactor(plugins): move plugin contributions into the registry bundle * fix(plugins): guard embedding owner union and drop unused test-util imports * fix(plugins): break registry facade import cycles * fix(plugins): remove obsolete registry snapshot seams * test(gateway): preserve plugin runtime mock exports * test(auto-reply): install builder registry in diagnostics fixture * test(plugins): activate registry-backed capability fixtures
18 lines
726 B
TypeScript
18 lines
726 B
TypeScript
// Context-engine initialization registers built-in engines before plugin resolution.
|
||
import { registerLegacyContextEngine } from "./legacy.registration.js";
|
||
|
||
/**
|
||
* Ensures all built-in context engines are registered in the active registry.
|
||
*
|
||
* The legacy engine is always registered as a safe fallback so that
|
||
* `resolveContextEngine()` can resolve the default "legacy" slot without
|
||
* callers needing to remember manual registration.
|
||
*
|
||
* Additional engines are registered by their own plugins via
|
||
* `api.registerContextEngine()` during plugin load.
|
||
*/
|
||
export function ensureContextEnginesInitialized(): void {
|
||
// Always available – safe fallback for the "legacy" slot default.
|
||
registerLegacyContextEngine();
|
||
}
|