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

Function isShutdownApproved

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

Source from the content-addressed store, hash-verified

900 * Checks if a message text contains a shutdown approved message
901 */
902export function isShutdownApproved(
903 messageText: string,
904): ShutdownApprovedMessage | null {
905 try {
906 const result = ShutdownApprovedMessageSchema().safeParse(
907 jsonParse(messageText),
908 )
909 if (result.success) return result.data
910 } catch {
911 // Not JSON
912 }
913 return null
914}
915
916/**
917 * Checks if a message text contains a shutdown rejected message

Callers 7

AttachmentMessageFunction · 0.85
tryRenderShutdownMessageFunction · 0.85
UserTeammateMessageFunction · 0.85
runFunction · 0.85
useInboxPollerFunction · 0.85

Calls 1

jsonParseFunction · 0.85

Tested by

no test coverage detected