@morlay/better-session 0.0.16-alpha.4 → 0.0.17

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -19,6 +19,13 @@ dsh plugin --profile web add "@morlay/better-session"
19
19
  - `ctx.sessionBranch` ← rewind / fork 数据层
20
20
  - `ctx.sessionEditor` ← edit / retry / fork 编排(HTTP:`/session-editor`)
21
21
  - `conversation.chat.node` ← 渲染替换(user 消息行内编辑 / 重试按钮)
22
+ - `ctx.sessionProjectionCache` ← 投影 checkpoint(替换官方插件,落 rdb 语义表)
23
+ - storage hub 的 `rdb` KV 后端 ← workspace 域落 rdb 语义表
24
+
25
+ 同时禁用官方 `session-persistence-jsonl`、`storage-json` 与
26
+ `session-projection-cache`,并把 `storage-domain` 的 backend 路由为 `rdb`:
27
+ `$DSH_HOME/storages` 不再产生文件,storages 数据与事件日志同库
28
+ ([ADR 0009](../session-rdb/docs/adr/0009-接管storages到rdb语义表.md))。
22
29
 
23
30
  ## 使用
24
31
 
@@ -51,14 +58,7 @@ session-rdb:
51
58
 
52
59
  ## 本地开发
53
60
 
54
- 本包是 monorepo(pnpm workspaces)的一员,命令入口见根 [justfile](../../justfile):
55
-
56
- ```sh
57
- just dep # 安装依赖
58
- just build # 构建全部包(tsdown)
59
- just test # vitest(含 PostgreSQL 契约测试,需 TEST_PG_URL)
60
- just lint # oxlint
61
- ```
62
-
63
- 架构与约定见 [docs/ARCHITECTURE.md](../../docs/ARCHITECTURE.md) 与
64
- [docs/CODING_GUIDELINE.md](../../docs/CODING_GUIDELINE.md)。
61
+ 本包是 monorepo(pnpm workspaces)的一员:命令入口见根
62
+ [justfile](../../justfile),约定见
63
+ [docs/CODING_GUIDELINE.md](../../docs/CODING_GUIDELINE.md),架构见
64
+ [docs/ARCHITECTURE.md](../../docs/ARCHITECTURE.md)。
package/cordis.patch.yml CHANGED
@@ -1,6 +1,26 @@
1
+ # @morlay/better-session bundle patch:把 storages 一并接管到 session-rdb。
2
+ #
3
+ # - `session-persistence-jsonl`:官方 JSONL 持久化禁用,由 session-rdb 提供
4
+ # `ctx.sessionPersistence`。
5
+ # - `session-projection-cache`:官方投影缓存插件禁用,由 session-rdb 提供同名
6
+ # `ctx.sessionProjectionCache` 服务(`t_session_projcache*` 语义表)。
7
+ # - `storage-json`:JSON 介质禁用,storages 目录不再产生文件。
8
+ # - `storage-domain`:改为把域路由到 session-rdb 注册的 `rdb` KV 后端
9
+ # (workspace 域 → `t_workspaces` / `t_workspace_state`)。
10
+
1
11
  - id: session-persistence-jsonl
2
12
  disabled: true
3
13
 
14
+ - id: session-projection-cache
15
+ disabled: true
16
+
17
+ - id: storage-json
18
+ disabled: true
19
+
20
+ - id: storage-domain
21
+ config:
22
+ backend: rdb
23
+
4
24
  - insert:
5
25
  - id: session-branch
6
26
  name: "@morlay/session-branch"
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@morlay/better-session",
3
- "version": "0.0.16-alpha.4",
3
+ "version": "0.0.17",
4
4
  "description": "Example dsh profile bundle: assembles @morlay/session-rdb and @morlay/ui-conversation-message-actions into a web profile — rewind / retry / fork closed loop on RDB persistence.",
5
5
  "keywords": [
6
6
  "dsh",
@@ -29,9 +29,9 @@
29
29
  "./cordis.patch.yml": "./cordis.patch.yml"
30
30
  },
31
31
  "dependencies": {
32
- "@morlay/session-branch": "^0.0.4-alpha.4",
33
- "@morlay/session-rdb": "^0.0.16-alpha.4",
34
- "@morlay/ui-conversation-message-actions": "^0.0.14-alpha.4"
32
+ "@morlay/session-branch": "^0.0.5",
33
+ "@morlay/session-rdb": "^0.0.17",
34
+ "@morlay/ui-conversation-message-actions": "^0.0.15"
35
35
  },
36
36
  "peerDependencies": {
37
37
  "@deepseek-ai/cordis": "^4.0.2"