dsh-tavern-stages
github.com/ai4rpg/tavern-stages
v0.1.0
界面与主题
可执行外部程序写入文件
将 tavern-cards 的三套 skill 工作流接入独立 `@ai4rpg/dsh-stage-switch` 插件的 DSH 插件。设计决策记录见 docs/DESIGN.zh.md。
作者原文(英文)
DSH plugin that brings tavern-design, tavern-cards, and tavern-ui workflows into dsh-stage-switch stages
中文简介由 DeepSeek 模型翻译,仅供参考。
检测报告
关注度高。命中了不少能力模式,其中可能有需要留意的。逐条看下面的清单。
1高关注1需留意3一般19未命中
高关注需留意一般
能力清单
- 可执行外部程序
spawns-processes高关注2 处命中lib/forge.js:13import { spawn } from 'node:child_process';src/forge.ts:16import { spawn } from 'node:child_process'- 看它调用哪些程序。调用本机已有的工具是常见做法。
- 写入文件
writes-files需留意2 处命中scripts/prompts.mjs:123writeFileSync(promptsJsonPath(repoRoot), `${JSON.stringify(prompts, null, 2)}\n`)scripts/sync-prompts.mjs:88writeFileSync(file, body)- 看写入位置。写自己的配置目录是正常的,写系统目录不是。
- 读取文件
reads-files一般9 处命中lib/forge.js:30const packageJson = JSON.parse(readFileSync(packagePath, 'utf8'));lib/prompts.js:46const overlay = JSON.parse(readFileSync(candidate, 'utf8'));lib/subagents.js:135entries = await readdir(agentsDir, { withFileTypes: true });lib/subagents.js:146const text = await readFile(join(agentsDir, entry.name), 'utf8');- 读文件是绝大多数插件的正常工作方式,本身不构成顾虑。
- 动态加载模块
dynamic-import一般5 处命中lib/subagents.js:61* **optional peer dependencies**. They are loaded with a dynamic `import()`lib/subagents.js:291* service. The subagent packages are loaded with a dynamic `import()` so alib/subagents.js:318({ startInProcessRun } = await import('@deepseek-ai/dsh-subagent-in-process-driver'));src/subagents.ts:61* **optional peer dependencies**. They are loaded with a dynamic `import()`- 动态导入本身无害,但会让依赖关系难以静态审阅。
- 读取环境变量
reads-env一般4 处命中lib/forge.js:24const configured = process.env.TAVERN_CARDS_FORGE_CLI;lib/subagents.js:92const override = process.env.TAVERN_AGENTS_ROOT;src/forge.ts:48const configured = process.env.TAVERN_CARDS_FORGE_CLIsrc/subagents.ts:131const override = process.env.TAVERN_AGENTS_ROOT- 环境变量里常混有密钥。看它是否把整个 env 都读走。
逐条扫描明细
| 能力 | 标识 | 关注度 | 命中次数 |
|---|---|---|---|
| 可执行外部程序 | spawns-processes | 高关注 | 2 |
| 写入文件 | writes-files | 需留意 | 2 |
| 读取文件 | reads-files | 一般 | 9 |
| 动态加载模块 | dynamic-import | 一般 | 5 |
| 读取环境变量 | reads-env | 一般 | 4 |
这份报告的口径
扫描读的是包里的源码,全程不执行第三方代码。 本次读了 41 个文件,扫描于 2026-10-14。 命中次数只说明源码里出现过这类调用,不说明行为好坏——一个插件读写文件 500 次和 1 次 都会被记为「读取文件」。这是能力清单,不是信任评分,也不是安全结论: 没扫出来的能力可能只是写法没被规则覆盖。
依赖安全公告
这个插件声明的依赖中,有 2 条已公开的安全公告 (最高等级:中):
| 等级 | 依赖包 | 编号 | 摘要 |
|---|---|---|---|
| 中 | yaml | CVE-2023-2251 | Uncaught Exception in yaml 修复版本:2.2.2 详情 → |
| 低 | yaml | CVE-2026-33532 | yaml is vulnerable to Stack Overflow via deeply nested YAML collections 修复版本:1.10.3, 2.8.3 详情 → |
查询的是依赖声明范围的下界(如 ^4.2.0 查 4.2.0),
不是实际安装到的版本。真正装的时候如果解析到了修复版本,就不受影响——
所以这是「可能受影响」,不是「这个插件有漏洞」。数据来自
OSV.dev。