MCPcopy Create free account
hub / github.com/tiann/hapi / asString

Function asString

cli/src/codex/utils/codexEventConverter.ts:54–56  ·  view source on GitHub ↗
(value: unknown)

Source from the content-addressed store, hash-verified

52}
53
54function asString(value: unknown): string | null {
55 return typeof value === 'string' && value.length > 0 ? value : null;
56}
57
58function extractCodexText(value: unknown): string {
59 if (typeof value === 'string') {

Callers 15

convertCodexEventFunction · 0.70
normalizeAvailableModelsFunction · 0.50
extractModelConfigOptionFunction · 0.50
handleTodoUpdateMethod · 0.50
extractToolCallIdFunction · 0.50
applyResolvedModelMethod · 0.50
buildMcpToolNameMethod · 0.50
extractTextItemsMethod · 0.50
extractAgentPromptMethod · 0.50
summarizeAgentInputMethod · 0.50

Calls

no outgoing calls

Tested by

no test coverage detected