@cline/shared 0.0.85-nightly.1790216958 → 0.0.86
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/index.browser.d.ts +1 -1
- package/dist/index.browser.js +16 -16
- package/dist/index.d.ts +2 -1
- package/dist/index.js +45 -45
- package/dist/parse/path.d.ts +14 -0
- package/dist/services/telemetry.d.ts +1 -0
- package/package.json +1 -1
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Rewrite the current platform's path separator to `/`.
|
|
3
|
+
*
|
|
4
|
+
* Use it wherever a path leaves the filesystem layer for presentation, storage
|
|
5
|
+
* or comparison: mention pickers, task history shared across OSes, plugin
|
|
6
|
+
* manifests, dedupe keys. It splits on `path.sep` only, so on POSIX a literal
|
|
7
|
+
* backslash in a filename is left alone (`foo\bar.txt` stays `foo\bar.txt`),
|
|
8
|
+
* while on Windows `src\main.ts` becomes `src/main.ts`.
|
|
9
|
+
*
|
|
10
|
+
* This is deliberately not `replace(/\\/g, "/")`: that variant corrupts POSIX
|
|
11
|
+
* filenames containing backslashes. Reach for it only when the input is
|
|
12
|
+
* user-typed and may carry Windows separators on any OS.
|
|
13
|
+
*/
|
|
14
|
+
export declare function toPosixSeparators(p: string): string;
|
|
@@ -38,6 +38,7 @@ export declare const TASK_PROVIDER_STREAM_STARTED_EVENT = "task.provider_stream_
|
|
|
38
38
|
export declare const TASK_FIRST_CHUNK_RECEIVED_EVENT = "task.first_chunk_received";
|
|
39
39
|
export declare const TASK_PROVIDER_STREAM_FAILED_EVENT = "task.provider_stream_failed";
|
|
40
40
|
export declare const TASK_CANCELLED_EVENT = "task.cancelled";
|
|
41
|
+
export declare const TASK_MAX_TOKENS_RECOVERY_EVENT = "task.max_tokens_recovery";
|
|
41
42
|
export interface CaptureTaskLifecycleEventInput {
|
|
42
43
|
event: string;
|
|
43
44
|
sessionId?: string;
|