Download src/plugins/bundle-capability-support.ts from SaylorTwift/openclaw: direct link, hf CLI and curl.
- Browser
- Download file 785 Bytes
-
https://huggingface.co/SaylorTwift/openclaw/resolve/main/src/plugins/bundle-capability-support.ts
- Command line
-
hf download hf://SaylorTwift/openclaw/src/plugins/bundle-capability-support.ts
-
curl -L -o bundle-capability-support.ts https://huggingface.co/SaylorTwift/openclaw/resolve/main/src/plugins/bundle-capability-support.ts
785 Bytes
| import type { PluginBundleFormat } from "./manifest-types.js"; | |
| export function isBundleCapabilitySupported( | |
| format: PluginBundleFormat, | |
| capability: string, | |
| ): boolean { | |
| if (capability === "skills" || capability === "mcpServers" || capability === "settings") { | |
| return true; | |
| } | |
| if ( | |
| (capability === "commands" || capability === "outputStyles" || capability === "lspServers") && | |
| (format === "claude" || format === "cursor") | |
| ) { | |
| return true; | |
| } | |
| // Only the Claude reader merges agent directories into the runtime skill roots | |
| // during manifest loading; Cursor detects `.cursor/agents` but never loads it. | |
| if (capability === "agents") { | |
| return format === "claude"; | |
| } | |
| return capability === "hooks" && (format === "codex" || format === "claude"); | |
| } | |