Skip to content
Français

AntigravityHookEvents

import type { AntigravityHookEvents } from "@elie-laloum/outpost/core";
  • SessionStartRequired
    { readonly conversationId: string; readonly workspacePaths: readonly string[]; readonly transcriptPath?: string; readonly artifactDirectoryPath?: string; readonly modelName?: string; }
    Native SessionStart payload from Antigravity, retained with its original field names. Unknown additional native fields are tolerated at runtime.
  • PreToolUseRequired
    { readonly conversationId: string; readonly workspacePaths: readonly string[]; readonly transcriptPath?: string; readonly artifactDirectoryPath?: string; readonly modelName?: string; readonly toolCall?: { readonly name: string; readonly args: Readonly<Record<string, unknown>>; }; readonly stepIdx?: number; }
    Native PreToolUse payload from Antigravity, retained with its original field names. Unknown additional native fields are tolerated at runtime.
  • PostToolUseRequired
    { readonly conversationId: string; readonly workspacePaths: readonly string[]; readonly transcriptPath?: string; readonly artifactDirectoryPath?: string; readonly modelName?: string; readonly toolCall?: { readonly name: string; readonly args: Readonly<Record<string, unknown>>; }; readonly stepIdx?: number; readonly error?: string; }
    Native PostToolUse payload from Antigravity, retained with its original field names. Unknown additional native fields are tolerated at runtime.
  • PreInvocationRequired
    { readonly conversationId: string; readonly workspacePaths: readonly string[]; readonly transcriptPath?: string; readonly artifactDirectoryPath?: string; readonly modelName?: string; readonly invocationNum?: number; readonly initialNumSteps?: number; }
    Native PreInvocation payload from Antigravity, retained with its original field names. Unknown additional native fields are tolerated at runtime.
  • PostInvocationRequired
    { readonly conversationId: string; readonly workspacePaths: readonly string[]; readonly transcriptPath?: string; readonly artifactDirectoryPath?: string; readonly modelName?: string; readonly invocationNum?: number; readonly initialNumSteps?: number; }
    Native PostInvocation payload from Antigravity, retained with its original field names. Unknown additional native fields are tolerated at runtime.
  • StopRequired
    { readonly conversationId: string; readonly workspacePaths: readonly string[]; readonly transcriptPath?: string; readonly artifactDirectoryPath?: string; readonly modelName?: string; readonly executionNum?: number; readonly terminationReason?: string; readonly error?: string; readonly fullyIdle?: boolean; }
    Native Stop payload from Antigravity, retained with its original field names. Unknown additional native fields are tolerated at runtime.
export interface AntigravityHookEvents {
  readonly SessionStart: {
    readonly conversationId: string;
    readonly workspacePaths: readonly string[];
    readonly transcriptPath?: string;
    readonly artifactDirectoryPath?: string;
    readonly modelName?: string;
  };
  readonly PreToolUse: {
    readonly conversationId: string;
    readonly workspacePaths: readonly string[];
    readonly transcriptPath?: string;
    readonly artifactDirectoryPath?: string;
    readonly modelName?: string;
    readonly toolCall?: {
      readonly name: string;
      readonly args: Readonly<Record<string, unknown>>;
    };
    readonly stepIdx?: number;
  };
  readonly PostToolUse: {
    readonly conversationId: string;
    readonly workspacePaths: readonly string[];
    readonly transcriptPath?: string;
    readonly artifactDirectoryPath?: string;
    readonly modelName?: string;
    readonly toolCall?: {
      readonly name: string;
      readonly args: Readonly<Record<string, unknown>>;
    };
    readonly stepIdx?: number;
    readonly error?: string;
  };
  readonly PreInvocation: {
    readonly conversationId: string;
    readonly workspacePaths: readonly string[];
    readonly transcriptPath?: string;
    readonly artifactDirectoryPath?: string;
    readonly modelName?: string;
    readonly invocationNum?: number;
    readonly initialNumSteps?: number;
  };
  readonly PostInvocation: {
    readonly conversationId: string;
    readonly workspacePaths: readonly string[];
    readonly transcriptPath?: string;
    readonly artifactDirectoryPath?: string;
    readonly modelName?: string;
    readonly invocationNum?: number;
    readonly initialNumSteps?: number;
  };
  readonly Stop: {
    readonly conversationId: string;
    readonly workspacePaths: readonly string[];
    readonly transcriptPath?: string;
    readonly artifactDirectoryPath?: string;
    readonly modelName?: string;
    readonly executionNum?: number;
    readonly terminationReason?: string;
    readonly error?: string;
    readonly fullyIdle?: boolean;
  };
}