@cline/shared 0.0.81 → 0.0.82

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.
@@ -173,6 +173,16 @@ export declare function modelHasCapability(model: {
173
173
  export declare function modelSupportsToolCalling(model: {
174
174
  capabilities?: readonly string[];
175
175
  }): boolean;
176
+ /**
177
+ * Whether a model can receive image parts in a request. Fails open on the
178
+ * same grounds as `modelSupportsToolCalling`: a host boundary that reports no
179
+ * capabilities at all has not declared the model text-only, and stripping
180
+ * images from a vision-capable model loses user content silently. A populated
181
+ * list without `images` is authoritative.
182
+ */
183
+ export declare function modelSupportsImageInput(model: {
184
+ capabilities?: readonly string[];
185
+ }): boolean;
176
186
  export declare const ModelInfoSchema: z.ZodObject<{
177
187
  id: z.ZodString;
178
188
  name: z.ZodOptional<z.ZodString>;
@@ -76,6 +76,20 @@ export interface ToolApprovalResult {
76
76
  approved: boolean;
77
77
  reason?: string;
78
78
  }
79
+ /**
80
+ * Model-facing reason a client sends when the user rejects a tool approval.
81
+ * No tool name is interpolated: tool results are already paired with their
82
+ * tool call blocks. Hosts also match on this string to classify a tool
83
+ * result as a user rejection (vs. a timeout/disconnect/system rejection).
84
+ */
85
+ export declare const USER_REJECTED_TOOL_REASON = "This tool call was rejected by the user and not executed.";
86
+ /**
87
+ * Guidance the agent runtime appends to every rejected tool approval reason
88
+ * so the model treats the rejection as deliberate instead of retrying it as
89
+ * a tool/system failure. Clients only supply the leading reason (who
90
+ * rejected and why); the runtime appends this suffix.
91
+ */
92
+ export declare const TOOL_REJECTION_SUFFIX = "NOT a tool or system failure. Clarify with user before proceeding.";
79
93
  export declare const ToolCallRecordSchema: z.ZodObject<{
80
94
  id: z.ZodString;
81
95
  name: z.ZodString;
@@ -47,4 +47,8 @@ export declare function normalizeUserInput(input?: string): string;
47
47
  */
48
48
  export declare function stripModeNotices(input?: string): string;
49
49
  export declare function formatDisplayUserInput(input?: string): string;
50
+ export declare const SESSION_SEARCH_TITLE_MAX_LENGTH = 240;
51
+ export declare const SESSION_SEARCH_PREVIEW_MAX_LENGTH = 480;
52
+ export declare function formatSessionSearchTitle(input?: string): string;
53
+ export declare function formatSessionSearchPreview(role: string, input?: string): string;
50
54
  export declare function xmlTagsRemoval(input?: string, tag?: string): string;