@mastra/react 0.5.3-alpha.3 → 0.6.0
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/CHANGELOG.md +62 -0
- package/dist/agent/hooks.d.ts +5 -0
- package/dist/agent/hooks.d.ts.map +1 -1
- package/dist/index.cjs +337 -53
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.ts +1 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +333 -54
- package/dist/index.js.map +1 -1
- package/dist/lib/mastra-db/accumulator.d.ts.map +1 -1
- package/dist/lib/mastra-db/fromCoreUserMessage.d.ts +8 -5
- package/dist/lib/mastra-db/fromCoreUserMessage.d.ts.map +1 -1
- package/dist/lib/mastra-db/index.d.ts +2 -1
- package/dist/lib/mastra-db/index.d.ts.map +1 -1
- package/dist/lib/mastra-db/types.d.ts +17 -2
- package/dist/lib/mastra-db/types.d.ts.map +1 -1
- package/dist/ui/MessageFactory/MessageFactory.d.ts.map +1 -1
- package/dist/ui/MessageFactory/index.d.ts +1 -1
- package/dist/ui/MessageFactory/index.d.ts.map +1 -1
- package/dist/ui/MessageFactory/types.d.ts +26 -9
- package/dist/ui/MessageFactory/types.d.ts.map +1 -1
- package/dist/voice/index.d.ts +5 -0
- package/dist/voice/index.d.ts.map +1 -0
- package/dist/voice/play-stream-with-web-audio.d.ts +2 -0
- package/dist/voice/play-stream-with-web-audio.d.ts.map +1 -0
- package/dist/voice/record-mic-to-file.d.ts +2 -0
- package/dist/voice/record-mic-to-file.d.ts.map +1 -0
- package/dist/voice/use-speech-recognition.d.ts +20 -0
- package/dist/voice/use-speech-recognition.d.ts.map +1 -0
- package/package.json +5 -5
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"accumulator.d.ts","sourceRoot":"","sources":["../../../src/lib/mastra-db/accumulator.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAEV,eAAe,EACf,iBAAiB,EAIlB,MAAM,iCAAiC,CAAC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M,eAAe,GAAI,mCAAmC,mBAAmB,KAAG,eAAe,EAggCvG,CAAC;AAuJF,MAAM,WAAW,0BAA0B;IACzC,KAAK,EAAE,gBAAgB,CAAC;IACxB,YAAY,EAAE,eAAe,EAAE,CAAC;IAChC,QAAQ,EAAE,uBAAuB,CAAC;CACnC;AAwZD;;;;;GAKG;AACH,eAAO,MAAM,sBAAsB,GAAI,oCAIpC,0BAA0B,KAAG,eAAe,EAuE9C,CAAC;AAGF,OAAO,EAAE,oBAAoB,IAAI,sBAAsB,EAAE,CAAC"}
|
|
@@ -1,11 +1,14 @@
|
|
|
1
1
|
import type { MastraDBMessage } from '@mastra/core/agent/message-list';
|
|
2
2
|
import type { CoreUserMessage } from '@mastra/core/llm';
|
|
3
|
+
export declare const fromCoreUserMessageToMastraDBMessage: (coreUserMessage: CoreUserMessage) => MastraDBMessage;
|
|
3
4
|
/**
|
|
4
|
-
*
|
|
5
|
+
* Merge multiple `CoreUserMessage`s into a single canonical `MastraDBMessage`.
|
|
5
6
|
*
|
|
6
|
-
*
|
|
7
|
-
*
|
|
8
|
-
*
|
|
7
|
+
* A user turn that carries attachments arrives as several `CoreUserMessage`s
|
|
8
|
+
* (one for the text, one per attachment). Memory/reload persists and resolves
|
|
9
|
+
* that whole turn as a single multi-part user message, so the optimistic
|
|
10
|
+
* streaming display must do the same — flatten every message's parts into one
|
|
11
|
+
* `parts` array — to render identically (one bubble, not one per message).
|
|
9
12
|
*/
|
|
10
|
-
export declare const
|
|
13
|
+
export declare const fromCoreUserMessagesToMastraDBMessage: (coreUserMessages: CoreUserMessage[]) => MastraDBMessage;
|
|
11
14
|
//# sourceMappingURL=fromCoreUserMessage.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"fromCoreUserMessage.d.ts","sourceRoot":"","sources":["../../../src/lib/mastra-db/fromCoreUserMessage.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAqB,MAAM,iCAAiC,CAAC;AAC1F,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,kBAAkB,CAAC;
|
|
1
|
+
{"version":3,"file":"fromCoreUserMessage.d.ts","sourceRoot":"","sources":["../../../src/lib/mastra-db/fromCoreUserMessage.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAqB,MAAM,iCAAiC,CAAC;AAC1F,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,kBAAkB,CAAC;AAyDxD,eAAO,MAAM,oCAAoC,GAAI,iBAAiB,eAAe,KAAG,eAC/B,CAAC;AAE1D;;;;;;;;GAQG;AACH,eAAO,MAAM,qCAAqC,GAAI,kBAAkB,eAAe,EAAE,KAAG,eAC1B,CAAC"}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
export { accumulateChunk, accumulateNetworkChunk, finishStreamingAssistantMessage, mapWorkflowStreamChunkToWatchResult, } from './accumulator.js';
|
|
2
2
|
export type { AccumulateChunkArgs, AccumulateNetworkChunkArgs } from './accumulator.js';
|
|
3
|
-
export { fromCoreUserMessageToMastraDBMessage } from './fromCoreUserMessage.js';
|
|
3
|
+
export { fromCoreUserMessageToMastraDBMessage, fromCoreUserMessagesToMastraDBMessage } from './fromCoreUserMessage.js';
|
|
4
|
+
export { CLIENT_MESSAGE_ID_KEY } from './types.js';
|
|
4
5
|
export type { AccumulatorPart, BackgroundTaskEntry, CompletionResult, MastraDBMessageMetadata, MastraReasoningPart, MastraTextPart, PendingToolApprovalEntry, RequireApprovalEntry, SuspendedToolEntry, TripwireMetadata, } from './types.js';
|
|
5
6
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/lib/mastra-db/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,eAAe,EACf,sBAAsB,EACtB,+BAA+B,EAC/B,mCAAmC,GACpC,MAAM,eAAe,CAAC;AACvB,YAAY,EAAE,mBAAmB,EAAE,0BAA0B,EAAE,MAAM,eAAe,CAAC;AACrF,OAAO,EAAE,oCAAoC,EAAE,MAAM,uBAAuB,CAAC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/lib/mastra-db/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,eAAe,EACf,sBAAsB,EACtB,+BAA+B,EAC/B,mCAAmC,GACpC,MAAM,eAAe,CAAC;AACvB,YAAY,EAAE,mBAAmB,EAAE,0BAA0B,EAAE,MAAM,eAAe,CAAC;AACrF,OAAO,EAAE,oCAAoC,EAAE,qCAAqC,EAAE,MAAM,uBAAuB,CAAC;AACpH,OAAO,EAAE,qBAAqB,EAAE,MAAM,SAAS,CAAC;AAChD,YAAY,EACV,eAAe,EACf,mBAAmB,EACnB,gBAAgB,EAChB,uBAAuB,EACvB,mBAAmB,EACnB,cAAc,EACd,wBAAwB,EACxB,oBAAoB,EACpB,kBAAkB,EAClB,gBAAgB,GACjB,MAAM,SAAS,CAAC"}
|
|
@@ -43,11 +43,26 @@ export type CompletionResult = {
|
|
|
43
43
|
* fields are all optional so a single record can carry the union without forcing
|
|
44
44
|
* narrowing on the consumer side.
|
|
45
45
|
*/
|
|
46
|
+
/**
|
|
47
|
+
* Metadata key carrying a client-generated correlation id. The optimistic
|
|
48
|
+
* pending user bubble and the outgoing `sendMessage` request both stamp this
|
|
49
|
+
* id; the server echoes it back on the `data-user-message` data part so the
|
|
50
|
+
* accumulator can reconcile the pending bubble deterministically (decoupled
|
|
51
|
+
* from the server-assigned signal id). This is transient client state and is
|
|
52
|
+
* stripped once the echo is reconciled and on reload.
|
|
53
|
+
*/
|
|
54
|
+
export declare const CLIENT_MESSAGE_ID_KEY = "clientMessageId";
|
|
46
55
|
export type MastraDBMessageMetadata = {
|
|
47
56
|
/** Which run mode produced this message. */
|
|
48
57
|
mode?: 'generate' | 'stream' | 'network';
|
|
49
|
-
/**
|
|
50
|
-
|
|
58
|
+
/** Client-generated correlation id (see {@link CLIENT_MESSAGE_ID_KEY}). */
|
|
59
|
+
clientMessageId?: string;
|
|
60
|
+
/**
|
|
61
|
+
* Streaming/abort/error/tripwire surface status. `'pending'` marks an
|
|
62
|
+
* optimistically-appended user message that is awaiting its server signal
|
|
63
|
+
* echo; it is cleared once the echo arrives and is stripped on reload.
|
|
64
|
+
*/
|
|
65
|
+
status?: 'warning' | 'error' | 'tripwire' | 'pending';
|
|
51
66
|
/** Reason recorded by the upstream stream when it finishes. */
|
|
52
67
|
finishReason?: string;
|
|
53
68
|
/** Tripwire metadata when status === 'tripwire'. */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/lib/mastra-db/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,iBAAiB,EAAE,QAAQ,EAAE,MAAM,iCAAiC,CAAC;AACnF,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,qBAAqB,CAAC;AAE3D,MAAM,MAAM,sBAAsB,GAAG,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC;AAE7E;;;GAGG;AACH,MAAM,MAAM,gBAAgB,GAAG,eAAe,CAAC;AAE/C,MAAM,MAAM,gBAAgB,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;AAEvD,MAAM,MAAM,oBAAoB,GAAG;IACjC,UAAU,EAAE,MAAM,CAAC;IACnB,QAAQ,EAAE,MAAM,CAAC;IACjB,IAAI,EAAE,gBAAgB,CAAC;IACvB,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB,CAAC;AAEF,MAAM,MAAM,kBAAkB,GAAG;IAC/B,UAAU,EAAE,MAAM,CAAC;IACnB,QAAQ,EAAE,MAAM,CAAC;IACjB,IAAI,EAAE,gBAAgB,CAAC;IACvB,cAAc,EAAE,OAAO,CAAC;IACxB,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB,CAAC;AAEF,MAAM,MAAM,wBAAwB,GAA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AI,EAAE,eAAe,GAAG,eAAe,KAAK,SAAS,CAAC;CACnE;
|
|
1
|
+
{"version":3,"file":"MessageFactory.d.ts","sourceRoot":"","sources":["../../../src/ui/MessageFactory/MessageFactory.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAY,MAAM,iCAAiC,CAAC;AACjF,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAEvC,OAAO,KAAK,EAAE,eAAe,EAA2B,MAAM,qBAAqB,CAAC;AACpF,OAAO,KAAK,EAEV,eAAe,EAEf,gBAAgB,EAEhB,oBAAoB,EACpB,sBAAsB,EAEvB,MAAM,SAAS,CAAC;AAEjB,MAAM,WAAW,mBAAoB,SAAQ,gBAAgB;IAC3D,sDAAsD;IACtD,OAAO,EAAE,eAAe,CAAC;IACzB,kDAAkD;IAClD,KAAK,CAAC,EAAE,oBAAoB,CAAC;IAC7B,8EAA8E;IAC9E,MAAM,CAAC,EAAE,sBAAsB,CAAC;IAChC,+EAA+E;IAC/E,QAAQ,CAAC,EAAE,CAAC,IAAI,EAAE,eAAe,GAAG,eAAe,KAAK,SAAS,CAAC;CACnE;AAgOD;;;;;GAKG;AACH,eAAO,MAAM,cAAc,2FA/D0D,mBAAmB,6CA+D7C,CAAC"}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
export * from './MessageFactory.js';
|
|
2
|
-
export type { MessageRenderers, MessageRoleRenderers, MessageRoleRendererProps, MessageStatusRenderers, TripwireRendererProps, WarningRendererProps, ErrorRendererProps, TaskRendererProps, DynamicToolPart, MessageFactoryPart, DataPart, PartByType, TextPart, ReasoningPart, FilePart, StepStartPart, ToolInvocationPart, SourceDocumentPart, SourceUrlPart, } from './types.js';
|
|
2
|
+
export type { MessageRenderers, MessageRoleRenderers, MessageRoleRendererProps, MessageStatusRenderers, TripwireRendererProps, WarningRendererProps, ErrorRendererProps, PendingRendererProps, TaskRendererProps, DynamicToolPart, MessageFactoryPart, DataPart, PartByType, TextPart, ReasoningPart, FilePart, StepStartPart, ToolInvocationPart, SourceDocumentPart, SourceUrlPart, } from './types.js';
|
|
3
3
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/ui/MessageFactory/index.ts"],"names":[],"mappings":"AAAA,cAAc,kBAAkB,CAAC;AACjC,YAAY,EACV,gBAAgB,EAChB,oBAAoB,EACpB,wBAAwB,EACxB,sBAAsB,EACtB,qBAAqB,EACrB,oBAAoB,EACpB,kBAAkB,EAClB,iBAAiB,EACjB,eAAe,EACf,kBAAkB,EAClB,QAAQ,EACR,UAAU,EACV,QAAQ,EACR,aAAa,EACb,QAAQ,EACR,aAAa,EACb,kBAAkB,EAClB,kBAAkB,EAClB,aAAa,GACd,MAAM,SAAS,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/ui/MessageFactory/index.ts"],"names":[],"mappings":"AAAA,cAAc,kBAAkB,CAAC;AACjC,YAAY,EACV,gBAAgB,EAChB,oBAAoB,EACpB,wBAAwB,EACxB,sBAAsB,EACtB,qBAAqB,EACrB,oBAAoB,EACpB,kBAAkB,EAClB,oBAAoB,EACpB,iBAAiB,EACjB,eAAe,EACf,kBAAkB,EAClB,QAAQ,EACR,UAAU,EACV,QAAQ,EACR,aAAa,EACb,QAAQ,EACR,aAAa,EACb,kBAAkB,EAClB,kBAAkB,EAClB,aAAa,GACd,MAAM,SAAS,CAAC"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { MastraDBMessage, AIV5Type } from '@mastra/core/agent/message-list';
|
|
2
2
|
import type { IsTaskCompletePayload } from '@mastra/core/stream';
|
|
3
3
|
import type { ReactNode } from 'react';
|
|
4
|
-
import type { AccumulatorPart, TripwireMetadata } from '../../lib/mastra-db/index.js';
|
|
4
|
+
import type { AccumulatorPart, MastraReasoningPart, MastraTextPart, TripwireMetadata } from '../../lib/mastra-db/index.js';
|
|
5
5
|
/**
|
|
6
6
|
* Extract the concrete part shape for a given discriminant from the runtime
|
|
7
7
|
* accumulator union. Deriving from the already-concrete `AccumulatorPart`
|
|
@@ -11,10 +11,12 @@ import type { AccumulatorPart, TripwireMetadata } from '../../lib/mastra-db/inde
|
|
|
11
11
|
export type PartByType<T extends string> = Extract<AccumulatorPart, {
|
|
12
12
|
type: T;
|
|
13
13
|
}>;
|
|
14
|
+
type TextRuntimeExtensions = Partial<Pick<MastraTextPart, 'textId' | 'state' | 'providerMetadata' | 'createdAt'>>;
|
|
15
|
+
type ReasoningRuntimeExtensions = Partial<Pick<MastraReasoningPart, 'reasoningId' | 'state' | 'redacted' | 'providerMetadata' | 'createdAt'>>;
|
|
14
16
|
/** Narrowed part shape passed to the `Text` renderer. */
|
|
15
|
-
export type TextPart = PartByType<'text'
|
|
17
|
+
export type TextPart = Omit<PartByType<'text'>, keyof TextRuntimeExtensions> & TextRuntimeExtensions;
|
|
16
18
|
/** Narrowed part shape passed to the `Reasoning` renderer. */
|
|
17
|
-
export type ReasoningPart = PartByType<'reasoning'
|
|
19
|
+
export type ReasoningPart = Omit<PartByType<'reasoning'>, keyof ReasoningRuntimeExtensions> & ReasoningRuntimeExtensions;
|
|
18
20
|
/** Narrowed part shape passed to the `File` renderer. */
|
|
19
21
|
export type FilePart = PartByType<'file'>;
|
|
20
22
|
/** Narrowed part shape passed to the `StepStart` renderer. */
|
|
@@ -68,11 +70,11 @@ export type MessageFactoryPart = AccumulatorPart | DynamicToolPart;
|
|
|
68
70
|
* type-checked and only the renderer matching a part's `type` is ever invoked.
|
|
69
71
|
*/
|
|
70
72
|
export type MessageRenderers = {
|
|
71
|
-
Text?: (part:
|
|
72
|
-
Reasoning?: (part:
|
|
73
|
-
File?: (part:
|
|
74
|
-
StepStart?: (part:
|
|
75
|
-
ToolInvocation?: (part:
|
|
73
|
+
Text?: (part: TextPart) => ReactNode;
|
|
74
|
+
Reasoning?: (part: ReasoningPart) => ReactNode;
|
|
75
|
+
File?: (part: FilePart) => ReactNode;
|
|
76
|
+
StepStart?: (part: StepStartPart) => ReactNode;
|
|
77
|
+
ToolInvocation?: (part: ToolInvocationPart) => ReactNode;
|
|
76
78
|
/**
|
|
77
79
|
* Receives the flat `source-url` citation shape ({@link AIV5Type.SourceUrlUIPart}).
|
|
78
80
|
* Both the runtime `type: 'source-url'` part and the legacy persisted
|
|
@@ -80,7 +82,7 @@ export type MessageRenderers = {
|
|
|
80
82
|
* are dispatched here, so the renderer always gets `sourceId`/`url`/`title`.
|
|
81
83
|
*/
|
|
82
84
|
SourceUrl?: (part: SourceUrlPart) => ReactNode;
|
|
83
|
-
SourceDocument?: (part:
|
|
85
|
+
SourceDocument?: (part: SourceDocumentPart) => ReactNode;
|
|
84
86
|
Data?: (part: DataPart) => ReactNode;
|
|
85
87
|
/** Covers runtime-only `dynamic-tool` and AI SDK v5 `tool-${string}` parts. */
|
|
86
88
|
DynamicTool?: (part: DynamicToolPart) => ReactNode;
|
|
@@ -143,11 +145,24 @@ export type TaskRendererProps = Pick<IsTaskCompletePayload, 'passed'> & Partial<
|
|
|
143
145
|
text: string;
|
|
144
146
|
message: MastraDBMessage;
|
|
145
147
|
};
|
|
148
|
+
/**
|
|
149
|
+
* Props passed to the `Pending` status slot. Rendered *wrapping* the parts walk
|
|
150
|
+
* when `message.content.metadata.status === 'pending'`, so the optimistic user
|
|
151
|
+
* bubble still renders inline while the consumer applies a "sending" style.
|
|
152
|
+
*/
|
|
153
|
+
export type PendingRendererProps = {
|
|
154
|
+
children: ReactNode;
|
|
155
|
+
text: string;
|
|
156
|
+
message: MastraDBMessage;
|
|
157
|
+
};
|
|
146
158
|
/**
|
|
147
159
|
* Optional message-level slots dispatched off `message.content.metadata`.
|
|
148
160
|
*
|
|
149
161
|
* - `Tripwire` / `Warning` / `Error` are *replacement* slots: when
|
|
150
162
|
* `metadata.status` matches, the slot renders instead of the parts walk.
|
|
163
|
+
* - `Pending` is a *wrapping* slot: when `metadata.status === 'pending'` the
|
|
164
|
+
* slot wraps the parts walk so the optimistic bubble renders with a
|
|
165
|
+
* "sending" style.
|
|
151
166
|
* - `Task` is an *adjacent* slot: when a completion verdict exists it renders
|
|
152
167
|
* alongside the parts.
|
|
153
168
|
*
|
|
@@ -159,6 +174,8 @@ export type MessageStatusRenderers = {
|
|
|
159
174
|
Tripwire?: (props: TripwireRendererProps) => ReactNode;
|
|
160
175
|
Warning?: (props: WarningRendererProps) => ReactNode;
|
|
161
176
|
Error?: (props: ErrorRendererProps) => ReactNode;
|
|
177
|
+
Pending?: (props: PendingRendererProps) => ReactNode;
|
|
162
178
|
Task?: (props: TaskRendererProps) => ReactNode;
|
|
163
179
|
};
|
|
180
|
+
export {};
|
|
164
181
|
//# sourceMappingURL=types.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/ui/MessageFactory/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,QAAQ,EAAE,MAAM,iCAAiC,CAAC;AACjF,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,qBAAqB,CAAC;AACjE,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AACvC,OAAO,KAAK,EAAE,eAAe,EAAE,gBAAgB,EAAE,MAAM,qBAAqB,CAAC;
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/ui/MessageFactory/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,QAAQ,EAAE,MAAM,iCAAiC,CAAC;AACjF,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,qBAAqB,CAAC;AACjE,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AACvC,OAAO,KAAK,EAAE,eAAe,EAAE,mBAAmB,EAAE,cAAc,EAAE,gBAAgB,EAAE,MAAM,qBAAqB,CAAC;AAElH;;;;;GAKG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CAAC,KAAK,EAAE,kBAAkB,KAAK,SAAS,CAAC;IACjD,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE,oBAAoB,KAAK,SAAS,CAAC;IACrD,IAAI,CAAC,EAAE,CAAC,KAAK,EAAE,iBAAiB,KAAK,SAAS,CAAC;CAChD,CAAC"}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
export { recordMicrophoneToFile } from './record-mic-to-file.js';
|
|
2
|
+
export { playStreamWithWebAudio } from './play-stream-with-web-audio.js';
|
|
3
|
+
export { useSpeechRecognition } from './use-speech-recognition.js';
|
|
4
|
+
export type { SpeechRecognitionState, UseSpeechRecognitionArgs } from './use-speech-recognition.js';
|
|
5
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/voice/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,sBAAsB,EAAE,MAAM,sBAAsB,CAAC;AAC9D,OAAO,EAAE,sBAAsB,EAAE,MAAM,8BAA8B,CAAC;AACtE,OAAO,EAAE,oBAAoB,EAAE,MAAM,0BAA0B,CAAC;AAChE,YAAY,EAAE,sBAAsB,EAAE,wBAAwB,EAAE,MAAM,0BAA0B,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"play-stream-with-web-audio.d.ts","sourceRoot":"","sources":["../../src/voice/play-stream-with-web-audio.ts"],"names":[],"mappings":"AAAA,wBAAsB,sBAAsB,CAAC,MAAM,EAAE,cAAc,EAAE,OAAO,CAAC,EAAE,MAAM,IAAI,uBA4CxF"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"record-mic-to-file.d.ts","sourceRoot":"","sources":["../../src/voice/record-mic-to-file.ts"],"names":[],"mappings":"AAAA,wBAAsB,sBAAsB,CAAC,QAAQ,EAAE,CAAC,IAAI,EAAE,IAAI,KAAK,IAAI,0BAsB1E"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import type { MastraClient } from '@mastra/client-js';
|
|
2
|
+
type Agent = ReturnType<MastraClient['getAgent']>;
|
|
3
|
+
type VoiceRequestContext = Parameters<Agent['voice']['getSpeakers']>[0];
|
|
4
|
+
export interface SpeechRecognitionState {
|
|
5
|
+
isListening: boolean;
|
|
6
|
+
transcript: string;
|
|
7
|
+
error: string | null;
|
|
8
|
+
}
|
|
9
|
+
export interface UseSpeechRecognitionArgs {
|
|
10
|
+
language?: string;
|
|
11
|
+
agentId?: string;
|
|
12
|
+
requestContext?: VoiceRequestContext;
|
|
13
|
+
}
|
|
14
|
+
type SpeechRecognitionResult = SpeechRecognitionState & {
|
|
15
|
+
start: () => void;
|
|
16
|
+
stop: () => void;
|
|
17
|
+
};
|
|
18
|
+
export declare const useSpeechRecognition: ({ language, agentId, requestContext, }: UseSpeechRecognitionArgs) => SpeechRecognitionResult;
|
|
19
|
+
export {};
|
|
20
|
+
//# sourceMappingURL=use-speech-recognition.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"use-speech-recognition.d.ts","sourceRoot":"","sources":["../../src/voice/use-speech-recognition.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AAKtD,KAAK,KAAK,GAAG,UAAU,CAAC,YAAY,CAAC,UAAU,CAAC,CAAC,CAAC;AAClD,KAAK,mBAAmB,GAAG,UAAU,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC,aAAa,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;AAExE,MAAM,WAAW,sBAAsB;IACrC,WAAW,EAAE,OAAO,CAAC;IACrB,UAAU,EAAE,MAAM,CAAC;IACnB,KAAK,EAAE,MAAM,GAAG,IAAI,CAAC;CACtB;AAED,MAAM,WAAW,wBAAwB;IACvC,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,cAAc,CAAC,EAAE,mBAAmB,CAAC;CACtC;AAED,KAAK,uBAAuB,GAAG,sBAAsB,GAAG;IACtD,KAAK,EAAE,MAAM,IAAI,CAAC;IAClB,IAAI,EAAE,MAAM,IAAI,CAAC;CAClB,CAAC;AAEF,eAAO,MAAM,oBAAoB,GAAI,wCAIlC,wBAAwB,KAAG,uBA4C7B,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mastra/react",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.6.0",
|
|
4
4
|
"repository": {
|
|
5
5
|
"type": "git",
|
|
6
6
|
"url": "git+https://github.com/mastra-ai/mastra.git",
|
|
@@ -39,7 +39,7 @@
|
|
|
39
39
|
"lucide-react": "^0.522.0",
|
|
40
40
|
"shiki": "^1.29.2",
|
|
41
41
|
"tailwind-merge": "^3.5.0",
|
|
42
|
-
"@mastra/client-js": "1.24.0
|
|
42
|
+
"@mastra/client-js": "1.24.0"
|
|
43
43
|
},
|
|
44
44
|
"peerDependencies": {
|
|
45
45
|
"@mastra/core": ">=1.8.0-0 <2.0.0-0",
|
|
@@ -69,9 +69,9 @@
|
|
|
69
69
|
"vite": "^7.3.1",
|
|
70
70
|
"vitest": "4.1.5",
|
|
71
71
|
"zod": "^3.25.76",
|
|
72
|
-
"@internal/lint": "0.0.
|
|
73
|
-
"@internal/types-builder": "0.0.
|
|
74
|
-
"@mastra/core": "1.42.0
|
|
72
|
+
"@internal/lint": "0.0.104",
|
|
73
|
+
"@internal/types-builder": "0.0.79",
|
|
74
|
+
"@mastra/core": "1.42.0"
|
|
75
75
|
},
|
|
76
76
|
"eslintConfig": {
|
|
77
77
|
"extends": [
|