MCPcopy Create free account
hub / github.com/ChatLab/ChatLab / addMessage

Function addMessage

tests/e2e/smoke/chart-runtime.smoke.test.js:176–180  ·  view source on GitHub ↗
(name, ts, type, content)

Source from the content-addressed store, hash-verified

174 )
175
176 const addMessage = (name, ts, type, content) => {
177 const id = memberIds.get(name)
178 assert.ok(id, `missing member id for ${name}`)
179 insertMessage.run(id, `${name} Account`, name, unixTs(ts), type, content, `${name}-${ts}`)
180 }
181
182 addMessage('Alice', '2026-06-01T09:00:00Z', 0, 'morning hello')
183 addMessage('Alice', '2026-06-01T10:00:00Z', 0, 'standup note')

Callers 1

seedChatSessionDbFunction · 0.70

Calls 3

unixTsFunction · 0.70
getMethod · 0.65
runMethod · 0.65

Tested by

no test coverage detected