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

Function getHandlerDedupeKey

extensions/cli/src/hooks/hookRunner.ts:245–258  ·  view source on GitHub ↗
(handler: HookHandler)

Source from the content-addressed store, hash-verified

243}
244
245function getHandlerDedupeKey(handler: HookHandler): string {
246 switch (handler.type) {
247 case "command":
248 return `command:${handler.command}`;
249 case "http":
250 return `http:${handler.url}`;
251 case "prompt":
252 return `prompt:${handler.prompt}`;
253 case "agent":
254 return `agent:${handler.prompt}`;
255 default:
256 return `unknown:${JSON.stringify(handler)}`;
257 }
258}
259
260function getMatcherValue(input: HookInput): string | undefined {
261 const eventName = input.hook_event_name as HookEventName;

Callers 1

runHooksFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected