@linxiraos/pi-stats 1.2.0 → 1.2.1
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/CHANGELOG.md +3 -3
- package/README.md +4 -4
- package/dist/client/index.js +1 -1
- package/dist/types/client/i18n/messages/en.d.ts +2 -2
- package/dist/types/client/i18n/messages/providers.d.ts +2 -2
- package/package.json +7 -7
- package/src/client/i18n/messages/providers.ts +2 -2
- package/src/client/routes/FrustrationRoute.tsx +1 -1
- package/src/frustration.ts +1 -1
|
@@ -217,7 +217,7 @@ export declare const enMessages: {
|
|
|
217
217
|
readonly "providers.exhaustions-title": "Transitions into an exhausted state observed in range";
|
|
218
218
|
readonly "providers.exhausted-n": "{count} exhausted";
|
|
219
219
|
readonly "providers.no-snapshots-in-range": "No usage snapshots in this range";
|
|
220
|
-
readonly "providers.snapshot-hint": "Usage snapshots accumulate whenever usage limits are fetched (TUI footer, /usage,
|
|
220
|
+
readonly "providers.snapshot-hint": "Usage snapshots accumulate whenever usage limits are fetched (TUI footer, /usage, zetacode usage).";
|
|
221
221
|
readonly "providers.utilization": "Window utilization";
|
|
222
222
|
readonly "providers.utilization-description": "{window} used fraction per account, {from} – {to}";
|
|
223
223
|
readonly "providers.utilization-description-plain": "Recorded limit utilization per account";
|
|
@@ -846,7 +846,7 @@ export declare const enLocale: {
|
|
|
846
846
|
readonly "providers.exhaustions-title": "Transitions into an exhausted state observed in range";
|
|
847
847
|
readonly "providers.exhausted-n": "{count} exhausted";
|
|
848
848
|
readonly "providers.no-snapshots-in-range": "No usage snapshots in this range";
|
|
849
|
-
readonly "providers.snapshot-hint": "Usage snapshots accumulate whenever usage limits are fetched (TUI footer, /usage,
|
|
849
|
+
readonly "providers.snapshot-hint": "Usage snapshots accumulate whenever usage limits are fetched (TUI footer, /usage, zetacode usage).";
|
|
850
850
|
readonly "providers.utilization": "Window utilization";
|
|
851
851
|
readonly "providers.utilization-description": "{window} used fraction per account, {from} – {to}";
|
|
852
852
|
readonly "providers.utilization-description-plain": "Recorded limit utilization per account";
|
|
@@ -56,7 +56,7 @@ export declare const providers: {
|
|
|
56
56
|
readonly "providers.exhaustions-title": "Transitions into an exhausted state observed in range";
|
|
57
57
|
readonly "providers.exhausted-n": "{count} exhausted";
|
|
58
58
|
readonly "providers.no-snapshots-in-range": "No usage snapshots in this range";
|
|
59
|
-
readonly "providers.snapshot-hint": "Usage snapshots accumulate whenever usage limits are fetched (TUI footer, /usage,
|
|
59
|
+
readonly "providers.snapshot-hint": "Usage snapshots accumulate whenever usage limits are fetched (TUI footer, /usage, zetacode usage).";
|
|
60
60
|
readonly "providers.utilization": "Window utilization";
|
|
61
61
|
readonly "providers.utilization-description": "{window} used fraction per account, {from} – {to}";
|
|
62
62
|
readonly "providers.utilization-description-plain": "Recorded limit utilization per account";
|
|
@@ -124,7 +124,7 @@ export declare const providers: {
|
|
|
124
124
|
readonly "providers.exhaustions-title": "该时间范围内观测到的进入耗尽状态的次数";
|
|
125
125
|
readonly "providers.exhausted-n": "{count} 次耗尽";
|
|
126
126
|
readonly "providers.no-snapshots-in-range": "该时间范围内没有用量快照";
|
|
127
|
-
readonly "providers.snapshot-hint": "每当获取用量限额时都会累积用量快照(TUI 底部、/usage、
|
|
127
|
+
readonly "providers.snapshot-hint": "每当获取用量限额时都会累积用量快照(TUI 底部、/usage、zetacode usage)。";
|
|
128
128
|
readonly "providers.utilization": "窗口利用率";
|
|
129
129
|
readonly "providers.utilization-description": "{window} 各账号的已用比例,{from} – {to}";
|
|
130
130
|
readonly "providers.utilization-description-plain": "各账号已记录的限额利用率";
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"type": "module",
|
|
3
3
|
"name": "@linxiraos/pi-stats",
|
|
4
|
-
"version": "1.2.
|
|
4
|
+
"version": "1.2.1",
|
|
5
5
|
"description": "Local observability dashboard for omp AI usage statistics",
|
|
6
6
|
"homepage": "https://linxira-os.github.io/zeta/",
|
|
7
7
|
"author": "Linxira-OS",
|
|
@@ -39,17 +39,17 @@
|
|
|
39
39
|
"fmt": "oxfmt --no-error-on-unmatched-pattern 'src/**/*.{ts,tsx}' '{test,bench,examples,scripts}/**/*.ts' '*.ts'"
|
|
40
40
|
},
|
|
41
41
|
"dependencies": {
|
|
42
|
-
"@linxiraos/pi-ai": "1.2.
|
|
43
|
-
"@linxiraos/pi-catalog": "1.2.
|
|
44
|
-
"@linxiraos/pi-utils": "1.2.
|
|
42
|
+
"@linxiraos/pi-ai": "1.2.1",
|
|
43
|
+
"@linxiraos/pi-catalog": "1.2.1",
|
|
44
|
+
"@linxiraos/pi-utils": "1.2.1",
|
|
45
45
|
"lucide-react": "^1.24.0",
|
|
46
46
|
"react": "19.2.7",
|
|
47
47
|
"react-dom": "19.2.7"
|
|
48
48
|
},
|
|
49
49
|
"devDependencies": {
|
|
50
|
-
"@types/bun": "
|
|
51
|
-
"@types/react": "
|
|
52
|
-
"@types/react-dom": "
|
|
50
|
+
"@types/bun": "1.4.3",
|
|
51
|
+
"@types/react": "19.3.0",
|
|
52
|
+
"@types/react-dom": "19.3.0"
|
|
53
53
|
},
|
|
54
54
|
"engines": {
|
|
55
55
|
"bun": ">=1.3.14"
|
|
@@ -69,7 +69,7 @@ export const providers = {
|
|
|
69
69
|
"providers.exhausted-n": "{count} exhausted",
|
|
70
70
|
"providers.no-snapshots-in-range": "No usage snapshots in this range",
|
|
71
71
|
"providers.snapshot-hint":
|
|
72
|
-
"Usage snapshots accumulate whenever usage limits are fetched (TUI footer, /usage,
|
|
72
|
+
"Usage snapshots accumulate whenever usage limits are fetched (TUI footer, /usage, zetacode usage).",
|
|
73
73
|
// ── window utilization card + accounts table ────────────────────────
|
|
74
74
|
"providers.utilization": "Window utilization",
|
|
75
75
|
"providers.utilization-description": "{window} used fraction per account, {from} – {to}",
|
|
@@ -146,7 +146,7 @@ export const providers = {
|
|
|
146
146
|
"providers.exhaustions-title": "该时间范围内观测到的进入耗尽状态的次数",
|
|
147
147
|
"providers.exhausted-n": "{count} 次耗尽",
|
|
148
148
|
"providers.no-snapshots-in-range": "该时间范围内没有用量快照",
|
|
149
|
-
"providers.snapshot-hint": "每当获取用量限额时都会累积用量快照(TUI 底部、/usage、
|
|
149
|
+
"providers.snapshot-hint": "每当获取用量限额时都会累积用量快照(TUI 底部、/usage、zetacode usage)。",
|
|
150
150
|
// ── window utilization card + accounts table ────────────────────────
|
|
151
151
|
"providers.utilization": "窗口利用率",
|
|
152
152
|
"providers.utilization-description": "{window} 各账号的已用比例,{from} – {to}",
|
|
@@ -197,7 +197,7 @@ interface JudgePanelProps {
|
|
|
197
197
|
}
|
|
198
198
|
|
|
199
199
|
const UNAVAILABLE_HINT =
|
|
200
|
-
"Judging needs the zeta host process: open the dashboard with
|
|
200
|
+
"Judging needs the zeta host process: open the dashboard with zetacode stats and configure a judge model. Until then messages are classified by regex signals.";
|
|
201
201
|
|
|
202
202
|
function JudgePanel({ active, range, judgeAvailable, job, onRunStarted, onRunChanged }: JudgePanelProps) {
|
|
203
203
|
const [modalOpen, setModalOpen] = useState(false);
|
package/src/frustration.ts
CHANGED
|
@@ -78,7 +78,7 @@ const ATTEMPTS_PER_TEXT = 3;
|
|
|
78
78
|
const CIRCUIT_BREAKER_FAILURES = 25;
|
|
79
79
|
|
|
80
80
|
const NO_PROVIDER_REASON =
|
|
81
|
-
"This dashboard was started without a judge (standalone zetacode stats). Run `
|
|
81
|
+
"This dashboard was started without a judge (standalone zetacode stats). Run `zetacode stats` to classify.";
|
|
82
82
|
const NO_MODEL_REASON = "No judge model is available. Configure the `judge` model role.";
|
|
83
83
|
|
|
84
84
|
let judgeProvider: StatsJudgeProvider | undefined;
|