eleckoi/ElecKoi--packages-host-runtime ↗★ 61
@eleckoi/dsh-runtime
会话日志修改与回退运行适配器 适合需要对正式会话进行消息编辑、轮次回退和重新生成的运行环境。
安装
npx -p @deepseek-ai/dsh dsh plugin --profile web add github:eleckoi/ElecKoi#a5bb8814a2bef1b6ad07fd4230587c5a8c5b2cd0&path:packages/host/runtime说明文档
阅读完整 README ↗@eleckoi/dsh-runtime
@eleckoi/dsh-runtime is ElecKoi's DSH Runtime Adapter Package(DSH 运行时适配包)。
Ownership(职责)
- Own formal Session operations, SessionController integration and controlled session editing.
- Keep Electron Main and the product Renderer independent from DSH package internals.
- Build real ESM/CJS artifacts and declarations in
dist/; consumers must use the package root export.
Current capability(当前能力)
- Official DSH Session persistence, projection, streaming, cancellation and restart recovery.
- Same-Session message editing and rewind for deletion and regeneration.
- Startup Session recovery used by the desktop Host; the Host lifecycle and child-process protocol belong to
apps/desktop-host. - Trajectory helpers for ElecKoi's request and context presentation.
- Exact, compatibility-batch DSH dependency versions.
The active conversation path starts the official Web profile through apps/desktop-host/src/desktopPluginHostChild.ts.
apps/desktop/resources/dsh/desktop-agent.patch.yml adds desktop Agent settings; DSH profile bundles add
ElecKoi's roleplay lifecycle and Tavily search provider. apps/desktop/resources/dsh/cordis.yml remains an
SDK compatibility composition, not the active desktop conversation tree. The pinned upstream
commit, both composition roles and capability inventory are recorded in
apps/desktop/resources/dsh/runtime-manifest.json. Product data and Remote services are owned by
@eleckoi/dsh-product-data and @eleckoi/dsh-product-api; the DSH Web Client loads ElecKoi's
Client plugins and consumes official Session/Connection projections.
Upstream update(上游更新)
- Update all related
@deepseek-ai/dsh-*packages as one exact-version compatibility batch. - Update
runtime-manifest.jsonwith the reviewed upstream commit and plugin inventory. - Run
pnpm check:dsh-versionsandpnpm check:dsh-runtime. - Run the real runtime handshake test, Electron native smoke check and production build.
- Merge through a reviewed dependency-update PR; never track a floating upstream branch from the product directory.