mesauth-angular 1.25.0 → 1.25.1

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": "mesauth-angular",
3
- "version": "1.25.0",
3
+ "version": "1.25.1",
4
4
  "description": "Angular helper library to connect to a backend API and SignalR hub to surface the current logged-in user and incoming notifications with dark/light theme support",
5
5
  "keywords": [
6
6
  "angular",
@@ -625,7 +625,12 @@ interface ChatToolEvent {
625
625
  name: string;
626
626
  side: 'server' | 'client';
627
627
  status: 'running' | 'ok' | 'error' | 'awaiting-approval' | 'declined';
628
+ /** Short plain-English label shown next to the tool name in the chip. */
628
629
  summary?: string;
630
+ /** Pretty-printed full result (typically JSON). When present, the chip is expandable. */
631
+ detail?: string;
632
+ /** UI-only: whether the detail panel under this chip is currently open. */
633
+ expanded?: boolean;
629
634
  args?: any;
630
635
  readOnly?: boolean;
631
636
  }
@@ -699,6 +704,7 @@ type AiSseEvent = {
699
704
  id: string;
700
705
  ok: boolean;
701
706
  summary?: string;
707
+ detail?: string;
702
708
  } | {
703
709
  type: 'client_tool_call';
704
710
  id: string;
@@ -750,6 +756,8 @@ declare class MaAiService {
750
756
  cancel(): void;
751
757
  /** Send the user's answer to a pending ask_user question back to the orchestrator. */
752
758
  resolveQuestion(answer: string): Promise<void>;
759
+ /** Toggle the expanded/collapsed state of a tool chip with detail content. */
760
+ toggleToolExpanded(callId: string): void;
753
761
  /** User typed and submitted a message. */
754
762
  send(text: string, currentRoute?: string): Promise<void>;
755
763
  /**
@@ -768,7 +776,11 @@ declare class MaAiService {
768
776
  private markToolStatus;
769
777
  private finalizeAssistant;
770
778
  private verbOf;
779
+ /** Short plain-English label for the chip — never raw JSON. */
771
780
  private summarize;
781
+ private summarizeJson;
782
+ /** Pretty-printed JSON for the expandable panel; null when content isn't JSON. */
783
+ private prettyDetail;
772
784
  private uid;
773
785
  /** GET /ai/conversations — list this user's past conversations (most recent first). */
774
786
  listConversations(take?: number): Promise<AiConversationSummary[]>;
@@ -846,6 +858,7 @@ declare class MaAiChatPanelComponent implements AfterViewInit, OnDestroy {
846
858
  alwaysApprove(): void;
847
859
  decline(): void;
848
860
  answerQuestion(answer: string): void;
861
+ onToolChipClick(t: ChatToolEvent): void;
849
862
  submitQuestionInput(): void;
850
863
  startResize(ev: PointerEvent): void;
851
864
  onResizeMove(ev: PointerEvent): void;
@@ -1160,7 +1173,7 @@ interface MaUiManifest {
1160
1173
  quickPrompts?: string[];
1161
1174
  }
1162
1175
  /** Current installed package version — keep in sync with package.json. */
1163
- declare const PACKAGE_VERSION = "1.25.0";
1176
+ declare const PACKAGE_VERSION = "1.25.1";
1164
1177
  /**
1165
1178
  * Provides server-driven UI configuration loaded from the hosted manifest.
1166
1179
  * Components read `labels()` and `features()` signals instead of hardcoded strings.