@midscene/cli 1.10.0 → 1.10.1-beta-20260625084308.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.
@@ -3305,7 +3305,11 @@ async function createYamlPlayer(file, script, options) {
3305
3305
  }
3306
3306
  var source = __webpack_require__("../../node_modules/.pnpm/chalk@4.1.2/node_modules/chalk/source/index.js");
3307
3307
  var source_default = /*#__PURE__*/ __webpack_require__.n(source);
3308
- const isTTY = process.env.MIDSCENE_CLI_LOG_ON_NON_TTY ? false : process.stdout.isTTY;
3308
+ function resolveIsTTY(env = process.env, stdoutIsTTY = process.stdout.isTTY) {
3309
+ if (env.MIDSCENE_CLI_LOG_ON_NON_TTY || env.NO_COLOR || 'dumb' === env.TERM || env.CI) return false;
3310
+ return Boolean(stdoutIsTTY);
3311
+ }
3312
+ const isTTY = resolveIsTTY();
3309
3313
  const indent = ' ';
3310
3314
  const spinnerInterval = 80;
3311
3315
  const spinnerFrames = [