@lovable.dev/sdk 1.4.1 → 1.7.0
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/README.md +21 -2
- package/dist/index.d.ts +4361 -1408
- package/dist/index.js +15 -1
- package/dist/index.js.map +1 -1
- package/dist/schemas.d.ts +1066 -369
- package/dist/schemas.js +412 -182
- package/dist/schemas.js.map +1 -1
- package/dist/workflows.d.ts +233 -0
- package/dist/workflows.js +1250 -0
- package/dist/workflows.js.map +1 -0
- package/package.json +5 -1
- package/src/client.ts +20 -4
- package/src/generated/paths.ts +4248 -1301
- package/src/generated/version.ts +2 -0
- package/src/generated/zod/zod.gen.ts +448 -190
- package/src/types.ts +9 -3
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["
|
|
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.
|