@morlay/ui-conversation-message-actions 0.0.19-alpha.7 → 0.0.19-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 +5 -5
- package/dist/client.cjs +1 -1
- package/dist/testing.d.cts +6 -7
- package/dist/testing.d.mts +6 -7
- package/dist/testing.mjs +906 -508
- package/locale/en.json +1 -1
- package/locale/zh.json +1 -1
- package/package.json +26 -31
- package/src/client/chat-node/MessageItem.styles.ts +2 -1
- package/src/client/composer-stats/StatsPills.tsx +4 -1
- package/cordis.patch.yml +0 -9
package/locale/en.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"meta": {
|
|
3
3
|
"title": "Message Actions",
|
|
4
|
-
"description": "Rewind / retry / fork orchestration on the host side, plus the user
|
|
4
|
+
"description": "Rewind / retry / recall / fork orchestration on the host side, plus the browser half: the conversation.chat.node user / steering renderer replacement and the conversation.composer.dock stats row override."
|
|
5
5
|
}
|
|
6
6
|
}
|
package/locale/zh.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"meta": {
|
|
3
3
|
"title": "消息动作",
|
|
4
|
-
"description": "host 侧的 rewind / retry / fork
|
|
4
|
+
"description": "host 侧的 rewind / retry / recall / fork 编排,以及浏览器侧替换 `conversation.chat.node` 的 user / steering 渲染、覆盖 `conversation.composer.dock` 的 stats 行。"
|
|
5
5
|
}
|
|
6
6
|
}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@morlay/ui-conversation-message-actions",
|
|
3
|
-
"version": "0.0.19-alpha.
|
|
4
|
-
"description": "Rewind / retry / fork orchestration (host) plus conversation.chat.node
|
|
3
|
+
"version": "0.0.19-alpha.9",
|
|
4
|
+
"description": "Rewind / retry / recall / fork orchestration (host) plus the browser half — replaces the conversation.chat.node user / steering rendering and overrides the conversation.composer.dock stats row.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"conversation-chat-node",
|
|
7
7
|
"dsh",
|
|
@@ -22,17 +22,15 @@
|
|
|
22
22
|
"locale/*.json",
|
|
23
23
|
"dist",
|
|
24
24
|
"src",
|
|
25
|
-
"cordis.patch.yml",
|
|
26
25
|
"!**/__tests__"
|
|
27
26
|
],
|
|
28
27
|
"type": "module",
|
|
29
28
|
"exports": {
|
|
30
29
|
".": "./dist/index.mjs",
|
|
31
|
-
"./invariant": "./dist/invariant.mjs",
|
|
32
30
|
"./plan": "./dist/plan.mjs",
|
|
33
31
|
"./testing": "./dist/testing.mjs",
|
|
32
|
+
"./invariant": "./dist/invariant.mjs",
|
|
34
33
|
"./package.json": "./package.json",
|
|
35
|
-
"./cordis.patch.yml": "./cordis.patch.yml",
|
|
36
34
|
"./client": {
|
|
37
35
|
"types": "./dist/client.d.cts",
|
|
38
36
|
"default": "./dist/client.cjs"
|
|
@@ -40,42 +38,39 @@
|
|
|
40
38
|
"./locale/*.json": "./locale/*.json"
|
|
41
39
|
},
|
|
42
40
|
"dependencies": {
|
|
43
|
-
"@morlay/session-branch": "0.0.10-alpha.
|
|
41
|
+
"@morlay/session-branch": "0.0.10-alpha.9"
|
|
44
42
|
},
|
|
45
43
|
"devDependencies": {
|
|
46
|
-
"@deepseek-ai/dsh-session-stats": "0.1.7-
|
|
47
|
-
"@morlay/dsh-client-ui-primitives": "0.0.2-alpha.
|
|
48
|
-
"@morlay/session-rdb": "0.0.21-alpha.
|
|
44
|
+
"@deepseek-ai/dsh-session-stats": "0.1.7-rc.2",
|
|
45
|
+
"@morlay/dsh-client-ui-primitives": "0.0.2-alpha.9",
|
|
46
|
+
"@morlay/session-rdb": "0.0.21-alpha.9",
|
|
49
47
|
"@types/react": "~18.3.1",
|
|
50
48
|
"@types/react-dom": "~18.3.0",
|
|
51
49
|
"react": "^18.2.0",
|
|
52
50
|
"react-dom": "^18.2.0"
|
|
53
51
|
},
|
|
54
52
|
"peerDependencies": {
|
|
55
|
-
"@deepseek-ai/cordis": "4.0.4",
|
|
56
|
-
"@deepseek-ai/dsh-api-session-controller": "0.1.7-
|
|
57
|
-
"@deepseek-ai/dsh-attachment": "0.1.7-
|
|
58
|
-
"@deepseek-ai/dsh-client-connection": "0.1.7-
|
|
59
|
-
"@deepseek-ai/dsh-client-store": "0.1.7-
|
|
60
|
-
"@deepseek-ai/dsh-client-ui-attachment": "0.1.7-
|
|
61
|
-
"@deepseek-ai/dsh-client-ui-chat": "0.1.7-
|
|
62
|
-
"@deepseek-ai/dsh-client-ui-primitives": "0.1.7-
|
|
63
|
-
"@deepseek-ai/dsh-client-ui-renderer": "0.1.7-
|
|
64
|
-
"@deepseek-ai/dsh-client-ui-slots": "0.1.7-
|
|
65
|
-
"@deepseek-ai/dsh-client-ui-workspace": "0.1.7-
|
|
66
|
-
"@deepseek-ai/dsh-invariants": "0.1.7-
|
|
67
|
-
"@deepseek-ai/dsh-llm": "0.1.7-
|
|
68
|
-
"@deepseek-ai/dsh-session": "0.1.7-
|
|
69
|
-
"@deepseek-ai/dsh-session-persistence": "0.1.7-
|
|
70
|
-
"@deepseek-ai/dsh-session-projection": "0.1.7-
|
|
71
|
-
"@deepseek-ai/dsh-token-meter": "0.1.7-
|
|
72
|
-
"@morlay/dsh-client-ui-conversation": "0.0.2-alpha.
|
|
73
|
-
"@morlay/dsh-client-ui-primitives": "0.0.2-alpha.
|
|
53
|
+
"@deepseek-ai/cordis": "^4.0.4",
|
|
54
|
+
"@deepseek-ai/dsh-api-session-controller": "^0.1.7-rc.2",
|
|
55
|
+
"@deepseek-ai/dsh-attachment": "^0.1.7-rc.2",
|
|
56
|
+
"@deepseek-ai/dsh-client-connection": "^0.1.7-rc.2",
|
|
57
|
+
"@deepseek-ai/dsh-client-store": "^0.1.7-rc.2",
|
|
58
|
+
"@deepseek-ai/dsh-client-ui-attachment": "^0.1.7-rc.2",
|
|
59
|
+
"@deepseek-ai/dsh-client-ui-chat": "^0.1.7-rc.2",
|
|
60
|
+
"@deepseek-ai/dsh-client-ui-primitives": "^0.1.7-rc.2",
|
|
61
|
+
"@deepseek-ai/dsh-client-ui-renderer": "^0.1.7-rc.2",
|
|
62
|
+
"@deepseek-ai/dsh-client-ui-slots": "^0.1.7-rc.2",
|
|
63
|
+
"@deepseek-ai/dsh-client-ui-workspace": "^0.1.7-rc.2",
|
|
64
|
+
"@deepseek-ai/dsh-invariants": "^0.1.7-rc.2",
|
|
65
|
+
"@deepseek-ai/dsh-llm": "^0.1.7-rc.2",
|
|
66
|
+
"@deepseek-ai/dsh-session": "^0.1.7-rc.2",
|
|
67
|
+
"@deepseek-ai/dsh-session-persistence": "^0.1.7-rc.2",
|
|
68
|
+
"@deepseek-ai/dsh-session-projection": "^0.1.7-rc.2",
|
|
69
|
+
"@deepseek-ai/dsh-token-meter": "^0.1.7-rc.2",
|
|
70
|
+
"@morlay/dsh-client-ui-conversation": "0.0.2-alpha.9",
|
|
71
|
+
"@morlay/dsh-client-ui-primitives": "0.0.2-alpha.9"
|
|
74
72
|
},
|
|
75
73
|
"dsh": {
|
|
76
|
-
"bundle": {
|
|
77
|
-
"patch": "./cordis.patch.yml"
|
|
78
|
-
},
|
|
79
74
|
"client": {
|
|
80
75
|
"platform": "web",
|
|
81
76
|
"inject": [
|
|
@@ -164,7 +164,8 @@ export const styles = {
|
|
|
164
164
|
color: "var(--dsw-alias-label-secondary)",
|
|
165
165
|
},
|
|
166
166
|
"&:focus-visible": {
|
|
167
|
-
|
|
167
|
+
// 上游 ui-chat 的 MessageItem 这轮把焦点环改成读官方焦点变量(`focus.css` 口径)。
|
|
168
|
+
outline: "1.5px solid var(--dsw-focus-ring-color, var(--dsw-alias-state-business-primary))",
|
|
168
169
|
outlineOffset: "2px",
|
|
169
170
|
},
|
|
170
171
|
},
|
|
@@ -9,7 +9,10 @@
|
|
|
9
9
|
|
|
10
10
|
import { memo, useMemo, useState } from "react";
|
|
11
11
|
import { createPortal } from "react-dom";
|
|
12
|
-
import {
|
|
12
|
+
import {
|
|
13
|
+
IconDatabaseOutlineRegular,
|
|
14
|
+
IconGaugeOutlineRegular,
|
|
15
|
+
} from "@deepseek-ai/dsh-client-ui-primitives";
|
|
13
16
|
import type { UseProjection } from "@deepseek-ai/dsh-api-session-controller/client";
|
|
14
17
|
import type { SnapshotSelectorHook } from "@deepseek-ai/dsh-client-ui-slots";
|
|
15
18
|
// Type-only: merges the sessionStats key into SessionProjectionMap for useProjection.
|
package/cordis.patch.yml
DELETED
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
# @morlay/ui-conversation-message-actions bundle patch.
|
|
2
|
-
#
|
|
3
|
-
# 在 profile 的 dsh.profile.bundles 中列出本包后,本 patch 插入编排层插件行,
|
|
4
|
-
# 注册 ctx.sessionEditor。依赖 ctx.sessionBranch(由 provider 实现插件如
|
|
5
|
-
# @morlay/session-rdb 提供),请确保其在 bundles 中排在前面。
|
|
6
|
-
|
|
7
|
-
- insert:
|
|
8
|
-
- id: ui-conversation-message-actions
|
|
9
|
-
name: "@morlay/ui-conversation-message-actions"
|