@codyswann/lisa 2.190.1 → 2.190.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.
Files changed (69) 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/inject-rules.sh +9 -2
  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/inject-rules.sh +9 -2
  13. package/plugins/lisa-cursor/.claude-plugin/plugin.json +1 -1
  14. package/plugins/lisa-expo/.claude-plugin/plugin.json +1 -1
  15. package/plugins/lisa-expo/.codex-plugin/plugin.json +1 -1
  16. package/plugins/lisa-expo-agy/plugin.json +1 -1
  17. package/plugins/lisa-expo-copilot/.claude-plugin/plugin.json +1 -1
  18. package/plugins/lisa-expo-cursor/.claude-plugin/plugin.json +1 -1
  19. package/plugins/lisa-harper-fabric/.claude-plugin/plugin.json +1 -1
  20. package/plugins/lisa-harper-fabric/.codex-plugin/plugin.json +1 -1
  21. package/plugins/lisa-harper-fabric-agy/plugin.json +1 -1
  22. package/plugins/lisa-harper-fabric-copilot/.claude-plugin/plugin.json +1 -1
  23. package/plugins/lisa-harper-fabric-cursor/.claude-plugin/plugin.json +1 -1
  24. package/plugins/lisa-nestjs/.claude-plugin/plugin.json +1 -1
  25. package/plugins/lisa-nestjs/.codex-plugin/plugin.json +1 -1
  26. package/plugins/lisa-nestjs-agy/plugin.json +1 -1
  27. package/plugins/lisa-nestjs-copilot/.claude-plugin/plugin.json +1 -1
  28. package/plugins/lisa-nestjs-cursor/.claude-plugin/plugin.json +1 -1
  29. package/plugins/lisa-openclaw/.claude-plugin/plugin.json +1 -1
  30. package/plugins/lisa-openclaw/.codex-plugin/plugin.json +1 -1
  31. package/plugins/lisa-openclaw-agy/plugin.json +1 -1
  32. package/plugins/lisa-openclaw-copilot/.claude-plugin/plugin.json +1 -1
  33. package/plugins/lisa-openclaw-cursor/.claude-plugin/plugin.json +1 -1
  34. package/plugins/lisa-phaser/.claude-plugin/plugin.json +1 -1
  35. package/plugins/lisa-phaser/.codex-plugin/plugin.json +1 -1
  36. package/plugins/lisa-phaser-agy/plugin.json +1 -1
  37. package/plugins/lisa-phaser-copilot/.claude-plugin/plugin.json +1 -1
  38. package/plugins/lisa-phaser-cursor/.claude-plugin/plugin.json +1 -1
  39. package/plugins/lisa-rails/.claude-plugin/plugin.json +1 -1
  40. package/plugins/lisa-rails/.codex-plugin/plugin.json +1 -1
  41. package/plugins/lisa-rails/hooks/inject-rules.sh +9 -2
  42. package/plugins/lisa-rails/hooks/rubocop-on-edit.sh +2 -2
  43. package/plugins/lisa-rails/hooks/sg-scan-on-edit.sh +2 -2
  44. package/plugins/lisa-rails-agy/plugin.json +1 -1
  45. package/plugins/lisa-rails-copilot/.claude-plugin/plugin.json +1 -1
  46. package/plugins/lisa-rails-copilot/hooks/inject-rules.sh +9 -2
  47. package/plugins/lisa-rails-copilot/hooks/rubocop-on-edit.sh +2 -2
  48. package/plugins/lisa-rails-copilot/hooks/sg-scan-on-edit.sh +2 -2
  49. package/plugins/lisa-rails-cursor/.claude-plugin/plugin.json +1 -1
  50. package/plugins/lisa-rails-cursor/hooks/rubocop-on-edit.sh +2 -2
  51. package/plugins/lisa-rails-cursor/hooks/sg-scan-on-edit.sh +2 -2
  52. package/plugins/lisa-typescript/.claude-plugin/plugin.json +1 -1
  53. package/plugins/lisa-typescript/.codex-plugin/plugin.json +1 -1
  54. package/plugins/lisa-typescript/hooks/sg-scan-on-edit.sh +1 -1
  55. package/plugins/lisa-typescript-agy/plugin.json +1 -1
  56. package/plugins/lisa-typescript-copilot/.claude-plugin/plugin.json +1 -1
  57. package/plugins/lisa-typescript-copilot/hooks/sg-scan-on-edit.sh +1 -1
  58. package/plugins/lisa-typescript-cursor/.claude-plugin/plugin.json +1 -1
  59. package/plugins/lisa-typescript-cursor/hooks/sg-scan-on-edit.sh +1 -1
  60. package/plugins/lisa-wiki/.claude-plugin/plugin.json +1 -1
  61. package/plugins/lisa-wiki/.codex-plugin/plugin.json +1 -1
  62. package/plugins/lisa-wiki-agy/plugin.json +1 -1
  63. package/plugins/lisa-wiki-copilot/.claude-plugin/plugin.json +1 -1
  64. package/plugins/lisa-wiki-cursor/.claude-plugin/plugin.json +1 -1
  65. package/plugins/src/base/hooks/inject-rules.sh +9 -2
  66. package/plugins/src/rails/hooks/inject-rules.sh +9 -2
  67. package/plugins/src/rails/hooks/rubocop-on-edit.sh +2 -2
  68. package/plugins/src/rails/hooks/sg-scan-on-edit.sh +2 -2
  69. package/plugins/src/typescript/hooks/sg-scan-on-edit.sh +1 -1
