@codyswann/lisa 2.189.4 → 2.189.7

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 (60) hide show
  1. package/dist/codex/scripts/install-pkgs.sh +4 -4
  2. package/eslint-plugin-code-organization/__tests__/enforce-statement-order.test.js +20 -0
  3. package/eslint-plugin-code-organization/rules/enforce-statement-order.js +32 -7
  4. package/eslint-plugin-component-structure/__tests__/enforce-component-structure.test.js +61 -0
  5. package/eslint-plugin-component-structure/rules/enforce-component-structure.js +37 -31
  6. package/package.json +1 -1
  7. package/plugins/lisa/.claude-plugin/plugin.json +1 -1
  8. package/plugins/lisa/.codex-plugin/plugin.json +1 -1
  9. package/plugins/lisa/hooks/install-pkgs.sh +13 -13
  10. package/plugins/lisa-agy/plugin.json +1 -1
  11. package/plugins/lisa-cdk/.claude-plugin/plugin.json +1 -1
  12. package/plugins/lisa-cdk/.codex-plugin/plugin.json +1 -1
  13. package/plugins/lisa-cdk-agy/plugin.json +1 -1
  14. package/plugins/lisa-cdk-copilot/.claude-plugin/plugin.json +1 -1
  15. package/plugins/lisa-cdk-cursor/.claude-plugin/plugin.json +1 -1
  16. package/plugins/lisa-copilot/.claude-plugin/plugin.json +1 -1
  17. package/plugins/lisa-copilot/hooks/install-pkgs.sh +13 -13
  18. package/plugins/lisa-cursor/.claude-plugin/plugin.json +1 -1
  19. package/plugins/lisa-cursor/hooks/install-pkgs.sh +13 -13
  20. package/plugins/lisa-expo/.claude-plugin/plugin.json +1 -1
  21. package/plugins/lisa-expo/.codex-plugin/plugin.json +1 -1
  22. package/plugins/lisa-expo-agy/plugin.json +1 -1
  23. package/plugins/lisa-expo-copilot/.claude-plugin/plugin.json +1 -1
  24. package/plugins/lisa-expo-cursor/.claude-plugin/plugin.json +1 -1
  25. package/plugins/lisa-harper-fabric/.claude-plugin/plugin.json +1 -1
  26. package/plugins/lisa-harper-fabric/.codex-plugin/plugin.json +1 -1
  27. package/plugins/lisa-harper-fabric-agy/plugin.json +1 -1
  28. package/plugins/lisa-harper-fabric-copilot/.claude-plugin/plugin.json +1 -1
  29. package/plugins/lisa-harper-fabric-cursor/.claude-plugin/plugin.json +1 -1
  30. package/plugins/lisa-nestjs/.claude-plugin/plugin.json +1 -1
  31. package/plugins/lisa-nestjs/.codex-plugin/plugin.json +1 -1
  32. package/plugins/lisa-nestjs-agy/plugin.json +1 -1
  33. package/plugins/lisa-nestjs-copilot/.claude-plugin/plugin.json +1 -1
  34. package/plugins/lisa-nestjs-cursor/.claude-plugin/plugin.json +1 -1
  35. package/plugins/lisa-openclaw/.claude-plugin/plugin.json +1 -1
  36. package/plugins/lisa-openclaw/.codex-plugin/plugin.json +1 -1
  37. package/plugins/lisa-openclaw-agy/plugin.json +1 -1
  38. package/plugins/lisa-openclaw-copilot/.claude-plugin/plugin.json +1 -1
  39. package/plugins/lisa-openclaw-cursor/.claude-plugin/plugin.json +1 -1
  40. package/plugins/lisa-phaser/.claude-plugin/plugin.json +1 -1
  41. package/plugins/lisa-phaser/.codex-plugin/plugin.json +1 -1
  42. package/plugins/lisa-phaser-agy/plugin.json +1 -1
  43. package/plugins/lisa-phaser-copilot/.claude-plugin/plugin.json +1 -1
  44. package/plugins/lisa-phaser-cursor/.claude-plugin/plugin.json +1 -1
  45. package/plugins/lisa-rails/.claude-plugin/plugin.json +1 -1
  46. package/plugins/lisa-rails/.codex-plugin/plugin.json +1 -1
  47. package/plugins/lisa-rails-agy/plugin.json +1 -1
  48. package/plugins/lisa-rails-copilot/.claude-plugin/plugin.json +1 -1
  49. package/plugins/lisa-rails-cursor/.claude-plugin/plugin.json +1 -1
  50. package/plugins/lisa-typescript/.claude-plugin/plugin.json +1 -1
  51. package/plugins/lisa-typescript/.codex-plugin/plugin.json +1 -1
  52. package/plugins/lisa-typescript-agy/plugin.json +1 -1
  53. package/plugins/lisa-typescript-copilot/.claude-plugin/plugin.json +1 -1
  54. package/plugins/lisa-typescript-cursor/.claude-plugin/plugin.json +1 -1
  55. package/plugins/lisa-wiki/.claude-plugin/plugin.json +1 -1
  56. package/plugins/lisa-wiki/.codex-plugin/plugin.json +1 -1
  57. package/plugins/lisa-wiki-agy/plugin.json +1 -1
  58. package/plugins/lisa-wiki-copilot/.claude-plugin/plugin.json +1 -1
  59. package/plugins/lisa-wiki-cursor/.claude-plugin/plugin.json +1 -1
  60. package/plugins/src/base/hooks/install-pkgs.sh +13 -13
