@logicflow/core 2.2.2 → 2.2.3
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 +32 -0
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -102,6 +102,38 @@ const lf = new LogicFlow({
|
|
|
102
102
|
lf.render(data);
|
|
103
103
|
```
|
|
104
104
|
|
|
105
|
+
## AI 编程支持
|
|
106
|
+
|
|
107
|
+
LogicFlow 为 AI 编程工具提供了随 npm 包发布的本地文档。`@logicflow/core@2.2.2` 及以上版本会包含这些文档。安装或升级后,可以把下面这段提示词复制给你的 AI Agent,让它在实现 LogicFlow 功能前先查官方文档。
|
|
108
|
+
|
|
109
|
+
更多说明请查看 [AI 编程支持](https://site.logic-flow.cn/tutorial/ai)。
|
|
110
|
+
|
|
111
|
+
升级 `@logicflow/core` 后,请将最新版提示词再次提供给 Agent。
|
|
112
|
+
|
|
113
|
+
```md
|
|
114
|
+
<!-- BEGIN:logicflow-agent-rules -->
|
|
115
|
+
# LogicFlow Agent Rules
|
|
116
|
+
|
|
117
|
+
LogicFlow documentation is available at:
|
|
118
|
+
|
|
119
|
+
- `node_modules/@logicflow/core/dist/docs/`
|
|
120
|
+
|
|
121
|
+
Package roles:
|
|
122
|
+
|
|
123
|
+
- `@logicflow/core`: core graph editor runtime, including canvas, nodes, edges, models, events, rendering, themes, and basic interactions.
|
|
124
|
+
- `@logicflow/extension`: official plugins for common product features.
|
|
125
|
+
- `@logicflow/layout`: official layout plugins for automatic graph layout.
|
|
126
|
+
|
|
127
|
+
The docs for `@logicflow/extension` and `@logicflow/layout` are included under:
|
|
128
|
+
|
|
129
|
+
- `node_modules/@logicflow/core/dist/docs/tutorial/extension/`
|
|
130
|
+
|
|
131
|
+
Before implementing any LogicFlow feature, check the local docs first to see whether LogicFlow already provides a built-in, extension, or layout capability. If it does, prefer the documented official capability instead of reimplementing it from scratch.
|
|
132
|
+
|
|
133
|
+
If an official package is needed but not installed, ask the user before installing it.
|
|
134
|
+
<!-- END:logicflow-agent-rules -->
|
|
135
|
+
```
|
|
136
|
+
|
|
105
137
|
## 文档
|
|
106
138
|
|
|
107
139
|
[官方文档](https://docs.logic-flow.cn)
|