@midscene/cli 0.12.8 → 0.12.9-beta-20250320033304.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/index.js +8 -8
- package/dist/es/index.js.map +1 -1
- package/dist/lib/index.js +11 -11
- package/dist/lib/index.js.map +1 -1
- package/package.json +3 -3
package/dist/es/index.js
CHANGED
|
@@ -13955,7 +13955,7 @@ Usage: $0 [options] <path-to-yaml-script-file-or-directory>`
|
|
|
13955
13955
|
default: false,
|
|
13956
13956
|
description: "Keep the browser window open after the script finishes. This is useful when debugging, but will consume more resources"
|
|
13957
13957
|
}
|
|
13958
|
-
}).version("version", "Show version number", "0.12.
|
|
13958
|
+
}).version("version", "Show version number", "0.12.9-beta-20250320033304.0").help().wrap(yargs_default().terminalWidth());
|
|
13959
13959
|
const argv = await args.argv;
|
|
13960
13960
|
return {
|
|
13961
13961
|
path: argv._[0],
|
|
@@ -13983,7 +13983,6 @@ import { createServer } from "http-server";
|
|
|
13983
13983
|
// src/printer.ts
|
|
13984
13984
|
var import_chalk = __toESM(require_source());
|
|
13985
13985
|
import { basename as basename2, dirname as dirname3, relative as relative2 } from "path";
|
|
13986
|
-
import { flowItemBrief } from "@midscene/web/yaml";
|
|
13987
13986
|
var isTTY = process.env.MIDSCENE_CLI_LOG_ON_NON_TTY ? false : process.stdout.isTTY;
|
|
13988
13987
|
var indent = " ";
|
|
13989
13988
|
var spinnerInterval = 80;
|
|
@@ -14022,7 +14021,10 @@ ${indent}${import_chalk.default.gray(`output: ${outputFile}`)}` : "";
|
|
|
14022
14021
|
const reportFileToShow = relative2(process.cwd(), reportFile || "");
|
|
14023
14022
|
const reportText = reportFile ? `
|
|
14024
14023
|
${indent}${import_chalk.default.gray(`report: ./${reportFileToShow}`)}` : "";
|
|
14025
|
-
const
|
|
14024
|
+
const agentStatusTip = context.player.agentStatusTip;
|
|
14025
|
+
const agentStatusText = agentStatusTip ? `
|
|
14026
|
+
${indent}${import_chalk.default.gray(`agent status: ${agentStatusTip}`)}` : "";
|
|
14027
|
+
const mergedText = `${fileStatusText} ${fileNameToPrint} ${contextActionText}${outputText}${reportText}${errorText}${agentStatusText}`.trim();
|
|
14026
14028
|
return {
|
|
14027
14029
|
fileNameToPrint,
|
|
14028
14030
|
fileStatusText,
|
|
@@ -14040,14 +14042,12 @@ var singleTaskInfo = (task) => {
|
|
|
14040
14042
|
if (typeof task.currentStep === "undefined") {
|
|
14041
14043
|
stepText = import_chalk.default.gray("(navigating)");
|
|
14042
14044
|
} else if (typeof task.currentStep === "number") {
|
|
14043
|
-
const
|
|
14044
|
-
const taskBrief = currentFlowItem && flowItemBrief(currentFlowItem);
|
|
14045
|
-
const actionText = taskBrief ? `, ${taskBrief}` : "";
|
|
14045
|
+
const actionText = "";
|
|
14046
14046
|
stepText = import_chalk.default.gray(
|
|
14047
|
-
`(
|
|
14047
|
+
`(task ${task.currentStep + 1}/${task.totalSteps}${actionText})`.trim()
|
|
14048
14048
|
);
|
|
14049
14049
|
} else {
|
|
14050
|
-
stepText = import_chalk.default.gray("(unknown
|
|
14050
|
+
stepText = import_chalk.default.gray("(unknown task)");
|
|
14051
14051
|
}
|
|
14052
14052
|
}
|
|
14053
14053
|
const errorText = task.status === "error" ? `
|