MCPcopy Index your code
hub / github.com/ChatLab/ChatLab / add

Function add

tests/chart-runtime/render-chart.integration.test.ts:53–57  ·  view source on GitHub ↗
(name: 'Alice' | 'Bob' | 'Cara', ts: string, type: number, content: string)

Source from the content-addressed store, hash-verified

51 VALUES (?, ?, ?, ?, ?, ?, ?)`
52 )
53 const add = (name: 'Alice' | 'Bob' | 'Cara', ts: string, type: number, content: string) => {
54 const id = memberId.get(name)
55 assert.ok(id, `missing member id for ${name}`)
56 insertMessage.run(id, `${name} Account`, name, unixTs(ts), type, content, `${name}-${ts}`)
57 }
58
59 add('Alice', '2026-06-01T09:00:00Z', 0, 'morning hello')
60 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