@codyswann/lisa 2.124.2 → 2.124.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 (57) hide show
  1. package/dist/codex/hooks-installer.d.ts.map +1 -1
  2. package/dist/codex/hooks-installer.js +12 -4
  3. package/dist/codex/hooks-installer.js.map +1 -1
  4. package/package.json +1 -1
  5. package/plugins/lisa/.claude-plugin/plugin.json +1 -1
  6. package/plugins/lisa/.codex-plugin/plugin.json +2 -2
  7. package/plugins/lisa-agy/plugin.json +1 -1
  8. package/plugins/lisa-cdk/.claude-plugin/plugin.json +1 -1
  9. package/plugins/lisa-cdk/.codex-plugin/plugin.json +1 -1
  10. package/plugins/lisa-cdk-agy/plugin.json +1 -1
  11. package/plugins/lisa-cdk-copilot/.claude-plugin/plugin.json +1 -1
  12. package/plugins/lisa-cdk-cursor/.claude-plugin/plugin.json +1 -1
  13. package/plugins/lisa-copilot/.claude-plugin/plugin.json +1 -1
  14. package/plugins/lisa-cursor/.claude-plugin/plugin.json +1 -1
  15. package/plugins/lisa-expo/.claude-plugin/plugin.json +1 -1
  16. package/plugins/lisa-expo/.codex-plugin/plugin.json +1 -1
  17. package/plugins/lisa-expo-agy/plugin.json +1 -1
  18. package/plugins/lisa-expo-copilot/.claude-plugin/plugin.json +1 -1
  19. package/plugins/lisa-expo-cursor/.claude-plugin/plugin.json +1 -1
  20. package/plugins/lisa-harper-fabric/.claude-plugin/plugin.json +1 -1
  21. package/plugins/lisa-harper-fabric/.codex-plugin/plugin.json +2 -2
  22. package/plugins/lisa-harper-fabric-agy/plugin.json +1 -1
  23. package/plugins/lisa-harper-fabric-copilot/.claude-plugin/plugin.json +1 -1
  24. package/plugins/lisa-harper-fabric-cursor/.claude-plugin/plugin.json +1 -1
  25. package/plugins/lisa-nestjs/.claude-plugin/plugin.json +1 -1
  26. package/plugins/lisa-nestjs/.codex-plugin/plugin.json +2 -2
  27. package/plugins/lisa-nestjs-agy/plugin.json +1 -1
  28. package/plugins/lisa-nestjs-copilot/.claude-plugin/plugin.json +1 -1
  29. package/plugins/lisa-nestjs-cursor/.claude-plugin/plugin.json +1 -1
  30. package/plugins/lisa-openclaw/.claude-plugin/plugin.json +1 -1
  31. package/plugins/lisa-openclaw/.codex-plugin/plugin.json +1 -1
  32. package/plugins/lisa-openclaw-agy/plugin.json +1 -1
  33. package/plugins/lisa-openclaw-copilot/.claude-plugin/plugin.json +1 -1
  34. package/plugins/lisa-openclaw-cursor/.claude-plugin/plugin.json +1 -1
  35. package/plugins/lisa-rails/.claude-plugin/plugin.json +1 -1
  36. package/plugins/lisa-rails/.codex-plugin/plugin.json +2 -2
  37. package/plugins/lisa-rails-agy/plugin.json +1 -1
  38. package/plugins/lisa-rails-copilot/.claude-plugin/plugin.json +1 -1
  39. package/plugins/lisa-rails-cursor/.claude-plugin/plugin.json +1 -1
  40. package/plugins/lisa-typescript/.claude-plugin/plugin.json +1 -1
  41. package/plugins/lisa-typescript/.codex-plugin/plugin.json +2 -2
  42. package/plugins/lisa-typescript-agy/plugin.json +1 -1
  43. package/plugins/lisa-typescript-copilot/.claude-plugin/plugin.json +1 -1
  44. package/plugins/lisa-typescript-cursor/.claude-plugin/plugin.json +1 -1
  45. package/plugins/lisa-wiki/.claude-plugin/plugin.json +1 -1
  46. package/plugins/lisa-wiki/.codex-plugin/plugin.json +1 -1
  47. package/plugins/lisa-wiki-agy/plugin.json +1 -1
  48. package/plugins/lisa-wiki-copilot/.claude-plugin/plugin.json +1 -1
  49. package/plugins/lisa-wiki-cursor/.claude-plugin/plugin.json +1 -1
  50. package/scripts/generate-codex-plugin-artifacts.mjs +45 -25
  51. package/scripts/generate-copilot-plugin-artifacts.mjs +5 -4
  52. package/scripts/generate-cursor-plugin-artifacts.mjs +5 -3
  53. /package/plugins/lisa/{hooks → .codex-plugin}/hooks.json +0 -0
  54. /package/plugins/lisa-harper-fabric/{hooks → .codex-plugin}/hooks.json +0 -0
  55. /package/plugins/lisa-nestjs/{hooks → .codex-plugin}/hooks.json +0 -0
  56. /package/plugins/lisa-rails/{hooks → .codex-plugin}/hooks.json +0 -0
  57. /package/plugins/lisa-typescript/{hooks → .codex-plugin}/hooks.json +0 -0
