@lasso-ai/cli 2.1.6 → 2.1.7

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 +24 -8
  2. package/package.json +1 -1
package/dist/overlay.js CHANGED
@@ -20626,14 +20626,30 @@
20626
20626
  }
20627
20627
  }
20628
20628
  function handleCommandBarPrompt(message) {
20629
- if (message.prompt?.question) {
20630
- const targetMsg = [...commandMessages].reverse().find((m) => m.role === "assistant");
20631
- if (targetMsg) {
20632
- targetMsg.content += `
20633
-
20634
- **${message.prompt.question}**`;
20635
- renderMessages();
20636
- }
20629
+ const taskId2 = message.taskId;
20630
+ let targetMsg = commandMessages.find((m) => m.id === taskId2);
20631
+ if (!targetMsg) {
20632
+ targetMsg = [...commandMessages].reverse().find((m) => m.role === "assistant");
20633
+ }
20634
+ if (!targetMsg) return;
20635
+ if (activeThinkingInterval) {
20636
+ clearInterval(activeThinkingInterval);
20637
+ activeThinkingInterval = null;
20638
+ }
20639
+ targetMsg.thinking = void 0;
20640
+ const question = message.prompt?.question || message.message || "";
20641
+ targetMsg.content = question;
20642
+ targetMsg.isStreaming = false;
20643
+ activeTaskId = null;
20644
+ updateSubmitButton(false);
20645
+ collabEmit("collab:action", {
20646
+ sessionId: state.collabProjectId,
20647
+ status: "idle"
20648
+ });
20649
+ renderMessages();
20650
+ scrollToBottom();
20651
+ if (commandInput) {
20652
+ commandInput.focus();
20637
20653
  }
20638
20654
  }
20639
20655
  function renderMessages() {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lasso-ai/cli",
3
- "version": "2.1.6",
3
+ "version": "2.1.7",
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",