(params: {
requestId: string
from: string
reason?: string
})
| 770 | * Creates a shutdown request message to send to a teammate |
| 771 | */ |
| 772 | export function createShutdownRequestMessage(params: { |
| 773 | requestId: string |
| 774 | from: string |
| 775 | reason?: string |
| 776 | }): ShutdownRequestMessage { |
| 777 | return { |
| 778 | type: 'shutdown_request', |
| 779 | requestId: params.requestId, |
| 780 | from: params.from, |
| 781 | reason: params.reason, |
| 782 | timestamp: new Date().toISOString(), |
| 783 | } |
| 784 | } |
| 785 | |
| 786 | /** |
| 787 | * Creates a shutdown approved message to send to the team leader |
no outgoing calls
no test coverage detected