Skip to content

Releases: NelsonLongxiang/dsh-prompt-templates

v0.13.1 — chat-visible scheduled injection, panel fixes, everyday verify gate

Choose a tag to compare

@NelsonLongxiang NelsonLongxiang released this 28 Oct 11:57

dsh-prompt-templates v0.13.1

Prompt-template library for DeepSeek Harness (DSH): floating panel + right-sidebar tab, global & per-session templates, scheduled auto-injection, SQLite persistence, cross-machine sync CLI.

Highlights since 0.11.x

Chat-visible scheduled injection (v4 schema) — new in 0.13.0

  • Each template picks a delivery mode: inject (default, silent <system-reminder> into the model context) or visible — the injection is stamped onto the user channel and renders in the chat transcript as an ordinary user message headed by ⚙️ 定时注入 · 第 N 轮 · <templates>.
  • Idempotence holds for both shapes: the dedup scan matches the silent prompt-template-schedule source and the visible kind:'user' + scheduled:'prompt-template' marker, so retries and host restarts never double-inject.
  • Schema v4 (templates.mode, single-transaction migration from v3; v1/v2 upgrade in one step). Sync snapshots move to schema 4 and still import v2/v3 with mode defaulted.
  • The edit form gains a delivery-mode select with an explanatory hint; the row's ⟳ title shows the current mode.

Panel & delivery fixes

  • 0.13.1 edit form seeds its category (and scope filter) from the row's stored facts — editing from a category tab no longer silently drops the category.
  • 0.12.1 the ⟳N toolbar badge surfaces the session's latest scheduled injection (turn · time · template names), polled from GET /plugins/dsh-prompt-templates/inject-status; the template list scrolls correctly (a stale build-time CSS copy once shadowed the live stylesheet — fixed and now gated by a release check).
  • 0.12.0 right-sidebar tab; delivery target stays glued to the visible composer across session switches.
  • 0.11.5 messages insert at the caret via the 0.2 input face; delivery targets the composer's own session.

Engineering

  • Everyday gate: pnpm verify = typecheck → node:test suite (incl. an in-process apply() + agent/pre-step host wiring check) → build → package smoke; GitHub Actions runs it on master pushes, PRs and v* tags.
  • CSS-module integrity gate in the release check; sync CLI (dsh-prompt-templates export/import/diff/merge) with content-hash snapshots and dry-run/confirm import flow.

Install

dsh plugin --profile <name> add @nelsonlongxiang/dsh-prompt-templates

Install from the npm registry (public npmjs or your private mirror) — a Git URL install fails at the prepare build step because published @deepseek-ai/* snapshots lag the harness source; see README.

中文速览

  • 新增对话流可见定时注入:模板可选静默(默认)或可见模式,可见注入以用户消息渲染在聊天流,带 ⚙️ 定时注入·第 N 轮 标记;去重对两种形态均成立,重启不重注。
  • v4 schema(mode 列,单事务迁移);同步快照 schema 4 并兼容 v2/v3 导入。
  • 面板修复:编辑表单分类跟随、⟳N 注入徽标、列表滚动、切会话发送、光标插入。
  • 日常门禁 pnpm verify(类型→测试→构建→打包冒烟)+ GitHub Actions CI。
  • 安装:dsh plugin --profile add @nelsonlongxiang/dsh-prompt-templates(从 registry 装,勿装 Git URL)。