@drisp/cli 0.5.20 → 0.5.21

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.
@@ -2440,7 +2440,7 @@ var cachedVersion = null;
2440
2440
  function readVersion() {
2441
2441
  if (cachedVersion !== null) return cachedVersion;
2442
2442
  try {
2443
- const injected = "0.5.20";
2443
+ const injected = "0.5.21";
2444
2444
  if (typeof injected === "string" && injected.length > 0) {
2445
2445
  cachedVersion = injected;
2446
2446
  return cachedVersion;
package/dist/cli.js CHANGED
@@ -6258,7 +6258,7 @@ function renderSegments(segments, summary, width, theme, opTag, error = false) {
6258
6258
  if (usedWidth >= width) break;
6259
6259
  const remaining = width - usedWidth;
6260
6260
  const normalizedText = normalizePathPrefix(seg.text);
6261
- const text = normalizedText.length > remaining ? normalizedText.slice(0, remaining) : normalizedText;
6261
+ const text = normalizedText.length > remaining ? fit(normalizedText, remaining) : normalizedText;
6262
6262
  const styled = source_default.hex(roleColor(seg.role))(text);
6263
6263
  result += shouldDim ? source_default.dim(styled) : styled;
6264
6264
  usedWidth += text.length;
@@ -6500,7 +6500,7 @@ function lineParts({
6500
6500
  const detail = formatDetails({
6501
6501
  segments: detailSummaryInfo.segments,
6502
6502
  summary: detailSummaryInfo.summary,
6503
- outcome: entry.summaryOutcome,
6503
+ outcome: errorActive ? entry.summaryOutcome : void 0,
6504
6504
  outcomeZero: entry.summaryOutcomeZero,
6505
6505
  error: errorActive,
6506
6506
  mode: "full",
@@ -12604,7 +12604,7 @@ var cachedVersion = null;
12604
12604
  function readPackageVersion() {
12605
12605
  if (cachedVersion !== null) return cachedVersion;
12606
12606
  try {
12607
- const injected = "0.5.20";
12607
+ const injected = "0.5.21";
12608
12608
  if (typeof injected === "string" && injected.length > 0) {
12609
12609
  cachedVersion = injected;
12610
12610
  return cachedVersion;
package/package.json CHANGED
@@ -17,7 +17,7 @@
17
17
  "hooks",
18
18
  "dashboard"
19
19
  ],
20
- "version": "0.5.20",
20
+ "version": "0.5.21",
21
21
  "license": "MIT",
22
22
  "bin": {
23
23
  "athena": "dist/cli.js",