The library now accepts numeric IDs from Yandex Music API for Major.ID (track) and Album.ID (album), fixing unmarshalling errors when API returns numbers instead of strings.
38 lines
831 B
JSON
38 lines
831 B
JSON
{
|
|
"hooks": {
|
|
"PreToolUse": [
|
|
{
|
|
"matcher": "Edit|Write|MultiEdit",
|
|
"hooks": [
|
|
{
|
|
"type": "command",
|
|
"command": "HM_REPO=ym-dl DATABASE_URL=\"postgresql://postgres:hm@localhost:5432/hypermnesia\" python3 /opt/hypermnesia/hooks/arch_invariants.py",
|
|
"timeout": 20
|
|
}
|
|
]
|
|
}
|
|
],
|
|
"SessionStart": [
|
|
{
|
|
"hooks": [
|
|
{
|
|
"type": "command",
|
|
"command": "python3 /opt/hypermnesia/hooks/mem_profile.py",
|
|
"timeout": 10
|
|
}
|
|
]
|
|
}
|
|
],
|
|
"UserPromptSubmit": [
|
|
{
|
|
"hooks": [
|
|
{
|
|
"type": "command",
|
|
"command": "python3 /opt/hypermnesia/hooks/mem_recall.py",
|
|
"timeout": 10
|
|
}
|
|
]
|
|
}
|
|
]
|
|
}
|
|
} |