mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-09 23:24:30 +00:00
refactor: extract shared dedupe helpers for runtime paths
This commit is contained in:
@@ -1,23 +1,9 @@
|
||||
import { vi } from "vitest";
|
||||
import type { PluginRegistry } from "../plugins/registry.js";
|
||||
import { createEmptyPluginRegistry, type PluginRegistry } from "../plugins/registry.js";
|
||||
import { setActivePluginRegistry } from "../plugins/runtime.js";
|
||||
|
||||
export const registryState: { registry: PluginRegistry } = {
|
||||
registry: {
|
||||
plugins: [],
|
||||
tools: [],
|
||||
hooks: [],
|
||||
typedHooks: [],
|
||||
channels: [],
|
||||
providers: [],
|
||||
gatewayHandlers: {},
|
||||
httpHandlers: [],
|
||||
httpRoutes: [],
|
||||
cliRegistrars: [],
|
||||
services: [],
|
||||
commands: [],
|
||||
diagnostics: [],
|
||||
} as PluginRegistry,
|
||||
registry: createEmptyPluginRegistry(),
|
||||
};
|
||||
|
||||
export function setRegistry(registry: PluginRegistry) {
|
||||
|
||||
Reference in New Issue
Block a user