From b826c3a75e7dc3451d185b38f8d1134e96292e55 Mon Sep 17 00:00:00 2001 From: yumoqing Date: Fri, 18 Sep 2026 15:37:20 +0800 Subject: [PATCH] =?UTF-8?q?refactor(secrets):=20=E5=85=AD=E5=85=A5?= =?UTF-8?q?=E5=8F=A3=E9=87=8D=E5=A4=8Dsecret=E9=85=8D=E7=BD=AE=E6=B8=85?= =?UTF-8?q?=E9=9B=B6(=E7=BB=9F=E4=B8=80=E5=8C=96)=E2=80=94=E2=80=94AgentIO?= =?UTF-8?q?=E9=92=A5=E5=8C=99=E6=94=B9=E5=AE=BF=E4=B8=BB=E7=BA=A7=E9=BB=98?= =?UTF-8?q?=E8=AE=A4(bricks.app.secret=5Fdefaults/window.=5F=5FSECRET=5FDE?= =?UTF-8?q?FAULTS),shell=E4=B8=80=E5=A4=84=E8=AE=BE=E7=BD=AE=E5=85=A8?= =?UTF-8?q?=E7=AB=99=E7=94=9F=E6=95=88;=E4=BF=AE=E6=AD=A4=E5=89=8D?= =?UTF-8?q?=E9=80=90.ui=E5=A4=8D=E5=88=B6=E7=B2=98=E8=B4=B4=E6=BC=8F?= =?UTF-8?q?=E9=85=8Dbidding/opportunity/platform=E4=B8=89=E5=85=A5?= =?UTF-8?q?=E5=8F=A3=E6=97=A0=E9=92=A5=E5=8C=99?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- wwwroot/agent/index.ui | 8 ++------ wwwroot/agent_generic/index.ui | 6 +----- wwwroot/mobile_agent.ui | 12 ++---------- 3 files changed, 5 insertions(+), 21 deletions(-) diff --git a/wwwroot/agent/index.ui b/wwwroot/agent/index.ui index b4aa399..364ec60 100644 --- a/wwwroot/agent/index.ui +++ b/wwwroot/agent/index.ui @@ -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": "输入你的需求..." } } ] diff --git a/wwwroot/agent_generic/index.ui b/wwwroot/agent_generic/index.ui index c670c3f..3919a17 100644 --- a/wwwroot/agent_generic/index.ui +++ b/wwwroot/agent_generic/index.ui @@ -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": "输入你的需求...(纯通用模式)" } } ] diff --git a/wwwroot/mobile_agent.ui b/wwwroot/mobile_agent.ui index f87a461..2ace543 100644 --- a/wwwroot/mobile_agent.ui +++ b/wwwroot/mobile_agent.ui @@ -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": "输入你的需求..." } }, {