MCPcopy Create free account
hub / github.com/bearlyai/OpenADE / stringValue

Function stringValue

projects/runtime-node/src/localFiles.ts:25–29  ·  view source on GitHub ↗
(record: Record<string, unknown>, key: string)

Source from the content-addressed store, hash-verified

23}
24
25function stringValue(record: Record<string, unknown>, key: string): string {
26 const value = record[key]
27 if (typeof value !== "string" || !value) throw new Error(`${key} is required`)
28 return value
29}
30
31function boolValue(value: unknown, fallback = false): boolean {
32 return typeof value === "boolean" ? value : fallback

Callers 8

describePathFunction · 0.70
readFileFunction · 0.70
writeFileFunction · 0.70
createDirectoryFunction · 0.70
removePathFunction · 0.70
copyPathFunction · 0.70
fuzzySearchFunction · 0.70
searchContentFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected