2026-01-30 03:15:10 +01:00
|
|
|
import type { OpenClawConfig } from "../config/config.js";
|
2026-03-16 00:29:31 +00:00
|
|
|
import {
|
|
|
|
|
startExtensionHostServices,
|
|
|
|
|
type ExtensionHostServicesHandle,
|
|
|
|
|
} from "../extension-host/contributions/service-lifecycle.js";
|
2026-02-18 01:34:35 +00:00
|
|
|
import type { PluginRegistry } from "./registry.js";
|
2026-03-16 00:29:31 +00:00
|
|
|
|
2026-03-15 17:25:32 +00:00
|
|
|
export type PluginServicesHandle = ExtensionHostServicesHandle;
|
2026-01-11 12:11:12 +00:00
|
|
|
|
|
|
|
|
export async function startPluginServices(params: {
|
|
|
|
|
registry: PluginRegistry;
|
2026-01-30 03:15:10 +01:00
|
|
|
config: OpenClawConfig;
|
2026-01-11 12:11:12 +00:00
|
|
|
workspaceDir?: string;
|
|
|
|
|
}): Promise<PluginServicesHandle> {
|
2026-03-16 00:29:31 +00:00
|
|
|
return startExtensionHostServices(params);
|
2026-01-11 12:11:12 +00:00
|
|
|
}
|