ningbainb/deepseek-harness-desktop--packages-dsh-desktop-client ↗★ 491
@linxin666/dsh-desktop-client
Safe, versioned Desktop Contract client for DSH web plugins without Electron or DSH runtime internals.
AI Analysis
适合需要开发或集成 DSH 网页插件的开发者。
Install
This plugin has no verified bundle, or compatibility checks failed. Read the repository notes first. Read the full README ↗
README
Read the full README ↗Configuration
No configuration or Desktop-only import is required.
import {
getDockEntryState,
hasCapability,
openDesktopSurface,
openWorkspaceFile,
showNotification,
subscribeDeepLinks,
taskDeepLink,
} from '@linxin666/dsh-desktop-client'
const dock = await getDockEntryState()
if (dock.available) {
await openDesktopSurface('extensions')
}
if (await hasCapability('notifications.show')) {
await showNotification({
category: 'task',
id: 'task:example:complete',
title: 'Task complete',
body: 'The example task completed.',
deepLink: taskDeepLink('example'),
})
}
if (await hasCapability('workspace-files.open')) {
await openWorkspaceFile({ root: workspaceRoot, path: 'reports/result.md' })
}
const dispose = subscribeDeepLinks((link) => console.info('Desktop route', link))
// Dispose when the plugin unloads.
dispose()