@cline/shared 0.0.67 → 0.0.68-nightly.1785640549

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.
@@ -19,6 +19,7 @@ export declare const ApiFormat: {
19
19
  };
20
20
  export declare const ModelCapabilitySchema: z.ZodEnum<{
21
21
  images: "images";
22
+ video: "video";
22
23
  tools: "tools";
23
24
  streaming: "streaming";
24
25
  "prompt-cache": "prompt-cache";
@@ -67,6 +68,7 @@ export declare const ModelInfoSchema: z.ZodObject<{
67
68
  maxInputTokens: z.ZodOptional<z.ZodNumber>;
68
69
  capabilities: z.ZodOptional<z.ZodArray<z.ZodEnum<{
69
70
  images: "images";
71
+ video: "video";
70
72
  tools: "tools";
71
73
  streaming: "streaming";
72
74
  "prompt-cache": "prompt-cache";
@@ -13,4 +13,13 @@ export type ShellKind = "powershell" | "cmd" | "wsl" | "posix";
13
13
  * told to use always matches the syntax the executor actually accepts.
14
14
  */
15
15
  export declare function getShellKind(shell: string): ShellKind;
16
+ export interface ShellInvocation {
17
+ args: string[];
18
+ input?: string;
19
+ }
20
+ export declare function getShellInvocation(shell: string, command: string): ShellInvocation;
21
+ /**
22
+ * @deprecated Use getShellInvocation() when executing commands so PowerShell
23
+ * source can travel through Unicode-safe stdin.
24
+ */
16
25
  export declare function getShellArgs(shell: string, command: string): string[];
@@ -11,6 +11,11 @@ export interface CaptureSdkErrorInput {
11
11
  component: SdkTelemetryErrorComponent;
12
12
  operation: string;
13
13
  error: unknown;
14
+ /**
15
+ * A useful message derived while the caller still has domain-specific error
16
+ * context. The raw error remains the source of type, code, and status.
17
+ */
18
+ errorMessage?: string;
14
19
  severity?: SdkTelemetryErrorSeverity;
15
20
  handled?: boolean;
16
21
  context?: TelemetryProperties;
@@ -88,7 +93,7 @@ export declare function captureAgentUnexpectedReasoningTokens(telemetry: ITeleme
88
93
  export declare function captureTaskLifecycleEvent(telemetry: ITelemetryService | undefined, input: CaptureTaskLifecycleEventInput): void;
89
94
  export declare function captureSdkError(telemetry: ITelemetryService | undefined, input: CaptureSdkErrorInput): void;
90
95
  export declare function buildSdkErrorProperties(input: CaptureSdkErrorInput): TelemetryProperties;
91
- export declare function normalizeSdkError(error: unknown, messageLimit?: number): TelemetryProperties;
96
+ export declare function normalizeSdkError(error: unknown, messageLimit?: number, errorMessage?: string): TelemetryProperties;
92
97
  export interface OpenTelemetryClientConfig {
93
98
  /**
94
99
  * Whether telemetry is enabled via OTEL_TELEMETRY_ENABLED
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cline/shared",
3
- "version": "0.0.67",
3
+ "version": "0.0.68-nightly.1785640549",
4
4
  "description": "Shared utilities, types, and schemas for Cline packages",
5
5
  "repository": {
6
6
  "type": "git",