(job)
| 512 | if (typeof until !== "number") return false |
| 513 | if (until < now()) { |
| 514 | loopOwnedUserMessageGuards.delete(sessionID) |
| 515 | return false |
| 516 | } |
| 517 | return true |
| 518 | } |
| 519 | |
| 520 | async function say(client, sessionID, text) { |
| 521 | guardLoopOwnedUserMessage(sessionID) |
| 522 | try { |
| 523 | await sdkCall( |
| 524 | client.session.prompt.bind(client.session), |
| 525 | { path: { id: sessionID }, body: { noReply: true, parts: [{ type: "text", text }] } }, |
| 526 | { path: { sessionID }, body: { noReply: true, parts: [{ type: "text", text }] } }, |
| 527 | { sessionID, noReply: true, parts: [{ type: "text", text }] }, |
| 528 | ) |
| 529 | } catch {} |
| 530 | } |
| 531 |
no test coverage detected