@springbrand/message-panel 0.2.0-alpha.55 → 0.2.0-alpha.56

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.
@@ -431,13 +431,18 @@ function assistantBlocks(
431
431
  if (type === "text") {
432
432
  const text = String(record.text ?? "").trim();
433
433
  if (!text) return;
434
+ // Clarification prose belongs with its ask_user, not the later delivery.
435
+ const nextBoundary = message.parts.slice(partIndex + 1).find((next) =>
436
+ next.type === "step-start" || toolNameOf(next) === "ask_user"
437
+ );
434
438
  flush();
435
439
  blocks.push({
436
440
  kind: "text",
437
441
  key,
438
442
  text,
439
443
  final: false,
440
- substantive: Array.from(text).length > 400,
444
+ substantive: Array.from(text).length > 400 &&
445
+ toolNameOf(nextBoundary) !== "ask_user",
441
446
  });
442
447
  return;
443
448
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@springbrand/message-panel",
3
- "version": "0.2.0-alpha.55",
3
+ "version": "0.2.0-alpha.56",
4
4
  "type": "module",
5
5
  "files": [
6
6
  "src",
@@ -1 +0,0 @@
1
- {"version":"4.1.10","results":[[":bot/cycles.test.ts",{"duration":55.58770800000002,"failed":false}],[":bot/skins.test.ts",{"duration":3032.4465840000003,"failed":false}],[":bot/engine.test.ts",{"duration":100.501834,"failed":false}],[":bot/shape.test.ts",{"duration":16.04204200000001,"failed":false}],[":bot/expressions.test.ts",{"duration":8.212458999999996,"failed":false}],[":bot/face.test.ts",{"duration":3.6211250000000064,"failed":false}],[":drag.test.ts",{"duration":1.7712499999999807,"failed":false}],[":animation.test.ts",{"duration":2.3806249999999807,"failed":false}]]}