{ "title": "usage", "extensions": ["usage"], "cols": 100, "rows": 28, "setup": [ [ "node", "--input-type=module", "-e", "import { mkdirSync, writeFileSync } from 'node:fs'; import { dirname } from 'node:path'; const file = '../../pi-demo-sandbox/usage/agent/sessions/synthetic/demo.jsonl'; mkdirSync(dirname(file), { recursive: true }); const now = new Date().toISOString(); const header = { type: 'session', version: 3, id: 'synthetic-dashboard', timestamp: now }; const message = { type: 'message', id: 'response-1', parentId: null, timestamp: now, message: { role: 'assistant', provider: 'synthetic-provider', model: 'synthetic-model', timestamp: Date.now(), usage: { input: 12000, output: 840, cacheRead: 2400, cacheWrite: 0, cost: { total: 0.084 } } } }; writeFileSync(file, [header, message].map((entry) => JSON.stringify(entry)).join('\\n') + '\\n');" ] ], "steps": [ { "type": "/usage", "key": "enter", "expect": "synthetic-provider", "hold": 6 }, { "key": "enter", "expect": "synthetic-model", "hold": 6 }, { "type": "q", "hold": 1 }, { "key": "ctrl-c", "hold": 0.3 }, { "key": "ctrl-c" } ] }