(connection: RuntimeConnection)
| 433 | } |
| 434 | |
| 435 | private capabilitiesFor(connection: RuntimeConnection): RuntimeCapabilities { |
| 436 | const canReadProviders = this.canInvoke("agent/provider/list", connection) || this.canInvoke("agent/provider/status", connection) |
| 437 | return { |
| 438 | methods: [...this.handlers.keys()].filter((method) => this.canInvoke(method, connection)).sort(), |
| 439 | notifications: [...this.notifications].filter((method) => this.canReceiveNotification(method, connection)).sort(), |
| 440 | agentProviders: canReadProviders ? this.resolvedAgentProviders() : [], |
| 441 | } |
| 442 | } |
| 443 | |
| 444 | private resolvedAgentProviders(): AgentProviderSummary[] { |
| 445 | const providers = new Map<string, AgentProviderSummary>() |
no test coverage detected