)]}'
{
  "commit": "12989b0cf7cb542f1286d53c3dce86ae1d56773b",
  "tree": "70b7cde65a4378b532c498725099a8a6380d74e6",
  "parents": [
    "4acf00626f50c342dc35f8525732074cf10e4d1a"
  ],
  "author": {
    "name": "Pokey Rule",
    "email": "755842+pokey@users.noreply.github.com",
    "time": "Fri May 23 11:27:47 2025 +0100"
  },
  "committer": {
    "name": "Pokey Rule",
    "email": "755842+pokey@users.noreply.github.com",
    "time": "Fri May 23 11:27:47 2025 +0100"
  },
  "message": "fix: read API key from environment in host mode when not using skaband\n\nWhen running sketch in the default container mode with -skaband-addr\u003d,\nthe system was failing with \u0027x-api-key header is required\u0027 because the\nrunInHostMode function wasn\u0027t reading the ANTHROPIC_API_KEY environment\nvariable when skaband wasn\u0027t being used.\n\nThis change adds the missing logic to read the API key from environment\nvariables (ANTHROPIC_API_KEY for claude, or GEMINI_API_KEY for gemini)\nwhen skabandAddr is empty, matching the behavior in runInUnsafeMode.\n\nThe fix ensures that commands like:\nenvdir /path/to/env go run ./cmd/sketch -skaband-addr\u003d -prompt \u0027task\u0027\nnow work correctly by passing the API key to the Docker container\u0027s\ndockerfile creation process.\n\nCo-Authored-By: sketch \u003chello@sketch.dev\u003e\nChange-ID: s592f0c893cafc931k\n",
  "tree_diff": [
    {
      "type": "modify",
      "old_id": "656b7f856f7b41b09492e1d7a1a9799e66c59e81",
      "old_mode": 33188,
      "old_path": "cmd/sketch/main.go",
      "new_id": "775da54208afa0abca57c9084efc0538c4535edf",
      "new_mode": 33188,
      "new_path": "cmd/sketch/main.go"
    }
  ]
}
