@kodaris/krubble-app-components 1.0.115 → 1.0.116

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.
@@ -7433,7 +7433,6 @@
7433
7433
  }
7434
7434
  });
7435
7435
  }
7436
- /** Clear the in-flight confirmation flags (error paths, or once resolved). */
7437
7436
  /**
7438
7437
  * Capture ambient "where is the user / what are they looking at" context at
7439
7438
  * send time, so the AI is grounded without the host passing anything in.
@@ -7641,10 +7640,9 @@
7641
7640
  // deliberately never show). Adopt it as the header label and pass it
7642
7641
  // up so consumers can update their own chrome, e.g. a breadcrumb.
7643
7642
  if (data.data?.title) {
7644
- const title = String(data.data.title);
7645
- this.label = title;
7643
+ this.label = data.data.title;
7646
7644
  this.dispatchEvent(new CustomEvent('conversation-title', {
7647
- detail: { title },
7645
+ detail: { title: data.data.title },
7648
7646
  bubbles: true,
7649
7647
  composed: true,
7650
7648
  }));
@@ -8550,9 +8548,9 @@
8550
8548
  let resultPreview = '';
8551
8549
  let resultRemainder = 0;
8552
8550
  if (msg.type === 'tool_use') {
8553
- const next = this.messages[index + 1];
8554
- if (next && next.type === 'tool_result' && next.data?.toolUseId === msg.data?.toolUseId) {
8555
- result = next.data;
8551
+ if (this.messages[index + 1]?.type === 'tool_result'
8552
+ && this.messages[index + 1].data?.toolUseId === msg.data?.toolUseId) {
8553
+ result = this.messages[index + 1].data;
8556
8554
  }
8557
8555
  if (this._showToolInputs && msg.data?.toolInput) {
8558
8556
  inputSummary = String(msg.data.toolInput).replace(/\s+/g, ' ').trim();