@codyswann/lisa 4.34.18 → 4.34.19

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 (63) hide show
  1. package/all/copy-overwrite/scripts/lisa-hooks/block-managed-file-edits.sh +58 -0
  2. package/dist/core/lisa-owned-hash-ledger.d.ts.map +1 -1
  3. package/dist/core/lisa-owned-hash-ledger.js +4 -0
  4. package/dist/core/lisa-owned-hash-ledger.js.map +1 -1
  5. package/dist/core/nightly-e2e-guard-behavior-certificate.js +2 -2
  6. package/dist/core/upstream-evidence-manifest.d.ts.map +1 -1
  7. package/dist/core/upstream-evidence-manifest.js +3 -2
  8. package/dist/core/upstream-evidence-manifest.js.map +1 -1
  9. package/package.json +4 -4
  10. package/plugins/lisa/.claude-plugin/plugin.json +1 -1
  11. package/plugins/lisa/.codex-plugin/plugin.json +1 -1
  12. package/plugins/lisa/hooks/block-managed-file-edits.sh +58 -0
  13. package/plugins/lisa-agy/plugin.json +1 -1
  14. package/plugins/lisa-cdk/.claude-plugin/plugin.json +1 -1
  15. package/plugins/lisa-cdk/.codex-plugin/plugin.json +1 -1
  16. package/plugins/lisa-cdk-agy/plugin.json +1 -1
  17. package/plugins/lisa-cdk-copilot/.claude-plugin/plugin.json +1 -1
  18. package/plugins/lisa-cdk-cursor/.claude-plugin/plugin.json +1 -1
  19. package/plugins/lisa-copilot/.claude-plugin/plugin.json +1 -1
  20. package/plugins/lisa-copilot/hooks/block-managed-file-edits.sh +58 -0
  21. package/plugins/lisa-cursor/.claude-plugin/plugin.json +1 -1
  22. package/plugins/lisa-cursor/hooks/block-managed-file-edits.sh +58 -0
  23. package/plugins/lisa-expo/.claude-plugin/plugin.json +1 -1
  24. package/plugins/lisa-expo/.codex-plugin/plugin.json +1 -1
  25. package/plugins/lisa-expo-agy/plugin.json +1 -1
  26. package/plugins/lisa-expo-copilot/.claude-plugin/plugin.json +1 -1
  27. package/plugins/lisa-expo-cursor/.claude-plugin/plugin.json +1 -1
  28. package/plugins/lisa-harper-fabric/.claude-plugin/plugin.json +1 -1
  29. package/plugins/lisa-harper-fabric/.codex-plugin/plugin.json +1 -1
  30. package/plugins/lisa-harper-fabric-agy/plugin.json +1 -1
  31. package/plugins/lisa-harper-fabric-copilot/.claude-plugin/plugin.json +1 -1
  32. package/plugins/lisa-harper-fabric-cursor/.claude-plugin/plugin.json +1 -1
  33. package/plugins/lisa-nestjs/.claude-plugin/plugin.json +1 -1
  34. package/plugins/lisa-nestjs/.codex-plugin/plugin.json +1 -1
  35. package/plugins/lisa-nestjs-agy/plugin.json +1 -1
  36. package/plugins/lisa-nestjs-copilot/.claude-plugin/plugin.json +1 -1
  37. package/plugins/lisa-nestjs-cursor/.claude-plugin/plugin.json +1 -1
  38. package/plugins/lisa-openclaw/.claude-plugin/plugin.json +1 -1
  39. package/plugins/lisa-openclaw/.codex-plugin/plugin.json +1 -1
  40. package/plugins/lisa-openclaw-agy/plugin.json +1 -1
  41. package/plugins/lisa-openclaw-copilot/.claude-plugin/plugin.json +1 -1
  42. package/plugins/lisa-openclaw-cursor/.claude-plugin/plugin.json +1 -1
  43. package/plugins/lisa-phaser/.claude-plugin/plugin.json +1 -1
  44. package/plugins/lisa-phaser/.codex-plugin/plugin.json +1 -1
  45. package/plugins/lisa-phaser-agy/plugin.json +1 -1
  46. package/plugins/lisa-phaser-copilot/.claude-plugin/plugin.json +1 -1
  47. package/plugins/lisa-phaser-cursor/.claude-plugin/plugin.json +1 -1
  48. package/plugins/lisa-rails/.claude-plugin/plugin.json +1 -1
  49. package/plugins/lisa-rails/.codex-plugin/plugin.json +1 -1
  50. package/plugins/lisa-rails-agy/plugin.json +1 -1
  51. package/plugins/lisa-rails-copilot/.claude-plugin/plugin.json +1 -1
  52. package/plugins/lisa-rails-cursor/.claude-plugin/plugin.json +1 -1
  53. package/plugins/lisa-typescript/.claude-plugin/plugin.json +1 -1
  54. package/plugins/lisa-typescript/.codex-plugin/plugin.json +1 -1
  55. package/plugins/lisa-typescript-agy/plugin.json +1 -1
  56. package/plugins/lisa-typescript-copilot/.claude-plugin/plugin.json +1 -1
  57. package/plugins/lisa-typescript-cursor/.claude-plugin/plugin.json +1 -1
  58. package/plugins/lisa-wiki/.claude-plugin/plugin.json +1 -1
  59. package/plugins/lisa-wiki/.codex-plugin/plugin.json +1 -1
  60. package/plugins/lisa-wiki-agy/plugin.json +1 -1
  61. package/plugins/lisa-wiki-copilot/.claude-plugin/plugin.json +1 -1
  62. package/plugins/lisa-wiki-cursor/.claude-plugin/plugin.json +1 -1
  63. package/plugins/src/base/hooks/block-managed-file-edits.sh +58 -0
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lisa-wiki",
3
- "version": "4.34.18",
3
+ "version": "4.34.19",
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.34.18",
3
+ "version": "4.34.19",
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.34.18",
3
+ "version": "4.34.19",
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.34.18",
3
+ "version": "4.34.19",
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.34.18",
3
+ "version": "4.34.19",
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"
@@ -373,6 +373,64 @@ EOF
373
373
  }
