chatccc 0.2.177 → 0.2.178

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "chatccc",
3
- "version": "0.2.177",
3
+ "version": "0.2.178",
4
4
  "description": "Feishu bot bridge for Claude Code",
5
5
  "license": "Apache-2.0",
6
6
  "type": "module",
package/src/feishu-api.ts CHANGED
@@ -315,7 +315,7 @@ const AVATAR_BADGES: Record<string, string> = {
315
315
  const AVATAR_SIZE = 256;
316
316
  const AVATAR_BADGE_SIZE = 92;
317
317
  const AVATAR_BADGE_MARGIN = 10;
318
- const CODEX_AVATAR_USAGE_STYLE_VERSION = "usage-ring-gray-consumed-v8";
318
+ const CODEX_AVATAR_USAGE_STYLE_VERSION = "usage-ring-gray-consumed-v13";
319
319
 
320
320
  export interface CodexUsageBalance {
321
321
  usedPercent: number;
@@ -520,7 +520,7 @@ function buildCodexUsageRingSvg(remainingPercent: number): Buffer {
520
520
  const cx = 128;
521
521
  const cy = 128;
522
522
  const r = 118;
523
- const strokeWidth = 13;
523
+ const strokeWidth = 16;
524
524
  const used = clampPercent(100 - remaining);
525
525
  const polar = (angleDegrees: number) => {
526
526
  const angle = (angleDegrees * Math.PI) / 180;
@@ -547,11 +547,12 @@ function buildCodexUsageRingSvg(remainingPercent: number): Buffer {
547
547
  <stop offset="0" stop-color="${palette.start}"/>
548
548
  <stop offset="1" stop-color="${palette.end}"/>
549
549
  </linearGradient>
550
- <filter id="ringShadow" x="-10%" y="-10%" width="120%" height="120%">
551
- <feDropShadow dx="0" dy="2" stdDeviation="2.4" flood-color="#0f172a" flood-opacity="0.25"/>
550
+ <filter id="ringShadow" x="-22%" y="-22%" width="144%" height="144%">
551
+ <feDropShadow dx="0" dy="0" stdDeviation="5.2" flood-color="#0f172a" flood-opacity="0.78"/>
552
+ <feDropShadow dx="0" dy="3" stdDeviation="2.8" flood-color="#0f172a" flood-opacity="0.45"/>
552
553
  </filter>
553
554
  </defs>
554
- <circle cx="${cx}" cy="${cy}" r="${r}" fill="none" stroke="#cbd5e1" stroke-width="${strokeWidth}"/>
555
+ <circle cx="${cx}" cy="${cy}" r="${r}" fill="none" stroke="#94a3b8" stroke-width="${strokeWidth}"/>
555
556
  ${progressPath}
556
557
  </svg>`);
557
558
  }