claude-scope 0.5.8 → 0.6.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.
@@ -1240,6 +1240,16 @@ var SUIT_SYMBOLS = {
1240
1240
  diamonds: "\u2666",
1241
1241
  clubs: "\u2663"
1242
1242
  };
1243
+ var EMOJI_SYMBOLS = {
1244
+ spades: "\u2660\uFE0F",
1245
+ // ♠️
1246
+ hearts: "\u2665\uFE0F",
1247
+ // ♥️
1248
+ diamonds: "\u2666\uFE0F",
1249
+ // ♦️
1250
+ clubs: "\u2663\uFE0F"
1251
+ // ♣️
1252
+ };
1243
1253
  function isRedSuit(suit) {
1244
1254
  return suit === "hearts" || suit === "diamonds";
1245
1255
  }
@@ -1279,6 +1289,9 @@ function getRankValue(rank) {
1279
1289
  function formatCard(card) {
1280
1290
  return `${card.rank}${SUIT_SYMBOLS[card.suit]}`;
1281
1291
  }
1292
+ function formatCardEmoji(card) {
1293
+ return `${card.rank}${EMOJI_SYMBOLS[card.suit]}`;
1294
+ }
1282
1295
 
1283
1296
  // src/widgets/poker/deck.ts
1284
1297
  var ALL_SUITS = [Suit.Spades, Suit.Hearts, Suit.Diamonds, Suit.Clubs];
@@ -1688,6 +1701,14 @@ function formatCardTextCompact(card) {
1688
1701
  const rankSymbol = rankSymbols[rank] ?? rank;
1689
1702
  return `${rankSymbol}${card.suit}`;
1690
1703
  }
1704
+ function formatCardEmojiByParticipation(cardData, isParticipating) {
1705
+ const cardText = formatCardEmoji(cardData.card);
1706
+ if (isParticipating) {
1707
+ return `${bold}(${cardText})${reset} `;
1708
+ } else {
1709
+ return `${cardText} `;
1710
+ }
1711
+ }
1691
1712
  function formatHandResult(handResult) {
1692
1713
  if (!handResult) {
1693
1714
  return "\u2014";
@@ -1729,6 +1750,15 @@ var pokerStyles = {
1729
1750
  const boardStr = boardCards.map((bc, idx) => formatCardCompact(bc, participatingSet.has(idx + 2))).join("");
1730
1751
  const abbreviation = getHandAbbreviation(handResult);
1731
1752
  return `${handStr}| ${boardStr}\u2192 ${abbreviation}`;
1753
+ },
1754
+ emoji: (data) => {
1755
+ const { holeCards, boardCards, handResult } = data;
1756
+ const participatingSet = new Set(handResult?.participatingIndices || []);
1757
+ const handStr = holeCards.map((hc, idx) => formatCardEmojiByParticipation(hc, participatingSet.has(idx))).join("");
1758
+ const boardStr = boardCards.map((bc, idx) => formatCardEmojiByParticipation(bc, participatingSet.has(idx + 2))).join("");
1759
+ const handLabel = colorize("Hand:", lightGray);
1760
+ const boardLabel = colorize("Board:", lightGray);
1761
+ return `${handLabel} ${handStr}| ${boardLabel} ${boardStr}\u2192 ${formatHandResult(handResult)}`;
1732
1762
  }
1733
1763
  };
1734
1764
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "claude-scope",
3
- "version": "0.5.8",
3
+ "version": "0.6.0",
4
4
  "description": "Claude Code plugin for session status and analytics",
5
5
  "license": "MIT",
6
6
  "type": "module",