feat: 脚本录制功能完善

This commit is contained in:
duanshuwen
2026-04-12 22:12:57 +08:00
parent 6432634d17
commit 66db6c462e
16 changed files with 262 additions and 124 deletions

5
global.d.ts vendored
View File

@@ -88,6 +88,10 @@ declare global {
params: []
return: Promise<{ success: boolean; code?: string; error?: string }>
}
[IPC_EVENTS.SCRIPT_CODEGEN]: {
params: [id: string, url?: string]
return: Promise<{ success: boolean; code?: string; error?: string }>
}
}
type TabId = string
@@ -142,6 +146,7 @@ declare global {
run: (id: string) => Promise<ScriptExecutionResult>,
startRecording: (url?: string) => Promise<{ success: boolean; code?: string; error?: string }>,
stopRecording: () => Promise<{ success: boolean; code?: string; error?: string }>,
codegen: (id: string, url?: string) => Promise<{ success: boolean; code?: string; error?: string }>,
},
}