Skip to content
Français

KimiHookDecisions

import type { KimiHookDecisions } from "@elie-laloum/outpost/core";
  • UserPromptSubmitRequired
    string | { readonly hookSpecificOutput?: { readonly permissionDecision: "deny"; readonly permissionDecisionReason?: string; }; }
    Accepted native output for UserPromptSubmit; never means this event accepts no callback decision. Returning nothing preserves the native flow.
  • UserPromptQueuedRequired
    never
    Accepted native output for UserPromptQueued; never means this event accepts no callback decision. Returning nothing preserves the native flow.
  • PreToolUseRequired
    string | { readonly hookSpecificOutput?: { readonly permissionDecision: "deny"; readonly permissionDecisionReason?: string; }; }
    Accepted native output for PreToolUse; never means this event accepts no callback decision. Returning nothing preserves the native flow.
  • StopRequired
    string | { readonly hookSpecificOutput?: { readonly permissionDecision: "deny"; readonly permissionDecisionReason?: string; }; }
    Accepted native output for Stop; never means this event accepts no callback decision. Returning nothing preserves the native flow.
  • TurnStartedRequired
    never
    Accepted native output for TurnStarted; never means this event accepts no callback decision. Returning nothing preserves the native flow.
  • PostToolUseRequired
    never
    Accepted native output for PostToolUse; never means this event accepts no callback decision. Returning nothing preserves the native flow.
  • PostToolUseFailureRequired
    never
    Accepted native output for PostToolUseFailure; never means this event accepts no callback decision. Returning nothing preserves the native flow.
  • PermissionRequestRequired
    never
    Accepted native output for PermissionRequest; never means this event accepts no callback decision. Returning nothing preserves the native flow.
  • PermissionResultRequired
    never
    Accepted native output for PermissionResult; never means this event accepts no callback decision. Returning nothing preserves the native flow.
  • SessionStartRequired
    never
    Accepted native output for SessionStart; never means this event accepts no callback decision. Returning nothing preserves the native flow.
  • SessionEndRequired
    never
    Accepted native output for SessionEnd; never means this event accepts no callback decision. Returning nothing preserves the native flow.
  • SessionHeartbeatRequired
    never
    Accepted native output for SessionHeartbeat; never means this event accepts no callback decision. Returning nothing preserves the native flow.
  • SubagentStartRequired
    never
    Accepted native output for SubagentStart; never means this event accepts no callback decision. Returning nothing preserves the native flow.
  • SubagentStopRequired
    never
    Accepted native output for SubagentStop; never means this event accepts no callback decision. Returning nothing preserves the native flow.
  • TaskStartedRequired
    never
    Accepted native output for TaskStarted; never means this event accepts no callback decision. Returning nothing preserves the native flow.
  • StopFailureRequired
    never
    Accepted native output for StopFailure; never means this event accepts no callback decision. Returning nothing preserves the native flow.
  • InterruptRequired
    never
    Accepted native output for Interrupt; never means this event accepts no callback decision. Returning nothing preserves the native flow.
  • PreCompactRequired
    never
    Accepted native output for PreCompact; never means this event accepts no callback decision. Returning nothing preserves the native flow.
  • PostCompactRequired
    never
    Accepted native output for PostCompact; never means this event accepts no callback decision. Returning nothing preserves the native flow.
  • NotificationRequired
    never
    Accepted native output for Notification; never means this event accepts no callback decision. Returning nothing preserves the native flow.
export interface KimiHookDecisions {
  readonly UserPromptSubmit:
    | string
    | {
        readonly hookSpecificOutput?: {
          readonly permissionDecision: "deny";
          readonly permissionDecisionReason?: string;
        };
      };
  readonly UserPromptQueued: never;
  readonly PreToolUse:
    | string
    | {
        readonly hookSpecificOutput?: {
          readonly permissionDecision: "deny";
          readonly permissionDecisionReason?: string;
        };
      };
  readonly Stop:
    | string
    | {
        readonly hookSpecificOutput?: {
          readonly permissionDecision: "deny";
          readonly permissionDecisionReason?: string;
        };
      };
  readonly TurnStarted: never;
  readonly PostToolUse: never;
  readonly PostToolUseFailure: never;
  readonly PermissionRequest: never;
  readonly PermissionResult: never;
  readonly SessionStart: never;
  readonly SessionEnd: never;
  readonly SessionHeartbeat: never;
  readonly SubagentStart: never;
  readonly SubagentStop: never;
  readonly TaskStarted: never;
  readonly StopFailure: never;
  readonly Interrupt: never;
  readonly PreCompact: never;
  readonly PostCompact: never;
  readonly Notification: never;
}