JohnXu22786/session-export ↗★ 2

dsh-session-export

Session export & compliance archiving plugin for DeepSeek Harness: redacted Markdown / JSONL / PDF output with archive management and trend views. 适合需留存会话记录、做合规归档与趋势查看的用户;可配置脱敏与格式。

パッケージ
dsh-session-export
互換性
未検証
バージョン
0.1.0
ライセンス
MIT
最終更新
2026/08/20

同名パッケージの別リポジトリ

インストール

$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: false opts 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? } — show the active rules or test a 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