D

dsh-context-console

github.com/anweat/dsh-context-console

v0.1.0 会话与记忆 写入文件R013 清单可疑

DSH context console with trajectory, prompt/skill/MCP/tool inventory, message forging, and conservative session-log recovery.

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

dshdeepseek-harnesscontext-consolesession-logpromptmcptoolsclient-plugin
分类
session
发布
2026-08-22
版本
v0.1.0

检测报告

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

能力清单

  • 写入文件writes-files需留意24 处命中
    • lib/forge/context.js:406mkdirSync(this.dir, { recursive: true });
    • lib/forge/context.js:432writeFileSync(tmp, `${JSON.stringify(record, null, 2)}\n`, 'utf8');
    • lib/forge/context.js:434renameSync(tmp, file);
    • lib/forge/context.js:437writeFileSync(file, `${JSON.stringify(record, null, 2)}\n`, 'utf8');
    • 看写入位置。写自己的配置目录是正常的,写系统目录不是。
  • R013 清单可疑manifest-obfuscation需留意1 处命中
    • 安装脚本: prepare
    • 清单被刻意写乱时,加载行为会难以预测。看原文而不是看渲染结果。
  • 动态加载模块dynamic-import一般7 处命中
    • lib/types/client/ConsoleView.d.ts:9export declare function ConsoleView({ sessionId, rpc, t }: ConsoleViewProps): import("react").JSX.Element;
    • …s/client/forge/ContextPanel.d.ts:14export declare function ContextPanel({ snapshot, busy, onRefresh, onReset, onUpdateCard, onApplyCard, onToDraft, t, }: C…
    • …ypes/client/forge/ForgeView.d.ts:8export declare function ForgeView({ sessionId, rpc, t }: ForgeViewProps): import("react").JSX.Element;
    • …/types/client/HistoryStream.d.ts:7}): import("react").JSX.Element;
    • 动态导入本身无害,但会让依赖关系难以静态审阅。
  • 读取文件reads-files一般6 处命中
    • lib/forge/context.js:414raw = readFileSync(this.file(sessionId), 'utf8');
    • lib/storage.js:87const raw = readFileSync(this.manifestFile, 'utf8');
    • lib/forge/store.js:78raw = readFileSync(this.file, 'utf8');
    • src/forge/context.ts:465raw = readFileSync(this.file(sessionId), 'utf8')
    • 读文件是绝大多数插件的正常工作方式,本身不构成顾虑。
  • 读取环境变量reads-env一般6 处命中
    • lib/forge/index.js:335const dataRoot = join(process.env.DSH_HOME ?? join(homedir(), '.dsh'), 'assistant-message-forge');
    • lib/index.js:84const dshHome = process.env.DSH_HOME ?? join(homedir(), '.dsh');
    • lib/forge/store.js:6const DSH_HOME = process.env.DSH_HOME ?? join(homedir(), '.dsh');
    • src/forge/index.ts:337const dataRoot = join(process.env.DSH_HOME ?? join(homedir(), '.dsh'), 'assistant-message-forge')
    • 环境变量里常混有密钥。看它是否把整个 env 都读走。
逐条扫描明细
能力标识关注度命中次数
写入文件writes-files需留意24
R013 清单可疑manifest-obfuscation需留意1
动态加载模块dynamic-import一般7
读取文件reads-files一般6
读取环境变量reads-env一般6

这份报告的口径

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

依赖安全公告

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

← 返回全部插件