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

Function ascending

packages/opencode/src/id/id.ts:22–24  ·  view source on GitHub ↗
(prefix: keyof typeof prefixes, given?: string)

Source from the content-addressed store, hash-verified

20let counter = 0
21
22export function ascending(prefix: keyof typeof prefixes, given?: string) {
23 return generateID(prefix, "ascending", given)
24}
25
26export function descending(prefix: keyof typeof prefixes, given?: string) {
27 return generateID(prefix, "descending", given)

Callers

nothing calls this directly

Calls 1

generateIDFunction · 0.70

Tested by

no test coverage detected