(scope?: string)
| 299 | } |
| 300 | |
| 301 | export function ensureConfigScope(scope?: string): ConfigScope { |
| 302 | if (!scope) return 'local' |
| 303 | |
| 304 | if (!ConfigScopeSchema().options.includes(scope as ConfigScope)) { |
| 305 | throw new Error( |
| 306 | `Invalid scope: ${scope}. Must be one of: ${ConfigScopeSchema().options.join(', ')}`, |
| 307 | ) |
| 308 | } |
| 309 | |
| 310 | return scope as ConfigScope |
| 311 | } |
| 312 | |
| 313 | export function ensureTransport(type?: string): 'stdio' | 'sse' | 'http' { |
| 314 | if (!type) return 'stdio' |
no outgoing calls
no test coverage detected