@dalzoubi/dev-agents-sync 2.2.4 → 2.2.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/src/settings.mjs +11 -0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dalzoubi/dev-agents-sync",
3
- "version": "2.2.4",
3
+ "version": "2.2.6",
4
4
  "type": "module",
5
5
  "description": "CLI that syncs managed dev-agent prompts into consumer repos (.claude/ and/or .cursor/).",
6
6
  "license": "UNLICENSED",
package/src/settings.mjs CHANGED
@@ -451,6 +451,10 @@ export const DEFAULT_HOOK_SCRIPTS = [
451
451
  { event: 'PreToolUse', matcher: 'Write', script: '.claude/hooks/handoff-state-guard.sh' },
452
452
  { event: 'PostToolUse', matcher: 'Edit|Write', script: '.claude/hooks/spec-drift-warn.sh' },
453
453
  { event: 'PreToolUse', matcher: 'Bash', script: '.claude/hooks/pre-pr-preflight.sh' },
454
+ // UI/UX framework: a Stop-time reminder that frontend work is governed by the
455
+ // UI Definition of Done, not by a green build. Non-blocking by construction —
456
+ // a Stop hook cannot deny, and this one exits 0 on every path.
457
+ { event: 'Stop', matcher: '.*', script: '.claude/hooks/ui-verification-reminder.sh' },
454
458
  ].map((h) => ({ ...h, command: hookCommandFor(h.script) }));
455
459
 
456
460
  /**
@@ -500,4 +504,11 @@ export const RETIRED_HOOK_SCRIPTS = [
500
504
  { event: 'PreToolUse', matcher: 'Write', command: '.claude/hooks/handoff-state-guard.sh' },
501
505
  { event: 'PostToolUse', matcher: 'Edit|Write', command: '.claude/hooks/spec-drift-warn.sh' },
502
506
  { event: 'PreToolUse', matcher: 'Bash', command: '.claude/hooks/pre-pr-preflight.sh' },
507
+ // ui-verification-reminder.sh ships only in the `bash …` form — the CLI never
508
+ // registered its bare-path variant. The entry is here because the invariant is
509
+ // "every shipped script's bare-path form is retired", not "every form we once
510
+ // shipped": a bare path can also reach a consumer's settings.json by hand-edit
511
+ // or by a future regression, and pruning it is always correct since that form
512
+ // is never in DEFAULT_HOOK_SCRIPTS.
513
+ { event: 'Stop', matcher: '.*', command: '.claude/hooks/ui-verification-reminder.sh' },
503
514
  ];