@codyswann/lisa 2.158.0 → 2.158.2

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 (50) hide show
  1. package/package.json +1 -1
  2. package/plugins/lisa/.claude-plugin/plugin.json +1 -1
  3. package/plugins/lisa/.codex-plugin/plugin.json +1 -1
  4. package/plugins/lisa/hooks/parity-safety-net.sh +25 -7
  5. package/plugins/lisa-agy/plugin.json +1 -1
  6. package/plugins/lisa-cdk/.claude-plugin/plugin.json +1 -1
  7. package/plugins/lisa-cdk/.codex-plugin/plugin.json +1 -1
  8. package/plugins/lisa-cdk-agy/plugin.json +1 -1
  9. package/plugins/lisa-cdk-copilot/.claude-plugin/plugin.json +1 -1
  10. package/plugins/lisa-cdk-cursor/.claude-plugin/plugin.json +1 -1
  11. package/plugins/lisa-copilot/.claude-plugin/plugin.json +1 -1
  12. package/plugins/lisa-copilot/hooks/parity-safety-net.sh +25 -7
  13. package/plugins/lisa-cursor/.claude-plugin/plugin.json +1 -1
  14. package/plugins/lisa-cursor/hooks/parity-safety-net.sh +25 -7
  15. package/plugins/lisa-expo/.claude-plugin/plugin.json +1 -1
  16. package/plugins/lisa-expo/.codex-plugin/plugin.json +1 -1
  17. package/plugins/lisa-expo-agy/plugin.json +1 -1
  18. package/plugins/lisa-expo-copilot/.claude-plugin/plugin.json +1 -1
  19. package/plugins/lisa-expo-cursor/.claude-plugin/plugin.json +1 -1
  20. package/plugins/lisa-harper-fabric/.claude-plugin/plugin.json +1 -1
  21. package/plugins/lisa-harper-fabric/.codex-plugin/plugin.json +1 -1
  22. package/plugins/lisa-harper-fabric-agy/plugin.json +1 -1
  23. package/plugins/lisa-harper-fabric-copilot/.claude-plugin/plugin.json +1 -1
  24. package/plugins/lisa-harper-fabric-cursor/.claude-plugin/plugin.json +1 -1
  25. package/plugins/lisa-nestjs/.claude-plugin/plugin.json +1 -1
  26. package/plugins/lisa-nestjs/.codex-plugin/plugin.json +1 -1
  27. package/plugins/lisa-nestjs-agy/plugin.json +1 -1
  28. package/plugins/lisa-nestjs-copilot/.claude-plugin/plugin.json +1 -1
  29. package/plugins/lisa-nestjs-cursor/.claude-plugin/plugin.json +1 -1
  30. package/plugins/lisa-openclaw/.claude-plugin/plugin.json +1 -1
  31. package/plugins/lisa-openclaw/.codex-plugin/plugin.json +1 -1
  32. package/plugins/lisa-openclaw-agy/plugin.json +1 -1
  33. package/plugins/lisa-openclaw-copilot/.claude-plugin/plugin.json +1 -1
  34. package/plugins/lisa-openclaw-cursor/.claude-plugin/plugin.json +1 -1
  35. package/plugins/lisa-rails/.claude-plugin/plugin.json +1 -1
  36. package/plugins/lisa-rails/.codex-plugin/plugin.json +1 -1
  37. package/plugins/lisa-rails-agy/plugin.json +1 -1
  38. package/plugins/lisa-rails-copilot/.claude-plugin/plugin.json +1 -1
  39. package/plugins/lisa-rails-cursor/.claude-plugin/plugin.json +1 -1
  40. package/plugins/lisa-typescript/.claude-plugin/plugin.json +1 -1
  41. package/plugins/lisa-typescript/.codex-plugin/plugin.json +1 -1
  42. package/plugins/lisa-typescript-agy/plugin.json +1 -1
  43. package/plugins/lisa-typescript-copilot/.claude-plugin/plugin.json +1 -1
  44. package/plugins/lisa-typescript-cursor/.claude-plugin/plugin.json +1 -1
  45. package/plugins/lisa-wiki/.claude-plugin/plugin.json +1 -1
  46. package/plugins/lisa-wiki/.codex-plugin/plugin.json +1 -1
  47. package/plugins/lisa-wiki-agy/plugin.json +1 -1
  48. package/plugins/lisa-wiki-copilot/.claude-plugin/plugin.json +1 -1
  49. package/plugins/lisa-wiki-cursor/.claude-plugin/plugin.json +1 -1
  50. package/plugins/src/base/hooks/parity-safety-net.sh +25 -7
