(client, sessionID, text)
| 439 | } |
| 440 | |
| 441 | function fireSdk(client, label, method, ...argsList) { |
| 442 | Promise.resolve() |
| 443 | .then(() => sdkCall(method, ...argsList)) |
| 444 | .catch((error) => log(client, "warn", `${label} failed`, { error: sdkErrorMessage(error) })) |
| 445 | } |
| 446 | |
| 447 | async function executeTuiCommand(client, command) { |
| 448 | if (!client?.tui?.executeCommand) throw new Error("client.tui.executeCommand is not available") |
| 449 | return await sdkCall( |
| 450 | client.tui.executeCommand.bind(client.tui), |
| 451 | { body: { command } }, |
| 452 | { command }, |
no test coverage detected