@midscene/playground 1.4.1 → 1.4.2
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/es/server.mjs +78 -0
- package/dist/es/server.mjs.map +1 -1
- package/dist/lib/server.js +79 -0
- package/dist/lib/server.js.map +1 -1
- package/dist/types/server.d.ts +10 -0
- package/package.json +3 -3
- package/static/index.html +1 -1
- package/static/static/js/{index.b87668f7.js → index.5aaeb49d.js} +3 -3
- package/static/static/js/index.5aaeb49d.js.map +1 -0
- package/static/static/js/index.b87668f7.js.map +0 -1
- /package/static/static/js/{index.b87668f7.js.LICENSE.txt → index.5aaeb49d.js.LICENSE.txt} +0 -0
package/dist/types/server.d.ts
CHANGED
|
@@ -13,6 +13,7 @@ declare class PlaygroundServer {
|
|
|
13
13
|
taskExecutionDumps: Record<string, ExecutionDump | null>;
|
|
14
14
|
id: string;
|
|
15
15
|
private _initialized;
|
|
16
|
+
private _nativeMjpegAvailable;
|
|
16
17
|
private agentFactory?;
|
|
17
18
|
private currentTaskId;
|
|
18
19
|
constructor(agent: PageAgent | (() => PageAgent) | (() => Promise<PageAgent>), staticPath?: string, id?: string);
|
|
@@ -55,6 +56,15 @@ declare class PlaygroundServer {
|
|
|
55
56
|
* Setup all API routes
|
|
56
57
|
*/
|
|
57
58
|
private setupRoutes;
|
|
59
|
+
/**
|
|
60
|
+
* Probe and proxy a native MJPEG stream (e.g. WDA MJPEG server).
|
|
61
|
+
* Result is cached so we only probe once per server lifetime.
|
|
62
|
+
*/
|
|
63
|
+
private probeAndProxyNativeMjpeg;
|
|
64
|
+
/**
|
|
65
|
+
* Stream screenshots as MJPEG by polling screenshotBase64().
|
|
66
|
+
*/
|
|
67
|
+
private startPollingMjpegStream;
|
|
58
68
|
/**
|
|
59
69
|
* Setup static file serving routes
|
|
60
70
|
*/
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@midscene/playground",
|
|
3
|
-
"version": "1.4.
|
|
3
|
+
"version": "1.4.2",
|
|
4
4
|
"description": "Midscene playground utilities for web integration",
|
|
5
5
|
"author": "midscene team",
|
|
6
6
|
"license": "MIT",
|
|
@@ -25,8 +25,8 @@
|
|
|
25
25
|
"express": "^4.21.2",
|
|
26
26
|
"open": "10.1.0",
|
|
27
27
|
"uuid": "11.1.0",
|
|
28
|
-
"@midscene/core": "1.4.
|
|
29
|
-
"@midscene/shared": "1.4.
|
|
28
|
+
"@midscene/core": "1.4.2",
|
|
29
|
+
"@midscene/shared": "1.4.2"
|
|
30
30
|
},
|
|
31
31
|
"devDependencies": {
|
|
32
32
|
"@rslib/core": "^0.18.3",
|
package/static/index.html
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
<!doctype html><html><head><link rel="icon" href="/favicon.ico"><title>Midscene Playground</title><meta charset="UTF-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><script defer src="/static/js/lib-react.7b1abe58.js"></script><script defer src="/static/js/853.673222dd.js"></script><script defer src="/static/js/index.
|
|
1
|
+
<!doctype html><html><head><link rel="icon" href="/favicon.ico"><title>Midscene Playground</title><meta charset="UTF-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><script defer src="/static/js/lib-react.7b1abe58.js"></script><script defer src="/static/js/853.673222dd.js"></script><script defer src="/static/js/index.5aaeb49d.js"></script><link href="/static/css/index.33fcd75b.css" rel="stylesheet"></head><body><div id="root"></div></body></html>
|