MCPcopy Create free account
hub / github.com/MatterAIOrg/OrbCode / isHookEvent

Function isHookEvent

src/core/hooks.ts:30–32  ·  view source on GitHub ↗
(value: string)

Source from the content-addressed store, hash-verified

28export type HookEvent = (typeof HOOK_EVENTS)[number]
29
30export function isHookEvent(value: string): value is HookEvent {
31 return (HOOK_EVENTS as readonly string[]).includes(value)
32}
33
34/** A single command hook, as written under a matcher in settings.json. */
35export interface HookCommand {

Callers 1

mergeHooksIntoFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected