@cspeach/cli 1.1.46 → 1.1.47
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/dist/renderer/goodbye.js +4 -1
- package/package.json +1 -1
package/dist/renderer/goodbye.js
CHANGED
|
@@ -10,6 +10,7 @@ import { panelRow } from './panel-rows.js';
|
|
|
10
10
|
import { paint } from './theme.js';
|
|
11
11
|
import { formatInfo } from './notice-shape.js';
|
|
12
12
|
import { sanitizeControlChars } from './sanitize.js';
|
|
13
|
+
import { creditsActive } from '../cost/credits.js';
|
|
13
14
|
const LABEL = 10; // 'Last skill'
|
|
14
15
|
/**
|
|
15
16
|
* `logDir` — the display path of this session's turn-stream folder, passed
|
|
@@ -25,7 +26,9 @@ export function formatGoodbye(p) {
|
|
|
25
26
|
chalk.bold(`Session ${id}`),
|
|
26
27
|
panelRow('Turns', String(p.turns), LABEL),
|
|
27
28
|
panelRow('Last skill', skill, LABEL),
|
|
28
|
-
|
|
29
|
+
// Credits mode: no token count beside credits (owner 2026-10-02 for /cost
|
|
30
|
+
// and the footer; 2026-10-19 here) — it invites "credits per token" maths.
|
|
31
|
+
...(creditsActive() ? [] : [panelRow('Tokens', `${p.tokens.toLocaleString('en-US')} (input + output + cache)`, LABEL)]),
|
|
29
32
|
panelRow('Spend', p.spend, LABEL),
|
|
30
33
|
'',
|
|
31
34
|
// Round 6 review I1 — a session never written (no turns) has nothing to resume.
|