@mastra/core 0.17.0-alpha.5 → 0.17.0-alpha.7
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 +35 -0
- package/cache.d.ts +1 -0
- package/dist/agent/agent.d.ts +1 -1
- package/dist/agent/index.cjs +11 -11
- package/dist/agent/index.js +2 -2
- package/dist/agent/input-processor/index.cjs +6 -6
- package/dist/agent/input-processor/index.js +1 -1
- package/dist/ai-tracing/index.cjs +32 -32
- package/dist/ai-tracing/index.js +1 -1
- package/dist/base.cjs +2 -2
- package/dist/base.js +1 -1
- package/dist/bundler/index.cjs +2 -2
- package/dist/bundler/index.js +1 -1
- package/dist/cache/base.d.ts +14 -0
- package/dist/cache/base.d.ts.map +1 -0
- package/dist/cache/index.cjs +16 -0
- package/dist/cache/index.cjs.map +1 -0
- package/dist/cache/index.d.ts +3 -0
- package/dist/cache/index.d.ts.map +1 -0
- package/dist/cache/index.js +3 -0
- package/dist/cache/index.js.map +1 -0
- package/dist/cache/inmemory.d.ts +13 -0
- package/dist/cache/inmemory.d.ts.map +1 -0
- package/dist/{chunk-XRJDA7BI.js → chunk-2B5DS7ML.js} +3 -3
- package/dist/{chunk-XRJDA7BI.js.map → chunk-2B5DS7ML.js.map} +1 -1
- package/dist/{chunk-IYN65QCO.js → chunk-36QJI2HU.js} +18 -33
- package/dist/chunk-36QJI2HU.js.map +1 -0
- package/dist/chunk-3PQNUWJM.js +62 -0
- package/dist/chunk-3PQNUWJM.js.map +1 -0
- package/dist/{chunk-QHDT3QQC.cjs → chunk-4HWB6PCC.cjs} +4 -4
- package/dist/{chunk-QHDT3QQC.cjs.map → chunk-4HWB6PCC.cjs.map} +1 -1
- package/dist/{chunk-KXCUCBEI.cjs → chunk-4L3P3PCP.cjs} +8 -8
- package/dist/{chunk-KXCUCBEI.cjs.map → chunk-4L3P3PCP.cjs.map} +1 -1
- package/dist/{chunk-VXJFKEON.js → chunk-4LANQQSH.js} +5 -5
- package/dist/{chunk-VXJFKEON.js.map → chunk-4LANQQSH.js.map} +1 -1
- package/dist/{chunk-TLJPVRO5.js → chunk-5QXPHYHO.js} +2 -3
- package/dist/chunk-5QXPHYHO.js.map +1 -0
- package/dist/{chunk-VBBMXF7Z.cjs → chunk-64ONYYLY.cjs} +30 -45
- package/dist/chunk-64ONYYLY.cjs.map +1 -0
- package/dist/{chunk-EXG53YAJ.cjs → chunk-6WEZASFM.cjs} +72 -60
- package/dist/chunk-6WEZASFM.cjs.map +1 -0
- package/dist/{chunk-7NKIBBCV.cjs → chunk-725O36VY.cjs} +6 -6
- package/dist/{chunk-7NKIBBCV.cjs.map → chunk-725O36VY.cjs.map} +1 -1
- package/dist/{chunk-6GF5M4GX.js → chunk-BMVFEBPE.js} +3 -3
- package/dist/{chunk-6GF5M4GX.js.map → chunk-BMVFEBPE.js.map} +1 -1
- package/dist/{chunk-X3GXU6TZ.js → chunk-BN2M4UK5.js} +5 -4
- package/dist/chunk-BN2M4UK5.js.map +1 -0
- package/dist/{chunk-IODUKRQP.js → chunk-C7EN3GVU.js} +3 -3
- package/dist/{chunk-IODUKRQP.js.map → chunk-C7EN3GVU.js.map} +1 -1
- package/dist/{chunk-3DHX2SDR.cjs → chunk-CWTKL7YK.cjs} +7 -7
- package/dist/{chunk-3DHX2SDR.cjs.map → chunk-CWTKL7YK.cjs.map} +1 -1
- package/dist/{chunk-YFAHGS45.js → chunk-DH34KXOJ.js} +4 -4
- package/dist/{chunk-YFAHGS45.js.map → chunk-DH34KXOJ.js.map} +1 -1
- package/dist/{chunk-MRZHPP3G.cjs → chunk-FJWPEAJE.cjs} +4 -4
- package/dist/{chunk-MRZHPP3G.cjs.map → chunk-FJWPEAJE.cjs.map} +1 -1
- package/dist/{chunk-2PQSZI63.js → chunk-GBW5ZDLZ.js} +3 -3
- package/dist/{chunk-2PQSZI63.js.map → chunk-GBW5ZDLZ.js.map} +1 -1
- package/dist/{chunk-CP4TZ4HO.cjs → chunk-GKSWFKHA.cjs} +16 -16
- package/dist/{chunk-CP4TZ4HO.cjs.map → chunk-GKSWFKHA.cjs.map} +1 -1
- package/dist/{chunk-K3JIDVC4.js → chunk-ITD7IHN5.js} +3 -3
- package/dist/{chunk-K3JIDVC4.js.map → chunk-ITD7IHN5.js.map} +1 -1
- package/dist/{chunk-HBQSSMAD.cjs → chunk-K72D7BXB.cjs} +8 -8
- package/dist/{chunk-HBQSSMAD.cjs.map → chunk-K72D7BXB.cjs.map} +1 -1
- package/dist/chunk-KTCBGNCZ.cjs +69 -0
- package/dist/chunk-KTCBGNCZ.cjs.map +1 -0
- package/dist/{chunk-NRGXWM6C.js → chunk-L3EC4ERG.js} +6 -6
- package/dist/{chunk-NRGXWM6C.js.map → chunk-L3EC4ERG.js.map} +1 -1
- package/dist/{chunk-RNJ4GD7U.cjs → chunk-MVBGQHNV.cjs} +9 -9
- package/dist/{chunk-RNJ4GD7U.cjs.map → chunk-MVBGQHNV.cjs.map} +1 -1
- package/dist/{chunk-QQIBOVFQ.js → chunk-NRJQMZLW.js} +4 -4
- package/dist/{chunk-QQIBOVFQ.js.map → chunk-NRJQMZLW.js.map} +1 -1
- package/dist/{chunk-Z73WO76N.js → chunk-NTXNE4YR.js} +3 -3
- package/dist/{chunk-Z73WO76N.js.map → chunk-NTXNE4YR.js.map} +1 -1
- package/dist/{chunk-S5QJEY5X.cjs → chunk-O6PQYYT6.cjs} +4 -4
- package/dist/{chunk-S5QJEY5X.cjs.map → chunk-O6PQYYT6.cjs.map} +1 -1
- package/dist/{chunk-4VHC2F5H.js → chunk-OCKXNBKT.js} +4 -4
- package/dist/{chunk-4VHC2F5H.js.map → chunk-OCKXNBKT.js.map} +1 -1
- package/dist/{chunk-AHJY7RHO.cjs → chunk-OT25QTJ2.cjs} +6 -6
- package/dist/{chunk-AHJY7RHO.cjs.map → chunk-OT25QTJ2.cjs.map} +1 -1
- package/dist/{chunk-666JQVO5.js → chunk-OWYPTFXD.js} +37 -26
- package/dist/chunk-OWYPTFXD.js.map +1 -0
- package/dist/{chunk-ABRPHTOG.cjs → chunk-PRVMPHNQ.cjs} +2 -2
- package/dist/{chunk-ABRPHTOG.cjs.map → chunk-PRVMPHNQ.cjs.map} +1 -1
- package/dist/{chunk-G366B5BY.js → chunk-PYVA36ZV.js} +3 -3
- package/dist/{chunk-G366B5BY.js.map → chunk-PYVA36ZV.js.map} +1 -1
- package/dist/{chunk-PL3B3FZM.js → chunk-QBRFMSMN.js} +6 -6
- package/dist/{chunk-PL3B3FZM.js.map → chunk-QBRFMSMN.js.map} +1 -1
- package/dist/chunk-QLYANYE2.cjs +14 -0
- package/dist/{chunk-QPOJZU26.cjs.map → chunk-QLYANYE2.cjs.map} +1 -1
- package/dist/{chunk-BJGHUKKM.js → chunk-RAQ4VAQ4.js} +2 -2
- package/dist/{chunk-BJGHUKKM.js.map → chunk-RAQ4VAQ4.js.map} +1 -1
- package/dist/{chunk-KYFRWMTX.js → chunk-SW656AYX.js} +3 -3
- package/dist/{chunk-KYFRWMTX.js.map → chunk-SW656AYX.js.map} +1 -1
- package/dist/{chunk-F6XWBVVG.cjs → chunk-WOC5SCZF.cjs} +4 -4
- package/dist/{chunk-F6XWBVVG.cjs.map → chunk-WOC5SCZF.cjs.map} +1 -1
- package/dist/{chunk-V5WKCX3G.cjs → chunk-WVCEJBDR.cjs} +5 -4
- package/dist/chunk-WVCEJBDR.cjs.map +1 -0
- package/dist/{chunk-SZZPFXZ7.cjs → chunk-XNZBDAEX.cjs} +13 -13
- package/dist/{chunk-SZZPFXZ7.cjs.map → chunk-XNZBDAEX.cjs.map} +1 -1
- package/dist/{chunk-7UO6UWCO.cjs → chunk-YISIO2V3.cjs} +4 -4
- package/dist/{chunk-7UO6UWCO.cjs.map → chunk-YISIO2V3.cjs.map} +1 -1
- package/dist/{chunk-GEPX327P.cjs → chunk-YWXSGDDO.cjs} +4 -4
- package/dist/{chunk-GEPX327P.cjs.map → chunk-YWXSGDDO.cjs.map} +1 -1
- package/dist/{chunk-BHB4PDNV.cjs → chunk-ZBINIUJL.cjs} +2 -3
- package/dist/chunk-ZBINIUJL.cjs.map +1 -0
- package/dist/{chunk-D43ZGJR3.js → chunk-ZFD7BUUD.js} +3 -3
- package/dist/{chunk-D43ZGJR3.js.map → chunk-ZFD7BUUD.js.map} +1 -1
- package/dist/deployer/index.cjs +2 -2
- package/dist/deployer/index.js +1 -1
- package/dist/index.cjs +66 -66
- package/dist/index.js +18 -18
- package/dist/integration/index.cjs +3 -3
- package/dist/integration/index.js +1 -1
- package/dist/logger/constants.d.ts +1 -0
- package/dist/logger/constants.d.ts.map +1 -1
- package/dist/logger/index.cjs +6 -6
- package/dist/logger/index.js +1 -1
- package/dist/loop/index.cjs +2 -2
- package/dist/loop/index.js +1 -1
- package/dist/loop/network/index.d.ts.map +1 -1
- package/dist/loop/test-utils/generateText.d.ts.map +1 -1
- package/dist/loop/workflows/agentic-execution/llm-execution-step.d.ts.map +1 -1
- package/dist/mastra/index.cjs +2 -2
- package/dist/mastra/index.d.ts +6 -12
- package/dist/mastra/index.d.ts.map +1 -1
- package/dist/mastra/index.js +1 -1
- package/dist/mcp/index.cjs +4 -4
- package/dist/mcp/index.js +2 -2
- package/dist/memory/index.cjs +4 -4
- package/dist/memory/index.js +1 -1
- package/dist/network/vNext/index.cjs +34 -34
- package/dist/network/vNext/index.cjs.map +1 -1
- package/dist/network/vNext/index.d.ts +67 -0
- package/dist/network/vNext/index.d.ts.map +1 -1
- package/dist/network/vNext/index.js +5 -5
- package/dist/network/vNext/index.js.map +1 -1
- package/dist/processors/index.cjs +8 -8
- package/dist/processors/index.js +2 -2
- package/dist/processors/processors/prompt-injection-detector.d.ts.map +1 -1
- package/dist/relevance/index.cjs +4 -4
- package/dist/relevance/index.js +1 -1
- package/dist/scores/index.cjs +8 -8
- package/dist/scores/index.js +1 -1
- package/dist/scores/run-experiment/index.d.ts +2 -2
- package/dist/scores/run-experiment/index.d.ts.map +1 -1
- package/dist/server/index.cjs +4 -4
- package/dist/server/index.js +2 -2
- package/dist/storage/index.cjs +17 -17
- package/dist/storage/index.js +4 -4
- package/dist/stream/MastraAgentNetworkStream.d.ts +1 -1
- package/dist/stream/MastraAgentNetworkStream.d.ts.map +1 -1
- package/dist/stream/MastraWorkflowStream.d.ts +5 -4
- package/dist/stream/MastraWorkflowStream.d.ts.map +1 -1
- package/dist/stream/base/output.d.ts.map +1 -1
- package/dist/stream/index.cjs +7 -3
- package/dist/stream/index.d.ts +1 -0
- package/dist/stream/index.d.ts.map +1 -1
- package/dist/stream/index.js +1 -1
- package/dist/telemetry/index.cjs +7 -7
- package/dist/telemetry/index.js +1 -1
- package/dist/telemetry/telemetry.decorators.d.ts.map +1 -1
- package/dist/test-utils/llm-mock.cjs +2 -2
- package/dist/test-utils/llm-mock.js +1 -1
- package/dist/tools/index.cjs +4 -4
- package/dist/tools/index.js +1 -1
- package/dist/tools/is-vercel-tool.cjs +2 -2
- package/dist/tools/is-vercel-tool.js +1 -1
- package/dist/tools/tool-builder/builder.d.ts.map +1 -1
- package/dist/tools/tool.d.ts +2 -4
- package/dist/tools/tool.d.ts.map +1 -1
- package/dist/tools/types.d.ts +5 -4
- package/dist/tools/types.d.ts.map +1 -1
- package/dist/tts/index.cjs +2 -2
- package/dist/tts/index.js +1 -1
- package/dist/utils.cjs +17 -17
- package/dist/utils.d.ts +1 -1
- package/dist/utils.d.ts.map +1 -1
- package/dist/utils.js +1 -1
- package/dist/vector/index.cjs +4 -4
- package/dist/vector/index.js +1 -1
- package/dist/voice/index.cjs +4 -4
- package/dist/voice/index.js +1 -1
- package/dist/workflows/default.d.ts.map +1 -1
- package/dist/workflows/evented/index.cjs +10 -10
- package/dist/workflows/evented/index.js +1 -1
- package/dist/workflows/evented/workflow.d.ts +2 -2
- package/dist/workflows/evented/workflow.d.ts.map +1 -1
- package/dist/workflows/index.cjs +10 -10
- package/dist/workflows/index.js +1 -1
- package/dist/workflows/legacy/index.cjs +22 -22
- package/dist/workflows/legacy/index.js +1 -1
- package/dist/workflows/types.d.ts +4 -1
- package/dist/workflows/types.d.ts.map +1 -1
- package/dist/workflows/workflow.d.ts +51 -11
- package/dist/workflows/workflow.d.ts.map +1 -1
- package/package.json +7 -6
- package/dist/chunk-666JQVO5.js.map +0 -1
- package/dist/chunk-BHB4PDNV.cjs.map +0 -1
- package/dist/chunk-EXG53YAJ.cjs.map +0 -1
- package/dist/chunk-IYN65QCO.js.map +0 -1
- package/dist/chunk-QPOJZU26.cjs +0 -14
- package/dist/chunk-TLJPVRO5.js.map +0 -1
- package/dist/chunk-V5WKCX3G.cjs.map +0 -1
- package/dist/chunk-VBBMXF7Z.cjs.map +0 -1
- package/dist/chunk-X3GXU6TZ.js.map +0 -1
- package/dist/network/index.cjs +0 -316
- package/dist/network/index.cjs.map +0 -1
- package/dist/network/index.d.ts +0 -3
- package/dist/network/index.d.ts.map +0 -1
- package/dist/network/index.js +0 -314
- package/dist/network/index.js.map +0 -1
- package/dist/network/network.d.ts +0 -124
- package/dist/network/network.d.ts.map +0 -1
- package/dist/network/types.d.ts +0 -9
- package/dist/network/types.d.ts.map +0 -1
- package/network.d.ts +0 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,40 @@
|
|
|
1
1
|
# @mastra/core
|
|
2
2
|
|
|
3
|
+
## 0.17.0-alpha.7
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- fix error message when fetching observability things ([#7956](https://github.com/mastra-ai/mastra/pull/7956))
|
|
8
|
+
|
|
9
|
+
## 0.17.0-alpha.6
|
|
10
|
+
|
|
11
|
+
### Minor Changes
|
|
12
|
+
|
|
13
|
+
- Remove original AgentNetwork ([#7919](https://github.com/mastra-ai/mastra/pull/7919))
|
|
14
|
+
|
|
15
|
+
### Patch Changes
|
|
16
|
+
|
|
17
|
+
- dependencies updates: ([#7861](https://github.com/mastra-ai/mastra/pull/7861))
|
|
18
|
+
- Updated dependency [`hono@^4.9.7` ↗︎](https://www.npmjs.com/package/hono/v/4.9.7) (from `^4.9.6`, in `dependencies`)
|
|
19
|
+
|
|
20
|
+
- clean up console logs in monorepo ([#7926](https://github.com/mastra-ai/mastra/pull/7926))
|
|
21
|
+
|
|
22
|
+
- Register server cache in Mastra ([#7946](https://github.com/mastra-ai/mastra/pull/7946))
|
|
23
|
+
|
|
24
|
+
- Resumable streams ([#7949](https://github.com/mastra-ai/mastra/pull/7949))
|
|
25
|
+
|
|
26
|
+
- move ToolExecutionOptions and ToolCallOptions to a union type (ToolInvocationOptions) for use in createTool, Tool, and ToolAction ([#7914](https://github.com/mastra-ai/mastra/pull/7914))
|
|
27
|
+
|
|
28
|
+
- fix scorers table link full row ([#7915](https://github.com/mastra-ai/mastra/pull/7915))
|
|
29
|
+
|
|
30
|
+
- adjust the way we display scorers in agent metadata ([#7910](https://github.com/mastra-ai/mastra/pull/7910))
|
|
31
|
+
|
|
32
|
+
- fix: support destructuring of streamVNext return values ([#7920](https://github.com/mastra-ai/mastra/pull/7920))
|
|
33
|
+
|
|
34
|
+
- Remove extraneous console.log ([#7916](https://github.com/mastra-ai/mastra/pull/7916))
|
|
35
|
+
|
|
36
|
+
- Fix switch in prompt-injection ([#7951](https://github.com/mastra-ai/mastra/pull/7951))
|
|
37
|
+
|
|
3
38
|
## 0.17.0-alpha.5
|
|
4
39
|
|
|
5
40
|
### Patch Changes
|
package/cache.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './dist/cache';
|
package/dist/agent/agent.d.ts
CHANGED
|
@@ -47,7 +47,7 @@ export declare class Agent<TAgentId extends string = string, TTools extends Tool
|
|
|
47
47
|
evals: TMetrics;
|
|
48
48
|
private _agentNetworkAppend;
|
|
49
49
|
constructor(config: AgentConfig<TAgentId, TTools, TMetrics>);
|
|
50
|
-
getMastraInstance(): Mastra<Record<string, Agent<any, ToolsInput, Record<string, Metric>>>, Record<string, import("../workflows/legacy").LegacyWorkflow<Step<string, any, any, import("../workflows/legacy").StepExecutionContext<any, import("../workflows/legacy").WorkflowContext<any, Step<string, any, any, any>[], Record<string, any>>>>[], string, any, any>>, Record<string, Workflow<any, import("..").Step<string, any, any, any, any, any>[], string, z.ZodType<any, z.ZodTypeDef, any>, z.ZodType<any, z.ZodTypeDef, any>, z.ZodType<any, z.ZodTypeDef, any>>>, Record<string, import("../vector").MastraVector<import("../vector/filter").VectorFilter>>, Record<string, import("../tts").MastraTTS>, import("../logger").IMastraLogger, Record<string, import("../network
|
|
50
|
+
getMastraInstance(): Mastra<Record<string, Agent<any, ToolsInput, Record<string, Metric>>>, Record<string, import("../workflows/legacy").LegacyWorkflow<Step<string, any, any, import("../workflows/legacy").StepExecutionContext<any, import("../workflows/legacy").WorkflowContext<any, Step<string, any, any, any>[], Record<string, any>>>>[], string, any, any>>, Record<string, Workflow<any, import("..").Step<string, any, any, any, any, any>[], string, z.ZodType<any, z.ZodTypeDef, any>, z.ZodType<any, z.ZodTypeDef, any>, z.ZodType<any, z.ZodTypeDef, any>>>, Record<string, import("../vector").MastraVector<import("../vector/filter").VectorFilter>>, Record<string, import("../tts").MastraTTS>, import("../logger").IMastraLogger, Record<string, import("../network/vNext").NewAgentNetwork>, Record<string, import("../mcp").MCPServerBase>, Record<string, MastraScorer<any, any, any, any>>> | undefined;
|
|
51
51
|
listAgents({ runtimeContext }?: {
|
|
52
52
|
runtimeContext?: RuntimeContext;
|
|
53
53
|
}): Record<string, Agent<string, ToolsInput, Record<string, Metric>>> | Promise<Record<string, Agent<string, ToolsInput, Record<string, Metric>>>>;
|
package/dist/agent/index.cjs
CHANGED
|
@@ -1,45 +1,45 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
4
|
-
var
|
|
3
|
+
var chunk6WEZASFM_cjs = require('../chunk-6WEZASFM.cjs');
|
|
4
|
+
var chunkFJWPEAJE_cjs = require('../chunk-FJWPEAJE.cjs');
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
|
|
8
8
|
Object.defineProperty(exports, "Agent", {
|
|
9
9
|
enumerable: true,
|
|
10
|
-
get: function () { return
|
|
10
|
+
get: function () { return chunk6WEZASFM_cjs.Agent; }
|
|
11
11
|
});
|
|
12
12
|
Object.defineProperty(exports, "LanguageDetectorInputProcessor", {
|
|
13
13
|
enumerable: true,
|
|
14
|
-
get: function () { return
|
|
14
|
+
get: function () { return chunk6WEZASFM_cjs.LanguageDetectorInputProcessor; }
|
|
15
15
|
});
|
|
16
16
|
Object.defineProperty(exports, "ModerationInputProcessor", {
|
|
17
17
|
enumerable: true,
|
|
18
|
-
get: function () { return
|
|
18
|
+
get: function () { return chunk6WEZASFM_cjs.ModerationInputProcessor; }
|
|
19
19
|
});
|
|
20
20
|
Object.defineProperty(exports, "PIIDetectorInputProcessor", {
|
|
21
21
|
enumerable: true,
|
|
22
|
-
get: function () { return
|
|
22
|
+
get: function () { return chunk6WEZASFM_cjs.PIIDetectorInputProcessor; }
|
|
23
23
|
});
|
|
24
24
|
Object.defineProperty(exports, "PromptInjectionDetectorInputProcessor", {
|
|
25
25
|
enumerable: true,
|
|
26
|
-
get: function () { return
|
|
26
|
+
get: function () { return chunk6WEZASFM_cjs.PromptInjectionDetectorInputProcessor; }
|
|
27
27
|
});
|
|
28
28
|
Object.defineProperty(exports, "TripWire", {
|
|
29
29
|
enumerable: true,
|
|
30
|
-
get: function () { return
|
|
30
|
+
get: function () { return chunk6WEZASFM_cjs.TripWire; }
|
|
31
31
|
});
|
|
32
32
|
Object.defineProperty(exports, "UnicodeNormalizerInputProcessor", {
|
|
33
33
|
enumerable: true,
|
|
34
|
-
get: function () { return
|
|
34
|
+
get: function () { return chunk6WEZASFM_cjs.UnicodeNormalizerInputProcessor; }
|
|
35
35
|
});
|
|
36
36
|
Object.defineProperty(exports, "MessageList", {
|
|
37
37
|
enumerable: true,
|
|
38
|
-
get: function () { return
|
|
38
|
+
get: function () { return chunkFJWPEAJE_cjs.MessageList; }
|
|
39
39
|
});
|
|
40
40
|
Object.defineProperty(exports, "convertMessages", {
|
|
41
41
|
enumerable: true,
|
|
42
|
-
get: function () { return
|
|
42
|
+
get: function () { return chunkFJWPEAJE_cjs.convertMessages; }
|
|
43
43
|
});
|
|
44
44
|
//# sourceMappingURL=index.cjs.map
|
|
45
45
|
//# sourceMappingURL=index.cjs.map
|
package/dist/agent/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { Agent, LanguageDetectorInputProcessor, ModerationInputProcessor, PIIDetectorInputProcessor, PromptInjectionDetectorInputProcessor, TripWire, UnicodeNormalizerInputProcessor } from '../chunk-
|
|
2
|
-
export { MessageList, convertMessages } from '../chunk-
|
|
1
|
+
export { Agent, LanguageDetectorInputProcessor, ModerationInputProcessor, PIIDetectorInputProcessor, PromptInjectionDetectorInputProcessor, TripWire, UnicodeNormalizerInputProcessor } from '../chunk-OWYPTFXD.js';
|
|
2
|
+
export { MessageList, convertMessages } from '../chunk-2B5DS7ML.js';
|
|
3
3
|
//# sourceMappingURL=index.js.map
|
|
4
4
|
//# sourceMappingURL=index.js.map
|
|
@@ -1,28 +1,28 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunk6WEZASFM_cjs = require('../../chunk-6WEZASFM.cjs');
|
|
4
4
|
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
Object.defineProperty(exports, "LanguageDetectorInputProcessor", {
|
|
8
8
|
enumerable: true,
|
|
9
|
-
get: function () { return
|
|
9
|
+
get: function () { return chunk6WEZASFM_cjs.LanguageDetectorInputProcessor; }
|
|
10
10
|
});
|
|
11
11
|
Object.defineProperty(exports, "ModerationInputProcessor", {
|
|
12
12
|
enumerable: true,
|
|
13
|
-
get: function () { return
|
|
13
|
+
get: function () { return chunk6WEZASFM_cjs.ModerationInputProcessor; }
|
|
14
14
|
});
|
|
15
15
|
Object.defineProperty(exports, "PIIDetectorInputProcessor", {
|
|
16
16
|
enumerable: true,
|
|
17
|
-
get: function () { return
|
|
17
|
+
get: function () { return chunk6WEZASFM_cjs.PIIDetectorInputProcessor; }
|
|
18
18
|
});
|
|
19
19
|
Object.defineProperty(exports, "PromptInjectionDetectorInputProcessor", {
|
|
20
20
|
enumerable: true,
|
|
21
|
-
get: function () { return
|
|
21
|
+
get: function () { return chunk6WEZASFM_cjs.PromptInjectionDetectorInputProcessor; }
|
|
22
22
|
});
|
|
23
23
|
Object.defineProperty(exports, "UnicodeNormalizerInputProcessor", {
|
|
24
24
|
enumerable: true,
|
|
25
|
-
get: function () { return
|
|
25
|
+
get: function () { return chunk6WEZASFM_cjs.UnicodeNormalizerInputProcessor; }
|
|
26
26
|
});
|
|
27
27
|
//# sourceMappingURL=index.cjs.map
|
|
28
28
|
//# sourceMappingURL=index.cjs.map
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export { LanguageDetectorInputProcessor, ModerationInputProcessor, PIIDetectorInputProcessor, PromptInjectionDetectorInputProcessor, UnicodeNormalizerInputProcessor } from '../../chunk-
|
|
1
|
+
export { LanguageDetectorInputProcessor, ModerationInputProcessor, PIIDetectorInputProcessor, PromptInjectionDetectorInputProcessor, UnicodeNormalizerInputProcessor } from '../../chunk-OWYPTFXD.js';
|
|
2
2
|
//# sourceMappingURL=index.js.map
|
|
3
3
|
//# sourceMappingURL=index.js.map
|
|
@@ -1,132 +1,132 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunkGKSWFKHA_cjs = require('../chunk-GKSWFKHA.cjs');
|
|
4
4
|
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
Object.defineProperty(exports, "AISpanType", {
|
|
8
8
|
enumerable: true,
|
|
9
|
-
get: function () { return
|
|
9
|
+
get: function () { return chunkGKSWFKHA_cjs.AISpanType; }
|
|
10
10
|
});
|
|
11
11
|
Object.defineProperty(exports, "AITracingEventType", {
|
|
12
12
|
enumerable: true,
|
|
13
|
-
get: function () { return
|
|
13
|
+
get: function () { return chunkGKSWFKHA_cjs.AITracingEventType; }
|
|
14
14
|
});
|
|
15
15
|
Object.defineProperty(exports, "BaseAISpan", {
|
|
16
16
|
enumerable: true,
|
|
17
|
-
get: function () { return
|
|
17
|
+
get: function () { return chunkGKSWFKHA_cjs.BaseAISpan; }
|
|
18
18
|
});
|
|
19
19
|
Object.defineProperty(exports, "BaseAITracing", {
|
|
20
20
|
enumerable: true,
|
|
21
|
-
get: function () { return
|
|
21
|
+
get: function () { return chunkGKSWFKHA_cjs.BaseAITracing; }
|
|
22
22
|
});
|
|
23
23
|
Object.defineProperty(exports, "CloudExporter", {
|
|
24
24
|
enumerable: true,
|
|
25
|
-
get: function () { return
|
|
25
|
+
get: function () { return chunkGKSWFKHA_cjs.CloudExporter; }
|
|
26
26
|
});
|
|
27
27
|
Object.defineProperty(exports, "ConsoleExporter", {
|
|
28
28
|
enumerable: true,
|
|
29
|
-
get: function () { return
|
|
29
|
+
get: function () { return chunkGKSWFKHA_cjs.ConsoleExporter; }
|
|
30
30
|
});
|
|
31
31
|
Object.defineProperty(exports, "DefaultAISpan", {
|
|
32
32
|
enumerable: true,
|
|
33
|
-
get: function () { return
|
|
33
|
+
get: function () { return chunkGKSWFKHA_cjs.DefaultAISpan; }
|
|
34
34
|
});
|
|
35
35
|
Object.defineProperty(exports, "DefaultAITracing", {
|
|
36
36
|
enumerable: true,
|
|
37
|
-
get: function () { return
|
|
37
|
+
get: function () { return chunkGKSWFKHA_cjs.DefaultAITracing; }
|
|
38
38
|
});
|
|
39
39
|
Object.defineProperty(exports, "DefaultExporter", {
|
|
40
40
|
enumerable: true,
|
|
41
|
-
get: function () { return
|
|
41
|
+
get: function () { return chunkGKSWFKHA_cjs.DefaultExporter; }
|
|
42
42
|
});
|
|
43
43
|
Object.defineProperty(exports, "InternalSpans", {
|
|
44
44
|
enumerable: true,
|
|
45
|
-
get: function () { return
|
|
45
|
+
get: function () { return chunkGKSWFKHA_cjs.InternalSpans; }
|
|
46
46
|
});
|
|
47
47
|
Object.defineProperty(exports, "NoOpAISpan", {
|
|
48
48
|
enumerable: true,
|
|
49
|
-
get: function () { return
|
|
49
|
+
get: function () { return chunkGKSWFKHA_cjs.NoOpAISpan; }
|
|
50
50
|
});
|
|
51
51
|
Object.defineProperty(exports, "SamplingStrategyType", {
|
|
52
52
|
enumerable: true,
|
|
53
|
-
get: function () { return
|
|
53
|
+
get: function () { return chunkGKSWFKHA_cjs.SamplingStrategyType; }
|
|
54
54
|
});
|
|
55
55
|
Object.defineProperty(exports, "SensitiveDataFilter", {
|
|
56
56
|
enumerable: true,
|
|
57
|
-
get: function () { return
|
|
57
|
+
get: function () { return chunkGKSWFKHA_cjs.SensitiveDataFilter; }
|
|
58
58
|
});
|
|
59
59
|
Object.defineProperty(exports, "clearAITracingRegistry", {
|
|
60
60
|
enumerable: true,
|
|
61
|
-
get: function () { return
|
|
61
|
+
get: function () { return chunkGKSWFKHA_cjs.clearAITracingRegistry; }
|
|
62
62
|
});
|
|
63
63
|
Object.defineProperty(exports, "deepClean", {
|
|
64
64
|
enumerable: true,
|
|
65
|
-
get: function () { return
|
|
65
|
+
get: function () { return chunkGKSWFKHA_cjs.deepClean; }
|
|
66
66
|
});
|
|
67
67
|
Object.defineProperty(exports, "getAITracing", {
|
|
68
68
|
enumerable: true,
|
|
69
|
-
get: function () { return
|
|
69
|
+
get: function () { return chunkGKSWFKHA_cjs.getAITracing; }
|
|
70
70
|
});
|
|
71
71
|
Object.defineProperty(exports, "getAllAITracing", {
|
|
72
72
|
enumerable: true,
|
|
73
|
-
get: function () { return
|
|
73
|
+
get: function () { return chunkGKSWFKHA_cjs.getAllAITracing; }
|
|
74
74
|
});
|
|
75
75
|
Object.defineProperty(exports, "getDefaultAITracing", {
|
|
76
76
|
enumerable: true,
|
|
77
|
-
get: function () { return
|
|
77
|
+
get: function () { return chunkGKSWFKHA_cjs.getDefaultAITracing; }
|
|
78
78
|
});
|
|
79
79
|
Object.defineProperty(exports, "getOrCreateSpan", {
|
|
80
80
|
enumerable: true,
|
|
81
|
-
get: function () { return
|
|
81
|
+
get: function () { return chunkGKSWFKHA_cjs.getOrCreateSpan; }
|
|
82
82
|
});
|
|
83
83
|
Object.defineProperty(exports, "getSelectedAITracing", {
|
|
84
84
|
enumerable: true,
|
|
85
|
-
get: function () { return
|
|
85
|
+
get: function () { return chunkGKSWFKHA_cjs.getSelectedAITracing; }
|
|
86
86
|
});
|
|
87
87
|
Object.defineProperty(exports, "getValidTraceId", {
|
|
88
88
|
enumerable: true,
|
|
89
|
-
get: function () { return
|
|
89
|
+
get: function () { return chunkGKSWFKHA_cjs.getValidTraceId; }
|
|
90
90
|
});
|
|
91
91
|
Object.defineProperty(exports, "hasAITracing", {
|
|
92
92
|
enumerable: true,
|
|
93
|
-
get: function () { return
|
|
93
|
+
get: function () { return chunkGKSWFKHA_cjs.hasAITracing; }
|
|
94
94
|
});
|
|
95
95
|
Object.defineProperty(exports, "isMastra", {
|
|
96
96
|
enumerable: true,
|
|
97
|
-
get: function () { return
|
|
97
|
+
get: function () { return chunkGKSWFKHA_cjs.isMastra; }
|
|
98
98
|
});
|
|
99
99
|
Object.defineProperty(exports, "omitKeys", {
|
|
100
100
|
enumerable: true,
|
|
101
|
-
get: function () { return
|
|
101
|
+
get: function () { return chunkGKSWFKHA_cjs.omitKeys; }
|
|
102
102
|
});
|
|
103
103
|
Object.defineProperty(exports, "registerAITracing", {
|
|
104
104
|
enumerable: true,
|
|
105
|
-
get: function () { return
|
|
105
|
+
get: function () { return chunkGKSWFKHA_cjs.registerAITracing; }
|
|
106
106
|
});
|
|
107
107
|
Object.defineProperty(exports, "selectFields", {
|
|
108
108
|
enumerable: true,
|
|
109
|
-
get: function () { return
|
|
109
|
+
get: function () { return chunkGKSWFKHA_cjs.selectFields; }
|
|
110
110
|
});
|
|
111
111
|
Object.defineProperty(exports, "setSelector", {
|
|
112
112
|
enumerable: true,
|
|
113
|
-
get: function () { return
|
|
113
|
+
get: function () { return chunkGKSWFKHA_cjs.setSelector; }
|
|
114
114
|
});
|
|
115
115
|
Object.defineProperty(exports, "setupAITracing", {
|
|
116
116
|
enumerable: true,
|
|
117
|
-
get: function () { return
|
|
117
|
+
get: function () { return chunkGKSWFKHA_cjs.setupAITracing; }
|
|
118
118
|
});
|
|
119
119
|
Object.defineProperty(exports, "shutdownAITracingRegistry", {
|
|
120
120
|
enumerable: true,
|
|
121
|
-
get: function () { return
|
|
121
|
+
get: function () { return chunkGKSWFKHA_cjs.shutdownAITracingRegistry; }
|
|
122
122
|
});
|
|
123
123
|
Object.defineProperty(exports, "unregisterAITracing", {
|
|
124
124
|
enumerable: true,
|
|
125
|
-
get: function () { return
|
|
125
|
+
get: function () { return chunkGKSWFKHA_cjs.unregisterAITracing; }
|
|
126
126
|
});
|
|
127
127
|
Object.defineProperty(exports, "wrapMastra", {
|
|
128
128
|
enumerable: true,
|
|
129
|
-
get: function () { return
|
|
129
|
+
get: function () { return chunkGKSWFKHA_cjs.wrapMastra; }
|
|
130
130
|
});
|
|
131
131
|
//# sourceMappingURL=index.cjs.map
|
|
132
132
|
//# sourceMappingURL=index.cjs.map
|
package/dist/ai-tracing/index.js
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export { AISpanType, AITracingEventType, BaseAISpan, BaseAITracing, CloudExporter, ConsoleExporter, DefaultAISpan, DefaultAITracing, DefaultExporter, InternalSpans, NoOpAISpan, SamplingStrategyType, SensitiveDataFilter, clearAITracingRegistry, deepClean, getAITracing, getAllAITracing, getDefaultAITracing, getOrCreateSpan, getSelectedAITracing, getValidTraceId, hasAITracing, isMastra, omitKeys, registerAITracing, selectFields, setSelector, setupAITracing, shutdownAITracingRegistry, unregisterAITracing, wrapMastra } from '../chunk-
|
|
1
|
+
export { AISpanType, AITracingEventType, BaseAISpan, BaseAITracing, CloudExporter, ConsoleExporter, DefaultAISpan, DefaultAITracing, DefaultExporter, InternalSpans, NoOpAISpan, SamplingStrategyType, SensitiveDataFilter, clearAITracingRegistry, deepClean, getAITracing, getAllAITracing, getDefaultAITracing, getOrCreateSpan, getSelectedAITracing, getValidTraceId, hasAITracing, isMastra, omitKeys, registerAITracing, selectFields, setSelector, setupAITracing, shutdownAITracingRegistry, unregisterAITracing, wrapMastra } from '../chunk-QBRFMSMN.js';
|
|
2
2
|
//# sourceMappingURL=index.js.map
|
|
3
3
|
//# sourceMappingURL=index.js.map
|
package/dist/base.cjs
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunk4L3P3PCP_cjs = require('./chunk-4L3P3PCP.cjs');
|
|
4
4
|
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
Object.defineProperty(exports, "MastraBase", {
|
|
8
8
|
enumerable: true,
|
|
9
|
-
get: function () { return
|
|
9
|
+
get: function () { return chunk4L3P3PCP_cjs.MastraBase; }
|
|
10
10
|
});
|
|
11
11
|
//# sourceMappingURL=base.cjs.map
|
|
12
12
|
//# sourceMappingURL=base.cjs.map
|
package/dist/base.js
CHANGED
package/dist/bundler/index.cjs
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunk4HWB6PCC_cjs = require('../chunk-4HWB6PCC.cjs');
|
|
4
4
|
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
Object.defineProperty(exports, "MastraBundler", {
|
|
8
8
|
enumerable: true,
|
|
9
|
-
get: function () { return
|
|
9
|
+
get: function () { return chunk4HWB6PCC_cjs.MastraBundler; }
|
|
10
10
|
});
|
|
11
11
|
//# sourceMappingURL=index.cjs.map
|
|
12
12
|
//# sourceMappingURL=index.cjs.map
|
package/dist/bundler/index.js
CHANGED
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { MastraBase } from '../base.js';
|
|
2
|
+
export declare abstract class MastraServerCache extends MastraBase {
|
|
3
|
+
constructor({ name }: {
|
|
4
|
+
name: string;
|
|
5
|
+
});
|
|
6
|
+
abstract get(key: string): Promise<unknown>;
|
|
7
|
+
abstract listLength(key: string): Promise<number>;
|
|
8
|
+
abstract set(key: string, value: unknown): Promise<void>;
|
|
9
|
+
abstract listPush(key: string, value: unknown): Promise<void>;
|
|
10
|
+
abstract listFromTo(key: string, from: number, to?: number): Promise<unknown[]>;
|
|
11
|
+
abstract delete(key: string): Promise<void>;
|
|
12
|
+
abstract clear(): Promise<void>;
|
|
13
|
+
}
|
|
14
|
+
//# sourceMappingURL=base.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"base.d.ts","sourceRoot":"","sources":["../../src/cache/base.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,SAAS,CAAC;AAErC,8BAAsB,iBAAkB,SAAQ,UAAU;gBAC5C,EAAE,IAAI,EAAE,EAAE;QAAE,IAAI,EAAE,MAAM,CAAA;KAAE;IAOtC,QAAQ,CAAC,GAAG,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC,OAAO,CAAC;IAE3C,QAAQ,CAAC,UAAU,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC;IAEjD,QAAQ,CAAC,GAAG,CAAC,GAAG,EAAE,MAAM,EAAE,KAAK,EAAE,OAAO,GAAG,OAAO,CAAC,IAAI,CAAC;IAExD,QAAQ,CAAC,QAAQ,CAAC,GAAG,EAAE,MAAM,EAAE,KAAK,EAAE,OAAO,GAAG,OAAO,CAAC,IAAI,CAAC;IAE7D,QAAQ,CAAC,UAAU,CAAC,GAAG,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,EAAE,EAAE,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC,OAAO,EAAE,CAAC;IAE/E,QAAQ,CAAC,MAAM,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC;IAE3C,QAAQ,CAAC,KAAK,IAAI,OAAO,CAAC,IAAI,CAAC;CAChC"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var chunkKTCBGNCZ_cjs = require('../chunk-KTCBGNCZ.cjs');
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
Object.defineProperty(exports, "InMemoryServerCache", {
|
|
8
|
+
enumerable: true,
|
|
9
|
+
get: function () { return chunkKTCBGNCZ_cjs.InMemoryServerCache; }
|
|
10
|
+
});
|
|
11
|
+
Object.defineProperty(exports, "MastraServerCache", {
|
|
12
|
+
enumerable: true,
|
|
13
|
+
get: function () { return chunkKTCBGNCZ_cjs.MastraServerCache; }
|
|
14
|
+
});
|
|
15
|
+
//# sourceMappingURL=index.cjs.map
|
|
16
|
+
//# sourceMappingURL=index.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"names":[],"mappings":"","file":"index.cjs"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/cache/index.ts"],"names":[],"mappings":"AAAA,cAAc,YAAY,CAAC;AAC3B,cAAc,QAAQ,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"names":[],"mappings":"","file":"index.js"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { MastraServerCache } from './base.js';
|
|
2
|
+
export declare class InMemoryServerCache extends MastraServerCache {
|
|
3
|
+
private cache;
|
|
4
|
+
constructor();
|
|
5
|
+
get(key: string): Promise<unknown>;
|
|
6
|
+
set(key: string, value: unknown): Promise<void>;
|
|
7
|
+
listLength(key: string): Promise<number>;
|
|
8
|
+
listPush(key: string, value: unknown): Promise<void>;
|
|
9
|
+
listFromTo(key: string, from: number, to?: number): Promise<unknown[]>;
|
|
10
|
+
delete(key: string): Promise<void>;
|
|
11
|
+
clear(): Promise<void>;
|
|
12
|
+
}
|
|
13
|
+
//# sourceMappingURL=inmemory.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"inmemory.d.ts","sourceRoot":"","sources":["../../src/cache/inmemory.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,iBAAiB,EAAE,MAAM,QAAQ,CAAC;AAE3C,qBAAa,mBAAoB,SAAQ,iBAAiB;IACxD,OAAO,CAAC,KAAK,CAGV;;IAMG,GAAG,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC,OAAO,CAAC;IAIlC,GAAG,CAAC,GAAG,EAAE,MAAM,EAAE,KAAK,EAAE,OAAO,GAAG,OAAO,CAAC,IAAI,CAAC;IAI/C,UAAU,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC;IAQxC,QAAQ,CAAC,GAAG,EAAE,MAAM,EAAE,KAAK,EAAE,OAAO,GAAG,OAAO,CAAC,IAAI,CAAC;IASpD,UAAU,CAAC,GAAG,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,EAAE,EAAE,GAAE,MAAW,GAAG,OAAO,CAAC,OAAO,EAAE,CAAC;IAU1E,MAAM,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC;IAIlC,KAAK,IAAI,OAAO,CAAC,IAAI,CAAC;CAG7B"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { fetchWithRetry } from './chunk-
|
|
1
|
+
import { fetchWithRetry } from './chunk-QBRFMSMN.js';
|
|
2
2
|
import { MastraError } from './chunk-MCOVMKIS.js';
|
|
3
3
|
import { randomUUID } from 'crypto';
|
|
4
4
|
import * as AIV4 from 'ai';
|
|
@@ -2956,5 +2956,5 @@ function convertMessages(messages) {
|
|
|
2956
2956
|
}
|
|
2957
2957
|
|
|
2958
2958
|
export { DefaultGeneratedFile, DefaultGeneratedFileWithType, MessageList, convertMessages };
|
|
2959
|
-
//# sourceMappingURL=chunk-
|
|
2960
|
-
//# sourceMappingURL=chunk-
|
|
2959
|
+
//# sourceMappingURL=chunk-2B5DS7ML.js.map
|
|
2960
|
+
//# sourceMappingURL=chunk-2B5DS7ML.js.map
|