package/package.json CHANGED
@@ -84,7 +84,7 @@
84
84
  "lodash": ">=4.18.1"
85
85
  },
86
86
  "name": "@codyswann/lisa",
87
- "version": "2.158.0",
87
+ "version": "2.158.2",
88
88
  "description": "Claude Code governance framework that applies guardrails, guidance, and automated enforcement to projects",
89
89
  "main": "dist/index.js",
90
90
  "exports": {
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lisa",
3
- "version": "2.158.0",
3
+ "version": "2.158.2",
4
4
  "description": "Universal governance — agents, skills, commands, hooks, and rules for all projects",
5
5
  "author": {
6
6
  "name": "Cody Swann"
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lisa",
3
- "version": "2.158.0",
3
+ "version": "2.158.2",
4
4
  "description": "Universal governance: agents, skills, commands, hooks, and rules for all projects.",
5
5
  "author": {
6
6
  "name": "Cody Swann"
@@ -61,14 +61,32 @@ fi
61
61
 
62
62
  # 2. Force-pushing a protected branch. `--force-with-lease` is the safe,
63
63
  # non-clobbering alternative and is intentionally NOT blocked.
64
- if printf '%s' "$command_str" | grep -Eiq '(^|[^[:alnum:]_-])git[[:space:]]+push\b'; then
65
- if printf '%s' "$command_str" | grep -Eiq '(--force([[:space:]]|=|$)|[[:space:]]-f([[:space:]]|$))' \
66
- && ! printf '%s' "$command_str" | grep -Eiq -- '--force-with-lease'; then
67
- if printf '%s' "$command_str" | grep -Eiq '(^|[^[:alnum:]_/-])(main|master|production|prod|release)([^[:alnum:]_/-]|$)'; then
68
- block "force-pushing a protected branch (use --force-with-lease, or push a feature branch)"
69
- fi
64
+ #
65
+ # The force flag AND the protected-branch name must appear in the SAME
66
+ # `git push` statement. Checking them independently over the whole command is
67
+ # a false-positive magnet: an unrelated `-f` (a `[ -f file ]` test, `rm -f`,
68
+ # `grep -f`, `tail -f`) plus an unrelated protected name (`--base main`,
69
+ # `origin/main`, `git fetch origin main`) alongside any feature-branch
70
+ # `git push` would wrongly block. So split the command into statements
71
+ # (`;`, `&&`, `||`, `|`, newlines), keep only the `git push` segments, and
72
+ # inspect each in isolation — a real `git push --force origin main` still
73
+ # matches, while a feature-branch push next to `[ -f ]`/`--base main` passes.
74
+ # Normalize bash line-continuations (backslash + newline → space) before
75
+ # segmenting the command. Without this, "git push --force origin \<newline>main"
76
+ # gets split by the grep into a segment that matches --force but not `main`,
77
+ # letting a protected force-push slip past the guard.
78
+ normalized_command_str="$(printf '%s' "$command_str" | sed ':a;N;$!ba;s/\\\n/ /g')"
79
+
80
+ while IFS= read -r push_stmt; do
81
+ if printf '%s' "$push_stmt" \
82
+ | grep -Eiq '(--force([[:space:]]|=|$)|[[:space:]]-f([[:space:]]|$))' \
83
+ && ! printf '%s' "$push_stmt" | grep -Eiq -- '--force-with-lease' \
84
+ && printf '%s' "$push_stmt" \
85
+ | grep -Eiq '(^|[^[:alnum:]_/-])(main|master|production|prod|release)([^[:alnum:]_/-]|$)'; then
86
+ block "force-pushing a protected branch (use --force-with-lease, or push a feature branch)"
70
87
  fi
71
- fi
88
+ done < <(printf '%s' "$normalized_command_str" | tr '&|;' '\n' \
89
+ | grep -Ei '(^|[^[:alnum:]_-])git[[:space:]]+push\b')
72
90
 
73
91
  # 3. `git reset --hard` while the working tree has uncommitted changes — this
74
92
  # silently discards them. Only blocks when the tree is actually dirty, so a
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lisa",
3
- "version": "2.158.0",
3
+ "version": "2.158.2",
4
4
  "description": "Universal governance — agents, skills, commands, hooks, and rules for all projects",
5
5
  "author": {
6
6
  "name": "Cody Swann"
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lisa-cdk",
3
- "version": "2.158.0",
3
+ "version": "2.158.2",
4
4
  "description": "AWS CDK-specific plugin",
5
5
  "author": {
6
6
  "name": "Cody Swann"
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lisa-cdk",
3
- "version": "2.158.0",
3
+ "version": "2.158.2",
4
4
  "description": "AWS CDK-specific Lisa plugin.",
5
5
  "author": {
6
6
  "name": "Cody Swann"
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lisa-cdk",
3
- "version": "2.158.0",
3
+ "version": "2.158.2",
4
4
  "description": "AWS CDK-specific plugin",
5
5
  "author": {
6
6
  "name": "Cody Swann"
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lisa-cdk",
3
- "version": "2.158.0",
3
+ "version": "2.158.2",
4
4
  "description": "AWS CDK-specific plugin",
5
5
  "author": {
6
6
  "name": "Cody Swann"
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lisa-cdk",
3
- "version": "2.158.0",
3
+ "version": "2.158.2",
4
4
  "description": "AWS CDK-specific plugin",
5
5
  "author": {
6
6
  "name": "Cody Swann"
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lisa",
3
- "version": "2.158.0",
3
+ "version": "2.158.2",
4
4
  "description": "Universal governance — agents, skills, commands, hooks, and rules for all projects",
5
5
  "author": {
6
6
  "name": "Cody Swann"
@@ -61,14 +61,32 @@ fi
61
61
 
62
62
  # 2. Force-pushing a protected branch. `--force-with-lease` is the safe,
63
63
  # non-clobbering alternative and is intentionally NOT blocked.
64
- if printf '%s' "$command_str" | grep -Eiq '(^|[^[:alnum:]_-])git[[:space:]]+push\b'; then
65
- if printf '%s' "$command_str" | grep -Eiq '(--force([[:space:]]|=|$)|[[:space:]]-f([[:space:]]|$))' \
66
- && ! printf '%s' "$command_str" | grep -Eiq -- '--force-with-lease'; then
67
- if printf '%s' "$command_str" | grep -Eiq '(^|[^[:alnum:]_/-])(main|master|production|prod|release)([^[:alnum:]_/-]|$)'; then
68
- block "force-pushing a protected branch (use --force-with-lease, or push a feature branch)"
69
- fi
64
+ #
65
+ # The force flag AND the protected-branch name must appear in the SAME
66
+ # `git push` statement. Checking them independently over the whole command is
67
+ # a false-positive magnet: an unrelated `-f` (a `[ -f file ]` test, `rm -f`,
68
+ # `grep -f`, `tail -f`) plus an unrelated protected name (`--base main`,
69
+ # `origin/main`, `git fetch origin main`) alongside any feature-branch
70
+ # `git push` would wrongly block. So split the command into statements
71
+ # (`;`, `&&`, `||`, `|`, newlines), keep only the `git push` segments, and
72
+ # inspect each in isolation — a real `git push --force origin main` still
73
+ # matches, while a feature-branch push next to `[ -f ]`/`--base main` passes.
74
+ # Normalize bash line-continuations (backslash + newline → space) before
75
+ # segmenting the command. Without this, "git push --force origin \<newline>main"
76
+ # gets split by the grep into a segment that matches --force but not `main`,
77
+ # letting a protected force-push slip past the guard.
78
+ normalized_command_str="$(printf '%s' "$command_str" | sed ':a;N;$!ba;s/\\\n/ /g')"
79
+
80
+ while IFS= read -r push_stmt; do
81
+ if printf '%s' "$push_stmt" \
82
+ | grep -Eiq '(--force([[:space:]]|=|$)|[[:space:]]-f([[:space:]]|$))' \
83
+ && ! printf '%s' "$push_stmt" | grep -Eiq -- '--force-with-lease' \
84
+ && printf '%s' "$push_stmt" \
85
+ | grep -Eiq '(^|[^[:alnum:]_/-])(main|master|production|prod|release)([^[:alnum:]_/-]|$)'; then
86
+ block "force-pushing a protected branch (use --force-with-lease, or push a feature branch)"
70
87
  fi
71
- fi
88
+ done < <(printf '%s' "$normalized_command_str" | tr '&|;' '\n' \
89
+ | grep -Ei '(^|[^[:alnum:]_-])git[[:space:]]+push\b')
72
90
 
73
91
  # 3. `git reset --hard` while the working tree has uncommitted changes — this
74
92
  # silently discards them. Only blocks when the tree is actually dirty, so a
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lisa",
3
- "version": "2.158.0",
3
+ "version": "2.158.2",
4
4
  "description": "Universal governance — agents, skills, commands, hooks, and rules for all projects",
5
5
  "author": {
6
6
  "name": "Cody Swann"
@@ -61,14 +61,32 @@ fi
61
61
 
62
62
  # 2. Force-pushing a protected branch. `--force-with-lease` is the safe,
63
63
  # non-clobbering alternative and is intentionally NOT blocked.
64
- if printf '%s' "$command_str" | grep -Eiq '(^|[^[:alnum:]_-])git[[:space:]]+push\b'; then
65
- if printf '%s' "$command_str" | grep -Eiq '(--force([[:space:]]|=|$)|[[:space:]]-f([[:space:]]|$))' \
66
- && ! printf '%s' "$command_str" | grep -Eiq -- '--force-with-lease'; then
67
- if printf '%s' "$command_str" | grep -Eiq '(^|[^[:alnum:]_/-])(main|master|production|prod|release)([^[:alnum:]_/-]|$)'; then
68
- block "force-pushing a protected branch (use --force-with-lease, or push a feature branch)"
69
- fi
64
+ #
65
+ # The force flag AND the protected-branch name must appear in the SAME
66
+ # `git push` statement. Checking them independently over the whole command is
67
+ # a false-positive magnet: an unrelated `-f` (a `[ -f file ]` test, `rm -f`,
68
+ # `grep -f`, `tail -f`) plus an unrelated protected name (`--base main`,
69
+ # `origin/main`, `git fetch origin main`) alongside any feature-branch
70
+ # `git push` would wrongly block. So split the command into statements
71
+ # (`;`, `&&`, `||`, `|`, newlines), keep only the `git push` segments, and
72
+ # inspect each in isolation — a real `git push --force origin main` still
73
+ # matches, while a feature-branch push next to `[ -f ]`/`--base main` passes.
74
+ # Normalize bash line-continuations (backslash + newline → space) before
75
+ # segmenting the command. Without this, "git push --force origin \<newline>main"
76
+ # gets split by the grep into a segment that matches --force but not `main`,
77
+ # letting a protected force-push slip past the guard.
78
+ normalized_command_str="$(printf '%s' "$command_str" | sed ':a;N;$!ba;s/\\\n/ /g')"
79
+
80
+ while IFS= read -r push_stmt; do
81
+ if printf '%s' "$push_stmt" \
82
+ | grep -Eiq '(--force([[:space:]]|=|$)|[[:space:]]-f([[:space:]]|$))' \
83
+ && ! printf '%s' "$push_stmt" | grep -Eiq -- '--force-with-lease' \
84
+ && printf '%s' "$push_stmt" \
85
+ | grep -Eiq '(^|[^[:alnum:]_/-])(main|master|production|prod|release)([^[:alnum:]_/-]|$)'; then
86
+ block "force-pushing a protected branch (use --force-with-lease, or push a feature branch)"
70
87
  fi
71
- fi
88
+ done < <(printf '%s' "$normalized_command_str" | tr '&|;' '\n' \
89
+ | grep -Ei '(^|[^[:alnum:]_-])git[[:space:]]+push\b')
72
90
 
73
91
  # 3. `git reset --hard` while the working tree has uncommitted changes — this
74
92
  # silently discards them. Only blocks when the tree is actually dirty, so a
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lisa-expo",
3
- "version": "2.158.0",
3
+ "version": "2.158.2",
4
4
  "description": "Expo/React Native-specific skills, agents, rules, and MCP servers",
5
5
  "author": {
6
6
  "name": "Cody Swann"
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lisa-expo",
3
- "version": "2.158.0",
3
+ "version": "2.158.2",
4
4
  "description": "Expo and React Native-specific skills, agents, rules, and MCP servers.",
5
5
  "author": {
6
6
  "name": "Cody Swann"
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lisa-expo",
3
- "version": "2.158.0",
3
+ "version": "2.158.2",
4
4
  "description": "Expo/React Native-specific skills, agents, rules, and MCP servers",
5
5
  "author": {
6
6
  "name": "Cody Swann"
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lisa-expo",
3
- "version": "2.158.0",
3
+ "version": "2.158.2",
4
4
  "description": "Expo/React Native-specific skills, agents, rules, and MCP servers",
5
5
  "author": {
6
6
  "name": "Cody Swann"
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lisa-expo",
3
- "version": "2.158.0",
3
+ "version": "2.158.2",
4
4
  "description": "Expo/React Native-specific skills, agents, rules, and MCP servers",
5
5
  "author": {
6
6
  "name": "Cody Swann"
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lisa-harper-fabric",
3
- "version": "2.158.0",
3
+ "version": "2.158.2",
4
4
  "description": "Harper/Fabric-specific rules for TypeScript component apps",
5
5
  "author": {
6
6
  "name": "Cody Swann"
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lisa-harper-fabric",
3
- "version": "2.158.0",
3
+ "version": "2.158.2",
4
4
  "description": "Harper/Fabric-specific Lisa rules for TypeScript component apps.",
5
5
  "author": {
6
6
  "name": "Cody Swann"
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lisa-harper-fabric",
3
- "version": "2.158.0",
3
+ "version": "2.158.2",
4
4
  "description": "Harper/Fabric-specific rules for TypeScript component apps",
5
5
  "author": {
6
6
  "name": "Cody Swann"
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lisa-harper-fabric",
3
- "version": "2.158.0",
3
+ "version": "2.158.2",
4
4
  "description": "Harper/Fabric-specific rules for TypeScript component apps",
5
5
  "author": {
6
6
  "name": "Cody Swann"
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lisa-harper-fabric",
3
- "version": "2.158.0",
3
+ "version": "2.158.2",
4
4
  "description": "Harper/Fabric-specific rules for TypeScript component apps",
5
5
  "author": {
6
6
  "name": "Cody Swann"
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lisa-nestjs",
3
- "version": "2.158.0",
3
+ "version": "2.158.2",
4
4
  "description": "NestJS-specific skills (GraphQL, TypeORM) and hooks (migration write-protection)",
5
5
  "author": {
6
6
  "name": "Cody Swann"
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lisa-nestjs",
3
- "version": "2.158.0",
3
+ "version": "2.158.2",
4
4
  "description": "NestJS-specific skills and migration write-protection hooks.",
5
5
  "author": {
6
6
  "name": "Cody Swann"
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lisa-nestjs",
3
- "version": "2.158.0",
3
+ "version": "2.158.2",
4
4
  "description": "NestJS-specific skills (GraphQL, TypeORM) and hooks (migration write-protection)",
5
5
  "author": {
6
6
  "name": "Cody Swann"
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lisa-nestjs",
3
- "version": "2.158.0",
3
+ "version": "2.158.2",
4
4
  "description": "NestJS-specific skills (GraphQL, TypeORM) and hooks (migration write-protection)",
5
5
  "author": {
6
6
  "name": "Cody Swann"
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lisa-nestjs",
3
- "version": "2.158.0",
3
+ "version": "2.158.2",
4
4
  "description": "NestJS-specific skills (GraphQL, TypeORM) and hooks (migration write-protection)",
5
5
  "author": {
6
6
  "name": "Cody Swann"
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lisa-openclaw",
3
- "version": "2.158.0",
3
+ "version": "2.158.2",
4
4
  "description": "Connect staff roles to Telegram or Slack via OpenClaw — facilitator/specialist hub-and-spoke routing and repo-coding topics, for Claude Code and Codex",
5
5
  "author": {
6
6
  "name": "Cody Swann"
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lisa-openclaw",
3
- "version": "2.158.0",
3
+ "version": "2.158.2",
4
4
  "description": "Connect staff roles to Telegram or Slack via OpenClaw — facilitator/specialist hub-and-spoke routing and repo-coding topics, across Claude and Codex.",
5
5
  "author": {
6
6
  "name": "Cody Swann"
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lisa-openclaw",
3
- "version": "2.158.0",
3
+ "version": "2.158.2",
4
4
  "description": "Connect staff roles to Telegram or Slack via OpenClaw — facilitator/specialist hub-and-spoke routing and repo-coding topics, for Claude Code and Codex",
5
5
  "author": {
6
6
  "name": "Cody Swann"
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lisa-openclaw",
3
- "version": "2.158.0",
3
+ "version": "2.158.2",
4
4
  "description": "Connect staff roles to Telegram or Slack via OpenClaw — facilitator/specialist hub-and-spoke routing and repo-coding topics, for Claude Code and Codex",
5
5
  "author": {
6
6
  "name": "Cody Swann"
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lisa-openclaw",
3
- "version": "2.158.0",
3
+ "version": "2.158.2",
4
4
  "description": "Connect staff roles to Telegram or Slack via OpenClaw — facilitator/specialist hub-and-spoke routing and repo-coding topics, for Claude Code and Codex",
5
5
  "author": {
6
6
  "name": "Cody Swann"
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lisa-rails",
3
- "version": "2.158.0",
3
+ "version": "2.158.2",
4
4
  "description": "Ruby on Rails-specific hooks — RuboCop linting/formatting and ast-grep scanning on edit",
5
5
  "author": {
6
6
  "name": "Cody Swann"
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lisa-rails",
3
- "version": "2.158.0",
3
+ "version": "2.158.2",
4
4
  "description": "Ruby on Rails-specific skills and hooks for RuboCop and ast-grep scanning on edit.",
5
5
  "author": {
6
6
  "name": "Cody Swann"
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lisa-rails",
3
- "version": "2.158.0",
3
+ "version": "2.158.2",
4
4
  "description": "Ruby on Rails-specific hooks — RuboCop linting/formatting and ast-grep scanning on edit",
5
5
  "author": {
6
6
  "name": "Cody Swann"
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lisa-rails",
3
- "version": "2.158.0",
3
+ "version": "2.158.2",
4
4
  "description": "Ruby on Rails-specific hooks — RuboCop linting/formatting and ast-grep scanning on edit",
5
5
  "author": {
6
6
  "name": "Cody Swann"
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lisa-rails",
3
- "version": "2.158.0",
3
+ "version": "2.158.2",
4
4
  "description": "Ruby on Rails-specific hooks — RuboCop linting/formatting and ast-grep scanning on edit",
5
5
  "author": {
6
6
  "name": "Cody Swann"
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lisa-typescript",
3
- "version": "2.158.0",
3
+ "version": "2.158.2",
4
4
  "description": "TypeScript-specific hooks — Prettier formatting, ESLint linting, ast-grep scanning, and error-suppression blocking on edit",
5
5
  "author": {
6
6
  "name": "Cody Swann"
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lisa-typescript",
3
- "version": "2.158.0",
3
+ "version": "2.158.2",
4
4
  "description": "TypeScript-specific hooks for formatting, linting, and ast-grep scanning on edit.",
5
5
  "author": {
6
6
  "name": "Cody Swann"
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lisa-typescript",
3
- "version": "2.158.0",
3
+ "version": "2.158.2",
4
4
  "description": "TypeScript-specific hooks — Prettier formatting, ESLint linting, ast-grep scanning, and error-suppression blocking on edit",
5
5
  "author": {
6
6
  "name": "Cody Swann"
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lisa-typescript",
3
- "version": "2.158.0",
3
+ "version": "2.158.2",
4
4
  "description": "TypeScript-specific hooks — Prettier formatting, ESLint linting, ast-grep scanning, and error-suppression blocking on edit",
5
5
  "author": {
6
6
  "name": "Cody Swann"
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lisa-typescript",
3
- "version": "2.158.0",
3
+ "version": "2.158.2",
4
4
  "description": "TypeScript-specific hooks — Prettier formatting, ESLint linting, ast-grep scanning, and error-suppression blocking on edit",
5
5
  "author": {
6
6
  "name": "Cody Swann"
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lisa-wiki",
3
- "version": "2.158.0",
3
+ "version": "2.158.2",
4
4
  "description": "LLM Wiki — a distributable, git-native markdown knowledge base for Claude Code and Codex",
5
5
  "author": {
6
6
  "name": "Cody Swann"
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lisa-wiki",
3
- "version": "2.158.0",
3
+ "version": "2.158.2",
4
4
  "description": "Distributable LLM Wiki kernel — ingest, query, lint, and maintain a git-native markdown knowledge base across Claude and Codex.",
5
5
  "author": {
6
6
  "name": "Cody Swann"
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lisa-wiki",
3
- "version": "2.158.0",
3
+ "version": "2.158.2",
4
4
  "description": "LLM Wiki — a distributable, git-native markdown knowledge base for Claude Code and Codex",
5
5
  "author": {
6
6
  "name": "Cody Swann"
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lisa-wiki",
3
- "version": "2.158.0",
3
+ "version": "2.158.2",
4
4
  "description": "LLM Wiki — a distributable, git-native markdown knowledge base for Claude Code and Codex",
5
5
  "author": {
6
6
  "name": "Cody Swann"
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lisa-wiki",
3
- "version": "2.158.0",
3
+ "version": "2.158.2",
4
4
  "description": "LLM Wiki — a distributable, git-native markdown knowledge base for Claude Code and Codex",
5
5
  "author": {
6
6
  "name": "Cody Swann"
@@ -61,14 +61,32 @@ fi
61
61
 
62
62
  # 2. Force-pushing a protected branch. `--force-with-lease` is the safe,
63
63
  # non-clobbering alternative and is intentionally NOT blocked.
64
- if printf '%s' "$command_str" | grep -Eiq '(^|[^[:alnum:]_-])git[[:space:]]+push\b'; then
65
- if printf '%s' "$command_str" | grep -Eiq '(--force([[:space:]]|=|$)|[[:space:]]-f([[:space:]]|$))' \
66
- && ! printf '%s' "$command_str" | grep -Eiq -- '--force-with-lease'; then
67
- if printf '%s' "$command_str" | grep -Eiq '(^|[^[:alnum:]_/-])(main|master|production|prod|release)([^[:alnum:]_/-]|$)'; then
68
- block "force-pushing a protected branch (use --force-with-lease, or push a feature branch)"
69
- fi
64
+ #
65
+ # The force flag AND the protected-branch name must appear in the SAME
66
+ # `git push` statement. Checking them independently over the whole command is
67
+ # a false-positive magnet: an unrelated `-f` (a `[ -f file ]` test, `rm -f`,
68
+ # `grep -f`, `tail -f`) plus an unrelated protected name (`--base main`,
69
+ # `origin/main`, `git fetch origin main`) alongside any feature-branch
70
+ # `git push` would wrongly block. So split the command into statements
71
+ # (`;`, `&&`, `||`, `|`, newlines), keep only the `git push` segments, and
72
+ # inspect each in isolation — a real `git push --force origin main` still
73
+ # matches, while a feature-branch push next to `[ -f ]`/`--base main` passes.
74
+ # Normalize bash line-continuations (backslash + newline → space) before
75
+ # segmenting the command. Without this, "git push --force origin \<newline>main"
76
+ # gets split by the grep into a segment that matches --force but not `main`,
77
+ # letting a protected force-push slip past the guard.
78
+ normalized_command_str="$(printf '%s' "$command_str" | sed ':a;N;$!ba;s/\\\n/ /g')"
79
+
80
+ while IFS= read -r push_stmt; do
81
+ if printf '%s' "$push_stmt" \
82
+ | grep -Eiq '(--force([[:space:]]|=|$)|[[:space:]]-f([[:space:]]|$))' \
83
+ && ! printf '%s' "$push_stmt" | grep -Eiq -- '--force-with-lease' \
84
+ && printf '%s' "$push_stmt" \
85
+ | grep -Eiq '(^|[^[:alnum:]_/-])(main|master|production|prod|release)([^[:alnum:]_/-]|$)'; then
86
+ block "force-pushing a protected branch (use --force-with-lease, or push a feature branch)"
70
87
  fi
71
- fi
88
+ done < <(printf '%s' "$normalized_command_str" | tr '&|;' '\n' \
89
+ | grep -Ei '(^|[^[:alnum:]_-])git[[:space:]]+push\b')
72
90
 
73
91
  # 3. `git reset --hard` while the working tree has uncommitted changes — this
74
92
  # silently discards them. Only blocks when the tree is actually dirty, so a