@codyswann/lisa 3.54.2 → 3.54.3

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 (69) hide show
  1. package/dist/core/lisa-owned-hash-ledger.d.ts.map +1 -1
  2. package/dist/core/lisa-owned-hash-ledger.js +1 -0
  3. package/dist/core/lisa-owned-hash-ledger.js.map +1 -1
  4. package/dist/core/upstream-evidence-manifest.d.ts.map +1 -1
  5. package/dist/core/upstream-evidence-manifest.js +6 -5
  6. package/dist/core/upstream-evidence-manifest.js.map +1 -1
  7. package/package.json +1 -1
  8. package/plugins/lisa/.claude-plugin/plugin.json +1 -1
  9. package/plugins/lisa/.codex-plugin/plugin.json +1 -1
  10. package/plugins/lisa/hooks/threshold-ratchet.mjs +17 -0
  11. package/plugins/lisa/scripts/plugin-sync-explain.mjs +27 -1
  12. package/plugins/lisa-agy/plugin.json +1 -1
  13. package/plugins/lisa-agy/scripts/plugin-sync-explain.mjs +27 -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/threshold-ratchet.mjs +17 -0
  21. package/plugins/lisa-copilot/scripts/plugin-sync-explain.mjs +27 -1
  22. package/plugins/lisa-cursor/.claude-plugin/plugin.json +1 -1
  23. package/plugins/lisa-cursor/hooks/threshold-ratchet.mjs +17 -0
  24. package/plugins/lisa-cursor/scripts/plugin-sync-explain.mjs +27 -1
  25. package/plugins/lisa-expo/.claude-plugin/plugin.json +1 -1
  26. package/plugins/lisa-expo/.codex-plugin/plugin.json +1 -1
  27. package/plugins/lisa-expo-agy/plugin.json +1 -1
  28. package/plugins/lisa-expo-copilot/.claude-plugin/plugin.json +1 -1
  29. package/plugins/lisa-expo-cursor/.claude-plugin/plugin.json +1 -1
  30. package/plugins/lisa-harper-fabric/.claude-plugin/plugin.json +1 -1
  31. package/plugins/lisa-harper-fabric/.codex-plugin/plugin.json +1 -1
  32. package/plugins/lisa-harper-fabric-agy/plugin.json +1 -1
  33. package/plugins/lisa-harper-fabric-copilot/.claude-plugin/plugin.json +1 -1
  34. package/plugins/lisa-harper-fabric-cursor/.claude-plugin/plugin.json +1 -1
  35. package/plugins/lisa-nestjs/.claude-plugin/plugin.json +1 -1
  36. package/plugins/lisa-nestjs/.codex-plugin/plugin.json +1 -1
  37. package/plugins/lisa-nestjs-agy/plugin.json +1 -1
  38. package/plugins/lisa-nestjs-copilot/.claude-plugin/plugin.json +1 -1
  39. package/plugins/lisa-nestjs-cursor/.claude-plugin/plugin.json +1 -1
  40. package/plugins/lisa-openclaw/.claude-plugin/plugin.json +1 -1
  41. package/plugins/lisa-openclaw/.codex-plugin/plugin.json +1 -1
  42. package/plugins/lisa-openclaw-agy/plugin.json +1 -1
  43. package/plugins/lisa-openclaw-copilot/.claude-plugin/plugin.json +1 -1
  44. package/plugins/lisa-openclaw-cursor/.claude-plugin/plugin.json +1 -1
  45. package/plugins/lisa-phaser/.claude-plugin/plugin.json +1 -1
  46. package/plugins/lisa-phaser/.codex-plugin/plugin.json +1 -1
  47. package/plugins/lisa-phaser-agy/plugin.json +1 -1
  48. package/plugins/lisa-phaser-copilot/.claude-plugin/plugin.json +1 -1
  49. package/plugins/lisa-phaser-cursor/.claude-plugin/plugin.json +1 -1
  50. package/plugins/lisa-rails/.claude-plugin/plugin.json +1 -1
  51. package/plugins/lisa-rails/.codex-plugin/plugin.json +1 -1
  52. package/plugins/lisa-rails-agy/plugin.json +1 -1
  53. package/plugins/lisa-rails-copilot/.claude-plugin/plugin.json +1 -1
  54. package/plugins/lisa-rails-cursor/.claude-plugin/plugin.json +1 -1
  55. package/plugins/lisa-typescript/.claude-plugin/plugin.json +1 -1
  56. package/plugins/lisa-typescript/.codex-plugin/plugin.json +1 -1
  57. package/plugins/lisa-typescript-agy/plugin.json +1 -1
  58. package/plugins/lisa-typescript-copilot/.claude-plugin/plugin.json +1 -1
  59. package/plugins/lisa-typescript-cursor/.claude-plugin/plugin.json +1 -1
  60. package/plugins/lisa-wiki/.claude-plugin/plugin.json +1 -1
  61. package/plugins/lisa-wiki/.codex-plugin/plugin.json +1 -1
  62. package/plugins/lisa-wiki-agy/plugin.json +1 -1
  63. package/plugins/lisa-wiki-copilot/.claude-plugin/plugin.json +1 -1
  64. package/plugins/lisa-wiki-cursor/.claude-plugin/plugin.json +1 -1
  65. package/plugins/src/base/hooks/threshold-ratchet.mjs +17 -0
  66. package/plugins/src/base/scripts/plugin-sync-explain.mjs +27 -1
  67. package/rails/copy-overwrite/scripts/check-threshold-ratchet.mjs +17 -0
  68. package/scripts/check-security-floors.mjs +36 -10
  69. package/typescript/copy-overwrite/scripts/check-threshold-ratchet.mjs +17 -0
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lisa-typescript",
3
- "version": "3.54.2",
3
+ "version": "3.54.3",
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": "3.54.2",
3
+ "version": "3.54.3",
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": "3.54.2",
3
+ "version": "3.54.3",
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": "3.54.2",
3
+ "version": "3.54.3",
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": "3.54.2",
3
+ "version": "3.54.3",
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": "3.54.2",
3
+ "version": "3.54.3",
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": "3.54.2",
3
+ "version": "3.54.3",
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"
@@ -53,8 +53,25 @@ import {
53
53
  * Standard git locations, checked in order so the executable comes from a
54
54
  * fixed, unwriteable directory rather than a PATH lookup. The bare "git"
55
55
  * fallback keeps unusual layouts (e.g. Windows git-bash) working.
56
+ *
57
+ * Order within that constraint is set by measurement, not by convention. On
58
+ * macOS `/usr/bin/git` is not git: it is Apple's `xcrun` shim, which locates a
59
+ * developer directory and re-executes the real binary there. Dispatching
60
+ * through it costs a **median 33 ms against 15 ms** for either
61
+ * developer-directory git, and **100 ms against 21 ms at p90** — randomized
62
+ * call order, fixed inter-call gaps, `git rev-parse --show-toplevel`, n=30 each
63
+ * (lisa#2898). The call does no work at all; the difference is the dispatch.
64
+ *
65
+ * The two entries promoted ahead of it are the developer-directory gits the
66
+ * shim itself re-executes. Both are `root:wheel` files in system locations, so
67
+ * this is the same trust class as `/usr/bin/git` and not a relaxation: the
68
+ * user-writable `/usr/local` and Homebrew entries stay behind it, exactly where
69
+ * they already were. Neither promoted path exists on Linux, so every CI runner
70
+ * resolves precisely what it resolved before.
56
71
  */
57
72
  const GIT_LOCATIONS = [
73
+ "/Library/Developer/CommandLineTools/usr/bin/git",
74
+ "/Applications/Xcode.app/Contents/Developer/usr/bin/git",
58
75
  "/usr/bin/git",
59
76
  "/usr/local/bin/git",
60
77
  "/opt/homebrew/bin/git",
@@ -33,7 +33,33 @@ export const PLUGIN_SYNC_CLASSIFICATIONS = [
33
33
  const PLUGINS_DIR = "plugins";
34
34
  const SOURCE_ROOT = "plugins/src";
35
35
  const MARKETPLACE = ".claude-plugin/marketplace.json";
36
- const GIT_BIN = "/usr/bin/git";
36
+ /**
37
+ * Fixed absolute git locations, tried in order rather than a bare command name
38
+ * so a writeable directory early on `PATH` cannot decide which binary runs.
39
+ *
40
+ * Order within that constraint is set by measurement, not by convention. On
41
+ * macOS `/usr/bin/git` is not git: it is Apple's `xcrun` shim, which locates a
42
+ * developer directory and re-executes the real binary there. Dispatching
43
+ * through it costs a **median 33 ms against 15 ms** for either
44
+ * developer-directory git, and **100 ms against 21 ms at p90** — randomized
45
+ * call order, fixed inter-call gaps, `git rev-parse --show-toplevel`, n=30 each
46
+ * (lisa#2898). The call does no work at all; the difference is the dispatch.
47
+ *
48
+ * The two entries promoted ahead of it are the developer-directory gits the
49
+ * shim itself re-executes. Both are `root:wheel` files in system locations, so
50
+ * this is the same trust class as `/usr/bin/git` and not a relaxation: the
51
+ * user-writable `/usr/local` and Homebrew entries stay behind it, exactly where
52
+ * they already were. Neither promoted path exists on Linux, so every CI runner
53
+ * resolves precisely what it resolved before.
54
+ */
55
+ const GIT_LOCATIONS = [
56
+ "/Library/Developer/CommandLineTools/usr/bin/git",
57
+ "/Applications/Xcode.app/Contents/Developer/usr/bin/git",
58
+ "/usr/bin/git",
59
+ "/usr/local/bin/git",
60
+ "/opt/homebrew/bin/git",
61
+ ];
62
+ const GIT_BIN = GIT_LOCATIONS.find(candidate => existsSync(candidate)) ?? "git";
37
63
 
38
64
  /**
39
65
  * @typedef {{
@@ -56,8 +56,25 @@ import {
56
56
  * Standard git locations, checked in order so the executable comes from a
57
57
  * fixed, unwriteable directory rather than a PATH lookup. The bare "git"
58
58
  * fallback keeps unusual layouts (e.g. Windows git-bash) working.
59
+ *
60
+ * Order within that constraint is set by measurement, not by convention. On
61
+ * macOS `/usr/bin/git` is not git: it is Apple's `xcrun` shim, which locates a
62
+ * developer directory and re-executes the real binary there. Dispatching
63
+ * through it costs a **median 33 ms against 15 ms** for either
64
+ * developer-directory git, and **100 ms against 21 ms at p90** — randomized
65
+ * call order, fixed inter-call gaps, `git rev-parse --show-toplevel`, n=30 each
66
+ * (lisa#2898). The call does no work at all; the difference is the dispatch.
67
+ *
68
+ * The two entries promoted ahead of it are the developer-directory gits the
69
+ * shim itself re-executes. Both are `root:wheel` files in system locations, so
70
+ * this is the same trust class as `/usr/bin/git` and not a relaxation: the
71
+ * user-writable `/usr/local` and Homebrew entries stay behind it, exactly where
72
+ * they already were. Neither promoted path exists on Linux, so every CI runner
73
+ * resolves precisely what it resolved before.
59
74
  */
60
75
  const GIT_LOCATIONS = [
76
+ "/Library/Developer/CommandLineTools/usr/bin/git",
77
+ "/Applications/Xcode.app/Contents/Developer/usr/bin/git",
61
78
  "/usr/bin/git",
62
79
  "/usr/local/bin/git",
63
80
  "/opt/homebrew/bin/git",
@@ -24,9 +24,39 @@
24
24
  */
25
25
 
26
26
  import { execFileSync } from "node:child_process";
27
- import { readFileSync } from "node:fs";
27
+ import { existsSync, readFileSync } from "node:fs";
28
28
  import { globSync } from "node:fs";
29
29
 
30
+ /**
31
+ * Fixed absolute git locations, tried in order rather than a bare command name
32
+ * so a writeable directory early on `PATH` cannot decide which binary runs.
33
+ *
34
+ * Order within that constraint is set by measurement, not by convention. On
35
+ * macOS `/usr/bin/git` is not git: it is Apple's `xcrun` shim, which locates a
36
+ * developer directory and re-executes the real binary there. Dispatching
37
+ * through it costs a **median 33 ms against 15 ms** for either
38
+ * developer-directory git, and **100 ms against 21 ms at p90** — randomized
39
+ * call order, fixed inter-call gaps, `git rev-parse --show-toplevel`, n=30 each
40
+ * (lisa#2898). The call does no work at all; the difference is the dispatch.
41
+ *
42
+ * The two entries promoted ahead of it are the developer-directory gits the
43
+ * shim itself re-executes. Both are `root:wheel` files in system locations, so
44
+ * this is the same trust class as `/usr/bin/git` and not a relaxation: the
45
+ * user-writable `/usr/local` and Homebrew entries stay behind it, exactly where
46
+ * they already were. Neither promoted path exists on Linux, so every CI runner
47
+ * resolves precisely what it resolved before.
48
+ */
49
+ const GIT_LOCATIONS = [
50
+ "/Library/Developer/CommandLineTools/usr/bin/git",
51
+ "/Applications/Xcode.app/Contents/Developer/usr/bin/git",
52
+ "/usr/bin/git",
53
+ "/usr/local/bin/git",
54
+ "/opt/homebrew/bin/git",
55
+ ];
56
+
57
+ /** Absolute git path: the first candidate that exists. */
58
+ const GIT_BIN = GIT_LOCATIONS.find(candidate => existsSync(candidate)) ?? "git";
59
+
30
60
  /** Sections whose entries are version constraints worth checking. */
31
61
  const CONSTRAINT_SECTIONS = [
32
62
  "overrides",
@@ -106,15 +136,11 @@ const NOT_A_MANIFEST = [
106
136
  */
107
137
  function trackedManifests() {
108
138
  try {
109
- return execFileSync(
110
- "/usr/bin/git",
111
- ["ls-files", "-z", "*package.lisa.json"],
112
- {
113
- encoding: "utf8",
114
- maxBuffer: 8 * 1024 * 1024,
115
- stdio: ["ignore", "pipe", "ignore"],
116
- }
117
- )
139
+ return execFileSync(GIT_BIN, ["ls-files", "-z", "*package.lisa.json"], {
140
+ encoding: "utf8",
141
+ maxBuffer: 8 * 1024 * 1024,
142
+ stdio: ["ignore", "pipe", "ignore"],
143
+ })
118
144
  .split("\0")
119
145
  .filter(Boolean)
120
146
  .filter(
@@ -56,8 +56,25 @@ import {
56
56
  * Standard git locations, checked in order so the executable comes from a
57
57
  * fixed, unwriteable directory rather than a PATH lookup. The bare "git"
58
58
  * fallback keeps unusual layouts (e.g. Windows git-bash) working.
59
+ *
60
+ * Order within that constraint is set by measurement, not by convention. On
61
+ * macOS `/usr/bin/git` is not git: it is Apple's `xcrun` shim, which locates a
62
+ * developer directory and re-executes the real binary there. Dispatching
63
+ * through it costs a **median 33 ms against 15 ms** for either
64
+ * developer-directory git, and **100 ms against 21 ms at p90** — randomized
65
+ * call order, fixed inter-call gaps, `git rev-parse --show-toplevel`, n=30 each
66
+ * (lisa#2898). The call does no work at all; the difference is the dispatch.
67
+ *
68
+ * The two entries promoted ahead of it are the developer-directory gits the
69
+ * shim itself re-executes. Both are `root:wheel` files in system locations, so
70
+ * this is the same trust class as `/usr/bin/git` and not a relaxation: the
71
+ * user-writable `/usr/local` and Homebrew entries stay behind it, exactly where
72
+ * they already were. Neither promoted path exists on Linux, so every CI runner
73
+ * resolves precisely what it resolved before.
59
74
  */
60
75
  const GIT_LOCATIONS = [
76
+ "/Library/Developer/CommandLineTools/usr/bin/git",
77
+ "/Applications/Xcode.app/Contents/Developer/usr/bin/git",
61
78
  "/usr/bin/git",
62
79
  "/usr/local/bin/git",
63
80
  "/opt/homebrew/bin/git",