@mastra/core 1.0.0-beta.13 → 1.0.0-beta.15
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 +477 -0
- package/dist/agent/agent-legacy.d.ts.map +1 -1
- package/dist/agent/agent.d.ts +2 -2
- package/dist/agent/agent.d.ts.map +1 -1
- package/dist/agent/agent.types.d.ts +6 -7
- package/dist/agent/agent.types.d.ts.map +1 -1
- package/dist/agent/index.cjs +17 -9
- package/dist/agent/index.d.ts +1 -1
- package/dist/agent/index.d.ts.map +1 -1
- package/dist/agent/index.js +2 -2
- package/dist/agent/message-list/index.cjs +3 -3
- package/dist/agent/message-list/index.d.ts +1 -1
- package/dist/agent/message-list/index.d.ts.map +1 -1
- package/dist/agent/message-list/index.js +1 -1
- package/dist/agent/message-list/prompt/attachments-to-parts.d.ts.map +1 -1
- package/dist/agent/trip-wire.d.ts +2 -2
- package/dist/agent/trip-wire.d.ts.map +1 -1
- package/dist/agent/utils.d.ts +4 -1
- package/dist/agent/utils.d.ts.map +1 -1
- package/dist/agent/workflows/prepare-stream/index.d.ts +3 -3
- package/dist/agent/workflows/prepare-stream/index.d.ts.map +1 -1
- package/dist/agent/workflows/prepare-stream/map-results-step.d.ts +3 -3
- package/dist/agent/workflows/prepare-stream/map-results-step.d.ts.map +1 -1
- package/dist/agent/workflows/prepare-stream/prepare-memory-step.d.ts +3 -3
- package/dist/agent/workflows/prepare-stream/prepare-memory-step.d.ts.map +1 -1
- package/dist/agent/workflows/prepare-stream/prepare-tools-step.d.ts +3 -3
- package/dist/agent/workflows/prepare-stream/prepare-tools-step.d.ts.map +1 -1
- package/dist/bundler/types.d.ts +1 -0
- package/dist/bundler/types.d.ts.map +1 -1
- package/dist/chunk-2AU5ZHBL.js +79 -0
- package/dist/chunk-2AU5ZHBL.js.map +1 -0
- package/dist/{chunk-7HEAVZRS.cjs → chunk-2OOMJRXZ.cjs} +15 -15
- package/dist/{chunk-7HEAVZRS.cjs.map → chunk-2OOMJRXZ.cjs.map} +1 -1
- package/dist/chunk-37YWZMBX.js +27 -0
- package/dist/chunk-37YWZMBX.js.map +1 -0
- package/dist/{chunk-VETAQUW3.js → chunk-3HDRO3GG.js} +790 -1206
- package/dist/chunk-3HDRO3GG.js.map +1 -0
- package/dist/{chunk-MRRFTNF4.js → chunk-4DFWV4IR.js} +3 -4
- package/dist/chunk-4DFWV4IR.js.map +1 -0
- package/dist/{chunk-373OC54J.js → chunk-4HP7CS6L.js} +7 -6
- package/dist/chunk-4HP7CS6L.js.map +1 -0
- package/dist/{chunk-62Q7K656.js → chunk-4J4M2Q5R.js} +125 -121
- package/dist/chunk-4J4M2Q5R.js.map +1 -0
- package/dist/{chunk-HWMMIRIF.cjs → chunk-4U7ZLI36.cjs} +3 -2
- package/dist/chunk-4U7ZLI36.cjs.map +1 -0
- package/dist/{chunk-Z55SJVEC.cjs → chunk-6HJFCSJ4.cjs} +7 -6
- package/dist/chunk-6HJFCSJ4.cjs.map +1 -0
- package/dist/{chunk-Y7MZ5LJT.cjs → chunk-AAX7ZOM7.cjs} +101 -102
- package/dist/chunk-AAX7ZOM7.cjs.map +1 -0
- package/dist/{chunk-WPTTKULS.js → chunk-AR5CF3IN.js} +4 -4
- package/dist/{chunk-WPTTKULS.js.map → chunk-AR5CF3IN.js.map} +1 -1
- package/dist/{chunk-5VZGJTPR.js → chunk-BAZHNX5P.js} +57 -11
- package/dist/chunk-BAZHNX5P.js.map +1 -0
- package/dist/{chunk-MLKE7HRS.cjs → chunk-BC2VKOH4.cjs} +43 -21
- package/dist/chunk-BC2VKOH4.cjs.map +1 -0
- package/dist/{chunk-2IU4RGU5.js → chunk-BCUKD2XG.js} +59 -19
- package/dist/chunk-BCUKD2XG.js.map +1 -0
- package/dist/{chunk-WYGUWVTF.js → chunk-CBQ6WDUJ.js} +9 -9
- package/dist/chunk-CBQ6WDUJ.js.map +1 -0
- package/dist/chunk-CBVHOGXX.cjs +674 -0
- package/dist/chunk-CBVHOGXX.cjs.map +1 -0
- package/dist/{chunk-PJAK4U6R.cjs → chunk-CBY37FTP.cjs} +28 -28
- package/dist/chunk-CBY37FTP.cjs.map +1 -0
- package/dist/{chunk-BQDZIQ3G.js → chunk-D2IFWD7A.js} +365 -137
- package/dist/chunk-D2IFWD7A.js.map +1 -0
- package/dist/{chunk-R5AJGM55.cjs → chunk-DDK3URK2.cjs} +987 -519
- package/dist/chunk-DDK3URK2.cjs.map +1 -0
- package/dist/chunk-DRJTNGI4.cjs +263 -0
- package/dist/chunk-DRJTNGI4.cjs.map +1 -0
- package/dist/{chunk-X6IBA7FP.cjs → chunk-EMLEZXTQ.cjs} +22 -120
- package/dist/chunk-EMLEZXTQ.cjs.map +1 -0
- package/dist/{chunk-OWIEOL55.cjs → chunk-F75EQ574.cjs} +695 -254
- package/dist/chunk-F75EQ574.cjs.map +1 -0
- package/dist/{chunk-YPLZDWG7.js → chunk-FJEVLHJT.js} +3 -2
- package/dist/chunk-FJEVLHJT.js.map +1 -0
- package/dist/chunk-GVAPYQRO.cjs +252 -0
- package/dist/chunk-GVAPYQRO.cjs.map +1 -0
- package/dist/{chunk-MXBVP7HX.cjs → chunk-GXMJ5URG.cjs} +227 -181
- package/dist/chunk-GXMJ5URG.cjs.map +1 -0
- package/dist/chunk-H2NHG7QL.cjs +32 -0
- package/dist/chunk-H2NHG7QL.cjs.map +1 -0
- package/dist/chunk-HAYBGFPA.js +259 -0
- package/dist/chunk-HAYBGFPA.js.map +1 -0
- package/dist/{chunk-GIWC35YQ.js → chunk-IHISDRFV.js} +299 -49
- package/dist/chunk-IHISDRFV.js.map +1 -0
- package/dist/{chunk-VEPP75C4.cjs → chunk-IRTICXRZ.cjs} +101 -61
- package/dist/chunk-IRTICXRZ.cjs.map +1 -0
- package/dist/{chunk-ARAQIW6E.js → chunk-K66U47VL.js} +617 -188
- package/dist/chunk-K66U47VL.js.map +1 -0
- package/dist/{chunk-LGB4VNZI.cjs → chunk-LOV5NNGK.cjs} +811 -1235
- package/dist/chunk-LOV5NNGK.cjs.map +1 -0
- package/dist/{chunk-E5BQRAJK.js → chunk-NGWTSHNA.js} +823 -362
- package/dist/chunk-NGWTSHNA.js.map +1 -0
- package/dist/{chunk-72YCRTEX.cjs → chunk-O2CAMK4A.cjs} +13 -2
- package/dist/chunk-O2CAMK4A.cjs.map +1 -0
- package/dist/{chunk-4BC5FUAO.js → chunk-O7M7DR4E.js} +6 -5
- package/dist/chunk-O7M7DR4E.js.map +1 -0
- package/dist/chunk-OTIGV7CL.js +10215 -0
- package/dist/chunk-OTIGV7CL.js.map +1 -0
- package/dist/{chunk-WYWRMIQC.js → chunk-QXL3F3T2.js} +9 -105
- package/dist/chunk-QXL3F3T2.js.map +1 -0
- package/dist/{chunk-U4CSOY6T.cjs → chunk-RA2CHJCY.cjs} +399 -171
- package/dist/chunk-RA2CHJCY.cjs.map +1 -0
- package/dist/chunk-RMV5HJM7.cjs +10237 -0
- package/dist/chunk-RMV5HJM7.cjs.map +1 -0
- package/dist/{chunk-AGHLXC4I.cjs → chunk-S23TNDXG.cjs} +300 -50
- package/dist/chunk-S23TNDXG.cjs.map +1 -0
- package/dist/{chunk-H4VUIOWU.cjs → chunk-SSB4AVHU.cjs} +20 -19
- package/dist/chunk-SSB4AVHU.cjs.map +1 -0
- package/dist/chunk-ST7NBF4H.cjs +84 -0
- package/dist/chunk-ST7NBF4H.cjs.map +1 -0
- package/dist/{chunk-SZYSDJTN.cjs → chunk-T2LVULCK.cjs} +142 -137
- package/dist/chunk-T2LVULCK.cjs.map +1 -0
- package/dist/chunk-VE6HQ7H6.js +250 -0
- package/dist/chunk-VE6HQ7H6.js.map +1 -0
- package/dist/{chunk-RCJLMMTO.js → chunk-XJB7J4UT.js} +30 -8
- package/dist/chunk-XJB7J4UT.js.map +1 -0
- package/dist/chunk-YV43YEZ6.js +598 -0
- package/dist/chunk-YV43YEZ6.js.map +1 -0
- package/dist/{chunk-Y36Y5MTD.js → chunk-ZGIVAQRI.js} +13 -3
- package/dist/chunk-ZGIVAQRI.js.map +1 -0
- package/dist/error/index.cjs +6 -6
- package/dist/error/index.d.ts +1 -0
- package/dist/error/index.d.ts.map +1 -1
- package/dist/error/index.js +1 -1
- package/dist/evals/index.cjs +49 -9
- package/dist/evals/index.js +2 -2
- package/dist/evals/run/index.d.ts.map +1 -1
- package/dist/evals/scoreTraces/index.cjs +70 -22
- package/dist/evals/scoreTraces/index.cjs.map +1 -1
- package/dist/evals/scoreTraces/index.js +63 -15
- package/dist/evals/scoreTraces/index.js.map +1 -1
- package/dist/evals/scoreTraces/scoreTracesWorkflow.d.ts.map +1 -1
- package/dist/evals/scoreTraces/utils.d.ts.map +1 -1
- package/dist/evals/types.d.ts +568 -116
- package/dist/evals/types.d.ts.map +1 -1
- package/dist/index.cjs +2 -2
- package/dist/index.js +1 -1
- package/dist/integration/index.cjs +2 -2
- package/dist/integration/index.js +1 -1
- package/dist/llm/index.cjs +21 -21
- package/dist/llm/index.js +5 -5
- package/dist/llm/model/aisdk/generate-to-stream.d.ts +20 -0
- package/dist/llm/model/aisdk/generate-to-stream.d.ts.map +1 -0
- package/dist/llm/model/aisdk/v5/model.d.ts +4 -0
- package/dist/llm/model/aisdk/v5/model.d.ts.map +1 -1
- package/dist/llm/model/aisdk/v6/model.d.ts +43 -0
- package/dist/llm/model/aisdk/v6/model.d.ts.map +1 -0
- package/dist/llm/model/embedding-router.d.ts +1 -1
- package/dist/llm/model/model.d.ts.map +1 -1
- package/dist/llm/model/model.loop.d.ts +1 -1
- package/dist/llm/model/model.loop.d.ts.map +1 -1
- package/dist/llm/model/provider-options.d.ts +2 -1
- package/dist/llm/model/provider-options.d.ts.map +1 -1
- package/dist/llm/model/provider-types.generated.d.ts +126 -17
- package/dist/llm/model/resolve-model.d.ts +2 -2
- package/dist/llm/model/resolve-model.d.ts.map +1 -1
- package/dist/llm/model/shared.types.d.ts +18 -7
- package/dist/llm/model/shared.types.d.ts.map +1 -1
- package/dist/loop/index.cjs +2 -2
- package/dist/loop/index.js +1 -1
- package/dist/loop/network/index.d.ts +8 -8
- package/dist/loop/network/index.d.ts.map +1 -1
- package/dist/loop/test-utils/MastraLanguageModelV2Mock.d.ts +1 -1
- package/dist/loop/test-utils/MastraLanguageModelV2Mock.d.ts.map +1 -1
- package/dist/loop/test-utils/MastraLanguageModelV3Mock.d.ts +29 -0
- package/dist/loop/test-utils/MastraLanguageModelV3Mock.d.ts.map +1 -0
- package/dist/loop/test-utils/fullStream.d.ts +2 -1
- package/dist/loop/test-utils/fullStream.d.ts.map +1 -1
- package/dist/loop/test-utils/resultObject.d.ts +2 -1
- package/dist/loop/test-utils/resultObject.d.ts.map +1 -1
- package/dist/loop/test-utils/streamObject.d.ts.map +1 -1
- package/dist/loop/test-utils/utils-v3.d.ts +55 -0
- package/dist/loop/test-utils/utils-v3.d.ts.map +1 -0
- package/dist/loop/types.d.ts +10 -8
- package/dist/loop/types.d.ts.map +1 -1
- package/dist/loop/workflows/agentic-execution/index.d.ts +36 -36
- package/dist/loop/workflows/agentic-execution/llm-execution-step.d.ts +25 -25
- package/dist/loop/workflows/agentic-execution/llm-execution-step.d.ts.map +1 -1
- package/dist/loop/workflows/agentic-execution/llm-mapping-step.d.ts +12 -12
- package/dist/loop/workflows/agentic-execution/tool-call-step.d.ts.map +1 -1
- package/dist/loop/workflows/agentic-loop/index.d.ts +36 -36
- package/dist/loop/workflows/agentic-loop/index.d.ts.map +1 -1
- package/dist/loop/workflows/run-state.d.ts +2 -2
- package/dist/loop/workflows/run-state.d.ts.map +1 -1
- package/dist/loop/workflows/schema.d.ts +12 -12
- package/dist/mastra/hooks.d.ts.map +1 -1
- package/dist/mastra/index.cjs +2 -2
- package/dist/mastra/index.d.ts +7 -2
- 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 +1 -1
- package/dist/memory/index.cjs +26 -6
- package/dist/memory/index.d.ts +1 -0
- package/dist/memory/index.d.ts.map +1 -1
- package/dist/memory/index.js +1 -1
- package/dist/memory/memory.d.ts +9 -8
- package/dist/memory/memory.d.ts.map +1 -1
- package/dist/memory/mock.d.ts +2 -1
- package/dist/memory/mock.d.ts.map +1 -1
- package/dist/memory/types.d.ts +3 -4
- package/dist/memory/types.d.ts.map +1 -1
- package/dist/memory/working-memory-utils.d.ts +20 -0
- package/dist/memory/working-memory-utils.d.ts.map +1 -0
- package/dist/models-dev-26XLUKVK.cjs +12 -0
- package/dist/{models-dev-D3EKFGAO.cjs.map → models-dev-26XLUKVK.cjs.map} +1 -1
- package/dist/models-dev-HUFLQFPB.js +3 -0
- package/dist/{models-dev-EO22XOXQ.js.map → models-dev-HUFLQFPB.js.map} +1 -1
- package/dist/netlify-CUYK2MZ2.cjs +12 -0
- package/dist/{netlify-WE42TZIT.cjs.map → netlify-CUYK2MZ2.cjs.map} +1 -1
- package/dist/netlify-J4QPOROO.js +3 -0
- package/dist/{netlify-AE4LNCAI.js.map → netlify-J4QPOROO.js.map} +1 -1
- package/dist/observability/index.cjs +14 -10
- package/dist/observability/index.js +1 -1
- package/dist/observability/types/tracing.d.ts +32 -19
- package/dist/observability/types/tracing.d.ts.map +1 -1
- package/dist/processors/index.cjs +37 -37
- package/dist/processors/index.d.ts +9 -7
- package/dist/processors/index.d.ts.map +1 -1
- package/dist/processors/index.js +1 -1
- package/dist/processors/memory/message-history.d.ts +7 -1
- package/dist/processors/memory/message-history.d.ts.map +1 -1
- package/dist/processors/processors/language-detector.d.ts.map +1 -1
- package/dist/processors/processors/moderation.d.ts.map +1 -1
- package/dist/processors/processors/pii-detector.d.ts.map +1 -1
- package/dist/processors/processors/prompt-injection-detector.d.ts.map +1 -1
- package/dist/processors/processors/token-limiter.d.ts +5 -2
- package/dist/processors/processors/token-limiter.d.ts.map +1 -1
- package/dist/processors/runner.d.ts +2 -0
- package/dist/processors/runner.d.ts.map +1 -1
- package/dist/processors/step-schema.d.ts +26 -26
- package/dist/processors/step-schema.d.ts.map +1 -1
- package/dist/provider-registry-6CIGRQVZ.js +3 -0
- package/dist/{provider-registry-6LF3NGC5.js.map → provider-registry-6CIGRQVZ.js.map} +1 -1
- package/dist/provider-registry-7O7FJ4BS.cjs +40 -0
- package/dist/{provider-registry-73FKMXJV.cjs.map → provider-registry-7O7FJ4BS.cjs.map} +1 -1
- package/dist/provider-registry.json +295 -45
- package/dist/relevance/index.cjs +3 -3
- package/dist/relevance/index.cjs.map +1 -1
- package/dist/relevance/index.js +2 -2
- package/dist/relevance/index.js.map +1 -1
- package/dist/server/index.cjs +5 -5
- package/dist/server/index.js +1 -1
- package/dist/storage/base.d.ts +40 -292
- package/dist/storage/base.d.ts.map +1 -1
- package/dist/storage/constants.cjs +60 -0
- package/dist/storage/constants.cjs.map +1 -0
- package/dist/storage/constants.d.ts +6 -1
- package/dist/storage/constants.d.ts.map +1 -1
- package/dist/storage/constants.js +3 -0
- package/dist/storage/constants.js.map +1 -0
- package/dist/storage/domains/agents/base.d.ts +2 -2
- package/dist/storage/domains/agents/base.d.ts.map +1 -1
- package/dist/storage/domains/agents/inmemory.d.ts +5 -4
- package/dist/storage/domains/agents/inmemory.d.ts.map +1 -1
- package/dist/storage/domains/base.d.ts +20 -0
- package/dist/storage/domains/base.d.ts.map +1 -0
- package/dist/storage/domains/index.d.ts +3 -0
- package/dist/storage/domains/index.d.ts.map +1 -1
- package/dist/storage/domains/inmemory-db.d.ts +57 -0
- package/dist/storage/domains/inmemory-db.d.ts.map +1 -0
- package/dist/storage/domains/memory/base.d.ts +2 -2
- package/dist/storage/domains/memory/base.d.ts.map +1 -1
- package/dist/storage/domains/memory/inmemory.d.ts +5 -13
- package/dist/storage/domains/memory/inmemory.d.ts.map +1 -1
- package/dist/storage/domains/observability/base.d.ts +24 -29
- package/dist/storage/domains/observability/base.d.ts.map +1 -1
- package/dist/storage/domains/observability/index.d.ts +1 -0
- package/dist/storage/domains/observability/index.d.ts.map +1 -1
- package/dist/storage/domains/observability/inmemory.d.ts +46 -35
- package/dist/storage/domains/observability/inmemory.d.ts.map +1 -1
- package/dist/storage/domains/observability/types.d.ts +2365 -0
- package/dist/storage/domains/observability/types.d.ts.map +1 -0
- package/dist/storage/domains/scores/base.d.ts +9 -20
- package/dist/storage/domains/scores/base.d.ts.map +1 -1
- package/dist/storage/domains/scores/inmemory.d.ts +11 -22
- package/dist/storage/domains/scores/inmemory.d.ts.map +1 -1
- package/dist/storage/domains/shared.d.ts +76 -0
- package/dist/storage/domains/shared.d.ts.map +1 -0
- package/dist/storage/domains/workflows/base.d.ts +4 -2
- package/dist/storage/domains/workflows/base.d.ts.map +1 -1
- package/dist/storage/domains/workflows/inmemory.d.ts +10 -9
- package/dist/storage/domains/workflows/inmemory.d.ts.map +1 -1
- package/dist/storage/index.cjs +272 -59
- package/dist/storage/index.js +2 -1
- package/dist/storage/mock.d.ts +28 -174
- package/dist/storage/mock.d.ts.map +1 -1
- package/dist/storage/types.d.ts +39 -44
- package/dist/storage/types.d.ts.map +1 -1
- package/dist/storage/utils.d.ts +5 -0
- package/dist/storage/utils.d.ts.map +1 -1
- package/dist/stream/MastraAgentNetworkStream.d.ts +1 -1
- package/dist/stream/MastraAgentNetworkStream.d.ts.map +1 -1
- package/dist/stream/MastraWorkflowStream.d.ts +1 -1
- package/dist/stream/MastraWorkflowStream.d.ts.map +1 -1
- package/dist/stream/RunOutput.d.ts.map +1 -1
- package/dist/stream/aisdk/v5/execute.d.ts +4 -4
- package/dist/stream/aisdk/v5/execute.d.ts.map +1 -1
- package/dist/stream/aisdk/v5/output.d.ts +2 -2
- package/dist/stream/aisdk/v5/output.d.ts.map +1 -1
- package/dist/stream/aisdk/v5/transform.d.ts.map +1 -1
- package/dist/stream/base/output.d.ts +7 -5
- package/dist/stream/base/output.d.ts.map +1 -1
- package/dist/stream/index.cjs +12 -12
- package/dist/stream/index.js +2 -2
- package/dist/stream/types.d.ts +32 -21
- package/dist/stream/types.d.ts.map +1 -1
- package/dist/test-utils/llm-mock.cjs +4 -4
- package/dist/test-utils/llm-mock.cjs.map +1 -1
- package/dist/test-utils/llm-mock.js +1 -1
- package/dist/test-utils/llm-mock.js.map +1 -1
- package/dist/token-6GSAFR2W-LTZ7QQUP.js +61 -0
- package/dist/token-6GSAFR2W-LTZ7QQUP.js.map +1 -0
- package/dist/token-6GSAFR2W-UEEINYAN.cjs +63 -0
- package/dist/token-6GSAFR2W-UEEINYAN.cjs.map +1 -0
- package/dist/token-util-NEHG7TUY-QTFZ26EN.js +8 -0
- package/dist/token-util-NEHG7TUY-QTFZ26EN.js.map +1 -0
- package/dist/token-util-NEHG7TUY-WZL2DNCG.cjs +10 -0
- package/dist/token-util-NEHG7TUY-WZL2DNCG.cjs.map +1 -0
- package/dist/tool-loop-agent/index.cjs +20 -0
- package/dist/tool-loop-agent/index.cjs.map +1 -0
- package/dist/tool-loop-agent/index.d.ts +36 -0
- package/dist/tool-loop-agent/index.d.ts.map +1 -0
- package/dist/tool-loop-agent/index.js +3 -0
- package/dist/tool-loop-agent/index.js.map +1 -0
- package/dist/tool-loop-agent/tool-loop-processor.d.ts +30 -0
- package/dist/tool-loop-agent/tool-loop-processor.d.ts.map +1 -0
- package/dist/tool-loop-agent/utils.d.ts +17 -0
- package/dist/tool-loop-agent/utils.d.ts.map +1 -0
- 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/toolchecks.d.ts +1 -1
- package/dist/tools/toolchecks.d.ts.map +1 -1
- package/dist/tools/validation.d.ts +1 -1
- package/dist/tools/validation.d.ts.map +1 -1
- package/dist/utils/zod-utils.d.ts +34 -0
- package/dist/utils/zod-utils.d.ts.map +1 -0
- package/dist/utils.cjs +39 -22
- package/dist/utils.d.ts +3 -3
- package/dist/utils.d.ts.map +1 -1
- package/dist/utils.js +2 -1
- package/dist/vector/embed.d.ts +1 -0
- package/dist/vector/embed.d.ts.map +1 -1
- package/dist/vector/index.cjs +18 -5
- package/dist/vector/index.cjs.map +1 -1
- package/dist/vector/index.js +9 -2
- package/dist/vector/index.js.map +1 -1
- package/dist/vector/vector.d.ts +26 -3
- package/dist/vector/vector.d.ts.map +1 -1
- package/dist/voice/composite-voice.d.ts.map +1 -1
- package/dist/voice/index.cjs +6 -6
- package/dist/voice/index.js +1 -1
- package/dist/workflows/default.d.ts +2 -0
- package/dist/workflows/default.d.ts.map +1 -1
- package/dist/workflows/evented/execution-engine.d.ts +1 -0
- package/dist/workflows/evented/execution-engine.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/step-executor.d.ts +5 -0
- package/dist/workflows/evented/step-executor.d.ts.map +1 -1
- package/dist/workflows/evented/workflow-event-processor/index.d.ts +20 -4
- package/dist/workflows/evented/workflow-event-processor/index.d.ts.map +1 -1
- package/dist/workflows/evented/workflow-event-processor/loop.d.ts +2 -2
- package/dist/workflows/evented/workflow-event-processor/loop.d.ts.map +1 -1
- package/dist/workflows/evented/workflow-event-processor/parallel.d.ts +2 -2
- package/dist/workflows/evented/workflow-event-processor/parallel.d.ts.map +1 -1
- package/dist/workflows/evented/workflow-event-processor/sleep.d.ts +2 -2
- package/dist/workflows/evented/workflow-event-processor/sleep.d.ts.map +1 -1
- package/dist/workflows/evented/workflow.d.ts +10 -2
- package/dist/workflows/evented/workflow.d.ts.map +1 -1
- package/dist/workflows/execution-engine.d.ts +1 -0
- package/dist/workflows/execution-engine.d.ts.map +1 -1
- package/dist/workflows/handlers/control-flow.d.ts +4 -0
- package/dist/workflows/handlers/control-flow.d.ts.map +1 -1
- package/dist/workflows/handlers/entry.d.ts +3 -2
- package/dist/workflows/handlers/entry.d.ts.map +1 -1
- package/dist/workflows/handlers/step.d.ts +1 -0
- package/dist/workflows/handlers/step.d.ts.map +1 -1
- package/dist/workflows/index.cjs +23 -23
- package/dist/workflows/index.js +1 -1
- package/dist/workflows/types.d.ts +23 -3
- package/dist/workflows/types.d.ts.map +1 -1
- package/dist/workflows/utils.d.ts +1 -0
- package/dist/workflows/utils.d.ts.map +1 -1
- package/dist/workflows/workflow.d.ts +26 -9
- package/dist/workflows/workflow.d.ts.map +1 -1
- package/package.json +20 -12
- package/src/llm/model/provider-types.generated.d.ts +126 -17
- package/storage/constants.d.ts +1 -0
- package/tool-loop-agent.d.ts +1 -0
- package/dist/chunk-2IU4RGU5.js.map +0 -1
- package/dist/chunk-373OC54J.js.map +0 -1
- package/dist/chunk-4BC5FUAO.js.map +0 -1
- package/dist/chunk-5VZGJTPR.js.map +0 -1
- package/dist/chunk-62Q7K656.js.map +0 -1
- package/dist/chunk-72YCRTEX.cjs.map +0 -1
- package/dist/chunk-ADADLFDR.js +0 -42
- package/dist/chunk-ADADLFDR.js.map +0 -1
- package/dist/chunk-AGHLXC4I.cjs.map +0 -1
- package/dist/chunk-ARAQIW6E.js.map +0 -1
- package/dist/chunk-BQDZIQ3G.js.map +0 -1
- package/dist/chunk-E5BQRAJK.js.map +0 -1
- package/dist/chunk-GIWC35YQ.js.map +0 -1
- package/dist/chunk-H4VUIOWU.cjs.map +0 -1
- package/dist/chunk-HWMMIRIF.cjs.map +0 -1
- package/dist/chunk-IXZ2T2QX.cjs +0 -448
- package/dist/chunk-IXZ2T2QX.cjs.map +0 -1
- package/dist/chunk-LGB4VNZI.cjs.map +0 -1
- package/dist/chunk-MLKE7HRS.cjs.map +0 -1
- package/dist/chunk-MRRFTNF4.js.map +0 -1
- package/dist/chunk-MXBVP7HX.cjs.map +0 -1
- package/dist/chunk-OWIEOL55.cjs.map +0 -1
- package/dist/chunk-PJAK4U6R.cjs.map +0 -1
- package/dist/chunk-R5AJGM55.cjs.map +0 -1
- package/dist/chunk-RCJLMMTO.js.map +0 -1
- package/dist/chunk-SZYSDJTN.cjs.map +0 -1
- package/dist/chunk-T2VLUFGG.cjs +0 -47
- package/dist/chunk-T2VLUFGG.cjs.map +0 -1
- package/dist/chunk-U4CSOY6T.cjs.map +0 -1
- package/dist/chunk-UBSPZTQX.js +0 -434
- package/dist/chunk-UBSPZTQX.js.map +0 -1
- package/dist/chunk-VEPP75C4.cjs.map +0 -1
- package/dist/chunk-VETAQUW3.js.map +0 -1
- package/dist/chunk-WYGUWVTF.js.map +0 -1
- package/dist/chunk-WYWRMIQC.js.map +0 -1
- package/dist/chunk-X6IBA7FP.cjs.map +0 -1
- package/dist/chunk-Y36Y5MTD.js.map +0 -1
- package/dist/chunk-Y7MZ5LJT.cjs.map +0 -1
- package/dist/chunk-YPLZDWG7.js.map +0 -1
- package/dist/chunk-Z55SJVEC.cjs.map +0 -1
- package/dist/llm/model/is-v2-model.d.ts +0 -3
- package/dist/llm/model/is-v2-model.d.ts.map +0 -1
- package/dist/models-dev-D3EKFGAO.cjs +0 -12
- package/dist/models-dev-EO22XOXQ.js +0 -3
- package/dist/netlify-AE4LNCAI.js +0 -3
- package/dist/netlify-WE42TZIT.cjs +0 -12
- package/dist/provider-registry-6LF3NGC5.js +0 -3
- package/dist/provider-registry-73FKMXJV.cjs +0 -40
package/dist/storage/index.cjs
CHANGED
|
@@ -1,156 +1,369 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunkLOV5NNGK_cjs = require('../chunk-LOV5NNGK.cjs');
|
|
4
|
+
var chunkCBVHOGXX_cjs = require('../chunk-CBVHOGXX.cjs');
|
|
4
5
|
|
|
5
6
|
|
|
6
7
|
|
|
7
|
-
Object.defineProperty(exports, "AGENTS_SCHEMA", {
|
|
8
|
-
enumerable: true,
|
|
9
|
-
get: function () { return chunkLGB4VNZI_cjs.AGENTS_SCHEMA; }
|
|
10
|
-
});
|
|
11
8
|
Object.defineProperty(exports, "AgentsStorage", {
|
|
12
9
|
enumerable: true,
|
|
13
|
-
get: function () { return
|
|
10
|
+
get: function () { return chunkLOV5NNGK_cjs.AgentsStorage; }
|
|
14
11
|
});
|
|
15
12
|
Object.defineProperty(exports, "InMemoryAgentsStorage", {
|
|
16
13
|
enumerable: true,
|
|
17
|
-
get: function () { return
|
|
14
|
+
get: function () { return chunkLOV5NNGK_cjs.InMemoryAgentsStorage; }
|
|
15
|
+
});
|
|
16
|
+
Object.defineProperty(exports, "InMemoryDB", {
|
|
17
|
+
enumerable: true,
|
|
18
|
+
get: function () { return chunkLOV5NNGK_cjs.InMemoryDB; }
|
|
18
19
|
});
|
|
19
20
|
Object.defineProperty(exports, "InMemoryMemory", {
|
|
20
21
|
enumerable: true,
|
|
21
|
-
get: function () { return
|
|
22
|
+
get: function () { return chunkLOV5NNGK_cjs.InMemoryMemory; }
|
|
22
23
|
});
|
|
23
24
|
Object.defineProperty(exports, "InMemoryStore", {
|
|
24
25
|
enumerable: true,
|
|
25
|
-
get: function () { return
|
|
26
|
+
get: function () { return chunkLOV5NNGK_cjs.InMemoryStore; }
|
|
26
27
|
});
|
|
27
28
|
Object.defineProperty(exports, "MastraStorage", {
|
|
28
29
|
enumerable: true,
|
|
29
|
-
get: function () { return
|
|
30
|
+
get: function () { return chunkLOV5NNGK_cjs.MastraStorage; }
|
|
30
31
|
});
|
|
31
32
|
Object.defineProperty(exports, "MemoryStorage", {
|
|
32
33
|
enumerable: true,
|
|
33
|
-
get: function () { return
|
|
34
|
+
get: function () { return chunkLOV5NNGK_cjs.MemoryStorage; }
|
|
34
35
|
});
|
|
35
36
|
Object.defineProperty(exports, "MockStore", {
|
|
36
37
|
enumerable: true,
|
|
37
|
-
get: function () { return
|
|
38
|
+
get: function () { return chunkLOV5NNGK_cjs.MockStore; }
|
|
38
39
|
});
|
|
39
40
|
Object.defineProperty(exports, "ObservabilityInMemory", {
|
|
40
41
|
enumerable: true,
|
|
41
|
-
get: function () { return
|
|
42
|
+
get: function () { return chunkLOV5NNGK_cjs.ObservabilityInMemory; }
|
|
42
43
|
});
|
|
43
44
|
Object.defineProperty(exports, "ObservabilityStorage", {
|
|
44
45
|
enumerable: true,
|
|
45
|
-
get: function () { return
|
|
46
|
-
});
|
|
47
|
-
Object.defineProperty(exports, "SCORERS_SCHEMA", {
|
|
48
|
-
enumerable: true,
|
|
49
|
-
get: function () { return chunkLGB4VNZI_cjs.SCORERS_SCHEMA; }
|
|
50
|
-
});
|
|
51
|
-
Object.defineProperty(exports, "SPAN_SCHEMA", {
|
|
52
|
-
enumerable: true,
|
|
53
|
-
get: function () { return chunkLGB4VNZI_cjs.SPAN_SCHEMA; }
|
|
46
|
+
get: function () { return chunkLOV5NNGK_cjs.ObservabilityStorage; }
|
|
54
47
|
});
|
|
55
48
|
Object.defineProperty(exports, "ScoresInMemory", {
|
|
56
49
|
enumerable: true,
|
|
57
|
-
get: function () { return
|
|
50
|
+
get: function () { return chunkLOV5NNGK_cjs.ScoresInMemory; }
|
|
58
51
|
});
|
|
59
52
|
Object.defineProperty(exports, "ScoresStorage", {
|
|
60
53
|
enumerable: true,
|
|
61
|
-
get: function () { return
|
|
54
|
+
get: function () { return chunkLOV5NNGK_cjs.ScoresStorage; }
|
|
55
|
+
});
|
|
56
|
+
Object.defineProperty(exports, "StorageDomain", {
|
|
57
|
+
enumerable: true,
|
|
58
|
+
get: function () { return chunkLOV5NNGK_cjs.StorageDomain; }
|
|
62
59
|
});
|
|
63
60
|
Object.defineProperty(exports, "StoreOperations", {
|
|
64
61
|
enumerable: true,
|
|
65
|
-
get: function () { return
|
|
62
|
+
get: function () { return chunkLOV5NNGK_cjs.StoreOperations; }
|
|
66
63
|
});
|
|
67
64
|
Object.defineProperty(exports, "StoreOperationsInMemory", {
|
|
68
65
|
enumerable: true,
|
|
69
|
-
get: function () { return
|
|
66
|
+
get: function () { return chunkLOV5NNGK_cjs.StoreOperationsInMemory; }
|
|
67
|
+
});
|
|
68
|
+
Object.defineProperty(exports, "WorkflowsInMemory", {
|
|
69
|
+
enumerable: true,
|
|
70
|
+
get: function () { return chunkLOV5NNGK_cjs.WorkflowsInMemory; }
|
|
71
|
+
});
|
|
72
|
+
Object.defineProperty(exports, "WorkflowsStorage", {
|
|
73
|
+
enumerable: true,
|
|
74
|
+
get: function () { return chunkLOV5NNGK_cjs.WorkflowsStorage; }
|
|
75
|
+
});
|
|
76
|
+
Object.defineProperty(exports, "calculatePagination", {
|
|
77
|
+
enumerable: true,
|
|
78
|
+
get: function () { return chunkLOV5NNGK_cjs.calculatePagination; }
|
|
79
|
+
});
|
|
80
|
+
Object.defineProperty(exports, "createStorageErrorId", {
|
|
81
|
+
enumerable: true,
|
|
82
|
+
get: function () { return chunkLOV5NNGK_cjs.createStorageErrorId; }
|
|
83
|
+
});
|
|
84
|
+
Object.defineProperty(exports, "createStoreErrorId", {
|
|
85
|
+
enumerable: true,
|
|
86
|
+
get: function () { return chunkLOV5NNGK_cjs.createStoreErrorId; }
|
|
87
|
+
});
|
|
88
|
+
Object.defineProperty(exports, "createVectorErrorId", {
|
|
89
|
+
enumerable: true,
|
|
90
|
+
get: function () { return chunkLOV5NNGK_cjs.createVectorErrorId; }
|
|
91
|
+
});
|
|
92
|
+
Object.defineProperty(exports, "ensureDate", {
|
|
93
|
+
enumerable: true,
|
|
94
|
+
get: function () { return chunkLOV5NNGK_cjs.ensureDate; }
|
|
95
|
+
});
|
|
96
|
+
Object.defineProperty(exports, "getDefaultValue", {
|
|
97
|
+
enumerable: true,
|
|
98
|
+
get: function () { return chunkLOV5NNGK_cjs.getDefaultValue; }
|
|
99
|
+
});
|
|
100
|
+
Object.defineProperty(exports, "getSqlType", {
|
|
101
|
+
enumerable: true,
|
|
102
|
+
get: function () { return chunkLOV5NNGK_cjs.getSqlType; }
|
|
103
|
+
});
|
|
104
|
+
Object.defineProperty(exports, "normalizePerPage", {
|
|
105
|
+
enumerable: true,
|
|
106
|
+
get: function () { return chunkLOV5NNGK_cjs.normalizePerPage; }
|
|
107
|
+
});
|
|
108
|
+
Object.defineProperty(exports, "safelyParseJSON", {
|
|
109
|
+
enumerable: true,
|
|
110
|
+
get: function () { return chunkLOV5NNGK_cjs.safelyParseJSON; }
|
|
111
|
+
});
|
|
112
|
+
Object.defineProperty(exports, "serializeDate", {
|
|
113
|
+
enumerable: true,
|
|
114
|
+
get: function () { return chunkLOV5NNGK_cjs.serializeDate; }
|
|
115
|
+
});
|
|
116
|
+
Object.defineProperty(exports, "transformRow", {
|
|
117
|
+
enumerable: true,
|
|
118
|
+
get: function () { return chunkLOV5NNGK_cjs.transformRow; }
|
|
119
|
+
});
|
|
120
|
+
Object.defineProperty(exports, "transformScoreRow", {
|
|
121
|
+
enumerable: true,
|
|
122
|
+
get: function () { return chunkLOV5NNGK_cjs.transformScoreRow; }
|
|
123
|
+
});
|
|
124
|
+
Object.defineProperty(exports, "AGENTS_SCHEMA", {
|
|
125
|
+
enumerable: true,
|
|
126
|
+
get: function () { return chunkCBVHOGXX_cjs.AGENTS_SCHEMA; }
|
|
127
|
+
});
|
|
128
|
+
Object.defineProperty(exports, "OLD_SPAN_SCHEMA", {
|
|
129
|
+
enumerable: true,
|
|
130
|
+
get: function () { return chunkCBVHOGXX_cjs.OLD_SPAN_SCHEMA; }
|
|
131
|
+
});
|
|
132
|
+
Object.defineProperty(exports, "SCORERS_SCHEMA", {
|
|
133
|
+
enumerable: true,
|
|
134
|
+
get: function () { return chunkCBVHOGXX_cjs.SCORERS_SCHEMA; }
|
|
135
|
+
});
|
|
136
|
+
Object.defineProperty(exports, "SPAN_SCHEMA", {
|
|
137
|
+
enumerable: true,
|
|
138
|
+
get: function () { return chunkCBVHOGXX_cjs.SPAN_SCHEMA; }
|
|
70
139
|
});
|
|
71
140
|
Object.defineProperty(exports, "TABLE_AGENTS", {
|
|
72
141
|
enumerable: true,
|
|
73
|
-
get: function () { return
|
|
142
|
+
get: function () { return chunkCBVHOGXX_cjs.TABLE_AGENTS; }
|
|
74
143
|
});
|
|
75
144
|
Object.defineProperty(exports, "TABLE_MESSAGES", {
|
|
76
145
|
enumerable: true,
|
|
77
|
-
get: function () { return
|
|
146
|
+
get: function () { return chunkCBVHOGXX_cjs.TABLE_MESSAGES; }
|
|
78
147
|
});
|
|
79
148
|
Object.defineProperty(exports, "TABLE_RESOURCES", {
|
|
80
149
|
enumerable: true,
|
|
81
|
-
get: function () { return
|
|
150
|
+
get: function () { return chunkCBVHOGXX_cjs.TABLE_RESOURCES; }
|
|
82
151
|
});
|
|
83
152
|
Object.defineProperty(exports, "TABLE_SCHEMAS", {
|
|
84
153
|
enumerable: true,
|
|
85
|
-
get: function () { return
|
|
154
|
+
get: function () { return chunkCBVHOGXX_cjs.TABLE_SCHEMAS; }
|
|
86
155
|
});
|
|
87
156
|
Object.defineProperty(exports, "TABLE_SCORERS", {
|
|
88
157
|
enumerable: true,
|
|
89
|
-
get: function () { return
|
|
158
|
+
get: function () { return chunkCBVHOGXX_cjs.TABLE_SCORERS; }
|
|
90
159
|
});
|
|
91
160
|
Object.defineProperty(exports, "TABLE_SPANS", {
|
|
92
161
|
enumerable: true,
|
|
93
|
-
get: function () { return
|
|
162
|
+
get: function () { return chunkCBVHOGXX_cjs.TABLE_SPANS; }
|
|
94
163
|
});
|
|
95
164
|
Object.defineProperty(exports, "TABLE_THREADS", {
|
|
96
165
|
enumerable: true,
|
|
97
|
-
get: function () { return
|
|
166
|
+
get: function () { return chunkCBVHOGXX_cjs.TABLE_THREADS; }
|
|
98
167
|
});
|
|
99
168
|
Object.defineProperty(exports, "TABLE_TRACES", {
|
|
100
169
|
enumerable: true,
|
|
101
|
-
get: function () { return
|
|
170
|
+
get: function () { return chunkCBVHOGXX_cjs.TABLE_TRACES; }
|
|
102
171
|
});
|
|
103
172
|
Object.defineProperty(exports, "TABLE_WORKFLOW_SNAPSHOT", {
|
|
104
173
|
enumerable: true,
|
|
105
|
-
get: function () { return
|
|
174
|
+
get: function () { return chunkCBVHOGXX_cjs.TABLE_WORKFLOW_SNAPSHOT; }
|
|
106
175
|
});
|
|
107
|
-
Object.defineProperty(exports, "
|
|
176
|
+
Object.defineProperty(exports, "TraceStatus", {
|
|
108
177
|
enumerable: true,
|
|
109
|
-
get: function () { return
|
|
178
|
+
get: function () { return chunkCBVHOGXX_cjs.TraceStatus; }
|
|
110
179
|
});
|
|
111
|
-
Object.defineProperty(exports, "
|
|
180
|
+
Object.defineProperty(exports, "batchCreateSpansArgsSchema", {
|
|
112
181
|
enumerable: true,
|
|
113
|
-
get: function () { return
|
|
182
|
+
get: function () { return chunkCBVHOGXX_cjs.batchCreateSpansArgsSchema; }
|
|
114
183
|
});
|
|
115
|
-
Object.defineProperty(exports, "
|
|
184
|
+
Object.defineProperty(exports, "batchDeleteTracesArgsSchema", {
|
|
116
185
|
enumerable: true,
|
|
117
|
-
get: function () { return
|
|
186
|
+
get: function () { return chunkCBVHOGXX_cjs.batchDeleteTracesArgsSchema; }
|
|
118
187
|
});
|
|
119
|
-
Object.defineProperty(exports, "
|
|
188
|
+
Object.defineProperty(exports, "batchUpdateSpansArgsSchema", {
|
|
120
189
|
enumerable: true,
|
|
121
|
-
get: function () { return
|
|
190
|
+
get: function () { return chunkCBVHOGXX_cjs.batchUpdateSpansArgsSchema; }
|
|
122
191
|
});
|
|
123
|
-
Object.defineProperty(exports, "
|
|
192
|
+
Object.defineProperty(exports, "buildStorageSchema", {
|
|
124
193
|
enumerable: true,
|
|
125
|
-
get: function () { return
|
|
194
|
+
get: function () { return chunkCBVHOGXX_cjs.buildStorageSchema; }
|
|
126
195
|
});
|
|
127
|
-
Object.defineProperty(exports, "
|
|
196
|
+
Object.defineProperty(exports, "createSpanArgsSchema", {
|
|
128
197
|
enumerable: true,
|
|
129
|
-
get: function () { return
|
|
198
|
+
get: function () { return chunkCBVHOGXX_cjs.createSpanArgsSchema; }
|
|
130
199
|
});
|
|
131
|
-
Object.defineProperty(exports, "
|
|
200
|
+
Object.defineProperty(exports, "createSpanRecordSchema", {
|
|
132
201
|
enumerable: true,
|
|
133
|
-
get: function () { return
|
|
202
|
+
get: function () { return chunkCBVHOGXX_cjs.createSpanRecordSchema; }
|
|
134
203
|
});
|
|
135
|
-
Object.defineProperty(exports, "
|
|
204
|
+
Object.defineProperty(exports, "createdAtField", {
|
|
136
205
|
enumerable: true,
|
|
137
|
-
get: function () { return
|
|
206
|
+
get: function () { return chunkCBVHOGXX_cjs.createdAtField; }
|
|
138
207
|
});
|
|
139
|
-
Object.defineProperty(exports, "
|
|
208
|
+
Object.defineProperty(exports, "dateRangeSchema", {
|
|
140
209
|
enumerable: true,
|
|
141
|
-
get: function () { return
|
|
210
|
+
get: function () { return chunkCBVHOGXX_cjs.dateRangeSchema; }
|
|
142
211
|
});
|
|
143
|
-
Object.defineProperty(exports, "
|
|
212
|
+
Object.defineProperty(exports, "dbTimestamps", {
|
|
144
213
|
enumerable: true,
|
|
145
|
-
get: function () { return
|
|
214
|
+
get: function () { return chunkCBVHOGXX_cjs.dbTimestamps; }
|
|
146
215
|
});
|
|
147
|
-
Object.defineProperty(exports, "
|
|
216
|
+
Object.defineProperty(exports, "entityIdField", {
|
|
148
217
|
enumerable: true,
|
|
149
|
-
get: function () { return
|
|
218
|
+
get: function () { return chunkCBVHOGXX_cjs.entityIdField; }
|
|
150
219
|
});
|
|
151
|
-
Object.defineProperty(exports, "
|
|
220
|
+
Object.defineProperty(exports, "entityNameField", {
|
|
221
|
+
enumerable: true,
|
|
222
|
+
get: function () { return chunkCBVHOGXX_cjs.entityNameField; }
|
|
223
|
+
});
|
|
224
|
+
Object.defineProperty(exports, "entityTypeField", {
|
|
225
|
+
enumerable: true,
|
|
226
|
+
get: function () { return chunkCBVHOGXX_cjs.entityTypeField; }
|
|
227
|
+
});
|
|
228
|
+
Object.defineProperty(exports, "environmentField", {
|
|
229
|
+
enumerable: true,
|
|
230
|
+
get: function () { return chunkCBVHOGXX_cjs.environmentField; }
|
|
231
|
+
});
|
|
232
|
+
Object.defineProperty(exports, "getRootSpanArgsSchema", {
|
|
233
|
+
enumerable: true,
|
|
234
|
+
get: function () { return chunkCBVHOGXX_cjs.getRootSpanArgsSchema; }
|
|
235
|
+
});
|
|
236
|
+
Object.defineProperty(exports, "getRootSpanResponseSchema", {
|
|
237
|
+
enumerable: true,
|
|
238
|
+
get: function () { return chunkCBVHOGXX_cjs.getRootSpanResponseSchema; }
|
|
239
|
+
});
|
|
240
|
+
Object.defineProperty(exports, "getSpanArgsSchema", {
|
|
241
|
+
enumerable: true,
|
|
242
|
+
get: function () { return chunkCBVHOGXX_cjs.getSpanArgsSchema; }
|
|
243
|
+
});
|
|
244
|
+
Object.defineProperty(exports, "getSpanResponseSchema", {
|
|
245
|
+
enumerable: true,
|
|
246
|
+
get: function () { return chunkCBVHOGXX_cjs.getSpanResponseSchema; }
|
|
247
|
+
});
|
|
248
|
+
Object.defineProperty(exports, "getTraceArgsSchema", {
|
|
249
|
+
enumerable: true,
|
|
250
|
+
get: function () { return chunkCBVHOGXX_cjs.getTraceArgsSchema; }
|
|
251
|
+
});
|
|
252
|
+
Object.defineProperty(exports, "getTraceResponseSchema", {
|
|
253
|
+
enumerable: true,
|
|
254
|
+
get: function () { return chunkCBVHOGXX_cjs.getTraceResponseSchema; }
|
|
255
|
+
});
|
|
256
|
+
Object.defineProperty(exports, "listScoresBySpanResponseSchema", {
|
|
257
|
+
enumerable: true,
|
|
258
|
+
get: function () { return chunkCBVHOGXX_cjs.listScoresBySpanResponseSchema; }
|
|
259
|
+
});
|
|
260
|
+
Object.defineProperty(exports, "listTracesArgsSchema", {
|
|
261
|
+
enumerable: true,
|
|
262
|
+
get: function () { return chunkCBVHOGXX_cjs.listTracesArgsSchema; }
|
|
263
|
+
});
|
|
264
|
+
Object.defineProperty(exports, "listTracesResponseSchema", {
|
|
265
|
+
enumerable: true,
|
|
266
|
+
get: function () { return chunkCBVHOGXX_cjs.listTracesResponseSchema; }
|
|
267
|
+
});
|
|
268
|
+
Object.defineProperty(exports, "organizationIdField", {
|
|
269
|
+
enumerable: true,
|
|
270
|
+
get: function () { return chunkCBVHOGXX_cjs.organizationIdField; }
|
|
271
|
+
});
|
|
272
|
+
Object.defineProperty(exports, "paginationArgsSchema", {
|
|
273
|
+
enumerable: true,
|
|
274
|
+
get: function () { return chunkCBVHOGXX_cjs.paginationArgsSchema; }
|
|
275
|
+
});
|
|
276
|
+
Object.defineProperty(exports, "paginationInfoSchema", {
|
|
277
|
+
enumerable: true,
|
|
278
|
+
get: function () { return chunkCBVHOGXX_cjs.paginationInfoSchema; }
|
|
279
|
+
});
|
|
280
|
+
Object.defineProperty(exports, "requestIdField", {
|
|
281
|
+
enumerable: true,
|
|
282
|
+
get: function () { return chunkCBVHOGXX_cjs.requestIdField; }
|
|
283
|
+
});
|
|
284
|
+
Object.defineProperty(exports, "resourceIdField", {
|
|
285
|
+
enumerable: true,
|
|
286
|
+
get: function () { return chunkCBVHOGXX_cjs.resourceIdField; }
|
|
287
|
+
});
|
|
288
|
+
Object.defineProperty(exports, "runIdField", {
|
|
289
|
+
enumerable: true,
|
|
290
|
+
get: function () { return chunkCBVHOGXX_cjs.runIdField; }
|
|
291
|
+
});
|
|
292
|
+
Object.defineProperty(exports, "scoreTracesRequestSchema", {
|
|
293
|
+
enumerable: true,
|
|
294
|
+
get: function () { return chunkCBVHOGXX_cjs.scoreTracesRequestSchema; }
|
|
295
|
+
});
|
|
296
|
+
Object.defineProperty(exports, "scoreTracesResponseSchema", {
|
|
297
|
+
enumerable: true,
|
|
298
|
+
get: function () { return chunkCBVHOGXX_cjs.scoreTracesResponseSchema; }
|
|
299
|
+
});
|
|
300
|
+
Object.defineProperty(exports, "serviceNameField", {
|
|
301
|
+
enumerable: true,
|
|
302
|
+
get: function () { return chunkCBVHOGXX_cjs.serviceNameField; }
|
|
303
|
+
});
|
|
304
|
+
Object.defineProperty(exports, "sessionIdField", {
|
|
305
|
+
enumerable: true,
|
|
306
|
+
get: function () { return chunkCBVHOGXX_cjs.sessionIdField; }
|
|
307
|
+
});
|
|
308
|
+
Object.defineProperty(exports, "sortDirectionSchema", {
|
|
309
|
+
enumerable: true,
|
|
310
|
+
get: function () { return chunkCBVHOGXX_cjs.sortDirectionSchema; }
|
|
311
|
+
});
|
|
312
|
+
Object.defineProperty(exports, "sourceField", {
|
|
313
|
+
enumerable: true,
|
|
314
|
+
get: function () { return chunkCBVHOGXX_cjs.sourceField; }
|
|
315
|
+
});
|
|
316
|
+
Object.defineProperty(exports, "spanIdField", {
|
|
317
|
+
enumerable: true,
|
|
318
|
+
get: function () { return chunkCBVHOGXX_cjs.spanIdField; }
|
|
319
|
+
});
|
|
320
|
+
Object.defineProperty(exports, "spanIds", {
|
|
321
|
+
enumerable: true,
|
|
322
|
+
get: function () { return chunkCBVHOGXX_cjs.spanIds; }
|
|
323
|
+
});
|
|
324
|
+
Object.defineProperty(exports, "spanIdsSchema", {
|
|
325
|
+
enumerable: true,
|
|
326
|
+
get: function () { return chunkCBVHOGXX_cjs.spanIdsSchema; }
|
|
327
|
+
});
|
|
328
|
+
Object.defineProperty(exports, "spanRecordSchema", {
|
|
329
|
+
enumerable: true,
|
|
330
|
+
get: function () { return chunkCBVHOGXX_cjs.spanRecordSchema; }
|
|
331
|
+
});
|
|
332
|
+
Object.defineProperty(exports, "threadIdField", {
|
|
333
|
+
enumerable: true,
|
|
334
|
+
get: function () { return chunkCBVHOGXX_cjs.threadIdField; }
|
|
335
|
+
});
|
|
336
|
+
Object.defineProperty(exports, "traceIdField", {
|
|
337
|
+
enumerable: true,
|
|
338
|
+
get: function () { return chunkCBVHOGXX_cjs.traceIdField; }
|
|
339
|
+
});
|
|
340
|
+
Object.defineProperty(exports, "tracesFilterSchema", {
|
|
341
|
+
enumerable: true,
|
|
342
|
+
get: function () { return chunkCBVHOGXX_cjs.tracesFilterSchema; }
|
|
343
|
+
});
|
|
344
|
+
Object.defineProperty(exports, "tracesOrderByFieldSchema", {
|
|
345
|
+
enumerable: true,
|
|
346
|
+
get: function () { return chunkCBVHOGXX_cjs.tracesOrderByFieldSchema; }
|
|
347
|
+
});
|
|
348
|
+
Object.defineProperty(exports, "tracesOrderBySchema", {
|
|
349
|
+
enumerable: true,
|
|
350
|
+
get: function () { return chunkCBVHOGXX_cjs.tracesOrderBySchema; }
|
|
351
|
+
});
|
|
352
|
+
Object.defineProperty(exports, "updateSpanArgsSchema", {
|
|
353
|
+
enumerable: true,
|
|
354
|
+
get: function () { return chunkCBVHOGXX_cjs.updateSpanArgsSchema; }
|
|
355
|
+
});
|
|
356
|
+
Object.defineProperty(exports, "updateSpanRecordSchema", {
|
|
357
|
+
enumerable: true,
|
|
358
|
+
get: function () { return chunkCBVHOGXX_cjs.updateSpanRecordSchema; }
|
|
359
|
+
});
|
|
360
|
+
Object.defineProperty(exports, "updatedAtField", {
|
|
361
|
+
enumerable: true,
|
|
362
|
+
get: function () { return chunkCBVHOGXX_cjs.updatedAtField; }
|
|
363
|
+
});
|
|
364
|
+
Object.defineProperty(exports, "userIdField", {
|
|
152
365
|
enumerable: true,
|
|
153
|
-
get: function () { return
|
|
366
|
+
get: function () { return chunkCBVHOGXX_cjs.userIdField; }
|
|
154
367
|
});
|
|
155
368
|
//# sourceMappingURL=index.cjs.map
|
|
156
369
|
//# sourceMappingURL=index.cjs.map
|
package/dist/storage/index.js
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
-
export {
|
|
1
|
+
export { AgentsStorage, InMemoryAgentsStorage, InMemoryDB, InMemoryMemory, InMemoryStore, MastraStorage, MemoryStorage, MockStore, ObservabilityInMemory, ObservabilityStorage, ScoresInMemory, ScoresStorage, StorageDomain, StoreOperations, StoreOperationsInMemory, WorkflowsInMemory, WorkflowsStorage, calculatePagination, createStorageErrorId, createStoreErrorId, createVectorErrorId, ensureDate, getDefaultValue, getSqlType, normalizePerPage, safelyParseJSON, serializeDate, transformRow, transformScoreRow } from '../chunk-3HDRO3GG.js';
|
|
2
|
+
export { AGENTS_SCHEMA, OLD_SPAN_SCHEMA, SCORERS_SCHEMA, SPAN_SCHEMA, TABLE_AGENTS, TABLE_MESSAGES, TABLE_RESOURCES, TABLE_SCHEMAS, TABLE_SCORERS, TABLE_SPANS, TABLE_THREADS, TABLE_TRACES, TABLE_WORKFLOW_SNAPSHOT, TraceStatus, batchCreateSpansArgsSchema, batchDeleteTracesArgsSchema, batchUpdateSpansArgsSchema, buildStorageSchema, createSpanArgsSchema, createSpanRecordSchema, createdAtField, dateRangeSchema, dbTimestamps, entityIdField, entityNameField, entityTypeField, environmentField, getRootSpanArgsSchema, getRootSpanResponseSchema, getSpanArgsSchema, getSpanResponseSchema, getTraceArgsSchema, getTraceResponseSchema, listScoresBySpanResponseSchema, listTracesArgsSchema, listTracesResponseSchema, organizationIdField, paginationArgsSchema, paginationInfoSchema, requestIdField, resourceIdField, runIdField, scoreTracesRequestSchema, scoreTracesResponseSchema, serviceNameField, sessionIdField, sortDirectionSchema, sourceField, spanIdField, spanIds, spanIdsSchema, spanRecordSchema, threadIdField, traceIdField, tracesFilterSchema, tracesOrderByFieldSchema, tracesOrderBySchema, updateSpanArgsSchema, updateSpanRecordSchema, updatedAtField, userIdField } from '../chunk-YV43YEZ6.js';
|
|
2
3
|
//# sourceMappingURL=index.js.map
|
|
3
4
|
//# sourceMappingURL=index.js.map
|
package/dist/storage/mock.d.ts
CHANGED
|
@@ -1,184 +1,38 @@
|
|
|
1
|
-
import type { MastraDBMessage } from '../agent/index.js';
|
|
2
|
-
import type { SaveScorePayload, ScoreRowData, ScoringSource } from '../evals/types.js';
|
|
3
|
-
import type { StorageThreadType } from '../memory/types.js';
|
|
4
|
-
import type { StepResult, WorkflowRunState } from '../workflows/types.js';
|
|
5
1
|
import { MastraStorage } from './base.js';
|
|
6
2
|
import type { StorageDomains } from './base.js';
|
|
7
|
-
import type {
|
|
8
|
-
|
|
3
|
+
import type { StorageSupports } from './types.js';
|
|
4
|
+
/**
|
|
5
|
+
* In-memory storage implementation for testing and development.
|
|
6
|
+
*
|
|
7
|
+
* All data is stored in memory and will be lost when the process ends.
|
|
8
|
+
* Access domain-specific storage via `getStore()`:
|
|
9
|
+
*
|
|
10
|
+
* @example
|
|
11
|
+
* ```typescript
|
|
12
|
+
* const storage = new InMemoryStore();
|
|
13
|
+
*
|
|
14
|
+
* // Access memory domain
|
|
15
|
+
* const memory = await storage.getStore('memory');
|
|
16
|
+
* await memory?.saveThread({ thread });
|
|
17
|
+
*
|
|
18
|
+
* // Access workflows domain
|
|
19
|
+
* const workflows = await storage.getStore('workflows');
|
|
20
|
+
* await workflows?.persistWorkflowSnapshot({ workflowName, runId, snapshot });
|
|
21
|
+
* ```
|
|
22
|
+
*/
|
|
9
23
|
export declare class InMemoryStore extends MastraStorage {
|
|
24
|
+
#private;
|
|
10
25
|
stores: StorageDomains;
|
|
11
26
|
constructor({ id }?: {
|
|
12
27
|
id?: string;
|
|
13
28
|
});
|
|
14
|
-
get supports():
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
indexManagement: boolean;
|
|
22
|
-
listScoresBySpan: boolean;
|
|
23
|
-
agents: boolean;
|
|
24
|
-
};
|
|
25
|
-
persistWorkflowSnapshot({ workflowName, runId, resourceId, snapshot, }: {
|
|
26
|
-
workflowName: string;
|
|
27
|
-
runId: string;
|
|
28
|
-
resourceId?: string;
|
|
29
|
-
snapshot: WorkflowRunState;
|
|
30
|
-
}): Promise<void>;
|
|
31
|
-
loadWorkflowSnapshot({ workflowName, runId, }: {
|
|
32
|
-
workflowName: string;
|
|
33
|
-
runId: string;
|
|
34
|
-
}): Promise<WorkflowRunState | null>;
|
|
35
|
-
createTable({ tableName, schema, }: {
|
|
36
|
-
tableName: TABLE_NAMES;
|
|
37
|
-
schema: Record<string, StorageColumn>;
|
|
38
|
-
}): Promise<void>;
|
|
39
|
-
alterTable({ tableName, schema, ifNotExists, }: {
|
|
40
|
-
tableName: TABLE_NAMES;
|
|
41
|
-
schema: Record<string, StorageColumn>;
|
|
42
|
-
ifNotExists: string[];
|
|
43
|
-
}): Promise<void>;
|
|
44
|
-
clearTable({ tableName }: {
|
|
45
|
-
tableName: TABLE_NAMES;
|
|
46
|
-
}): Promise<void>;
|
|
47
|
-
dropTable({ tableName }: {
|
|
48
|
-
tableName: TABLE_NAMES;
|
|
49
|
-
}): Promise<void>;
|
|
50
|
-
insert({ tableName, record }: {
|
|
51
|
-
tableName: TABLE_NAMES;
|
|
52
|
-
record: Record<string, any>;
|
|
53
|
-
}): Promise<void>;
|
|
54
|
-
updateWorkflowResults({ workflowName, runId, stepId, result, requestContext, }: {
|
|
55
|
-
workflowName: string;
|
|
56
|
-
runId: string;
|
|
57
|
-
stepId: string;
|
|
58
|
-
result: StepResult<any, any, any, any>;
|
|
59
|
-
requestContext: Record<string, any>;
|
|
60
|
-
}): Promise<Record<string, StepResult<any, any, any, any>>>;
|
|
61
|
-
updateWorkflowState({ workflowName, runId, opts, }: {
|
|
62
|
-
workflowName: string;
|
|
63
|
-
runId: string;
|
|
64
|
-
opts: UpdateWorkflowStateOptions;
|
|
65
|
-
}): Promise<WorkflowRunState | undefined>;
|
|
66
|
-
batchInsert({ tableName, records }: {
|
|
67
|
-
tableName: TABLE_NAMES;
|
|
68
|
-
records: Record<string, any>[];
|
|
69
|
-
}): Promise<void>;
|
|
70
|
-
load<R>({ tableName, keys }: {
|
|
71
|
-
tableName: TABLE_NAMES;
|
|
72
|
-
keys: Record<string, string>;
|
|
73
|
-
}): Promise<R | null>;
|
|
74
|
-
getThreadById({ threadId }: {
|
|
75
|
-
threadId: string;
|
|
76
|
-
}): Promise<StorageThreadType | null>;
|
|
77
|
-
saveThread({ thread }: {
|
|
78
|
-
thread: StorageThreadType;
|
|
79
|
-
}): Promise<StorageThreadType>;
|
|
80
|
-
updateThread({ id, title, metadata, }: {
|
|
81
|
-
id: string;
|
|
82
|
-
title: string;
|
|
83
|
-
metadata: Record<string, unknown>;
|
|
84
|
-
}): Promise<StorageThreadType>;
|
|
85
|
-
deleteThread({ threadId }: {
|
|
86
|
-
threadId: string;
|
|
87
|
-
}): Promise<void>;
|
|
88
|
-
getResourceById({ resourceId }: {
|
|
89
|
-
resourceId: string;
|
|
90
|
-
}): Promise<StorageResourceType | null>;
|
|
91
|
-
saveResource({ resource }: {
|
|
92
|
-
resource: StorageResourceType;
|
|
93
|
-
}): Promise<StorageResourceType>;
|
|
94
|
-
updateResource({ resourceId, workingMemory, metadata, }: {
|
|
95
|
-
resourceId: string;
|
|
96
|
-
workingMemory?: string;
|
|
97
|
-
metadata?: Record<string, unknown>;
|
|
98
|
-
}): Promise<StorageResourceType>;
|
|
99
|
-
listMessagesById({ messageIds }: {
|
|
100
|
-
messageIds: string[];
|
|
101
|
-
}): Promise<{
|
|
102
|
-
messages: MastraDBMessage[];
|
|
103
|
-
}>;
|
|
104
|
-
saveMessages(args: {
|
|
105
|
-
messages: MastraDBMessage[];
|
|
106
|
-
}): Promise<{
|
|
107
|
-
messages: MastraDBMessage[];
|
|
108
|
-
}>;
|
|
109
|
-
updateMessages(args: {
|
|
110
|
-
messages: (Partial<MastraDBMessage> & {
|
|
111
|
-
id: string;
|
|
112
|
-
})[];
|
|
113
|
-
}): Promise<MastraDBMessage[]>;
|
|
114
|
-
deleteMessages(messageIds: string[]): Promise<void>;
|
|
115
|
-
getScoreById({ id }: {
|
|
116
|
-
id: string;
|
|
117
|
-
}): Promise<ScoreRowData | null>;
|
|
118
|
-
saveScore(score: SaveScorePayload): Promise<{
|
|
119
|
-
score: ScoreRowData;
|
|
120
|
-
}>;
|
|
121
|
-
listScoresByScorerId({ scorerId, entityId, entityType, source, pagination, }: {
|
|
122
|
-
scorerId: string;
|
|
123
|
-
entityId?: string;
|
|
124
|
-
entityType?: string;
|
|
125
|
-
source?: ScoringSource;
|
|
126
|
-
pagination: StoragePagination;
|
|
127
|
-
}): Promise<{
|
|
128
|
-
pagination: PaginationInfo;
|
|
129
|
-
scores: ScoreRowData[];
|
|
130
|
-
}>;
|
|
131
|
-
listScoresByRunId({ runId, pagination, }: {
|
|
132
|
-
runId: string;
|
|
133
|
-
pagination: StoragePagination;
|
|
134
|
-
}): Promise<{
|
|
135
|
-
pagination: PaginationInfo;
|
|
136
|
-
scores: ScoreRowData[];
|
|
137
|
-
}>;
|
|
138
|
-
listScoresByEntityId({ entityId, entityType, pagination, }: {
|
|
139
|
-
entityId: string;
|
|
140
|
-
entityType: string;
|
|
141
|
-
pagination: StoragePagination;
|
|
142
|
-
}): Promise<{
|
|
143
|
-
pagination: PaginationInfo;
|
|
144
|
-
scores: ScoreRowData[];
|
|
145
|
-
}>;
|
|
146
|
-
listScoresBySpan({ traceId, spanId, pagination, }: {
|
|
147
|
-
traceId: string;
|
|
148
|
-
spanId: string;
|
|
149
|
-
pagination: StoragePagination;
|
|
150
|
-
}): Promise<{
|
|
151
|
-
pagination: PaginationInfo;
|
|
152
|
-
scores: ScoreRowData[];
|
|
153
|
-
}>;
|
|
154
|
-
getWorkflowRunById({ runId, workflowName, }: {
|
|
155
|
-
runId: string;
|
|
156
|
-
workflowName?: string;
|
|
157
|
-
}): Promise<WorkflowRun | null>;
|
|
158
|
-
deleteWorkflowRunById({ runId, workflowName }: {
|
|
159
|
-
runId: string;
|
|
160
|
-
workflowName: string;
|
|
161
|
-
}): Promise<void>;
|
|
162
|
-
createSpan(span: SpanRecord): Promise<void>;
|
|
163
|
-
updateSpan(params: {
|
|
164
|
-
spanId: string;
|
|
165
|
-
traceId: string;
|
|
166
|
-
updates: Partial<Omit<SpanRecord, 'spanId' | 'traceId'>>;
|
|
167
|
-
}): Promise<void>;
|
|
168
|
-
getTrace(traceId: string): Promise<TraceRecord | null>;
|
|
169
|
-
batchCreateSpans(args: {
|
|
170
|
-
records: SpanRecord[];
|
|
171
|
-
}): Promise<void>;
|
|
172
|
-
batchUpdateSpans(args: {
|
|
173
|
-
records: {
|
|
174
|
-
traceId: string;
|
|
175
|
-
spanId: string;
|
|
176
|
-
updates: Partial<Omit<SpanRecord, 'spanId' | 'traceId'>>;
|
|
177
|
-
}[];
|
|
178
|
-
}): Promise<void>;
|
|
179
|
-
batchDeleteTraces(args: {
|
|
180
|
-
traceIds: string[];
|
|
181
|
-
}): Promise<void>;
|
|
29
|
+
get supports(): StorageSupports;
|
|
30
|
+
/**
|
|
31
|
+
* Clears all data from the in-memory database.
|
|
32
|
+
* Useful for testing.
|
|
33
|
+
* @deprecated Use dangerouslyClearAll() on individual domains instead.
|
|
34
|
+
*/
|
|
35
|
+
clear(): void;
|
|
182
36
|
}
|
|
183
37
|
export declare const MockStore: typeof InMemoryStore;
|
|
184
38
|
//# sourceMappingURL=mock.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"mock.d.ts","sourceRoot":"","sources":["../../src/storage/mock.ts"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"mock.d.ts","sourceRoot":"","sources":["../../src/storage/mock.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,QAAQ,CAAC;AACvC,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,QAAQ,CAAC;AAO7C,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,SAAS,CAAC;AAC/C;;;;;;;;;;;;;;;;;;GAkBG;AACH,qBAAa,aAAc,SAAQ,aAAa;;IAC9C,MAAM,EAAE,cAAc,CAAC;gBASX,EAAE,EAAgB,EAAE,GAAE;QAAE,EAAE,CAAC,EAAE,MAAM,CAAA;KAAO;IAkBtD,IAAW,QAAQ,IAAI,eAAe,CAYrC;IAED;;;;OAIG;IACH,KAAK,IAAI,IAAI;CAGd;AAED,eAAO,MAAM,SAAS,sBAAgB,CAAC"}
|