Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
212
function
shortId(): string {
213
return
randomBytes(4).toString(
"hex"
);
214
}
215
216
function
parseJsonObject<T>(text: string): T {
217
const
parsed = JSON.parse(text);
Callers
7
normalizeOpenCodeTool
Function · 0.85
makeMessageEntry
Function · 0.85
makeThinkingEntry
Function · 0.85
makeToolCallEntry
Function · 0.85
makeToolResultEntry
Function · 0.85
buildPiEntries
Function · 0.85
insertCompactionMarker
Function · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected