MCPcopy
hub / github.com/codeaashu/claude-code / isPlanApprovalResponse

Function isPlanApprovalResponse

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

Source from the content-addressed store, hash-verified

934 * Checks if a message text contains a plan approval response
935 */
936export function isPlanApprovalResponse(
937 messageText: string,
938): PlanApprovalResponseMessage | null {
939 try {
940 const result = PlanApprovalResponseMessageSchema().safeParse(
941 jsonParse(messageText),
942 )
943 if (result.success) return result.data
944 } catch {
945 // Not JSON
946 }
947 return null
948}
949
950/**
951 * Task assignment message sent when a task is assigned to a teammate

Callers 3

getPlanApprovalSummaryFunction · 0.85
useInboxPollerFunction · 0.85

Calls 1

jsonParseFunction · 0.85

Tested by

no test coverage detected