113
continue;
114
}
116
>
const commands: IHookCommand[] = [];
117
>
118
>
for (const item of hookArray) {
119
>
// Use shared helper that handles both direct commands and nested matcher structures
120
>
const extracted = extractHookCommandsFromItem(item, workspaceRootUri, userHome);
121
>
commands.push(...extracted);
122
>
}
123
>
124
>
if (commands.length > 0) {
125
>
const existing = result.get(hookType);
126
>
if (existing) {
127
existing.hooks.push(...commands);
129
>
result.set(hookType, { hooks: commands, originalId });
130
>
}
131
>
}
132
}
133