(params: {
requestId: string
workerId: string
workerName: string
workerColor?: string
host: string
})
| 610 | * Creates a sandbox permission request message to send to the team leader |
| 611 | */ |
| 612 | export function createSandboxPermissionRequestMessage(params: { |
| 613 | requestId: string |
| 614 | workerId: string |
| 615 | workerName: string |
| 616 | workerColor?: string |
| 617 | host: string |
| 618 | }): SandboxPermissionRequestMessage { |
| 619 | return { |
| 620 | type: 'sandbox_permission_request', |
| 621 | requestId: params.requestId, |
| 622 | workerId: params.workerId, |
| 623 | workerName: params.workerName, |
| 624 | workerColor: params.workerColor, |
| 625 | hostPattern: { host: params.host }, |
| 626 | createdAt: Date.now(), |
| 627 | } |
| 628 | } |
| 629 | |
| 630 | /** |
| 631 | * Creates a sandbox permission response message to send back to a worker |
no outgoing calls
no test coverage detected