{"version":3,"file":"get-action-run.mjs","names":[],"sources":["../../src/actions/get-action-run.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { supabase } from \"../app\";\n\nexport const SupabaseGetActionRunInput = z.object({\n  ref: z.string().describe(\"The unique reference ID of the Supabase project. Must be exactly 20 lowercase alphanumeric characters.\"),\n  run_id: z.string().describe(\"The unique identifier of the action run to retrieve.\"),\n}).describe(\"Request schema for retrieving the status of an action run.\");\nconst SupabaseGetActionRun_RunStepSchema = z.object({\n  name: z.string().describe(\"Name of the run step.\").nullable(),\n  status: z.string().describe(\"Status of the run step (e.g., 'pending', 'running', 'completed', 'failed').\").nullable(),\n  created_at: z.string().describe(\"Timestamp when the run step was created, in ISO 8601 format.\").nullable(),\n  updated_at: z.string().describe(\"Timestamp when the run step was last updated, in ISO 8601 format.\").nullable(),\n}).passthrough().describe(\"Schema for a single step in the action run.\");\nexport const SupabaseGetActionRunOutput = z.object({\n  id: z.string().describe(\"Unique identifier of the action run.\").nullable(),\n  workdir: z.string().describe(\"Working directory used for the action run.\").nullable().optional(),\n  branch_id: z.string().describe(\"Identifier of the branch associated with this action run.\").nullable(),\n  run_steps: z.array(SupabaseGetActionRun_RunStepSchema).describe(\"List of steps in the action run, each with its own status and timestamps.\"),\n  created_at: z.string().describe(\"Timestamp when the action run was created, in ISO 8601 format.\").nullable(),\n  git_config: z.record(z.string(), z.unknown()).describe(\"Git configuration used for the action run, if applicable. Structure is not specified in the API documentation.\").nullable().optional(),\n  updated_at: z.string().describe(\"Timestamp when the action run was last updated, in ISO 8601 format.\").nullable(),\n  check_run_id: z.number().describe(\"Identifier of the associated check run, if applicable.\").nullable().optional(),\n}).passthrough().describe(\"Response schema for retrieving the status of an action run.\\n\\nReturns detailed information about an action run including its steps,\\nstatus, timestamps, and configuration.\");\n\nexport const supabaseGetActionRun: AppAction<\n  typeof SupabaseGetActionRunInput,\n  typeof SupabaseGetActionRunOutput,\n  typeof supabase.credential\n> = action(\"SUPABASE_GET_ACTION_RUN\", {\n  slug: \"supabase-get-action-run\",\n  name: \"Get action run status\",\n  description: \"Retrieves the status and details of a specific action run, including its steps, timestamps, and configuration. Use this to monitor or check the progress of an action execution.\",\n  input: SupabaseGetActionRunInput,\n  output: SupabaseGetActionRunOutput,\n});\n"],"mappings":";;;;AAMA,MAAa,4BAA4B,EAAE,OAAO;CAChD,KAAK,EAAE,OAAO,CAAC,CAAC,SAAS,wGAAwG;CACjI,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,sDAAsD;AACpF,CAAC,CAAC,CAAC,SAAS,4DAA4D;AACxE,MAAM,qCAAqC,EAAE,OAAO;CAClD,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,uBAAuB,CAAC,CAAC,SAAS;CAC5D,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,6EAA6E,CAAC,CAAC,SAAS;CACpH,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,8DAA8D,CAAC,CAAC,SAAS;CACzG,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,mEAAmE,CAAC,CAAC,SAAS;AAChH,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,6CAA6C;AAYvE,MAAa,uBAIT,OAAO,2BAA2B;CACpC,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QApBwC,EAAE,OAAO;EACjD,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,sCAAsC,CAAC,CAAC,SAAS;EACzE,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,4CAA4C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC/F,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,2DAA2D,CAAC,CAAC,SAAS;EACrG,WAAW,EAAE,MAAM,kCAAkC,CAAC,CAAC,SAAS,2EAA2E;EAC3I,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,gEAAgE,CAAC,CAAC,SAAS;EAC3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