@codyswann/lisa 4.23.22 → 4.23.24
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/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.d.ts.map +1 -1
- package/dist/core/upstream-evidence-manifest.js +4 -3
- package/dist/core/upstream-evidence-manifest.js.map +1 -1
- package/expo/copy-overwrite/scripts/bdd/discover.mjs +96 -3
- 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-setup-remote-env/assets/setup.sh +13 -1
- package/plugins/lisa/skills/lisa-setup-remote-env/assets/setup.sh +13 -1
- package/plugins/lisa-agy/plugin.json +1 -1
- package/plugins/lisa-agy/skills/lisa-setup-remote-env/assets/setup.sh +13 -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/skills/lisa-setup-remote-env/assets/setup.sh +13 -1
- package/plugins/lisa-cursor/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-cursor/skills/lisa-setup-remote-env/assets/setup.sh +13 -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/skills/lisa-setup-remote-env/assets/setup.sh +13 -1
- package/scripts/lisa-remote-env/setup.sh +13 -1
|
@@ -108,6 +108,9 @@ const IDENTIFIER = /^[A-Za-z_$][A-Za-z0-9_$]*$/;
|
|
|
108
108
|
/** Member calls that still declare an executable test rather than a suite/helper. */
|
|
109
109
|
const TEST_DECLARATION_MODIFIERS = Object.freeze([
|
|
110
110
|
"concurrent",
|
|
111
|
+
// Parameterized `test.each` / `it.each` calls are executable tests. If this
|
|
112
|
+
// member is omitted, the contract silently fails to discover the entire set.
|
|
113
|
+
"each",
|
|
111
114
|
"fail",
|
|
112
115
|
"fails",
|
|
113
116
|
"fixme",
|
|
@@ -173,6 +176,53 @@ function withoutComments(source) {
|
|
|
173
176
|
return output.join("");
|
|
174
177
|
}
|
|
175
178
|
|
|
179
|
+
/**
|
|
180
|
+
* Find the closing delimiter for a quoted string or template literal.
|
|
181
|
+
* @param {string} source - Source text.
|
|
182
|
+
* @param {number} start - Index of the opening quote.
|
|
183
|
+
* @returns {number} Closing quote index, or -1 when unterminated.
|
|
184
|
+
*/
|
|
185
|
+
function closingQuote(source, start) {
|
|
186
|
+
const quote = source[start];
|
|
187
|
+
let escaped = false;
|
|
188
|
+
for (let index = start + 1; index < source.length; index += 1) {
|
|
189
|
+
if (escaped) {
|
|
190
|
+
escaped = false;
|
|
191
|
+
} else if (source[index] === "\\") {
|
|
192
|
+
escaped = true;
|
|
193
|
+
} else if (source[index] === quote) {
|
|
194
|
+
return index;
|
|
195
|
+
}
|
|
196
|
+
}
|
|
197
|
+
return -1;
|
|
198
|
+
}
|
|
199
|
+
|
|
200
|
+
/**
|
|
201
|
+
* Find a call's closing parenthesis without being confused by nested calls or
|
|
202
|
+
* delimiters inside string arguments.
|
|
203
|
+
* @param {string} source - Source text.
|
|
204
|
+
* @param {number} start - Index of the opening parenthesis.
|
|
205
|
+
* @returns {number} Closing parenthesis index, or -1 when unterminated.
|
|
206
|
+
*/
|
|
207
|
+
function closingParenthesis(source, start) {
|
|
208
|
+
let depth = 0;
|
|
209
|
+
let quotedUntil = -1;
|
|
210
|
+
for (let index = start; index < source.length; index += 1) {
|
|
211
|
+
if (index <= quotedUntil) continue;
|
|
212
|
+
const current = source[index];
|
|
213
|
+
if (current === '"' || current === "'" || current === "`") {
|
|
214
|
+
quotedUntil = closingQuote(source, index);
|
|
215
|
+
if (quotedUntil < 0) return -1;
|
|
216
|
+
} else if (current === "(") {
|
|
217
|
+
depth += 1;
|
|
218
|
+
} else if (current === ")") {
|
|
219
|
+
depth -= 1;
|
|
220
|
+
if (depth === 0) return index;
|
|
221
|
+
}
|
|
222
|
+
}
|
|
223
|
+
return -1;
|
|
224
|
+
}
|
|
225
|
+
|
|
176
226
|
/** A document field name, the only shape a declared field may take. */
|
|
177
227
|
const FIELD_NAME = /^[A-Za-z_][A-Za-z0-9_-]*$/;
|
|
178
228
|
|
|
@@ -334,14 +384,17 @@ function readDiscovery(contract) {
|
|
|
334
384
|
* @returns {{evidence: string, dynamic: boolean}[]} Discovered titles in source order.
|
|
335
385
|
*/
|
|
336
386
|
function callTitles(source, functions) {
|
|
337
|
-
const
|
|
387
|
+
const clean = withoutComments(source);
|
|
388
|
+
const modifiers = TEST_DECLARATION_MODIFIERS.filter(
|
|
389
|
+
modifier => modifier !== "each"
|
|
390
|
+
).join("|");
|
|
338
391
|
const pattern = new RegExp(
|
|
339
392
|
String.raw`\b(?:${functions.join("|")})(?:\.(?:${modifiers}))*\s*\(\s*` +
|
|
340
393
|
String.raw`(?:"((?:[^"\\\n]|\\.)*)"|'((?:[^'\\\n]|\\.)*)'|\x60((?:[^\x60\\]|\\.)*)\x60)`,
|
|
341
394
|
"g"
|
|
342
395
|
);
|
|
343
396
|
const found = [];
|
|
344
|
-
for (const match of
|
|
397
|
+
for (const match of clean.matchAll(pattern)) {
|
|
345
398
|
// Exactly one of the three quoting alternatives participates in any match,
|
|
346
399
|
// so the others are genuinely `undefined` here. The tests are written by
|
|
347
400
|
// TYPE rather than against `undefined`: the intent is "did this call carry
|
|
@@ -352,11 +405,51 @@ function callTitles(source, functions) {
|
|
|
352
405
|
const evidence = match[1] ?? match[2] ?? template;
|
|
353
406
|
if (typeof evidence !== "string" || evidence.length === 0) continue;
|
|
354
407
|
found.push({
|
|
408
|
+
index: match.index,
|
|
355
409
|
evidence,
|
|
356
410
|
dynamic: typeof template === "string" && template.includes("${"),
|
|
357
411
|
});
|
|
358
412
|
}
|
|
359
|
-
|
|
413
|
+
|
|
414
|
+
// `test.each(table)("title")` is a curried declaration: the first call
|
|
415
|
+
// supplies rows and the second supplies the test title. It cannot share the
|
|
416
|
+
// ordinary-call pattern above, which would either miss the title or mistake
|
|
417
|
+
// a string-valued table for one. Walk the table delimiter deterministically,
|
|
418
|
+
// then read the title from the returned test function.
|
|
419
|
+
const eachPattern = new RegExp(
|
|
420
|
+
String.raw`\b(?:${functions.join("|")})(?:\.(?:${modifiers}))*\.each\s*`,
|
|
421
|
+
"g"
|
|
422
|
+
);
|
|
423
|
+
const afterTablePattern = new RegExp(
|
|
424
|
+
String.raw`^\s*(?:\.(?:${modifiers}))*\s*\(\s*`
|
|
425
|
+
);
|
|
426
|
+
for (const match of clean.matchAll(eachPattern)) {
|
|
427
|
+
const tableStart = match.index + match[0].length;
|
|
428
|
+
const opener = clean[tableStart];
|
|
429
|
+
let tableEnd = -1;
|
|
430
|
+
if (opener === "(") tableEnd = closingParenthesis(clean, tableStart);
|
|
431
|
+
else if (opener === "`") tableEnd = closingQuote(clean, tableStart);
|
|
432
|
+
if (tableEnd < 0) continue;
|
|
433
|
+
|
|
434
|
+
const afterTable = clean.slice(tableEnd + 1).match(afterTablePattern);
|
|
435
|
+
if (!afterTable) continue;
|
|
436
|
+
const titleStart = tableEnd + 1 + afterTable[0].length;
|
|
437
|
+
const quote = clean[titleStart];
|
|
438
|
+
if (quote !== '"' && quote !== "'" && quote !== "`") continue;
|
|
439
|
+
const titleEnd = closingQuote(clean, titleStart);
|
|
440
|
+
if (titleEnd < 0) continue;
|
|
441
|
+
const evidence = clean.slice(titleStart + 1, titleEnd);
|
|
442
|
+
if (evidence.length === 0) continue;
|
|
443
|
+
found.push({
|
|
444
|
+
index: match.index,
|
|
445
|
+
evidence,
|
|
446
|
+
dynamic: quote === "`" && evidence.includes("${"),
|
|
447
|
+
});
|
|
448
|
+
}
|
|
449
|
+
|
|
450
|
+
return found
|
|
451
|
+
.sort((left, right) => left.index - right.index)
|
|
452
|
+
.map(({ evidence, dynamic }) => ({ evidence, dynamic }));
|
|
360
453
|
}
|
|
361
454
|
|
|
362
455
|
/**
|
package/package.json
CHANGED
|
@@ -161,7 +161,7 @@
|
|
|
161
161
|
"zod-validation-error": "^4.0.0"
|
|
162
162
|
},
|
|
163
163
|
"name": "@codyswann/lisa",
|
|
164
|
-
"version": "4.23.
|
|
164
|
+
"version": "4.23.24",
|
|
165
165
|
"description": "Claude Code governance framework that applies guardrails, guidance, and automated enforcement to projects",
|
|
166
166
|
"main": "dist/index.js",
|
|
167
167
|
"exports": {
|
|
@@ -300,6 +300,6 @@
|
|
|
300
300
|
"vite": "^8.0.16"
|
|
301
301
|
},
|
|
302
302
|
"type": "module",
|
|
303
|
-
"lisaReleaseCommit": "
|
|
304
|
-
"gitHead": "
|
|
303
|
+
"lisaReleaseCommit": "f082a75da448d8b88ad9cfc3d44c1b1e8770dc96",
|
|
304
|
+
"gitHead": "f082a75da448d8b88ad9cfc3d44c1b1e8770dc96"
|
|
305
305
|
}
|
|
@@ -34,6 +34,7 @@ if ! command -v node >/dev/null 2>&1; then
|
|
|
34
34
|
echo "on node. Pin a base image that provides it." >&2
|
|
35
35
|
exit 1
|
|
36
36
|
fi
|
|
37
|
+
node_bin="$(command -v node)"
|
|
37
38
|
|
|
38
39
|
# Install the project's dependencies, unless the caller already did.
|
|
39
40
|
#
|
|
@@ -201,4 +202,15 @@ if [ -z "$runner" ]; then
|
|
|
201
202
|
exit 1
|
|
202
203
|
fi
|
|
203
204
|
|
|
204
|
-
|
|
205
|
+
# Pinned tools live here. A fresh toolchain run prepends this directory inside
|
|
206
|
+
# its own node process, but that export cannot reach the next SessionStart
|
|
207
|
+
# process in a cached container. Add it only after bootstrap work has finished:
|
|
208
|
+
# dependency installation and the runner itself keep using the inherited,
|
|
209
|
+
# already-validated Node instead of trusting an executable from writable local
|
|
210
|
+
# tool storage.
|
|
211
|
+
case ":$PATH:" in
|
|
212
|
+
*":$HOME/.local/bin:"*) ;;
|
|
213
|
+
*) PATH="$HOME/.local/bin:$PATH"; export PATH ;;
|
|
214
|
+
esac
|
|
215
|
+
|
|
216
|
+
exec "$node_bin" "$runner" "$@"
|
|
@@ -34,6 +34,7 @@ if ! command -v node >/dev/null 2>&1; then
|
|
|
34
34
|
echo "on node. Pin a base image that provides it." >&2
|
|
35
35
|
exit 1
|
|
36
36
|
fi
|
|
37
|
+
node_bin="$(command -v node)"
|
|
37
38
|
|
|
38
39
|
# Install the project's dependencies, unless the caller already did.
|
|
39
40
|
#
|
|
@@ -201,4 +202,15 @@ if [ -z "$runner" ]; then
|
|
|
201
202
|
exit 1
|
|
202
203
|
fi
|
|
203
204
|
|
|
204
|
-
|
|
205
|
+
# Pinned tools live here. A fresh toolchain run prepends this directory inside
|
|
206
|
+
# its own node process, but that export cannot reach the next SessionStart
|
|
207
|
+
# process in a cached container. Add it only after bootstrap work has finished:
|
|
208
|
+
# dependency installation and the runner itself keep using the inherited,
|
|
209
|
+
# already-validated Node instead of trusting an executable from writable local
|
|
210
|
+
# tool storage.
|
|
211
|
+
case ":$PATH:" in
|
|
212
|
+
*":$HOME/.local/bin:"*) ;;
|
|
213
|
+
*) PATH="$HOME/.local/bin:$PATH"; export PATH ;;
|
|
214
|
+
esac
|
|
215
|
+
|
|
216
|
+
exec "$node_bin" "$runner" "$@"
|
|
@@ -34,6 +34,7 @@ if ! command -v node >/dev/null 2>&1; then
|
|
|
34
34
|
echo "on node. Pin a base image that provides it." >&2
|
|
35
35
|
exit 1
|
|
36
36
|
fi
|
|
37
|
+
node_bin="$(command -v node)"
|
|
37
38
|
|
|
38
39
|
# Install the project's dependencies, unless the caller already did.
|
|
39
40
|
#
|
|
@@ -201,4 +202,15 @@ if [ -z "$runner" ]; then
|
|
|
201
202
|
exit 1
|
|
202
203
|
fi
|
|
203
204
|
|
|
204
|
-
|
|
205
|
+
# Pinned tools live here. A fresh toolchain run prepends this directory inside
|
|
206
|
+
# its own node process, but that export cannot reach the next SessionStart
|
|
207
|
+
# process in a cached container. Add it only after bootstrap work has finished:
|
|
208
|
+
# dependency installation and the runner itself keep using the inherited,
|
|
209
|
+
# already-validated Node instead of trusting an executable from writable local
|
|
210
|
+
# tool storage.
|
|
211
|
+
case ":$PATH:" in
|
|
212
|
+
*":$HOME/.local/bin:"*) ;;
|
|
213
|
+
*) PATH="$HOME/.local/bin:$PATH"; export PATH ;;
|
|
214
|
+
esac
|
|
215
|
+
|
|
216
|
+
exec "$node_bin" "$runner" "$@"
|
|
@@ -34,6 +34,7 @@ if ! command -v node >/dev/null 2>&1; then
|
|
|
34
34
|
echo "on node. Pin a base image that provides it." >&2
|
|
35
35
|
exit 1
|
|
36
36
|
fi
|
|
37
|
+
node_bin="$(command -v node)"
|
|
37
38
|
|
|
38
39
|
# Install the project's dependencies, unless the caller already did.
|
|
39
40
|
#
|
|
@@ -201,4 +202,15 @@ if [ -z "$runner" ]; then
|
|
|
201
202
|
exit 1
|
|
202
203
|
fi
|
|
203
204
|
|
|
204
|
-
|
|
205
|
+
# Pinned tools live here. A fresh toolchain run prepends this directory inside
|
|
206
|
+
# its own node process, but that export cannot reach the next SessionStart
|
|
207
|
+
# process in a cached container. Add it only after bootstrap work has finished:
|
|
208
|
+
# dependency installation and the runner itself keep using the inherited,
|
|
209
|
+
# already-validated Node instead of trusting an executable from writable local
|
|
210
|
+
# tool storage.
|
|
211
|
+
case ":$PATH:" in
|
|
212
|
+
*":$HOME/.local/bin:"*) ;;
|
|
213
|
+
*) PATH="$HOME/.local/bin:$PATH"; export PATH ;;
|
|
214
|
+
esac
|
|
215
|
+
|
|
216
|
+
exec "$node_bin" "$runner" "$@"
|
|
@@ -34,6 +34,7 @@ if ! command -v node >/dev/null 2>&1; then
|
|
|
34
34
|
echo "on node. Pin a base image that provides it." >&2
|
|
35
35
|
exit 1
|
|
36
36
|
fi
|
|
37
|
+
node_bin="$(command -v node)"
|
|
37
38
|
|
|
38
39
|
# Install the project's dependencies, unless the caller already did.
|
|
39
40
|
#
|
|
@@ -201,4 +202,15 @@ if [ -z "$runner" ]; then
|
|
|
201
202
|
exit 1
|
|
202
203
|
fi
|
|
203
204
|
|
|
204
|
-
|
|
205
|
+
# Pinned tools live here. A fresh toolchain run prepends this directory inside
|
|
206
|
+
# its own node process, but that export cannot reach the next SessionStart
|
|
207
|
+
# process in a cached container. Add it only after bootstrap work has finished:
|
|
208
|
+
# dependency installation and the runner itself keep using the inherited,
|
|
209
|
+
# already-validated Node instead of trusting an executable from writable local
|
|
210
|
+
# tool storage.
|
|
211
|
+
case ":$PATH:" in
|
|
212
|
+
*":$HOME/.local/bin:"*) ;;
|
|
213
|
+
*) PATH="$HOME/.local/bin:$PATH"; export PATH ;;
|
|
214
|
+
esac
|
|
215
|
+
|
|
216
|
+
exec "$node_bin" "$runner" "$@"
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "lisa-openclaw",
|
|
3
|
-
"version": "4.23.
|
|
3
|
+
"version": "4.23.24",
|
|
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": "4.23.
|
|
3
|
+
"version": "4.23.24",
|
|
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": "4.23.
|
|
3
|
+
"version": "4.23.24",
|
|
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": "4.23.
|
|
3
|
+
"version": "4.23.24",
|
|
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": "4.23.
|
|
3
|
+
"version": "4.23.24",
|
|
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"
|