mirror of
https://github.com/sipeed/picoclaw.git
synced 2026-06-12 18:08:54 +00:00
fcc20ec72c
Validate tool call arguments against each tool's Parameters() JSON Schema
in ExecuteWithContext() before calling Execute(). This prevents type
confusion, argument injection, and missing-field errors from reaching tools.
Validates: required fields, type matching (string/integer/number/boolean/
array/object), enum membership, nested objects (recursive), array element
types. Rejects unexpected extra properties unless additionalProperties is
set to true (for MCP tool compatibility).
Returns ToolResult{IsError: true} on failure so the LLM can self-correct.
Ref: Security Hardening > Tool abuse prevention via strict parameter validation
67 lines
728 B
Plaintext
67 lines
728 B
Plaintext
# Binaries
|
|
# Go build artifacts
|
|
bin/
|
|
build/
|
|
*.exe
|
|
*.dll
|
|
*.so
|
|
*.dylib
|
|
*.test
|
|
*.out
|
|
/picoclaw
|
|
/picoclaw-test
|
|
cmd/**/workspace
|
|
|
|
# Picoclaw specific
|
|
|
|
# PicoClaw
|
|
.picoclaw/
|
|
config.json
|
|
sessions/
|
|
build/
|
|
|
|
# Coverage
|
|
|
|
# Secrets & Config (keep templates, ignore actual secrets)
|
|
.env
|
|
config/config.json
|
|
|
|
# Test
|
|
coverage.txt
|
|
coverage.html
|
|
|
|
# OS
|
|
.DS_Store
|
|
|
|
# Ralph workspace
|
|
ralph/
|
|
.ralph/
|
|
tasks/
|
|
|
|
# Plans
|
|
docs/plans/
|
|
docs/superpowers/
|
|
|
|
# Editors
|
|
.vscode/
|
|
.idea/
|
|
|
|
# Added by goreleaser init:
|
|
dist/
|
|
*.vite/
|
|
|
|
# Windows Application Icon/Resource
|
|
*.syso
|
|
|
|
# Test telegram integration
|
|
cmd/telegram/
|
|
|
|
# Keep embedded backend dist directory placeholder in VCS
|
|
!web/backend/dist/
|
|
web/backend/dist/*
|
|
!web/backend/dist/.gitkeep
|
|
|
|
.claude/
|
|
|
|
docker/data
|