Skip to content

v1.5.2 — 兼容 DSH 0.1.7-rc.2 与 SSRF 防护修复 / DSH 0.1.7-rc.2 compatibility & SSRF guard fixes

Choose a tag to compare

@InkshadeWoods InkshadeWoods released this 27 Sep 18:11
· 4 commits to master since this release

中文

  • 声明对 DSH 0.1.7-rc.2 的兼容性:已对 0.1.5-rc.2 → 0.1.7-rc.2 的宿主契约面做过完整比对(ctx.llm 适配器与路由、ctx.credentials、ctx.attachments.readImage、ctx.fs、ctx.remote.credentials RPC、webServer 路由注册、client 装配四注入点全部兼容),并在真实会话中运行验证通过。
  • 修复 SSRF 防护的两个缺陷(vision/image-source.mjs):
    • 移除 ::ffff:0:0/96 封锁规则——Node 的 BlockList 内部将所有 IPv4 地址以 IPv4-mapped 形式存储,该规则会误杀全部公网 IPv4 主机;IPv4 规则本身即可覆盖映射形式。
    • net.connect 自定义 lookup 回调改为 all: true 数组契约,并在解析结果全部命中封锁时显式回调错误——此前传单地址字符串会被 Node 静默丢弃、空结果传 undefined,均表现为 ERR_INVALID_IP_ADDRESS。
  • 附件读取错误码附带原始 message(vision/analysis-core.mjs):非 ATTACHMENT_* 故障(如 SSRF 守卫抛出的普通 Error)不再被折叠成裸 ATTACHMENT_READ_ERROR,保留稳定后缀供机器匹配的同时输出真实原因。
  • 0.1.7 新宿主能力适配说明:宿主持新增 IMAGE_OFFLOAD_REQUIRED 图片预算机制与 text-only 模型图片投影工具;桥接模型声明 image 输入能力,宿主将图片原样转发给桥接适配器,由插件转换为视觉证据文本后再转发底层模型,与宿主持机制互不冲突。GUI 模型选择器在 0.1.7 起按 catalog 成员资格过滤,插件的 listModels 会动态列出全部已启用路由的桥接模型,配置后即可正常显示与选用。

English

  • Declares compatibility with DSH 0.1.7-rc.2: the host contract surface between 0.1.5-rc.2 and 0.1.7-rc.2 was fully compared (ctx.llm adapter and routing, ctx.credentials, ctx.attachments.readImage, ctx.fs, the ctx.remote.credentials RPC, webServer route registration, and all four client injection points are compatible) and verified in a real session.
  • Fixes two SSRF-guard defects (vision/image-source.mjs):
    • The ::ffff:0:0/96 block rule was removed — Node's BlockList stores every IPv4 address internally in IPv4-mapped form, so that rule rejected every public IPv4 host; the IPv4 rules already cover the mapped form.
    • The net.connect custom lookup callback now uses the all: true array contract and reports an explicit error when every resolved address is blocked — previously a single-address string was silently dropped by Node and an empty result passed undefined, both surfacing as ERR_INVALID_IP_ADDRESS.
  • Attachment read error codes now carry the original message (vision/analysis-core.mjs): non-ATTACHMENT_* failures (e.g. the plain Error raised by the SSRF guard) are no longer collapsed into a bare ATTACHMENT_READ_ERROR; the stable suffix stays for machine matching while the real cause becomes diagnosable.
  • Notes on the new 0.1.7 host capabilities: the host adds an IMAGE_OFFLOAD_REQUIRED image-budget mechanism and text-only image projection helpers; the bridge model declares image input, so the host forwards images to the bridge adapter unchanged, where the plugin converts them into visual-evidence text before forwarding to the underlying model — no conflict with the host mechanisms. GUI model selection in 0.1.7 filters by catalog membership: the plugin's listModels dynamically lists every enabled route's bridge model, so configured bridges appear and can be selected normally.