@codyswann/lisa 4.89.0 → 4.90.1

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 (140) hide show
  1. package/all/copy-overwrite/scripts/lisa-enforcement-fallback.sh +2 -2
  2. package/all/copy-overwrite/scripts/lisa-enforcement-freshness.mjs +1 -2
  3. package/all/copy-overwrite/scripts/lisa-hooks/parity-safety-net.sh +9 -3634
  4. package/all/copy-overwrite/scripts/lisa-postinstall.mjs +16 -5
  5. package/dist/cli/apply.d.ts.map +1 -1
  6. package/dist/cli/apply.js +25 -4
  7. package/dist/cli/apply.js.map +1 -1
  8. package/dist/cli/lisa-test-run-process-group.d.ts.map +1 -1
  9. package/dist/cli/lisa-test-run-process-group.js +19 -2
  10. package/dist/cli/lisa-test-run-process-group.js.map +1 -1
  11. package/dist/core/bootstrap-environment.d.ts +10 -1
  12. package/dist/core/bootstrap-environment.d.ts.map +1 -1
  13. package/dist/core/bootstrap-environment.js +14 -5
  14. package/dist/core/bootstrap-environment.js.map +1 -1
  15. package/dist/core/enforcement-coverage.d.ts +2 -2
  16. package/dist/core/enforcement-coverage.d.ts.map +1 -1
  17. package/dist/core/enforcement-coverage.js +2 -3
  18. package/dist/core/enforcement-coverage.js.map +1 -1
  19. package/dist/core/lisa-owned-hash-ledger.d.ts.map +1 -1
  20. package/dist/core/lisa-owned-hash-ledger.js +10 -0
  21. package/dist/core/lisa-owned-hash-ledger.js.map +1 -1
  22. package/dist/core/native-safety-net-retirement.d.ts +13 -0
  23. package/dist/core/native-safety-net-retirement.d.ts.map +1 -0
  24. package/dist/core/native-safety-net-retirement.js +23 -0
  25. package/dist/core/native-safety-net-retirement.js.map +1 -0
  26. package/dist/core/nightly-e2e-guard-behavior-certificate.js +2 -2
  27. package/dist/core/upstream-evidence-manifest.d.ts.map +1 -1
  28. package/dist/core/upstream-evidence-manifest.js +40 -54
  29. package/dist/core/upstream-evidence-manifest.js.map +1 -1
  30. package/dist/migrations/index.d.ts +1 -0
  31. package/dist/migrations/index.d.ts.map +1 -1
  32. package/dist/migrations/index.js +3 -0
  33. package/dist/migrations/index.js.map +1 -1
  34. package/dist/migrations/retire-native-safety-net.d.ts +18 -0
  35. package/dist/migrations/retire-native-safety-net.d.ts.map +1 -0
  36. package/dist/migrations/retire-native-safety-net.js +36 -0
  37. package/dist/migrations/retire-native-safety-net.js.map +1 -0
  38. package/dist/opencode/plugin-catalog.d.ts.map +1 -1
  39. package/dist/opencode/plugin-catalog.js +1 -0
  40. package/dist/opencode/plugin-catalog.js.map +1 -1
  41. package/dist/opencode/plugin-templates/lisa-parity-safety-net.ts +2 -48
  42. package/dist/opencode/plugin-templates/parity-safety-net.sh +9 -3634
  43. package/package.json +8 -6
  44. package/plugins/lisa/.claude-plugin/plugin.json +1 -1
  45. package/plugins/lisa/.codex-plugin/plugin.json +1 -1
  46. package/plugins/lisa/hooks/parity-safety-net.agy.sh +5 -49
  47. package/plugins/lisa/hooks/parity-safety-net.sh +9 -3634
  48. package/plugins/lisa-agy/hooks/parity-safety-net.agy.sh +5 -49
  49. package/plugins/lisa-agy/hooks/parity-safety-net.sh +9 -3634
  50. package/plugins/lisa-agy/plugin.json +1 -1
  51. package/plugins/lisa-cdk/.claude-plugin/plugin.json +1 -1
  52. package/plugins/lisa-cdk/.codex-plugin/plugin.json +1 -1
  53. package/plugins/lisa-cdk-agy/plugin.json +1 -1
  54. package/plugins/lisa-cdk-copilot/.claude-plugin/plugin.json +1 -1
  55. package/plugins/lisa-cdk-cursor/.claude-plugin/plugin.json +1 -1
  56. package/plugins/lisa-cdk-devin/.claude-plugin/plugin.json +1 -1
  57. package/plugins/lisa-cdk-devin/.devin-plugin/plugin.json +1 -1
  58. package/plugins/lisa-copilot/.claude-plugin/plugin.json +1 -1
  59. package/plugins/lisa-copilot/hooks/parity-safety-net.sh +9 -3634
  60. package/plugins/lisa-cursor/.claude-plugin/plugin.json +1 -1
  61. package/plugins/lisa-cursor/hooks/parity-safety-net.sh +9 -3634
  62. package/plugins/lisa-devin/.claude-plugin/plugin.json +1 -1
  63. package/plugins/lisa-devin/.devin-plugin/plugin.json +1 -1
  64. package/plugins/lisa-devin/hooks/parity-safety-net.sh +9 -3634
  65. package/plugins/lisa-expo/.claude-plugin/plugin.json +1 -1
  66. package/plugins/lisa-expo/.codex-plugin/plugin.json +1 -1
  67. package/plugins/lisa-expo-agy/plugin.json +1 -1
  68. package/plugins/lisa-expo-copilot/.claude-plugin/plugin.json +1 -1
  69. package/plugins/lisa-expo-cursor/.claude-plugin/plugin.json +1 -1
  70. package/plugins/lisa-expo-devin/.claude-plugin/plugin.json +1 -1
  71. package/plugins/lisa-expo-devin/.devin-plugin/plugin.json +1 -1
  72. package/plugins/lisa-harper-fabric/.claude-plugin/plugin.json +1 -1
  73. package/plugins/lisa-harper-fabric/.codex-plugin/plugin.json +1 -1
  74. package/plugins/lisa-harper-fabric-agy/plugin.json +1 -1
  75. package/plugins/lisa-harper-fabric-copilot/.claude-plugin/plugin.json +1 -1
  76. package/plugins/lisa-harper-fabric-cursor/.claude-plugin/plugin.json +1 -1
  77. package/plugins/lisa-harper-fabric-devin/.claude-plugin/plugin.json +1 -1
  78. package/plugins/lisa-harper-fabric-devin/.devin-plugin/plugin.json +1 -1
  79. package/plugins/lisa-nestjs/.claude-plugin/plugin.json +1 -1
  80. package/plugins/lisa-nestjs/.codex-plugin/plugin.json +1 -1
  81. package/plugins/lisa-nestjs-agy/plugin.json +1 -1
  82. package/plugins/lisa-nestjs-copilot/.claude-plugin/plugin.json +1 -1
  83. package/plugins/lisa-nestjs-cursor/.claude-plugin/plugin.json +1 -1
  84. package/plugins/lisa-nestjs-devin/.claude-plugin/plugin.json +1 -1
  85. package/plugins/lisa-nestjs-devin/.devin-plugin/plugin.json +1 -1
  86. package/plugins/lisa-openclaw/.claude-plugin/plugin.json +1 -1
  87. package/plugins/lisa-openclaw/.codex-plugin/plugin.json +1 -1
  88. package/plugins/lisa-openclaw-agy/plugin.json +1 -1
  89. package/plugins/lisa-openclaw-copilot/.claude-plugin/plugin.json +1 -1
  90. package/plugins/lisa-openclaw-cursor/.claude-plugin/plugin.json +1 -1
  91. package/plugins/lisa-openclaw-devin/.claude-plugin/plugin.json +1 -1
  92. package/plugins/lisa-openclaw-devin/.devin-plugin/plugin.json +1 -1
  93. package/plugins/lisa-phaser/.claude-plugin/plugin.json +1 -1
  94. package/plugins/lisa-phaser/.codex-plugin/plugin.json +1 -1
  95. package/plugins/lisa-phaser-agy/plugin.json +1 -1
  96. package/plugins/lisa-phaser-copilot/.claude-plugin/plugin.json +1 -1
  97. package/plugins/lisa-phaser-cursor/.claude-plugin/plugin.json +1 -1
  98. package/plugins/lisa-phaser-devin/.claude-plugin/plugin.json +1 -1
  99. package/plugins/lisa-phaser-devin/.devin-plugin/plugin.json +1 -1
  100. package/plugins/lisa-rails/.claude-plugin/plugin.json +1 -1
  101. package/plugins/lisa-rails/.codex-plugin/plugin.json +1 -1
  102. package/plugins/lisa-rails-agy/plugin.json +1 -1
  103. package/plugins/lisa-rails-copilot/.claude-plugin/plugin.json +1 -1
  104. package/plugins/lisa-rails-cursor/.claude-plugin/plugin.json +1 -1
  105. package/plugins/lisa-rails-devin/.claude-plugin/plugin.json +1 -1
  106. package/plugins/lisa-rails-devin/.devin-plugin/plugin.json +1 -1
  107. package/plugins/lisa-typescript/.claude-plugin/plugin.json +1 -1
  108. package/plugins/lisa-typescript/.codex-plugin/plugin.json +1 -1
  109. package/plugins/lisa-typescript-agy/plugin.json +1 -1
  110. package/plugins/lisa-typescript-copilot/.claude-plugin/plugin.json +1 -1
  111. package/plugins/lisa-typescript-cursor/.claude-plugin/plugin.json +1 -1
  112. package/plugins/lisa-typescript-devin/.claude-plugin/plugin.json +1 -1
  113. package/plugins/lisa-typescript-devin/.devin-plugin/plugin.json +1 -1
  114. package/plugins/lisa-wiki/.claude-plugin/plugin.json +1 -1
  115. package/plugins/lisa-wiki/.codex-plugin/plugin.json +1 -1
  116. package/plugins/lisa-wiki-agy/plugin.json +1 -1
  117. package/plugins/lisa-wiki-copilot/.claude-plugin/plugin.json +1 -1
  118. package/plugins/lisa-wiki-cursor/.claude-plugin/plugin.json +1 -1
  119. package/plugins/lisa-wiki-devin/.claude-plugin/plugin.json +1 -1
  120. package/plugins/lisa-wiki-devin/.devin-plugin/plugin.json +1 -1
  121. package/plugins/src/base/hooks/parity-safety-net.agy.sh +5 -49
  122. package/plugins/src/base/hooks/parity-safety-net.sh +9 -3634
  123. package/rails/create-only/.github/workflows/ci.yml +4 -0
  124. package/scripts/build-plugins.sh +3 -0
  125. package/scripts/check-generated-artifact-merge-coverage.mjs +7 -0
  126. package/scripts/fixtures/native-safety-net-retirement/Dockerfile +5 -0
  127. package/scripts/fixtures/native-safety-net-retirement/invoke-opencode.mjs +13 -0
  128. package/scripts/fixtures/native-safety-net-retirement/isolated-linker.mjs +101 -0
  129. package/scripts/fixtures/native-safety-net-retirement/journey.mjs +381 -0
  130. package/scripts/fixtures/native-safety-net-retirement/probes.mjs +208 -0
  131. package/scripts/fixtures/native-safety-net-retirement/reduced-core.mjs +93 -0
  132. package/scripts/generate-lisa-owned-hash-ledger.mjs +1 -1
  133. package/scripts/generate-retired-safety-net-manifest.mjs +56 -0
  134. package/scripts/install-claude-plugins.sh +9 -5
  135. package/scripts/lib/retired-safety-net-manifest.json +150 -0
  136. package/scripts/lisa-enforcement-fallback.sh +2 -2
  137. package/scripts/lisa-enforcement-freshness.mjs +1 -2
  138. package/scripts/remedy-conformance.mjs +5 -1
  139. package/scripts/retire-native-safety-net.mjs +237 -0
  140. package/scripts/verify-native-safety-net-retirement.mjs +287 -0
