[
  {
    "tool": "Bash",
    "input": {
      "command": "node -e \"require('fs').writeFileSync('auto-first.txt','first')\"",
      "description": "Write 'first' to auto-first.txt via Node"
    },
    "escalationType": "hook",
    "reason": "Review the first command before it writes a file.",
    "sdkSuggestionsPresent": false,
    "sdkSuggestions": [],
    "response": {
      "behavior": "allow",
      "updatedInput": {
        "command": "node -e \"require('fs').writeFileSync('auto-first.txt','first')\"",
        "description": "Write 'first' to auto-first.txt via Node"
      }
    }
  },
  {
    "tool": "Monitor",
    "input": {
      "description": "First monitor",
      "timeout_ms": 1000,
      "command": "node -e \"require('fs').writeFileSync('first.txt','first');console.log('first')\""
    },
    "escalationType": "hook",
    "reason": "Review the first command before it writes a file.",
    "sdkSuggestionsPresent": false,
    "sdkSuggestions": [],
    "response": {
      "behavior": "allow",
      "updatedInput": {
        "description": "First monitor",
        "timeout_ms": 1000,
        "command": "node -e \"require('fs').writeFileSync('first.txt','first');console.log('first')\""
      },
      "decisionClassification": "user_permanent",
      "updatedPermissions": [
        {
          "type": "addRules",
          "rules": [
            {
              "toolName": "Monitor"
            }
          ],
          "behavior": "allow",
          "destination": "session"
        }
      ]
    }
  },
  {
    "tool": "ListAgents",
    "input": {},
    "escalationType": "hook",
    "reason": "\u001b[33mHook needs confirmation\u001b[0m",
    "sdkSuggestionsPresent": false,
    "sdkSuggestions": [],
    "response": "Waiting at capture time"
  },
  {
    "tool": "Bash",
    "input": {
      "command": "git push origin main",
      "description": "Push local main branch to origin"
    },
    "escalationType": "rule",
    "reason": null,
    "sdkSuggestionsPresent": false,
    "sdkSuggestions": [],
    "response": {
      "behavior": "allow",
      "updatedInput": {
        "command": "git push origin main",
        "description": "Push local main branch to origin"
      }
    }
  },
  {
    "tool": "Bash",
    "input": {
      "command": "git push origin main",
      "description": "Push local main to origin"
    },
    "escalationType": "rule",
    "reason": null,
    "sdkSuggestionsPresent": false,
    "sdkSuggestions": [],
    "response": {
      "behavior": "allow",
      "updatedInput": {
        "command": "git push origin main",
        "description": "Push local main to origin"
      }
    }
  },
  {
    "tool": "Bash",
    "input": {
      "command": "node -e \"require('fs').writeFileSync('first.txt','first')\"",
      "description": "Write first.txt with node"
    },
    "escalationType": "hook",
    "reason": "Review the first command before it writes a file.",
    "sdkSuggestionsPresent": false,
    "sdkSuggestions": [],
    "response": {
      "behavior": "allow",
      "updatedInput": {
        "command": "node -e \"require('fs').writeFileSync('first.txt','first')\"",
        "description": "Write first.txt with node"
      },
      "decisionClassification": "user_permanent",
      "updatedPermissions": [
        {
          "type": "addRules",
          "rules": [
            {
              "toolName": "Bash"
            }
          ],
          "behavior": "allow",
          "destination": "session"
        }
      ]
    }
  }
]
