@lasso-ai/cli 1.0.24 → 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.
package/dist/cli/agent.js CHANGED
@@ -351,7 +351,7 @@ function localCommand(provider, model, prompt) {
351
351
  return { command: "claude", args: ["-p", prompt || "", "--output-format", "stream-json", "--verbose", "--permission-mode", "plan", "--max-turns", "3", ...(selectedModel ? ["--model", selectedModel] : [])] };
352
352
  }
353
353
  if (provider === "opencode") {
354
- return { command: "opencode", args: ["run", "--format", "json", "--agent", "plan", ...(selectedModel ? ["--model", selectedModel] : []), prompt || ""] };
354
+ return { command: "opencode", args: ["run", "--format", "json", "--print-logs", "--log-level", "INFO", "--agent", "plan", ...(selectedModel ? ["--model", selectedModel] : []), prompt || ""] };
355
355
  }
356
356
  return { command: "codex", args: ["exec", "--json", "--sandbox", "read-only", "--skip-git-repo-check", ...(selectedModel ? ["--model", selectedModel] : []), prompt || ""] };
357
357
  }
@@ -393,8 +393,13 @@ function runLocalCommand(cwd, command, args, provider, signal, onProgress) {
393
393
  const progress = progressFromLine(line, provider);
394
394
  if (progress)
395
395
  onProgress?.(progress.message, progress.detail);
396
- else if (stream === "stderr" && line.trim())
396
+ else if (stream === "stderr" && line.trim()) {
397
397
  onProgress?.(`${label} · ${snippet(line, 110)}`);
398
+ if (provider === "opencode" && /quota exceeded|authentication failed|invalid api key|unauthorized|forbidden/i.test(line)) {
399
+ onProgress?.("OpenCode · provider rejected the request; stopping this task…");
400
+ child.kill("SIGTERM");
401
+ }
402
+ }
398
403
  }
399
404
  };
400
405
  child.stdout.on("data", (chunk) => consume(chunk, "stdout"));
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.24",
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",