Skip to content

feat: release composable memory plugins as v0.5.0-rc.1 - #164

Merged
Grivn merged 119 commits into
mainfrom
codex/view-concretization
Sep 3, 2026
Merged

feat: release composable memory plugins as v0.5.0-rc.1#164
Grivn merged 119 commits into
mainfrom
codex/view-concretization

Conversation

@Grivn

@Grivn Grivn commented Sep 3, 2026

Copy link
Copy Markdown
Collaborator

摘要 / Summary

在保持 v0.4 Sidebar、配置、存储格式和默认三层记忆体验不变的前提下,将 Mnemon 重构为由 Source、Strategy 与 Provider 独立包组成、每轮只生成一个不可变 View 的可组合架构。该 PR 同时准备 16 个独立插件与 Starter 的 0.5.0-rc.1 协调发布,并通过受保护的 npm-release Environment 执行可恢复、可回读验证的分阶段发布。

关联 Issue 或背景 / Related Issue or Context

Closes #110 — 新增默认关闭的“主动记录”能力;用户开启后,当前对话中的 LLM 会自动判断并记录至多一条符合条件的长期事实,同时遵守 Source 写入授权与用户“不记录”指令。

Refs #40 — 本次提供默认关闭的有界轻量上下文投影,但不宣称实现带修订、删除语义和会话基线的严格增量注入,因此该 Issue 应继续保持开放。

Refs #77 — 延续并标准化全局/项目等多个 Source 的范围组合;该 Issue 已关闭。

Refs #140, #148 — 本 PR 收紧 View/Action 授权边界,但没有完整实现“所有写操作逐次确认”或用户内容所有权策略,不自动关闭这两个 Issue。

涉及区域 / Affected Areas

  • Host 激活、Headless 或 bundle / Host activation, Headless, or bundle
  • 运行时记忆 / Runtime Memory
  • 项目档案 / Project Documents
  • 记忆体或 Provider / Memory Spaces or Providers
  • 子 Agent 或 Agent 工作流 / Subagent or Agent workflow
  • Web UI 或对话交互 / Web UI or conversation interaction
  • 设置、存储或安全 / Settings, storage, or security
  • CLI、RPC、命令或工具 / CLI, RPC, commands, or tools
  • 安装、更新或发布 / Installation, update, or release
  • 测试、构建或文档 / Tests, build, or documentation
  • 其他(请说明)/ Other (explain below)

PR 类型 / PR Type

  • 面向用户的功能或行为变更 / User-facing feature or behavior change
  • Bug 修复 / Bug fix
  • 增强或优化 / Enhancement or optimization
  • 兼容性适配 / Compatibility change
  • 维护或重构 / Maintenance or refactor
  • 测试或构建 / Tests or build

最新代码确认 / Latest Codebase Confirmation

  • 我已基于最新 main 分支开发,或在提交前已 rebase 或合并最新 main。 / I developed from the latest main, or rebased or merged the latest main before submitting.

同步命令 / Sync command:

git fetch origin main && git merge-base --is-ancestor origin/main HEAD

AI 编码披露 / AI Coding Disclosure

  • 完全 AI 编码:全部编程改动由 AI 产出,并由贡献者接受和审查。 / Fully AI-coded: AI produced all programming changes, which the contributor accepted and reviewed.
  • 部分 AI 辅助:AI 帮助编写或修改了部分内容。 / Partially AI-assisted: AI helped write or modify part of the change.
  • 未使用 AI 编码辅助。 / No AI coding assistance was used.

使用的 AI 模型 / AI model used:

OpenAI GPT-5 family (Codex)

使用的编码 Agent 工具 / Coding Agent tool used:

Codex desktop app

仓库规范检查 / Repository Rules

  • 未修改 DSH 官方源码,未让 tsconfig 指向 DSH 源码 checkout,仅使用正式的 @deepseek-ai/* NPM 契约。 / I did not modify DSH source or point tsconfig at a DSH source checkout, and used only published @deepseek-ai/* NPM contracts.
  • Client 与 Host 边界仍以 src/shared/contracts.ts 为准,没有在两侧重复定义 wire DTO。 / The Client and Host boundary still uses src/shared/contracts.ts as the single source for wire DTOs.
  • 持久化格式、RPC 权限、路径或凭据处理的变更包含兼容或拒绝路径、安全分析和相应测试。 / Changes to persistence formats, RPC authority, paths, or credentials include compatibility or rejection paths, security analysis, and tests.
  • 没有提交 token、密钥、私有记忆、未脱敏日志或生成的 lib/ 文件。 / I did not commit tokens, credentials, private memory, unredacted logs, or generated lib/ files.
  • 用户可见文案和长期文档已同步维护中文与英文版本,命令、配置键和路径保持一致。 / User-facing copy and long-lived documentation are synchronized in Chinese and English, with matching commands, configuration keys, and paths.
  • 新增和修改的代码、注释、文档、提交信息不含 emoji。 / New and modified code, comments, documentation, and commits contain no emoji.

兼容性与数据安全 / Compatibility and Data Safety

现有 v0.4 配置键、持久化目录、Runtime Memory、Documents、Memory Spaces、Provider 连接与命名工具继续兼容;默认启动仍使用三层 Strategy,三个增强项均默认关闭。普通 UI 只在“设置 → 记忆系统”增加三个内置开关,不新增 View Tab 或通用插件管理心智。升级验证会在隔离 Profile 中真实执行 dsh-mnemon@0.4.7 到 Registry RC 的安装,并校验升级前后 Runtime Memory 字节完全一致。所有 View 写入仍需当前 Source 提供 Action 且通过 Host 权限、实例、确认与 revision 校验;凭据和存储路径不进入 View。回滚可重新安装 0.4.7,本次没有迁移或重写既有数据。

本地验证 / Local Validation

执行的命令 / Commands run:

pnpm release:check
pnpm exec vitest run tests/release.spec.mjs tests/version-updates.spec.ts
node scripts/verify-plugin-artifacts.mjs --skip-build
actionlint .github/workflows/publish.yml

结果摘要 / Result summary:

全部通过。发布契约与 updater 测试 31 项通过;真实打包验证覆盖 17 个 tarball、16 个仓库外独立插件安装/类型检查/测试/构建、Starter 与三个可选 Strategy 的 Cordis 激活、外部消费者组合,以及隔离环境中的真实 0.4.7 → 0.5.0-rc.1 数据无损升级。PR CI 和冻结 revision 的发布工作流还会重新执行完整 pnpm verifypnpm verify:plugins、Registry 回读安装验证和发布后升级 smoke。

用户可见变更证据 / Local Feature Evidence

证据 / Evidence:

Grivn added 30 commits September 4, 2026 00:48
Grivn added 26 commits September 4, 2026 00:48
@Grivn
Grivn merged commit 9c8761e into main Sep 3, 2026
14 of 19 checks passed
@Grivn
Grivn deleted the codex/view-concretization branch September 4, 2026 01:27
@Grivn Grivn mentioned this pull request Sep 4, 2026
27 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Issue]: 我在使用过程中不知如何保存记忆体

1 participant