@@ -65,10 +65,10 @@ detect_package_manager() {
65
65
 
66
66
  PACKAGE_MANAGER="$(detect_package_manager)"
67
67
  case "$PACKAGE_MANAGER" in
68
- bun) command -v bun >/dev/null 2>&1 && bun install ;;
69
- pnpm) command -v pnpm >/dev/null 2>&1 && pnpm install ;;
70
- yarn) command -v yarn >/dev/null 2>&1 && yarn install ;;
71
- *) command -v npm >/dev/null 2>&1 && npm install ;;
68
+ bun) command -v bun >/dev/null 2>&1 && bun install >&2 ;;
69
+ pnpm) command -v pnpm >/dev/null 2>&1 && pnpm install >&2 ;;
70
+ yarn) command -v yarn >/dev/null 2>&1 && yarn install >&2 ;;
71
+ *) command -v npm >/dev/null 2>&1 && npm install >&2 ;;
72
72
  esac
73
73
 
74
74
  exit 0
@@ -362,6 +362,26 @@ ruleTester.run("enforce-statement-order", rule, {
362
362
  ],
363
363
  },
364
364
 
365
+ // Awaited side effect before definition
366
+ {
367
+ code: `
368
+ async function loadData() {
369
+ await fetchData();
370
+ const data = [];
371
+ return data;
372
+ }
373
+ `,
374
+ errors: [
375
+ {
376
+ messageId: "wrongOrder",
377
+ data: {
378
+ current: DEFINITIONS,
379
+ previous: SIDE_EFFECTS,
380
+ },
381
+ },
382
+ ],
383
+ },
384
+
365
385
  // Console.log before definition
