@codyswann/lisa 4.10.3 → 4.10.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 (68) hide show
  1. package/all/copy-overwrite/scripts/lisa-hooks/block-no-verify.sh +18 -3
  2. package/all/copy-overwrite/scripts/lisa-run-gates.mjs +24 -12
  3. package/dist/codex/scripts/block-no-verify.sh +12 -1
  4. package/dist/core/lisa-owned-hash-ledger.d.ts.map +1 -1
  5. package/dist/core/lisa-owned-hash-ledger.js +2 -0
  6. package/dist/core/lisa-owned-hash-ledger.js.map +1 -1
  7. package/dist/core/upstream-evidence-manifest.d.ts.map +1 -1
  8. package/dist/core/upstream-evidence-manifest.js +6 -4
  9. package/dist/core/upstream-evidence-manifest.js.map +1 -1
  10. package/dist/opencode/plugin-templates/block-no-verify.sh +18 -3
  11. package/package.json +1 -1
  12. package/plugins/lisa/.claude-plugin/plugin.json +1 -1
  13. package/plugins/lisa/.codex-plugin/plugin.json +1 -1
  14. package/plugins/lisa/hooks/block-no-verify.agy.sh +12 -1
  15. package/plugins/lisa/hooks/block-no-verify.sh +18 -3
  16. package/plugins/lisa-agy/hooks/block-no-verify.agy.sh +12 -1
  17. package/plugins/lisa-agy/plugin.json +1 -1
  18. package/plugins/lisa-cdk/.claude-plugin/plugin.json +1 -1
  19. package/plugins/lisa-cdk/.codex-plugin/plugin.json +1 -1
  20. package/plugins/lisa-cdk-agy/plugin.json +1 -1
  21. package/plugins/lisa-cdk-copilot/.claude-plugin/plugin.json +1 -1
  22. package/plugins/lisa-cdk-cursor/.claude-plugin/plugin.json +1 -1
  23. package/plugins/lisa-copilot/.claude-plugin/plugin.json +1 -1
  24. package/plugins/lisa-copilot/hooks/block-no-verify.sh +18 -3
  25. package/plugins/lisa-cursor/.claude-plugin/plugin.json +1 -1
  26. package/plugins/lisa-cursor/hooks/block-no-verify.sh +18 -3
  27. package/plugins/lisa-expo/.claude-plugin/plugin.json +1 -1
  28. package/plugins/lisa-expo/.codex-plugin/plugin.json +1 -1
  29. package/plugins/lisa-expo-agy/plugin.json +1 -1
  30. package/plugins/lisa-expo-copilot/.claude-plugin/plugin.json +1 -1
  31. package/plugins/lisa-expo-cursor/.claude-plugin/plugin.json +1 -1
  32. package/plugins/lisa-harper-fabric/.claude-plugin/plugin.json +1 -1
  33. package/plugins/lisa-harper-fabric/.codex-plugin/plugin.json +1 -1
  34. package/plugins/lisa-harper-fabric-agy/plugin.json +1 -1
  35. package/plugins/lisa-harper-fabric-copilot/.claude-plugin/plugin.json +1 -1
  36. package/plugins/lisa-harper-fabric-cursor/.claude-plugin/plugin.json +1 -1
  37. package/plugins/lisa-nestjs/.claude-plugin/plugin.json +1 -1
  38. package/plugins/lisa-nestjs/.codex-plugin/plugin.json +1 -1
  39. package/plugins/lisa-nestjs-agy/plugin.json +1 -1
  40. package/plugins/lisa-nestjs-copilot/.claude-plugin/plugin.json +1 -1
  41. package/plugins/lisa-nestjs-cursor/.claude-plugin/plugin.json +1 -1
  42. package/plugins/lisa-openclaw/.claude-plugin/plugin.json +1 -1
  43. package/plugins/lisa-openclaw/.codex-plugin/plugin.json +1 -1
  44. package/plugins/lisa-openclaw-agy/plugin.json +1 -1
  45. package/plugins/lisa-openclaw-copilot/.claude-plugin/plugin.json +1 -1
  46. package/plugins/lisa-openclaw-cursor/.claude-plugin/plugin.json +1 -1
  47. package/plugins/lisa-phaser/.claude-plugin/plugin.json +1 -1
  48. package/plugins/lisa-phaser/.codex-plugin/plugin.json +1 -1
  49. package/plugins/lisa-phaser-agy/plugin.json +1 -1
  50. package/plugins/lisa-phaser-copilot/.claude-plugin/plugin.json +1 -1
  51. package/plugins/lisa-phaser-cursor/.claude-plugin/plugin.json +1 -1
  52. package/plugins/lisa-rails/.claude-plugin/plugin.json +1 -1
  53. package/plugins/lisa-rails/.codex-plugin/plugin.json +1 -1
  54. package/plugins/lisa-rails-agy/plugin.json +1 -1
  55. package/plugins/lisa-rails-copilot/.claude-plugin/plugin.json +1 -1
  56. package/plugins/lisa-rails-cursor/.claude-plugin/plugin.json +1 -1
  57. package/plugins/lisa-typescript/.claude-plugin/plugin.json +1 -1
  58. package/plugins/lisa-typescript/.codex-plugin/plugin.json +1 -1
  59. package/plugins/lisa-typescript-agy/plugin.json +1 -1
  60. package/plugins/lisa-typescript-copilot/.claude-plugin/plugin.json +1 -1
  61. package/plugins/lisa-typescript-cursor/.claude-plugin/plugin.json +1 -1
  62. package/plugins/lisa-wiki/.claude-plugin/plugin.json +1 -1
  63. package/plugins/lisa-wiki/.codex-plugin/plugin.json +1 -1
  64. package/plugins/lisa-wiki-agy/plugin.json +1 -1
  65. package/plugins/lisa-wiki-copilot/.claude-plugin/plugin.json +1 -1
  66. package/plugins/lisa-wiki-cursor/.claude-plugin/plugin.json +1 -1
  67. package/plugins/src/base/hooks/block-no-verify.agy.sh +12 -1
  68. package/plugins/src/base/hooks/block-no-verify.sh +18 -3
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lisa-typescript",
3
- "version": "4.10.3",
3
+ "version": "4.10.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.10.3",
3
+ "version": "4.10.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.10.3",
3
+ "version": "4.10.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.10.3",
3
+ "version": "4.10.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.10.3",
3
+ "version": "4.10.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.10.3",
3
+ "version": "4.10.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.10.3",
3
+ "version": "4.10.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.10.3",
3
+ "version": "4.10.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.10.3",
3
+ "version": "4.10.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.10.3",
3
+ "version": "4.10.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"
@@ -60,7 +60,7 @@ def strip_heredocs(text: str) -> str:
60
60
  output = []