@@ -1 +1 @@
1
- {"version":3,"file":"hooks-installer.d.ts","sourceRoot":"","sources":["../../src/codex/hooks-installer.ts"],"names":[],"mappings":"AAuCA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC;AAUrD,kEAAkE;AAClE,eAAO,MAAM,iBAAiB,QAA6B,CAAC;AAE5D;;;;;GAKG;AACH,eAAO,MAAM,cAAc,2BAA2B,CAAC;AAEvD,kFAAkF;AAClF,eAAO,MAAM,iBAAiB,eAAe,CAAC;AAE9C,+DAA+D;AAC/D,eAAO,MAAM,cAAc,eAAe,CAAC;AA2H3C,uCAAuC;AACvC,MAAM,WAAW,kBAAkB;IACjC,yEAAyE;IACzE,QAAQ,CAAC,YAAY,EAAE,SAAS,MAAM,EAAE,CAAC;IACzC,0DAA0D;IAC1D,QAAQ,CAAC,WAAW,EAAE,MAAM,CAAC;CAC9B;AAED;;;;;;;GAOG;AACH,wBAAsB,YAAY,CAChC,OAAO,EAAE,MAAM,EACf,OAAO,EAAE,MAAM,EACf,aAAa,EAAE,SAAS,WAAW,EAAE,GACpC,OAAO,CAAC,kBAAkB,CAAC,CA4D7B"}
1
+ {"version":3,"file":"hooks-installer.d.ts","sourceRoot":"","sources":["../../src/codex/hooks-installer.ts"],"names":[],"mappings":"AA+CA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC;AAUrD,kEAAkE;AAClE,eAAO,MAAM,iBAAiB,QAA6B,CAAC;AAE5D;;;;;GAKG;AACH,eAAO,MAAM,cAAc,2BAA2B,CAAC;AAEvD,kFAAkF;AAClF,eAAO,MAAM,iBAAiB,eAAe,CAAC;AAE9C,+DAA+D;AAC/D,eAAO,MAAM,cAAc,eAAe,CAAC;AA2H3C,uCAAuC;AACvC,MAAM,WAAW,kBAAkB;IACjC,yEAAyE;IACzE,QAAQ,CAAC,YAAY,EAAE,SAAS,MAAM,EAAE,CAAC;IACzC,0DAA0D;IAC1D,QAAQ,CAAC,WAAW,EAAE,MAAM,CAAC;CAC9B;AAED;;;;;;;GAOG;AACH,wBAAsB,YAAY,CAChC,OAAO,EAAE,MAAM,EACf,OAAO,EAAE,MAAM,EACf,aAAa,EAAE,SAAS,WAAW,EAAE,GACpC,OAAO,CAAC,kBAAkB,CAAC,CA4D7B"}
@@ -21,10 +21,18 @@
21
21
  * inject-rules also fires on SubagentStart under Claude; on Codex only its
