marona 2.16.0 → 2.16.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 +4 -0
- package/README.md +70 -18
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1 -1
- package/dist/mcp-authoring.d.ts +1 -1
- package/dist/mcp-authoring.js +1 -1
- package/dist/native/darwin-arm64/sbom.cdx.json +1635 -0
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,7 @@
|
|
|
1
|
+
## 2.16.1
|
|
2
|
+
|
|
3
|
+
Complete Workflow and BioSignal examples now appear inline in this package guide and in the language sections of the Marona Platform documentation. Removed obsolete unreleased notices and links to private repositories. Runtime APIs are unchanged.
|
|
4
|
+
|
|
1
5
|
## 2.16.0
|
|
2
6
|
|
|
3
7
|
Add the native BioSignal client for acquisition, processing, feature extraction and playback.
|
package/README.md
CHANGED
|
@@ -5,12 +5,12 @@ Hub capabilities, streaming, realtime and A2A collaboration.
|
|
|
5
5
|
|
|
6
6
|
## Install
|
|
7
7
|
|
|
8
|
-
Version **2.16.
|
|
8
|
+
Version **2.16.1**. [Package registry](https://www.npmjs.com/package/marona/v/2.16.0).
|
|
9
9
|
|
|
10
10
|
Node.js 20+; run this server example with tsx.
|
|
11
11
|
|
|
12
12
|
```bash
|
|
13
|
-
npm install marona@2.16.
|
|
13
|
+
npm install marona@2.16.1
|
|
14
14
|
npm install --save-dev typescript tsx @types/node
|
|
15
15
|
```
|
|
16
16
|
|
|
@@ -579,7 +579,74 @@ checks rather than browser names. API keys stay on the backend. Native and headl
|
|
|
579
579
|
consumers use the same HTTP media resources without browser dependencies. Printing
|
|
580
580
|
a resource URL alone does not play it.
|
|
581
581
|
|
|
582
|
-
|
|
582
|
+
|
|
583
|
+
## Marona Workflows
|
|
584
|
+
|
|
585
|
+
Set MARONA_WORKFLOW_URL=https://workflows.marona.ai and MARONA_WORKFLOW_KEY to your workflow workspace credential. Keep the credential on your backend. The control plane stores execution state; a native worker runs your application code. This complete example registers a deployment, submits a run, executes it with a native worker and retrieves its persisted result. runOnce/run_once handles one run; a long-lived worker calls it in a bounded polling loop.
|
|
586
|
+
|
|
587
|
+
Save as `workflow.mjs` in your application.
|
|
588
|
+
|
|
589
|
+
```typescript
|
|
590
|
+
import {WorkflowClient, WorkflowWorker} from 'marona/workflows';
|
|
591
|
+
|
|
592
|
+
const client = new WorkflowClient(process.env.MARONA_WORKFLOW_URL ?? 'https://workflows.marona.ai', process.env.MARONA_WORKFLOW_KEY);
|
|
593
|
+
const pool = `typescript-${crypto.randomUUID()}`;
|
|
594
|
+
await client.configure('pools', {name:pool, concurrency_limit:1});
|
|
595
|
+
const workflow = await client.register({name:pool, version:'1', language:'typescript', entrypoint:'orders:summary'});
|
|
596
|
+
const deployment = await client.deploy({name:'Order summary', workflow_id:workflow.id, pool});
|
|
597
|
+
const run = await client.run(deployment.id, {amounts:[125.50,90,34.50]});
|
|
598
|
+
const worker = new WorkflowWorker(client, pool);
|
|
599
|
+
worker.register('orders:summary','1',async (context, parameters) => {
|
|
600
|
+
return context.task('total','orders-v1',parameters,async signal => {
|
|
601
|
+
signal.throwIfAborted();
|
|
602
|
+
return {orders:parameters.amounts.length, revenue:parameters.amounts.reduce((a,b)=>a+b,0)};
|
|
603
|
+
});
|
|
604
|
+
});
|
|
605
|
+
const completed=await worker.runOnce();
|
|
606
|
+
if(completed.state!=='completed')throw new Error(JSON.stringify(completed));
|
|
607
|
+
const result=await client.result(run.id);
|
|
608
|
+
if(result.revenue!==250)throw new Error('Unexpected order total');
|
|
609
|
+
console.log(JSON.stringify({language:'typescript',state:completed.state,result}));
|
|
610
|
+
```
|
|
611
|
+
|
|
612
|
+
```bash
|
|
613
|
+
node workflow.mjs
|
|
614
|
+
```
|
|
615
|
+
|
|
616
|
+
## BioSignal
|
|
617
|
+
|
|
618
|
+
This example generates synthetic EEG locally; it does not connect to physical hardware. The package includes the native Rust core for Apple silicon macOS 11+ and x86-64 Linux with glibc 2.36+. Other targets require a compatible native library. Device support depends on an implemented adapter and hardware validation.
|
|
619
|
+
|
|
620
|
+
Save as `biosignal.mjs` in your application.
|
|
621
|
+
|
|
622
|
+
```typescript
|
|
623
|
+
import { BioSignalDevice, SignalProcessor, SignalFeatureExtractor } from 'marona';
|
|
624
|
+
|
|
625
|
+
const device = await new BioSignalDevice('synthetic', {
|
|
626
|
+
parameters: { noise: 0 },
|
|
627
|
+
}).connect();
|
|
628
|
+
|
|
629
|
+
try {
|
|
630
|
+
await device.startStream();
|
|
631
|
+
const data = await device.getData({ duration: 2 });
|
|
632
|
+
const filtered = await SignalProcessor.bandpass(data.select('EEG'), {
|
|
633
|
+
low: 1,
|
|
634
|
+
high: 45,
|
|
635
|
+
sampling_rate: device.samplingRate,
|
|
636
|
+
});
|
|
637
|
+
const features = await SignalFeatureExtractor.bandPowers(filtered, {
|
|
638
|
+
sampling_rate: device.samplingRate,
|
|
639
|
+
});
|
|
640
|
+
console.log({ synthetic: data.synthetic, features });
|
|
641
|
+
} finally {
|
|
642
|
+
await device.disconnect();
|
|
643
|
+
}
|
|
644
|
+
```
|
|
645
|
+
|
|
646
|
+
```bash
|
|
647
|
+
node biosignal.mjs
|
|
648
|
+
```
|
|
649
|
+
|
|
583
650
|
|
|
584
651
|
## Execution and errors
|
|
585
652
|
|
|
@@ -646,18 +713,3 @@ D2A device content and agent responses use `payload.kind: "data"` with the share
|
|
|
646
713
|
D2A adds independent device communication, persistent provider events, schema checked actions, approval and outcome reconciliation. Multiple compatible Agent protocols now coordinate automatically through generic canonical delivery and feedback hooks. Existing B2A and core Agent APIs remain supported.
|
|
647
714
|
|
|
648
715
|
B2A 1.0 uses the same multimodal message envelope in both directions. The source identifies the sender. SDK-managed streaming, resource resolution and encoder return messages are built in. Existing v0.1 runtime sessions remain supported; new SDK connections require a runtime advertising B2A 1.0.
|
|
649
|
-
|
|
650
|
-
## Workflow orchestration
|
|
651
|
-
|
|
652
|
-
See [Marona Workflows](../../docs/workflows.md) for the independent control-plane client and language-specific execution support. Workflow source additions are unreleased until a package version is published.
|
|
653
|
-
|
|
654
|
-
|
|
655
|
-
## Marona Workflows
|
|
656
|
-
|
|
657
|
-
Define and execute domain independent BCI, ML and data workflows through the existing Marona package. The Rust control plane handles schedules, leases, state, queues, encrypted configuration and automations. Native workers execute your application code.
|
|
658
|
-
|
|
659
|
-
See [workflow documentation](https://github.com/BlessingNyuwani/edge-node-service/blob/main/docs/workflows.md) and [BCI, ML and data examples](https://github.com/BlessingNyuwani/marona-workflow-examples).
|
|
660
|
-
|
|
661
|
-
## BioSignal
|
|
662
|
-
|
|
663
|
-
Acquire synthetic EEG, filter a signal and compute features with the native Rust core included for Apple silicon macOS and x86-64 glibc Linux. [SDK examples and hosted workflow](https://platform.marona.ai/docs/biosignal/).
|
package/dist/index.d.ts
CHANGED
|
@@ -17,7 +17,7 @@ import { type A2ATaskStorage, type A2AEvent } from "./a2a.js";
|
|
|
17
17
|
export { A2ATaskStore, AgentCardResolver, A2AError, A2ADiscoveryError, A2AProtocolError, A2ASecurityError, A2ATaskError } from "./a2a.js";
|
|
18
18
|
export type { A2ATaskStorage, A2AEvent, A2ARequestContext } from "./a2a.js";
|
|
19
19
|
export { A2AServer, type A2AServerOptions } from "./a2a-server.js";
|
|
20
|
-
export declare const packageVersion = "2.16.
|
|
20
|
+
export declare const packageVersion = "2.16.1";
|
|
21
21
|
export type JsonMap = Record<string, unknown>;
|
|
22
22
|
declare const standardInterfaces: readonly ["api", "web", "mobile_app", "desktop", "whatsapp"];
|
|
23
23
|
type StandardInterfaceName = (typeof standardInterfaces)[number];
|
package/dist/index.js
CHANGED
|
@@ -11,7 +11,7 @@ export { B2AClient, B2AIntent, B2AMessage, B2AProtocolError, B2A_VERSION } from
|
|
|
11
11
|
import { A2ATaskStore, AgentCardResolver, A2AProtocolError, A2ASecurityError, A2ATaskError, a2aParts, parseA2ATask, parseA2AEvent, readA2AResponse, readA2AStream, unwrapA2A, validateA2AHost } from "./a2a.js";
|
|
12
12
|
export { A2ATaskStore, AgentCardResolver, A2AError, A2ADiscoveryError, A2AProtocolError, A2ASecurityError, A2ATaskError } from "./a2a.js";
|
|
13
13
|
export { A2AServer } from "./a2a-server.js";
|
|
14
|
-
export const packageVersion = "2.16.
|
|
14
|
+
export const packageVersion = "2.16.1";
|
|
15
15
|
const maronaApiKeyRequired = "Marona Developer Key is required.\n\n" +
|
|
16
16
|
"Provide it through the SDK configuration or set the MARONA_API_KEY environment variable.\n\n" +
|
|
17
17
|
"Create/manage developer keys from the Marona Developer Portal.";
|
package/dist/mcp-authoring.d.ts
CHANGED
|
@@ -11,7 +11,7 @@ export interface McpServeOptions {
|
|
|
11
11
|
allowedOrigins?: string[];
|
|
12
12
|
}
|
|
13
13
|
export type McpToolHandler = (args: JsonMap, context: ServerContext) => unknown | Promise<unknown>;
|
|
14
|
-
export declare const packageVersion = "2.16.
|
|
14
|
+
export declare const packageVersion = "2.16.1";
|
|
15
15
|
export declare const protocolVersion = "2025-11-25";
|
|
16
16
|
export type JsonMap = Record<string, unknown>;
|
|
17
17
|
export type JsonSchema = JsonMap;
|
package/dist/mcp-authoring.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { McpServer, createMcpHandler, fromJsonSchema, LATEST_PROTOCOL_VERSION } from "@modelcontextprotocol/server";
|
|
2
|
-
export const packageVersion = "2.16.
|
|
2
|
+
export const packageVersion = "2.16.1";
|
|
3
3
|
export const protocolVersion = LATEST_PROTOCOL_VERSION;
|
|
4
4
|
export const defaultPresentationHint = "display_as_provided";
|
|
5
5
|
export const defaultSuccessContext = "Use content as the primary user-facing result. Use data/items only for structured details.";
|