feat: 智能Agent接入前连通性/鉴权校验
- 前端技能市场「接入单个Agent」新增「测试连接」按钮,接入前必须校验通过 - 后端 POST /market/apps/verify-agent:dify 走 chat-messages 鉴权探测(trust_env=False 直连),n8n/coze 走 HEAD 可达性探测 - upload_app 对 agent 类型做服务端守卫,密钥无效/不可达直接 400 拒绝 - MarketApp 新增 platform 列(dify/n8n/coze),009 迁移幂等加列
This commit is contained in:
1 parent
b0bfba5c16
commit
d374d464e8
6 files changed
+209
-5
No files matched your search
@@ -856,6 +856,51 @@
|
||||
cursor: not-allowed;
|
||||
}
|
||||
|
||||
/* Agent 接入:连通性 / 鉴权校验 */
|
||||
.agent-verify-row {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: var(--space-sm);
|
||||
margin-bottom: var(--space-sm);
|
||||
flex-wrap: wrap;
|
||||
}
|
||||
|
||||
.form-test-btn {
|
||||
padding: var(--space-sm) var(--space-lg);
|
||||
background: transparent;
|
||||
color: var(--color-accent);
|
||||
border: 1px solid var(--color-accent);
|
||||
border-radius: var(--radius-md);
|
||||
font-size: var(--text-sm);
|
||||
font-weight: 600;
|
||||
cursor: pointer;
|
||||
transition: all var(--transition-fast);
|
||||
}
|
||||
|
||||
.form-test-btn:hover:not(:disabled) {
|
||||
background: var(--color-accent);
|
||||
color: #fff;
|
||||
}
|
||||
|
||||
.form-test-btn:disabled {
|
||||
opacity: 0.5;
|
||||
cursor: not-allowed;
|
||||
}
|
||||
|
||||
.agent-verify-msg {
|
||||
font-size: var(--text-xs);
|
||||
line-height: 1.4;
|
||||
word-break: break-all;
|
||||
}
|
||||
|
||||
.agent-verify-msg.ok {
|
||||
color: #16a34a;
|
||||
}
|
||||
|
||||
.agent-verify-msg.err {
|
||||
color: #dc2626;
|
||||
}
|
||||
|
||||
/* Audit Progress */
|
||||
.audit-progress {
|
||||
display: flex;
|
||||
|
||||
Reference in new issue
Block a user