@cline/shared 0.0.82 → 0.0.83

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/agent.d.ts CHANGED
@@ -234,6 +234,14 @@ export type AgentModelEvent = {
234
234
  reason: AgentModelFinishReason;
235
235
  error?: string;
236
236
  errorClass?: ProviderErrorClass;
237
+ /**
238
+ * Whether the underlying provider error was transient and worth
239
+ * retrying, decided at the model boundary from the AI SDK's typed
240
+ * `isRetryable` flag while the structured error is still in hand
241
+ * (`error` is a flattened string, so the agent loop cannot re-derive
242
+ * this). When absent, the agent loop classifies from the message.
243
+ */
244
+ errorRetryable?: boolean;
237
245
  /**
238
246
  * The model layer already recorded `sdk.error` telemetry for this
239
247
  * failure at its own error boundary. `error` is a flattened string,
@@ -662,6 +662,12 @@ export declare const AgentResultSchema: z.ZodObject<{
662
662
  family: z.ZodOptional<z.ZodString>;
663
663
  metadata: z.ZodOptional<z.ZodObject<{
664
664
  reasoningDefaultOn: z.ZodOptional<z.ZodBoolean>;
665
+ apiProtocol: z.ZodOptional<z.ZodEnum<{
666
+ "openai-responses": "openai-responses";
667
+ "openai-chat": "openai-chat";
668
+ anthropic: "anthropic";
669
+ gemini: "gemini";
670
+ }>>;
665
671
  }, z.core.$catchall<z.ZodUnknown>>>;
666
672
  }, z.core.$strip>>;
667
673
  }, z.core.$strip>;
@@ -967,6 +973,12 @@ export declare const AgentConfigSchema: z.ZodObject<{
967
973
  family: z.ZodOptional<z.ZodString>;
968
974
  metadata: z.ZodOptional<z.ZodObject<{
969
975
  reasoningDefaultOn: z.ZodOptional<z.ZodBoolean>;
976
+ apiProtocol: z.ZodOptional<z.ZodEnum<{
977
+ "openai-responses": "openai-responses";
978
+ "openai-chat": "openai-chat";
979
+ anthropic: "anthropic";
980
+ gemini: "gemini";
981
+ }>>;
970
982
  }, z.core.$catchall<z.ZodUnknown>>>;
971
983
  }, z.core.$strip>>>;
972
984
  providerConfig: z.ZodOptional<z.ZodUnknown>;