DSH Plugins Marketplace

DSH Plugins

Plugins

/

dsh-pixluna

P

dsh-pixluna

Discovered★ 3

dsh-plugin-pixluna | Let DSH view NSFW images on its own!

Machine translated

dsh-pixluna

让 DSH 自己看涩图!

将 PixLuna 的图片获取能力移植为 DeepSeek Harness(DSH)Cordis 插件。插件不再注册聊天命令,而是注册模型可调用的工具;原命令选项均转换为具名工具参数。

工具映射

原 PixLuna commandDSH tool参数
pixlunapixluna_getnumber, source, tag, r18
pixluna.get.pixiv <pid>pixluna_get_pixivpid, pages, all
pixluna.sourcepixluna_sources无

开发

yarn install
yarn lint
yarn build

安装到 DSH profile

开发目录可直接作为带 dsh.bundle 清单的本地 profile layer 安装(web 可替换为目标 profile):

dsh plugin --profile web add dsh-pixluna

dsh plugin 会把本包加入 profile 的 dsh.profile.bundles,并自动应用包内 cordis.patch.yml。默认配置使用 lolicon 且关闭 R18;如需覆盖配置,可在该 profile 的用户 cordis.patch.yml 中按稳定 row id pixluna 覆盖整份配置:

- id: pixluna
  name: dsh-pixluna
  config:
    defaultSourceProvider:
      - lolicon
    isR18: false
    pixiv:
      phpSESSID: ''
      userId: ''

注意 DSH patch 对 config 是整项替换而非深度合并。插件声明 inject = ['tools'],Cordis 会在 @deepseek-ai/dsh-tools 服务可用后激活它。

插件同时将 Config 注册为 pixluna 用户设置命名空间,并向 DSH 自带的“设置 → 插件 → 插件配置”注册配置卡片。全部配置均可在卡片中设置;常规字段写入 DSH settings,Pixiv Cookie 和各图源 keyPairs 则参照模型 API Key 的做法写入 DSH credentials,只向浏览器返回“已配置/未配置”状态。修改会实时作用于后续工具调用。

主要配置

  • defaultSourceProvider: 默认图源数组。
  • isR18 / r18P: 是否允许 R18 及随机请求概率。
  • excludeAI: 向支持该选项的图源请求排除 AI 作品。
  • isProxy / proxyHost: 为 HTTP 请求启用代理。
  • baseUrl: Pixiv 图片反代域名,默认 i.pixiv.re。
  • maxConcurrency: 单次 pixluna_get 的并发上限,1–10。
  • apiDelay: 各请求批次之间的延迟。
  • pixiv.phpSESSID: Pixiv Discovery、Following 和按 PID 获取所需凭据。
  • 各 booru 的 keyPairs: 可选或必需的图源凭据。

与原项目的差异

  • 移除了 Koishi Context.http、消息发送、@ 用户、转发消息、自动撤回和 Koishi h 元素依赖。
  • 使用 undici 发起可取消请求,并转发 DSH ToolRunContext.signal。
  • 图片处理(翻转、混淆、压缩)未带入 DSH 工具输出;工具返回远程图片 URL,避免把大体积二进制数据写入会话日志。
  • R18 请求须同时满足插件级 isR18=true 与工具参数/概率选择。

许可证沿用原 PixLuna 的 MPL-2.0。

Comments

Loading…

Similar plugins

dsh-screenshot-diff

by PangYiMing

DSH plugin: pixel-diff two screenshots into diff.png + triptych (pixelmatch) — 像素对比工具

Manifest valid

★ 0

↓ 25/wk

MIT

Shell

Aug 14, 2026

dsh plugin --profile web add dsh-screenshot-diff

by haifeiWu

DSH plugin: local OCR and image understanding for dsh — inlined image previews in Web tool cards

Manifest valid

★ 0

TypeScript

Aug 15, 2026

dsh plugin --profile web add dsh-ocr

by LR611415

`DSH plugin to read/write Word (.docx), PDF and text files`

Manifest valid

★ 0

JavaScript

Sep 24, 2026

dsh plugin --profile web add dsh-plugin-documents

by Uersx

dsh-dashscope-tool-adapter

Manifest valid

★ 0

TypeScript

Aug 18, 2026

dsh plugin --profile web add dsh-dashscope-tool-adapter

by lionwill

DSH上下文压缩插件

Manifest valid

★ 0

MIT

TypeScript

Sep 16, 2026

dsh plugin --profile web add dsh-compactor

by Dawn388887

[DEPRECATED] DSH plugin: in-GUI file viewer/editor for remote browsers. Superseded by the built-in DSH 0.1.5+ Web sidebar file preview; last supported DSH: 0.1.2.

Manifest valid

★ 0

MIT

JavaScript

Sep 12, 2026

dsh plugin --profile web add dsh-fileview