@multi-agent-protocol/sdk 0.1.0 → 0.1.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.
@@ -5858,6 +5858,17 @@ declare class AgentConnection {
5858
5858
  threadId?: ThreadId;
5859
5859
  meta?: MessageMeta;
5860
5860
  }): Promise<SendResponseResult>;
5861
+ /**
5862
+ * Call an extension method on the MAP server.
5863
+ *
5864
+ * Sends a raw JSON-RPC request with the given method and params.
5865
+ * Use this for protocol extensions like trajectory, macro-agent, etc.
5866
+ *
5867
+ * @param method - The extension method name (e.g., 'trajectory/checkpoint')
5868
+ * @param params - Optional parameters for the method
5869
+ * @returns The result from the server
5870
+ */
5871
+ callExtension<TParams = unknown, TResult = unknown>(method: string, params?: TParams): Promise<TResult>;
5861
5872
  }
5862
5873
 
5863
5874
  /**
@@ -5858,6 +5858,17 @@ declare class AgentConnection {
5858
5858
  threadId?: ThreadId;
5859
5859
  meta?: MessageMeta;
5860
5860
  }): Promise<SendResponseResult>;
5861
+ /**
5862
+ * Call an extension method on the MAP server.
5863
+ *
5864
+ * Sends a raw JSON-RPC request with the given method and params.
5865
+ * Use this for protocol extensions like trajectory, macro-agent, etc.
5866
+ *
5867
+ * @param method - The extension method name (e.g., 'trajectory/checkpoint')
5868
+ * @param params - Optional parameters for the method
5869
+ * @returns The result from the server
5870
+ */
5871
+ callExtension<TParams = unknown, TResult = unknown>(method: string, params?: TParams): Promise<TResult>;
5861
5872
  }
5862
5873
 
5863
5874
  /**
package/dist/index.cjs CHANGED
@@ -4531,6 +4531,22 @@ var AgentConnection = class _AgentConnection {
4531
4531
  });
4532
4532
  }
4533
4533
  // ===========================================================================
4534
+ // Extensions
4535
+ // ===========================================================================
4536
+ /**
4537
+ * Call an extension method on the MAP server.
4538
+ *
4539
+ * Sends a raw JSON-RPC request with the given method and params.
4540
+ * Use this for protocol extensions like trajectory, macro-agent, etc.
4541
+ *
4542
+ * @param method - The extension method name (e.g., 'trajectory/checkpoint')
4543
+ * @param params - Optional parameters for the method
4544
+ * @returns The result from the server
4545
+ */
4546
+ async callExtension(method, params) {
4547
+ return await this.#connection.sendRequest(method, params);
4548
+ }
4549
+ // ===========================================================================
4534
4550
  // Internal
4535
4551
  // ===========================================================================
4536
4552
  /**