package/package.json CHANGED
@@ -6,7 +6,7 @@
6
6
  "lisa-test-run": "node scripts/lib/worktree-dependencies.mjs && bun run build && node dist/cli/lisa-test-run.js --profile lisa",
7
7
  "test:integration": "node scripts/lib/worktree-dependencies.mjs && $npm_execpath run lisa-test-run -- --adapter vitest -- vitest run tests/integration",
8
8
  "test:integration:push": "node scripts/lib/worktree-dependencies.mjs && $npm_execpath run lisa-test-run -- --adapter vitest -- vitest run tests/integration --exclude='**/mutation-gate-bite.test.ts' --exclude='**/mutation-gate-diff-bite.test.ts' --exclude='**/mutation-sigterm-control.test.ts' --exclude='**/mutation-performance-fixture.test.ts' --exclude='**/mutation-performance-packed-apply.test.ts' --exclude='**/mutation-source-roots.test.ts'",
9
- "postinstall": "npm_lifecycle_event=postinstall bash ./scripts/install-claude-plugins.sh || true; node ./scripts/install-generated-artifact-merge-driver.mjs || true; [ ! -f tsconfig.json ] || tsc -p tsconfig.json || true",
9
+ "postinstall": "node ./scripts/retire-native-safety-net.mjs --install || exit $?; npm_lifecycle_event=postinstall bash ./scripts/install-claude-plugins.sh || true; node ./scripts/install-generated-artifact-merge-driver.mjs || true; [ ! -f tsconfig.json ] || tsc -p tsconfig.json || true",
10
10
  "pretest": "bun run build",
11
11
  "test": "node scripts/lib/worktree-dependencies.mjs && $npm_execpath run lisa-test-run -- --adapter vitest -- vitest run",
12
12
  "test:unit": "node scripts/lib/worktree-dependencies.mjs && $npm_execpath run lisa-test-run -- --adapter vitest -- vitest run --exclude='**/integration/**' --exclude='**/*.integration.*'",
@@ -57,12 +57,14 @@
57
57
  "check:lisa-owned-hash-ledger": "node scripts/generate-lisa-owned-hash-ledger.mjs --check",
58
58
  "build:export-surface": "node scripts/generate-export-surface.mjs",
59
59
  "check:export-surface": "node scripts/generate-export-surface.mjs --check",
60
+ "build:retired-safety-net-manifest": "node scripts/generate-retired-safety-net-manifest.mjs",
61
+ "check:retired-safety-net-manifest": "node scripts/generate-retired-safety-net-manifest.mjs --check",
60
62
  "build:nightly-guard-certificate": "node scripts/generate-nightly-e2e-guard-certificate.mjs",
61
63
  "check:nightly-guard-certificate": "node scripts/generate-nightly-e2e-guard-certificate.mjs --check",
62
64
  "generate:two-channel-couplings": "bun scripts/generate-two-channel-couplings.ts",
