mirror of
https://github.com/lWolvesl/antigravity-usage-monitor.git
synced 2026-11-27 01:19:25 +08:00
feat(panel): detect and price built-in AI image generation steps
- Decode SQLite step_payload 140.2.6 (GenerateImage) and inspect 32KB PNG/JPEG/WebP headers across SQLite and ConnectRPC trajectories, auto-upgrading cached image-generator subagent entries - Map Gemini 3.1 Flash Image, 3 Pro Image, and 2.5 Flash Image resolution tiers (0.5K/1K/2K/4K) and reference image inputs to Google AI Studio token counts and dedicated imageOutput rates - Surface generate_image steps with true startedAt-to-completedAt duration and localized live activity labels while isolating text LLM TPS, TTFT, context window gauges, compaction inference, and exported report averages
This commit is contained in:
@@ -209,6 +209,7 @@ function summarizeStepsForExport(list, displaySettings) {
|
||||
|
||||
const validTps =
|
||||
!st.isCompactionStep &&
|
||||
!st.isImageGenStep &&
|
||||
outTok >= 50 &&
|
||||
!st.selectedSpeedReason &&
|
||||
Number.isFinite(Number(st.tokPerSec)) &&
|
||||
@@ -219,7 +220,11 @@ function summarizeStepsForExport(list, displaySettings) {
|
||||
: outTok / Number(st.tokPerSec)
|
||||
: 0;
|
||||
const validTtft =
|
||||
!st.isCompactionStep && Number.isFinite(Number(st.ttftSec)) && Number(st.ttftSec) >= 0;
|
||||
!st.isCompactionStep &&
|
||||
!st.isImageGenStep &&
|
||||
st.ttftSec != null &&
|
||||
Number.isFinite(Number(st.ttftSec)) &&
|
||||
Number(st.ttftSec) >= 0;
|
||||
if (validTps && stepSpeedSec > 0) {
|
||||
tpsTokSum += outTok;
|
||||
tpsSecSum += stepSpeedSec;
|
||||
@@ -550,9 +555,13 @@ export function buildStepsXlsx(
|
||||
? en
|
||||
? 'Compaction'
|
||||
: '自动压缩'
|
||||
: en
|
||||
? 'Normal'
|
||||
: '常规';
|
||||
: st.isImageGenStep
|
||||
? en
|
||||
? 'Image Gen'
|
||||
: '生成图片'
|
||||
: en
|
||||
? 'Normal'
|
||||
: '常规';
|
||||
const tone = anomCount > 0 ? 'danger' : st.isCompactionStep ? 'info' : '';
|
||||
|
||||
stepRows.push({
|
||||
|
||||
@@ -808,6 +808,7 @@ export const I18N_MESSAGES_EN_US = Object.freeze({
|
||||
'live.act.schedule': 'Schedule Task',
|
||||
'live.act.ask_question': 'Waiting for User Choice',
|
||||
'live.act.search_marketplace': 'Search Plugins',
|
||||
'live.act.generate_image': 'Generate Image',
|
||||
'live.act.mcp_tool': 'Call MCP Tool',
|
||||
'live.act.tool_call': 'Call Tool',
|
||||
'live.act.thinking': 'Thinking',
|
||||
|
||||
@@ -808,6 +808,7 @@ export const I18N_MESSAGES_ZH_CN = Object.freeze({
|
||||
'live.act.schedule': '定时任务',
|
||||
'live.act.ask_question': '等待用户选择',
|
||||
'live.act.search_marketplace': '查询插件',
|
||||
'live.act.generate_image': '生成图片',
|
||||
'live.act.mcp_tool': '调用 MCP',
|
||||
'live.act.tool_call': '调用工具',
|
||||
'live.act.thinking': '推理中',
|
||||
|
||||
Reference in New Issue
Block a user