366
386
  {
367
387
  code: `
@@ -24,7 +24,17 @@ module.exports = {
24
24
  recommended: true,
25
25
  },
26
26
  fixable: null,
27
- schema: [],
27
+ schema: [
28
+ {
29
+ type: "object",
30
+ properties: {
31
+ checkAwaitedCalls: {
32
+ type: "boolean",
33
+ },
34
+ },
35
+ additionalProperties: false,
36
+ },
37
+ ],
28
38
  messages: {
29
39
  wrongOrder:
30
40
  "{{current}} should come before {{previous}}. Expected order: definitions → side effects → return statement",
@@ -43,6 +53,25 @@ module.exports = {
43
53
  [ORDER.SIDE_EFFECT]: "Side effects",
44
54
  [ORDER.RETURN]: "Return statement",
45
55
  };
56
+ const options = context.options[0] || {};
57
+ const checkAwaitedCalls = options.checkAwaitedCalls !== false;
58
+
59
+ /**
60
+ * Removes transparent wrappers around a candidate side-effect expression.
61
+ * @param {import('eslint').Rule.Node | null | undefined} expression - Expression node
62
+ * @returns {import('eslint').Rule.Node | null | undefined} Unwrapped expression node
63
+ */
64
+ function unwrapExpression(expression) {
65
+ if (
66
+ expression &&
67
+ ((checkAwaitedCalls && expression.type === "AwaitExpression") ||
68
+ expression.type === "ChainExpression")
69
+ ) {
70
+ return unwrapExpression(expression.expression || expression.argument);
71
+ }
72
+
73
+ return expression;
74
+ }
46
75
 
47
76
  /**
48
77
  * Checks if an expression statement is a function call (side effect)
@@ -54,14 +83,10 @@ module.exports = {
54
83
  return false;
55
84
  }
56
85
 
57
- const expression = statement.expression;
86
+ const expression = unwrapExpression(statement.expression);
58
87
 
59
88
  // Direct call: doSomething() or object.method()
60
- if (expression.type === "CallExpression") {
61
- return true;
62
- }
63
-
64
- return false;
89
+ return Boolean(expression && expression.type === "CallExpression");
65
90
  }
66
91
 
67
92
  /**
@@ -0,0 +1,61 @@
1
+ /**
2
+ * This file is managed by Lisa.
3
+ * Do not edit directly — changes will be overwritten on the next `lisa` run.
4
+ */
5
+
6
+ const fs = require("fs");
7
+ const os = require("os");
8
+ const path = require("path");
9
+ const { RuleTester } = require("eslint");
10
+
11
+ const rule = require("../rules/enforce-component-structure");
12
+
13
+ const ruleTester = new RuleTester({
14
+ languageOptions: {
15
+ ecmaVersion: 2020,
16
+ sourceType: "module",
17
+ parserOptions: {
18
+ ecmaFeatures: {
19
+ jsx: true,
20
+ },
21
+ },
22
+ },
23
+ });
24
+
25
+ /**
26
+ * Creates an index file fixture whose component siblings are intentionally missing.
27
+ * @param {string} componentName Component directory name
28
+ * @returns {string} Absolute fixture index path
29
+ */
30
+ function createComponentIndexFixture(componentName) {
31
+ const rootDir = fs.mkdtempSync(
32
+ path.join(os.tmpdir(), "lisa-component-structure-")
33
+ );
34
+ const componentDir = path.join(
35
+ rootDir,
36
+ "src",
37
+ "features",
38
+ "demo",
39
+ "components",
40
+ componentName
41
+ );
42
+ const filename = path.join(componentDir, "index.tsx");
43
+
44
+ fs.mkdirSync(componentDir, { recursive: true });
45
+ fs.writeFileSync(
46
+ filename,
47
+ `export { default } from "./${componentName}View";\n`
48
+ );
49
+ return filename;
50
+ }
51
+
52
+ ruleTester.run("enforce-component-structure", rule, {
53
+ valid: [],
54
+ invalid: [
55
+ {
56
+ code: `export { default } from "./MissingSiblingsView";`,
57
+ filename: createComponentIndexFixture("MissingSiblings"),
58
+ errors: [{ messageId: "missingContainer" }, { messageId: "missingView" }],
59
+ },
60
+ ],
61
+ });
@@ -116,36 +116,7 @@ module.exports = {
116
116
  return {};
117
117
  }
118
118
 
119
- // Check file naming
120
119
  if (
121
- fileName === "index.ts" ||
122
- fileName === "index.tsx" ||
123
- fileName === "index.jsx"
124
- ) {
125
- // Check if index.tsx exports the Container
126
- return {
127
- Program(node) {
128
- const sourceCode = context.getSourceCode();
129
- const text = sourceCode.getText();
130
-
131
- // Check for export patterns (allow Container or View)
132
- const defaultExportPattern = new RegExp(
133
- `export\\s*{\\s*default\\s*}\\s*from\\s*['"\`]\\.\\/${componentName}(Container|View)['"\`]|` +
134
- `export\\s*\\*\\s*from\\s*['"\`]\\.\\/${componentName}(Container|View)['"\`]|` +
135
- `export\\s*{\\s*${componentName}(Container|View)\\s*as\\s*default\\s*}|` +
136
- `export\\s*default\\s*${componentName}(Container|View)`
137
- );
138
-
139
- if (!defaultExportPattern.test(text)) {
140
- context.report({
141
- node,
142
- messageId: "incorrectIndexExport",
143
- data: { componentName },
144
- });
145
- }
146
- },
147
- };
148
- } else if (
149
120
  fileName.endsWith("Container.tsx") ||
150
121
  fileName.endsWith("Container.jsx")
151
122
  ) {
@@ -196,7 +167,7 @@ module.exports = {
196
167
  f === `${componentName}View.tsx` || f === `${componentName}View.jsx`
197
168
  );
198
169
  const hasIndex = files.some(
199
- f => f === "index.tsx" || f === "index.jsx"
170
+ f => f === "index.ts" || f === "index.tsx" || f === "index.jsx"
200
171
  );
201
172
 
202
173
  if (!hasContainer) {
@@ -226,10 +197,45 @@ module.exports = {
226
197
  };
227
198
 
228
199
  // Only check once per file
229
- if (fileName === "index.tsx" || fileName === "index.jsx") {
200
+ if (
201
+ fileName === "index.ts" ||
202
+ fileName === "index.tsx" ||
203
+ fileName === "index.jsx"
204
+ ) {
230
205
  checkRequiredFiles();
231
206
  }
232
207
 
208
+ // Check file naming
209
+ if (
210
+ fileName === "index.ts" ||
211
+ fileName === "index.tsx" ||
212
+ fileName === "index.jsx"
213
+ ) {
214
+ // Check if index.tsx exports the Container
215
+ return {
216
+ Program(node) {
217
+ const sourceCode = context.getSourceCode();
218
+ const text = sourceCode.getText();
219
+
220
+ // Check for export patterns (allow Container or View)
221
+ const defaultExportPattern = new RegExp(
222
+ `export\\s*{\\s*default\\s*}\\s*from\\s*['"\`]\\.\\/${componentName}(Container|View)['"\`]|` +
223
+ `export\\s*\\*\\s*from\\s*['"\`]\\.\\/${componentName}(Container|View)['"\`]|` +
224
+ `export\\s*{\\s*${componentName}(Container|View)\\s*as\\s*default\\s*}|` +
225
+ `export\\s*default\\s*${componentName}(Container|View)`
226
+ );
227
+
228
+ if (!defaultExportPattern.test(text)) {
229
+ context.report({
230
+ node,
231
+ messageId: "incorrectIndexExport",
232
+ data: { componentName },
233
+ });
234
+ }
235
+ },
236
+ };
237
+ }
238
+
233
239
  return {};
234
240
  },
235
241
  };
package/package.json CHANGED
@@ -94,7 +94,7 @@
94
94
  "ws": ">=8.20.1"
95
95
  },
