@marketrix.ai/widget 3.8.136 → 3.8.138
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 +4 -4
- package/dist/src/context/{ConversationContext.d.ts → ChatContext.d.ts} +7 -7
- package/dist/src/context/WidgetProviders.d.ts +2 -2
- package/dist/src/context/sseReducer.d.ts +3 -3
- package/dist/src/hooks/useWidget.d.ts +2 -2
- package/dist/src/index.d.ts +2 -2
- package/dist/src/sdk/contract.d.ts +18 -18
- package/dist/src/sdk/contracts/activityLog.d.ts +32 -32
- package/dist/src/sdk/contracts/application.d.ts +24 -24
- package/dist/src/sdk/contracts/entities.d.ts +40 -64
- package/dist/src/sdk/contracts/widget.d.ts +25 -26
- package/dist/src/sdk/index.d.ts +18 -18
- package/dist/src/services/ApiService.d.ts +2 -2
- package/dist/src/services/{ToolService.d.ts → BrowserToolService.d.ts} +4 -4
- package/dist/src/services/{SessionManager.d.ts → ChatSessionManager.d.ts} +3 -3
- package/dist/src/services/DomService.d.ts +1 -1
- package/dist/src/services/{SessionRecorder.d.ts → RrwebSessionRecorder.d.ts} +3 -3
- package/dist/src/services/ShowModeService.d.ts +1 -1
- package/dist/src/services/StorageService.d.ts +1 -1
- package/dist/src/services/WidgetService.d.ts +1 -1
- package/dist/src/types/browserTools.d.ts +1 -1
- package/dist/src/types/index.d.ts +3 -3
- package/dist/src/utils/chat.d.ts +5 -5
- package/dist/widget.mjs +62 -62
- package/dist/widget.mjs.map +1 -1
- package/package.json +1 -1
|
@@ -52,7 +52,7 @@ export interface MessagePart {
|
|
|
52
52
|
type: 'text' | 'progress';
|
|
53
53
|
content: string;
|
|
54
54
|
status?: 'in_progress' | 'completed' | 'failed' | 'stopped';
|
|
55
|
-
|
|
55
|
+
browserToolName?: string;
|
|
56
56
|
hideIcon?: boolean;
|
|
57
57
|
textStyle?: 'default' | 'muted';
|
|
58
58
|
}
|
|
@@ -69,7 +69,7 @@ export interface WidgetState {
|
|
|
69
69
|
isSimulationRunning: boolean;
|
|
70
70
|
activeView: WidgetView;
|
|
71
71
|
}
|
|
72
|
-
export interface
|
|
72
|
+
export interface MessageDispatchRequest {
|
|
73
73
|
message?: string;
|
|
74
74
|
mode?: InstructionType;
|
|
75
75
|
mtxId?: string;
|
|
@@ -78,7 +78,7 @@ export interface SendMessageRequest {
|
|
|
78
78
|
question?: string;
|
|
79
79
|
requestId?: string;
|
|
80
80
|
}
|
|
81
|
-
export interface
|
|
81
|
+
export interface MessageDispatchResponse {
|
|
82
82
|
messageId: string;
|
|
83
83
|
response: string;
|
|
84
84
|
mode: InstructionType;
|
package/dist/src/utils/chat.d.ts
CHANGED
|
@@ -41,12 +41,12 @@ export declare function findMessageForProgress(options: FindMessageOptions): {
|
|
|
41
41
|
/**
|
|
42
42
|
* Tools that, in `show` mode, pause for the user to perform the action
|
|
43
43
|
* themselves (DOM-mutating "mouse and keyboard" actions, minus `scroll`).
|
|
44
|
-
* Also the set that requires element highlighting in
|
|
44
|
+
* Also the set that requires element highlighting in BrowserToolService.
|
|
45
45
|
*/
|
|
46
46
|
export declare const WAIT_FOR_USER_TOOLS: Set<string>;
|
|
47
|
-
export declare function addProgressLine(message: ChatMessage,
|
|
48
|
-
export declare function markProgressLineComplete(message: ChatMessage,
|
|
49
|
-
export declare function markProgressLineFailed(message: ChatMessage,
|
|
47
|
+
export declare function addProgressLine(message: ChatMessage, browserToolName: string, explanation: string): ChatMessage;
|
|
48
|
+
export declare function markProgressLineComplete(message: ChatMessage, browserToolName?: string): ChatMessage;
|
|
49
|
+
export declare function markProgressLineFailed(message: ChatMessage, browserToolName: string, error: string): ChatMessage;
|
|
50
50
|
export declare function updateThinkingMarker(message: ChatMessage, isSimulationRunning: boolean, currentMode: 'show' | 'tell' | 'do', isWaitingForUser?: boolean): ChatMessage;
|
|
51
51
|
/**
|
|
52
52
|
* Tool Name Mapping — derived from BROWSER_TOOLS (single source of truth).
|
|
@@ -57,4 +57,4 @@ export declare const TOOL_NAME_MAPPING: Record<string, string>;
|
|
|
57
57
|
* Get a friendly display name for a tool
|
|
58
58
|
* Converts snake_case to Title Case if no mapping exists
|
|
59
59
|
*/
|
|
60
|
-
export declare function getFriendlyToolName(
|
|
60
|
+
export declare function getFriendlyToolName(browserToolName: string): string;
|