feat: 完善堡垒机与 Agent 智能运维能力

- 支持 Windows Agent 构建、安装脚本和统一上报协议

- 增强 RDP 剪贴板、虚拟盘和文件传输能力

- 新增 AIOps 上下文工具、告警 RCA trace 落库和回放接口

- 重构 docs 模块文档并补充终端、堡垒机、监控、AI Agent 设计
This commit is contained in:
Logan.Li committed 2026-07-05 23:49:36 +08:00
1 parent a9513c2056
commit e0d652d211
169 files changed
+12192 -9116

No files matched your search

@@ -1,3 +1,4 @@
import { useTranslation } from 'react-i18next';
import { Input } from '@/components/ui/input';
import type { Credential } from '@/components/deploy/credential-manager/types';
@@ -28,6 +29,7 @@ export function ImportCredentialSettings({
onSelectedRdpCredentialIdChange,
compact = false,
}: ImportCredentialSettingsProps) {
const { t } = useTranslation();
const labelClass = compact
? 'block text-xs font-medium text-[var(--dg-text-secondary)] mb-1'
: 'block text-sm font-medium text-[var(--dg-text-secondary)] mb-2';
@@ -40,8 +42,8 @@ export function ImportCredentialSettings({
<div className={panelClass}>
<div>
<label className={labelClass}>
SSH 端口
<span className="text-[var(--dg-text-muted)] ml-1">(Linux 默认)</span>
{t('server.importCred.sshPort')}
<span className="text-[var(--dg-text-muted)] ml-1">{t('server.importCred.linuxDefault')}</span>
</label>
<Input
type="number"
@@ -53,18 +55,18 @@ export function ImportCredentialSettings({
</div>
<div>
<label className={labelClass}>
Linux SSH 凭证
<span className="text-[var(--dg-text-muted)] ml-1">(可选)</span>
{t('server.importCred.sshCredential')}
<span className="text-[var(--dg-text-muted)] ml-1">{t('server.importCred.optional')}</span>
</label>
{sshCredentials.length === 0 ? (
<p className="text-xs text-[var(--dg-text-muted)] py-2">暂无 SSH 凭证</p>
<p className="text-xs text-[var(--dg-text-muted)] py-2">{t('server.importCred.noSshCred')}</p>
) : (
<select
value={selectedSshCredentialId}
onChange={(e) => onSelectedSshCredentialIdChange(e.target.value)}
className={`w-full px-3 py-2 ${inputBg} border border-[var(--dg-border)] rounded-md text-[var(--dg-text-primary)] text-sm`}
>
<option value="">不使用凭证</option>
<option value="">{t('server.importCred.noCredential')}</option>
{sshCredentials.map((cred) => (
<option key={cred.id} value={String(cred.id)}>
{credentialLabel(cred)}
@@ -75,18 +77,18 @@ export function ImportCredentialSettings({
</div>
<div>
<label className={labelClass}>
Windows RDP 密码
<span className="text-[var(--dg-text-muted)] ml-1">(可选)</span>
{t('server.importCred.rdpPassword')}
<span className="text-[var(--dg-text-muted)] ml-1">{t('server.importCred.optional')}</span>
</label>
{rdpCredentials.length === 0 ? (
<p className="text-xs text-[var(--dg-text-muted)] py-2">暂无 RDP 凭证</p>
<p className="text-xs text-[var(--dg-text-muted)] py-2">{t('server.importCred.noRdpCred')}</p>
) : (
<select
value={selectedRdpCredentialId}
onChange={(e) => onSelectedRdpCredentialIdChange(e.target.value)}
className={`w-full px-3 py-2 ${inputBg} border border-[var(--dg-border)] rounded-md text-[var(--dg-text-primary)] text-sm`}
>
<option value="">不使用凭证</option>
<option value="">{t('server.importCred.noCredential')}</option>
{rdpCredentials.map((cred) => (
<option key={cred.id} value={String(cred.id)}>
{credentialLabel(cred)}