Maintenance: pricing date, token est. label, listPaths refresh, MUTATING derive

This commit is contained in:
asepharyana committed 2026-09-09 12:43:03 +07:00
1 parent 4f3a7eef7c
commit dcede3c10a
10 files changed
+106 -29

No files matched your search

+3 -2
View File
@@ -1,4 +1,4 @@
import { costOf, formatUsd } from '../pricing';
import { costOf, formatUsd, PRICING_VERIFIED_AT } from '../pricing';
import type { Session } from '../session';
import { toolSetOf } from '../tools';
import { todoLines } from './transcript';
@@ -58,7 +58,8 @@ export function costPanel(
);
}
lines.push(`- context: ~${session.estimatedTokens()} tokens`, `- agent: \`${info.agent}\` thinking \`${info.thinking}\``);
lines.push(`- context: ~${session.estimatedTokens()} tokens (est.)`, `- agent: \`${info.agent}\` thinking \`${info.thinking}\``);
lines.push(`- pricing verified: ${PRICING_VERIFIED_AT} (est., verify before billing)`);
return { title: 'cost', hint: `session ${info.sessionId}`, body: lines.join('\n') };
}