@zalom/plastic 1.0.0-beta.26 → 1.0.0-beta.27

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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zalom/plastic",
3
- "version": "1.0.0-beta.26",
3
+ "version": "1.0.0-beta.27",
4
4
  "description": "Intent-driven idea development system for AI coding agents",
5
5
  "type": "module",
6
6
  "bin": {
package/scripts/doctor.rb CHANGED
@@ -1019,9 +1019,9 @@ class Doctor
1019
1019
  groups = group.is_a?(Array) ? group : [group]
1020
1020
  live = settings.dig("hooks", event) || []
1021
1021
  groups.each do |g|
1022
- match = live.find { |h| h.is_a?(Hash) && h["matcher"] == g["matcher"] }
1022
+ matches = live.select { |h| h.is_a?(Hash) && h["matcher"] == g["matcher"] }
1023
1023
  wanted = g["hooks"].map { |h| h["command"] }
1024
- got = match ? Array(match["hooks"]).map { |h| h["command"] } : []
1024
+ got = matches.flat_map { |m| Array(m["hooks"]).map { |h| h["command"] } }
1025
1025
  missing = wanted - got
1026
1026
  diffs << "#{event}[#{g['matcher']}] missing: #{missing.join(', ')}" unless missing.empty?
1027
1027
  end