@codyswann/lisa 3.47.2 → 3.47.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-work-item.mjs +62 -6
  2. package/dist/core/lisa-owned-hash-ledger.d.ts.map +1 -1
  3. package/dist/core/lisa-owned-hash-ledger.js +1 -0
  4. package/dist/core/lisa-owned-hash-ledger.js.map +1 -1
  5. package/dist/core/upstream-evidence-manifest.d.ts.map +1 -1
  6. package/dist/core/upstream-evidence-manifest.js +14 -7
  7. package/dist/core/upstream-evidence-manifest.js.map +1 -1
  8. package/package.json +1 -1
  9. package/plugins/lisa/.claude-plugin/plugin.json +1 -1
  10. package/plugins/lisa/.codex-plugin/plugin.json +1 -1
  11. package/plugins/lisa/scripts/install-remote-agent-aws.mjs +33 -1
  12. package/plugins/lisa-agy/plugin.json +1 -1
  13. package/plugins/lisa-agy/scripts/install-remote-agent-aws.mjs +33 -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/scripts/install-remote-agent-aws.mjs +33 -1
  21. package/plugins/lisa-cursor/.claude-plugin/plugin.json +1 -1
  22. package/plugins/lisa-cursor/scripts/install-remote-agent-aws.mjs +33 -1
  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/scripts/install-remote-agent-aws.mjs +33 -1
  64. package/scripts/check-derived-artifacts.mjs +3 -2
  65. package/scripts/check-duplicate-versions.mjs +3 -1
  66. package/scripts/check-required-check-promotions.mjs +3 -2
  67. package/scripts/generate-codex-plugin-artifacts.mjs +3 -4
  68. package/scripts/materialize-copy-overwrite.mjs +3 -2
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lisa-wiki",
3
- "version": "3.47.2",
3
+ "version": "3.47.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": "3.47.2",
3
+ "version": "3.47.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": "3.47.2",
3
+ "version": "3.47.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": "3.47.2",
3
+ "version": "3.47.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": "3.47.2",
3
+ "version": "3.47.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"
@@ -11,11 +11,43 @@ import {
11
11
  existsSync,
12
12
  mkdirSync,
13
13
  readFileSync,
14
+ realpathSync,
14
15
  writeFileSync,
15
16
  } from "node:fs";
16
17
  import path from "node:path";
17
18
  import { fileURLToPath } from "node:url";
18
19
 
20
+ /**
21
+ * True when `moduleUrl` names the module node was asked to run.
22
+ *
23
+ * The obvious spelling — comparing `import.meta.url` against a raw
24
+ * `process.argv[1]` — is false whenever the script is reached through a
25
+ * symlinked path: a symlinked checkout, a bin shim, a git worktree, or `/tmp`
26
+ * on macOS, which is itself a symlink to `/private/tmp`. `main()` then never
27
+ * runs and the process exits 0 having done nothing. That is what this module
28
+ * used to do, and an installer that silently installs nothing reports success
29
+ * while leaving the host unconfigured.
30
+ *
31
+ * Both sides are realpath'd, not just `argv[1]`: `import.meta.url` is the real
32
+ * path by default and the symlinked one under `--preserve-symlinks-main`, so
33
+ * normalizing one side reopens the same hole on that flag.
34
+ *
35
+ * Written out rather than imported: this is a plugin payload, which has no
36
+ * `./lib/` to resolve against. Same rule and same reasoning as
37
+ * `scripts/lib/invoked-as-script.mjs`.
38
+ * @param {string} moduleUrl - The caller's own `import.meta.url`.
39
+ * @param {string | undefined} [argv1] - Entry path; defaults to `process.argv[1]`.
40
+ * @returns {boolean} Whether the caller should run its CLI body.
41
+ */
42
+ export function invokedAsScript(moduleUrl, argv1 = process.argv[1]) {
43
+ if (!argv1) return false;
44
+ try {
45
+ return realpathSync(argv1) === realpathSync(fileURLToPath(moduleUrl));
46
+ } catch {
47
+ return false;
48
+ }
49
+ }
50
+
19
51
  const SCRIPT_NAME = "remote-agent-aws-setup.sh";
20
52
  const INSTALL_COMMAND = `bash scripts/${SCRIPT_NAME}`;
