@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.cjs
CHANGED
|
@@ -5382,6 +5382,22 @@ var AgentConnection = class _AgentConnection {
|
|
|
5382
5382
|
});
|
|
5383
5383
|
}
|
|
5384
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
|
+
// ===========================================================================
|
|
5385
5401
|
// Internal
|
|
5386
5402
|
// ===========================================================================
|
|
5387
5403
|
/**
|