96
96
  "name": "@codyswann/lisa",
97
- "version": "2.189.4",
97
+ "version": "2.189.7",
98
98
  "description": "Claude Code governance framework that applies guardrails, guidance, and automated enforcement to projects",
99
99
  "main": "dist/index.js",
100
100
  "exports": {
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lisa",
3
- "version": "2.189.4",
3
+ "version": "2.189.7",
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.189.4",
3
+ "version": "2.189.7",
4
4
  "description": "Universal governance: agents, skills, commands, hooks, and rules for all projects.",
5
5
  "author": {
6
6
  "name": "Cody Swann"
@@ -20,7 +20,7 @@ link_primary_worktree_node_modules() {
20
20
  [ -d "$primary_root/node_modules" ] || return 1
21
21
 
22
22
  ln -s "$primary_root/node_modules" "node_modules"
23
- echo "Linked node_modules from primary worktree: $primary_root/node_modules"
23
+ echo "Linked node_modules from primary worktree: $primary_root/node_modules" >&2
24
24
  }
25
25
 
26
26
  # Only run package installation when node_modules are missing.
@@ -60,12 +60,12 @@ detect_package_manager() {
60
60
  }
61
61
 
62
62
  PACKAGE_MANAGER="$(detect_package_manager)"
63
- echo "Detected package manager: ${PACKAGE_MANAGER}"
63
+ echo "Detected package manager: ${PACKAGE_MANAGER}" >&2
64
64
  case "$PACKAGE_MANAGER" in
65
- bun) bun install ;;
66
- pnpm) pnpm install ;;
67
- yarn) yarn install ;;
68
- *) npm install ;;
65
+ bun) bun install >&2 ;;
66
+ pnpm) pnpm install >&2 ;;
67
+ yarn) yarn install >&2 ;;
68
+ *) npm install >&2 ;;
69
69
  esac
70
70
 
71
71
  # The tools below use Linux-specific binaries and paths — skip on other platforms.
@@ -74,15 +74,15 @@ if [ "$(uname -s)" != "Linux" ]; then
74
74
  fi
75
75
 
76
76
  # Install Gitleaks for secret detection (pre-commit hook)
77
- echo "Installing Gitleaks for secret detection..."
77
+ echo "Installing Gitleaks for secret detection..." >&2
78
78
  GITLEAKS_VERSION="8.18.4"
79
79
  curl -sSfL "https://github.com/gitleaks/gitleaks/releases/download/v${GITLEAKS_VERSION}/gitleaks_${GITLEAKS_VERSION}_linux_x64.tar.gz" | tar -xz -C /usr/local/bin gitleaks
80
- echo "Gitleaks installed: $(gitleaks version)"
80
+ echo "Gitleaks installed: $(gitleaks version)" >&2
81
81
 
82
82
  # Install jira-cli for JIRA integration
83
83
  # The tarball nests the binary at jira_VERSION_linux_x86_64/bin/jira,
