@mastra/voice-google-gemini-live 0.14.4 → 0.14.5-alpha.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 +7 -0
- package/dist/_types/@internal_voice/dist/_types/@internal_ai-sdk-v5/dist/index.d.ts +4 -4
- package/dist/_types/@internal_voice/dist/_types/@internal_core/dist/base/index.d.ts +27 -27
- package/dist/_types/@internal_voice/dist/_types/@internal_core/dist/index-S1lgaKO7.d.ts +218 -0
- package/dist/_types/@internal_voice/dist/_types/@internal_core/dist/request-context/index.d.ts +119 -105
- package/dist/_types/@internal_voice/dist/_types/@internal_core/dist/types/index.d.ts +4 -2
- package/dist/docs/SKILL.md +4 -4
- package/dist/docs/assets/SOURCE_MAP.json +1 -1
- package/dist/docs/references/{docs-voice-overview.md → guides-voice-overview.md} +33 -28
- package/dist/docs/references/{docs-voice-speech-to-speech.md → guides-voice-speech-to-speech.md} +10 -10
- package/dist/docs/references/reference-voice-google-gemini-live.md +4 -4
- package/dist/index.cjs +2870 -3104
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +2869 -3102
- package/dist/index.js.map +1 -1
- package/package.json +13 -12
- package/dist/_types/@internal_voice/dist/_types/@internal_core/dist/logger/index.d.ts +0 -217
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,12 @@
|
|
|
1
1
|
# @mastra/voice-google-gemini-live
|
|
2
2
|
|
|
3
|
+
## 0.14.5-alpha.0
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Updated dependencies [[`14562d6`](https://github.com/mastra-ai/mastra/commit/14562d6ea724ed4ccb9fb079d016ec7ab1bd92a4)]:
|
|
8
|
+
- @mastra/schema-compat@1.3.5-alpha.0
|
|
9
|
+
|
|
3
10
|
## 0.14.4
|
|
4
11
|
|
|
5
12
|
### Patch Changes
|
|
@@ -2323,7 +2323,7 @@ declare interface GatewayGenerationInfoParams {
|
|
|
2323
2323
|
id: string;
|
|
2324
2324
|
}
|
|
2325
2325
|
|
|
2326
|
-
declare type GatewayImageModelId = 'bfl/flux-2-flex' | 'bfl/flux-2-klein-4b' | 'bfl/flux-2-klein-9b' | 'bfl/flux-2-max' | 'bfl/flux-2-pro' | 'bfl/flux-kontext-max' | 'bfl/flux-kontext-pro' | 'bfl/flux-pro-1.0-fill' | 'bfl/flux-pro-1.1' | 'bfl/flux-pro-1.1-ultra' | 'bytedance/seedream-4.0' | 'bytedance/seedream-4.5' | 'bytedance/seedream-5.0-lite' | 'google/imagen-4.0-fast-generate-001' | 'google/imagen-4.0-generate-001' | 'google/imagen-4.0-ultra-generate-001' | 'openai/gpt-image-1' | 'openai/gpt-image-1-mini' | 'openai/gpt-image-1.5' | 'openai/gpt-image-2' | 'prodia/flux-fast-schnell' | 'quiverai/arrow-1.1' | 'recraft/recraft-v2' | 'recraft/recraft-v3' | 'recraft/recraft-v4' | 'recraft/recraft-v4-pro' | 'recraft/recraft-v4.1' | 'recraft/recraft-v4.1-pro' | 'recraft/recraft-v4.1-utility' | 'recraft/recraft-v4.1-utility-pro' | 'xai/grok-imagine-image' | (string & {});
|
|
2326
|
+
declare type GatewayImageModelId = 'bfl/flux-2-flex' | 'bfl/flux-2-klein-4b' | 'bfl/flux-2-klein-9b' | 'bfl/flux-2-max' | 'bfl/flux-2-pro' | 'bfl/flux-kontext-max' | 'bfl/flux-kontext-pro' | 'bfl/flux-pro-1.0-fill' | 'bfl/flux-pro-1.1' | 'bfl/flux-pro-1.1-ultra' | 'bytedance/seedream-4.0' | 'bytedance/seedream-4.5' | 'bytedance/seedream-5.0-lite' | 'bytedance/seedream-5.0-pro' | 'google/imagen-4.0-fast-generate-001' | 'google/imagen-4.0-generate-001' | 'google/imagen-4.0-ultra-generate-001' | 'openai/gpt-image-1' | 'openai/gpt-image-1-mini' | 'openai/gpt-image-1.5' | 'openai/gpt-image-2' | 'prodia/flux-fast-schnell' | 'quiverai/arrow-1.1' | 'recraft/recraft-v2' | 'recraft/recraft-v3' | 'recraft/recraft-v4' | 'recraft/recraft-v4-pro' | 'recraft/recraft-v4.1' | 'recraft/recraft-v4.1-pro' | 'recraft/recraft-v4.1-utility' | 'recraft/recraft-v4.1-utility-pro' | 'xai/grok-imagine-image' | (string & {});
|
|
2327
2327
|
|
|
2328
2328
|
declare interface GatewayLanguageModelEntry {
|
|
2329
2329
|
/**
|
|
@@ -2374,7 +2374,7 @@ declare interface GatewayLanguageModelEntry {
|
|
|
2374
2374
|
|
|
2375
2375
|
declare type GatewayLanguageModelSpecification = Pick<LanguageModelV2, 'specificationVersion' | 'provider' | 'modelId'>;
|
|
2376
2376
|
|
|
2377
|
-
export declare type GatewayModelId = 'alibaba/qwen-3-14b' | 'alibaba/qwen-3-235b' | 'alibaba/qwen-3-30b' | 'alibaba/qwen-3-32b' | 'alibaba/qwen-3.6-max-preview' | 'alibaba/qwen3-235b-a22b-thinking' | 'alibaba/qwen3-coder' | 'alibaba/qwen3-coder-30b-a3b' | 'alibaba/qwen3-coder-next' | 'alibaba/qwen3-coder-plus' | 'alibaba/qwen3-max' | 'alibaba/qwen3-max-preview' | 'alibaba/qwen3-max-thinking' | 'alibaba/qwen3-next-80b-a3b-instruct' | 'alibaba/qwen3-next-80b-a3b-thinking' | 'alibaba/qwen3-vl-235b-a22b-instruct' | 'alibaba/qwen3-vl-instruct' | 'alibaba/qwen3-vl-thinking' | 'alibaba/qwen3.5-flash' | 'alibaba/qwen3.5-plus' | 'alibaba/qwen3.6-27b' | 'alibaba/qwen3.6-plus' | 'alibaba/qwen3.7-max' | 'alibaba/qwen3.7-plus' | 'amazon/nova-2-lite' | 'amazon/nova-lite' | 'amazon/nova-micro' | 'amazon/nova-pro' | 'anthropic/claude-3-haiku' | 'anthropic/claude-
|
|
2377
|
+
export declare type GatewayModelId = 'alibaba/qwen-3-14b' | 'alibaba/qwen-3-235b' | 'alibaba/qwen-3-30b' | 'alibaba/qwen-3-32b' | 'alibaba/qwen-3.6-max-preview' | 'alibaba/qwen3-235b-a22b-thinking' | 'alibaba/qwen3-coder' | 'alibaba/qwen3-coder-30b-a3b' | 'alibaba/qwen3-coder-next' | 'alibaba/qwen3-coder-plus' | 'alibaba/qwen3-max' | 'alibaba/qwen3-max-preview' | 'alibaba/qwen3-max-thinking' | 'alibaba/qwen3-next-80b-a3b-instruct' | 'alibaba/qwen3-next-80b-a3b-thinking' | 'alibaba/qwen3-vl-235b-a22b-instruct' | 'alibaba/qwen3-vl-instruct' | 'alibaba/qwen3-vl-thinking' | 'alibaba/qwen3.5-flash' | 'alibaba/qwen3.5-plus' | 'alibaba/qwen3.6-27b' | 'alibaba/qwen3.6-plus' | 'alibaba/qwen3.7-max' | 'alibaba/qwen3.7-plus' | 'amazon/nova-2-lite' | 'amazon/nova-lite' | 'amazon/nova-micro' | 'amazon/nova-pro' | 'anthropic/claude-3-haiku' | 'anthropic/claude-fable-5' | 'anthropic/claude-haiku-4.5' | 'anthropic/claude-opus-4' | 'anthropic/claude-opus-4.1' | 'anthropic/claude-opus-4.5' | 'anthropic/claude-opus-4.6' | 'anthropic/claude-opus-4.7' | 'anthropic/claude-opus-4.7-fast' | 'anthropic/claude-opus-4.8' | 'anthropic/claude-opus-4.8-fast' | 'anthropic/claude-sonnet-4' | 'anthropic/claude-sonnet-4.5' | 'anthropic/claude-sonnet-4.6' | 'anthropic/claude-sonnet-5' | 'arcee-ai/trinity-large-thinking' | 'arcee-ai/trinity-mini' | 'bytedance/seed-1.6' | 'bytedance/seed-1.8' | 'cohere/command-a' | 'deepseek/deepseek-r1' | 'deepseek/deepseek-v3' | 'deepseek/deepseek-v3.1' | 'deepseek/deepseek-v3.1-terminus' | 'deepseek/deepseek-v3.2' | 'deepseek/deepseek-v3.2-thinking' | 'deepseek/deepseek-v4-flash' | 'deepseek/deepseek-v4-pro' | 'google/gemini-2.5-flash' | 'google/gemini-2.5-flash-image' | 'google/gemini-2.5-flash-lite' | 'google/gemini-2.5-pro' | 'google/gemini-3-flash' | 'google/gemini-3-pro-image' | 'google/gemini-3-pro-preview' | 'google/gemini-3.1-flash-image' | 'google/gemini-3.1-flash-image-preview' | 'google/gemini-3.1-flash-lite' | 'google/gemini-3.1-flash-lite-image' | 'google/gemini-3.1-flash-lite-preview' | 'google/gemini-3.1-pro-preview' | 'google/gemini-3.5-flash' | 'google/gemini-omni-flash-preview' | 'google/gemma-4-26b-a4b-it' | 'google/gemma-4-31b-it' | 'inception/mercury-2' | 'inception/mercury-coder-small' | 'interfaze/interfaze-beta' | 'kwaipilot/kat-coder-air-v2.5' | 'kwaipilot/kat-coder-pro-v1' | 'kwaipilot/kat-coder-pro-v2' | 'kwaipilot/kat-coder-pro-v2.5' | 'meta/llama-3.1-70b' | 'meta/llama-3.1-8b' | 'meta/llama-3.2-11b' | 'meta/llama-3.2-1b' | 'meta/llama-3.2-3b' | 'meta/llama-3.2-90b' | 'meta/llama-3.3-70b' | 'meta/llama-4-maverick' | 'meta/llama-4-scout' | 'meta/muse-spark-1.1' | 'minimax/minimax-m2' | 'minimax/minimax-m2.1' | 'minimax/minimax-m2.1-lightning' | 'minimax/minimax-m2.5' | 'minimax/minimax-m2.5-highspeed' | 'minimax/minimax-m2.7' | 'minimax/minimax-m2.7-highspeed' | 'minimax/minimax-m3' | 'mistral/codestral' | 'mistral/devstral-2' | 'mistral/devstral-small-2' | 'mistral/magistral-medium' | 'mistral/magistral-small' | 'mistral/ministral-14b' | 'mistral/ministral-3b' | 'mistral/ministral-8b' | 'mistral/mistral-large-3' | 'mistral/mistral-medium' | 'mistral/mistral-medium-3.5' | 'mistral/mistral-nemo' | 'mistral/mistral-small' | 'mistral/pixtral-12b' | 'moonshotai/kimi-k2' | 'moonshotai/kimi-k2-thinking' | 'moonshotai/kimi-k2.5' | 'moonshotai/kimi-k2.6' | 'moonshotai/kimi-k2.7-code' | 'moonshotai/kimi-k2.7-code-highspeed' | 'moonshotai/kimi-k3' | 'morph/morph-v3-fast' | 'morph/morph-v3-large' | 'nvidia/nemotron-3-nano-30b-a3b' | 'nvidia/nemotron-3-super-120b-a12b' | 'nvidia/nemotron-3-ultra-550b-a55b' | 'nvidia/nemotron-nano-12b-v2-vl' | 'nvidia/nemotron-nano-9b-v2' | 'openai/gpt-3.5-turbo' | 'openai/gpt-4-turbo' | 'openai/gpt-4.1' | 'openai/gpt-4.1-mini' | 'openai/gpt-4.1-nano' | 'openai/gpt-4o' | 'openai/gpt-4o-mini' | 'openai/gpt-4o-mini-search-preview' | 'openai/gpt-5' | 'openai/gpt-5-chat' | 'openai/gpt-5-codex' | 'openai/gpt-5-mini' | 'openai/gpt-5-nano' | 'openai/gpt-5-pro' | 'openai/gpt-5.1-codex' | 'openai/gpt-5.1-codex-max' | 'openai/gpt-5.1-codex-mini' | 'openai/gpt-5.1-instant' | 'openai/gpt-5.1-thinking' | 'openai/gpt-5.2' | 'openai/gpt-5.2-chat' | 'openai/gpt-5.2-codex' | 'openai/gpt-5.2-pro' | 'openai/gpt-5.3-chat' | 'openai/gpt-5.3-codex' | 'openai/gpt-5.4' | 'openai/gpt-5.4-mini' | 'openai/gpt-5.4-nano' | 'openai/gpt-5.4-pro' | 'openai/gpt-5.5' | 'openai/gpt-5.5-pro' | 'openai/gpt-5.6-luna' | 'openai/gpt-5.6-sol' | 'openai/gpt-5.6-terra' | 'openai/gpt-oss-120b' | 'openai/gpt-oss-20b' | 'openai/gpt-oss-safeguard-20b' | 'openai/o1' | 'openai/o3' | 'openai/o3-deep-research' | 'openai/o3-mini' | 'openai/o3-pro' | 'openai/o4-mini' | 'perplexity/sonar' | 'perplexity/sonar-pro' | 'perplexity/sonar-reasoning-pro' | 'sakana/fugu-ultra' | 'stepfun/step-3.5-flash' | 'stepfun/step-3.7-flash' | 'thinkingmachines/inkling' | 'xai/grok-4.1-fast-non-reasoning' | 'xai/grok-4.1-fast-reasoning' | 'xai/grok-4.20-multi-agent' | 'xai/grok-4.20-multi-agent-beta' | 'xai/grok-4.20-non-reasoning' | 'xai/grok-4.20-non-reasoning-beta' | 'xai/grok-4.20-reasoning' | 'xai/grok-4.20-reasoning-beta' | 'xai/grok-4.3' | 'xai/grok-4.5' | 'xai/grok-build-0.1' | 'xiaomi/mimo-v2.5' | 'xiaomi/mimo-v2.5-pro' | 'zai/glm-4.5' | 'zai/glm-4.5-air' | 'zai/glm-4.5v' | 'zai/glm-4.6' | 'zai/glm-4.6v' | 'zai/glm-4.6v-flash' | 'zai/glm-4.7' | 'zai/glm-4.7-flash' | 'zai/glm-4.7-flashx' | 'zai/glm-5' | 'zai/glm-5-turbo' | 'zai/glm-5.1' | 'zai/glm-5.2' | 'zai/glm-5.2-fast' | 'zai/glm-5v-turbo' | (string & {});
|
|
2378
2378
|
|
|
2379
2379
|
declare interface GatewayProvider extends ProviderV2 {
|
|
2380
2380
|
(modelId: GatewayModelId): LanguageModelV2;
|
|
@@ -7635,8 +7635,8 @@ export declare type Tool<INPUT extends JSONValue_2 | unknown | never = any, OUTP
|
|
|
7635
7635
|
*/
|
|
7636
7636
|
inputSchema: FlexibleSchema<INPUT>;
|
|
7637
7637
|
/**
|
|
7638
|
-
* Optional function that is called when the
|
|
7639
|
-
*
|
|
7638
|
+
* Optional function that is called when the model starts generating the tool input.
|
|
7639
|
+
* In non-streaming contexts, it is called immediately before `onInputAvailable`.
|
|
7640
7640
|
*/
|
|
7641
7641
|
onInputStart?: (options: ToolCallOptions) => void | PromiseLike<void>;
|
|
7642
7642
|
/**
|
|
@@ -1,31 +1,31 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
import { i as IMastraLogger, u as RegisteredLogger } from "../index-S1lgaKO7.js";
|
|
2
|
+
//#region src/base/MastraBase.d.ts
|
|
4
3
|
declare class MastraBase {
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
4
|
+
#private;
|
|
5
|
+
component: RegisteredLogger;
|
|
6
|
+
protected logger: IMastraLogger;
|
|
7
|
+
name?: string;
|
|
8
|
+
constructor({ component, name, rawConfig }: {
|
|
9
|
+
component?: RegisteredLogger;
|
|
8
10
|
name?: string;
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
* @param logger
|
|
27
|
-
*/
|
|
28
|
-
__setLogger(logger: IMastraLogger): void;
|
|
11
|
+
rawConfig?: Record<string, unknown>;
|
|
12
|
+
});
|
|
13
|
+
/**
|
|
14
|
+
* Returns the raw storage configuration this primitive was created from,
|
|
15
|
+
* or undefined if it was created from code.
|
|
16
|
+
*/
|
|
17
|
+
toRawConfig(): Record<string, unknown> | undefined;
|
|
18
|
+
/**
|
|
19
|
+
* Sets the raw storage configuration for this primitive.
|
|
20
|
+
* @internal
|
|
21
|
+
*/
|
|
22
|
+
__setRawConfig(rawConfig: Record<string, unknown>): void;
|
|
23
|
+
/**
|
|
24
|
+
* Set the logger for the agent
|
|
25
|
+
* @param logger
|
|
26
|
+
*/
|
|
27
|
+
__setLogger(logger: IMastraLogger): void;
|
|
29
28
|
}
|
|
30
|
-
|
|
29
|
+
//#endregion
|
|
31
30
|
export { MastraBase };
|
|
31
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1,218 @@
|
|
|
1
|
+
import { Transform } from "stream";
|
|
2
|
+
//#region src/logger/index.d.ts
|
|
3
|
+
declare const RegisteredLogger: {
|
|
4
|
+
readonly AGENT: "AGENT";
|
|
5
|
+
readonly OBSERVABILITY: "OBSERVABILITY";
|
|
6
|
+
readonly AUTH: "AUTH";
|
|
7
|
+
readonly BROWSER: "BROWSER";
|
|
8
|
+
readonly NETWORK: "NETWORK";
|
|
9
|
+
readonly WORKFLOW: "WORKFLOW";
|
|
10
|
+
readonly LLM: "LLM";
|
|
11
|
+
readonly TTS: "TTS";
|
|
12
|
+
readonly VOICE: "VOICE";
|
|
13
|
+
readonly VECTOR: "VECTOR";
|
|
14
|
+
readonly BUNDLER: "BUNDLER";
|
|
15
|
+
readonly DEPLOYER: "DEPLOYER";
|
|
16
|
+
readonly MEMORY: "MEMORY";
|
|
17
|
+
readonly STORAGE: "STORAGE";
|
|
18
|
+
readonly EMBEDDINGS: "EMBEDDINGS";
|
|
19
|
+
readonly MCP_SERVER: "MCP_SERVER";
|
|
20
|
+
readonly SERVER_CACHE: "SERVER_CACHE";
|
|
21
|
+
readonly SERVER: "SERVER";
|
|
22
|
+
readonly WORKSPACE: "WORKSPACE";
|
|
23
|
+
readonly CHANNEL: "CHANNEL";
|
|
24
|
+
};
|
|
25
|
+
type RegisteredLogger = (typeof RegisteredLogger)[keyof typeof RegisteredLogger];
|
|
26
|
+
declare const LogLevel: {
|
|
27
|
+
readonly DEBUG: "debug";
|
|
28
|
+
readonly INFO: "info";
|
|
29
|
+
readonly WARN: "warn";
|
|
30
|
+
readonly ERROR: "error";
|
|
31
|
+
readonly NONE: "silent";
|
|
32
|
+
};
|
|
33
|
+
type LogLevel = (typeof LogLevel)[keyof typeof LogLevel];
|
|
34
|
+
interface BaseLogMessage {
|
|
35
|
+
runId?: string;
|
|
36
|
+
msg: string;
|
|
37
|
+
level: LogLevel;
|
|
38
|
+
time: Date;
|
|
39
|
+
pid: number;
|
|
40
|
+
hostname: string;
|
|
41
|
+
name: string;
|
|
42
|
+
}
|
|
43
|
+
declare abstract class LoggerTransport extends Transform {
|
|
44
|
+
constructor(opts?: any);
|
|
45
|
+
listLogsByRunId(_args: {
|
|
46
|
+
runId: string;
|
|
47
|
+
fromDate?: Date;
|
|
48
|
+
toDate?: Date;
|
|
49
|
+
logLevel?: LogLevel;
|
|
50
|
+
filters?: Record<string, any>;
|
|
51
|
+
page?: number;
|
|
52
|
+
perPage?: number;
|
|
53
|
+
}): Promise<{
|
|
54
|
+
logs: BaseLogMessage[];
|
|
55
|
+
total: number;
|
|
56
|
+
page: number;
|
|
57
|
+
perPage: number;
|
|
58
|
+
hasMore: boolean;
|
|
59
|
+
}>;
|
|
60
|
+
listLogs(_args?: {
|
|
61
|
+
fromDate?: Date;
|
|
62
|
+
toDate?: Date;
|
|
63
|
+
logLevel?: LogLevel;
|
|
64
|
+
filters?: Record<string, any>;
|
|
65
|
+
returnPaginationResults?: boolean;
|
|
66
|
+
page?: number;
|
|
67
|
+
perPage?: number;
|
|
68
|
+
}): Promise<{
|
|
69
|
+
logs: BaseLogMessage[];
|
|
70
|
+
total: number;
|
|
71
|
+
page: number;
|
|
72
|
+
perPage: number;
|
|
73
|
+
hasMore: boolean;
|
|
74
|
+
}>;
|
|
75
|
+
}
|
|
76
|
+
declare const createCustomTransport: (stream: Transform, listLogs?: LoggerTransport["listLogs"], listLogsByRunId?: LoggerTransport["listLogsByRunId"]) => LoggerTransport;
|
|
77
|
+
interface IMastraLogger {
|
|
78
|
+
debug(message: string, ...args: any[]): void;
|
|
79
|
+
info(message: string, ...args: any[]): void;
|
|
80
|
+
warn(message: string, ...args: any[]): void;
|
|
81
|
+
error(message: string, ...args: any[]): void;
|
|
82
|
+
trackException(error: Error, metadata?: Record<string, unknown>): void;
|
|
83
|
+
getTransports(): Map<string, LoggerTransport>;
|
|
84
|
+
listLogs(_transportId: string, _params?: {
|
|
85
|
+
fromDate?: Date;
|
|
86
|
+
toDate?: Date;
|
|
87
|
+
logLevel?: LogLevel;
|
|
88
|
+
filters?: Record<string, any>;
|
|
89
|
+
page?: number;
|
|
90
|
+
perPage?: number;
|
|
91
|
+
}): Promise<{
|
|
92
|
+
logs: BaseLogMessage[];
|
|
93
|
+
total: number;
|
|
94
|
+
page: number;
|
|
95
|
+
perPage: number;
|
|
96
|
+
hasMore: boolean;
|
|
97
|
+
}>;
|
|
98
|
+
listLogsByRunId(_args: {
|
|
99
|
+
transportId: string;
|
|
100
|
+
runId: string;
|
|
101
|
+
fromDate?: Date;
|
|
102
|
+
toDate?: Date;
|
|
103
|
+
logLevel?: LogLevel;
|
|
104
|
+
filters?: Record<string, any>;
|
|
105
|
+
page?: number;
|
|
106
|
+
perPage?: number;
|
|
107
|
+
}): Promise<{
|
|
108
|
+
logs: BaseLogMessage[];
|
|
109
|
+
total: number;
|
|
110
|
+
page: number;
|
|
111
|
+
perPage: number;
|
|
112
|
+
hasMore: boolean;
|
|
113
|
+
}>;
|
|
114
|
+
}
|
|
115
|
+
declare abstract class MastraLogger implements IMastraLogger {
|
|
116
|
+
protected name: string;
|
|
117
|
+
protected level: LogLevel;
|
|
118
|
+
protected transports: Map<string, LoggerTransport>;
|
|
119
|
+
constructor(options?: {
|
|
120
|
+
name?: string;
|
|
121
|
+
level?: LogLevel;
|
|
122
|
+
transports?: Record<string, LoggerTransport>;
|
|
123
|
+
});
|
|
124
|
+
abstract debug(message: string, ...args: any[]): void;
|
|
125
|
+
abstract info(message: string, ...args: any[]): void;
|
|
126
|
+
abstract warn(message: string, ...args: any[]): void;
|
|
127
|
+
abstract error(message: string, ...args: any[]): void;
|
|
128
|
+
getTransports(): Map<string, LoggerTransport>;
|
|
129
|
+
trackException(_error: Error, _metadata?: Record<string, unknown>): void;
|
|
130
|
+
listLogs(transportId: string, params?: {
|
|
131
|
+
fromDate?: Date;
|
|
132
|
+
toDate?: Date;
|
|
133
|
+
logLevel?: LogLevel;
|
|
134
|
+
filters?: Record<string, any>;
|
|
135
|
+
page?: number;
|
|
136
|
+
perPage?: number;
|
|
137
|
+
}): Promise<{
|
|
138
|
+
logs: BaseLogMessage[];
|
|
139
|
+
total: number;
|
|
140
|
+
page: number;
|
|
141
|
+
perPage: number;
|
|
142
|
+
hasMore: boolean;
|
|
143
|
+
}>;
|
|
144
|
+
listLogsByRunId({ transportId, runId, fromDate, toDate, logLevel, filters, page, perPage }: {
|
|
145
|
+
transportId: string;
|
|
146
|
+
runId: string;
|
|
147
|
+
fromDate?: Date;
|
|
148
|
+
toDate?: Date;
|
|
149
|
+
logLevel?: LogLevel;
|
|
150
|
+
filters?: Record<string, any>;
|
|
151
|
+
page?: number;
|
|
152
|
+
perPage?: number;
|
|
153
|
+
}): Promise<{
|
|
154
|
+
logs: BaseLogMessage[];
|
|
155
|
+
total: number;
|
|
156
|
+
page: number;
|
|
157
|
+
perPage: number;
|
|
158
|
+
hasMore: boolean;
|
|
159
|
+
}>;
|
|
160
|
+
}
|
|
161
|
+
type LogFilterContext = {
|
|
162
|
+
component?: RegisteredLogger;
|
|
163
|
+
level: LogLevel;
|
|
164
|
+
message: string;
|
|
165
|
+
args: unknown[];
|
|
166
|
+
};
|
|
167
|
+
type LogFilter = (ctx: LogFilterContext) => boolean;
|
|
168
|
+
interface ConsoleLoggerOptions {
|
|
169
|
+
name?: string;
|
|
170
|
+
level?: LogLevel;
|
|
171
|
+
component?: RegisteredLogger;
|
|
172
|
+
filter?: LogFilter;
|
|
173
|
+
}
|
|
174
|
+
declare class ConsoleLogger extends MastraLogger {
|
|
175
|
+
protected component?: RegisteredLogger;
|
|
176
|
+
protected filter?: LogFilter;
|
|
177
|
+
constructor(options?: ConsoleLoggerOptions);
|
|
178
|
+
child(componentOrBindings: RegisteredLogger | Record<string, unknown>): ConsoleLogger;
|
|
179
|
+
private shouldLog;
|
|
180
|
+
private prefix;
|
|
181
|
+
debug(message: string, ...args: any[]): void;
|
|
182
|
+
info(message: string, ...args: any[]): void;
|
|
183
|
+
warn(message: string, ...args: any[]): void;
|
|
184
|
+
error(message: string, ...args: any[]): void;
|
|
185
|
+
listLogs(_transportId: string, _params?: {
|
|
186
|
+
fromDate?: Date;
|
|
187
|
+
toDate?: Date;
|
|
188
|
+
logLevel?: LogLevel;
|
|
189
|
+
filters?: Record<string, any>;
|
|
190
|
+
page?: number;
|
|
191
|
+
perPage?: number;
|
|
192
|
+
}): Promise<{
|
|
193
|
+
logs: never[];
|
|
194
|
+
total: number;
|
|
195
|
+
page: number;
|
|
196
|
+
perPage: number;
|
|
197
|
+
hasMore: boolean;
|
|
198
|
+
}>;
|
|
199
|
+
listLogsByRunId(_args: {
|
|
200
|
+
transportId: string;
|
|
201
|
+
runId: string;
|
|
202
|
+
fromDate?: Date;
|
|
203
|
+
toDate?: Date;
|
|
204
|
+
logLevel?: LogLevel;
|
|
205
|
+
filters?: Record<string, any>;
|
|
206
|
+
page?: number;
|
|
207
|
+
perPage?: number;
|
|
208
|
+
}): Promise<{
|
|
209
|
+
logs: never[];
|
|
210
|
+
total: number;
|
|
211
|
+
page: number;
|
|
212
|
+
perPage: number;
|
|
213
|
+
hasMore: boolean;
|
|
214
|
+
}>;
|
|
215
|
+
}
|
|
216
|
+
//#endregion
|
|
217
|
+
export { LogFilter as a, LoggerTransport as c, createCustomTransport as d, IMastraLogger as i, MastraLogger as l, ConsoleLogger as n, LogFilterContext as o, ConsoleLoggerOptions as r, LogLevel as s, BaseLogMessage as t, RegisteredLogger as u };
|
|
218
|
+
//# sourceMappingURL=index-S1lgaKO7.d.ts.map
|
package/dist/_types/@internal_voice/dist/_types/@internal_core/dist/request-context/index.d.ts
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
}[keyof T][];
|
|
1
|
+
//#region src/request-context/index.d.ts
|
|
2
|
+
type RecordToTuple<T> = { [K in keyof T]: [K, T[K]]; }[keyof T][];
|
|
4
3
|
/**
|
|
5
4
|
* Reserved key for setting resourceId from middleware.
|
|
6
5
|
* When set in RequestContext, this takes precedence over client-provided values
|
|
@@ -46,112 +45,127 @@ declare const MASTRA_VERSIONS_KEY = "mastra__versions";
|
|
|
46
45
|
*/
|
|
47
46
|
declare const MASTRA_AUTH_TOKEN_KEY = "mastra__authToken";
|
|
48
47
|
type VersionSelector = {
|
|
49
|
-
|
|
48
|
+
versionId: string;
|
|
50
49
|
} | {
|
|
51
|
-
|
|
50
|
+
status: 'draft' | 'published';
|
|
52
51
|
};
|
|
53
52
|
type VersionOverrides = {
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
53
|
+
agents?: Record<string, VersionSelector>;
|
|
54
|
+
/** Fallback status for sub-agents (and future primitives) without an explicit entry. */
|
|
55
|
+
defaultStatus?: 'draft' | 'published';
|
|
57
56
|
};
|
|
58
57
|
declare function mergeVersionOverrides(base?: VersionOverrides, overrides?: VersionOverrides): VersionOverrides | undefined;
|
|
59
58
|
declare class RequestContext<Values extends Record<string, any> | unknown = unknown> {
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
59
|
+
private registry;
|
|
60
|
+
constructor(iterable?: Values extends Record<string, any> ? RecordToTuple<Partial<Values>> : Iterable<readonly [string, unknown]>);
|
|
61
|
+
/**
|
|
62
|
+
* set a value with strict typing if `Values` is a Record and the key exists in it.
|
|
63
|
+
*/
|
|
64
|
+
set<K extends (Values extends Record<string, any> ? keyof Values : string)>(key: K, value: Values extends Record<string, any> ? (K extends keyof Values ? Values[K] : never) : unknown): void;
|
|
65
|
+
/**
|
|
66
|
+
* Get a value with its type
|
|
67
|
+
*/
|
|
68
|
+
get<K extends (Values extends Record<string, any> ? keyof Values : string), R = Values extends Record<string, any> ? (K extends keyof Values ? Values[K] : never) : unknown>(key: K): R;
|
|
69
|
+
/**
|
|
70
|
+
* Check if a key exists in the container
|
|
71
|
+
*/
|
|
72
|
+
has<K extends (Values extends Record<string, any> ? keyof Values : string)>(key: K): boolean;
|
|
73
|
+
/**
|
|
74
|
+
* Delete a value by key
|
|
75
|
+
*/
|
|
76
|
+
delete<K extends (Values extends Record<string, any> ? keyof Values : string)>(key: K): boolean;
|
|
77
|
+
/**
|
|
78
|
+
* Clear all values from the container
|
|
79
|
+
*/
|
|
80
|
+
clear(): void;
|
|
81
|
+
/**
|
|
82
|
+
* Get all keys in the container
|
|
83
|
+
*/
|
|
84
|
+
keys(): IterableIterator<Values extends Record<string, any> ? keyof Values : string>;
|
|
85
|
+
/**
|
|
86
|
+
* Get all values in the container
|
|
87
|
+
*/
|
|
88
|
+
values(): IterableIterator<Values extends Record<string, any> ? Values[keyof Values] : unknown>;
|
|
89
|
+
/**
|
|
90
|
+
* Get all entries in the container.
|
|
91
|
+
* Returns a discriminated union of tuples for proper type narrowing when iterating.
|
|
92
|
+
*/
|
|
93
|
+
entries(): IterableIterator<Values extends Record<string, any> ? { [K in keyof Values]: [K, Values[K]]; }[keyof Values] : [string, unknown]>;
|
|
94
|
+
/**
|
|
95
|
+
* Get the size of the container
|
|
96
|
+
*/
|
|
97
|
+
size(): number;
|
|
98
|
+
/**
|
|
99
|
+
* Execute a function for each entry in the container.
|
|
100
|
+
* The callback receives properly typed key-value pairs.
|
|
101
|
+
*/
|
|
102
|
+
forEach<K extends (Values extends Record<string, any> ? keyof Values : string)>(callbackfn: (value: Values extends Record<string, any> ? (K extends keyof Values ? Values[K] : unknown) : unknown, key: K, map: Map<string, unknown>) => void): void;
|
|
103
|
+
/**
|
|
104
|
+
* Custom JSON serialization method.
|
|
105
|
+
* Converts the internal Map to a plain object for proper JSON serialization.
|
|
106
|
+
* Non-serializable values (functions, symbols, RPC proxies, in-value
|
|
107
|
+
* circular references, and values whose serialization re-enters this
|
|
108
|
+
* `toJSON` via cross-context back-references) are skipped to prevent
|
|
109
|
+
* serialization errors when storing to database.
|
|
110
|
+
*
|
|
111
|
+
* Reentry safety: if a stored value's `isSerializable` probe re-enters
|
|
112
|
+
* `toJSON()` on this same instance (through a chain of RequestContexts
|
|
113
|
+
* holding references to each other), we throw `CyclicRequestContextToJSONError`.
|
|
114
|
+
* Inner `isSerializable` calls re-throw the marker; the outermost
|
|
115
|
+
* `isSerializable` swallows it and filters the offending key, the same
|
|
116
|
+
* way it filters in-value circular references today.
|
|
117
|
+
*/
|
|
118
|
+
toJSON(): Record<string, any>;
|
|
119
|
+
/**
|
|
120
|
+
* Check if a value can be safely serialized to JSON.
|
|
121
|
+
*
|
|
122
|
+
* The probe is budgeted (see `SERIALIZATION_PROBE_BUDGET`): a value whose
|
|
123
|
+
* serialization would visit an unbounded number of nodes — an acyclic
|
|
124
|
+
* graph with layered shared references expands as 2^depth — is treated as
|
|
125
|
+
* non-serializable and filtered instead of blocking the event loop for
|
|
126
|
+
* the full expansion.
|
|
127
|
+
*
|
|
128
|
+
* Re-throws `CyclicRequestContextToJSONError` when called from a nested
|
|
129
|
+
* `toJSON()` (`_toJSONDepth > 1`), so the marker propagates up to the
|
|
130
|
+
* outermost `toJSON()`'s `isSerializable`, which then swallows it and
|
|
131
|
+
* filters the offending key. This is what lets the outermost call return
|
|
132
|
+
* a clean JSON-safe dict for cross-context cycles.
|
|
133
|
+
*/
|
|
134
|
+
private isSerializable;
|
|
135
|
+
/**
|
|
136
|
+
* Custom span serialization. Exposes the registry *entries* (never the
|
|
137
|
+
* instance's own private fields) so `deepClean` in `@mastra/observability`
|
|
138
|
+
* doesn't walk the runtime-enumerable `registry` Map — which would
|
|
139
|
+
* serialize its raw entries (including bearer tokens) into exported spans.
|
|
140
|
+
*
|
|
141
|
+
* Per stored value:
|
|
142
|
+
* - The framework-managed auth token is redacted by key.
|
|
143
|
+
* - Primitives are returned as-is.
|
|
144
|
+
* - Plain objects and arrays are returned by reference so the downstream
|
|
145
|
+
* `deepClean` walks and bounds them — this keeps nested request-context
|
|
146
|
+
* data visible in traces instead of collapsing it to `[object]`.
|
|
147
|
+
* - Every other type (class instances, functions, Map/Set, Date, etc.) is
|
|
148
|
+
* collapsed to `[${typeof value}]` rather than walked, so a class's
|
|
149
|
+
* internals never reach the trace serializer.
|
|
150
|
+
*
|
|
151
|
+
* The plain objects/arrays passed through here MUST still be bounded by a
|
|
152
|
+
* downstream `deepClean` before export.
|
|
153
|
+
*/
|
|
154
|
+
serializeForSpan(): Record<string, unknown>;
|
|
155
|
+
/**
|
|
156
|
+
* Get all values as a typed object for destructuring.
|
|
157
|
+
* Returns Record<string, any> when untyped, or the Values type when typed.
|
|
158
|
+
*
|
|
159
|
+
* @example
|
|
160
|
+
* ```typescript
|
|
161
|
+
* const ctx = new RequestContext<{ userId: string; apiKey: string }>();
|
|
162
|
+
* ctx.set('userId', 'user-123');
|
|
163
|
+
* ctx.set('apiKey', 'key-456');
|
|
164
|
+
* const { userId, apiKey } = ctx.all;
|
|
165
|
+
* ```
|
|
166
|
+
*/
|
|
167
|
+
get all(): Values extends Record<string, any> ? Values : Record<string, any>;
|
|
155
168
|
}
|
|
156
|
-
|
|
157
|
-
export { MASTRA_AUTH_TOKEN_KEY, MASTRA_RESOURCE_ID_KEY, MASTRA_THREAD_ID_KEY, MASTRA_VERSIONS_KEY, RequestContext,
|
|
169
|
+
//#endregion
|
|
170
|
+
export { MASTRA_AUTH_TOKEN_KEY, MASTRA_RESOURCE_ID_KEY, MASTRA_THREAD_ID_KEY, MASTRA_VERSIONS_KEY, RequestContext, VersionOverrides, VersionSelector, mergeVersionOverrides };
|
|
171
|
+
//# sourceMappingURL=index.d.ts.map
|
package/dist/docs/SKILL.md
CHANGED
|
@@ -3,7 +3,7 @@ name: mastra-voice-google-gemini-live
|
|
|
3
3
|
description: Documentation for @mastra/voice-google-gemini-live. Use when working with @mastra/voice-google-gemini-live APIs, configuration, or implementation.
|
|
4
4
|
metadata:
|
|
5
5
|
package: "@mastra/voice-google-gemini-live"
|
|
6
|
-
version: "0.14.
|
|
6
|
+
version: "0.14.5-alpha.0"
|
|
7
7
|
---
|
|
8
8
|
|
|
9
9
|
## When to use
|
|
@@ -14,10 +14,10 @@ Use this skill whenever you are working with @mastra/voice-google-gemini-live to
|
|
|
14
14
|
|
|
15
15
|
Read the individual reference documents for detailed explanations and code examples.
|
|
16
16
|
|
|
17
|
-
###
|
|
17
|
+
### Guides
|
|
18
18
|
|
|
19
|
-
- [Voice in Mastra](references/
|
|
20
|
-
- [Speech-to-Speech capabilities in Mastra](references/
|
|
19
|
+
- [Voice in Mastra](references/guides-voice-overview.md) - Overview of voice capabilities in Mastra, including text-to-speech, speech-to-text, and real-time speech-to-speech interactions.
|
|
20
|
+
- [Speech-to-Speech capabilities in Mastra](references/guides-voice-speech-to-speech.md) - Overview of speech-to-speech capabilities in Mastra, including real-time interactions and event-driven architecture.
|
|
21
21
|
|
|
22
22
|
### Reference
|
|
23
23
|
|