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 +1 -1
- package/src/feishu-api.ts +6 -5
package/package.json
CHANGED
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-
|
|
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 =
|
|
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="-
|
|
551
|
-
<feDropShadow dx="0" dy="
|
|
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="#
|
|
555
|
+
<circle cx="${cx}" cy="${cy}" r="${r}" fill="none" stroke="#94a3b8" stroke-width="${strokeWidth}"/>
|
|
555
556
|
${progressPath}
|
|
556
557
|
</svg>`);
|
|
557
558
|
}
|