mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-06 15:00:41 +00:00
refactor: trim plugin sdk doc metadata
This commit is contained in:
@@ -6,7 +6,7 @@ export type PluginSdkDocCategory =
|
||||
| "runtime"
|
||||
| "utilities";
|
||||
|
||||
export type PluginSdkDocMetadata = {
|
||||
type PluginSdkDocMetadata = {
|
||||
category: PluginSdkDocCategory;
|
||||
};
|
||||
|
||||
@@ -135,19 +135,6 @@ export const pluginSdkDocMetadata = {
|
||||
|
||||
export type PluginSdkDocEntrypoint = keyof typeof pluginSdkDocMetadata;
|
||||
|
||||
export const pluginSdkDocCategories = [
|
||||
"core",
|
||||
"channel",
|
||||
"provider",
|
||||
"runtime",
|
||||
"utilities",
|
||||
"legacy",
|
||||
] as const satisfies readonly PluginSdkDocCategory[];
|
||||
|
||||
export const pluginSdkDocEntrypoints = Object.keys(
|
||||
pluginSdkDocMetadata,
|
||||
) as PluginSdkDocEntrypoint[];
|
||||
|
||||
export function resolvePluginSdkDocImportSpecifier(entrypoint: PluginSdkDocEntrypoint): string {
|
||||
return entrypoint === "index" ? "openclaw/plugin-sdk" : `openclaw/plugin-sdk/${entrypoint}`;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user