@morlay/ui-conversation-message-actions 0.0.14-alpha.0 → 0.0.14-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/dist/client.js +26 -24
- package/dist/index.d.mts +2 -2
- package/dist/index.mjs +1 -1
- package/dist/{plan-Bw4zoI4N.d.mts → plan-C-_enFsA.d.mts} +1 -1
- package/dist/plan.d.mts +1 -1
- package/dist/{src-Da2ZVKlq.mjs → src-DqUEYw-N.mjs} +2 -1
- package/dist/testing.d.mts +1 -1
- package/dist/testing.mjs +1254 -80
- package/package.json +19 -19
- package/src/client/chat-node/MessageIconActions.tsx +4 -2
- package/src/index.ts +3 -2
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@morlay/ui-conversation-message-actions",
|
|
3
|
-
"version": "0.0.14-alpha.
|
|
3
|
+
"version": "0.0.14-alpha.2",
|
|
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",
|
|
@@ -35,10 +35,10 @@
|
|
|
35
35
|
"./client": "./dist/client.js"
|
|
36
36
|
},
|
|
37
37
|
"dependencies": {
|
|
38
|
-
"@morlay/session-branch": "^0.0.4-alpha.
|
|
38
|
+
"@morlay/session-branch": "^0.0.4-alpha.2"
|
|
39
39
|
},
|
|
40
40
|
"devDependencies": {
|
|
41
|
-
"@morlay/session-rdb": "^0.0.16-alpha.
|
|
41
|
+
"@morlay/session-rdb": "^0.0.16-alpha.2",
|
|
42
42
|
"@types/react": "^19.2.18",
|
|
43
43
|
"@types/react-dom": "^19.2.5",
|
|
44
44
|
"lightningcss": "^1.32.0",
|
|
@@ -47,22 +47,22 @@
|
|
|
47
47
|
},
|
|
48
48
|
"peerDependencies": {
|
|
49
49
|
"@deepseek-ai/cordis": "^4.0.2",
|
|
50
|
-
"@deepseek-ai/dsh-api-session-controller": "^0.1.
|
|
51
|
-
"@deepseek-ai/dsh-attachment": "^0.1.
|
|
52
|
-
"@deepseek-ai/dsh-client-connection": "^0.1.
|
|
53
|
-
"@deepseek-ai/dsh-client-store": "^0.1.
|
|
54
|
-
"@deepseek-ai/dsh-client-ui-attachment": "^0.1.
|
|
55
|
-
"@deepseek-ai/dsh-client-ui-chat": "^0.1.
|
|
56
|
-
"@deepseek-ai/dsh-client-ui-conversation": "^0.1.
|
|
57
|
-
"@deepseek-ai/dsh-client-ui-primitives": "^0.1.
|
|
58
|
-
"@deepseek-ai/dsh-client-ui-renderer": "^0.1.
|
|
59
|
-
"@deepseek-ai/dsh-client-ui-slots": "^0.1.
|
|
60
|
-
"@deepseek-ai/dsh-invariants": "^0.1.
|
|
61
|
-
"@deepseek-ai/dsh-llm": "^0.1.
|
|
62
|
-
"@deepseek-ai/dsh-session": "^0.1.
|
|
63
|
-
"@deepseek-ai/dsh-session-persistence": "^0.1.
|
|
64
|
-
"@deepseek-ai/dsh-session-projection": "^0.1.
|
|
65
|
-
"@deepseek-ai/dsh-token-meter": "^0.1.
|
|
50
|
+
"@deepseek-ai/dsh-api-session-controller": "^0.1.5-alpha.1",
|
|
51
|
+
"@deepseek-ai/dsh-attachment": "^0.1.5-alpha.1",
|
|
52
|
+
"@deepseek-ai/dsh-client-connection": "^0.1.5-alpha.1",
|
|
53
|
+
"@deepseek-ai/dsh-client-store": "^0.1.5-alpha.1",
|
|
54
|
+
"@deepseek-ai/dsh-client-ui-attachment": "^0.1.5-alpha.1",
|
|
55
|
+
"@deepseek-ai/dsh-client-ui-chat": "^0.1.5-alpha.1",
|
|
56
|
+
"@deepseek-ai/dsh-client-ui-conversation": "^0.1.5-alpha.1",
|
|
57
|
+
"@deepseek-ai/dsh-client-ui-primitives": "^0.1.5-alpha.1",
|
|
58
|
+
"@deepseek-ai/dsh-client-ui-renderer": "^0.1.5-alpha.1",
|
|
59
|
+
"@deepseek-ai/dsh-client-ui-slots": "^0.1.5-alpha.1",
|
|
60
|
+
"@deepseek-ai/dsh-invariants": "^0.1.5-alpha.1",
|
|
61
|
+
"@deepseek-ai/dsh-llm": "^0.1.5-alpha.1",
|
|
62
|
+
"@deepseek-ai/dsh-session": "^0.1.5-alpha.1",
|
|
63
|
+
"@deepseek-ai/dsh-session-persistence": "^0.1.5-alpha.1",
|
|
64
|
+
"@deepseek-ai/dsh-session-projection": "^0.1.5-alpha.1",
|
|
65
|
+
"@deepseek-ai/dsh-token-meter": "^0.1.5-alpha.1"
|
|
66
66
|
},
|
|
67
67
|
"dsh": {
|
|
68
68
|
"bundle": {
|
|
@@ -97,7 +97,8 @@ export function MessageIconActions({
|
|
|
97
97
|
}, [copied, text]);
|
|
98
98
|
// The dot is decorative and stays hidden, but its margins separate the
|
|
99
99
|
// readings only on screen: without the flanking spaces a reader hears one
|
|
100
|
-
// run-on string ("Ran for
|
|
100
|
+
// run-on string ("Ran for 13sTime to first token (TTFT) 0.2s12 tok/s")
|
|
101
|
+
// instead of three facts.
|
|
101
102
|
const clockEl =
|
|
102
103
|
time === undefined ? null : (
|
|
103
104
|
<span className={clock === "start" ? css.timeStart : css.timeEnd}>
|
|
@@ -117,7 +118,8 @@ export function MessageIconActions({
|
|
|
117
118
|
<span className={css.runTimeDot} aria-hidden>
|
|
118
119
|
·
|
|
119
120
|
</span>{" "}
|
|
120
|
-
{t("
|
|
121
|
+
{t("message.turnTime.ttft")}{" "}
|
|
122
|
+
{t("duration.seconds", { seconds: formatLatencySeconds(ttftMs) })}
|
|
121
123
|
</>
|
|
122
124
|
)}
|
|
123
125
|
{tokensPerSecond !== undefined && (
|
package/src/index.ts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { Service, type Context } from "@deepseek-ai/cordis";
|
|
2
2
|
import type { AssistantMessage, UserMessage } from "@deepseek-ai/dsh-llm";
|
|
3
|
+
import { SessionSeq } from "@deepseek-ai/dsh-session";
|
|
3
4
|
import type {
|
|
4
5
|
Session,
|
|
5
6
|
SessionEvent,
|
|
@@ -123,12 +124,12 @@ function appendSurfaceSeedEvent<T extends SurfaceEventType>(
|
|
|
123
124
|
): void {
|
|
124
125
|
events.push({
|
|
125
126
|
type,
|
|
126
|
-
seq: events.length,
|
|
127
|
+
seq: SessionSeq(events.length),
|
|
127
128
|
time: Date.now(),
|
|
128
129
|
data,
|
|
129
130
|
surfaceOp: intent.surfaceOp,
|
|
130
131
|
...(intent.sourceEventSeqs === undefined ? {} : { sourceEventSeqs: intent.sourceEventSeqs }),
|
|
131
|
-
} as SessionEvent<T>);
|
|
132
|
+
} as unknown as SessionEvent<T>);
|
|
132
133
|
}
|
|
133
134
|
|
|
134
135
|
function appendManualTurn(
|