(params: RuntimeSubscriptionUpdateParams, context: RuntimeHandlerContext)
| 486 | } |
| 487 | |
| 488 | private updateSubscription(params: RuntimeSubscriptionUpdateParams, context: RuntimeHandlerContext): { ok: true } { |
| 489 | const entry = this.connections.get(context.connection.id) |
| 490 | if (!entry) return { ok: true } |
| 491 | |
| 492 | const methods = params.methods ?? ["*"] |
| 493 | entry.subscriptions = new Set(methods.length > 0 ? methods : ["*"]) |
| 494 | const cursor = params.cursor |
| 495 | if (cursor !== undefined) this.replayNotifications(entry, cursor) |
| 496 | return { ok: true } |
| 497 | } |
| 498 | |
| 499 | private agentProviderStatus(params: AgentProviderIdParams): { providerId: string; connected: boolean; state: string } { |
| 500 | const providerId = params.providerId |
no test coverage detected