@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.
@@ -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
- toolName?: string;
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 SendMessageRequest {
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 SendMessageResponse {
81
+ export interface MessageDispatchResponse {
82
82
  messageId: string;
83
83
  response: string;
84
84
  mode: InstructionType;
@@ -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 ToolService.
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, toolName: string, explanation: string): ChatMessage;
48
- export declare function markProgressLineComplete(message: ChatMessage, toolName?: string): ChatMessage;
49
- export declare function markProgressLineFailed(message: ChatMessage, toolName: string, error: string): 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(toolName: string): string;
60
+ export declare function getFriendlyToolName(browserToolName: string): string;