@blueking/bkflow-canvas-editor 1.1.0-beta.40 → 1.1.0-beta.41

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 CHANGED
@@ -1402,6 +1402,46 @@ resolve: {
1402
1402
  - FlowEdit 会自动将版本相关 props 透传给内嵌的 FlowDebug 组件
1403
1403
  - 版本功能依赖 `fetchFlowDraftDetail` 和 `fetchFlowDetailByVersion` 两个 API 方法
1404
1404
 
1405
+ ## 国际化
1406
+
1407
+ 包内自带 `zh-cn` 与 `en` 词条,默认 `zh-cn`。宿主在挂载前调用一次 `setLocale` 即可:
1408
+
1409
+ ```typescript
1410
+ import { setLocale } from '@blueking/bkflow-canvas-editor';
1411
+
1412
+ setLocale('en');
1413
+ ```
1414
+
1415
+ 语言是进程级全局状态,切换后需由宿主刷新页面;不支持同一页面内两个画布实例使用不同语言。
1416
+
1417
+ 组件库(bkui-vue / element-plus)的文案由包内自动联动,宿主无需在 `app.use(bkui)` 时额外配置。
1418
+
1419
+ `setLocale` 只管前端文案。**后端下发的内容(插件名称、插件表单 schema 标签、接口报错)
1420
+ 不受它影响**——bkflow 后端按 `blueking_language` Cookie(`zh-cn` / `en`)判定语言,
1421
+ 不读 `Accept-Language` 请求头,宿主需自行设置该 Cookie。
1422
+
1423
+ locale 非 `zh-cn` 时本包会改写 bkui-vue 的 `defaultRootConfig.locale` 以覆盖命令式
1424
+ `Message` / `InfoBox`,**影响范围是整个宿主应用**。详见
1425
+ [docs/usage.md 的国际化章节](./docs/usage.md#国际化)。
1426
+
1427
+ 进阶用法:
1428
+
1429
+ | API | 用途 |
1430
+ | --- | --- |
1431
+ | `registerMessages(locale, messages, options?)` | 深合并覆盖个别词条,或注册包内没有的新语言 |
1432
+ | `setTranslator(fn)` | 完全接管翻译,桥接宿主已有的 i18n;返回 `undefined` 时回落包内词条 |
1433
+ | `getLocale()` | 读取当前语言 |
1434
+
1435
+ 注册新语言时可一并提供 bkui-vue 语言包:
1436
+
1437
+ ```typescript
1438
+ import { registerMessages } from '@blueking/bkflow-canvas-editor';
1439
+ import jaMessages from './ja';
1440
+ import { jp } from 'bkui-vue/lib/locale';
1441
+
1442
+ registerMessages('ja', jaMessages, { bkuiLocale: jp });
1443
+ ```
1444
+
1405
1445
  ## License
1406
1446
 
1407
1447
  MIT
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./context-DbBT1PuL.cjs");exports.PLUGIN_GROUP_ICON_MAP=e.PLUGIN_GROUP_ICON_MAP;exports.SOPS_PLUGIN_GROUP_NAME=e.SOPS_PLUGIN_GROUP_NAME;exports.provideVariableInputCreateVariable=e.provideVariableInputCreateVariable;exports.resolveSopsPluginSources=e.resolveSopsPluginSources;exports.useFlowApi=e.useFlowApi;exports.useVariableInputCreateVariable=e.useVariableInputCreateVariable;exports.withSopsPluginGroup=e.withSopsPluginGroup;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./context-C3QIuIf6.cjs");exports.PLUGIN_GROUP_ICON_MAP=e.PLUGIN_GROUP_ICON_MAP;exports.SOPS_PLUGIN_GROUP_NAME=e.SOPS_PLUGIN_GROUP_NAME;exports.provideVariableInputCreateVariable=e.provideVariableInputCreateVariable;exports.resolveSopsPluginSources=e.resolveSopsPluginSources;exports.useFlowApi=e.useFlowApi;exports.useVariableInputCreateVariable=e.useVariableInputCreateVariable;exports.withSopsPluginGroup=e.withSopsPluginGroup;
@@ -1,4 +1,4 @@
1
- import { P as r, S as s, p as i, r as o, u as p, a as u, w as P } from "./context-DrPMCAhz.js";
1
+ import { P as r, S as s, p as i, r as o, u as p, a as u, w as P } from "./context-De9a4Qek.js";
2
2
  export {
3
3
  r as PLUGIN_GROUP_ICON_MAP,
4
4
  s as SOPS_PLUGIN_GROUP_NAME,
@@ -0,0 +1,5 @@
1
+ "use strict";const p=require("@blueking/flow-canvas"),B=require("bkui-vue/lib/message"),w=require("axios"),A=require("vue"),U="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2016%2016'%20class='design-iconfont'%3e%3cpath%20d='M13,1%20C14.1045695,1%2015,1.8954305%2015,3%20L15,13%20C15,14.1045695%2014.1045695,15%2013,15%20L3,15%20C1.8954305,15%201,14.1045695%201,13%20L1,3%20C1,1.8954305%201.8954305,1%203,1%20L13,1%20Z%20M13,12%20L3,12%20C2.72385763,12%202.5,12.2238576%202.5,12.5%20C2.5,12.7761424%202.72385763,13%203,13%20L13,13%20C13.2761424,13%2013.5,12.7761424%2013.5,12.5%20C13.5,12.2238576%2013.2761424,12%2013,12%20Z%20M5,6.5%20L4,6.5%20C3.72385763,6.5%203.5,6.72385763%203.5,7%20L3.5,10.5%20C3.5,10.7761424%203.72385763,11%204,11%20L5,11%20C5.27614237,11%205.5,10.7761424%205.5,10.5%20L5.5,7%20C5.5,6.72385763%205.27614237,6.5%205,6.5%20Z%20M8.5,3.5%20L7.5,3.5%20C7.22385763,3.5%207,3.72385763%207,4%20L7,10.5%20C7,10.7761424%207.22385763,11%207.5,11%20L8.5,11%20C8.77614237,11%209,10.7761424%209,10.5%20L9,4%20C9,3.72385763%208.77614237,3.5%208.5,3.5%20Z%20M12,5%20L11,5%20C10.7238576,5%2010.5,5.22385763%2010.5,5.5%20L10.5,10.5%20C10.5,10.7761424%2010.7238576,11%2011,11%20L12,11%20C12.2761424,11%2012.5,10.7761424%2012.5,10.5%20L12.5,5.5%20C12.5,5.22385763%2012.2761424,5%2012,5%20Z'%20fill='%23F8A54F'%20fill-rule='evenodd'/%3e%3c/svg%3e",K={并行网关:"Parallel Gateway",插件节点:"Plugin Node",分支网关:"Branch Gateway",画布中只能有一个结束节点:"Only one End Node is allowed on the canvas",画布中只能有一个开始节点:"Only one Start Node is allowed on the canvas",汇聚网关:"Converging Gateway",结束:"End",结束节点:"End Node",开始:"Start",开始节点:"Start Node",空节点:"Empty Node",任务节点:"Task Node",条件并行网关:"Conditional Parallel Gateway",网关:"Gateway"},Z={保存:"Save",分钟:"Minute",否:"No",复制:"Copy",复制成功:"Copied Successfully",关闭:"Close",描述:"Description",名称:"Name",年:"Year",请输入:"Please Enter",取消:"Cancel",全部:"All",确定:"OK",确认:"Confirm",删除:"Delete",是:"Yes",天:"Day",系统:"System",小时:"Hour",选择:"Select",月:"Month",暂无数据:"No Data",自定义:"Custom"},j={"↺ 恢复初始化":"↺ Restore Defaults","按 Esc 即可退出全屏模式":"Press Esc to exit full screen mode",按钮文本:"Button text",被赋值变量:"Assigned Variable",被赋值变量不能重复:"Assigned variable cannot be duplicated","表单值中不存在 {tag} 属性":"Property {tag} does not exist in the form value",布尔值:"Boolean",参数类型:"Type",参数名不能为空:"Parameter name cannot be empty",参数名不能重复:"Parameter name cannot be duplicated",参数名称:"Name","插件配置的 beforeUpload 执行失败,已取消上传:":"Plugin-configured beforeUpload failed to execute, upload canceled:",点击上传:"Upload",逗号:"Comma",二级分组1:"Group l2-1",二级分组2:"Group l2-2",二级分组3:"Group l2-3",二级分组4:"Group l2-4","分隔符:":"Delimiter:",分号:"Semicolon",该操作需要以下权限:"Permission required for operation",该插件暂无输入参数表单:"This plugin has no input parameter form","格式错误!请选择xlsx,xls,xlc,xlm,xlt,xlw或csv文件":"Only support xlsx|xls|xlc|xlm|xlt|xlw|csv",关联的资源实例:"Related resource instance",换行符:"Newline",继续:"Continue",将沿用原参数值提交:"The original parameter values will be used for submission.","绝对时间点(未设置)":"Absolute Time Point (Not Set)","绝对时间范围(未设置)":"Absolute Time Range (Not Set)","可以尝试 调整关键词 或":"You can try adjusting keywords or",清除:"Clear",清空筛选条件:"Clear Filters","请联系管理员或前往权限中心申请以上权限后重试。":"Please contact an administrator, or apply for the above permissions in the permission center and retry.",'请输入校验规则,例如:[{type: required}, {type: custom, args: function(){ return {result: true, error_message: ""}}}]':'Enter check validation, e.g. [{type: required}, {type: custom, args: function(){ return {result: true, error_message: ""}}}]',"请输入值或 $ 选择变量":"Enter value or $ to select variable",请选择结束时间:"Select an end time",请选择开始时间:"Select a start time",请选择日期时间:"Please Select Date & Time",请选择时间:"Select Time",全屏:"Full Screen",三级分组1:"Group l3-1",三级分组10:"Group l3-10",三级分组2:"Group l3-2",三级分组3:"Group l3-3",三级分组4:"Group l3-4",三级分组5:"Group l3-5",三级分组6:"Group l3-6",三级分组7:"Group l3-7",三级分组8:"Group l3-8",三级分组9:"Group l3-9",审批:"Approval",竖线:"Vertical bar",提交:"Submit",条件字段加载失败:"Failed to load condition fields",退出全屏:"Exit Full Screen",未能重用:"Failed to Reuse",无匹配人员:"No matching personnel",无匹配项:"No matching items",无数据:"No data",项:"items",需要申请的权限:"Permission to apply",选项1:"Item1",选项2:"Item2",选项3:"Item3",选择文件:"Select",一级分组1:"Group l1-1",一级分组2:"Group l1-2",已选:"Selected",暂不支持该类型:"This type is not supported yet",展开全部:"Expand All",整数:"Integer",知道了:"Got it",值:"Value",重试:"Retry",字符串:"String",最近选择:"Recent Selections","getVariableVal 方法需要手动实现,请通过 inject 传递 constants":"getVariableVal must be implemented manually. Pass constants via inject."},$={保存并执行:"Save and Execute","编辑 Mock 输出":"Edit Mock Output","部分必填入参未填写,无法调试":"Some required inputs are missing, cannot debug","插件参数信息加载失败:{message}":"Failed to load plugin parameter info: {message}",查看参数:"Parameters",查看结果:"View Result",错误信息:"Error Message",单步:"Step",单步调试成功:"Step Debug Success",单步调试失败:"Step Debug Failed",单步调试终止:"Step Debug Terminated",单节点:"Single Node","当前节点的输出不支持mock,是否需要在调试时跳过当前节点?":"The current node output does not support mock. Skip this node during debug?","当前流程正在调试中,无法编辑 Mock 输出":"The current template is being debugged, cannot edit Mock output","当前流程正在调试中,无法调试":"The current template is being debugged and cannot be debugged","当前流程正在调试中,无法取消 Mock":"The current template is being debugged, cannot cancel Mock","当前流程正在调试中,无法取消跳过调试":"The current template is being debugged, cannot cancel skip debug","当前使用 Mock 输出,请先取消 Mock,才可以调试":"Currently using Mock output. Cancel Mock before debugging","当前为 Mock 数据":"Currently Mock data","当前已跳过调试,请先取消跳过调试,才可以调试":"Debug is currently skipped. Cancel skip debug before debugging",第三方插件日志:"Third-Party Plugin Logs",调试:"Debug",调试参数:"Debug Parameters",调试节点:"Debug Nodes",调试结果:"Debug Result",调试用时:"Debug Duration",调试中:"Debugging is in progress","调试中,无法新建 Mock 输出":"Debugging in progress, cannot create Mock output",调试终止:"Debug Terminated",调用日志:"Invocation Logs","调用日志加载失败:{message}":"Failed to load call logs: {message}","调用日志接口未配置(fetchTaskNodeLog)":"Call log API not configured (fetchTaskNodeLog)",定位错误:"Locate Error","该节点调试已终止,可":"This node debug was terminated. You can","该节点执行失败,可":"This node execution failed. You can",个:"items",挂起:"Suspended",或直接:"or",加载调试结果失败:"Failed to load debug result",加载失败:"Load Failed",加载输出结果失败:"Failed to load output results",节点未配置:"Node not configured","节点详情加载失败:{message}":"Failed to load node detail: {message}","节点详情接口未配置(fetchTaskNodeDetail)":"Node detail API not configured (fetchTaskNodeDetail)",立即调试:"Debug Now",平台日志:"Platform Logs",请先进行调试:"Please debug first",请先选择节点查看调试详情:"Please select a node to view debug details","取消 跳过调试":"Cancel Skip Debug","取消 Mock":"Cancel Mock",全局:"Global",全局调试:"Global Debug",全局调试成功:"Global Debug Success",全局调试失败:"Global Debug Failed",全局调试终止:"Global Debug Terminated",全流程:"Full Template","确认 Mock 输出?":"Confirm Mock output?",失败节点:"Failed Nodes",收起:"Collapse","搜索节点名称 / 类型":"Search node name / type",跳过:"Skip",跳过调试:"Skip Debug",跳转至输出节点:"Go to output node",同步失败:"Sync Failed",同步中:"Syncing",未调试:"Not Debugged",未执行:"Not Executed","新建 Mock 输出":"Create Mock Output",已终止:"Terminated","暂无{status}状态节点":"No nodes in {status} status",暂无参数值:"No parameter value",暂无第三方插件日志:"No third-party plugin logs",暂无调用日志:"No call logs",暂无节点:"No nodes",暂无输出结果:"No output results",暂无输入参数:"No input parameters",展开:"Expand",正在调试:"Debugging",执行信息:"Execution Information",执行状态:"Execution Status",终止:"Terminated",终止调试:"Terminate Debug",终止中:"Terminating","终止中...":"Terminating...",重新编辑:"Re-edit",重新调试:"Re-debug","Mock 输出":"Mock Output","Mock 输出将覆盖当前输出结果,执行时跳过该节点并以 Mock 值替代实际输出":"Mock output will overwrite the current output results. The node will be skipped during execution and replaced with the Mock value",Mock输出:"Mock Output"},J={"[bkflow-canvas-editor] apiConfig 未提供 fetchSpaceFlowConfig,已跳过 get_space_related_configs;依赖空间配置的能力(如「标准运维插件」分组)不会展示。":'[bkflow-canvas-editor] apiConfig did not provide fetchSpaceFlowConfig, skipped get_space_related_configs; capabilities that depend on space config (such as the "Standard OPS Plugin" group) will not be shown.',保存并继续:"Save and Continue",保存成功:"Save Successful","保存流程失败,已中止调试":"Failed to save the template, debug has been stopped","保存期间流程又被修改,请重新发起调试":"The template was modified again during save, please start debug again","保存失败,请重试":"Save failed, please retry","当前流程存在未保存修改,且没有保存权限":"The current template has unsaved changes and you do not have save permission","当前流程存在未保存修改,且暂时无法保存":"The current template has unsaved changes and cannot be saved for now",当前输入参数不满足调试要求:"Current input parameters do not meet debug requirements","调试结果失效清理未完成,请在调试前重试":"Debug result invalidation cleanup is incomplete, please retry before debugging","调试中,暂不可保存":"Debugging in progress, cannot save for now","调试状态同步失败,暂不能保存:{message}":"Failed to sync debug status, cannot save for now: {message}","调试状态同步失败:{message}":"Failed to sync debug status: {message}","加载流程详情失败,请刷新重试":"Failed to load template details, please refresh and retry",流程详情:"Flow Detail","流程已修改,执行前需要先保存流程。是否保存并继续?":"The template has been modified. Save the template before execution. Save and continue?","流程正在调试中,暂不能保存":"Template is being debugged, cannot save for now","确认执行流程?":"Confirm execute template?","确认终止调试?":"Confirm terminate debug?","未获取到正在调试的任务信息,请刷新后重试":"Debugging task info not found, please refresh and retry","无法调试:":"Cannot debug:",执行流程:"Execute Template","终止操作仅修改调试状态,已下发到第三方平台的任务不保证能被终止。":"Termination only updates the debug status. Tasks already sent to third-party platforms are not guaranteed to be terminated."},q={"- 暂未生成,请配置表单后点击蓝色按钮 -":"- Not generated yet, configure the form and click the blue button -",",":", ","、":", ",";":"; ","[bkflow-canvas-editor] openGlobalVariableCreate 被拒绝({reason}):{message}":"[bkflow-canvas-editor] openGlobalVariableCreate was rejected ({reason}): {message}","{label}({value})":"{label} ({value})","{min}到{max}":"from {min} to {max}","{min}分到{max}分":"from minute {min} to minute {max}","{min}号到{max}号":"from day {min} to day {max}","{min}月到{max}月":"from month {min} to month {max}","{typeName}默认值配置待补齐":"Default value configuration for {typeName} is not available yet","{value}分":"at minute {value}","{value}号":"on day {value}","{value}月":"in month {value}",备注:"Remarks",必填:"Required","必填:":"Required:",编辑:"Edit",编辑变量:"Edit Variable","变量 Key":"Variable Key","变量 Key:":"Variable Key:","变量 Key「{key}」已存在":'Variable Key "{key}" already exists',"变量 Key由英文字母、数字、下划线组成,不允许使用系统变量及业务环境变量命名规则,且不能以数字开头":"Variable Key consists of letters, digits and underscores, must not follow the naming rules of system variables or business environment variables, and must not start with a digit",变量别名:"Variable Alias","变量别名:":"Variable Alias:",变量快捷操作:"Variable Quick Actions",变量详情:"Variable Details","变量已被引用,KEY不可修改":"The variable is already referenced, the KEY cannot be modified",表单模式:"Form Mode",参数值不符合正则规则:"The parameter value does not match the regex rule",操作:"Operation",操作记录:"Operation Records",操作来源:"Operation Source",操作名称:"Operation Name",操作人:"Operator",操作时间:"Operation Time",查看:"View",查看变量:"View Variable",成功:"Success",触发器:"Trigger","创建 filter 变量必须提供 filterContext(关联节点与关联字段)":"Creating a filter variable requires filterContext (linked node and linked field)",此刻:"Now","从 Array 变量中提取变量":"Extract a variable from an Array variable","从 JSON 变量中提取变量":"Extract a variable from a JSON variable","从{min}分开始到{max}分的每{interval}分钟":"every {interval} minutes from minute {min} to minute {max}","从{min}号开始到{max}号的每{interval}天":"every {interval} days from day {min} to day {max}","从{min}开始到{max}的每{interval}个小时":"every {interval} hours from {min} to {max}","从{min}月开始到{max}月的每{interval}个月":"every {interval} months from month {min} to month {max}","从{value}分开始每隔{interval}分钟":"every {interval} minutes starting at minute {value}","从{value}号开始每隔{interval}天":"every {interval} days starting on day {value}","从{value}开始每隔{interval}个小时":"every {interval} hours starting at {value}","从{value}月开始每隔{interval}个月":"every {interval} months starting in month {value}","从每周{day}开始每隔{interval}天":"every {interval} days starting on {day}","从每周{min}开始到周{max}的每隔{interval}天":"every {interval} days from {min} to {max}","存在超出可选维度范围的条件,请修正":"Some conditions are outside the available dimensions, please correct them","存在未填写完整的条件,请补全字段、运算符和值":"Some conditions are incomplete, please fill in the field, operator and value","当前环境缺少条件选择能力,无法编辑该变量":"The current environment lacks the condition selection capability, this variable cannot be edited",当前环境未提供关联数据的候选项来源:"The current environment does not provide a candidate source for linked data","当前为只读态,无法创建全局变量":"Currently read-only, a global variable cannot be created",的值:"and take its value",的最近:"the last",定时触发:"Timer Trigger",定制相对时间选项:"Custom Relative Time Options",短信:"SMS",二:"Tue",返回:"Back",分:"Minute",分割符:"Separator","分割后,":"as delimiter, then","复合条件选择变量与节点字段一对一关联,不支持克隆":"A composite condition variable is bound one-to-one to a node field and cannot be cloned","复制失败,请手动复制":"Copy failed, please copy manually",该变量不支持批量操作:"This variable does not support batch operations","该变量将作为该流程模板的输出结果,被其他流程当作子流程节点引用时可使用":"This variable will be the output of the template and can be used when other templates reference it as a subprocess node","该变量缺少关联节点与关联表单项,无法使用":"This variable lacks a linked node and a linked form item, and cannot be used","该变量为必填项,请配置至少一个条件":"This variable is required, please configure at least one condition",该类型:"this type",高级配置:"Advanced Settings","关联节点不存在于当前流程:{nodeId}":"The linked node does not exist in the current template: {nodeId}","关联节点已从流程中移除,请改用手动输入或重新创建变量":"The linked node has been removed from the template, use manual input or create the variable again",关联数据:"Linked Data","关联数据:{linked};候选值:{candidates}":"Linked data: {linked}; candidates: {candidates}",关联数据的候选项加载失败:"Failed to load the candidates of the linked data","关联数据缺失,请从节点表单的下拉入口新建变量,或改用手动输入":"Linked data is missing, create the variable from the dropdown entry of the node form, or use manual input","关联数据需从节点表单的下拉入口点「新建变量」创建":'Linked data must be created through "Create Variable" in the dropdown entry of the node form',和:" and ",候选数据:"Candidate Data",候选值:"Candidate Value",候选值不能重复:"Candidate values cannot be duplicated",恢复初始化:"Restore Defaults",基础:"Basic",基于:"Based on","基于{base}的最近 {value} {unit}":"last {value} {unit} based on {base}","基于{base}的最近{value}{unit}":"last {value} {unit} based on {base}",将变量:"Take variable",将字符串分割后拼接:"Split a string and join it",今天:"Today",近15分钟:"Last 15 minutes",近30分钟:"Last 30 minutes",近5分钟:"Last 5 minutes","绝对时间(具体日期)":"Absolute Time (Specific Date)",绝对时间点:"Absolute Time Point",绝对时间范围:"Absolute Time Range","绝对时间范围:{range}":"Absolute time range: {range}",可选维度:"Available Dimensions",可以通过配置触发器来执行流程任务:"You can execute template tasks by configuring triggers",克隆:"Clone",克隆变量:"Clone Variable",空间变量:"Space Variable","凌晨{hour}点":"{hour} AM",流程名称:"Template Name",六:"Sat",每分钟:"every minute","每隔{interval}分钟":"every {interval} minutes","每隔{interval}个小时":"every {interval} hours","每隔{interval}个月":"every {interval} months","每隔{interval}天":"every {interval} days","每个星期内的每隔{interval}天":"every {interval} days within a week",每天:"every day",每小时:"every hour",每月:"every month","每周{day}":"on {day}","每周{min}到周{max}":"from {min} to {max}",模拟调试:"Simulation Debug",默认值:"Default Value",默认值需在限制可选范围内:"The default value must be within the selectable range limit","默认值中存在超出可选维度范围的条件,请修正":"The default value contains conditions outside the available dimensions, please correct them","配置为「显示」可在执行时做为任务入参使用,配置为「隐藏」则仅能在流程内部使用":'Configured as "Show" it can be used as a task input parameter during execution; configured as "Hide" it can only be used inside the template',批量删除:"Batch Delete","拼接。":"as connector.",拼接符:"Joiner",其他:"Other","其中 {count} 个变量已被引用,删除后请及时检查并更新节点配置":"{count} of the variables are already referenced, please check and update the node configuration after deletion",企业微信:"WeCom",启用状态:"Enabled Status",前天:"The Day Before Yesterday",请配置至少一个条件:"Please configure at least one condition",请求参数:"Request Parameters","请求参数格式不正确,应为JSON格式":"The request parameter format is incorrect, JSON format is required","请输入 JSON 参数值":"Please enter a JSON parameter value","请输入 JSON 默认值":"Please enter a JSON default value","请输入 JSON 数组参数值":"Please enter a JSON array parameter value",请输入变量别名:"Please enter variable alias",请输入合法的数字:"Please enter a valid number",请输入合法的数字元素值:"Please enter a valid numeric element value",请输入候选值:"Please enter a candidate value",请输入流程名称:"Please enter template name",请输入流程模板备注信息:"Please enter template remarks","请输入数组格式的 JSON 参数值":"Please enter a JSON parameter value in array format","请输入数组格式的 JSON 默认值":"Please enter a JSON default value in array format",请输入有效的限制范围:"Please enter a valid range limit",请输入有效的相对时间:"Please enter a valid relative time","请输入正确的 JSON 格式数据":"Please enter data in valid JSON format",请输入正则:"Please enter a regular expression",请完善定制相对时间选项:"Please complete the custom relative time options",请完整填写表单:"Please complete the form",请先选择需要删除的变量:"Please select the variables to delete first",请选择:"Please Select",请选择参数值:"Please select a parameter value",请选择合法的布尔元素值:"Please select a valid boolean element value",请选择时间点:"Please select a time point",请选择时间范围:"Please select a time range",请选择通知人:"Please select a notify receiver",请选择限制可选范围:"Please select the selectable range limit",请至少填写一个元素值:"Please enter at least one element value",'确认删除全局变量"{key}"?':'Delete the global variable "{key}"?',"确认删除所选的 {count} 个变量?":"Delete the {count} selected variables?",任务状态:"Task Status",日:"Day",入参:"Input","若该变量被节点引用,请及时检查并更新节点配置":"If the variable is referenced by nodes, please check and update the node configuration promptly",三:"Wed","上午{hour}点":"{hour} AM",生成并复制代码:"Generate and Copy Code",失败:"Failed",时:"Hour",时间:"Time",时间表达式:"Time Expression",时间点:"Time Point",时间范围:"Time Range",时间选择器变量:"Time picker variable",'使用了除",-*/"以外的特殊字符,请修改规则':'Special characters other than ",-*/" are used, please modify the rule',手动输入:"Manual Input","手动输入:--":"Manual input: --","手动输入:{options}":"Manual input: {options}",输出:"Output",输入指引提示:"Input Guide Tip",数据类型:"Data Type","说明:":"Explanation:",四:"Thu","搜索名称、Key、组件类型":"Search by name, Key or component type","宿主未注入 filterVariableConfig,无法创建复合条件选择变量":"The host did not inject filterVariableConfig, composite condition variables cannot be created",所选时间需在可选范围内:"The selected time must be within the selectable range","提供<全部>":"Provide <All>","提取 index":"Extract index","提取 Key":"Extract Key",添加定时触发器:"Add Timer Trigger",通知:"Notification",通知方式:"Notification Method",通知人:"Notify To","晚上{hour}点":"{hour} PM",微信:"WeChat",未开启:"Not Enabled",未输入:"Not Entered",五:"Fri",系统变量:"System Variable","下次:":"Next:","下午{hour}点":"{hour} PM","显示(入参)":"Show (Input)",显示名称:"Display Name",限制可选范围:"Selectable Range Limit",相对时间:"Relative Time",相对时间点:"Relative Time Point","校验不通过,请重新输入":"Validation failed, please re-enter",校验错误提示:"Validation Error Tip",新建:"Create",新建变量:"Create Variable","形如 message.testpage":"e.g. message.testpage",修改定时触发器:"Edit Timer Trigger",选项显示名:"Option Display Name",选择操作:"Select Operation",选择方式:"Selection Method",选择类型:"Select Type",选择配置:"Selection Settings","选择通知方式后,将默认通知到任务执行人":"After selecting the notification method, the task executor will be notified by default",一:"Mon","一键生成变量的常用操作代码,可粘贴在节点【输入参数】中快捷使用":"Generate common operation code for the variable with one click, then paste it into the node Input Parameters",已生成并复制到剪贴板:"Generated and copied to clipboard",以:"Split by",以及当月:"and",引用:"Reference","隐藏(非入参)":"Hide (Not Input)",用:"join with",邮件:"Email",语音:"Voice",元素数据类型:"Element Data Type",元素正则表达式格式不合法:"The element regular expression format is invalid",元素正则校验:"Element Regex Validation",元素值:"Element Value","元素值不符合正则规则:{validation}":"The element value does not match the regex rule: {validation}","长度超过100个字符,请修改规则":"Length exceeds 100 characters, please modify the rule",正则表达式格式不合法:"The regular expression format is invalid",正则校验:"Regex Validation",支持多选:"Multi-select","支持多选:否":"Multi-select: No","支持多选:是;提供<全部>:{includeAll}":"Multi-select: Yes; provide <All>: {includeAll}","执行时显示:":"Show During Execution:",执行周期:"Execution Cycle",只允许创建一个定时触发器:"Only one timer trigger can be created","中午{hour}点":"{hour} PM",重置:"Reset",周:"Week",周日:"Sun",组件类型:"Component Type","组件类型:":"Component Type:",组件配置:"Component Configuration",最近:"Last","最近 {value} {unit}":"last {value} {unit}","最近{value}{unit}":"last {value} {unit}",昨天:"Yesterday","filter(复合条件选择)":"filter (Composite Condition)","filterContext 仅适用于 defaultCustomType 为 filter 的请求":"filterContext only applies to requests whose defaultCustomType is filter","filterContext 缺少 sourceNodeId 或 sourceFieldKey":"filterContext is missing sourceNodeId or sourceFieldKey","input(输入框)":"input (Input Box)",json模式:"JSON Mode",KEY不能为空:"KEY cannot be empty","select(下拉框)":"select (Dropdown)","selectRelatedContext 仅适用于 defaultCustomType 为 select 的请求":"selectRelatedContext only applies to requests whose defaultCustomType is select","selectRelatedContext 缺少 sourceNodeId 或 sourceFieldKey":"selectRelatedContext is missing sourceNodeId or sourceFieldKey","textarea(文本框)":"textarea (Text Area)","timepicker(时间选择)":"timepicker (Time Picker)"},H={"(请输入「指标序列」变量表达式)":'(Please enter the variable expression of "Metric Series")',"{name} 提供":"Provided by {name}","{name} 映射":"{name} Mapping","「显示」可在执行时做为任务入参使用,「隐藏」则仅能在流程内部使用":'"Show" can be used as a task input parameter during execution, while "Hide" can only be used inside the template',"${}中支持使用内置函数、datetime、re、hashlib、random、time、os.path模块处理全局变量":"Support using built-in functions, datetime, re, hashlib, random, time, os in ${}","包含:":"Contains:",必填项:"Required","变量别名:":"Variable Alias:","变量描述:":"Variable Description:","变量名称:":"Variable Name:",标签:"Tags","标准运维插件暂不支持 jsonschema 表单,请联系前端补齐默认值与字段名解析":"Standard OPS plugins do not support jsonschema forms yet, please contact the frontend to complete default values and field name parsing",表达式:"Expression",表达式更多细节请参考:"For more details on expressions, please refer to","不相关:":"Irrelevant:",参数名:"Parameter Name",参数值:"Parameter Value","参数值不符合正则规则:{validation}":"Parameter value does not match the pattern: {validation}",插件:"Plugin",插件版本:"Plugin Version",插件名称:"Plugin Name",查询文本:"Query Text",超时:"Timeout after",超时控制:"Timeout Control","创建时间(降序)":"Created Time (Descending)","创建时间(升序)":"Created Time (Ascending)",次:"times",从Prompt导入:"Import from Prompt",单智能体:"Single Agent","当前正在调试中,节点配置仅能预览。":"Debugging is ongoing, node configuration can only be previewed.",导入:"Import",等待回答:"Waiting for Response",点击申请:"Click to Apply",调试配置:"Debug Configuration",发布人:"Publisher","发布人:":"Publisher:",分类:"Category",分支类型:"Branch Type",分支名称:"Branch Name",分支条件:"Branch Conditions",该分类暂无插件:"No plugin in this category",高级选项:"Advanced Options",更多:"More",更新人:"Updater","更新人:":"Updater:","更新人:{updater}\n 更新时间:{updatedAt}\n ":`Updater: {updater}
2
+ Updated at: {updatedAt}
3
+ `,"更新时间:":"Updated At:","共 {count} 篇,":"{count} docs in total, ",勾选为全局变量:"Check as Global Variable","后,则":"then",基础信息:"Basic Information",基座模型:"Base Model","基座模型:":"Base Model:","激活参数:":"Activation Parameters:","加载中...":"Loading...",'假设 key 是值为 "3" 的全局变量':"Assume key is a global variable with a value of '3'",角色:"Role","角色第一条 Prompt 必须定义为“系统”":'The first Prompt of a role must be defined as "System"',节点名称:"Node Name",节点配置:"Node Configuration",节点输出:"Node Output",节点输入:"Node Input",节点选择:"Select Node","可能相关:":"Possibly Relevant:",空间:"Space",离开:"Leave",离开将会导致未保存信息丢失:"Leaving will cause unsaved information to be lost",聊天历史:"Chat History",流程类:"Flow",流程类Agent暂不支持体验:"Try-out is not supported for flow agents yet",逻辑:"Logic",秒:"Sec","秒后,自动重试":"seconds, retry",模型:"Model",模型名称:"Model Name",默认:"Default",默认分支:"Default Branch",排序:"Sort","强相关:":"Highly Relevant:",强制终止:"Force Termination",强制终止后跳过:"Skip After Force Termination",请求方法:"Request Method",请输入表达式:"Please enter the expression",请输入参数值:"Please enter the parameter value",请输入查询文本:"Please enter the query text",请输入分支名称:"Please enter the branch name",请输入聊天历史:"Please enter the chat history",请输入提问内容:"Please enter the question",请输入Prompt内容:"Please enter the Prompt content",请先选择插件后再进行调试:"Please select a plugin before debugging",请选择插件:"Please select a plugin",请选择知识库:"Please select a Knowledge Base",取消使用变量接收输出:"Cancel receiving output with a variable",去调试:"Go to Debug",全局变量:"Global Variables","确认离开?":"Confirm to leave?","如有需要,您可以申请更多的智能体权限":"You can apply for more Agent permissions if needed",申请更多权限:"Apply for More Permissions",失败处理:"Failed Handling",时间戳:"Timestamp",使用变量接收输出:"Receive output with a variable","使用内置函数、datetime、re、hashlib、random、time、os.path模块处理全局变量":"Support using built-in functions, datetime, re, hashlib, random, time, os","示例:":"Example:",手动跳过:"Manual Skip",手动重试:"Manual Retry",输出结果:"Output Results",输入参数:"Input Parameters",输入字段映射:"Input Field Mapping","数据频率:{seconds} 秒":"Data frequency: {seconds} Sec","数值比较:":"Numerical Comparison:",说明:"Explanation",搜索插件名称:"Search plugin name",搜索节点:"Search Nodes",搜索结果为空:"No search results","搜索模型名称、发布人":"Search model name, publisher","搜索模型名称、基座模型、标签":"Search model name, base model, tag","搜索知识库名称、描述、ID、更新人":"Search Knowledge Base name, description, ID, updater","搜索智能体名称、更新人、标签":"Search agent name, updater, tag","所有分支均不匹配时执行,类似switch-case-default里面的default":"Executed when no branches match, similar to default in switch-case-default",特征:"Feature",体验:"Try",添加:"Add",未找到可用插件或可用版本:"No available plugin or version found","未支持的插件表单类型:{type}":"Unsupported plugin form type: {type}",文档片段数:"Document Fragment Count",显示:"Show",相关性阈值:"Relevance Threshold",新建知识库:"New Knowledge Base","依赖历史数据长度 : {days} 天":"Historical data dependency : {days} Day",隐藏:"Hide",应用参数:"Application Parameters",用户:"User",用户提问:"User Question",在:"After","暂无{name}插件":"No {name} plugin",暂无参数:"No Parameters",暂无插件分类:"No plugin category",暂无结论输出插件:"No conclusion output plugin",暂无模型插件:"No model plugin",暂无数据插件:"No data plugin",暂无知识库:"No Knowledge Base",暂无智能体:"No Agent","这条 Prompt 作为系统输入来定义角色,会在整个会话中生效":"This Prompt defines the role as system input and takes effect in the whole session","这条 Prompt 作为用户的输入,可以更详细描述对角色的要求":"This Prompt is the input of the user and can describe the requirements of the role in more detail","这条 Prompt 作为AI回答的结果":"This Prompt is the result answered by the AI","这条Prompt作为AI的提问,会等待用户输入回答内容":"This Prompt is a question from the AI and waits for the user to enter the answer",'支持 "=、!=、>、>=、<、<=" 等二元比较操作符':"Supports binary comparison operators such as =, !=, >, >=, <, <=",'支持 "==、!=、>、>=、<、<=、in、notin" 等二元比较操作符':"Supports binary comparison operators such as ==, !=, >, >=, <, <=, in, notin",'支持 "and、or、not、True、False" 等 MAKO 关键字语法':"Supports MAKO keywords such as and, or, not, True, False",'支持 "and、or、true、false" 等关键字语法':"Supports keywords such as and, or, true, false",'支持 "and、or、True/true、False/false" 等关键字语法':"Supports keywords such as and, or, True/true, False/false","支持 FEEL (Friendly Enough Expression Language) 基础语法":"Supports basic FEEL (Friendly Enough Expression Language) syntax","支持使用内置函数、datetime、re、hashlib、random、time、os.path模块处理全局变量":"Support using built-in functions, datetime, re, hashlib, random, time, os","支持使用全局变量,如":"Supports using global variables, such as",支持直接引用全局变量:"Support Direct Reference to Global Variables",知识库名称:"Knowledge Base Name",执行时显示:"Show during execution",值约束:"Value Constraint",智能体:"Agent",智能体名称:"Agent Name","中文名称(A-Z)":"Chinese Name (A-Z)","中文名称(Z-A)":"Chinese Name (Z-A)",重排序方法:"Rerank Method",重新选择:"Select Again",重选:"Reselect",字段名:"Field Name",字段映射:"Field Mapping","字符串比较:":"String Comparison:",自定义分支:"Custom Branch",自动跳过:"Auto Skip","最后一个提示词必须为【用户】role":"The last prompt must use the [User] role","component_js 表单描述符缺少 key 或 data":"component_js form descriptor is missing key or data","ID:":"ID: ","jsonschemaform 表单不能按输入项取字段名":"jsonschemaform form cannot resolve field names by input item","renderform 表单描述符的 data 既不是配置数组也不是脚本":"The data of the renderform form descriptor is neither a config array nor a script","renderform 脚本表单缺少 key,无法从 $.atoms 取出注册结果":"renderform script form is missing key, cannot read the registration result from $.atoms"},Y={"- 节点未配置 -":"- Node not configured -","{minutes} 分":"{minutes} min","{minutes} 分 {restSeconds} 秒":"{minutes} min {restSeconds} Sec","{name}不可连接自身":"{name} cannot connect to itself","{name}缺少对应的汇聚网关":"{name} is missing the matching converging gateway","{name}只能添加输出连线":"{name} can only add outgoing connections","{name}只能添加输入连线":"{name} can only add incoming connections","{name}至少需要{count}条输出连线":"{name} needs at least {count} outgoing connections","{name}至少需要{count}条输入连线":"{name} needs at least {count} incoming connections","{seconds} 秒":"{seconds} Sec","{source}不能连接{target}":"{source} cannot connect to {target}","<结束节点> 仅有一个,\n请从其他节点连线至 <结束节点>":`There can only be one <End Node>.
4
+ Connect other nodes to the <End Node>`,"<开始节点> 仅有一个,\n该节点后只能添加一个节点":`There can only be one <Start Node>.
5
+ Only one node can be added after it`,"保存失败:":"Save failed:",编辑流程:"Edit Template",标准运维:"Standard OPS",标准运维插件:"Standard OPS Plugin","标准运维插件目录查询接口缺失:fetchSopsPluginCategories / fetchSopsPluginList / fetchSopsPluginDetail":"Standard OPS plugin catalog API is missing: fetchSopsPluginCategories / fetchSopsPluginList / fetchSopsPluginDetail",参与模拟调试:"Join simulate debug","插件表单配置的 extend 必须是非空字符串":"extend in the plugin form config must be a non-empty string","插件表单配置继承的 {name} 不存在":"Inherited plugin form config {name} does not exist",查看流程:"View Template",查看排障流程:"View troubleshooting template",创建或启动模拟调试任务失败:"Failed to create or start the simulate debug task",存在未配置的节点:"There are unconfigured nodes",当前节点尚未配置插件:"The current node has no plugin configured","点击 / 拖拽添加":"Click / drag to add",调试成功:"Debug Success",调试流程:"Debug Template",调试失败:"Debug Failed",个节点错误:"node errors",耗时:"Elapsed Time","继承对象配置时 config 必须是对象":"config must be an object when inheriting an object config","继承数组配置时 config 必须是数组":"config must be an array when inheriting an array config",节点调用日志接口未配置:"Node invocation log API is not configured",节点执行详情接口未配置:"Node execution detail API is not configured",结束时间:"End Time",开始时间:"Start Time",流程的入参:"Template Inputs","流程已修改,进入模拟调试前需要先保存流程。是否保存并继续?":"The template has been modified. Save it before entering simulate debug. Save and continue?","流程中存在未配置节点,请配置后再模拟调试":"The template has unconfigured nodes. Configure them before simulate debug.",模拟调试接口未配置:"Simulation debug API is not configured",内置:"Built-in","您没有保存权限,无法在未保存的情况下进行模拟调试":"You do not have permission to save, so simulate debug cannot start with unsaved changes.",您没有该操作的权限:"You do not have permission for this operation",排版完成:"Layout complete",排障流程:"Troubleshooting Template",请求失败:"Request failed","请输入合法 JSON":"Enter valid JSON",请输入任务名称:"Enter ID or task name",'请输入JSON格式数据{ "xxx": "xxx" }':'Enter JSON data { "xxx": "xxx" }',请添加任务节点:"Please add task nodes",请先勾选需要模拟调试的节点:"Select nodes to simulate debug first","请先为已勾选节点设置 Mock 数据":"Set mock data for the selected nodes first",请至少选择一个可模拟调试节点:"Select at least one node that can be simulate-debugged",全选:"Select All","确认进入模拟调试?":"Enter simulate debug?",任务名称:"Task Name",任务执行:"Task Execution",删除选中:"Delete selection","设置 Mock 数据":"Set Mock Data",失败可重试:"Can retry when failed",收起未勾选的字段:"Collapse Unchecked Fields",搜索节点名称:"Search node name","条件{n}":"Condition {n}",条件1:"Condition 1",条件2:"Condition 2",退出编辑:"Exit Edit",退出模拟调试:"Exit Simulation Debug",网关节点:"Gateway Node",显示未勾选的字段:"Show Unchecked Fields",相同节点不能回连:"Same node cannot reconnect","小于 1 秒":"Less than 1 Sec","循环 {count} 次":"Loop {count} times",已撤销:"Revoked","已达到{name}最大输出连线条数":"{name} has reached the maximum outgoing connections","已达到{name}最大输入连线条数":"{name} has reached the maximum incoming connections","已配置 Mock 数据":"Mock data configured",已跳过:"Skipped",已暂停:"Paused",异常信息:"Exception Information",暂停:"Pause",暂无已勾选的全局变量字段:"No checked global variable fields",暂无异常:"No Exceptions",暂无执行信息:"No Execution Information",占位节点:"Placeholder Node",执行:"Execute",执行成功:"Execution Success",执行失败:"Execution Failed",执行中:"Executing",重复添加连线:"Duplicate connection not allowed","重试 {count} 次":"Retry {count} times",自动忽略:"Auto ignore",自动排版:"Auto Layout",自动重试:"Auto Retry",json数据格式不正确:"JSON data format is incorrect"},z={...K,...H,...q,...$,...J,...j,...Y,...Z},W={周日:"日"};p.registerMessages("zh-cn",W);p.registerMessages("en",z);const Q="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2016%2016'%20class='design-iconfont'%3e%3cdefs%3e%3clinearGradient%20x1='0%25'%20y1='0%25'%20x2='100%25'%20y2='96.1961861%25'%20id='19loczb8h__f71x3hmpea'%3e%3cstop%20stop-color='%234D76E3'%20offset='0%25'/%3e%3cstop%20stop-color='%23D787EE'%20offset='100%25'/%3e%3c/linearGradient%3e%3c/defs%3e%3cpath%20d='M13,1%20C14.1045695,1%2015,1.8954305%2015,3%20L15,13%20C15,14.1045695%2014.1045695,15%2013,15%20L3,15%20C1.8954305,15%201,14.1045695%201,13%20L1,3%20C1,1.8954305%201.8954305,1%203,1%20L13,1%20Z%20M8.5,2.5%20C6.17779929,2.5%204.26643215,4.28054945%204.02558864,6.56651687%20L4.026,6.558%20L4.03,6.54%20L3.99928094,6.75189877%20C3.76394842,8.11436335%203.07389664,8.46527789%203.00547979,8.87325046%20L3,8.93829715%20C3,9.39912427%204.33397403,9.2134945%204.33397403,9.69904945%20L4.33397403,10.9924271%20C4.33401331,11.5290486%204.757596,11.9699791%205.29378397,11.9915459%20C5.90300757,12.0163699%206.26264111,12.0687043%206.37268552,12.1485262%20C6.45725813,12.2098718%206.51932943,12.4266274%206.55889942,12.7987929%20L6.57276328,12.9456332%20C6.61875295,13.4959998%207.10219523,13.904878%207.65256183,13.8588884%20C7.70929358,13.8541478%207.76551689,13.8445713%207.82061902,13.8302632%20L10.1746185,13.2277878%20C10.5547586,13.1298644%2010.8424468,12.818586%2010.9101698,12.431922%20C11.0509156,11.6378879%2011.2333254,10.9899099%2011.4579782,10.4880363%20C12.402959,9.65300356%2013,8.42466038%2013,7.05516145%20C13,4.53941525%2010.9852814,2.5%208.5,2.5%20Z%20M8.9876109,3.8125%20C9.12361371,3.8219246%209.2572817,3.84136285%209.38686376,3.87081473%20L9.51119251,4.49813988%20C9.7435063,4.58296131%209.9565579,4.70842634%2010.1410081,4.86687748%20L10.7410548,4.6624814%20C10.8461213,4.77852183%2010.9412649,4.90339782%2011.0247344,5.03652034%20L11.1333032,5.22560144%20C11.2050986,5.36461434%2011.2658038,5.51128472%2011.3125,5.66384549%20L10.8356146,6.08677455%20C10.8560442,6.20399306%2010.8665509,6.32474578%2010.8665509,6.4484437%20C10.8665509,6.57390873%2010.8554605,6.69642857%2010.8344472,6.81541419%20L11.3101652,7.23775422%20C11.1934246,7.61473834%2010.9949656,7.95579117%2010.7358014,8.2391183%20L10.135171,8.03413318%20C9.95188828,8.19022817%209.74117149,8.31392609%209.51177621,8.39815848%20L9.38744747,9.02607267%20C9.20182991,9.06789435%209.00920792,9.09027778%208.81133259,9.09027778%20C8.61579208,9.09027778%208.4249212,9.06848338%208.24163845,9.02725074%20L8.11730971,8.40051463%20C7.88616332,8.31628224%207.67369542,8.19199529%207.48924527,8.03531126%20L6.88803117,8.24029638%20C6.79055277,8.13368056%206.70182991,8.0188182%206.6224463,7.89747644%20L6.47068352,7.63240947%20C6.408811,7.50753348%206.35569402,7.37676711%206.31366741,7.24128844%20L6.78938536,6.81894841%20C6.76778835,6.69878472%206.75669799,6.57449777%206.75669799,6.44785466%20C6.75669799,6.32297867%206.76778835,6.20045883%206.78880166,6.08147321%20L6.3125,5.65913318%20C6.3504407,5.53661334%206.39713694,5.41821677%206.45142132,5.30394345%20L6.64696183,4.96230159%20C6.719341,4.8562748%206.79814091,4.75496032%206.88452895,4.66071429%20L7.48457565,4.8656994%20C7.67077691,4.70665923%207.88499591,4.58060516%208.11906082,4.49578373%20L8.24338956,3.86904762%20C8.37122052,3.84077381%208.50197,3.82133557%208.63622169,3.8125%20Z%20M8.8119163,5.50598338%20C8.29592283,5.50598338%207.87799148,5.92773437%207.87799148,6.4484437%20C7.87799148,6.96915303%208.29592283,7.39090402%208.8119163,7.39090402%20C9.32790976,7.39090402%209.74584112,6.96915303%209.74584112,6.4484437%20C9.74584112,5.92773437%209.32790976,5.50598338%208.8119163,5.50598338%20Z%20M8.8119163,5.88296751%20C9.12139176,5.88296751%209.37227119,6.13613982%209.37227119,6.4484437%20C9.37227119,6.76074758%209.12139176,7.01391989%208.8119163,7.01391989%20C8.50244084,7.01391989%208.25156141,6.76074758%208.25156141,6.4484437%20C8.25156141,6.13613982%208.50244084,5.88296751%208.8119163,5.88296751%20Z'%20fill='url(%2319loczb8h__f71x3hmpea)'%20fill-rule='evenodd'/%3e%3c/svg%3e",T="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2016%2016'%20class='design-iconfont'%3e%3cpath%20d='M13,1%20C14.1045695,1%2015,1.8954305%2015,3%20L15,13%20C15,14.1045695%2014.1045695,15%2013,15%20L3,15%20C1.8954305,15%201,14.1045695%201,13%20L1,3%20C1,1.8954305%201.8954305,1%203,1%20L13,1%20Z%20M8.03846154,2.5%20C7.295,2.5%206.6923077,3.10269231%206.6923077,3.84615384%20L6.6923077,4.42307693%20L4.38461538,4.42307693%20C4.17230769,4.42307693%204,4.59538461%204,4.8076923%20L4,6.92307693%20L4.57692308,6.92307693%20C5.32038461,6.92307693%205.92307693,7.52576923%205.92307693,8.26923077%20C5.92307693,9.0126923%205.32038461,9.61538461%204.57692308,9.61538461%20L4,9.61538461%20L4,12.1153846%20C4,12.3276923%204.17230769,12.5%204.38461538,12.5%20L6.6923077,12.5%20L6.6923077,11.9230769%20C6.6923077,11.1796154%207.295,10.5769231%208.03846154,10.5769231%20C8.78192307,10.5769231%209.38461539,11.1796154%209.38461539,11.9230769%20L9.38461539,12.5%20L11.6923077,12.5%20C11.9046154,12.5%2012.0769231,12.3276923%2012.0769231,12.1153846%20L12.0769231,9.61538461%20L12.6538462,9.61538461%20C13.3973077,9.61538461%2014,9.0126923%2014,8.26923077%20C14,7.52576923%2013.3973077,6.92307693%2012.6538462,6.92307693%20L12.0769231,6.92307693%20L12.0769231,4.8076923%20C12.0769231,4.59538461%2011.9046154,4.42307693%2011.6923077,4.42307693%20L9.38461539,4.42307693%20L9.38461539,3.84615384%20C9.38461539,3.10269231%208.78192307,2.5%208.03846154,2.5%20Z'%20fill='%235AB88E'%20fill-rule='evenodd'/%3e%3c/svg%3e",X="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2016%2016'%20class='design-iconfont'%3e%3cdefs%3e%3clinearGradient%20x1='0%25'%20y1='0%25'%20x2='100%25'%20y2='96.1961861%25'%20id='vgdxp7v4l__zvhmfdo4ha'%3e%3cstop%20stop-color='%234D76E3'%20offset='0%25'/%3e%3cstop%20stop-color='%23D787EE'%20offset='100%25'/%3e%3c/linearGradient%3e%3c/defs%3e%3cpath%20d='M13,1%20C14.1045695,1%2015,1.8954305%2015,3%20L15,13%20C15,14.1045695%2014.1045695,15%2013,15%20L3,15%20C1.8954305,15%201,14.1045695%201,13%20L1,3%20C1,1.8954305%201.8954305,1%203,1%20L13,1%20Z%20M8.44875881,3.88645164%20C7.88887563,4.38553286%207.31548649,5.06473362%206.78138741,5.85400744%20C6.4216379,5.88402737%206.07416654,5.92655559%205.74142896,5.98159211%20C5.68126606,5.77270348%205.6321535,5.570069%205.59409127,5.37619034%20C5.50937211,4.9434031%205.48727146,4.57065572%205.52901714,4.29797476%20C5.55848467,4.10784858%205.61741973,3.97275892%205.6935442,3.92772904%20C5.81878123,3.85393006%206.26447771,3.90646492%207.05027868,4.63319723%20L7.64454064,3.96650477%20C7.22094482,3.57499494%206.82067746,3.29856148%206.45356107,3.14470937%20C6.13432943,3.01087055%205.66653229,2.90329916%205.25153116,3.14721103%20C4.84512474,3.38611959%204.42398453,3.99777552%204.72725459,5.55130656%20C4.76531682,5.74893772%204.81442938,5.95282302%204.87336445,6.16421332%20C4.66586389,6.21799902%204.46818584,6.27678802%204.2815581,6.34183119%20C2.80940913,6.85216989%202.5,7.528869%202.5,8.0066861%20C2.5,8.49826234%202.82905415,8.85850142%203.10654011,9.07364421%20C3.42454394,9.32130857%203.86532916,9.53770219%204.41661765,9.71532006%20L4.68428111,8.85725059%20C3.65660079,8.5257806%203.38525389,8.1555349%203.38525389,8.0066861%20C3.38525389,7.91787716%203.46997306,7.79654664%203.61731074,7.67646695%20C3.82849474,7.50385239%204.15754889,7.33749199%204.56641096,7.19489735%20C4.75058305,7.13110501%204.9470333,7.07356682%205.15330604,7.02228279%20C5.27240401,7.34374613%205.41114699,7.67271446%205.56585156,8.00543527%20C5.34975629,8.47074408%205.16558418,8.93230041%205.01824651,9.37384344%20C4.76040556,10.1518598%204.62534603,10.8610805%204.62780166,11.4227032%20C4.63025729,11.9092761%204.74076054,12.5522028%205.25521461,12.8549037%20C5.43570327,12.9612243%205.62478661,13%205.80895872,13%20C6.05083808,13%206.2804393,12.9312044%206.46338358,12.8549037%20C6.8329556,12.6998008%207.23567859,12.4196148%207.66050223,12.0243525%20L7.06501244,11.3589109%20C6.27184459,12.0956498%205.82369249,12.1494355%205.69722765,12.0743857%20C5.60882504,12.0218508%205.51428337,11.8229689%205.51182774,11.4176999%20C5.50937211,10.9536419%205.62847006,10.3457385%205.85561565,9.66028354%20C5.92437324,9.45264574%206.00172552,9.24125546%206.08890031,9.02611266%20C6.10363407,9.05112927%206.11714004,9.07614586%206.13187381,9.1024133%20C6.59967093,9.92671036%207.13254221,10.6947201%207.67400818,11.321386%20C8.20687945,11.9380452%208.74220636,12.4121098%209.22105382,12.691045%20C9.49240072,12.8499004%209.84601114,13%2010.2008494,13%20C10.3874771,13%2010.5753327,12.9587226%2010.7533657,12.8536529%20C11.2678198,12.550952%2011.378323,11.9067745%2011.3807786,11.4202015%20C11.3832343,10.8585788%2011.2481747,10.1493581%2010.9903338,9.37009095%20C10.8589577,8.97232696%2010.6956584,8.55705136%2010.5065751,8.13802326%20L9.70235691,8.5170248%20C9.87916211,8.9072838%2010.0301832,9.29128866%2010.1517368,9.66028354%20C10.3788824,10.3457385%2010.4979804,10.9536419%2010.4955247,11.4189507%20C10.4942969,11.8242197%2010.3985274,12.0243525%2010.3101248,12.0756365%20C10.2217222,12.1281714%2010.0043991,12.1119106%209.65938341,11.910527%20C9.2640273,11.6803742%208.80605269,11.2713527%208.33702774,10.7272417%20C7.833624,10.1443548%207.33513152,9.42762914%206.89680191,8.65336529%20C6.77402052,8.43697167%206.658606,8.22182889%206.55055837,8.00543527%20C6.65983383,7.78654%206.77647615,7.56889555%206.89925754,7.35250195%20C7.02081114,7.13735916%207.14604815,6.92847053%207.27496864,6.72583605%20C7.51316455,6.71332774%207.7550439,6.70707359%208.00060669,6.70707359%20C9.30454518,6.70707359%2010.5249923,6.88093898%2011.4348024,7.19614818%20C11.8448923,7.33749199%2012.1727187,7.50385239%2012.3839027,7.67771778%20C12.5312403,7.7990483%2012.6159595,7.91912799%2012.6159595,8.00793694%20C12.6159595,8.10425085%2012.5189622,8.23433719%2012.3495239,8.36567435%20C12.111328,8.54954639%2011.7442116,8.72341178%2011.2886926,8.86850806%20L11.5526726,9.72782838%20C12.1125558,9.55021049%2012.5607079,9.33256604%2012.883623,9.08365086%20C13.1647924,8.86725724%2013.5,8.50451651%2013.5,8.00793694%20C13.5012134,7.528869%2013.1918043,6.85216989%2011.7196553,6.34183119%20C10.7202147,5.99535125%209.39908685,5.80522507%208.00060669,5.80522507%20L7.91097628,5.80522507%20C8.2805483,5.31740132%208.66117063,4.89587157%209.03197046,4.56440157%20C9.35734117,4.27420898%209.66306686,4.06782201%209.91599654,3.9677556%20C10.0928018,3.89770911%2010.2376838,3.88394998%2010.3138083,3.92772904%20C10.3960718,3.97651141%2010.4586903,4.12786186%2010.4844744,4.34425547%20C10.5213088,4.64945802%2010.4844744,5.06348279%2010.3776546,5.54129991%20L11.23958,5.7401819%20C11.3697283,5.15354257%2011.411474,4.64695636%2011.3611336,4.23418242%20C11.3181601,3.87519417%2011.1781893,3.39612623%2010.7545935,3.14721103%20C10.3481871,2.90830248%209.61886555,2.84200848%208.44875881,3.88645164%20Z%20M8.42307307,6.91304349%20C7.83892612,6.91304349%207.36538145,7.39969049%207.36538145,8%20C7.36538145,8.60030951%207.83892612,9.08695653%208.42307307,9.08695653%20C9.00722001,9.08695653%209.48076468,8.60030951%209.48076468,8%20C9.48076468,7.39969049%209.00722001,6.91304349%208.42307307,6.91304349%20Z'%20fill='url(%23vgdxp7v4l__zvhmfdo4ha)'%20fill-rule='evenodd'/%3e%3c/svg%3e",ee="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2016%2016'%20class='design-iconfont'%3e%3cdefs%3e%3clinearGradient%20x1='0%25'%20y1='0%25'%20x2='100%25'%20y2='96.1961861%25'%20id='7doce0e6d__r8m44v5xza'%3e%3cstop%20stop-color='%234D76E3'%20offset='0%25'/%3e%3cstop%20stop-color='%23D787EE'%20offset='100%25'/%3e%3c/linearGradient%3e%3c/defs%3e%3cpath%20d='M13,1%20C14.1045695,1%2015,1.8954305%2015,3%20L15,13%20C15,14.1045695%2014.1045695,15%2013,15%20L3,15%20C1.8954305,15%201,14.1045695%201,13%20L1,3%20C1,1.8954305%201.8954305,1%203,1%20L13,1%20Z%20M11,3.5%20L5,3.5%20C3.8954305,3.5%203,4.3954305%203,5.5%20L3,9.5%20C3,10.6045695%203.8954305,11.5%205,11.5%20L9.536,11.5%20L12.0312272,13.0147852%20L11.4996566,11.5%20L11.0252355,11.4998441%20C12.1181756,11.4863297%2013,10.5961454%2013,9.5%20L13,5.5%20C13,4.3954305%2012.1045695,3.5%2011,3.5%20Z%20M8,9%20C8.27614237,9%208.5,9.22385763%208.5,9.5%20C8.5,9.77614237%208.27614237,10%208,10%20L5,10%20C4.72385763,10%204.5,9.77614237%204.5,9.5%20C4.5,9.22385763%204.72385763,9%205,9%20Z%20M11,7%20C11.2761424,7%2011.5,7.22385763%2011.5,7.5%20C11.5,7.77614237%2011.2761424,8%2011,8%20L5,8%20C4.72385763,8%204.5,7.77614237%204.5,7.5%20C4.5,7.22385763%204.72385763,7%205,7%20Z%20M11,5%20C11.2761424,5%2011.5,5.22385763%2011.5,5.5%20C11.5,5.77614237%2011.2761424,6%2011,6%20L5,6%20C4.72385763,6%204.5,5.77614237%204.5,5.5%20C4.5,5.22385763%204.72385763,5%205,5%20Z'%20fill='url(%237doce0e6d__r8m44v5xza)'%20fill-rule='evenodd'/%3e%3c/svg%3e",te="data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='UTF-8'?%3e%3csvg%20width='32px'%20height='32px'%20viewBox='0%200%2032%2032'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%3e%3ctitle%3eIcon/Node/知识库%3c/title%3e%3cdefs%3e%3clinearGradient%20x1='2.20648492%25'%20y1='2.12255434%25'%20x2='100%25'%20y2='96.1961861%25'%20id='linearGradient-1'%3e%3cstop%20stop-color='%234DB9E3'%20offset='0%25'%3e%3c/stop%3e%3cstop%20stop-color='%23BA70EF'%20offset='100%25'%3e%3c/stop%3e%3c/linearGradient%3e%3c/defs%3e%3cg%20id='Icon/Node/知识库'%20stroke='none'%20stroke-width='1'%20fill='none'%20fill-rule='evenodd'%3e%3cpath%20d='M28,2%20C29.1045695,2%2030,2.8954305%2030,4%20L30,28%20C30,29.1045695%2029.1045695,30%2028,30%20L4,30%20C2.8954305,30%202,29.1045695%202,28%20L2,4%20C2,2.8954305%202.8954305,2%204,2%20L28,2%20Z%20M17.3479972,6%20L14.1475857,6%20C13.7208642,6%2013.3652629,6.35778176%2013.3652629,6.78711986%20L13.3652629,25.2128801%20C13.3652629,25.6422183%2013.7208642,26%2014.1475857,26%20L17.3479972,26%20C17.7747188,26%2018.1303201,25.6422183%2018.1303201,25.2128801%20L18.1303201,6.78711986%20C18.1658802,6.35778176%2017.8102789,6%2017.3479972,6%20Z%20M10.9827343,8.64758499%20L7.78232282,8.64758499%20C7.35560129,8.64758499%207,9.00536675%207,9.43470484%20L7,25.2128801%20C7,25.6422183%207.35560129,26%207.78232282,26%20L10.9827343,26%20C11.4094559,26%2011.7650571,25.6422183%2011.7650571,25.2128801%20L11.7650571,9.43470484%20C11.7650571,9.00536673%2011.4094559,8.64758499%2010.9827343,8.64758499%20Z%20M22.1841746,8.25402505%20L22.0419342,8.25402505%20L18.9126429,8.86225404%20C18.4859213,8.93381039%2018.2014403,9.36314849%2018.2725606,9.7924866%20L21.2951715,25.3202147%20C21.3662917,25.7137746%2021.6863328,25.9642218%2022.0774943,25.9642218%20L22.2197348,25.9642218%20L25.349026,25.3559928%20C25.7757476,25.2486584%2026.0602286,24.8193202%2025.9891084,24.3899821%20L23.0020576,8.89803221%20C22.8953773,8.50447228%2022.575336,8.25402505%2022.1841746,8.25402505%20Z%20M10.0937311,10.4364937%20C10.4848925,10.4364937%2010.8049337,10.7584973%2010.8049337,11.1520572%20C10.8049337,11.5456172%2010.4848925,11.8676208%2010.0937311,11.8676208%20L8.67132601,11.8676208%20C8.28016461,11.8676208%207.96012346,11.5456172%207.96012346,11.1520572%20C7.96012346,10.7584973%208.28016461,10.4364937%208.67132601,10.4364937%20L10.0937311,10.4364937%20Z%20M22.4686557,10.4722719%20C22.539776,10.8658319%2022.2908551,11.2593918%2021.8996937,11.3309481%20L20.4772885,11.6171735%20L20.335048,11.6171735%20C20.0150069,11.6171735%2019.6949657,11.3667263%2019.6238455,11.0447227%20C19.5527252,10.6511628%2019.8016461,10.2576029%2020.1928074,10.1860465%20L21.6152126,9.89982112%20C22.006374,9.82826478%2022.3975355,10.078712%2022.4686557,10.4722719%20Z%20M16.4945542,7.82468694%20C16.8857156,7.82468694%2017.2057567,8.14669052%2017.2057567,8.54025046%20C17.2057567,8.9338104%2016.8857156,9.25581397%2016.4945542,9.25581397%20L15.072149,9.25581397%20C14.6809876,9.25581397%2014.3609465,8.93381039%2014.3609465,8.54025046%20C14.3609465,8.14669054%2014.6809876,7.82468694%2015.072149,7.82468694%20L16.4945542,7.82468694%20Z'%20id='形状结合备份'%20fill='url(%23linearGradient-1)'%3e%3c/path%3e%3c/g%3e%3c/svg%3e",x=T,h="sops";function ae(){return p.t("标准运维插件")}const ne="sops",oe="sops_";function D(){return p.t("标准运维")}const v={bkflow:T,[h]:T,data:U,agent:Q,model:X,output:ee,knowledgebase:te},ie={bkflow:"bkflow-canvas-icon bkflow-canvas-plugin",[h]:"bkflow-canvas-icon bkflow-canvas-plugin",data:"bkflow-canvas-icon bkflow-canvas-data",agent:"bkflow-canvas-icon bkflow-canvas-zhinengti",model:"bkflow-canvas-icon bkflow-canvas-model-filled",knowledgebase:"bkflow-canvas-icon bkflow-canvas-knowledgebase-filled"},F=t=>!!(t.fetchSopsPluginCategories&&t.fetchSopsPluginList&&t.fetchSopsPluginDetail);function se(t){if(!F(t))throw new Error(p.t("标准运维插件目录查询接口缺失:fetchSopsPluginCategories / fetchSopsPluginList / fetchSopsPluginDetail"));return t}const re=(t,e)=>{const n=e?.display_name||t;return(n.startsWith(D())?n.slice(D().length):n)||n},le=(t,e)=>e?t.startsWith(oe)||e.source_key===ne:!1;function I(t){const e=t?.uniform_api?.api??{};return Object.entries(e).filter(([n,c])=>le(n,c)).map(([n,c])=>({id:n,name:re(n,c),source_key:c?.source_key||n}))}function ce(t,e){const n=I(e.spaceConfig);return n.length===0||!F(e.api)?t:[...t,{id:h,name:h,alias:ae(),properties:{},iconUrl:v[h],children:n}]}function ue(t){return(t.find(n=>n.name===h)?.children??[]).filter(n=>"id"in n&&"name"in n)}function b(){return p.t("请求失败")}class d extends Error{httpStatus;code;data;cause;constructor(e,n={}){super(e||p.t("请求失败")),this.name="ApiError",this.httpStatus=n.httpStatus,this.code=n.code,this.data=n.data,this.cause=n.cause}}const C=t=>Object.prototype.toString.call(t)==="[object Object]",L=t=>C(t)&&typeof t.result=="boolean"&&Object.prototype.hasOwnProperty.call(t,"data")&&(Object.prototype.hasOwnProperty.call(t,"code")||Object.prototype.hasOwnProperty.call(t,"message")),y=t=>typeof t=="string"?t:C(t)?typeof t.err_msg=="string"?t.err_msg:typeof t.message=="string"?t.message:typeof t.detail=="string"?t.detail:C(t.detail)&&typeof t.detail.detail=="string"?t.detail.detail:"":"";function de(t){const e=C(t)&&typeof t.status=="number"&&Object.prototype.hasOwnProperty.call(t,"config")&&Object.prototype.hasOwnProperty.call(t,"data"),n=e?t.data:t;if(!L(n))return n;if(n.result)return n.data;throw new d(y(n)||b(),{code:n.code===void 0||n.code===null?void 0:String(n.code),httpStatus:e?t.status:void 0,data:n.data,cause:t})}function M(t){if(t instanceof d)return t;if(w.isAxiosError(t)){const e=t.response?.data;return L(e)&&!e.result?new d(y(e)||t.message||b(),{httpStatus:t.response?.status,code:e.code===void 0||e.code===null?void 0:String(e.code),data:e.data,cause:t}):new d(y(e)||t.response?.statusText||t.message||b(),{httpStatus:t.response?.status,data:e,cause:t})}if(C(t)&&C(t.response)){const e=t.response,n=e.data;return L(n)&&!n.result?new d(y(n)||b(),{httpStatus:typeof e.status=="number"?e.status:void 0,code:n.code===void 0||n.code===null?void 0:String(n.code),data:n.data,cause:t}):new d(y(n)||(typeof e.statusText=="string"?e.statusText:"")||b(),{httpStatus:typeof e.status=="number"?e.status:void 0,data:n,cause:t})}return t instanceof Error?new d(t.message,{cause:t}):typeof t=="string"?new d(t,{cause:t}):new d(y(t)||b(),{data:t,cause:t})}const O=()=>Math.floor((1+Math.random())*65536).toString(16).substring(1),pe=(t=8)=>{let e="";for(let n=0;n<t-1;n++)e+=O();return e},N=(t=32)=>{let e="";const n="abcdef0123456789";for(let c=0;c<t;c++)e+=n.charAt(Math.floor(Math.random()*n.length));return e},ge=()=>`00-${N(32)}-${N(16)}-01`,me=t=>t.httpStatus!==401&&t.httpStatus!==404&&!!t.message&&!t.message.includes("1211011"),fe=["common","delete","get","head","post","put","patch","options"];function E(t,e){return!t||typeof t!="object"?!1:w.AxiosHeaders.from(t).has(e)}function he(t,e){if(!t||typeof t!="object")return!1;if(E(t,e))return!0;const n=t;return fe.some(c=>E(n[c],e))}function be(t){const{headers:e,...n}=t.axiosConfig||{},c={baseURL:t.baseURL||(typeof window>"u"?void 0:window.API_HOST),xsrfCookieName:t.xsrfCookieName||"bk-incident_csrftoken",xsrfHeaderName:"X-CSRFToken",withCredentials:!0,...n,headers:t.axiosConfig?.headers},r=t.axiosInstance??w.create(c),l=(s={})=>{const a={...s},o=w.AxiosHeaders.from(a.headers);o.has("traceparent")||o.set("traceparent",ge());const u=he(r.defaults?.headers,"Accept-Language");return!o.has("Accept-Language")&&!u&&o.set("Accept-Language",p.getLocale()),{...a,headers:o}};async function i(s,a={}){try{return de(await s())}catch(o){const u=M(o);throw a.errorHandling!=="delegate"&&me(u)&&B({theme:"error",message:u.message,ellipsisLine:3}),u}}return{request(s){return i(()=>r.request(l(s)),s)},get(s,a={}){return i(()=>r.get(s,l(a)),a)},delete(s,a={}){return i(()=>r.delete(s,l(a)),a)},post(s,a,o={}){return i(()=>r.post(s,a,l(o)),o)},put(s,a,o={}){return i(()=>r.put(s,a,l(o)),o)},patch(s,a,o={}){return i(()=>r.patch(s,a,l(o)),o)}}}const g="/bkflow/template",m={errorHandling:"delegate"};function ye(t,e){const{scope_type:n,scope_value:c,space_id:r}=e,l=i=>({template_id:Number(i),space_id:r,scope_type:n,scope_value:c});return{fetchDebugContext(i){return t.get(`${g}/debug_context/`,{...m,params:l(i)})},fetchDebugInputSchema(i){return t.get(`${g}/debug_input_schema/`,{...m,params:l(i)})},fetchDebugResetImpact(i){return t.post(`${g}/debug_reset_impact/`,{...l(i)},m)},updateNodeDebugMock(i){const s={...l(i.templateId),node_id:i.nodeId,enable:i.enable};return i.mockResult!==void 0&&(s.mock_result=i.mockResult),i.mockOutputs!==void 0&&(s.mock_outputs=i.mockOutputs),i.mockError!==void 0&&(s.mock_error=i.mockError),t.post(`${g}/debug_node_mock/`,s,m)},runNodeDebugStep(i){const s={...l(i.templateId),node_id:i.nodeId,mode:i.mode};return i.inputOverrides!==void 0&&(s.input_overrides=i.inputOverrides),i.mockResult!==void 0&&(s.mock_result=i.mockResult),i.mockOutputs!==void 0&&(s.mock_outputs=i.mockOutputs),i.mockError!==void 0&&(s.mock_error=i.mockError),t.post(`${g}/debug_step_run/`,s,m)},runGlobalDebug(i){return t.post(`${g}/debug_global_run/`,{...l(i.templateId),inputs:i.inputs},m)},terminateDebug(i){const s={...l(i.templateId)};return i.nodeId!==void 0&&(s.node_id=i.nodeId),t.post(`${g}/debug_terminate/`,s,m)},resetDebugResult(i){const s={...l(i.templateId)};return i.nodeIds!==void 0&&(s.node_ids=i.nodeIds),t.post(`${g}/debug_reset/`,s,m)}}}const R=0,Ce=["dmn_plugin","subprocess_plugin"],G=(t=[])=>[{code_name:"INNER",id:R,name:p.t("内置"),priority:1},...t];function ke(t){const e=be(t),{scopeData:n}=t,c=ye(e,n),r=a=>({...a,...n}),l=async()=>await e.get("/bkflow/plugin/tags/",{params:{...n}}),i=async()=>[...(await e.get("/metas/category/list_categories/",{params:n})).map(o=>({...o,iconUrl:v[o.name]??x})),{id:"bkflow",name:"bkflow",alias:p.t("插件"),properties:{},iconUrl:v.bkflow??x}],s=async a=>(await e.post("/metas/plugin/list_plugins/",r({category:a}))).apis;return{...c,async fetchFlowDetail(a){return await e.get(`/bkflow/template/${a}/fetch_template/`,{params:n})},async fetchFlowDetailByVersion(a,o){return await e.post(`/bkflow/template/${a}/preview_task_tree/`,{...n,is_all_nodes:!0,version:o})},async fetchFlowDraftDetail(a){return await e.get(`/bkflow/template/${a}/get_draft_template/`,{params:n})},async fetchSpaceFlowConfig(a){return await e.get(`/bkflow/template/${a}/get_space_related_configs/`,{params:n})},async fetchSystemVariables(a){const o=await e.get("/bkflow/variable/system_variables/",{params:{template_id:a,...n}});return Object.values(o)},async saveFlow(a,o){await e.put(`/bkflow/template/${a}/update_template/`,r(o))},async fetchInnerVariableDetail(a){return await e.get(`/bkflow/variable/${a}/variable_class_detail/`,{params:{...n}})},async fetchBkFlowInnerPluginList(){return(await e.get("/bkflow/inner_plugin/plugins/",{params:{...n}})).filter(o=>!Ce.includes(o.code))},async fetchBkFlowInnerPluginDetail(a,o){return await e.get(`/bkflow/inner_plugin/${a}/plugin_detail/`,{params:{version:o,...n}})},async fetchBkFlowThirdPartyPluginTags(){return l()},async fetchBkFlowThirdPartyPluginList(a){return await e.get("/bkflow/plugin/list_plugin/",{params:{tag:a,...n}})},async searchBkFlowThirdPartyPlugins(a){return await e.get("/bkflow/plugin/list_plugin/",{params:{offset:0,limit:200,search_term:a,...n}})},async fetchBkFlowThirdPartyPluginMeta(a){return await e.get("/bkflow/plugin/meta/",{params:{plugin_code:a,...n}})},async fetchBkFlowThirdPartyPluginAppDetail(a,o){return await e.get("/bkflow/plugin/get_plugin_app_detail/",{params:{plugin_code:a,plugin_version:o,...n}})},async fetchBkFlowThirdPartyPluginDetail(a,o){return await e.get("/bkflow/plugin/plugin_detail/",{params:{plugin_code:a,plugin_version:o,with_app_detail:!0,...n}})},async fetchPluginGroupList(){return i()},async fetchCategoryPlugins(a){return s(a)},async fetchPluginDetail(a){return await e.get("/metas/plugin/get_plugin/",{params:{plugin_id:a,...n}})},async fetchAllPluginGroups(){const a=t.enableThirdPlugin!==!1,[o,u]=await Promise.all([i(),a?l():Promise.resolve([])]),k=o.map(async f=>{if(f.name==="bkflow")return{...f,children:G(a?u:[])};const P=await s(f.name);return{...f,children:P.map(_=>({..._,category_id:f.id}))}});return await Promise.all(k)},async fetchSopsPluginCategories(a){return await e.get("/bkflow/uniform/category_list/",{params:{...a,...n}})},async fetchSopsPluginList(a){return await e.get("/bkflow/uniform/uniform_plugin_list/",{params:{...a,...n}})},async fetchSopsPluginDetail(a){return await e.post("/bkflow/inner_plugin/plugin_all_types_detail/",{space_id:String(n.space_id),template_id:String(a.template_id),plugin_type:a.plugin_type,plugin_code:a.plugin_code,plugin_version:a.plugin_version,source_key:a.source_key??"",scope_type:n.scope_type,scope_value:String(n.scope_value)})},async fetchApplyInstructionData(a){return await e.post("/metas/plugin/apply_instruction/",r(a))},async fetchVariableRef(a){return{data:await e.post("/bkflow/template/analysis_constants_ref/",r(a))}},async fetchCustomVariableTypes(){return{data:await e.get("/bkflow/variable/variable_class_list/",{params:n})}},async fetchFlowOperateRecord(a){return{data:await e.get(`/bkflow/template/${a}/operation_record/`,{params:n})}},async createFlowTask(a){return{data:await e.post("/bkflow/template/create_task/",r(a))}},async getFlowTaskDetail(a){return await e.get("/bkflow/template/get_task_detail/",{params:{task_id:a.task_id,...n}})},async executeFlowTask(a){await e.post("/bkflow/template/operate_task/",r({...a,action:"start"}))},async revokeFlowTask(a){await e.post("/bkflow/template/operate_task/",r({...a,action:"revoke"}))},async fetchControlConfig(){return await e.get("/bkflow/space_config/get_control_config/",{params:n})},async checkSpaceConfig(a,o){return await e.get(`/bkflow/space_config/${a}/check_space_config/`,{params:{...n,...o}})},async drawPipeline(a){return await e.post("/bkflow/template/draw_pipeline/",r(a))},async createMockDebugTask(a){const{template_id:o,...u}=a;return{data:await e.post(`/bkflow/template/${o}/create_mock_task/`,r(u))}},async stopMockDebugTask(a){throw new Error("TODO(mock-debug-api): replace with final mock debug stop API.")},async fetchTaskState(a){return await e.get("/bkflow/template/get_task_states/",{params:{task_id:a.task_id,...n}})},async fetchTaskNodeDetail(a){return await e.get("/bkflow/task/get_task_node_detail/",{params:{task_id:a.task_id,node_id:a.node_id,...a.component_code?{component_code:a.component_code}:{},...n}})},async fetchTaskNodeSnapshot(a){return await e.get("/bkflow/task/get_node_snapshot_config/",{params:{task_id:a.task_id,node_id:a.node_id,...n}})},async fetchTaskNodeLog(a){return await e.get("/bkflow/task/get_task_node_log/",{params:{task_id:a.task_id,node_id:a.node_id,version:a.version,...n}})},async operateTaskNode(a){const o={retry:"retry",skip:"skip",forceFail:"forced_fail",resume:"callback",gatewaySkip:"skip_exg"},{task_id:u,node_id:k,action:S,data:f,operation:P}=a,_=P??o[S]??S;return await e.post(`/bkflow/task/${u}/node/${k}/operate_node/${_}/`,r(f??{}))}}}function we(t){const e=ke(t);return{fetchFlowDetail:e.fetchFlowDetail,fetchFlowDraftDetail:e.fetchFlowDraftDetail,fetchFlowDetailByVersion:e.fetchFlowDetailByVersion,fetchSpaceFlowConfig:e.fetchSpaceFlowConfig,fetchSystemVariables:e.fetchSystemVariables,fetchUserApi:t.fetchUserApi,scopeData:t.scopeData,fetchVariableRef:e.fetchVariableRef,fetchCustomVariableTypes:e.fetchCustomVariableTypes,fetchFlowOperateRecord:e.fetchFlowOperateRecord,createFlowTask:e.createFlowTask,executeFlowTask:e.executeFlowTask,revokeFlowTask:e.revokeFlowTask,saveFlow:e.saveFlow,fetchBkFlowInnerPluginList:e.fetchBkFlowInnerPluginList,fetchInnerVariableDetail:e.fetchInnerVariableDetail,fetchBkFlowInnerPluginDetail:e.fetchBkFlowInnerPluginDetail,fetchBkFlowThirdPartyPluginList:e.fetchBkFlowThirdPartyPluginList,searchBkFlowThirdPartyPlugins:e.searchBkFlowThirdPartyPlugins,fetchBkFlowThirdPartyPluginTags:e.fetchBkFlowThirdPartyPluginTags,fetchBkFlowThirdPartyPluginMeta:e.fetchBkFlowThirdPartyPluginMeta,fetchBkFlowThirdPartyPluginDetail:e.fetchBkFlowThirdPartyPluginDetail,fetchBkFlowThirdPartyPluginAppDetail:e.fetchBkFlowThirdPartyPluginAppDetail,fetchPluginGroupList:e.fetchPluginGroupList,fetchCategoryPlugins:e.fetchCategoryPlugins,fetchPluginDetail:e.fetchPluginDetail,fetchApplyInstructionData:e.fetchApplyInstructionData,fetchAllPluginGroups:e.fetchAllPluginGroups,fetchSopsPluginCategories:e.fetchSopsPluginCategories,fetchSopsPluginList:e.fetchSopsPluginList,fetchSopsPluginDetail:e.fetchSopsPluginDetail,enableThirdPlugin:t.enableThirdPlugin,fetchControlConfig:e.fetchControlConfig,checkSpaceConfig:e.checkSpaceConfig,drawPipeline:e.drawPipeline,createMockDebugTask:e.createMockDebugTask,stopMockDebugTask:e.stopMockDebugTask,fetchTaskState:e.fetchTaskState,fetchTaskNodeDetail:e.fetchTaskNodeDetail,fetchTaskNodeSnapshot:e.fetchTaskNodeSnapshot,fetchTaskNodeLog:e.fetchTaskNodeLog,operateTaskNode:e.operateTaskNode,getFlowTaskDetail:e.getFlowTaskDetail,fetchDebugContext:e.fetchDebugContext,fetchDebugInputSchema:e.fetchDebugInputSchema,fetchDebugResetImpact:e.fetchDebugResetImpact,updateNodeDebugMock:e.updateNodeDebugMock,runNodeDebugStep:e.runNodeDebugStep,runGlobalDebug:e.runGlobalDebug,terminateDebug:e.terminateDebug,resetDebugResult:e.resetDebugResult}}const V=Symbol("variableInputCreateVariable"),ve=t=>{A.provide(V,t)},Se=()=>A.inject(V,null);exports.ApiError=d;exports.BKFLOW_INNER_PLUGIN_TAG_ID=R;exports.PLUGGIN_GROUP_FONT_CLASS_MAP=ie;exports.PLUGIN_GROUP_DEFAULT_ICON=x;exports.PLUGIN_GROUP_ICON_MAP=v;exports.SOPS_PLUGIN_GROUP_NAME=h;exports.buildBkflowPluginTagList=G;exports.ensureSopsCatalogApi=se;exports.generateId=pe;exports.getSopsPluginSources=ue;exports.normalizeApiError=M;exports.provideVariableInputCreateVariable=ve;exports.random4=O;exports.resolveSopsPluginSources=I;exports.useFlowApi=we;exports.useVariableInputCreateVariable=Se;exports.withSopsPluginGroup=ce;