@mastra/core 0.2.0-alpha.104 → 0.2.0-alpha.105
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-HSLMCOV6.js → chunk-2RU3IQDX.js} +2 -5
- package/dist/{chunk-OSLPT7IG.js → chunk-4IPB5EML.js} +2 -6
- package/dist/{chunk-LJJUJBWQ.js → chunk-YJMAR3V2.js} +1 -1
- package/dist/index.js +4 -4
- package/dist/mastra/index.js +3 -3
- package/dist/memory/index.js +2 -2
- package/dist/relevance/index.js +2 -2
- package/dist/storage/index.js +1 -1
- package/package.json +1 -1
package/dist/agent/index.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
export { Agent } from '../chunk-5L4O57PY.js';
|
|
2
2
|
import '../chunk-Y6CIDPEC.js';
|
|
3
3
|
import '../chunk-2SAHBQEF.js';
|
|
4
|
-
import '../chunk-
|
|
5
|
-
import '../chunk-
|
|
4
|
+
import '../chunk-YJMAR3V2.js';
|
|
5
|
+
import '../chunk-4IPB5EML.js';
|
|
6
6
|
import '../chunk-RG66XEJT.js';
|
|
7
7
|
import '../chunk-WB5OEAWD.js';
|
|
8
8
|
import '../chunk-6MKKSWBC.js';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { InstrumentClass, OTLPTraceExporter, Telemetry } from './chunk-Y6CIDPEC.js';
|
|
2
|
-
import { DefaultStorage } from './chunk-
|
|
2
|
+
import { DefaultStorage } from './chunk-4IPB5EML.js';
|
|
3
3
|
import { LogLevel, createLogger, noopLogger } from './chunk-O2VP5JBC.js';
|
|
4
4
|
import { __decoratorStart, __decorateElement, __runInitializers } from './chunk-C6A6W6XS.js';
|
|
5
5
|
|
|
@@ -41,15 +41,12 @@ var Mastra = class {
|
|
|
41
41
|
});
|
|
42
42
|
}
|
|
43
43
|
if (storage instanceof DefaultStorage) {
|
|
44
|
-
const logger2 = config?.logger ? this.logger : createLogger({
|
|
45
|
-
level: "debug"
|
|
46
|
-
});
|
|
47
44
|
const newTelemetry = {
|
|
48
45
|
...config?.telemetry || {},
|
|
49
46
|
export: {
|
|
50
47
|
type: "custom",
|
|
51
48
|
exporter: new OTLPTraceExporter({
|
|
52
|
-
logger:
|
|
49
|
+
logger: this.getLogger(),
|
|
53
50
|
storage
|
|
54
51
|
})
|
|
55
52
|
}
|
|
@@ -508,7 +508,7 @@ var DefaultStorage = class extends MastraStorage {
|
|
|
508
508
|
await tx.commit();
|
|
509
509
|
return messages;
|
|
510
510
|
} catch (error) {
|
|
511
|
-
|
|
511
|
+
this.logger.error("Failed to save messages in database: " + error?.message);
|
|
512
512
|
await tx.rollback();
|
|
513
513
|
throw error;
|
|
514
514
|
}
|
|
@@ -547,7 +547,7 @@ var DefaultStorage = class extends MastraStorage {
|
|
|
547
547
|
if (error instanceof Error && error.message.includes("no such table")) {
|
|
548
548
|
return [];
|
|
549
549
|
}
|
|
550
|
-
|
|
550
|
+
this.logger.error("Failed to get evals for the specified agent: " + error?.message);
|
|
551
551
|
throw error;
|
|
552
552
|
}
|
|
553
553
|
}
|
|
@@ -590,10 +590,6 @@ var DefaultStorage = class extends MastraStorage {
|
|
|
590
590
|
}
|
|
591
591
|
}
|
|
592
592
|
args.push(limit, offset);
|
|
593
|
-
console.log({
|
|
594
|
-
sql: `SELECT * FROM ${TABLE_TRACES} ${whereClause} ORDER BY "createdAt" DESC LIMIT ? OFFSET ?`,
|
|
595
|
-
args
|
|
596
|
-
});
|
|
597
593
|
const result = await this.client.execute({
|
|
598
594
|
sql: `SELECT * FROM ${TABLE_TRACES} ${whereClause} ORDER BY "createdAt" DESC LIMIT ? OFFSET ?`,
|
|
599
595
|
args
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { DefaultStorage } from './chunk-
|
|
1
|
+
import { DefaultStorage } from './chunk-4IPB5EML.js';
|
|
2
2
|
import { DefaultVectorDB } from './chunk-WB5OEAWD.js';
|
|
3
3
|
import { defaultEmbedder } from './chunk-6MKKSWBC.js';
|
|
4
4
|
import { deepMerge } from './chunk-55GTEVHJ.js';
|
package/dist/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Integration, OpenAPIToolset } from './chunk-MEISIZMP.js';
|
|
2
2
|
import { Tool } from './chunk-3HBFW3Q7.js';
|
|
3
3
|
export { createTool } from './chunk-3HBFW3Q7.js';
|
|
4
|
-
export { Mastra } from './chunk-
|
|
4
|
+
export { Mastra } from './chunk-2RU3IQDX.js';
|
|
5
5
|
import { MastraTTS } from './chunk-CP4ASWT3.js';
|
|
6
6
|
import { Workflow } from './chunk-5WOXVYCZ.js';
|
|
7
7
|
export { Step, createStep, getStepResult, isErrorEvent, isTransitionEvent, isVariableReference } from './chunk-5WOXVYCZ.js';
|
|
@@ -10,9 +10,9 @@ export { CohereRelevanceScorer, MastraAgentRelevanceScorer, createSimilarityProm
|
|
|
10
10
|
import { Agent } from './chunk-5L4O57PY.js';
|
|
11
11
|
export { InstrumentClass, OTLPTraceExporter as OTLPStorageExporter, Telemetry, hasActiveTelemetry, withSpan } from './chunk-Y6CIDPEC.js';
|
|
12
12
|
import './chunk-2SAHBQEF.js';
|
|
13
|
-
import { MastraMemory } from './chunk-
|
|
14
|
-
import { MastraStorage, DefaultStorage } from './chunk-
|
|
15
|
-
export { DefaultStorage } from './chunk-
|
|
13
|
+
import { MastraMemory } from './chunk-YJMAR3V2.js';
|
|
14
|
+
import { MastraStorage, DefaultStorage } from './chunk-4IPB5EML.js';
|
|
15
|
+
export { DefaultStorage } from './chunk-4IPB5EML.js';
|
|
16
16
|
import './chunk-RG66XEJT.js';
|
|
17
17
|
export { DefaultVectorDB, DefaultVectorDB as LibSQLVector } from './chunk-WB5OEAWD.js';
|
|
18
18
|
import { MastraVector } from './chunk-6MKKSWBC.js';
|
package/dist/mastra/index.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
export { Mastra } from '../chunk-
|
|
1
|
+
export { Mastra } from '../chunk-2RU3IQDX.js';
|
|
2
2
|
import '../chunk-CP4ASWT3.js';
|
|
3
3
|
import '../chunk-5WOXVYCZ.js';
|
|
4
4
|
import '../chunk-5L4O57PY.js';
|
|
5
5
|
import '../chunk-Y6CIDPEC.js';
|
|
6
6
|
import '../chunk-2SAHBQEF.js';
|
|
7
|
-
import '../chunk-
|
|
8
|
-
import '../chunk-
|
|
7
|
+
import '../chunk-YJMAR3V2.js';
|
|
8
|
+
import '../chunk-4IPB5EML.js';
|
|
9
9
|
import '../chunk-RG66XEJT.js';
|
|
10
10
|
import '../chunk-WB5OEAWD.js';
|
|
11
11
|
import '../chunk-6MKKSWBC.js';
|
package/dist/memory/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import '../chunk-VDOJTUYY.js';
|
|
2
|
-
export { MastraMemory } from '../chunk-
|
|
3
|
-
import '../chunk-
|
|
2
|
+
export { MastraMemory } from '../chunk-YJMAR3V2.js';
|
|
3
|
+
import '../chunk-4IPB5EML.js';
|
|
4
4
|
import '../chunk-RG66XEJT.js';
|
|
5
5
|
import '../chunk-WB5OEAWD.js';
|
|
6
6
|
import '../chunk-6MKKSWBC.js';
|
package/dist/relevance/index.js
CHANGED
|
@@ -2,8 +2,8 @@ export { CohereRelevanceScorer, MastraAgentRelevanceScorer, createSimilarityProm
|
|
|
2
2
|
import '../chunk-5L4O57PY.js';
|
|
3
3
|
import '../chunk-Y6CIDPEC.js';
|
|
4
4
|
import '../chunk-2SAHBQEF.js';
|
|
5
|
-
import '../chunk-
|
|
6
|
-
import '../chunk-
|
|
5
|
+
import '../chunk-YJMAR3V2.js';
|
|
6
|
+
import '../chunk-4IPB5EML.js';
|
|
7
7
|
import '../chunk-RG66XEJT.js';
|
|
8
8
|
import '../chunk-WB5OEAWD.js';
|
|
9
9
|
import '../chunk-6MKKSWBC.js';
|
package/dist/storage/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { DefaultStorage, MastraStorage, DefaultStorage as MastraStorageLibSql } from '../chunk-
|
|
1
|
+
export { DefaultStorage, MastraStorage, DefaultStorage as MastraStorageLibSql } from '../chunk-4IPB5EML.js';
|
|
2
2
|
export { TABLE_EVALS, TABLE_MESSAGES, TABLE_THREADS, TABLE_TRACES, TABLE_WORKFLOW_SNAPSHOT } from '../chunk-RG66XEJT.js';
|
|
3
3
|
export { DefaultVectorDB, DefaultVectorDB as LibSQLVector } from '../chunk-WB5OEAWD.js';
|
|
4
4
|
import '../chunk-6MKKSWBC.js';
|