MCPcopy Create free account
hub / github.com/freecodexyz/free-code / hookSourceInlineDisplayString

Function hookSourceInlineDisplayString

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

Source from the content-addressed store, hash-verified

209}
210
211export function hookSourceInlineDisplayString(source: HookSource): string {
212 switch (source) {
213 case 'userSettings':
214 return 'User'
215 case 'projectSettings':
216 return 'Project'
217 case 'localSettings':
218 return 'Local'
219 case 'pluginHook':
220 return 'Plugin'
221 case 'sessionHook':
222 return 'Session'
223 case 'builtinHook':
224 return 'Built-in'
225 default:
226 return source as string
227 }
228}
229
230export function sortMatchersByPriority(
231 matchers: string[],

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected