界面与主题 · v0.30.65
dsh-tiddlywiki
给 DSH 装一个你自己的知识库:你在界面里读、写、记日记,Agent 用同一批笔记干活。
作者原文(英文)
把 TiddlyWiki 5 变成你和 Agent 共用的本地文档中心(纯文本 + git):你在 DSH 界面里阅读、写作、记日记,Agent 用 16 个 tiddlywiki_* 工具读写同一批笔记;每条笔记都是你能读、能改、能审计、能随时带走的文件——不是自动记忆插件,不做后台抓取。可选一键发布到微信公众号草稿箱。 Turn TiddlyWiki 5 into a document center you and your agent share, in plain text under git —
简介取自插件自己的 README 原文。
安装命令
dsh plugin --profile web add dsh-tiddlywiki@0.30.65
已试装 · 层已挂载
已在一个隔离的 profile 里真装过:包能装上,并且插件层挂载成功。这一条是实测结果,不是作者的声明。
检测报告
能力清单
- 可执行外部程序
spawns-processes高关注5 处命中…chat/install-wechat-adapters.mjs:20import { execFileSync, execSync } from 'node:child_process'src/host/git.ts:29import { execFile } from 'node:child_process'…/host/wechat-publish-contract.ts:18import { spawn as nodeSpawn, type ChildProcess } from 'node:child_process'src/host/wechat-publish.ts:38import { spawn as nodeSpawn, spawnSync, type ChildProcess } from 'node:child_process'- 看它调用哪些程序。调用本机已有的工具是常见做法。
- 以 shell 执行命令
shell-exec高关注3 处命中…chat/install-wechat-adapters.mjs:38execSync(`${process.platform === 'win32' ? 'where' : 'which'} ${cmd}`, {…chat/install-wechat-adapters.mjs:51* ⚠️ Windows 上 `opencli` 是 `.cmd`/`.ps1` 包装脚本,Node 的 `execFileSync('opencli')`…chat/install-wechat-adapters.mjs:56return execSync(`opencli ${args}`, { encoding: 'utf-8', stdio: 'pipe' })src/host/wiki.ts:175const out = execFileSync(probe, ['node'], { encoding: 'utf8', windowsHide: true, timeout: 5_000 })- 看命令字符串是拼出来的还是写死的。拼接用户输入才是真正的风险。
- 发起网络请求
network需留意46 处命中tools/wechat/publish-note-imgs.js:61resp = await fetch(url, {tools/wechat/publish-note-imgs.js:82const resp = await fetch(url);tools/wechat/publish-note.js:66resp = await fetch(url, {tools/wechat/publish-note.js:106const resp = await fetch(url);- 看请求发往哪些域名。发往作者自己的后端是常见做法。
- 写入文件
writes-files需留意29 处命中tools/wechat/publish-note-imgs.js:303fs.mkdirSync(path.dirname(outPath), { recursive: true });tools/wechat/publish-note-imgs.js:304fs.writeFileSync(outPath, wrapForPreview(html, noteTitle), 'utf8');tools/wechat/publish-note.js:210fs.mkdirSync(path.dirname(outPath), { recursive: true });tools/wechat/publish-note.js:211fs.writeFileSync(outPath, wrapForPreview(html, noteTitle), 'utf8');- 看写入位置。写自己的配置目录是正常的,写系统目录不是。
- 启动伪终端
spawns-pty需留意1 处命中…chat/install-wechat-adapters.mjs:38execSync(`${process.platform === 'win32' ? 'where' : 'which'} ${cmd}`, {- 伪终端等于给了一个完整 shell。确认这是插件的核心功能。
- 读取文件
reads-files一般49 处命中tools/wechat/create-article.js:58const rawHtml = fs.readFileSync(htmlPath, 'utf8');tools/wechat/publish-note-imgs.js:142if (fs.existsSync(raw) && fs.statSync(raw).isDirectory()) {tools/wechat/publish-note-imgs.js:143paths = fs.readdirSync(raw)tools/wechat/publish-note-imgs.js:181const size = fs.statSync(absPath).size;- 读文件是绝大多数插件的正常工作方式,本身不构成顾虑。
- 接触凭据或密钥
credentials一般13 处命中docs/features.md:29| 🔑 **密钥不外泄** | `bridge.token` / `ui.sendToAgent.token` / **`auth.password`**(v0.20.0)在 `/admin/state`、`/admin/config` 的…src/host/admin-secrets.ts:28* v0.20.0: `auth.password` is masked too. The v0.19.3 implementation (and thesrc/host/admin-secrets.ts:30* `git.remote` were handled — a config tiddler carrying `auth.password` (thesrc/host/admin-secrets.ts:55password: maskToken(auth.password),- 看它读取哪些凭据、发往哪里。用于登录自己的服务是正常的。
- 读取环境变量
reads-env一般10 处命中src/sdk.ts:23const override = process.env.DSH_HOME…/host/wechat-publish-contract.ts:138file: process.env.ComSpec !== undefined && process.env.ComSpec.length > 0 ? process.env.ComSpec : 'cmd.exe',…/host/wechat-publish-contract.ts:152file: process.env.ComSpec !== undefined && process.env.ComSpec.length > 0 ? process.env.ComSpec : 'cmd.exe',src/host/wechat-publish.ts:179env: process.env,- 环境变量里常混有密钥。看它是否把整个 env 都读走。
- 动态加载模块
dynamic-import一般1 处命中src/host/routes-tw-proxy.ts:324const body = Readable.fromWeb(upstream.body as unknown as import('node:stream/web').ReadableStream)- 动态导入本身无害,但会让依赖关系难以静态审阅。
逐条扫描明细
| 能力 | 标识 | 关注度 | 命中次数 |
|---|---|---|---|
| 可执行外部程序 | spawns-processes | 高关注 | 5 |
| 以 shell 执行命令 | shell-exec | 高关注 | 3 |
| 发起网络请求 | network | 需留意 | 46 |
| 写入文件 | writes-files | 需留意 | 29 |
| 启动伪终端 | spawns-pty | 需留意 | 1 |
| 读取文件 | reads-files | 一般 | 49 |
| 接触凭据或密钥 | credentials | 一般 | 13 |
| 读取环境变量 | reads-env | 一般 | 10 |
| 动态加载模块 | dynamic-import | 一般 | 1 |
这份报告的口径
扫描读的是包里的源码,全程不执行第三方代码。 本次读了 165 个文件,扫描于 2026-10-16。 命中次数只说明源码里出现过这类调用,不说明行为好坏——一个插件读写文件 500 次和 1 次 都会被记为「读取文件」。这是能力清单,不是信任评分,也不是安全结论: 没扫出来的能力可能只是写法没被规则覆盖。
可信度
- 0没有可扣分的项
认证等级 L2
- L0静态结构与契约✓sha512-gHMgha8/OxuHPPcM… 与本地 tarball 复算一致,补丁与入口齐备
- L1配置组合与依赖图✓跨包无 entry id 冲突,插入模块可解析,目录内 peer 满足
- L2隔离沙箱冒烟✓隔离 profile 安装成功,5.7s,层已挂载;宿主带它启动(booted)
- L3运行时健康监控—运行时观测到异常:spawns+hosts
评分口径与作者信息
从 100 分开始按规则扣减:fail −20 / major −10 / warn −5 / minor −2;star 数、下载量、LLM 输出都不参与评分
- 维护者
- ok1989223
- 仓库
- https://github.com/bbqisbbq/dsh-tiddlywiki
- 许可
- MIT
- 最后发布
- 2026-10-09
- 周下载
- 2k
- star
- 6
扫描状态:已扫描。能力是事实,不是缺陷; 周下载与 star 只作参考,不参与评分。
认证等级只回答四件事:包本身是否完整可解析(L0)、能不能与别的插件组合(L1)、隔离环境里装不装得上并起得来(L2)、抽样运行时有没有异常(L3)。依赖漏洞、仓库存活、下载量都不参与评级,只作为独立信号标注。可信 ≠ 无漏洞,上架 ≠ 推荐。
| Node 要求 | >=22 |
|---|---|
| 第三方依赖 | 1 个 |
| bundle patch | ./cordis.patch.yml |
| 依赖安全公告 | 已查询全部依赖,没有匹配到已公开的安全公告(含 DSH 框架包在内的 @deepseek-ai/* 不作查询——那是运行时自己的问题,不是插件的。) |
元数据
| 主页 | https://github.com/bbqisbbq/dsh-tiddlywiki#readme |
|---|---|
| 仓库最近提交 | 2026-10-09 |
| 仓库创建 | 2026-09-02 |
DSH