{"version":3,"file":"get-action-run.cjs","names":["z","action"],"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,4BAA4BA,IAAAA,EAAE,OAAO;CAChD,KAAKA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wGAAwG;CACjI,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sDAAsD;AACpF,CAAC,CAAC,CAAC,SAAS,4DAA4D;AACxE,MAAM,qCAAqCA,IAAAA,EAAE,OAAO;CAClD,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uBAAuB,CAAC,CAAC,SAAS;CAC5D,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6EAA6E,CAAC,CAAC,SAAS;CACpH,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8DAA8D,CAAC,CAAC,SAAS;CACzG,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mEAAmE,CAAC,CAAC,SAAS;AAChH,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,6CAA6C;AACvE,MAAa,6BAA6BA,IAAAA,EAAE,OAAO;CACjD,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sCAAsC,CAAC,CAAC,SAAS;CACzE,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4CAA4C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC/F,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2DAA2D,CAAC,CAAC,SAAS;CACrG,WAAWA,IAAAA,EAAE,MAAM,kCAAkC,CAAC,CAAC,SAAS,2EAA2E;CAC3I,YAAYA,IAAAA,EAAE,OAAO,C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