@multi-agent-protocol/sdk 0.0.12 → 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.
package/dist/testing.cjs CHANGED
@@ -284,6 +284,13 @@ var MAIL_ERROR_CODES = {
284
284
  MAIL_HISTORY_ACCESS_DENIED: 10009,
285
285
  MAIL_PARENT_CONVERSATION_NOT_FOUND: 10010
286
286
  };
287
+ var TRAJECTORY_ERROR_CODES = {
288
+ TRAJECTORY_NOT_ENABLED: 13e3,
289
+ TRAJECTORY_CHECKPOINT_NOT_FOUND: 13001,
290
+ TRAJECTORY_CONTENT_UNAVAILABLE: 13002,
291
+ TRAJECTORY_STREAM_FAILED: 13003,
292
+ TRAJECTORY_PERMISSION_DENIED: 13004
293
+ };
287
294
  var ERROR_CODES = {
288
295
  ...PROTOCOL_ERROR_CODES,
289
296
  ...AUTH_ERROR_CODES,
@@ -291,7 +298,8 @@ var ERROR_CODES = {
291
298
  ...AGENT_ERROR_CODES,
292
299
  ...RESOURCE_ERROR_CODES,
293
300
  ...FEDERATION_ERROR_CODES,
294
- ...MAIL_ERROR_CODES
301
+ ...MAIL_ERROR_CODES,
302
+ ...TRAJECTORY_ERROR_CODES
295
303
  };
296
304
  var PROTOCOL_VERSION = 1;
297
305
 
@@ -5374,6 +5382,22 @@ var AgentConnection = class _AgentConnection {
5374
5382
  });
5375
5383
  }
5376
5384
  // ===========================================================================
5385
+ // Extensions
5386
+ // ===========================================================================
5387
+ /**
5388
+ * Call an extension method on the MAP server.
5389
+ *
5390
+ * Sends a raw JSON-RPC request with the given method and params.
5391
+ * Use this for protocol extensions like trajectory, macro-agent, etc.
5392
+ *
5393
+ * @param method - The extension method name (e.g., 'trajectory/checkpoint')
5394
+ * @param params - Optional parameters for the method
5395
+ * @returns The result from the server
5396
+ */
5397
+ async callExtension(method, params) {
5398
+ return await this.#connection.sendRequest(method, params);
5399
+ }
5400
+ // ===========================================================================
5377
5401
  // Internal
5378
5402
  // ===========================================================================
5379
5403
  /**