@codyswann/lisa 2.165.8 → 2.166.0

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 (65) hide show
  1. package/cdk/package-lisa/package.lisa.json +4 -1
  2. package/expo/create-only/stryker.conf.json +28 -0
  3. package/expo/package-lisa/package.lisa.json +3 -0
  4. package/nestjs/package-lisa/package.lisa.json +4 -1
  5. package/package.json +1 -1
  6. package/plugins/lisa/.claude-plugin/plugin.json +1 -1
  7. package/plugins/lisa/.codex-plugin/plugin.json +1 -1
  8. package/plugins/lisa-agy/plugin.json +1 -1
  9. package/plugins/lisa-cdk/.claude-plugin/plugin.json +1 -1
  10. package/plugins/lisa-cdk/.codex-plugin/plugin.json +1 -1
  11. package/plugins/lisa-cdk-agy/plugin.json +1 -1
  12. package/plugins/lisa-cdk-copilot/.claude-plugin/plugin.json +1 -1
  13. package/plugins/lisa-cdk-cursor/.claude-plugin/plugin.json +1 -1
  14. package/plugins/lisa-copilot/.claude-plugin/plugin.json +1 -1
  15. package/plugins/lisa-cursor/.claude-plugin/plugin.json +1 -1
  16. package/plugins/lisa-expo/.claude-plugin/plugin.json +1 -1
  17. package/plugins/lisa-expo/.codex-plugin/plugin.json +1 -1
  18. package/plugins/lisa-expo-agy/plugin.json +1 -1
  19. package/plugins/lisa-expo-copilot/.claude-plugin/plugin.json +1 -1
  20. package/plugins/lisa-expo-cursor/.claude-plugin/plugin.json +1 -1
  21. package/plugins/lisa-harper-fabric/.claude-plugin/plugin.json +1 -1
  22. package/plugins/lisa-harper-fabric/.codex-plugin/plugin.json +1 -1
  23. package/plugins/lisa-harper-fabric-agy/plugin.json +1 -1
  24. package/plugins/lisa-harper-fabric-copilot/.claude-plugin/plugin.json +1 -1
  25. package/plugins/lisa-harper-fabric-cursor/.claude-plugin/plugin.json +1 -1
  26. package/plugins/lisa-nestjs/.claude-plugin/plugin.json +1 -1
  27. package/plugins/lisa-nestjs/.codex-plugin/plugin.json +1 -1
  28. package/plugins/lisa-nestjs-agy/plugin.json +1 -1
  29. package/plugins/lisa-nestjs-copilot/.claude-plugin/plugin.json +1 -1
  30. package/plugins/lisa-nestjs-cursor/.claude-plugin/plugin.json +1 -1
  31. package/plugins/lisa-openclaw/.claude-plugin/plugin.json +1 -1
  32. package/plugins/lisa-openclaw/.codex-plugin/plugin.json +1 -1
  33. package/plugins/lisa-openclaw-agy/plugin.json +1 -1
  34. package/plugins/lisa-openclaw-copilot/.claude-plugin/plugin.json +1 -1
  35. package/plugins/lisa-openclaw-cursor/.claude-plugin/plugin.json +1 -1
  36. package/plugins/lisa-phaser/.claude-plugin/plugin.json +1 -1
  37. package/plugins/lisa-phaser/.codex-plugin/plugin.json +1 -1
  38. package/plugins/lisa-phaser-agy/plugin.json +1 -1
  39. package/plugins/lisa-phaser-copilot/.claude-plugin/plugin.json +1 -1
  40. package/plugins/lisa-phaser-cursor/.claude-plugin/plugin.json +1 -1
  41. package/plugins/lisa-rails/.claude-plugin/plugin.json +1 -1
  42. package/plugins/lisa-rails/.codex-plugin/plugin.json +1 -1
  43. package/plugins/lisa-rails-agy/plugin.json +1 -1
  44. package/plugins/lisa-rails-copilot/.claude-plugin/plugin.json +1 -1
  45. package/plugins/lisa-rails-cursor/.claude-plugin/plugin.json +1 -1
  46. package/plugins/lisa-typescript/.claude-plugin/plugin.json +1 -1
  47. package/plugins/lisa-typescript/.codex-plugin/plugin.json +1 -1
  48. package/plugins/lisa-typescript-agy/plugin.json +1 -1
  49. package/plugins/lisa-typescript-copilot/.claude-plugin/plugin.json +1 -1
  50. package/plugins/lisa-typescript-cursor/.claude-plugin/plugin.json +1 -1
  51. package/plugins/lisa-wiki/.claude-plugin/plugin.json +1 -1
  52. package/plugins/lisa-wiki/.codex-plugin/plugin.json +1 -1
  53. package/plugins/lisa-wiki-agy/plugin.json +1 -1
  54. package/plugins/lisa-wiki-copilot/.claude-plugin/plugin.json +1 -1
  55. package/plugins/lisa-wiki-cursor/.claude-plugin/plugin.json +1 -1
  56. package/rails/copy-contents/scripts/lisa-mutation.sh +72 -0
  57. package/rails/copy-overwrite/Gemfile.lisa +5 -0
  58. package/rails/copy-overwrite/lefthook.yml +4 -0
  59. package/rails/create-only/.mutant.yml +21 -0
  60. package/rails/create-only/mutation.gate.yml +8 -0
  61. package/typescript/copy-contents/.husky/pre-push +14 -0
  62. package/typescript/copy-contents/scripts/lisa-mutation.mjs +152 -0
  63. package/typescript/create-only/mutation.gate.json +4 -0
  64. package/typescript/create-only/stryker.conf.json +23 -0
  65. package/typescript/package-lisa/package.lisa.json +4 -1
@@ -10,6 +10,7 @@
10
10
  "test:unit": "vitest run --exclude='**/integration/**'",
11
11
  "test:integration": "vitest run tests/integration --passWithNoTests",
12
12
  "test:cov": "vitest run --coverage",
13
+ "test:mutation": "node scripts/lisa-mutation.mjs",
13
14
  "test:watch": "vitest",
14
15
  "lint": "oxlint && eslint . --quiet",
15
16
  "lint:fix": "oxlint --fix && eslint . --fix"
@@ -28,7 +29,9 @@
28
29
  "@vitest/coverage-v8": "^4.1.0",
29
30
  "eslint-plugin-oxlint": "^1.62.0",
30
31
  "oxlint": "^1.62.0",
31
- "oxlint-tsgolint": "^0.22.1"
32
+ "oxlint-tsgolint": "^0.22.1",
33
+ "@stryker-mutator/core": "^9.0.0",
34
+ "@stryker-mutator/vitest-runner": "^9.0.0"
32
35
  },
33
36
  "bin": {
34
37
  "infrastructure": "bin/infrastructure.js"
@@ -0,0 +1,28 @@
1
+ {
2
+ "$schema": "./node_modules/@stryker-mutator/core/schema/stryker-schema.json",
3
+ "testRunner": "jest",
4
+ "jest": {
5
+ "projectType": "custom",
6
+ "configFile": "jest.config.ts",
7
+ "enableFindRelatedTests": true
8
+ },
9
+ "reporters": ["clear-text", "progress", "html"],
10
+ "coverageAnalysis": "perTest",
11
+ "ignoreStatic": true,
12
+ "incremental": true,
13
+ "mutate": [
14
+ "src/**/*.ts",
15
+ "src/**/*.tsx",
16
+ "!src/**/*.spec.ts",
17
+ "!src/**/*.spec.tsx",
18
+ "!src/**/*.test.ts",
19
+ "!src/**/*.test.tsx",
20
+ "!src/**/*.d.ts",
21
+ "!src/**/*.stories.tsx"
22
+ ],
23
+ "thresholds": {
24
+ "high": 80,
25
+ "low": 60,
26
+ "break": 60
27
+ }
28
+ }
@@ -49,6 +49,7 @@
49
49
  "test:unit": "NODE_ENV=test jest --testPathIgnorePatterns=\"\\.integration[.\\\\-](test|spec)\\.(ts|tsx)$\" --passWithNoTests",
50
50
  "test:integration": "NODE_ENV=test jest --testPathPatterns=\"\\.integration[.\\\\-](test|spec)\\.(ts|tsx)$\" --passWithNoTests",
51
51
  "test:cov": "NODE_ENV=test jest --coverage",
52
+ "test:mutation": "node scripts/lisa-mutation.mjs",
52
53
  "test:watch": "NODE_ENV=test jest --watch",
53
54
  "lint": "oxlint && eslint . --quiet",
54
55
  "lint:fix": "oxlint --fix && eslint . --fix"
@@ -90,6 +91,8 @@
90
91
  "@types/jest": "^30.0.0",
91
92
  "@jest/test-sequencer": "^30.2.0",
92
93
  "jest-environment-jsdom": "^30.2.0",
94
+ "@stryker-mutator/core": "^9.0.0",
95
+ "@stryker-mutator/jest-runner": "^9.0.0",
93
96
  "serve": "^14.2.0",
94
97
  "eslint-plugin-oxlint": "^1.62.0",
95
98
  "oxlint": "^1.62.0",
@@ -39,6 +39,7 @@
39
39
  "test:unit": "vitest run --exclude='**/integration/**'",
40
40
  "test:integration": "vitest run '.integration.' --passWithNoTests",
41
41
  "test:cov": "vitest run --coverage",
42
+ "test:mutation": "node scripts/lisa-mutation.mjs",
42
43
  "test:watch": "vitest",
43
44
  "lint": "oxlint && eslint . --quiet",
44
45
  "lint:fix": "oxlint --fix && eslint . --fix"
@@ -91,7 +92,9 @@
91
92
  "@vitest/coverage-v8": "^4.1.0",
92
93
  "eslint-plugin-oxlint": "^1.62.0",
93
94
  "oxlint": "^1.62.0",
94
- "oxlint-tsgolint": "^0.22.1"
95
+ "oxlint-tsgolint": "^0.22.1",
96
+ "@stryker-mutator/core": "^9.0.0",
97
+ "@stryker-mutator/vitest-runner": "^9.0.0"
95
98
  }
96
99
  }
97
100
  }
package/package.json CHANGED
@@ -85,7 +85,7 @@
85
85
  "lodash": ">=4.18.1"
86
86
  },
87
87
  "name": "@codyswann/lisa",
88
- "version": "2.165.8",
88
+ "version": "2.166.0",
89
89
  "description": "Claude Code governance framework that applies guardrails, guidance, and automated enforcement to projects",
90
90
  "main": "dist/index.js",
91
91
  "exports": {
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lisa",
3
- "version": "2.165.8",
3
+ "version": "2.166.0",
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.165.8",
3
+ "version": "2.166.0",
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.165.8",
3
+ "version": "2.166.0",
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.165.8",
3
+ "version": "2.166.0",
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.165.8",
3
+ "version": "2.166.0",
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.165.8",
3
+ "version": "2.166.0",
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.165.8",
3
+ "version": "2.166.0",
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.165.8",
3
+ "version": "2.166.0",
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.165.8",
3
+ "version": "2.166.0",
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.165.8",
3
+ "version": "2.166.0",
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.165.8",
3
+ "version": "2.166.0",
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.165.8",
3
+ "version": "2.166.0",
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.165.8",
3
+ "version": "2.166.0",
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.165.8",
3
+ "version": "2.166.0",
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.165.8",
3
+ "version": "2.166.0",
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.165.8",
3
+ "version": "2.166.0",
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.165.8",
3
+ "version": "2.166.0",
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.165.8",
3
+ "version": "2.166.0",
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.165.8",
3
+ "version": "2.166.0",
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.165.8",
3
+ "version": "2.166.0",
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.165.8",
3
+ "version": "2.166.0",
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.165.8",
3
+ "version": "2.166.0",
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.165.8",
3
+ "version": "2.166.0",
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.165.8",
3
+ "version": "2.166.0",
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.165.8",
3
+ "version": "2.166.0",
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.165.8",
3
+ "version": "2.166.0",
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.165.8",
3
+ "version": "2.166.0",
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.165.8",
3
+ "version": "2.166.0",
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.165.8",
3
+ "version": "2.166.0",
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.165.8",
3
+ "version": "2.166.0",
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.165.8",
3
+ "version": "2.166.0",
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.165.8",
3
+ "version": "2.166.0",
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.165.8",
3
+ "version": "2.166.0",
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.165.8",
3
+ "version": "2.166.0",
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.165.8",
3
+ "version": "2.166.0",
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.165.8",
3
+ "version": "2.166.0",
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.165.8",
3
+ "version": "2.166.0",
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.165.8",
3
+ "version": "2.166.0",
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.165.8",
3
+ "version": "2.166.0",
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.165.8",
3
+ "version": "2.166.0",
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.165.8",
3
+ "version": "2.166.0",
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.165.8",
3
+ "version": "2.166.0",
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.165.8",
3
+ "version": "2.166.0",
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.165.8",
3
+ "version": "2.166.0",
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.165.8",
3
+ "version": "2.166.0",
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.165.8",
3
+ "version": "2.166.0",
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.165.8",
3
+ "version": "2.166.0",
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.165.8",
3
+ "version": "2.166.0",
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.165.8",
3
+ "version": "2.166.0",
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.165.8",
3
+ "version": "2.166.0",
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"
@@ -0,0 +1,72 @@
1
+ #!/usr/bin/env bash
2
+ # This file is managed by Lisa.
3
+ # -----------------------------------------------------------------------------
4
+ # Mutation-testing gate (mutant) for Rails
5
+ # -----------------------------------------------------------------------------
6
+ # Opt-in, diff-only mutation-testing gate shared by the lefthook pre-push hook
7
+ # and CI.
8
+ #
9
+ # Behavior:
10
+ # 1. Reads `mutation.gate.yml`. If the gate is disabled (the default), it
11
+ # prints a notice and exits 0 — pushes and CI are never slowed down until a
12
+ # project explicitly opts in.
13
+ # 2. When enabled, it runs mutant with `--since <ref>` so only code changed on
14
+ # this branch (vs the configured `since` ref) is mutated. Mutation testing
15
+ # is slow, so a full-suite run is never done by this gate.
16
+ # 3. The subjects to mutate are defined in `.mutant.yml` (matcher.subjects);
17
+ # mutant exits non-zero when surviving mutants remain in the changed code,
18
+ # which fails the gate.
19
+ #
20
+ # NOTE: mutant is commercially licensed for closed-source projects (free for
21
+ # open source). Enabling this gate requires a valid license or switching
22
+ # the integration to a permissively licensed alternative.
23
+ #
24
+ # Configuration (`mutation.gate.yml`, project-owned / create-only):
25
+ # enabled: false
26
+ # since: main
27
+ #
28
+ # Overridable via env: MUTATION_ENABLED=true|false, MUTATION_SINCE=<ref>.
29
+ # -----------------------------------------------------------------------------
30
+ set -euo pipefail
31
+
32
+ GATE_FILE="mutation.gate.yml"
33
+
34
+ read_gate() {
35
+ local key="$1" default="$2"
36
+ if [ -f "$GATE_FILE" ] && command -v ruby >/dev/null 2>&1; then
37
+ ruby -ryaml -e "puts (YAML.load_file('${GATE_FILE}') || {}).fetch('${key}', '${default}')" 2>/dev/null || echo "$default"
38
+ else
39
+ echo "$default"
40
+ fi
41
+ }
42
+
43
+ ENABLED="${MUTATION_ENABLED:-$(read_gate enabled false)}"
44
+ SINCE="${MUTATION_SINCE:-$(read_gate since main)}"
45
+
46
+ if [ "$ENABLED" != "true" ]; then
47
+ echo "⚪ Mutation-testing gate disabled (mutation.gate.yml: enabled: false). Skipping."
48
+ echo " Set enabled: true (and configure matcher.subjects in .mutant.yml) to turn it on."
49
+ exit 0
50
+ fi
51
+
52
+ # Only mutate when changed Ruby files exist under app/ or lib/.
53
+ BASE=""
54
+ for ref in "origin/${SINCE}" "${SINCE}"; do
55
+ if BASE="$(git merge-base "$ref" HEAD 2>/dev/null)"; then
56
+ [ -n "$BASE" ] && break
57
+ fi
58
+ done
59
+
60
+ if [ -z "$BASE" ]; then
61
+ echo "⚪ Mutation gate: could not resolve a merge-base against '${SINCE}'. Skipping."
62
+ exit 0
63
+ fi
64
+
65
+ CHANGED="$(git diff --name-only --diff-filter=ACMR "${BASE}...HEAD" -- 'app/**/*.rb' 'lib/**/*.rb' || true)"
66
+ if [ -z "$CHANGED" ]; then
67
+ echo "⚪ Mutation gate: no changed Ruby files under app/ or lib/ vs ${SINCE}. Nothing to mutate."
68
+ exit 0
69
+ fi
70
+
71
+ echo "🧬 Mutation gate: running mutant (--since ${SINCE}) on changed subjects..."
72
+ exec bundle exec mutant run --since "$SINCE"
@@ -31,6 +31,11 @@ group :development, :test do
31
31
  gem "flog", "~> 4.8", require: false
32
32
  gem "flay", "~> 2.13", require: false
33
33
 
34
+ # Mutation testing (opt-in gate — see mutation.gate.yml / scripts/lisa-mutation.sh).
35
+ # NOTE: mutant is commercially licensed for closed-source projects (free for OSS).
36
+ # The gate is disabled by default, so the gem is never invoked until opted in.
37
+ gem "mutant-rspec", "~> 0.12", require: false
38
+
34
39
  # Security
35
40
  gem "brakeman", "~> 7.0", require: false
36
41
  gem "bundler-audit", "~> 0.9", require: false
@@ -28,3 +28,7 @@ pre-push:
28
28
  run: bundle exec flog --all --group app/ lib/
29
29
  flay:
30
30
  run: bundle exec flay app/ lib/
31
+ mutation:
32
+ # Opt-in, diff-only mutation gate. Self-skips instantly when disabled
33
+ # (mutation.gate.yml: enabled: false), so it adds no cost until opted in.
34
+ run: bash scripts/lisa-mutation.sh
@@ -0,0 +1,21 @@
1
+ # Mutant configuration (project-owned).
2
+ # Docs: https://github.com/mbj/mutant/blob/main/docs/configuration.md
3
+ #
4
+ # The gate runs `mutant run --since <ref>` (see scripts/lisa-mutation.sh), so
5
+ # only code changed on the branch is mutated. Define the subject scope below —
6
+ # replace the example matcher with your application's top-level namespace(s).
7
+ ---
8
+ integration:
9
+ name: rspec
10
+ # `usage` must reflect your license: opensource | commercial | restricted.
11
+ usage: opensource
12
+ requires:
13
+ - ./config/environment
14
+ includes:
15
+ - app
16
+ - lib
17
+ matcher:
18
+ # Replace with your app's namespace(s), e.g. ["MyApp*"]. Mutant will only
19
+ # mutate subjects matching these expressions that are also in the diff.
20
+ subjects:
21
+ - '*'
@@ -0,0 +1,8 @@
1
+ # Mutation-testing gate toggle (project-owned).
2
+ # Flip `enabled` to true to turn on the diff-only mutant gate in the pre-push
3
+ # hook and CI. The mutation subjects are configured in `.mutant.yml`.
4
+ #
5
+ # NOTE: mutant requires a commercial license for closed-source projects.
6
+ ---
7
+ enabled: false
8
+ since: main
@@ -224,6 +224,20 @@ if [ $? -ne 0 ]; then
224
224
  exit 1
225
225
  fi
226
226
 
227
+ # Run mutation-testing gate - only if script exists.
228
+ # The test:mutation script self-skips instantly when the gate is disabled
229
+ # (mutation.gate.json: "enabled": false), so this adds no cost to projects that
230
+ # have not opted in. When enabled, it runs Stryker diff-only on changed files
231
+ # and fails the push when the mutation score is below thresholds.break.
232
+ if jq -e '.scripts["test:mutation"]' package.json >/dev/null 2>&1; then
233
+ echo "🧬 Running mutation-testing gate..."
234
+ $RUNNER test:mutation
235
+ if [ $? -ne 0 ]; then
236
+ echo "❌ Mutation-testing gate failed (mutation score below threshold). Strengthen tests before pushing."
237
+ exit 1
238
+ fi
239
+ fi
240
+
227
241
  # Run Lighthouse CI performance audit (only if installed)
228
242
  # Disable Lighthouse beause it takes too long to run on push. Just let it run in ci/cd
229
243
  # Check if lighthouse:check script exists in package.json
@@ -0,0 +1,152 @@
1
+ #!/usr/bin/env node
2
+ // This file is managed by Lisa.
3
+ // -----------------------------------------------------------------------------
4
+ // Mutation-testing gate (StrykerJS)
5
+ // -----------------------------------------------------------------------------
6
+ // Opt-in, diff-only mutation-testing gate shared by the pre-push hook and CI.
7
+ //
8
+ // Behavior:
9
+ // 1. Reads `mutation.gate.json`. If the gate is disabled (the default), it
10
+ // prints a notice and exits 0 — pushes and CI are never slowed down until
11
+ // a project explicitly opts in.
12
+ // 2. When enabled, it computes the source files changed on this branch
13
+ // (vs the merge-base with the configured `since` ref) and runs Stryker on
14
+ // ONLY those files. Mutation testing is slow, so a full-repo run is never
15
+ // done by this gate.
16
+ // 3. The mutation-score threshold itself lives in `stryker.conf.*`
17
+ // (`thresholds.break`) — Stryker exits non-zero when the score is below it,
18
+ // which fails the gate.
19
+ //
20
+ // Configuration (`mutation.gate.json`, project-owned / create-only):
21
+ // { "enabled": false, "since": "main" }
22
+ //
23
+ // Overridable via env: MUTATION_ENABLED=true|false, MUTATION_SINCE=<ref>.
24
+ // -----------------------------------------------------------------------------
25
+
26
+ import fs from "node:fs";
27
+ import path from "node:path";
28
+ import { execFileSync, spawnSync } from "node:child_process";
29
+
30
+ const CWD = process.cwd();
31
+
32
+ const readGate = () => {
33
+ const gatePath = path.join(CWD, "mutation.gate.json");
34
+ if (!fs.existsSync(gatePath)) {
35
+ return { enabled: false, since: "main" };
36
+ }
37
+ try {
38
+ return JSON.parse(fs.readFileSync(gatePath, "utf8"));
39
+ } catch (err) {
40
+ console.error(`⚠️ Could not parse mutation.gate.json: ${err.message}`);
41
+ return { enabled: false, since: "main" };
42
+ }
43
+ };
44
+
45
+ const envFlag = name => {
46
+ const v = process.env[name];
47
+ if (v === undefined) return undefined;
48
+ return v === "true" || v === "1";
49
+ };
50
+
51
+ const gate = readGate();
52
+ const enabled = envFlag("MUTATION_ENABLED") ?? gate.enabled === true;
53
+ const since = process.env.MUTATION_SINCE || gate.since || "main";
54
+
55
+ if (!enabled) {
56
+ console.log(
57
+ '⚪ Mutation-testing gate disabled (mutation.gate.json: "enabled": false). Skipping.\n' +
58
+ ' Flip "enabled": true (and tune thresholds.break in stryker.conf.json) to turn it on.'
59
+ );
60
+ process.exit(0);
61
+ }
62
+
63
+ // --- Resolve the diff base (merge-base with the `since` ref) -----------------
64
+ // stderr is ignored: failed merge-base/diff probes are expected (e.g. a missing
65
+ // origin/<ref> candidate) and handled by the surrounding try/catch.
66
+ const git = args =>
67
+ execFileSync("git", args, {
68
+ cwd: CWD,
69
+ encoding: "utf8",
70
+ stdio: ["ignore", "pipe", "ignore"],
71
+ }).trim();
72
+
73
+ let base;
74
+ try {
75
+ // Prefer the remote ref when present (CI checks out detached); fall back to local.
76
+ const candidates = [`origin/${since}`, since];
77
+ let resolved = "";
78
+ for (const ref of candidates) {
79
+ try {
80
+ resolved = git(["merge-base", ref, "HEAD"]);
81
+ if (resolved) break;
82
+ } catch {
83
+ /* try next candidate */
84
+ }
85
+ }
86
+ base = resolved;
87
+ } catch {
88
+ base = "";
89
+ }
90
+
91
+ if (!base) {
92
+ console.log(
93
+ `⚪ Mutation gate: could not resolve a merge-base against "${since}" ` +
94
+ "(shallow clone or unknown ref). Skipping rather than mutating the whole repo."
95
+ );
96
+ process.exit(0);
97
+ }
98
+
99
+ // --- Compute changed, mutate-eligible source files ---------------------------
100
+ const isMutable = f =>
101
+ /\.(ts|tsx)$/.test(f) &&
102
+ !/\.(spec|test)\.(ts|tsx)$/.test(f) &&
103
+ !/\.d\.ts$/.test(f) &&
104
+ !/\.stories\.tsx$/.test(f) &&
105
+ (f.startsWith("src/") || f.startsWith("lib/"));
106
+
107
+ let changed = [];
108
+ try {
109
+ changed = git(["diff", "--name-only", "--diff-filter=ACMR", `${base}...HEAD`])
110
+ .split("\n")
111
+ .map(f => f.trim())
112
+ .filter(Boolean)
113
+ .filter(isMutable)
114
+ .filter(f => fs.existsSync(path.join(CWD, f)));
115
+ } catch (err) {
116
+ console.error(`⚠️ Could not compute changed files: ${err.message}`);
117
+ process.exit(0);
118
+ }
119
+
120
+ if (changed.length === 0) {
121
+ console.log(
122
+ "⚪ Mutation gate: no changed source files vs " +
123
+ since +
124
+ ". Nothing to mutate."
125
+ );
126
+ process.exit(0);
127
+ }
128
+
129
+ console.log(
130
+ `🧬 Mutation gate: running Stryker on ${changed.length} changed file(s):`
131
+ );
132
+ for (const f of changed) console.log(` • ${f}`);
133
+
134
+ // --- Run Stryker on just the changed files (diff-only) -----------------------
135
+ const strykerBin = path.join(
136
+ CWD,
137
+ "node_modules",
138
+ ".bin",
139
+ process.platform === "win32" ? "stryker.cmd" : "stryker"
140
+ );
141
+ const useLocal = fs.existsSync(strykerBin);
142
+ const command = useLocal ? strykerBin : "npx";
143
+ const args = useLocal
144
+ ? ["run", "--mutate", changed.join(",")]
145
+ : ["--yes", "stryker", "run", "--mutate", changed.join(",")];
146
+
147
+ const result = spawnSync(command, args, {
148
+ cwd: CWD,
149
+ stdio: "inherit",
150
+ shell: process.platform === "win32",
151
+ });
152
+ process.exit(result.status ?? 1);
@@ -0,0 +1,4 @@
1
+ {
2
+ "enabled": false,
3
+ "since": "main"
4
+ }
@@ -0,0 +1,23 @@
1
+ {
2
+ "$schema": "./node_modules/@stryker-mutator/core/schema/stryker-schema.json",
3
+ "testRunner": "vitest",
4
+ "reporters": ["clear-text", "progress", "html"],
5
+ "coverageAnalysis": "perTest",
6
+ "ignoreStatic": true,
7
+ "incremental": true,
8
+ "mutate": [
9
+ "src/**/*.ts",
10
+ "src/**/*.tsx",
11
+ "!src/**/*.spec.ts",
12
+ "!src/**/*.spec.tsx",
13
+ "!src/**/*.test.ts",
14
+ "!src/**/*.test.tsx",
15
+ "!src/**/*.d.ts",
16
+ "!src/**/*.stories.tsx"
17
+ ],
18
+ "thresholds": {
19
+ "high": 80,
20
+ "low": 60,
21
+ "break": 60
22
+ }
23
+ }
@@ -8,6 +8,7 @@
8
8
  "test": "vitest run",
9
9
  "test:unit": "vitest run --exclude='**/integration/**'",
10
10
  "test:cov": "vitest run --coverage",
11
+ "test:mutation": "node scripts/lisa-mutation.mjs",
11
12
  "test:watch": "vitest",
12
13
  "lint:fix": "oxlint --fix && eslint . --fix",
13
14
  "lint:slow": "eslint . --config eslint.slow.config.ts --quiet",
@@ -20,7 +21,9 @@
20
21
  "devDependencies": {
21
22
  "eslint-plugin-oxlint": "^1.62.0",
22
23
  "oxlint": "^1.62.0",
23
- "oxlint-tsgolint": "^0.22.1"
24
+ "oxlint-tsgolint": "^0.22.1",
25
+ "@stryker-mutator/core": "^9.0.0",
26
+ "@stryker-mutator/vitest-runner": "^9.0.0"
24
27
  },
25
28
  "resolutions": {
26
29
  "@isaacs/brace-expansion": "^5.0.1",