@mastra/core 1.88.0-alpha.1 → 1.88.0-alpha.2
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-C-WK9bMA.cjs → agent-controller-Bt7DwpZy.cjs} +6 -6
- package/dist/{agent-controller-Wxbc6702.js → agent-controller-CFNkjF3l.js} +6 -6
- package/dist/background-tasks/index.cjs +1 -1
- package/dist/background-tasks/index.js +1 -1
- package/dist/{background-tasks-DSMkHpbu.js → background-tasks-DJHuKMQC.js} +1 -1
- package/dist/{background-tasks-DcKNctMR.cjs → background-tasks-DbPzYpIZ.cjs} +1 -1
- package/dist/browser/index.cjs +1 -1
- package/dist/browser/index.js +1 -1
- package/dist/{builder-CybmqbZt.cjs → builder-961mB1xC.cjs} +2 -2
- package/dist/{builder-PXwZnGYe.js → builder-BD6HtwKv.js} +2 -2
- package/dist/capabilities/302ai.json +189 -189
- package/dist/capabilities/abliteratedllm.json +31 -31
- package/dist/capabilities/abliteration-ai.json +10 -10
- package/dist/capabilities/above.json +24 -24
- package/dist/capabilities/adaption.json +15 -15
- package/dist/capabilities/adzuki.json +22 -22
- package/dist/capabilities/agentrouter.json +10 -10
- package/dist/capabilities/agnes.json +3 -3
- package/dist/capabilities/ai-router.json +2 -2
- package/dist/capabilities/aiand.json +22 -22
- package/dist/capabilities/aigrow.json +9 -9
- package/dist/capabilities/aimlapi.json +144 -153
- package/dist/capabilities/aipg.json +2 -2
- package/dist/capabilities/aixy.json +18 -18
- package/dist/capabilities/aki-io.json +16 -16
- package/dist/capabilities/alibaba-cn.json +105 -105
- package/dist/capabilities/alibaba-coding-plan-cn.json +5 -5
- package/dist/capabilities/alibaba-coding-plan.json +5 -5
- package/dist/capabilities/alibaba-token-plan-cn.json +45 -45
- package/dist/capabilities/alibaba-token-plan.json +46 -46
- package/dist/capabilities/alibaba.json +80 -80
- package/dist/capabilities/ambient.json +6 -6
- package/dist/capabilities/amd-tokenlab.json +4 -4
- package/dist/capabilities/amd.json +11 -11
- package/dist/capabilities/anthropic.json +39 -39
- package/dist/capabilities/anyapi.json +13 -13
- package/dist/capabilities/apiko.json +4 -4
- package/dist/capabilities/arcee.json +5 -5
- package/dist/capabilities/augure.json +5 -5
- package/dist/capabilities/auriko.json +21 -21
- package/dist/capabilities/bailing.json +4 -4
- package/dist/capabilities/baseten.json +34 -34
- package/dist/capabilities/bee.json +5 -5
- package/dist/capabilities/bothub.json +15 -15
- package/dist/capabilities/boundless.json +35 -35
- package/dist/capabilities/bumo.json +43 -43
- package/dist/capabilities/byteplus.json +31 -31
- package/dist/capabilities/cheapaimodel.json +5 -5
- package/dist/capabilities/cheapest-token.json +28 -28
- package/dist/capabilities/chutes.json +34 -34
- package/dist/capabilities/cline-pass.json +34 -34
- package/dist/capabilities/cloudcode.json +9 -9
- package/dist/capabilities/cloudferro-sherlock.json +4 -4
- package/dist/capabilities/cloudflare-ai-gateway.json +716 -0
- package/dist/capabilities/cloudflare-workers-ai.json +10 -10
- package/dist/capabilities/cohere.json +67 -0
- package/dist/capabilities/commandcode.json +124 -124
- package/dist/capabilities/concentrate.json +282 -282
- package/dist/capabilities/cortecs.json +105 -105
- package/dist/capabilities/crossmodel.json +159 -159
- package/dist/capabilities/crusoe.json +18 -18
- package/dist/capabilities/daoxe.json +8 -8
- package/dist/capabilities/databricks.json +126 -126
- package/dist/capabilities/deepinfra.json +99 -99
- package/dist/capabilities/deepseek.json +4 -4
- package/dist/capabilities/digitalocean.json +113 -113
- package/dist/capabilities/dothoosh.json +32 -32
- package/dist/capabilities/doubleword.json +30 -30
- package/dist/capabilities/edenai.json +292 -292
- package/dist/capabilities/empiriolabs.json +178 -169
- package/dist/capabilities/engy.json +24 -24
- package/dist/capabilities/entrim.json +6 -6
- package/dist/capabilities/evroc.json +14 -14
- package/dist/capabilities/ezkielyna.json +8 -8
- package/dist/capabilities/fastrouter.json +64 -64
- package/dist/capabilities/fireworks-ai.json +97 -97
- package/dist/capabilities/freemodel.json +10 -10
- package/dist/capabilities/friendli.json +7 -7
- package/dist/capabilities/frogbot.json +94 -94
- package/dist/capabilities/gisoo.json +20 -20
- package/dist/capabilities/gmicloud.json +13 -13
- package/dist/capabilities/google.json +57 -57
- package/dist/capabilities/graphn.json +14 -14
- package/dist/capabilities/greenpt.json +36 -36
- package/dist/capabilities/groq.json +2 -2
- package/dist/capabilities/helicone.json +76 -76
- package/dist/capabilities/hetzner.json +2 -2
- package/dist/capabilities/hostinger-router.json +9 -9
- package/dist/capabilities/hpc-ai.json +6 -6
- package/dist/capabilities/huawei-maas.json +13 -13
- package/dist/capabilities/hubris.json +34 -34
- package/dist/capabilities/huggingface.json +85 -85
- package/dist/capabilities/humain.json +2 -2
- package/dist/capabilities/hyper.json +23 -23
- package/dist/capabilities/impossibl.json +141 -141
- package/dist/capabilities/inception.json +2 -2
- package/dist/capabilities/inceptron.json +2 -2
- package/dist/capabilities/infer.json +15 -15
- package/dist/capabilities/inferall.json +4 -4
- package/dist/capabilities/inference-coop.json +15 -15
- package/dist/capabilities/inferenceapis.json +17 -17
- package/dist/capabilities/infersia.json +10 -10
- package/dist/capabilities/inferx.json +3 -3
- package/dist/capabilities/io-net.json +4 -4
- package/dist/capabilities/isoquant.json +4 -4
- package/dist/capabilities/iteracompute.json +33 -33
- package/dist/capabilities/jalapeno.json +11 -11
- package/dist/capabilities/jiekou.json +24 -24
- package/dist/capabilities/jzstoken.json +51 -51
- package/dist/capabilities/keln.json +15 -15
- package/dist/capabilities/kenari.json +125 -125
- package/dist/capabilities/kilo.json +622 -621
- package/dist/capabilities/kimchi.json +19 -19
- package/dist/capabilities/kimi-code-plan-cn.json +5 -5
- package/dist/capabilities/kimi-code-plan-global.json +5 -5
- package/dist/capabilities/klavo.json +13 -13
- package/dist/capabilities/korouter.json +31 -31
- package/dist/capabilities/kunavo.json +10 -10
- package/dist/capabilities/liquid.json +8 -8
- package/dist/capabilities/lithosai.json +2 -2
- package/dist/capabilities/llmgateway-providers.json +915 -915
- package/dist/capabilities/llmgateway.json +345 -345
- package/dist/capabilities/llmtr.json +16 -16
- package/dist/capabilities/longcat.json +2 -2
- package/dist/capabilities/lowrouter.json +49 -49
- package/dist/capabilities/lyceum.json +8 -8
- package/dist/capabilities/melious.json +11 -11
- package/dist/capabilities/merge-gateway.json +271 -271
- package/dist/capabilities/meta.json +8 -8
- 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 +14 -14
- package/dist/capabilities/mixlayer.json +5 -5
- package/dist/capabilities/modal.json +10 -10
- package/dist/capabilities/model-oracle-ai.json +23 -23
- package/dist/capabilities/modelis.json +15 -15
- package/dist/capabilities/modular.json +11 -11
- package/dist/capabilities/moneo.json +8 -8
- package/dist/capabilities/moonshotai-cn.json +7 -7
- package/dist/capabilities/moonshotai.json +7 -7
- package/dist/capabilities/morph.json +14 -14
- package/dist/capabilities/munito-eu.json +6 -6
- package/dist/capabilities/munito.json +6 -6
- package/dist/capabilities/nan.json +29 -29
- package/dist/capabilities/nano-gpt.json +566 -558
- package/dist/capabilities/nearai.json +82 -82
- package/dist/capabilities/nebius.json +33 -33
- package/dist/capabilities/neon.json +132 -132
- package/dist/capabilities/neuralwatt.json +42 -42
- package/dist/capabilities/novita-ai.json +110 -110
- package/dist/capabilities/nvidia.json +27 -27
- package/dist/capabilities/oathbreaker.json +3 -3
- package/dist/capabilities/obscurify.json +16 -16
- package/dist/capabilities/oci.json +2 -2
- package/dist/capabilities/ofox.json +212 -212
- package/dist/capabilities/ollama-cloud.json +65 -65
- package/dist/capabilities/openai.json +57 -57
- package/dist/capabilities/opencode-go.json +89 -82
- package/dist/capabilities/openreason.json +5 -5
- package/dist/capabilities/openrouter.json +538 -538
- package/dist/capabilities/opper.json +28 -28
- package/dist/capabilities/orcarouter.json +236 -236
- package/dist/capabilities/outerlabs.json +31 -31
- package/dist/capabilities/ovhcloud.json +20 -20
- package/dist/capabilities/pendra.json +4 -4
- package/dist/capabilities/perplexity-agent.json +66 -66
- package/dist/capabilities/phala.json +20 -20
- package/dist/capabilities/pioneer.json +2 -2
- package/dist/capabilities/poe.json +124 -124
- package/dist/capabilities/poolside.json +3 -3
- package/dist/capabilities/powerspring.json +10 -10
- package/dist/capabilities/primalabs.json +12 -12
- package/dist/capabilities/prime.json +105 -105
- package/dist/capabilities/privatemode-ai.json +6 -6
- package/dist/capabilities/qiniu-ai.json +11 -11
- package/dist/capabilities/refuseless.json +6 -6
- package/dist/capabilities/regolo-ai.json +7 -7
- package/dist/capabilities/requesty.json +200 -200
- package/dist/capabilities/ruapi.json +22 -22
- package/dist/capabilities/runcrate.json +12 -12
- package/dist/capabilities/runinfra.json +17 -17
- package/dist/capabilities/sakana.json +6 -6
- package/dist/capabilities/sambanova.json +9 -9
- package/dist/capabilities/sandbase.json +13 -13
- package/dist/capabilities/sarvam.json +12 -12
- package/dist/capabilities/scaleway.json +15 -15
- package/dist/capabilities/scnet-token-plan.json +14 -14
- package/dist/capabilities/scx-ai.json +23 -23
- package/dist/capabilities/sensenova.json +14 -14
- package/dist/capabilities/siliconflow-cn.json +54 -54
- package/dist/capabilities/siliconflow.json +56 -56
- package/dist/capabilities/snowflake-cortex.json +23 -23
- package/dist/capabilities/sokkan.json +5 -5
- package/dist/capabilities/sparrowcodes.json +19 -19
- package/dist/capabilities/standardcompute.json +56 -56
- package/dist/capabilities/steadyrouter.json +40 -40
- package/dist/capabilities/stepfun-ai-step-plan.json +8 -8
- package/dist/capabilities/stepfun-ai.json +8 -8
- package/dist/capabilities/stepfun-step-plan.json +8 -8
- package/dist/capabilities/stepfun.json +8 -8
- package/dist/capabilities/stepping-stone.json +17 -17
- package/dist/capabilities/subconscious.json +2 -2
- package/dist/capabilities/synthetic.json +11 -11
- package/dist/capabilities/synthorai.json +27 -27
- package/dist/capabilities/teamorouter.json +24 -24
- package/dist/capabilities/teapot-router.json +13 -13
- package/dist/capabilities/tencent-token-plan-intl.json +26 -26
- package/dist/capabilities/tencent-token-plan.json +42 -42
- package/dist/capabilities/tencent-tokenhub.json +50 -50
- package/dist/capabilities/tensorx.json +37 -37
- package/dist/capabilities/tenstorrent.json +2 -2
- package/dist/capabilities/the-grid-ai.json +32 -32
- package/dist/capabilities/thinkingmachines.json +67 -67
- package/dist/capabilities/tinfoil.json +6 -6
- package/dist/capabilities/toapis.json +2 -2
- package/dist/capabilities/togetherai.json +52 -52
- package/dist/capabilities/tokengo.json +19 -19
- package/dist/capabilities/tokenharbor.json +221 -221
- package/dist/capabilities/tokenify.json +8 -8
- package/dist/capabilities/trustedrouter.json +6 -6
- package/dist/capabilities/trustedtokens.json +20 -20
- package/dist/capabilities/umans-ai-coding-plan.json +17 -17
- package/dist/capabilities/umans-ai.json +15 -15
- package/dist/capabilities/uncensuredai.json +4 -4
- package/dist/capabilities/unrestricted.json +6 -6
- package/dist/capabilities/uplinkswitch.json +23 -23
- package/dist/capabilities/vancine.json +25 -25
- package/dist/capabilities/vercel.json +570 -570
- package/dist/capabilities/vivgrid.json +65 -65
- package/dist/capabilities/volcengine-coding-plan.json +31 -31
- package/dist/capabilities/volcengine.json +26 -26
- package/dist/capabilities/vultr.json +18 -18
- package/dist/capabilities/wafer.ai.json +16 -16
- package/dist/capabilities/wallaby.json +4 -4
- package/dist/capabilities/wally.json +11 -11
- package/dist/capabilities/wandb.json +21 -21
- package/dist/capabilities/watt.json +26 -26
- package/dist/capabilities/xai.json +4 -4
- package/dist/capabilities/xiaomi.json +2 -2
- package/dist/capabilities/xpersona.json +11 -11
- package/dist/capabilities/xxapi.json +27 -27
- package/dist/capabilities/zai-coding-plan.json +18 -18
- package/dist/capabilities/zai.json +30 -30
- package/dist/capabilities/zenifra.json +23 -23
- package/dist/capabilities/zenmux.json +191 -191
- package/dist/capabilities/zerogpu.json +11 -11
- package/dist/capabilities/zhipuai-coding-plan.json +3 -3
- package/dist/capabilities/zhipuai.json +29 -29
- package/dist/capabilities/zro.json +4 -4
- package/dist/channels/index.cjs +2 -2
- package/dist/channels/index.js +2 -2
- package/dist/{channels-Cxy4jW11.js → channels-Dn6LqqK1.js} +1 -1
- package/dist/{channels-DNOI029U.cjs → channels-dYHpz7m2.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 +474 -474
- package/dist/docs/references/docs-mastra-platform-observability-overview.md +60 -0
- 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/{execution-fence-C1nozqra.cjs → execution-fence-CHI1L6Gw.cjs} +7 -7
- package/dist/{execution-fence-pJB0qqFJ.js → execution-fence-P1uj8uB8.js} +7 -7
- 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/gateways/url-template.d.ts +3 -1
- package/dist/llm/model/provider-types.generated.d.ts +7885 -7776
- package/dist/{llm-_z1lIfCN.js → llm-D4BaXbwZ.js} +4 -3
- package/dist/{llm-VhPqyULU.cjs → llm-DqcaZBHM.cjs} +4 -3
- package/dist/loop/index.cjs +2 -2
- package/dist/loop/index.js +2 -2
- package/dist/{manager-C3Kx39p_.js → manager-BAs1D8t9.js} +2 -2
- package/dist/{manager-BT70SgFz.cjs → manager-Do9PPiEw.cjs} +2 -2
- package/dist/mastra/index.cjs +1 -1
- package/dist/mastra/index.js +1 -1
- package/dist/{mastra-fJ0iKYGP.js → mastra-CaLISVUE.js} +16 -16
- package/dist/{mastra-CQGD2RoN.cjs → mastra-DWCqC_6c.cjs} +16 -16
- package/dist/memory/index.cjs +2 -2
- package/dist/memory/index.js +2 -2
- package/dist/{model-D9NDbf-e.cjs → model-DAcaPIyq.cjs} +1 -1
- package/dist/{model-DmBDBf-q.js → model-DafU-uar.js} +1 -1
- package/dist/{netlify-DNaNhels.cjs → netlify-1Nz6N3ej.cjs} +29 -13
- package/dist/{netlify-_yV5Nwud.js → netlify-CUG0Ko81.js} +29 -13
- 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/{provider-registry-C4tv__fr.js → provider-registry-BjBiRMhs.js} +21541 -21305
- package/dist/{provider-registry-_BUQuSKb.cjs → provider-registry-D_cE6sCW.cjs} +21541 -21305
- package/dist/provider-registry.json +21464 -21226
- package/dist/{registry-generator-CenhQnEi.js → registry-generator-VDBSUg0k.js} +1 -1
- package/dist/{registry-generator-D7lsLJC-.cjs → registry-generator-ji57sjZC.cjs} +1 -1
- package/dist/{rehydrate-SpC_gJCY.cjs → rehydrate-BOhDMI4r.cjs} +2 -2
- package/dist/{rehydrate-CuWN_5No.js → rehydrate-Do67YKWz.js} +2 -2
- package/dist/relevance/index.cjs +2 -2
- package/dist/relevance/index.js +2 -2
- 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-BfSwqzPi.js → stream-DlzW_BXE.js} +1 -1
- package/dist/{stream-CW3d1Xg6.cjs → stream-HM3ei83E.cjs} +1 -1
- 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-B4_o4-Me.js → tool-loop-agent-BBlEpcl4.js} +3 -3
- package/dist/{tool-loop-agent-JN_oKyfY.cjs → tool-loop-agent-CLyS2mqD.cjs} +3 -3
- package/dist/{utils-Bq606mC8.cjs → utils-CYmtHkJO.cjs} +1 -1
- package/dist/{utils-CnpMuTyD.js → utils-DlBS4OO7.js} +1 -1
- package/dist/utils.cjs +1 -1
- package/dist/utils.js +1 -1
- package/dist/{validate-Db2C7Sj_.js → validate-C7Ltq3EW.js} +1 -1
- package/dist/{validate-CFv6HWXx.cjs → validate-CPda0kNf.cjs} +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-IZeSOZjg.cjs → worker-BTLxhv5x.cjs} +2 -2
- package/dist/{worker-UXFAgWOK.js → worker-C75s75rt.js} +2 -2
- package/dist/{worker-X0fAJfcx.js → worker-CcLWNaev.js} +2 -2
- package/dist/{worker-CNIBQPQy.cjs → worker-DkqCjpGQ.cjs} +2 -2
- package/dist/{workflow-CMLLlVDc.cjs → workflow-BFlBk2d6.cjs} +3 -3
- package/dist/{workflow-DfXq2p2f.js → workflow-Dq4584lm.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 +5 -5
- package/src/llm/model/provider-types.generated.d.ts +7885 -7776
|
@@ -212,6 +212,66 @@ Platform adds these fields and grouping options:
|
|
|
212
212
|
|
|
213
213
|
All traces are retained for six months. This retention period is subject to change for all month-to-month plans. See [pricing](https://mastra.ai/pricing) for current plan limits.
|
|
214
214
|
|
|
215
|
+
### Search span content
|
|
216
|
+
|
|
217
|
+
Word search finds traces and spans by the words in span input, output, and error text. In the filter bar, pick a content field with the **contains words** operator: **Any span content**, **Span input**, **Span output**, or **Span error** on the **Traces** page, and **Any Content**, **Input**, **Output**, or **Error** on the **Spans** page. A search over more than 7 days can take up to a minute.
|
|
218
|
+
|
|
219
|
+
Through the API, use the [`hasAllTokens` predicate](https://mastra.ai/reference/observability/tracing/advanced-queries). This query finds failed tool calls whose error contains both "connection" and "refused":
|
|
220
|
+
|
|
221
|
+
```bash
|
|
222
|
+
npx mastra api span query '{
|
|
223
|
+
"timeRange": {
|
|
224
|
+
"from": "2026-08-07T00:00:00.000Z",
|
|
225
|
+
"to": "2026-08-08T00:00:00.000Z"
|
|
226
|
+
},
|
|
227
|
+
"where": {
|
|
228
|
+
"op": "and",
|
|
229
|
+
"args": [
|
|
230
|
+
{ "op": "eq", "left": { "path": "spanType" }, "right": { "literal": "tool_call" } },
|
|
231
|
+
{ "op": "hasAllTokens", "left": { "path": "error" }, "right": { "literal": "connection refused" } }
|
|
232
|
+
]
|
|
233
|
+
},
|
|
234
|
+
"page": { "limit": 25 }
|
|
235
|
+
}'
|
|
236
|
+
```
|
|
237
|
+
|
|
238
|
+
In `trace query` and `trace aggregate`, put `hasAllTokens` inside `spans.some`. `span query` and `span aggregate` accept it directly in `where`.
|
|
239
|
+
|
|
240
|
+
Platform matches words this way:
|
|
241
|
+
|
|
242
|
+
- A span matches when the field contains every word, in any order. Phrase search isn't supported: `"connection refused"` also matches `refused connection`.
|
|
243
|
+
- Words match whole. `time` doesn't match `timeout`.
|
|
244
|
+
- Any ASCII character other than a letter or digit separates words, including spaces, quotes, `-`, `_`, and `.`. `user_id` searches for `user` and `id`. Other characters, such as accented letters and CJK text, don't separate words.
|
|
245
|
+
- Matching ignores the case of ASCII letters.
|
|
246
|
+
- With `all`, one field must contain every word. Words found in different fields don't combine.
|
|
247
|
+
|
|
248
|
+
Word search has these limits:
|
|
249
|
+
|
|
250
|
+
| Limit | Value |
|
|
251
|
+
| ---------------------------- | -------------------------------------------------------------- |
|
|
252
|
+
| Words per request | 5 distinct words, counted across all `hasAllTokens` predicates |
|
|
253
|
+
| Search text | 256 characters per predicate |
|
|
254
|
+
| Time range | 120 days |
|
|
255
|
+
| Request time, up to 7 days | Same as other queries |
|
|
256
|
+
| Request time, over 7 days | Up to 60 seconds |
|
|
257
|
+
| Searches over 7 days at once | 2 running and 4 waiting per organization |
|
|
258
|
+
|
|
259
|
+
A span is searched when it starts within the time range. A span that runs longer than 30 days can be missed.
|
|
260
|
+
|
|
261
|
+
`mastra api` stops waiting after 30 seconds by default. For a search over more than 7 days, pass a longer timeout in milliseconds, such as `--timeout 90000`.
|
|
262
|
+
|
|
263
|
+
Word search returns these errors:
|
|
264
|
+
|
|
265
|
+
| Status | Response | What to do |
|
|
266
|
+
| -------------- | ------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------ |
|
|
267
|
+
| `404` | `Text search is not available` | Word search isn't enabled for your organization. Check the capabilities below. |
|
|
268
|
+
| `422` | `TRACE_QUERY_INVALID` with issue `time_range_too_large` | Search at most 120 days. |
|
|
269
|
+
| `422` | `TRACE_QUERY_INVALID` with issue `invalid_literal` | Search at most 5 words. |
|
|
270
|
+
| `422` or `504` | `name: "search_too_expensive"` | Narrow the time range or select one project. |
|
|
271
|
+
| `429` | `name: "search_busy"` with `Retry-After: 60` | Other searches over 7 days are running in your organization. Retry after a minute or search a shorter range. |
|
|
272
|
+
|
|
273
|
+
Check `traceQueryTokenSearch`, `traceAggregateTokenSearch`, `spanQueryTokenSearch`, and `spanAggregateTokenSearch` from `getObservabilityCapabilities()` before searching. A `false` value means the operation doesn't accept word search for your organization. The [Platform MCP server](https://mastra.ai/docs/mastra-platform/mcp) doesn't offer word search.
|
|
274
|
+
|
|
215
275
|
### Other observability data
|
|
216
276
|
|
|
217
277
|
You can query exported feedback over HTTP. See the [Feedback API](https://mastra.ai/docs/mastra-platform/api) for its current status, regional endpoints, authentication, project scoping, and supported query parameters such as `traceId` and `environment`.
|
package/dist/evals/index.cjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
-
const require_execution_fence = require("../execution-fence-
|
|
2
|
+
const require_execution_fence = require("../execution-fence-CHI1L6Gw.cjs");
|
|
3
3
|
const require_constants = require("../constants-DPHwzvan.cjs");
|
|
4
4
|
const require_collect_tool_mocks = require("../collect-tool-mocks-k9fM6oDl.cjs");
|
|
5
5
|
exports.MastraScorer = require_execution_fence.MastraScorer;
|
package/dist/evals/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Jc as evaluateScoringPredicate, Yc as validateScoringPredicate, _ as isNotScorable, c as runEvals, f as createClassifierScorer, g as filterRun, h as createScorer, m as ScorerRunError, p as MastraScorer, qc as SCORING_PREDICATE_ROOTS, v as notScorable } from "../execution-fence-
|
|
1
|
+
import { Jc as evaluateScoringPredicate, Yc as validateScoringPredicate, _ as isNotScorable, c as runEvals, f as createClassifierScorer, g as filterRun, h as createScorer, m as ScorerRunError, p as MastraScorer, qc as SCORING_PREDICATE_ROOTS, v as notScorable } from "../execution-fence-P1uj8uB8.js";
|
|
2
2
|
import { Ar as scoringEntityTypeSchema, Cr as extractTrajectory, Dr as saveScorePayloadSchema, Er as listScoresResponseSchema, Fr as scoringInputWithExtractStepResultAndScoreAndReasonSchema, Ir as scoringInputWithExtractStepResultSchema, Lr as scoringPromptsSchema, Mr as scoringHookInputSchema, Nr as scoringInputSchema, Or as scoreResultSchema, Pr as scoringInputWithExtractStepResultAndAnalyzeStepResultSchema, Rr as scoringSourceSchema, Tr as extractWorkflowTrajectory, jr as scoringExtractStepResultSchema, kr as scoreRowDataSchema, wr as extractTrajectoryFromTrace, zr as scoringValueSchema } from "../constants-C2Q-ZI5d.js";
|
|
3
3
|
import { t as collectToolMocks } from "../collect-tool-mocks-3s2BN8o7.js";
|
|
4
4
|
export { MastraScorer, SCORING_PREDICATE_ROOTS, ScorerRunError, collectToolMocks, createClassifierScorer, createScorer, evaluateScoringPredicate, extractTrajectory, extractTrajectoryFromTrace, extractWorkflowTrajectory, filterRun, isNotScorable, listScoresResponseSchema, notScorable, runEvals, saveScorePayloadSchema, scoreResultSchema, scoreRowDataSchema, scoringEntityTypeSchema, scoringExtractStepResultSchema, scoringHookInputSchema, scoringInputSchema, scoringInputWithExtractStepResultAndAnalyzeStepResultSchema, scoringInputWithExtractStepResultAndScoreAndReasonSchema, scoringInputWithExtractStepResultSchema, scoringPromptsSchema, scoringSourceSchema, scoringValueSchema, validateScoringPredicate };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
2
|
const require_error = require("../../error-D90lJ6M7.cjs");
|
|
3
3
|
const require_utils = require("../../utils-D-eNsgDM.cjs");
|
|
4
|
-
const require_execution_fence = require("../../execution-fence-
|
|
4
|
+
const require_execution_fence = require("../../execution-fence-CHI1L6Gw.cjs");
|
|
5
5
|
const require_constants = require("../../constants-DPHwzvan.cjs");
|
|
6
6
|
let zod_v4 = require("zod/v4");
|
|
7
7
|
// src/evals/scoreTraces/scoreTraces.ts
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { i as MastraError, n as ErrorDomain, t as ErrorCategory } from "../../error-oh2DLsP2.js";
|
|
2
2
|
import { i as getEntityTypeForSpan } from "../../utils-DU_pU5SK.js";
|
|
3
|
-
import { Fs as createStep, Is as createWorkflow } from "../../execution-fence-
|
|
3
|
+
import { Fs as createStep, Is as createWorkflow } from "../../execution-fence-P1uj8uB8.js";
|
|
4
4
|
import { Dr as saveScorePayloadSchema } from "../../constants-C2Q-ZI5d.js";
|
|
5
5
|
import { z } from "zod/v4";
|
|
6
6
|
// src/evals/scoreTraces/scoreTraces.ts
|
|
@@ -4,7 +4,7 @@ const require_base = require("./base-BIzR1D3_.cjs");
|
|
|
4
4
|
const require_error = require("./error-D90lJ6M7.cjs");
|
|
5
5
|
const require_error$1 = require("./error-L1V4uUbd.cjs");
|
|
6
6
|
const require_output_helpers = require("./output-helpers-D4O_oFne.cjs");
|
|
7
|
-
const require_stream = require("./stream-
|
|
7
|
+
const require_stream = require("./stream-HM3ei83E.cjs");
|
|
8
8
|
const require_workflows_constants = require("./workflows/constants.cjs");
|
|
9
9
|
const require_request_context = require("./request-context-D9RXYCy8.cjs");
|
|
10
10
|
const require_observability = require("./observability-VaoaeadK.cjs");
|
|
@@ -12,9 +12,9 @@ const require_storage = require("./storage-CfG0I2aF.cjs");
|
|
|
12
12
|
const require_utils = require("./utils-D-eNsgDM.cjs");
|
|
13
13
|
const require_tool = require("./tool-Dn9WSDVn.cjs");
|
|
14
14
|
const require_error_count = require("./error-count-DeDpeWU2.cjs");
|
|
15
|
-
const require_utils$1 = require("./utils-
|
|
15
|
+
const require_utils$1 = require("./utils-CYmtHkJO.cjs");
|
|
16
16
|
const require_ee_iTj2bRDt = require("./ee-iTj2bRDt-D3-QLGDF.cjs");
|
|
17
|
-
const require_background_tasks = require("./background-tasks-
|
|
17
|
+
const require_background_tasks = require("./background-tasks-DbPzYpIZ.cjs");
|
|
18
18
|
const require_toolchecks = require("./toolchecks-DbBsQGHW.cjs");
|
|
19
19
|
const require_stream$1 = require("./stream-BGbj9jAU.cjs");
|
|
20
20
|
const require_fetchWithRetry = require("./fetchWithRetry-f5k4p7_1.cjs");
|
|
@@ -22,16 +22,16 @@ const require_utils_safe_stringify = require("./utils/safe-stringify.cjs");
|
|
|
22
22
|
const require_deep_equal = require("./deep-equal-TMDmByBC.cjs");
|
|
23
23
|
const require_dynamic_argument = require("./dynamic-argument-CUc1BBOS.cjs");
|
|
24
24
|
const require_message_list = require("./message-list-C0F2sDNC.cjs");
|
|
25
|
-
const require_llm = require("./llm-
|
|
25
|
+
const require_llm = require("./llm-DqcaZBHM.cjs");
|
|
26
26
|
const require_payload_transform = require("./payload-transform-CWgnsO9w.cjs");
|
|
27
27
|
const require_signals = require("./signals-CWxAMEmE.cjs");
|
|
28
28
|
const require_to_prompt = require("./to-prompt-CG-LyaBY.cjs");
|
|
29
29
|
const require_dist = require("./dist-P2rjrlmj.cjs");
|
|
30
30
|
const require_dist$1 = require("./dist-CXeCeeW7.cjs");
|
|
31
31
|
const require_model = require("./model-jBymoqGa.cjs");
|
|
32
|
-
const require_provider_registry = require("./provider-registry-
|
|
32
|
+
const require_provider_registry = require("./provider-registry-D_cE6sCW.cjs");
|
|
33
33
|
const require_inmemory = require("./inmemory-Dc86VWGB.cjs");
|
|
34
|
-
const require_model$1 = require("./model-
|
|
34
|
+
const require_model$1 = require("./model-DAcaPIyq.cjs");
|
|
35
35
|
const require_predicate_index = require("./predicate/index.cjs");
|
|
36
36
|
const require_classifier_index = require("./classifier/index.cjs");
|
|
37
37
|
const require_observability_context_storage = require("./observability/context-storage.cjs");
|
|
@@ -86016,7 +86016,7 @@ async function prepareForDurableExecution(options) {
|
|
|
86016
86016
|
});
|
|
86017
86017
|
let tripwireData;
|
|
86018
86018
|
if (inputProcessors.length > 0) try {
|
|
86019
|
-
const { ProcessorRunner } = await Promise.resolve().then(() => require("./stream-
|
|
86019
|
+
const { ProcessorRunner } = await Promise.resolve().then(() => require("./stream-HM3ei83E.cjs")).then((n) => n.runner_exports);
|
|
86020
86020
|
await new ProcessorRunner({
|
|
86021
86021
|
inputProcessors,
|
|
86022
86022
|
outputProcessors,
|
|
@@ -4,7 +4,7 @@ import { t as MastraBase } from "./base-CKLWBhDo.js";
|
|
|
4
4
|
import { a as MastraNonRetryableError, i as MastraError, n as ErrorDomain, o as getErrorFromUnknown, t as ErrorCategory } from "./error-oh2DLsP2.js";
|
|
5
5
|
import { a as classifyProviderError, l as describeProviderError, t as recordTerminalErrorMessage, u as readProviderErrorDetails } from "./error-BC9Au-22.js";
|
|
6
6
|
import { S as isLeaseProvider, _ as stripModelSnapshots, a as CachingPubSub, b as NoopLeaseProvider, f as isRunLocalTopic, h as slimNestedAgentChunks, i as PublisherQueueLimitError, r as serializeError$1, t as DefaultStepResult, v as EventEmitterPubSub, y as withAck } from "./output-helpers-D-qplq22.js";
|
|
7
|
-
import { $ as summarizeToolChoiceForSpan, $t as commitToolResult, A as isSignalChunkExcluded, An as isMastraTimeoutError, At as getSnapshotMemoryInfo, B as removeTrailingAssistantGuardContinuations, Bt as stateColumnsWrite, C as stampChunkProducedAt, Cn as DEADLINE_SAVE_CLAIM_HOLD_MS, D as isStructuredOutputError, Dn as getAbortReason, Dt as validateTemplate, E as escapeUnescapedControlCharsInJsonStrings, En as createTimeoutAbortSignal, Et as traverseMappingPath, F as endOutputStreamSpanOutsideStep, Fn as safeClose, Ft as latestStepResults, G as FLUSH_HELD_PARTS_KEY, Gt as diffStateAsJson, Ht as unusedStateEntries, I as findOwnModelStepSpan, In as safeEnqueue, It as materializeState, J as withoutHeldContent, K as REPROCESS_PART_KEY, Kt as patchState, Ln as safeError, Lt as materializeWorkflowRun, M as ProcessorRunner, Mn as settledOrElapsed, N as ProcessorState, Nt as applyStateColumnsWrite, O as asJsonSchema, On as guardStreamUntilMatch, Ot as getStepResult, P as endOutputStreamSpanAtStepEnd, Pn as MastraModelInput, Pt as isStateCheckpointDue, Q as summarizeProcessorToolsForSpan, R as isTrailingAssistantGuardContinuation, Rn as createRunScope, Rt as pickStateKeys, S as getChunkProducedAt, Sn as takenQueueThreadId, St as stepRefId, T as createOutputHandler, Tn as MastraTimeoutError, Tt as templateReadsState, Ut as applyStatePatch, V as ProviderHistoryCompat, Vt as summarizeStepResult, X as summarizeProcessorModelForSpan, Y as summarizeActiveToolsForSpan, Yt as isObservationalMemoryEnabled$1, Z as summarizeProcessorResultForSpan, Zt as parseMemoryRequestContext, _ as persistProcessorDataChunk, _t as stubStepResult, a as convertFullStreamChunkToMastra, an as snapshotToolResult, at as PROCESSOR_ABORT_SIGNAL, b as resolveOutputMessageSkippingCompletionChecks, bn as pendingQueueThreadId, bt as predicateReadsState, c as WorkflowRunOutput, cn as validationErrorModelOutput, ct as getHydratedStepResult, d as MastraModelOutput, dn as resolveSuspendedToolRunId, dt as lazyStepResults, en as computeModelOutputProviderMetadata, et as resolveProcessorSpanAttributes, f as clearStepPartIndexes, fn as resolveThreadIdFromArgs, ft as loadStepResults, g as isFeedbackContinuation, gn as applyStateSignal, gt as storageV2StepResultAccessors, h as findStepPartBoundaries, hn as tryStreamWithJsonFallback, ht as residentStepResultsLoader, in as resolveModelOutputAfterToolResultProcessors, it as createProcessorSendSignal, j as OUTPUT_STREAM_HOOK_DURATION_KEY_PREFIX, jn as raceAgainstAbort, k as getResponseFormat, kn as guardStreamWithAbort, kt as getStepResultAsync, l as TripWire, ln as isProcessorWorkflow, lt as hydrateStepResults, m as findIterationOffsetInParts, mn as tryGenerateWithJsonFallback, mt as residentStepResults, nn as latestProcessedModelOutput, nt as toProcessorSpanPhase, on as withAgentWorkflowToolMarker, ot as RunJournal, p as createDestructurableOutput, pn as supportedLanguageModelSpecifications, pt as loadedStepResults, q as takeHeldParts, rn as readModelOutput, rt as PROCESSOR_LATE_SIGNAL_SINK, s as MastraAgentNetworkStream, sn as normalizeModelOutput, st as buildStepResultAccessors, tn as hasToolResultProcessor, tt as resolveProcessorSpanName, u as getModelOutputForTripwire, un as isSupportedLanguageModel, ut as isStepResultStub, v as reconcileBufferedStepTexts, vn as assertNotQueueThreadId, vt as collectMappingStepRefs, w as markChunkOutputProcessed, wn as DEADLINE_SAVE_WAIT_MS, wt as resolveTemplate, x as resolveProcessorWriterMessageId, xn as queuedQueueThreadId, xt as resolveStepOutputs, y as resolveMessageText, yn as isQueueThreadId, yt as collectPredicateStepRefs, z as needsTrailingAssistantGuard, zn as createRunScopeKey, zt as stateBaseOf } from "./stream-
|
|
7
|
+
import { $ as summarizeToolChoiceForSpan, $t as commitToolResult, A as isSignalChunkExcluded, An as isMastraTimeoutError, At as getSnapshotMemoryInfo, B as removeTrailingAssistantGuardContinuations, Bt as stateColumnsWrite, C as stampChunkProducedAt, Cn as DEADLINE_SAVE_CLAIM_HOLD_MS, D as isStructuredOutputError, Dn as getAbortReason, Dt as validateTemplate, E as escapeUnescapedControlCharsInJsonStrings, En as createTimeoutAbortSignal, Et as traverseMappingPath, F as endOutputStreamSpanOutsideStep, Fn as safeClose, Ft as latestStepResults, G as FLUSH_HELD_PARTS_KEY, Gt as diffStateAsJson, Ht as unusedStateEntries, I as findOwnModelStepSpan, In as safeEnqueue, It as materializeState, J as withoutHeldContent, K as REPROCESS_PART_KEY, Kt as patchState, Ln as safeError, Lt as materializeWorkflowRun, M as ProcessorRunner, Mn as settledOrElapsed, N as ProcessorState, Nt as applyStateColumnsWrite, O as asJsonSchema, On as guardStreamUntilMatch, Ot as getStepResult, P as endOutputStreamSpanAtStepEnd, Pn as MastraModelInput, Pt as isStateCheckpointDue, Q as summarizeProcessorToolsForSpan, R as isTrailingAssistantGuardContinuation, Rn as createRunScope, Rt as pickStateKeys, S as getChunkProducedAt, Sn as takenQueueThreadId, St as stepRefId, T as createOutputHandler, Tn as MastraTimeoutError, Tt as templateReadsState, Ut as applyStatePatch, V as ProviderHistoryCompat, Vt as summarizeStepResult, X as summarizeProcessorModelForSpan, Y as summarizeActiveToolsForSpan, Yt as isObservationalMemoryEnabled$1, Z as summarizeProcessorResultForSpan, Zt as parseMemoryRequestContext, _ as persistProcessorDataChunk, _t as stubStepResult, a as convertFullStreamChunkToMastra, an as snapshotToolResult, at as PROCESSOR_ABORT_SIGNAL, b as resolveOutputMessageSkippingCompletionChecks, bn as pendingQueueThreadId, bt as predicateReadsState, c as WorkflowRunOutput, cn as validationErrorModelOutput, ct as getHydratedStepResult, d as MastraModelOutput, dn as resolveSuspendedToolRunId, dt as lazyStepResults, en as computeModelOutputProviderMetadata, et as resolveProcessorSpanAttributes, f as clearStepPartIndexes, fn as resolveThreadIdFromArgs, ft as loadStepResults, g as isFeedbackContinuation, gn as applyStateSignal, gt as storageV2StepResultAccessors, h as findStepPartBoundaries, hn as tryStreamWithJsonFallback, ht as residentStepResultsLoader, in as resolveModelOutputAfterToolResultProcessors, it as createProcessorSendSignal, j as OUTPUT_STREAM_HOOK_DURATION_KEY_PREFIX, jn as raceAgainstAbort, k as getResponseFormat, kn as guardStreamWithAbort, kt as getStepResultAsync, l as TripWire, ln as isProcessorWorkflow, lt as hydrateStepResults, m as findIterationOffsetInParts, mn as tryGenerateWithJsonFallback, mt as residentStepResults, nn as latestProcessedModelOutput, nt as toProcessorSpanPhase, on as withAgentWorkflowToolMarker, ot as RunJournal, p as createDestructurableOutput, pn as supportedLanguageModelSpecifications, pt as loadedStepResults, q as takeHeldParts, rn as readModelOutput, rt as PROCESSOR_LATE_SIGNAL_SINK, s as MastraAgentNetworkStream, sn as normalizeModelOutput, st as buildStepResultAccessors, tn as hasToolResultProcessor, tt as resolveProcessorSpanName, u as getModelOutputForTripwire, un as isSupportedLanguageModel, ut as isStepResultStub, v as reconcileBufferedStepTexts, vn as assertNotQueueThreadId, vt as collectMappingStepRefs, w as markChunkOutputProcessed, wn as DEADLINE_SAVE_WAIT_MS, wt as resolveTemplate, x as resolveProcessorWriterMessageId, xn as queuedQueueThreadId, xt as resolveStepOutputs, y as resolveMessageText, yn as isQueueThreadId, yt as collectPredicateStepRefs, z as needsTrailingAssistantGuard, zn as createRunScopeKey, zt as stateBaseOf } from "./stream-DlzW_BXE.js";
|
|
8
8
|
import { HAND_BACK_STATE_SYMBOL, PARENT_STATE_SYMBOL, PUBSUB_SYMBOL, STREAM_FORMAT_SYMBOL, WORKFLOW_CANCELLED_SYMBOL } from "./workflows/constants.js";
|
|
9
9
|
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";
|
|
10
10
|
import { _ as resolveObservabilityContext, a as agentLoopTermination, c as compactStopReasonContext, g as createObservabilityContext, h as wrapMastra, i as subtractReportedUsage, m as unwrapMastraTracingProxy, n as extractUsageMetrics, o as executionFailureTermination, r as isUsageIncomplete, s as tripwireTermination, t as calculateObservedUsage } from "./observability-DPDWibyH.js";
|
|
@@ -13,9 +13,9 @@ import { a as getOrCreateSpan, f as resolveCurrentSpan, l as getTimeToFirstChunk
|
|
|
13
13
|
import { _ as getRequestContextInputValues, a as getModelFacingValidationError, d as validateToolOutput, g as getRequestContextInputSource, l as resolveToolOutputValidationSchema, r as createTool, u as validateToolInput } from "./tool-DIFduuTw.js";
|
|
14
14
|
import { isStandardSchemaWithJSON, standardSchemaToJSONSchema, toStandardSchema } from "./schema/index.js";
|
|
15
15
|
import { i as setSpanErrorOrigin, n as getSpanErrorOrigin } from "./error-count-BH-rJW7q.js";
|
|
16
|
-
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-
|
|
16
|
+
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-DlBS4OO7.js";
|
|
17
17
|
import { h as getWorkflowFGAResourceId, i as MastraFGAPermissions, y as requireFGA } from "./ee-iTj2bRDt-By_B9ngH.js";
|
|
18
|
-
import { c as createBackgroundTask, o as resolveBackgroundConfig, s as sanitizeToolArguments, t as generateBackgroundTaskSystemPrompt } from "./background-tasks-
|
|
18
|
+
import { c as createBackgroundTask, o as resolveBackgroundConfig, s as sanitizeToolArguments, t as generateBackgroundTaskSystemPrompt } from "./background-tasks-DJHuKMQC.js";
|
|
19
19
|
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-CRAfUe9H.js";
|
|
20
20
|
import { t as ToolStream } from "./stream-D9JOykz7.js";
|
|
21
21
|
import { a as waitDelay, i as getRetryAfterMs, n as DEFAULT_MAX_RETRY_AFTER_MS, r as clampDelayMs } from "./fetchWithRetry-DFSvpYDT.js";
|
|
@@ -23,16 +23,16 @@ import { boundedStringify, ensureSerializable, safeStringify } from "./utils/saf
|
|
|
23
23
|
import { t as deepEqual$3 } from "./deep-equal-d1xU02ag.js";
|
|
24
24
|
import { n as resolveDynamicArgument, t as getRequestUser } from "./dynamic-argument-BzPK3qPN.js";
|
|
25
25
|
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-RgFlLrxG.js";
|
|
26
|
-
import { a as ModelRouterLanguageModel, d as attachModelStreamTransport, f as isDataChunk, i as resolveModelConfig, n as ModelRouterEmbeddingModel, o as resolveApiProviderId, p as readModelStreamTransport } from "./llm-
|
|
26
|
+
import { a as ModelRouterLanguageModel, d as attachModelStreamTransport, f as isDataChunk, i as resolveModelConfig, n as ModelRouterEmbeddingModel, o as resolveApiProviderId, p as readModelStreamTransport } from "./llm-D4BaXbwZ.js";
|
|
27
27
|
import { a as withToolPayloadTransformMetadata, i as transformToolPayloadForTargets, n as hasTransformedToolPayload, o as withToolPayloadTransformProviderMetadata, r as normalizeToolPayloadTransformPolicy, t as getTransformedToolPayload } from "./payload-transform-Dj3HUeD4.js";
|
|
28
28
|
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";
|
|
29
29
|
import { h as resolveFilePartMediaTypeAndData, m as parseDataUri, o as categorizeFileData } from "./to-prompt-CMlVGYxC.js";
|
|
30
30
|
import { c as parsePartialJson, h as tool$1, m as generateId$1, p as asSchema$1, r as embed$4, u as APICallError$1 } from "./dist-TPVqg8oV.js";
|
|
31
31
|
import { n as embed$5 } from "./dist-D3cKCUe-.js";
|
|
32
32
|
import { i as hasFreeFormObject } from "./model-DS-b2R-R.js";
|
|
33
|
-
import { c as modelSupportsStructuredOutput, l as modelSupportsTemperature } from "./provider-registry-
|
|
33
|
+
import { c as modelSupportsStructuredOutput, l as modelSupportsTemperature } from "./provider-registry-BjBiRMhs.js";
|
|
34
34
|
import { t as InMemoryServerCache } from "./inmemory-BK3zLwvM.js";
|
|
35
|
-
import { t as MastraLLMV1 } from "./model-
|
|
35
|
+
import { t as MastraLLMV1 } from "./model-DafU-uar.js";
|
|
36
36
|
import { MISSING, collectInvalidPredicatePaths, createPredicateEvaluator, derivePredicateLabel, normalizePredicatePath, walk } from "./predicate/index.js";
|
|
37
37
|
import { Classifier } from "./classifier/index.js";
|
|
38
38
|
import { initContextStorage, withSpanErrorAttempt } from "./observability/context-storage.js";
|
|
@@ -86010,7 +86010,7 @@ async function prepareForDurableExecution(options) {
|
|
|
86010
86010
|
});
|
|
86011
86011
|
let tripwireData;
|
|
86012
86012
|
if (inputProcessors.length > 0) try {
|
|
86013
|
-
const { ProcessorRunner } = await import("./stream-
|
|
86013
|
+
const { ProcessorRunner } = await import("./stream-DlzW_BXE.js").then((n) => n.L);
|
|
86014
86014
|
await new ProcessorRunner({
|
|
86015
86015
|
inputProcessors,
|
|
86016
86016
|
outputProcessors,
|
package/dist/harness/index.cjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
2
|
const require_state_processor = require("../state-processor-DaSmhVUX.cjs");
|
|
3
3
|
const require_tools = require("../tools-DZoVfKPl.cjs");
|
|
4
|
-
const require_agent_controller = require("../agent-controller-
|
|
4
|
+
const require_agent_controller = require("../agent-controller-Bt7DwpZy.cjs");
|
|
5
5
|
// src/harness/index.ts
|
|
6
6
|
/**
|
|
7
7
|
* @deprecated Backwards-compatibility entrypoint.
|
package/dist/harness/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { f as taskCheckTool, h as taskWriteTool, m as taskUpdateTool, o as assignTaskIds, p as taskCompleteTool } from "../state-processor-B_KsS82m.js";
|
|
2
2
|
import { o as askUserTool, t as submitPlanTool } from "../tools-FwJyNoyg.js";
|
|
3
|
-
import { a as Session, c as defaultDisplayState, l as defaultOMProgressState, n as parseSubagentMeta, t as AgentController } from "../agent-controller-
|
|
3
|
+
import { a as Session, c as defaultDisplayState, l as defaultOMProgressState, n as parseSubagentMeta, t as AgentController } from "../agent-controller-CFNkjF3l.js";
|
|
4
4
|
// src/harness/index.ts
|
|
5
5
|
/**
|
|
6
6
|
* @deprecated Backwards-compatibility entrypoint.
|
package/dist/index.cjs
CHANGED
package/dist/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export { t as Mastra } from "./mastra-
|
|
1
|
+
export { t as Mastra } from "./mastra-CaLISVUE.js";
|
package/dist/knowledge/index.cjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
2
|
const require_base = require("../base-BIzR1D3_.cjs");
|
|
3
|
-
const require_execution_fence = require("../execution-fence-
|
|
3
|
+
const require_execution_fence = require("../execution-fence-CHI1L6Gw.cjs");
|
|
4
4
|
const require_tool = require("../tool-Dn9WSDVn.cjs");
|
|
5
5
|
const require_workspace = require("../workspace-BQD4tcQi.cjs");
|
|
6
6
|
let crypto = require("crypto");
|
package/dist/knowledge/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { t as MastraBase } from "../base-CKLWBhDo.js";
|
|
2
|
-
import { $n as MAX_KNOWLEDGE_SCOPE_TAGS, $r as InMemoryKnowledgeStorage, $t as KnowledgeLinkRepairUnsupportedError, Ai as canonicalKnowledgeName, Bt as KnowledgeRunScopesError, Ci as MAX_KNOWLEDGE_PAGE_DESCRIPTION_TOKENS, Di as MAX_KNOWLEDGE_PIN_LIST_DEPTH, Ei as MAX_KNOWLEDGE_PAGE_LIST_LIMIT, Fi as knowledgeScopeReadable, Ft as PINNED_READ_MEMO_KEY, Gt as moveKnowledgePage, Ht as knowledgeAgentScopes, Ii as parseKnowledgePageRef, Io as augmentWithInit, It as knowledgeDeliveredPins, Jt as updateKnowledgeNote, Kt as removeKnowledgeNote, Li as KnowledgeInvalidCursorError, Lo as getStorageSource, Lt as buildKnowledgePageTools, Mi as knowledgePagePath, Ni as knowledgePinDepth, Oi as assertKnowledgeNoteTextWithinBound, Pi as knowledgePositionBetween, Qn as MAX_KNOWLEDGE_RECORD_TEXT_LENGTH, Qt as KnowledgeLinkRefreshIncompleteError, Ri as KnowledgeInvalidSearchError, Rt as heldScopes, Si as MAX_KNOWLEDGE_PAGE_DEPTH, Ti as MAX_KNOWLEDGE_PAGE_LINK_REF_LENGTH, Ut as knowledgePersonaScopes, Vt as knowledgeRunPrincipals, Wt as addKnowledgeNote, Xt as KnowledgeSemanticIndex, Yt as upsertKnowledgePage, Zn as MAX_KNOWLEDGE_NODE_DESCRIPTION_LENGTH, _i as KnowledgePageHasChildrenError, _n as decodeKnowledgeScopeId, ai as KnowledgeConflictError, an as repairKnowledgeLinks, ar as createKnowledgeNodeCursor, bi as MAX_KNOWLEDGE_NOTE_TOKENS, ci as KnowledgeStorage, cn as knowledgeAccessGrants, cr as knowledgeScopeKey, di as assertKnowledgeSchemaCompatible, dn as KnowledgeDeclarationError, dr as knowledgeVisibleScopeKeys, ei as KnowledgeImporterBindingConflictError, en as MAX_KNOWLEDGE_LINK_REPAIR_SOURCES, er as assertKnowledgeCeilingRaised, fi as createKnowledgeUlid, fn as compileKnowledgeScopes, fr as parseKnowledgeNodeCursor, gi as KnowledgePageDepthError, gn as strongerKnowledgeRole, hi as KnowledgeMoveTooLargeError, hn as knowledgeScopeAddress, ii as KNOWLEDGE_STORAGE_SCHEMA_VERSION, in as reindexKnowledgeLinks, ir as canonicalizeKnowledgeScope, ji as knowledgeLinkRefKey, ki as assertKnowledgePageDescriptionWithinBound, li as KnowledgeTransactionDeadlineError, ln as knowledgeReadScopeFor, lr as knowledgeSemanticDocumentId, mi as parseKnowledgeWikilinks, mn as knowledgeRunScopes, ni as KnowledgeImportersStorage, nn as knowledgeSubtree, nr as assertKnowledgeRecordTextWithinBound, oi as KnowledgeNotFoundError, on as syncKnowledgePageBodyLinks, or as expandKnowledgeScope, pi as inspectKnowledgeSchema, pn as knowledgeMemoryScopes, qt as removeKnowledgePage, ri as KNOWLEDGE_STORAGE_CONTRACT_VERSION, rn as refreshKnowledgeLinksTo, rr as assertKnowledgeScopeWithinCeiling, si as KnowledgeSchemaResetRequiredError, sn as updateKnowledgeLinks, sr as isKnowledgeScopeVisible, ti as KnowledgeImporterRunStateError, tn as canRepairKnowledgeLinksInBatch, tr as assertKnowledgeDescriptionWithinBound, ui as KnowledgeUnsupportedCapabilityError, un as knowledgeRoleOn, ur as knowledgeSemanticIdempotencyKey, vi as KnowledgePageKeyConflictError, vn as encodeKnowledgeScopeId, wi as MAX_KNOWLEDGE_PAGE_LINKS, xi as MAX_KNOWLEDGE_PAGE_BODY_LINKS, yi as MAX_KNOWLEDGE_MOVE_PAGES, yn as buildKnowledgeInstructions, zi as knowledgePageKeyProblem, zt as KnowledgeRun } from "../execution-fence-
|
|
2
|
+
import { $n as MAX_KNOWLEDGE_SCOPE_TAGS, $r as InMemoryKnowledgeStorage, $t as KnowledgeLinkRepairUnsupportedError, Ai as canonicalKnowledgeName, Bt as KnowledgeRunScopesError, Ci as MAX_KNOWLEDGE_PAGE_DESCRIPTION_TOKENS, Di as MAX_KNOWLEDGE_PIN_LIST_DEPTH, Ei as MAX_KNOWLEDGE_PAGE_LIST_LIMIT, Fi as knowledgeScopeReadable, Ft as PINNED_READ_MEMO_KEY, Gt as moveKnowledgePage, Ht as knowledgeAgentScopes, Ii as parseKnowledgePageRef, Io as augmentWithInit, It as knowledgeDeliveredPins, Jt as updateKnowledgeNote, Kt as removeKnowledgeNote, Li as KnowledgeInvalidCursorError, Lo as getStorageSource, Lt as buildKnowledgePageTools, Mi as knowledgePagePath, Ni as knowledgePinDepth, Oi as assertKnowledgeNoteTextWithinBound, Pi as knowledgePositionBetween, Qn as MAX_KNOWLEDGE_RECORD_TEXT_LENGTH, Qt as KnowledgeLinkRefreshIncompleteError, Ri as KnowledgeInvalidSearchError, Rt as heldScopes, Si as MAX_KNOWLEDGE_PAGE_DEPTH, Ti as MAX_KNOWLEDGE_PAGE_LINK_REF_LENGTH, Ut as knowledgePersonaScopes, Vt as knowledgeRunPrincipals, Wt as addKnowledgeNote, Xt as KnowledgeSemanticIndex, Yt as upsertKnowledgePage, Zn as MAX_KNOWLEDGE_NODE_DESCRIPTION_LENGTH, _i as KnowledgePageHasChildrenError, _n as decodeKnowledgeScopeId, ai as KnowledgeConflictError, an as repairKnowledgeLinks, ar as createKnowledgeNodeCursor, bi as MAX_KNOWLEDGE_NOTE_TOKENS, ci as KnowledgeStorage, cn as knowledgeAccessGrants, cr as knowledgeScopeKey, di as assertKnowledgeSchemaCompatible, dn as KnowledgeDeclarationError, dr as knowledgeVisibleScopeKeys, ei as KnowledgeImporterBindingConflictError, en as MAX_KNOWLEDGE_LINK_REPAIR_SOURCES, er as assertKnowledgeCeilingRaised, fi as createKnowledgeUlid, fn as compileKnowledgeScopes, fr as parseKnowledgeNodeCursor, gi as KnowledgePageDepthError, gn as strongerKnowledgeRole, hi as KnowledgeMoveTooLargeError, hn as knowledgeScopeAddress, ii as KNOWLEDGE_STORAGE_SCHEMA_VERSION, in as reindexKnowledgeLinks, ir as canonicalizeKnowledgeScope, ji as knowledgeLinkRefKey, ki as assertKnowledgePageDescriptionWithinBound, li as KnowledgeTransactionDeadlineError, ln as knowledgeReadScopeFor, lr as knowledgeSemanticDocumentId, mi as parseKnowledgeWikilinks, mn as knowledgeRunScopes, ni as KnowledgeImportersStorage, nn as knowledgeSubtree, nr as assertKnowledgeRecordTextWithinBound, oi as KnowledgeNotFoundError, on as syncKnowledgePageBodyLinks, or as expandKnowledgeScope, pi as inspectKnowledgeSchema, pn as knowledgeMemoryScopes, qt as removeKnowledgePage, ri as KNOWLEDGE_STORAGE_CONTRACT_VERSION, rn as refreshKnowledgeLinksTo, rr as assertKnowledgeScopeWithinCeiling, si as KnowledgeSchemaResetRequiredError, sn as updateKnowledgeLinks, sr as isKnowledgeScopeVisible, ti as KnowledgeImporterRunStateError, tn as canRepairKnowledgeLinksInBatch, tr as assertKnowledgeDescriptionWithinBound, ui as KnowledgeUnsupportedCapabilityError, un as knowledgeRoleOn, ur as knowledgeSemanticIdempotencyKey, vi as KnowledgePageKeyConflictError, vn as encodeKnowledgeScopeId, wi as MAX_KNOWLEDGE_PAGE_LINKS, xi as MAX_KNOWLEDGE_PAGE_BODY_LINKS, yi as MAX_KNOWLEDGE_MOVE_PAGES, yn as buildKnowledgeInstructions, zi as knowledgePageKeyProblem, zt as KnowledgeRun } from "../execution-fence-P1uj8uB8.js";
|
|
3
3
|
import { standardSchemaToJSONSchema, toStandardSchema } from "../schema/index.js";
|
|
4
4
|
import { i as createStandardSchemaIssuesError } from "../tool-DIFduuTw.js";
|
|
5
5
|
import { mt as estimateTokenCount } from "../workspace-sqcfdZRR.js";
|
package/dist/llm/index.cjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
-
const require_llm = require("../llm-
|
|
3
|
-
const require_netlify = require("../netlify-
|
|
4
|
-
const require_provider_registry = require("../provider-registry-
|
|
2
|
+
const require_llm = require("../llm-DqcaZBHM.cjs");
|
|
3
|
+
const require_netlify = require("../netlify-1Nz6N3ej.cjs");
|
|
4
|
+
const require_provider_registry = require("../provider-registry-D_cE6sCW.cjs");
|
|
5
5
|
exports.AzureOpenAIGateway = require_llm.AzureOpenAIGateway;
|
|
6
6
|
exports.EMBEDDING_MODELS = require_llm.EMBEDDING_MODELS;
|
|
7
7
|
exports.GATEWAY_AUTH_HEADER = require_netlify.GATEWAY_AUTH_HEADER;
|
package/dist/llm/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a as ModelRouterLanguageModel, c as AzureOpenAIGateway, i as resolveModelConfig, l as defaultGateways, n as ModelRouterEmbeddingModel, r as resolveModelAuth, t as EMBEDDING_MODELS } from "../llm-
|
|
2
|
-
import { d as GATEWAY_AUTH_HEADER, g as getGatewayId, h as findGatewayForModel, r as ModelsDevGateway, t as NetlifyGateway, x as MastraModelGateway } from "../netlify-
|
|
3
|
-
import { c as modelSupportsStructuredOutput, f as MastraGateway, i as getProviderConfig, l as modelSupportsTemperature, n as PROVIDER_REGISTRY, r as getModelReasoningOptions, s as modelSupportsAttachments, t as GatewayRegistry, u as parseModelString } from "../provider-registry-
|
|
1
|
+
import { a as ModelRouterLanguageModel, c as AzureOpenAIGateway, i as resolveModelConfig, l as defaultGateways, n as ModelRouterEmbeddingModel, r as resolveModelAuth, t as EMBEDDING_MODELS } from "../llm-D4BaXbwZ.js";
|
|
2
|
+
import { d as GATEWAY_AUTH_HEADER, g as getGatewayId, h as findGatewayForModel, r as ModelsDevGateway, t as NetlifyGateway, x as MastraModelGateway } from "../netlify-CUG0Ko81.js";
|
|
3
|
+
import { c as modelSupportsStructuredOutput, f as MastraGateway, i as getProviderConfig, l as modelSupportsTemperature, n as PROVIDER_REGISTRY, r as getModelReasoningOptions, s as modelSupportsAttachments, t as GatewayRegistry, u as parseModelString } from "../provider-registry-BjBiRMhs.js";
|
|
4
4
|
export { AzureOpenAIGateway, EMBEDDING_MODELS, GATEWAY_AUTH_HEADER, GatewayRegistry, MastraGateway, MastraModelGateway, ModelRouterEmbeddingModel, ModelRouterLanguageModel, ModelsDevGateway, NetlifyGateway, PROVIDER_REGISTRY, defaultGateways, findGatewayForModel, getGatewayId, getModelReasoningOptions, getProviderConfig, modelSupportsAttachments, modelSupportsStructuredOutput, modelSupportsTemperature, parseModelString, resolveModelAuth, resolveModelConfig };
|
|
@@ -1,2 +1,4 @@
|
|
|
1
|
-
export declare function interpolateUrlTemplate(url: string, envVars?: typeof process.env
|
|
1
|
+
export declare function interpolateUrlTemplate(url: string, envVars?: typeof process.env, { rejectBlank }?: {
|
|
2
|
+
rejectBlank?: boolean | undefined;
|
|
3
|
+
}): string;
|
|
2
4
|
//# sourceMappingURL=url-template.d.ts.map
|