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

Function getJsonInput

src/utils/hooks.ts:2132–2144  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

2130 | { ok: false; error: unknown }
2131 | undefined
2132 function getJsonInput() {
2133 if (jsonInputResult !== undefined) {
2134 return jsonInputResult
2135 }
2136 try {
2137 return (jsonInputResult = { ok: true, value: jsonStringify(hookInput) })
2138 } catch (error) {
2139 logError(
2140 Error(`Failed to stringify hook ${hookName} input`, { cause: error }),
2141 )
2142 return (jsonInputResult = { ok: false, error })
2143 }
2144 }
2145
2146 // Run all hooks in parallel with individual timeouts
2147 const hookPromises = matchingHooks.map(async function* (

Callers 1

executeHooksFunction · 0.85

Calls 2

jsonStringifyFunction · 0.85
logErrorFunction · 0.70

Tested by

no test coverage detected