9a58fe6481
Add a lightweight hook that runs on session start to check if any API keys are configured. Warns users if no config is found and checks file permissions on existing config files. Checks (in order): .claude/last30days.env, ~/.config/last30days/.env, OPENAI_API_KEY env var, SCRAPECREATORS_API_KEY env var. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
17 lines
280 B
JSON
17 lines
280 B
JSON
{
|
|
"hooks": {
|
|
"SessionStart": [
|
|
{
|
|
"matcher": "",
|
|
"hooks": [
|
|
{
|
|
"type": "command",
|
|
"command": "bash ${CLAUDE_PLUGIN_ROOT}/hooks/scripts/check-config.sh",
|
|
"timeout": 5
|
|
}
|
|
]
|
|
}
|
|
]
|
|
}
|
|
}
|