refactor(panel): complete shared single-source rules, isolate per-module bundle scopes, and purify scoped selector

This commit is contained in:
fish
2026-11-18 17:05:47 +09:00
parent 67e2f047dd
commit 1459240751
29 changed files with 2036 additions and 1928 deletions
+1 -3
View File
@@ -10,6 +10,7 @@
*/
import { parseIsoMs } from '../trajectory-metrics.mjs';
import { THIRD_PARTY_POOL_RE } from '../shared/telemetry-display-rules.mjs';
import {
isArgonModelIdentifier,
isCarbonModelIdentifier,
@@ -90,9 +91,6 @@ function classifyOfficialBucketWindow(bucket, _groupBucketCount = 1, nowMs = Dat
return 'weekly';
}
const THIRD_PARTY_POOL_RE =
/3p|claude|anthropic|fable|gpt|openai|oss|sonnet|opus|haiku|third[-_\s]?party/i;
/**
* 根据分组名称、分组描述及桶 ID 识别配额池归属身份(`Gemini` / `Argon` / `Carbon` / `Claude & GPT`)。
* 优先识别显式的第三方模型池标识,防止分组描述附带 `"separate from Gemini"` 时把第三方池误吞入 Gemini。