Add src/utils/validation.ts with validate() helper and InvalidArgumentsError. Update all tool files (agents, approvals, discovery, files, plugins, secrets) to use explicit Zod schemas with .describe() for tool input validation. Every handler now calls validate(args, Schema) before any business logic, throwing INVALID_ARGUMENTS (MCP error -32602) on schema failure. Also: add node_modules/, dist/, build/ to .gitignore; update package-lock.json. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
27 lines
356 B
Plaintext
27 lines
356 B
Plaintext
# Credentials — never commit. Use .env.example as the template.
|
|
.env
|
|
.env.local
|
|
.env.*.local
|
|
.env.*
|
|
!.env.example
|
|
!.env.sample
|
|
|
|
# Private keys + certs
|
|
*.pem
|
|
*.key
|
|
*.crt
|
|
*.p12
|
|
*.pfx
|
|
|
|
# Secret directories
|
|
.secrets/
|
|
|
|
# Workspace auth tokens
|
|
.auth-token
|
|
.auth_token
|
|
|
|
# Node.js dependencies (installed at runtime, not part of repo)
|
|
node_modules/
|
|
dist/
|
|
build/
|