Commit 57aab32
committed
Add security demo for GAIA C++ tool features
- Introduced a new interactive demo in `cpp/examples/security_demo.cpp` showcasing four modes:
1. Tool Policies & Confirmation (ALLOW / CONFIRM / DENY)
2. Argument Validation (validateArgs callback)
3. Path Validation (gaia::validatePath)
4. Shell Argument Safety (gaia::isSafeShellArg)
- Updated `docs/cpp/security.mdx` to include new sections on path validation and shell argument safety, along with examples and warnings about default policies.
- Enhanced documentation clarity on tool policies, argument validation, and security best practices.1 parent 1d89b48 commit 57aab32
4 files changed
Lines changed: 745 additions & 414 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
177 | 177 | | |
178 | 178 | | |
179 | 179 | | |
180 | | - | |
181 | | - | |
| 180 | + | |
| 181 | + | |
182 | 182 | | |
183 | 183 | | |
184 | 184 | | |
| |||
This file was deleted.
0 commit comments