yin52133/dsh-luban--packages-dsh-luban-session-share0

@yin52133/dsh-luban-session-share

Authenticated cross-host DSH session views and exclusive takeover

AI 분석

核心用途是允许在不同设备间共享和接管同一个 DSH 会话。适合多设备协同办公、需要在电脑和手机/平板间无缝切换会话的用户。需配合 auth 和 keepalive 插件。

패키지
@yin52133/dsh-luban-session-share
버전
0.1.1
라이선스
MIT
최근 업데이트
2026. 9. 1.

설치

$npx -p @deepseek-ai/dsh dsh plugin --profile web add github:yin52133/dsh-luban#fd42aad0a6c5628a3bee24796f0caba131fb0252&path:packages/dsh-luban-session-share

Configuration

- insert:
    - id: luban-session-share
      name: @yin52133/dsh-luban-session-share
      config:
        host: auto
        ownerUser: owner
        takeoverTimeoutSec: 120
        peerRefreshSec: 10
        requestTimeoutSec: 10
        replayLimit: 256
        peers:
          - name: win-debug
            baseUrl: http://win-debug.lan:42600
            credentialEnv: LUBAN_SESSION_SHARE_WIN_COOKIE

Set LUBAN_SESSION_SHARE_WIN_COOKIE in the host service environment to the current M01 login Cookie. The account must be the same on both hosts. A different account does not receive an observation view.

ownerUser is a compatibility default for existing single-account profiles. New session ownership comes from the M01 account/session registry.

Session IDs must be globally unique across configured hosts. A cross-origin collision is reported as session-id-collision; the existing registry entry is preserved and no control operation is routed through the conflicting peer.