chore: 保存 Agent 安全优化前基线
This commit is contained in:
1 parent
08696896f9
commit
ff016347cd
116 files changed
+3858
-2485
No files matched your search
@@ -75,6 +75,7 @@ export const mockDesktopApi: DesktopApiContract = {
|
||||
session: { id, ...updates },
|
||||
})),
|
||||
sessionDelete: vi.fn().mockResolvedValue({ success: true }),
|
||||
sessionReorder: vi.fn().mockResolvedValue({ success: true }),
|
||||
|
||||
// Settings
|
||||
settingsGet: vi.fn().mockResolvedValue({ success: true, value: undefined }),
|
||||
@@ -98,6 +99,12 @@ export const mockDesktopApi: DesktopApiContract = {
|
||||
features: [],
|
||||
}),
|
||||
licenseDeviceId: vi.fn().mockResolvedValue('test-device'),
|
||||
licenseVerify: vi.fn().mockResolvedValue({
|
||||
plan: 'free',
|
||||
deviceId: 'test-device',
|
||||
activated: false,
|
||||
features: [],
|
||||
}),
|
||||
licenseSetEmail: vi.fn().mockResolvedValue({
|
||||
plan: 'free',
|
||||
deviceId: 'test-device',
|
||||
@@ -160,9 +167,11 @@ export const mockDesktopApi: DesktopApiContract = {
|
||||
shellPath: '/bin/zsh',
|
||||
shellName: 'zsh',
|
||||
}),
|
||||
localOpenOutput: vi.fn().mockResolvedValue({ success: true, data: [] }),
|
||||
localWrite: vi.fn().mockResolvedValue({ success: true }),
|
||||
localResize: vi.fn().mockResolvedValue({ success: true }),
|
||||
localKill: vi.fn().mockResolvedValue({ success: true }),
|
||||
localKillAll: vi.fn().mockResolvedValue({ success: true, killed: 0 }),
|
||||
onLocalData: vi.fn(),
|
||||
onLocalExit: vi.fn(),
|
||||
|
||||
|
||||
Reference in new issue
Block a user