@elementor/angie-sdk 1.2.0 → 1.3.0-beta.3

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.
@@ -36,6 +36,14 @@ export declare class AngieMcpSdk {
36
36
  destroy(): void;
37
37
  private setupServerInitHandler;
38
38
  private handleServerInitRequest;
39
+ private connectServerTransport;
40
+ /**
41
+ * Backward compat: MCP SDK >=1.26 moved `instructions` from the first
42
+ * constructor arg (Implementation/serverInfo) to the second (ServerOptions).
43
+ * 3rd-party servers still built with the old pattern would lose their
44
+ * instructions. Detect and migrate at runtime before connecting.
45
+ */
46
+ private migrateInstructionsCompat;
39
47
  private generateRequestId;
40
48
  private handlePromptHash;
41
49
  private setupPromptHashDetection;
@@ -1,12 +1,12 @@
1
1
  import { Transport } from '@modelcontextprotocol/sdk/shared/transport.js';
2
- import { JSONRPCMessage } from '@modelcontextprotocol/sdk/types.js';
2
+ import { JSONRPCMessage, MessageExtraInfo } from '@modelcontextprotocol/sdk/types.js';
3
3
  /**
4
4
  * Transport implementation that uses the browser's MessageChannel API for communication
5
5
  * between different browser contexts (iframes, workers, tabs, windows, etc.).
6
6
  */
7
7
  export declare class BrowserContextTransport implements Transport {
8
8
  sessionId?: string;
9
- onmessage?: (message: JSONRPCMessage) => void;
9
+ onmessage?: <T extends JSONRPCMessage>(message: T, extra?: MessageExtraInfo) => void;
10
10
  onerror?: (error: Error) => void;
11
11
  onclose?: () => void;
12
12
  private _port;