MCPcopy Create free account
hub / github.com/continuedev/continue / getMatcherValue

Function getMatcherValue

extensions/cli/src/hooks/hookRunner.ts:260–271  ·  view source on GitHub ↗
(input: HookInput)

Source from the content-addressed store, hash-verified

258}
259
260function getMatcherValue(input: HookInput): string | undefined {
261 const eventName = input.hook_event_name as HookEventName;
262
263 if (NO_MATCHER_EVENTS.includes(eventName)) {
264 return undefined;
265 }
266
267 const field = MATCHER_FIELD_MAP[eventName];
268 if (!field) return undefined;
269
270 return (input as any)[field] as string | undefined;
271}
272
273export async function runHooks(
274 config: HooksConfig,

Callers 1

runHooksFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected