mirror of
https://github.com/catlog22/Claude-Code-Workflow.git
synced 2026-03-22 19:18:47 +08:00
feat: 增加DeepWiki页面和侧边栏导航支持,更新Hook管理功能以支持作用域和索引
This commit is contained in:
@@ -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),
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user