@cline/core 0.0.56 → 0.0.58-nightly.1783394305
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-shared.d.ts +1 -1
- package/dist/extensions/tools/helpers.d.ts +6 -0
- package/dist/hub/daemon/entry.js +138 -138
- package/dist/hub/index.js +140 -140
- package/dist/index.js +138 -138
- package/package.json +4 -4
|
@@ -3,7 +3,7 @@ import { CHARS_PER_TOKEN, estimateTokens, type MessageWithMetadata } from "@clin
|
|
|
3
3
|
export { CHARS_PER_TOKEN, estimateTokens };
|
|
4
4
|
import type { CoreCompactionContext, CoreCompactionSummarizerConfig } from "../../types/config";
|
|
5
5
|
import type { ProviderConfig } from "../../types/provider-settings";
|
|
6
|
-
export declare const DEFAULT_MAX_INPUT_TOKENS =
|
|
6
|
+
export declare const DEFAULT_MAX_INPUT_TOKENS = 128000;
|
|
7
7
|
export declare const DEFAULT_THRESHOLD_RATIO = 0.9;
|
|
8
8
|
export declare const DEFAULT_TARGET_RATIO = 0.7;
|
|
9
9
|
export declare const DEFAULT_RESERVE_TOKENS = 16384;
|
|
@@ -14,6 +14,12 @@ export declare class TimeoutError extends Error {
|
|
|
14
14
|
export declare function withTimeout<T>(promise: Promise<T>, ms: number, message: string): Promise<T>;
|
|
15
15
|
export declare function formatReadFileQuery(request: ReadFileRequest): string;
|
|
16
16
|
export declare function getReadFileRangeError(request: ReadFileRequest): string | null;
|
|
17
|
+
/**
|
|
18
|
+
* Some models emit a file's line range as a separate array element instead of
|
|
19
|
+
* placing start_line/end_line on the same object as its path. Fold such
|
|
20
|
+
* orphan range entries into the preceding file entry before validation.
|
|
21
|
+
*/
|
|
22
|
+
export declare function coalesceOrphanReadRanges(input: unknown): unknown;
|
|
17
23
|
export declare function normalizeRunCommandsInput(input: unknown): Array<string | StructuredCommandInput>;
|
|
18
24
|
export declare function formatRunCommandQuery(command: string | StructuredCommandInput): string;
|
|
19
25
|
/**
|