feat: 拆分任务类型并支持脚本语言联动
- 任务类型改为「执行脚本 / 发起 HTTP 请求 / 运行二进制程序」,脚本类型下新增语言选择(Python / Shell / Node / Lua) - 语言联动表单:Python 才显示虚拟环境、解释器和 uv 状态;Shell/Node/Lua 隐藏这些字段并切换脚本标签、占位符和调用预览 - 切换语言时自动设置解释器与默认脚本,Shell 通过 cmd.exe /C 执行批处理,Node/Lua 使用对应解释器 - TaskAction 新增可选 language,旧任务按解释器推断;补 Shell 执行测试、语言切换单测与 Playwright 用例
This commit is contained in:
@@ -1530,6 +1530,15 @@
|
||||
}
|
||||
}
|
||||
},
|
||||
"ScriptLanguage": {
|
||||
"type": "string",
|
||||
"enum": [
|
||||
"python",
|
||||
"shell",
|
||||
"node",
|
||||
"lua"
|
||||
]
|
||||
},
|
||||
"SessionResponse": {
|
||||
"type": "object",
|
||||
"required": [
|
||||
@@ -1571,6 +1580,16 @@
|
||||
"interpreter": {
|
||||
"type": "string"
|
||||
},
|
||||
"language": {
|
||||
"oneOf": [
|
||||
{
|
||||
"$ref": "#/components/schemas/ScriptLanguage"
|
||||
},
|
||||
{
|
||||
"type": "null"
|
||||
}
|
||||
]
|
||||
},
|
||||
"script": {
|
||||
"type": "string"
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user