Backend: - cockpit_chat.dspy: real LLM calls via llm table config, Hermes-style context (system prompt + project/iteration + history), auto model selection (multimodal if files, text otherwise) - cockpit_model_options.dspy: returns active models with capabilities - llm table: added capabilities column (text/vision/multimodal) Frontend: - inputed script: no page reload, updates agent bubble with LLM reply - stats_row refreshed on success, error shown in bubble DB: - sd_agent_settings table for per-user agent preferences
365 lines
8.3 KiB
XML
365 lines
8.3 KiB
XML
|
|
{
|
|
"widgettype":"VBox",
|
|
"options":{"cheight":40,"width":"100%"},
|
|
"subwidgets":[{
|
|
"id":"sd_bugs_tbl",
|
|
"widgettype":"Tabular",
|
|
"options":{
|
|
"width":"100%",
|
|
"height":"100%",
|
|
|
|
|
|
"title":"Bug管理表",
|
|
|
|
|
|
|
|
|
|
"css":"card",
|
|
|
|
|
|
"editable":{
|
|
|
|
"new_data_url":"{{entire_url('add_sd_bugs.dspy')}}",
|
|
|
|
|
|
"delete_data_url":"{{entire_url('delete_sd_bugs.dspy')}}",
|
|
|
|
|
|
"update_data_url":"{{entire_url('update_sd_bugs.dspy')}}"
|
|
|
|
},
|
|
|
|
|
|
"data_url":"{{entire_url('./get_sd_bugs.dspy')}}",
|
|
|
|
"data_method":"GET",
|
|
"data_params":{{json.dumps(params_kw, indent=4, ensure_ascii=False)}},
|
|
"row_options":{
|
|
|
|
|
|
|
|
"browserfields": {
|
|
"alters": {
|
|
"iteration_id": {
|
|
"uitype": "code",
|
|
"dataurl": "{{entire_url('../api/get_iteration_options.dspy')}}",
|
|
"valueField": "iteration_id",
|
|
"textField": "iteration_id_text"
|
|
},
|
|
"severity": {
|
|
"uitype": "code",
|
|
"dataurl": "{{entire_url('../api/get_search_severity.dspy')}}",
|
|
"valueField": "value",
|
|
"textField": "text"
|
|
},
|
|
"priority": {
|
|
"uitype": "code",
|
|
"dataurl": "{{entire_url('../api/get_search_priority.dspy')}}",
|
|
"valueField": "value",
|
|
"textField": "text"
|
|
},
|
|
"status": {
|
|
"uitype": "code",
|
|
"dataurl": "{{entire_url('../api/get_search_bug_status.dspy')}}",
|
|
"valueField": "value",
|
|
"textField": "text"
|
|
},
|
|
"reporter_type": {
|
|
"uitype": "code",
|
|
"dataurl": "{{entire_url('../api/get_search_reporter_type.dspy')}}",
|
|
"valueField": "value",
|
|
"textField": "text"
|
|
}
|
|
}
|
|
},
|
|
|
|
|
|
"editexclouded":[
|
|
"id",
|
|
"created_at",
|
|
"updated_at",
|
|
"closed_at",
|
|
"verified_by",
|
|
"fix_commit"
|
|
],
|
|
|
|
"fields":[
|
|
{
|
|
"name": "id",
|
|
"title": "主键ID",
|
|
"type": "str",
|
|
"length": 32,
|
|
"nullable": "no",
|
|
"cwidth": 18,
|
|
"uitype": "str",
|
|
"datatype": "str",
|
|
"label": "主键ID"
|
|
},
|
|
{
|
|
"name": "iteration_id",
|
|
"title": "迭代ID",
|
|
"type": "str",
|
|
"length": 32,
|
|
"nullable": "no",
|
|
"label": "迭代ID",
|
|
"uitype": "code",
|
|
"valueField": "iteration_id",
|
|
"textField": "iteration_id_text",
|
|
"params": {
|
|
"dbname": "{{'sage'}}",
|
|
"table": "sd_iterations",
|
|
"tblvalue": "id",
|
|
"tbltext": "iteration_name",
|
|
"valueField": "iteration_id",
|
|
"textField": "iteration_id_text"
|
|
},
|
|
"dataurl": "{{entire_url('../api/get_iteration_options.dspy')}}"
|
|
},
|
|
{
|
|
"name": "case_id",
|
|
"title": "关联用例ID",
|
|
"type": "str",
|
|
"length": 32,
|
|
"cwidth": 18,
|
|
"uitype": "str",
|
|
"datatype": "str",
|
|
"label": "关联用例ID"
|
|
},
|
|
{
|
|
"name": "step_name",
|
|
"title": "发现步骤名",
|
|
"type": "str",
|
|
"length": 100,
|
|
"cwidth": 18,
|
|
"uitype": "str",
|
|
"datatype": "str",
|
|
"label": "发现步骤名"
|
|
},
|
|
{
|
|
"name": "title",
|
|
"title": "Bug标题",
|
|
"type": "str",
|
|
"length": 300,
|
|
"nullable": "no",
|
|
"cwidth": 18,
|
|
"uitype": "str",
|
|
"datatype": "str",
|
|
"label": "Bug标题"
|
|
},
|
|
{
|
|
"name": "description",
|
|
"title": "详细描述",
|
|
"type": "text",
|
|
"length": 0,
|
|
"uitype": "text",
|
|
"datatype": "text",
|
|
"label": "详细描述"
|
|
},
|
|
{
|
|
"name": "severity",
|
|
"title": "严重程度",
|
|
"type": "str",
|
|
"length": 10,
|
|
"nullable": "no",
|
|
"default": "'major'",
|
|
"label": "严重程度",
|
|
"uitype": "code",
|
|
"valueField": "value",
|
|
"textField": "text",
|
|
"params": {
|
|
"dbname": "{{'sage'}}",
|
|
"table": "appcodes_kv",
|
|
"tblvalue": "k",
|
|
"tbltext": "v",
|
|
"valueField": "value",
|
|
"textField": "text",
|
|
"cond": "parentid='sd_bug_severity'"
|
|
},
|
|
"dataurl": "{{entire_url('../api/get_search_severity.dspy')}}"
|
|
},
|
|
{
|
|
"name": "priority",
|
|
"title": "优先级",
|
|
"type": "str",
|
|
"length": 10,
|
|
"nullable": "no",
|
|
"default": "'P1'",
|
|
"label": "优先级",
|
|
"uitype": "code",
|
|
"valueField": "value",
|
|
"textField": "text",
|
|
"params": {
|
|
"dbname": "{{'sage'}}",
|
|
"table": "appcodes_kv",
|
|
"tblvalue": "k",
|
|
"tbltext": "v",
|
|
"valueField": "value",
|
|
"textField": "text",
|
|
"cond": "parentid='sd_priority'"
|
|
},
|
|
"dataurl": "{{entire_url('../api/get_search_priority.dspy')}}"
|
|
},
|
|
{
|
|
"name": "status",
|
|
"title": "Bug状态",
|
|
"type": "str",
|
|
"length": 20,
|
|
"nullable": "no",
|
|
"default": "'open'",
|
|
"label": "Bug状态",
|
|
"uitype": "code",
|
|
"valueField": "value",
|
|
"textField": "text",
|
|
"params": {
|
|
"dbname": "{{'sage'}}",
|
|
"table": "appcodes_kv",
|
|
"tblvalue": "k",
|
|
"tbltext": "v",
|
|
"valueField": "value",
|
|
"textField": "text",
|
|
"cond": "parentid='sd_bug_status'"
|
|
},
|
|
"dataurl": "{{entire_url('../api/get_search_bug_status.dspy')}}"
|
|
},
|
|
{
|
|
"name": "reporter_type",
|
|
"title": "提交人类型",
|
|
"type": "str",
|
|
"length": 10,
|
|
"nullable": "no",
|
|
"label": "提交人类型",
|
|
"uitype": "code",
|
|
"valueField": "value",
|
|
"textField": "text",
|
|
"params": {
|
|
"dbname": "{{'sage'}}",
|
|
"table": "appcodes_kv",
|
|
"tblvalue": "k",
|
|
"tbltext": "v",
|
|
"valueField": "value",
|
|
"textField": "text",
|
|
"cond": "parentid='sd_reporter_type'"
|
|
},
|
|
"dataurl": "{{entire_url('../api/get_search_reporter_type.dspy')}}"
|
|
},
|
|
{
|
|
"name": "reporter_id",
|
|
"title": "提交人ID",
|
|
"type": "str",
|
|
"length": 32,
|
|
"nullable": "no",
|
|
"cwidth": 18,
|
|
"uitype": "str",
|
|
"datatype": "str",
|
|
"label": "提交人ID"
|
|
},
|
|
{
|
|
"name": "assignee_id",
|
|
"title": "处理人ID",
|
|
"type": "str",
|
|
"length": 32,
|
|
"cwidth": 18,
|
|
"uitype": "str",
|
|
"datatype": "str",
|
|
"label": "处理人ID"
|
|
},
|
|
{
|
|
"name": "fix_description",
|
|
"title": "修复说明",
|
|
"type": "text",
|
|
"length": 0,
|
|
"uitype": "text",
|
|
"datatype": "text",
|
|
"label": "修复说明"
|
|
},
|
|
{
|
|
"name": "fix_commit",
|
|
"title": "修复Commit",
|
|
"type": "str",
|
|
"length": 100,
|
|
"cwidth": 18,
|
|
"uitype": "str",
|
|
"datatype": "str",
|
|
"label": "修复Commit"
|
|
},
|
|
{
|
|
"name": "verified_by",
|
|
"title": "验证人",
|
|
"type": "str",
|
|
"length": 32,
|
|
"cwidth": 18,
|
|
"uitype": "str",
|
|
"datatype": "str",
|
|
"label": "验证人"
|
|
},
|
|
{
|
|
"name": "created_at",
|
|
"title": "创建时间",
|
|
"type": "timestamp",
|
|
"nullable": "no",
|
|
"length": 0,
|
|
"uitype": "str",
|
|
"datatype": "timestamp",
|
|
"label": "创建时间"
|
|
},
|
|
{
|
|
"name": "updated_at",
|
|
"title": "更新时间",
|
|
"type": "timestamp",
|
|
"length": 0,
|
|
"uitype": "str",
|
|
"datatype": "timestamp",
|
|
"label": "更新时间"
|
|
},
|
|
{
|
|
"name": "closed_at",
|
|
"title": "关闭时间",
|
|
"type": "timestamp",
|
|
"length": 0,
|
|
"uitype": "str",
|
|
"datatype": "timestamp",
|
|
"label": "关闭时间"
|
|
}
|
|
]
|
|
},
|
|
|
|
|
|
|
|
"data_filter":{
|
|
"AND": [
|
|
{
|
|
"field": "iteration_id",
|
|
"op": "=",
|
|
"var": "iteration_input"
|
|
},
|
|
{
|
|
"field": "severity",
|
|
"op": "=",
|
|
"var": "severity_input"
|
|
},
|
|
{
|
|
"field": "status",
|
|
"op": "=",
|
|
"var": "status_input"
|
|
},
|
|
{
|
|
"field": "title",
|
|
"op": "LIKE",
|
|
"var": "title_input"
|
|
}
|
|
]
|
|
},
|
|
|
|
|
|
|
|
|
|
|
|
"page_rows":160,
|
|
"cache_limit":5
|
|
}
|
|
|
|
,"binds":[]
|
|
|
|
}]
|
|
} |