22
22
  * SessionStart variant applies (Codex has no per-subagent start event).
23
23
  *
24
- * Codex does NOT execute plugin-bundled hooks (a `.codex-plugin` `hooks`
25
- * pointer / `hooks/hooks.json` never fires), so this installer writes hooks
26
- * into the project's own `.codex/hooks.json` instead. See
27
- * scripts/generate-codex-plugin-artifacts.mjs for the build-side counterpart.
24
+ * Codex DOES support plugin-bundled hooks (issue #1058) — they are non-managed
25
+ * and fire only after the user trusts them via an interactive `/hooks` review
26
+ * (Codex 0.125.0 has no headless trust bypass). The build-side counterpart
27
+ * (scripts/generate-codex-plugin-artifacts.mjs) emits those plugin hooks to
28
+ * `.codex-plugin/hooks.json` with a manifest `hooks` pointer — deliberately NOT
29
+ * `<plugin-root>/hooks/hooks.json`, which is also where Claude Code (and the
30
+ * cursor/copilot variants) auto-discover plugin hooks; a Codex-shaped
31
+ * `${PLUGIN_ROOT}` file there is run by Claude too, where `${PLUGIN_ROOT}` is
32
+ * undefined and expands to an empty prefix, breaking startup (issue #1058).
33
+ * This per-project installer is retained as the no-trust-prompt fallback and
34
+ * for users who run Lisa via `lisa apply` without enabling the marketplace
35
+ * plugin; it writes hooks into the project's own `.codex/hooks.json` instead.
28
36
  * @module codex/hooks-installer
29
37
  */
30
38
  import * as fse from "fs-extra";
@@ -1 +1 @@
1
- {"version":3,"file":"hooks-installer.js","sourceRoot":"","sources":["../../src/codex/hooks-installer.ts"],"names":[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D,MAAM,SAAS,GAAG,WAAW,CAAC,IAAI,CAChC,CAAC,IAAI,EAAE,KAAK,EAAE,EAAE,CAAC,WAAW,CAAC,OAAO,CAAC,IAAI,CAAC,KAAK,KAAK,CACrD,CAAC;QACF,MAAM,IAAI,KAAK,CACb,6BAA6B,SAAS,IAAI,SAAS,oCAAoC,CACxF,CAAC;IACJ,CAAC;IAED,2EAA2E;IAC3E,wBAAwB;IACxB,MAAM,OAAO,CAAC,GAAG,CACf,YAAY,CAAC,GAAG,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,CAAC,SAAS,CAAC,IAAI,CAAC,IAAI,CAAC,YAAY,EAAE,GAAG,CAAC,CAAC,CAAC,CACrE,CAAC;IAEF,oEAAoE;IACpE,MAAM,OAAO,CAAC,GAAG,CACf,aAAa,CAAC,OAAO,CAAC,CAAC,EAAE,OAAO,EAAE,EAAE,EAAE,CACpC,OAAO,CAAC,GAAG,CAAC,KAAK,CAAC,EAAE,CAClB,QAAQ,CAAC,KAAK,CAAC,SAAS,EAAE,IAAI,CAAC,IAAI,CAAC,YAAY,EAAE,KAAK,CAAC,OAAO,CAAC,CAAC,CAClE,CACF,CACF,CAAC;IAEF,OAAO,MAAM,CAAC,MAAM,CAAC,WAAW,CAAC,CAAC;AACpC,CAAC"}
package/package.json CHANGED
@@ -83,7 +83,7 @@
83
83
  "lodash": ">=4.18.1"
84
84
  },
85
85
  "name": "@codyswann/lisa",
86
- "version": "2.124.2",
86
+ "version": "2.124.4",
87
87
  "description": "Claude Code governance framework that applies guardrails, guidance, and automated enforcement to projects",
88
88
  "main": "dist/index.js",
89
89
  "exports": {
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lisa",
3
- "version": "2.124.2",
3
+ "version": "2.124.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",
3
- "version": "2.124.2",
3
+ "version": "2.124.4",
4
4
  "description": "Universal governance: agents, skills, commands, hooks, and rules for all projects.",
5
5
  "author": {
6
6
  "name": "Cody Swann"
@@ -12,7 +12,7 @@
12
12
  "workflow"
13
13
  ],
14
14
  "skills": "./skills/",
15
- "hooks": "./hooks/hooks.json",
15
+ "hooks": "./.codex-plugin/hooks.json",
16
16
  "interface": {
17
17
  "displayName": "Lisa",
18
18
  "shortDescription": "Universal project governance workflows",
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lisa",
3
- "version": "2.124.2",
3
+ "version": "2.124.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": "2.124.2",
3
+ "version": "2.124.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": "2.124.2",
3
+ "version": "2.124.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": "2.124.2",
3
+ "version": "2.124.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": "2.124.2",
3
+ "version": "2.124.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": "2.124.2",
3
+ "version": "2.124.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": "2.124.2",
3
+ "version": "2.124.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",
3
- "version": "2.124.2",
3
+ "version": "2.124.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-expo",
3
- "version": "2.124.2",
3
+ "version": "2.124.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": "2.124.2",
3
+ "version": "2.124.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": "2.124.2",
3
+ "version": "2.124.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": "2.124.2",
3
+ "version": "2.124.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": "2.124.2",
3
+ "version": "2.124.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": "2.124.2",
3
+ "version": "2.124.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": "2.124.2",
3
+ "version": "2.124.4",
4
4
  "description": "Harper/Fabric-specific Lisa rules for TypeScript component apps.",
5
5
  "author": {
6
6
  "name": "Cody Swann"
@@ -15,7 +15,7 @@
15
15
  "lisa-typescript"
16
16
  ],
17
17
  "skills": "./skills/",
18
- "hooks": "./hooks/hooks.json",
18
+ "hooks": "./.codex-plugin/hooks.json",
19
19
  "interface": {
20
20
  "displayName": "Lisa Harper/Fabric",
21
21
  "shortDescription": "Harper/Fabric workflow guidance",
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lisa-harper-fabric",
3
- "version": "2.124.2",
3
+ "version": "2.124.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": "2.124.2",
3
+ "version": "2.124.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": "2.124.2",
3
+ "version": "2.124.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": "2.124.2",
3
+ "version": "2.124.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": "2.124.2",
3
+ "version": "2.124.4",
4
4
  "description": "NestJS-specific skills and migration write-protection hooks.",
5
5
  "author": {
6
6
  "name": "Cody Swann"
@@ -15,7 +15,7 @@
15
15
  "lisa-typescript"
16
16
  ],
17
17
  "skills": "./skills/",
18
- "hooks": "./hooks/hooks.json",
18
+ "hooks": "./.codex-plugin/hooks.json",
19
19
  "interface": {
20
20
  "displayName": "Lisa NestJS",
21
21
  "shortDescription": "NestJS workflow guidance",
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lisa-nestjs",
3
- "version": "2.124.2",
3
+ "version": "2.124.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": "2.124.2",
3
+ "version": "2.124.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": "2.124.2",
3
+ "version": "2.124.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": "2.124.2",
3
+ "version": "2.124.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": "2.124.2",
3
+ "version": "2.124.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": "2.124.2",
3
+ "version": "2.124.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": "2.124.2",
3
+ "version": "2.124.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": "2.124.2",
3
+ "version": "2.124.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-rails",
3
- "version": "2.124.2",
3
+ "version": "2.124.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": "2.124.2",
3
+ "version": "2.124.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"
@@ -15,7 +15,7 @@
15
15
  "lisa"
16
16
  ],
17
17
  "skills": "./skills/",
18
- "hooks": "./hooks/hooks.json",
18
+ "hooks": "./.codex-plugin/hooks.json",
19
19
  "interface": {
20
20
  "displayName": "Lisa Rails",
21
21
  "shortDescription": "Ruby on Rails workflows",
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lisa-rails",
3
- "version": "2.124.2",
3
+ "version": "2.124.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": "2.124.2",
3
+ "version": "2.124.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": "2.124.2",
3
+ "version": "2.124.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": "2.124.2",
3
+ "version": "2.124.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": "2.124.2",
3
+ "version": "2.124.4",
4
4
  "description": "TypeScript-specific hooks for formatting, linting, and ast-grep scanning on edit.",
5
5
  "author": {
6
6
  "name": "Cody Swann"
@@ -14,7 +14,7 @@
14
14
  "dependencies": [
15
15
  "lisa"
16
16
  ],
17
- "hooks": "./hooks/hooks.json",
17
+ "hooks": "./.codex-plugin/hooks.json",
18
18
  "interface": {
19
19
  "displayName": "Lisa TypeScript",
20
20
  "shortDescription": "TypeScript lifecycle checks",
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lisa-typescript",
3
- "version": "2.124.2",
3
+ "version": "2.124.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": "2.124.2",
3
+ "version": "2.124.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": "2.124.2",
3
+ "version": "2.124.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": "2.124.2",
3
+ "version": "2.124.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": "2.124.2",
3
+ "version": "2.124.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": "2.124.2",
3
+ "version": "2.124.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": "2.124.2",
3
+ "version": "2.124.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": "2.124.2",
3
+ "version": "2.124.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"
@@ -7,17 +7,31 @@
7
7
  *
8
8
  * HOOKS: as of Codex 0.125.0 (verified via codex features list showing
9
9
  * codex_hooks as `stable`), the plugin manifest accepts a `hooks` field
10
- * pointing at a sibling `hooks.json`. `emitCodexHooks` below derives the
11
- * Codex-shape hooks block from the Claude manifest by applying the Wave 1
12
- * per-agent ship-list audit
10
+ * pointing at a `hooks.json`. Per the official docs + the structural analogy to
11
+ * the working `skills`/`mcpServers` pointers, that pointer resolves RELATIVE TO
12
+ * THE PLUGIN ROOT — but end-to-end firing is trust-gated (interactive `/hooks`,
13
+ * no headless bypass in 0.125.0), so this is verified by docs + structure, not
14
+ * by an automated run; the per-project installer (src/codex/hooks-installer.ts)
15
+ * remains the verified-working Codex delivery path. `emitCodexHooks` below
16
+ * derives the Codex-shape hooks block from the Claude manifest by applying the
17
+ * Wave 1 per-agent ship-list audit
13
18
  * (wiki/architecture/lisa-hook-per-agent-ship-list.md):
14
19
  * - Drop every `entire hooks claude-code *` command (Claude-only analytics).
15
20
  * - Drop every reference to `enforce-team-first.sh` (Claude-team-specific).
16
21
  * - Drop `inject-flow-context.sh` ONLY when targeting an agent without
17
22
  * SubagentStart (Codex 0.125.0 has SubagentStart, so we ship it).
18
- * - Rewrite ${CLAUDE_PLUGIN_ROOT}/hooks/<n>.sh to ./hooks/<n>.sh so the
19
- * hooks.json sibling can resolve the script path relative to itself.
20
- * - Copy the surviving scripts into .codex-plugin/hooks/.
23
+ * - Rewrite ${CLAUDE_PLUGIN_ROOT}/hooks/<n>.sh to ${PLUGIN_ROOT}/hooks/<n>.sh
24
+ * (the env var Codex exposes to hook commands), which still resolves to the
25
+ * shared scripts at <plugin-root>/hooks/*.sh.
26
+ *
27
+ * The derived hooks.json is written to <plugin-root>/.codex-plugin/hooks.json,
28
+ * NOT <plugin-root>/hooks/hooks.json. The latter is where Claude Code (and the
29
+ * cursor/copilot Claude-protocol variants) AUTO-DISCOVER plugin hooks, so a
30
+ * Codex-shaped file there gets run by Claude too — and because it uses
31
+ * ${PLUGIN_ROOT} (undefined in Claude), the path expands to an empty prefix
32
+ * (`/hooks/<n>.sh: No such file`). Keeping the Codex file under .codex-plugin/
33
+ * (which Claude never scans) is what lets Claude, Codex, cursor, copilot, and
34
+ * agy each load exactly their own hooks. See issue #1058.
21
35
  *
22
36
  * SessionEnd is documented as unsupported by Codex; the `entire hooks
23
37
  * claude-code session-end` hook is stripped per the Claude-only rule above
@@ -459,27 +473,33 @@ function main() {
459
473
 
460
474
  /**
461
475
  * Per Wave 1 audit + Codex 0.125.0 supporting plugin-bundled hooks: derive
462
- * a Codex-shaped hooks.json from the Claude manifest's hooks block and copy
463
- * the surviving scripts into .codex-plugin/hooks/.
476
+ * a Codex-shaped hooks.json from the Claude manifest's hooks block and write it
477
+ * to <plugin-root>/.codex-plugin/hooks.json (advertised via the manifest `hooks`
478
+ * pointer in componentPointers).
479
+ *
480
+ * The file deliberately does NOT go to <plugin-root>/hooks/hooks.json: Claude
481
+ * Code and the cursor/copilot Claude-protocol variants auto-discover hooks
482
+ * there, and the Codex file's ${PLUGIN_ROOT} (undefined in Claude) would expand
483
+ * to an empty prefix and fail at startup (issue #1058). The hook SCRIPTS stay
484
+ * at <plugin-root>/hooks/*.sh — shared, copied from plugins/src by the Claude
485
+ * build — and ${PLUGIN_ROOT}/hooks/<n>.sh resolves to them regardless of where
486
+ * hooks.json itself lives.
464
487
  *
465
488
  * No-op when the input has no hooks block or every entry is stripped.
466
489
  *
467
490
  * @param {string} pluginDir Built Claude plugin directory.
468
491
  * @param {object} claudeManifest Parsed contents of .claude-plugin/plugin.json.
469
492
  */
470
- function emitCodexHooks(pluginDir, claudeManifest) {
471
- // Codex auto-discovers a plugin's hooks at <plugin-root>/hooks/hooks.json and
472
- // resolves the manifest hooks pointer + ${PLUGIN_ROOT} relative to the plugin
473
- // root (developers.openai.com/codex/plugins/build). The hook scripts already
474
- // ship at <plugin-root>/hooks/ (copied from plugins/src by the Claude build),
475
- // so the Codex hooks.json lives alongside them and no script copy is needed.
476
- const hooksDir = path.join(pluginDir, "hooks");
477
- const hooksJsonPath = path.join(hooksDir, "hooks.json");
478
- // Clean up the pre-2.121 layout (hooks.json + copied scripts under
479
- // .codex-plugin/) so a rebuilt plugin never ships both.
480
- const legacyCodexPluginDir = path.join(pluginDir, ".codex-plugin");
481
- fs.rmSync(path.join(legacyCodexPluginDir, "hooks.json"), { force: true });
482
- fs.rmSync(path.join(legacyCodexPluginDir, "hooks"), {
493
+ export function emitCodexHooks(pluginDir, claudeManifest) {
494
+ const codexPluginDir = path.join(pluginDir, ".codex-plugin");
495
+ const hooksJsonPath = path.join(codexPluginDir, "hooks.json");
496
+ // Purge the older layouts so a rebuilt plugin never ships a stale/duplicate
497
+ // file:
498
+ // - <plugin-root>/hooks/hooks.json (2.121–2.124; broke Claude startup)
499
+ // - <plugin-root>/.codex-plugin/hooks/ (pre-2.121 copied-scripts dir)
500
+ // The shared .sh scripts at <plugin-root>/hooks/ are left untouched.
501
+ fs.rmSync(path.join(pluginDir, "hooks", "hooks.json"), { force: true });
502
+ fs.rmSync(path.join(codexPluginDir, "hooks"), {
483
503
  force: true,
484
504
  recursive: true,
485
505
  });
@@ -490,7 +510,7 @@ function emitCodexHooks(pluginDir, claudeManifest) {
490
510
  fs.rmSync(hooksJsonPath, { force: true });
491
511
  return;
492
512
  }
493
- fs.mkdirSync(hooksDir, { recursive: true });
513
+ fs.mkdirSync(codexPluginDir, { recursive: true });
494
514
  fs.writeFileSync(
495
515
  hooksJsonPath,
496
516
  `${JSON.stringify(buildCodexHooksDocument(filtered), null, 2)}\n`
@@ -541,7 +561,7 @@ function writeCodexManifest(pluginDir, claudeManifest, pluginName, version) {
541
561
  );
542
562
  }
543
563
 
544
- function componentPointers(pluginDir) {
564
+ export function componentPointers(pluginDir) {
545
565
  return {
546
566
  ...(fs.existsSync(path.join(pluginDir, "skills"))
547
567
  ? { skills: "./skills/" }
@@ -549,8 +569,8 @@ function componentPointers(pluginDir) {
549
569
  ...(fs.existsSync(path.join(pluginDir, ".mcp.json"))
550
570
  ? { mcpServers: "./.mcp.json" }
551
571
  : {}),
552
- ...(fs.existsSync(path.join(pluginDir, "hooks", "hooks.json"))
553
- ? { hooks: "./hooks/hooks.json" }
572
+ ...(fs.existsSync(path.join(pluginDir, ".codex-plugin", "hooks.json"))
573
+ ? { hooks: "./.codex-plugin/hooks.json" }
554
574
  : {}),
555
575
  };
556
576
  }
@@ -139,10 +139,11 @@ export function generateCopilotVariant(srcDir, outDir, version) {
139
139
  copyDir(srcDir, outDir, relPath => {
140
140
  if (relPath.startsWith(".codex-plugin/") || relPath === ".codex-plugin")
141
141
  return false;
142
- // Drop the Codex hooks manifest the base build emits at hooks/hooks.json —
143
- // Copilot reads its (camelCase) hooks from .claude-plugin/plugin.json, not
144
- // this Codex-shaped (PascalCase, ${PLUGIN_ROOT}) file. Keeping it would ship
145
- // a spurious, wrong-shaped hooks manifest in the Copilot variant.
142
+ // Defensively drop any hooks/hooks.json. The base build now emits the Codex
143
+ // hooks manifest under .codex-plugin/ (stripped above), not here (issue
144
+ // #1058), but guard against a regression reintroducing it: Copilot reads its
145
+ // (camelCase) hooks from .claude-plugin/plugin.json, not a Codex-shaped
146
+ // (PascalCase, ${PLUGIN_ROOT}) file.
146
147
  if (relPath === path.join("hooks", "hooks.json")) return false;
147
148
  // Drop Codex-specific per-skill openai.yaml artifacts — Copilot does not use them.
148
149
  if (/^skills\/[^/]+\/agents\/openai\.ya?ml$/.test(relPath)) return false;
@@ -105,9 +105,11 @@ export function generateCursorVariant(srcDir, outDir, version) {
105
105
  // Drop the `.codex-plugin/` directory — Cursor does not consume it.
106
106
  if (relPath.startsWith(".codex-plugin/") || relPath === ".codex-plugin")
107
107
  return false;
108
- // Drop the Codex hooks manifest the base build emits at hooks/hooks.json —
109
- // Cursor reads its (filtered) hooks from .claude-plugin/plugin.json, not this
110
- // Codex-shaped file. The surviving .sh scripts in hooks/ are kept below.
108
+ // Defensively drop any hooks/hooks.json. The base build now emits the Codex
109
+ // hooks manifest under .codex-plugin/ (stripped above), not here (issue
110
+ // #1058), but guard against a regression reintroducing it: Cursor reads its
111
+ // (filtered) hooks from .claude-plugin/plugin.json, not a Codex-shaped file.
112
+ // The surviving .sh scripts in hooks/ are kept below.
111
113
  if (relPath === path.join("hooks", "hooks.json")) return false;
112
114
  // Drop Codex-specific per-skill openai.yaml artifacts — Cursor does not use them.
113
115
  // These live at skills/<n>/agents/openai.yaml and are generated by the Codex