@mastra/core 1.87.0-alpha.8 → 1.87.0-alpha.9
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-CrEpnHiS.cjs → agent-controller-ZCQy7cOG.cjs} +5 -5
- package/dist/{agent-controller-C4zDemm6.js → agent-controller-fazk0U_b.js} +5 -5
- package/dist/background-tasks/index.cjs +1 -1
- package/dist/background-tasks/index.js +1 -1
- package/dist/{background-tasks-Co3gtkk9.cjs → background-tasks-B63welNM.cjs} +1 -1
- package/dist/{background-tasks-DKY9-67c.js → background-tasks-DlLB_pJR.js} +1 -1
- package/dist/browser/index.cjs +1 -1
- package/dist/browser/index.js +1 -1
- package/dist/{builder-ntKskSX0.js → builder-D82iR2oQ.js} +2 -2
- package/dist/{builder-DSyz2DUR.cjs → builder-DCaL4xmU.cjs} +2 -2
- package/dist/capabilities/302ai.json +206 -206
- package/dist/capabilities/abliteratedllm.json +43 -34
- package/dist/capabilities/abliteration-ai.json +6 -6
- package/dist/capabilities/above.json +25 -25
- package/dist/capabilities/adaption.json +13 -13
- package/dist/capabilities/adzuki.json +23 -23
- package/dist/capabilities/agentrouter.json +8 -8
- package/dist/capabilities/ai-router.json +5 -5
- package/dist/capabilities/aiand.json +21 -21
- package/dist/capabilities/aigrow.json +13 -13
- package/dist/capabilities/aimlapi.json +151 -151
- package/dist/capabilities/aipg.json +2 -2
- package/dist/capabilities/aixy.json +24 -24
- package/dist/capabilities/aki-io.json +16 -16
- package/dist/capabilities/alibaba-cn.json +89 -89
- 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 +53 -53
- package/dist/capabilities/alibaba-token-plan.json +52 -52
- package/dist/capabilities/alibaba.json +67 -67
- package/dist/capabilities/ambient.json +15 -15
- package/dist/capabilities/amd.json +8 -8
- package/dist/capabilities/anthropic.json +50 -50
- package/dist/capabilities/anyapi.json +47 -47
- package/dist/capabilities/apiko.json +4 -4
- package/dist/capabilities/arcee.json +10 -10
- package/dist/capabilities/augure.json +5 -5
- package/dist/capabilities/auriko.json +17 -17
- package/dist/capabilities/bailing.json +4 -4
- package/dist/capabilities/baseten.json +27 -27
- package/dist/capabilities/bee.json +4 -4
- package/dist/capabilities/berget.json +18 -5
- package/dist/capabilities/bothub.json +14 -14
- package/dist/capabilities/boundless.json +39 -39
- package/dist/capabilities/bumo.json +42 -42
- package/dist/capabilities/byteplus.json +27 -27
- package/dist/capabilities/cheapaimodel.json +9 -9
- package/dist/capabilities/cheapest-token.json +32 -32
- package/dist/capabilities/chutes.json +8 -8
- package/dist/capabilities/clarifai.json +2 -2
- package/dist/capabilities/claudinio.json +10 -1
- package/dist/capabilities/cline-pass.json +38 -38
- package/dist/capabilities/cloudcode.json +11 -18
- package/dist/capabilities/cloudflare-workers-ai.json +16 -16
- package/dist/capabilities/commandcode.json +141 -141
- package/dist/capabilities/concentrate.json +280 -280
- package/dist/capabilities/cortecs.json +104 -104
- package/dist/capabilities/crossmodel.json +190 -190
- package/dist/capabilities/crusoe.json +35 -6
- package/dist/capabilities/daoxe.json +8 -8
- package/dist/capabilities/databricks.json +127 -127
- package/dist/capabilities/deepinfra.json +87 -87
- package/dist/capabilities/deepseek.json +3 -3
- package/dist/capabilities/digitalocean.json +116 -116
- package/dist/capabilities/dothoosh.json +34 -34
- package/dist/capabilities/doubleword.json +24 -24
- package/dist/capabilities/edenai.json +283 -279
- package/dist/capabilities/empiriolabs.json +168 -168
- package/dist/capabilities/engy.json +19 -19
- package/dist/capabilities/entrim.json +4 -4
- package/dist/capabilities/evroc.json +19 -19
- package/dist/capabilities/ezkielyna.json +10 -10
- package/dist/capabilities/fastrouter.json +90 -90
- package/dist/capabilities/fireworks-ai.json +85 -85
- package/dist/capabilities/fortytwo.json +9 -3
- package/dist/capabilities/freemodel.json +17 -17
- package/dist/capabilities/friendli.json +8 -8
- package/dist/capabilities/frogbot.json +89 -89
- package/dist/capabilities/gisoo.json +19 -19
- package/dist/capabilities/gmicloud.json +20 -20
- package/dist/capabilities/google.json +58 -58
- package/dist/capabilities/graphn.json +15 -15
- package/dist/capabilities/greenpt.json +35 -35
- package/dist/capabilities/groq.json +9 -9
- package/dist/capabilities/helicone.json +75 -75
- package/dist/capabilities/hetzner.json +35 -3
- package/dist/capabilities/hostinger-router.json +14 -14
- package/dist/capabilities/hpc-ai.json +12 -12
- package/dist/capabilities/huawei-maas.json +15 -15
- package/dist/capabilities/hubris.json +23 -23
- package/dist/capabilities/huggingface.json +94 -80
- package/dist/capabilities/humain.json +2 -2
- package/dist/capabilities/hyper.json +23 -23
- package/dist/capabilities/impossibl.json +164 -164
- package/dist/capabilities/inception.json +3 -3
- package/dist/capabilities/inceptron.json +2 -2
- package/dist/capabilities/inco.json +5 -5
- package/dist/capabilities/infer.json +17 -17
- package/dist/capabilities/inferall.json +12 -12
- package/dist/capabilities/inference-coop.json +12 -12
- package/dist/capabilities/inferenceapis.json +19 -19
- package/dist/capabilities/inferris.json +2 -2
- package/dist/capabilities/infersia.json +10 -10
- package/dist/capabilities/inferx.json +3 -3
- package/dist/capabilities/infomaniak.json +4 -4
- package/dist/capabilities/io-net.json +2 -2
- package/dist/capabilities/isoquant.json +4 -4
- package/dist/capabilities/iteracompute.json +60 -60
- package/dist/capabilities/jad-ai.json +2 -2
- package/dist/capabilities/jalapeno.json +10 -10
- package/dist/capabilities/jiekou.json +60 -60
- package/dist/capabilities/jzstoken.json +52 -53
- package/dist/capabilities/keln.json +18 -18
- package/dist/capabilities/kenari.json +125 -125
- package/dist/capabilities/kilo.json +631 -631
- package/dist/capabilities/kimi-code-plan-cn.json +6 -6
- package/dist/capabilities/kimi-code-plan-global.json +6 -6
- package/dist/capabilities/kitani.json +6 -6
- package/dist/capabilities/klavo.json +24 -24
- package/dist/capabilities/korouter.json +31 -31
- package/dist/capabilities/kunavo.json +6 -6
- package/dist/capabilities/liquid.json +10 -10
- package/dist/capabilities/lithosai.json +3 -3
- package/dist/capabilities/llmgateway-providers.json +919 -919
- package/dist/capabilities/llmgateway.json +341 -341
- package/dist/capabilities/llmtr.json +27 -27
- package/dist/capabilities/logits.json +2 -2
- package/dist/capabilities/lowrouter.json +63 -63
- package/dist/capabilities/lyceum.json +19 -11
- package/dist/capabilities/melious.json +10 -10
- package/dist/capabilities/merge-gateway.json +285 -284
- package/dist/capabilities/meta.json +8 -8
- package/dist/capabilities/minimax-cn-coding-plan.json +6 -6
- package/dist/capabilities/minimax-coding-plan.json +6 -6
- package/dist/capabilities/mistral.json +19 -19
- package/dist/capabilities/mixlayer.json +3 -3
- package/dist/capabilities/modal.json +10 -10
- package/dist/capabilities/model-oracle-ai.json +26 -26
- package/dist/capabilities/modelis.json +13 -13
- package/dist/capabilities/modular.json +26 -4
- package/dist/capabilities/moneo.json +14 -14
- package/dist/capabilities/moonshotai-cn.json +5 -5
- package/dist/capabilities/moonshotai.json +5 -5
- package/dist/capabilities/morph.json +14 -14
- package/dist/capabilities/munito-eu.json +4 -4
- package/dist/capabilities/munito.json +4 -4
- package/dist/capabilities/nan.json +24 -24
- package/dist/capabilities/nano-gpt.json +583 -582
- package/dist/capabilities/nearai.json +110 -110
- package/dist/capabilities/nebius.json +24 -24
- package/dist/capabilities/neon.json +125 -125
- package/dist/capabilities/neuralwatt.json +42 -42
- package/dist/capabilities/novita-ai.json +133 -133
- package/dist/capabilities/nvidia.json +41 -24
- package/dist/capabilities/oathbreaker.json +24 -1
- package/dist/capabilities/obscurify.json +32 -32
- package/dist/capabilities/oci.json +8 -8
- package/dist/capabilities/ofox.json +383 -383
- package/dist/capabilities/ollama-cloud.json +60 -60
- package/dist/capabilities/openai.json +59 -59
- package/dist/capabilities/opencode-go.json +85 -85
- package/dist/capabilities/openreason.json +4 -4
- package/dist/capabilities/openrouter.json +543 -543
- package/dist/capabilities/opper.json +26 -26
- package/dist/capabilities/orcarouter.json +233 -233
- package/dist/capabilities/outerlabs.json +31 -31
- package/dist/capabilities/ovhcloud.json +19 -19
- package/dist/capabilities/pareto.json +5 -5
- package/dist/capabilities/pendra.json +4 -4
- package/dist/capabilities/perplexity-agent.json +60 -60
- package/dist/capabilities/perplexity.json +2 -2
- package/dist/capabilities/phala.json +35 -35
- package/dist/capabilities/pioneer.json +23 -23
- package/dist/capabilities/poe.json +110 -110
- package/dist/capabilities/poolside.json +3 -3
- package/dist/capabilities/powerspring.json +10 -10
- package/dist/capabilities/primalabs.json +8 -8
- package/dist/capabilities/prime.json +115 -115
- package/dist/capabilities/privatemode-ai.json +9 -9
- package/dist/capabilities/proxystacks.json +5 -5
- package/dist/capabilities/qiniu-ai.json +13 -13
- package/dist/capabilities/refuseless.json +7 -7
- package/dist/capabilities/regolo-ai.json +10 -10
- package/dist/capabilities/requesty.json +196 -196
- package/dist/capabilities/ruapi.json +38 -22
- package/dist/capabilities/runcrate.json +10 -10
- package/dist/capabilities/runinfra.json +9 -9
- package/dist/capabilities/sakana.json +2 -2
- package/dist/capabilities/sambanova.json +5 -5
- package/dist/capabilities/sandbase.json +18 -18
- package/dist/capabilities/sarvam.json +9 -9
- package/dist/capabilities/scaleway.json +19 -19
- package/dist/capabilities/scnet-token-plan.json +9 -9
- package/dist/capabilities/scx-ai.json +28 -28
- package/dist/capabilities/sensenova.json +15 -15
- package/dist/capabilities/siliconflow-cn.json +54 -54
- package/dist/capabilities/siliconflow.json +56 -56
- package/dist/capabilities/snowflake-cortex.json +20 -20
- package/dist/capabilities/sokkan.json +10 -10
- package/dist/capabilities/sparrowcodes.json +20 -20
- package/dist/capabilities/standardcompute.json +103 -103
- package/dist/capabilities/steadyrouter.json +39 -39
- package/dist/capabilities/stepfun-ai-step-plan.json +5 -5
- package/dist/capabilities/stepfun-ai.json +5 -5
- package/dist/capabilities/stepfun-step-plan.json +5 -5
- package/dist/capabilities/stepfun.json +5 -5
- package/dist/capabilities/stepping-stone.json +17 -17
- package/dist/capabilities/synthetic.json +12 -12
- package/dist/capabilities/synthorai.json +25 -25
- package/dist/capabilities/teamorouter.json +23 -23
- package/dist/capabilities/teapot-router.json +11 -11
- package/dist/capabilities/tencent-token-plan-intl.json +24 -24
- package/dist/capabilities/tencent-token-plan.json +41 -41
- package/dist/capabilities/tencent-tokenhub.json +53 -53
- package/dist/capabilities/tensorx.json +46 -46
- package/dist/capabilities/tenstorrent.json +6 -6
- package/dist/capabilities/the-grid-ai.json +37 -37
- package/dist/capabilities/thinkingmachines.json +78 -78
- package/dist/capabilities/tinfoil.json +13 -13
- package/dist/capabilities/togetherai.json +45 -45
- package/dist/capabilities/tokengo.json +24 -24
- package/dist/capabilities/tokenify.json +9 -9
- package/dist/capabilities/tokenwatt.json +10 -2
- package/dist/capabilities/trustedrouter.json +6 -6
- package/dist/capabilities/trustedtokens.json +16 -16
- package/dist/capabilities/umans-ai-coding-plan.json +15 -15
- package/dist/capabilities/umans-ai.json +14 -14
- package/dist/capabilities/uncensuredai.json +2 -2
- package/dist/capabilities/unrestricted.json +6 -6
- package/dist/capabilities/uplinkswitch.json +23 -23
- package/dist/capabilities/upstage.json +7 -7
- package/dist/capabilities/vancine.json +23 -23
- package/dist/capabilities/vercel.json +563 -562
- package/dist/capabilities/vivgrid.json +86 -77
- package/dist/capabilities/volcengine-coding-plan.json +28 -28
- package/dist/capabilities/volcengine.json +22 -22
- package/dist/capabilities/vultr.json +34 -34
- package/dist/capabilities/wafer.ai.json +21 -21
- package/dist/capabilities/wally.json +12 -12
- package/dist/capabilities/wandb.json +19 -19
- package/dist/capabilities/watt.json +24 -24
- package/dist/capabilities/xai.json +7 -7
- 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 +13 -13
- package/dist/capabilities/xxapi.json +30 -30
- package/dist/capabilities/zai-coding-plan.json +10 -10
- package/dist/capabilities/zai.json +31 -31
- package/dist/capabilities/zenifra.json +28 -28
- package/dist/capabilities/zenmux.json +196 -196
- package/dist/capabilities/zerogpu.json +13 -13
- package/dist/capabilities/zhipuai-coding-plan.json +7 -7
- package/dist/capabilities/zhipuai.json +28 -28
- package/dist/capabilities/zro.json +5 -5
- package/dist/channels/index.cjs +2 -2
- package/dist/channels/index.js +2 -2
- package/dist/{channels-CO1XGZll.cjs → channels-BXZbY7TL.cjs} +1 -1
- package/dist/{channels-EtP7uAxI.js → channels-Bs8wDPDl.js} +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 +678 -678
- package/dist/docs/references/docs-browser.md +3 -1
- package/dist/docs/references/integrations.md +1 -0
- package/dist/docs/references/reference-processors-tool-search-processor.md +3 -3
- 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 +8287 -8253
- package/dist/{llm-CCrVS2x2.js → llm-9xmy8HlF.js} +2 -2
- package/dist/{llm-BFX_NqOg.cjs → llm-ypGNjEom.cjs} +2 -2
- package/dist/loop/index.cjs +2 -2
- package/dist/loop/index.js +2 -2
- package/dist/{manager-UMKLXQfC.js → manager-B-QrBhhd.js} +2 -2
- package/dist/{manager-thZrFty9.cjs → manager-CYXV5_vY.cjs} +2 -2
- package/dist/mastra/index.cjs +1 -1
- package/dist/mastra/index.js +1 -1
- package/dist/{mastra-BIFCuq8a.js → mastra-DPSwJ5ae.js} +16 -16
- package/dist/{mastra-Dum21R9e.cjs → mastra-zszeli0N.cjs} +16 -16
- package/dist/memory/index.cjs +2 -2
- package/dist/memory/index.js +2 -2
- package/dist/{model-ylucqLzJ.js → model-UYJb8Zel.js} +1 -1
- package/dist/{model-BSJM-uPh.cjs → model-WLujr8OR.cjs} +1 -1
- package/dist/{netlify-Dwaz8kVT.js → netlify-DTWAZGpA.js} +1 -1
- package/dist/{netlify-DlmO_1PJ.cjs → netlify-wZafLKoe.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/processors/tool-search.d.ts +2 -2
- package/dist/{provider-registry-BPAmstg2.cjs → provider-registry-BvpUdOiq.cjs} +21669 -21597
- package/dist/{provider-registry-BmJ_yV84.js → provider-registry-COT79RLh.js} +21669 -21597
- package/dist/provider-registry.json +22367 -22305
- package/dist/{registry-generator-BJvpKeLl.js → registry-generator-BKjTPD6B.js} +1 -1
- package/dist/{registry-generator-BDMF_ksT.cjs → registry-generator-Dn1Tuacv.cjs} +1 -1
- package/dist/{rehydrate-BxSMnG8L.js → rehydrate-BK1v65H7.js} +2 -2
- package/dist/{rehydrate-BLx0h6x3.cjs → rehydrate-C0xrJUBu.cjs} +2 -2
- package/dist/relevance/index.cjs +2 -2
- package/dist/relevance/index.js +2 -2
- package/dist/{run-registry-Bs0kCDZZ.js → run-registry-DKiudqVU.js} +38 -25
- package/dist/{run-registry-BjGLELnz.cjs → run-registry-DX_EyboB.cjs} +38 -25
- 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-DdF6q5TA.js → stream-B4LzC6Sz.js} +1 -1
- package/dist/{stream-DiZTdV_p.cjs → stream-BmtBm_-L.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-ACOMyW_5.cjs → tool-loop-agent-BIbw3quM.cjs} +3 -3
- package/dist/{tool-loop-agent-DLsAaJ2M.js → tool-loop-agent-CR2AgmkF.js} +3 -3
- package/dist/{utils-DUTHqSao.js → utils-BnG4bq6k.js} +1 -1
- package/dist/{utils-C68cIPq9.cjs → utils-D2Bj0C2E.cjs} +1 -1
- package/dist/utils.cjs +1 -1
- package/dist/utils.js +1 -1
- package/dist/{validate-DB0f9rHc.cjs → validate-BxgKlbt7.cjs} +1 -1
- package/dist/{validate-Di90-o2o.js → validate-DHEGALaE.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-BJXBb4t7.js → worker-1lHN6hT1.js} +2 -2
- package/dist/{worker-_e7Td4xZ.cjs → worker-BRKHC9hv.cjs} +2 -2
- package/dist/{worker-DCjlSDNL.js → worker-C-xoXGOt.js} +2 -2
- package/dist/{worker-BuvCA4E5.cjs → worker-DYBrWSDX.cjs} +2 -2
- package/dist/{workflow-BLs4Y-pr.js → workflow-79JneaJP.js} +3 -3
- package/dist/{workflow-DqDzCAZR.cjs → workflow-DGRDgyhs.cjs} +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 +8287 -8253
|
@@ -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-DTWAZGpA.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-wZafLKoe.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 { Ac as predicateToCondition, Bs as cloneWorkflow, Hs as createWorkflow, Qc as createStepFromTool, Vs as createEventedWorkflow, Xc as createStepFromAgent, fl as getSingleStepEntryId, kc as mapVariable } from "./run-registry-
|
|
1
|
+
import { Ac as predicateToCondition, Bs as cloneWorkflow, Hs as createWorkflow, Qc as createStepFromTool, Vs as createEventedWorkflow, Xc as createStepFromAgent, fl as getSingleStepEntryId, kc as mapVariable } from "./run-registry-DKiudqVU.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-DHEGALaE.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-DX_EyboB.cjs");
|
|
2
2
|
const require_predicate_index = require("./predicate/index.cjs");
|
|
3
|
-
const require_validate = require("./validate-
|
|
3
|
+
const require_validate = require("./validate-BxgKlbt7.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-DX_EyboB.cjs");
|
|
3
|
+
const require_stream = require("../stream-BmtBm_-L.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 { F as Agent } from "../run-registry-
|
|
2
|
-
import { ln as isSupportedLanguageModel } from "../stream-
|
|
1
|
+
import { F as Agent } from "../run-registry-DKiudqVU.js";
|
|
2
|
+
import { ln as isSupportedLanguageModel } from "../stream-B4LzC6Sz.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 @@ 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-B4LzC6Sz.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-9xmy8HlF.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-COT79RLh.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-UYJb8Zel.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-BnG4bq6k.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-DlLB_pJR.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";
|
|
@@ -30369,19 +30369,24 @@ var ToolSearchProcessor = class {
|
|
|
30369
30369
|
});
|
|
30370
30370
|
}
|
|
30371
30371
|
async processInputStep(args) {
|
|
30372
|
-
const { tools, messageList } = args;
|
|
30372
|
+
const { tools, messageList, activeTools } = args;
|
|
30373
30373
|
const catalog = this.catalogForStep(tools);
|
|
30374
30374
|
const storeContext = this.makeStoreContext(args);
|
|
30375
30375
|
const loadedToolNames = await this.store.getLoadedNames(storeContext);
|
|
30376
30376
|
const autoLoad = this.searchConfig.autoLoad;
|
|
30377
|
-
|
|
30378
|
-
|
|
30377
|
+
const searchAvailable = !activeTools || activeTools.includes("search_tools");
|
|
30378
|
+
const loadAvailable = !autoLoad && (!activeTools || activeTools.includes("load_tool"));
|
|
30379
|
+
const instructionParts = [];
|
|
30380
|
+
if (searchAvailable) instructionParts.push(autoLoad ? "To discover available tools, call search_tools with a keyword query. Matching tools are loaded automatically and become available on your next turn \u2014 there is no separate load step. After searching, use the tool directly." : "To discover available tools, call search_tools with a keyword query.");
|
|
30381
|
+
if (loadAvailable) instructionParts.push("To add one or more tools to the conversation, call load_tool with a toolName or toolNames array. Tools must be loaded before they can be used.");
|
|
30382
|
+
if (instructionParts.length > 0) messageList.addSystem(instructionParts.join(" "));
|
|
30383
|
+
if (this.injectCatalog && (autoLoad ? searchAvailable : loadAvailable)) {
|
|
30379
30384
|
const catalogList = await this.formatCatalog(catalog, args.requestContext);
|
|
30380
|
-
if (catalogList) messageList.addSystem((autoLoad ? "The following tools are available. Call search_tools with a keyword to load one \u2014 matching tools are loaded automatically and become available on your next turn." : "The following tools are available to load. Call load_tool with a toolName or toolNames array to add one or more before using them \u2014 no search step is required. search_tools is also available if you need to rediscover tools by keyword.") + "\n\nAvailable tools:\n" + catalogList);
|
|
30385
|
+
if (catalogList) messageList.addSystem((autoLoad ? "The following tools are available. Call search_tools with a keyword to load one \u2014 matching tools are loaded automatically and become available on your next turn." : "The following tools are available to load. Call load_tool with a toolName or toolNames array to add one or more before using them \u2014 no search step is required." + (searchAvailable ? " search_tools is also available if you need to rediscover tools by keyword." : "")) + "\n\nAvailable tools:\n" + catalogList);
|
|
30381
30386
|
}
|
|
30382
30387
|
const searchTool = createTool({
|
|
30383
30388
|
id: "search_tools",
|
|
30384
|
-
description: autoLoad ? "Search for available tools by keyword. Use this when you need a capability you don't currently have. Returns a list of matching tools, which are loaded automatically and become available on your next turn \u2014 no separate load step is required." : "Search for available tools by keyword. Use this when you need a capability you don't currently have. Returns a list of matching tools with their names and descriptions. After finding a useful tool, use load_tool to make it available.",
|
|
30389
|
+
description: autoLoad ? "Search for available tools by keyword. Use this when you need a capability you don't currently have. Returns a list of matching tools, which are loaded automatically and become available on your next turn \u2014 no separate load step is required." : "Search for available tools by keyword. Use this when you need a capability you don't currently have. Returns a list of matching tools with their names and descriptions." + (loadAvailable ? " After finding a useful tool, use load_tool to make it available." : ""),
|
|
30385
30390
|
inputSchema: z.object({ query: z.string().describe("Search keywords (e.g., \"weather\", \"github issue\", \"database query\")") }),
|
|
30386
30391
|
outputSchema: z.object({
|
|
30387
30392
|
results: z.array(z.object({
|
|
@@ -30411,13 +30416,13 @@ var ToolSearchProcessor = class {
|
|
|
30411
30416
|
}
|
|
30412
30417
|
return {
|
|
30413
30418
|
results,
|
|
30414
|
-
message: `Found ${results.length} tool(s). Use load_tool with an exact toolName or a toolNames array to make them available.`
|
|
30419
|
+
message: loadAvailable ? `Found ${results.length} tool(s). Use load_tool with an exact toolName or a toolNames array to make them available.` : `Found ${results.length} tool(s): ${results.map((r) => r.name).join(", ")}.`
|
|
30415
30420
|
};
|
|
30416
30421
|
}
|
|
30417
30422
|
});
|
|
30418
30423
|
const loadTool = createTool({
|
|
30419
30424
|
id: "load_tool",
|
|
30420
|
-
description: "Load one or more tools into your context. Call this after finding tools with search_tools. Once loaded, tools will be available for use. Pass a single toolName or an array of toolNames to load multiple tools at once.",
|
|
30425
|
+
description: "Load one or more tools into your context. " + (searchAvailable ? "Call this after finding tools with search_tools. " : "") + "Once loaded, tools will be available for use. Pass a single toolName or an array of toolNames to load multiple tools at once.",
|
|
30421
30426
|
inputSchema: z.object({
|
|
30422
30427
|
toolName: z.string().optional().describe("The exact name of a tool to load (from search results)"),
|
|
30423
30428
|
toolNames: z.array(z.string()).optional().describe("Array of exact tool names to load in one call (from search results)")
|
|
@@ -30474,7 +30479,7 @@ var ToolSearchProcessor = class {
|
|
|
30474
30479
|
const suggestions = await this.getSuggestedToolNames(catalog, name, args.requestContext);
|
|
30475
30480
|
let message = `Tool "${name}" not found.`;
|
|
30476
30481
|
if (suggestions.length > 0) message += ` Did you mean: ${suggestions.slice(0, 3).join(", ")}?`;
|
|
30477
|
-
else message += " Use search_tools to find available tools.";
|
|
30482
|
+
else if (searchAvailable) message += " Use search_tools to find available tools.";
|
|
30478
30483
|
return {
|
|
30479
30484
|
success: false,
|
|
30480
30485
|
message,
|
|
@@ -30508,8 +30513,8 @@ var ToolSearchProcessor = class {
|
|
|
30508
30513
|
});
|
|
30509
30514
|
const loadedTools = await this.getLoadedTools(catalog, loadedToolNames, args.requestContext);
|
|
30510
30515
|
return { tools: {
|
|
30511
|
-
search_tools: searchTool,
|
|
30512
|
-
...
|
|
30516
|
+
...searchAvailable ? { search_tools: searchTool } : {},
|
|
30517
|
+
...loadAvailable ? { load_tool: loadTool } : {},
|
|
30513
30518
|
...this.includeResolvedTools ? unsearchableResolvedTools(tools) : tools ?? {},
|
|
30514
30519
|
...loadedTools
|
|
30515
30520
|
} };
|
|
@@ -30871,7 +30876,7 @@ var SkillSearchProcessor = class {
|
|
|
30871
30876
|
return this.cleanupStaleState();
|
|
30872
30877
|
}
|
|
30873
30878
|
async processInputStep(args) {
|
|
30874
|
-
const { tools, messageList } = args;
|
|
30879
|
+
const { tools, messageList, activeTools } = args;
|
|
30875
30880
|
const threadId = this.getThreadId(args);
|
|
30876
30881
|
const threadState = this.getThreadState(threadId);
|
|
30877
30882
|
const configuredSkills = this.skills;
|
|
@@ -30881,10 +30886,18 @@ var SkillSearchProcessor = class {
|
|
|
30881
30886
|
if (this.blockingRefresh) await skills.maybeRefresh({ requestContext: args.requestContext })?.catch(this.warnRefreshFailed);
|
|
30882
30887
|
else skills.maybeRefresh({ requestContext: args.requestContext })?.catch(this.warnRefreshFailed);
|
|
30883
30888
|
}
|
|
30884
|
-
|
|
30889
|
+
const searchAvailable = !activeTools || activeTools.includes("search_skills");
|
|
30890
|
+
const loadAvailable = !activeTools || activeTools.includes("load_skill");
|
|
30891
|
+
const instructionParts = [];
|
|
30892
|
+
if (searchAvailable) instructionParts.push("To discover available skills, call search_skills with a keyword query.");
|
|
30893
|
+
if (loadAvailable) instructionParts.push("To load a skill's instructions, call load_skill with the skill name.");
|
|
30894
|
+
if (instructionParts.length > 0) {
|
|
30895
|
+
instructionParts.push("Loaded skills provide context and instructions for the conversation.");
|
|
30896
|
+
messageList.addSystem(instructionParts.join(" "));
|
|
30897
|
+
}
|
|
30885
30898
|
const searchSkillTool = createTool({
|
|
30886
30899
|
id: "search_skills",
|
|
30887
|
-
description: "Search for available skills by keyword. Returns a list of matching skills with their names and descriptions. After finding a useful skill, use load_skill to load its instructions.",
|
|
30900
|
+
description: "Search for available skills by keyword. Returns a list of matching skills with their names and descriptions." + (loadAvailable ? " After finding a useful skill, use load_skill to load its instructions." : ""),
|
|
30888
30901
|
inputSchema: z.object({ query: z.string().trim().min(1, "Query is required").describe("Search keywords (e.g., \"api design\", \"testing\", \"deployment\")") }),
|
|
30889
30902
|
outputSchema: z.object({
|
|
30890
30903
|
results: z.array(z.object({
|
|
@@ -30921,13 +30934,13 @@ var SkillSearchProcessor = class {
|
|
|
30921
30934
|
});
|
|
30922
30935
|
return {
|
|
30923
30936
|
results,
|
|
30924
|
-
message: `Found ${results.length} skill(s). Use load_skill with the exact skill name to load its instructions.`
|
|
30937
|
+
message: loadAvailable ? `Found ${results.length} skill(s). Use load_skill with the exact skill name to load its instructions.` : `Found ${results.length} skill(s): ${results.map((r) => r.name).join(", ")}.`
|
|
30925
30938
|
};
|
|
30926
30939
|
}
|
|
30927
30940
|
});
|
|
30928
30941
|
const loadSkillTool = createTool({
|
|
30929
30942
|
id: "load_skill",
|
|
30930
|
-
description: "Load a skill's full instructions into the conversation. Call this after finding a skill with search_skills. The skill's instructions will be available as context.",
|
|
30943
|
+
description: "Load a skill's full instructions into the conversation. " + (searchAvailable ? "Call this after finding a skill with search_skills. " : "") + "The skill's instructions will be available as context.",
|
|
30931
30944
|
inputSchema: z.object({ skillName: z.string().describe("The exact name of the skill to load (from search results)") }),
|
|
30932
30945
|
outputSchema: z.object({
|
|
30933
30946
|
success: z.boolean(),
|
|
@@ -30945,7 +30958,7 @@ var SkillSearchProcessor = class {
|
|
|
30945
30958
|
const suggestions = (await skills.list()).filter((s) => s.name.toLowerCase().includes(skillName.toLowerCase()) || skillName.toLowerCase().includes(s.name.toLowerCase())).slice(0, 3);
|
|
30946
30959
|
let message = `Skill "${skillName}" not found.`;
|
|
30947
30960
|
if (suggestions.length > 0) message += ` Did you mean: ${suggestions.map((s) => s.name).join(", ")}?`;
|
|
30948
|
-
else message += " Use search_skills to find available skills.";
|
|
30961
|
+
else if (searchAvailable) message += " Use search_skills to find available skills.";
|
|
30949
30962
|
return {
|
|
30950
30963
|
success: false,
|
|
30951
30964
|
message
|
|
@@ -30961,8 +30974,8 @@ var SkillSearchProcessor = class {
|
|
|
30961
30974
|
});
|
|
30962
30975
|
for (const [skillName, instructions] of threadState.skills) messageList.addSystem(`[Skill: ${skillName}]\n\n${instructions}`);
|
|
30963
30976
|
const metaTools = {
|
|
30964
|
-
search_skills: searchSkillTool,
|
|
30965
|
-
load_skill: loadSkillTool
|
|
30977
|
+
...searchAvailable ? { search_skills: searchSkillTool } : {},
|
|
30978
|
+
...loadAvailable ? { load_skill: loadSkillTool } : {}
|
|
30966
30979
|
};
|
|
30967
30980
|
if (tools) {
|
|
30968
30981
|
for (const key of Object.keys(tools)) if (key in metaTools) console.warn(`[SkillSearchProcessor] User tool "${key}" conflicts with meta-tool and will be shadowed.`);
|
|
@@ -84557,7 +84570,7 @@ async function prepareForDurableExecution(options) {
|
|
|
84557
84570
|
});
|
|
84558
84571
|
let tripwireData;
|
|
84559
84572
|
if (inputProcessors.length > 0) try {
|
|
84560
|
-
const { ProcessorRunner } = await import("./stream-
|
|
84573
|
+
const { ProcessorRunner } = await import("./stream-B4LzC6Sz.js").then((n) => n.I);
|
|
84561
84574
|
await new ProcessorRunner({
|
|
84562
84575
|
inputProcessors,
|
|
84563
84576
|
outputProcessors,
|
|
@@ -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-BmtBm_-L.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-ypGNjEom.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-BvpUdOiq.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-WLujr8OR.cjs");
|
|
30
|
+
const require_utils$1 = require("./utils-D2Bj0C2E.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-B63welNM.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");
|
|
@@ -30373,19 +30373,24 @@ var ToolSearchProcessor = class {
|
|
|
30373
30373
|
});
|
|
30374
30374
|
}
|
|
30375
30375
|
async processInputStep(args) {
|
|
30376
|
-
const { tools, messageList } = args;
|
|
30376
|
+
const { tools, messageList, activeTools } = args;
|
|
30377
30377
|
const catalog = this.catalogForStep(tools);
|
|
30378
30378
|
const storeContext = this.makeStoreContext(args);
|
|
30379
30379
|
const loadedToolNames = await this.store.getLoadedNames(storeContext);
|
|
30380
30380
|
const autoLoad = this.searchConfig.autoLoad;
|
|
30381
|
-
|
|
30382
|
-
|
|
30381
|
+
const searchAvailable = !activeTools || activeTools.includes("search_tools");
|
|
30382
|
+
const loadAvailable = !autoLoad && (!activeTools || activeTools.includes("load_tool"));
|
|
30383
|
+
const instructionParts = [];
|
|
30384
|
+
if (searchAvailable) instructionParts.push(autoLoad ? "To discover available tools, call search_tools with a keyword query. Matching tools are loaded automatically and become available on your next turn \u2014 there is no separate load step. After searching, use the tool directly." : "To discover available tools, call search_tools with a keyword query.");
|
|
30385
|
+
if (loadAvailable) instructionParts.push("To add one or more tools to the conversation, call load_tool with a toolName or toolNames array. Tools must be loaded before they can be used.");
|
|
30386
|
+
if (instructionParts.length > 0) messageList.addSystem(instructionParts.join(" "));
|
|
30387
|
+
if (this.injectCatalog && (autoLoad ? searchAvailable : loadAvailable)) {
|
|
30383
30388
|
const catalogList = await this.formatCatalog(catalog, args.requestContext);
|
|
30384
|
-
if (catalogList) messageList.addSystem((autoLoad ? "The following tools are available. Call search_tools with a keyword to load one \u2014 matching tools are loaded automatically and become available on your next turn." : "The following tools are available to load. Call load_tool with a toolName or toolNames array to add one or more before using them \u2014 no search step is required. search_tools is also available if you need to rediscover tools by keyword.") + "\n\nAvailable tools:\n" + catalogList);
|
|
30389
|
+
if (catalogList) messageList.addSystem((autoLoad ? "The following tools are available. Call search_tools with a keyword to load one \u2014 matching tools are loaded automatically and become available on your next turn." : "The following tools are available to load. Call load_tool with a toolName or toolNames array to add one or more before using them \u2014 no search step is required." + (searchAvailable ? " search_tools is also available if you need to rediscover tools by keyword." : "")) + "\n\nAvailable tools:\n" + catalogList);
|
|
30385
30390
|
}
|
|
30386
30391
|
const searchTool = require_tool.createTool({
|
|
30387
30392
|
id: "search_tools",
|
|
30388
|
-
description: autoLoad ? "Search for available tools by keyword. Use this when you need a capability you don't currently have. Returns a list of matching tools, which are loaded automatically and become available on your next turn \u2014 no separate load step is required." : "Search for available tools by keyword. Use this when you need a capability you don't currently have. Returns a list of matching tools with their names and descriptions. After finding a useful tool, use load_tool to make it available.",
|
|
30393
|
+
description: autoLoad ? "Search for available tools by keyword. Use this when you need a capability you don't currently have. Returns a list of matching tools, which are loaded automatically and become available on your next turn \u2014 no separate load step is required." : "Search for available tools by keyword. Use this when you need a capability you don't currently have. Returns a list of matching tools with their names and descriptions." + (loadAvailable ? " After finding a useful tool, use load_tool to make it available." : ""),
|
|
30389
30394
|
inputSchema: zod_v4.z.object({ query: zod_v4.z.string().describe("Search keywords (e.g., \"weather\", \"github issue\", \"database query\")") }),
|
|
30390
30395
|
outputSchema: zod_v4.z.object({
|
|
30391
30396
|
results: zod_v4.z.array(zod_v4.z.object({
|
|
@@ -30415,13 +30420,13 @@ var ToolSearchProcessor = class {
|
|
|
30415
30420
|
}
|
|
30416
30421
|
return {
|
|
30417
30422
|
results,
|
|
30418
|
-
message: `Found ${results.length} tool(s). Use load_tool with an exact toolName or a toolNames array to make them available.`
|
|
30423
|
+
message: loadAvailable ? `Found ${results.length} tool(s). Use load_tool with an exact toolName or a toolNames array to make them available.` : `Found ${results.length} tool(s): ${results.map((r) => r.name).join(", ")}.`
|
|
30419
30424
|
};
|
|
30420
30425
|
}
|
|
30421
30426
|
});
|
|
30422
30427
|
const loadTool = require_tool.createTool({
|
|
30423
30428
|
id: "load_tool",
|
|
30424
|
-
description: "Load one or more tools into your context. Call this after finding tools with search_tools. Once loaded, tools will be available for use. Pass a single toolName or an array of toolNames to load multiple tools at once.",
|
|
30429
|
+
description: "Load one or more tools into your context. " + (searchAvailable ? "Call this after finding tools with search_tools. " : "") + "Once loaded, tools will be available for use. Pass a single toolName or an array of toolNames to load multiple tools at once.",
|
|
30425
30430
|
inputSchema: zod_v4.z.object({
|
|
30426
30431
|
toolName: zod_v4.z.string().optional().describe("The exact name of a tool to load (from search results)"),
|
|
30427
30432
|
toolNames: zod_v4.z.array(zod_v4.z.string()).optional().describe("Array of exact tool names to load in one call (from search results)")
|
|
@@ -30478,7 +30483,7 @@ var ToolSearchProcessor = class {
|
|
|
30478
30483
|
const suggestions = await this.getSuggestedToolNames(catalog, name, args.requestContext);
|
|
30479
30484
|
let message = `Tool "${name}" not found.`;
|
|
30480
30485
|
if (suggestions.length > 0) message += ` Did you mean: ${suggestions.slice(0, 3).join(", ")}?`;
|
|
30481
|
-
else message += " Use search_tools to find available tools.";
|
|
30486
|
+
else if (searchAvailable) message += " Use search_tools to find available tools.";
|
|
30482
30487
|
return {
|
|
30483
30488
|
success: false,
|
|
30484
30489
|
message,
|
|
@@ -30512,8 +30517,8 @@ var ToolSearchProcessor = class {
|
|
|
30512
30517
|
});
|
|
30513
30518
|
const loadedTools = await this.getLoadedTools(catalog, loadedToolNames, args.requestContext);
|
|
30514
30519
|
return { tools: {
|
|
30515
|
-
search_tools: searchTool,
|
|
30516
|
-
...
|
|
30520
|
+
...searchAvailable ? { search_tools: searchTool } : {},
|
|
30521
|
+
...loadAvailable ? { load_tool: loadTool } : {},
|
|
30517
30522
|
...this.includeResolvedTools ? unsearchableResolvedTools(tools) : tools ?? {},
|
|
30518
30523
|
...loadedTools
|
|
30519
30524
|
} };
|
|
@@ -30875,7 +30880,7 @@ var SkillSearchProcessor = class {
|
|
|
30875
30880
|
return this.cleanupStaleState();
|
|
30876
30881
|
}
|
|
30877
30882
|
async processInputStep(args) {
|
|
30878
|
-
const { tools, messageList } = args;
|
|
30883
|
+
const { tools, messageList, activeTools } = args;
|
|
30879
30884
|
const threadId = this.getThreadId(args);
|
|
30880
30885
|
const threadState = this.getThreadState(threadId);
|
|
30881
30886
|
const configuredSkills = this.skills;
|
|
@@ -30885,10 +30890,18 @@ var SkillSearchProcessor = class {
|
|
|
30885
30890
|
if (this.blockingRefresh) await skills.maybeRefresh({ requestContext: args.requestContext })?.catch(this.warnRefreshFailed);
|
|
30886
30891
|
else skills.maybeRefresh({ requestContext: args.requestContext })?.catch(this.warnRefreshFailed);
|
|
30887
30892
|
}
|
|
30888
|
-
|
|
30893
|
+
const searchAvailable = !activeTools || activeTools.includes("search_skills");
|
|
30894
|
+
const loadAvailable = !activeTools || activeTools.includes("load_skill");
|
|
30895
|
+
const instructionParts = [];
|
|
30896
|
+
if (searchAvailable) instructionParts.push("To discover available skills, call search_skills with a keyword query.");
|
|
30897
|
+
if (loadAvailable) instructionParts.push("To load a skill's instructions, call load_skill with the skill name.");
|
|
30898
|
+
if (instructionParts.length > 0) {
|
|
30899
|
+
instructionParts.push("Loaded skills provide context and instructions for the conversation.");
|
|
30900
|
+
messageList.addSystem(instructionParts.join(" "));
|
|
30901
|
+
}
|
|
30889
30902
|
const searchSkillTool = require_tool.createTool({
|
|
30890
30903
|
id: "search_skills",
|
|
30891
|
-
description: "Search for available skills by keyword. Returns a list of matching skills with their names and descriptions. After finding a useful skill, use load_skill to load its instructions.",
|
|
30904
|
+
description: "Search for available skills by keyword. Returns a list of matching skills with their names and descriptions." + (loadAvailable ? " After finding a useful skill, use load_skill to load its instructions." : ""),
|
|
30892
30905
|
inputSchema: zod_v4.z.object({ query: zod_v4.z.string().trim().min(1, "Query is required").describe("Search keywords (e.g., \"api design\", \"testing\", \"deployment\")") }),
|
|
30893
30906
|
outputSchema: zod_v4.z.object({
|
|
30894
30907
|
results: zod_v4.z.array(zod_v4.z.object({
|
|
@@ -30925,13 +30938,13 @@ var SkillSearchProcessor = class {
|
|
|
30925
30938
|
});
|
|
30926
30939
|
return {
|
|
30927
30940
|
results,
|
|
30928
|
-
message: `Found ${results.length} skill(s). Use load_skill with the exact skill name to load its instructions.`
|
|
30941
|
+
message: loadAvailable ? `Found ${results.length} skill(s). Use load_skill with the exact skill name to load its instructions.` : `Found ${results.length} skill(s): ${results.map((r) => r.name).join(", ")}.`
|
|
30929
30942
|
};
|
|
30930
30943
|
}
|
|
30931
30944
|
});
|
|
30932
30945
|
const loadSkillTool = require_tool.createTool({
|
|
30933
30946
|
id: "load_skill",
|
|
30934
|
-
description: "Load a skill's full instructions into the conversation. Call this after finding a skill with search_skills. The skill's instructions will be available as context.",
|
|
30947
|
+
description: "Load a skill's full instructions into the conversation. " + (searchAvailable ? "Call this after finding a skill with search_skills. " : "") + "The skill's instructions will be available as context.",
|
|
30935
30948
|
inputSchema: zod_v4.z.object({ skillName: zod_v4.z.string().describe("The exact name of the skill to load (from search results)") }),
|
|
30936
30949
|
outputSchema: zod_v4.z.object({
|
|
30937
30950
|
success: zod_v4.z.boolean(),
|
|
@@ -30949,7 +30962,7 @@ var SkillSearchProcessor = class {
|
|
|
30949
30962
|
const suggestions = (await skills.list()).filter((s) => s.name.toLowerCase().includes(skillName.toLowerCase()) || skillName.toLowerCase().includes(s.name.toLowerCase())).slice(0, 3);
|
|
30950
30963
|
let message = `Skill "${skillName}" not found.`;
|
|
30951
30964
|
if (suggestions.length > 0) message += ` Did you mean: ${suggestions.map((s) => s.name).join(", ")}?`;
|
|
30952
|
-
else message += " Use search_skills to find available skills.";
|
|
30965
|
+
else if (searchAvailable) message += " Use search_skills to find available skills.";
|
|
30953
30966
|
return {
|
|
30954
30967
|
success: false,
|
|
30955
30968
|
message
|
|
@@ -30965,8 +30978,8 @@ var SkillSearchProcessor = class {
|
|
|
30965
30978
|
});
|
|
30966
30979
|
for (const [skillName, instructions] of threadState.skills) messageList.addSystem(`[Skill: ${skillName}]\n\n${instructions}`);
|
|
30967
30980
|
const metaTools = {
|
|
30968
|
-
search_skills: searchSkillTool,
|
|
30969
|
-
load_skill: loadSkillTool
|
|
30981
|
+
...searchAvailable ? { search_skills: searchSkillTool } : {},
|
|
30982
|
+
...loadAvailable ? { load_skill: loadSkillTool } : {}
|
|
30970
30983
|
};
|
|
30971
30984
|
if (tools) {
|
|
30972
30985
|
for (const key of Object.keys(tools)) if (key in metaTools) console.warn(`[SkillSearchProcessor] User tool "${key}" conflicts with meta-tool and will be shadowed.`);
|
|
@@ -84563,7 +84576,7 @@ async function prepareForDurableExecution(options) {
|
|
|
84563
84576
|
});
|
|
84564
84577
|
let tripwireData;
|
|
84565
84578
|
if (inputProcessors.length > 0) try {
|
|
84566
|
-
const { ProcessorRunner } = await Promise.resolve().then(() => require("./stream-
|
|
84579
|
+
const { ProcessorRunner } = await Promise.resolve().then(() => require("./stream-BmtBm_-L.cjs")).then((n) => n.runner_exports);
|
|
84567
84580
|
await new ProcessorRunner({
|
|
84568
84581
|
inputProcessors,
|
|
84569
84582
|
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-DX_EyboB.cjs");
|
|
3
3
|
const require_observability = require("../observability-B0R_D1PZ.cjs");
|
|
4
|
-
const require_stream = require("../stream-
|
|
4
|
+
const require_stream = require("../stream-BmtBm_-L.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 SPAN_QUERY_MAX_CURSOR_BYTES, $i as HarnessStorage, Aa as jsonValueEquals, Ai as KnowledgePageDepthError, Ao as ObservabilityInMemory, Ar as createGitHubSourceControlProviderFromEnv, Ba as tracePageIdSchema, Bi as MAX_KNOWLEDGE_PAGE_LIST_LIMIT, Br as mergeWorkflowStepResult, Ca as createStoreErrorId, Ci as KnowledgeTransactionDeadlineError, Co as buildMetricRecord, Cr as knowledgeSemanticDocumentId, Da as getDefaultValue, Di as inspectKnowledgeSchema, Do as getStringOrNull, Dr as StoreOperationsInMemory, Ea as filterByDateRange, Ei as createKnowledgeUlid, Eo as getObjectOrNull, Er as parseKnowledgeNodeCursor, Fa as transformRow, Fi as MAX_KNOWLEDGE_PAGE_BODY_LINKS, Fr as WorkflowsInMemory, Ga as THREAD_QUERY_MAX_LIMIT, Gi as knowledgeLinkRefKey, Gr as ScoresInMemory, Ha as tracePageRequestSchema, Hi as assertKnowledgeNoteTextWithinBound, Hr as WorkflowDefinitionsStorage, Ia as transformScoreRow, Ii as MAX_KNOWLEDGE_PAGE_DEPTH, Ir as cloneRunData, Ja as threadQueryIdentitySchema, Ji as knowledgePositionBetween, Jr as SchedulesStorage, Ka as encodeThreadQueryCursor, Ki as knowledgePagePath, Kr as ScoresStorage, La as validateStorageMetadataFilter, Li as MAX_KNOWLEDGE_PAGE_DESCRIPTION_TOKENS, Lr as WorkflowsStorage, Ma as safelyParseJSON, Mi as KnowledgePageKeyConflictError, Mo as FactoryStorage, Mr as FilesystemDB, Na as serializeDate, Ni as MAX_KNOWLEDGE_MOVE_PAGES, No as FactoryStorageDomain, Nr as InMemoryStore, Oa as getSqlType, Oi as parseKnowledgeWikilinks, Oo as serializeSpanAttributes, Or as StoreOperations, Pa as storageMessageMatchesMetadataFilter, Pi as MAX_KNOWLEDGE_NOTE_TOKENS, Po as UniqueViolationError, Pr as MockStore, Qa as SPAN_QUERY_MAX_COST_METRICS, Qi as InMemoryHarness, Qr as dispatchDueNotifications, Ra as TracePageError, Ri as MAX_KNOWLEDGE_PAGE_LINKS, Rr as createEmptyWorkflowSnapshot, Sa as createStorageErrorId, Si as KnowledgeStorage, So as buildLogRecord, Sr as knowledgeScopeKey, Ta as ensureDate, Ti as assertKnowledgeSchemaCompatible, To as buildUpdateSpanRecord, Tr as knowledgeVisibleScopeKeys, Ua as tracePageResponseSchema, Ui as assertKnowledgePageDescriptionWithinBound, Ur as InMemoryToolProviderConnectionsStorage, Va as tracePageNodeSchema, Vi as MAX_KNOWLEDGE_PIN_LIST_DEPTH, Vr as InMemoryWorkflowDefinitionsStorage, Wa as THREAD_QUERY_DEFAULT_LIMIT, Wi as canonicalKnowledgeName, Wr as ToolProviderConnectionsStorage, Xa as threadQueryResponseSchema, Xi as parseKnowledgePageRef, Xr as InMemoryNotificationsStorage, Ya as threadQueryRequestSchema, Yi as knowledgeScopeReadable, Yr as normalizeScheduleTarget, Za as threadQueryRowSchema, Zi as KnowledgeInvalidCursorError, Zr as NotificationsStorage, _a as BackgroundTasksStorage, _i as KNOWLEDGE_STORAGE_CONTRACT_VERSION, _o as getTraceQueryDeltaWatermark, _r as assertKnowledgeScopeWithinCeiling, ao as encodeSpanQueryCursor, au as RUN_FENCE_CONFLICT_ERROR_ID, ba as retentionCutoffMs, bi as KnowledgeNotFoundError, bo as buildCreateSpanRecord, br as expandKnowledgeScope, co as resolveSpanQueryCost, cu as coverNestedRun, di as InMemoryMemory, do as spanQueryIdentitySchema, dr as MAX_KNOWLEDGE_NODE_DESCRIPTION_LENGTH, du as matchesRunFence, ea as ExperimentsInMemory, eo as SPAN_QUERY_MAX_LIMIT, fa as InMemoryChannelsStorage, fi as MemoryStorage, fo as spanQueryRequestSchema, fr as MAX_KNOWLEDGE_RECORD_TEXT_LENGTH, fu as resolveRunFence, ga as BackgroundTasksInMemory, gi as KnowledgeImportersStorage, go as encodeTraceQueryDeltaCursor, gr as assertKnowledgeRecordTextWithinBound, ha as BlobStore, hi as KnowledgeImporterRunStateError, ho as encodeTraceQueryCursor, hr as assertKnowledgeDescriptionWithinBound, hu as setRunFenceContext, ia as DatasetItemIdentityConflictError, io as createSpanQueryPreview, iu as isWorkflowStepConflictError, ja as parseDuration, ji as KnowledgePageHasChildrenError, jo as ObservabilityStorage, jr as FilesystemStore, ka as hasErrorCode, ki as KnowledgeMoveTooLargeError, ko as toEntityType, kr as GitHubSourceControlProvider, lo as spanQueryCostSchema, lu as currentRunGeneration, ma as InMemoryBlobStore, mi as KnowledgeImporterBindingConflictError, mo as spanQueryRowSchema, mr as assertKnowledgeCeilingRaised, mu as runOutsideRunFenceScope, na as DatasetsInMemory, no as SPAN_QUERY_ORDER_FIELDS, nu as WorkflowStepConflictError, oo as parseSpanQueryRequest, ou as RUN_FENCING_NOT_SUPPORTED_ERROR_ID, pa as ChannelsStorage, pi as InMemoryKnowledgeStorage, po as spanQueryResponseSchema, pr as MAX_KNOWLEDGE_SCOPE_TAGS, pu as runFencingNotSupportedError, qa as planThreadRowsQuery, qi as knowledgePinDepth, qr as InMemorySchedulesStorage, ra as DatasetsStorage, ro as buildSpanQueryResponse, ru as assertWorkflowStepGuard, so as planSpanQuery, su as RunFenceConflictError, ta as ExperimentsStorage, to as SPAN_QUERY_MAX_PREVIEW_CHARACTERS, uo as spanQueryIdentityKey, uu as isRunFenceConflictError, va as executeRetentionPrune, vi as KNOWLEDGE_STORAGE_SCHEMA_VERSION, vo as planThreadQuery, vr as canonicalizeKnowledgeScope, wa as createVectorErrorId, wi as KnowledgeUnsupportedCapabilityError, wo as buildScoreRecord, wr as knowledgeSemanticIdempotencyKey, xa as runRetentionBatches, xi as KnowledgeSchemaResetRequiredError, xo as buildFeedbackRecord, xr as isKnowledgeScopeVisible, ya as resolveRetentionTargets, yi as KnowledgeConflictError, yo as planTraceQuery, yr as createKnowledgeNodeCursor, za as readTracePage, zi as MAX_KNOWLEDGE_PAGE_LINK_REF_LENGTH, zr as mergeStepResult } from "../run-registry-
|
|
1
|
+
import { $a as SPAN_QUERY_MAX_CURSOR_BYTES, $i as HarnessStorage, Aa as jsonValueEquals, Ai as KnowledgePageDepthError, Ao as ObservabilityInMemory, Ar as createGitHubSourceControlProviderFromEnv, Ba as tracePageIdSchema, Bi as MAX_KNOWLEDGE_PAGE_LIST_LIMIT, Br as mergeWorkflowStepResult, Ca as createStoreErrorId, Ci as KnowledgeTransactionDeadlineError, Co as buildMetricRecord, Cr as knowledgeSemanticDocumentId, Da as getDefaultValue, Di as inspectKnowledgeSchema, Do as getStringOrNull, Dr as StoreOperationsInMemory, Ea as filterByDateRange, Ei as createKnowledgeUlid, Eo as getObjectOrNull, Er as parseKnowledgeNodeCursor, Fa as transformRow, Fi as MAX_KNOWLEDGE_PAGE_BODY_LINKS, Fr as WorkflowsInMemory, Ga as THREAD_QUERY_MAX_LIMIT, Gi as knowledgeLinkRefKey, Gr as ScoresInMemory, Ha as tracePageRequestSchema, Hi as assertKnowledgeNoteTextWithinBound, Hr as WorkflowDefinitionsStorage, Ia as transformScoreRow, Ii as MAX_KNOWLEDGE_PAGE_DEPTH, Ir as cloneRunData, Ja as threadQueryIdentitySchema, Ji as knowledgePositionBetween, Jr as SchedulesStorage, Ka as encodeThreadQueryCursor, Ki as knowledgePagePath, Kr as ScoresStorage, La as validateStorageMetadataFilter, Li as MAX_KNOWLEDGE_PAGE_DESCRIPTION_TOKENS, Lr as WorkflowsStorage, Ma as safelyParseJSON, Mi as KnowledgePageKeyConflictError, Mo as FactoryStorage, Mr as FilesystemDB, Na as serializeDate, Ni as MAX_KNOWLEDGE_MOVE_PAGES, No as FactoryStorageDomain, Nr as InMemoryStore, Oa as getSqlType, Oi as parseKnowledgeWikilinks, Oo as serializeSpanAttributes, Or as StoreOperations, Pa as storageMessageMatchesMetadataFilter, Pi as MAX_KNOWLEDGE_NOTE_TOKENS, Po as UniqueViolationError, Pr as MockStore, Qa as SPAN_QUERY_MAX_COST_METRICS, Qi as InMemoryHarness, Qr as dispatchDueNotifications, Ra as TracePageError, Ri as MAX_KNOWLEDGE_PAGE_LINKS, Rr as createEmptyWorkflowSnapshot, Sa as createStorageErrorId, Si as KnowledgeStorage, So as buildLogRecord, Sr as knowledgeScopeKey, Ta as ensureDate, Ti as assertKnowledgeSchemaCompatible, To as buildUpdateSpanRecord, Tr as knowledgeVisibleScopeKeys, Ua as tracePageResponseSchema, Ui as assertKnowledgePageDescriptionWithinBound, Ur as InMemoryToolProviderConnectionsStorage, Va as tracePageNodeSchema, Vi as MAX_KNOWLEDGE_PIN_LIST_DEPTH, Vr as InMemoryWorkflowDefinitionsStorage, Wa as THREAD_QUERY_DEFAULT_LIMIT, Wi as canonicalKnowledgeName, Wr as ToolProviderConnectionsStorage, Xa as threadQueryResponseSchema, Xi as parseKnowledgePageRef, Xr as InMemoryNotificationsStorage, Ya as threadQueryRequestSchema, Yi as knowledgeScopeReadable, Yr as normalizeScheduleTarget, Za as threadQueryRowSchema, Zi as KnowledgeInvalidCursorError, Zr as NotificationsStorage, _a as BackgroundTasksStorage, _i as KNOWLEDGE_STORAGE_CONTRACT_VERSION, _o as getTraceQueryDeltaWatermark, _r as assertKnowledgeScopeWithinCeiling, ao as encodeSpanQueryCursor, au as RUN_FENCE_CONFLICT_ERROR_ID, ba as retentionCutoffMs, bi as KnowledgeNotFoundError, bo as buildCreateSpanRecord, br as expandKnowledgeScope, co as resolveSpanQueryCost, cu as coverNestedRun, di as InMemoryMemory, do as spanQueryIdentitySchema, dr as MAX_KNOWLEDGE_NODE_DESCRIPTION_LENGTH, du as matchesRunFence, ea as ExperimentsInMemory, eo as SPAN_QUERY_MAX_LIMIT, fa as InMemoryChannelsStorage, fi as MemoryStorage, fo as spanQueryRequestSchema, fr as MAX_KNOWLEDGE_RECORD_TEXT_LENGTH, fu as resolveRunFence, ga as BackgroundTasksInMemory, gi as KnowledgeImportersStorage, go as encodeTraceQueryDeltaCursor, gr as assertKnowledgeRecordTextWithinBound, ha as BlobStore, hi as KnowledgeImporterRunStateError, ho as encodeTraceQueryCursor, hr as assertKnowledgeDescriptionWithinBound, hu as setRunFenceContext, ia as DatasetItemIdentityConflictError, io as createSpanQueryPreview, iu as isWorkflowStepConflictError, ja as parseDuration, ji as KnowledgePageHasChildrenError, jo as ObservabilityStorage, jr as FilesystemStore, ka as hasErrorCode, ki as KnowledgeMoveTooLargeError, ko as toEntityType, kr as GitHubSourceControlProvider, lo as spanQueryCostSchema, lu as currentRunGeneration, ma as InMemoryBlobStore, mi as KnowledgeImporterBindingConflictError, mo as spanQueryRowSchema, mr as assertKnowledgeCeilingRaised, mu as runOutsideRunFenceScope, na as DatasetsInMemory, no as SPAN_QUERY_ORDER_FIELDS, nu as WorkflowStepConflictError, oo as parseSpanQueryRequest, ou as RUN_FENCING_NOT_SUPPORTED_ERROR_ID, pa as ChannelsStorage, pi as InMemoryKnowledgeStorage, po as spanQueryResponseSchema, pr as MAX_KNOWLEDGE_SCOPE_TAGS, pu as runFencingNotSupportedError, qa as planThreadRowsQuery, qi as knowledgePinDepth, qr as InMemorySchedulesStorage, ra as DatasetsStorage, ro as buildSpanQueryResponse, ru as assertWorkflowStepGuard, so as planSpanQuery, su as RunFenceConflictError, ta as ExperimentsStorage, to as SPAN_QUERY_MAX_PREVIEW_CHARACTERS, uo as spanQueryIdentityKey, uu as isRunFenceConflictError, va as executeRetentionPrune, vi as KNOWLEDGE_STORAGE_SCHEMA_VERSION, vo as planThreadQuery, vr as canonicalizeKnowledgeScope, wa as createVectorErrorId, wi as KnowledgeUnsupportedCapabilityError, wo as buildScoreRecord, wr as knowledgeSemanticIdempotencyKey, xa as runRetentionBatches, xi as KnowledgeSchemaResetRequiredError, xo as buildFeedbackRecord, xr as isKnowledgeScopeVisible, ya as resolveRetentionTargets, yi as KnowledgeConflictError, yo as planTraceQuery, yr as createKnowledgeNodeCursor, za as readTracePage, zi as MAX_KNOWLEDGE_PAGE_LINK_REF_LENGTH, zr as mergeStepResult } from "../run-registry-DKiudqVU.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-B4LzC6Sz.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-BmtBm_-L.cjs");
|
|
3
|
+
const require_llm = require("../llm-ypGNjEom.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-B4LzC6Sz.js";
|
|
2
|
+
import { u as ChunkFrom } from "../llm-9xmy8HlF.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
|
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-9xmy8HlF.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";
|
|
@@ -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-ypGNjEom.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");
|
|
@@ -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-WLujr8OR.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-UYJb8Zel.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-BIbw3quM.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-CR2AgmkF.js";
|
|
@@ -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-DX_EyboB.cjs");
|
|
3
|
+
const require_stream = require("./stream-BmtBm_-L.cjs");
|
|
4
|
+
const require_llm = require("./llm-ypGNjEom.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
|
import { m as generateId } from "./dist-TPVqg8oV.js";
|
|
2
|
-
import { F as Agent } from "./run-registry-
|
|
3
|
-
import { ln as isSupportedLanguageModel } from "./stream-
|
|
4
|
-
import { i as resolveModelConfig } from "./llm-
|
|
2
|
+
import { F as Agent } from "./run-registry-DKiudqVU.js";
|
|
3
|
+
import { ln as isSupportedLanguageModel } from "./stream-B4LzC6Sz.js";
|
|
4
|
+
import { i as resolveModelConfig } from "./llm-9xmy8HlF.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) {
|