@mastra/core 0.10.3 → 0.10.4-alpha.1
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.cjs +4 -4
- package/dist/agent/index.d.cts +4 -3
- package/dist/agent/index.d.ts +4 -3
- package/dist/agent/index.js +2 -2
- package/dist/{base-Dmg7H-Iz.d.cts → base-BBs8xtlU.d.cts} +71 -6
- package/dist/{base-BY9WFI65.d.cts → base-Bi9KB0TN.d.ts} +19 -3
- package/dist/{base-C0yUw8BC.d.ts → base-CO-L7hF9.d.cts} +19 -3
- package/dist/{base-Bdo-CPMn.d.ts → base-DKqdQHNd.d.ts} +71 -6
- package/dist/base.cjs +2 -2
- package/dist/base.d.cts +3 -2
- package/dist/base.d.ts +3 -2
- package/dist/base.js +1 -1
- package/dist/bundler/index.cjs +2 -2
- package/dist/bundler/index.d.cts +3 -2
- package/dist/bundler/index.d.ts +3 -2
- package/dist/bundler/index.js +1 -1
- package/dist/{chunk-NMDM4IZN.cjs → chunk-2D7NOO7S.cjs} +16 -11
- package/dist/{chunk-EWDGXKOQ.js → chunk-36UICULV.js} +2 -1
- package/dist/{chunk-JOCKZ2US.js → chunk-5IEKR756.js} +1 -1
- package/dist/{chunk-XXVGT7SJ.js → chunk-5YDTZN2X.js} +32 -9
- package/dist/{chunk-4TEWSQS5.js → chunk-6FYLLPWK.js} +1 -1
- package/dist/chunk-7LRIVP5A.cjs +138 -0
- package/dist/{chunk-FLPSXJWQ.js → chunk-7UNDRBOU.js} +2 -2
- package/dist/{chunk-DTJ4KVHM.js → chunk-ATXBSEFT.js} +1 -1
- package/dist/chunk-BBAQW23O.cjs +68 -0
- package/dist/{chunk-OBEALYTK.js → chunk-DO5R43AJ.js} +16 -11
- package/dist/{chunk-5EB62G6T.js → chunk-DU32FMDF.js} +3 -3
- package/dist/{chunk-CYJF6U6B.cjs → chunk-FEYYOBBG.cjs} +2 -2
- package/dist/{chunk-K7BZ4VXX.js → chunk-GSELXPJC.js} +3 -3
- package/dist/{chunk-SH2C4VTJ.cjs → chunk-GV6P24NY.cjs} +25 -14
- package/dist/{chunk-FHLDRRKJ.cjs → chunk-H5IRI46R.cjs} +3 -3
- package/dist/{chunk-FGBS7VRU.js → chunk-HFEELWJO.js} +33 -23
- package/dist/{chunk-PMAVDBJY.js → chunk-IM7CLVLZ.js} +1 -1
- package/dist/{chunk-TIPFGQCO.js → chunk-IZGRJXUQ.js} +19 -8
- package/dist/{chunk-XJCP3SLA.js → chunk-JNMQKJH4.js} +1 -1
- package/dist/{chunk-3JGO7S6X.cjs → chunk-JYLH5IY3.cjs} +4 -4
- package/dist/{chunk-TAHSAZUN.cjs → chunk-LEK3J7YN.cjs} +2 -2
- package/dist/{chunk-B4TMM6NT.js → chunk-MGOJI66G.js} +25 -9
- package/dist/{chunk-ERUGEZPR.cjs → chunk-NFGQDPZL.cjs} +2 -2
- package/dist/{chunk-7MWWPVCE.js → chunk-NWJWIOVO.js} +48 -2
- package/dist/{chunk-MVXVUMLA.cjs → chunk-OKHKG5C7.cjs} +42 -26
- package/dist/{chunk-VHZPWE5L.cjs → chunk-P3Q73CAW.cjs} +6 -6
- package/dist/chunk-PVGSY24V.js +63 -0
- package/dist/chunk-QVROTSA5.cjs +408 -0
- package/dist/{chunk-VBSKHNCY.cjs → chunk-RO5VPM3P.cjs} +39 -29
- package/dist/{chunk-LMTSGD2E.cjs → chunk-RORSYAKV.cjs} +7 -7
- package/dist/{chunk-HZ7ME4LD.cjs → chunk-S6WRT7GI.cjs} +4 -4
- package/dist/{chunk-ZPOETARN.js → chunk-SI2ENZ3O.js} +2 -2
- package/dist/chunk-TRJIWZKM.js +390 -0
- package/dist/{chunk-IBIGJYTD.cjs → chunk-UJODXBBX.cjs} +8 -8
- package/dist/{chunk-677GIYFF.js → chunk-YCYAVLYR.js} +1 -1
- package/dist/{chunk-TICDQWVJ.cjs → chunk-ZAXPU6F2.cjs} +2 -1
- package/dist/{chunk-RFAN7FAT.cjs → chunk-ZIZ3CVHN.cjs} +32 -9
- package/dist/{chunk-PKYG5CWB.cjs → chunk-ZZLBNB3U.cjs} +2 -2
- package/dist/deployer/index.cjs +2 -2
- package/dist/deployer/index.d.cts +3 -2
- package/dist/deployer/index.d.ts +3 -2
- package/dist/deployer/index.js +1 -1
- package/dist/error/index.cjs +19 -72
- package/dist/error/index.d.cts +25 -31
- package/dist/error/index.d.ts +25 -31
- package/dist/error/index.js +1 -70
- package/dist/eval/index.d.cts +4 -3
- package/dist/eval/index.d.ts +4 -3
- package/dist/index.cjs +58 -58
- package/dist/index.d.cts +6 -5
- package/dist/index.d.ts +6 -5
- package/dist/index.js +14 -14
- package/dist/integration/index.d.cts +4 -3
- package/dist/integration/index.d.ts +4 -3
- package/dist/llm/index.d.cts +4 -3
- package/dist/llm/index.d.ts +4 -3
- package/dist/logger/index.cjs +10 -10
- package/dist/logger/index.d.cts +60 -7
- package/dist/logger/index.d.ts +60 -7
- package/dist/logger/index.js +2 -2
- package/dist/logger-CpL0z5v_.d.cts +158 -0
- package/dist/logger-DtVDdb81.d.ts +158 -0
- package/dist/mastra/index.cjs +2 -2
- package/dist/mastra/index.d.cts +5 -4
- package/dist/mastra/index.d.ts +5 -4
- package/dist/mastra/index.js +1 -1
- package/dist/mcp/index.cjs +4 -4
- package/dist/mcp/index.d.cts +5 -4
- package/dist/mcp/index.d.ts +5 -4
- package/dist/mcp/index.js +3 -3
- package/dist/memory/index.cjs +4 -4
- package/dist/memory/index.d.cts +4 -3
- package/dist/memory/index.d.ts +4 -3
- package/dist/memory/index.js +1 -1
- package/dist/network/index.cjs +6 -6
- package/dist/network/index.d.cts +4 -3
- package/dist/network/index.d.ts +4 -3
- package/dist/network/index.js +3 -3
- package/dist/relevance/index.cjs +4 -4
- package/dist/relevance/index.d.cts +5 -4
- package/dist/relevance/index.d.ts +5 -4
- package/dist/relevance/index.js +1 -1
- package/dist/server/index.cjs +4 -4
- package/dist/server/index.d.cts +5 -4
- package/dist/server/index.d.ts +5 -4
- package/dist/server/index.js +2 -2
- package/dist/storage/index.cjs +17 -12
- package/dist/storage/index.d.cts +11 -5
- package/dist/storage/index.d.ts +11 -5
- package/dist/storage/index.js +9 -4
- package/dist/telemetry/index.cjs +7 -7
- package/dist/telemetry/index.d.cts +4 -3
- package/dist/telemetry/index.d.ts +4 -3
- package/dist/telemetry/index.js +1 -1
- package/dist/tools/index.d.cts +6 -5
- package/dist/tools/index.d.ts +6 -5
- package/dist/tts/index.cjs +2 -2
- package/dist/tts/index.d.cts +3 -2
- package/dist/tts/index.d.ts +3 -2
- package/dist/tts/index.js +1 -1
- package/dist/utils.cjs +14 -14
- package/dist/utils.d.cts +4 -3
- package/dist/utils.d.ts +4 -3
- package/dist/utils.js +1 -1
- package/dist/vector/index.cjs +2 -2
- package/dist/vector/index.d.cts +3 -2
- package/dist/vector/index.d.ts +3 -2
- package/dist/vector/index.js +1 -1
- package/dist/voice/index.cjs +4 -4
- package/dist/voice/index.d.cts +4 -3
- package/dist/voice/index.d.ts +4 -3
- package/dist/voice/index.js +1 -1
- package/dist/workflows/index.cjs +9 -9
- package/dist/workflows/index.d.cts +5 -4
- package/dist/workflows/index.d.ts +5 -4
- package/dist/workflows/index.js +1 -1
- package/dist/workflows/legacy/index.cjs +22 -22
- package/dist/workflows/legacy/index.d.cts +5 -4
- package/dist/workflows/legacy/index.d.ts +5 -4
- package/dist/workflows/legacy/index.js +1 -1
- package/package.json +10 -11
- package/dist/chunk-WWLMZIHW.cjs +0 -995
- package/dist/chunk-X6VHQCYN.cjs +0 -92
- package/dist/chunk-Y5BGCPNZ.js +0 -977
- package/dist/logger-BF2Sn7JX.d.cts +0 -79
- package/dist/logger-BF2Sn7JX.d.ts +0 -79
package/dist/chunk-X6VHQCYN.cjs
DELETED
|
@@ -1,92 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
var chunkTICDQWVJ_cjs = require('./chunk-TICDQWVJ.cjs');
|
|
4
|
-
var chunkVHZPWE5L_cjs = require('./chunk-VHZPWE5L.cjs');
|
|
5
|
-
|
|
6
|
-
// src/storage/base.ts
|
|
7
|
-
var MastraStorage = class extends chunkVHZPWE5L_cjs.MastraBase {
|
|
8
|
-
/** @deprecated import from { TABLE_WORKFLOW_SNAPSHOT } '@mastra/core/storage' instead */
|
|
9
|
-
static TABLE_WORKFLOW_SNAPSHOT = chunkTICDQWVJ_cjs.TABLE_WORKFLOW_SNAPSHOT;
|
|
10
|
-
/** @deprecated import from { TABLE_EVALS } '@mastra/core/storage' instead */
|
|
11
|
-
static TABLE_EVALS = chunkTICDQWVJ_cjs.TABLE_EVALS;
|
|
12
|
-
/** @deprecated import from { TABLE_MESSAGES } '@mastra/core/storage' instead */
|
|
13
|
-
static TABLE_MESSAGES = chunkTICDQWVJ_cjs.TABLE_MESSAGES;
|
|
14
|
-
/** @deprecated import from { TABLE_THREADS } '@mastra/core/storage' instead */
|
|
15
|
-
static TABLE_THREADS = chunkTICDQWVJ_cjs.TABLE_THREADS;
|
|
16
|
-
/** @deprecated import { TABLE_TRACES } from '@mastra/core/storage' instead */
|
|
17
|
-
static TABLE_TRACES = chunkTICDQWVJ_cjs.TABLE_TRACES;
|
|
18
|
-
hasInitialized = null;
|
|
19
|
-
shouldCacheInit = true;
|
|
20
|
-
constructor({ name }) {
|
|
21
|
-
super({
|
|
22
|
-
component: "STORAGE",
|
|
23
|
-
name
|
|
24
|
-
});
|
|
25
|
-
}
|
|
26
|
-
batchTraceInsert({ records }) {
|
|
27
|
-
return this.batchInsert({ tableName: chunkTICDQWVJ_cjs.TABLE_TRACES, records });
|
|
28
|
-
}
|
|
29
|
-
async init() {
|
|
30
|
-
if (this.shouldCacheInit && await this.hasInitialized) {
|
|
31
|
-
return;
|
|
32
|
-
}
|
|
33
|
-
this.hasInitialized = Promise.all([
|
|
34
|
-
this.createTable({
|
|
35
|
-
tableName: chunkTICDQWVJ_cjs.TABLE_WORKFLOW_SNAPSHOT,
|
|
36
|
-
schema: chunkTICDQWVJ_cjs.TABLE_SCHEMAS[chunkTICDQWVJ_cjs.TABLE_WORKFLOW_SNAPSHOT]
|
|
37
|
-
}),
|
|
38
|
-
this.createTable({
|
|
39
|
-
tableName: chunkTICDQWVJ_cjs.TABLE_EVALS,
|
|
40
|
-
schema: chunkTICDQWVJ_cjs.TABLE_SCHEMAS[chunkTICDQWVJ_cjs.TABLE_EVALS]
|
|
41
|
-
}),
|
|
42
|
-
this.createTable({
|
|
43
|
-
tableName: chunkTICDQWVJ_cjs.TABLE_THREADS,
|
|
44
|
-
schema: chunkTICDQWVJ_cjs.TABLE_SCHEMAS[chunkTICDQWVJ_cjs.TABLE_THREADS]
|
|
45
|
-
}),
|
|
46
|
-
this.createTable({
|
|
47
|
-
tableName: chunkTICDQWVJ_cjs.TABLE_MESSAGES,
|
|
48
|
-
schema: chunkTICDQWVJ_cjs.TABLE_SCHEMAS[chunkTICDQWVJ_cjs.TABLE_MESSAGES]
|
|
49
|
-
}),
|
|
50
|
-
this.createTable({
|
|
51
|
-
tableName: chunkTICDQWVJ_cjs.TABLE_TRACES,
|
|
52
|
-
schema: chunkTICDQWVJ_cjs.TABLE_SCHEMAS[chunkTICDQWVJ_cjs.TABLE_TRACES]
|
|
53
|
-
})
|
|
54
|
-
]).then(() => true);
|
|
55
|
-
await this.hasInitialized;
|
|
56
|
-
}
|
|
57
|
-
async persistWorkflowSnapshot({
|
|
58
|
-
workflowName,
|
|
59
|
-
runId,
|
|
60
|
-
snapshot
|
|
61
|
-
}) {
|
|
62
|
-
await this.init();
|
|
63
|
-
const data = {
|
|
64
|
-
workflow_name: workflowName,
|
|
65
|
-
run_id: runId,
|
|
66
|
-
snapshot,
|
|
67
|
-
createdAt: /* @__PURE__ */ new Date(),
|
|
68
|
-
updatedAt: /* @__PURE__ */ new Date()
|
|
69
|
-
};
|
|
70
|
-
this.logger.debug("Persisting workflow snapshot", { workflowName, runId, data });
|
|
71
|
-
await this.insert({
|
|
72
|
-
tableName: chunkTICDQWVJ_cjs.TABLE_WORKFLOW_SNAPSHOT,
|
|
73
|
-
record: data
|
|
74
|
-
});
|
|
75
|
-
}
|
|
76
|
-
async loadWorkflowSnapshot({
|
|
77
|
-
workflowName,
|
|
78
|
-
runId
|
|
79
|
-
}) {
|
|
80
|
-
if (!this.hasInitialized) {
|
|
81
|
-
await this.init();
|
|
82
|
-
}
|
|
83
|
-
this.logger.debug("Loading workflow snapshot", { workflowName, runId });
|
|
84
|
-
const d = await this.load({
|
|
85
|
-
tableName: chunkTICDQWVJ_cjs.TABLE_WORKFLOW_SNAPSHOT,
|
|
86
|
-
keys: { workflow_name: workflowName, run_id: runId }
|
|
87
|
-
});
|
|
88
|
-
return d ? d.snapshot : null;
|
|
89
|
-
}
|
|
90
|
-
};
|
|
91
|
-
|
|
92
|
-
exports.MastraStorage = MastraStorage;
|