chore: checkpoint 第一版
ci / verify (push) Canceled after 0s

This commit is contained in:
Codex Local
2026-09-06 17:04:11 +08:00
parent a8cdec98d1
commit 0c2151ace9
659 changed files with 185855 additions and 554 deletions
@@ -5,8 +5,23 @@ contextBridge.exposeInMainWorld("deviceSimulator", {
configure: (input) => ipcRenderer.invoke("sim:configure", input),
probe: () => ipcRenderer.invoke("sim:probe"),
probeRTCNetwork: () => ipcRenderer.invoke("sim:probe-rtc-network"),
probeHardwareNetwork: () => ipcRenderer.invoke("sim:probe-hardware-network"),
getHardwareRuntimeDefaults: () => ipcRenderer.invoke("sim:get-hardware-runtime-defaults"),
configureHardware: (input) => ipcRenderer.invoke("sim:configure-hardware", input),
getAutomationAudio: () => ipcRenderer.invoke("sim:get-automation-audio"),
createConversation: () => ipcRenderer.invoke("sim:create-conversation"),
createHardwareAgentSession: () => ipcRenderer.invoke("sim:create-hardware-agent-session"),
connectHardwareAgent: (input) => ipcRenderer.invoke("sim:connect-hardware-agent", input),
sendHardwareAgentAudio: (bytes) => ipcRenderer.send("sim:hardware-agent-audio", bytes),
sendHardwareAgentText: (input) => ipcRenderer.invoke("sim:hardware-agent-text", input),
closeHardwareAgent: (input) => ipcRenderer.invoke("sim:close-hardware-agent", input),
onHardwareProviderEvent: (callback) => {
const listener = (_event, value) => callback(value);
ipcRenderer.on("sim:hardware-provider-event", listener);
return () => ipcRenderer.removeListener("sim:hardware-provider-event", listener);
},
saveHardwareReport: (report) => ipcRenderer.invoke("sim:save-hardware-report", report),
hardwareAgentEvent: (input) => ipcRenderer.invoke("sim:hardware-agent-event", input),
activateConversation: (input) => ipcRenderer.invoke("sim:activate-conversation", input),
getConversation: (conversationID) => ipcRenderer.invoke("sim:get-conversation", conversationID),
heartbeat: (input) => ipcRenderer.invoke("sim:heartbeat", input),