ningbainb/deepseek-harness-desktop--packages-dsh-desktop-client491

@linxin666/dsh-desktop-client

Safe, versioned Desktop Contract client for DSH web plugins without Electron or DSH runtime internals.

AI 분석

适合需要开发或集成 DSH 网页插件的开发者。

패키지
@linxin666/dsh-desktop-client
버전
1.1.0
라이선스
BSD-3-Clause
최근 업데이트
2026. 9. 12.

설치

검증된 bundle이 없거나 호환성 검사에 실패했습니다. 먼저 저장소 설명을 읽어 주세요. 전체 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()