biubiu23333333/dsh-memorix-panel0

dsh-memorix-panel

Memorix memory panel for the DSH Web GUI: browse every project and memory, read full details, archive/restore and create memories — inside the session, with writes going through the official memorix CLI.

包名
dsh-memorix-panel
版本
0.1.0
许可证
MIT
最近更新
2026年9月10日

安装

$npx -p @deepseek-ai/dsh dsh plugin --profile web add github:biubiu23333333/dsh-memorix-panel

3.(可选)生成全局配置

memorix init --global

memorix init可选步骤,它会创建或更新 TOML 配置:~/.memorix/config.toml(全局默认值)与 /memorix.toml(单项目可选覆盖)。

使用说明

界面结构

区域内容
库状态记忆库路径、库文件大小、WAL 大小、最后更新时间、memorix CLI 版本
总计记忆 / 项目 / 活跃 / 归档 / 长期记忆 / 迷你技能 / 会话 / 证据卡 / 知识页
搜索与筛选搜索框(按标题、实体、类型)+ 记忆类型与状态筛选器
项目列表手风琴分组,展开后列出该项目下的记忆
详情视图元信息、正文、要点、概念、涉及文件、关联提交、关联实体;底部是改状态与操作按钮

数据存储(只读读取)

路径说明
~/.memorix/data/memorix.dbSQLite 记忆库,单库多项目,以 projectId 列区分项目
~/.memorix/data/.project-aliases.json项目映射:groups[].canonical / aliases / rootPaths
~/.memorix/last-project-root最近使用的项目根

observations 表包含 id / type / title / narrative / facts / concepts / filesModified / status / createdAt / updatedAt / entityName / valueCategory / topicKey / source / visibility 等字段。

读取实现

按顺序尝试,任一成功即停止:

按顺序尝试,任一成功即停止:Node 内置 node:sqlite(需 Node ≥ 22.5)→ python3 标准库 sqlite3 模块 → 系统 sqlite3 CLI。

写入实现

写入一律通过官方 CLI,不做裸 SQL 写入(这样 Memorix 自己的检索索引才会同步)。


## 配置

所有配置项都写在 profile 的 `cordis.patch.yml` 里该插件**行的 `config`** 中,全部可选。

| 配置项 | 默认值 | 说明 |
| --- | --- | --- |
| `bin` | `memorix` | Memorix CLI 可执行文件名或绝对路径 |
| `dbPath` | 自动探测 `~/.memorix/data/memorix.db` | 记忆库 SQLite 文件路径 |
| `cliTimeoutMs` | `25000` | 每次调用 CLI 的超时时间(毫秒) |
| `allowWrite` | `true` | 是否允许「改状态」 |
| `allowStore` | `true` | 是否允许「新建记忆」 |

示例(`cordis.patch.yml`):

```yaml
- insert:
    - id: memorix-panel
      name: dsh-memorix-panel
      config:
        bin: memorix
        cliTimeoutMs: 25000
        allowWrite: true
        allowStore: true

如果只想开放只读浏览,把 allowWriteallowStore 都设为 false 即可。