rhachet-roles-ehmpathy 1.15.2 → 1.15.3

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.
@@ -0,0 +1,33 @@
1
+ if your refactor produces a change in behavior that was not explicitly asked for, it should always be questioned and reviewed with the asker
2
+
3
+ if your refactor produces a change in behavior that was not explicitly asked for && requires the change of tests that covered the old behavior, this is an even bigger red flag, and should especially be questioned and reviewed with the asker
4
+
5
+ ---
6
+
7
+ for example
8
+
9
+ "ignore other files, only bootup briefs and skills"
10
+
11
+ IF
12
+ - the concept of "other files" is new since the last commit on main (i.e., its a staged or unstaged change, or committed on the branch but not main)
13
+ - the fulfillment of that ask requries you to remove assertions against "bootup readme.md"
14
+
15
+ THEN
16
+ - should you just blindly remove the "bootup readme.md" behavior assertions from the test files to comply?
17
+ - OR
18
+ - should you just blindly assume that the user only meant the new changes?
19
+ - OR
20
+ - should you ask the caller to review the two options, since their requset might cause a change to new behavior
21
+
22
+ ?
23
+
24
+ Ideally, ask the caller explicitly to clarify their request
25
+ - did they mean to revert the new behavior but keep the old?
26
+ - or
27
+ - did they mean to revert the new behavior AND change to old?
28
+
29
+ If you're unable to ask though, always assume they intended to preserve the old behavior when there is new behavior they could be asking about - unless they explicitly mentioned the old behavior with the same terms the test spoke about it with.
30
+
31
+ ---
32
+
33
+ but never blindly degrade prior behavior without explicit confirmation
@@ -30,6 +30,9 @@
30
30
 
31
31
  set -euo pipefail
32
32
 
33
+ # fail loud: print what failed
34
+ trap 'echo "❌ init.bhuild.sh failed at line $LINENO" >&2' ERR
35
+
33
36
  # parse arguments
34
37
  BEHAVIOR_NAME=""
35
38
  TARGET_DIR="$PWD"
@@ -22,6 +22,9 @@
22
22
 
23
23
  set -euo pipefail
24
24
 
25
+ # fail loud: print what failed
26
+ trap 'echo "❌ init.claude.hooks.cleanup.sh failed at line $LINENO" >&2' ERR
27
+
25
28
  SKILLS_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
26
29
  HOOKS_DIR="$SKILLS_DIR/claude.hooks"
27
30
 
@@ -38,7 +41,7 @@ fi
38
41
  STALE_COMMANDS=$(jq -r '
39
42
  .hooks // {} | to_entries[] |
40
43
  .value[] | .hooks[] | .command // empty
41
- ' "$SETTINGS_FILE" 2>/dev/null | grep -E "claude\.hooks/" | while read -r cmd; do
44
+ ' "$SETTINGS_FILE" | { grep -E "claude\.hooks/" || true; } | while read -r cmd; do
42
45
  # Extract the path - it might be absolute or relative
43
46
  # Look for the claude.hooks/ part and check if the file exists
44
47
  if [[ "$cmd" == /* ]]; then
@@ -27,6 +27,9 @@
27
27
 
28
28
  set -euo pipefail
29
29
 
30
+ # fail loud: print what failed
31
+ trap 'echo "❌ init.claude.hooks.findsert.sh failed at line $LINENO" >&2' ERR
32
+
30
33
  # Defaults
31
34
  HOOK_TYPE=""
32
35
  MATCHER=""
@@ -20,6 +20,9 @@
20
20
 
21
21
  set -euo pipefail
22
22
 
23
+ # fail loud: print what failed
24
+ trap 'echo "❌ init.claude.hooks.sh failed at line $LINENO" >&2' ERR
25
+
23
26
  SKILLS_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
24
27
  FINDSERT="$SKILLS_DIR/init.claude.hooks.findsert.sh"
25
28
  CLEANUP="$SKILLS_DIR/init.claude.hooks.cleanup.sh"
@@ -26,6 +26,9 @@
26
26
 
27
27
  set -euo pipefail
28
28
 
29
+ # fail loud: print what failed
30
+ trap 'echo "❌ init.claude.permissions.sh failed at line $LINENO" >&2' ERR
31
+
29
32
  PROJECT_ROOT="$PWD"
30
33
  SETTINGS_FILE="$PROJECT_ROOT/.claude/settings.local.json"
31
34
 
@@ -20,6 +20,9 @@
20
20
 
21
21
  set -euo pipefail
22
22
 
23
+ # fail loud: print what failed
24
+ trap 'echo "❌ init.claude.sh failed at line $LINENO" >&2' ERR
25
+
23
26
  SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
24
27
  GITROOT="$(git rev-parse --show-toplevel)"
25
28
  SETTINGS_FILE="$GITROOT/.claude/settings.local.json"
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "rhachet-roles-ehmpathy",
3
3
  "author": "ehmpathy",
4
4
  "description": "empathetic software construction roles and skills, via rhachet",
5
- "version": "1.15.2",
5
+ "version": "1.15.3",
6
6
  "repository": "ehmpathy/rhachet-roles-ehmpathy",
7
7
  "homepage": "https://github.com/ehmpathy/rhachet-roles-ehmpathy",
8
8
  "keywords": [