feat: enhance session sync and add voice input feature
- 增强会话同步:确保所有会话完全同步到新账号 - 强制更新 model_provider 字段 - 添加 session_index.jsonl 重建功能 - 确保数据库 UPSERT 逻辑正确处理所有情况 - 新增语音输入功能(voice_cdp.js, voice_inject.js) - 测试脚本和增强模块 Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -90,6 +90,17 @@ contextBridge.exposeInMainWorld("api", {
|
||||
ipcRenderer.on("canvas-progress", h);
|
||||
return () => ipcRenderer.removeListener("canvas-progress", h);
|
||||
},
|
||||
// —— Codex 语音输入注入(CDP 连 Codex,注入麦克风按钮)——
|
||||
voiceStatus: () => ipcRenderer.invoke("voice-status"),
|
||||
voiceConnect: (opts) => ipcRenderer.invoke("voice-connect", opts || {}),
|
||||
voiceDisconnect: () => ipcRenderer.invoke("voice-disconnect"),
|
||||
voiceSttInfo: () => ipcRenderer.invoke("voice-stt-info"),
|
||||
voiceProbeStt: () => ipcRenderer.invoke("voice-probe-stt"),
|
||||
onVoiceStatus: (cb) => {
|
||||
const h = (_e, s) => cb(s);
|
||||
ipcRenderer.on("voice-status", h);
|
||||
return () => ipcRenderer.removeListener("voice-status", h);
|
||||
},
|
||||
// —— 全局 / 系统代理 ——
|
||||
proxyStatus: () => ipcRenderer.invoke("proxy-status"),
|
||||
proxyGetConfig: () => ipcRenderer.invoke("proxy-get-config"),
|
||||
|
||||
Reference in New Issue
Block a user