@lasso-ai/cli 1.0.25 → 1.0.26

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/dist/overlay.js +5 -1
  2. package/package.json +1 -1
package/dist/overlay.js CHANGED
@@ -19063,7 +19063,7 @@
19063
19063
  state.promptTaskId = task.id;
19064
19064
  state.chatHistory = [...task.messages];
19065
19065
  state.changesHistory = task.changesHistory.map((entry) => ({ ...entry, changes: entry.changes.map((change) => ({ ...change })) }));
19066
- state.pendingChanges = [...task.pendingChanges];
19066
+ state.pendingChanges = [...task.pendingChanges.length ? task.pendingChanges : task.changes || []];
19067
19067
  state.lastInstruction = task.lastInstruction;
19068
19068
  state.selectionId = task.selectionId;
19069
19069
  state.screenshotPromise = Promise.resolve({});
@@ -19173,6 +19173,10 @@
19173
19173
  async function handleSend(event) {
19174
19174
  event.preventDefault();
19175
19175
  event.stopPropagation();
19176
+ if (sendButton?.dataset.state === "review") {
19177
+ if (state.pendingChanges.length) showReview(state.pendingChanges, "Review the proposed source changes.");
19178
+ return;
19179
+ }
19176
19180
  const selectedElement = state.selected;
19177
19181
  if (!selectedElement || !promptInput || !sendButton) return;
19178
19182
  const instruction = promptInput.value.trim() || (sendButton.dataset.state === "retry" ? state.lastInstruction : "");
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lasso-ai/cli",
3
- "version": "1.0.25",
3
+ "version": "1.0.26",
4
4
  "description": "Select any part of your running app, describe a change, and let AI edit the real source code.",
5
5
  "type": "commonjs",
6
6
  "main": "dist/cli/index.js",