D

dsh-session-archive

@linxin666/dsh-session-archive

v0.4.6 市场与管理 写入文件发起网络请求动态执行代码

面向 DeepSeek Harness (DSH) 的会话全文搜索、批量归档与生命周期管理器 集中式会话视图 · 分面搜索与筛选 · 批量归档与级联删除 · 自动化保留规则

作者原文(英文)

Session archive management for DSH Web: centralized inventory, batch archive/restore, physical delete with family cascade, and optional auto-archive / auto-cleanup policies.

中文简介由 DeepSeek 模型翻译,仅供参考。

分类
market
发布
2026-10-10
版本
v0.4.6

检测报告

有一定能力。命中了若干能力模式,大多是插件正常工作时会用到的。
3需留意3一般18未命中
高关注需留意一般

能力清单

  • 写入文件writes-files需留意12 处命中
    • lib/index.js:1371rmSync(real, {
    • lib/index.js:1644await mkdir(dirname(path), { recursive: true });
    • lib/index.js:1649await handle.writeFile(JSON.stringify(value, null, 1), "utf8");
    • lib/index.js:1654await rename(temp, path);
    • 看写入位置。写自己的配置目录是正常的,写系统目录不是。
  • 发起网络请求network需留意2 处命中
    • lib/client.js:124const response = await fetch(path, {
    • src/client/api.ts:30const response = await fetch(path, {
    • 看请求发往哪些域名。发往作者自己的后端是常见做法。
  • 动态执行代码dynamic-code需留意1 处命中
    • lib/index.js:301schema.callback = new Function("return " + schema.callback)();
    • 看 eval / new Function 的入参来自哪里。常量字符串和用户输入是两回事。
  • 读取文件reads-files一般34 处命中
    • lib/index.js:1233entries = readdirSync(path);
    • lib/index.js:1238const stat = statSync(join(path, entry));
    • lib/index.js:1268if (!existsSync(sessionsRoot)) return index;
    • lib/index.js:1277projectDirs = readdirSync(sessionsRoot);
    • 读文件是绝大多数插件的正常工作方式,本身不构成顾虑。
  • 动态加载模块dynamic-import一般4 处命中
    • lib/client.js:175engine = require(platform);
    • lib/client.js:177engine = require(legacy);
    • lib/index.js:1953return import("node:fs/promises").then((fs) => fs.readFile(path, "utf8")).catch(() => void 0);
    • src/host/janitor.ts:197return import('node:fs/promises').then((fs) => fs.readFile(path, 'utf8')).catch(() => undefined)
    • 动态导入本身无害,但会让依赖关系难以静态审阅。
  • 读取环境变量reads-env一般2 处命中
    • lib/index.js:1753function resolveDshHome(env = process.env, home = homedir()) {
    • src/dsh-home.ts:27export function resolveDshHome(env: NodeJS.ProcessEnv = process.env, home: string = homedir()): string {
    • 环境变量里常混有密钥。看它是否把整个 env 都读走。
逐条扫描明细
能力标识关注度命中次数
写入文件writes-files需留意12
发起网络请求network需留意2
动态执行代码dynamic-code需留意1
读取文件reads-files一般34
动态加载模块dynamic-import一般4
读取环境变量reads-env一般2

这份报告的口径

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

依赖安全公告

已查询这个插件声明的全部依赖,没有匹配到已公开的安全公告。(含 DSH 框架包在内的 @deepseek-ai/* 不作查询——那是运行时自己的问题,不是插件的。)

← 返回全部插件