mirror of
https://github.com/QwenLM/qwen-code.git
synced 2025-12-21 09:17:53 +00:00
feat: Add exit UI w/ stats (#924)
This commit is contained in:
@@ -0,0 +1,45 @@
|
||||
// Vitest Snapshot v1, https://vitest.dev/guide/snapshot.html
|
||||
|
||||
exports[`<SessionSummaryDisplay /> > renders correctly with given stats and duration 1`] = `
|
||||
"╭─────────────────────────────────────╮
|
||||
│ │
|
||||
│ Agent powering down. Goodbye! │
|
||||
│ │
|
||||
│ │
|
||||
│ Cumulative Stats (10 Turns) │
|
||||
│ │
|
||||
│ Input Tokens 1,000 │
|
||||
│ Output Tokens 2,000 │
|
||||
│ Tool Use Tokens 200 │
|
||||
│ Thoughts Tokens 300 │
|
||||
│ Cached Tokens 500 (14.3%) │
|
||||
│ ───────────────────────────────── │
|
||||
│ Total Tokens 3,500 │
|
||||
│ │
|
||||
│ Total duration (API) 50.2s │
|
||||
│ Total duration (wall) 1h 23m 45s │
|
||||
│ │
|
||||
╰─────────────────────────────────────╯"
|
||||
`;
|
||||
|
||||
exports[`<SessionSummaryDisplay /> > renders zero state correctly 1`] = `
|
||||
"╭─────────────────────────────────╮
|
||||
│ │
|
||||
│ Agent powering down. Goodbye! │
|
||||
│ │
|
||||
│ │
|
||||
│ Cumulative Stats (0 Turns) │
|
||||
│ │
|
||||
│ Input Tokens 0 │
|
||||
│ Output Tokens 0 │
|
||||
│ Tool Use Tokens 0 │
|
||||
│ Thoughts Tokens 0 │
|
||||
│ Cached Tokens 0 │
|
||||
│ ────────────────────────── │
|
||||
│ Total Tokens 0 │
|
||||
│ │
|
||||
│ Total duration (API) 0s │
|
||||
│ Total duration (wall) 0s │
|
||||
│ │
|
||||
╰─────────────────────────────────╯"
|
||||
`;
|
||||
@@ -0,0 +1,49 @@
|
||||
// Vitest Snapshot v1, https://vitest.dev/guide/snapshot.html
|
||||
|
||||
exports[`<DurationColumn /> > renders a duration column 1`] = `
|
||||
"Duration
|
||||
|
||||
API Time 5s
|
||||
Wall Time 10s"
|
||||
`;
|
||||
|
||||
exports[`<StatRow /> > renders a label and value 1`] = `"Test Label Test Value"`;
|
||||
|
||||
exports[`<StatRow /> > renders with a specific value color 1`] = `"Test Label Test Value"`;
|
||||
|
||||
exports[`<StatsColumn /> > renders a cumulative stats column with percentages 1`] = `
|
||||
"Cumulative Stats
|
||||
|
||||
Input Tokens 100
|
||||
Output Tokens 200
|
||||
Tool Use Tokens 50
|
||||
Thoughts Tokens 25
|
||||
Cached Tokens 10 (2.6%)
|
||||
────────────────────────────────────────────────────────────────────────────────────────────────────
|
||||
Total Tokens 385"
|
||||
`;
|
||||
|
||||
exports[`<StatsColumn /> > renders a stats column with a specific width 1`] = `
|
||||
"Test Stats
|
||||
|
||||
Input Tokens 100
|
||||
Output Tokens 200
|
||||
Tool Use Tokens 50
|
||||
Thoughts Tokens 25
|
||||
Cached Tokens 10
|
||||
──────────────────────────────────────────────────
|
||||
Total Tokens 385"
|
||||
`;
|
||||
|
||||
exports[`<StatsColumn /> > renders a stats column with children 1`] = `
|
||||
"Test Stats
|
||||
|
||||
Input Tokens 100
|
||||
Output Tokens 200
|
||||
Tool Use Tokens 50
|
||||
Thoughts Tokens 25
|
||||
Cached Tokens 10
|
||||
────────────────────────────────────────────────────────────────────────────────────────────────────
|
||||
Total Tokens 385
|
||||
Child Prop Child Value"
|
||||
`;
|
||||
Reference in New Issue
Block a user