MCPcopy Create free account
hub / github.com/Noumena-Network/code / getFirstString

Function getFirstString

src/commands/agents-platform/agents-platform.tsx:71–79  ·  view source on GitHub ↗
(value: unknown, paths: PathSegment[][])

Source from the content-addressed store, hash-verified

69}
70
71function getFirstString(value: unknown, paths: PathSegment[][]): string | null {
72 for (const path of paths) {
73 const candidate = getNested(value, path)
74 if (typeof candidate === 'string' && candidate.trim() !== '') {
75 return candidate.trim()
76 }
77 }
78 return null
79}
80
81function getFirstBoolean(
82 value: unknown,

Callers 5

extractRoutineRecordsFunction · 0.85
extractRepoUrlsFunction · 0.85
extractPromptPreviewFunction · 0.85
getScheduleTriggerFunction · 0.85
summarizeRoutineFunction · 0.85

Calls 1

getNestedFunction · 0.85

Tested by

no test coverage detected