61
61
  pending = []
62
62
  marker_pattern = re.compile(
63
- r"<<-?\s*(?:'([^']+)'|\"([^\"]+)\"|([A-Za-z_][A-Za-z0-9_]*))"
63
+ r"(?<!<)<<-?(?!<)\s*(?:'([^']+)'|\"([^\"]+)\"|([A-Za-z_][A-Za-z0-9_]*))"
64
64
  )
65
65
  index = 0
66
66
  while index < len(lines):
@@ -356,6 +356,17 @@ for i, token in enumerate(normalized_tokens):
356
356
  key_match = re.match(r"git_config_key_\d+=(.*)$", lowered, re.DOTALL)
357
357
  if key_match and key_match.group(1).strip().strip("'\"") == "core.hookspath":
358
358
  sys.exit(1)
359
+ if lowered.startswith("git_config_parameters="):
360
+ parameters = token.split("=", 1)[1]
361
+ try:
362
+ configured = shlex.split(parameters, posix=True)
363
+ except ValueError:
364
+ configured = []
365
+ if any(
366
+ parameter.split("=", 1)[0].strip().lower() == "core.hookspath"
367
+ for parameter in configured
368
+ ):
369
+ sys.exit(1)
359
370
 
360
371
  sys.exit(0)
361
372
  PY
@@ -10,7 +10,8 @@
10
10
  # 3. core.hooksPath pointed anywhere but an allowlisted in-repo hooks dir;
11
11
  # 4. --config-env=core.hooksPath=VAR, in both the one- and two-token spellings;
12
12
  # 5. GIT_CONFIG_KEY_<n>=core.hooksPath env-var-style command-scope config;
13
- # 6. the short `-n`, as a real argv token of a `git commit` — bare, or bundled
13
+ # 6. GIT_CONFIG_PARAMETERS carrying core.hooksPath command-scope config;
14
+ # 7. the short `-n`, as a real argv token of a `git commit` — bare, or bundled
14
15
  # into a short-option cluster such as `-nm "msg"`.
15
16
  #
16
17
  # The line below is what lets `lisa apply` tell a downstream copy of this guard
@@ -22,7 +23,7 @@
22
23
  # Add a name here in the same commit that closes a vector. A hardening that
23
24
  # forgets to is invisible to refresh, and shows up as an unexplained diff at
24
25
  # review time instead of a named capability.
25
- # lisa-guard-capabilities: no-verify-abbrev, husky-env, hookspath-allowlist, config-env, git-config-key, no-verify-short
26
+ # lisa-guard-capabilities: no-verify-abbrev, husky-env, hookspath-allowlist, config-env, git-config-key, git-config-parameters, herestring-aware, no-verify-short
26
27
  #
27
28
  # Shell-token matching avoids false positives from issue bodies, heredocs, and
28
29
  # commit-message prose while still catching quoted real argv values such as
@@ -100,7 +101,7 @@ def strip_heredocs(text: str) -> str:
100
101
  output = []
101
102
  pending = []
102
103
  marker_pattern = re.compile(
103
- r"<<-?\s*(?:'([^']+)'|\"([^\"]+)\"|([A-Za-z_][A-Za-z0-9_]*))"
104
+ r"(?<!<)<<-?(?!<)\s*(?:'([^']+)'|\"([^\"]+)\"|([A-Za-z_][A-Za-z0-9_]*))"
104
105
  )
105
106
  index = 0
106
107
  while index < len(lines):
@@ -445,6 +446,20 @@ for i, token in enumerate(normalized_tokens):
445
446
  key_match = re.match(r"git_config_key_\d+=(.*)$", lowered, re.DOTALL)
446
447
  if key_match and key_match.group(1).strip().strip("'\"") == "core.hookspath":
447
448
  sys.exit(1)
449
+ # `git -c` propagates command-scope config through GIT_CONFIG_PARAMETERS.
450
+ # Parsing the value as Git's shell-quoted parameter list distinguishes the
451
+ # key from an unrelated value that merely contains the same text.
452
+ if lowered.startswith("git_config_parameters="):
453
+ parameters = token.split("=", 1)[1]
454
+ try:
455
+ configured = shlex.split(parameters, posix=True)
456
+ except ValueError:
457
+ configured = []
458
+ if any(
459
+ parameter.split("=", 1)[0].strip().lower() == "core.hookspath"
460
+ for parameter in configured
461
+ ):
462
+ sys.exit(1)
448
463
 
449
464
  sys.exit(0)
450
465
  PY