marona 0.8.6 → 0.8.7

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.8.7
4
+
5
+ - Document automatic model and provider routing with Marona Agent.
6
+
3
7
  ## 0.8.6
4
8
 
5
9
  - Preserve `userId` when executing governed Skills so Skill and App data use the same user scope.
package/README.md CHANGED
@@ -111,6 +111,44 @@ console.log(result.finalOutput);
111
111
  Marona derives the developer scope from the authenticated API key and keeps
112
112
  conversation history isolated by developer, user, and session.
113
113
 
114
+ ### Automatic Model And Provider Routing
115
+
116
+ Use `marona/auto` when Marona should select an allowed model and provider for
117
+ each request:
118
+
119
+ ```ts
120
+ import { Agent, Marona, Runner } from "marona";
121
+
122
+ const marona = new Marona({
123
+ apiKey: process.env.MARONA_API_KEY,
124
+ });
125
+ const tools = await marona.hub.connect();
126
+
127
+ const agent = new Agent({
128
+ name: "Customer Assistant",
129
+ model: "marona/auto",
130
+ instructions: "Help the customer.",
131
+ tools,
132
+ routing: {
133
+ strategy: "balanced",
134
+ maxCostUsd: 0.02,
135
+ targetLatencyMs: 3000,
136
+ timeoutMs: 30000,
137
+ allowedModels: ["marona/gpt-5-mini", "marona/claude-sonnet"],
138
+ allowedProviders: ["openai", "anthropic", "openrouter"],
139
+ fallback: true,
140
+ },
141
+ });
142
+
143
+ const result = await Runner.run(agent, "Help me summarize this request.", {
144
+ userId: "customer_482",
145
+ sessionId: "chat_91a7",
146
+ });
147
+
148
+ console.log(result.finalOutput);
149
+ console.log(result.response.routing);
150
+ ```
151
+
114
152
  ## 3. Marona Runtime
115
153
 
116
154
  Use `responses.create(...)` when Marona should manage model reasoning, tool
package/dist/index.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- export declare const packageVersion = "0.8.6";
1
+ export declare const packageVersion = "0.8.7";
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.8.6";
1
+ export const packageVersion = "0.8.7";
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.8.6",
3
+ "version": "0.8.7",
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",