mirror of
https://github.com/openclaw/openclaw.git
synced 2026-04-22 14:41:34 +00:00
fix(ci): stabilize auto-reply CI tests
This commit is contained in:
@@ -25,9 +25,9 @@ function loadPluginRuntime(): PluginRuntimeModule | null {
|
||||
}
|
||||
|
||||
export function resolveRuntimeTextTransforms(): PluginTextTransforms | undefined {
|
||||
return mergePluginTextTransforms(
|
||||
...(loadPluginRuntime()
|
||||
?.getActivePluginRegistry()
|
||||
?.textTransforms?.map((entry) => entry.transforms) ?? []),
|
||||
);
|
||||
const registry = loadPluginRuntime()?.getActivePluginRegistry();
|
||||
const pluginTextTransforms = Array.isArray(registry?.textTransforms)
|
||||
? registry.textTransforms.map((entry) => entry.transforms)
|
||||
: [];
|
||||
return mergePluginTextTransforms(...pluginTextTransforms);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user