@lovable.dev/sdk 0.0.3 → 0.0.4

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.
Files changed (2) hide show
  1. package/README.md +8 -7
  2. package/package.json +1 -1
package/README.md CHANGED
@@ -24,18 +24,19 @@ const workspaces = await client.listWorkspaces();
24
24
 
25
25
  // 1. Create a project
26
26
  const project = await client.createProject(workspaces[0].id, {
27
- description: "A todo app with authentication",
27
+ description: "Best todo app",
28
+ initialMessage: "Create a todo app with authentication"
28
29
  });
29
30
 
30
- // 2. Send a chat message
31
- await client.chat(project.id, {
32
- message: "Create a simple todo app with user authentication",
33
- });
34
-
35
- // 3. Wait for the AI response and get the preview URL
31
+ // 2. Wait for the AI response and get the preview URL
36
32
  const response = await client.waitForResponse(project.id);
37
33
  console.log(response.content); // AI's response text
38
34
  console.log(response.previewUrl); // Preview URL for the project
35
+
36
+ // 3. Send a follow-up chat message
37
+ await client.chat(project.id, {
38
+ message: "Add a footer",
39
+ });
39
40
  ```
40
41
 
41
42
  ## API Reference
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lovable.dev/sdk",
3
- "version": "0.0.3",
3
+ "version": "0.0.4",
4
4
  "description": "TypeScript SDK for the Lovable API",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",