MCPcopy Create free account
hub / github.com/Noumena-Network/code / createShutdownApprovedMessage

Function createShutdownApprovedMessage

src/utils/teammateMailbox.ts:789–803  ·  view source on GitHub ↗
(params: {
  requestId: string
  from: string
  paneId?: string
  backendType?: BackendType
})

Source from the content-addressed store, hash-verified

787 * Creates a shutdown approved message to send to the team leader
788 */
789export function createShutdownApprovedMessage(params: {
790 requestId: string
791 from: string
792 paneId?: string
793 backendType?: BackendType
794}): ShutdownApprovedMessage {
795 return {
796 type: 'shutdown_approved',
797 requestId: params.requestId,
798 from: params.from,
799 timestamp: new Date().toISOString(),
800 paneId: params.paneId,
801 backendType: params.backendType,
802 }
803}
804
805/**
806 * Creates a shutdown rejected message to send to the team leader

Callers 1

handleShutdownApprovalFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected