@mastra/core 0.10.12 → 0.10.13
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 +1 -1
- package/a2a.d.ts +0 -1
- package/agent.d.ts +0 -1
- package/base.d.ts +0 -1
- package/bundler.d.ts +0 -1
- package/deployer.d.ts +0 -1
- package/di.d.ts +0 -1
- package/dist/a2a/index.cjs +0 -79
- package/dist/a2a/index.d.cts +0 -780
- package/dist/a2a/index.d.ts +0 -780
- package/dist/a2a/index.js +0 -68
- package/dist/agent/index.cjs +0 -15
- package/dist/agent/index.d.cts +0 -29
- package/dist/agent/index.d.ts +0 -29
- package/dist/agent/index.js +0 -2
- package/dist/base-B_y9sMg0.d.cts +0 -162
- package/dist/base-CS5eSXbL.d.cts +0 -4117
- package/dist/base-ClrXcCRx.d.ts +0 -162
- package/dist/base-DBhKcre4.d.ts +0 -4117
- package/dist/base.cjs +0 -10
- package/dist/base.d.cts +0 -6
- package/dist/base.d.ts +0 -6
- package/dist/base.js +0 -1
- package/dist/bundler/index.cjs +0 -10
- package/dist/bundler/index.d.cts +0 -30
- package/dist/bundler/index.d.ts +0 -30
- package/dist/bundler/index.js +0 -1
- package/dist/chunk-2GRYVZ2O.cjs +0 -244
- package/dist/chunk-2HDFKWFU.js +0 -2249
- package/dist/chunk-32C7JDIZ.js +0 -1
- package/dist/chunk-4UBOJFSL.js +0 -989
- package/dist/chunk-4UWPFBC6.js +0 -88
- package/dist/chunk-4Z3OU5RY.cjs +0 -31
- package/dist/chunk-5HTMDAXP.js +0 -359
- package/dist/chunk-5IEKR756.js +0 -53
- package/dist/chunk-5YDTZN2X.js +0 -114
- package/dist/chunk-6UNGH46J.js +0 -75
- package/dist/chunk-6Y4UL5Z6.cjs +0 -94
- package/dist/chunk-7F6BQXE2.cjs +0 -425
- package/dist/chunk-7H2GET5Z.cjs +0 -668
- package/dist/chunk-7HZ6NIAF.cjs +0 -2
- package/dist/chunk-7MZNOW6W.cjs +0 -2263
- package/dist/chunk-7XQIPES3.js +0 -668
- package/dist/chunk-AKYTYALY.js +0 -70
- package/dist/chunk-ATXBSEFT.js +0 -22
- package/dist/chunk-B6TOBUS6.cjs +0 -80
- package/dist/chunk-B7SQOKEC.cjs +0 -91
- package/dist/chunk-BB4KXGBU.js +0 -83
- package/dist/chunk-BB6DPGIV.cjs +0 -6
- package/dist/chunk-C4LMN2IR.js +0 -27
- package/dist/chunk-DFFVEKIG.js +0 -407
- package/dist/chunk-E7AX3U6M.cjs +0 -659
- package/dist/chunk-EWCOOO3H.js +0 -5007
- package/dist/chunk-F2WMR75C.cjs +0 -183
- package/dist/chunk-FBKJ3652.cjs +0 -5034
- package/dist/chunk-FEYYOBBG.cjs +0 -24
- package/dist/chunk-FL5SZ2XU.js +0 -181
- package/dist/chunk-GH2KM66J.js +0 -37
- package/dist/chunk-GWFS5DAR.cjs +0 -37
- package/dist/chunk-HNEE7IF4.js +0 -60
- package/dist/chunk-HSVOEWAM.cjs +0 -2
- package/dist/chunk-J52TXHZV.cjs +0 -73
- package/dist/chunk-JNMQKJH4.js +0 -10
- package/dist/chunk-JQOMTERC.js +0 -89
- package/dist/chunk-LABUWBKX.cjs +0 -71
- package/dist/chunk-LXFZUKP3.cjs +0 -34
- package/dist/chunk-MP2QBLUJ.cjs +0 -70
- package/dist/chunk-MUNFCOMB.cjs +0 -62
- package/dist/chunk-NH5WJNNS.js +0 -1
- package/dist/chunk-P3Q73CAW.cjs +0 -55
- package/dist/chunk-PA2YIVIT.js +0 -61
- package/dist/chunk-QFTBW7ZZ.cjs +0 -2
- package/dist/chunk-QQ5K5TZE.cjs +0 -619
- package/dist/chunk-QUSEDVYI.cjs +0 -991
- package/dist/chunk-R4V75T7J.js +0 -1
- package/dist/chunk-SGGPJWRQ.js +0 -69
- package/dist/chunk-ST5RMVLG.cjs +0 -87
- package/dist/chunk-TC2SCOTE.js +0 -605
- package/dist/chunk-U64IJDC5.cjs +0 -109
- package/dist/chunk-UX3B6S2I.cjs +0 -65
- package/dist/chunk-V5D2LIF5.js +0 -68
- package/dist/chunk-VG4OPO2R.js +0 -240
- package/dist/chunk-WQNOATKB.js +0 -103
- package/dist/chunk-Y7D2JLKS.js +0 -4
- package/dist/chunk-YJEHXYK5.js +0 -657
- package/dist/chunk-YOQP5T77.js +0 -32
- package/dist/chunk-ZIZ3CVHN.cjs +0 -120
- package/dist/chunk-ZPOUMTTH.cjs +0 -362
- package/dist/chunk-ZZLBNB3U.cjs +0 -12
- package/dist/deployer/index.cjs +0 -10
- package/dist/deployer/index.d.cts +0 -19
- package/dist/deployer/index.d.ts +0 -19
- package/dist/deployer/index.js +0 -1
- package/dist/di/index.cjs +0 -10
- package/dist/di/index.d.cts +0 -1
- package/dist/di/index.d.ts +0 -1
- package/dist/di/index.js +0 -1
- package/dist/error/index.cjs +0 -22
- package/dist/error/index.d.cts +0 -86
- package/dist/error/index.d.ts +0 -86
- package/dist/error/index.js +0 -1
- package/dist/eval/index.cjs +0 -14
- package/dist/eval/index.d.cts +0 -43
- package/dist/eval/index.d.ts +0 -43
- package/dist/eval/index.js +0 -1
- package/dist/hooks/index.cjs +0 -18
- package/dist/hooks/index.d.cts +0 -33
- package/dist/hooks/index.d.ts +0 -33
- package/dist/hooks/index.js +0 -1
- package/dist/index.cjs +0 -281
- package/dist/index.d.cts +0 -92
- package/dist/index.d.ts +0 -92
- package/dist/index.js +0 -112
- package/dist/integration/index.cjs +0 -14
- package/dist/integration/index.d.cts +0 -65
- package/dist/integration/index.d.ts +0 -65
- package/dist/integration/index.js +0 -1
- package/dist/llm/index.cjs +0 -10
- package/dist/llm/index.d.cts +0 -29
- package/dist/llm/index.d.ts +0 -29
- package/dist/llm/index.js +0 -1
- package/dist/logger/index.cjs +0 -43
- package/dist/logger/index.d.cts +0 -96
- package/dist/logger/index.d.ts +0 -96
- package/dist/logger/index.js +0 -2
- package/dist/logger-B8XXh6ya.d.cts +0 -159
- package/dist/logger-Bpa2oLL4.d.ts +0 -159
- package/dist/mastra/index.cjs +0 -10
- package/dist/mastra/index.d.cts +0 -29
- package/dist/mastra/index.d.ts +0 -29
- package/dist/mastra/index.js +0 -1
- package/dist/mcp/index.cjs +0 -106
- package/dist/mcp/index.d.cts +0 -29
- package/dist/mcp/index.d.ts +0 -29
- package/dist/mcp/index.js +0 -100
- package/dist/memory/index.cjs +0 -18
- package/dist/memory/index.d.cts +0 -29
- package/dist/memory/index.d.ts +0 -29
- package/dist/memory/index.js +0 -1
- package/dist/network/index.cjs +0 -311
- package/dist/network/index.d.cts +0 -29
- package/dist/network/index.d.ts +0 -29
- package/dist/network/index.js +0 -309
- package/dist/network/vNext/index.cjs +0 -873
- package/dist/network/vNext/index.d.cts +0 -29
- package/dist/network/vNext/index.d.ts +0 -29
- package/dist/network/vNext/index.js +0 -871
- package/dist/relevance/index.cjs +0 -18
- package/dist/relevance/index.d.cts +0 -49
- package/dist/relevance/index.d.ts +0 -49
- package/dist/relevance/index.js +0 -1
- package/dist/runtime-context/index.cjs +0 -10
- package/dist/runtime-context/index.d.cts +0 -52
- package/dist/runtime-context/index.d.ts +0 -52
- package/dist/runtime-context/index.js +0 -1
- package/dist/server/index.cjs +0 -62
- package/dist/server/index.d.cts +0 -52
- package/dist/server/index.d.ts +0 -52
- package/dist/server/index.js +0 -59
- package/dist/storage/index.cjs +0 -336
- package/dist/storage/index.d.cts +0 -149
- package/dist/storage/index.d.ts +0 -149
- package/dist/storage/index.js +0 -303
- package/dist/telemetry/index.cjs +0 -30
- package/dist/telemetry/index.d.cts +0 -75
- package/dist/telemetry/index.d.ts +0 -75
- package/dist/telemetry/index.js +0 -1
- package/dist/telemetry/otel-vendor.cjs +0 -103
- package/dist/telemetry/otel-vendor.d.cts +0 -20
- package/dist/telemetry/otel-vendor.d.ts +0 -20
- package/dist/telemetry/otel-vendor.js +0 -57
- package/dist/tools/index.cjs +0 -18
- package/dist/tools/index.d.cts +0 -41
- package/dist/tools/index.d.ts +0 -41
- package/dist/tools/index.js +0 -1
- package/dist/tts/index.cjs +0 -10
- package/dist/tts/index.d.cts +0 -28
- package/dist/tts/index.d.ts +0 -28
- package/dist/tts/index.js +0 -1
- package/dist/types-Bo1uigWx.d.cts +0 -17
- package/dist/types-Bo1uigWx.d.ts +0 -17
- package/dist/utils.cjs +0 -58
- package/dist/utils.d.cts +0 -149
- package/dist/utils.d.ts +0 -149
- package/dist/utils.js +0 -1
- package/dist/vector/filter/index.cjs +0 -192
- package/dist/vector/filter/index.d.cts +0 -128
- package/dist/vector/filter/index.d.ts +0 -128
- package/dist/vector/filter/index.js +0 -190
- package/dist/vector/index.cjs +0 -10
- package/dist/vector/index.d.cts +0 -77
- package/dist/vector/index.d.ts +0 -77
- package/dist/vector/index.js +0 -1
- package/dist/voice/index.cjs +0 -18
- package/dist/voice/index.d.cts +0 -29
- package/dist/voice/index.d.ts +0 -29
- package/dist/voice/index.js +0 -1
- package/dist/workflows/constants.cjs +0 -10
- package/dist/workflows/constants.d.cts +0 -3
- package/dist/workflows/constants.d.ts +0 -3
- package/dist/workflows/constants.js +0 -1
- package/dist/workflows/index.cjs +0 -42
- package/dist/workflows/index.d.cts +0 -282
- package/dist/workflows/index.d.ts +0 -282
- package/dist/workflows/index.js +0 -1
- package/dist/workflows/legacy/index.cjs +0 -90
- package/dist/workflows/legacy/index.d.cts +0 -91
- package/dist/workflows/legacy/index.d.ts +0 -91
- package/dist/workflows/legacy/index.js +0 -1
- package/error.d.ts +0 -1
- package/eval.d.ts +0 -1
- package/hooks.d.ts +0 -1
- package/integration.d.ts +0 -1
- package/llm.d.ts +0 -1
- package/logger.d.ts +0 -1
- package/mastra.d.ts +0 -1
- package/mcp.d.ts +0 -1
- package/memory.d.ts +0 -1
- package/network/vNext.d.ts +0 -1
- package/network.d.ts +0 -1
- package/relevance.d.ts +0 -1
- package/runtime-context.d.ts +0 -1
- package/server.d.ts +0 -1
- package/storage.d.ts +0 -1
- package/telemetry/otel-vendor.d.ts +0 -1
- package/telemetry.d.ts +0 -1
- package/tools.d.ts +0 -1
- package/tts.d.ts +0 -1
- package/utils.d.ts +0 -1
- package/vector/filter.d.ts +0 -1
- package/vector.d.ts +0 -1
- package/voice.d.ts +0 -1
- package/workflows/_constants.d.ts +0 -1
- package/workflows/legacy.d.ts +0 -1
- package/workflows.d.ts +0 -1
package/dist/vector/index.d.cts
DELETED
|
@@ -1,77 +0,0 @@
|
|
|
1
|
-
import { M as MastraBase } from '../base-B_y9sMg0.cjs';
|
|
2
|
-
import { VectorFilter } from './filter/index.cjs';
|
|
3
|
-
import '@opentelemetry/api';
|
|
4
|
-
import '../logger-B8XXh6ya.cjs';
|
|
5
|
-
import '../error/index.cjs';
|
|
6
|
-
import 'stream';
|
|
7
|
-
import '@opentelemetry/sdk-trace-base';
|
|
8
|
-
|
|
9
|
-
interface QueryResult {
|
|
10
|
-
id: string;
|
|
11
|
-
score: number;
|
|
12
|
-
metadata?: Record<string, any>;
|
|
13
|
-
vector?: number[];
|
|
14
|
-
/**
|
|
15
|
-
* The document content, if available.
|
|
16
|
-
* Note: Currently only supported by Chroma vector store.
|
|
17
|
-
* For other vector stores, documents should be stored in metadata.
|
|
18
|
-
*/
|
|
19
|
-
document?: string;
|
|
20
|
-
}
|
|
21
|
-
interface IndexStats {
|
|
22
|
-
dimension: number;
|
|
23
|
-
count: number;
|
|
24
|
-
metric?: 'cosine' | 'euclidean' | 'dotproduct';
|
|
25
|
-
}
|
|
26
|
-
interface UpsertVectorParams {
|
|
27
|
-
indexName: string;
|
|
28
|
-
vectors: number[][];
|
|
29
|
-
metadata?: Record<string, any>[];
|
|
30
|
-
ids?: string[];
|
|
31
|
-
}
|
|
32
|
-
interface CreateIndexParams {
|
|
33
|
-
indexName: string;
|
|
34
|
-
dimension: number;
|
|
35
|
-
metric?: 'cosine' | 'euclidean' | 'dotproduct';
|
|
36
|
-
}
|
|
37
|
-
interface QueryVectorParams<Filter = VectorFilter> {
|
|
38
|
-
indexName: string;
|
|
39
|
-
queryVector: number[];
|
|
40
|
-
topK?: number;
|
|
41
|
-
filter?: Filter;
|
|
42
|
-
includeVector?: boolean;
|
|
43
|
-
}
|
|
44
|
-
interface DescribeIndexParams {
|
|
45
|
-
indexName: string;
|
|
46
|
-
}
|
|
47
|
-
interface DeleteIndexParams {
|
|
48
|
-
indexName: string;
|
|
49
|
-
}
|
|
50
|
-
interface UpdateVectorParams {
|
|
51
|
-
indexName: string;
|
|
52
|
-
id: string;
|
|
53
|
-
update: {
|
|
54
|
-
vector?: number[];
|
|
55
|
-
metadata?: Record<string, any>;
|
|
56
|
-
};
|
|
57
|
-
}
|
|
58
|
-
interface DeleteVectorParams {
|
|
59
|
-
indexName: string;
|
|
60
|
-
id: string;
|
|
61
|
-
}
|
|
62
|
-
|
|
63
|
-
declare abstract class MastraVector<Filter = VectorFilter> extends MastraBase {
|
|
64
|
-
constructor();
|
|
65
|
-
get indexSeparator(): string;
|
|
66
|
-
abstract query(params: QueryVectorParams<Filter>): Promise<QueryResult[]>;
|
|
67
|
-
abstract upsert(params: UpsertVectorParams): Promise<string[]>;
|
|
68
|
-
abstract createIndex(params: CreateIndexParams): Promise<void>;
|
|
69
|
-
abstract listIndexes(): Promise<string[]>;
|
|
70
|
-
abstract describeIndex(params: DescribeIndexParams): Promise<IndexStats>;
|
|
71
|
-
abstract deleteIndex(params: DeleteIndexParams): Promise<void>;
|
|
72
|
-
abstract updateVector(params: UpdateVectorParams): Promise<void>;
|
|
73
|
-
abstract deleteVector(params: DeleteVectorParams): Promise<void>;
|
|
74
|
-
protected validateExistingIndex(indexName: string, dimension: number, metric: string): Promise<void>;
|
|
75
|
-
}
|
|
76
|
-
|
|
77
|
-
export { type CreateIndexParams, type DeleteIndexParams, type DeleteVectorParams, type DescribeIndexParams, type IndexStats, MastraVector, type QueryResult, type QueryVectorParams, type UpdateVectorParams, type UpsertVectorParams };
|
package/dist/vector/index.d.ts
DELETED
|
@@ -1,77 +0,0 @@
|
|
|
1
|
-
import { M as MastraBase } from '../base-ClrXcCRx.js';
|
|
2
|
-
import { VectorFilter } from './filter/index.js';
|
|
3
|
-
import '@opentelemetry/api';
|
|
4
|
-
import '../logger-Bpa2oLL4.js';
|
|
5
|
-
import '../error/index.js';
|
|
6
|
-
import 'stream';
|
|
7
|
-
import '@opentelemetry/sdk-trace-base';
|
|
8
|
-
|
|
9
|
-
interface QueryResult {
|
|
10
|
-
id: string;
|
|
11
|
-
score: number;
|
|
12
|
-
metadata?: Record<string, any>;
|
|
13
|
-
vector?: number[];
|
|
14
|
-
/**
|
|
15
|
-
* The document content, if available.
|
|
16
|
-
* Note: Currently only supported by Chroma vector store.
|
|
17
|
-
* For other vector stores, documents should be stored in metadata.
|
|
18
|
-
*/
|
|
19
|
-
document?: string;
|
|
20
|
-
}
|
|
21
|
-
interface IndexStats {
|
|
22
|
-
dimension: number;
|
|
23
|
-
count: number;
|
|
24
|
-
metric?: 'cosine' | 'euclidean' | 'dotproduct';
|
|
25
|
-
}
|
|
26
|
-
interface UpsertVectorParams {
|
|
27
|
-
indexName: string;
|
|
28
|
-
vectors: number[][];
|
|
29
|
-
metadata?: Record<string, any>[];
|
|
30
|
-
ids?: string[];
|
|
31
|
-
}
|
|
32
|
-
interface CreateIndexParams {
|
|
33
|
-
indexName: string;
|
|
34
|
-
dimension: number;
|
|
35
|
-
metric?: 'cosine' | 'euclidean' | 'dotproduct';
|
|
36
|
-
}
|
|
37
|
-
interface QueryVectorParams<Filter = VectorFilter> {
|
|
38
|
-
indexName: string;
|
|
39
|
-
queryVector: number[];
|
|
40
|
-
topK?: number;
|
|
41
|
-
filter?: Filter;
|
|
42
|
-
includeVector?: boolean;
|
|
43
|
-
}
|
|
44
|
-
interface DescribeIndexParams {
|
|
45
|
-
indexName: string;
|
|
46
|
-
}
|
|
47
|
-
interface DeleteIndexParams {
|
|
48
|
-
indexName: string;
|
|
49
|
-
}
|
|
50
|
-
interface UpdateVectorParams {
|
|
51
|
-
indexName: string;
|
|
52
|
-
id: string;
|
|
53
|
-
update: {
|
|
54
|
-
vector?: number[];
|
|
55
|
-
metadata?: Record<string, any>;
|
|
56
|
-
};
|
|
57
|
-
}
|
|
58
|
-
interface DeleteVectorParams {
|
|
59
|
-
indexName: string;
|
|
60
|
-
id: string;
|
|
61
|
-
}
|
|
62
|
-
|
|
63
|
-
declare abstract class MastraVector<Filter = VectorFilter> extends MastraBase {
|
|
64
|
-
constructor();
|
|
65
|
-
get indexSeparator(): string;
|
|
66
|
-
abstract query(params: QueryVectorParams<Filter>): Promise<QueryResult[]>;
|
|
67
|
-
abstract upsert(params: UpsertVectorParams): Promise<string[]>;
|
|
68
|
-
abstract createIndex(params: CreateIndexParams): Promise<void>;
|
|
69
|
-
abstract listIndexes(): Promise<string[]>;
|
|
70
|
-
abstract describeIndex(params: DescribeIndexParams): Promise<IndexStats>;
|
|
71
|
-
abstract deleteIndex(params: DeleteIndexParams): Promise<void>;
|
|
72
|
-
abstract updateVector(params: UpdateVectorParams): Promise<void>;
|
|
73
|
-
abstract deleteVector(params: DeleteVectorParams): Promise<void>;
|
|
74
|
-
protected validateExistingIndex(indexName: string, dimension: number, metric: string): Promise<void>;
|
|
75
|
-
}
|
|
76
|
-
|
|
77
|
-
export { type CreateIndexParams, type DeleteIndexParams, type DeleteVectorParams, type DescribeIndexParams, type IndexStats, MastraVector, type QueryResult, type QueryVectorParams, type UpdateVectorParams, type UpsertVectorParams };
|
package/dist/vector/index.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { MastraVector } from '../chunk-V5D2LIF5.js';
|
package/dist/voice/index.cjs
DELETED
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
var chunkZPOUMTTH_cjs = require('../chunk-ZPOUMTTH.cjs');
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
Object.defineProperty(exports, "CompositeVoice", {
|
|
8
|
-
enumerable: true,
|
|
9
|
-
get: function () { return chunkZPOUMTTH_cjs.CompositeVoice; }
|
|
10
|
-
});
|
|
11
|
-
Object.defineProperty(exports, "DefaultVoice", {
|
|
12
|
-
enumerable: true,
|
|
13
|
-
get: function () { return chunkZPOUMTTH_cjs.DefaultVoice; }
|
|
14
|
-
});
|
|
15
|
-
Object.defineProperty(exports, "MastraVoice", {
|
|
16
|
-
enumerable: true,
|
|
17
|
-
get: function () { return chunkZPOUMTTH_cjs.MastraVoice; }
|
|
18
|
-
});
|
package/dist/voice/index.d.cts
DELETED
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
export { bL as CompositeVoice, bM as DefaultVoice, bK as MastraVoice, bJ as VoiceConfig, bI as VoiceEventMap, bH as VoiceEventType } from '../base-CS5eSXbL.cjs';
|
|
2
|
-
import 'ai';
|
|
3
|
-
import '../base-B_y9sMg0.cjs';
|
|
4
|
-
import '@opentelemetry/api';
|
|
5
|
-
import '../logger-B8XXh6ya.cjs';
|
|
6
|
-
import '../error/index.cjs';
|
|
7
|
-
import 'stream';
|
|
8
|
-
import '@opentelemetry/sdk-trace-base';
|
|
9
|
-
import 'zod';
|
|
10
|
-
import 'json-schema';
|
|
11
|
-
import '../types-Bo1uigWx.cjs';
|
|
12
|
-
import 'sift';
|
|
13
|
-
import '../runtime-context/index.cjs';
|
|
14
|
-
import 'xstate';
|
|
15
|
-
import 'node:events';
|
|
16
|
-
import '../vector/index.cjs';
|
|
17
|
-
import '../vector/filter/index.cjs';
|
|
18
|
-
import '../tts/index.cjs';
|
|
19
|
-
import 'node:http';
|
|
20
|
-
import 'hono';
|
|
21
|
-
import 'stream/web';
|
|
22
|
-
import 'events';
|
|
23
|
-
import 'node:stream/web';
|
|
24
|
-
import '../workflows/constants.cjs';
|
|
25
|
-
import 'ai/test';
|
|
26
|
-
import '../deployer/index.cjs';
|
|
27
|
-
import '../bundler/index.cjs';
|
|
28
|
-
import 'hono/cors';
|
|
29
|
-
import 'hono-openapi';
|
package/dist/voice/index.d.ts
DELETED
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
export { bL as CompositeVoice, bM as DefaultVoice, bK as MastraVoice, bJ as VoiceConfig, bI as VoiceEventMap, bH as VoiceEventType } from '../base-DBhKcre4.js';
|
|
2
|
-
import 'ai';
|
|
3
|
-
import '../base-ClrXcCRx.js';
|
|
4
|
-
import '@opentelemetry/api';
|
|
5
|
-
import '../logger-Bpa2oLL4.js';
|
|
6
|
-
import '../error/index.js';
|
|
7
|
-
import 'stream';
|
|
8
|
-
import '@opentelemetry/sdk-trace-base';
|
|
9
|
-
import 'zod';
|
|
10
|
-
import 'json-schema';
|
|
11
|
-
import '../types-Bo1uigWx.js';
|
|
12
|
-
import 'sift';
|
|
13
|
-
import '../runtime-context/index.js';
|
|
14
|
-
import 'xstate';
|
|
15
|
-
import 'node:events';
|
|
16
|
-
import '../vector/index.js';
|
|
17
|
-
import '../vector/filter/index.js';
|
|
18
|
-
import '../tts/index.js';
|
|
19
|
-
import 'node:http';
|
|
20
|
-
import 'hono';
|
|
21
|
-
import 'stream/web';
|
|
22
|
-
import 'events';
|
|
23
|
-
import 'node:stream/web';
|
|
24
|
-
import '../workflows/constants.js';
|
|
25
|
-
import 'ai/test';
|
|
26
|
-
import '../deployer/index.js';
|
|
27
|
-
import '../bundler/index.js';
|
|
28
|
-
import 'hono/cors';
|
|
29
|
-
import 'hono-openapi';
|
package/dist/voice/index.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { CompositeVoice, DefaultVoice, MastraVoice } from '../chunk-5HTMDAXP.js';
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { EMITTER_SYMBOL } from '../chunk-Y7D2JLKS.js';
|
package/dist/workflows/index.cjs
DELETED
|
@@ -1,42 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
var chunk7MZNOW6W_cjs = require('../chunk-7MZNOW6W.cjs');
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
Object.defineProperty(exports, "DefaultExecutionEngine", {
|
|
8
|
-
enumerable: true,
|
|
9
|
-
get: function () { return chunk7MZNOW6W_cjs.DefaultExecutionEngine; }
|
|
10
|
-
});
|
|
11
|
-
Object.defineProperty(exports, "ExecutionEngine", {
|
|
12
|
-
enumerable: true,
|
|
13
|
-
get: function () { return chunk7MZNOW6W_cjs.ExecutionEngine; }
|
|
14
|
-
});
|
|
15
|
-
Object.defineProperty(exports, "Run", {
|
|
16
|
-
enumerable: true,
|
|
17
|
-
get: function () { return chunk7MZNOW6W_cjs.Run; }
|
|
18
|
-
});
|
|
19
|
-
Object.defineProperty(exports, "Workflow", {
|
|
20
|
-
enumerable: true,
|
|
21
|
-
get: function () { return chunk7MZNOW6W_cjs.Workflow; }
|
|
22
|
-
});
|
|
23
|
-
Object.defineProperty(exports, "cloneStep", {
|
|
24
|
-
enumerable: true,
|
|
25
|
-
get: function () { return chunk7MZNOW6W_cjs.cloneStep; }
|
|
26
|
-
});
|
|
27
|
-
Object.defineProperty(exports, "cloneWorkflow", {
|
|
28
|
-
enumerable: true,
|
|
29
|
-
get: function () { return chunk7MZNOW6W_cjs.cloneWorkflow; }
|
|
30
|
-
});
|
|
31
|
-
Object.defineProperty(exports, "createStep", {
|
|
32
|
-
enumerable: true,
|
|
33
|
-
get: function () { return chunk7MZNOW6W_cjs.createStep; }
|
|
34
|
-
});
|
|
35
|
-
Object.defineProperty(exports, "createWorkflow", {
|
|
36
|
-
enumerable: true,
|
|
37
|
-
get: function () { return chunk7MZNOW6W_cjs.createWorkflow; }
|
|
38
|
-
});
|
|
39
|
-
Object.defineProperty(exports, "mapVariable", {
|
|
40
|
-
enumerable: true,
|
|
41
|
-
get: function () { return chunk7MZNOW6W_cjs.mapVariable; }
|
|
42
|
-
});
|
|
@@ -1,282 +0,0 @@
|
|
|
1
|
-
import { bm as ExecutionEngine, f as Step, bo as Emitter, bu as StepResult, bl as ExecutionGraph, bc as SerializedStepFlowEntry, ba as StepFlowEntry, bn as ExecuteFunction, aw as DefaultEngineType } from '../base-CS5eSXbL.cjs';
|
|
2
|
-
export { bw as DynamicMapping, bz as ExtractSchemaFromStep, by as ExtractSchemaType, bx as PathsToStringProps, bk as Run, bb as SerializedStep, bq as StepFailure, bs as StepRunning, bp as StepSuccess, br as StepSuspended, bt as StepWaiting, bd as StepWithComponent, bv as StepsRecord, bB as StreamEvent, bA as VariableReference, bD as WatchEvent, e as Workflow, ax as WorkflowConfig, bj as WorkflowResult, bF as WorkflowRunState, bC as WorkflowRunStatus, bE as ZodPathType, bg as cloneStep, bi as cloneWorkflow, bf as createStep, bh as createWorkflow, be as mapVariable } from '../base-CS5eSXbL.cjs';
|
|
3
|
-
import { Span } from '@opentelemetry/api';
|
|
4
|
-
import { RuntimeContext } from '../runtime-context/index.cjs';
|
|
5
|
-
import 'ai';
|
|
6
|
-
import '../base-B_y9sMg0.cjs';
|
|
7
|
-
import '../logger-B8XXh6ya.cjs';
|
|
8
|
-
import '../error/index.cjs';
|
|
9
|
-
import 'stream';
|
|
10
|
-
import '@opentelemetry/sdk-trace-base';
|
|
11
|
-
import 'zod';
|
|
12
|
-
import 'json-schema';
|
|
13
|
-
import '../types-Bo1uigWx.cjs';
|
|
14
|
-
import 'sift';
|
|
15
|
-
import 'xstate';
|
|
16
|
-
import 'node:events';
|
|
17
|
-
import '../vector/index.cjs';
|
|
18
|
-
import '../vector/filter/index.cjs';
|
|
19
|
-
import '../tts/index.cjs';
|
|
20
|
-
import 'node:http';
|
|
21
|
-
import 'hono';
|
|
22
|
-
import 'stream/web';
|
|
23
|
-
import 'events';
|
|
24
|
-
import 'node:stream/web';
|
|
25
|
-
import './constants.cjs';
|
|
26
|
-
import 'ai/test';
|
|
27
|
-
import '../deployer/index.cjs';
|
|
28
|
-
import '../bundler/index.cjs';
|
|
29
|
-
import 'hono/cors';
|
|
30
|
-
import 'hono-openapi';
|
|
31
|
-
|
|
32
|
-
type ExecutionContext = {
|
|
33
|
-
workflowId: string;
|
|
34
|
-
runId: string;
|
|
35
|
-
executionPath: number[];
|
|
36
|
-
suspendedPaths: Record<string, number[]>;
|
|
37
|
-
retryConfig: {
|
|
38
|
-
attempts: number;
|
|
39
|
-
delay: number;
|
|
40
|
-
};
|
|
41
|
-
executionSpan: Span;
|
|
42
|
-
};
|
|
43
|
-
/**
|
|
44
|
-
* Default implementation of the ExecutionEngine using XState
|
|
45
|
-
*/
|
|
46
|
-
declare class DefaultExecutionEngine extends ExecutionEngine {
|
|
47
|
-
/**
|
|
48
|
-
* The runCounts map is used to keep track of the run count for each step.
|
|
49
|
-
* The step id is used as the key and the run count is the value.
|
|
50
|
-
*/
|
|
51
|
-
protected runCounts: Map<string, number>;
|
|
52
|
-
/**
|
|
53
|
-
* Get or generate the run count for a step.
|
|
54
|
-
* If the step id is not in the map, it will be added and the run count will be 0.
|
|
55
|
-
* If the step id is in the map, it will return the run count.
|
|
56
|
-
*
|
|
57
|
-
* @param stepId - The id of the step.
|
|
58
|
-
* @returns The run count for the step.
|
|
59
|
-
*/
|
|
60
|
-
protected getOrGenerateRunCount(stepId: Step['id']): number;
|
|
61
|
-
protected fmtReturnValue<TOutput>(executionSpan: Span | undefined, emitter: Emitter, stepResults: Record<string, StepResult<any, any, any, any>>, lastOutput: StepResult<any, any, any, any>, error?: Error | string): Promise<TOutput>;
|
|
62
|
-
/**
|
|
63
|
-
* Executes a workflow run with the provided execution graph and input
|
|
64
|
-
* @param graph The execution graph to execute
|
|
65
|
-
* @param input The input data for the workflow
|
|
66
|
-
* @returns A promise that resolves to the workflow output
|
|
67
|
-
*/
|
|
68
|
-
execute<TInput, TOutput>(params: {
|
|
69
|
-
workflowId: string;
|
|
70
|
-
runId: string;
|
|
71
|
-
graph: ExecutionGraph;
|
|
72
|
-
serializedStepGraph: SerializedStepFlowEntry[];
|
|
73
|
-
input?: TInput;
|
|
74
|
-
resume?: {
|
|
75
|
-
steps: string[];
|
|
76
|
-
stepResults: Record<string, StepResult<any, any, any, any>>;
|
|
77
|
-
resumePayload: any;
|
|
78
|
-
resumePath: number[];
|
|
79
|
-
};
|
|
80
|
-
emitter: Emitter;
|
|
81
|
-
retryConfig?: {
|
|
82
|
-
attempts?: number;
|
|
83
|
-
delay?: number;
|
|
84
|
-
};
|
|
85
|
-
runtimeContext: RuntimeContext;
|
|
86
|
-
abortController: AbortController;
|
|
87
|
-
}): Promise<TOutput>;
|
|
88
|
-
getStepOutput(stepResults: Record<string, any>, step?: StepFlowEntry): any;
|
|
89
|
-
executeSleep({ runId, entry, prevOutput, stepResults, emitter, abortController, runtimeContext, }: {
|
|
90
|
-
workflowId: string;
|
|
91
|
-
runId: string;
|
|
92
|
-
serializedStepGraph: SerializedStepFlowEntry[];
|
|
93
|
-
entry: {
|
|
94
|
-
type: 'sleep';
|
|
95
|
-
id: string;
|
|
96
|
-
duration?: number;
|
|
97
|
-
fn?: ExecuteFunction<any, any, any, any, DefaultEngineType>;
|
|
98
|
-
};
|
|
99
|
-
prevStep: StepFlowEntry;
|
|
100
|
-
prevOutput: any;
|
|
101
|
-
stepResults: Record<string, StepResult<any, any, any, any>>;
|
|
102
|
-
resume?: {
|
|
103
|
-
steps: string[];
|
|
104
|
-
stepResults: Record<string, StepResult<any, any, any, any>>;
|
|
105
|
-
resumePayload: any;
|
|
106
|
-
resumePath: number[];
|
|
107
|
-
};
|
|
108
|
-
executionContext: ExecutionContext;
|
|
109
|
-
emitter: Emitter;
|
|
110
|
-
abortController: AbortController;
|
|
111
|
-
runtimeContext: RuntimeContext;
|
|
112
|
-
}): Promise<void>;
|
|
113
|
-
executeSleepUntil({ runId, entry, prevOutput, stepResults, emitter, abortController, runtimeContext, }: {
|
|
114
|
-
workflowId: string;
|
|
115
|
-
runId: string;
|
|
116
|
-
serializedStepGraph: SerializedStepFlowEntry[];
|
|
117
|
-
entry: {
|
|
118
|
-
type: 'sleepUntil';
|
|
119
|
-
id: string;
|
|
120
|
-
date?: Date;
|
|
121
|
-
fn?: ExecuteFunction<any, any, any, any, DefaultEngineType>;
|
|
122
|
-
};
|
|
123
|
-
prevStep: StepFlowEntry;
|
|
124
|
-
prevOutput: any;
|
|
125
|
-
stepResults: Record<string, StepResult<any, any, any, any>>;
|
|
126
|
-
resume?: {
|
|
127
|
-
steps: string[];
|
|
128
|
-
stepResults: Record<string, StepResult<any, any, any, any>>;
|
|
129
|
-
resumePayload: any;
|
|
130
|
-
resumePath: number[];
|
|
131
|
-
};
|
|
132
|
-
executionContext: ExecutionContext;
|
|
133
|
-
emitter: Emitter;
|
|
134
|
-
abortController: AbortController;
|
|
135
|
-
runtimeContext: RuntimeContext;
|
|
136
|
-
}): Promise<void>;
|
|
137
|
-
executeWaitForEvent({ event, emitter, timeout, }: {
|
|
138
|
-
event: string;
|
|
139
|
-
emitter: Emitter;
|
|
140
|
-
timeout?: number;
|
|
141
|
-
}): Promise<any>;
|
|
142
|
-
executeStep({ workflowId, runId, step, stepResults, executionContext, resume, prevOutput, emitter, abortController, runtimeContext, }: {
|
|
143
|
-
workflowId: string;
|
|
144
|
-
runId: string;
|
|
145
|
-
step: Step<string, any, any>;
|
|
146
|
-
stepResults: Record<string, StepResult<any, any, any, any>>;
|
|
147
|
-
executionContext: ExecutionContext;
|
|
148
|
-
resume?: {
|
|
149
|
-
steps: string[];
|
|
150
|
-
resumePayload: any;
|
|
151
|
-
};
|
|
152
|
-
prevOutput: any;
|
|
153
|
-
emitter: Emitter;
|
|
154
|
-
abortController: AbortController;
|
|
155
|
-
runtimeContext: RuntimeContext;
|
|
156
|
-
}): Promise<StepResult<any, any, any, any>>;
|
|
157
|
-
executeParallel({ workflowId, runId, entry, prevStep, serializedStepGraph, stepResults, resume, executionContext, emitter, abortController, runtimeContext, }: {
|
|
158
|
-
workflowId: string;
|
|
159
|
-
runId: string;
|
|
160
|
-
entry: {
|
|
161
|
-
type: 'parallel';
|
|
162
|
-
steps: StepFlowEntry[];
|
|
163
|
-
};
|
|
164
|
-
serializedStepGraph: SerializedStepFlowEntry[];
|
|
165
|
-
prevStep: StepFlowEntry;
|
|
166
|
-
stepResults: Record<string, StepResult<any, any, any, any>>;
|
|
167
|
-
resume?: {
|
|
168
|
-
steps: string[];
|
|
169
|
-
stepResults: Record<string, StepResult<any, any, any, any>>;
|
|
170
|
-
resumePayload: any;
|
|
171
|
-
resumePath: number[];
|
|
172
|
-
};
|
|
173
|
-
executionContext: ExecutionContext;
|
|
174
|
-
emitter: Emitter;
|
|
175
|
-
abortController: AbortController;
|
|
176
|
-
runtimeContext: RuntimeContext;
|
|
177
|
-
}): Promise<StepResult<any, any, any, any>>;
|
|
178
|
-
executeConditional({ workflowId, runId, entry, prevOutput, prevStep, serializedStepGraph, stepResults, resume, executionContext, emitter, abortController, runtimeContext, }: {
|
|
179
|
-
workflowId: string;
|
|
180
|
-
runId: string;
|
|
181
|
-
serializedStepGraph: SerializedStepFlowEntry[];
|
|
182
|
-
entry: {
|
|
183
|
-
type: 'conditional';
|
|
184
|
-
steps: StepFlowEntry[];
|
|
185
|
-
conditions: ExecuteFunction<any, any, any, any, DefaultEngineType>[];
|
|
186
|
-
};
|
|
187
|
-
prevStep: StepFlowEntry;
|
|
188
|
-
prevOutput: any;
|
|
189
|
-
stepResults: Record<string, StepResult<any, any, any, any>>;
|
|
190
|
-
resume?: {
|
|
191
|
-
steps: string[];
|
|
192
|
-
stepResults: Record<string, StepResult<any, any, any, any>>;
|
|
193
|
-
resumePayload: any;
|
|
194
|
-
resumePath: number[];
|
|
195
|
-
};
|
|
196
|
-
executionContext: ExecutionContext;
|
|
197
|
-
emitter: Emitter;
|
|
198
|
-
abortController: AbortController;
|
|
199
|
-
runtimeContext: RuntimeContext;
|
|
200
|
-
}): Promise<StepResult<any, any, any, any>>;
|
|
201
|
-
executeLoop({ workflowId, runId, entry, prevOutput, stepResults, resume, executionContext, emitter, abortController, runtimeContext, }: {
|
|
202
|
-
workflowId: string;
|
|
203
|
-
runId: string;
|
|
204
|
-
entry: {
|
|
205
|
-
type: 'loop';
|
|
206
|
-
step: Step;
|
|
207
|
-
condition: ExecuteFunction<any, any, any, any, DefaultEngineType>;
|
|
208
|
-
loopType: 'dowhile' | 'dountil';
|
|
209
|
-
};
|
|
210
|
-
prevStep: StepFlowEntry;
|
|
211
|
-
prevOutput: any;
|
|
212
|
-
stepResults: Record<string, StepResult<any, any, any, any>>;
|
|
213
|
-
resume?: {
|
|
214
|
-
steps: string[];
|
|
215
|
-
stepResults: Record<string, StepResult<any, any, any, any>>;
|
|
216
|
-
resumePayload: any;
|
|
217
|
-
resumePath: number[];
|
|
218
|
-
};
|
|
219
|
-
executionContext: ExecutionContext;
|
|
220
|
-
emitter: Emitter;
|
|
221
|
-
abortController: AbortController;
|
|
222
|
-
runtimeContext: RuntimeContext;
|
|
223
|
-
}): Promise<StepResult<any, any, any, any>>;
|
|
224
|
-
executeForeach({ workflowId, runId, entry, prevOutput, stepResults, resume, executionContext, emitter, abortController, runtimeContext, }: {
|
|
225
|
-
workflowId: string;
|
|
226
|
-
runId: string;
|
|
227
|
-
entry: {
|
|
228
|
-
type: 'foreach';
|
|
229
|
-
step: Step;
|
|
230
|
-
opts: {
|
|
231
|
-
concurrency: number;
|
|
232
|
-
};
|
|
233
|
-
};
|
|
234
|
-
prevStep: StepFlowEntry;
|
|
235
|
-
prevOutput: any;
|
|
236
|
-
stepResults: Record<string, StepResult<any, any, any, any>>;
|
|
237
|
-
resume?: {
|
|
238
|
-
steps: string[];
|
|
239
|
-
stepResults: Record<string, StepResult<any, any, any, any>>;
|
|
240
|
-
resumePayload: any;
|
|
241
|
-
resumePath: number[];
|
|
242
|
-
};
|
|
243
|
-
executionContext: ExecutionContext;
|
|
244
|
-
emitter: Emitter;
|
|
245
|
-
abortController: AbortController;
|
|
246
|
-
runtimeContext: RuntimeContext;
|
|
247
|
-
}): Promise<StepResult<any, any, any, any>>;
|
|
248
|
-
protected persistStepUpdate({ workflowId, runId, stepResults, serializedStepGraph, executionContext, workflowStatus, result, error, }: {
|
|
249
|
-
workflowId: string;
|
|
250
|
-
runId: string;
|
|
251
|
-
stepResults: Record<string, StepResult<any, any, any, any>>;
|
|
252
|
-
serializedStepGraph: SerializedStepFlowEntry[];
|
|
253
|
-
executionContext: ExecutionContext;
|
|
254
|
-
workflowStatus: 'success' | 'failed' | 'suspended' | 'running' | 'waiting';
|
|
255
|
-
result?: Record<string, any>;
|
|
256
|
-
error?: string | Error;
|
|
257
|
-
}): Promise<void>;
|
|
258
|
-
executeEntry({ workflowId, runId, entry, prevStep, serializedStepGraph, stepResults, resume, executionContext, emitter, abortController, runtimeContext, }: {
|
|
259
|
-
workflowId: string;
|
|
260
|
-
runId: string;
|
|
261
|
-
entry: StepFlowEntry;
|
|
262
|
-
prevStep: StepFlowEntry;
|
|
263
|
-
serializedStepGraph: SerializedStepFlowEntry[];
|
|
264
|
-
stepResults: Record<string, StepResult<any, any, any, any>>;
|
|
265
|
-
resume?: {
|
|
266
|
-
steps: string[];
|
|
267
|
-
stepResults: Record<string, StepResult<any, any, any, any>>;
|
|
268
|
-
resumePayload: any;
|
|
269
|
-
resumePath: number[];
|
|
270
|
-
};
|
|
271
|
-
executionContext: ExecutionContext;
|
|
272
|
-
emitter: Emitter;
|
|
273
|
-
abortController: AbortController;
|
|
274
|
-
runtimeContext: RuntimeContext;
|
|
275
|
-
}): Promise<{
|
|
276
|
-
result: StepResult<any, any, any, any>;
|
|
277
|
-
stepResults?: Record<string, StepResult<any, any, any, any>>;
|
|
278
|
-
executionContext?: ExecutionContext;
|
|
279
|
-
}>;
|
|
280
|
-
}
|
|
281
|
-
|
|
282
|
-
export { DefaultEngineType, DefaultExecutionEngine, Emitter, ExecuteFunction, type ExecutionContext, ExecutionEngine, ExecutionGraph, SerializedStepFlowEntry, Step, StepFlowEntry, StepResult };
|