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

Function asRecord

projects/runtime-node/src/localFiles.ts:21–23  ·  view source on GitHub ↗
(value: unknown)

Source from the content-addressed store, hash-verified

19const SKIP_DIRS = new Set([".git", "node_modules", "dist", "build", ".next"])
20
21function asRecord(value: unknown): Record<string, unknown> {
22 return typeof value === "object" && value !== null ? (value as Record<string, unknown>) : {}
23}
24
25function stringValue(record: Record<string, unknown>, key: string): string {
26 const value = record[key]

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