()
| 106 | * Skills from disabled plugins are not returned. |
| 107 | */ |
| 108 | export function getBuiltinPluginSkillCommands(): Command[] { |
| 109 | const { enabled } = getBuiltinPlugins() |
| 110 | const commands: Command[] = [] |
| 111 | |
| 112 | for (const plugin of enabled) { |
| 113 | const definition = BUILTIN_PLUGINS.get(plugin.name) |
| 114 | if (!definition?.skills) continue |
| 115 | for (const skill of definition.skills) { |
| 116 | commands.push(skillDefinitionToCommand(skill)) |
| 117 | } |
| 118 | } |
| 119 | |
| 120 | return commands |
| 121 | } |
| 122 | |
| 123 | /** |
| 124 | * Clear built-in plugins registry (for testing). |
no test coverage detected