Skip to content

Commit 985fdc2

Browse files
committed
feat: add optional metadata field to SessionUsageData
1 parent 6ff9047 commit 985fdc2

1 file changed

Lines changed: 9 additions & 0 deletions

File tree

src/types/agent.ts

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,15 @@ export interface SessionUsageData {
7272
sessionUpdatedAt?: number;
7373
projectPath?: string;
7474
cost?: number;
75+
/**
76+
* Optional plugin-defined metadata passed through to the core.
77+
* Plugins can use this to signal data quality, enrichment status,
78+
* or other plugin-specific information the UI may choose to render.
79+
*
80+
* Known keys (convention, not enforced):
81+
* - `isEstimated` (boolean) — true when token counts are local estimates
82+
*/
83+
metadata?: Record<string, unknown>;
7584
}
7685

7786
// ---------------------------------------------------------------------------

0 commit comments

Comments
 (0)