84
84
  # so we extract to a temp dir and copy the binary out.
85
- echo "Installing jira-cli for JIRA integration..."
85
+ echo "Installing jira-cli for JIRA integration..." >&2
86
86
  JIRA_CLI_VERSION="1.7.0"
87
87
  JIRA_TMPDIR=$(mktemp -d)
88
88
  curl -sSfL "https://github.com/ankitpokhrel/jira-cli/releases/download/v${JIRA_CLI_VERSION}/jira_${JIRA_CLI_VERSION}_linux_x86_64.tar.gz" \
@@ -90,12 +90,12 @@ curl -sSfL "https://github.com/ankitpokhrel/jira-cli/releases/download/v${JIRA_C
90
90
  cp "${JIRA_TMPDIR}/jira_${JIRA_CLI_VERSION}_linux_x86_64/bin/jira" /usr/local/bin/jira
91
91
  chmod +x /usr/local/bin/jira
92
92
  rm -rf "${JIRA_TMPDIR}"
93
- echo "jira-cli installed: $(jira version)"
93
+ echo "jira-cli installed: $(jira version)" >&2
94
94
 
95
95
  # Install Chromium for Lighthouse CI (pre-push hook)
96
96
  # Playwright's bundled Chromium works with @lhci/cli
97
- echo "Installing Chromium for Lighthouse CI..."
98
- npx playwright install chromium
97
+ echo "Installing Chromium for Lighthouse CI..." >&2
98
+ npx playwright install chromium >&2
99
99
 
100
100
  # Find and export CHROME_PATH for Lighthouse CI
101
101
  # Use sort to ensure deterministic selection of the latest version
@@ -110,7 +110,7 @@ if [ -n "$CHROME_PATH" ]; then
110
110
  fi
111
111
 
112
112
  export CHROME_PATH="$CHROME_PATH"
113
- echo "Chromium installed at: $CHROME_PATH"
113
+ echo "Chromium installed at: $CHROME_PATH" >&2
114
114
  fi
115
115
 
116
116
  exit 0
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lisa",
3
- "version": "2.189.4",
3
+ "version": "2.189.7",
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.189.4",
3
+ "version": "2.189.7",
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.189.4",
3
+ "version": "2.189.7",
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.189.4",
3
+ "version": "2.189.7",
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.189.4",
3
+ "version": "2.189.7",
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.189.4",
3
+ "version": "2.189.7",
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.189.4",
3
+ "version": "2.189.7",
4
4
  "description": "Universal governance — agents, skills, commands, hooks, and rules for all projects",
5
5
  "author": {
6
6
  "name": "Cody Swann"
@@ -20,7 +20,7 @@ link_primary_worktree_node_modules() {
20
20
  [ -d "$primary_root/node_modules" ] || return 1
21
21
 
22
22
  ln -s "$primary_root/node_modules" "node_modules"
23
- echo "Linked node_modules from primary worktree: $primary_root/node_modules"
23
+ echo "Linked node_modules from primary worktree: $primary_root/node_modules" >&2
24
24
  }
25
25
 
26
26
  # Only run package installation when node_modules are missing.
@@ -60,12 +60,12 @@ detect_package_manager() {
60
60
  }
61
61
 
62
62
  PACKAGE_MANAGER="$(detect_package_manager)"
63
- echo "Detected package manager: ${PACKAGE_MANAGER}"
63
+ echo "Detected package manager: ${PACKAGE_MANAGER}" >&2
64
64
  case "$PACKAGE_MANAGER" in
65
- bun) bun install ;;
66
- pnpm) pnpm install ;;
67
- yarn) yarn install ;;
68
- *) npm install ;;
65
+ bun) bun install >&2 ;;
66
+ pnpm) pnpm install >&2 ;;
67
+ yarn) yarn install >&2 ;;
68
+ *) npm install >&2 ;;
69
69
  esac
70
70
 
71
71
  # The tools below use Linux-specific binaries and paths — skip on other platforms.
@@ -74,15 +74,15 @@ if [ "$(uname -s)" != "Linux" ]; then
74
74
  fi
75
75
 
76
76
  # Install Gitleaks for secret detection (pre-commit hook)
77
- echo "Installing Gitleaks for secret detection..."
77
+ echo "Installing Gitleaks for secret detection..." >&2
78
78
  GITLEAKS_VERSION="8.18.4"
79
79
  curl -sSfL "https://github.com/gitleaks/gitleaks/releases/download/v${GITLEAKS_VERSION}/gitleaks_${GITLEAKS_VERSION}_linux_x64.tar.gz" | tar -xz -C /usr/local/bin gitleaks
