@posiwise/shared-components 0.0.186 → 0.0.188

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@posiwise/shared-components",
3
- "version": "0.0.186",
3
+ "version": "0.0.188",
4
4
  "peerDependencies": {
5
5
  "@angular/common": "^21.2.6",
6
6
  "@angular/core": "^21.2.6",
@@ -557,9 +557,19 @@ declare class PwBrainChatComponent implements OnInit, OnDestroy {
557
557
  draft: string;
558
558
  loading: boolean;
559
559
  streamingStage: string | null;
560
+ /**
561
+ * Live prose accumulator — set when the orchestrator's SSE stream is
562
+ * emitting `prose` events (brain-api #51 fix #2). Each chunk is
563
+ * appended; the template renders this as a partial assistant bubble
564
+ * with a caret so the user sees words building up instead of a dead
565
+ * spinner. Cleared on `result` / `error` once the canonical assistant
566
+ * message is pushed to `messages`.
567
+ */
568
+ streamingProse: string | null;
560
569
  brandName: string;
561
570
  private conversationId;
562
571
  private storage;
572
+ private streamSub?;
563
573
  private readonly destroy$;
564
574
  readonly diffRows: typeof diffRowsFrom;
565
575
  private readonly threadRef?;
@@ -576,6 +586,8 @@ declare class PwBrainChatComponent implements OnInit, OnDestroy {
576
586
  send(): void;
577
587
  approve(message: ChatMessage): void;
578
588
  cancel(message: ChatMessage): void;
589
+ /** Abort the in-flight request — unsubscribing aborts the fetch (mcp-orchestrator AbortController), then reset the composer so the user can retype. */
590
+ cancelRequest(): void;
579
591
  trackByIndex(index: number, _item: ChatMessage): number;
580
592
  private handleExecuteResponse;
581
593
  private applySuccessResult;