@openeryc/pi-coding-agent 0.75.9 → 0.75.10

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/CHANGELOG.md CHANGED
@@ -1,5 +1,11 @@
1
1
  # Changelog
2
2
 
3
+ ## [0.75.10] - 2026-05-21
4
+
5
+ ### Added
6
+
7
+ - `/usage` command shows token usage and cost aggregated across all sessions, with a top-5 breakdown by cost.
8
+
3
9
  ## [0.75.9] - 2026-05-21
4
10
 
5
11
  ### Changed
@@ -21,7 +21,7 @@ import type { CustomMessage } from "./messages.ts";
21
21
  import type { ModelRegistry } from "./model-registry.ts";
22
22
  import { type PromptTemplate } from "./prompt-templates.ts";
23
23
  import type { ResourceLoader } from "./resource-loader.ts";
24
- import type { BranchSummaryEntry, SessionManager } from "./session-manager.ts";
24
+ import type { BranchSummaryEntry, SessionListProgress, SessionManager, UsageStats } from "./session-manager.ts";
25
25
  import type { SettingsManager } from "./settings-manager.ts";
26
26
  import { type BashOperations } from "./tools/bash.ts";
27
27
  /** Parsed skill block from a user message */
@@ -571,6 +571,7 @@ export declare class AgentSession {
571
571
  * Get session statistics.
572
572
  */
573
573
  getSessionStats(): SessionStats;
574
+ getUsageStats(onProgress?: SessionListProgress): Promise<UsageStats>;
574
575
  getContextUsage(): ContextUsage | undefined;
575
576
  /**
576
577
  * Export session to HTML.