TGYD-helige/dsh-plugins--packages-dsh-storage ↗★ 2
@amaster.ai/dsh-storage
Session storage mirror for DeepSeek Harness: projects the session event stream into MySQL/PostgreSQL/SQLite/SQL Server (ai_messages / ai_chat_histories) without replacing dsh's local persistence. 适合需要将聊天历史和消息持久化备份到外部关系型数据库的用户。
Install
$
npx -p @deepseek-ai/dsh dsh plugin --profile web add github:TGYD-helige/dsh-plugins#c5e90b86403a6463b8459173dc2d187f8c78b067&path:packages/dsh-storageREADME
Read the full README ↗Configuration
Disabled by default. Configure via the profile's cordis.patch.yml:
- insert:
- id: storage-mirror
name: '@amaster.ai/dsh-storage'
config:
enabled: true
database:
enabled: true
provider: mysql # mysql | postgresql | sqlite | sqlserver
url: mysql://user:pass@host:3306/agent
Create or upgrade the tables with the shipped schema variant:
npx prisma db push --schema node_modules/@amaster.ai/dsh-storage/prisma/schema.mysql.prisma --url "mysql://user:pass@host:3306/agent"