claude-scope 0.4.1 → 0.4.3

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.
@@ -440,8 +440,10 @@ function colorize(text, color) {
440
440
  }
441
441
 
442
442
  // src/ui/utils/colors.ts
443
+ var reset = "\x1B[0m";
443
444
  var red = "\x1B[31m";
444
445
  var gray = "\x1B[90m";
446
+ var bold = "\x1B[1m";
445
447
 
446
448
  // src/ui/theme/default-theme.ts
447
449
  var DEFAULT_THEME = {
@@ -1280,18 +1282,16 @@ var PokerWidget = class extends StdinDataWidget {
1280
1282
  }
1281
1283
  /**
1282
1284
  * Format card based on participation in best hand
1283
- * Participating cards: [K♠] (with brackets)
1284
- * Non-participating cards: K♠ (spaces instead of brackets)
1285
+ * Participating cards: (K♠) with color + BOLD
1286
+ * Non-participating cards: K♠ with color, no brackets
1285
1287
  */
1286
1288
  formatCardByParticipation(cardData, isParticipating) {
1289
+ const color = isRedSuit(cardData.card.suit) ? red : gray;
1290
+ const cardText = formatCard(cardData.card);
1287
1291
  if (isParticipating) {
1288
- return cardData.formatted;
1292
+ return `${color}${bold}(${cardText})${reset}`;
1289
1293
  } else {
1290
- const inner = cardData.formatted.match(/\[(.+)\]/)?.[1] || cardData.formatted;
1291
- const colorMatch = cardData.formatted.match(/^(\x1b\[\d+m)/);
1292
- const color = colorMatch ? colorMatch[1] : "";
1293
- const reset = cardData.formatted.match(/\x1b\[0m$/) ? "\x1B[0m" : "";
1294
- return ` ${color}${inner}${reset} `;
1294
+ return `${color}${cardText}${reset} `;
1295
1295
  }
1296
1296
  }
1297
1297
  renderWithData(_data, _context) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "claude-scope",
3
- "version": "0.4.1",
3
+ "version": "0.4.3",
4
4
  "description": "Claude Code plugin for session status and analytics",
5
5
  "license": "MIT",
6
6
  "type": "module",