openclaw
Version:
Multi-channel AI gateway with extensible messaging integrations
9 lines (8 loc) • 608 B
TypeScript
import type { OpenClawConfig } from "../config/config.js";
import type { PluginInstallRecord } from "../config/types.plugins.js";
import { type NpmSpecResolution } from "../infra/install-source-utils.js";
export type PluginInstallUpdate = PluginInstallRecord & {
pluginId: string;
};
export declare function buildNpmResolutionInstallFields(resolution?: NpmSpecResolution): Pick<PluginInstallRecord, "resolvedName" | "resolvedVersion" | "resolvedSpec" | "integrity" | "shasum" | "resolvedAt">;
export declare function recordPluginInstall(cfg: OpenClawConfig, update: PluginInstallUpdate): OpenClawConfig;