63
65
  "check:two-channel-couplings": "bun scripts/generate-two-channel-couplings.ts --check",
64
66
  "check:deletion-basis": "node scripts/check-deletion-basis.mjs",
65
- "check:artifacts": "node scripts/run-artifact-checks.mjs check:upstream-evidence-manifest check:lisa-owned-hash-ledger check:nightly-guard-certificate check:two-channel-couplings check:deletion-basis check:export-surface check:merge-coverage",
67
+ "check:artifacts": "node scripts/run-artifact-checks.mjs check:upstream-evidence-manifest check:lisa-owned-hash-ledger check:nightly-guard-certificate check:two-channel-couplings check:deletion-basis check:export-surface check:merge-coverage check:retired-safety-net-manifest",
66
68
  "refresh:upstream-public-commits": "node scripts/generate-upstream-evidence-manifest.mjs --refresh-public-commits",
67
69
  "check:rules-pairing": "bash scripts/check-rules-pairing.sh",
68
70
  "check:pipeline-status-reads": "node scripts/check-pipeline-status-reads.mjs",
@@ -189,7 +191,7 @@
189
191
  "qs": "^6.16.0"
190
192
  },
191
193
  "name": "@codyswann/lisa",
192
- "version": "4.89.0",
194
+ "version": "4.90.1",
193
195
  "description": "Governance-as-code for AI coding agents: turns a repository into agent-operated software factories with guardrails, guidance and automated enforcement for Claude Code, Codex, Cursor, OpenCode, Antigravity, Copilot and Devin",
