MCPcopy Create free account
hub / github.com/agegr/pi-web / userEntry

Function userEntry

lib/session-reader.test.mjs:17–28  ·  view source on GitHub ↗
(id, parentId, content, timestamp = "2026-01-01T00:00:00.000Z")

Source from the content-addressed store, hash-verified

15} = await jiti.import("./session-reader.ts");
16
17function userEntry(id, parentId, content, timestamp = "2026-01-01T00:00:00.000Z") {
18 return {
19 type: "message",
20 id,
21 parentId,
22 timestamp,
23 message: {
24 role: "user",
25 content,
26 },
27 };
28}
29
30function assistantEntry(id, parentId, text, timestamp = "2026-01-01T00:00:00.000Z") {
31 return {

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected