You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: templates/commands/specify.md
+4-4Lines changed: 4 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -215,11 +215,11 @@ Given that feature description, do this:
215
215
8. **Check for extension hooks**: After reporting completion, check if `.specify/extensions.yml` exists in the project root.
216
216
- If it exists, read it and look for entries under the `hooks.after_specify` key
217
217
- If the YAML cannot be parsed or is invalid, skip hook checking silently and continue normally
218
-
- Filter to only hooks where `enabled: true`
219
-
- For each remaining hook, do **not** attempt to interpret or evaluate hook `condition` expressions:
220
-
- If the hook has no `condition` field, or it is null/empty, treat the hook as executable
221
-
- If the hook defines a non-empty `condition`, skip the hook and leave condition evaluation to the HookExecutor implementation
218
+
- From the discovered hooks, ignore only those where `enabled` is explicitly set to `false`. If `enabled` is omitted, treat the hook as enabled.
219
+
- Do **not** attempt to interpret or evaluate hook `condition` expressions, and do **not** filter hooks based on the presence or contents of `condition`. Condition evaluation is handled by the `HookExecutor.should_execute_hook` implementation.
220
+
- Treat all hooks that are not explicitly disabled (that is, all hooks where `enabled` is not `false`) as executable candidates.
222
221
- For each executable hook, output the following based on its `optional` flag:
0 commit comments