D

dsh-bottom-info-bar

github.com/songoao25/dsh-bottom-info-bar

v1.21.3 模型与账号 写入文件发起网络请求

Shows the current model, balance and spend under the composer.

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

deepseekdeepseek-harnessdshdsh-bottom-info-barbalanceusageplugin
分类
model
发布
2026-10-14
版本
v1.21.3

检测报告

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

能力清单

  • 写入文件writes-files需留意28 处命中
    • lib/index.js:1438rmSync(filePath, { recursive: filePath === USAGE_ARCHIVE_DIR, force: true })
    • lib/index.js:1440rmSync(LEDGER_CLEAR_MARKER_FILE, { force: true })
    • lib/index.js:1718if (opts.ensureDir) mkdirSync(opts.ensureDir, { recursive: true, mode: 0o700 })
    • lib/index.js:1722try { renameSync(filePath, opts.backupPath) } catch (err) { /* 下面的替换仍是原子操作 */ }
    • 看写入位置。写自己的配置目录是正常的,写系统目录不是。
  • 发起网络请求network需留意19 处命中
    • lib/index.js:295return fetch(UPDATE_REGISTRY_URL, {
    • lib/index.js:711// merge(snap, result, translate) 由调用方注入;fetch 统一按 src.fetch(arg) 调用,
    • lib/index.js:728inFlight[key] = src.fetch(arg).then(function (result) {
    • lib/index.js:2114const res = await fetch(REMOTE_PRICING_URL, { headers, signal: timeoutSignal(10000) });
    • 看请求发往哪些域名。发往作者自己的后端是常见做法。
  • 接触凭据或密钥credentials一般323 处命中
    • lib/index.js:5// 依赖:inject ['credentials', 'timer'];可选服务 webServer / sessionController(按能力读取)
    • lib/index.js:459function openCodeGoWindowKey(apiKey) {
    • lib/index.js:460if (apiKey === 'rolling') return 'five_hour'
    • lib/index.js:461if (apiKey === 'weekly') return 'seven_day'
    • 看它读取哪些凭据、发往哪里。用于登录自己的服务是正常的。
  • 读取文件reads-files一般45 处命中
    • lib/index.js:107const entries = readdirSync(join(dshHomeDir(), 'profiles'), { withFileTypes: true })
    • lib/index.js:144try { return readFileSync(file, 'utf8') } catch { return null }
    • lib/index.js:152if (existsSync(marker)) {
    • lib/index.js:154try { isDirectory = statSync(marker).isDirectory() } catch { return null }
    • 读文件是绝大多数插件的正常工作方式,本身不构成顾虑。
  • 读取环境变量reads-env一般17 处命中
    • lib/index.js:24const DATA_DIR = process.env.DSH_BOTTOM_INFO_BAR_DATA_DIR || join(dshHomeDir(), 'dsh-bottom-info-bar')
    • lib/index.js:116const configured = typeof process.env.DSH_HOME === 'string' ? process.env.DSH_HOME.trim() : ''
    • lib/index.js:285const raw = Number(process.env.DSH_BOTTOM_INFO_BAR_UPDATE_TTL_MS)
    • lib/index.js:334const CODEX_AUTH_FILE = process.env.DSH_BOTTOM_INFO_BAR_CODEX_AUTH || join(homedir(), '.codex', 'auth.json')
    • 环境变量里常混有密钥。看它是否把整个 env 都读走。
逐条扫描明细
能力标识关注度命中次数
写入文件writes-files需留意28
发起网络请求network需留意19
接触凭据或密钥credentials一般323
读取文件reads-files一般45
读取环境变量reads-env一般17

这份报告的口径

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

依赖安全公告

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

← 返回全部插件