@lovable.dev/sdk 1.4.1 → 1.6.1

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/src/types.ts CHANGED
@@ -136,7 +136,7 @@ export type GitDiffResponse = Schemas["V1DiffResponse"];
136
136
  export type GitFileEntry = Schemas["GitFileEntryLite"];
137
137
  export type GitFilesResponse = Schemas["PublicV1GitFilesResponse"] & { files: GitFileEntry[] };
138
138
  export type EditSummary = Schemas["V1EditSummary"];
139
- export type EditsResponse = Schemas["PublicV1GetEditsOutputBody"];
139
+ export type EditsResponse = Schemas["CursorListResponseV1EditSummary"];
140
140
 
141
141
  // --- Libraries & templates ---
142
142
 
@@ -288,14 +288,20 @@ export type ContinuationOverride = "force" | "fresh_build" | "allow_expired_cach
288
288
 
289
289
  export interface ChatMessageOptions {
290
290
  message: string;
291
- /** Send the message to this project variant instead of the main agent. */
292
- variantId?: string;
293
291
  /** Files to upload and attach. The SDK handles uploading them first. */
294
292
  files?: (File | FileInput)[];
295
293
  /** Pre-uploaded file references. Skips upload. */
296
294
  uploadedFiles?: UnscopedFile[];
297
295
  /** Enable plan mode: the agent discusses and plans without editing code. */
298
296
  planMode?: boolean;
297
+ /**
298
+ * Run this turn in Max mode: the strongest model at high effort, 2.5x credits.
299
+ * Build turns only; ignored when planMode is set. Requires the max-mode
300
+ * feature or a Lovable-on-Lovable project; rejected with 403 otherwise.
301
+ */
302
+ maxMode?: boolean;
303
+ /** @deprecated Eco-max mode has been removed; this option is ignored by the server. */
304
+ ecoMaxMode?: boolean;
299
305
  /**
300
306
  * Override continuation behavior for this message.
301
307
  * Controls whether the agent reuses the prompt cache or rebuilds from scratch.