feat: analytics parity — tool cost, date ranges, budgets, query explorer, replay, snapshots (v2.4.0)
Analytics parity phases 2–7 (docs/plans/analytics-parity/), built on
138e706 and ported onto v2.3.1:
- Cost by AI tool (?tool= on cost/analytics/stats/workflows, by_tool,
Codex fast/priority and flex tiers, agenthub_cost_usd_total{tool,model})
- Date ranges (from/to) on cost/analytics/workflows; Analytics range select
with Today / This week (Monday) / This month (1st) / 7d / 30d / 90d / All /
Custom; workflow filters carried into workflow-stats.js (read worker)
- Budgets and cost alerts as alert rule types (alert_rules rebuilt without
its rule_type CHECK), GET /api/budgets/status, rule preview, spend pace,
status-bar budget chip; rules stay editable in place
- Query Explorer (/query, allowlisted sort, CSV/JSON export) and scheduled
reports (report_definitions/report_runs, Settings → Reports)
- Session Replay tab and immutable snapshots (session_snapshots, /snapshot/:token)
- Remote Codex sync, push ingest with a hashed token, privacy redaction and
ignored folders (Settings → Data), Cursor sessions (no cost)
- Read-only MCP server, statusline, Grafana/Prometheus files
Also: resizable sidebar, pet run/wave animations, the workspace home keeps a
half-typed prompt, and the pre-commit hook runs only the related tests for a
small commit.
This commit is contained in:
@@ -51,6 +51,61 @@
|
||||
"last7Days": "7 ngày gần nhất",
|
||||
"less": "Ít",
|
||||
"more": "Nhiều",
|
||||
"toolFilter": "Công cụ AI",
|
||||
"allTools": "Mọi công cụ AI",
|
||||
"costByTool": "Chi phí theo công cụ AI",
|
||||
"spendPace": "Nhịp chi tiêu",
|
||||
"burnRate": "Tốc độ đốt (TB 7 ngày / ngày)",
|
||||
"burnRateHint": "Chi phí trung bình mỗi ngày trong 7 ngày qua, tính cả hôm nay",
|
||||
"monthToDate": "Từ đầu tháng",
|
||||
"forecastMonth": "Dự báo cả tháng",
|
||||
"forecastHint": "Từ đầu tháng cộng nhịp 7 ngày cho mỗi ngày còn lại",
|
||||
"budgets": "Ngân sách",
|
||||
"noBudgets": "Chưa có ngân sách chi tiêu.",
|
||||
"addBudget": "Thêm trong Cài đặt → Thông báo",
|
||||
"projected": "dự kiến",
|
||||
"projectedHint": "Chi tiêu kỳ này theo nhịp hiện tại, kéo đến cuối kỳ",
|
||||
"range": "Khoảng thời gian",
|
||||
"rangePreset": {
|
||||
"today": "Hôm nay",
|
||||
"week": "Tuần này",
|
||||
"month": "Tháng này",
|
||||
"7d": "7 ngày qua",
|
||||
"30d": "30 ngày qua",
|
||||
"90d": "90 ngày qua",
|
||||
"all": "Toàn bộ",
|
||||
"custom": "Tùy chọn"
|
||||
},
|
||||
"rangeFrom": "Từ ngày",
|
||||
"rangeTo": "Đến ngày",
|
||||
"query": {
|
||||
"title": "Truy vấn dữ liệu",
|
||||
"subtitle": "Lọc phiên, sự kiện và agent, rồi xuất đúng những gì đang thấy.",
|
||||
"entity": "Dữ liệu",
|
||||
"entities": {
|
||||
"sessions": "Phiên",
|
||||
"events": "Sự kiện",
|
||||
"agents": "Agent"
|
||||
},
|
||||
"search": "Tìm kiếm",
|
||||
"searchPlaceholder": "Tìm văn bản…",
|
||||
"status": "Trạng thái",
|
||||
"allStatuses": "Mọi trạng thái",
|
||||
"cwd": "Thư mục",
|
||||
"cwdPlaceholder": "/duong/dan/du-an",
|
||||
"from": "Từ ngày",
|
||||
"to": "Đến ngày",
|
||||
"sortBy": "Sắp xếp theo {{column}}",
|
||||
"exportCsv": "Xuất CSV",
|
||||
"exportJson": "Xuất JSON",
|
||||
"exportNote": "Tệp xuất chứa toàn bộ kết quả lọc, tối đa {{cap}} dòng.",
|
||||
"exportTruncated": "{{total}} dòng khớp; tệp xuất chỉ chứa {{cap}} dòng đầu.",
|
||||
"rows": "{{from}}–{{to}} / {{total}}",
|
||||
"prev": "Trang trước",
|
||||
"next": "Trang sau",
|
||||
"empty": "Không có dữ liệu khớp bộ lọc.",
|
||||
"reset": "Đặt lại bộ lọc"
|
||||
},
|
||||
"tokensExCacheReads": "Token (trừ đọc cache)",
|
||||
"cacheReadsSub": "+{{reads}} token đọc cache · tỉ lệ trúng {{pct}}%",
|
||||
"avgPerWeekday30d": "Trung bình theo thứ trong tuần, 30 ngày qua"
|
||||
|
||||
Reference in New Issue
Block a user