Aller au contenu
English

KimiHookEvents

import type { KimiHookEvents } from "@elie-laloum/outpost/core";
  • UserPromptSubmitRequis
    { readonly session_id: string; readonly session_title?: string; readonly client_type?: string; readonly cwd: string; readonly hook_event_name: "UserPromptSubmit"; readonly prompt: string; }
    Contenu natif de UserPromptSubmit fourni par Kimi, avec ses noms de champs d’origine. Les champs natifs supplémentaires sont tolérés à l’exécution.
  • UserPromptQueuedRequis
    { readonly session_id: string; readonly session_title?: string; readonly client_type?: string; readonly cwd: string; readonly hook_event_name: "UserPromptQueued"; readonly prompt_id?: string; readonly prompt: string; readonly queue_length?: number; }
    Contenu natif de UserPromptQueued fourni par Kimi, avec ses noms de champs d’origine. Les champs natifs supplémentaires sont tolérés à l’exécution.
  • PreToolUseRequis
    { readonly session_id: string; readonly session_title?: string; readonly client_type?: string; readonly cwd: string; readonly hook_event_name: "PreToolUse"; readonly tool_name: string; readonly tool_input?: Readonly<Record<string, unknown>>; readonly tool_call_id?: string; }
    Contenu natif de PreToolUse fourni par Kimi, avec ses noms de champs d’origine. Les champs natifs supplémentaires sont tolérés à l’exécution.
  • StopRequis
    { readonly session_id: string; readonly session_title?: string; readonly client_type?: string; readonly cwd: string; readonly hook_event_name: "Stop"; readonly stop_hook_active?: boolean; }
    Contenu natif de Stop fourni par Kimi, avec ses noms de champs d’origine. Les champs natifs supplémentaires sont tolérés à l’exécution.
  • TurnStartedRequis
    { readonly session_id: string; readonly session_title?: string; readonly client_type?: string; readonly cwd: string; readonly hook_event_name: "TurnStarted"; readonly turn_id?: string; readonly origin_kind?: string; readonly origin_name?: string; readonly prompt: string; }
    Contenu natif de TurnStarted fourni par Kimi, avec ses noms de champs d’origine. Les champs natifs supplémentaires sont tolérés à l’exécution.
  • PostToolUseRequis
    { readonly session_id: string; readonly session_title?: string; readonly client_type?: string; readonly cwd: string; readonly hook_event_name: "PostToolUse"; readonly tool_name: string; readonly tool_input?: Readonly<Record<string, unknown>>; readonly tool_output?: unknown; }
    Contenu natif de PostToolUse fourni par Kimi, avec ses noms de champs d’origine. Les champs natifs supplémentaires sont tolérés à l’exécution.
  • PostToolUseFailureRequis
    { readonly session_id: string; readonly session_title?: string; readonly client_type?: string; readonly cwd: string; readonly hook_event_name: "PostToolUseFailure"; readonly tool_name: string; readonly tool_input?: Readonly<Record<string, unknown>>; readonly error?: string; }
    Contenu natif de PostToolUseFailure fourni par Kimi, avec ses noms de champs d’origine. Les champs natifs supplémentaires sont tolérés à l’exécution.
  • PermissionRequestRequis
    { readonly session_id: string; readonly session_title?: string; readonly client_type?: string; readonly cwd: string; readonly hook_event_name: "PermissionRequest"; readonly tool_name: string; readonly tool_input?: Readonly<Record<string, unknown>>; }
    Contenu natif de PermissionRequest fourni par Kimi, avec ses noms de champs d’origine. Les champs natifs supplémentaires sont tolérés à l’exécution.
  • PermissionResultRequis
    { readonly session_id: string; readonly session_title?: string; readonly client_type?: string; readonly cwd: string; readonly hook_event_name: "PermissionResult"; readonly tool_name: string; readonly tool_input?: Readonly<Record<string, unknown>>; readonly decision?: string; }
    Contenu natif de PermissionResult fourni par Kimi, avec ses noms de champs d’origine. Les champs natifs supplémentaires sont tolérés à l’exécution.
  • SessionStartRequis
    { readonly session_id: string; readonly session_title?: string; readonly client_type?: string; readonly cwd: string; readonly hook_event_name: "SessionStart"; readonly source?: string; readonly model?: string; readonly profile?: string; }
    Contenu natif de SessionStart fourni par Kimi, avec ses noms de champs d’origine. Les champs natifs supplémentaires sont tolérés à l’exécution.
  • SessionEndRequis
    { readonly session_id: string; readonly session_title?: string; readonly client_type?: string; readonly cwd: string; readonly hook_event_name: "SessionEnd"; readonly reason?: string; }
    Contenu natif de SessionEnd fourni par Kimi, avec ses noms de champs d’origine. Les champs natifs supplémentaires sont tolérés à l’exécution.
  • SessionHeartbeatRequis
    { readonly session_id: string; readonly session_title?: string; readonly client_type?: string; readonly cwd: string; readonly hook_event_name: "SessionHeartbeat"; readonly uptime_ms?: number; }
    Contenu natif de SessionHeartbeat fourni par Kimi, avec ses noms de champs d’origine. Les champs natifs supplémentaires sont tolérés à l’exécution.
  • SubagentStartRequis
    { readonly session_id: string; readonly session_title?: string; readonly client_type?: string; readonly cwd: string; readonly hook_event_name: "SubagentStart"; readonly agent_name?: string; readonly prompt: string; }
    Contenu natif de SubagentStart fourni par Kimi, avec ses noms de champs d’origine. Les champs natifs supplémentaires sont tolérés à l’exécution.
  • SubagentStopRequis
    { readonly session_id: string; readonly session_title?: string; readonly client_type?: string; readonly cwd: string; readonly hook_event_name: "SubagentStop"; readonly agent_name?: string; readonly response?: string; }
    Contenu natif de SubagentStop fourni par Kimi, avec ses noms de champs d’origine. Les champs natifs supplémentaires sont tolérés à l’exécution.
  • TaskStartedRequis
    { readonly session_id: string; readonly session_title?: string; readonly client_type?: string; readonly cwd: string; readonly hook_event_name: "TaskStarted"; readonly task_id?: string; readonly description?: string; readonly detached?: boolean; }
    Contenu natif de TaskStarted fourni par Kimi, avec ses noms de champs d’origine. Les champs natifs supplémentaires sont tolérés à l’exécution.
  • StopFailureRequis
    { readonly session_id: string; readonly session_title?: string; readonly client_type?: string; readonly cwd: string; readonly hook_event_name: "StopFailure"; readonly error_type?: string; readonly error_message?: string; }
    Contenu natif de StopFailure fourni par Kimi, avec ses noms de champs d’origine. Les champs natifs supplémentaires sont tolérés à l’exécution.
  • InterruptRequis
    { readonly session_id: string; readonly session_title?: string; readonly client_type?: string; readonly cwd: string; readonly hook_event_name: "Interrupt"; readonly reason?: string; }
    Contenu natif de Interrupt fourni par Kimi, avec ses noms de champs d’origine. Les champs natifs supplémentaires sont tolérés à l’exécution.
  • PreCompactRequis
    { readonly session_id: string; readonly session_title?: string; readonly client_type?: string; readonly cwd: string; readonly hook_event_name: "PreCompact"; readonly trigger?: string; }
    Contenu natif de PreCompact fourni par Kimi, avec ses noms de champs d’origine. Les champs natifs supplémentaires sont tolérés à l’exécution.
  • PostCompactRequis
    { readonly session_id: string; readonly session_title?: string; readonly client_type?: string; readonly cwd: string; readonly hook_event_name: "PostCompact"; readonly trigger?: string; }
    Contenu natif de PostCompact fourni par Kimi, avec ses noms de champs d’origine. Les champs natifs supplémentaires sont tolérés à l’exécution.
  • NotificationRequis
    { readonly session_id: string; readonly session_title?: string; readonly client_type?: string; readonly cwd: string; readonly hook_event_name: "Notification"; readonly notification_type?: string; readonly title?: string; readonly body?: string; }
    Contenu natif de Notification fourni par Kimi, avec ses noms de champs d’origine. Les champs natifs supplémentaires sont tolérés à l’exécution.
