"hooks": {
"SetUpEnvironment": [
{
"hooks": [
{
"type": "command",
"command": "echo 'Session environment initialized' >> %USERPROFILE%/.iflow/test.log"
}
]
}
],
"SessionStart": [
{
"matcher": "startup",
"hooks": [
{
"type": "command",
"command": "echo 'New session started' >> %USERPROFILE%/.iflow/test.log"
}
]
}
],
"SessionEnd": [
{
"hooks": [
{
"type": "command",
"command": "echo 'Session end' >> %USERPROFILE%/.iflow/test.log",
"timeout": 30
}
]
}
],
"Notification": [
{
"matcher": ".*permission.*",
"hooks": [
{
"type": "command",
"command": "echo 'Permission notification logged' >> %USERPROFILE%/.iflow/test.log"
}
]
}
],
"Stop": [
{
"hooks": [
{
"type": "command",
"command": "echo 'Main session ended' >> %USERPROFILE%/.iflow/test.log"
}
]
}
]
}
就拿官方文档小改的,无论哪个事件都完全不调用hooks,如果在用户目录下会提示hooks需要授权所以是检测到settings.json里头的配置的,但就是不触发,iflow正常给系统发Notification
系统:windows 10 22H2