mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-09 18:10:42 +00:00
28 lines
866 B
TypeScript
28 lines
866 B
TypeScript
import type { OpenClawConfig } from "../config/types.openclaw.js";
|
|
import {
|
|
resolveManifestCommandAliasOwnerInRegistry,
|
|
type PluginManifestCommandAliasRegistry,
|
|
type PluginManifestCommandAliasRecord,
|
|
} from "./manifest-command-aliases.js";
|
|
import { loadPluginManifestRegistry } from "./manifest-registry.js";
|
|
|
|
export function resolveManifestCommandAliasOwner(params: {
|
|
command: string | undefined;
|
|
config?: OpenClawConfig;
|
|
workspaceDir?: string;
|
|
env?: NodeJS.ProcessEnv;
|
|
registry?: PluginManifestCommandAliasRegistry;
|
|
}): PluginManifestCommandAliasRecord | undefined {
|
|
const registry =
|
|
params.registry ??
|
|
loadPluginManifestRegistry({
|
|
config: params.config,
|
|
workspaceDir: params.workspaceDir,
|
|
env: params.env,
|
|
});
|
|
return resolveManifestCommandAliasOwnerInRegistry({
|
|
command: params.command,
|
|
registry,
|
|
});
|
|
}
|