@cline/shared 0.0.64 → 0.0.65-nightly.1784603699

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,2 +1,16 @@
1
1
  export declare function getDefaultShell(platform: string): string;
2
+ /**
3
+ * Shell families that differ in invocation flags and command syntax.
4
+ * "wsl" is the wsl.exe launcher (which runs bash in the default distro);
5
+ * "posix" covers bash/zsh/sh and other `-c`-style shells.
6
+ */
7
+ export type ShellKind = "powershell" | "cmd" | "wsl" | "posix";
8
+ /**
9
+ * Classify a shell executable (name or full path) into its family.
10
+ *
11
+ * This is the single classification used both for building spawn arguments
12
+ * (getShellArgs) and for shell-specific prompting, so the syntax the model is
13
+ * told to use always matches the syntax the executor actually accepts.
14
+ */
15
+ export declare function getShellKind(shell: string): ShellKind;
2
16
  export declare function getShellArgs(shell: string, command: string): string[];
@@ -28,6 +28,27 @@ export interface CaptureAgentUnexpectedReasoningTokensInput {
28
28
  requestedThinking: false;
29
29
  reasoningTokenCount: number;
30
30
  }
31
+ export declare const TASK_PROVIDER_REQUEST_STARTED_EVENT = "task.provider_request_started";
32
+ export declare const TASK_PROVIDER_STREAM_STARTED_EVENT = "task.provider_stream_started";
33
+ export declare const TASK_FIRST_CHUNK_RECEIVED_EVENT = "task.first_chunk_received";
34
+ export declare const TASK_PROVIDER_STREAM_FAILED_EVENT = "task.provider_stream_failed";
35
+ export declare const TASK_CANCELLED_EVENT = "task.cancelled";
36
+ export interface CaptureTaskLifecycleEventInput {
37
+ event: string;
38
+ sessionId?: string;
39
+ ulid?: string;
40
+ agentId?: string;
41
+ conversationId?: string;
42
+ runId?: string;
43
+ iteration?: number;
44
+ providerId?: string;
45
+ modelId?: string;
46
+ phase?: string;
47
+ durationMs?: number;
48
+ eventType?: string;
49
+ error?: unknown;
50
+ messageLimit?: number;
51
+ }
31
52
  export interface TelemetryMetadata {
32
53
  extension_version: string;
33
54
  cline_type: string;
@@ -58,6 +79,7 @@ export interface ITelemetryService {
58
79
  }
59
80
  export declare const SDK_ERROR_TELEMETRY_EVENT = "sdk.error";
60
81
  export declare function captureAgentUnexpectedReasoningTokens(telemetry: ITelemetryService | undefined, input: CaptureAgentUnexpectedReasoningTokensInput): void;
82
+ export declare function captureTaskLifecycleEvent(telemetry: ITelemetryService | undefined, input: CaptureTaskLifecycleEventInput): void;
61
83
  export declare function captureSdkError(telemetry: ITelemetryService | undefined, input: CaptureSdkErrorInput): void;
62
84
  export declare function buildSdkErrorProperties(input: CaptureSdkErrorInput): TelemetryProperties;
63
85
  export declare function normalizeSdkError(error: unknown, messageLimit?: number): TelemetryProperties;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cline/shared",
3
- "version": "0.0.64",
3
+ "version": "0.0.65-nightly.1784603699",
4
4
  "description": "Shared utilities, types, and schemas for Cline packages",
5
5
  "repository": {
6
6
  "type": "git",