refactor: trim plugin sdk doc metadata · openclaw/openclaw@cf35fa8
steipete
·
2026-05-02
·
via Recent Commits to openclaw:main
| Original file line number | Diff line number | Diff line change |
|---|
@@ -6,7 +6,7 @@ export type PluginSdkDocCategory =
|
6 | 6 | | "runtime" |
7 | 7 | | "utilities"; |
8 | 8 | |
9 | | -export type PluginSdkDocMetadata = { |
| 9 | +type PluginSdkDocMetadata = { |
10 | 10 | category: PluginSdkDocCategory; |
11 | 11 | }; |
12 | 12 | |
@@ -135,19 +135,6 @@ export const pluginSdkDocMetadata = {
|
135 | 135 | |
136 | 136 | export type PluginSdkDocEntrypoint = keyof typeof pluginSdkDocMetadata; |
137 | 137 | |
138 | | -export const pluginSdkDocCategories = [ |
139 | | -"core", |
140 | | -"channel", |
141 | | -"provider", |
142 | | -"runtime", |
143 | | -"utilities", |
144 | | -"legacy", |
145 | | -] as const satisfies readonly PluginSdkDocCategory[]; |
146 | | - |
147 | | -export const pluginSdkDocEntrypoints = Object.keys( |
148 | | -pluginSdkDocMetadata, |
149 | | -) as PluginSdkDocEntrypoint[]; |
150 | | - |
151 | 138 | export function resolvePluginSdkDocImportSpecifier(entrypoint: PluginSdkDocEntrypoint): string { |
152 | 139 | return entrypoint === "index" ? "openclaw/plugin-sdk" : `openclaw/plugin-sdk/${entrypoint}`; |
153 | 140 | } |
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。