MCPcopy Create free account
hub / github.com/codeaashu/claude-code / getSourcePriority

Function getSourcePriority

src/utils/hooks/hooksSettings.ts:256–259  ·  view source on GitHub ↗
(source: HookSource)

Source from the content-addressed store, hash-verified

254 // Sort by highest priority source first (lowest priority number)
255 // Plugin hooks get lowest priority (highest number)
256 const getSourcePriority = (source: HookSource) =>
257 source === 'pluginHook' || source === 'builtinHook'
258 ? 999
259 : sourcePriority[source as EditableSettingSource]
260
261 const aHighestPriority = Math.min(...aSources.map(getSourcePriority))
262 const bHighestPriority = Math.min(...bSources.map(getSourcePriority))

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected