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/09/12

インストール

検証済み bundle がないか、互換性チェックに失敗しています。先にリポジトリの説明を読んでください。 README 全文を読む ↗

ドキュメント

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()