JohnXu22786/session-export ↗★ 2
dsh-session-export
导出会话并归档合规,支持脱敏的 Markdown、JSONL 与 PDF 输出。 适合需留存会话记录、做合规归档与趋势查看的用户;可配置脱敏与格式。
同名包的其他仓库
安装
$
npx -p @deepseek-ai/dsh dsh plugin --profile web add github:JohnXu22786/session-export说明文档
阅读完整 README ↗Configuration
- id: dsh-session-export
name: dsh-session-export
config:
outDir: !!js dshHomePath('exports')
enabled: true
defaultFormat: markdown # markdown | jsonl | pdf | auto
includeNotes: false # include todo/command/feedback bookkeeping
includeDocuments: true # emit the document-tree appendix
maxChunkBytes: 4194304 # split big exports (0 = never)
maxMessageChars: 0 # truncate message display in Markdown (0 = never)
prettyToolArgs: false
includeHash: true
redaction:
enabled: true
pathMode: mask # mask | relative | off
projectRoots: [] # e.g. ['C:\\Users\\you\\work']
maskApiKeys: true
maskEnvValues: true
maskBearerTokens: true
maskUrlCredentials: true
maskAbsolutePaths: true
maskEmails: false
salt: "" # set a secret to harden correlatable fingerprints
customPatterns: # [{ pattern, flags?, replacement? }]
- pattern: '\\d{4}-\\d{4}'
replacement: '[CARD]'
aiMaskEnabled: false # layer a user-provided aiMaskFn on top
pdf:
engine: auto # auto | chrome | html
chromePath: "" # explicit chromium-family binary
Usage
Tools (for the model)
session_export { format?, sessionId?, redact? }— export a session. Returns artifact paths plus a compliance summary.redact: falseopts out for one-off exports.session_export_list { query?, sessionId?, format?, before?, after?, limit? }— list/search the archive.export_delete { target }— delete by archive id / file name / relative path.sanitize_config { action?, sample? }—showthe active rules ortesta sample string against them.
Slash commands
/session-export [format] [--id=] [--no-redact]
/session-export-list [query] [--format=] [--limit=] [--id=]
/export-delete
/sanitize-config [--test ]
/export-audit