@deepseek-ai/dsh-client-ui-message-feedback 0.1.2-alpha.5 → 0.1.3-alpha.2

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.i18n.yaml CHANGED
@@ -2,5 +2,5 @@
2
2
  # side as of the last confirmed-consistent state. Both languages carry equal authority;
3
3
  # after editing either side, bring the other along and re-record with:
4
4
  # pnpm run verify-translation-pairing --write packages/client/ui-message-feedback/README.md
5
- README.md: 58e3bd3eeae2f5701a23dc3bdf7da94f72acfbba
6
- README.zh.md: f04fda4f038c2c301b21a2332f4c20ce776a629c
5
+ README.md: 171a812acc836eec243eb9f596270359c0a3aa9c
6
+ README.zh.md: e34eba9014779fc27bbd5a7ef071a086e8982f45
package/README.md CHANGED
@@ -9,7 +9,7 @@ English | [中文](README.zh.md)
9
9
 
10
10
  ## Summary
11
11
 
12
- This package adds per-message feedback to the Web GUI: a Like/Dislike pair plus an optional note, contributed as the `feedback` entry of the finalized assistant message's action strip. It renders on the closing assistant message of each turn — earlier steps of a multi-step turn produce tool rows rather than a rateable body. One controller per Session backs every message control in that Session, so a single list read seeds the whole transcript. Feedback is a sidecar: ratings and notes never enter the session log, the model context, or telemetry.
12
+ This package adds per-message feedback to the Web GUI: a Like/Dislike pair plus an optional note, contributed as the `feedback` entry of the finalized assistant message's action strip. It renders on the closing assistant message of each turn — earlier steps of a multi-step turn produce tool rows rather than a rateable body. One controller per Session backs every message control in that Session, so a single list read seeds the whole transcript. Ratings and notes are log-only Session events: they never enter model context. Deletion retracts the current item without erasing its earlier log entries.
13
13
 
14
14
  ## Table of Contents
15
15
 
