Aller au contenu
English

CodexHookEvents

import type { CodexHookEvents } from "@elie-laloum/outpost/core";
  • SessionStartRequis
    { readonly session_id: string; readonly transcript_path?: string | null; readonly cwd: string; readonly hook_event_name: "SessionStart"; readonly model?: string; readonly turn_id?: string; readonly permission_mode?: string; readonly source?: string; readonly agent_type?: string; readonly session_title?: string; }
    Contenu natif de SessionStart fourni par Codex, 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 transcript_path?: string | null; readonly cwd: string; readonly hook_event_name: "SessionEnd"; readonly model?: string; readonly turn_id?: string; readonly permission_mode?: string; readonly reason?: string; }
    Contenu natif de SessionEnd fourni par Codex, avec ses noms de champs d’origine. Les champs natifs supplémentaires sont tolérés à l’exécution.
  • UserPromptSubmitRequis
    { readonly session_id: string; readonly transcript_path?: string | null; readonly cwd: string; readonly hook_event_name: "UserPromptSubmit"; readonly model?: string; readonly turn_id?: string; readonly permission_mode?: string; readonly prompt: string; readonly session_title?: string; }
    Contenu natif de UserPromptSubmit fourni par Codex, 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 transcript_path?: string | null; readonly cwd: string; readonly hook_event_name: "PreToolUse"; readonly model?: string; readonly turn_id?: string; readonly permission_mode?: string; readonly tool_name: string; readonly tool_input?: unknown; readonly tool_use_id?: string; readonly mcp_server?: Readonly<Record<string, unknown>>; }
    Contenu natif de PreToolUse fourni par Codex, 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 transcript_path?: string | null; readonly cwd: string; readonly hook_event_name: "PermissionRequest"; readonly model?: string; readonly turn_id?: string; readonly permission_mode?: string; readonly tool_name: string; readonly tool_input?: unknown; readonly tool_use_id?: string; readonly permission_suggestions?: readonly unknown[]; readonly mcp_server?: Readonly<Record<string, unknown>>; }
    Contenu natif de PermissionRequest fourni par Codex, 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 transcript_path?: string | null; readonly cwd: string; readonly hook_event_name: "PostToolUse"; readonly model?: string; readonly turn_id?: string; readonly permission_mode?: string; readonly tool_name: string; readonly tool_input?: unknown; readonly tool_use_id?: string; readonly tool_response?: unknown; readonly mcp_server?: Readonly<Record<string, unknown>>; }
    Contenu natif de PostToolUse fourni par Codex, 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 transcript_path?: string | null; readonly cwd: string; readonly hook_event_name: "PreCompact"; readonly model?: string; readonly turn_id?: string; readonly permission_mode?: string; readonly trigger?: "manual" | "auto"; }
    Contenu natif de PreCompact fourni par Codex, 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 transcript_path?: string | null; readonly cwd: string; readonly hook_event_name: "PostCompact"; readonly model?: string; readonly turn_id?: string; readonly permission_mode?: string; readonly trigger?: "manual" | "auto"; }
    Contenu natif de PostCompact fourni par Codex, 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 transcript_path?: string | null; readonly cwd: string; readonly hook_event_name: "SubagentStart"; readonly model?: string; readonly turn_id?: string; readonly permission_mode?: string; readonly agent_id?: string; readonly agent_type?: string; }
    Contenu natif de SubagentStart fourni par Codex, 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 transcript_path?: string | null; readonly cwd: string; readonly hook_event_name: "SubagentStop"; readonly model?: string; readonly turn_id?: string; readonly permission_mode?: string; readonly agent_id?: string; readonly agent_type?: string; readonly agent_transcript_path?: string | null; readonly last_assistant_message?: string | null; readonly stop_hook_active?: boolean; }
    Contenu natif de SubagentStop fourni par Codex, 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 transcript_path?: string | null; readonly cwd: string; readonly hook_event_name: "Stop"; readonly model?: string; readonly turn_id?: string; readonly permission_mode?: string; readonly stop_hook_active?: boolean; readonly last_assistant_message?: string | null; }
    Contenu natif de Stop fourni par Codex, 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 transcript_path?: string | null; readonly cwd: string; readonly hook_event_name: "Interrupt"; readonly model?: string; readonly turn_id?: string; readonly permission_mode?: string; }
    Contenu natif de Interrupt fourni par Codex, avec ses noms de champs d’origine. Les champs natifs supplémentaires sont tolérés à l’exécution.
