@huanban/rulego-editor-core 1.1.6 → 1.2.0
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/dist/index.cjs.js +940 -855
- package/dist/index.esm.js +13785 -13410
- package/dist/index.umd.js +940 -855
- package/dist/standalone/HuanbanRulegoEditor.d.ts +4 -3
- package/dist/standalone/editor-chain-info.d.ts +6 -5
- package/package.json +1 -1
|
@@ -512,10 +512,11 @@ export declare class HuanbanRulegoEditor {
|
|
|
512
512
|
showChainInfo(): void;
|
|
513
513
|
/**
|
|
514
514
|
* 内置的链信息 Drawer (默认实现)
|
|
515
|
-
*
|
|
515
|
+
* 完整展示规则链信息面板:
|
|
516
516
|
* 1. 基础信息 — ID、名称、根规则链、调试模式、描述
|
|
517
|
-
* 2.
|
|
518
|
-
* 3.
|
|
517
|
+
* 2. 输入定义 — additionalInfo.inputSchema 可视化/JSON 编辑
|
|
518
|
+
* 3. 变量和秘钥 — configuration.vars / configuration.secrets 表格
|
|
519
|
+
* 4. 平台集成 — 同步/异步调用接口 + MCP 集成
|
|
519
520
|
*/
|
|
520
521
|
private _showChainInfoDrawer;
|
|
521
522
|
/** HTML 转义工具方法 */
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
* @description 链信息 Drawer 模块 — 从 HuanbanRulegoEditor.ts 中提取
|
|
4
4
|
*
|
|
5
5
|
* 包含以下功能:
|
|
6
|
-
* - 链信息 Drawer (showChainInfoDrawer) —
|
|
6
|
+
* - 链信息 Drawer (showChainInfoDrawer) — 基础信息、输入定义、变量、应用集成
|
|
7
7
|
* - 新增变量/密钥弹窗 (showAddVarDialog)
|
|
8
8
|
*
|
|
9
9
|
* 每个函数接收 editor 实例作为参数 (ChainInfoContext 接口),
|
|
@@ -27,10 +27,11 @@ export interface ChainInfoContext {
|
|
|
27
27
|
}
|
|
28
28
|
/**
|
|
29
29
|
* 显示链信息 Drawer (默认实现)
|
|
30
|
-
*
|
|
31
|
-
* 1. 基础信息 — ID
|
|
32
|
-
* 2.
|
|
33
|
-
* 3.
|
|
30
|
+
* 对齐原版 RuleGo Server 的信息面板:
|
|
31
|
+
* 1. 基础信息 — ID、名称、根规则链、调试模式、分类、描述
|
|
32
|
+
* 2. 输入定义 — additionalInfo.inputSchema 可视化/JSON 编辑
|
|
33
|
+
* 3. 变量 — vars / secrets 表格
|
|
34
|
+
* 4. 应用集成 — 同步/异步/OpenAI/MCP 调用接口
|
|
34
35
|
*
|
|
35
36
|
* @param ctx - 编辑器上下文
|
|
36
37
|
* @param chain - 当前规则链数据对象
|