(runtime: InvokeOptions['runtime'])
| 275 | } |
| 276 | |
| 277 | function mapRuntimeToSentryToolRuntime(runtime: InvokeOptions['runtime']): SentryToolRuntime { |
| 278 | if (runtime === 'daemon' || runtime === 'mcp') { |
| 279 | return runtime; |
| 280 | } |
| 281 | return 'cli'; |
| 282 | } |
| 283 | |
| 284 | export class DefaultToolInvoker implements ToolInvoker { |
| 285 | constructor(private catalog: ToolCatalog) {} |