@morlay/better-session 0.0.21-alpha.8 → 0.0.21-alpha.9
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 +13 -6
- package/cordis.patch.yml +1 -31
- package/package.json +9 -9
package/README.md
CHANGED
|
@@ -5,6 +5,9 @@ profile 聚合 bundle:一次性装配 `@morlay/session-branch`、
|
|
|
5
5
|
**薄壳 fork 行**(只留我们改过的文件,其余引用上游源码)到 DeepSeek Harness web profile,
|
|
6
6
|
提供 **就地编辑 / 重试 / 撤回 / 分支**(rewind / retry / recall / fork)闭环。
|
|
7
7
|
|
|
8
|
+
显示元数据(插件管理页里的名字与说明)在 `locale/zh.json` 与 `locale/en.json`;patch 真源就是
|
|
9
|
+
`tsdown.config.ts`,build 时由 `@local/devkit/patch` 的插件写出包根那份 `cordis.patch.yml`。
|
|
10
|
+
|
|
8
11
|
## 安装
|
|
9
12
|
|
|
10
13
|
```sh
|
|
@@ -13,7 +16,8 @@ dsh plugin --profile web add "@morlay/better-session"
|
|
|
13
16
|
|
|
14
17
|
安装自动带上全部子包(`@morlay/session-branch`、`@morlay/session-rdb`、
|
|
15
18
|
`@morlay/ui-conversation-message-actions`、`@morlay/ui-conversation-manager`、
|
|
16
|
-
`@morlay/dsh-client-ui-conversation`、`@morlay/dsh-client-ui-primitives`、`@morlay/dsh-
|
|
19
|
+
`@morlay/dsh-client-ui-conversation`、`@morlay/dsh-client-ui-primitives`、`@morlay/dsh-client-ui-primitives`、
|
|
20
|
+
`@morlay/dsh-reference`),
|
|
17
21
|
并由 bundle 的 patch(`cordis.patch.yml`)自动装配:
|
|
18
22
|
|
|
19
23
|
- `ctx.sessionPersistence` ← RDB(SQLite / PostgreSQL)持久化后端
|
|
@@ -24,6 +28,8 @@ dsh plugin --profile web add "@morlay/better-session"
|
|
|
24
28
|
- `conversation.composer.dock` 的 `stats` 行 ← 覆盖注册(priority −1;承载修好的 token 口径)
|
|
25
29
|
- 官方对话 UI 行里只有 `ui-conversation` 换成本仓库的 fork 行;`ui-chat` 与 `ui-input-trigger` 保持官方行
|
|
26
30
|
- `ui-primitives-fork` ← css-in-js 样式层(styled / Token / 官方 token 消费),fork 外壳的样式基础
|
|
31
|
+
- `ui-schema-form` ← 各插件 `Config` 的 volatile 字段按 schema 自动生成的**行配置页**(行级兜底:手写卡片用默认
|
|
32
|
+
priority 遮住它),字段级自定义输入经 chain 槽 `settings.schema-form.field`
|
|
27
33
|
- `ctx.sessionProjectionCache` ← 投影 checkpoint(替换官方插件,落 rdb 语义表)
|
|
28
34
|
- `ctx.sessionQuery` ← 会话查询(替换官方 `session-query-sqlite`:精确读 / 过滤 /
|
|
29
35
|
血缘复用上游基类,全文检索维持 disabled,不引入派生索引库)
|
|
@@ -32,11 +38,12 @@ dsh plugin --profile web add "@morlay/better-session"
|
|
|
32
38
|
同时禁用官方 `session-persistence-jsonl`、`storage-json`、
|
|
33
39
|
`session-projection-cache`、`session-query-sqlite` 与 `ui-conversation`(「已归档会话」的管理动作收敛到
|
|
34
40
|
`ui-conversation-manager` 的「对话管理」页;上游 0.1.7 自己删掉了设置页那份归档入口,不需要我们再按 id 禁用),
|
|
35
|
-
|
|
36
|
-
(`session-telemetry-otel`、`session-log-deepseek`,默认部署零官方外发,需要时
|
|
37
|
-
删行恢复),并把 `storage-domain` 的 backend 路由为 `rdb`:`$DSH_HOME/storages`
|
|
41
|
+
并把 `storage-domain` 的 backend 路由为 `rdb`:`$DSH_HOME/storages`
|
|
38
42
|
不再产生文件,storages 数据与事件日志同库
|
|
39
|
-
([ADR-20260917-接管storages到rdb语义表](
|
|
43
|
+
([ADR-20260917-接管storages到rdb语义表](../../session/session-rdb/.agents/adrs/20260917-接管storages到rdb语义表.md))。
|
|
44
|
+
|
|
45
|
+
官方两条外发通路(`session-telemetry-otel`、`session-log-deepseek`)**不在本 bundle 的范围内**:它们仍在装配里,
|
|
46
|
+
要不要关是部署层的取舍,不由会话编辑这一层替它决定。
|
|
40
47
|
|
|
41
48
|
装配面由 `src/__tests__/patch.spec.ts`(patch 行 ↔ 上游 bundle id)与
|
|
42
49
|
`src/__tests__/assembly.spec.ts`(patch ↔ 依赖 ↔ client 声明)守护;逐行以 [`cordis.patch.yml`](./cordis.patch.yml) 为准。
|
|
@@ -80,4 +87,4 @@ await ctx.sessionBranch.forkFrom(sourceId, { atSeq: 6, childSessionId });
|
|
|
80
87
|
本包是 monorepo(pnpm workspaces)的一员:命令入口见根
|
|
81
88
|
[justfile](../../../justfile),约定见
|
|
82
89
|
[`.agents/standards/`](../../../.agents/standards/README.md),架构见
|
|
83
|
-
[设计 20260917
|
|
90
|
+
[设计 20260917-会话编辑闭环装配](./.agents/designs/20260917-会话编辑闭环装配.md)。
|
package/cordis.patch.yml
CHANGED
|
@@ -1,62 +1,32 @@
|
|
|
1
|
+
# 本文件由 packages/bundles/better-session/tsdown.config.ts 生成,请勿手工编辑
|
|
1
2
|
- id: session-persistence-jsonl
|
|
2
3
|
disabled: true
|
|
3
|
-
|
|
4
4
|
- id: session-projection-cache
|
|
5
5
|
disabled: true
|
|
6
|
-
|
|
7
6
|
- id: session-query-sqlite
|
|
8
7
|
disabled: true
|
|
9
|
-
|
|
10
|
-
- id: session-telemetry-otel
|
|
11
|
-
disabled: true
|
|
12
|
-
|
|
13
|
-
- id: session-log-deepseek
|
|
14
|
-
disabled: true
|
|
15
|
-
|
|
16
8
|
- id: storage-json
|
|
17
9
|
disabled: true
|
|
18
|
-
|
|
19
10
|
- id: storage-domain
|
|
20
11
|
config:
|
|
21
12
|
backend: rdb
|
|
22
|
-
|
|
23
|
-
# 官方对话外壳由 fork 接管:composer 草稿要改成块序列、队列行去掉 inline edit。
|
|
24
|
-
# `ui-chat` 已回退官方行——它剩下的真实差异(token-format 死循环修复、
|
|
25
|
-
# data-composer-stats)已由 `ui-conversation-message-actions` 在
|
|
26
|
-
# `conversation.composer.dock`(id `stats`,priority -1)覆盖承载。
|
|
27
13
|
- id: ui-conversation
|
|
28
14
|
disabled: true
|
|
29
|
-
|
|
30
|
-
# 「对话管理」全局面板页(`ui-conversation-manager`):已归档会话的搜索 / 取消归档 /
|
|
31
|
-
# 删除 / 导入为新会话。上游 0.1.7 已自己删掉设置页那份归档入口(改由侧边栏视图过滤
|
|
32
|
-
# 承载),这里不再需要按 id 禁用。
|
|
33
|
-
|
|
34
15
|
- insert:
|
|
35
16
|
- id: session-branch
|
|
36
17
|
name: "@morlay/session-branch"
|
|
37
|
-
|
|
38
18
|
- id: session-rdb
|
|
39
19
|
name: "@morlay/session-rdb"
|
|
40
20
|
config:
|
|
41
21
|
type: sqlite
|
|
42
22
|
path: !!js dshHomePath('sessions', 'sessions.sqlite')
|
|
43
|
-
|
|
44
23
|
- id: ui-conversation-message-actions
|
|
45
24
|
name: "@morlay/ui-conversation-message-actions"
|
|
46
|
-
|
|
47
25
|
- id: ui-conversation-fork
|
|
48
26
|
name: "@morlay/dsh-client-ui-conversation"
|
|
49
|
-
|
|
50
|
-
# css-in-js 样式层(styled / Token / 官方 token 消费):fork 包的样式基础。
|
|
51
27
|
- id: ui-primitives-fork
|
|
52
28
|
name: "@morlay/dsh-client-ui-primitives"
|
|
53
|
-
|
|
54
|
-
# 「对话管理」全局面板页:nav 行 + main 面板(已归档会话的搜索 / 取消归档 /
|
|
55
|
-
# 删除 / 导入为新会话)。
|
|
56
29
|
- id: ui-conversation-manager
|
|
57
30
|
name: "@morlay/ui-conversation-manager"
|
|
58
|
-
|
|
59
|
-
# 引用展开(`@path` / `skill:name` 在 pre-step 注入内容):独立于上下文组装出口,
|
|
60
|
-
# 所以装在这里——它只挂 `agent/pre-step`、`inject` 只有 `skills`,不需要通道服务。
|
|
61
31
|
- id: reference
|
|
62
32
|
name: "@morlay/dsh-reference"
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@morlay/better-session",
|
|
3
|
-
"version": "0.0.21-alpha.
|
|
3
|
+
"version": "0.0.21-alpha.9",
|
|
4
4
|
"description": "dsh profile bundle: assembles @morlay/session-branch, @morlay/session-rdb, @morlay/ui-conversation-message-actions and the thin-shell fork of the conversation shell (only the files we changed, the rest imported from upstream source) into a DeepSeek Harness web profile — the rewind / retry / recall / fork closed loop on RDB persistence.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"dsh",
|
|
@@ -31,16 +31,16 @@
|
|
|
31
31
|
"./locale/*.json": "./locale/*.json"
|
|
32
32
|
},
|
|
33
33
|
"dependencies": {
|
|
34
|
-
"@morlay/dsh-client-ui-conversation": "0.0.2-alpha.
|
|
35
|
-
"@morlay/dsh-client-ui-primitives": "0.0.2-alpha.
|
|
36
|
-
"@morlay/dsh-reference": "0.0.1-alpha.
|
|
37
|
-
"@morlay/session-branch": "0.0.10-alpha.
|
|
38
|
-
"@morlay/session-rdb": "0.0.21-alpha.
|
|
39
|
-
"@morlay/ui-conversation-manager": "0.0.2-alpha.
|
|
40
|
-
"@morlay/ui-conversation-message-actions": "0.0.19-alpha.
|
|
34
|
+
"@morlay/dsh-client-ui-conversation": "0.0.2-alpha.9",
|
|
35
|
+
"@morlay/dsh-client-ui-primitives": "0.0.2-alpha.9",
|
|
36
|
+
"@morlay/dsh-reference": "0.0.1-alpha.4",
|
|
37
|
+
"@morlay/session-branch": "0.0.10-alpha.9",
|
|
38
|
+
"@morlay/session-rdb": "0.0.21-alpha.9",
|
|
39
|
+
"@morlay/ui-conversation-manager": "0.0.2-alpha.9",
|
|
40
|
+
"@morlay/ui-conversation-message-actions": "0.0.19-alpha.9"
|
|
41
41
|
},
|
|
42
42
|
"peerDependencies": {
|
|
43
|
-
"@deepseek-ai/cordis": "4.0.4"
|
|
43
|
+
"@deepseek-ai/cordis": "^4.0.4"
|
|
44
44
|
},
|
|
45
45
|
"dsh": {
|
|
46
46
|
"bundle": {
|