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

Function add

tests/chart-runtime/real-llm-chart-flow.e2e.test.ts:60–64  ·  view source on GitHub ↗
(name: 'Alice' | 'Bob' | 'Cara', ts: string, type: number, content: string)

Source from the content-addressed store, hash-verified

58 VALUES (?, ?, ?, ?, ?, ?, ?)`
59 )
60 const add = (name: 'Alice' | 'Bob' | 'Cara', ts: string, type: number, content: string) => {
61 const id = memberId.get(name)
62 assert.ok(id, `missing member id for ${name}`)
63 insertMessage.run(id, `${name} Account`, name, unixTs(ts), type, content, `${name}-${ts}`)
64 }
65
66 add('Alice', '2026-06-01T09:00:00Z', 0, 'morning hello')
67 add('Alice', '2026-06-01T10:00:00Z', 0, 'standup note')

Callers 1

seedChatDbFunction · 0.70

Calls 3

unixTsFunction · 0.70
getMethod · 0.65
runMethod · 0.65

Tested by

no test coverage detected