marona 2.0.1 → 2.1.0

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.js CHANGED
@@ -1,8 +1,10 @@
1
1
  import { matchesSchema } from "./schema.js";
2
+ import { B2AClient } from "./b2a.js";
3
+ export { B2AClient, B2AIntent, B2AMessage, B2AProtocolError, B2A_VERSION } from "./b2a.js";
2
4
  import { A2ATaskStore, AgentCardResolver, A2AProtocolError, A2ASecurityError, A2ATaskError, a2aParts, parseA2ATask, parseA2AEvent, readA2AResponse, readA2AStream, unwrapA2A, validateA2AHost } from "./a2a.js";
3
5
  export { A2ATaskStore, AgentCardResolver, A2AError, A2ADiscoveryError, A2AProtocolError, A2ASecurityError, A2ATaskError } from "./a2a.js";
4
6
  export { A2AServer } from "./a2a-server.js";
5
- export const packageVersion = "2.0.1";
7
+ export const packageVersion = "2.1.0";
6
8
  const maronaApiKeyRequired = "Marona Developer Key is required.\n\n" +
7
9
  "Provide it through the SDK configuration or set the MARONA_API_KEY environment variable.\n\n" +
8
10
  "Create/manage developer keys from the Marona Developer Portal.";
@@ -3011,6 +3013,10 @@ class RuntimeTransport {
3011
3013
  throw new EdgeRuntimeError("A fetch implementation is required.");
3012
3014
  }
3013
3015
  }
3016
+ /** @internal Native B2A uses the same authenticated transport as other runtime APIs. */
3017
+ b2aRequest(method, path, body) {
3018
+ return this.requestJson(method, path, { body });
3019
+ }
3014
3020
  async sync(options = {}) {
3015
3021
  const payload = await this.requestJson("POST", "/runtime/sync", {
3016
3022
  body: omitEmpty({
@@ -3719,6 +3725,7 @@ export class Marona {
3719
3725
  responses;
3720
3726
  skills;
3721
3727
  apps;
3728
+ b2a;
3722
3729
  runtime;
3723
3730
  constructor(options = {}) {
3724
3731
  this.runtime = new RuntimeEngine(options);
@@ -3726,6 +3733,7 @@ export class Marona {
3726
3733
  this.responses = new ResponsesClient(this.runtime);
3727
3734
  this.skills = this.runtime.skills;
3728
3735
  this.apps = new Apps(this.runtime);
3736
+ this.b2a = new B2AClient((method, path, body) => this.runtime.b2aRequest(method, path, body));
3729
3737
  activeRuntime = this.runtime;
3730
3738
  }
3731
3739
  }