chu557/douyin-plugin-dsh-plugin

在使用dsh等待的过程中刷抖音

Project Overview项目介绍

This is a command plugin built exclusively for DeepSeek Harness (DSH), which adds a new global /douyin command to the DSH web client environment. Once installed, the command can be accessed either by typing /douyin directly into any DSH session input box or selecting it from DSH’s built-in / command menu. Triggering the command will immediately open the official web version of Douyin in the user’s default system browser, no additional user steps or waiting for model response rounds are required to complete the action.

The plugin registers itself as a host-side command using DSH’s ctx.commands interface from the official @deepseek-ai/dsh-commands package. It automatically shows up in the command menu of the DSH web client with no extra configuration needed after proper installation. It leverages DSH’s native runNativeCommand utility to open the URL via system-native calls, so it works correctly across all major desktop operating systems, including Windows, macOS, and Linux. It does not accept any input arguments, and will return a clear usage prompt if users accidentally pass extra parameters.

The standard installation method requires copying the plugin directory directly into the profiles/node_modules folder of your local DSH installation, then adding a plugin entry to the cordis.patch.yml configuration file for the DSH web profile. After making these changes, you must restart the DSH web service for the plugin to load, because DSH does not support hot loading of new plugin bundles while running. There is an alternative installation method using the official dsh plugin add command, but this can sometimes cause ESM module resolution errors, so the manual copy method is recommended. The plugin is released under the open source MIT license, with no usage costs or extra third-party dependencies.

这是一个专为DeepSeek Harness(DSH)开发的原生插件,为DSH新增了/douyin全局命令。安装完成后,用户可以在任意会话输入框中输入/douyin,或是从DSH的/命令菜单中选中该命令,执行后就会自动在默认浏览器中打开抖音网页版,整个过程不需要等待模型生成响应回合,使用非常直接便捷。

该插件通过DSH的ctx.commands接口注册全局命令,可被DSH Web客户端的/命令菜单自动发现。它调用系统原生接口打开浏览器链接,同时支持Windows、macOS和Linux三大桌面平台,不接受任何输入参数,如果传入参数会返回用法提示。它适合需要在DSH会话中快速打开抖音网页版的用户使用。

安装需要将插件目录复制到DSH的profiles/node_modules目录下,再修改DSH Web配置文件cordis.patch.yml添加插件条目,之后必须重启DSH Web服务才能生效。也可以使用dsh plugin add命令安装,但可能会遇到ESM模块解析问题。该插件采用MIT许可证开源,无使用成本,没有额外的第三方依赖需求。

Pre-install check安装前体检Compatibility · Security兼容性 · 安全性 1 warning1 项注意
  • Only 3 stars - very few users, little community feedback星标只有 3,几乎没人在用,遇到问题缺少社区反馈
DSH walks through these 9 checksDSH 会逐条核对这 9 项

Compatibility兼容性

  • DSH, Node, OS and profile requirementsDSH 版本 / Node 版本 / 操作系统 / profile 是否满足要求
  • External dependencies and runtimes (Electron / Python / Docker, ...)外部依赖与运行时(Electron / Python / Docker 等)是否齐备
  • Conflicts with installed plugins: command names, skill / tool names, ports, duplicate MCP registration与已装插件是否冲突:命令名、skill / tool 重名、端口占用、重复 MCP 注册

Security安全性

  • Repo matches the facts registered here; archived or abandoned?仓库是否与页面登记一致,是否归档或长期停更
  • Safety of preinstall / install / postinstall and install.sh / setup.ps1preinstall / install / postinstall 与 install.sh、setup.ps1 是否安全
  • curl|bash, download-then-execute, obfuscation, unrelated domains → stop immediatelycurl|bash、下载即执行、混淆代码、无关域名 → 立刻停止
  • Typosquatting or unmaintained packages among the new dependencies新增依赖里有没有 typosquatting 或无人维护的包
  • Requested permissions vs. what the feature actually needs申请了哪些权限、是否超出功能所需(filesystem / network / shell / clipboard)
  • Any sudo / admin requirement, plus uninstall and rollback是否要求 sudo / 管理员权限,以及卸载与回滚方式

Anything uncertain must be marked unknown with a note on how to confirm it. This site's signal screen is a static snapshot, not a security audit.拿不准的必须标「未知」并说明要我怎么确认。本站的信号筛查是静态快照,不能替代安全审计。

Or use CLI install (for developers)或使用命令行安装(适合开发者)

CLI Install命令行安装

dsh plugin --profile web add github:chu557/douyin-plugin-dsh-plugin

把 chu557/douyin-plugin-dsh-plugin 加入你的 DSH 配置(web profile)即可启用。

READMEREADME

dsh-command-douyin

DSH 插件:注册 /douyin 命令,在默认浏览器中打开网页版抖音(https://www.douyin.com/?recommend=1)。

在任意会话输入框输入 /douyin 并回车(或在 / 菜单中选择),命令直接执行、无需模型回合,浏览器会自动打开抖音网页版。

工作原理

  • 宿主端命令插件:通过 ctx.commands(@deepseek-ai/dsh-commands)注册全局命令,Web 客户端的 / 菜单自动发现。
  • 打开浏览器使用 @deepseek-ai/dsh-native-command 的 runNativeCommand(无 shell 的 execFile):
    • Windows:rundll32 url.dll,FileProtocolHandler <url>
    • macOS:open <url>
    • Linux:xdg-open <url>
  • 无参数;带参数返回 Usage: /douyin (no arguments)。

安装(web profile)

  1. 把本插件包以真实目录复制到共享 node_modules(Node ESM 会按真实路径解析依赖,junction/符号链接会导致 @deepseek-ai/dsh-native-command 解析失败):

    Copy-Item -Recurse -Force "<本目录>" "$env:DSH_HOME\profiles\node_modules\dsh-command-douyin"
    
  2. 在 $env:DSH_HOME\profiles\web\cordis.patch.yml 中加入:

    - insert:
        - id: command-douyin
          name: 'dsh-command-douyin'
    
  3. 重启 dsh web(补丁层在启动时合成;运行中的实例不会热挂载新 bundle/补丁行)。

  4. 验证:

    dsh --profile web --dump-config   # 树中应出现 id: command-douyin 一行
    

    启动后在输入框输入 /douyin 并回车即可。

备选:正式 bundle 安装(需要 pnpm 可用,且同样需重启)

dsh plugin --profile web add link:<本目录的绝对路径>

该命令会在 profile 的 package.json 中登记依赖并把 dsh-command-douyin 追加进 dsh.profile.bundles。注意:link: 依赖经 pnpm 安装为链接形式,同样存在 ESM 按真实路径解析的问题;如遇加载失败,改用上面的真实目录复制方式。

← 上一个 Prev dsh-notebooks 下一个 Next deepseek-harness-tui →