JohnXu22786/session-export

Bundle捆绑包 Native原生 ⭐ 2 MIT Sessions & Context会话与上下文

Session export, redaction and compliance archiving bundle for DeepSeek Harness (dsh).

Project Overview项目介绍

dsh-session-export is a DeepSeek Harness plugin for exporting and archiving sessions for compliance. It turns current or historical sessions into sanitized, verifiable archives in Markdown, JSONL, or PDF (via headless Chromium), organizes them on disk by session and date, and exposes list, search, delete, and trend/audit views. Deterministic redaction runs by default, masking API keys, JWTs, .env values, URL credentials, and absolute paths with salted SHA-256 fingerprints before anything reaches disk, so identical inputs map to identical placeholders without exposing secrets. Requires Node 24+. When no Chromium binary is found, PDF exports fall back to self-contained HTML and surface a warning. MIT licensed.

dsh-session-export 是 DeepSeek Harness 的会话导出与合规归档插件,将当前或历史会话转为可核验的脱敏归档。支持 Markdown、JSONL、PDF(基于无头 Chromium)格式,按会话/日期组织在磁盘上,并提供列表、搜索、删除与趋势审计视图。默认启用确定性脱敏:API 密钥、JWT、.env、URL 凭据与绝对路径在落盘前即被替换为带 SHA-256 指纹的占位符,相同输入产生相同输出,便于跨文件关联且不泄露密钥;可选盐值进一步强化指纹。需要 Node 24+,PDF 引擎缺失时会降级为 HTML 并发出警告。MIT 许可。

Pre-install check安装前体检Compatibility · Security兼容性 · 安全性 1 warning1 项注意
  • Only 2 stars - very few users, little community feedback星标只有 2,几乎没人在用,遇到问题缺少社区反馈
DSH walks through these 9 checksDSH 会逐条核对这 9 项

Compatibility兼容性

  • DSH, Node, OS and profile requirementsDSH 版本 / Node 版本 / 操作系统 / profile 是否满足要求
  • External dependencies and runtimes (Electron / Python / Docker, ...)外部依赖与运行时(Electron / Python / Docker 等)是否齐备
  • Conflicts with installed plugins: command names, skill / tool names, ports, duplicate MCP registration与已装插件是否冲突:命令名、skill / tool 重名、端口占用、重复 MCP 注册

Security安全性

  • Repo matches the facts registered here; archived or abandoned?仓库是否与页面登记一致,是否归档或长期停更
  • Safety of preinstall / install / postinstall and install.sh / setup.ps1preinstall / install / postinstall 与 install.sh、setup.ps1 是否安全
  • curl|bash, download-then-execute, obfuscation, unrelated domains → stop immediatelycurl|bash、下载即执行、混淆代码、无关域名 → 立刻停止
  • Typosquatting or unmaintained packages among the new dependencies新增依赖里有没有 typosquatting 或无人维护的包
  • Requested permissions vs. what the feature actually needs申请了哪些权限、是否超出功能所需(filesystem / network / shell / clipboard)
  • Any sudo / admin requirement, plus uninstall and rollback是否要求 sudo / 管理员权限,以及卸载与回滚方式

Anything uncertain must be marked unknown with a note on how to confirm it. This site's signal screen is a static snapshot, not a security audit.拿不准的必须标「未知」并说明要我怎么确认。本站的信号筛查是静态快照,不能替代安全审计。

Or use CLI install (for developers)或使用命令行安装(适合开发者)

CLI Install命令行安装

dsh plugin --profile demo add github:JohnXu22786/session-export

把 JohnXu22786/session-export 加入你的 DSH 配置(web profile)即可启用。

READMEREADME

dsh-session-export

English | 简体中文

CI

Session export & compliance archiving for DeepSeek Harness (dsh).

Turns any current or historical session into verifiable, sanitized archives in multiple formats, manages them on disk, and gives you a compliance/traffic view — all as a dependency-free dsh bundle.

Why

Exports are only useful for compliance or archival if they do not leak. This plugin combines, in one bundle:

  • Deterministic redaction by default — API keys, tokens, JWTs, .env-style lines, URL credentials and absolute file paths are masked before anything touches disk. The same input always yields the same output, and masked values carry a stable fingerprint so archives stay correlatable without leaking secrets.
  • Multiple formats — a readable Markdown narrative, a machine-readable JSONL full record, and PDF (print-ready HTML plus optional headless-Chromium rendering).
  • Archive management — exports are organized by session/date, discoverable, searchable, and deletable (with path-traversal guarding).
  • Compliance metadata — every export embeds a header with session id, models, sanitization level, counts, and an optional SHA-256 content hash; a trend/audit view summarizes what was exported, when, and how sensitive it was.
  • No model dependency — redaction is rule-based. An optional hook exists if you want to layer an LLM-assisted masker on top.

Features

1. Session export

  • Current or historical sessions, from the harness's own event log (ctx.sessionPersistence / ctx.sessions).
  • Formats: markdown, jsonl, pdf, or all.
  • Event-log folding is tolerant of unknown event types and payload shapes across harness versions.
  • Large exports are split into numbered parts (with a parts.json manifest); long messages can be truncated in Markdown with an explicit marker (JSONL always keeps the full record).

2. Redaction (on by default)

Rule Description
api-key sk-…, pk-…, ghp_/gho_/github_pat_ (GitHub), hf_, AKIA…, AIza…, long base64-style tokens
jwt eyJ… tokens
high-entropy-token any 32+ char alphanumeric run
env-value KEY=value assignment lines (e.g. pasted .env)
bearer Bearer/token values
url-credential https://user:pass@host
absolute-path Windows drive / UNC / POSIX home paths — masked, or relativized to <project-root> when pathMode: relative
email opt-in
custom arbitrary user regexes

Showing the opening section of the README — the full document lives in the repository以上为 README 开头摘要,完整文档在仓库内 · View the full README on GitHub →在 GitHub 查看完整 README →

← 上一个 Prev mylife 下一个 Next dsh-Veneer →