@dbx-tools/ui-mastra 0.9.131 → 0.9.136
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 +129 -172
- package/index.ts +3 -2
- package/package.json +6 -6
- package/src/react/_assistant-activity.ts +6 -3
- package/src/react/bubbles.tsx +8 -0
- package/src/react/chat-feedback.ts +68 -12
- package/src/react/chat-transcript.tsx +19 -2
- package/src/react/chat-view.tsx +2 -0
- package/src/react/feedback-controls.tsx +104 -0
- package/src/react/mastra-chat.tsx +12 -16
- package/src/react/thread-sidebar.tsx +4 -2
- package/src/react/types.ts +4 -1
- package/src/support/export.ts +1 -1
- package/src/support/genie-client.ts +14 -7
- package/src/support/index.ts +1 -1
- package/src/support/mastra-client.ts +8 -13
- package/src/support/request-context.ts +9 -14
- package/src/support/thread-sessions.ts +5 -5
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
import type { UIMessage } from "ai";
|
|
2
|
-
import type {
|
|
2
|
+
import type { RequestContext } from "@mastra/client-js";
|
|
3
3
|
import type { ChatStatus, MessageFeedback, PendingApproval, QueuedSteer } from "../react/types.ts";
|
|
4
4
|
|
|
5
5
|
export type { QueuedSteer } from "../react/types.ts";
|
|
6
6
|
|
|
7
7
|
/** A queued steer plus the application context captured when it was submitted. */
|
|
8
8
|
export type SessionQueuedSteer = QueuedSteer & {
|
|
9
|
-
requestContext?:
|
|
9
|
+
requestContext?: RequestContext;
|
|
10
10
|
};
|
|
11
11
|
|
|
12
12
|
/** UI target and immutable application context captured for one Mastra run. */
|
|
13
13
|
export type SessionRun = {
|
|
14
14
|
assistantId: string;
|
|
15
|
-
requestContext?:
|
|
15
|
+
requestContext?: RequestContext;
|
|
16
16
|
};
|
|
17
17
|
|
|
18
18
|
/** Session-scoped transcript + stream state for one conversation thread. */
|
|
@@ -32,9 +32,9 @@ export type ThreadSession = {
|
|
|
32
32
|
hasMoreHistory: boolean;
|
|
33
33
|
historyPage: number;
|
|
34
34
|
/** Context snapshot for the active run and approval continuation. */
|
|
35
|
-
runRequestContext?:
|
|
35
|
+
runRequestContext?: RequestContext;
|
|
36
36
|
/** Context snapshot reused when regenerating the last turn. */
|
|
37
|
-
lastRequestContext?:
|
|
37
|
+
lastRequestContext?: RequestContext;
|
|
38
38
|
/** Steers submitted mid-turn, waiting to run (oldest first). */
|
|
39
39
|
queuedSteers: SessionQueuedSteer[];
|
|
40
40
|
};
|