MCPcopy Create free account
hub / github.com/cortexkit/magic-context / shortId

Function shortId

packages/cli/src/commands/migrate.ts:212–214  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

210}
211
212function shortId(): string {
213 return randomBytes(4).toString("hex");
214}
215
216function parseJsonObject<T>(text: string): T {
217 const parsed = JSON.parse(text);

Callers 7

normalizeOpenCodeToolFunction · 0.85
makeMessageEntryFunction · 0.85
makeThinkingEntryFunction · 0.85
makeToolCallEntryFunction · 0.85
makeToolResultEntryFunction · 0.85
buildPiEntriesFunction · 0.85
insertCompactionMarkerFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected