@mozaik-ai/core 4.0.0-beta.7 → 4.0.0-beta.9
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/README.md +12 -4
- package/dist/index.js +7 -6
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +7 -6
- package/dist/index.mjs.map +1 -1
- package/package.json +2 -1
package/README.md
CHANGED
|
@@ -1,15 +1,23 @@
|
|
|
1
1
|
<div align="center">
|
|
2
2
|
<h1>Mozaik</h1>
|
|
3
|
-
<p>TypeScript runtime for
|
|
4
|
-
|
|
5
|
-
<img width="150" height="150" alt="mozaik-avatar-dark" src="https://github.com/user-attachments/assets/e832c359-0581-42f7-96f3-d6e221c5af95" />
|
|
3
|
+
<p>Mozaik is a TypeScript runtime for interoperable AI agents.</p>
|
|
6
4
|
|
|
7
5
|
  
|
|
8
6
|
|
|
9
|
-
|
|
7
|
+
<img width="512" height="512" alt="agent-interoperability" src="https://github.com/user-attachments/assets/4b24bf27-afe2-4520-a396-5c46da6dab17" />
|
|
10
8
|
|
|
11
9
|
</div>
|
|
12
10
|
|
|
11
|
+
## Agent Interoperability
|
|
12
|
+
|
|
13
|
+
Our main goal is to unlock agent interoperability across projects, so Mozaik is built around three core attributes:
|
|
14
|
+
|
|
15
|
+
- **Concurrency** - Agents work independently without blocking one another.
|
|
16
|
+
- **Awareness** - Agents understand other participants, events, and their shared environment.
|
|
17
|
+
- **Adaptivity** - Agents change their behavior based on runtime state and emerging needs.
|
|
18
|
+
|
|
19
|
+
Together, these capabilities free AI agents from specific harnesses, allowing them to work across projects - so every newly created agent adds value to the entire ecosystem.
|
|
20
|
+
|
|
13
21
|
---
|
|
14
22
|
|
|
15
23
|
## Installation
|
package/dist/index.js
CHANGED
|
@@ -877,11 +877,13 @@ var ModelMessageToIdleRule = class {
|
|
|
877
877
|
};
|
|
878
878
|
|
|
879
879
|
// src/domain/agentic-environment/loop/event-publisher-visitor.ts
|
|
880
|
+
var import_cloud_sdk = require("@mozaik-ai/cloud-sdk");
|
|
880
881
|
var EventPublisherLoopVisitor = class {
|
|
881
882
|
constructor(agentId, loopId, runtime) {
|
|
882
883
|
this.agentId = agentId;
|
|
883
884
|
this.loopId = loopId;
|
|
884
885
|
this.runtime = runtime;
|
|
886
|
+
this.cloud = (0, import_cloud_sdk.createCloudClient)();
|
|
885
887
|
}
|
|
886
888
|
visitContextUpdateStarted(input) {
|
|
887
889
|
this.publish("context_update.started", { ...input, loopId: this.loopId });
|
|
@@ -914,12 +916,11 @@ var EventPublisherLoopVisitor = class {
|
|
|
914
916
|
this.publish("interception.finished", transition);
|
|
915
917
|
}
|
|
916
918
|
publish(type, payload) {
|
|
917
|
-
this.
|
|
918
|
-
|
|
919
|
-
|
|
920
|
-
|
|
921
|
-
|
|
922
|
-
});
|
|
919
|
+
const event = new SemanticEvent(type, this.agentId, /* @__PURE__ */ new Date(), payload);
|
|
920
|
+
this.runtime.publish(event);
|
|
921
|
+
if (this.cloud.enabled) {
|
|
922
|
+
this.cloud.send(event);
|
|
923
|
+
}
|
|
923
924
|
}
|
|
924
925
|
};
|
|
925
926
|
|