Initial commit
This commit is contained in:
22
hooks/hooks.json
Normal file
22
hooks/hooks.json
Normal file
@@ -0,0 +1,22 @@
|
||||
{
|
||||
"hooks": [
|
||||
{
|
||||
"name": "api-rate-limit-reminder",
|
||||
"description": "Reminds user about API rate limits before making multiple requests",
|
||||
"event": "before-web-fetch",
|
||||
"command": "echo '⚠️ Destinations API Rate Limit: 100 requests/minute. Current request to: $URL' >&2"
|
||||
},
|
||||
{
|
||||
"name": "cache-api-responses",
|
||||
"description": "Suggests caching frequently accessed destinations data",
|
||||
"event": "after-web-fetch",
|
||||
"command": "if echo \"$URL\" | grep -q 'destinations-api.telecomsxchange.com'; then echo '💡 Tip: Consider caching this response if querying frequently' >&2; fi"
|
||||
},
|
||||
{
|
||||
"name": "validate-phone-format",
|
||||
"description": "Validates phone number format before lookup commands",
|
||||
"event": "user-prompt-submit",
|
||||
"command": "if echo \"$PROMPT\" | grep -qE '(lookup|look up|find|search).*\\+?[0-9]{7,15}'; then echo '📞 Phone number detected - will validate E.164 format' >&2; fi"
|
||||
}
|
||||
]
|
||||
}
|
||||
Reference in New Issue
Block a user