refactor: unify hook notification system, remove duplicate broadcasts
- Replace forward-hook.ps1 with notify.ps1 (now accepts optional agent param) - Remove ejecutor settings.local.json (redundant status hooks, deriveStatus covers it) - Remove legacy claude-permission system (route, store methods, terminal broadcast) - Remove redundant deriveStatus + /claude-status POST from claude-hook.ts (broadcastClaudeHook → processHookEvent already handles status derivation) - Clean up HookNotifications.vue permission buttons (dead code)
This commit is contained in:
@@ -12,7 +12,7 @@
|
||||
"hooks": [
|
||||
{
|
||||
"type": "command",
|
||||
"command": "powershell -NoProfile -File hooks/forward-hook.ps1 nucleo000",
|
||||
"command": "powershell -NoProfile -File hooks/notify.ps1 nucleo000",
|
||||
"timeout": 5000
|
||||
}
|
||||
]
|
||||
@@ -24,7 +24,7 @@
|
||||
"hooks": [
|
||||
{
|
||||
"type": "command",
|
||||
"command": "powershell -NoProfile -File hooks/forward-hook.ps1 nucleo000",
|
||||
"command": "powershell -NoProfile -File hooks/notify.ps1 nucleo000",
|
||||
"timeout": 5000
|
||||
}
|
||||
]
|
||||
@@ -36,7 +36,7 @@
|
||||
"hooks": [
|
||||
{
|
||||
"type": "command",
|
||||
"command": "powershell -NoProfile -File hooks/forward-hook.ps1 nucleo000",
|
||||
"command": "powershell -NoProfile -File hooks/notify.ps1 nucleo000",
|
||||
"timeout": 5000
|
||||
}
|
||||
]
|
||||
@@ -48,7 +48,7 @@
|
||||
"hooks": [
|
||||
{
|
||||
"type": "command",
|
||||
"command": "powershell -NoProfile -File hooks/forward-hook.ps1 nucleo000",
|
||||
"command": "powershell -NoProfile -File hooks/notify.ps1 nucleo000",
|
||||
"timeout": 5000
|
||||
}
|
||||
]
|
||||
@@ -59,7 +59,7 @@
|
||||
"hooks": [
|
||||
{
|
||||
"type": "command",
|
||||
"command": "powershell -NoProfile -File hooks/forward-hook.ps1 nucleo000",
|
||||
"command": "powershell -NoProfile -File hooks/notify.ps1 nucleo000",
|
||||
"timeout": 5000
|
||||
}
|
||||
]
|
||||
@@ -70,7 +70,7 @@
|
||||
"hooks": [
|
||||
{
|
||||
"type": "command",
|
||||
"command": "powershell -NoProfile -File hooks/forward-hook.ps1 nucleo000",
|
||||
"command": "powershell -NoProfile -File hooks/notify.ps1 nucleo000",
|
||||
"timeout": 5000
|
||||
}
|
||||
]
|
||||
@@ -82,7 +82,7 @@
|
||||
"hooks": [
|
||||
{
|
||||
"type": "command",
|
||||
"command": "powershell -NoProfile -File hooks/forward-hook.ps1 nucleo000",
|
||||
"command": "powershell -NoProfile -File hooks/notify.ps1 nucleo000",
|
||||
"timeout": 5000
|
||||
}
|
||||
]
|
||||
@@ -94,7 +94,7 @@
|
||||
"hooks": [
|
||||
{
|
||||
"type": "command",
|
||||
"command": "powershell -NoProfile -File hooks/forward-hook.ps1 nucleo000",
|
||||
"command": "powershell -NoProfile -File hooks/notify.ps1 nucleo000",
|
||||
"timeout": 5000
|
||||
}
|
||||
]
|
||||
@@ -115,7 +115,7 @@
|
||||
"hooks": [
|
||||
{
|
||||
"type": "command",
|
||||
"command": "powershell -NoProfile -File hooks/forward-hook.ps1 nucleo000",
|
||||
"command": "powershell -NoProfile -File hooks/notify.ps1 nucleo000",
|
||||
"timeout": 10000
|
||||
}
|
||||
]
|
||||
|
||||
Reference in New Issue
Block a user