@scenetest/vite-plugin 0.8.3 → 0.9.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/analyze-app.d.ts +24 -0
- package/dist/analyze-app.d.ts.map +1 -0
- package/dist/analyze-app.js +807 -0
- package/dist/analyze-app.js.map +1 -0
- package/dist/index.d.ts +3 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +13 -2
- package/dist/index.js.map +1 -1
- package/dist/middleware.d.ts +3 -1
- package/dist/middleware.d.ts.map +1 -1
- package/dist/middleware.js +280 -1
- package/dist/middleware.js.map +1 -1
- package/package.json +6 -4
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Self-contained interactive analyze app served at `/__scenetest/`.
|
|
3
|
+
*
|
|
4
|
+
* Uses Preact + htm via a `<script type="importmap">` that points each
|
|
5
|
+
* bare specifier ("preact", "preact/hooks", "htm") at a middleware route
|
|
6
|
+
* (see `middleware.ts`, VENDOR_MODULES) which serves the matching ESM
|
|
7
|
+
* bundle out of the plugin's own node_modules. No build step, no CDN.
|
|
8
|
+
*
|
|
9
|
+
* Two views over the same RunReport shape:
|
|
10
|
+
* - "Log" — filterable / groupable scene list with copy-failures
|
|
11
|
+
* and a spec-snippet panel for reproducing manually.
|
|
12
|
+
* - "Waterfall" — links out to /__scenetest/dashboard (existing page).
|
|
13
|
+
*
|
|
14
|
+
* Data sources (chosen via the run-picker in the header):
|
|
15
|
+
* - "live" — subscribes to /__scenetest/events (SSE) and folds
|
|
16
|
+
* the DashboardEvent stream into a RunReport-shaped
|
|
17
|
+
* in-memory model.
|
|
18
|
+
* - <timestamped run id> — fetched from /__scenetest/runs/<id> (a JSON
|
|
19
|
+
* file written by the CLI runner).
|
|
20
|
+
*
|
|
21
|
+
* Spec snippet for a selected scene is fetched lazily from /__scenetest/source.
|
|
22
|
+
*/
|
|
23
|
+
export declare function generateAnalyzeAppHtml(): string;
|
|
24
|
+
//# sourceMappingURL=analyze-app.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"analyze-app.d.ts","sourceRoot":"","sources":["../src/analyze-app.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;GAqBG;AACH,wBAAgB,sBAAsB,IAAI,MAAM,CAuB/C"}
|