dsh-imessage:为 DeepSeek Harness 增加 Photon 托管 iMessage 通道

前言

做 DeepSeek Harness(DSH)会话时,一个具体问题是:浏览器里已经有 DSH 会话,但希望把 iMessage 文本变成 DSH prompt,并把最终助手回答通过 iMessage 发回来,同时还要能控制会话和当前 turn。

DSH 的理念是「一切皆插件」。下面介绍的 dsh-imessage 面向这个场景,给 DSH 的 web profile 增加 Photon 托管 iMessage transport 和配置页。

这是什么

dsh-imessage 是一个 DSH 插件,描述为 Photon-hosted iMessage transport and configuration UI for DeepSeek Harness

它做的事情可以概括为三步:

  1. Settings → iMessage 页面完成 Photon 设备码授权。
  2. 保存一个发送方 E.164 号码,并获取一个 hosted iMessage 号码。
  3. 之后,来自该路线的 iMessage 文本会进入 DSH prompt,DSH 的最终助手回答会经 iMessage 返回。

资料中可确认的信息如下:

  • 仓库名:photon-hq/dsh-imessage
  • 许可证:MIT
  • 包版本:0.2.0
  • 初始兼容目标:DeepSeek Harness 0.1.0-rc.6
  • Spectrum:12.7.x,当前锁定 12.7.0
  • Node.js:22.19+24+

资料没有单独确认 owner 字段,这里只按仓库名陈述维护入口。

核心功能

先做通道和配置,再做消息路由。已核实的能力包括:

  • Photon-hosted iMessage transport
  • Settings → iMessage 配置页
  • Photon device-code authorization over HTTPS
  • Configure an E.164 sender number and obtain a hosted iMessage number
  • Queues inbound iMessage text as DSH prompts
  • Sends final DSH assistant answers back over iMessage
  • Provides /help, /new, /sessions, /switch, /status, /stop, /cancel, /approve, /deny, and /answer commands
  • Filters messages by platform, inbound direction, direct message, configured sender, and hosted-line route
  • Converts final answers from markdown to plain text and splits long answers
  • Stores non-secret configuration in dsh-imessage settings and one opaque credential at DSH_IMESSAGE_PHOTON_CREDENTIALS

边界也需要看清楚:

  • 只投递 final assistant answer。
  • Intermediate reasoning、tool activity 和 partial output 仍留在 DSH 中。
  • Approval delivery failure、unhealthy listener、cancellation 或 timeout 会 fail closed。

安装与启用

先安装插件,再在目标工作区启动 DSH。资料给出的安装命令是:

dsh plugin --profile web add dsh-imessage

这一步把 dsh-imessage 添加到 DSH 的 web profile 中。

接下来启动 DSH:

dsh web

这一步会启动 DSH,使刚才安装的 web profile 插件生效。

典型用法

启动后打开 Settings → iMessage,按页面卡片完成配置:

  1. 选择 Authorize
  2. 输入你准备发送消息的 E.164 号码,例如 +14155552671,然后保存。
  3. 复制或短信发给对方的 hosted iMessage 号码。

完成之后,普通文本会被入队为 DSH prompt。如果一个 prompt 本身确实以 / 开头,使用 // 前缀。例如:

//review this route

资料列出的会话与 turn 控制命令包括:

/help
/new
/sessions
/switch
/status
/stop
/cancel
/approve
/deny
/answer

这些命令用于会话和 turn 控制。如果当前已有排队或运行中的 prompt,或者存在待处理的人工交互,/new/switch 可能失败;可先使用 /stop

适用场景与注意

适合以下情况:

  • 希望把 iMessage 文本作为 DSH prompt。
  • 希望通过 iMessage 接收 DSH 的最终助手回答。
  • 需要 /new/switch/approve/deny/answer 这类会话或 turn 控制命令。
  • 不希望消息内容、原始电话号码、设备码、访问令牌或项目密钥出现在日志中。

注意事项:

  • 插件以当前 dsh 进程权限运行;安装前应检查源码、依赖和许可证。
  • 该插件许可证为 MIT。
  • 它只投递最终助手回答,不会把中间推理、工具活动或部分输出经 iMessage 发回。
  • 未授权消息会被忽略且没有回复。
  • 插件不记录 message content、raw phone numbers、device codes、access tokens 或 project secrets。
  • 自动开通会创建一个 shared Spectrum user,并禁用邀请。
  • 如果 shared capacity 不可用,设置会以 shared-line-unavailable 停止。
  • 资料说明它使用 Photon CLI compatibility 的 client_id=photon-cli,并把这个共享 client ID 视为 intentional exception。

小结

dsh-imessage 给 DSH 增加 Photon-hosted iMessage transport 和 Settings → iMessage 配置页。适合希望用 iMessage 文本触发 DSH prompt、接收最终回答,并保留会话与审批控制的使用者。

相关链接:

  • GitHub:https://github.com/photon-hq/dsh-imessage
  • 资料提供的目录页:https://www.skillhub.cn/plugins/photon-hq/dsh-imessage

社区目录是独立站点,不等于 DeepSeek / 幻方的官方应用商店。

羽毛球分组比赛记分
小程序二维码

欢迎使用《羽毛球分组比赛记分》微信小程序

小夜