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

Function hashHooks

src/config/settings.ts:112–114  ·  view source on GitHub ↗
(hooks: HooksConfig)

Source from the content-addressed store, hash-verified

110}
111
112function hashHooks(hooks: HooksConfig): string {
113 return crypto.createHash("sha256").update(JSON.stringify(hooks)).digest("hex").slice(0, 16)
114}
115
116function isProjectHooksTrusted(cwd: string, hash: string): boolean {
117 // Escape hatch for CI / non-interactive automation. Only honored when

Callers 3

trustProjectHooksFunction · 0.85
getPendingProjectHooksFunction · 0.85
loadSettingsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected