Skip to content

Releases

北极星记忆 v0.1.3

Choose a tag to compare

@LAYZR114 LAYZR114 released this 12 Sep 13:46

北极星记忆 v0.1.3

本地优先的 DSH 项目记忆插件:每个项目一份 .dsh-memory.json(按 cwd 隔离),提供五个记忆工具、/memory 命令与设置页记忆管理 UI。

本版重点(0.1.3)

修复:设置页「点目录输入框,文字却输入到搜索框」

  • 根因一:搜索框的 autoFocus 在每次重渲染时执行 → 抢焦点;
  • 根因二:回调 ref 里的 focusEnd() 含 focus(),而 React 每次渲染都会重新调用回调 ref → 每次都抢;
  • 最终结构性根治:搜索框收起时从 DOM 卸载(searchOpen ? slot : null)——元素不存在则物理上无法被抢焦点(该问题曾以两种形式复发,逻辑补丁不足)。

修复:设置页布局

  • 目录行:输入框/保存/搜索按钮三者紧贴;flex:0 0 auto 防被挤没;展开搜索时采用「向右推开」且 🔍 位置恒定不变;
  • 记忆胶囊在展开搜索时缩成纯数字(88→44px)+ 搜索框 130→100px → 展开态总宽 612→540px,正好装进设置面板(此前胶囊会被顶出屏幕);
  • 修复数字胶囊的居中对齐、目录输入框「点一下就闪无法输入」、过长提示文本。

代码整洁与防回退

  • 合并文件末尾的「补丁组」(消除"改了不生效"的根因:同一元素两处规则互相覆盖);
  • 删除 18 条死规则、修好静默失效的拖拽抓手;
  • 统一 commitEdit:编辑/新增/删除也做 verified 回读校验,失败绝不谎报成功;撤销按钮不再依赖提示消息存在;
  • 新增守卫断言:焦点守卫、CSS 冲突守卫、反引号守卫、渲染块唯一性、静态布局验证器(手算 flex 坐标)。

适配

  • 仅面向 DSH 最新核心(0.1.5-rc.1 及更新,桌面端 2.0.7+ / 2.0.9);
  • 全量测试 115/115 通过 + 静态布局断言全绿。

安装

npm install -D dsh-external-dsh-project-memory-0.1.3.tgz

或下载下方 dsh-external-dsh-project-memory-0.1.3.tgz 后在 DSH 中安装。

说明

本包不含任何记忆数据(.dsh-memory.json 始终保存在各项目目录,由用户自行掌控)。

v0.1.1 (beta)

v0.1.1 (beta) Pre-release
Pre-release

Choose a tag to compare

@LAYZR114 LAYZR114 released this 09 Sep 16:26

Polaris Memory (dsh-project-memory) v0.1.1 beta — lightweight refactor

  • Split index.js into lib/tools.js, lib/commands.js, lib/api.js (index.js only apply assembly + injectMode split)
  • Unified write path: writeThrough (sanity -> store.writeDoc -> afterWrite chain, guard table rebuilt first)
  • Unified confirm dialog: askConfirm (add/update/delete/archive/guard, fail-closed, text preserved)
  • Fixed approve+guard-self recognition in dialog decisions
  • Annotated legacy-full canary ([legacy-full-only], retirement condition)
  • Per-project .dsh-memory.json; tiered injection L1/L2/L3 + hard guard
  • Install: dsh plugin --profile web add github:LAYZR114/dsh-project-memory
  • Repo: https://github.com/LAYZR114/dsh-project-memory

v0.1.0 (beta)

v0.1.0 (beta) Pre-release
Pre-release

Choose a tag to compare

@LAYZR114 LAYZR114 released this 09 Sep 11:40

Polaris Memory (dsh-polaris-memory) v0.1.0 beta

  • Local-first project memory plugin for DeepSeek Harness
  • Injection: L1 persistent meta (profile/state/pending/heartbeat, first-step real) + L2 scene (P1/P2/P3 + fragment + source) + L3 rule/guard scene-based
  • Hard guard: bottom-line memory auto detect -> authorize -> intercept (AI delete blocked / user command confirm dialog / archived release lock)
  • Install: dsh plugin --profile web add dsh-polaris-memory
  • npm: https://www.npmjs.com/package/dsh-polaris-memory