Skip to content

Commit 57aab32

Browse files
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

File tree

cpp/CMakeLists.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -177,8 +177,8 @@ if(GAIA_BUILD_EXAMPLES AND WIN32)
177177
endif()
178178

179179
if(GAIA_BUILD_EXAMPLES)
180-
add_executable(secure_agent examples/secure_agent.cpp)
181-
target_link_libraries(secure_agent PRIVATE gaia::gaia_core)
180+
add_executable(security_demo examples/security_demo.cpp)
181+
target_link_libraries(security_demo PRIVATE gaia::gaia_core)
182182
endif()
183183

184184
# ---------------------------------------------------------------------------

cpp/examples/secure_agent.cpp

Lines changed: 0 additions & 331 deletions
This file was deleted.

0 commit comments

Comments
 (0)