(commands: Command[])
| 2649 | * Falls back to bundled-only if bundled+mcp exceeds FILTERED_LISTING_MAX. |
| 2650 | */ |
| 2651 | export function filterToBundledAndMcp(commands: Command[]): Command[] { |
| 2652 | const filtered = commands.filter( |
| 2653 | cmd => cmd.loadedFrom === 'bundled' || cmd.loadedFrom === 'mcp', |
| 2654 | ) |
| 2655 | if (filtered.length > FILTERED_LISTING_MAX) { |
| 2656 | return filtered.filter(cmd => cmd.loadedFrom === 'bundled') |
| 2657 | } |
| 2658 | return filtered |
| 2659 | } |
| 2660 | |
| 2661 | async function getSkillListingAttachments( |
| 2662 | toolUseContext: ToolUseContext, |
no outgoing calls
no test coverage detected