(
customTools: Array<{ name?: unknown }> = [],
)
| 207 | } |
| 208 | |
| 209 | export function buildActiveToolNames( |
| 210 | customTools: Array<{ name?: unknown }> = [], |
| 211 | ): string[] { |
| 212 | const toolNames = [...BUILTIN_TOOL_NAMES]; |
| 213 | |
| 214 | for (const tool of customTools) { |
| 215 | if (typeof tool.name === "string" && tool.name.length > 0) { |
| 216 | toolNames.push(tool.name); |
| 217 | } |
| 218 | } |
| 219 | |
| 220 | return [...new Set(toolNames)]; |
| 221 | } |
| 222 | |
| 223 | function materializeBuiltinSkillCreator( |
| 224 | rootDir: string, |
no outgoing calls
no test coverage detected