80
- echo "Gitleaks installed: $(gitleaks version)"
80
+ echo "Gitleaks installed: $(gitleaks version)" >&2
81
81
 
82
82
  # Install jira-cli for JIRA integration
83
83
  # The tarball nests the binary at jira_VERSION_linux_x86_64/bin/jira,
84
84
  # so we extract to a temp dir and copy the binary out.
85
- echo "Installing jira-cli for JIRA integration..."
85
+ echo "Installing jira-cli for JIRA integration..." >&2
86
86
  JIRA_CLI_VERSION="1.7.0"
87
87
  JIRA_TMPDIR=$(mktemp -d)
88
88
  curl -sSfL "https://github.com/ankitpokhrel/jira-cli/releases/download/v${JIRA_CLI_VERSION}/jira_${JIRA_CLI_VERSION}_linux_x86_64.tar.gz" \
@@ -90,12 +90,12 @@ curl -sSfL "https://github.com/ankitpokhrel/jira-cli/releases/download/v${JIRA_C
90
90
  cp "${JIRA_TMPDIR}/jira_${JIRA_CLI_VERSION}_linux_x86_64/bin/jira" /usr/local/bin/jira
91
91
  chmod +x /usr/local/bin/jira
92
92
  rm -rf "${JIRA_TMPDIR}"
93
- echo "jira-cli installed: $(jira version)"
93
+ echo "jira-cli installed: $(jira version)" >&2
94
94
 
95
95
  # Install Chromium for Lighthouse CI (pre-push hook)
96
96
  # Playwright's bundled Chromium works with @lhci/cli
97
- echo "Installing Chromium for Lighthouse CI..."
98
- npx playwright install chromium
97
+ echo "Installing Chromium for Lighthouse CI..." >&2
98
+ npx playwright install chromium >&2
99
99
 
100
100
  # Find and export CHROME_PATH for Lighthouse CI
101
101
  # Use sort to ensure deterministic selection of the latest version
@@ -110,7 +110,7 @@ if [ -n "$CHROME_PATH" ]; then
110
110
  fi
111
111
 
112
112
  export CHROME_PATH="$CHROME_PATH"
113
- echo "Chromium installed at: $CHROME_PATH"
113
+ echo "Chromium installed at: $CHROME_PATH" >&2
114
114
  fi
115
115
 
116
116
  exit 0
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lisa",
3
- "version": "2.189.4",
3
+ "version": "2.189.7",
4
4
  "description": "Universal governance — agents, skills, commands, hooks, and rules for all projects",
5
5
  "author": {
6
6
  "name": "Cody Swann"
@@ -20,7 +20,7 @@ link_primary_worktree_node_modules() {
20
20
  [ -d "$primary_root/node_modules" ] || return 1
21
21
 
22
22
  ln -s "$primary_root/node_modules" "node_modules"
23
- echo "Linked node_modules from primary worktree: $primary_root/node_modules"
23
+ echo "Linked node_modules from primary worktree: $primary_root/node_modules" >&2
24
24
  }
25
25
 
26
26
  # Only run package installation when node_modules are missing.
@@ -60,12 +60,12 @@ detect_package_manager() {
60
60
  }
61
61
 
62
62
  PACKAGE_MANAGER="$(detect_package_manager)"
63
- echo "Detected package manager: ${PACKAGE_MANAGER}"
63
+ echo "Detected package manager: ${PACKAGE_MANAGER}" >&2
64
64
  case "$PACKAGE_MANAGER" in
65
- bun) bun install ;;
66
- pnpm) pnpm install ;;
67
- yarn) yarn install ;;
68
- *) npm install ;;
65
+ bun) bun install >&2 ;;
66
+ pnpm) pnpm install >&2 ;;
67
+ yarn) yarn install >&2 ;;
68
+ *) npm install >&2 ;;
69
69
  esac
70
70
 
71
71
  # The tools below use Linux-specific binaries and paths — skip on other platforms.
@@ -74,15 +74,15 @@ if [ "$(uname -s)" != "Linux" ]; then
74
74
  fi
75
75
 
76
76
  # Install Gitleaks for secret detection (pre-commit hook)
77
- echo "Installing Gitleaks for secret detection..."
77
+ echo "Installing Gitleaks for secret detection..." >&2
78
78
  GITLEAKS_VERSION="8.18.4"
79
79
  curl -sSfL "https://github.com/gitleaks/gitleaks/releases/download/v${GITLEAKS_VERSION}/gitleaks_${GITLEAKS_VERSION}_linux_x64.tar.gz" | tar -xz -C /usr/local/bin gitleaks
