MCPcopy Index your code
hub / github.com/tiann/hapi / asRecord

Function asRecord

cli/src/codex/codexAppServerClient.ts:59–64  ·  view source on GitHub ↗
(value: unknown)

Source from the content-addressed store, hash-verified

57};
58
59function asRecord(value: unknown): Record<string, unknown> | null {
60 if (!value || typeof value !== 'object') {
61 return null;
62 }
63 return value as Record<string, unknown>;
64}
65
66function createAbortError(): Error {
67 const error = new Error('Request aborted');

Callers 15

handleLineMethod · 0.70
extractTextItemsMethod · 0.70
extractAgentPromptMethod · 0.70
summarizeAgentInputMethod · 0.70
getPatchFilesMethod · 0.70
extractAgentTargetsMethod · 0.70
handleAgentToolEndMethod · 0.70
handleChildCodexEventMethod · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected