@codyswann/lisa 4.38.3 → 4.38.4

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 (73) hide show
  1. package/dist/core/nightly-e2e-guard-behavior-certificate.js +2 -2
  2. package/dist/core/upstream-evidence-manifest.d.ts.map +1 -1
  3. package/dist/core/upstream-evidence-manifest.js +10 -2
  4. package/dist/core/upstream-evidence-manifest.js.map +1 -1
  5. package/dist/opencode/hooks-installer.d.ts.map +1 -1
  6. package/dist/opencode/hooks-installer.js +1 -0
  7. package/dist/opencode/hooks-installer.js.map +1 -1
  8. package/dist/opencode/plugin-catalog.d.ts.map +1 -1
  9. package/dist/opencode/plugin-catalog.js +5 -0
  10. package/dist/opencode/plugin-catalog.js.map +1 -1
  11. package/dist/opencode/plugin-templates/block-managed-file-edits.sh +937 -0
  12. package/dist/opencode/plugin-templates/lisa-block-managed-file-edits.ts +83 -0
  13. package/package.json +4 -4
  14. package/plugins/lisa/.claude-plugin/plugin.json +9 -1
  15. package/plugins/lisa/.codex-plugin/hooks.json +8 -0
  16. package/plugins/lisa/.codex-plugin/plugin.json +1 -1
  17. package/plugins/lisa/hooks/block-managed-file-edits.agy.sh +63 -0
  18. package/plugins/lisa-agy/hooks/block-managed-file-edits.agy.sh +63 -0
  19. package/plugins/lisa-agy/hooks/block-managed-file-edits.sh +937 -0
  20. package/plugins/lisa-agy/hooks.json +13 -0
  21. package/plugins/lisa-agy/plugin.json +1 -1
  22. package/plugins/lisa-cdk/.claude-plugin/plugin.json +1 -1
  23. package/plugins/lisa-cdk/.codex-plugin/plugin.json +1 -1
  24. package/plugins/lisa-cdk-agy/plugin.json +1 -1
  25. package/plugins/lisa-cdk-copilot/.claude-plugin/plugin.json +1 -1
  26. package/plugins/lisa-cdk-cursor/.claude-plugin/plugin.json +1 -1
  27. package/plugins/lisa-copilot/.claude-plugin/plugin.json +9 -1
  28. package/plugins/lisa-cursor/.claude-plugin/plugin.json +1 -1
  29. package/plugins/lisa-cursor/hooks/hooks.json +8 -0
  30. package/plugins/lisa-expo/.claude-plugin/plugin.json +1 -1
  31. package/plugins/lisa-expo/.codex-plugin/plugin.json +1 -1
  32. package/plugins/lisa-expo-agy/plugin.json +1 -1
  33. package/plugins/lisa-expo-copilot/.claude-plugin/plugin.json +1 -1
  34. package/plugins/lisa-expo-cursor/.claude-plugin/plugin.json +1 -1
  35. package/plugins/lisa-harper-fabric/.claude-plugin/plugin.json +1 -1
  36. package/plugins/lisa-harper-fabric/.codex-plugin/plugin.json +1 -1
  37. package/plugins/lisa-harper-fabric-agy/plugin.json +1 -1
  38. package/plugins/lisa-harper-fabric-copilot/.claude-plugin/plugin.json +1 -1
  39. package/plugins/lisa-harper-fabric-cursor/.claude-plugin/plugin.json +1 -1
  40. package/plugins/lisa-nestjs/.claude-plugin/plugin.json +1 -1
  41. package/plugins/lisa-nestjs/.codex-plugin/plugin.json +1 -1
  42. package/plugins/lisa-nestjs-agy/plugin.json +1 -1
  43. package/plugins/lisa-nestjs-copilot/.claude-plugin/plugin.json +1 -1
  44. package/plugins/lisa-nestjs-cursor/.claude-plugin/plugin.json +1 -1
  45. package/plugins/lisa-openclaw/.claude-plugin/plugin.json +1 -1
  46. package/plugins/lisa-openclaw/.codex-plugin/plugin.json +1 -1
  47. package/plugins/lisa-openclaw-agy/plugin.json +1 -1
  48. package/plugins/lisa-openclaw-copilot/.claude-plugin/plugin.json +1 -1
  49. package/plugins/lisa-openclaw-cursor/.claude-plugin/plugin.json +1 -1
  50. package/plugins/lisa-phaser/.claude-plugin/plugin.json +1 -1
  51. package/plugins/lisa-phaser/.codex-plugin/plugin.json +1 -1
  52. package/plugins/lisa-phaser-agy/plugin.json +1 -1
  53. package/plugins/lisa-phaser-copilot/.claude-plugin/plugin.json +1 -1
  54. package/plugins/lisa-phaser-cursor/.claude-plugin/plugin.json +1 -1
  55. package/plugins/lisa-rails/.claude-plugin/plugin.json +1 -1
  56. package/plugins/lisa-rails/.codex-plugin/plugin.json +1 -1
  57. package/plugins/lisa-rails-agy/plugin.json +1 -1
  58. package/plugins/lisa-rails-copilot/.claude-plugin/plugin.json +1 -1
  59. package/plugins/lisa-rails-cursor/.claude-plugin/plugin.json +1 -1
  60. package/plugins/lisa-typescript/.claude-plugin/plugin.json +1 -1
  61. package/plugins/lisa-typescript/.codex-plugin/plugin.json +1 -1
  62. package/plugins/lisa-typescript-agy/plugin.json +1 -1
  63. package/plugins/lisa-typescript-copilot/.claude-plugin/plugin.json +1 -1
  64. package/plugins/lisa-typescript-cursor/.claude-plugin/plugin.json +1 -1
  65. package/plugins/lisa-wiki/.claude-plugin/plugin.json +1 -1
  66. package/plugins/lisa-wiki/.codex-plugin/plugin.json +1 -1
  67. package/plugins/lisa-wiki-agy/plugin.json +1 -1
  68. package/plugins/lisa-wiki-copilot/.claude-plugin/plugin.json +1 -1
  69. package/plugins/lisa-wiki-cursor/.claude-plugin/plugin.json +1 -1
  70. package/plugins/src/base/.claude-plugin/plugin.json +9 -1
  71. package/plugins/src/base/hooks/block-managed-file-edits.agy.sh +63 -0
  72. package/scripts/copy-opencode-plugin-templates.mjs +1 -0
  73. package/scripts/generate-agy-plugin-artifacts.mjs +12 -0
@@ -51,6 +51,19 @@
51
51
  }
52
52
  ]
53
53
  },
54
+ "lisa-block-managed-file-edits": {
55
+ "PreToolUse": [
56
+ {
57
+ "matcher": "run_command",
58
+ "hooks": [
59
+ {
60
+ "type": "command",
61
+ "command": "bash \"$HOME/.gemini/config/plugins/lisa/hooks/block-managed-file-edits.agy.sh\""
62
+ }
63
+ ]
64
+ }
65
+ ]
66
+ },
54
67
  "lisa-block-direct-issue-create": {
55
68
  "PreToolUse": [
56
69
  {
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lisa",
3
- "version": "4.38.3",
3
+ "version": "4.38.4",
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": "4.38.3",
3
+ "version": "4.38.4",
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": "4.38.3",
3
+ "version": "4.38.4",
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": "4.38.3",
3
+ "version": "4.38.4",
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": "4.38.3",
3
+ "version": "4.38.4",
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": "4.38.3",
3
+ "version": "4.38.4",
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": "4.38.3",
3
+ "version": "4.38.4",
4
4
  "description": "Universal governance — agents, skills, commands, hooks, and rules for all projects",
5
5
  "author": {
6
6
  "name": "Cody Swann"
@@ -91,6 +91,10 @@
91
91
  {
92
92
  "type": "command",
93
93
  "command": "${CLAUDE_PLUGIN_ROOT}/hooks/block-host-name-leak.sh"
94
+ },
95
+ {
96
+ "type": "command",
97
+ "command": "${CLAUDE_PLUGIN_ROOT}/hooks/block-managed-file-edits.sh"
94
98
  }
95
99
  ]
96
100
  },
@@ -100,6 +104,10 @@
100
104
  {
101
105
  "type": "command",
102
106
  "command": "${CLAUDE_PLUGIN_ROOT}/hooks/block-instruction-file-edits.sh"
107
+ },
108
+ {
109
+ "type": "command",
110
+ "command": "${CLAUDE_PLUGIN_ROOT}/hooks/block-managed-file-edits.sh"
103
111
  }
104
112
  ]
105
113
  },
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lisa",
3
- "version": "4.38.3",
3
+ "version": "4.38.4",
4
4
  "description": "Universal governance — agents, skills, commands, hooks, and rules for all projects",
5
5
  "author": {
6
6
  "name": "Cody Swann"
@@ -53,10 +53,18 @@
53
53
  "command": "${CURSOR_PLUGIN_ROOT}/hooks/block-host-name-leak.sh",
54
54
  "matcher": "Bash"
55
55
  },
56
+ {
57
+ "command": "${CURSOR_PLUGIN_ROOT}/hooks/block-managed-file-edits.sh",
58
+ "matcher": "Bash"
59
+ },
56
60
  {
57
61
  "command": "${CURSOR_PLUGIN_ROOT}/hooks/block-instruction-file-edits.sh",
58
62
  "matcher": "Write|Edit|MultiEdit"
59
63
  },
64
+ {
65
+ "command": "${CURSOR_PLUGIN_ROOT}/hooks/block-managed-file-edits.sh",
66
+ "matcher": "Write|Edit|MultiEdit"
67
+ },
60
68
  {
61
69
  "command": "${CURSOR_PLUGIN_ROOT}/hooks/enforce-verification-gate.sh"
62
70
  },
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lisa-expo",
3
- "version": "4.38.3",
3
+ "version": "4.38.4",
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": "4.38.3",
3
+ "version": "4.38.4",
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": "4.38.3",
3
+ "version": "4.38.4",
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": "4.38.3",
3
+ "version": "4.38.4",
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": "4.38.3",
3
+ "version": "4.38.4",
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": "4.38.3",
3
+ "version": "4.38.4",
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": "4.38.3",
3
+ "version": "4.38.4",
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": "4.38.3",
3
+ "version": "4.38.4",
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": "4.38.3",
3
+ "version": "4.38.4",
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": "4.38.3",
3
+ "version": "4.38.4",
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": "4.38.3",
3
+ "version": "4.38.4",
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": "4.38.3",
3
+ "version": "4.38.4",
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": "4.38.3",
3
+ "version": "4.38.4",
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": "4.38.3",
3
+ "version": "4.38.4",
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": "4.38.3",
3
+ "version": "4.38.4",
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": "4.38.3",
3
+ "version": "4.38.4",
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": "4.38.3",
3
+ "version": "4.38.4",
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": "4.38.3",
3
+ "version": "4.38.4",
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": "4.38.3",
3
+ "version": "4.38.4",
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": "4.38.3",
3
+ "version": "4.38.4",
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": "4.38.3",
3
+ "version": "4.38.4",
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": "4.38.3",
3
+ "version": "4.38.4",
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": "4.38.3",
3
+ "version": "4.38.4",
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": "4.38.3",
3
+ "version": "4.38.4",
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": "4.38.3",
3
+ "version": "4.38.4",
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": "4.38.3",
3
+ "version": "4.38.4",
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": "4.38.3",
3
+ "version": "4.38.4",
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": "4.38.3",
3
+ "version": "4.38.4",
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": "4.38.3",
3
+ "version": "4.38.4",
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": "4.38.3",
3
+ "version": "4.38.4",
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": "4.38.3",
3
+ "version": "4.38.4",
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": "4.38.3",
3
+ "version": "4.38.4",
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": "4.38.3",
3
+ "version": "4.38.4",
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": "4.38.3",
3
+ "version": "4.38.4",
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": "4.38.3",
3
+ "version": "4.38.4",
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": "4.38.3",
3
+ "version": "4.38.4",
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": "4.38.3",
3
+ "version": "4.38.4",
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": "4.38.3",
3
+ "version": "4.38.4",
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": "4.38.3",
3
+ "version": "4.38.4",
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": "4.38.3",
3
+ "version": "4.38.4",
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,7 +1,7 @@
1
1
  {
2
2
  "name": "lisa",
3
3
  "version": "1.0.0",
4
- "description": "Universal governance — agents, skills, commands, hooks, and rules for all projects",
4
+ "description": "Universal governance \u2014 agents, skills, commands, hooks, and rules for all projects",
5
5
  "author": {
6
6
  "name": "Cody Swann"
7
7
  },
@@ -145,6 +145,10 @@
145
145
  {
146
146
  "type": "command",
147
147
  "command": "${CLAUDE_PLUGIN_ROOT}/hooks/block-host-name-leak.sh"
148
+ },
149
+ {
150
+ "type": "command",
151
+ "command": "${CLAUDE_PLUGIN_ROOT}/hooks/block-managed-file-edits.sh"
148
152
  }
149
153
  ]
150
154
  },
@@ -154,6 +158,10 @@
154
158
  {
155
159
  "type": "command",
156
160
  "command": "${CLAUDE_PLUGIN_ROOT}/hooks/block-instruction-file-edits.sh"
161
+ },
162
+ {
163
+ "type": "command",
164
+ "command": "${CLAUDE_PLUGIN_ROOT}/hooks/block-managed-file-edits.sh"
157
165
  }
158
166
  ]
159
167
  },
@@ -0,0 +1,63 @@
1
+ #!/usr/bin/env bash
2
+ # Antigravity (agy) PreToolUse adapter for Lisa's managed-file guard.
3
+ #
4
+ # agy sends `{toolCall:{name:"run_command",args:{CommandLine:"..."}}}` and
5
+ # expects an allow/deny JSON object on stdout. The canonical hook consumes the
6
+ # Claude Bash-hook envelope and communicates denial with exit status 2. This
7
+ # adapter only translates protocols; all classification stays in the canonical
8
+ # block-managed-file-edits.sh beside it (same delegation pattern as
9
+ # block-instruction-file-edits.agy.sh).
10
+ #
11
+ # Scope note: agy plugin hooks match `run_command`, so only the Bash arm of the
12
+ # guard reaches agy — an agy file-edit tool call writing a copy-overwrite
13
+ # template cannot be intercepted. That gap is accepted and recorded here, and in
14
+ # the pull request that added this adapter, rather than papered over. The
15
+ # redirection / append / tee signatures the canonical guard follows into
16
+ # executed scripts still hold on agy, which is the majority of the surface.
17
+ #
18
+ # Fail-open on missing runtimes, matching every sibling adapter. A missed
19
+ # refusal here costs a silently forked template — recoverable, and `lisa apply`
20
+ # reports it as out of date on every subsequent run — where failing closed would
21
+ # block every command on a machine without jq.
22
+ set -uo pipefail
23
+
24
+ allow() {
25
+ printf '%s\n' '{"decision":"allow"}'
26
+ exit 0
27
+ }
28
+
29
+ deny() {
30
+ local reason="$1"
31
+ if command -v jq >/dev/null 2>&1; then
32
+ jq -cn --arg reason "$reason" '{decision:"deny",reason:$reason}'
33
+ else
34
+ printf '%s\n' '{"decision":"allow"}'
35
+ fi
36
+ exit 0
37
+ }
38
+
39
+ input="$(cat 2>/dev/null || true)"
40
+ [ -z "$input" ] && allow
41
+ command -v jq >/dev/null 2>&1 || allow
42
+
43
+ tool_name="$(printf '%s' "$input" | jq -r '.toolCall.name // empty' 2>/dev/null || true)"
44
+ [ "$tool_name" != "run_command" ] && allow
45
+ command_str="$(printf '%s' "$input" | jq -r '.toolCall.args.CommandLine // empty' 2>/dev/null || true)"
46
+ [ -z "$command_str" ] && allow
47
+
48
+ hook_dir="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
49
+ canonical_hook="$hook_dir/block-managed-file-edits.sh"
50
+ [ -r "$canonical_hook" ] || allow
51
+
52
+ canonical_input="$(jq -cn --arg command "$command_str" '{tool_name:"Bash",tool_input:{command:$command}}')"
53
+ canonical_output=""
54
+ canonical_status=0
55
+ if canonical_output="$(printf '%s' "$canonical_input" | /bin/bash "$canonical_hook" 2>&1)"; then
56
+ canonical_status=0
57
+ else
58
+ canonical_status=$?
59
+ fi
60
+
61
+ [ "$canonical_status" -eq 0 ] && allow
62
+ [ -n "$canonical_output" ] || canonical_output="Blocked: this file is Lisa-managed and is replaced by \`lisa apply\`. Edit the template upstream in Lisa, or use the local escape hatch beside the file."
63
+ deny "$canonical_output"
@@ -20,6 +20,7 @@ const canonicalHookDir = path.join(repoRoot, "plugins", "src", "base", "hooks");
20
20
  // that list is what the installer copies into a host, this one is what makes
21
21
  // the files reachable from `dist/` for a packaged install.
22
22
  const canonicalSupportFiles = [
23
+ "block-managed-file-edits.sh",
23
24
  "block-no-verify.sh",
24
25
  "parity-safety-net.sh",
25
26
  "parity-safety-net-heredoc.py",
@@ -251,6 +251,18 @@ const AGY_PLUGIN_HOOKS = [
251
251
  agyScript: "block-instruction-file-edits.agy.sh",
252
252
  supportScripts: ["block-instruction-file-edits.sh"],
253
253
  },
254
+ {
255
+ // Bash arm only, on the same terms as the instruction-file entry above:
256
+ // agy matches `run_command`, so an agy file-edit tool call writing a
257
+ // copy-overwrite template cannot be intercepted. What agy does get is the
258
+ // redirection / append / tee signatures, followed into executed scripts.
259
+ sourceScript: "block-managed-file-edits.sh",
260
+ hookName: "lisa-block-managed-file-edits",
261
+ event: "PreToolUse",
262
+ matcher: "run_command",
263
+ agyScript: "block-managed-file-edits.agy.sh",
264
+ supportScripts: ["block-managed-file-edits.sh"],
265
+ },
254
266
  {
255
267
  // No arm-only caveat here, unlike the entry above: the canonical guard is
256
268
  // Bash-only, and `run_command` is the whole of its surface.