80
- echo "Gitleaks installed: $(gitleaks version)"
80
+ echo "Gitleaks installed: $(gitleaks version)" >&2
81
81
 
82
82
  # Install jira-cli for JIRA integration
83
83
  # The tarball nests the binary at jira_VERSION_linux_x86_64/bin/jira,
84
84
  # so we extract to a temp dir and copy the binary out.
85
- echo "Installing jira-cli for JIRA integration..."
85
+ echo "Installing jira-cli for JIRA integration..." >&2
86
86
  JIRA_CLI_VERSION="1.7.0"
87
87
  JIRA_TMPDIR=$(mktemp -d)
88
88
  curl -sSfL "https://github.com/ankitpokhrel/jira-cli/releases/download/v${JIRA_CLI_VERSION}/jira_${JIRA_CLI_VERSION}_linux_x86_64.tar.gz" \
@@ -90,12 +90,12 @@ curl -sSfL "https://github.com/ankitpokhrel/jira-cli/releases/download/v${JIRA_C
90
90
  cp "${JIRA_TMPDIR}/jira_${JIRA_CLI_VERSION}_linux_x86_64/bin/jira" /usr/local/bin/jira
91
91
  chmod +x /usr/local/bin/jira
92
92
  rm -rf "${JIRA_TMPDIR}"
93
- echo "jira-cli installed: $(jira version)"
93
+ echo "jira-cli installed: $(jira version)" >&2
94
94
 
95
95
  # Install Chromium for Lighthouse CI (pre-push hook)
96
96
  # Playwright's bundled Chromium works with @lhci/cli
97
- echo "Installing Chromium for Lighthouse CI..."
98
- npx playwright install chromium
97
+ echo "Installing Chromium for Lighthouse CI..." >&2
98
+ npx playwright install chromium >&2
99
99
 
100
100
  # Find and export CHROME_PATH for Lighthouse CI
101
101
  # Use sort to ensure deterministic selection of the latest version
@@ -110,7 +110,7 @@ if [ -n "$CHROME_PATH" ]; then
110
110
  fi
111
111
 
112
112
  export CHROME_PATH="$CHROME_PATH"
113
- echo "Chromium installed at: $CHROME_PATH"
113
+ echo "Chromium installed at: $CHROME_PATH" >&2
114
114
  fi
115
115
 
116
116
  exit 0
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lisa-expo",
3
- "version": "2.189.4",
3
+ "version": "2.189.7",
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.189.4",
3
+ "version": "2.189.7",
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.189.4",
3
+ "version": "2.189.7",
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.189.4",
3
+ "version": "2.189.7",
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.189.4",
3
+ "version": "2.189.7",
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.189.4",
3
+ "version": "2.189.7",
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.189.4",
3
+ "version": "2.189.7",
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.189.4",
3
+ "version": "2.189.7",
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.189.4",
3
+ "version": "2.189.7",
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.189.4",
3
+ "version": "2.189.7",
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.189.4",
3
+ "version": "2.189.7",
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.189.4",
3
+ "version": "2.189.7",
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.189.4",
3
+ "version": "2.189.7",
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.189.4",
3
+ "version": "2.189.7",
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.189.4",
3
+ "version": "2.189.7",
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.189.4",
3
+ "version": "2.189.7",
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.189.4",
3
+ "version": "2.189.7",
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.189.4",
3
+ "version": "2.189.7",
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.189.4",
3
+ "version": "2.189.7",
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.189.4",
3
+ "version": "2.189.7",
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.189.4",
3
+ "version": "2.189.7",
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.189.4",
3
+ "version": "2.189.7",
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.189.4",
3
+ "version": "2.189.7",
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.189.4",
3
+ "version": "2.189.7",
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.189.4",
3
+ "version": "2.189.7",
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.189.4",
3
+ "version": "2.189.7",
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.189.4",
3
+ "version": "2.189.7",
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.189.4",
3
+ "version": "2.189.7",
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.189.4",
3
+ "version": "2.189.7",
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.189.4",
3
+ "version": "2.189.7",
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.189.4",
3
+ "version": "2.189.7",
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.189.4",
3
+ "version": "2.189.7",
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.189.4",
3
+ "version": "2.189.7",
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.189.4",
3
+ "version": "2.189.7",
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.189.4",
3
+ "version": "2.189.7",
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.189.4",
3
+ "version": "2.189.7",
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.189.4",
3
+ "version": "2.189.7",
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.189.4",
3
+ "version": "2.189.7",
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.189.4",
3
+ "version": "2.189.7",
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.189.4",
3
+ "version": "2.189.7",
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"
@@ -20,7 +20,7 @@ link_primary_worktree_node_modules() {
20
20
  [ -d "$primary_root/node_modules" ] || return 1
21
21
 
22
22
  ln -s "$primary_root/node_modules" "node_modules"
23
- echo "Linked node_modules from primary worktree: $primary_root/node_modules"
23
+ echo "Linked node_modules from primary worktree: $primary_root/node_modules" >&2
24
24
  }
