@lovable.dev/sdk 0.1.5 → 0.1.8
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 +0 -23
- package/dist/index.d.ts +12343 -38
- package/dist/index.js +98 -39
- package/dist/index.js.map +1 -1
- package/package.json +10 -4
package/README.md
CHANGED
|
@@ -79,28 +79,6 @@ await client.chat(projectId, { message: "Add dark mode" });
|
|
|
79
79
|
const response = await client.waitForResponse(projectId);
|
|
80
80
|
```
|
|
81
81
|
|
|
82
|
-
### Remixing with agent state
|
|
83
|
-
|
|
84
|
-
Enable `includeAgentState` to carry over the agent's continuation state to the remixed project, allowing prompt cache reuse on the first follow-up message.
|
|
85
|
-
|
|
86
|
-
```typescript
|
|
87
|
-
const jobId = await client.remixProject("source-project-id", {
|
|
88
|
-
workspaceId: "target-workspace-id",
|
|
89
|
-
messageId: "message-id-to-snapshot-at",
|
|
90
|
-
includeHistory: true,
|
|
91
|
-
includeCustomKnowledge: true,
|
|
92
|
-
includeAgentState: true,
|
|
93
|
-
});
|
|
94
|
-
const { projectId } = await client.waitForRemix("source-project-id", jobId);
|
|
95
|
-
|
|
96
|
-
await client.chat(projectId, {
|
|
97
|
-
message: "Add dark mode",
|
|
98
|
-
continuation: "allow_expired_cache",
|
|
99
|
-
});
|
|
100
|
-
```
|
|
101
|
-
|
|
102
|
-
Requires `includeHistory`, `includeCustomKnowledge`, and API-key auth.
|
|
103
|
-
|
|
104
82
|
### Continuation override
|
|
105
83
|
|
|
106
84
|
The `continuation` option on `chat()` overrides prompt cache reuse behavior. API-key auth only.
|
|
@@ -310,7 +288,6 @@ Options:
|
|
|
310
288
|
- `remixMode` (optional): `"before"` (default) captures state before the message; `"including"` captures state after the message and its AI response
|
|
311
289
|
- `includeHistory` (optional, default: `false`): Whether to preserve chat history
|
|
312
290
|
- `includeCustomKnowledge` (optional, default: `false`): Whether to copy custom instructions/knowledge
|
|
313
|
-
- `includeAgentState` (optional, default: `false`): Copy agent continuation state so the prompt cache can be reused after remix. Requires `includeHistory: true`, `includeCustomKnowledge: true`, and API-key auth. See [Remixing with agent state](#remixing-with-agent-state-prompt-cache-continuation)
|
|
314
291
|
- `initialMessage` (optional): Initial chat message to send after remix completes
|
|
315
292
|
- `skipInitialRemixMessage` (optional, default: `false`): When true, suppresses the default "I've successfully remixed this project" message
|
|
316
293
|
- `skipIntegrations` (optional, default: `false`): When true, skips copying integrations to the remixed project
|