DeepSeek Harness Tauri 桌面版 | Only 8mb installer, zero environment setup, preset plugins, Windows / macOS / Linux.
import type { ClientContext } from 'dsh-tauri/client'
import { defineRegister } from 'dsh-tauri/client'
import { RemoteSection } from '../components/remote-section'
import { SETTINGS_SECTION_ID, SETTINGS_SECTION_ORDER, SETTINGS_SECTION_SLOT } from '../constants/index'
import { locale } from '../locales/index'
import { loadRole } from '../service/machines'
export const sectionFeature = defineRegister<ClientContext>((controller, ctx) => {
void loadRole().then((role) => {
if (controller.isDisposed() || role?.remote !== false)
return
controller.add(ctx.slots.inject(SETTINGS_SECTION_SLOT as never, () => ctx.slots.register({
name: SETTINGS_SECTION_SLOT,
id: SETTINGS_SECTION_ID,
order: SETTINGS_SECTION_ORDER,
label: () => locale.text('nav'),
locale: locale.NS,
} as never, RemoteSection as never)))
})
})