marona 0.13.7 → 0.13.8
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 +5 -0
- package/README.md +18 -0
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,10 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 0.13.8
|
|
4
|
+
|
|
5
|
+
- Documented automatic model and provider routing together with provider-neutral lifecycle hooks.
|
|
6
|
+
- Verified that Responses completion hooks receive the normalized output, resolved model, and routing decision.
|
|
7
|
+
|
|
3
8
|
## 0.13.7
|
|
4
9
|
|
|
5
10
|
- Added one provider-neutral lifecycle hook contract across Agent, streaming, Realtime, and Responses runtimes.
|
package/README.md
CHANGED
|
@@ -462,6 +462,18 @@ model: "marona/deepseek-chat"
|
|
|
462
462
|
Use `marona/auto` when Marona should select both model and provider:
|
|
463
463
|
|
|
464
464
|
```ts
|
|
465
|
+
import { Marona } from "marona";
|
|
466
|
+
|
|
467
|
+
const marona = new Marona({
|
|
468
|
+
apiKey: process.env.MARONA_API_KEY,
|
|
469
|
+
});
|
|
470
|
+
|
|
471
|
+
const lifecycleHooks = {
|
|
472
|
+
onComplete: async (_context, result) => {
|
|
473
|
+
console.log(result.model, result.routing);
|
|
474
|
+
},
|
|
475
|
+
};
|
|
476
|
+
|
|
465
477
|
const response = await marona.responses.create({
|
|
466
478
|
model: "marona/auto",
|
|
467
479
|
routing: {
|
|
@@ -474,6 +486,7 @@ const response = await marona.responses.create({
|
|
|
474
486
|
fallback: true,
|
|
475
487
|
},
|
|
476
488
|
input: "Review this distributed system design.",
|
|
489
|
+
hooks: lifecycleHooks,
|
|
477
490
|
});
|
|
478
491
|
|
|
479
492
|
console.log(response.output);
|
|
@@ -481,6 +494,11 @@ console.log(response.model);
|
|
|
481
494
|
console.log(response.routing);
|
|
482
495
|
```
|
|
483
496
|
|
|
497
|
+
The completion hook receives this same normalized response, including the
|
|
498
|
+
requested `model` contract and complete `routing` decision. An observer can
|
|
499
|
+
record the selected model from `routing`, provider, fallback, latency, cost,
|
|
500
|
+
and failure information without duplicate model configuration in the hook.
|
|
501
|
+
|
|
484
502
|
With a specific `marona/...` model, Marona keeps that exact model and may only
|
|
485
503
|
change provider. Direct-provider routes are never rerouted.
|
|
486
504
|
|
package/dist/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export declare const packageVersion = "0.13.
|
|
1
|
+
export declare const packageVersion = "0.13.8";
|
|
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.13.
|
|
1
|
+
export const packageVersion = "0.13.8";
|
|
2
2
|
const discoverCapabilitiesTool = "marona__discover_capabilities";
|
|
3
3
|
const callCapabilityTool = "marona__call_capability";
|
|
4
4
|
const standardInterfaces = ["api", "web", "mobile_app", "desktop", "whatsapp"];
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "marona",
|
|
3
|
-
"version": "0.13.
|
|
3
|
+
"version": "0.13.8",
|
|
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",
|