MCPcopy Create free account
hub / github.com/anomalyco/opencode / create

Function create

packages/core/src/id/id.ts:35–37  ·  view source on GitHub ↗
(prefix: string, direction: "descending" | "ascending", timestamp?: number)

Source from the content-addressed store, hash-verified

33}
34
35export function create(prefix: string, direction: "descending" | "ascending", timestamp?: number): string {
36 return prefix + "_" + createIdentifier(direction === "descending", timestamp)
37}
38
39/** Extract timestamp from an ascending ID. Does not work with descending IDs. */
40export function timestamp(id: string): number {

Callers 1

spawnFunction · 0.50

Calls

no outgoing calls

Tested by

no test coverage detected