mirror of
https://github.com/openclaw/openclaw.git
synced 2026-07-14 12:26:06 +00:00
53 lines
1.7 KiB
TypeScript
53 lines
1.7 KiB
TypeScript
/** List extension package dirs whose package metadata enables artifact publishing. */
|
|
export function listPublishablePluginPackageDirs(params?: Record<string, unknown>): string[];
|
|
/** List package-local runtime output files expected from a runtime build plan. */
|
|
export function listPluginNpmRuntimeBuildOutputs(plan: unknown): string[];
|
|
export type PluginNpmRuntimeBuildFormat = "esm" | "cjs";
|
|
export type PluginNpmRuntimeBuildPlan = {
|
|
runtimeBuildOutputs: string[];
|
|
packageFiles: string[];
|
|
packagePeerMetadata: {
|
|
peerDependencies: {
|
|
openclaw: string;
|
|
};
|
|
peerDependenciesMeta: {
|
|
openclaw: { optional: boolean };
|
|
};
|
|
};
|
|
repoRoot: string;
|
|
packageDir: string;
|
|
pluginDir: string;
|
|
packageJson: {
|
|
openclaw: { compat: { pluginApi: string } };
|
|
[key: string]: unknown;
|
|
};
|
|
rootPackageJson: Record<string, unknown>;
|
|
sourceEntries: string[];
|
|
entry: {
|
|
[k: string]: string;
|
|
};
|
|
outDir: string;
|
|
runtimeFormat: PluginNpmRuntimeBuildFormat;
|
|
runtimeExtensions: string[];
|
|
runtimeSetupEntry: string | undefined;
|
|
};
|
|
/** Resolve the package-local runtime build plan for one publishable plugin package. */
|
|
export function resolvePluginNpmRuntimeBuildPlan(params: unknown): PluginNpmRuntimeBuildPlan | null;
|
|
/** Build package-local runtime files and static assets for one plugin package. */
|
|
export function buildPluginNpmRuntime(params: unknown): Promise<
|
|
| (PluginNpmRuntimeBuildPlan & {
|
|
assetBuildCommand: string | null;
|
|
copiedStaticAssets: string[];
|
|
})
|
|
| null
|
|
>;
|
|
export function parseArgs(argv: unknown):
|
|
| {
|
|
help: boolean;
|
|
packageDir: string;
|
|
}
|
|
| {
|
|
packageDir: unknown;
|
|
help?: undefined;
|
|
};
|