(message: string)
| 88 | call(name: string, argsJson: string): Promise<string> { |
| 89 | const requestBytes = new TextEncoder().encode(argsJson).byteLength; |
| 90 | const reject = (message: string) => |
| 91 | Promise.resolve(encodeBoundedError(new Error(message), this.#maxPayloadBytes)); |
| 92 | if (this.#cancelled) return reject("Workspace execution is being cancelled."); |
| 93 | if (requestBytes > this.#maxPayloadBytes) { |
| 94 | return reject(`Workspace capability request exceeds ${this.#maxPayloadBytes} bytes.`); |