helibeiqi/dsh-csp-runtime ↗★ 0
dsh-csp-runtime
Cognitive State Protocol (CSP) v0.1 — the cross-framework interop layer that makes AI thinking state serializable, persistable, and transferable. Host-side Cordis plugin for the DSH ecosystem. 适合需跨 agent 迁移认知状态的开发者;捕获默认关闭,需配置 sources 与持久化路径
インストール
$
npx -p @deepseek-ai/dsh dsh plugin --profile web add github:helibeiqi/dsh-csp-runtimeドキュメント
README 全文を読む ↗配置字段
插件 config 仅允许以下 5 个顶层字段(多出的字段会被 console.warn 并忽略):
| 字段 | 类型 | 默认值 | 说明 |
|---|---|---|---|
sources | { statesDir?: string } | ./csp-states | CSP 状态来源目录 |
capture | { enabled: boolean; autoInstrumentTools: boolean } | { enabled: false, autoInstrumentTools: false } | 捕获策略(默认关闭,零开销) |
persistence | { enabled: boolean; path: string; format: 'json' } | { enabled: true, path: './csp-states', format: 'json' } | 文件持久化后端 |
handoff | { enabled: boolean; tokenTtlSeconds: number } | { enabled: true, tokenTtlSeconds: 3600 } | 交接令牌配置 |
interop | { dshExport: boolean; genericImport: boolean } | { dshExport: true, genericImport: true } | 跨框架导入/导出 |
服务注册:本插件仅注册 ctx.provide('cspStore', store),禁用 cdpRegistry / universalAdapter / intentNetwork。