@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.
- package/all/copy-overwrite/scripts/lisa-work-item.mjs +62 -6
- package/dist/core/lisa-owned-hash-ledger.d.ts.map +1 -1
- package/dist/core/lisa-owned-hash-ledger.js +1 -0
- package/dist/core/lisa-owned-hash-ledger.js.map +1 -1
- package/dist/core/upstream-evidence-manifest.d.ts.map +1 -1
- package/dist/core/upstream-evidence-manifest.js +14 -7
- package/dist/core/upstream-evidence-manifest.js.map +1 -1
- package/package.json +1 -1
- package/plugins/lisa/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa/.codex-plugin/plugin.json +1 -1
- package/plugins/lisa/scripts/install-remote-agent-aws.mjs +33 -1
- package/plugins/lisa-agy/plugin.json +1 -1
- package/plugins/lisa-agy/scripts/install-remote-agent-aws.mjs +33 -1
- package/plugins/lisa-cdk/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-cdk/.codex-plugin/plugin.json +1 -1
- package/plugins/lisa-cdk-agy/plugin.json +1 -1
- package/plugins/lisa-cdk-copilot/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-cdk-cursor/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-copilot/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-copilot/scripts/install-remote-agent-aws.mjs +33 -1
- package/plugins/lisa-cursor/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-cursor/scripts/install-remote-agent-aws.mjs +33 -1
- package/plugins/lisa-expo/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-expo/.codex-plugin/plugin.json +1 -1
- package/plugins/lisa-expo-agy/plugin.json +1 -1
- package/plugins/lisa-expo-copilot/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-expo-cursor/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-harper-fabric/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-harper-fabric/.codex-plugin/plugin.json +1 -1
- package/plugins/lisa-harper-fabric-agy/plugin.json +1 -1
- package/plugins/lisa-harper-fabric-copilot/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-harper-fabric-cursor/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-nestjs/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-nestjs/.codex-plugin/plugin.json +1 -1
- package/plugins/lisa-nestjs-agy/plugin.json +1 -1
- package/plugins/lisa-nestjs-copilot/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-nestjs-cursor/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-openclaw/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-openclaw/.codex-plugin/plugin.json +1 -1
- package/plugins/lisa-openclaw-agy/plugin.json +1 -1
- package/plugins/lisa-openclaw-copilot/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-openclaw-cursor/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-phaser/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-phaser/.codex-plugin/plugin.json +1 -1
- package/plugins/lisa-phaser-agy/plugin.json +1 -1
- package/plugins/lisa-phaser-copilot/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-phaser-cursor/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-rails/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-rails/.codex-plugin/plugin.json +1 -1
- package/plugins/lisa-rails-agy/plugin.json +1 -1
- package/plugins/lisa-rails-copilot/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-rails-cursor/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-typescript/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-typescript/.codex-plugin/plugin.json +1 -1
- package/plugins/lisa-typescript-agy/plugin.json +1 -1
- package/plugins/lisa-typescript-copilot/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-typescript-cursor/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-wiki/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-wiki/.codex-plugin/plugin.json +1 -1
- package/plugins/lisa-wiki-agy/plugin.json +1 -1
- package/plugins/lisa-wiki-copilot/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-wiki-cursor/.claude-plugin/plugin.json +1 -1
- package/plugins/src/base/scripts/install-remote-agent-aws.mjs +33 -1
- package/scripts/check-derived-artifacts.mjs +3 -2
- package/scripts/check-duplicate-versions.mjs +3 -1
- package/scripts/check-required-check-promotions.mjs +3 -2
- package/scripts/generate-codex-plugin-artifacts.mjs +3 -4
- package/scripts/materialize-copy-overwrite.mjs +3 -2
|
@@ -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 (
|
|
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
|
-
|
|
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 (
|
|
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 (
|
|
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 (
|
|
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
|
-
|
|
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 (
|
|
155
|
+
if (invokedAsScript(import.meta.url)) {
|
|
155
156
|
const [source, destination] = process.argv.slice(2);
|
|
156
157
|
if (!source || !destination) {
|
|
157
158
|
console.error(
|