MCPcopy Create free account
hub / github.com/MatterAIOrg/OrbCode / readJson

Function readJson

src/config/settings.ts:82–88  ·  view source on GitHub ↗
(filePath: string)

Source from the content-addressed store, hash-verified

80}
81
82function readJson(filePath: string): Record<string, unknown> | undefined {
83 try {
84 return JSON.parse(fs.readFileSync(filePath, "utf8"))
85 } catch {
86 return undefined
87 }
88}
89
90// --- Project-hook trust ---------------------------------------------------
91// User-level hooks (~/.orbcode/settings.json) are written by the user and are

Callers 4

readProjectHooksFunction · 0.70
isProjectHooksTrustedFunction · 0.70
trustProjectHooksFunction · 0.70
loadSettingsFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected