@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.
@@ -512,10 +512,11 @@ export declare class HuanbanRulegoEditor {
512
512
  showChainInfo(): void;
513
513
  /**
514
514
  * 内置的链信息 Drawer (默认实现)
515
- * 完整还原原版 RuleGo Server 的信息面板:
515
+ * 完整展示规则链信息面板:
516
516
  * 1. 基础信息 — ID、名称、根规则链、调试模式、描述
517
- * 2. 变量和秘钥vars / secrets 表格
518
- * 3. 平台集成同步/异步调用接口 + MCP 集成
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
- * 完整还原原版 RuleGo Server 的信息面板:
31
- * 1. 基础信息 — ID、名称、根规则链、调试模式、描述
32
- * 2. 变量和秘钥vars / secrets 表格
33
- * 3. 平台集成同步/异步调用接口 + MCP 集成
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 - 当前规则链数据对象
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@huanban/rulego-editor-core",
3
- "version": "1.1.6",
3
+ "version": "1.2.0",
4
4
  "description": "RuleGo 规则链编辑器核心库 - 框架无关的 Headless 编辑器引擎 + API 抽象层 (WorkflowFetcher)",
5
5
  "type": "module",
6
6
  "main": "dist/index.cjs.js",