@mindstudio-ai/remy 0.1.159 → 0.1.161

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/headless.js CHANGED
@@ -5848,6 +5848,7 @@ async function runTurn(params) {
5848
5848
  const contentBlocks = [];
5849
5849
  const thinkingBlockStartTimes = [];
5850
5850
  let thinkingCompleteCount = 0;
5851
+ let textBlockOpen = false;
5851
5852
  const toolInputAccumulators = /* @__PURE__ */ new Map();
5852
5853
  let stopReason = "end_turn";
5853
5854
  let subAgentText = "";
@@ -5958,7 +5959,7 @@ async function runTurn(params) {
5958
5959
  switch (event.type) {
5959
5960
  case "text": {
5960
5961
  const lastBlock = contentBlocks.at(-1);
5961
- if (lastBlock?.type === "text") {
5962
+ if (lastBlock?.type === "text" && textBlockOpen) {
5962
5963
  lastBlock.text += event.text;
5963
5964
  } else {
5964
5965
  contentBlocks.push({
@@ -5967,12 +5968,14 @@ async function runTurn(params) {
5967
5968
  startedAt: event.ts
5968
5969
  });
5969
5970
  }
5971
+ textBlockOpen = true;
5970
5972
  onEvent({ type: "text", text: event.text });
5971
5973
  break;
5972
5974
  }
5973
5975
  case "thinking":
5974
5976
  if (event.text === "") {
5975
5977
  thinkingBlockStartTimes.push(event.ts);
5978
+ textBlockOpen = false;
5976
5979
  }
5977
5980
  onEvent({ type: "thinking", text: event.text });
5978
5981
  break;
package/dist/index.js CHANGED
@@ -6447,6 +6447,7 @@ async function runTurn(params) {
6447
6447
  const contentBlocks = [];
6448
6448
  const thinkingBlockStartTimes = [];
6449
6449
  let thinkingCompleteCount = 0;
6450
+ let textBlockOpen = false;
6450
6451
  const toolInputAccumulators = /* @__PURE__ */ new Map();
6451
6452
  let stopReason = "end_turn";
6452
6453
  let subAgentText = "";
@@ -6557,7 +6558,7 @@ async function runTurn(params) {
6557
6558
  switch (event.type) {
6558
6559
  case "text": {
6559
6560
  const lastBlock = contentBlocks.at(-1);
6560
- if (lastBlock?.type === "text") {
6561
+ if (lastBlock?.type === "text" && textBlockOpen) {
6561
6562
  lastBlock.text += event.text;
6562
6563
  } else {
6563
6564
  contentBlocks.push({
@@ -6566,12 +6567,14 @@ async function runTurn(params) {
6566
6567
  startedAt: event.ts
6567
6568
  });
6568
6569
  }
6570
+ textBlockOpen = true;
6569
6571
  onEvent({ type: "text", text: event.text });
6570
6572
  break;
6571
6573
  }
6572
6574
  case "thinking":
6573
6575
  if (event.text === "") {
6574
6576
  thinkingBlockStartTimes.push(event.ts);
6577
+ textBlockOpen = false;
6575
6578
  }
6576
6579
  onEvent({ type: "thinking", text: event.text });
6577
6580
  break;
@@ -112,5 +112,6 @@ Always rely on the details provided by the design expert - their work is the sou
112
112
  - **Avoid long scrolling forms with no visual grouping.** Instead: group fields into sections with clear headings, cards, or stepped flows.
113
113
  - **Avoid cramped layouts.** Avoid text pressed against edges, no room to breathe. Instead: generous padding, comfortable margins, let the content float.
114
114
  - **Avoid loading states that are just a centered spinner on a blank page.** Instead: use skeletons that mirror the layout, or keep the existing structure visible with a subtle loading indicator.
115
+ - **Always build styled modals, sheets, popovers, and toasts** Never use lazy native browser primitives like alert(), prompt(), or confirm().
115
116
 
116
117
  Most importantly: **Avoid any interface where the first reaction is "this looks like a demo" or "this looks like it was made with a website builder."**
@@ -13,7 +13,7 @@
13
13
  - Work with what you already know. If you've read a file in this session, use what you learned rather than reading it again. If a subagent already researched something, use its findings. Every tool call costs time; prefer acting on information you have over re-gathering it.
14
14
  - When multiple tool calls are independent, make them all in a single turn. Reading three files, writing two methods, or running a scenario while taking a screenshot: batch them instead of doing one per turn.
15
15
  - After two failed attempts at the same approach, tell the user what's going wrong.
16
- - Never estimate how long something will take. Just do it.
16
+ - Never estimate how long something will take or how much it will cost. Just do it. If the user asks, you must politely refuse and let them know that due to the way AI models work, any answer would just be a guess. You can, however, help them understand the scope and scale of the work, or how long it might take/how much it might cost a traditional engineering or product team (e.g., weeks/months, $100k USD+ to a consulting shop, etc.) - but you can not estimate token usage or costs of work within the system.
17
17
  - Pushing to main branch will trigger a deploy. The user presses the publish button in the interface to request publishing.
18
18
 
19
19
  ### Build Notes
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mindstudio-ai/remy",
3
- "version": "0.1.159",
3
+ "version": "0.1.161",
4
4
  "description": "MindStudio coding agent",
5
5
  "repository": {
6
6
  "type": "git",