@cline/core 0.0.40 → 0.0.41-nightly.1778815163
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/dist/extensions/context/compaction.d.ts +15 -1
- package/dist/hub/daemon/entry.js +135 -135
- package/dist/hub/index.js +127 -127
- package/dist/hub/runtime-host/hub-runtime-host.d.ts +1 -0
- package/dist/index.d.ts +2 -2
- package/dist/index.js +133 -133
- package/dist/services/llms/provider-settings.d.ts +2 -0
- package/dist/services/providers/local-provider-registry.d.ts +9 -0
- package/dist/services/providers/local-provider-service.d.ts +2 -2
- package/dist/services/telemetry/core-events.d.ts +75 -0
- package/dist/services/telemetry/index.js +1 -1
- package/package.json +5 -5
|
@@ -21,4 +21,18 @@ export interface ContextCompactionPrepareTurnOptions {
|
|
|
21
21
|
mode?: ContextCompactionMode;
|
|
22
22
|
manualTargetRatio?: number;
|
|
23
23
|
}
|
|
24
|
-
|
|
24
|
+
/**
|
|
25
|
+
* Build the `prepareTurn` callback used by the agent runtime to compact the
|
|
26
|
+
* transcript before each model request.
|
|
27
|
+
*
|
|
28
|
+
* Telemetry: emits `task.compaction_executed` on a successful compaction and
|
|
29
|
+
* `task.compaction_skipped` when the configured strategy returns `undefined`.
|
|
30
|
+
* Telemetry is keyed by `config.sessionId` (falling back to the per-turn
|
|
31
|
+
* `conversationId`) and tagged with `provider` / `modelId`.
|
|
32
|
+
*
|
|
33
|
+
* Known gap: compactions performed via plugin `registerMessageBuilder()` or
|
|
34
|
+
* via the `beforeModel` runtime hook bypass this wrapper entirely, so they
|
|
35
|
+
* do not emit compaction telemetry. If we want coverage there too, the
|
|
36
|
+
* plugin/hook pipelines must be instrumented separately.
|
|
37
|
+
*/
|
|
38
|
+
export declare function createContextCompactionPrepareTurn(config: Pick<CoreSessionConfig, "providerConfig" | "providerId" | "modelId" | "compaction" | "logger" | "telemetry" | "sessionId">, options?: ContextCompactionPrepareTurnOptions): ((context: ContextPipelinePrepareTurnInput) => Promise<ContextPipelinePrepareTurnResult | undefined>) | undefined;
|