sisyphi 1.1.39 → 1.2.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/daemon.js CHANGED
@@ -336,7 +336,7 @@ var init_config = __esm({
336
336
  },
337
337
  companionPopup: true,
338
338
  requiredPlugins: [
339
- { name: "devcore", marketplace: "crouton-kit" }
339
+ { name: "devcore", marketplace: "crouton-kit", owner: "crouton-labs" }
340
340
  ]
341
341
  };
342
342
  }
@@ -7470,9 +7470,23 @@ function formatDuration2(startOrMs, endIso) {
7470
7470
  if (minutes > 0) return `${minutes}m${seconds}s`;
7471
7471
  return `${seconds}s`;
7472
7472
  }
7473
+ function wrap(open, close = "\x1B[0m") {
7474
+ return (s) => COLOR_ENABLED ? `${open}${s}${close}` : s;
7475
+ }
7476
+ var COLOR_ENABLED, bold, dim, red, green, yellow, cyan, gray, magenta, white;
7473
7477
  var init_format = __esm({
7474
7478
  "src/shared/format.ts"() {
7475
7479
  "use strict";
7480
+ COLOR_ENABLED = process.env["FORCE_COLOR"] === "1" || process.stdout.isTTY === true && process.env["NO_COLOR"] === void 0 && process.env["TERM"] !== "dumb";
7481
+ bold = wrap("\x1B[1m");
7482
+ dim = wrap("\x1B[2m");
7483
+ red = wrap("\x1B[31m");
7484
+ green = wrap("\x1B[32m");
7485
+ yellow = wrap("\x1B[33m");
7486
+ cyan = wrap("\x1B[36m");
7487
+ gray = wrap("\x1B[90m");
7488
+ magenta = wrap("\x1B[35m");
7489
+ white = wrap("\x1B[37m");
7476
7490
  }
7477
7491
  });
7478
7492