@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.
- package/dist/{index-OkNSW4wR.d.cts → index-DHxPjZ_2.d.cts} +11 -0
- package/dist/{index-OkNSW4wR.d.ts → index-DHxPjZ_2.d.ts} +11 -0
- package/dist/index.cjs +16 -0
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.js +16 -0
- package/dist/index.js.map +1 -1
- package/dist/testing.cjs +16 -0
- package/dist/testing.cjs.map +1 -1
- package/dist/testing.d.cts +1 -1
- package/dist/testing.d.ts +1 -1
- package/dist/testing.js +16 -0
- package/dist/testing.js.map +1 -1
- package/package.json +1 -1
package/dist/testing.d.cts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
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-
|
|
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, 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-
|
|
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
|
@@ -5380,6 +5380,22 @@ var AgentConnection = class _AgentConnection {
|
|
|
5380
5380
|
});
|
|
5381
5381
|
}
|
|
5382
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
|
+
// ===========================================================================
|
|
5383
5399
|
// Internal
|
|
5384
5400
|
// ===========================================================================
|
|
5385
5401
|
/**
|