iiRecord
Agentic AI Atlas · adapters-triggers action step 9: Run adapters
github-action-step:triggers-action-run-adaptersa5c.ai
II.
GithubActionStep JSON

github-action-step:triggers-action-run-adapters

Structured · live

adapters-triggers action step 9: Run adapters json

Inspect the normalized record payload exactly as the atlas UI reads it.

File · extensions/github-action-steps/triggers-action-steps.yamlCluster · extensions
Record JSON
{
  "id": "github-action-step:triggers-action-run-adapters",
  "_kind": "GithubActionStep",
  "_file": "extensions/github-action-steps/triggers-action-steps.yaml",
  "_cluster": "extensions",
  "attributes": {
    "displayName": "adapters-triggers action step 9: Run adapters",
    "order": 9,
    "stepName": "Run adapters",
    "shell": "bash",
    "stepId": "adapters",
    "workingDirectory": "${{ inputs.working-directory }}",
    "conditional": "${{ steps.trigger.outputs.matched == 'true' }}",
    "envVars": [
      "ACTION_ROOT=${{ github.action_path }}",
      "INPUT_COMMAND=${{ inputs.command }}",
      "INPUT_HARNESS=${{ inputs.harness || inputs.adapter }}",
      "INPUT_PROVIDER=${{ inputs.provider }}",
      "INPUT_MODEL=${{ inputs.model }}",
      "INPUT_PROMPT=${{ inputs.prompt }}",
      "INPUT_INTERACTION_MODE=${{ inputs.interaction-mode }}",
      "INPUT_MAX_TURNS=${{ inputs.max-turns }}",
      "INPUT_WITH_PROXY=${{ inputs.with-proxy }}",
      "INPUT_PROXY_LOG_LEVEL=${{ inputs.proxy-log-level }}",
      "INPUT_BABYSITTER_PLUGIN=${{ inputs.babysitter-plugin }}",
      "INPUT_BABYSITTER_PREFIX=${{ inputs.babysitter-prompt-prefix }}",
      "INPUT_ARGS=${{ inputs.args }}",
      "INPUT_ARGS_JSON=${{ inputs.args-json }}",
      "AGENT_MUX_TRIGGER_EVENT_PATH=${{ steps.trigger.outputs.event }}"
    ],
    "runScript": "set -euo pipefail\nREPO_ROOT=$(cd \"$ACTION_ROOT/../..\" && pwd)\nADAPTERS=\"node $REPO_ROOT/packages/adapters/cli/dist/index.js\"\nARGS=()\nif [ \"$INPUT_COMMAND\" = \"launch\" ] || [ \"$INPUT_COMMAND\" = \"run\" ]; then\n  ARGS+=(\"$INPUT_COMMAND\")\n  [ -n \"$INPUT_HARNESS\" ] && ARGS+=(\"$INPUT_HARNESS\")\n  [ -n \"$INPUT_PROVIDER\" ] && ARGS+=(\"$INPUT_PROVIDER\")\nelse\n  ARGS+=(\"$INPUT_COMMAND\")\nfi\n[ -n \"$INPUT_MODEL\" ] && ARGS+=(--model \"$INPUT_MODEL\")\nif [ -n \"$INPUT_PROMPT\" ]; then\n  EFFECTIVE_PROMPT=\"$INPUT_PROMPT\"\n  if [ \"$INPUT_BABYSITTER_PLUGIN\" = \"true\" ] && [ -n \"$INPUT_BABYSITTER_PREFIX\" ]; then\n    EFFECTIVE_PROMPT=\"$INPUT_BABYSITTER_PREFIX $INPUT_PROMPT\"\n  fi\n  ARGS+=(--prompt \"$EFFECTIVE_PROMPT\")\nfi\ncase \"$INPUT_INTERACTION_MODE\" in\n  non-interactive) ARGS+=(--no-interactive) ;;\n  bridged-hooks) ARGS+=(--no-interactive --bridge-hooks) ;;\n  bridged-interactive) ARGS+=(--no-interactive --bridge-interactive) ;;\nesac\n[ -n \"$INPUT_MAX_TURNS\" ] && ARGS+=(--max-turns \"$INPUT_MAX_TURNS\")\nif [ \"$INPUT_WITH_PROXY\" = \"true\" ]; then\n  ARGS+=(--with-proxy-if-needed)\n  [ -n \"$INPUT_PROXY_LOG_LEVEL\" ] && ARGS+=(--proxy-log-level \"$INPUT_PROXY_LOG_LEVEL\")\nfi\nARGS+=(--yolo)\nif [ -n \"$INPUT_ARGS_JSON\" ]; then\n  mapfile -t EXTRA_ARGS < <(node -e \"const value = JSON.parse(process.env.INPUT_ARGS_JSON || '[]'); if (!Array.isArray(value)) throw new Error('args-json must be a JSON array'); for (const item of value) console.log(String(item));\")\n  ARGS+=(\"${EXTRA_ARGS[@]}\")\nelif [ -n \"$INPUT_ARGS\" ]; then\n  read -r -a EXTRA_ARGS <<< \"$INPUT_ARGS\"\n  ARGS+=(\"${EXTRA_ARGS[@]}\")\nfi\nif $ADAPTERS \"${ARGS[@]}\"; then\n  echo \"exit-code=0\" >> \"$GITHUB_OUTPUT\"\nelse\n  status=$?\n  echo \"exit-code=$status\" >> \"$GITHUB_OUTPUT\"\n  exit \"$status\"\nfi\n",
    "sourceCitation": "packages/triggers-adapter/action.yml:270-360"
  },
  "outgoingEdges": [
    {
      "from": "github-action-step:triggers-action-run-adapters",
      "to": "operational-trigger:adapters-triggers-action",
      "kind": "executed_by_trigger",
      "attributes": {}
    }
  ],
  "incomingEdges": [
    {
      "from": "operational-trigger:adapters-triggers-action",
      "to": "github-action-step:triggers-action-run-adapters",
      "kind": "executes_step",
      "attributes": {}
    }
  ]
}