weapp-ide-cli 6.2.0 → 6.4.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/README.md +61 -3
- package/dist/automator-BqhUtMJp.js +1 -0
- package/dist/{automator-CRpB6_pA.js → automator-Esp3BjoT.js} +391 -152
- package/dist/automator-session-Ba27VW0_.js +184 -0
- package/dist/{sessionStore-zdzy2UFM.js → automatorProject-DPU-pEF0.js} +497 -240
- package/dist/{cli-ChMQqi5w.js → cli-Dd1RJ5PH.js} +396 -115
- package/dist/cli.js +3 -4
- package/dist/{commands-C1PF1B4P.js → commands-5entj0Rh.js} +5 -6
- package/dist/commands-DR-8MVFm.js +1 -0
- package/dist/{devtoolsProjectOwnership-yDD6h0dO.js → devtoolsProjectOwnership-C4jj8msU.js} +478 -155
- package/dist/index.d.ts +111 -137
- package/dist/index.js +8 -8
- package/dist/{managed-Sq8y8FzP.js → managed-hSCZXTon.js} +109 -59
- package/dist/{run-mcp-Dl_1TH1x.js → run-mcp-CbmskSgr.js} +14 -7
- package/dist/run-mcp-D1w7-oPp.js +1 -0
- package/package.json +12 -12
- package/dist/automator-BkZZsGtn.js +0 -1
- package/dist/automator-session-gWEsSs_A.js +0 -558
- package/dist/commands-CZVPfkE9.js +0 -1
- package/dist/run-mcp-CPv8cesh.js +0 -1
package/dist/cli.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { n as parse } from "./cli-
|
|
1
|
+
import { M as logger } from "./automatorProject-DPU-pEF0.js";
|
|
2
|
+
import { n as parse } from "./cli-Dd1RJ5PH.js";
|
|
3
3
|
import process from "node:process";
|
|
4
|
-
|
|
4
|
+
// src/cli.ts
|
|
5
5
|
const argv = process.argv.slice(2);
|
|
6
6
|
try {
|
|
7
7
|
await parse(argv);
|
|
@@ -11,5 +11,4 @@ try {
|
|
|
11
11
|
else if (typeof err?.code === "number") process.exitCode = err.code;
|
|
12
12
|
else process.exitCode = 1;
|
|
13
13
|
}
|
|
14
|
-
//#endregion
|
|
15
14
|
export {};
|
|
@@ -1,10 +1,11 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import { M as logger, j as colors } from "./automatorProject-DPU-pEF0.js";
|
|
2
|
+
import { M as i18nText } from "./automator-Esp3BjoT.js";
|
|
3
|
+
import { l as withMiniProgram } from "./automator-session-Ba27VW0_.js";
|
|
3
4
|
import path from "node:path";
|
|
4
5
|
import fs from "node:fs/promises";
|
|
5
6
|
import { Buffer } from "node:buffer";
|
|
6
7
|
import { PNG } from "pngjs";
|
|
7
|
-
|
|
8
|
+
// src/cli/fullPageScreenshot.ts
|
|
8
9
|
const MAX_FULL_PAGE_CAPTURES = 200;
|
|
9
10
|
const DEVTOOLS_INSPECTEE_REFERENCE_ERROR = /__inspectee__ is not defined|Can't find variable:\s*__inspectee__/i;
|
|
10
11
|
function decodeScreenshotBuffer(raw) {
|
|
@@ -223,8 +224,7 @@ async function captureFullPageScreenshotBuffer(options) {
|
|
|
223
224
|
}
|
|
224
225
|
return PNG.sync.write(merged);
|
|
225
226
|
}
|
|
226
|
-
|
|
227
|
-
//#region src/cli/commands.ts
|
|
227
|
+
// src/cli/commands.ts
|
|
228
228
|
function createTimeoutError(message, code) {
|
|
229
229
|
const error = new Error(message);
|
|
230
230
|
error.code = code;
|
|
@@ -524,5 +524,4 @@ async function remote(options) {
|
|
|
524
524
|
logger.success(enable ? i18nText("远程调试已开启", "Remote debugging enabled") : i18nText("远程调试已关闭", "Remote debugging disabled"));
|
|
525
525
|
});
|
|
526
526
|
}
|
|
527
|
-
//#endregion
|
|
528
527
|
export { navigateBack as a, pageStack as c, remote as d, scrollTo as f, tap as g, takeScreenshot as h, input as i, reLaunch as l, systemInfo as m, captureScreenshotBuffer as n, navigateTo as o, switchTab as p, currentPage as r, pageData as s, audit as t, redirectTo as u };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { h as takeScreenshot } from "./commands-5entj0Rh.js";
|