@mastra/core 0.2.0-alpha.98 → 0.2.0-alpha.99
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/agent/index.js +2 -2
- package/dist/{chunk-MG3WAQV7.js → chunk-A7SNFYQB.js} +1 -1
- package/dist/{chunk-TYIBRZOY.js → chunk-DHCULRJM.js} +19 -12
- package/dist/index.js +5 -5
- package/dist/mastra/index.js +6 -1
- package/dist/relevance/index.js +3 -3
- package/package.json +1 -1
- package/dist/{chunk-QXH6EK72.js → chunk-EO3TIPGQ.js} +1 -1
package/dist/agent/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
export { Agent } from '../chunk-
|
|
1
|
+
export { Agent } from '../chunk-EO3TIPGQ.js';
|
|
2
2
|
import '../chunk-4ZUSEHLH.js';
|
|
3
3
|
import '../chunk-KNPBNSJ7.js';
|
|
4
|
+
import '../chunk-HBTQNIAX.js';
|
|
4
5
|
import '../chunk-G4MCO7XF.js';
|
|
5
6
|
import '../chunk-ICMEXHKD.js';
|
|
6
|
-
import '../chunk-HBTQNIAX.js';
|
|
7
7
|
import '../chunk-AJJZUHB4.js';
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { DefaultStorage } from './chunk-Z7JFMQZZ.js';
|
|
1
2
|
import { InstrumentClass, Telemetry } from './chunk-4ZUSEHLH.js';
|
|
2
3
|
import { LogLevel, createLogger, noopLogger } from './chunk-ICMEXHKD.js';
|
|
3
4
|
import { __name, __publicField } from './chunk-AJJZUHB4.js';
|
|
@@ -55,18 +56,24 @@ var _Mastra = class _Mastra {
|
|
|
55
56
|
this.deployer.__setTelemetry(this.telemetry);
|
|
56
57
|
}
|
|
57
58
|
}
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
59
|
+
let storage = config?.storage;
|
|
60
|
+
if (!storage) {
|
|
61
|
+
storage = new DefaultStorage({
|
|
62
|
+
config: {
|
|
63
|
+
url: ":memory:"
|
|
64
|
+
}
|
|
65
|
+
});
|
|
66
|
+
}
|
|
67
|
+
if (this.telemetry) {
|
|
68
|
+
this.storage = this.telemetry.traceClass(storage, {
|
|
69
|
+
excludeMethods: [
|
|
70
|
+
"__setTelemetry",
|
|
71
|
+
"__getTelemetry"
|
|
72
|
+
]
|
|
73
|
+
});
|
|
74
|
+
this.storage.__setTelemetry(this.telemetry);
|
|
75
|
+
} else {
|
|
76
|
+
this.storage = storage;
|
|
70
77
|
}
|
|
71
78
|
if (config?.vectors) {
|
|
72
79
|
let vectors = {};
|
package/dist/index.js
CHANGED
|
@@ -5,25 +5,25 @@ import { Integration, OpenAPIToolset } from './chunk-42DYOLDV.js';
|
|
|
5
5
|
import { Tool } from './chunk-VOUPGVRD.js';
|
|
6
6
|
export { createTool } from './chunk-VOUPGVRD.js';
|
|
7
7
|
import './chunk-AE3H2QEY.js';
|
|
8
|
-
export { Mastra } from './chunk-
|
|
8
|
+
export { Mastra } from './chunk-DHCULRJM.js';
|
|
9
9
|
import { MastraMemory } from './chunk-HPXWJBQK.js';
|
|
10
|
-
export { CohereRelevanceScorer, MastraAgentRelevanceScorer, createSimilarityPrompt } from './chunk-
|
|
10
|
+
export { CohereRelevanceScorer, MastraAgentRelevanceScorer, createSimilarityPrompt } from './chunk-A7SNFYQB.js';
|
|
11
11
|
import { MastraStorage, DefaultStorage } from './chunk-Z7JFMQZZ.js';
|
|
12
12
|
export { DefaultStorage } from './chunk-Z7JFMQZZ.js';
|
|
13
13
|
export { DefaultVectorDB, DefaultVectorDB as LibSQLVector } from './chunk-ZJOMHCWE.js';
|
|
14
14
|
import { MastraVector } from './chunk-C55JWGDU.js';
|
|
15
15
|
export { localEmbedder } from './chunk-C55JWGDU.js';
|
|
16
|
-
import { Agent } from './chunk-
|
|
16
|
+
import { Agent } from './chunk-EO3TIPGQ.js';
|
|
17
17
|
export { InstrumentClass, Telemetry, hasActiveTelemetry, withSpan } from './chunk-4ZUSEHLH.js';
|
|
18
18
|
export { deepMerge, delay, jsonSchemaPropertiesToTSTypes, jsonSchemaToModel, maskStreamTags } from './chunk-KNPBNSJ7.js';
|
|
19
19
|
import { MastraDeployer } from './chunk-JJ57BXQR.js';
|
|
20
|
+
export { Metric, evaluate } from './chunk-JP37ODNX.js';
|
|
21
|
+
export { AvailableHooks, executeHook, registerHook } from './chunk-HBTQNIAX.js';
|
|
20
22
|
import './chunk-MCB4M5W4.js';
|
|
21
23
|
import { MastraBase } from './chunk-G4MCO7XF.js';
|
|
22
24
|
import { createLogger } from './chunk-ICMEXHKD.js';
|
|
23
25
|
export { LogLevel, Logger, LoggerTransport, MultiLogger, RegisteredLogger, combineLoggers, noopLogger } from './chunk-ICMEXHKD.js';
|
|
24
26
|
export { BaseFilterTranslator } from './chunk-4LJFWC2Q.js';
|
|
25
|
-
export { Metric, evaluate } from './chunk-JP37ODNX.js';
|
|
26
|
-
export { AvailableHooks, executeHook, registerHook } from './chunk-HBTQNIAX.js';
|
|
27
27
|
import { __name } from './chunk-AJJZUHB4.js';
|
|
28
28
|
|
|
29
29
|
// src/agent/index.warning.ts
|
package/dist/mastra/index.js
CHANGED
|
@@ -1,4 +1,9 @@
|
|
|
1
|
-
export { Mastra } from '../chunk-
|
|
1
|
+
export { Mastra } from '../chunk-DHCULRJM.js';
|
|
2
|
+
import '../chunk-Z7JFMQZZ.js';
|
|
3
|
+
import '../chunk-ZJOMHCWE.js';
|
|
4
|
+
import '../chunk-C55JWGDU.js';
|
|
2
5
|
import '../chunk-4ZUSEHLH.js';
|
|
6
|
+
import '../chunk-G4MCO7XF.js';
|
|
3
7
|
import '../chunk-ICMEXHKD.js';
|
|
8
|
+
import '../chunk-4LJFWC2Q.js';
|
|
4
9
|
import '../chunk-AJJZUHB4.js';
|
package/dist/relevance/index.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
export { CohereRelevanceScorer, MastraAgentRelevanceScorer, createSimilarityPrompt } from '../chunk-
|
|
2
|
-
import '../chunk-
|
|
1
|
+
export { CohereRelevanceScorer, MastraAgentRelevanceScorer, createSimilarityPrompt } from '../chunk-A7SNFYQB.js';
|
|
2
|
+
import '../chunk-EO3TIPGQ.js';
|
|
3
3
|
import '../chunk-4ZUSEHLH.js';
|
|
4
4
|
import '../chunk-KNPBNSJ7.js';
|
|
5
|
+
import '../chunk-HBTQNIAX.js';
|
|
5
6
|
import '../chunk-G4MCO7XF.js';
|
|
6
7
|
import '../chunk-ICMEXHKD.js';
|
|
7
|
-
import '../chunk-HBTQNIAX.js';
|
|
8
8
|
import '../chunk-AJJZUHB4.js';
|
package/package.json
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { InstrumentClass } from './chunk-4ZUSEHLH.js';
|
|
2
2
|
import { delay } from './chunk-KNPBNSJ7.js';
|
|
3
|
+
import { executeHook, AvailableHooks } from './chunk-HBTQNIAX.js';
|
|
3
4
|
import { MastraBase } from './chunk-G4MCO7XF.js';
|
|
4
5
|
import { RegisteredLogger, LogLevel } from './chunk-ICMEXHKD.js';
|
|
5
|
-
import { executeHook, AvailableHooks } from './chunk-HBTQNIAX.js';
|
|
6
6
|
import { __name, __privateAdd, __privateSet, __privateGet, __publicField } from './chunk-AJJZUHB4.js';
|
|
7
7
|
import { randomUUID } from 'crypto';
|
|
8
8
|
import { z } from 'zod';
|