feat: add device sharing metadata application

This commit is contained in:
mesalogo
2026-10-01 01:31:44 +08:00
parent 0a02a17cb6
commit a3b41bf2b1
28 changed files with 853 additions and 33 deletions
+8
View File
@@ -808,6 +808,14 @@ const desktopApi: DesktopApi = {
act: (input) => ipcRenderer.invoke(ipcChannels.localInferenceAct, input),
cancel: (taskId) => ipcRenderer.invoke(ipcChannels.localInferenceCancel, { taskId })
},
sharing: {
getSettings: () => ipcRenderer.invoke(ipcChannels.sharingSettingsGet),
saveSettings: input => ipcRenderer.invoke(ipcChannels.sharingSettingsSave, input),
registerDevice: () => ipcRenderer.invoke(ipcChannels.sharingRegister),
getCatalog: () => ipcRenderer.invoke(ipcChannels.sharingCatalog),
publish: input => ipcRenderer.invoke(ipcChannels.sharingPublish, input),
revoke: id => ipcRenderer.invoke(ipcChannels.sharingRevoke, id)
},
speechModels: {
getSnapshot: () =>
ipcRenderer.invoke(