INNER CODE UNIT · TypeScript

emptyResult

superagent-ai/grok-cli · src/hooks/index.ts:31

function emptyResult(): AggregatedHookResult {
  return {
    blocked: false,
    blockingErrors: [],
    preventContinuation: false,
    additionalContexts: [],
    results: [],
  };
}

/**
 * Fire hooks for a generic event. Loads config, matches, and executes.
 * Swallows all errors so hooks never crash the agent.
 */
export async function executeEventHooks(
  input: HookInput,
  cwd: string,
  signal?: AbortSignal,

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…