[
  {
    "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": "Waiting at capture time"
  },
  {
    "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": []
    }
  },
  {
    "tool": "Monitor",
    "input": {
      "description": "Second monitor",
      "timeout_ms": 1000,
      "command": "node -e \"require('fs').writeFileSync('second.txt','second');console.log('second')\""
    },
    "escalationType": "other",
    "reason": "This command requires approval",
    "sdkSuggestionsPresent": true,
    "sdkSuggestions": [
      {
        "type": "addRules",
        "rules": [
          {
            "toolName": "Bash",
            "ruleContent": "node -e \"require('fs').writeFileSync('second.txt','second');console.log('second')\""
          }
        ],
        "behavior": "allow",
        "destination": "localSettings"
      }
    ],
    "response": "Waiting at capture time"
  },
  {
    "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 main branch to origin"
    },
    "escalationType": "rule",
    "reason": null,
    "sdkSuggestionsPresent": false,
    "sdkSuggestions": [],
    "response": {
      "behavior": "deny",
      "message": "User declined tool execution.",
      "decisionClassification": "user_reject"
    }
  },
  {
    "tool": "Bash",
    "input": {
      "command": "git push origin main",
      "description": "Push main branch to origin"
    },
    "escalationType": "rule",
    "reason": null,
    "sdkSuggestionsPresent": false,
    "sdkSuggestions": [],
    "response": {
      "behavior": "allow",
      "updatedInput": {
        "command": "git push origin main",
        "description": "Push main branch to origin"
      },
      "decisionClassification": "user_temporary"
    }
  },
  {
    "tool": "Bash",
    "input": {
      "command": "git push origin main",
      "description": "Push local main to origin"
    },
    "escalationType": "rule",
    "reason": null,
    "sdkSuggestionsPresent": false,
    "sdkSuggestions": [],
    "response": {
      "behavior": "deny",
      "message": "User declined tool execution.",
      "decisionClassification": "user_reject"
    }
  },
  {
    "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"
      },
      "decisionClassification": "user_temporary"
    }
  },
  {
    "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": []
    }
  },
  {
    "tool": "Bash",
    "input": {
      "command": "node -e \"require('fs').writeFileSync('second.txt','second')\"",
      "description": "Write second.txt with node"
    },
    "escalationType": "other",
    "reason": "This command requires approval",
    "sdkSuggestionsPresent": true,
    "sdkSuggestions": [
      {
        "type": "addRules",
        "rules": [
          {
            "toolName": "Bash",
            "ruleContent": "node -e \"require('fs').writeFileSync('second.txt','second')\""
          }
        ],
        "behavior": "allow",
        "destination": "localSettings"
      }
    ],
    "response": "Waiting at capture time"
  }
]