package/package.json CHANGED
@@ -95,7 +95,7 @@
95
95
  "ws": ">=8.20.1"
96
96
  },
97
97
  "name": "@codyswann/lisa",
98
- "version": "2.190.1",
98
+ "version": "2.190.3",
99
99
  "description": "Claude Code governance framework that applies guardrails, guidance, and automated enforcement to projects",
100
100
  "main": "dist/index.js",
101
101
  "exports": {
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lisa",
3
- "version": "2.190.1",
3
+ "version": "2.190.3",
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.190.1",
3
+ "version": "2.190.3",
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
  #!/usr/bin/env bash
2
2
  # Reads all .md files from the plugin's rules/eager/ directory and injects them
3
- # into the session context via additionalContext.
3
+ # into the session context via hookSpecificOutput.additionalContext.
4
4
  # Used by SessionStart and SubagentStart hooks.
5
5
  #
6
6
  # The split between eager and reference rules is documented in
@@ -9,6 +9,13 @@
9
9
  # eager breadcrumb points to them.
10
10
  set -euo pipefail
11
11
 
12
+ INPUT=$(cat 2>/dev/null || true)
13
+ if [ -n "$INPUT" ]; then
14
+ HOOK_EVENT=$(printf '%s' "$INPUT" | jq -r '.hook_event_name // "SessionStart"' 2>/dev/null || echo "SessionStart")
15
+ else
16
+ HOOK_EVENT="SessionStart"
17
+ fi
18
+
12
19
  RULES_DIR="${CLAUDE_PLUGIN_ROOT}/rules/eager"
13
20
 
14
21
  # Backward compatibility: if the eager subdir is absent (older Lisa install),
@@ -30,4 +37,4 @@ done
30
37
  [ -n "$CONTEXT" ] || exit 0
31
38
 
32
39
  # Output as JSON — jq handles escaping
33
- jq -n --arg ctx "$CONTEXT" '{"additionalContext": $ctx}'
40
+ jq -n --arg event "$HOOK_EVENT" --arg ctx "$CONTEXT" '{"hookSpecificOutput": {"hookEventName": $event, "additionalContext": $ctx}}'
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lisa",
3
- "version": "2.190.1",
3
+ "version": "2.190.3",
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.190.1",
3
+ "version": "2.190.3",
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.190.1",
3
+ "version": "2.190.3",
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.190.1",
3
+ "version": "2.190.3",
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.190.1",
3
+ "version": "2.190.3",
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.190.1",
3
+ "version": "2.190.3",
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.190.1",
3
+ "version": "2.190.3",
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
  #!/usr/bin/env bash
2
2
  # Reads all .md files from the plugin's rules/eager/ directory and injects them
3
- # into the session context via additionalContext.
3
+ # into the session context via hookSpecificOutput.additionalContext.
4
4
  # Used by SessionStart and SubagentStart hooks.
5
5
  #
6
6
  # The split between eager and reference rules is documented in
@@ -9,6 +9,13 @@
9
9
  # eager breadcrumb points to them.
10
10
  set -euo pipefail
11
11
 
12
+ INPUT=$(cat 2>/dev/null || true)
13
+ if [ -n "$INPUT" ]; then
14
+ HOOK_EVENT=$(printf '%s' "$INPUT" | jq -r '.hook_event_name // "SessionStart"' 2>/dev/null || echo "SessionStart")
15
+ else
16
+ HOOK_EVENT="SessionStart"
17
+ fi
18
+
12
19
  RULES_DIR="${CLAUDE_PLUGIN_ROOT}/rules/eager"
13
20
 
14
21
  # Backward compatibility: if the eager subdir is absent (older Lisa install),
@@ -30,4 +37,4 @@ done
30
37
  [ -n "$CONTEXT" ] || exit 0
31
38
 
32
39
  # Output as JSON — jq handles escaping
33
- jq -n --arg ctx "$CONTEXT" '{"additionalContext": $ctx}'
40
+ jq -n --arg event "$HOOK_EVENT" --arg ctx "$CONTEXT" '{"hookSpecificOutput": {"hookEventName": $event, "additionalContext": $ctx}}'
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lisa",
3
- "version": "2.190.1",
3
+ "version": "2.190.3",
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-expo",
3
- "version": "2.190.1",
3
+ "version": "2.190.3",
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.190.1",
3
+ "version": "2.190.3",
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.190.1",
3
+ "version": "2.190.3",
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.190.1",
3
+ "version": "2.190.3",
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.190.1",
3
+ "version": "2.190.3",
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.190.1",
3
+ "version": "2.190.3",
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.190.1",
3
+ "version": "2.190.3",
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.190.1",
3
+ "version": "2.190.3",
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.190.1",
3
+ "version": "2.190.3",
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.190.1",
3
+ "version": "2.190.3",
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.190.1",
3
+ "version": "2.190.3",
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.190.1",
3
+ "version": "2.190.3",
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.190.1",
3
+ "version": "2.190.3",
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.190.1",
3
+ "version": "2.190.3",
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.190.1",
3
+ "version": "2.190.3",
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.190.1",
3
+ "version": "2.190.3",
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.190.1",
3
+ "version": "2.190.3",
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.190.1",
3
+ "version": "2.190.3",
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.190.1",
3
+ "version": "2.190.3",
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.190.1",
3
+ "version": "2.190.3",
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-phaser",
3
- "version": "2.190.1",
3
+ "version": "2.190.3",
4
4
  "description": "Phaser 4 game-development rules for TypeScript projects",
5
5
  "author": {
6
6
  "name": "Cody Swann"
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lisa-phaser",
3
- "version": "2.190.1",
3
+ "version": "2.190.3",
4
4
  "description": "Phaser 4 game-development rules for TypeScript projects",
5
5
  "author": {
6
6
  "name": "Cody Swann"
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lisa-phaser",
3
- "version": "2.190.1",
3
+ "version": "2.190.3",
4
4
  "description": "Phaser 4 game-development rules for TypeScript projects",
5
5
  "author": {
6
6
  "name": "Cody Swann"
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lisa-phaser",
3
- "version": "2.190.1",
3
+ "version": "2.190.3",
4
4
  "description": "Phaser 4 game-development rules for TypeScript projects",
5
5
  "author": {
6
6
  "name": "Cody Swann"
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lisa-phaser",
3
- "version": "2.190.1",
3
+ "version": "2.190.3",
4
4
  "description": "Phaser 4 game-development rules for TypeScript projects",
5
5
  "author": {
6
6
  "name": "Cody Swann"
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lisa-rails",
3
- "version": "2.190.1",
3
+ "version": "2.190.3",
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.190.1",
3
+ "version": "2.190.3",
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,9 +1,16 @@
1
1
  #!/usr/bin/env bash
2
2
  # Reads all .md files from the plugin's rules/ directory and injects them
3
- # into the session context via additionalContext.
3
+ # into the session context via hookSpecificOutput.additionalContext.
4
4
  # Used by SessionStart and SubagentStart hooks.
5
5
  set -euo pipefail
6
6
 
7
+ INPUT=$(cat 2>/dev/null || true)
8
+ if [ -n "$INPUT" ]; then
9
+ HOOK_EVENT=$(printf '%s' "$INPUT" | jq -r '.hook_event_name // "SessionStart"' 2>/dev/null || echo "SessionStart")
10
+ else
11
+ HOOK_EVENT="SessionStart"
12
+ fi
13
+
7
14
  RULES_DIR="${CLAUDE_PLUGIN_ROOT}/rules"
8
15
 
9
16
  # Bail silently if no rules directory
@@ -19,4 +26,4 @@ done
19
26
  [ -n "$CONTEXT" ] || exit 0
20
27
 
21
28
  # Output as JSON — jq handles escaping
22
- jq -n --arg ctx "$CONTEXT" '{"additionalContext": $ctx}'
29
+ jq -n --arg event "$HOOK_EVENT" --arg ctx "$CONTEXT" '{"hookSpecificOutput": {"hookEventName": $event, "additionalContext": $ctx}}'
@@ -10,7 +10,7 @@
10
10
  #
11
11
  # Behavior:
12
12
  # - Exit 0: RuboCop passes or auto-fix resolved all errors
13
- # - Exit 1: unfixable errors remain — blocks Claude so it fixes them immediately
13
+ # - Exit 2: unfixable errors remain — blocks Claude so it fixes them immediately
14
14
  #
15
15
  # @see .claude/rules/verification.md "Self-Correction Loop" section
16
16
  # =============================================================================
@@ -75,4 +75,4 @@ fi
75
75
  # Unfixable errors remain — block with feedback
76
76
  echo "RuboCop found unfixable errors in: $FILE_PATH" >&2
77
77
  echo "$OUTPUT" >&2
78
- exit 1
78
+ exit 2
@@ -9,7 +9,7 @@
9
9
  #
10
10
  # Behavior:
11
11
  # - Exit 0: no issues found or ast-grep not configured
12
- # - Exit 1: issues found — blocks Claude so it fixes them immediately
12
+ # - Exit 2: issues found — blocks Claude so it fixes them immediately
13
13
  #
14
14
  # @see .claude/rules/verification.md "Self-Correction Loop" section
15
15
  # =============================================================================
@@ -70,5 +70,5 @@ if OUTPUT=$($SG_CMD scan "$FILE_PATH" 2>&1); then
70
70
  else
71
71
  echo "ast-grep found issues in: $FILE_PATH" >&2
72
72
  echo "$OUTPUT" >&2
73
- exit 1
73
+ exit 2
74
74
  fi
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lisa-rails",
3
- "version": "2.190.1",
3
+ "version": "2.190.3",
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.190.1",
3
+ "version": "2.190.3",
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,9 +1,16 @@
1
1
  #!/usr/bin/env bash
2
2
  # Reads all .md files from the plugin's rules/ directory and injects them
3
- # into the session context via additionalContext.
3
+ # into the session context via hookSpecificOutput.additionalContext.
4
4
  # Used by SessionStart and SubagentStart hooks.
5
5
  set -euo pipefail
6
6
 
7
+ INPUT=$(cat 2>/dev/null || true)
8
+ if [ -n "$INPUT" ]; then
9
+ HOOK_EVENT=$(printf '%s' "$INPUT" | jq -r '.hook_event_name // "SessionStart"' 2>/dev/null || echo "SessionStart")
10
+ else
11
+ HOOK_EVENT="SessionStart"
12
+ fi
13
+
7
14
  RULES_DIR="${CLAUDE_PLUGIN_ROOT}/rules"
8
15
 
9
16
  # Bail silently if no rules directory
@@ -19,4 +26,4 @@ done
19
26
  [ -n "$CONTEXT" ] || exit 0
20
27
 
21
28
  # Output as JSON — jq handles escaping
22
- jq -n --arg ctx "$CONTEXT" '{"additionalContext": $ctx}'
29
+ jq -n --arg event "$HOOK_EVENT" --arg ctx "$CONTEXT" '{"hookSpecificOutput": {"hookEventName": $event, "additionalContext": $ctx}}'
@@ -10,7 +10,7 @@
10
10
  #
11
11
  # Behavior:
12
12
  # - Exit 0: RuboCop passes or auto-fix resolved all errors
13
- # - Exit 1: unfixable errors remain — blocks Claude so it fixes them immediately
13
+ # - Exit 2: unfixable errors remain — blocks Claude so it fixes them immediately
14
14
  #
15
15
  # @see .claude/rules/verification.md "Self-Correction Loop" section
16
16
  # =============================================================================
@@ -75,4 +75,4 @@ fi
75
75
  # Unfixable errors remain — block with feedback
76
76
  echo "RuboCop found unfixable errors in: $FILE_PATH" >&2
77
77
  echo "$OUTPUT" >&2
78
- exit 1
78
+ exit 2
@@ -9,7 +9,7 @@
9
9
  #
10
10
  # Behavior:
11
11
  # - Exit 0: no issues found or ast-grep not configured
12
- # - Exit 1: issues found — blocks Claude so it fixes them immediately
12
+ # - Exit 2: issues found — blocks Claude so it fixes them immediately
13
13
  #
14
14
  # @see .claude/rules/verification.md "Self-Correction Loop" section
15
15
  # =============================================================================
@@ -70,5 +70,5 @@ if OUTPUT=$($SG_CMD scan "$FILE_PATH" 2>&1); then
70
70
  else
71
71
  echo "ast-grep found issues in: $FILE_PATH" >&2
72
72
  echo "$OUTPUT" >&2
73
- exit 1
73
+ exit 2
74
74
  fi
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lisa-rails",
3
- "version": "2.190.1",
3
+ "version": "2.190.3",
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"
@@ -10,7 +10,7 @@
10
10
  #
11
11
  # Behavior:
12
12
  # - Exit 0: RuboCop passes or auto-fix resolved all errors
13
- # - Exit 1: unfixable errors remain — blocks Claude so it fixes them immediately
13
+ # - Exit 2: unfixable errors remain — blocks Claude so it fixes them immediately
14
14
  #
15
15
  # @see .claude/rules/verification.md "Self-Correction Loop" section
16
16
  # =============================================================================
@@ -75,4 +75,4 @@ fi
75
75
  # Unfixable errors remain — block with feedback
76
76
  echo "RuboCop found unfixable errors in: $FILE_PATH" >&2
77
77
  echo "$OUTPUT" >&2
78
- exit 1
78
+ exit 2
@@ -9,7 +9,7 @@
9
9
  #
10
10
  # Behavior:
11
11
  # - Exit 0: no issues found or ast-grep not configured
12
- # - Exit 1: issues found — blocks Claude so it fixes them immediately
12
+ # - Exit 2: issues found — blocks Claude so it fixes them immediately
13
13
  #
14
14
  # @see .claude/rules/verification.md "Self-Correction Loop" section
15
15
  # =============================================================================
@@ -70,5 +70,5 @@ if OUTPUT=$($SG_CMD scan "$FILE_PATH" 2>&1); then
70
70
  else
71
71
  echo "ast-grep found issues in: $FILE_PATH" >&2
72
72
  echo "$OUTPUT" >&2
73
- exit 1
73
+ exit 2
74
74
  fi
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lisa-typescript",
3
- "version": "2.190.1",
3
+ "version": "2.190.3",
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.190.1",
3
+ "version": "2.190.3",
4
4
  "description": "TypeScript-specific hooks for formatting, linting, and ast-grep scanning on edit.",
5
5
  "author": {
6
6
  "name": "Cody Swann"
@@ -67,5 +67,5 @@ if OUTPUT=$($PKG_MANAGER run sg:scan "$FILE_PATH" 2>&1); then
67
67
  else
68
68
  echo "ast-grep found issues in: $FILE_PATH" >&2
69
69
  echo "$OUTPUT" >&2
70
- exit 1
70
+ exit 2
71
71
  fi
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lisa-typescript",
3
- "version": "2.190.1",
3
+ "version": "2.190.3",
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.190.1",
3
+ "version": "2.190.3",
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"
@@ -67,5 +67,5 @@ if OUTPUT=$($PKG_MANAGER run sg:scan "$FILE_PATH" 2>&1); then
67
67
  else
68
68
  echo "ast-grep found issues in: $FILE_PATH" >&2
69
69
  echo "$OUTPUT" >&2
70
- exit 1
70
+ exit 2
71
71
  fi
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lisa-typescript",
3
- "version": "2.190.1",
3
+ "version": "2.190.3",
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"
@@ -67,5 +67,5 @@ if OUTPUT=$($PKG_MANAGER run sg:scan "$FILE_PATH" 2>&1); then
67
67
  else
68
68
  echo "ast-grep found issues in: $FILE_PATH" >&2
69
69
  echo "$OUTPUT" >&2
70
- exit 1
70
+ exit 2
71
71
  fi
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lisa-wiki",
3
- "version": "2.190.1",
3
+ "version": "2.190.3",
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.190.1",
3
+ "version": "2.190.3",
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.190.1",
3
+ "version": "2.190.3",
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.190.1",
3
+ "version": "2.190.3",
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.190.1",
3
+ "version": "2.190.3",
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
  #!/usr/bin/env bash
2
2
  # Reads all .md files from the plugin's rules/eager/ directory and injects them
3
- # into the session context via additionalContext.
3
+ # into the session context via hookSpecificOutput.additionalContext.
4
4
  # Used by SessionStart and SubagentStart hooks.
5
5
  #
6
6
  # The split between eager and reference rules is documented in
@@ -9,6 +9,13 @@
9
9
  # eager breadcrumb points to them.
10
10
  set -euo pipefail
11
11
 
12
+ INPUT=$(cat 2>/dev/null || true)
13
+ if [ -n "$INPUT" ]; then
14
+ HOOK_EVENT=$(printf '%s' "$INPUT" | jq -r '.hook_event_name // "SessionStart"' 2>/dev/null || echo "SessionStart")
15
+ else
16
+ HOOK_EVENT="SessionStart"
17
+ fi
18
+
12
19
  RULES_DIR="${CLAUDE_PLUGIN_ROOT}/rules/eager"
13
20
 
14
21
  # Backward compatibility: if the eager subdir is absent (older Lisa install),
@@ -30,4 +37,4 @@ done
30
37
  [ -n "$CONTEXT" ] || exit 0
31
38
 
32
39
  # Output as JSON — jq handles escaping
33
- jq -n --arg ctx "$CONTEXT" '{"additionalContext": $ctx}'
40
+ jq -n --arg event "$HOOK_EVENT" --arg ctx "$CONTEXT" '{"hookSpecificOutput": {"hookEventName": $event, "additionalContext": $ctx}}'
@@ -1,9 +1,16 @@
1
1
  #!/usr/bin/env bash
2
2
  # Reads all .md files from the plugin's rules/ directory and injects them
3
- # into the session context via additionalContext.
3
+ # into the session context via hookSpecificOutput.additionalContext.
4
4
  # Used by SessionStart and SubagentStart hooks.
5
5
  set -euo pipefail
6
6
 
7
+ INPUT=$(cat 2>/dev/null || true)
8
+ if [ -n "$INPUT" ]; then
9
+ HOOK_EVENT=$(printf '%s' "$INPUT" | jq -r '.hook_event_name // "SessionStart"' 2>/dev/null || echo "SessionStart")
10
+ else
11
+ HOOK_EVENT="SessionStart"
12
+ fi
13
+
7
14
  RULES_DIR="${CLAUDE_PLUGIN_ROOT}/rules"
8
15
 
9
16
  # Bail silently if no rules directory
@@ -19,4 +26,4 @@ done
19
26
  [ -n "$CONTEXT" ] || exit 0
20
27
 
21
28
  # Output as JSON — jq handles escaping
22
- jq -n --arg ctx "$CONTEXT" '{"additionalContext": $ctx}'
29
+ jq -n --arg event "$HOOK_EVENT" --arg ctx "$CONTEXT" '{"hookSpecificOutput": {"hookEventName": $event, "additionalContext": $ctx}}'
@@ -10,7 +10,7 @@
10
10
  #
11
11
  # Behavior:
12
12
  # - Exit 0: RuboCop passes or auto-fix resolved all errors
13
- # - Exit 1: unfixable errors remain — blocks Claude so it fixes them immediately
13
+ # - Exit 2: unfixable errors remain — blocks Claude so it fixes them immediately
14
14
  #
15
15
  # @see .claude/rules/verification.md "Self-Correction Loop" section
16
16
  # =============================================================================
@@ -75,4 +75,4 @@ fi
75
75
  # Unfixable errors remain — block with feedback
76
76
  echo "RuboCop found unfixable errors in: $FILE_PATH" >&2
77
77
  echo "$OUTPUT" >&2
78
- exit 1
78
+ exit 2
@@ -9,7 +9,7 @@
9
9
  #
10
10
  # Behavior:
11
11
  # - Exit 0: no issues found or ast-grep not configured
12
- # - Exit 1: issues found — blocks Claude so it fixes them immediately
12
+ # - Exit 2: issues found — blocks Claude so it fixes them immediately
13
13
  #
14
14
  # @see .claude/rules/verification.md "Self-Correction Loop" section
15
15
  # =============================================================================
@@ -70,5 +70,5 @@ if OUTPUT=$($SG_CMD scan "$FILE_PATH" 2>&1); then
70
70
  else
71
71
  echo "ast-grep found issues in: $FILE_PATH" >&2
72
72
  echo "$OUTPUT" >&2
73
- exit 1
73
+ exit 2
74
74
  fi
@@ -67,5 +67,5 @@ if OUTPUT=$($PKG_MANAGER run sg:scan "$FILE_PATH" 2>&1); then
67
67
  else
68
68
  echo "ast-grep found issues in: $FILE_PATH" >&2
69
69
  echo "$OUTPUT" >&2
70
- exit 1
70
+ exit 2
71
71
  fi