@@ -48,9 +48,9 @@ The package contributes the `feedback` entry (order 10) of `conversation.chat.as
48
48
  <a id="further-exploration"></a>
49
49
  ## Further Exploration
50
50
 
51
- Read these pages when the feedback surface is not enough. They move from the browser strip to the sidecar backend and the conversation shell.
51
+ Read these pages when the feedback surface is not enough. They move from the browser strip to the Session-log backend and the conversation shell.
52
52
 
53
- - [dsh-message-feedback](../../feedback/message-feedback/README.md) — the sidecar backend that owns per-item compare-and-set.
53
+ - [dsh-message-feedback](../../feedback/message-feedback/README.md) — the Session-log backend that owns per-item compare-and-set and persistence.
54
54
  - [ui-conversation](../ui-conversation/README.md) — declares the assistant-actions strip and renders the action row.
55
55
  - [Client package map](../README.md) — adjacent browser UI packages.
56
56
 
@@ -59,11 +59,11 @@ Read these pages when the feedback surface is not enough. They move from the bro
59
59
  <a id="model-experience"></a>
60
60
  ## Model Experience
61
61
 
62
- None, as feedback is a sidecar that never enters the append-only Session log, the model context, or telemetry; no rating or note is ever visible to the model.
62
+ None, as ratings and notes are log-only events, not model input. Optional Session-log delivery uses request metadata rather than model context.
63
63
 
64
64
  #### KV Cache effect
65
65
 
66
- None; no feedback mutation touches the history tail.
66
+ None; feedback mutations leave the model-visible history unchanged.
67
67
 
68
68
  ## Known Limitations and Deferred Work
69
69
 
@@ -73,7 +73,7 @@ None; no feedback mutation touches the history tail.
73
73
  These limits define the current feedback surface. They are current package constraints, not a general rating comparison or a task backlog.
74
74
 
75
75
  - **Note size is a Host policy** — the deployment configures `maxNoteBytes` (8192 in the Web bundle) and the Host rejects an oversized note with `note-too-large`. The editor does not pre-check the limit, so an oversized note fails on save rather than while typing.
76
- - **No cross-tab push** — a second tab's rating becomes visible on reconnect or on the next conflict reply, not immediately; the sidecar publishes no live frames.
76
+ - **No cross-tab push** — a second tab's rating becomes visible on reconnect or on the next conflict reply, not immediately; the controller does not consume feedback log events.
77
77
  - **Chat view only** — the trajectory and waterfall views render no feedback controls even though their assistant nodes carry the same `messageId`.
78
78
 
79
79
  <a id="dev-note"></a>
package/README.zh.md CHANGED
@@ -9,7 +9,7 @@ kind: "package-reference"
9
9
 
10
10
  ## 概述
11
11
 
12
- 本包为 Web GUI 增加逐消息反馈:一对 Like/Dislike 按钮加一个可选备注,作为已定稿助手消息动作条的 `feedback` 条目贡献。它渲染在每个轮次的收尾助手消息上——多步骤轮次中较早的步骤产出工具行而非可评分正文。每个 Session 一个控制器支撑该 Session 内所有消息的控件,因此一次列表读取即可填充整段对话。反馈是 sidecar:评分与备注绝不进入会话日志、模型上下文或遥测。
12
+ 本包为 Web GUI 增加逐消息反馈:一对 Like/Dislike 按钮加一个可选备注,作为已定稿助手消息动作条的 `feedback` 条目贡献。它渲染在每个轮次的收尾助手消息上——多步骤轮次中较早的步骤产出工具行而非可评分正文。每个 Session 一个控制器支撑该 Session 内所有消息的控件,因此一次列表读取即可填充整段对话。评分与备注是仅写日志的 Session 事件:它们绝不进入模型上下文。删除会撤回当前条目,但不会抹除早先的日志记录。
13
13
 
14
14
  ## 目录
15
15
 
@@ -48,9 +48,9 @@ kind: "package-reference"
48
48
  <a id="further-exploration"></a>
49
49
  ## 进一步探索
50
50
 
51
- 当反馈面不够用时阅读以下页面。它们从浏览器条带进入 sidecar 后端与会话外壳。
51
+ 当反馈面不够用时阅读以下页面。它们从浏览器条带进入 Session 日志后端与会话外壳。
52
52
 
53
- - [dsh-message-feedback](../../feedback/message-feedback/README.zh.md)——拥有按条目比较并交换的 sidecar 后端。
53
+ - [dsh-message-feedback](../../feedback/message-feedback/README.zh.md)——拥有按条目比较并交换与持久化的 Session 日志后端。
54
54
  - [ui-conversation](../ui-conversation/README.zh.md)——声明助手动作条并渲染动作行。
55
55
  - [客户端包映射](../README.zh.md)——相邻的浏览器 UI 包。
56
56
 
@@ -59,11 +59,11 @@ kind: "package-reference"
59
59
  <a id="model-experience"></a>
60
60
  ## 模型体验
61
61
 
62
- 无。反馈是 sidecar,不进入 append-only 的 Session 日志、模型上下文或遥测;任何评分与备注对模型都不可见。
62
+ 无。评分与备注是仅写日志的事件,不是模型输入。可选的 Session 日志投递使用请求元数据,而非模型上下文。
63
63
 
64
64
  #### KV Cache 影响
65
65
 
66
- 无;任何反馈变更都不触碰历史尾部。
66
+ 无;反馈变更不改变模型可见的历史。
67
67
 
68
68
  ## 已知限制与延期工作
69
69
 
@@ -73,7 +73,7 @@ kind: "package-reference"
73
73
  这些限制界定了当前反馈表面。它们是当前包约束,不是通用评分对比或任务积压。
74
74
 
75
75
  - **备注大小是宿主策略**——部署方配置 `maxNoteBytes`(Web bundle 中为 8192),超长备注由宿主以 `note-too-large` 拒绝。编辑器不预先校验该上限,因此超长备注在保存时才失败,而不是在输入过程中。
76
- - **无跨标签页推送**——另一个标签页的评分要等到重连或下一次冲突响应才可见,不会立即出现;该 sidecar 不发布实时帧。
76
+ - **无跨标签页推送**——另一个标签页的评分要等到重连或下一次冲突响应才可见,不会立即出现;控制器不消费反馈日志事件。
77
77
  - **仅限对话视图**——trajectory 与 waterfall 视图不渲染反馈控件,尽管它们的助手节点也带有相同的 `messageId`。
78
78
 
79
79
  <a id="dev-note"></a>
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@deepseek-ai/dsh-client-ui-message-feedback",
3
3
  "description": "Per-message feedback controls contributed to the assistant-message action strip, backed by the messageFeedback Host Remote",
4
- "version": "0.1.2-alpha.5",
4
+ "version": "0.1.3-alpha.2",
5
5
  "publishConfig": {
6
6
  "access": "public"
7
7
  },
@@ -46,20 +46,20 @@
46
46
  "@types/react-dom": "~18.3.0",
47
47
  "react": "^18.2.0",
48
48
  "react-dom": "^18.2.0",
49
- "@deepseek-ai/dsh-api-remotes": "^0.1.2-alpha.5",
50
- "@deepseek-ai/dsh-client-connection": "^0.1.2-alpha.5",
51
- "@deepseek-ai/dsh-client-locale": "^0.1.2-alpha.5",
52
- "@deepseek-ai/dsh-client-test-runtime": "^0.1.2-alpha.5",
53
- "@deepseek-ai/dsh-client-ui-conversation": "^0.1.2-alpha.5",
54
- "@deepseek-ai/dsh-client-ui-slots": "^0.1.2-alpha.5",
55
- "@deepseek-ai/dsh-client-ui-renderer": "^0.1.2-alpha.5",
56
- "@deepseek-ai/dsh-session": "^0.1.2-alpha.5",
57
- "@deepseek-ai/dsh-typert-protocol": "^0.1.2-alpha.5",
58
- "@deepseek-ai/dsh-client-ui-chat": "^0.1.2-alpha.5",
59
- "@deepseek-ai/dsh-client-ui-session": "^0.1.2-alpha.5",
60
- "@deepseek-ai/dsh-message-feedback": "^0.1.2-alpha.5",
49
+ "@deepseek-ai/dsh-client-connection": "^0.1.3-alpha.2",
50
+ "@deepseek-ai/dsh-api-remotes": "^0.1.3-alpha.2",
51
+ "@deepseek-ai/dsh-client-test-runtime": "^0.1.3-alpha.2",
52
+ "@deepseek-ai/dsh-client-ui-primitives": "^0.1.3-alpha.2",
53
+ "@deepseek-ai/dsh-client-ui-renderer": "^0.1.3-alpha.2",
54
+ "@deepseek-ai/dsh-client-locale": "^0.1.3-alpha.2",
55
+ "@deepseek-ai/dsh-client-ui-conversation": "^0.1.3-alpha.2",
56
+ "@deepseek-ai/dsh-message-feedback": "^0.1.3-alpha.2",
57
+ "@deepseek-ai/dsh-client-ui-slots": "^0.1.3-alpha.2",
58
+ "@deepseek-ai/dsh-session": "^0.1.3-alpha.2",
61
59
  "@deepseek-ai/cordis": "^4.0.2",
62
- "@deepseek-ai/dsh-client-ui-primitives": "^0.1.2-alpha.5"
60
+ "@deepseek-ai/dsh-typert-protocol": "^0.1.3-alpha.2",
61
+ "@deepseek-ai/dsh-client-ui-chat": "^0.1.3-alpha.2",
62
+ "@deepseek-ai/dsh-client-ui-session": "^0.1.3-alpha.2"
63
63
  },
64
64
  "files": [
65
65
  "lib/index.js",