Skip to content

dsh-structured 0.9.1

Choose a tag to compare

@feigo313 feigo313 released this 23 Oct 07:13
· 37 commits to main since this release

dsh-structured 0.9.1

Structured output for DSH: a no-label title card first, then tables/lists/steps; per-session toggle and style.md override.

What changed

  • 代码 / diff 隔离:```diff / patch 代码块、[data-diff] / .md-diff / GenUI diff 区域不套插件的 code/table chrome;diff 行色与宿主渲染保持原样。代码 / diff 回复允许代码块或 diff 卡直接作首块,不强制标题卡。
  • 设置中心:theme、visual、defaultEnabled、tailReminder、includeSubagents、genui 六个 profile 级 Config 字段,全部 .volatile(),带中英双语 description;标准 bundle 详情表单优先,不新增 React 依赖。
  • 主题系统:theme(deepseek / codex / anthropic,默认 deepseek)三套明暗 token;暗色跟随宿主 body[data-ds-dark-theme];client 通过 configForms 读取 theme。
  • statusText 显示主题与视觉层;/structured on|off 仍只控制按会话提示词;state.json 只存会话开关。
  • 写入 active profile 的 Cordis patch;home patch / CLI overlay 优先,表单 writable=false 时不静默成功。

Verification

  • npm test: 49/49;node scripts/desktop-check.mjs: PASS。
  • node scripts/theme-contrast.mjs: PASS 60 checks(3 套主题 × 明暗,全组 ≥4.5)。
  • npm pack: 42 文件 / 770432 B / unpacked 997070 B,sha1 fa8d8703…,sha256 5b48c3a0…。
  • 仓库 grep "不做主题菜单"(打包范围)0 命中;lib 与 src 一致。

Install

  • npm: dsh plugin --profile <profile> add dsh-structured@0.9.1
  • 插件市场:条目已指向 v0.9.1。

Full changelog: https://github.com/feigo313/dsh-structured/blob/main/CHANGELOG.md