{"version":3,"file":"get-action-run-logs.mjs","names":[],"sources":["../../src/actions/get-action-run-logs.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 SupabaseGetActionRunLogsInput = z.object({\n  ref: z.string().describe(\"The unique reference ID of the Supabase project. This is visible in your Supabase project URL (e.g., https://supabase.com/dashboard/project/{ref}).\"),\n  run_id: z.string().describe(\"The unique identifier for the action run. This is returned when an action is triggered or can be retrieved from the actions list.\"),\n}).describe(\"Request schema for retrieving logs of a Supabase action run.\");\nexport const SupabaseGetActionRunLogsOutput = z.object({\n  logs: z.string().describe(\"Plain text log output from the action run. Contains all logged messages, errors, and output from the action execution.\").nullable(),\n}).passthrough().describe(\"Response schema containing the logs from an action run.\");\n\nexport const supabaseGetActionRunLogs: AppAction<\n  typeof SupabaseGetActionRunLogsInput,\n  typeof SupabaseGetActionRunLogsOutput,\n  typeof supabase.credential\n> = action(\"SUPABASE_GET_ACTION_RUN_LOGS\", {\n  slug: \"supabase-get-action-run-logs\",\n  name: \"Get action run logs\",\n  description: \"Retrieves the execution logs for a specific action run by its ID. Use this to debug action executions, view output messages, and investigate errors that occurred during action runs.\",\n  input: SupabaseGetActionRunLogsInput,\n  output: SupabaseGetActionRunLogsOutput,\n});\n"],"mappings":";;;AAcA,MAAa,2BAIT,OAAO,gCAAgC;CACzC,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAhB2C,EAAE,OAAO;EACpD,KAAK,EAAE,OAAO,CAAC,CAAC,SAAS,qJAAqJ;EAC9K,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,mIAAmI;CACjK,CAAC,CAAC,CAAC,SAAS,8DAaH;CACP,QAb4C,EAAE,OAAO,EACrD,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,wHAAwH,CAAC,CAAC,SAAS,EAC/J,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,yDAWhB;AACV,CAAC"}