Commit Graph

4 Commits

Author SHA1 Message Date
Charles Packer
938c5ae854 feat: add spice (#12) 2025-10-27 14:25:03 -07:00
cpacker
6f7b3bb08b fix: generate smart wildcard patterns for complex bash commands
When users approve long piped/chained commands (e.g., cd /path && git diff | head -100),
the system now generates intelligent wildcard patterns instead of exact matches. This allows
similar commands to be cached properly.

Changes:
- Parse complex commands containing &&, |, or ; to extract significant patterns
- Generate wildcards like Bash(cd /path && git diff:*) for git commands
- Generate wildcards like Bash(npm run lint:*) for npm commands
- Add tests for long command pattern generation

Fixes the issue where approving git diff | head would not also allow git diff | tail

👾 Generated with [Letta Code](https://letta.com)

Co-Authored-By: Letta <noreply@letta.com>
2025-10-26 19:12:55 -07:00
Charles Packer
da2c50cbeb feat: add more tests for tool built-ins (#5) 2025-10-25 11:33:30 -07:00
cpacker
70ac76040d feat: letta code 2025-10-24 21:19:24 -07:00