@lovable.dev/sdk 1.7.0 → 1.7.5
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 +9 -2
- package/dist/index.d.ts +232 -456
- package/dist/index.js +20 -15
- package/dist/index.js.map +1 -1
- package/dist/schemas.d.ts +106 -111
- package/dist/schemas.js +50 -86
- package/dist/schemas.js.map +1 -1
- package/package.json +1 -1
- package/src/client.ts +26 -20
- package/src/generated/paths.ts +229 -453
- package/src/generated/version.ts +1 -1
- package/src/generated/zod/zod.gen.ts +54 -92
- package/src/types.ts +2 -8
package/README.md
CHANGED
|
@@ -295,15 +295,22 @@ Options:
|
|
|
295
295
|
- `workspaceId` (required): Target workspace for the new project
|
|
296
296
|
- `messageId` (optional): Message ID to snapshot at — by default the remix reflects the project state just before this message
|
|
297
297
|
- `remixMode` (optional): `"before"` (default) captures state before the message; `"including"` captures state after the message and its AI response
|
|
298
|
-
- `includeHistory` (optional, default: `false`):
|
|
298
|
+
- `includeHistory` (optional, default: `false`): Copy chat history. Requires edit access to the original project. View-only access or a public remix link is not enough.
|
|
299
|
+
- `includeFiles` (optional, default: `false`): Copy project Files. Requires edit access to the original project. View-only access or a public remix link is not enough.
|
|
299
300
|
- `includeCustomKnowledge` (optional, default: `false`): Whether to copy custom instructions/knowledge
|
|
300
301
|
- `initialMessage` (optional): Initial chat message to send after remix completes
|
|
301
302
|
- `skipInitialRemixMessage` (optional, default: `false`): When true, suppresses the default "I've successfully remixed this project" message
|
|
302
303
|
- `skipIntegrations` (optional, default: `false`): When true, skips copying integrations to the remixed project
|
|
303
304
|
|
|
305
|
+
Omitting `includeFiles` or setting it to `false` skips Files for everyone. Set it to `true` to copy Files; without edit access to the original project, the request returns `403 insufficient_permissions`.
|
|
306
|
+
|
|
307
|
+
Existing callers that relied on automatic Files copying must now send `includeFiles: true`. Chat history stays independent.
|
|
308
|
+
|
|
309
|
+
This option does not control attachments in copied chat history or app code and assets.
|
|
310
|
+
|
|
304
311
|
##### `waitForRemix(sourceProjectId: string, jobId: string, options?): Promise<RemixResult>`
|
|
305
312
|
|
|
306
|
-
Wait for a remix operation to complete. Polls until the job finishes.
|
|
313
|
+
Wait for a remix operation to complete. Polls `GET /v1/remix-jobs/{job_id}` until the job finishes. The `sourceProjectId` argument is kept for SDK compatibility.
|
|
307
314
|
|
|
308
315
|
Returns:
|
|
309
316
|
|