marona 0.12.0 → 0.12.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/CHANGELOG.md CHANGED
@@ -1,5 +1,9 @@
1
1
  # Changelog
2
2
 
3
+ ## 0.12.1
4
+
5
+ - Added complete standard, realtime, and multi-agent A2A documentation.
6
+
3
7
  ## 0.12.0
4
8
 
5
9
  - Added provider-neutral A2A Agent Card discovery and task execution.
package/README.md CHANGED
@@ -679,7 +679,17 @@ protocol. Agent Card discovery, credentials, task execution, and artifacts stay
679
679
  provider-neutral.
680
680
 
681
681
  ```typescript
682
- import { A2APeer, Agent, Runner } from "marona";
682
+ import {
683
+ A2APeer,
684
+ Agent,
685
+ Marona,
686
+ RealtimeRunner,
687
+ Runner,
688
+ } from "marona";
689
+
690
+ const marona = new Marona({
691
+ apiKey: process.env.MARONA_API_KEY,
692
+ });
683
693
 
684
694
  const flightAgent = new A2APeer({
685
695
  name: "flight_agent",
@@ -688,26 +698,76 @@ const flightAgent = new A2APeer({
688
698
  type: "bearer",
689
699
  token: process.env.FLIGHT_AGENT_TOKEN,
690
700
  },
701
+ permissions: ["travel.route.read", "travel.dates.read"],
702
+ policy: {
703
+ deniedFields: ["payment_credentials", "identity_document"],
704
+ },
705
+ });
706
+
707
+ const tripReviewTeam = new A2APeer({
708
+ name: "trip_review_team",
709
+ url: "https://trip-review.example.com",
710
+ description:
711
+ "An independent multi-agent team that validates itineraries and budgets.",
712
+ authentication: {
713
+ type: "bearer",
714
+ token: process.env.TRIP_REVIEW_AGENT_TOKEN,
715
+ },
716
+ permissions: ["travel.itinerary.read", "travel.budget.read"],
691
717
  });
692
718
 
693
719
  const travelAgent = new Agent({
694
720
  name: "Travel Manager",
695
721
  model: "marona/auto",
696
- instructions: "Coordinate complete travel plans.",
697
- peers: [flightAgent],
722
+ instructions:
723
+ "Find travel options and ask the review team to validate the itinerary and budget.",
724
+ peers: [flightAgent, tripReviewTeam],
725
+ metadata: {
726
+ permissions: [
727
+ "travel.route.read",
728
+ "travel.dates.read",
729
+ "travel.itinerary.read",
730
+ "travel.budget.read",
731
+ ],
732
+ },
698
733
  });
699
734
 
700
735
  const result = await Runner.run(
701
736
  travelAgent,
702
- "Find a flight from Harare to Cape Town.",
737
+ "Find a return flight from Harare to Cape Town and validate it against USD 1,500.",
703
738
  { userId: "customer_482", sessionId: "travel_91a7" },
704
739
  );
705
740
 
706
741
  console.log(result.output);
707
742
  ```
708
743
 
709
- The same peer works with `Runner.stream(...)` and
710
- `RealtimeRunner.connect(...)`.
744
+ Use the same peers in a persistent realtime session:
745
+
746
+ ```typescript
747
+ const session = await RealtimeRunner.connect(travelAgent, {
748
+ userId: "customer_482",
749
+ sessionId: "travel_voice_91a7",
750
+ });
751
+
752
+ try {
753
+ await session.sendMessage(
754
+ "Find a direct flight to Cape Town and have the review team validate it.",
755
+ );
756
+
757
+ for await (const event of session) {
758
+ if (event.type === "response.completed") {
759
+ console.log(event.output);
760
+ break;
761
+ }
762
+ }
763
+ } finally {
764
+ await session.close();
765
+ }
766
+ ```
767
+
768
+ An A2A peer may be a single agent or an independently deployed multi-agent
769
+ runtime. The coordinator uses the same Agent Card, task, event, and artifact
770
+ contract. The same peers also work with `Runner.stream(...)`.
711
771
 
712
772
  ## Execution Modes
713
773
 
package/dist/index.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- export declare const packageVersion = "0.12.0";
1
+ export declare const packageVersion = "0.12.1";
2
2
  export type JsonMap = Record<string, unknown>;
3
3
  declare const standardInterfaces: readonly ["api", "web", "mobile_app", "desktop", "whatsapp"];
4
4
  type StandardInterfaceName = (typeof standardInterfaces)[number];
package/dist/index.js CHANGED
@@ -1,4 +1,4 @@
1
- export const packageVersion = "0.12.0";
1
+ export const packageVersion = "0.12.1";
2
2
  const standardInterfaces = ["api", "web", "mobile_app", "desktop", "whatsapp"];
3
3
  const interfaceNamePattern = "^[a-z][a-z0-9_-]{0,63}$";
4
4
  const standardExecutionModes = ["online", "hybrid", "offline"];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "marona",
3
- "version": "0.12.0",
3
+ "version": "0.12.1",
4
4
  "description": "Provider-neutral AI agent runtime and MCP/Skill gateway for Marona Hub connections, managed agents, and bring-your-own-agent integrations.",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",