25
25
 
26
26
  # Only run package installation when node_modules are missing.
@@ -60,12 +60,12 @@ detect_package_manager() {
60
60
  }
61
61
 
62
62
  PACKAGE_MANAGER="$(detect_package_manager)"
63
- echo "Detected package manager: ${PACKAGE_MANAGER}"
63
+ echo "Detected package manager: ${PACKAGE_MANAGER}" >&2
64
64
  case "$PACKAGE_MANAGER" in
65
- bun) bun install ;;
66
- pnpm) pnpm install ;;
67
- yarn) yarn install ;;
68
- *) npm install ;;
65
+ bun) bun install >&2 ;;
66
+ pnpm) pnpm install >&2 ;;
67
+ yarn) yarn install >&2 ;;
68
+ *) npm install >&2 ;;
69
69
  esac
70
70
 
71
71
  # The tools below use Linux-specific binaries and paths — skip on other platforms.
@@ -74,15 +74,15 @@ if [ "$(uname -s)" != "Linux" ]; then
74
74
  fi
75
75
 
76
76
  # Install Gitleaks for secret detection (pre-commit hook)
77
- echo "Installing Gitleaks for secret detection..."
77
+ echo "Installing Gitleaks for secret detection..." >&2
78
78
  GITLEAKS_VERSION="8.18.4"
79
79
  curl -sSfL "https://github.com/gitleaks/gitleaks/releases/download/v${GITLEAKS_VERSION}/gitleaks_${GITLEAKS_VERSION}_linux_x64.tar.gz" | tar -xz -C /usr/local/bin gitleaks
80
- echo "Gitleaks installed: $(gitleaks version)"
80
+ echo "Gitleaks installed: $(gitleaks version)" >&2
81
81
 
82
82
  # Install jira-cli for JIRA integration
83
83
  # The tarball nests the binary at jira_VERSION_linux_x86_64/bin/jira,
84
84
  # so we extract to a temp dir and copy the binary out.
85
- echo "Installing jira-cli for JIRA integration..."
85
+ echo "Installing jira-cli for JIRA integration..." >&2
86
86
  JIRA_CLI_VERSION="1.7.0"
87
87
  JIRA_TMPDIR=$(mktemp -d)
88
88
  curl -sSfL "https://github.com/ankitpokhrel/jira-cli/releases/download/v${JIRA_CLI_VERSION}/jira_${JIRA_CLI_VERSION}_linux_x86_64.tar.gz" \
@@ -90,12 +90,12 @@ curl -sSfL "https://github.com/ankitpokhrel/jira-cli/releases/download/v${JIRA_C
90
90
  cp "${JIRA_TMPDIR}/jira_${JIRA_CLI_VERSION}_linux_x86_64/bin/jira" /usr/local/bin/jira
91
91
  chmod +x /usr/local/bin/jira
92
92
  rm -rf "${JIRA_TMPDIR}"
93
- echo "jira-cli installed: $(jira version)"
93
+ echo "jira-cli installed: $(jira version)" >&2
94
94
 
95
95
  # Install Chromium for Lighthouse CI (pre-push hook)
96
96
  # Playwright's bundled Chromium works with @lhci/cli
97
- echo "Installing Chromium for Lighthouse CI..."
98
- npx playwright install chromium
97
+ echo "Installing Chromium for Lighthouse CI..." >&2
98
+ npx playwright install chromium >&2
99
99
 
100
100
  # Find and export CHROME_PATH for Lighthouse CI
101
101
  # Use sort to ensure deterministic selection of the latest version
@@ -110,7 +110,7 @@ if [ -n "$CHROME_PATH" ]; then
110
110
  fi
111
111
 
112
112
  export CHROME_PATH="$CHROME_PATH"
113
- echo "Chromium installed at: $CHROME_PATH"
113
+ echo "Chromium installed at: $CHROME_PATH" >&2
114
114
  fi
115
115
 
116
116
  exit 0