export interface KimiHookEvents {
  readonly UserPromptSubmit: {
    readonly session_id: string;
    readonly session_title?: string;
    readonly client_type?: string;
    readonly cwd: string;
    readonly hook_event_name: "UserPromptSubmit";
    readonly prompt: string;
  };
  readonly UserPromptQueued: {
    readonly session_id: string;
    readonly session_title?: string;
    readonly client_type?: string;
    readonly cwd: string;
    readonly hook_event_name: "UserPromptQueued";
    readonly prompt_id?: string;
    readonly prompt: string;
    readonly queue_length?: number;
  };
  readonly PreToolUse: {
    readonly session_id: string;
    readonly session_title?: string;
    readonly client_type?: string;
    readonly cwd: string;
    readonly hook_event_name: "PreToolUse";
    readonly tool_name: string;
    readonly tool_input?: Readonly<Record<string, unknown>>;
    readonly tool_call_id?: string;
  };
  readonly Stop: {
    readonly session_id: string;
    readonly session_title?: string;
    readonly client_type?: string;
    readonly cwd: string;
    readonly hook_event_name: "Stop";
    readonly stop_hook_active?: boolean;
  };
  readonly TurnStarted: {
    readonly session_id: string;
    readonly session_title?: string;
    readonly client_type?: string;
    readonly cwd: string;
    readonly hook_event_name: "TurnStarted";
    readonly turn_id?: string;
    readonly origin_kind?: string;
    readonly origin_name?: string;
    readonly prompt: string;
  };
  readonly PostToolUse: {
    readonly session_id: string;
    readonly session_title?: string;
    readonly client_type?: string;
    readonly cwd: string;
    readonly hook_event_name: "PostToolUse";
    readonly tool_name: string;
    readonly tool_input?: Readonly<Record<string, unknown>>;
    readonly tool_output?: unknown;
  };
  readonly PostToolUseFailure: {
    readonly session_id: string;
    readonly session_title?: string;
    readonly client_type?: string;
    readonly cwd: string;
    readonly hook_event_name: "PostToolUseFailure";
    readonly tool_name: string;
    readonly tool_input?: Readonly<Record<string, unknown>>;
    readonly error?: string;
  };
  readonly PermissionRequest: {
    readonly session_id: string;
    readonly session_title?: string;
    readonly client_type?: string;
    readonly cwd: string;
    readonly hook_event_name: "PermissionRequest";
    readonly tool_name: string;
    readonly tool_input?: Readonly<Record<string, unknown>>;
  };
  readonly PermissionResult: {
    readonly session_id: string;
    readonly session_title?: string;
    readonly client_type?: string;
    readonly cwd: string;
    readonly hook_event_name: "PermissionResult";
    readonly tool_name: string;
    readonly tool_input?: Readonly<Record<string, unknown>>;
    readonly decision?: string;
  };
  readonly SessionStart: {
    readonly session_id: string;
    readonly session_title?: string;
    readonly client_type?: string;
    readonly cwd: string;
    readonly hook_event_name: "SessionStart";
    readonly source?: string;
    readonly model?: string;
    readonly profile?: string;
  };
  readonly SessionEnd: {
    readonly session_id: string;
    readonly session_title?: string;
    readonly client_type?: string;
    readonly cwd: string;
    readonly hook_event_name: "SessionEnd";
    readonly reason?: string;
  };
  readonly SessionHeartbeat: {
    readonly session_id: string;
    readonly session_title?: string;
    readonly client_type?: string;
    readonly cwd: string;
    readonly hook_event_name: "SessionHeartbeat";
    readonly uptime_ms?: number;
  };
  readonly SubagentStart: {
    readonly session_id: string;
    readonly session_title?: string;
    readonly client_type?: string;
    readonly cwd: string;
    readonly hook_event_name: "SubagentStart";
    readonly agent_name?: string;
    readonly prompt: string;
  };
  readonly SubagentStop: {
    readonly session_id: string;
    readonly session_title?: string;
    readonly client_type?: string;
    readonly cwd: string;
    readonly hook_event_name: "SubagentStop";
    readonly agent_name?: string;
    readonly response?: string;
  };
  readonly TaskStarted: {
    readonly session_id: string;
    readonly session_title?: string;
    readonly client_type?: string;
    readonly cwd: string;
    readonly hook_event_name: "TaskStarted";
    readonly task_id?: string;
    readonly description?: string;
    readonly detached?: boolean;
  };
  readonly StopFailure: {
    readonly session_id: string;
    readonly session_title?: string;
    readonly client_type?: string;
    readonly cwd: string;
    readonly hook_event_name: "StopFailure";
    readonly error_type?: string;
    readonly error_message?: string;
  };
  readonly Interrupt: {
    readonly session_id: string;
    readonly session_title?: string;
    readonly client_type?: string;
    readonly cwd: string;
    readonly hook_event_name: "Interrupt";
    readonly reason?: string;
  };
  readonly PreCompact: {
    readonly session_id: string;
    readonly session_title?: string;
    readonly client_type?: string;
    readonly cwd: string;
    readonly hook_event_name: "PreCompact";
    readonly trigger?: string;
  };
  readonly PostCompact: {
    readonly session_id: string;
    readonly session_title?: string;
    readonly client_type?: string;
    readonly cwd: string;
    readonly hook_event_name: "PostCompact";
    readonly trigger?: string;
  };
  readonly Notification: {
    readonly session_id: string;
    readonly session_title?: string;
    readonly client_type?: string;
    readonly cwd: string;
    readonly hook_event_name: "Notification";
    readonly notification_type?: string;
    readonly title?: string;
    readonly body?: string;
  };
}