@morlay/better-session 0.1.5 → 0.1.7

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.
Files changed (2) hide show
  1. package/README.md +9 -17
  2. package/package.json +15 -8
package/README.md CHANGED
@@ -1,5 +1,9 @@
1
1
  # @morlay/better-session
2
2
 
3
+ [![NPM Version](https://img.shields.io/npm/v/%2540morlay%252Fbetter-session)](https://www.npmjs.com/package/@morlay/better-session)
4
+ [![NPM Downloads](https://img.shields.io/npm/dw/%40morlay%2Fbetter-session)](https://www.npmjs.com/package/@morlay/better-session)
5
+ [![NPM Downloads (18 months)](https://img.shields.io/npm/d18m/%2540morlay%252Fbetter-session)](https://www.npmjs.com/package/@morlay/better-session)
6
+
3
7
  profile 聚合 bundle:一次性装配 `@morlay/session-branch`、`@morlay/session-rdb`、
4
8
  `@morlay/ui-conversation-message-actions`、`@morlay/ui-conversation-manager`、`@morlay/dsh-reference` 到 DeepSeek
5
9
  Harness 的 profile,提供**就地编辑 / 重试 / 撤回 / 分支**(rewind / retry / recall / fork)闭环。对话外壳走**官方
@@ -11,10 +15,8 @@ Harness 的 profile,提供**就地编辑 / 重试 / 撤回 / 分支**(rewind
11
15
  dsh plugin --profile web add "@morlay/better-session"
12
16
  ```
13
17
 
14
- 安装带上全部子包,bundle patch([`cordis.patch.yml`](./cordis.patch.yml))自动装配四层服务,并把官方
15
- `session-persistence-jsonl` / `storage-json` / `session-projection-cache` / `session-query-sqlite` 那几行换掉
16
- (对话 UI 行不动)。装了什么、为什么这么换、边界在哪,见
17
- [设计 会话编辑闭环装配](./.agents/designs/20260917-会话编辑闭环装配.md)与
18
+ 安装带上全部子包,bundle patch([`cordis.patch.yml`](./cordis.patch.yml))自动装配四层服务。装了什么、为什么这么
19
+ 换、边界在哪,见[设计 会话编辑闭环装配](./.agents/designs/20260917-会话编辑闭环装配.md)与
18
20
  [ADR 不 fork 上游前端组件](../../../.agents/adrs/20261001-不fork上游前端组件只做插槽扩展.md)。
19
21
 
20
22
  ## 使用
@@ -37,16 +39,6 @@ await ctx.sessionBranch.forkFrom(sourceId, { atSeq: 6, childSessionId });
37
39
 
38
40
  ## 配置(rdb)
39
41
 
40
- 默认配置为 SQLite(`$DSH_HOME/sessions/sessions.sqlite`)。改配置就是改这一行的 config(bundle patch / profile
41
- patch / 设置页都可):
42
-
43
- ```yaml
44
- - id: session-rdb
45
- name: "@morlay/session-rdb"
46
- config:
47
- type: sqlite # 或 postgres + connectionString
48
- path: /abs/path/to/sessions.sqlite
49
- ```
50
-
51
- 上游 settings 只投影 volatile 字段做表单编辑,改动持久化回 entry config,不再覆盖插件 config,见
52
- [ADR-20260922-跟随上游session-format-v4](../../session/session-rdb/.agents/adrs/20260922-跟随上游session-format-v4.md)。
42
+ 默认配置为 SQLite(`$DSH_HOME/sessions/sessions.sqlite`)。改配置就是改 `session-rdb` 那一行的 config(bundle patch /
43
+ profile patch / 设置页都可)——字段、默认值与生效方式见
44
+ [`@morlay/session-rdb` 的 README](../../session/session-rdb/README.md)。
package/package.json CHANGED
@@ -1,10 +1,11 @@
1
1
  {
2
2
  "name": "@morlay/better-session",
3
- "version": "0.1.5",
3
+ "version": "0.1.7",
4
4
  "description": "dsh profile bundle: assembles @morlay/session-branch, @morlay/session-rdb, @morlay/ui-conversation-message-actions, @morlay/ui-conversation-manager and @morlay/dsh-reference into a DeepSeek Harness web profile — the rewind / retry / recall / fork closed loop on RDB persistence, with the conversation shell left on the official ui-conversation row and our extensions registered on its slots only.",
5
5
  "keywords": [
6
6
  "dsh",
7
7
  "dsh-bundle",
8
+ "dsh-plugin",
8
9
  "fork",
9
10
  "retry",
10
11
  "rewind",
@@ -26,22 +27,28 @@
26
27
  ],
27
28
  "type": "module",
28
29
  "exports": {
29
- ".": "./dist/index.mjs",
30
+ ".": {
31
+ "types": "./dist/index.d.mts",
32
+ "default": "./dist/index.mjs"
33
+ },
30
34
  "./package.json": "./package.json",
31
35
  "./cordis.patch.yml": "./cordis.patch.yml",
32
36
  "./locale/*.json": "./locale/*.json"
33
37
  },
34
38
  "dependencies": {
35
- "@morlay/dsh-reference": "0.0.6",
36
- "@morlay/session-branch": "0.1.5",
37
- "@morlay/session-rdb": "0.1.5",
38
- "@morlay/ui-conversation-manager": "0.1.5",
39
- "@morlay/ui-conversation-message-actions": "0.1.5"
39
+ "@morlay/dsh-reference": "0.0.7",
40
+ "@morlay/session-branch": "0.1.6",
41
+ "@morlay/session-rdb": "0.1.6",
42
+ "@morlay/ui-conversation-manager": "0.1.7",
43
+ "@morlay/ui-conversation-message-actions": "0.1.7"
40
44
  },
41
45
  "peerDependencies": {
42
- "@deepseek-ai/cordis": "^4.0.4"
46
+ "@deepseek-ai/cordis": "^4.0.5-alpha.2"
43
47
  },
44
48
  "icon": "./icon.svg",
49
+ "engines": {
50
+ "dsh": ">= 0.2.1-alpha.5 < 0.2.2"
51
+ },
45
52
  "dsh": {
46
53
  "bundle": {
47
54
  "patch": "./cordis.patch.yml"