194
196
  "main": "dist/index.js",
195
197
  "exports": {
@@ -347,7 +349,7 @@
347
349
  "test": "tests"
348
350
  },
349
351
  "types": "./dist/index.d.ts",
350
- "lisaReleaseCommit": "93ea1c0da18349a945cc19af881b14cea05da1b8",
351
- "gitHead": "93ea1c0da18349a945cc19af881b14cea05da1b8",
352
- "lisaReleaseTag": "v4.89.0"
352
+ "lisaReleaseCommit": "7b2fcb857cfdfaffe9781c261c9f1d3cfcfde7e3",
353
+ "gitHead": "7b2fcb857cfdfaffe9781c261c9f1d3cfcfde7e3",
354
+ "lisaReleaseTag": "v4.90.1"
353
355
  }
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lisa",
3
- "version": "4.89.0",
3
+ "version": "4.90.1",
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": "4.89.0",
3
+ "version": "4.90.1",
4
4
  "description": "Universal governance: agents, skills, commands, hooks, and rules for all projects.",
5
5
  "author": {
6
6
  "name": "Cody Swann"
@@ -1,50 +1,6 @@
1
1
  #!/usr/bin/env bash
2
- # Antigravity (agy) PreToolUse adapter for Lisa's canonical parity safety net.
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
- # parity-safety-net.sh and parity-safety-net-heredoc.py files beside it.
9
- set -uo pipefail
10
-
11
- allow() {
12
- printf '%s\n' '{"decision":"allow"}'
13
- exit 0
14
- }
15
-
16
- deny() {
17
- local reason="$1"
18
- if command -v jq >/dev/null 2>&1; then
19
- jq -cn --arg reason "$reason" '{decision:"deny",reason:$reason}'
20
- else
21
- printf '%s\n' '{"decision":"deny","reason":"Blocked by safety-net: the required JSON runtime is unavailable, so this command could not be classified safely."}'
22
- fi
23
- exit 0
24
- }
25
-
26
- input="$(cat 2>/dev/null || true)"
27
- [ -z "$input" ] && allow
28
- command -v jq >/dev/null 2>&1 || deny "Blocked by safety-net: the required JSON runtime is unavailable, so this command could not be classified safely."
29
-
30
- tool_name="$(printf '%s' "$input" | jq -r '.toolCall.name // empty' 2>/dev/null || true)"
31
- [ "$tool_name" != "run_command" ] && allow
32
- command_str="$(printf '%s' "$input" | jq -r '.toolCall.args.CommandLine // empty' 2>/dev/null || true)"
33
- [ -z "$command_str" ] && allow
34
-
35
- hook_dir="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
36
- canonical_hook="$hook_dir/parity-safety-net.sh"
37
- [ -r "$canonical_hook" ] || deny "Blocked by safety-net: the canonical safety policy is unavailable, so this command could not be classified safely."
38
-
39
- canonical_input="$(jq -cn --arg command "$command_str" '{tool_name:"Bash",tool_input:{command:$command}}')"
40
- canonical_output=""
41
- canonical_status=0
42
- if canonical_output="$(printf '%s' "$canonical_input" | /bin/bash "$canonical_hook" 2>&1)"; then
43
- canonical_status=0
44
- else
45
- canonical_status=$?
46
- fi
47
-
48
- [ "$canonical_status" -eq 0 ] && allow
49
- [ -n "$canonical_output" ] || canonical_output="Blocked by safety-net: the canonical safety policy failed closed."
50
- deny "$canonical_output"
2
+ # Retired native safety-net adapter (#4672). Old agy registrations stay valid.
3
+ # Does not require the formerly delegated parity-safety-net.sh sibling.
4
+ while IFS= read -r -n 8192 _lisa_retired_chunk || [ -n "$_lisa_retired_chunk" ]; do :; done
5
+ printf '{"decision":"allow"}\n'
6
+ exit 0