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>