374
374
 
375
375
  case "$tool_name" in
376
+ apply_patch)
377
+ # Codex's primary edit mechanism, and the one this guard was already
378
+ # registered for while being unable to read it.
379
+ #
380
+ # `src/codex/enforcement-fallback-installer.ts` registers the dispatcher
381
+ # on `Bash|Edit|Write|apply_patch`, so this envelope was already being
382
+ # delivered here - and matched no arm below, fell off the end of the
383
+ # `case`, and exited 0. A registered guard that receives the call and
384
+ # allows it is worse than an unregistered one, because the wiring reads
385
+ # as complete: an auditor sees the matcher forwarding `apply_patch` into
386
+ # a guard about managed files and correctly concludes it is covered
387
+ # (CodySwannGT/lisa#3776).
388
+ #
389
+ # The envelope carries no `file_path`. Verified against codex-cli 0.125.0
390
+ # by capturing real hook stdin - see `src/codex/scripts/_extract-edit-paths.sh`,
391
+ # which performs this same header parse for the Codex-side hooks:
392
+ #
393
+ # Edit / Write -> tool_input.file_path (single string)
394
+ # apply_patch -> tool_input.command (a STRING holding the whole
395
+ # patch, NOT an array)
396
+ #
397
+ # and the patch names its targets in header lines, MANY per patch:
398
+ #
399
+ # *** Add File: <path>
400
+ # *** Update File: <path>
401
+ # *** Delete File: <path>
402
+ #
403
+ # So every header is walked and each target classified; one managed
404
+ # target anywhere in a multi-file patch refuses the whole call, because
405
+ # the patch applies atomically and there is no partial acceptance to
406
+ # offer.
407
+ #
408
+ # This restates `_extract-edit-paths.sh`'s header match rather than
409
+ # sourcing it, and that is forced by where the two files ship: this guard
410
+ # installs to a host's `scripts/lisa-hooks/`, that helper to
411
+ # `.codex/hooks/lisa/`, and neither tree can source across to the other.
412
+ # `tests/unit/hooks/block-managed-file-edits-apply-patch.test.ts` pins the
413
+ # two header sets equal so the restatement cannot drift into a gap - the
414
+ # same answer `core/hook-copy-parity` gives for sibling copies that
415
+ # legitimately cannot be one file. What is NOT restated is the
416
+ # classification: `managed_source` and `refuse` are the single copy here,
417
+ # exactly as for every other arm.
418
+ patch_text="$(printf '%s' "$input" | jq -r '.tool_input.command // empty' 2>/dev/null || true)"
419
+ [ -n "$patch_text" ] || exit 0
420
+ while IFS= read -r patch_line; do
421
+ case "$patch_line" in
422
+ "*** Add File: "* | "*** Update File: "* | "*** Delete File: "*) ;;
423
+ *) continue ;;
424
+ esac
425
+ candidate="${patch_line#*File: }"
426
+ [ -n "$candidate" ] || continue
427
+ if source_path="$(managed_source "$candidate")"; then
428
+ refuse "$candidate" "$source_path" "$(relative_path "$candidate")"
429
+ fi
430
+ done <<EOF
431
+ $patch_text
432
+ EOF
433
+ ;;
376
434
  Write | Edit | MultiEdit | NotebookEdit | Update)
377
435
  paths="$(printf '%s' "$input" | jq -r '
378
436
  [ .tool_input.file_path?,