refactor(secrets): 六入口重复secret配置清零(统一化)——AgentIO钥匙改宿主级默认(bricks.app.secret_defaults/window.__SECRET_DEFAULTS),shell一处设置全站生效;修此前逐.ui复制粘贴漏配bidding/opportunity/platform三入口无钥匙

This commit is contained in:
yumoqing 2026-09-18 15:37:20 +08:00
parent 3abdfbd7ff
commit b826c3a75e
3 changed files with 5 additions and 21 deletions

View File

@ -18,7 +18,7 @@
"event": "click",
"actiontype": "script",
"target": "self",
"script": "var tp=bricks.getWidgetById('session_tabs',bricks.app);if(!tp)return;var sid='s'+Date.now()+'_'+Math.floor(Math.random()*100000);var n=tp.opts.items.length+1;tp.open_tab({name:'session_'+sid,label:'会话 '+n,removable:true,content:{widgettype:'VBox',options:{css:'filler',width:'100%',height:'100%'},subwidgets:[{widgettype:'urlwidget',options:{url:'/pipeline_core/api/agent_menus.dspy?session_id='+sid+'&pipeline_id=sdlc_general',method:'GET'}},{widgettype:'AgentIO',options:{css:'filler',margin:'0 24px 24px 24px',url:'/pipeline_core/api/agent_chat.dspy?session_id='+sid+'&pipeline_id=sdlc_general',model_dataurl:'/pipeline_core/api/agent_model_options.dspy?session_id='+sid+'&pipeline_id=sdlc_general',model_cwidth:14,placeholder:'输入你的需求...',secret_dataurl:'/pipeline_core/api/secret_options.dspy',secret_format:'@@sec:{name}@@',secret_title:'选择敏感信息',secret_tip:'插入敏感信息'}}]}});"
"script": "var tp=bricks.getWidgetById('session_tabs',bricks.app);if(!tp)return;var sid='s'+Date.now()+'_'+Math.floor(Math.random()*100000);var n=tp.opts.items.length+1;tp.open_tab({name:'session_'+sid,label:'会话 '+n,removable:true,content:{widgettype:'VBox',options:{css:'filler',width:'100%',height:'100%'},subwidgets:[{widgettype:'urlwidget',options:{url:'/pipeline_core/api/agent_menus.dspy?session_id='+sid+'&pipeline_id=sdlc_general',method:'GET'}},{widgettype:'AgentIO',options:{css:'filler',margin:'0 24px 24px 24px',url:'/pipeline_core/api/agent_chat.dspy?session_id='+sid+'&pipeline_id=sdlc_general',model_dataurl:'/pipeline_core/api/agent_model_options.dspy?session_id='+sid+'&pipeline_id=sdlc_general',model_cwidth:14,placeholder:'输入你的需求...'}}]}});"
}]
}
]
@ -52,11 +52,7 @@
"url": "/pipeline_core/api/agent_chat.dspy?session_id=default_sdlc_general&pipeline_id=sdlc_general",
"model_dataurl": "/pipeline_core/api/agent_model_options.dspy?session_id=default_sdlc_general&pipeline_id=sdlc_general",
"model_cwidth": 14,
"placeholder": "输入你的需求...",
"secret_dataurl": "/pipeline_core/api/secret_options.dspy",
"secret_format": "@@sec:{name}@@",
"secret_title": "选择敏感信息",
"secret_tip": "插入敏感信息"
"placeholder": "输入你的需求..."
}
}
]

View File

@ -31,11 +31,7 @@
"url": "/pipeline_core/api/agent_chat_generic.dspy",
"model_dataurl": "/pipeline_core/api/agent_model_options.dspy",
"model_cwidth": 14,
"placeholder": "输入你的需求...(纯通用模式)",
"secret_dataurl": "/pipeline_core/api/secret_options.dspy",
"secret_format": "@@sec:{name}@@",
"secret_title": "选择敏感信息",
"secret_tip": "插入敏感信息"
"placeholder": "输入你的需求...(纯通用模式)"
}
}
]

View File

@ -17,11 +17,7 @@
"url": "/pipeline_core/api/agent_chat.dspy?pipeline_id={{pl_id}}&session_id=m_{{pl_id}}",
"model_dataurl": "/pipeline_core/api/agent_model_options.dspy?capabilities=chat&pipeline_id={{pl_id}}&session_id=m_{{pl_id}}",
"model_cwidth": 14,
"placeholder": "输入你的需求...",
"secret_dataurl": "/pipeline_core/api/secret_options.dspy",
"secret_format": "@@sec:{name}@@",
"secret_title": "选择敏感信息",
"secret_tip": "插入敏感信息"
"placeholder": "输入你的需求..."
}
}
]
@ -81,11 +77,7 @@
"url": "/pipeline_core/api/agent_chat.dspy",
"model_dataurl": "/pipeline_core/api/agent_model_options.dspy?capabilities=chat",
"model_cwidth": 14,
"placeholder": "输入你的需求...",
"secret_dataurl": "/pipeline_core/api/secret_options.dspy",
"secret_format": "@@sec:{name}@@",
"secret_title": "选择敏感信息",
"secret_tip": "插入敏感信息"
"placeholder": "输入你的需求..."
}
},
{