@m6d/cortex-angular 0.16.0 → 0.17.0
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/README.md +1 -1
- package/fesm2022/m6d-cortex-angular.mjs +510 -9
- package/package.json +3 -3
- package/types/m6d-cortex-angular.d.ts +15 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@m6d/cortex-angular",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.17.0",
|
|
4
4
|
"description": "Angular chat widget for Cortex agents",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"sideEffects": false,
|
|
@@ -21,8 +21,8 @@
|
|
|
21
21
|
"@angular/common": ">=21.2.0 <23",
|
|
22
22
|
"@angular/core": ">=21.2.0 <23",
|
|
23
23
|
"@angular/platform-browser": ">=21.2.0 <23",
|
|
24
|
-
"@tanstack/ai": ">=0.
|
|
25
|
-
"@tanstack/ai-client": ">=0.
|
|
24
|
+
"@tanstack/ai": ">=1.0.0 <2.0.0",
|
|
25
|
+
"@tanstack/ai-client": ">=1.0.0 <2.0.0",
|
|
26
26
|
"dompurify": "^3.0.0",
|
|
27
27
|
"highlight.js": "^11.0.0",
|
|
28
28
|
"leaflet": "^1.9.0",
|
|
@@ -488,6 +488,17 @@ type TokenUsage$1 = {
|
|
|
488
488
|
};
|
|
489
489
|
total: number;
|
|
490
490
|
};
|
|
491
|
+
/**
|
|
492
|
+
* Response of `GET /connections/:server?call=<toolCallId>`: where the
|
|
493
|
+
* caller's own account stands with the agent's MCP server of that name, for
|
|
494
|
+
* the card of that `connectAccount` call. `connected` with all a sign-in
|
|
495
|
+
* may ask for; `pending` while it is not connected, or lacks access a
|
|
496
|
+
* sign-in may still grant; `refused` once the card's own sign-in came back
|
|
497
|
+
* without it, or no sign-in may ask again.
|
|
498
|
+
*/
|
|
499
|
+
export type AccountConnection$1 = {
|
|
500
|
+
status: "connected" | "pending" | "refused";
|
|
501
|
+
};
|
|
491
502
|
/**
|
|
492
503
|
* What Cortex offers this agent's clients, fetched once at widget startup.
|
|
493
504
|
* The widget hides UI for anything absent; Cortex enforces each.
|
|
@@ -557,6 +568,7 @@ declare class CortexChatService {
|
|
|
557
568
|
listLlmRequests(threadId: string, messageId: string): Promise<LlmRequest$1[]>;
|
|
558
569
|
abortStream(threadId: string): Promise<AbortRunResult$1>;
|
|
559
570
|
initiateToolCall(threadId: string, toolCallId: string): Promise<ClientToolInitiateResult$1>;
|
|
571
|
+
accountConnection(server: string, toolCallId: string, signal?: AbortSignal): Promise<AccountConnection$1>;
|
|
560
572
|
uploadAttachment(threadId: string, file: File): Promise<AttachmentSummary$1>;
|
|
561
573
|
deleteAttachment(id: string): Promise<void>;
|
|
562
574
|
downloadAttachment(id: string): Promise<{
|
|
@@ -616,6 +628,8 @@ declare class CortexChatService {
|
|
|
616
628
|
export declare class CortexChatWidgetComponent implements OnInit {
|
|
617
629
|
readonly config: import("@angular/core").InputSignal<CortexAngularConfig>;
|
|
618
630
|
protected readonly direction: import("@angular/core").Signal<"ltr" | "rtl">;
|
|
631
|
+
protected readonly viewMode: import("@angular/core").Signal<CortexViewMode>;
|
|
632
|
+
private readonly container;
|
|
619
633
|
private readonly landingComposer;
|
|
620
634
|
/** The consumer's own parts by slot; each replaces the widget's default and gets the same context. */
|
|
621
635
|
private readonly slotDirectives;
|
|
@@ -673,6 +687,7 @@ export declare class CortexChatWidgetComponent implements OnInit {
|
|
|
673
687
|
}>;
|
|
674
688
|
protected readonly composerSlot: import("@angular/core").Signal<"translate_access_refused" | "translate_visitor_unverified" | "translate_agent_unreachable" | "translate_agent_missing" | "composer" | "translate_read_only" | "translate_messages_disabled" | undefined>;
|
|
675
689
|
private readonly injector;
|
|
690
|
+
constructor();
|
|
676
691
|
ngOnInit(): void;
|
|
677
692
|
protected onWidgetDragOver(event: DragEvent): void;
|
|
678
693
|
protected onWidgetDrop(event: DragEvent): void;
|