feat: 增加DeepWiki页面和侧边栏导航支持,更新Hook管理功能以支持作用域和索引

This commit is contained in:
catlog22
2026-03-05 18:53:24 +08:00
parent fb4f6e718e
commit bc7a556985
9 changed files with 78 additions and 22 deletions

View File

@@ -4407,9 +4407,15 @@ export async function updateHookConfig(
/**
* Delete a hook
*/
export async function deleteHook(hookName: string): Promise<void> {
return fetchApi<void>(`/api/hooks/delete/${encodeURIComponent(hookName)}`, {
export async function deleteHook(params: {
projectPath?: string;
scope: 'global' | 'project';
event: string;
hookIndex: number;
}): Promise<{ success: boolean }> {
return fetchApi<{ success: boolean }>('/api/hooks', {
method: 'DELETE',
body: JSON.stringify(params),
});
}