21
53
  const VALID_PLATFORMS = new Set([
@@ -333,7 +365,7 @@ export function installRemoteAgentAws(arguments_ = process.argv.slice(2)) {
333
365
  return { project, platform, secretName, written };
334
366
  }
335
367
 
336
- if (process.argv[1] === fileURLToPath(import.meta.url)) {
368
+ if (invokedAsScript(import.meta.url)) {
337
369
  try {
338
370
  process.stdout.write(
339
371
  `${JSON.stringify(installRemoteAgentAws(), null, 2)}\n`
@@ -41,7 +41,8 @@
41
41
  import { execFileSync } from "node:child_process";
42
42
  import path from "node:path";
43
43
  import process from "node:process";
44
- import { fileURLToPath } from "node:url";
44
+
45
+ import { invokedAsScript } from "./lib/invoked-as-script.mjs";
45
46
 
46
47
  const repoRoot = path.resolve(import.meta.dirname, "..");
47
48
 
@@ -232,6 +233,6 @@ function main() {
232
233
  process.exit(1);
233
234
  }
234
235
 
235
- if (process.argv[1] === fileURLToPath(import.meta.url)) {
236
+ if (invokedAsScript(import.meta.url)) {
236
237
  main();
237
238
  }
@@ -93,6 +93,8 @@ import path from "node:path";
93
93
  import process from "node:process";
94
94
  import { fileURLToPath } from "node:url";
95
95
 
96
+ import { invokedAsScript } from "./lib/invoked-as-script.mjs";
97
+
96
98
  const REPO_ROOT = path.resolve(
97
99
  path.dirname(fileURLToPath(import.meta.url)),
98
100
  ".."
@@ -710,6 +712,6 @@ function main() {
710
712
  if (options.strict && violations > 0) process.exitCode = 1;
711
713
  }
712
714
 
713
- if (process.argv[1] === fileURLToPath(import.meta.url)) {
715
+ if (invokedAsScript(import.meta.url)) {
714
716
  main();
715
717
  }
@@ -137,9 +137,10 @@
137
137
  */
138
138
  import fs from "node:fs";
139
139
  import path from "node:path";
140
- import { fileURLToPath } from "node:url";
141
140
  import yaml from "js-yaml";
142
141
 
142
+ import { invokedAsScript } from "./lib/invoked-as-script.mjs";
143
+
143
144
  // Literals named once — each was repeated enough times that a typo in one
144
145
  // copy would diverge silently.
145
146
  const HEADROOM_EVIDENCE_MISSING = "headroom-evidence-missing";
@@ -775,6 +776,6 @@ function main() {
775
776
  if (result.violations.length > 0) process.exitCode = 1;
776
777
  }
777
778
 
778
- if (process.argv[1] === fileURLToPath(import.meta.url)) {
779
+ if (invokedAsScript(import.meta.url)) {
779
780
  main();
780
781
  }
@@ -38,6 +38,8 @@ import fs from "node:fs";
38
38
  import path from "node:path";
39
39
  import { fileURLToPath } from "node:url";
40
40
 
41
+ import { invokedAsScript } from "./lib/invoked-as-script.mjs";
42
+
41
43
  // Literals named once — each was repeated enough times that a typo in one
42
44
  // copy would diverge silently.
43
45
  const CODEX_PLUGIN_DIR = ".codex-plugin";
@@ -1115,9 +1117,6 @@ function metadataFor(pluginName, claudeManifest) {
1115
1117
 
1116
1118
  // Run the generator only when invoked directly (e.g. via build-plugins.sh),
1117
1119
  // not when this module is imported (e.g. by unit tests for the parser).
1118
- if (
1119
- process.argv[1] &&
1120
- fileURLToPath(import.meta.url) === fs.realpathSync(process.argv[1])
1121
- ) {
1120
+ if (invokedAsScript(import.meta.url)) {
1122
1121
  main();
1123
1122
  }
@@ -25,7 +25,8 @@
25
25
  */
26
26
  import { readFileSync, writeFileSync } from "node:fs";
27
27
  import path from "node:path";
28
- import { fileURLToPath } from "node:url";
28
+
29
+ import { invokedAsScript } from "./lib/invoked-as-script.mjs";
29
30
 
30
31
  /**
31
32
  * The `copy-overwrite` ownership contract, verbatim from the header #2545
@@ -151,7 +152,7 @@ export const materialize = (source, destination) => {
151
152
  );
152
153
  };
153
154
 
154
- if (process.argv[1] === fileURLToPath(import.meta.url)) {
155
+ if (invokedAsScript(import.meta.url)) {
155
156
  const [source, destination] = process.argv.slice(2);
156
157
  if (!source || !destination) {
157
158
  console.error(