MCPcopy Index your code
hub / github.com/codeaashu/claude-code / isPermissionResponse

Function isPermissionResponse

src/utils/teammateMailbox.ts:558–570  ·  view source on GitHub ↗
(
  messageText: string,
)

Source from the content-addressed store, hash-verified

556 * Checks if a message text contains a permission response
557 */
558export function isPermissionResponse(
559 messageText: string,
560): PermissionResponseMessage | null {
561 try {
562 const parsed = jsonParse(messageText)
563 if (parsed && parsed.type === 'permission_response') {
564 return parsed as PermissionResponseMessage
565 }
566 } catch {
567 // Not JSON or not a valid permission response
568 }
569 return null
570}
571
572/**
573 * Sandbox permission request message sent from worker to leader via mailbox

Callers 3

useInboxPollerFunction · 0.85

Calls 1

jsonParseFunction · 0.85

Tested by

no test coverage detected