feat: release OpsXShell 2.1.1

This commit is contained in:
Logan.Li committed 2026-07-31 01:37:01 +08:00
1 parent a3dba0c6ed
commit 494ef6b9d0
37 files changed
+2039 -370

No files matched your search

+5 -2
View File
@@ -21,7 +21,7 @@ export const mockDesktopApi: DesktopApiContract = {
// SSH
sshConnect: vi.fn().mockResolvedValue({ success: true, connectionId: 'test-conn-1' }),
sshDisconnect: vi.fn().mockResolvedValue({ success: true }),
sshExec: vi.fn().mockResolvedValue({ success: true, stdout: '', stderr: '' }),
sshExec: vi.fn().mockResolvedValue({ success: true, result: '', exitCode: 0 }),
sshKeepalive: vi.fn().mockResolvedValue({ success: true }),
sshCreateShell: vi.fn().mockResolvedValue({ success: true, shellId: 'test-shell-1' }),
sshShellWrite: vi.fn().mockResolvedValue({ success: true }),
@@ -67,7 +67,9 @@ export const mockDesktopApi: DesktopApiContract = {
aiProviderDeleteKey: vi.fn().mockResolvedValue({ success: true }),
aiListModels: vi.fn().mockResolvedValue({ success: true, models: [] }),
aiComplete: vi.fn().mockResolvedValue({ success: true, text: '建议', model: 'test-model', redactedCount: 0 }),
aiTestProvider: vi.fn().mockResolvedValue({ success: true, status: 200, model: 'test-model', latencyMs: 88, answer: 'OK' }),
aiTestProvider: vi
.fn()
.mockResolvedValue({ success: true, status: 200, model: 'test-model', latencyMs: 88, answer: 'OK' }),
aiCatalogFetch: vi.fn().mockResolvedValue({ success: false, documents: [], errors: ['offline'] }),
// Dialog
@@ -113,6 +115,7 @@ export const mockDesktopApi: DesktopApiContract = {
// Event listeners
onShellData: vi.fn(),
onShellClosed: vi.fn(),
onConnectionClosed: vi.fn(),
onHostKeyPrompt: vi.fn(),
onMenuNewSession: vi.fn(),