Files
openclaw/scripts/lib/plugin-sdk-doc-metadata.ts
Renaud Cerrato 95b97e5b0b fix(exec): fail invalid explicit workdir before running (#94441)
* fix(exec): fail invalid explicit workdir before running

* test(exec): tighten invalid workdir regression

* fix(exec): clarify invalid workdir recovery

* refactor(exec): centralize workdir resolution

* test(exec): update invalid workdir assertion

* fix(exec): harden backend workdir contract

* fix(exec): map missing backend host workdirs

* fix(exec): reject control commands before workdir prep

* fix(exec): defer env hook until backend cwd validation

* chore(sdk): refresh plugin api baseline

* test(agents): drop redundant definition assertions

* test(exec): use real config workdirs

* test(exec): use tracked temp dirs

* test(openshell): keep temp setup local

* test: update temp-dir route fixture

---------

Co-authored-by: jesse-merhi <79823012+jesse-merhi@users.noreply.github.com>
2026-06-26 08:02:00 +10:00

157 lines
3.0 KiB
TypeScript

// Plugin Sdk Doc Metadata script supports OpenClaw repository automation.
export type PluginSdkDocCategory =
| "channel"
| "core"
| "legacy"
| "provider"
| "runtime"
| "utilities";
type PluginSdkDocMetadata = {
category: PluginSdkDocCategory;
};
export const pluginSdkDocMetadata = {
index: {
category: "legacy",
},
core: {
category: "core",
},
health: {
category: "core",
},
sandbox: {
category: "runtime",
},
"approval-runtime": {
category: "runtime",
},
"approval-auth-runtime": {
category: "runtime",
},
"approval-client-runtime": {
category: "runtime",
},
"approval-delivery-runtime": {
category: "runtime",
},
"approval-native-runtime": {
category: "runtime",
},
"approval-reaction-runtime": {
category: "runtime",
},
"approval-reply-runtime": {
category: "runtime",
},
"plugin-entry": {
category: "core",
},
"access-groups": {
category: "channel",
},
"channel-actions": {
category: "channel",
},
"channel-config-schema": {
category: "channel",
},
"channel-config-schema-legacy": {
category: "channel",
},
"chat-channel-ids": {
category: "channel",
},
"channel-contract": {
category: "channel",
},
"channel-pairing": {
category: "channel",
},
"channel-ingress": {
category: "channel",
},
"channel-ingress-runtime": {
category: "channel",
},
"channel-reply-pipeline": {
category: "channel",
},
"channel-setup": {
category: "channel",
},
"command-auth": {
category: "channel",
},
zalouser: {
category: "channel",
},
"command-status": {
category: "channel",
},
"command-status-runtime": {
category: "runtime",
},
"secret-input": {
category: "channel",
},
"webhook-ingress": {
category: "channel",
},
"provider-onboard": {
category: "provider",
},
"provider-oauth-runtime": {
category: "provider",
},
"message-tool-delivery-hints": {
category: "runtime",
},
"provider-selection-runtime": {
category: "provider",
},
"provider-catalog-live-runtime": {
category: "provider",
},
"runtime-store": {
category: "runtime",
},
"session-transcript-runtime": {
category: "runtime",
},
"sqlite-runtime": {
category: "runtime",
},
"qa-live-transport-scenarios": {
category: "utilities",
},
"agent-runtime": {
category: "runtime",
},
"speech-core": {
category: "provider",
},
"realtime-voice": {
category: "provider",
},
"tts-runtime": {
category: "runtime",
},
"inline-image-data-url-runtime": {
category: "runtime",
},
"allow-from": {
category: "utilities",
},
"reply-payload": {
category: "utilities",
},
} as const satisfies Record<string, PluginSdkDocMetadata>;
export type PluginSdkDocEntrypoint = keyof typeof pluginSdkDocMetadata;
export function resolvePluginSdkDocImportSpecifier(entrypoint: PluginSdkDocEntrypoint): string {
return entrypoint === "index" ? "openclaw/plugin-sdk" : `openclaw/plugin-sdk/${entrypoint}`;
}