export interface CodexHookEvents {
  readonly SessionStart: {
    readonly session_id: string;
    readonly transcript_path?: string | null;
    readonly cwd: string;
    readonly hook_event_name: "SessionStart";
    readonly model?: string;
    readonly turn_id?: string;
    readonly permission_mode?: string;
    readonly source?: string;
    readonly agent_type?: string;
    readonly session_title?: string;
  };
  readonly SessionEnd: {
    readonly session_id: string;
    readonly transcript_path?: string | null;
    readonly cwd: string;
    readonly hook_event_name: "SessionEnd";
    readonly model?: string;
    readonly turn_id?: string;
    readonly permission_mode?: string;
    readonly reason?: string;
  };
  readonly UserPromptSubmit: {
    readonly session_id: string;
    readonly transcript_path?: string | null;
    readonly cwd: string;
    readonly hook_event_name: "UserPromptSubmit";
    readonly model?: string;
    readonly turn_id?: string;
    readonly permission_mode?: string;
    readonly prompt: string;
    readonly session_title?: string;
  };
  readonly PreToolUse: {
    readonly session_id: string;
    readonly transcript_path?: string | null;
    readonly cwd: string;
    readonly hook_event_name: "PreToolUse";
    readonly model?: string;
    readonly turn_id?: string;
    readonly permission_mode?: string;
    readonly tool_name: string;
    readonly tool_input?: unknown;
    readonly tool_use_id?: string;
    readonly mcp_server?: Readonly<Record<string, unknown>>;
  };
  readonly PermissionRequest: {
    readonly session_id: string;
    readonly transcript_path?: string | null;
    readonly cwd: string;
    readonly hook_event_name: "PermissionRequest";
    readonly model?: string;
    readonly turn_id?: string;
    readonly permission_mode?: string;
    readonly tool_name: string;
    readonly tool_input?: unknown;
    readonly tool_use_id?: string;
    readonly permission_suggestions?: readonly unknown[];
    readonly mcp_server?: Readonly<Record<string, unknown>>;
  };
  readonly PostToolUse: {
    readonly session_id: string;
    readonly transcript_path?: string | null;
    readonly cwd: string;
    readonly hook_event_name: "PostToolUse";
    readonly model?: string;
    readonly turn_id?: string;
    readonly permission_mode?: string;
    readonly tool_name: string;
    readonly tool_input?: unknown;
    readonly tool_use_id?: string;
    readonly tool_response?: unknown;
    readonly mcp_server?: Readonly<Record<string, unknown>>;
  };
  readonly PreCompact: {
    readonly session_id: string;
    readonly transcript_path?: string | null;
    readonly cwd: string;
    readonly hook_event_name: "PreCompact";
    readonly model?: string;
    readonly turn_id?: string;
    readonly permission_mode?: string;
    readonly trigger?: "manual" | "auto";
  };
  readonly PostCompact: {
    readonly session_id: string;
    readonly transcript_path?: string | null;
    readonly cwd: string;
    readonly hook_event_name: "PostCompact";
    readonly model?: string;
    readonly turn_id?: string;
    readonly permission_mode?: string;
    readonly trigger?: "manual" | "auto";
  };
  readonly SubagentStart: {
    readonly session_id: string;
    readonly transcript_path?: string | null;
    readonly cwd: string;
    readonly hook_event_name: "SubagentStart";
    readonly model?: string;
    readonly turn_id?: string;
    readonly permission_mode?: string;
    readonly agent_id?: string;
    readonly agent_type?: string;
  };
  readonly SubagentStop: {
    readonly session_id: string;
    readonly transcript_path?: string | null;
    readonly cwd: string;
    readonly hook_event_name: "SubagentStop";
    readonly model?: string;
    readonly turn_id?: string;
    readonly permission_mode?: string;
    readonly agent_id?: string;
    readonly agent_type?: string;
    readonly agent_transcript_path?: string | null;
    readonly last_assistant_message?: string | null;
    readonly stop_hook_active?: boolean;
  };
  readonly Stop: {
    readonly session_id: string;
    readonly transcript_path?: string | null;
    readonly cwd: string;
    readonly hook_event_name: "Stop";
    readonly model?: string;
    readonly turn_id?: string;
    readonly permission_mode?: string;
    readonly stop_hook_active?: boolean;
    readonly last_assistant_message?: string | null;
  };
  readonly Interrupt: {
    readonly session_id: string;
    readonly transcript_path?: string | null;
    readonly cwd: string;
    readonly hook_event_name: "Interrupt";
    readonly model?: string;
    readonly turn_id?: string;
    readonly permission_mode?: string;
  };
}