@cline/core 0.0.84-nightly.1790044161 → 0.0.85

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.
@@ -1,5 +1,5 @@
1
1
  import { type SessionCompactionState } from "../../session/models/session-compaction";
2
- import type { CoreCompactionContext, CoreCompactionMode, CoreSessionConfig } from "../../types/config";
2
+ import type { CoreCompactionConfig, CoreCompactionContext, CoreCompactionMode, CoreSessionConfig } from "../../types/config";
3
3
  export interface ContextPipelinePrepareTurnInput {
4
4
  agentId: string;
5
5
  conversationId: string;
@@ -35,6 +35,8 @@ export type ContextPipelinePrepareTurn = (context: ContextPipelinePrepareTurnInp
35
35
  export interface ContextCompactionPrepareTurnOptions {
36
36
  mode?: CoreCompactionMode;
37
37
  manualTargetRatio?: number;
38
+ /** Overrides layered over `config.compaction`. */
39
+ compaction?: Partial<CoreCompactionConfig>;
38
40
  }
39
41
  /**
40
42
  * Build the `prepareTurn` callback used by the agent runtime to compact the
@@ -50,7 +52,7 @@ export interface ContextCompactionPrepareTurnOptions {
50
52
  * do not emit compaction telemetry. If we want coverage there too, the
51
53
  * plugin/hook pipelines must be instrumented separately.
52
54
  */
53
- export declare function createContextCompactionPrepareTurn(config: Pick<CoreSessionConfig, "providerConfig" | "providerId" | "modelId" | "compaction" | "logger" | "telemetry" | "sessionId">, options?: ContextCompactionPrepareTurnOptions): ((context: ContextPipelinePrepareTurnInput) => Promise<ContextPipelinePrepareTurnResult | undefined>) | undefined;
55
+ export declare function createContextCompactionPrepareTurn(config: Pick<CoreSessionConfig, "providerConfig" | "providerId" | "modelId" | "apiKey" | "baseUrl" | "headers" | "compaction" | "logger" | "telemetry" | "sessionId">, options?: ContextCompactionPrepareTurnOptions): ((context: ContextPipelinePrepareTurnInput) => Promise<ContextPipelinePrepareTurnResult | undefined>) | undefined;
54
56
  /**
55
57
  * Compaction policy for resuming a session imported from another coding agent.
56
58
  * The imported transcript keeps that agent's tool names and input schemas