chore: 保存 Agent 安全优化前基线

This commit is contained in:
Logan.Li committed 2026-09-02 23:31:38 +08:00
1 parent 08696896f9
commit ff016347cd
116 files changed
+3858 -2485

No files matched your search

+5
View File
@@ -8,6 +8,11 @@ vi.mock('@tauri-apps/api/event', () => ({
listen: listenMock,
}))
// Subscription tests exercise the Tauri path; production no-ops outside Tauri.
vi.mock('../../src/platform/runtime', () => ({
isTauriRuntime: () => true,
}))
import { desktopApi } from '../../src/platform/desktop'
function deferred<T>() {