Files
openclaw/scripts/generate-bundled-plugin-metadata.d.mts
2026-03-22 21:28:16 +00:00

33 lines
800 B
TypeScript

export type BundledPluginPathPair = {
source: string;
built: string;
};
export type BundledPluginMetadataEntry = {
dirName: string;
idHint: string;
source: BundledPluginPathPair;
setupSource?: BundledPluginPathPair;
packageName?: string;
packageVersion?: string;
packageDescription?: string;
packageManifest?: Record<string, unknown>;
manifest: Record<string, unknown>;
};
export function collectBundledPluginMetadata(params?: {
repoRoot?: string;
}): BundledPluginMetadataEntry[];
export function renderBundledPluginMetadataModule(entries: BundledPluginMetadataEntry[]): string;
export function writeBundledPluginMetadataModule(params?: {
repoRoot?: string;
outputPath?: string;
check?: boolean;
}): {
changed: boolean;
wrote: boolean;
outputPath: string;
};