@codyswann/lisa 3.47.2 → 3.47.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.
- package/dist/core/upstream-evidence-manifest.js +6 -6
- 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
|
@@ -485,7 +485,7 @@ export const UPSTREAM_EVIDENCE_MANIFEST = Object.freeze({
|
|
|
485
485
|
"plugins/src/base/scripts/design-source-gate.mjs": "5eadc5184a8c22d1d35c8be1bf4589aeedff0d1aa578563e4d33cdb193dbc5af",
|
|
486
486
|
"plugins/src/base/scripts/design-variable-ids.mjs": "0fb40c52d9297a1682f875d5c4213ecbfa772e213160b34aafa5c10d5b58125a",
|
|
487
487
|
"plugins/src/base/scripts/doctor-report.mjs": "f183e62848ac539da56a525fe2105fc6251a49e555a01dd1bba10d9227b1a6bf",
|
|
488
|
-
"plugins/src/base/scripts/install-remote-agent-aws.mjs": "
|
|
488
|
+
"plugins/src/base/scripts/install-remote-agent-aws.mjs": "c15020b5411d100a7393769e7006ad2e960181d92e616690cdadfc4672680296",
|
|
489
489
|
"plugins/src/base/scripts/intake-blocker-reprobe.mjs": "135a9b5a0894f70562b54d2071caff1e679c0fe542a606caca39e9e6a5b65f24",
|
|
490
490
|
"plugins/src/base/scripts/intake-prework-denominator.mjs": "0a40cb91ab1c0e810f42d035d9652af3033e97c692b93b911de851991c12eca1",
|
|
491
491
|
"plugins/src/base/scripts/lifecycle-label-trust.mjs": "0a9892890da6011733bf9b1186fbe936253c2796c4ac448f1a55f63b8daaa154",
|
|
@@ -1066,11 +1066,11 @@ export const UPSTREAM_EVIDENCE_MANIFEST = Object.freeze({
|
|
|
1066
1066
|
"scripts/build-plugins.sh": "00a3207bb5a485bfee80fb71be6e9577979fd156b15a85517e88a2f9261bc9f4",
|
|
1067
1067
|
"scripts/check-conflict-markers.mjs": "3a2ab8dde9deab3e8ee750d5678b6653751abad2eb8f961500585ba38f502047",
|
|
1068
1068
|
"scripts/check-delivery-deletion-conflicts.mjs": "e7fe0064ad82a4dba17436657630a46891568a3d18930eb172fe9ee3f54196aa",
|
|
1069
|
-
"scripts/check-derived-artifacts.mjs": "
|
|
1070
|
-
"scripts/check-duplicate-versions.mjs": "
|
|
1069
|
+
"scripts/check-derived-artifacts.mjs": "62c895baffad41c25fa919b798a53e2e969163897bcbb09b0e26345c61f61320",
|
|
1070
|
+
"scripts/check-duplicate-versions.mjs": "26b26351dd2735dfd8d9a2436b89e876ce2ed93871d0b264f611215dd03d70ae",
|
|
1071
1071
|
"scripts/check-learnings-budget.ts": "007430c2d6938efcc79ccbfd5717ebe2c7cf66b4de9a21a3e67b8db7f3600349",
|
|
1072
1072
|
"scripts/check-plugins-sync.sh": "3a99cbff0e8ec5e7c944690eae003a6d51b51c85436d77bd37faea4d553728af",
|
|
1073
|
-
"scripts/check-required-check-promotions.mjs": "
|
|
1073
|
+
"scripts/check-required-check-promotions.mjs": "5e630ed713d7942a8f083f9171457c0559a830cdeb3e9c81da7ea113793248ad",
|
|
1074
1074
|
"scripts/check-rules-pairing.sh": "4d4a0d9e8d36794a22020f419c879d7336b1c5bfe883acdcc826d26764560c7a",
|
|
1075
1075
|
"scripts/check-security-floors.mjs": "ab265847a4c7766ded0c45b693f352ff1a82ee1797f50beda872a55b9a384966",
|
|
1076
1076
|
"scripts/check-state-classification.mjs": "26baaa85c0758fa41f1f66257f7d3a31ea4dd5cf17a9c0acaa3e89caaaf6265a",
|
|
@@ -1088,7 +1088,7 @@ export const UPSTREAM_EVIDENCE_MANIFEST = Object.freeze({
|
|
|
1088
1088
|
"scripts/fix-test-assertions-pass2.mjs": "baca043a291120ff52ce61c06397206dc21ca3bef9c23a5975b9c1f896d963c7",
|
|
1089
1089
|
"scripts/fix-test-assertions.mjs": "59b5e8cc31e7c7323d20bd180f2ae97c08a9685758483b6fe00ba77317a845f2",
|
|
1090
1090
|
"scripts/generate-agy-plugin-artifacts.mjs": "a952d25eeb83aa21d71ea7e46c7ba06c8c1ecd0fcf25a734900728191ce52105",
|
|
1091
|
-
"scripts/generate-codex-plugin-artifacts.mjs": "
|
|
1091
|
+
"scripts/generate-codex-plugin-artifacts.mjs": "facb86910c07d1b8025868d24425fdaea7b6efbe282bace5ee5bf23957d6b51a",
|
|
1092
1092
|
"scripts/generate-copilot-plugin-artifacts.mjs": "7af923118c49101e6ba46da73a8eee8aee9b797e074618aa5345913e638d7cdb",
|
|
1093
1093
|
"scripts/generate-cursor-plugin-artifacts.mjs": "45d3bde7b6c55310f0d9436dd68a1bdeefb6fa817be4d15ef745421b39a2cf47",
|
|
1094
1094
|
"scripts/generate-lisa-owned-hash-ledger.mjs": "4e7a6dd9325fff77faec49c1dcbf8a8cfeb987052eeed89885deb4f7b0a107bc",
|
|
@@ -1117,7 +1117,7 @@ export const UPSTREAM_EVIDENCE_MANIFEST = Object.freeze({
|
|
|
1117
1117
|
"scripts/lisa-remote-env/setup.sh": "c30d98a5645f033fc1d3a723043691b9ad997ae5666df539ff6aa19c563431b2",
|
|
1118
1118
|
"scripts/lisa-update-local.sh": "c811f9e10dbcb38499a9791c1ae9051460b347051d04a1d2046925bab9a53c96",
|
|
1119
1119
|
"scripts/lisa-work-item.mjs": "51081847e980f314a764c2e50a7a121b1ced9ef4b980f33898057de4c7b852e6",
|
|
1120
|
-
"scripts/materialize-copy-overwrite.mjs": "
|
|
1120
|
+
"scripts/materialize-copy-overwrite.mjs": "096271af0377b1ecd2725632973793549310a437fc3789979a71067b09ae2fe6",
|
|
1121
1121
|
"scripts/plugin-parity-drift.mjs": "d53dc9b1f60bbfe0de64ade5f205d4222cf7959f40073cd8e8928c36339994e8",
|
|
1122
1122
|
"scripts/plugin-routing-validate.mjs": "72c7dbaa23fbe30795da396f728585412db8adc543769c8a80eb3d790c678b0f",
|
|
1123
1123
|
"scripts/probes/wave3-verification.sh": "c341c3682f2401339a433a48efc8b8dd80c9c190f12ec6287139bebd1e47c049",
|
package/package.json
CHANGED
|
@@ -138,7 +138,7 @@
|
|
|
138
138
|
"zod-validation-error": "^4.0.0"
|
|
139
139
|
},
|
|
140
140
|
"name": "@codyswann/lisa",
|
|
141
|
-
"version": "3.47.
|
|
141
|
+
"version": "3.47.3",
|
|
142
142
|
"description": "Claude Code governance framework that applies guardrails, guidance, and automated enforcement to projects",
|
|
143
143
|
"main": "dist/index.js",
|
|
144
144
|
"exports": {
|
|
@@ -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`
|
|
@@ -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`
|
|
@@ -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`
|
|
@@ -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`
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "lisa-openclaw",
|
|
3
|
-
"version": "3.47.
|
|
3
|
+
"version": "3.47.3",
|
|
4
4
|
"description": "Connect staff roles to Telegram or Slack via OpenClaw — facilitator/specialist hub-and-spoke routing and repo-coding topics, for Claude Code and Codex",
|
|
5
5
|
"author": {
|
|
6
6
|
"name": "Cody Swann"
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "lisa-openclaw",
|
|
3
|
-
"version": "3.47.
|
|
3
|
+
"version": "3.47.3",
|
|
4
4
|
"description": "Connect staff roles to Telegram or Slack via OpenClaw — facilitator/specialist hub-and-spoke routing and repo-coding topics, across Claude and Codex.",
|
|
5
5
|
"author": {
|
|
6
6
|
"name": "Cody Swann"
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "lisa-openclaw",
|
|
3
|
-
"version": "3.47.
|
|
3
|
+
"version": "3.47.3",
|
|
4
4
|
"description": "Connect staff roles to Telegram or Slack via OpenClaw — facilitator/specialist hub-and-spoke routing and repo-coding topics, for Claude Code and Codex",
|
|
5
5
|
"author": {
|
|
6
6
|
"name": "Cody Swann"
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "lisa-openclaw",
|
|
3
|
-
"version": "3.47.
|
|
3
|
+
"version": "3.47.3",
|
|
4
4
|
"description": "Connect staff roles to Telegram or Slack via OpenClaw — facilitator/specialist hub-and-spoke routing and repo-coding topics, for Claude Code and Codex",
|
|
5
5
|
"author": {
|
|
6
6
|
"name": "Cody Swann"
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "lisa-openclaw",
|
|
3
|
-
"version": "3.47.
|
|
3
|
+
"version": "3.47.3",
|
|
4
4
|
"description": "Connect staff roles to Telegram or Slack via OpenClaw — facilitator/specialist hub-and-spoke routing and repo-coding topics, 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 (
|
|
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(
|