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

Function createMessage

src/session/replResumeDispatch.test.ts:8–17  ·  view source on GitHub ↗
(uuid: string)

Source from the content-addressed store, hash-verified

6import type { Message } from '../types/message.js'
7
8function createMessage(uuid: string): Message {
9 return {
10 type: 'assistant',
11 uuid,
12 message: {
13 id: `assistant-${uuid}`,
14 content: [],
15 },
16 } as Message
17}
18
19describe('dispatchReplResume', () => {
20 test('deserializes messages, appends coordinator warning, preserves ordering, and emits analytics', async () => {

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected