@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.
@@ -1,4 +1,4 @@
1
- import { P as ParticipantCapabilities, gY as SystemExposure, d as FederationRoutingConfig, S as Stream, cy as BaseConnection, f as SessionId, A as AgentId, n as Agent, m as ScopeId, o as Scope, c as Message, r as Event, k as ParticipantId, N as SubscriptionId, cF as ClientConnectionOptions, cE as ClientConnection, c3 as AgentsListRequestParams, fv as ScopesListRequestParams, q as SubscriptionFilter, fV as Subscription, e as EventType, bM as AgentConnectionOptions, X as AgentConnection } from './index-BojLgS6o.cjs';
1
+ import { P as ParticipantCapabilities, hm as SystemExposure, d as FederationRoutingConfig, S as Stream, cy as BaseConnection, f as SessionId, A as AgentId, n as Agent, m as ScopeId, o as Scope, c as Message, r as Event, k as ParticipantId, N as SubscriptionId, cG as ClientConnectionOptions, cF as ClientConnection, c3 as AgentsListRequestParams, fw as ScopesListRequestParams, q as SubscriptionFilter, fW as Subscription, e as EventType, bM as AgentConnectionOptions, X as AgentConnection } from './index-DHxPjZ_2.cjs';
2
2
  import 'events';
3
3
 
4
4
  /**
package/dist/testing.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { P as ParticipantCapabilities, gY as SystemExposure, d as FederationRoutingConfig, S as Stream, cy as BaseConnection, f as SessionId, A as AgentId, n as Agent, m as ScopeId, o as Scope, c as Message, r as Event, k as ParticipantId, N as SubscriptionId, cF as ClientConnectionOptions, cE as ClientConnection, c3 as AgentsListRequestParams, fv as ScopesListRequestParams, q as SubscriptionFilter, fV as Subscription, e as EventType, bM as AgentConnectionOptions, X as AgentConnection } from './index-BojLgS6o.js';
1
+ import { P as ParticipantCapabilities, hm as SystemExposure, d as FederationRoutingConfig, S as Stream, cy as BaseConnection, f as SessionId, A as AgentId, n as Agent, m as ScopeId, o as Scope, c as Message, r as Event, k as ParticipantId, N as SubscriptionId, cG as ClientConnectionOptions, cF as ClientConnection, c3 as AgentsListRequestParams, fw as ScopesListRequestParams, q as SubscriptionFilter, fW as Subscription, e as EventType, bM as AgentConnectionOptions, X as AgentConnection } from './index-DHxPjZ_2.js';
2
2
  import 'events';
3
3
 
4
4
  /**
package/dist/testing.js CHANGED
@@ -282,6 +282,13 @@ var MAIL_ERROR_CODES = {
282
282
  MAIL_HISTORY_ACCESS_DENIED: 10009,
283
283
  MAIL_PARENT_CONVERSATION_NOT_FOUND: 10010
284
284
  };
285
+ var TRAJECTORY_ERROR_CODES = {
286
+ TRAJECTORY_NOT_ENABLED: 13e3,
287
+ TRAJECTORY_CHECKPOINT_NOT_FOUND: 13001,
288
+ TRAJECTORY_CONTENT_UNAVAILABLE: 13002,
289
+ TRAJECTORY_STREAM_FAILED: 13003,
290
+ TRAJECTORY_PERMISSION_DENIED: 13004
291
+ };
285
292
  var ERROR_CODES = {
286
293
  ...PROTOCOL_ERROR_CODES,
287
294
  ...AUTH_ERROR_CODES,
@@ -289,7 +296,8 @@ var ERROR_CODES = {
289
296
  ...AGENT_ERROR_CODES,
290
297
  ...RESOURCE_ERROR_CODES,
291
298
  ...FEDERATION_ERROR_CODES,
292
- ...MAIL_ERROR_CODES
299
+ ...MAIL_ERROR_CODES,
300
+ ...TRAJECTORY_ERROR_CODES
293
301
  };
294
302
  var PROTOCOL_VERSION = 1;
295
303
 
@@ -5372,6 +5380,22 @@ var AgentConnection = class _AgentConnection {
5372
5380
  });
5373
5381
  }
5374
5382
  // ===========================================================================
5383
+ // Extensions
5384
+ // ===========================================================================
5385
+ /**
5386
+ * Call an extension method on the MAP server.
5387
+ *
5388
+ * Sends a raw JSON-RPC request with the given method and params.
5389
+ * Use this for protocol extensions like trajectory, macro-agent, etc.
5390
+ *
5391
+ * @param method - The extension method name (e.g., 'trajectory/checkpoint')
5392
+ * @param params - Optional parameters for the method
5393
+ * @returns The result from the server
5394
+ */
5395
+ async callExtension(method, params) {
5396
+ return await this.#connection.sendRequest(method, params);
5397
+ }
5398
+ // ===========================================================================
5375
5399
  // Internal
5376
5400
  // ===========================================================================
5377
5401
  /**