Agent Maturity Compass API - v1.2.0
    Preparing search index...

    Function mapProviderHookEvent

    • Parameters

      • input: {
            agentId: string;
            observedAt?: number;
            provider: HookProvider;
            rawInput: string;
            resolvedActionId?: string;
        }

      Returns {
          action: {
              error?: { code?: string; message?: string };
              id: string;
              input?: unknown;
              output?: unknown;
              rationale?: string;
              status?: "success" | "timeout" | "cancelled" | "failure";
              type: "other" | "skill_use" | "tool_call" | "subagent_spawn";
          };
          aep_version: "0.1";
          agent: {
              display_name?: string;
              instance_id?: string;
              slug: string;
              surface?: string;
              version?: string;
          };
          attachments?: {
              data_uri?: string;
              duration_ms?: number;
              height?: number;
              mime_type?: string;
              name?: string;
              size_bytes?: number;
              thumbnail_data_uri?: string;
              thumbnail_url?: string;
              type: "image"
              | "audio"
              | "file"
              | "video";
              url?: string;
              width?: number;
          }[];
          content?: {
              original_length?: number;
              style?: string;
              text: string;
              truncated?: boolean;
              type: | "thought"
              | "answer"
              | "response"
              | "question"
              | "plan"
              | "prompt"
              | "notification";
          }[];
          decision?: {
              by?: string;
              feedback?: string;
              outcome: "denied"
              | "info"
              | "approved";
              policy_id?: string;
              reason?: string;
              response_time_ms?: number;
              time?: string;
          };
          extensions?: Record<string, unknown>;
          hook?: string;
          id: string;
          lifecycle?: { reason?: string; source?: string; trigger?: string };
          metrics?: Record<string, number>;
          model?: {
              display_name?: string;
              effort?: string;
              id?: string;
              provider?: string;
          };
          server?: {
              command?: string;
              description?: string;
              icon?: { mime_type?: string; src: string };
              id?: string;
              name?: string;
              repository_url?: string;
              title?: string;
              transport?: string;
              url?: string;
              version?: string;
              website_url?: string;
          };
          session?: {
              conversation_id?: string;
              id?: string;
              parent?: {
                  conversation_id?: string;
                  relation?: "resume"
                  | "continuation"
                  | "fork"
                  | "subagent";
                  spawning_action_id?: string;
              };
              permission_mode?: string;
              root_conversation_id?: string;
              turn_id?: string;
          };
          skill?: {
              description?: string;
              id?: string;
              name: string;
              path?: string;
              source?: "user"
              | "builtin"
              | "marketplace"
              | "project";
              version?: string;
          };
          time: string;
          tool?: {
              description?: string;
              display_name?: string;
              icon?: { mime_type?: string; src: string };
              id?: string;
              name: string;
              original_name?: string;
              schema?: unknown;
              type: "native" | "mcp" | "extension" | "other" | "connector";
              version?: string;
          };
          type: | "action.requested"
          | "action.completed"
          | "action.failed"
          | "action.denied";
          user?: {
              display_name?: string;
              email?: string;
              id?: string;
              login?: string;
          };
          workspace?: { cwd?: string; project_path?: string; roots?: string[] };
      }