@codyswann/lisa 4.23.18 → 4.23.19
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-gates.mjs +29 -50
- package/dist/core/lisa-owned-hash-ledger.d.ts.map +1 -1
- package/dist/core/lisa-owned-hash-ledger.js +4 -0
- package/dist/core/lisa-owned-hash-ledger.js.map +1 -1
- package/dist/core/nightly-e2e-guard-behavior-certificate.js +2 -2
- package/dist/core/upstream-evidence-manifest.js +7 -7
- package/expo/copy-overwrite/scripts/bdd/discover.mjs +1 -1
- package/package.json +3 -3
- package/plugins/lisa/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa/.codex-plugin/plugin.json +1 -1
- package/plugins/lisa/.codex-plugin/skills/lisa-secrets-access/scripts/providers.mjs +23 -1
- package/plugins/lisa/.codex-plugin/skills/lisa-secrets-access/scripts/sync-secret-to-ci.mjs +8 -7
- package/plugins/lisa/.codex-plugin/skills/lisa-setup-remote-env/SKILL.md +1 -1
- package/plugins/lisa/.codex-plugin/skills/lisa-setup-remote-env/assets/setup.sh +51 -21
- package/plugins/lisa/skills/lisa-secrets-access/scripts/providers.mjs +23 -1
- package/plugins/lisa/skills/lisa-secrets-access/scripts/sync-secret-to-ci.mjs +8 -7
- package/plugins/lisa/skills/lisa-setup-remote-env/SKILL.md +1 -1
- package/plugins/lisa/skills/lisa-setup-remote-env/assets/setup.sh +51 -21
- package/plugins/lisa-agy/plugin.json +1 -1
- package/plugins/lisa-agy/skills/lisa-secrets-access/scripts/providers.mjs +23 -1
- package/plugins/lisa-agy/skills/lisa-secrets-access/scripts/sync-secret-to-ci.mjs +8 -7
- package/plugins/lisa-agy/skills/lisa-setup-remote-env/SKILL.md +1 -1
- package/plugins/lisa-agy/skills/lisa-setup-remote-env/assets/setup.sh +51 -21
- 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/skills/lisa-secrets-access/scripts/providers.mjs +23 -1
- package/plugins/lisa-copilot/skills/lisa-secrets-access/scripts/sync-secret-to-ci.mjs +8 -7
- package/plugins/lisa-copilot/skills/lisa-setup-remote-env/SKILL.md +1 -1
- package/plugins/lisa-copilot/skills/lisa-setup-remote-env/assets/setup.sh +51 -21
- package/plugins/lisa-cursor/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-cursor/skills/lisa-secrets-access/scripts/providers.mjs +23 -1
- package/plugins/lisa-cursor/skills/lisa-secrets-access/scripts/sync-secret-to-ci.mjs +8 -7
- package/plugins/lisa-cursor/skills/lisa-setup-remote-env/SKILL.md +1 -1
- package/plugins/lisa-cursor/skills/lisa-setup-remote-env/assets/setup.sh +51 -21
- 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/skills/lisa-secrets-access/scripts/providers.mjs +23 -1
- package/plugins/src/base/skills/lisa-secrets-access/scripts/sync-secret-to-ci.mjs +8 -7
- package/plugins/src/base/skills/lisa-setup-remote-env/SKILL.md +1 -1
- package/plugins/src/base/skills/lisa-setup-remote-env/assets/setup.sh +51 -21
- package/scripts/lisa-remote-env/setup.sh +51 -21
|
@@ -47,25 +47,50 @@ fi
|
|
|
47
47
|
# guessed: a guessed one fails on the container's first command with an error
|
|
48
48
|
# blaming the project rather than the guess.
|
|
49
49
|
#
|
|
50
|
-
#
|
|
51
|
-
#
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
50
|
+
# A directory's presence says nothing about which lockfile produced it. Remote
|
|
51
|
+
# vendors cache containers across commits, so node_modules can exist while
|
|
52
|
+
# carrying the previous Lisa release or an otherwise stale dependency graph.
|
|
53
|
+
# Persist the reconciled lockfile signature inside node_modules instead: a
|
|
54
|
+
# matching signature is the cheap resume path, and a changed or missing one
|
|
55
|
+
# earns one frozen reinstall.
|
|
56
|
+
lock_file=""
|
|
57
|
+
install_cmd=""
|
|
58
|
+
if [ -f bun.lock ]; then lock_file="bun.lock"; install_cmd="bun install --frozen-lockfile"
|
|
59
|
+
elif [ -f bun.lockb ]; then lock_file="bun.lockb"; install_cmd="bun install --frozen-lockfile"
|
|
60
|
+
elif [ -f pnpm-lock.yaml ]; then lock_file="pnpm-lock.yaml"; install_cmd="pnpm install --frozen-lockfile"
|
|
61
|
+
elif [ -f yarn.lock ]; then
|
|
62
|
+
lock_file="yarn.lock"
|
|
63
|
+
# Yarn Classic and Berry spell the same intent differently, and each rejects
|
|
64
|
+
# the other's flag. The lockfile itself says which is in use: Yarn 1 writes a
|
|
65
|
+
# "# yarn lockfile v1" header, Berry does not.
|
|
66
|
+
if head -5 yarn.lock | grep -q "yarn lockfile v1"; then
|
|
67
|
+
install_cmd="yarn install --frozen-lockfile"
|
|
68
|
+
else
|
|
69
|
+
install_cmd="yarn install --immutable"
|
|
66
70
|
fi
|
|
71
|
+
elif [ -f package-lock.json ]; then lock_file="package-lock.json"; install_cmd="npm ci"
|
|
72
|
+
fi
|
|
67
73
|
|
|
68
|
-
|
|
74
|
+
if [ -n "$install_cmd" ]; then
|
|
75
|
+
lock_digest=$(node -e '
|
|
76
|
+
const crypto = require("node:crypto");
|
|
77
|
+
const fs = require("node:fs");
|
|
78
|
+
const path = process.argv[1];
|
|
79
|
+
process.stdout.write(
|
|
80
|
+
crypto.createHash("sha256").update(path).update("\0").update(fs.readFileSync(path)).digest("hex")
|
|
81
|
+
);
|
|
82
|
+
' "$lock_file") || {
|
|
83
|
+
echo "Could not fingerprint $lock_file; refusing to trust cached dependencies." >&2
|
|
84
|
+
exit 1
|
|
85
|
+
}
|
|
86
|
+
lock_signature="$lock_file:$lock_digest"
|
|
87
|
+
lock_marker="node_modules/.lisa-lockfile.sha256"
|
|
88
|
+
cached_lock_signature=""
|
|
89
|
+
if [ -f "$lock_marker" ]; then
|
|
90
|
+
IFS= read -r cached_lock_signature < "$lock_marker" || true
|
|
91
|
+
fi
|
|
92
|
+
|
|
93
|
+
if [ ! -d node_modules ] || [ "$cached_lock_signature" != "$lock_signature" ]; then
|
|
69
94
|
echo "Installing dependencies with: $install_cmd"
|
|
70
95
|
# CI=1 so lifecycle scripts take their automation path and leave the
|
|
71
96
|
# checkout alone. A remote-env setup is automation by definition, and a
|
|
@@ -96,12 +121,17 @@ if [ ! -d node_modules ]; then
|
|
|
96
121
|
echo " LISA_SKIP_INSTALL=1 — not running it."
|
|
97
122
|
else
|
|
98
123
|
CI=1 $install_cmd
|
|
124
|
+
# npm ci replaces node_modules, while the other managers may update it in
|
|
125
|
+
# place. Write only after a successful install so an interrupted or
|
|
126
|
+
# explicitly skipped reconciliation never blesses a stale cache.
|
|
127
|
+
mkdir -p node_modules
|
|
128
|
+
printf '%s\n' "$lock_signature" > "$lock_marker"
|
|
99
129
|
fi
|
|
100
|
-
else
|
|
101
|
-
# Not fatal on its own. A project may carry no lockfile and still have the
|
|
102
|
-
# skill in a checkout directory, so let the resolver below decide.
|
|
103
|
-
echo "No lockfile found; skipping dependency install." >&2
|
|
104
130
|
fi
|
|
131
|
+
elif [ ! -d node_modules ]; then
|
|
132
|
+
# Not fatal on its own. A project may carry no lockfile and still have the
|
|
133
|
+
# skill in a checkout directory, so let the resolver below decide.
|
|
134
|
+
echo "No lockfile found; skipping dependency install." >&2
|
|
105
135
|
fi
|
|
106
136
|
|
|
107
137
|
# Where the skill lives depends on how this project's harness receives it, and
|
|
@@ -47,25 +47,50 @@ fi
|
|
|
47
47
|
# guessed: a guessed one fails on the container's first command with an error
|
|
48
48
|
# blaming the project rather than the guess.
|
|
49
49
|
#
|
|
50
|
-
#
|
|
51
|
-
#
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
50
|
+
# A directory's presence says nothing about which lockfile produced it. Remote
|
|
51
|
+
# vendors cache containers across commits, so node_modules can exist while
|
|
52
|
+
# carrying the previous Lisa release or an otherwise stale dependency graph.
|
|
53
|
+
# Persist the reconciled lockfile signature inside node_modules instead: a
|
|
54
|
+
# matching signature is the cheap resume path, and a changed or missing one
|
|
55
|
+
# earns one frozen reinstall.
|
|
56
|
+
lock_file=""
|
|
57
|
+
install_cmd=""
|
|
58
|
+
if [ -f bun.lock ]; then lock_file="bun.lock"; install_cmd="bun install --frozen-lockfile"
|
|
59
|
+
elif [ -f bun.lockb ]; then lock_file="bun.lockb"; install_cmd="bun install --frozen-lockfile"
|
|
60
|
+
elif [ -f pnpm-lock.yaml ]; then lock_file="pnpm-lock.yaml"; install_cmd="pnpm install --frozen-lockfile"
|
|
61
|
+
elif [ -f yarn.lock ]; then
|
|
62
|
+
lock_file="yarn.lock"
|
|
63
|
+
# Yarn Classic and Berry spell the same intent differently, and each rejects
|
|
64
|
+
# the other's flag. The lockfile itself says which is in use: Yarn 1 writes a
|
|
65
|
+
# "# yarn lockfile v1" header, Berry does not.
|
|
66
|
+
if head -5 yarn.lock | grep -q "yarn lockfile v1"; then
|
|
67
|
+
install_cmd="yarn install --frozen-lockfile"
|
|
68
|
+
else
|
|
69
|
+
install_cmd="yarn install --immutable"
|
|
66
70
|
fi
|
|
71
|
+
elif [ -f package-lock.json ]; then lock_file="package-lock.json"; install_cmd="npm ci"
|
|
72
|
+
fi
|
|
67
73
|
|
|
68
|
-
|
|
74
|
+
if [ -n "$install_cmd" ]; then
|
|
75
|
+
lock_digest=$(node -e '
|
|
76
|
+
const crypto = require("node:crypto");
|
|
77
|
+
const fs = require("node:fs");
|
|
78
|
+
const path = process.argv[1];
|
|
79
|
+
process.stdout.write(
|
|
80
|
+
crypto.createHash("sha256").update(path).update("\0").update(fs.readFileSync(path)).digest("hex")
|
|
81
|
+
);
|
|
82
|
+
' "$lock_file") || {
|
|
83
|
+
echo "Could not fingerprint $lock_file; refusing to trust cached dependencies." >&2
|
|
84
|
+
exit 1
|
|
85
|
+
}
|
|
86
|
+
lock_signature="$lock_file:$lock_digest"
|
|
87
|
+
lock_marker="node_modules/.lisa-lockfile.sha256"
|
|
88
|
+
cached_lock_signature=""
|
|
89
|
+
if [ -f "$lock_marker" ]; then
|
|
90
|
+
IFS= read -r cached_lock_signature < "$lock_marker" || true
|
|
91
|
+
fi
|
|
92
|
+
|
|
93
|
+
if [ ! -d node_modules ] || [ "$cached_lock_signature" != "$lock_signature" ]; then
|
|
69
94
|
echo "Installing dependencies with: $install_cmd"
|
|
70
95
|
# CI=1 so lifecycle scripts take their automation path and leave the
|
|
71
96
|
# checkout alone. A remote-env setup is automation by definition, and a
|
|
@@ -96,12 +121,17 @@ if [ ! -d node_modules ]; then
|
|
|
96
121
|
echo " LISA_SKIP_INSTALL=1 — not running it."
|
|
97
122
|
else
|
|
98
123
|
CI=1 $install_cmd
|
|
124
|
+
# npm ci replaces node_modules, while the other managers may update it in
|
|
125
|
+
# place. Write only after a successful install so an interrupted or
|
|
126
|
+
# explicitly skipped reconciliation never blesses a stale cache.
|
|
127
|
+
mkdir -p node_modules
|
|
128
|
+
printf '%s\n' "$lock_signature" > "$lock_marker"
|
|
99
129
|
fi
|
|
100
|
-
else
|
|
101
|
-
# Not fatal on its own. A project may carry no lockfile and still have the
|
|
102
|
-
# skill in a checkout directory, so let the resolver below decide.
|
|
103
|
-
echo "No lockfile found; skipping dependency install." >&2
|
|
104
130
|
fi
|
|
131
|
+
elif [ ! -d node_modules ]; then
|
|
132
|
+
# Not fatal on its own. A project may carry no lockfile and still have the
|
|
133
|
+
# skill in a checkout directory, so let the resolver below decide.
|
|
134
|
+
echo "No lockfile found; skipping dependency install." >&2
|
|
105
135
|
fi
|
|
106
136
|
|
|
107
137
|
# Where the skill lives depends on how this project's harness receives it, and
|