@mastra/core 1.87.0-alpha.6 → 1.87.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/dist/agent/durable/index.cjs +1 -1
- package/dist/agent/durable/index.js +1 -1
- package/dist/agent/index.cjs +2 -2
- package/dist/agent/index.js +2 -2
- package/dist/agent-builder/ee/index.cjs +1 -1
- package/dist/agent-builder/ee/index.js +1 -1
- package/dist/agent-controller/index.cjs +1 -1
- package/dist/agent-controller/index.js +1 -1
- package/dist/{agent-controller-BkG0M35j.js → agent-controller-GM-2_7C2.js} +5 -5
- package/dist/{agent-controller-BL-0CKSF.cjs → agent-controller-QGBVBDRi.cjs} +5 -5
- package/dist/background-tasks/index.cjs +1 -1
- package/dist/background-tasks/index.js +1 -1
- package/dist/{background-tasks-DL-ATSvp.cjs → background-tasks-C-3AqSKL.cjs} +1 -1
- package/dist/{background-tasks-CQ1M8SHw.js → background-tasks-lHCVpHbm.js} +1 -1
- package/dist/browser/index.cjs +1 -1
- package/dist/browser/index.js +1 -1
- package/dist/{builder-DnbKjNuO.js → builder-C9UYOrxv.js} +2 -2
- package/dist/{builder-CVEDotdf.cjs → builder-mGGr3IhH.cjs} +2 -2
- package/dist/capabilities/302ai.json +196 -196
- package/dist/capabilities/abliteratedllm.json +27 -27
- package/dist/capabilities/abliteration-ai.json +8 -8
- package/dist/capabilities/above.json +18 -18
- package/dist/capabilities/adaption.json +12 -12
- package/dist/capabilities/adzuki.json +30 -30
- package/dist/capabilities/agentrouter.json +8 -8
- package/dist/capabilities/agnes.json +4 -4
- package/dist/capabilities/ai-router.json +3 -3
- package/dist/capabilities/aiand.json +24 -24
- package/dist/capabilities/aigrow.json +12 -12
- package/dist/capabilities/aimlapi.json +145 -145
- package/dist/capabilities/aixy.json +14 -14
- package/dist/capabilities/aki-io.json +10 -10
- package/dist/capabilities/alibaba-cn.json +98 -98
- package/dist/capabilities/alibaba-coding-plan-cn.json +6 -6
- package/dist/capabilities/alibaba-coding-plan.json +6 -6
- package/dist/capabilities/alibaba-token-plan-cn.json +54 -54
- package/dist/capabilities/alibaba-token-plan.json +55 -55
- package/dist/capabilities/alibaba.json +70 -70
- package/dist/capabilities/ambient.json +17 -17
- package/dist/capabilities/amd.json +10 -10
- package/dist/capabilities/anthropic.json +44 -44
- package/dist/capabilities/anyapi.json +8 -8
- package/dist/capabilities/apiko.json +4 -4
- package/dist/capabilities/arcee.json +10 -10
- package/dist/capabilities/augure.json +4 -4
- package/dist/capabilities/auriko.json +19 -19
- package/dist/capabilities/bailing.json +5 -5
- package/dist/capabilities/baseten.json +30 -30
- package/dist/capabilities/bee.json +4 -4
- package/dist/capabilities/berget.json +6 -6
- package/dist/capabilities/bothub.json +16 -16
- package/dist/capabilities/boundless.json +40 -40
- package/dist/capabilities/bumo.json +38 -38
- package/dist/capabilities/byteplus.json +29 -29
- package/dist/capabilities/cheapaimodel.json +6 -6
- package/dist/capabilities/cheapest-token.json +31 -31
- package/dist/capabilities/chutes.json +9 -9
- package/dist/capabilities/cline-pass.json +39 -39
- package/dist/capabilities/cloudcode.json +7 -7
- package/dist/capabilities/cloudferro-sherlock.json +4 -4
- package/dist/capabilities/cloudflare-workers-ai.json +16 -16
- package/dist/capabilities/commandcode.json +147 -147
- package/dist/capabilities/concentrate.json +278 -278
- package/dist/capabilities/cortecs.json +113 -113
- package/dist/capabilities/crossmodel.json +169 -169
- package/dist/capabilities/crusoe.json +9 -9
- package/dist/capabilities/daoxe.json +8 -8
- package/dist/capabilities/databricks.json +122 -122
- package/dist/capabilities/deepinfra.json +96 -96
- package/dist/capabilities/deepseek.json +4 -4
- package/dist/capabilities/digitalocean.json +112 -112
- package/dist/capabilities/dothoosh.json +28 -28
- package/dist/capabilities/doubleword.json +25 -25
- package/dist/capabilities/edenai.json +283 -283
- package/dist/capabilities/empiriolabs.json +164 -164
- package/dist/capabilities/engy.json +23 -23
- package/dist/capabilities/entrim.json +6 -6
- package/dist/capabilities/evroc.json +18 -18
- package/dist/capabilities/ezkielyna.json +8 -8
- package/dist/capabilities/fastrouter.json +82 -82
- package/dist/capabilities/fireworks-ai.json +85 -85
- package/dist/capabilities/freemodel.json +18 -18
- package/dist/capabilities/friendli.json +9 -9
- package/dist/capabilities/frogbot.json +99 -99
- package/dist/capabilities/gisoo.json +16 -16
- package/dist/capabilities/gmicloud.json +18 -18
- package/dist/capabilities/google.json +59 -59
- package/dist/capabilities/graphn.json +6 -6
- package/dist/capabilities/greenpt.json +33 -33
- package/dist/capabilities/groq.json +7 -7
- package/dist/capabilities/helicone.json +80 -80
- package/dist/capabilities/hostinger-router.json +14 -14
- package/dist/capabilities/hpc-ai.json +10 -10
- package/dist/capabilities/huawei-maas.json +13 -13
- package/dist/capabilities/hubris.json +31 -31
- package/dist/capabilities/huggingface.json +99 -99
- package/dist/capabilities/hyper.json +23 -23
- package/dist/capabilities/impossibl.json +135 -135
- package/dist/capabilities/inception.json +2 -2
- package/dist/capabilities/inceptron.json +8 -8
- package/dist/capabilities/inco.json +4 -4
- package/dist/capabilities/infer.json +11 -11
- package/dist/capabilities/inferall.json +14 -14
- package/dist/capabilities/inference-coop.json +11 -11
- package/dist/capabilities/inferenceapis.json +26 -26
- package/dist/capabilities/inferris.json +4 -4
- package/dist/capabilities/infersia.json +9 -9
- package/dist/capabilities/inferx.json +3 -3
- package/dist/capabilities/infomaniak.json +4 -4
- package/dist/capabilities/io-net.json +5 -5
- package/dist/capabilities/isoquant.json +4 -4
- package/dist/capabilities/iteracompute.json +47 -47
- package/dist/capabilities/jad-ai.json +3 -3
- package/dist/capabilities/jalapeno.json +12 -12
- package/dist/capabilities/jiekou.json +62 -62
- package/dist/capabilities/joingonka.json +4 -4
- package/dist/capabilities/jzstoken.json +49 -49
- package/dist/capabilities/keln.json +21 -21
- package/dist/capabilities/kenari.json +114 -114
- package/dist/capabilities/kilo.json +613 -620
- package/dist/capabilities/kimi-code-plan-cn.json +7 -7
- package/dist/capabilities/kimi-code-plan-global.json +7 -7
- package/dist/capabilities/kitani.json +6 -6
- package/dist/capabilities/klavo.json +19 -19
- package/dist/capabilities/korouter.json +29 -29
- package/dist/capabilities/kunavo.json +7 -7
- package/dist/capabilities/liquid.json +10 -10
- package/dist/capabilities/lithosai.json +2 -2
- package/dist/capabilities/llmgateway-providers.json +916 -900
- package/dist/capabilities/llmgateway.json +335 -333
- package/dist/capabilities/llmtr.json +41 -41
- package/dist/capabilities/logits.json +2 -2
- package/dist/capabilities/lowrouter.json +44 -44
- package/dist/capabilities/lyceum.json +12 -12
- package/dist/capabilities/melious.json +15 -15
- package/dist/capabilities/merge-gateway.json +286 -286
- package/dist/capabilities/meta.json +11 -11
- package/dist/capabilities/minimax-cn-coding-plan.json +5 -5
- package/dist/capabilities/minimax-cn.json +5 -5
- package/dist/capabilities/minimax-coding-plan.json +5 -5
- package/dist/capabilities/minimax.json +5 -5
- package/dist/capabilities/mistral.json +11 -11
- package/dist/capabilities/mixlayer.json +5 -5
- package/dist/capabilities/modal.json +10 -10
- package/dist/capabilities/model-oracle-ai.json +19 -19
- package/dist/capabilities/modelis.json +20 -20
- package/dist/capabilities/modelscope.json +2 -2
- package/dist/capabilities/modular.json +6 -6
- package/dist/capabilities/moneo.json +18 -18
- package/dist/capabilities/moonshotai-cn.json +6 -6
- package/dist/capabilities/moonshotai.json +6 -6
- package/dist/capabilities/morph.json +14 -14
- package/dist/capabilities/munito-eu.json +6 -6
- package/dist/capabilities/munito.json +10 -10
- package/dist/capabilities/nan.json +30 -30
- package/dist/capabilities/nano-gpt.json +568 -568
- package/dist/capabilities/nearai.json +73 -73
- package/dist/capabilities/nebius.json +34 -34
- package/dist/capabilities/neon.json +122 -122
- package/dist/capabilities/neuralwatt.json +40 -40
- package/dist/capabilities/nokeep.json +2 -2
- package/dist/capabilities/novita-ai.json +162 -162
- package/dist/capabilities/nvidia.json +35 -35
- package/dist/capabilities/oathbreaker.json +2 -2
- package/dist/capabilities/obscurify.json +22 -22
- package/dist/capabilities/oci.json +6 -6
- package/dist/capabilities/ofox.json +328 -328
- package/dist/capabilities/ollama-cloud.json +59 -59
- package/dist/capabilities/openai.json +56 -56
- package/dist/capabilities/opencode-go.json +96 -96
- package/dist/capabilities/openreason.json +6 -6
- package/dist/capabilities/openrouter.json +544 -545
- package/dist/capabilities/opper.json +27 -27
- package/dist/capabilities/orcarouter.json +224 -224
- package/dist/capabilities/outerlabs.json +34 -34
- package/dist/capabilities/ovhcloud.json +24 -24
- package/dist/capabilities/pareto.json +6 -6
- package/dist/capabilities/perplexity-agent.json +63 -63
- package/dist/capabilities/phala.json +32 -32
- package/dist/capabilities/pioneer.json +27 -27
- package/dist/capabilities/poe.json +138 -138
- package/dist/capabilities/poolside.json +3 -3
- package/dist/capabilities/powerspring.json +10 -10
- package/dist/capabilities/primalabs.json +9 -9
- package/dist/capabilities/prime.json +124 -115
- package/dist/capabilities/privatemode-ai.json +8 -8
- package/dist/capabilities/proxystacks.json +2 -2
- package/dist/capabilities/qiniu-ai.json +14 -14
- package/dist/capabilities/refuseless.json +6 -6
- package/dist/capabilities/regolo-ai.json +10 -10
- package/dist/capabilities/requesty.json +172 -172
- package/dist/capabilities/ruapi.json +19 -19
- package/dist/capabilities/runcrate.json +15 -15
- package/dist/capabilities/runinfra.json +13 -13
- package/dist/capabilities/sakana.json +3 -3
- package/dist/capabilities/sambanova.json +4 -4
- package/dist/capabilities/sandbase.json +26 -26
- package/dist/capabilities/sarvam.json +12 -12
- package/dist/capabilities/scaleway.json +15 -15
- package/dist/capabilities/scnet-token-plan.json +13 -13
- package/dist/capabilities/scx-ai.json +27 -27
- package/dist/capabilities/sensenova.json +12 -12
- package/dist/capabilities/siliconflow-cn.json +66 -66
- package/dist/capabilities/siliconflow.json +54 -54
- package/dist/capabilities/snowflake-cortex.json +20 -20
- package/dist/capabilities/sokkan.json +5 -5
- package/dist/capabilities/sparrowcodes.json +21 -21
- package/dist/capabilities/standardcompute.json +100 -100
- package/dist/capabilities/steadyrouter.json +43 -43
- package/dist/capabilities/stepfun-ai-step-plan.json +6 -6
- package/dist/capabilities/stepfun-ai.json +6 -6
- package/dist/capabilities/stepfun-step-plan.json +6 -6
- package/dist/capabilities/stepfun.json +6 -6
- package/dist/capabilities/stepping-stone.json +16 -16
- package/dist/capabilities/superbot-gg.json +4 -4
- package/dist/capabilities/synthetic.json +11 -11
- package/dist/capabilities/synthorai.json +26 -26
- package/dist/capabilities/teamorouter.json +25 -25
- package/dist/capabilities/teapot-router.json +13 -13
- package/dist/capabilities/tencent-token-plan-intl.json +20 -20
- package/dist/capabilities/tencent-token-plan.json +41 -41
- package/dist/capabilities/tencent-tokenhub.json +49 -49
- package/dist/capabilities/tensorx.json +44 -44
- package/dist/capabilities/tenstorrent.json +6 -6
- package/dist/capabilities/the-grid-ai.json +32 -32
- package/dist/capabilities/thinkingmachines.json +56 -56
- package/dist/capabilities/tinfoil.json +7 -7
- package/dist/capabilities/toapis.json +3 -3
- package/dist/capabilities/togetherai.json +43 -43
- package/dist/capabilities/tokengo.json +25 -25
- package/dist/capabilities/tokenify.json +10 -10
- package/dist/capabilities/trustedrouter.json +6 -6
- package/dist/capabilities/trustedtokens.json +18 -18
- package/dist/capabilities/umans-ai-coding-plan.json +13 -13
- package/dist/capabilities/umans-ai.json +13 -13
- package/dist/capabilities/uncensuredai.json +2 -2
- package/dist/capabilities/unrestricted.json +4 -4
- package/dist/capabilities/uplinkswitch.json +22 -22
- package/dist/capabilities/upstage.json +2 -2
- package/dist/capabilities/vancine.json +22 -22
- package/dist/capabilities/vercel.json +568 -568
- package/dist/capabilities/vivgrid.json +80 -80
- package/dist/capabilities/volcengine-coding-plan.json +23 -23
- package/dist/capabilities/volcengine.json +25 -25
- package/dist/capabilities/vultr.json +28 -28
- package/dist/capabilities/wafer.ai.json +19 -19
- package/dist/capabilities/wallaby.json +4 -4
- package/dist/capabilities/wally.json +10 -10
- package/dist/capabilities/wandb.json +18 -18
- package/dist/capabilities/watt.json +25 -25
- package/dist/capabilities/xai.json +5 -5
- package/dist/capabilities/xiaomi-token-plan-ams.json +2 -2
- package/dist/capabilities/xiaomi-token-plan-cn.json +2 -2
- package/dist/capabilities/xiaomi-token-plan-sgp.json +2 -2
- package/dist/capabilities/xiaomi.json +3 -3
- package/dist/capabilities/xpersona.json +11 -11
- package/dist/capabilities/xxapi.json +30 -30
- package/dist/capabilities/zai-coding-plan.json +12 -12
- package/dist/capabilities/zai.json +30 -30
- package/dist/capabilities/zenifra.json +28 -28
- package/dist/capabilities/zenmux.json +163 -163
- package/dist/capabilities/zerogpu.json +10 -10
- package/dist/capabilities/zhipuai-coding-plan.json +7 -7
- package/dist/capabilities/zhipuai.json +28 -28
- package/dist/capabilities/zro.json +2 -2
- package/dist/channels/index.cjs +2 -2
- package/dist/channels/index.js +2 -2
- package/dist/{channels-DwAd1RtQ.js → channels-CyJ0PpSg.js} +1 -1
- package/dist/{channels-DCd_dDOB.cjs → channels-dBz-1Oy7.cjs} +1 -1
- package/dist/coding-agent/index.cjs +1 -1
- package/dist/coding-agent/index.js +1 -1
- package/dist/datasets/index.cjs +2 -2
- package/dist/datasets/index.js +2 -2
- package/dist/docs/SKILL.md +1 -1
- package/dist/docs/assets/SOURCE_MAP.json +471 -471
- package/dist/evals/index.cjs +1 -1
- package/dist/evals/index.js +1 -1
- package/dist/evals/scoreTraces/index.cjs +1 -1
- package/dist/evals/scoreTraces/index.js +1 -1
- package/dist/harness/index.cjs +1 -1
- package/dist/harness/index.js +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.js +1 -1
- package/dist/knowledge/index.cjs +1 -1
- package/dist/knowledge/index.js +1 -1
- package/dist/llm/index.cjs +3 -3
- package/dist/llm/index.js +3 -3
- package/dist/llm/model/provider-types.generated.d.ts +7189 -7187
- package/dist/{llm-DQTGexjo.cjs → llm-BiSuGioB.cjs} +2 -2
- package/dist/{llm-BdHdjrHp.js → llm-Du8yTHDN.js} +2 -2
- package/dist/loop/index.cjs +2 -2
- package/dist/loop/index.js +2 -2
- package/dist/{manager-CjT4ivOl.cjs → manager-Bd8By72w.cjs} +2 -2
- package/dist/{manager-BxE49QHe.js → manager-CiKAT1GP.js} +2 -2
- package/dist/mastra/index.cjs +1 -1
- package/dist/mastra/index.js +1 -1
- package/dist/{mastra-CraMHXhw.cjs → mastra-BD1Hqrb2.cjs} +16 -16
- package/dist/{mastra-DKjpNZ-1.js → mastra-GjJdwKF7.js} +16 -16
- package/dist/memory/index.cjs +2 -2
- package/dist/memory/index.js +2 -2
- package/dist/{model-X2gWHlAy.js → model-Bvfq1yB9.js} +1 -1
- package/dist/{model-BEFQWHnG.cjs → model-CI05YYPx.cjs} +1 -1
- package/dist/{netlify-kxJSdqCW.js → netlify-DQ-v2Run.js} +1 -1
- package/dist/{netlify-BFgeBsaW.cjs → netlify-DkSS4nuo.cjs} +1 -1
- package/dist/notifications/index.cjs +1 -1
- package/dist/notifications/index.js +1 -1
- package/dist/processor-provider/index.cjs +1 -1
- package/dist/processor-provider/index.js +1 -1
- package/dist/processors/index.cjs +2 -2
- package/dist/processors/index.js +2 -2
- package/dist/processors/runner.d.ts +12 -0
- package/dist/{provider-registry-DgezoItQ.js → provider-registry-D7D3C2RI.js} +23072 -23068
- package/dist/{provider-registry-BXDosXMN.cjs → provider-registry-K3a83H9-.cjs} +23072 -23068
- package/dist/provider-registry.json +22948 -22944
- package/dist/{registry-generator-B50FrVGs.js → registry-generator-BgHaZqDZ.js} +1 -1
- package/dist/{registry-generator-BMXgTdbx.cjs → registry-generator-RfPwMlUl.cjs} +1 -1
- package/dist/{rehydrate-Dp8f_1MN.js → rehydrate-C4-5kM6Z.js} +2 -2
- package/dist/{rehydrate-CBcjKKGA.cjs → rehydrate-DwfzaTOg.cjs} +2 -2
- package/dist/relevance/index.cjs +2 -2
- package/dist/relevance/index.js +2 -2
- package/dist/{run-registry-BRO8xz9z.cjs → run-registry-BJa47sa2.cjs} +7 -7
- package/dist/{run-registry-H2qdwHni.js → run-registry-Bj_lW9M3.js} +7 -7
- package/dist/storage/index.cjs +2 -2
- package/dist/storage/index.js +2 -2
- package/dist/stream/index.cjs +2 -2
- package/dist/stream/index.js +2 -2
- package/dist/{stream-nABk9CJK.cjs → stream-CWE0h7Yc.cjs} +35 -12
- package/dist/{stream-DcYRY4r3.js → stream-DaIpS6ky.js} +35 -12
- package/dist/test-utils/llm-mock.cjs +1 -1
- package/dist/test-utils/llm-mock.js +1 -1
- package/dist/tool-loop-agent/index.cjs +1 -1
- package/dist/tool-loop-agent/index.js +1 -1
- package/dist/{tool-loop-agent-DO-GkLD_.js → tool-loop-agent-B12lpXBl.js} +3 -3
- package/dist/{tool-loop-agent-D1Rufbcz.cjs → tool-loop-agent-BGBhn5xS.cjs} +3 -3
- package/dist/{utils-DY0lTRKE.cjs → utils-CPOlvXFL.cjs} +1 -1
- package/dist/{utils-DlsFs_sO.js → utils-dueX8ECq.js} +1 -1
- package/dist/utils.cjs +1 -1
- package/dist/utils.js +1 -1
- package/dist/{validate-DP9DxgFq.cjs → validate-DdirQd9u.cjs} +1 -1
- package/dist/{validate-D4nqo7Ri.js → validate-x3wcpuT8.js} +1 -1
- package/dist/vector/index.cjs +1 -1
- package/dist/vector/index.js +1 -1
- package/dist/worker/index.cjs +1 -1
- package/dist/worker/index.js +1 -1
- package/dist/{worker-CqEMDlAQ.cjs → worker-CPZ3HqQn.cjs} +2 -2
- package/dist/{worker-8MNVG9Ja.js → worker-CfMtR2cV.js} +2 -2
- package/dist/{worker-LryffZas.cjs → worker-GrFJJ7Y0.cjs} +2 -2
- package/dist/{worker-Ckryk6RZ.js → worker-NYiueScR.js} +2 -2
- package/dist/{workflow-BN6YiI09.cjs → workflow-BNUED985.cjs} +3 -3
- package/dist/{workflow-B0mhMnuQ.js → workflow-BgAes9PI.js} +3 -3
- package/dist/workflows/builder/index.cjs +1 -1
- package/dist/workflows/builder/index.js +1 -1
- package/dist/workflows/evented/index.cjs +1 -1
- package/dist/workflows/evented/index.js +1 -1
- package/dist/workflows/index.cjs +4 -4
- package/dist/workflows/index.js +4 -4
- package/package.json +6 -6
- package/src/llm/model/provider-types.generated.d.ts +7189 -7187
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { _ as getCapabilityFileName, g as shouldEnableGateway, m as getGatewayId } from "./netlify-
|
|
1
|
+
import { _ as getCapabilityFileName, g as shouldEnableGateway, m as getGatewayId } from "./netlify-DQ-v2Run.js";
|
|
2
2
|
import path from "path";
|
|
3
3
|
import fs from "fs/promises";
|
|
4
4
|
// src/llm/model/registry-generator.ts
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
const require_rolldown_runtime = require("./rolldown-runtime-BrhgMLW6.cjs");
|
|
2
|
-
const require_netlify = require("./netlify-
|
|
2
|
+
const require_netlify = require("./netlify-DkSS4nuo.cjs");
|
|
3
3
|
let path = require("path");
|
|
4
4
|
path = require_rolldown_runtime.__toESM(path, 1);
|
|
5
5
|
let fs_promises = require("fs/promises");
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { Ec as predicateToCondition, Is as cloneWorkflow, Jc as createStepFromTool, Kc as createStepFromAgent, Ls as createEventedWorkflow, Rs as createWorkflow, Tc as mapVariable, cl as getSingleStepEntryId } from "./run-registry-
|
|
1
|
+
import { Ec as predicateToCondition, Is as cloneWorkflow, Jc as createStepFromTool, Kc as createStepFromAgent, Ls as createEventedWorkflow, Rs as createWorkflow, Tc as mapVariable, cl as getSingleStepEntryId } from "./run-registry-Bj_lW9M3.js";
|
|
2
2
|
import { derivePredicateLabel } from "./predicate/index.js";
|
|
3
|
-
import { a as jsonSchemaToZod, l as parseMapConfig } from "./validate-
|
|
3
|
+
import { a as jsonSchemaToZod, l as parseMapConfig } from "./validate-x3wcpuT8.js";
|
|
4
4
|
import { standardSchemaToJSONSchema, toStandardSchema } from "./schema/index.js";
|
|
5
5
|
// src/workflows/dynamic/serialize.ts
|
|
6
6
|
/**
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
const require_run_registry = require("./run-registry-
|
|
1
|
+
const require_run_registry = require("./run-registry-BJa47sa2.cjs");
|
|
2
2
|
const require_predicate_index = require("./predicate/index.cjs");
|
|
3
|
-
const require_validate = require("./validate-
|
|
3
|
+
const require_validate = require("./validate-DdirQd9u.cjs");
|
|
4
4
|
let _mastra_schema_compat_schema = require("@mastra/schema-compat/schema");
|
|
5
5
|
// src/workflows/dynamic/serialize.ts
|
|
6
6
|
/**
|
package/dist/relevance/index.cjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
-
const require_run_registry = require("../run-registry-
|
|
3
|
-
const require_stream = require("../stream-
|
|
2
|
+
const require_run_registry = require("../run-registry-BJa47sa2.cjs");
|
|
3
|
+
const require_stream = require("../stream-CWE0h7Yc.cjs");
|
|
4
4
|
// src/relevance/relevance-score-provider.ts
|
|
5
5
|
function createSimilarityPrompt(query, text) {
|
|
6
6
|
return `Rate the semantic similarity between the following the query and the text on a scale from 0 to 1 (decimals allowed), where 1 means exactly the same meaning and 0 means completely different:
|
package/dist/relevance/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { P as Agent } from "../run-registry-
|
|
2
|
-
import { ln as isSupportedLanguageModel } from "../stream-
|
|
1
|
+
import { P as Agent } from "../run-registry-Bj_lW9M3.js";
|
|
2
|
+
import { ln as isSupportedLanguageModel } from "../stream-DaIpS6ky.js";
|
|
3
3
|
// src/relevance/relevance-score-provider.ts
|
|
4
4
|
function createSimilarityPrompt(query, text) {
|
|
5
5
|
return `Rate the semantic similarity between the following the query and the text on a scale from 0 to 1 (decimals allowed), where 1 means exactly the same meaning and 0 means completely different:
|
|
@@ -4,14 +4,14 @@ const require_base = require("./base-BIzR1D3_.cjs");
|
|
|
4
4
|
const require_observability = require("./observability-B0R_D1PZ.cjs");
|
|
5
5
|
const require_error = require("./error-D90lJ6M7.cjs");
|
|
6
6
|
const require_error$1 = require("./error-L1V4uUbd.cjs");
|
|
7
|
-
const require_stream = require("./stream-
|
|
7
|
+
const require_stream = require("./stream-CWE0h7Yc.cjs");
|
|
8
8
|
const require_request_context = require("./request-context-D9RXYCy8.cjs");
|
|
9
9
|
const require_output_helpers = require("./output-helpers-DgsH4aTb.cjs");
|
|
10
10
|
const require_message_list = require("./message-list-vR3uLAHL.cjs");
|
|
11
11
|
const require_storage = require("./storage-CfG0I2aF.cjs");
|
|
12
12
|
const require_utils = require("./utils-D-eNsgDM.cjs");
|
|
13
13
|
const require_error_count = require("./error-count-DeDpeWU2.cjs");
|
|
14
|
-
const require_llm = require("./llm-
|
|
14
|
+
const require_llm = require("./llm-BiSuGioB.cjs");
|
|
15
15
|
const require_payload_transform = require("./payload-transform-CWgnsO9w.cjs");
|
|
16
16
|
const require_utils_safe_stringify = require("./utils/safe-stringify.cjs");
|
|
17
17
|
const require_signals = require("./signals-CWxAMEmE.cjs");
|
|
@@ -23,13 +23,13 @@ const require_tool = require("./tool-CYlT2UA-.cjs");
|
|
|
23
23
|
const require_toolchecks = require("./toolchecks-MFU48cit.cjs");
|
|
24
24
|
const require_fetchWithRetry = require("./fetchWithRetry-f5k4p7_1.cjs");
|
|
25
25
|
const require_model = require("./model-jBymoqGa.cjs");
|
|
26
|
-
const require_provider_registry = require("./provider-registry-
|
|
26
|
+
const require_provider_registry = require("./provider-registry-K3a83H9-.cjs");
|
|
27
27
|
const require_inmemory = require("./inmemory-Dc86VWGB.cjs");
|
|
28
28
|
const require_dynamic_argument = require("./dynamic-argument-CUc1BBOS.cjs");
|
|
29
|
-
const require_model$1 = require("./model-
|
|
30
|
-
const require_utils$1 = require("./utils-
|
|
29
|
+
const require_model$1 = require("./model-CI05YYPx.cjs");
|
|
30
|
+
const require_utils$1 = require("./utils-CPOlvXFL.cjs");
|
|
31
31
|
const require_ee_iTj2bRDt = require("./ee-iTj2bRDt-D3-QLGDF.cjs");
|
|
32
|
-
const require_background_tasks = require("./background-tasks-
|
|
32
|
+
const require_background_tasks = require("./background-tasks-C-3AqSKL.cjs");
|
|
33
33
|
const require_stream$1 = require("./stream-BGbj9jAU.cjs");
|
|
34
34
|
const require_predicate_index = require("./predicate/index.cjs");
|
|
35
35
|
const require_classifier_index = require("./classifier/index.cjs");
|
|
@@ -84331,7 +84331,7 @@ async function prepareForDurableExecution(options) {
|
|
|
84331
84331
|
});
|
|
84332
84332
|
let tripwireData;
|
|
84333
84333
|
if (inputProcessors.length > 0) try {
|
|
84334
|
-
const { ProcessorRunner } = await Promise.resolve().then(() => require("./stream-
|
|
84334
|
+
const { ProcessorRunner } = await Promise.resolve().then(() => require("./stream-CWE0h7Yc.cjs")).then((n) => n.runner_exports);
|
|
84335
84335
|
await new ProcessorRunner({
|
|
84336
84336
|
inputProcessors,
|
|
84337
84337
|
outputProcessors,
|
|
@@ -4,14 +4,14 @@ import { t as MastraBase } from "./base-CKLWBhDo.js";
|
|
|
4
4
|
import { A as compactStopReasonContext, D as agentLoopTermination, O as executionFailureTermination, S as resolveObservabilityContext, b as wrapMastra, i as subtractReportedUsage, k as tripwireTermination, n as extractUsageMetrics, r as isUsageIncomplete, t as calculateObservedUsage, x as createObservabilityContext, y as unwrapMastraTracingProxy } from "./observability-D7RNOAPx.js";
|
|
5
5
|
import { a as MastraNonRetryableError, i as MastraError, n as ErrorDomain, o as getErrorFromUnknown, t as ErrorCategory } from "./error-oh2DLsP2.js";
|
|
6
6
|
import { a as classifyProviderError, l as describeProviderError, t as recordTerminalErrorMessage, u as readProviderErrorDetails } from "./error-BC9Au-22.js";
|
|
7
|
-
import { $ as resolveProcessorSpanAttributes, $t as computeModelOutputProviderMetadata, A as OUTPUT_STREAM_HOOK_DURATION_KEY_PREFIX, An as safeError, B as ProviderHistoryCompat, Bt as summarizeStepResult, C as markChunkOutputProcessed, Cn as isMastraTimeoutError, Ct as resolveTemplate, D as asJsonSchema, Dn as MastraModelInput, Dt as getStepResult, E as isStructuredOutputError, Et as validateTemplate, F as findOwnModelStepSpan, Ft as materializeState, G as REPROCESS_PART_KEY, Gt as patchState, Ht as applyStatePatch, It as materializeWorkflowRun, J as summarizeActiveToolsForSpan, Jt as isObservationalMemoryEnabled$1, K as takeHeldParts, L as isTrailingAssistantGuardContinuation, Lt as pickStateKeys, M as ProcessorState, Mn as createRunScopeKey, Mt as applyStateColumnsWrite, N as endOutputStreamSpanAtStepEnd, Nt as isStateCheckpointDue, O as getResponseFormat, On as safeClose, Ot as getStepResultAsync, P as endOutputStreamSpanOutsideStep, Pt as latestStepResults, Q as summarizeToolChoiceForSpan, Qt as commitToolResult, R as needsTrailingAssistantGuard, Rt as stateBaseOf, S as stampChunkProducedAt, Sn as guardStreamWithAbort, T as escapeUnescapedControlCharsInJsonStrings, Tn as settledOrElapsed, Tt as traverseMappingPath, Vt as unusedStateEntries, W as FLUSH_HELD_PARTS_KEY, Wt as diffStateAsJson, X as summarizeProcessorResultForSpan, Xt as parseMemoryRequestContext, Y as summarizeProcessorModelForSpan, Z as summarizeProcessorToolsForSpan, _ as reconcileBufferedStepTexts, _n as DEADLINE_SAVE_WAIT_MS, _t as collectMappingStepRefs, a as convertFullStreamChunkToMastra, an as withAgentWorkflowToolMarker, at as RunJournal, b as resolveProcessorWriterMessageId, bn as getAbortReason, bt as resolveStepOutputs, c as WorkflowRunOutput, cn as isProcessorWorkflow, ct as hydrateStepResults, d as MastraModelOutput, dn as resolveThreadIdFromArgs, dt as loadStepResults, en as hasToolResultProcessor, et as resolveProcessorSpanName, f as clearStepPartIndexes, fn as supportedLanguageModelSpecifications, ft as loadedStepResults, g as persistProcessorDataChunk, gn as DEADLINE_SAVE_CLAIM_HOLD_MS, gt as stubStepResult, h as findStepPartBoundaries, hn as applyStateSignal, ht as storageV2StepResultAccessors, in as snapshotToolResult, it as PROCESSOR_ABORT_SIGNAL, j as ProcessorRunner, jn as createRunScope, k as isSignalChunkExcluded, kn as safeEnqueue, kt as getSnapshotMemoryInfo, l as TripWire, ln as isSupportedLanguageModel, lt as isStepResultStub, m as findIterationOffsetInParts, mn as tryStreamWithJsonFallback, mt as residentStepResultsLoader, nn as readModelOutput, nt as PROCESSOR_LATE_SIGNAL_SINK, on as normalizeModelOutput, ot as buildStepResultAccessors, p as createDestructurableOutput, pn as tryGenerateWithJsonFallback, pt as residentStepResults, q as withoutHeldContent, rn as resolveModelOutputAfterToolResultProcessors, rt as createProcessorSendSignal, s as MastraAgentNetworkStream, sn as validationErrorModelOutput, st as getHydratedStepResult, tn as latestProcessedModelOutput, tt as toProcessorSpanPhase, u as getModelOutputForTripwire, un as resolveSuspendedToolRunId, ut as lazyStepResults, v as resolveMessageText, vn as MastraTimeoutError, vt as collectPredicateStepRefs, w as createOutputHandler, wn as raceAgainstAbort, wt as templateReadsState, x as getChunkProducedAt, xn as guardStreamUntilMatch, xt as stepRefId, y as resolveOutputMessageSkippingCompletionChecks, yn as createTimeoutAbortSignal, yt as predicateReadsState, z as removeTrailingAssistantGuardContinuations, zt as stateColumnsWrite } from "./stream-
|
|
7
|
+
import { $ as resolveProcessorSpanAttributes, $t as computeModelOutputProviderMetadata, A as OUTPUT_STREAM_HOOK_DURATION_KEY_PREFIX, An as safeError, B as ProviderHistoryCompat, Bt as summarizeStepResult, C as markChunkOutputProcessed, Cn as isMastraTimeoutError, Ct as resolveTemplate, D as asJsonSchema, Dn as MastraModelInput, Dt as getStepResult, E as isStructuredOutputError, Et as validateTemplate, F as findOwnModelStepSpan, Ft as materializeState, G as REPROCESS_PART_KEY, Gt as patchState, Ht as applyStatePatch, It as materializeWorkflowRun, J as summarizeActiveToolsForSpan, Jt as isObservationalMemoryEnabled$1, K as takeHeldParts, L as isTrailingAssistantGuardContinuation, Lt as pickStateKeys, M as ProcessorState, Mn as createRunScopeKey, Mt as applyStateColumnsWrite, N as endOutputStreamSpanAtStepEnd, Nt as isStateCheckpointDue, O as getResponseFormat, On as safeClose, Ot as getStepResultAsync, P as endOutputStreamSpanOutsideStep, Pt as latestStepResults, Q as summarizeToolChoiceForSpan, Qt as commitToolResult, R as needsTrailingAssistantGuard, Rt as stateBaseOf, S as stampChunkProducedAt, Sn as guardStreamWithAbort, T as escapeUnescapedControlCharsInJsonStrings, Tn as settledOrElapsed, Tt as traverseMappingPath, Vt as unusedStateEntries, W as FLUSH_HELD_PARTS_KEY, Wt as diffStateAsJson, X as summarizeProcessorResultForSpan, Xt as parseMemoryRequestContext, Y as summarizeProcessorModelForSpan, Z as summarizeProcessorToolsForSpan, _ as reconcileBufferedStepTexts, _n as DEADLINE_SAVE_WAIT_MS, _t as collectMappingStepRefs, a as convertFullStreamChunkToMastra, an as withAgentWorkflowToolMarker, at as RunJournal, b as resolveProcessorWriterMessageId, bn as getAbortReason, bt as resolveStepOutputs, c as WorkflowRunOutput, cn as isProcessorWorkflow, ct as hydrateStepResults, d as MastraModelOutput, dn as resolveThreadIdFromArgs, dt as loadStepResults, en as hasToolResultProcessor, et as resolveProcessorSpanName, f as clearStepPartIndexes, fn as supportedLanguageModelSpecifications, ft as loadedStepResults, g as persistProcessorDataChunk, gn as DEADLINE_SAVE_CLAIM_HOLD_MS, gt as stubStepResult, h as findStepPartBoundaries, hn as applyStateSignal, ht as storageV2StepResultAccessors, in as snapshotToolResult, it as PROCESSOR_ABORT_SIGNAL, j as ProcessorRunner, jn as createRunScope, k as isSignalChunkExcluded, kn as safeEnqueue, kt as getSnapshotMemoryInfo, l as TripWire, ln as isSupportedLanguageModel, lt as isStepResultStub, m as findIterationOffsetInParts, mn as tryStreamWithJsonFallback, mt as residentStepResultsLoader, nn as readModelOutput, nt as PROCESSOR_LATE_SIGNAL_SINK, on as normalizeModelOutput, ot as buildStepResultAccessors, p as createDestructurableOutput, pn as tryGenerateWithJsonFallback, pt as residentStepResults, q as withoutHeldContent, rn as resolveModelOutputAfterToolResultProcessors, rt as createProcessorSendSignal, s as MastraAgentNetworkStream, sn as validationErrorModelOutput, st as getHydratedStepResult, tn as latestProcessedModelOutput, tt as toProcessorSpanPhase, u as getModelOutputForTripwire, un as resolveSuspendedToolRunId, ut as lazyStepResults, v as resolveMessageText, vn as MastraTimeoutError, vt as collectPredicateStepRefs, w as createOutputHandler, wn as raceAgainstAbort, wt as templateReadsState, x as getChunkProducedAt, xn as guardStreamUntilMatch, xt as stepRefId, y as resolveOutputMessageSkippingCompletionChecks, yn as createTimeoutAbortSignal, yt as predicateReadsState, z as removeTrailingAssistantGuardContinuations, zt as stateColumnsWrite } from "./stream-DaIpS6ky.js";
|
|
8
8
|
import { c as MASTRA_THREAD_ID_KEY, d as isReservedRequestContextKey, f as mergeVersionOverrides$1, l as MASTRA_VERSIONS_KEY, n as MASTRA_AUTH_TOKEN_KEY, o as MASTRA_RESOURCE_ID_KEY, p as withoutLiveRequestKeys, r as MASTRA_INHERITED_MEMORY_KEY, s as MASTRA_SCOPES_KEY, t as MASTRA_CONTINUATION_TOOL_CALL_IDS_KEY, u as RequestContext } from "./request-context-COnZHt2-.js";
|
|
9
9
|
import { S as withAck, _ as serializeError$1, h as stripModelSnapshots, n as PublisherQueueLimitError, p as slimNestedAgentChunks, r as CachingPubSub, t as DefaultStepResult, u as isRunLocalTopic, v as EventEmitterPubSub, x as isLeaseProvider, y as NoopLeaseProvider } from "./output-helpers-CVzhy1Y0.js";
|
|
10
10
|
import { A as stableStringify$1, E as removeWorkingMemoryTags, P as embed$3, Z as preserveResponseItemIdsOnMerge, a as isTerminalToolInvocationState, c as withUnavailableAttachmentUrls, d as aiV5UIMessagesToAIV5ModelMessages, f as coreContentToString, i as isClientToolInvocationUpdate, l as isDownloadAssetsError, m as filterMessagesForPersistence, n as MessageList, ot as normalizeToolOutput, p as messagesAreEqual, r as advancesToolInvocationState, s as unavailableAttachmentPlaceholder, t as convertMessages, u as MessageMerger } from "./message-list-BGm1DCiG.js";
|
|
11
11
|
import { Bt as listScoresArgsSchema, Ft as listLogsArgsSchema, Lt as listMetricsArgsSchema, Nt as listFeedbackArgsSchema, t as EntityType } from "./storage-Cc50aQAp.js";
|
|
12
12
|
import { a as getOrCreateSpan, f as resolveCurrentSpan, l as getTimeToFirstChunkMs, n as executeWithContextSync, o as getResumeTracingContext, p as resolveExportedSpanId, s as getRootExportSpan, t as executeWithContext, u as getWorkflowResumeTracingContext } from "./utils-DU_pU5SK.js";
|
|
13
13
|
import { i as setSpanErrorOrigin, n as getSpanErrorOrigin } from "./error-count-BH-rJW7q.js";
|
|
14
|
-
import { a as ModelRouterLanguageModel, d as attachModelStreamTransport, f as isDataChunk, i as resolveModelConfig, n as ModelRouterEmbeddingModel, o as resolveApiProviderId, p as readModelStreamTransport } from "./llm-
|
|
14
|
+
import { a as ModelRouterLanguageModel, d as attachModelStreamTransport, f as isDataChunk, i as resolveModelConfig, n as ModelRouterEmbeddingModel, o as resolveApiProviderId, p as readModelStreamTransport } from "./llm-Du8yTHDN.js";
|
|
15
15
|
import { a as withToolPayloadTransformMetadata, i as transformToolPayloadForTargets, n as hasTransformedToolPayload, o as withToolPayloadTransformProviderMetadata, r as normalizeToolPayloadTransformPolicy, t as getTransformedToolPayload } from "./payload-transform-Dj3HUeD4.js";
|
|
16
16
|
import { boundedStringify, ensureSerializable, safeStringify } from "./utils/safe-stringify.js";
|
|
17
17
|
import { d as signalSpanAttributes, h as signalToXmlMarkup, l as mastraDBMessageToSignal, n as createSignal, o as isMastraSignalMessage, s as isTransientSignalMessage, u as resolveDeliveryAttributes } from "./signals-CqR_iWkg.js";
|
|
@@ -24,13 +24,13 @@ import { _ as getRequestContextInputValues, a as getModelFacingValidationError,
|
|
|
24
24
|
import { a as isApprovalExempt, c as isProviderDefinedTool, d as markAgentWorkflowTool, f as markApprovalExempt, l as isProviderTool, n as getNeedsApprovalFn, o as isBuiltBeforeApproval, r as getProviderToolName, s as isMastraTool, t as getBeforeApprovalFn } from "./toolchecks-DrsZdc3S.js";
|
|
25
25
|
import { a as waitDelay, i as getRetryAfterMs, n as DEFAULT_MAX_RETRY_AFTER_MS, r as clampDelayMs } from "./fetchWithRetry-DFSvpYDT.js";
|
|
26
26
|
import { i as hasFreeFormObject } from "./model-DS-b2R-R.js";
|
|
27
|
-
import { c as modelSupportsStructuredOutput, l as modelSupportsTemperature } from "./provider-registry-
|
|
27
|
+
import { c as modelSupportsStructuredOutput, l as modelSupportsTemperature } from "./provider-registry-D7D3C2RI.js";
|
|
28
28
|
import { t as InMemoryServerCache } from "./inmemory-BK3zLwvM.js";
|
|
29
29
|
import { n as resolveDynamicArgument, t as getRequestUser } from "./dynamic-argument-BzPK3qPN.js";
|
|
30
|
-
import { t as MastraLLMV1 } from "./model-
|
|
31
|
-
import { A as eagerToolCallDidNotExecute, D as EagerToolExecutionCoordinator, E as EAGER_TOOL_EXECUTION_MARKER, F as hasRunningRunStep, I as isRunStepActive, L as setRunLeaseFence, M as isEagerlyExecutableToolCall, N as TOOL_ABORT_NOTICE, O as EagerToolExecutionNotRun, P as clearRunLeaseFence, R as startRunStep, S as selectFields, T as EAGER_TOOL_BAILOUT, a as ensureToolProperties, b as removeUndefinedValues, d as makeCoreTool, i as delay$1, j as eagerToolCallSuspensionIntent, k as eagerToolCallAlreadyAnnouncedInput, n as createMastraProxy, o as generateEmptyFromSchema, p as makeProcessorCoreTool, r as deepMerge$1, v as readPositiveIntEnv, w as EAGER_TOOL_ABORT_SIGNAL, y as rebindProcessorTools, z as whenRunStepsSettle } from "./utils-
|
|
30
|
+
import { t as MastraLLMV1 } from "./model-Bvfq1yB9.js";
|
|
31
|
+
import { A as eagerToolCallDidNotExecute, D as EagerToolExecutionCoordinator, E as EAGER_TOOL_EXECUTION_MARKER, F as hasRunningRunStep, I as isRunStepActive, L as setRunLeaseFence, M as isEagerlyExecutableToolCall, N as TOOL_ABORT_NOTICE, O as EagerToolExecutionNotRun, P as clearRunLeaseFence, R as startRunStep, S as selectFields, T as EAGER_TOOL_BAILOUT, a as ensureToolProperties, b as removeUndefinedValues, d as makeCoreTool, i as delay$1, j as eagerToolCallSuspensionIntent, k as eagerToolCallAlreadyAnnouncedInput, n as createMastraProxy, o as generateEmptyFromSchema, p as makeProcessorCoreTool, r as deepMerge$1, v as readPositiveIntEnv, w as EAGER_TOOL_ABORT_SIGNAL, y as rebindProcessorTools, z as whenRunStepsSettle } from "./utils-dueX8ECq.js";
|
|
32
32
|
import { h as getWorkflowFGAResourceId, i as MastraFGAPermissions, y as requireFGA } from "./ee-iTj2bRDt-By_B9ngH.js";
|
|
33
|
-
import { c as createBackgroundTask, o as resolveBackgroundConfig, s as sanitizeToolArguments, t as generateBackgroundTaskSystemPrompt } from "./background-tasks-
|
|
33
|
+
import { c as createBackgroundTask, o as resolveBackgroundConfig, s as sanitizeToolArguments, t as generateBackgroundTaskSystemPrompt } from "./background-tasks-lHCVpHbm.js";
|
|
34
34
|
import { t as ToolStream } from "./stream-D9JOykz7.js";
|
|
35
35
|
import { MISSING, collectInvalidPredicatePaths, createPredicateEvaluator, derivePredicateLabel, normalizePredicatePath, walk } from "./predicate/index.js";
|
|
36
36
|
import { Classifier } from "./classifier/index.js";
|
|
@@ -84325,7 +84325,7 @@ async function prepareForDurableExecution(options) {
|
|
|
84325
84325
|
});
|
|
84326
84326
|
let tripwireData;
|
|
84327
84327
|
if (inputProcessors.length > 0) try {
|
|
84328
|
-
const { ProcessorRunner } = await import("./stream-
|
|
84328
|
+
const { ProcessorRunner } = await import("./stream-DaIpS6ky.js").then((n) => n.I);
|
|
84329
84329
|
await new ProcessorRunner({
|
|
84330
84330
|
inputProcessors,
|
|
84331
84331
|
outputProcessors,
|
package/dist/storage/index.cjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
-
const require_run_registry = require("../run-registry-
|
|
2
|
+
const require_run_registry = require("../run-registry-BJa47sa2.cjs");
|
|
3
3
|
const require_observability = require("../observability-B0R_D1PZ.cjs");
|
|
4
|
-
const require_stream = require("../stream-
|
|
4
|
+
const require_stream = require("../stream-CWE0h7Yc.cjs");
|
|
5
5
|
const require_storage = require("../storage-CfG0I2aF.cjs");
|
|
6
6
|
const require_constants = require("../constants-Bou0hEgY.cjs");
|
|
7
7
|
const require_filesystem_versioned = require("../filesystem-versioned-BavRtYWJ.cjs");
|
package/dist/storage/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { $a as buildSpanQueryResponse, $i as DatasetsStorage, $l as assertWorkflowStepGuard, Aa as storageMessageMatchesMetadataFilter, Ai as MAX_KNOWLEDGE_NOTE_TOKENS, Ao as UniqueViolationError, Ar as MockStore, Ba as THREAD_QUERY_DEFAULT_LIMIT, Bi as canonicalKnowledgeName, Br as ToolProviderConnectionsStorage, Ca as getDefaultValue, Ci as inspectKnowledgeSchema, Co as getStringOrNull, Cr as StoreOperationsInMemory, Da as parseDuration, Di as KnowledgePageHasChildrenError, Do as ObservabilityStorage, Dr as FilesystemStore, Ea as jsonValueEquals, Ei as KnowledgePageDepthError, Eo as ObservabilityInMemory, Er as createGitHubSourceControlProviderFromEnv, Fa as readTracePage, Fi as MAX_KNOWLEDGE_PAGE_LINK_REF_LENGTH, Fr as mergeStepResult, Ga as threadQueryRequestSchema, Gi as knowledgeScopeReadable, Gr as normalizeScheduleTarget, Ha as encodeThreadQueryCursor, Hi as knowledgePagePath, Hr as ScoresStorage, Ia as tracePageIdSchema, Ii as MAX_KNOWLEDGE_PAGE_LIST_LIMIT, Ir as mergeWorkflowStepResult, Ja as SPAN_QUERY_MAX_COST_METRICS, Ji as InMemoryHarness, Jr as dispatchDueNotifications, Ka as threadQueryResponseSchema, Ki as parseKnowledgePageRef, Kr as InMemoryNotificationsStorage, La as tracePageNodeSchema, Li as MAX_KNOWLEDGE_PIN_LIST_DEPTH, Lr as InMemoryWorkflowDefinitionsStorage, Ma as transformScoreRow, Mi as MAX_KNOWLEDGE_PAGE_DEPTH, Mr as cloneRunData, Na as validateStorageMetadataFilter, Ni as MAX_KNOWLEDGE_PAGE_DESCRIPTION_TOKENS, Nr as WorkflowsStorage, Oa as safelyParseJSON, Oi as KnowledgePageKeyConflictError, Oo as FactoryStorage, Or as FilesystemDB, Pa as TracePageError, Pi as MAX_KNOWLEDGE_PAGE_LINKS, Pr as createEmptyWorkflowSnapshot, Qa as SPAN_QUERY_ORDER_FIELDS, Qi as DatasetsInMemory, Ql as WorkflowStepConflictError, Ra as tracePageRequestSchema, Ri as assertKnowledgeNoteTextWithinBound, Rr as WorkflowDefinitionsStorage, Sa as filterByDateRange, Si as createKnowledgeUlid, So as getObjectOrNull, Sr as parseKnowledgeNodeCursor, Ta as hasErrorCode, Ti as KnowledgeMoveTooLargeError, To as toEntityType, Tr as GitHubSourceControlProvider, Ua as planThreadRowsQuery, Ui as knowledgePinDepth, Ur as InMemorySchedulesStorage, Va as THREAD_QUERY_MAX_LIMIT, Vi as knowledgeLinkRefKey, Vr as ScoresInMemory, Wa as threadQueryIdentitySchema, Wi as knowledgePositionBetween, Wr as SchedulesStorage, Xa as SPAN_QUERY_MAX_LIMIT, Xi as ExperimentsInMemory, Ya as SPAN_QUERY_MAX_CURSOR_BYTES, Yi as HarnessStorage, Za as SPAN_QUERY_MAX_PREVIEW_CHARACTERS, Zi as ExperimentsStorage, _a as runRetentionBatches, _i as KnowledgeSchemaResetRequiredError, _o as buildFeedbackRecord, _r as isKnowledgeScopeVisible, ao as spanQueryCostSchema, au as currentRunGeneration, ba as createVectorErrorId, bi as KnowledgeUnsupportedCapabilityError, bo as buildScoreRecord, br as knowledgeSemanticIdempotencyKey, ca as InMemoryChannelsStorage, ci as MemoryStorage, co as spanQueryRequestSchema, cr as MAX_KNOWLEDGE_RECORD_TEXT_LENGTH, cu as resolveRunFence, da as BlobStore, di as KnowledgeImporterRunStateError, do as encodeTraceQueryCursor, dr as assertKnowledgeDescriptionWithinBound, du as setRunFenceContext, ea as DatasetItemIdentityConflictError, eo as createSpanQueryPreview, eu as isWorkflowStepConflictError, fa as BackgroundTasksInMemory, fi as KnowledgeImportersStorage, fo as encodeTraceQueryDeltaCursor, fr as assertKnowledgeRecordTextWithinBound, ga as retentionCutoffMs, gi as KnowledgeNotFoundError, go as buildCreateSpanRecord, gr as expandKnowledgeScope, ha as resolveRetentionTargets, hi as KnowledgeConflictError, ho as planTraceQuery, hr as createKnowledgeNodeCursor, io as resolveSpanQueryCost, iu as coverNestedRun, ja as transformRow, ji as MAX_KNOWLEDGE_PAGE_BODY_LINKS, jr as WorkflowsInMemory, ka as serializeDate, ki as MAX_KNOWLEDGE_MOVE_PAGES, ko as FactoryStorageDomain, kr as InMemoryStore, la as ChannelsStorage, li as InMemoryKnowledgeStorage, lo as spanQueryResponseSchema, lr as MAX_KNOWLEDGE_SCOPE_TAGS, lu as runFencingNotSupportedError, ma as executeRetentionPrune, mi as KNOWLEDGE_STORAGE_SCHEMA_VERSION, mo as planThreadQuery, mr as canonicalizeKnowledgeScope, no as parseSpanQueryRequest, nu as RUN_FENCING_NOT_SUPPORTED_ERROR_ID, oo as spanQueryIdentityKey, ou as isRunFenceConflictError, pa as BackgroundTasksStorage, pi as KNOWLEDGE_STORAGE_CONTRACT_VERSION, po as getTraceQueryDeltaWatermark, pr as assertKnowledgeScopeWithinCeiling, qa as threadQueryRowSchema, qi as KnowledgeInvalidCursorError, qr as NotificationsStorage, ro as planSpanQuery, ru as RunFenceConflictError, si as InMemoryMemory, so as spanQueryIdentitySchema, sr as MAX_KNOWLEDGE_NODE_DESCRIPTION_LENGTH, su as matchesRunFence, to as encodeSpanQueryCursor, tu as RUN_FENCE_CONFLICT_ERROR_ID, ua as InMemoryBlobStore, ui as KnowledgeImporterBindingConflictError, uo as spanQueryRowSchema, ur as assertKnowledgeCeilingRaised, uu as runOutsideRunFenceScope, va as createStorageErrorId, vi as KnowledgeStorage, vo as buildLogRecord, vr as knowledgeScopeKey, wa as getSqlType, wi as parseKnowledgeWikilinks, wo as serializeSpanAttributes, wr as StoreOperations, xa as ensureDate, xi as assertKnowledgeSchemaCompatible, xo as buildUpdateSpanRecord, xr as knowledgeVisibleScopeKeys, ya as createStoreErrorId, yi as KnowledgeTransactionDeadlineError, yo as buildMetricRecord, yr as knowledgeSemanticDocumentId, za as tracePageResponseSchema, zi as assertKnowledgePageDescriptionWithinBound, zr as InMemoryToolProviderConnectionsStorage } from "../run-registry-
|
|
1
|
+
import { $a as buildSpanQueryResponse, $i as DatasetsStorage, $l as assertWorkflowStepGuard, Aa as storageMessageMatchesMetadataFilter, Ai as MAX_KNOWLEDGE_NOTE_TOKENS, Ao as UniqueViolationError, Ar as MockStore, Ba as THREAD_QUERY_DEFAULT_LIMIT, Bi as canonicalKnowledgeName, Br as ToolProviderConnectionsStorage, Ca as getDefaultValue, Ci as inspectKnowledgeSchema, Co as getStringOrNull, Cr as StoreOperationsInMemory, Da as parseDuration, Di as KnowledgePageHasChildrenError, Do as ObservabilityStorage, Dr as FilesystemStore, Ea as jsonValueEquals, Ei as KnowledgePageDepthError, Eo as ObservabilityInMemory, Er as createGitHubSourceControlProviderFromEnv, Fa as readTracePage, Fi as MAX_KNOWLEDGE_PAGE_LINK_REF_LENGTH, Fr as mergeStepResult, Ga as threadQueryRequestSchema, Gi as knowledgeScopeReadable, Gr as normalizeScheduleTarget, Ha as encodeThreadQueryCursor, Hi as knowledgePagePath, Hr as ScoresStorage, Ia as tracePageIdSchema, Ii as MAX_KNOWLEDGE_PAGE_LIST_LIMIT, Ir as mergeWorkflowStepResult, Ja as SPAN_QUERY_MAX_COST_METRICS, Ji as InMemoryHarness, Jr as dispatchDueNotifications, Ka as threadQueryResponseSchema, Ki as parseKnowledgePageRef, Kr as InMemoryNotificationsStorage, La as tracePageNodeSchema, Li as MAX_KNOWLEDGE_PIN_LIST_DEPTH, Lr as InMemoryWorkflowDefinitionsStorage, Ma as transformScoreRow, Mi as MAX_KNOWLEDGE_PAGE_DEPTH, Mr as cloneRunData, Na as validateStorageMetadataFilter, Ni as MAX_KNOWLEDGE_PAGE_DESCRIPTION_TOKENS, Nr as WorkflowsStorage, Oa as safelyParseJSON, Oi as KnowledgePageKeyConflictError, Oo as FactoryStorage, Or as FilesystemDB, Pa as TracePageError, Pi as MAX_KNOWLEDGE_PAGE_LINKS, Pr as createEmptyWorkflowSnapshot, Qa as SPAN_QUERY_ORDER_FIELDS, Qi as DatasetsInMemory, Ql as WorkflowStepConflictError, Ra as tracePageRequestSchema, Ri as assertKnowledgeNoteTextWithinBound, Rr as WorkflowDefinitionsStorage, Sa as filterByDateRange, Si as createKnowledgeUlid, So as getObjectOrNull, Sr as parseKnowledgeNodeCursor, Ta as hasErrorCode, Ti as KnowledgeMoveTooLargeError, To as toEntityType, Tr as GitHubSourceControlProvider, Ua as planThreadRowsQuery, Ui as knowledgePinDepth, Ur as InMemorySchedulesStorage, Va as THREAD_QUERY_MAX_LIMIT, Vi as knowledgeLinkRefKey, Vr as ScoresInMemory, Wa as threadQueryIdentitySchema, Wi as knowledgePositionBetween, Wr as SchedulesStorage, Xa as SPAN_QUERY_MAX_LIMIT, Xi as ExperimentsInMemory, Ya as SPAN_QUERY_MAX_CURSOR_BYTES, Yi as HarnessStorage, Za as SPAN_QUERY_MAX_PREVIEW_CHARACTERS, Zi as ExperimentsStorage, _a as runRetentionBatches, _i as KnowledgeSchemaResetRequiredError, _o as buildFeedbackRecord, _r as isKnowledgeScopeVisible, ao as spanQueryCostSchema, au as currentRunGeneration, ba as createVectorErrorId, bi as KnowledgeUnsupportedCapabilityError, bo as buildScoreRecord, br as knowledgeSemanticIdempotencyKey, ca as InMemoryChannelsStorage, ci as MemoryStorage, co as spanQueryRequestSchema, cr as MAX_KNOWLEDGE_RECORD_TEXT_LENGTH, cu as resolveRunFence, da as BlobStore, di as KnowledgeImporterRunStateError, do as encodeTraceQueryCursor, dr as assertKnowledgeDescriptionWithinBound, du as setRunFenceContext, ea as DatasetItemIdentityConflictError, eo as createSpanQueryPreview, eu as isWorkflowStepConflictError, fa as BackgroundTasksInMemory, fi as KnowledgeImportersStorage, fo as encodeTraceQueryDeltaCursor, fr as assertKnowledgeRecordTextWithinBound, ga as retentionCutoffMs, gi as KnowledgeNotFoundError, go as buildCreateSpanRecord, gr as expandKnowledgeScope, ha as resolveRetentionTargets, hi as KnowledgeConflictError, ho as planTraceQuery, hr as createKnowledgeNodeCursor, io as resolveSpanQueryCost, iu as coverNestedRun, ja as transformRow, ji as MAX_KNOWLEDGE_PAGE_BODY_LINKS, jr as WorkflowsInMemory, ka as serializeDate, ki as MAX_KNOWLEDGE_MOVE_PAGES, ko as FactoryStorageDomain, kr as InMemoryStore, la as ChannelsStorage, li as InMemoryKnowledgeStorage, lo as spanQueryResponseSchema, lr as MAX_KNOWLEDGE_SCOPE_TAGS, lu as runFencingNotSupportedError, ma as executeRetentionPrune, mi as KNOWLEDGE_STORAGE_SCHEMA_VERSION, mo as planThreadQuery, mr as canonicalizeKnowledgeScope, no as parseSpanQueryRequest, nu as RUN_FENCING_NOT_SUPPORTED_ERROR_ID, oo as spanQueryIdentityKey, ou as isRunFenceConflictError, pa as BackgroundTasksStorage, pi as KNOWLEDGE_STORAGE_CONTRACT_VERSION, po as getTraceQueryDeltaWatermark, pr as assertKnowledgeScopeWithinCeiling, qa as threadQueryRowSchema, qi as KnowledgeInvalidCursorError, qr as NotificationsStorage, ro as planSpanQuery, ru as RunFenceConflictError, si as InMemoryMemory, so as spanQueryIdentitySchema, sr as MAX_KNOWLEDGE_NODE_DESCRIPTION_LENGTH, su as matchesRunFence, to as encodeSpanQueryCursor, tu as RUN_FENCE_CONFLICT_ERROR_ID, ua as InMemoryBlobStore, ui as KnowledgeImporterBindingConflictError, uo as spanQueryRowSchema, ur as assertKnowledgeCeilingRaised, uu as runOutsideRunFenceScope, va as createStorageErrorId, vi as KnowledgeStorage, vo as buildLogRecord, vr as knowledgeScopeKey, wa as getSqlType, wi as parseKnowledgeWikilinks, wo as serializeSpanAttributes, wr as StoreOperations, xa as ensureDate, xi as assertKnowledgeSchemaCompatible, xo as buildUpdateSpanRecord, xr as knowledgeVisibleScopeKeys, ya as createStoreErrorId, yi as KnowledgeTransactionDeadlineError, yo as buildMetricRecord, yr as knowledgeSemanticDocumentId, za as tracePageResponseSchema, zi as assertKnowledgePageDescriptionWithinBound, zr as InMemoryToolProviderConnectionsStorage } from "../run-registry-Bj_lW9M3.js";
|
|
2
2
|
import { a as PREVIEW_MAX_LENGTH } from "../observability-D7RNOAPx.js";
|
|
3
|
-
import { At as STATE_CHECKPOINT_PATCHES, Bt as summarizeStepResult, Ft as materializeState, Ht as applyStatePatch, It as materializeWorkflowRun, Lt as pickStateKeys, Mt as applyStateColumnsWrite, Nt as isStateCheckpointDue, Pt as latestStepResults, Rt as stateBaseOf, Ut as diffState, Vt as unusedStateEntries, jt as STEP_RESULT_SUMMARY_FIELDS, kt as getSnapshotMemoryInfo, zt as stateColumnsWrite } from "../stream-
|
|
3
|
+
import { At as STATE_CHECKPOINT_PATCHES, Bt as summarizeStepResult, Ft as materializeState, Ht as applyStatePatch, It as materializeWorkflowRun, Lt as pickStateKeys, Mt as applyStateColumnsWrite, Nt as isStateCheckpointDue, Pt as latestStepResults, Rt as stateBaseOf, Ut as diffState, Vt as unusedStateEntries, jt as STEP_RESULT_SUMMARY_FIELDS, kt as getSnapshotMemoryInfo, zt as stateColumnsWrite } from "../stream-DaIpS6ky.js";
|
|
4
4
|
import { $ as getFeedbackAggregateArgsSchema, $t as metricsFilterSchema, A as deleteScoresResponseSchema, An as tagsField, At as getServiceNamesResponseSchema, B as experimentIdField, Bt as listScoresArgsSchema, C as dateRangeSchema, Cn as scoresOrderBySchema, Ct as getScoreBreakdownArgsSchema, D as deleteFeedbackArgsSchema, Dn as sourceField, Dt as getScoreTimeSeriesArgsSchema, E as defaultPaginationArgs, En as sortDirectionSchema, Et as getScorePercentilesResponseSchema, F as entityIdField, Fn as userIdField, Ft as listLogsArgsSchema, G as feedbackRecordSchema, Gt as logsFilterSchema, H as feedbackInputSchema, Ht as logLevelSchema, I as entityNameField, It as listLogsResponseSchema, J as getEntityNamesResponseSchema, Jt as metadataField, K as feedbackReviewStatusSchema, Kt as logsOrderByFieldSchema, L as entityTypeField, Lt as listMetricsArgsSchema, M as deltaInfoSchema, Mn as traceIdField, Mt as getTagsResponseSchema, N as deltaLimitSchema, Nn as updateFeedbackReviewStatusArgsSchema, Nt as listFeedbackArgsSchema, O as deleteFeedbackResponseSchema, On as spanContextFields, Ot as getScoreTimeSeriesResponseSchema, P as distinctColumnSchema, Pn as updatedAtField, Pt as listFeedbackResponseSchema, Q as getEnvironmentsResponseSchema, Qt as metricsAggregationSchema, R as environmentField, Rt as listMetricsResponseSchema, S as createdAtField, Sn as scoresOrderByFieldSchema, St as getScoreAggregateResponseSchema, T as defaultDeltaLimit, Tn as sessionIdField, Tt as getScorePercentilesArgsSchema, U as feedbackOrderByFieldSchema, Ut as logRecordInputSchema, V as feedbackFilterSchema, Vt as listScoresResponseSchema, W as feedbackOrderBySchema, Wt as logRecordSchema, X as getEntityTypesResponseSchema, Xt as metricRecordSchema, Y as getEntityTypesArgsSchema, Yt as metricInputSchema, Z as getEnvironmentsArgsSchema, Zt as metricTypeSchema, _ as createMetricRecordSchema, _n as runIdField, _t as getMetricPercentilesArgsSchema, a as batchCreateFeedbackArgsSchema, an as paginationInfoSchema, at as getFeedbackTimeSeriesArgsSchema, b as createScoreRecordSchema, bn as scoreRecordSchema, bt as getMetricTimeSeriesResponseSchema, c as batchCreateScoresArgsSchema, cn as parentEntityTypeField, ct as getMetricAggregateResponseSchema, d as contextFields, dn as requestIdField, dt as getMetricLabelKeysArgsSchema, en as metricsOrderByFieldSchema, et as getFeedbackAggregateResponseSchema, f as createFeedbackArgsSchema, ft as getMetricLabelKeysResponseSchema, g as createLogRecordSchema, gn as rootEntityTypeField, gt as getMetricNamesResponseSchema, h as createFeedbackResponseSchema, hn as rootEntityNameField, ht as getMetricNamesArgsSchema, i as aggregationTypeSchema, in as paginationArgsSchema, it as getFeedbackPercentilesResponseSchema, j as deltaCursorSchema, jn as threadIdField, jt as getTagsArgsSchema, k as deleteScoresArgsSchema, kn as spanIdField, kt as getServiceNamesArgsSchema, l as commonFilterFields, ln as refineObservabilityListMode, lt as getMetricBreakdownArgsSchema, m as createFeedbackRecordSchema, mn as rootEntityIdField, mt as getMetricLabelValuesResponseSchema, n as METRIC_DISTINCT_COLUMNS, nn as normalizeObservabilityListArgs, nt as getFeedbackBreakdownResponseSchema, o as batchCreateLogsArgsSchema, on as parentEntityIdField, ot as getFeedbackTimeSeriesResponseSchema, p as createFeedbackBodySchema, pn as resourceIdField, pt as getMetricLabelValuesArgsSchema, q as getEntityNamesArgsSchema, qt as logsOrderBySchema, r as aggregationIntervalSchema, rn as organizationIdField, rt as getFeedbackPercentilesArgsSchema, s as batchCreateMetricsArgsSchema, sn as parentEntityNameField, st as getMetricAggregateArgsSchema, t as EntityType, tn as metricsOrderBySchema, tt as getFeedbackBreakdownArgsSchema, u as comparePeriodSchema, un as replaceFeedbackBodySchema, ut as getMetricBreakdownResponseSchema, v as createScoreArgsSchema, vn as scopeField, vt as getMetricPercentilesResponseSchema, w as dbTimestamps, wn as serviceNameField, wt as getScoreBreakdownResponseSchema, x as createScoreResponseSchema, xn as scoresFilterSchema, xt as getScoreAggregateArgsSchema, y as createScoreBodySchema, yn as scoreInputSchema, yt as getMetricTimeSeriesArgsSchema, z as executionSourceField, zt as listModeSchema } from "../storage-Cc50aQAp.js";
|
|
5
5
|
import { $ as TABLE_CHANNEL_INSTALLATIONS, $n as listTracesLightResponseSchema, $t as TABLE_WORKSPACES, A as MCP_CLIENTS_SCHEMA, An as computeTraceStatus, At as TABLE_OBSERVATIONAL_MEMORY, B as PROMPT_BLOCK_VERSIONS_SCHEMA, Bn as getSpansArgsSchema, Bt as TABLE_SKILLS, C as KNOWLEDGE_SCOPE_GRANTS_SCHEMA, Cn as branchesFilterSchema, Ct as TABLE_MCP_CLIENTS, D as KNOWLEDGE_V2_MENTIONS_SCHEMA, Dn as buildPreview, Dt as TABLE_MEMORY_RUN_FENCES, E as KNOWLEDGE_V2_ACTIVITY_SCHEMA, En as buildInputPreview, Et as TABLE_MCP_SERVER_VERSIONS, F as NOTIFICATIONS_SCHEMA, Fn as getBranchResponseSchema, Ft as TABLE_SCHEDULE_TRIGGERS, G as SKILLS_SCHEMA, Gn as getTraceLightResponseSchema, Gt as TABLE_THREAD_STATE, H as SCORERS_SCHEMA, Hn as getStringAttribute, Ht as TABLE_SKILL_VERSIONS, I as OBSERVATIONAL_MEMORY_SCHEMA, In as getRootSpanArgsSchema, It as TABLE_SCHEMAS, J as SPAN_SCHEMA, Jn as lightSpanRecordSchema, Jt as TABLE_WORKFLOW_DEFINITIONS, K as SKILL_BLOBS_SCHEMA, Kn as getTraceResponseSchema, Kt as TABLE_TOOL_PROVIDER_CONNECTIONS, L as OBSERVATIONAL_MEMORY_TABLE_SCHEMA, Ln as getRootSpanResponseSchema, Lt as TABLE_SCORERS, M as MCP_SERVERS_SCHEMA, Mn as createSpanRecordSchema, Mt as TABLE_PROMPT_BLOCK_VERSIONS, N as MCP_SERVER_VERSIONS_SCHEMA, Nn as extractBranchSpans, Nt as TABLE_RESOURCES, O as KNOWLEDGE_V2_NODES_SCHEMA, On as buildPreviewFromJson, Ot as TABLE_MESSAGES, P as MEMORY_RUN_FENCES_SCHEMA, Pn as getBranchArgsSchema, Pt as TABLE_SCHEDULES, Q as TABLE_CHANNEL_CONFIG, Qn as listTracesArgsSchema, Qt as TABLE_WORKFLOW_SNAPSHOT, R as OLD_SPAN_SCHEMA, Rn as getSpanArgsSchema, Rt as TABLE_SCORER_DEFINITIONS, S as KNOWLEDGE_SCOPE_ADDRESSES_SCHEMA, Sn as batchUpdateSpansArgsSchema, St as TABLE_KNOWLEDGE_SEMANTIC_OUTBOX, T as KNOWLEDGE_TABLE_NAMES, Tn as branchesOrderBySchema, Tt as TABLE_MCP_SERVERS, U as SCORER_DEFINITIONS_SCHEMA, Un as getStructureResponseSchema, Ut as TABLE_SPANS, V as RUN_FENCING_TABLE_SCHEMAS, Vn as getSpansResponseSchema, Vt as TABLE_SKILL_BLOBS, W as SCORER_DEFINITION_VERSIONS_SCHEMA, Wn as getTraceArgsSchema, Wt as TABLE_THREADS, X as TABLE_AGENT_VERSIONS, Xn as listBranchesResponseSchema, Xt as TABLE_WORKFLOW_RUN_ENTRIES, Y as TABLE_AGENTS, Yn as listBranchesArgsSchema, Yt as TABLE_WORKFLOW_RUNS, Z as TABLE_BACKGROUND_TASKS, Zn as listScoresBySpanResponseSchema, Zt as TABLE_WORKFLOW_RUN_OWNERS, _ as KNOWLEDGE_NODE_ADDRESSES_SCHEMA, _n as INPUT_PREVIEW_MAX_LENGTH, _r as isAppendOnlySince, _t as TABLE_KNOWLEDGE_PROPOSALS, a as DATASET_VERSIONS_SCHEMA, an as WORKFLOW_RUN_ENTRIES_SCHEMA, ar as spanRecordSchema, at as TABLE_EXPERIMENT_RESULTS, b as KNOWLEDGE_RECORDS_SCHEMA, bn as batchDeleteTracesArgsSchema, br as maxObservationCursor, bt as TABLE_KNOWLEDGE_SCOPE_ADDRESSES, c as FAVORITES_SCHEMA, cn as WORKSPACES_SCHEMA, cr as toTraceSpans, ct as TABLE_KNOWLEDGE_ACCESS_STATE, d as KNOWLEDGE_ACTIVITY_SCHEMA, dn as STORAGE_VISIBILITY_VALUES, dr as tracesOrderByFieldSchema, dt as TABLE_KNOWLEDGE_IMPORT_RUNS, en as TABLE_WORKSPACE_VERSIONS, er as listTracesResponseSchema, et as TABLE_CONFIGS, f as KNOWLEDGE_CURSORS_SCHEMA, fn as buildStorageSchema, fr as tracesOrderBySchema, ft as TABLE_KNOWLEDGE_IMPORT_STATE, g as KNOWLEDGE_NODES_SCHEMA, gn as BRANCH_SPAN_TYPE_SET, gr as compareObservationalMemoryHeadOrder, gt as TABLE_KNOWLEDGE_NODE_SCOPES, h as KNOWLEDGE_MENTIONS_SCHEMA, hn as BRANCH_SPAN_TYPES, hr as assertActiveObservationsApplied, ht as TABLE_KNOWLEDGE_NODE_ADDRESSES, i as DATASET_ITEMS_SCHEMA, in as WORKFLOW_RUNS_SCHEMA, ir as spanIdsSchema, it as TABLE_EXPERIMENTS, j as MCP_CLIENT_VERSIONS_SCHEMA, jn as createSpanArgsSchema, jt as TABLE_PROMPT_BLOCKS, k as KNOWLEDGE_V2_RECORDS_SCHEMA, kn as buildStoredPreview, kt as TABLE_NOTIFICATIONS, l as HARNESS_SESSIONS_SCHEMA, ln as WORKSPACE_VERSIONS_SCHEMA, lr as traceSpanSchema, lt as TABLE_KNOWLEDGE_ACTIVITY, m as KNOWLEDGE_IMPORT_STATE_SCHEMA, mn as BATCH_DELETE_TRACES_MAX_IDS, mr as updateSpanRecordSchema, mt as TABLE_KNOWLEDGE_NODES, n as AGENT_VERSIONS_SCHEMA, nn as TOOL_PROVIDER_CONNECTIONS_SCHEMA, nr as scoreTracesResponseSchema, nt as TABLE_DATASET_ITEMS, o as EXPERIMENTS_SCHEMA, on as WORKFLOW_RUN_JOURNAL_TABLE_CONFIGS, or as toLightSpanRecord, ot as TABLE_FAVORITES, p as KNOWLEDGE_IMPORT_RUNS_SCHEMA, pn as matchesExpectedWorkflowStatus, pr as updateSpanArgsSchema, pt as TABLE_KNOWLEDGE_MENTIONS, q as SKILL_VERSIONS_SCHEMA, qn as isPreviewTruncated, qt as TABLE_TRACES, r as DATASETS_SCHEMA, rn as WORKFLOW_DEFINITIONS_SCHEMA, rr as spanIds, rt as TABLE_DATASET_VERSIONS, s as EXPERIMENT_RESULTS_SCHEMA, sn as WORKFLOW_RUN_OWNERS_SCHEMA, sr as toTraceSpan, st as TABLE_HARNESS_SESSIONS, t as AGENTS_SCHEMA, tn as THREAD_STATE_SCHEMA, tr as scoreTracesRequestSchema, tt as TABLE_DATASETS, u as KNOWLEDGE_ACCESS_STATE_SCHEMA, un as STORAGE_FAVORITE_ENTITY_TYPES, ur as tracesFilterSchema, ut as TABLE_KNOWLEDGE_CURSORS, v as KNOWLEDGE_NODE_SCOPES_SCHEMA, vn as TraceStatus, vr as isBufferedChunkCoveredByCursor, vt as TABLE_KNOWLEDGE_RECORDS, w as KNOWLEDGE_SEMANTIC_OUTBOX_SCHEMA, wn as branchesOrderByFieldSchema, wt as TABLE_MCP_CLIENT_VERSIONS, x as KNOWLEDGE_RECORD_SCOPES_SCHEMA, xn as batchDeleteTracesResponseSchema, xr as planReflectionGenerationText, xt as TABLE_KNOWLEDGE_SCOPE_GRANTS, y as KNOWLEDGE_PROPOSALS_SCHEMA, yn as batchCreateSpansArgsSchema, yr as isBufferedReflectionUnchangedSince, yt as TABLE_KNOWLEDGE_RECORD_SCOPES, z as PROMPT_BLOCKS_SCHEMA, zn as getSpanResponseSchema, zt as TABLE_SCORER_DEFINITION_VERSIONS } from "../constants-CFWgIaqA.js";
|
|
6
6
|
import { _ as ThreadStateStorage, a as GitHistory, c as DOMAIN_KEYS, d as MastraStorage, f as calculatePagination, g as InMemoryThreadStateStorage, h as resolveListOrderBy, i as getSourceControlEntityFilePath, l as EDITOR_DOMAINS, m as normalizePerPage, n as SOURCE_CONTROL_AGENTS_DIR, o as VersionedStorageDomain, p as compareByField, r as getSourceAgentFilePath, s as StorageDomain, t as FilesystemVersionedHelpers, u as MastraCompositeStore } from "../filesystem-versioned-BL1ojJLo.js";
|
package/dist/stream/index.cjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
-
const require_stream = require("../stream-
|
|
3
|
-
const require_llm = require("../llm-
|
|
2
|
+
const require_stream = require("../stream-CWE0h7Yc.cjs");
|
|
3
|
+
const require_llm = require("../llm-BiSuGioB.cjs");
|
|
4
4
|
const require_file = require("../file-BEndQUN1.cjs");
|
|
5
5
|
exports.ChunkFrom = require_llm.ChunkFrom;
|
|
6
6
|
exports.DefaultGeneratedFile = require_file.DefaultGeneratedFile;
|
package/dist/stream/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { En as convertFullStreamChunkToUIMessageStream, a as convertFullStreamChunkToMastra, c as WorkflowRunOutput, d as MastraModelOutput, i as withStreamCaching, n as createCachingTransformStream, o as convertMastraChunkToAISDKv5, r as createReplayStream, s as MastraAgentNetworkStream, t as smoothStream } from "../stream-
|
|
2
|
-
import { u as ChunkFrom } from "../llm-
|
|
1
|
+
import { En as convertFullStreamChunkToUIMessageStream, a as convertFullStreamChunkToMastra, c as WorkflowRunOutput, d as MastraModelOutput, i as withStreamCaching, n as createCachingTransformStream, o as convertMastraChunkToAISDKv5, r as createReplayStream, s as MastraAgentNetworkStream, t as smoothStream } from "../stream-DaIpS6ky.js";
|
|
2
|
+
import { u as ChunkFrom } from "../llm-Du8yTHDN.js";
|
|
3
3
|
import { n as DefaultGeneratedFileWithType, t as DefaultGeneratedFile } from "../file-DGZrR5f7.js";
|
|
4
4
|
export { ChunkFrom, DefaultGeneratedFile, DefaultGeneratedFileWithType, MastraAgentNetworkStream, MastraModelOutput, WorkflowRunOutput, convertFullStreamChunkToMastra, convertFullStreamChunkToUIMessageStream, convertMastraChunkToAISDKv5, createCachingTransformStream, createReplayStream, smoothStream, withStreamCaching };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
const require_rolldown_runtime = require("./rolldown-runtime-BrhgMLW6.cjs");
|
|
2
|
-
const require_llm = require("./llm-
|
|
2
|
+
const require_llm = require("./llm-BiSuGioB.cjs");
|
|
3
3
|
const require_message_list = require("./message-list-vR3uLAHL.cjs");
|
|
4
4
|
const require_observability = require("./observability-B0R_D1PZ.cjs");
|
|
5
5
|
const require_base = require("./base-BIzR1D3_.cjs");
|
|
@@ -4102,6 +4102,8 @@ function getProcessableResponseMessages(messageList) {
|
|
|
4102
4102
|
*/
|
|
4103
4103
|
var ProcessorState = class {
|
|
4104
4104
|
inputAccumulatedText = "";
|
|
4105
|
+
/** Stream parts that arrived before the current span opened. */
|
|
4106
|
+
inputChunkOffset = 0;
|
|
4105
4107
|
outputAccumulatedText = "";
|
|
4106
4108
|
outputChunkCount = 0;
|
|
4107
4109
|
customState = {};
|
|
@@ -4114,8 +4116,27 @@ var ProcessorState = class {
|
|
|
4114
4116
|
* share of that window.
|
|
4115
4117
|
*/
|
|
4116
4118
|
hookDurationMs = 0;
|
|
4119
|
+
/** Set when the run's `finish` chunk ended the span, so no later chunk opens another. */
|
|
4120
|
+
finished = false;
|
|
4117
4121
|
constructor(options) {
|
|
4118
|
-
|
|
4122
|
+
this.startSpan(options);
|
|
4123
|
+
}
|
|
4124
|
+
/**
|
|
4125
|
+
* Opens the output stream span. A state can be created before there is a
|
|
4126
|
+
* span to parent it (a data chunk sent before the first model step), so the
|
|
4127
|
+
* runner calls this again once the stream has one. The state lives for the
|
|
4128
|
+
* whole run, but each model step's stream ends the span when it closes, so
|
|
4129
|
+
* the runner also opens a new one when a later step's chunks arrive.
|
|
4130
|
+
*/
|
|
4131
|
+
startSpan(options) {
|
|
4132
|
+
if (this.span && !this.span.endTime || this.finished || !options?.createSpan || !options.processorName) return;
|
|
4133
|
+
if (this.span) {
|
|
4134
|
+
this.inputChunkOffset = this.streamParts.length;
|
|
4135
|
+
this.inputAccumulatedText = "";
|
|
4136
|
+
this.outputChunkCount = 0;
|
|
4137
|
+
this.outputAccumulatedText = "";
|
|
4138
|
+
this.hookDurationMs = 0;
|
|
4139
|
+
}
|
|
4119
4140
|
const processor = options.processor;
|
|
4120
4141
|
const currentSpan = options.tracingContext?.currentSpan;
|
|
4121
4142
|
const parentSpan = currentSpan?.findParent("agent_run") || currentSpan?.parent || currentSpan;
|
|
@@ -4138,7 +4159,7 @@ var ProcessorState = class {
|
|
|
4138
4159
|
if (part.type === "text-delta") this.inputAccumulatedText += part.payload.text;
|
|
4139
4160
|
this.streamParts.push(part);
|
|
4140
4161
|
if (this.span) this.span.input = {
|
|
4141
|
-
totalChunks: this.streamParts.length,
|
|
4162
|
+
totalChunks: this.streamParts.length - this.inputChunkOffset,
|
|
4142
4163
|
accumulatedText: this.inputAccumulatedText
|
|
4143
4164
|
};
|
|
4144
4165
|
}
|
|
@@ -4675,15 +4696,16 @@ var ProcessorRunner = class ProcessorRunner {
|
|
|
4675
4696
|
if (processor.processOutputStream && processedPart) {
|
|
4676
4697
|
let state = processorStates.get(processor.id);
|
|
4677
4698
|
if (!state) {
|
|
4678
|
-
state = new ProcessorState(
|
|
4679
|
-
processorName: processor.name ?? processor.id,
|
|
4680
|
-
...observabilityContext,
|
|
4681
|
-
processorIndex: index,
|
|
4682
|
-
createSpan: true,
|
|
4683
|
-
processor
|
|
4684
|
-
});
|
|
4699
|
+
state = new ProcessorState();
|
|
4685
4700
|
processorStates.set(processor.id, state);
|
|
4686
4701
|
}
|
|
4702
|
+
if ((!state.span || state.span.endTime) && observabilityContext?.tracingContext?.currentSpan) state.startSpan({
|
|
4703
|
+
processorName: processor.name ?? processor.id,
|
|
4704
|
+
...observabilityContext,
|
|
4705
|
+
processorIndex: index,
|
|
4706
|
+
createSpan: true,
|
|
4707
|
+
processor
|
|
4708
|
+
});
|
|
4687
4709
|
state.addInputPart(processedPart);
|
|
4688
4710
|
const hookStart = performance.now();
|
|
4689
4711
|
let result;
|
|
@@ -4736,8 +4758,9 @@ var ProcessorRunner = class ProcessorRunner {
|
|
|
4736
4758
|
throw error;
|
|
4737
4759
|
}
|
|
4738
4760
|
}
|
|
4739
|
-
if (isFinishChunk) {
|
|
4740
|
-
|
|
4761
|
+
if (isFinishChunk) for (const state of processorStates.values()) {
|
|
4762
|
+
state.finished = true;
|
|
4763
|
+
if (state.span) state.span.end({
|
|
4741
4764
|
output: state.getFinalOutput(),
|
|
4742
4765
|
attributes: state.getFinalAttributes()
|
|
4743
4766
|
});
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { n as __exportAll } from "./rolldown-runtime-tIEjjQTE.js";
|
|
2
|
-
import { d as attachModelStreamTransport, f as isDataChunk, i as resolveModelConfig, p as readModelStreamTransport } from "./llm-
|
|
2
|
+
import { d as attachModelStreamTransport, f as isDataChunk, i as resolveModelConfig, p as readModelStreamTransport } from "./llm-Du8yTHDN.js";
|
|
3
3
|
import { B as getResponseProviderItemIdFromPart, G as RESPONSE_ITEM_ID_PROVIDERS, K as RESPONSE_RESULT_ITEM_ID_KEY, f as coreContentToString, n as MessageList, p as messagesAreEqual, t as convertMessages } from "./message-list-BGm1DCiG.js";
|
|
4
4
|
import { S as resolveObservabilityContext, x as createObservabilityContext } from "./observability-D7RNOAPx.js";
|
|
5
5
|
import { t as MastraBase } from "./base-CKLWBhDo.js";
|
|
@@ -4101,6 +4101,8 @@ function getProcessableResponseMessages(messageList) {
|
|
|
4101
4101
|
*/
|
|
4102
4102
|
var ProcessorState = class {
|
|
4103
4103
|
inputAccumulatedText = "";
|
|
4104
|
+
/** Stream parts that arrived before the current span opened. */
|
|
4105
|
+
inputChunkOffset = 0;
|
|
4104
4106
|
outputAccumulatedText = "";
|
|
4105
4107
|
outputChunkCount = 0;
|
|
4106
4108
|
customState = {};
|
|
@@ -4113,8 +4115,27 @@ var ProcessorState = class {
|
|
|
4113
4115
|
* share of that window.
|
|
4114
4116
|
*/
|
|
4115
4117
|
hookDurationMs = 0;
|
|
4118
|
+
/** Set when the run's `finish` chunk ended the span, so no later chunk opens another. */
|
|
4119
|
+
finished = false;
|
|
4116
4120
|
constructor(options) {
|
|
4117
|
-
|
|
4121
|
+
this.startSpan(options);
|
|
4122
|
+
}
|
|
4123
|
+
/**
|
|
4124
|
+
* Opens the output stream span. A state can be created before there is a
|
|
4125
|
+
* span to parent it (a data chunk sent before the first model step), so the
|
|
4126
|
+
* runner calls this again once the stream has one. The state lives for the
|
|
4127
|
+
* whole run, but each model step's stream ends the span when it closes, so
|
|
4128
|
+
* the runner also opens a new one when a later step's chunks arrive.
|
|
4129
|
+
*/
|
|
4130
|
+
startSpan(options) {
|
|
4131
|
+
if (this.span && !this.span.endTime || this.finished || !options?.createSpan || !options.processorName) return;
|
|
4132
|
+
if (this.span) {
|
|
4133
|
+
this.inputChunkOffset = this.streamParts.length;
|
|
4134
|
+
this.inputAccumulatedText = "";
|
|
4135
|
+
this.outputChunkCount = 0;
|
|
4136
|
+
this.outputAccumulatedText = "";
|
|
4137
|
+
this.hookDurationMs = 0;
|
|
4138
|
+
}
|
|
4118
4139
|
const processor = options.processor;
|
|
4119
4140
|
const currentSpan = options.tracingContext?.currentSpan;
|
|
4120
4141
|
const parentSpan = currentSpan?.findParent("agent_run") || currentSpan?.parent || currentSpan;
|
|
@@ -4137,7 +4158,7 @@ var ProcessorState = class {
|
|
|
4137
4158
|
if (part.type === "text-delta") this.inputAccumulatedText += part.payload.text;
|
|
4138
4159
|
this.streamParts.push(part);
|
|
4139
4160
|
if (this.span) this.span.input = {
|
|
4140
|
-
totalChunks: this.streamParts.length,
|
|
4161
|
+
totalChunks: this.streamParts.length - this.inputChunkOffset,
|
|
4141
4162
|
accumulatedText: this.inputAccumulatedText
|
|
4142
4163
|
};
|
|
4143
4164
|
}
|
|
@@ -4674,15 +4695,16 @@ var ProcessorRunner = class ProcessorRunner {
|
|
|
4674
4695
|
if (processor.processOutputStream && processedPart) {
|
|
4675
4696
|
let state = processorStates.get(processor.id);
|
|
4676
4697
|
if (!state) {
|
|
4677
|
-
state = new ProcessorState(
|
|
4678
|
-
processorName: processor.name ?? processor.id,
|
|
4679
|
-
...observabilityContext,
|
|
4680
|
-
processorIndex: index,
|
|
4681
|
-
createSpan: true,
|
|
4682
|
-
processor
|
|
4683
|
-
});
|
|
4698
|
+
state = new ProcessorState();
|
|
4684
4699
|
processorStates.set(processor.id, state);
|
|
4685
4700
|
}
|
|
4701
|
+
if ((!state.span || state.span.endTime) && observabilityContext?.tracingContext?.currentSpan) state.startSpan({
|
|
4702
|
+
processorName: processor.name ?? processor.id,
|
|
4703
|
+
...observabilityContext,
|
|
4704
|
+
processorIndex: index,
|
|
4705
|
+
createSpan: true,
|
|
4706
|
+
processor
|
|
4707
|
+
});
|
|
4686
4708
|
state.addInputPart(processedPart);
|
|
4687
4709
|
const hookStart = performance.now();
|
|
4688
4710
|
let result;
|
|
@@ -4735,8 +4757,9 @@ var ProcessorRunner = class ProcessorRunner {
|
|
|
4735
4757
|
throw error;
|
|
4736
4758
|
}
|
|
4737
4759
|
}
|
|
4738
|
-
if (isFinishChunk) {
|
|
4739
|
-
|
|
4760
|
+
if (isFinishChunk) for (const state of processorStates.values()) {
|
|
4761
|
+
state.finished = true;
|
|
4762
|
+
if (state.span) state.span.end({
|
|
4740
4763
|
output: state.getFinalOutput(),
|
|
4741
4764
|
attributes: state.getFinalAttributes()
|
|
4742
4765
|
});
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
2
|
const require_rolldown_runtime = require("../rolldown-runtime-BrhgMLW6.cjs");
|
|
3
3
|
const require_dist = require("../dist-CXeCeeW7.cjs");
|
|
4
|
-
const require_model = require("../model-
|
|
4
|
+
const require_model = require("../model-CI05YYPx.cjs");
|
|
5
5
|
const require_model$1 = require("../model-jBymoqGa.cjs");
|
|
6
6
|
let stream = require("stream");
|
|
7
7
|
let module$1 = require("module");
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { o as simulateReadableStream } from "../dist-D3cKCUe-.js";
|
|
2
|
-
import { t as MastraLLMV1 } from "../model-
|
|
2
|
+
import { t as MastraLLMV1 } from "../model-Bvfq1yB9.js";
|
|
3
3
|
import { t as AISDKV5LanguageModel } from "../model-DS-b2R-R.js";
|
|
4
4
|
import { createRequire } from "module";
|
|
5
5
|
import { Readable } from "stream";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
-
const require_tool_loop_agent = require("../tool-loop-agent-
|
|
2
|
+
const require_tool_loop_agent = require("../tool-loop-agent-BGBhn5xS.cjs");
|
|
3
3
|
exports.getSettings = require_tool_loop_agent.getSettings;
|
|
4
4
|
exports.isToolLoopAgentLike = require_tool_loop_agent.isToolLoopAgentLike;
|
|
5
5
|
exports.toolLoopAgentToMastraAgent = require_tool_loop_agent.toolLoopAgentToMastraAgent;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { n as getSettings, r as isToolLoopAgentLike, t as toolLoopAgentToMastraAgent } from "../tool-loop-agent-
|
|
1
|
+
export { n as getSettings, r as isToolLoopAgentLike, t as toolLoopAgentToMastraAgent } from "../tool-loop-agent-B12lpXBl.js";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { m as generateId } from "./dist-TPVqg8oV.js";
|
|
2
|
-
import { P as Agent } from "./run-registry-
|
|
3
|
-
import { ln as isSupportedLanguageModel } from "./stream-
|
|
4
|
-
import { i as resolveModelConfig } from "./llm-
|
|
2
|
+
import { P as Agent } from "./run-registry-Bj_lW9M3.js";
|
|
3
|
+
import { ln as isSupportedLanguageModel } from "./stream-DaIpS6ky.js";
|
|
4
|
+
import { i as resolveModelConfig } from "./llm-Du8yTHDN.js";
|
|
5
5
|
import { N as ToolLoopAgent } from "./message-list-BGm1DCiG.js";
|
|
6
6
|
// src/tool-loop-agent/utils.ts
|
|
7
7
|
function isToolLoopAgentLike(obj) {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
const require_dist = require("./dist-P2rjrlmj.cjs");
|
|
2
|
-
const require_run_registry = require("./run-registry-
|
|
3
|
-
const require_stream = require("./stream-
|
|
4
|
-
const require_llm = require("./llm-
|
|
2
|
+
const require_run_registry = require("./run-registry-BJa47sa2.cjs");
|
|
3
|
+
const require_stream = require("./stream-CWE0h7Yc.cjs");
|
|
4
|
+
const require_llm = require("./llm-BiSuGioB.cjs");
|
|
5
5
|
const require_message_list = require("./message-list-vR3uLAHL.cjs");
|
|
6
6
|
// src/tool-loop-agent/utils.ts
|
|
7
7
|
function isToolLoopAgentLike(obj) {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
const require_error = require("./error-D90lJ6M7.cjs");
|
|
2
2
|
const require_tool = require("./tool-CYlT2UA-.cjs");
|
|
3
3
|
const require_ee_iTj2bRDt = require("./ee-iTj2bRDt-D3-QLGDF.cjs");
|
|
4
|
-
const require_background_tasks = require("./background-tasks-
|
|
4
|
+
const require_background_tasks = require("./background-tasks-C-3AqSKL.cjs");
|
|
5
5
|
const require_base = require("./base-BIzR1D3_.cjs");
|
|
6
6
|
const require_observability = require("./observability-B0R_D1PZ.cjs");
|
|
7
7
|
const require_utils = require("./utils-D-eNsgDM.cjs");
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { i as MastraError, n as ErrorDomain, o as getErrorFromUnknown, t as ErrorCategory } from "./error-oh2DLsP2.js";
|
|
2
2
|
import { c as registerToolOutputValidationSchema, d as validateToolOutput, f as validateToolSuspendData, h as markBuilderValidatedInput, i as createStandardSchemaIssuesError, n as Tool, o as getValidationIssuePaths, p as createToolObserve, s as isValidationError, u as validateToolInput } from "./tool-Z3bykc1m.js";
|
|
3
3
|
import { i as MastraFGAPermissions } from "./ee-iTj2bRDt-By_B9ngH.js";
|
|
4
|
-
import { a as isToolBackgroundEligible, i as isModelBackgroundOverrideAllowed, n as backgroundOverrideJsonSchema, r as backgroundOverrideZodSchema } from "./background-tasks-
|
|
4
|
+
import { a as isToolBackgroundEligible, i as isModelBackgroundOverrideAllowed, n as backgroundOverrideJsonSchema, r as backgroundOverrideZodSchema } from "./background-tasks-lHCVpHbm.js";
|
|
5
5
|
import { t as MastraBase } from "./base-CKLWBhDo.js";
|
|
6
6
|
import { O as executionFailureTermination, b as wrapMastra, x as createObservabilityContext } from "./observability-D7RNOAPx.js";
|
|
7
7
|
import { a as getOrCreateSpan, t as executeWithContext } from "./utils-DU_pU5SK.js";
|
package/dist/utils.cjs
CHANGED
|
@@ -4,7 +4,7 @@ const require_deep_equal = require("./deep-equal-TMDmByBC.cjs");
|
|
|
4
4
|
const require_zod_utils = require("./zod-utils-Cl5jw5N_.cjs");
|
|
5
5
|
const require_fetchWithRetry = require("./fetchWithRetry-f5k4p7_1.cjs");
|
|
6
6
|
const require_dynamic_argument = require("./dynamic-argument-CUc1BBOS.cjs");
|
|
7
|
-
const require_utils = require("./utils-
|
|
7
|
+
const require_utils = require("./utils-CPOlvXFL.cjs");
|
|
8
8
|
exports.boundedStringify = require_utils_safe_stringify.boundedStringify;
|
|
9
9
|
exports.checkEvalStorageFields = require_utils.checkEvalStorageFields;
|
|
10
10
|
exports.createMastraProxy = require_utils.createMastraProxy;
|
package/dist/utils.js
CHANGED
|
@@ -3,5 +3,5 @@ import { t as deepEqual } from "./deep-equal-d1xU02ag.js";
|
|
|
3
3
|
import { a as isZodObject, i as isZodArray, r as getZodTypeName, t as getZodDef } from "./zod-utils-BDDS_mxU.js";
|
|
4
4
|
import { t as fetchWithRetry } from "./fetchWithRetry-DFSvpYDT.js";
|
|
5
5
|
import { n as resolveDynamicArgument, t as getRequestUser } from "./dynamic-argument-BzPK3qPN.js";
|
|
6
|
-
import { C as setNestedValue, S as selectFields, _ as parseSqlIdentifier, a as ensureToolProperties, b as removeUndefinedValues, c as isCoreMessage, d as makeCoreTool, f as makeCoreToolV5, g as parseFieldKey, h as omitKeys, i as delay, l as isUiMessage, m as maskStreamTags, n as createMastraProxy, o as generateEmptyFromSchema, p as makeProcessorCoreTool, r as deepMerge, s as getNestedValue, t as checkEvalStorageFields, u as isZodType, v as readPositiveIntEnv, x as resolveSerializedZodOutput, y as rebindProcessorTools } from "./utils-
|
|
6
|
+
import { C as setNestedValue, S as selectFields, _ as parseSqlIdentifier, a as ensureToolProperties, b as removeUndefinedValues, c as isCoreMessage, d as makeCoreTool, f as makeCoreToolV5, g as parseFieldKey, h as omitKeys, i as delay, l as isUiMessage, m as maskStreamTags, n as createMastraProxy, o as generateEmptyFromSchema, p as makeProcessorCoreTool, r as deepMerge, s as getNestedValue, t as checkEvalStorageFields, u as isZodType, v as readPositiveIntEnv, x as resolveSerializedZodOutput, y as rebindProcessorTools } from "./utils-dueX8ECq.js";
|
|
7
7
|
export { boundedStringify, checkEvalStorageFields, createMastraProxy, deepEqual, deepMerge, delay, ensureSerializable, ensureToolProperties, fetchWithRetry, generateEmptyFromSchema, getNestedValue, getRequestUser, getZodDef, getZodTypeName, isBoundedSerializable, isCoreMessage, isUiMessage, isZodArray, isZodObject, isZodType, makeCoreTool, makeCoreToolV5, makeProcessorCoreTool, maskStreamTags, omitKeys, parseFieldKey, parseSqlIdentifier, readPositiveIntEnv, rebindProcessorTools, removeUndefinedValues, resolveDynamicArgument, resolveSerializedZodOutput, safeStringify, selectFields, setNestedValue };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { standardSchemaToJSONSchema, toStandardSchema } from "./schema/index.js";
|
|
2
|
-
import { Et as validateTemplate, St as collectTemplateStepIds } from "./stream-
|
|
2
|
+
import { Et as validateTemplate, St as collectTemplateStepIds } from "./stream-DaIpS6ky.js";
|
|
3
3
|
import { z } from "zod";
|
|
4
4
|
// src/workflows/dynamic/graph.ts
|
|
5
5
|
/**
|
package/dist/vector/index.cjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
2
|
const require_base = require("../base-BIzR1D3_.cjs");
|
|
3
3
|
const require_error = require("../error-D90lJ6M7.cjs");
|
|
4
|
-
const require_run_registry = require("../run-registry-
|
|
4
|
+
const require_run_registry = require("../run-registry-BJa47sa2.cjs");
|
|
5
5
|
const require_message_list = require("../message-list-vR3uLAHL.cjs");
|
|
6
6
|
const require_dist = require("../dist-P2rjrlmj.cjs");
|
|
7
7
|
const require_dist$1 = require("../dist-CXeCeeW7.cjs");
|
package/dist/vector/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { t as MastraBase } from "../base-CKLWBhDo.js";
|
|
2
2
|
import { i as MastraError, n as ErrorDomain, t as ErrorCategory } from "../error-oh2DLsP2.js";
|
|
3
|
-
import { ba as createVectorErrorId, dn as embed$3 } from "../run-registry-
|
|
3
|
+
import { ba as createVectorErrorId, dn as embed$3 } from "../run-registry-Bj_lW9M3.js";
|
|
4
4
|
import { P as embed$2 } from "../message-list-BGm1DCiG.js";
|
|
5
5
|
import { r as embed$1 } from "../dist-TPVqg8oV.js";
|
|
6
6
|
import { n as embed } from "../dist-D3cKCUe-.js";
|
package/dist/worker/index.cjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
-
const require_worker = require("../worker-
|
|
2
|
+
const require_worker = require("../worker-GrFJJ7Y0.cjs");
|
|
3
3
|
exports.BackgroundTaskWorker = require_worker.BackgroundTaskWorker;
|
|
4
4
|
exports.HttpRemoteStrategy = require_worker.HttpRemoteStrategy;
|
|
5
5
|
exports.InProcessStrategy = require_worker.InProcessStrategy;
|
package/dist/worker/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export { n as BackgroundTaskWorker, s as HttpRemoteStrategy, t as InProcessStrategy, l as MastraWorker, a as OrchestrationWorker, o as PullTransport, r as SchedulerWorker, c as StepExecutionError } from "../worker-
|
|
1
|
+
export { n as BackgroundTaskWorker, s as HttpRemoteStrategy, t as InProcessStrategy, l as MastraWorker, a as OrchestrationWorker, o as PullTransport, r as SchedulerWorker, c as StepExecutionError } from "../worker-NYiueScR.js";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
const require_run_registry = require("./run-registry-
|
|
1
|
+
const require_run_registry = require("./run-registry-BJa47sa2.cjs");
|
|
2
2
|
const require_request_context = require("./request-context-D9RXYCy8.cjs");
|
|
3
|
-
const require_worker = require("./worker-
|
|
3
|
+
const require_worker = require("./worker-GrFJJ7Y0.cjs");
|
|
4
4
|
const require_schedules = require("./schedules-BZS8McF7.cjs");
|
|
5
5
|
// src/schedules/worker.ts
|
|
6
6
|
/** PubSub topic on which the scheduler publishes `agent-schedule.fire` events. */
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { yt as resolveAgentById } from "./run-registry-
|
|
1
|
+
import { yt as resolveAgentById } from "./run-registry-Bj_lW9M3.js";
|
|
2
2
|
import { u as RequestContext } from "./request-context-COnZHt2-.js";
|
|
3
|
-
import { l as MastraWorker, o as PullTransport } from "./worker-
|
|
3
|
+
import { l as MastraWorker, o as PullTransport } from "./worker-NYiueScR.js";
|
|
4
4
|
import { l as parseFsAgentScheduleRowId } from "./schedules-DZfSx-7P.js";
|
|
5
5
|
// src/schedules/worker.ts
|
|
6
6
|
/** PubSub topic on which the scheduler publishes `agent-schedule.fire` events. */
|