MCPcopy
hub / github.com/OpenPipe/OpenPipe / creationTimeFromPersistentId

Function creationTimeFromPersistentId

app/src/server/utils/nodes/utils.ts:13–21  ·  view source on GitHub ↗
(persistentId: string)

Source from the content-addressed store, hash-verified

11}) => `${new Date(creationTime).toISOString()}_${key}_${nodeId}`;
12
13export const creationTimeFromPersistentId = (persistentId: string) => {
14 const [creationTime] = persistentId.split("_");
15
16 if (!creationTime) {
17 throw new Error("Invalid persistentId");
18 }
19
20 return new Date(creationTime);
21};
22
23export const printNodeEntries = async (nodeId: string) => {
24 const nodeEntries = await kysely

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected