Deliay/dsh-header-masq ↗★ 0

dsh-header-masq

DeepSeek Harness 0.2.1-rc.2 plugin that exposes a stable per-session id as x-opencode-session (and other harness headers), including custom pi-ai providers.

패키지
dsh-header-masq
호환성
미검증
Harness peer 범위
>=0.2.1-rc.2 <0.3.0
버전
0.2.1
라이선스
MIT
최근 업데이트
2026. 10. 26.

설치

$npx -p @deepseek-ai/dsh dsh plugin --profile web add github:Deliay/dsh-header-masq

配置

配置位于插件插入的行 header-masq(见 cordis.patch.yml),全部可选:

键默认值说明
sourcex-deepseek-harness-session-id没有活动 sessionId 时读取的请求头
targets[x-opencode-session]要写入的请求头列表
fallbackToSessionIdtrue使用 llm/stream 的 sessionId 作为固定规范值
hosts[]可选的目标主机白名单;空表示所有主机
debugfalse每次应用映射时写一条 info 日志

例如只对 OpenCode Go 主机生效,并同时写多个头:

- insert:
    - id: header-masq
      name: dsh-header-masq
      config:
        source: x-deepseek-harness-session-id
        targets:
          - x-opencode-session
          - x-session-affinity
        fallbackToSessionId: true
        hosts:
          - opencode.ai
        debug: true