MCPcopy Create free account
hub / github.com/codeaashu/claude-code / createSandboxPermissionRequestMessage

Function createSandboxPermissionRequestMessage

src/utils/teammateMailbox.ts:612–628  ·  view source on GitHub ↗
(params: {
  requestId: string
  workerId: string
  workerName: string
  workerColor?: string
  host: string
})

Source from the content-addressed store, hash-verified

610 * Creates a sandbox permission request message to send to the team leader
611 */
612export 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

Calls

no outgoing calls

Tested by

no test coverage detected