@caupulican/pi-adaptative 0.80.27 → 0.80.28

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,4 +1,4 @@
1
- ## [Unreleased]
1
+ ## [0.80.28] - 2026-06-18
2
2
 
3
3
  ## [0.80.25] - 2026-06-14
4
4
 
@@ -16,6 +16,7 @@ import type { Agent, AgentEvent, AgentMessage, AgentState, AgentTool, ThinkingLe
16
16
  import type { ImageContent, Model, TextContent } from "@caupulican/pi-ai";
17
17
  import { type BashResult } from "./bash-executor.ts";
18
18
  import { type CompactionResult } from "./compaction/index.ts";
19
+ import { type ContextGcReport } from "./context-gc.ts";
19
20
  import { type ContextUsage, type ExtensionCommandContextActions, type ExtensionContext, type ExtensionErrorListener, ExtensionRunner, type ExtensionUIContext, type InputSource, type ReplacedSessionContext, type SessionStartEvent, type ShutdownHandler, type ToolDefinition, type ToolInfo } from "./extensions/index.ts";
20
21
  import type { CustomMessage } from "./messages.ts";
21
22
  import type { ModelRegistry } from "./model-registry.ts";
@@ -185,6 +186,7 @@ export declare class AgentSession {
185
186
  private _compactionAbortController;
186
187
  private _autoCompactionAbortController;
187
188
  private _overflowRecoveryAttempted;
189
+ private _latestContextGcReport;
188
190
  private _branchSummaryAbortController;
189
191
  private _retryAbortController;
190
192
  private _retryAttempt;
@@ -233,6 +235,9 @@ export declare class AgentSession {
233
235
  private _installAgentContextTransform;
234
236
  private _installAgentTurnRefresh;
235
237
  private _createAgentContextSnapshot;
238
+ private _contextGcStorageDir;
239
+ private _applyContextGc;
240
+ getContextGcReport(messages?: AgentMessage[]): ContextGcReport;
236
241
  private _estimateCurrentContextTokens;
237
242
  private _installAgentToolHooks;
238
243
  /** Emit an event to all listeners */