name: "Pullfrog Action"
description: "Execute coding agents with a prompt"
author: "Pullfrog"

inputs:
  prompt:
    description: "Prompt to send to the agent (string or JSON payload)"
    required: true
  effort:
    description: "Effort level: mini (fast), auto (default), max (most capable)"
    required: false
  timeout:
    description: "Maximum run duration (e.g., 10m, 1h30m). Default: 1h"
    required: false
  agent:
    description: "Agent to use: claude, codex, gemini, cursor, opencode"
    required: false
  cwd:
    description: "Working directory for the agent (defaults to GITHUB_WORKSPACE)"
    required: false
  web:
    description: "Web fetch permission: disabled or enabled (default: enabled)"
    required: false
  search:
    description: "Web search permission: disabled or enabled (default: enabled)"
    required: false
  push:
    description: "Git push permission: disabled (read-only, can't push) or enabled (can push). Default: enabled"
    required: false
  bash:
    description: "Bash permission: disabled, restricted (filters secrets from env vars), or enabled. Public repos default to restricted for security; private repos default to enabled."
    required: false
  token:
    description: "GitHub-provided token with job-scoped permissions. Do not set this unless you know what you are doing."
    required: false
    default: ${{ github.token }}

outputs:
  result:
    description: "It's set when the prompt explicitly requests it. It can be used to capture an actionable output for the next step in the workflow."

runs:
  using: "node24"
  main: "entry"
  post: "post"
  post-if: "failure() || cancelled()"

branding:
  icon: "code"
  color: "green"
