浏览全部

工具与效率 · v0.2.1

dsh-oil-creator

github.com/oil-oil/dsh-oil-creator

能力可执行外部程序以 shell 执行命令写入文件

AI-assisted local creator workbench for DeepSeek Harness

该插件尚未翻译,显示作者原文。

deepseek-harnesscreatorcontent-workflowvideo
仅 GitHub
认证 L1已扫描 ✓健康 D/68星 —
13 项能力
许可
MIT

安装命令

dsh plugin --profile web add git+https://github.com/oil-oil/dsh-oil-creator

实测:这条命令在隔离环境里没装上(包自身的构建失败)。安装前先看这个仓库的构建要求。

检测报告

关注度高。命中了不少能力模式,其中可能有需要留意的。逐条看下面的清单。
2高关注6需留意5一般11未命中
高关注需留意一般

能力清单

  • 可执行外部程序spawns-processes高关注11 处命中
    • lib/index.js:6import { execFileSync, spawn, spawnSync } from "node:child_process";
    • scripts/check-release.mjs:2import { execFileSync } from "node:child_process";
    • src/collectEgo.ts:1import { spawn } from "node:child_process";
    • src/processAlive.ts:1import { execFileSync } from "node:child_process";
    • 看它调用哪些程序。调用本机已有的工具是常见做法。
  • 以 shell 执行命令shell-exec高关注9 处命中
    • lib/index.js:1177const command = execFileSync("ps", [
    • scripts/check-release.mjs:54return execFileSync("git", args, {
    • scripts/check-release.mjs:62execFileSync(command, args, {
    • scripts/check-release.mjs:193output = execFileSync(
    • 看命令字符串是拼出来的还是写死的。拼接用户输入才是真正的风险。
  • 写入文件writes-files需留意181 处命中
    • docs/market-selftest.md:27目录丢失恢复未通过:将已经确认的测试资料目录暂时移走,切到新会话,再从侧栏打开旧的内容工作台会话,原路径被重建为同名空目录。资料目录已在测试后还原。插件的 getContent / restoreSessionContent 不创建目录;已…
    • lib/index.js:701await mkdir(folderPath);
    • lib/index.js:931await unlink(path).catch(() => void 0);
    • lib/index.js:935await writeFile(path, body, "utf8");
    • 看写入位置。写自己的配置目录是正常的,写系统目录不是。
  • 可终止进程kills-processes需留意14 处命中
    • lib/index.js:1168process.kill(pid, 0);
    • lib/index.js:1212process.kill(pid, "SIGTERM");
    • lib/index.js:1217process.kill(pid, "SIGKILL");
    • lib/index.js:2146process.kill(pid, 0);
    • 看它终止的是自己启动的进程,还是按名字匹配到的任意进程。
  • 发起网络请求network需留意8 处命中
    • lib/collect-publish.mjs:327const payload = await pageJson(`fetch("/janus/douyin/creator/pc/work_list?status=0&count=20&max_cursor=${cursor}&scene=s…
    • lib/collect-publish.mjs:388const payload = await pageJson(`fetch("/x/web/archives?status=pubed&pn=${pn}&ps=30&coop=1&interactive=1", {
    • lib/collect-publish.mjs:405const payload = await pageJson(`fetch("/cgi-bin/mmfinderassistant-bin/post/post_list", {
    • lib/index.js:1417const response = await fetch(url, { signal });
    • 看请求发往哪些域名。发往作者自己的后端是常见做法。
  • 动态执行代码dynamic-code需留意1 处命中
    • lib/client.js:136new Function("");
    • 看 eval / new Function 的入参来自哪里。常量字符串和用户输入是两回事。
  • 运行时改写自身配置modifies-own-manifest需留意1 处命中
    • tests/catalog.test.ts:249await writeFile(join(folder, "publish-package.json"), JSON.stringify({
    • 运行时改写自身配置会让下次启动的行为和你看过的源码不一致。
  • 安装时执行脚本install-scripts需留意1 处命中
    • 安装脚本:prepare
  • 读取文件reads-files一般83 处命中
    • lib/index.js:62return skillDirCandidates(skillName).find((candidate) => existsSync(candidate)) ?? skillDirCandidates(skillName)[0];
    • lib/index.js:665const name = pickAutoPublishName(names ?? await readdir(folderPath).catch(() => []));
    • lib/index.js:668return publishFromAutoPublish(JSON.parse(await readFile(join(folderPath, name), "utf8")));
    • lib/index.js:787return JSON.parse(await readFile(path, "utf8"));
    • 读文件是绝大多数插件的正常工作方式,本身不构成顾虑。
  • 读取环境变量reads-env一般42 处命中
    • lib/collect-publish.mjs:15const value = process.env[name];
    • lib/collect-publish.mjs:23typeof OIL_COLLECT_PLATFORMS === "string" ? OIL_COLLECT_PLATFORMS : (process.env.OIL_COLLECT_PLATFORMS ?? ""),
    • lib/collect-publish.mjs:42typeof OIL_COLLECT_TARGETS !== "undefined" ? OIL_COLLECT_TARGETS : process.env.OIL_COLLECT_TARGETS,
    • lib/index.js:1129function extraBinDirs(platform, home = homedir(), env = process.env) {
    • 环境变量里常混有密钥。看它是否把整个 env 都读走。
  • 接触凭据或密钥credentials一般14 处命中
    • docs/implementation.md:64业务设置位于工作台内,仍通过同一个 Remote 保存到 overlay。Host Settings 使用当前 `configure({ auto: false })`,不注册旧设置卡槽。凭据调用当前 `remote.credentials…
    • lib/client.js:5939const value = ctx.get("remote.credentials");
    • lib/client.js:7857const described = response.result.value.credentials;
    • src/client/credentialsApi.ts:63const value = ctx.get("remote.credentials") as {
    • 看它读取哪些凭据、发往哪里。用于登录自己的服务是正常的。
  • 动态加载模块dynamic-import一般7 处命中
    • tests/catalog.test.ts:374const { utimes } = await import("node:fs/promises");
    • tests/libraryWatch.test.ts:54const watchFileSystem = vi.fn(() => watcher) as unknown as typeof import("node:fs").watch;
    • tests/libraryWatch.test.ts:79}) as unknown as typeof import("node:fs").watch;
    • tests/service.test.ts:32const actual = await importOriginal<typeof import("../src/collectEgo.ts")>();
    • 动态导入本身无害,但会让依赖关系难以静态审阅。
  • 使用 vm 模块做隔离uses-vm-module一般1 处命中
    • tests/clientApply.test.ts:2import { runInNewContext } from "node:vm";
    • 用 node:vm 是在建立隔离,不是在突破它。本身不是顾虑,但值得知道这个插件会执行动态代码。
逐条扫描明细
能力标识关注度命中次数
可执行外部程序spawns-processes高关注11
以 shell 执行命令shell-exec高关注9
写入文件writes-files需留意181
可终止进程kills-processes需留意14
发起网络请求network需留意8
动态执行代码dynamic-code需留意1
运行时改写自身配置modifies-own-manifest需留意1
安装时执行脚本install-scripts需留意1
读取文件reads-files一般83
读取环境变量reads-env一般42
接触凭据或密钥credentials一般14
动态加载模块dynamic-import一般7
使用 vm 模块做隔离uses-vm-module一般1

这份报告的口径

扫描读的是包里的源码,全程不执行第三方代码。 本次读了 114 个文件,扫描于 2026-10-22。 命中次数只说明源码里出现过这类调用,不说明行为好坏——一个插件读写文件 500 次和 1 次 都会被记为「读取文件」。这是能力清单,不是信任评分,也不是安全结论: 没扫出来的能力可能只是写法没被规则覆盖。

可信度

这个插件只在 GitHub 上发布,没有走过 npm 的分发链路。下面的梯子按 GitHub 通道的证据计算:补丁审计、钉在 commit 上的源码快照、隔离试装;L2 的「宿主启动」这一层还没有对 git 通道跑过,所以等级停在 L1。

68 健康分 D 扣分项下方逐条附证据
  • -20隔离环境装不上fail:C:\Users\A01\AppData\Local\Temp\dsh-l2-home-w0-6836-1792673219\profiles\l2probe\.plugin-manager\logs\operation-SZeSnE\pnpm.log dsh: git-hosted plugins build on
  • -10声明与实物不符:client-present-undeclaredmajor:['lib/client.js', 'src/client/ContentInspector.css', 'src/client/ContentInspector.tsx', 'src/client/CoverThumb.tsx']
  • -2没有 READMEminor

认证等级 L1

  • L0静态结构与契约✓源码快照钉在 commit 58bd30d0,补丁与入口齐备,另有 1 项声明不一致(计入健康扣分)
  • L1配置组合与依赖图✓跨包无 entry id 冲突,插入模块可解析,目录内 peer 满足
  • L2隔离沙箱冒烟—试装未通过(install-failed)
  • L3运行时健康监控—未抽样(本层是抽样检测:没有会话不等于干净)
评分口径与作者信息

从 100 分开始按规则扣减:fail −20 / major −10 / warn −5 / minor −2;star 数、下载量、LLM 输出都不参与评分

维护者
—
仓库
https://github.com/oil-oil/dsh-oil-creator
许可
MIT
最后发布
—
周下载
—
star
—

扫描状态:已扫描。能力是事实,不是缺陷; 周下载与 star 只作参考,不参与评分。

认证等级只回答四件事:包本身是否完整可解析(L0)、能不能与别的插件组合(L1)、隔离环境里装不装得上并起得来(L2)、抽样运行时有没有异常(L3)。依赖漏洞、仓库存活、下载量都不参与评级,只作为独立信号标注。可信 ≠ 无漏洞,上架 ≠ 推荐。

DSH peer 依赖14 个cordisdsh-api-remotesdsh-attachmentdsh-client-connectiondsh-client-localedsh-client-ui-conversationdsh-client-ui-primitivesdsh-client-ui-slotsdsh-client-ui-workspacedsh-jobsdsh-settingsdsh-tool-jobs等 14 个均为 @deepseek-ai/ 下的包
Node 要求>=22.19.0
第三方依赖0 个(纯自包含)
依赖安全公告已查询全部依赖,没有匹配到已公开的安全公告(含 DSH 框架包在内的 @deepseek-ai/* 不作查询——那是运行时自己的问题,不是插件的。)

元数据

主页https://github.com/oil-oil/dsh-oil-creator#readme

返回首页