@meshflow/core 0.1.0 → 0.1.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.
Files changed (2) hide show
  1. package/README.md +36 -0
  2. package/package.json +1 -1
package/README.md ADDED
@@ -0,0 +1,36 @@
1
+ # @meshflow/core
2
+
3
+ **基于水位线调度(Watermark Scheduling)的轻量级拓扑逻辑引擎。**
4
+
5
+ 旨在解决复杂联动、自动化流水线以及具有依赖关系的异步任务流中的**竞态问题(Race Conditions)**与**钻石依赖(Diamond Dependencies)**。
6
+
7
+ ---
8
+
9
+ ## ✨ 核心特性
10
+
11
+ * **🌊 水位线调度**:引入逻辑水位线机制,确保异步节点严格按序提交,彻底杜绝“旧数据覆盖新数据”的经典异步难题。
12
+ * **🕸️ 拓扑依赖追踪**:自动构建任务依赖图,保证逻辑链路按正确的拓扑顺序(Topological Order)触发。
13
+ * **⚡ 最小化执行**:支持点火(Ignition)与短路(Short-circuit)机制,仅计算受影响的节点。
14
+ * **📦 极简轻量**:零依赖,体积仅 ~13kB,适配任何 JavaScript 运行时。
15
+
16
+ ---
17
+
18
+ ## 🚀 快速上手
19
+
20
+ ### 安装
21
+
22
+ ```bash
23
+ npm install @meshflow/core
24
+ ```
25
+
26
+
27
+ ## 🛠️ 为什么选择 MeshFlow?
28
+
29
+ 在传统的事件驱动开发中,当 A 变化触发 B 和 C,而 B 和 C 又共同触发 D 时(**钻石依赖**),D 往往会被重复触发,且异步回填的顺序无法保证。
30
+
31
+
32
+
33
+ `@meshflow/core` 通过内部的 **DAG(有向无环图)** 和 **Watermark** 机制,确保:
34
+
35
+ * **确定性**:无论异步耗时多久,最终状态始终保持一致。
36
+ * **原子性**:一次输入变化,仅触发一次拓扑链路的完整更新。
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@meshflow/core",
3
- "version": "0.1.0",
3
+ "version": "0.1.1",
4
4
  "description": "A logic orchestration engine utilizing topological scheduling and watermark control to resolve asynchronous race conditions in complex dependency linkages.”",
5
5
  "main": "./index.cjs",
6
6
  "module": "./index.js",