@midscene/web 0.17.5-beta-20250530102932.0 → 0.17.5
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/agent.js +10 -4
- package/dist/es/agent.js.map +1 -1
- package/dist/es/bridge-mode-browser.js +3 -3
- package/dist/es/bridge-mode-browser.js.map +1 -1
- package/dist/es/bridge-mode.js +12 -6
- package/dist/es/bridge-mode.js.map +1 -1
- package/dist/es/chrome-extension.js +11 -5
- package/dist/es/chrome-extension.js.map +1 -1
- package/dist/es/index.js +10 -4
- package/dist/es/index.js.map +1 -1
- package/dist/es/midscene-playground.js +10 -4
- package/dist/es/midscene-playground.js.map +1 -1
- package/dist/es/midscene-server.js.map +1 -1
- package/dist/es/playground.js +10 -4
- package/dist/es/playground.js.map +1 -1
- package/dist/es/playwright-report.js +1 -1
- package/dist/es/playwright-report.js.map +1 -1
- package/dist/es/playwright.js +10 -4
- package/dist/es/playwright.js.map +1 -1
- package/dist/es/puppeteer-agent-launcher.js +10 -4
- package/dist/es/puppeteer-agent-launcher.js.map +1 -1
- package/dist/es/puppeteer.js +10 -4
- package/dist/es/puppeteer.js.map +1 -1
- package/dist/es/utils.js +1 -1
- package/dist/es/utils.js.map +1 -1
- package/dist/lib/agent.js +8 -2
- package/dist/lib/agent.js.map +1 -1
- package/dist/lib/bridge-mode-browser.js +3 -3
- package/dist/lib/bridge-mode-browser.js.map +1 -1
- package/dist/lib/bridge-mode.js +10 -4
- package/dist/lib/bridge-mode.js.map +1 -1
- package/dist/lib/chrome-extension.js +9 -3
- package/dist/lib/chrome-extension.js.map +1 -1
- package/dist/lib/index.js +8 -2
- package/dist/lib/index.js.map +1 -1
- package/dist/lib/midscene-playground.js +8 -2
- package/dist/lib/midscene-playground.js.map +1 -1
- package/dist/lib/midscene-server.js.map +1 -1
- package/dist/lib/playground.js +8 -2
- package/dist/lib/playground.js.map +1 -1
- package/dist/lib/playwright-report.js +1 -1
- package/dist/lib/playwright-report.js.map +1 -1
- package/dist/lib/playwright.js +8 -2
- package/dist/lib/playwright.js.map +1 -1
- package/dist/lib/puppeteer-agent-launcher.js +8 -2
- package/dist/lib/puppeteer-agent-launcher.js.map +1 -1
- package/dist/lib/puppeteer.js +8 -2
- package/dist/lib/puppeteer.js.map +1 -1
- package/dist/lib/utils.js +1 -1
- package/dist/lib/utils.js.map +1 -1
- package/package.json +3 -3
package/dist/es/agent.js
CHANGED
|
@@ -563,7 +563,7 @@ function printReportMsg(filepath) {
|
|
|
563
563
|
logMsg(`Midscene - report file updated: ${filepath}`);
|
|
564
564
|
}
|
|
565
565
|
function replaceIllegalPathCharsAndSpace(str) {
|
|
566
|
-
return str.replace(/[
|
|
566
|
+
return str.replace(/[:*?"<>| ]/g, "-");
|
|
567
567
|
}
|
|
568
568
|
function matchElementFromPlan(planLocateParam, tree) {
|
|
569
569
|
if (!planLocateParam) {
|
|
@@ -1696,8 +1696,8 @@ function buildPlans(type, locateParam, param) {
|
|
|
1696
1696
|
|
|
1697
1697
|
// src/common/task-cache.ts
|
|
1698
1698
|
import assert6 from "assert";
|
|
1699
|
-
import { existsSync as existsSync2, readFileSync, writeFileSync as writeFileSync2 } from "fs";
|
|
1700
|
-
import { join as join2 } from "path";
|
|
1699
|
+
import { existsSync as existsSync2, mkdirSync as mkdirSync2, readFileSync, writeFileSync as writeFileSync2 } from "fs";
|
|
1700
|
+
import { dirname as dirname2, join as join2 } from "path";
|
|
1701
1701
|
import { getMidsceneRunSubDir as getMidsceneRunSubDir2 } from "@midscene/shared/common";
|
|
1702
1702
|
import { getDebug as getDebug3 } from "@midscene/shared/logger";
|
|
1703
1703
|
import { ifInBrowser as ifInBrowser2 } from "@midscene/shared/utils";
|
|
@@ -1705,7 +1705,7 @@ import yaml3 from "js-yaml";
|
|
|
1705
1705
|
import semver from "semver";
|
|
1706
1706
|
|
|
1707
1707
|
// package.json
|
|
1708
|
-
var version = "0.17.5
|
|
1708
|
+
var version = "0.17.5";
|
|
1709
1709
|
|
|
1710
1710
|
// src/common/task-cache.ts
|
|
1711
1711
|
var debug3 = getDebug3("cache");
|
|
@@ -1836,8 +1836,14 @@ cache file: ${cacheFile}`
|
|
|
1836
1836
|
return;
|
|
1837
1837
|
}
|
|
1838
1838
|
try {
|
|
1839
|
+
const dir = dirname2(this.cacheFilePath);
|
|
1840
|
+
if (!existsSync2(dir)) {
|
|
1841
|
+
mkdirSync2(dir, { recursive: true });
|
|
1842
|
+
debug3("created cache directory: %s", dir);
|
|
1843
|
+
}
|
|
1839
1844
|
const yamlData = yaml3.dump(this.cache);
|
|
1840
1845
|
writeFileSync2(this.cacheFilePath, yamlData);
|
|
1846
|
+
debug3("cache flushed to file: %s", this.cacheFilePath);
|
|
1841
1847
|
} catch (err) {
|
|
1842
1848
|
debug3(
|
|
1843
1849
|
"write cache to file failed, path: %s, error: %s",
|