dsh-md-notes
github.com/XieZongChen/dsh-md-notes
v0.13.0
会话与记忆
写入文件发起网络请求
A note-taking plugin for DeepSeek Harness (DSH). It provides a full MD notes manager and MD notes editor, letting you quickly capture conversation content into notes. Notes can be maintained by syncing to a Git repository.
该插件尚未翻译,显示作者原文。
检测报告
有一定能力。命中了若干能力模式,大多是插件正常工作时会用到的。
2需留意4一般18未命中
高关注需留意一般
能力清单
- 写入文件
writes-files需留意29 处命中lib/client/features/ai-conflict.js:44void session.rename(t('conflict.sessionTitle'));lib/client.js:2484session.rename(t("conflict.sessionTitle"));lib/host/git.js:41await mkdir(dir, { recursive: true });lib/host/git.js:48await writeFile(join(dir, `${stem}.base.md`), baseContent, 'utf8');- 看写入位置。写自己的配置目录是正常的,写系统目录不是。
- 发起网络请求
network需留意10 处命中lib/client/features/api.js:37const res = await fetch(API, {lib/client.js:496return await parseResult(await fetch(API, {lib/client.js:4172* Fetch (and cache) the session workspace's notes; settles the lexicon roll.lib/client.js:4202* Fetch (and cache) the full cross-workspace list. Unlike `fetchCurrent`,- 看请求发往哪些域名。发往作者自己的后端是常见做法。
- 读取文件
reads-files一般34 处命中lib/host/context-inject.js:92notes.push({ path: abs, content: await readFile(abs, 'utf8') });lib/host/git.js:57else if (!existsSync(join(notesDir, name))) {lib/host/git.js:88const parsed = JSON.parse(readFileSync(join(repoDir, '.git', ...SYNC_STATE_PATH), 'utf8'));lib/host/git.js:99synced = JSON.parse(readFileSync(join(repoDir, '.git', ...SYNC_STATE_PATH), 'utf8')).synced ?? [];- 读文件是绝大多数插件的正常工作方式,本身不构成顾虑。
- 接触凭据或密钥
credentials一般5 处命中lib/host/http.js:42* Redact userinfo credentials embedded in a remote URLlib/host/http.js:51if (url.username === '' && url.password === '')lib/host/http.js:54url.password = '';lib/host/http.js:161// Display-only copy: never leak credentials embedded in the remote URL.- 看它读取哪些凭据、发往哪里。用于登录自己的服务是正常的。
- 动态加载模块
dynamic-import一般5 处命中lib/host/update.js:27const pkg = JSON.parse(await import('node:fs/promises').then((m) => m.readFile(pkgPath, 'utf8')));lib/types/index.d.ts:29readonly gitRepos?: Record<string, import('./host/settings.ts').RepoSettings>;…nager/hooks/useNotesManager.d.ts:15workspaces: import("../../api.ts").WorkspaceNotes[];…nager/hooks/useNotesManager.d.ts:25flash: "" | import("../../locales/index.ts").MdNotesKey;- 动态导入本身无害,但会让依赖关系难以静态审阅。
- 读取环境变量
reads-env一般3 处命中lib/host/git.js:159const home = process.env.DSH_HOME ?? join(process.env.HOME ?? '', '.dsh');lib/host/sessions-repair.js:51export function dshSessionsRoot(env = process.env) {- 环境变量里常混有密钥。看它是否把整个 env 都读走。
逐条扫描明细
| 能力 | 标识 | 关注度 | 命中次数 |
|---|---|---|---|
| 写入文件 | writes-files | 需留意 | 29 |
| 发起网络请求 | network | 需留意 | 10 |
| 读取文件 | reads-files | 一般 | 34 |
| 接触凭据或密钥 | credentials | 一般 | 5 |
| 动态加载模块 | dynamic-import | 一般 | 5 |
| 读取环境变量 | reads-env | 一般 | 3 |
这份报告的口径
扫描读的是包里的源码,全程不执行第三方代码。 本次读了 113 个文件,扫描于 2026-10-15。 命中次数只说明源码里出现过这类调用,不说明行为好坏——一个插件读写文件 500 次和 1 次 都会被记为「读取文件」。这是能力清单,不是信任评分,也不是安全结论: 没扫出来的能力可能只是写法没被规则覆盖。
依赖安全公告
已查询这个插件声明的全部依赖,没有匹配到已公开的安全公告。(含 DSH 框架包在内的 @deepseek-ai/* 不作查询——那是运行时自己的问题,不是插件的。)