@midscene/ios 1.0.2 → 1.0.3-beta-20251223004639.0
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/bin.mjs +20 -2
- package/dist/lib/bin.js +20 -2
- package/package.json +5 -5
- package/static/index.html +1 -1
- package/static/static/js/{index.da65930a.js → index.af7dda97.js} +4 -4
- package/static/static/js/index.af7dda97.js.map +1 -0
- package/static/static/js/index.da65930a.js.map +0 -1
- /package/static/static/js/{index.da65930a.js.LICENSE.txt → index.af7dda97.js.LICENSE.txt} +0 -0
package/dist/es/bin.mjs
CHANGED
|
@@ -11672,7 +11672,11 @@ class PlaygroundServer {
|
|
|
11672
11672
|
response.error = formatErrorMessage(error);
|
|
11673
11673
|
}
|
|
11674
11674
|
try {
|
|
11675
|
-
|
|
11675
|
+
const dumpString = this.agent.dumpDataString();
|
|
11676
|
+
if (dumpString) {
|
|
11677
|
+
const groupedDump = JSON.parse(dumpString);
|
|
11678
|
+
response.dump = groupedDump.executions?.[0] || null;
|
|
11679
|
+
} else response.dump = null;
|
|
11676
11680
|
response.reportHTML = this.agent.reportHTMLString() || null;
|
|
11677
11681
|
this.agent.writeOutActionDumps();
|
|
11678
11682
|
this.agent.resetDump();
|
|
@@ -11700,12 +11704,26 @@ class PlaygroundServer {
|
|
|
11700
11704
|
message: 'Task not found or already completed'
|
|
11701
11705
|
});
|
|
11702
11706
|
console.log(`Cancelling task: ${requestId}`);
|
|
11707
|
+
let dump = null;
|
|
11708
|
+
let reportHTML = null;
|
|
11709
|
+
try {
|
|
11710
|
+
const dumpString = this.agent.dumpDataString?.();
|
|
11711
|
+
if (dumpString) {
|
|
11712
|
+
const groupedDump = JSON.parse(dumpString);
|
|
11713
|
+
dump = groupedDump.executions?.[0] || null;
|
|
11714
|
+
}
|
|
11715
|
+
reportHTML = this.agent.reportHTMLString?.() || null;
|
|
11716
|
+
} catch (error) {
|
|
11717
|
+
console.warn('Failed to get execution data before cancel:', error);
|
|
11718
|
+
}
|
|
11703
11719
|
await this.recreateAgent();
|
|
11704
11720
|
delete this.taskProgressMessages[requestId];
|
|
11705
11721
|
this.currentTaskId = null;
|
|
11706
11722
|
res.json({
|
|
11707
11723
|
status: 'cancelled',
|
|
11708
|
-
message: 'Task cancelled successfully
|
|
11724
|
+
message: 'Task cancelled successfully',
|
|
11725
|
+
dump,
|
|
11726
|
+
reportHTML
|
|
11709
11727
|
});
|
|
11710
11728
|
} catch (error) {
|
|
11711
11729
|
const errorMessage = error instanceof Error ? error.message : 'Unknown error';
|
package/dist/lib/bin.js
CHANGED
|
@@ -11816,7 +11816,11 @@ var __webpack_exports__ = {};
|
|
|
11816
11816
|
response.error = formatErrorMessage(error);
|
|
11817
11817
|
}
|
|
11818
11818
|
try {
|
|
11819
|
-
|
|
11819
|
+
const dumpString = this.agent.dumpDataString();
|
|
11820
|
+
if (dumpString) {
|
|
11821
|
+
const groupedDump = JSON.parse(dumpString);
|
|
11822
|
+
response.dump = groupedDump.executions?.[0] || null;
|
|
11823
|
+
} else response.dump = null;
|
|
11820
11824
|
response.reportHTML = this.agent.reportHTMLString() || null;
|
|
11821
11825
|
this.agent.writeOutActionDumps();
|
|
11822
11826
|
this.agent.resetDump();
|
|
@@ -11844,12 +11848,26 @@ var __webpack_exports__ = {};
|
|
|
11844
11848
|
message: 'Task not found or already completed'
|
|
11845
11849
|
});
|
|
11846
11850
|
console.log(`Cancelling task: ${requestId}`);
|
|
11851
|
+
let dump = null;
|
|
11852
|
+
let reportHTML = null;
|
|
11853
|
+
try {
|
|
11854
|
+
const dumpString = this.agent.dumpDataString?.();
|
|
11855
|
+
if (dumpString) {
|
|
11856
|
+
const groupedDump = JSON.parse(dumpString);
|
|
11857
|
+
dump = groupedDump.executions?.[0] || null;
|
|
11858
|
+
}
|
|
11859
|
+
reportHTML = this.agent.reportHTMLString?.() || null;
|
|
11860
|
+
} catch (error) {
|
|
11861
|
+
console.warn('Failed to get execution data before cancel:', error);
|
|
11862
|
+
}
|
|
11847
11863
|
await this.recreateAgent();
|
|
11848
11864
|
delete this.taskProgressMessages[requestId];
|
|
11849
11865
|
this.currentTaskId = null;
|
|
11850
11866
|
res.json({
|
|
11851
11867
|
status: 'cancelled',
|
|
11852
|
-
message: 'Task cancelled successfully
|
|
11868
|
+
message: 'Task cancelled successfully',
|
|
11869
|
+
dump,
|
|
11870
|
+
reportHTML
|
|
11853
11871
|
});
|
|
11854
11872
|
} catch (error) {
|
|
11855
11873
|
const errorMessage = error instanceof Error ? error.message : 'Unknown error';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@midscene/ios",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.3-beta-20251223004639.0",
|
|
4
4
|
"description": "iOS automation library for Midscene",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"iOS UI automation",
|
|
@@ -38,9 +38,9 @@
|
|
|
38
38
|
"dependencies": {
|
|
39
39
|
"@inquirer/prompts": "^7.8.6",
|
|
40
40
|
"open": "10.1.0",
|
|
41
|
-
"@midscene/core": "1.0.
|
|
42
|
-
"@midscene/shared": "1.0.
|
|
43
|
-
"@midscene/webdriver": "1.0.
|
|
41
|
+
"@midscene/core": "1.0.3-beta-20251223004639.0",
|
|
42
|
+
"@midscene/shared": "1.0.3-beta-20251223004639.0",
|
|
43
|
+
"@midscene/webdriver": "1.0.3-beta-20251223004639.0"
|
|
44
44
|
},
|
|
45
45
|
"devDependencies": {
|
|
46
46
|
"@rslib/core": "^0.18.3",
|
|
@@ -50,7 +50,7 @@
|
|
|
50
50
|
"tsx": "^4.19.2",
|
|
51
51
|
"vitest": "3.0.5",
|
|
52
52
|
"zod": "3.24.3",
|
|
53
|
-
"@midscene/playground": "1.0.
|
|
53
|
+
"@midscene/playground": "1.0.3-beta-20251223004639.0"
|
|
54
54
|
},
|
|
55
55
|
"license": "MIT",
|
|
56
56
|
"scripts": {
|
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/430.53da0b9c.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/430.53da0b9c.js"></script><script defer src="/static/js/index.af7dda97.js"></script><link href="/static/css/index.f2964c15.css" rel="stylesheet"></head><body><div id="root"></div></body></html>
|