Skip to content

Releases

v0.2.1:验证 DSH 0.2.1 兼容

Choose a tag to compare

@lctfwyt lctfwyt released this 17 Oct 14:13

针对 DSH 0.2.1(-rc.2) 做了完整适配审计,结论:插件代码无需改动,破坏性变更 0 条。

兼容性结论

  • 宿主端接缝 ctx.tools.register、ctx.skills.register、ctx.webServer.register,
    以及客户端扩展点 conversation.input.dock、tool.call.toolview、ctx.locale.register,
    在 0.2.0-rc.2 → 0.2.1-rc.2 之间实现逐字节相同。
  • 前端 seed 模块注册表由 9 项增至 11 项(新增 zod、@tanstack/react-virtual),
    原 9 项 specifier 一字未改;本插件只 require('react'),不受影响。
  • 主题 token 快照无漂移(95 → 95)。
  • npm run check 通过,101/101。

本版改动

  • tools/check-client.mjs:SEED_SPECIFIERS 同步为两版并集(9 → 11),
    避免后续误报「require 了非 seed 模块」。
  • lib/client.js、test/client.test.js:更新 seed 模块说明。
  • docs/DEVELOPMENT.md:新增 §5.1「DSH 升级后怎么核对」四步清单;
    补充 profile dsh.profile.bundles 加载条件;说明不要随意声明 engines.dsh。
  • .gitignore:新增 .scratch/(临时产物,不入库)。

安装

# GitHub
dsh plugin --profile desktop add github:lctfwyt/dsh-liuyao#v0.2.1

# npm
dsh plugin --profile desktop add dsh-liuyao

v0.2.0:换日口径改为子时换日

Choose a tag to compare

@lctfwyt lctfwyt released this 02 Oct 17:40

体例文档一直写「日辰以子时换日……以子正换日者,本工具不采用」,代码默认却是子正换日,两者矛盾。本次让实现与体例一致。

  • 默认口径改为子时换日(23:00 起算次日),默认值统一由 DEFAULT_DAY_BOUNDARY 定义,buildChart / buildCalendar 不再各写字面量
  • dayBoundary 收为引擎内部开关,liuyao_cast 的 schema 不再下发该参数,模型与前端无从切换
  • 卦盘补 dayRolled,与既有的 civilEffectiveDay 配套说明换日
  • doctrine.md 写明 23:00 后起卦时有效日期与钟面日期可以差一天
  • 测试补默认口径锁死、跨午夜同日、月末进位

注意:23:00–23:59 起卦的日柱、旬空、日破、暗动随之改变,故按 minor 版本发布。已归档的历史卦例仍按各自生成时的口径回放,不做迁移。