PerryLink/dsh-phone-inbox ↗★ 0

dsh-phone-inbox

管理并导入微信桥接接收到的媒体附件 适合需要将微信收到的图片或文件快速导入工作区的用户。

包名
dsh-phone-inbox
兼容性
待验证
Harness 依赖范围
>=0.1.2-rc.1 <0.2.0 || >=0.1.5-alpha.1 <0.2.0 || >=0.1.6-0 <0.2.0 || >=0.1.7-0 <0.2.0 || >=0.2.0-0 <0.3.0 || >=0.2.1-0 <0.3.0
Cordis 依赖范围
^4.0.5-alpha.1
版本
0.1.1
许可证
NOASSERTION
最近更新
2026年10月14日

安装

$npx -p @deepseek-ai/dsh dsh plugin --profile web add github:PerryLink/dsh-phone-inbox

Configuration

Every field is optional; the table lists the default. See cordis.patch.yml for the same values with inline comments.

KeyDefaultMeaning
enabledtrueMaster switch; false mounts no service and no tools.
inboxDir"" → ~/.dsh-wechat/tempfileDirectory the bridge drops inbound media into. Empty derives the bridge's own default; set it when the bridge's storageDir was moved.
maxItems5Cap on entries inbox_list returns. The MVP contract is "the session's most recent few".
providersessionWhich registered provider answers: session (this conversation's own messages) or tempdir (session plus a scan of inboxDir).
allowTempdirScanfalseEnables the directory scan at all. Off because inboxDir is global.
tempdirScanMaxItems5Cap on entries a scan may contribute.
tempdirScanMaxAgeMs3600000Age ceiling for a scanned file; 0 disables the filter.
markerssee belowMarker wording per media kind, as RegExp sources.
defaultSubdirphone-inboxWorkspace subdirectory inbox_adopt writes into.
restoreOriginalNametrueUse the sender's recovered original name as the adopted file name.
writeChannelautoauto (fs service for text, node:fs otherwise) · fs (host fs service only) · node (bytes directly).
registerAttachmentfalseAlso register adopted bytes as a durable host attachment. Attachment objects are never garbage-collected.

The markers default wording, per media kind — each value is a RegExp source whose first capture group is the path:

  • image.path — 文件已保存到:\s*(\S+)
  • file.path — (?:文件已保存到|文件路径):\s*(\S+)
  • file.name — \[收到文件:\s*([^\]\r\n]+)\]
  • video.path — 文件已保存到:\s*(\S+)

Marker wording is a soft contract with the bridge: it writes the path into prose, and the prose can change between bridge releases without notice. The patterns are configuration precisely so a wording change is a config edit rather than a plugin release.