claude-scope 0.4.2 → 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.
- package/dist/claude-scope.cjs +8 -5
- package/package.json +1 -1
package/dist/claude-scope.cjs
CHANGED
|
@@ -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,15 +1282,16 @@ var PokerWidget = class extends StdinDataWidget {
|
|
|
1280
1282
|
}
|
|
1281
1283
|
/**
|
|
1282
1284
|
* Format card based on participation in best hand
|
|
1283
|
-
* Participating cards:
|
|
1284
|
-
* Non-participating cards:
|
|
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
|
|
1292
|
+
return `${color}${bold}(${cardText})${reset}`;
|
|
1289
1293
|
} else {
|
|
1290
|
-
|
|
1291
|
-
return ` ${plainText} `;
|
|
1294
|
+
return `${color}${cardText}${reset} `;
|
|
1292
1295
|
}
|
|
1293
1296
|
}
|
|
1294
1297
|
renderWithData(_data, _context) {
|