@morlay/ui-conversation-message-actions 0.0.19-alpha.4 → 0.0.19-alpha.5
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/package.json +6 -6
- package/src/client/controller.ts +3 -2
- package/src/shared.ts +0 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@morlay/ui-conversation-message-actions",
|
|
3
|
-
"version": "0.0.19-alpha.
|
|
3
|
+
"version": "0.0.19-alpha.5",
|
|
4
4
|
"description": "Rewind / retry / fork orchestration (host) plus conversation.chat.node renderer replacement (browser) — message edit / retry actions on user bubbles.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"conversation-chat-node",
|
|
@@ -38,12 +38,12 @@
|
|
|
38
38
|
}
|
|
39
39
|
},
|
|
40
40
|
"dependencies": {
|
|
41
|
-
"@morlay/session-branch": "0.0.10-alpha.
|
|
41
|
+
"@morlay/session-branch": "0.0.10-alpha.5"
|
|
42
42
|
},
|
|
43
43
|
"devDependencies": {
|
|
44
44
|
"@deepseek-ai/dsh-session-stats": "0.1.6-alpha.2",
|
|
45
|
-
"@morlay/dsh-client-ui-primitives": "0.0.2-alpha.
|
|
46
|
-
"@morlay/session-rdb": "0.0.21-alpha.
|
|
45
|
+
"@morlay/dsh-client-ui-primitives": "0.0.2-alpha.5",
|
|
46
|
+
"@morlay/session-rdb": "0.0.21-alpha.5",
|
|
47
47
|
"@types/react": "~18.3.1",
|
|
48
48
|
"@types/react-dom": "~18.3.0",
|
|
49
49
|
"react": "^18.2.0",
|
|
@@ -67,8 +67,8 @@
|
|
|
67
67
|
"@deepseek-ai/dsh-session-persistence": "0.1.6-alpha.2",
|
|
68
68
|
"@deepseek-ai/dsh-session-projection": "0.1.6-alpha.2",
|
|
69
69
|
"@deepseek-ai/dsh-token-meter": "0.1.6-alpha.2",
|
|
70
|
-
"@morlay/dsh-client-ui-conversation": "0.0.2-alpha.
|
|
71
|
-
"@morlay/dsh-client-ui-primitives": "0.0.2-alpha.
|
|
70
|
+
"@morlay/dsh-client-ui-conversation": "0.0.2-alpha.5",
|
|
71
|
+
"@morlay/dsh-client-ui-primitives": "0.0.2-alpha.5"
|
|
72
72
|
},
|
|
73
73
|
"dsh": {
|
|
74
74
|
"bundle": {
|
package/src/client/controller.ts
CHANGED
|
@@ -20,10 +20,11 @@ const EDITOR_API_PATH = SESSION_EDITOR_PATH;
|
|
|
20
20
|
* 会话窗口交给上游的事件流收敛(不重建窗口、不整页重载)。
|
|
21
21
|
*/
|
|
22
22
|
export interface SessionEditorFace {
|
|
23
|
-
|
|
23
|
+
// 属性式函数类型而非方法签名:这两动作要被渲染面解构后直接调用,没有 `this` 可言。
|
|
24
|
+
retry: (turn: number, cascade: "truncate" | "preserve") => Promise<boolean>;
|
|
24
25
|
|
|
25
26
|
// 撤回回填:文本由调用方(消息渲染面)给出**该消息的全部文本块**——不再靠 timeline 反查。
|
|
26
|
-
recall(message: EditableMessageBlock, texts: readonly string[])
|
|
27
|
+
recall: (message: EditableMessageBlock, texts: readonly string[]) => Promise<boolean>;
|
|
27
28
|
}
|
|
28
29
|
|
|
29
30
|
export class SessionEditorController {
|
package/src/shared.ts
CHANGED