@mindstudio-ai/remy 0.1.157 → 0.1.158

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
@@ -5570,7 +5570,8 @@ async function runTurn(params) {
5570
5570
  return;
5571
5571
  }
5572
5572
  const contentBlocks = [];
5573
- let thinkingStartedAt = 0;
5573
+ const thinkingBlockStartTimes = [];
5574
+ let thinkingCompleteCount = 0;
5574
5575
  const toolInputAccumulators = /* @__PURE__ */ new Map();
5575
5576
  let stopReason = "end_turn";
5576
5577
  let subAgentText = "";
@@ -5694,8 +5695,8 @@ async function runTurn(params) {
5694
5695
  break;
5695
5696
  }
5696
5697
  case "thinking":
5697
- if (!thinkingStartedAt) {
5698
- thinkingStartedAt = event.ts;
5698
+ if (event.text === "") {
5699
+ thinkingBlockStartTimes.push(event.ts);
5699
5700
  }
5700
5701
  onEvent({ type: "thinking", text: event.text });
5701
5702
  break;
@@ -5704,10 +5705,10 @@ async function runTurn(params) {
5704
5705
  type: "thinking",
5705
5706
  thinking: event.thinking,
5706
5707
  signature: event.signature,
5707
- startedAt: thinkingStartedAt,
5708
+ startedAt: thinkingBlockStartTimes[thinkingCompleteCount] ?? event.ts,
5708
5709
  completedAt: event.ts
5709
5710
  });
5710
- thinkingStartedAt = 0;
5711
+ thinkingCompleteCount++;
5711
5712
  break;
5712
5713
  case "tool_input_delta": {
5713
5714
  const acc = getOrCreateAccumulator2(event.id, event.name);
package/dist/index.js CHANGED
@@ -6153,7 +6153,8 @@ async function runTurn(params) {
6153
6153
  return;
6154
6154
  }
6155
6155
  const contentBlocks = [];
6156
- let thinkingStartedAt = 0;
6156
+ const thinkingBlockStartTimes = [];
6157
+ let thinkingCompleteCount = 0;
6157
6158
  const toolInputAccumulators = /* @__PURE__ */ new Map();
6158
6159
  let stopReason = "end_turn";
6159
6160
  let subAgentText = "";
@@ -6277,8 +6278,8 @@ async function runTurn(params) {
6277
6278
  break;
6278
6279
  }
6279
6280
  case "thinking":
6280
- if (!thinkingStartedAt) {
6281
- thinkingStartedAt = event.ts;
6281
+ if (event.text === "") {
6282
+ thinkingBlockStartTimes.push(event.ts);
6282
6283
  }
6283
6284
  onEvent({ type: "thinking", text: event.text });
6284
6285
  break;
@@ -6287,10 +6288,10 @@ async function runTurn(params) {
6287
6288
  type: "thinking",
6288
6289
  thinking: event.thinking,
6289
6290
  signature: event.signature,
6290
- startedAt: thinkingStartedAt,
6291
+ startedAt: thinkingBlockStartTimes[thinkingCompleteCount] ?? event.ts,
6291
6292
  completedAt: event.ts
6292
6293
  });
6293
- thinkingStartedAt = 0;
6294
+ thinkingCompleteCount++;
6294
6295
  break;
6295
6296
  case "tool_input_delta": {
6296
6297
  const acc = getOrCreateAccumulator2(event.id, event.name);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mindstudio-ai/remy",
3
- "version": "0.1.157",
3
+ "version": "0.1.158",
4
4
  "description": "MindStudio coding agent",
5
5
  "repository": {
6
6
  "type": "git",