@codyswann/lisa 4.107.0 → 4.107.1
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/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 +1 -44
- package/dist/core/upstream-evidence-manifest.js.map +1 -1
- package/package.json +4 -9
- package/plugins/lisa/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa/.codex-plugin/plugin.json +1 -1
- package/plugins/lisa-agy/plugin.json +1 -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-cdk-devin/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-cdk-devin/.devin-plugin/plugin.json +1 -1
- package/plugins/lisa-copilot/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-cursor/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-devin/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-devin/.devin-plugin/plugin.json +1 -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-expo-devin/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-expo-devin/.devin-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-harper-fabric-devin/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-harper-fabric-devin/.devin-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-nestjs-devin/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-nestjs-devin/.devin-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-openclaw-devin/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-openclaw-devin/.devin-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-phaser-devin/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-phaser-devin/.devin-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-rails-devin/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-rails-devin/.devin-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-typescript-devin/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-typescript-devin/.devin-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/lisa-wiki-devin/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-wiki-devin/.devin-plugin/plugin.json +1 -1
- package/ui/README.md +3 -8
- package/scripts/check-ui-demo-data.mjs +0 -102
package/ui/README.md
CHANGED
|
@@ -51,14 +51,9 @@ Every renderer-bearing catalog value must declare exactly one provenance:
|
|
|
51
51
|
- `demoOnly: true` for intentional direct-file sample data; or
|
|
52
52
|
- `staticCopy` with a narrow reason for fixed Lisa documentation or semantics.
|
|
53
53
|
|
|
54
|
-
The
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
inspects nothing. Run it after adding or changing console data:
|
|
58
|
-
|
|
59
|
-
```bash
|
|
60
|
-
bun run check:ui-demo-data
|
|
61
|
-
```
|
|
54
|
+
The repository guard for this boundary (`check:ui-demo-data`) and its browser
|
|
55
|
+
suite were removed with the console (CodySwannGT/lisa#4804); this page goes with
|
|
56
|
+
the rest of `ui/` in the same change.
|
|
62
57
|
|
|
63
58
|
`acme/acme-app` is not a forbidden string: a live project can legitimately use
|
|
64
59
|
that name. The boundary is provenance, not a sentinel grep.
|
|
@@ -1,102 +0,0 @@
|
|
|
1
|
-
#!/usr/bin/env node
|
|
2
|
-
|
|
3
|
-
/**
|
|
4
|
-
* Evaluate the Lisa UI catalog in a code-generation-disabled VM and invoke the
|
|
5
|
-
* catalog's own renderer-aware audit. Keeping the audit in `ui/index.html`
|
|
6
|
-
* means the browser and repository guard cannot drift into different ideas of
|
|
7
|
-
* which values are renderable.
|
|
8
|
-
* @module scripts/check-ui-demo-data
|
|
9
|
-
*/
|
|
10
|
-
import { readFileSync } from "node:fs";
|
|
11
|
-
import path from "node:path";
|
|
12
|
-
import vm from "node:vm";
|
|
13
|
-
|
|
14
|
-
import { invokedAsScript } from "./lib/invoked-as-script.mjs";
|
|
15
|
-
|
|
16
|
-
const START_MARKER = "/* LISA_UI_CATALOG_START */";
|
|
17
|
-
const END_MARKER = "/* LISA_UI_CATALOG_END */";
|
|
18
|
-
const DEFAULT_UI_FILE = path.resolve("ui/index.html");
|
|
19
|
-
const VM_TIMEOUT_MS = 2_000;
|
|
20
|
-
|
|
21
|
-
/**
|
|
22
|
-
* Extract exactly one bounded catalog program from the HTML document.
|
|
23
|
-
* @param {string} html - Complete UI HTML
|
|
24
|
-
* @returns {string} Catalog JavaScript including the shared audit seam
|
|
25
|
-
*/
|
|
26
|
-
export function extractUiCatalogProgram(html) {
|
|
27
|
-
const start = html.indexOf(START_MARKER);
|
|
28
|
-
const end = html.indexOf(END_MARKER);
|
|
29
|
-
if (start === -1 || end === -1 || end <= start) {
|
|
30
|
-
throw new Error(
|
|
31
|
-
`UI catalog markers are missing or out of order (${START_MARKER}, ${END_MARKER})`
|
|
32
|
-
);
|
|
33
|
-
}
|
|
34
|
-
if (
|
|
35
|
-
html.indexOf(START_MARKER, start + START_MARKER.length) !== -1 ||
|
|
36
|
-
html.indexOf(END_MARKER, end + END_MARKER.length) !== -1
|
|
37
|
-
) {
|
|
38
|
-
throw new Error("UI catalog markers must each occur exactly once");
|
|
39
|
-
}
|
|
40
|
-
return html.slice(start + START_MARKER.length, end);
|
|
41
|
-
}
|
|
42
|
-
|
|
43
|
-
/**
|
|
44
|
-
* Audit an HTML catalog and optionally exercise the live preparation path.
|
|
45
|
-
* @param {string} html - Complete UI HTML
|
|
46
|
-
* @param {{liveConfigPresent?: boolean, liveConfig?: unknown, filename?: string}} [options]
|
|
47
|
-
* @returns {{audit: {inspected: number, sections: number, violations: string[]}, preparation: object|null, catalog: object}}
|
|
48
|
-
*/
|
|
49
|
-
export function inspectUiDemoData(html, options = {}) {
|
|
50
|
-
const context = vm.createContext(
|
|
51
|
-
{
|
|
52
|
-
__liveConfigPresent: options.liveConfigPresent === true,
|
|
53
|
-
__liveConfig: options.liveConfig,
|
|
54
|
-
},
|
|
55
|
-
{
|
|
56
|
-
codeGeneration: { strings: false, wasm: false },
|
|
57
|
-
name: "lisa-ui-demo-data-audit",
|
|
58
|
-
}
|
|
59
|
-
);
|
|
60
|
-
const program = `${extractUiCatalogProgram(html)}
|
|
61
|
-
const __auditResult = auditUiCatalog(DATA);
|
|
62
|
-
const __preparationResult = globalThis.__liveConfigPresent
|
|
63
|
-
? prepareUiCatalogForLive(DATA, globalThis.__liveConfig)
|
|
64
|
-
: null;
|
|
65
|
-
globalThis.__inspectionResult = {
|
|
66
|
-
audit: __auditResult,
|
|
67
|
-
preparation: __preparationResult,
|
|
68
|
-
catalog: DATA
|
|
69
|
-
};
|
|
70
|
-
`;
|
|
71
|
-
// The bounded catalog source is intentionally executed in a context with
|
|
72
|
-
// string/wasm code generation disabled and a hard timeout. This is the
|
|
73
|
-
// guard's shared-seam contract, not application input.
|
|
74
|
-
// eslint-disable-next-line sonarjs/code-eval -- Evaluate only the extracted catalog inside the locked VM above.
|
|
75
|
-
vm.runInContext(program, context, {
|
|
76
|
-
displayErrors: true,
|
|
77
|
-
filename: options.filename || "ui/index.html#catalog",
|
|
78
|
-
timeout: VM_TIMEOUT_MS,
|
|
79
|
-
});
|
|
80
|
-
return context.__inspectionResult;
|
|
81
|
-
}
|
|
82
|
-
|
|
83
|
-
/** Run the repository guard against a supplied file or the real UI. */
|
|
84
|
-
function main() {
|
|
85
|
-
const file = path.resolve(process.argv[2] || DEFAULT_UI_FILE);
|
|
86
|
-
try {
|
|
87
|
-
const inspection = inspectUiDemoData(readFileSync(file, "utf8"), {
|
|
88
|
-
filename: file,
|
|
89
|
-
});
|
|
90
|
-
process.stdout.write(
|
|
91
|
-
`[ui-demo-data] PASS: inspected ${inspection.audit.inspected} rendered values across ${inspection.audit.sections} sections\n`
|
|
92
|
-
);
|
|
93
|
-
} catch (error) {
|
|
94
|
-
const message = error instanceof Error ? error.message : String(error);
|
|
95
|
-
process.stderr.write(`[ui-demo-data] FAIL: ${message}\n`);
|
|
96
|
-
process.exitCode = 1;
|
|
97
|
-
}
|
|
98
|
-
}
|
|
99
|
-
|
|
100
|
-
if (invokedAsScript(import.meta.url)) {
|
|
101
|
-
main();
|
|
102
|
-
}
|