@mastra/core 1.87.0-alpha.15 → 1.87.0-alpha.16
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/session.d.ts +11 -0
- package/dist/{agent-controller-DhDQXNoI.cjs → agent-controller-j9NMWxj9.cjs} +39 -11
- package/dist/{agent-controller-DihwxeVJ.js → agent-controller-kOpZ0XOG.js} +39 -11
- package/dist/background-tasks/index.cjs +1 -1
- package/dist/background-tasks/index.js +1 -1
- package/dist/{background-tasks-udYDvnlw.cjs → background-tasks-CElXOIJy.cjs} +1 -1
- package/dist/{background-tasks-BoUX5G90.js → background-tasks-CwAL_gCW.js} +1 -1
- package/dist/browser/index.cjs +1 -1
- package/dist/browser/index.js +1 -1
- package/dist/{builder-B2n-bUbl.cjs → builder-CxVVSmjB.cjs} +2 -2
- package/dist/{builder-Cn1lOWio.js → builder-DNZjud0V.js} +2 -2
- package/dist/channels/index.cjs +2 -2
- package/dist/channels/index.js +2 -2
- package/dist/{channels-HRrlHnwF.cjs → channels-BOAF0NeL.cjs} +1 -1
- package/dist/{channels-DA3oMfhF.js → channels-CayUAfIz.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 +458 -458
- package/dist/docs/references/reference-agent-controller-session.md +1 -1
- 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-Bljw7LII.cjs → llm-DavIP030.cjs} +2 -2
- package/dist/{llm-CxHzqEEI.js → llm-Y6-66bjV.js} +2 -2
- package/dist/loop/index.cjs +2 -2
- package/dist/loop/index.js +2 -2
- package/dist/{manager-BimN8ZdV.js → manager-BgRKeq71.js} +2 -2
- package/dist/{manager-DVYVB-3O.cjs → manager-uP4hdwto.cjs} +2 -2
- package/dist/mastra/index.cjs +1 -1
- package/dist/mastra/index.js +1 -1
- package/dist/{mastra-k8L1lFip.cjs → mastra-MQaZNO_5.cjs} +16 -16
- package/dist/{mastra-BpMvri3z.js → mastra-YOYYfVqQ.js} +16 -16
- package/dist/memory/index.cjs +2 -2
- package/dist/memory/index.js +2 -2
- package/dist/{model-sUJDcX2v.js → model-12DTcU8f.js} +1 -1
- package/dist/{model-CrDuEDRq.cjs → model-MVMgEFAM.cjs} +1 -1
- package/dist/{netlify-Td-JUUkt.cjs → netlify-BLF-KH2r.cjs} +1 -1
- package/dist/{netlify-BEJ96z-w.js → netlify-DgcmApEP.js} +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/{provider-registry-DBG4hlGl.js → provider-registry-C-NQBGL4.js} +4 -4
- package/dist/{provider-registry-CCYXykIZ.cjs → provider-registry-CUyaPS-4.cjs} +4 -4
- package/dist/{registry-generator-BxiC9XcX.cjs → registry-generator-BZ5Pv4nI.cjs} +1 -1
- package/dist/{registry-generator-D2lO3JJJ.js → registry-generator-EYJb9e6K.js} +1 -1
- package/dist/{rehydrate-BD0zOfc8.cjs → rehydrate-CeURpucJ.cjs} +2 -2
- package/dist/{rehydrate-PRFAu8yl.js → rehydrate-DCOIeOdN.js} +2 -2
- package/dist/relevance/index.cjs +2 -2
- package/dist/relevance/index.js +2 -2
- package/dist/{run-registry-BvMXuIb_.cjs → run-registry-DTSRWF58.cjs} +7 -7
- package/dist/{run-registry-Cqp-VFdv.js → run-registry-rMtPezec.js} +7 -7
- package/dist/storage/index.cjs +2 -2
- package/dist/storage/index.js +2 -2
- package/dist/stream/index.cjs +2 -2
- package/dist/stream/index.js +2 -2
- package/dist/{stream-D607FmAx.js → stream-BesrxR1K.js} +1 -1
- package/dist/{stream-BIbVD8V8.cjs → stream-CrV6DfJ-.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-eyoY_TEX.js → tool-loop-agent-BUVZs_1t.js} +3 -3
- package/dist/{tool-loop-agent-Cnf7vONA.cjs → tool-loop-agent-ikhSFXV9.cjs} +3 -3
- package/dist/{utils-O1TXaFUl.cjs → utils-CJvQVYFV.cjs} +1 -1
- package/dist/{utils-CQkzZUcK.js → utils-D8ewiYXS.js} +1 -1
- package/dist/utils.cjs +1 -1
- package/dist/utils.js +1 -1
- package/dist/{validate-CEgWy7P0.cjs → validate-BRq40Xoy.cjs} +1 -1
- package/dist/{validate-CTWjOlWp.js → validate-BRuenG5x.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-D52cos24.js → worker-BL1pA7s1.js} +2 -2
- package/dist/{worker-CI1joT3R.cjs → worker-Bp2Om6B2.cjs} +2 -2
- package/dist/{worker-CCNb2aJe.js → worker-CmAlDdZR.js} +2 -2
- package/dist/{worker-CCDvbK3P.cjs → worker-DV_dWICJ.cjs} +2 -2
- package/dist/{workflow-BJL0qlPN.cjs → workflow-4rGnxGb1.cjs} +3 -3
- package/dist/{workflow-DsmyWwxG.js → workflow-8CPioJsX.js} +3 -3
- package/dist/workflows/builder/index.cjs +1 -1
- package/dist/workflows/builder/index.js +1 -1
- package/dist/workflows/evented/index.cjs +1 -1
- package/dist/workflows/evented/index.js +1 -1
- package/dist/workflows/index.cjs +4 -4
- package/dist/workflows/index.js +4 -4
- package/package.json +6 -6
|
@@ -414,7 +414,7 @@ await session.thread.switch({ threadId: 'thread-8' })
|
|
|
414
414
|
|
|
415
415
|
### `session.thread.delete({ threadId, requestContext? })`
|
|
416
416
|
|
|
417
|
-
Delete an owned thread. Deleting the active thread
|
|
417
|
+
Delete an owned thread. Deleting the active thread first asks its run to stop and waits up to five seconds for the run to end, then clears the current binding. Pass `requestContext` when memory is a function that reads the signed-in user.
|
|
418
418
|
|
|
419
419
|
```typescript
|
|
420
420
|
await session.thread.delete({ threadId: 'thread-8' })
|
package/dist/evals/index.cjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
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-DTSRWF58.cjs");
|
|
3
3
|
const require_constants = require("../constants-CFO8w780.cjs");
|
|
4
4
|
const require_collect_tool_mocks = require("../collect-tool-mocks-k9fM6oDl.cjs");
|
|
5
5
|
exports.MastraScorer = require_run_registry.MastraScorer;
|
package/dist/evals/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { C as MastraScorer, D as isNotScorable, E as filterRun, Hc as SCORING_PREDICATE_ROOTS, O as notScorable, S as createClassifierScorer, T as createScorer, Uc as evaluateScoringPredicate, Wc as validateScoringPredicate, v as runEvals, w as ScorerRunError } from "../run-registry-
|
|
1
|
+
import { C as MastraScorer, D as isNotScorable, E as filterRun, Hc as SCORING_PREDICATE_ROOTS, O as notScorable, S as createClassifierScorer, T as createScorer, Uc as evaluateScoringPredicate, Wc as validateScoringPredicate, v as runEvals, w as ScorerRunError } from "../run-registry-rMtPezec.js";
|
|
2
2
|
import { Ar as scoringEntityTypeSchema, Cr as extractTrajectory, Dr as saveScorePayloadSchema, Er as listScoresResponseSchema, Fr as scoringInputWithExtractStepResultAndScoreAndReasonSchema, Ir as scoringInputWithExtractStepResultSchema, Lr as scoringPromptsSchema, Mr as scoringHookInputSchema, Nr as scoringInputSchema, Or as scoreResultSchema, Pr as scoringInputWithExtractStepResultAndAnalyzeStepResultSchema, Rr as scoringSourceSchema, Tr as extractWorkflowTrajectory, jr as scoringExtractStepResultSchema, kr as scoreRowDataSchema, wr as extractTrajectoryFromTrace, zr as scoringValueSchema } from "../constants-CUv0mU2y.js";
|
|
3
3
|
import { t as collectToolMocks } from "../collect-tool-mocks-3s2BN8o7.js";
|
|
4
4
|
export { MastraScorer, SCORING_PREDICATE_ROOTS, ScorerRunError, collectToolMocks, createClassifierScorer, createScorer, evaluateScoringPredicate, extractTrajectory, extractTrajectoryFromTrace, extractWorkflowTrajectory, filterRun, isNotScorable, listScoresResponseSchema, notScorable, runEvals, saveScorePayloadSchema, scoreResultSchema, scoreRowDataSchema, scoringEntityTypeSchema, scoringExtractStepResultSchema, scoringHookInputSchema, scoringInputSchema, scoringInputWithExtractStepResultAndAnalyzeStepResultSchema, scoringInputWithExtractStepResultAndScoreAndReasonSchema, scoringInputWithExtractStepResultSchema, scoringPromptsSchema, scoringSourceSchema, scoringValueSchema, validateScoringPredicate };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
2
|
const require_error = require("../../error-D90lJ6M7.cjs");
|
|
3
3
|
const require_utils = require("../../utils-D-eNsgDM.cjs");
|
|
4
|
-
const require_run_registry = require("../../run-registry-
|
|
4
|
+
const require_run_registry = require("../../run-registry-DTSRWF58.cjs");
|
|
5
5
|
const require_constants = require("../../constants-CFO8w780.cjs");
|
|
6
6
|
let zod_v4 = require("zod/v4");
|
|
7
7
|
// src/evals/scoreTraces/scoreTraces.ts
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { i as MastraError, n as ErrorDomain, t as ErrorCategory } from "../../error-oh2DLsP2.js";
|
|
2
2
|
import { i as getEntityTypeForSpan } from "../../utils-DU_pU5SK.js";
|
|
3
|
-
import { Qs as createWorkflow, Zs as createStep } from "../../run-registry-
|
|
3
|
+
import { Qs as createWorkflow, Zs as createStep } from "../../run-registry-rMtPezec.js";
|
|
4
4
|
import { Dr as saveScorePayloadSchema } from "../../constants-CUv0mU2y.js";
|
|
5
5
|
import { z } from "zod/v4";
|
|
6
6
|
// src/evals/scoreTraces/scoreTraces.ts
|
package/dist/harness/index.cjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
2
|
const require_state_processor = require("../state-processor-kRNZ38Nf.cjs");
|
|
3
3
|
const require_tools = require("../tools-BEYxowf0.cjs");
|
|
4
|
-
const require_agent_controller = require("../agent-controller-
|
|
4
|
+
const require_agent_controller = require("../agent-controller-j9NMWxj9.cjs");
|
|
5
5
|
// src/harness/index.ts
|
|
6
6
|
/**
|
|
7
7
|
* @deprecated Backwards-compatibility entrypoint.
|
package/dist/harness/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { f as taskCheckTool, h as taskWriteTool, m as taskUpdateTool, o as assignTaskIds, p as taskCompleteTool } from "../state-processor-B9kxpM53.js";
|
|
2
2
|
import { s as askUserTool, t as submitPlanTool } from "../tools-tPy2FwMI.js";
|
|
3
|
-
import { a as Session, c as defaultDisplayState, l as defaultOMProgressState, n as parseSubagentMeta, t as AgentController } from "../agent-controller-
|
|
3
|
+
import { a as Session, c as defaultDisplayState, l as defaultOMProgressState, n as parseSubagentMeta, t as AgentController } from "../agent-controller-kOpZ0XOG.js";
|
|
4
4
|
// src/harness/index.ts
|
|
5
5
|
/**
|
|
6
6
|
* @deprecated Backwards-compatibility entrypoint.
|
package/dist/index.cjs
CHANGED
package/dist/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export { t as Mastra } from "./mastra-
|
|
1
|
+
export { t as Mastra } from "./mastra-YOYYfVqQ.js";
|
package/dist/knowledge/index.cjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
2
|
const require_base = require("../base-BIzR1D3_.cjs");
|
|
3
|
-
const require_run_registry = require("../run-registry-
|
|
3
|
+
const require_run_registry = require("../run-registry-DTSRWF58.cjs");
|
|
4
4
|
const require_tool = require("../tool-CYlT2UA-.cjs");
|
|
5
5
|
let crypto = require("crypto");
|
|
6
6
|
let _mastra_schema_compat_schema = require("@mastra/schema-compat/schema");
|
package/dist/knowledge/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { t as MastraBase } from "../base-CKLWBhDo.js";
|
|
2
|
-
import { $i as parseKnowledgePageRef, $o as getStorageSource, $t as PINNED_READ_MEMO_KEY, Ai as inspectKnowledgeSchema, An as knowledgeMemoryScopes, Bi as MAX_KNOWLEDGE_PAGE_DESCRIPTION_TOKENS, Ci as KnowledgeNotFoundError, Cn as syncKnowledgePageBodyLinks, Cr as expandKnowledgeScope, Di as KnowledgeUnsupportedCapabilityError, Dn as knowledgeRoleOn, Dr as knowledgeSemanticIdempotencyKey, Ei as KnowledgeTransactionDeadlineError, En as knowledgeReadScopeFor, Er as knowledgeSemanticDocumentId, Fi as KnowledgePageKeyConflictError, Fn as encodeKnowledgeScopeId, Gi as assertKnowledgeNoteTextWithinBound, Hi as MAX_KNOWLEDGE_PAGE_LINK_REF_LENGTH, Ii as MAX_KNOWLEDGE_MOVE_PAGES, In as buildKnowledgeInstructions, Ji as knowledgeLinkRefKey, Ki as assertKnowledgePageDescriptionWithinBound, Li as MAX_KNOWLEDGE_NOTE_TOKENS, Mi as KnowledgeMoveTooLargeError, Mn as knowledgeScopeAddress, Ni as KnowledgePageDepthError, Nn as strongerKnowledgeRole, Oi as assertKnowledgeSchemaCompatible, On as KnowledgeDeclarationError, Or as knowledgeVisibleScopeKeys, Pi as KnowledgePageHasChildrenError, Pn as decodeKnowledgeScopeId, Qi as knowledgeScopeReadable, Qo as augmentWithInit, Ri as MAX_KNOWLEDGE_PAGE_BODY_LINKS, Si as KnowledgeConflictError, Sn as repairKnowledgeLinks, Sr as createKnowledgeNodeCursor, Ti as KnowledgeStorage, Tn as knowledgeAccessGrants, Tr as knowledgeScopeKey, Ui as MAX_KNOWLEDGE_PAGE_LIST_LIMIT, Vi as MAX_KNOWLEDGE_PAGE_LINKS, Wi as MAX_KNOWLEDGE_PIN_LIST_DEPTH, Xi as knowledgePinDepth, Yi as knowledgePagePath, Zi as knowledgePositionBetween, _i as KnowledgeImporterBindingConflictError, _n as KnowledgeLinkRepairUnsupportedError, _r as assertKnowledgeCeilingRaised, an as knowledgeRunPrincipals, bi as KNOWLEDGE_STORAGE_CONTRACT_VERSION, bn as refreshKnowledgeLinksTo, br as assertKnowledgeScopeWithinCeiling, cn as addKnowledgeNote, dn as removeKnowledgePage, ea as KnowledgeInvalidCursorError, en as knowledgeDeliveredPins, fn as updateKnowledgeNote, gi as InMemoryKnowledgeStorage, gn as KnowledgeLinkRefreshIncompleteError, gr as MAX_KNOWLEDGE_SCOPE_TAGS, hr as MAX_KNOWLEDGE_RECORD_TEXT_LENGTH, in as KnowledgeRunScopesError, ji as parseKnowledgeWikilinks, jn as knowledgeRunScopes, ki as createKnowledgeUlid, kn as compileKnowledgeScopes, kr as parseKnowledgeNodeCursor, ln as moveKnowledgePage, mn as KnowledgeSemanticIndex, mr as MAX_KNOWLEDGE_NODE_DESCRIPTION_LENGTH, nn as heldScopes, on as knowledgeAgentScopes, pn as upsertKnowledgePage, qi as canonicalKnowledgeName, rn as KnowledgeRun, sn as knowledgePersonaScopes, ta as knowledgePageKeyProblem, tn as buildKnowledgePageTools, un as removeKnowledgeNote, vi as KnowledgeImporterRunStateError, vn as canRepairKnowledgeLinksInBatch, vr as assertKnowledgeDescriptionWithinBound, wi as KnowledgeSchemaResetRequiredError, wn as updateKnowledgeLinks, wr as isKnowledgeScopeVisible, xi as KNOWLEDGE_STORAGE_SCHEMA_VERSION, xn as reindexKnowledgeLinks, xr as canonicalizeKnowledgeScope, yi as KnowledgeImportersStorage, yn as knowledgeSubtree, yr as assertKnowledgeRecordTextWithinBound, zi as MAX_KNOWLEDGE_PAGE_DEPTH } from "../run-registry-
|
|
2
|
+
import { $i as parseKnowledgePageRef, $o as getStorageSource, $t as PINNED_READ_MEMO_KEY, Ai as inspectKnowledgeSchema, An as knowledgeMemoryScopes, Bi as MAX_KNOWLEDGE_PAGE_DESCRIPTION_TOKENS, Ci as KnowledgeNotFoundError, Cn as syncKnowledgePageBodyLinks, Cr as expandKnowledgeScope, Di as KnowledgeUnsupportedCapabilityError, Dn as knowledgeRoleOn, Dr as knowledgeSemanticIdempotencyKey, Ei as KnowledgeTransactionDeadlineError, En as knowledgeReadScopeFor, Er as knowledgeSemanticDocumentId, Fi as KnowledgePageKeyConflictError, Fn as encodeKnowledgeScopeId, Gi as assertKnowledgeNoteTextWithinBound, Hi as MAX_KNOWLEDGE_PAGE_LINK_REF_LENGTH, Ii as MAX_KNOWLEDGE_MOVE_PAGES, In as buildKnowledgeInstructions, Ji as knowledgeLinkRefKey, Ki as assertKnowledgePageDescriptionWithinBound, Li as MAX_KNOWLEDGE_NOTE_TOKENS, Mi as KnowledgeMoveTooLargeError, Mn as knowledgeScopeAddress, Ni as KnowledgePageDepthError, Nn as strongerKnowledgeRole, Oi as assertKnowledgeSchemaCompatible, On as KnowledgeDeclarationError, Or as knowledgeVisibleScopeKeys, Pi as KnowledgePageHasChildrenError, Pn as decodeKnowledgeScopeId, Qi as knowledgeScopeReadable, Qo as augmentWithInit, Ri as MAX_KNOWLEDGE_PAGE_BODY_LINKS, Si as KnowledgeConflictError, Sn as repairKnowledgeLinks, Sr as createKnowledgeNodeCursor, Ti as KnowledgeStorage, Tn as knowledgeAccessGrants, Tr as knowledgeScopeKey, Ui as MAX_KNOWLEDGE_PAGE_LIST_LIMIT, Vi as MAX_KNOWLEDGE_PAGE_LINKS, Wi as MAX_KNOWLEDGE_PIN_LIST_DEPTH, Xi as knowledgePinDepth, Yi as knowledgePagePath, Zi as knowledgePositionBetween, _i as KnowledgeImporterBindingConflictError, _n as KnowledgeLinkRepairUnsupportedError, _r as assertKnowledgeCeilingRaised, an as knowledgeRunPrincipals, bi as KNOWLEDGE_STORAGE_CONTRACT_VERSION, bn as refreshKnowledgeLinksTo, br as assertKnowledgeScopeWithinCeiling, cn as addKnowledgeNote, dn as removeKnowledgePage, ea as KnowledgeInvalidCursorError, en as knowledgeDeliveredPins, fn as updateKnowledgeNote, gi as InMemoryKnowledgeStorage, gn as KnowledgeLinkRefreshIncompleteError, gr as MAX_KNOWLEDGE_SCOPE_TAGS, hr as MAX_KNOWLEDGE_RECORD_TEXT_LENGTH, in as KnowledgeRunScopesError, ji as parseKnowledgeWikilinks, jn as knowledgeRunScopes, ki as createKnowledgeUlid, kn as compileKnowledgeScopes, kr as parseKnowledgeNodeCursor, ln as moveKnowledgePage, mn as KnowledgeSemanticIndex, mr as MAX_KNOWLEDGE_NODE_DESCRIPTION_LENGTH, nn as heldScopes, on as knowledgeAgentScopes, pn as upsertKnowledgePage, qi as canonicalKnowledgeName, rn as KnowledgeRun, sn as knowledgePersonaScopes, ta as knowledgePageKeyProblem, tn as buildKnowledgePageTools, un as removeKnowledgeNote, vi as KnowledgeImporterRunStateError, vn as canRepairKnowledgeLinksInBatch, vr as assertKnowledgeDescriptionWithinBound, wi as KnowledgeSchemaResetRequiredError, wn as updateKnowledgeLinks, wr as isKnowledgeScopeVisible, xi as KNOWLEDGE_STORAGE_SCHEMA_VERSION, xn as reindexKnowledgeLinks, xr as canonicalizeKnowledgeScope, yi as KnowledgeImportersStorage, yn as knowledgeSubtree, yr as assertKnowledgeRecordTextWithinBound, zi as MAX_KNOWLEDGE_PAGE_DEPTH } from "../run-registry-rMtPezec.js";
|
|
3
3
|
import { standardSchemaToJSONSchema, toStandardSchema } from "../schema/index.js";
|
|
4
4
|
import { i as createStandardSchemaIssuesError } from "../tool-Z3bykc1m.js";
|
|
5
5
|
import { randomUUID } from "crypto";
|
package/dist/llm/index.cjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
-
const require_llm = require("../llm-
|
|
3
|
-
const require_netlify = require("../netlify-
|
|
4
|
-
const require_provider_registry = require("../provider-registry-
|
|
2
|
+
const require_llm = require("../llm-DavIP030.cjs");
|
|
3
|
+
const require_netlify = require("../netlify-BLF-KH2r.cjs");
|
|
4
|
+
const require_provider_registry = require("../provider-registry-CUyaPS-4.cjs");
|
|
5
5
|
exports.AzureOpenAIGateway = require_llm.AzureOpenAIGateway;
|
|
6
6
|
exports.EMBEDDING_MODELS = require_llm.EMBEDDING_MODELS;
|
|
7
7
|
exports.GATEWAY_AUTH_HEADER = require_netlify.GATEWAY_AUTH_HEADER;
|
package/dist/llm/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a as ModelRouterLanguageModel, c as AzureOpenAIGateway, i as resolveModelConfig, l as defaultGateways, n as ModelRouterEmbeddingModel, r as resolveModelAuth, t as EMBEDDING_MODELS } from "../llm-
|
|
2
|
-
import { l as GATEWAY_AUTH_HEADER, m as getGatewayId, p as findGatewayForModel, r as ModelsDevGateway, t as NetlifyGateway, y as MastraModelGateway } from "../netlify-
|
|
3
|
-
import { c as modelSupportsStructuredOutput, f as MastraGateway, i as getProviderConfig, l as modelSupportsTemperature, n as PROVIDER_REGISTRY, r as getModelReasoningOptions, s as modelSupportsAttachments, t as GatewayRegistry, u as parseModelString } from "../provider-registry-
|
|
1
|
+
import { a as ModelRouterLanguageModel, c as AzureOpenAIGateway, i as resolveModelConfig, l as defaultGateways, n as ModelRouterEmbeddingModel, r as resolveModelAuth, t as EMBEDDING_MODELS } from "../llm-Y6-66bjV.js";
|
|
2
|
+
import { l as GATEWAY_AUTH_HEADER, m as getGatewayId, p as findGatewayForModel, r as ModelsDevGateway, t as NetlifyGateway, y as MastraModelGateway } from "../netlify-DgcmApEP.js";
|
|
3
|
+
import { c as modelSupportsStructuredOutput, f as MastraGateway, i as getProviderConfig, l as modelSupportsTemperature, n as PROVIDER_REGISTRY, r as getModelReasoningOptions, s as modelSupportsAttachments, t as GatewayRegistry, u as parseModelString } from "../provider-registry-C-NQBGL4.js";
|
|
4
4
|
export { AzureOpenAIGateway, EMBEDDING_MODELS, GATEWAY_AUTH_HEADER, GatewayRegistry, MastraGateway, MastraModelGateway, ModelRouterEmbeddingModel, ModelRouterLanguageModel, ModelsDevGateway, NetlifyGateway, PROVIDER_REGISTRY, defaultGateways, findGatewayForModel, getGatewayId, getModelReasoningOptions, getProviderConfig, modelSupportsAttachments, modelSupportsStructuredOutput, modelSupportsTemperature, parseModelString, resolveModelAuth, resolveModelConfig };
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
const require_rolldown_runtime = require("./rolldown-runtime-BrhgMLW6.cjs");
|
|
2
|
-
const require_netlify = require("./netlify-
|
|
2
|
+
const require_netlify = require("./netlify-BLF-KH2r.cjs");
|
|
3
3
|
const require_model = require("./model-jBymoqGa.cjs");
|
|
4
4
|
const require_to_prompt = require("./to-prompt-CG-LyaBY.cjs");
|
|
5
5
|
const require_content = require("./content-CC0W1d5p.cjs");
|
|
6
|
-
const require_provider_registry = require("./provider-registry-
|
|
6
|
+
const require_provider_registry = require("./provider-registry-CUyaPS-4.cjs");
|
|
7
7
|
const require_error = require("./error-D90lJ6M7.cjs");
|
|
8
8
|
const require_request_context = require("./request-context-D9RXYCy8.cjs");
|
|
9
9
|
const require_dynamic_argument = require("./dynamic-argument-CUc1BBOS.cjs");
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { S as EventSourceParserStream, a as interpolateUrlTemplate, b as createOpenAI, c as createGoogleGenerativeAI, g as shouldEnableGateway, h as hasAuthCredentials, m as getGatewayId, o as parseModelRouterId, p as findGatewayForModel, r as ModelsDevGateway, s as createOpenAI$1, t as NetlifyGateway, u as MASTRA_USER_AGENT, v as MASTRA_GATEWAY_STREAM_TRANSPORT, x as createOpenAICompatible, y as MastraModelGateway } from "./netlify-
|
|
1
|
+
import { S as EventSourceParserStream, a as interpolateUrlTemplate, b as createOpenAI, c as createGoogleGenerativeAI, g as shouldEnableGateway, h as hasAuthCredentials, m as getGatewayId, o as parseModelRouterId, p as findGatewayForModel, r as ModelsDevGateway, s as createOpenAI$1, t as NetlifyGateway, u as MASTRA_USER_AGENT, v as MASTRA_GATEWAY_STREAM_TRANSPORT, x as createOpenAICompatible, y as MastraModelGateway } from "./netlify-DgcmApEP.js";
|
|
2
2
|
import { n as prepareAzureStrictToolSchemas, r as createStreamFromGenerateResult, t as AISDKV5LanguageModel } from "./model-DS-b2R-R.js";
|
|
3
3
|
import { i as aiV5PromptToAIV7Prompt, r as aiV5PromptToAIV6Prompt } from "./to-prompt-CMlVGYxC.js";
|
|
4
4
|
import { t as convertToDataContent } from "./content-CFBIylxS.js";
|
|
5
|
-
import { f as MastraGateway, l as modelSupportsTemperature, n as PROVIDER_REGISTRY, p as gatewayServesObservationalMemory, t as GatewayRegistry } from "./provider-registry-
|
|
5
|
+
import { f as MastraGateway, l as modelSupportsTemperature, n as PROVIDER_REGISTRY, p as gatewayServesObservationalMemory, t as GatewayRegistry } from "./provider-registry-C-NQBGL4.js";
|
|
6
6
|
import { i as MastraError } from "./error-oh2DLsP2.js";
|
|
7
7
|
import { u as RequestContext } from "./request-context-COnZHt2-.js";
|
|
8
8
|
import { n as resolveDynamicArgument } from "./dynamic-argument-BzPK3qPN.js";
|
package/dist/loop/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-DTSRWF58.cjs");
|
|
3
|
+
const require_stream = require("../stream-CrV6DfJ-.cjs");
|
|
4
4
|
exports.MastraTimeoutError = require_stream.MastraTimeoutError;
|
|
5
5
|
exports.createScorer = require_run_registry.createScorer;
|
|
6
6
|
exports.createTimeoutAbortSignal = require_stream.createTimeoutAbortSignal;
|
package/dist/loop/index.js
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { Bt as formatCheckFeedback, Gt as generateStructuredFinalResult, Ht as formatStreamCompletionFeedback, Jt as runDefaultCompletionCheck, Kt as runChecks, T as createScorer, Ut as formatValidationFeedback, Vt as formatCompletionFeedback, Wt as generateFinalResult, Xt as runValidation, Yt as runStreamCompletionScorers, Zt as loop, qt as runCompletionScorers } from "../run-registry-
|
|
2
|
-
import { Tn as createTimeoutAbortSignal, kn as isMastraTimeoutError, wn as MastraTimeoutError } from "../stream-
|
|
1
|
+
import { Bt as formatCheckFeedback, Gt as generateStructuredFinalResult, Ht as formatStreamCompletionFeedback, Jt as runDefaultCompletionCheck, Kt as runChecks, T as createScorer, Ut as formatValidationFeedback, Vt as formatCompletionFeedback, Wt as generateFinalResult, Xt as runValidation, Yt as runStreamCompletionScorers, Zt as loop, qt as runCompletionScorers } from "../run-registry-rMtPezec.js";
|
|
2
|
+
import { Tn as createTimeoutAbortSignal, kn as isMastraTimeoutError, wn as MastraTimeoutError } from "../stream-BesrxR1K.js";
|
|
3
3
|
export { MastraTimeoutError, createScorer, createTimeoutAbortSignal, formatCheckFeedback, formatCompletionFeedback, formatStreamCompletionFeedback, formatValidationFeedback, generateFinalResult, generateStructuredFinalResult, isMastraTimeoutError, loop, runChecks, runCompletionScorers, runDefaultCompletionCheck, runStreamCompletionScorers, runValidation };
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { n as __exportAll } from "./rolldown-runtime-tIEjjQTE.js";
|
|
2
|
-
import { Qs as createWorkflow, Zs as createStep, ua as assertSupportedPatterns, w as ScorerRunError, x as validateAndSaveScore, y as flushBeforeTraceRead } from "./run-registry-
|
|
2
|
+
import { Qs as createWorkflow, Zs as createStep, ua as assertSupportedPatterns, w as ScorerRunError, x as validateAndSaveScore, y as flushBeforeTraceRead } from "./run-registry-rMtPezec.js";
|
|
3
3
|
import { S as resolveObservabilityContext } from "./observability-D7RNOAPx.js";
|
|
4
4
|
import { i as MastraError } from "./error-oh2DLsP2.js";
|
|
5
|
-
import { ft as loadStepResults, un as isSupportedLanguageModel } from "./stream-
|
|
5
|
+
import { ft as loadStepResults, un as isSupportedLanguageModel } from "./stream-BesrxR1K.js";
|
|
6
6
|
import { o as MASTRA_RESOURCE_ID_KEY, p as withoutLiveRequestKeys, u as RequestContext } from "./request-context-COnZHt2-.js";
|
|
7
7
|
import { t as EntityType } from "./storage-Cc50aQAp.js";
|
|
8
8
|
import { a as getOrCreateSpan } from "./utils-DU_pU5SK.js";
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
const require_rolldown_runtime = require("./rolldown-runtime-BrhgMLW6.cjs");
|
|
2
|
-
const require_run_registry = require("./run-registry-
|
|
2
|
+
const require_run_registry = require("./run-registry-DTSRWF58.cjs");
|
|
3
3
|
const require_observability = require("./observability-B0R_D1PZ.cjs");
|
|
4
4
|
const require_error = require("./error-D90lJ6M7.cjs");
|
|
5
|
-
const require_stream = require("./stream-
|
|
5
|
+
const require_stream = require("./stream-CrV6DfJ-.cjs");
|
|
6
6
|
const require_request_context = require("./request-context-D9RXYCy8.cjs");
|
|
7
7
|
const require_storage = require("./storage-CfG0I2aF.cjs");
|
|
8
8
|
const require_utils = require("./utils-D-eNsgDM.cjs");
|
package/dist/mastra/index.cjs
CHANGED
package/dist/mastra/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export { t as Mastra } from "../mastra-
|
|
1
|
+
export { t as Mastra } from "../mastra-YOYYfVqQ.js";
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
const require_run_registry = require("./run-registry-
|
|
2
|
-
const require_background_tasks = require("./background-tasks-
|
|
1
|
+
const require_run_registry = require("./run-registry-DTSRWF58.cjs");
|
|
2
|
+
const require_background_tasks = require("./background-tasks-CElXOIJy.cjs");
|
|
3
3
|
const require_inmemory = require("./inmemory-Dc86VWGB.cjs");
|
|
4
|
-
const require_manager = require("./manager-
|
|
4
|
+
const require_manager = require("./manager-uP4hdwto.cjs");
|
|
5
5
|
const require_error = require("./error-D90lJ6M7.cjs");
|
|
6
6
|
const require_output_helpers = require("./output-helpers-DgsH4aTb.cjs");
|
|
7
7
|
const require_hooks = require("./hooks-D7VDBETj.cjs");
|
|
8
8
|
const require_license_index = require("./license/index.cjs");
|
|
9
|
-
const require_netlify = require("./netlify-
|
|
10
|
-
const require_llm = require("./llm-
|
|
9
|
+
const require_netlify = require("./netlify-BLF-KH2r.cjs");
|
|
10
|
+
const require_llm = require("./llm-DavIP030.cjs");
|
|
11
11
|
const require_logger = require("./logger-CvzZYuJd.cjs");
|
|
12
12
|
const require_logger_index = require("./logger/index.cjs");
|
|
13
13
|
const require_schedules = require("./schedules-BZS8McF7.cjs");
|
|
@@ -16,14 +16,14 @@ const require_observability_context_storage = require("./observability/context-s
|
|
|
16
16
|
const require_utils = require("./utils-D-eNsgDM.cjs");
|
|
17
17
|
const require_source = require("./source-BC8Et5qZ.cjs");
|
|
18
18
|
const require_feature_telemetry = require("./feature-telemetry-Cw0L1tHo.cjs");
|
|
19
|
-
const require_tool_loop_agent = require("./tool-loop-agent-
|
|
19
|
+
const require_tool_loop_agent = require("./tool-loop-agent-ikhSFXV9.cjs");
|
|
20
20
|
const require_payload_transform = require("./payload-transform-CWgnsO9w.cjs");
|
|
21
|
-
const require_utils$1 = require("./utils-
|
|
22
|
-
const require_worker = require("./worker-
|
|
23
|
-
const require_builder = require("./builder-
|
|
24
|
-
const require_validate = require("./validate-
|
|
25
|
-
const require_rehydrate = require("./rehydrate-
|
|
26
|
-
const require_stream = require("./stream-
|
|
21
|
+
const require_utils$1 = require("./utils-CJvQVYFV.cjs");
|
|
22
|
+
const require_worker = require("./worker-Bp2Om6B2.cjs");
|
|
23
|
+
const require_builder = require("./builder-CxVVSmjB.cjs");
|
|
24
|
+
const require_validate = require("./validate-BRq40Xoy.cjs");
|
|
25
|
+
const require_rehydrate = require("./rehydrate-CeURpucJ.cjs");
|
|
26
|
+
const require_stream = require("./stream-CrV6DfJ-.cjs");
|
|
27
27
|
let zod_v4 = require("zod/v4");
|
|
28
28
|
// src/notifications/workflow.ts
|
|
29
29
|
const NOTIFICATION_DISPATCH_WORKFLOW_ID = "__mastra_notification_dispatcher";
|
|
@@ -2874,7 +2874,7 @@ var Mastra = class Mastra {
|
|
|
2874
2874
|
*/
|
|
2875
2875
|
async __ensureExperimentWorkflow() {
|
|
2876
2876
|
if (this.__hasInternalWorkflow("__mastra-experiment")) return;
|
|
2877
|
-
const { buildExperimentWorkflow } = await Promise.resolve().then(() => require("./manager-
|
|
2877
|
+
const { buildExperimentWorkflow } = await Promise.resolve().then(() => require("./manager-uP4hdwto.cjs")).then((n) => n.workflow_exports);
|
|
2878
2878
|
if (this.__hasInternalWorkflow("__mastra-experiment")) return;
|
|
2879
2879
|
this.__registerInternalWorkflow(buildExperimentWorkflow(), void 0, { distributed: true });
|
|
2880
2880
|
}
|
|
@@ -5075,7 +5075,7 @@ var Mastra = class Mastra {
|
|
|
5075
5075
|
if (!this.#workerFilter || this.#workerFilter.has("agent-schedule")) {
|
|
5076
5076
|
let agentScheduleWorker = this.#findAgentScheduleWorker();
|
|
5077
5077
|
if (!agentScheduleWorker) {
|
|
5078
|
-
const { AgentScheduleWorker } = await Promise.resolve().then(() => require("./worker-
|
|
5078
|
+
const { AgentScheduleWorker } = await Promise.resolve().then(() => require("./worker-DV_dWICJ.cjs"));
|
|
5079
5079
|
agentScheduleWorker = new AgentScheduleWorker();
|
|
5080
5080
|
agentScheduleWorker.__registerMastra(this);
|
|
5081
5081
|
this.#workers.push(agentScheduleWorker);
|
|
@@ -5715,7 +5715,7 @@ var Mastra = class Mastra {
|
|
|
5715
5715
|
this.#workers.push(sw);
|
|
5716
5716
|
}
|
|
5717
5717
|
if (!this.#findAgentScheduleWorker()) {
|
|
5718
|
-
const { AgentScheduleWorker } = await Promise.resolve().then(() => require("./worker-
|
|
5718
|
+
const { AgentScheduleWorker } = await Promise.resolve().then(() => require("./worker-DV_dWICJ.cjs"));
|
|
5719
5719
|
const asw = new AgentScheduleWorker();
|
|
5720
5720
|
asw.__registerMastra(this);
|
|
5721
5721
|
this.#workers.push(asw);
|
|
@@ -6161,7 +6161,7 @@ var Mastra = class Mastra {
|
|
|
6161
6161
|
#syncGatewayRegistry() {
|
|
6162
6162
|
try {
|
|
6163
6163
|
if (process.env.MASTRA_DEV !== "true" && process.env.MASTRA_DEV !== "1") return;
|
|
6164
|
-
Promise.resolve().then(() => require("./provider-registry-
|
|
6164
|
+
Promise.resolve().then(() => require("./provider-registry-CUyaPS-4.cjs")).then((n) => n.provider_registry_exports).then(async ({ GatewayRegistry }) => {
|
|
6165
6165
|
const registry = GatewayRegistry.getInstance();
|
|
6166
6166
|
const customGateways = Object.values(this.#gateways || {});
|
|
6167
6167
|
registry.registerCustomGateways(customGateways);
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { $o as getStorageSource, $s as WorkflowEventProcessor, Bc as nestedRunStatusOf, Fl as waitMs, Gc as WORKFLOW_RUN_LEASE_TTL_MS, Ic as cancelNestedRun, Ir as InMemoryStore, Jc as runFenceConflictOf, Kc as renewWorkflowLease, Lc as createNestedRunParentStatusLookup, Ll as hasDurableExecution, Ln as AgentChannels, Mt as __registerMastraCtor, Pl as assertDrainTimeout, Qc as runWithConcurrency, Qo as augmentWithInit, Qs as createWorkflow, Rc as nestedRunParentOf, Rr as WorkflowsInMemory, Xc as createConcurrencyLimiter, Zc as normalizeConcurrency, Zs as createStep, b as createOnScorerHook, ba as BackgroundTasksInMemory, i as abandonDurableAgentExecutions, m as agentThreadStreamRuntime, qc as repeatAfterSettled, s as getActiveDurableAgentWorkflowExecutions, tc as computeScheduleDefinitionHash, ti as dispatchDueNotifications, u as isDurableAgentExecutionDetached, vu as runOutsideRunFenceScope, zc as nestedRunRecoveryAction, zl as isDurableAgentLike } from "./run-registry-
|
|
2
|
-
import { l as BackgroundTaskManager } from "./background-tasks-
|
|
1
|
+
import { $o as getStorageSource, $s as WorkflowEventProcessor, Bc as nestedRunStatusOf, Fl as waitMs, Gc as WORKFLOW_RUN_LEASE_TTL_MS, Ic as cancelNestedRun, Ir as InMemoryStore, Jc as runFenceConflictOf, Kc as renewWorkflowLease, Lc as createNestedRunParentStatusLookup, Ll as hasDurableExecution, Ln as AgentChannels, Mt as __registerMastraCtor, Pl as assertDrainTimeout, Qc as runWithConcurrency, Qo as augmentWithInit, Qs as createWorkflow, Rc as nestedRunParentOf, Rr as WorkflowsInMemory, Xc as createConcurrencyLimiter, Zc as normalizeConcurrency, Zs as createStep, b as createOnScorerHook, ba as BackgroundTasksInMemory, i as abandonDurableAgentExecutions, m as agentThreadStreamRuntime, qc as repeatAfterSettled, s as getActiveDurableAgentWorkflowExecutions, tc as computeScheduleDefinitionHash, ti as dispatchDueNotifications, u as isDurableAgentExecutionDetached, vu as runOutsideRunFenceScope, zc as nestedRunRecoveryAction, zl as isDurableAgentLike } from "./run-registry-rMtPezec.js";
|
|
2
|
+
import { l as BackgroundTaskManager } from "./background-tasks-CwAL_gCW.js";
|
|
3
3
|
import { t as InMemoryServerCache } from "./inmemory-BK3zLwvM.js";
|
|
4
|
-
import { t as DatasetsManager } from "./manager-
|
|
4
|
+
import { t as DatasetsManager } from "./manager-BgRKeq71.js";
|
|
5
5
|
import { i as MastraError, n as ErrorDomain, t as ErrorCategory } from "./error-oh2DLsP2.js";
|
|
6
6
|
import { u as isRunLocalTopic, v as EventEmitterPubSub } from "./output-helpers-CVzhy1Y0.js";
|
|
7
7
|
import { a as registerHook, r as deregisterHook } from "./hooks-Bth8Cjpj.js";
|
|
8
8
|
import { LicenseClient } from "./license/index.js";
|
|
9
|
-
import { m as getGatewayId } from "./netlify-
|
|
10
|
-
import { l as defaultGateways } from "./llm-
|
|
9
|
+
import { m as getGatewayId } from "./netlify-DgcmApEP.js";
|
|
10
|
+
import { l as defaultGateways } from "./llm-Y6-66bjV.js";
|
|
11
11
|
import { l as isAdaptableLogger, n as LogLevel, t as ConsoleLogger, u as noopLogger } from "./logger-BwbmRqfc.js";
|
|
12
12
|
import { DualLogger, createExportSuppressedLogger, isObservabilityExportSuppressed, resolveTraceFields } from "./logger/index.js";
|
|
13
13
|
import { c as fsAgentScheduleRowId, g as toEpochMs, h as computeNextFireAt, l as parseFsAgentScheduleRowId, m as computeNextFire, t as Schedules } from "./schedules-DZfSx-7P.js";
|
|
@@ -16,14 +16,14 @@ import { initContextStorage } from "./observability/context-storage.js";
|
|
|
16
16
|
import { f as resolveCurrentSpan } from "./utils-DU_pU5SK.js";
|
|
17
17
|
import { r as InMemoryDB } from "./source-DYZMfjv3.js";
|
|
18
18
|
import { r as trackFeatureUsage } from "./feature-telemetry-DdR8J_5o.js";
|
|
19
|
-
import { r as isToolLoopAgentLike, t as toolLoopAgentToMastraAgent } from "./tool-loop-agent-
|
|
19
|
+
import { r as isToolLoopAgentLike, t as toolLoopAgentToMastraAgent } from "./tool-loop-agent-BUVZs_1t.js";
|
|
20
20
|
import { r as normalizeToolPayloadTransformPolicy } from "./payload-transform-Dj3HUeD4.js";
|
|
21
|
-
import { v as readPositiveIntEnv } from "./utils-
|
|
22
|
-
import { a as OrchestrationWorker, i as ORCHESTRATION_GROUP, n as BackgroundTaskWorker, r as SchedulerWorker } from "./worker-
|
|
23
|
-
import { n as normalizeWorkflowBuilderDefinition } from "./builder-
|
|
24
|
-
import { d as toJsonSchemaOrUndefined, p as collectNestedWorkflowIds, t as assertValidDynamicWorkflow } from "./validate-
|
|
25
|
-
import { t as rehydrateWorkflow } from "./rehydrate-
|
|
26
|
-
import { Ln as createRunScope } from "./stream-
|
|
21
|
+
import { v as readPositiveIntEnv } from "./utils-D8ewiYXS.js";
|
|
22
|
+
import { a as OrchestrationWorker, i as ORCHESTRATION_GROUP, n as BackgroundTaskWorker, r as SchedulerWorker } from "./worker-CmAlDdZR.js";
|
|
23
|
+
import { n as normalizeWorkflowBuilderDefinition } from "./builder-DNZjud0V.js";
|
|
24
|
+
import { d as toJsonSchemaOrUndefined, p as collectNestedWorkflowIds, t as assertValidDynamicWorkflow } from "./validate-BRuenG5x.js";
|
|
25
|
+
import { t as rehydrateWorkflow } from "./rehydrate-DCOIeOdN.js";
|
|
26
|
+
import { Ln as createRunScope } from "./stream-BesrxR1K.js";
|
|
27
27
|
import { z } from "zod/v4";
|
|
28
28
|
// src/notifications/workflow.ts
|
|
29
29
|
const NOTIFICATION_DISPATCH_WORKFLOW_ID = "__mastra_notification_dispatcher";
|
|
@@ -2874,7 +2874,7 @@ var Mastra = class Mastra {
|
|
|
2874
2874
|
*/
|
|
2875
2875
|
async __ensureExperimentWorkflow() {
|
|
2876
2876
|
if (this.__hasInternalWorkflow("__mastra-experiment")) return;
|
|
2877
|
-
const { buildExperimentWorkflow } = await import("./manager-
|
|
2877
|
+
const { buildExperimentWorkflow } = await import("./manager-BgRKeq71.js").then((n) => n.b);
|
|
2878
2878
|
if (this.__hasInternalWorkflow("__mastra-experiment")) return;
|
|
2879
2879
|
this.__registerInternalWorkflow(buildExperimentWorkflow(), void 0, { distributed: true });
|
|
2880
2880
|
}
|
|
@@ -5075,7 +5075,7 @@ var Mastra = class Mastra {
|
|
|
5075
5075
|
if (!this.#workerFilter || this.#workerFilter.has("agent-schedule")) {
|
|
5076
5076
|
let agentScheduleWorker = this.#findAgentScheduleWorker();
|
|
5077
5077
|
if (!agentScheduleWorker) {
|
|
5078
|
-
const { AgentScheduleWorker } = await import("./worker-
|
|
5078
|
+
const { AgentScheduleWorker } = await import("./worker-BL1pA7s1.js");
|
|
5079
5079
|
agentScheduleWorker = new AgentScheduleWorker();
|
|
5080
5080
|
agentScheduleWorker.__registerMastra(this);
|
|
5081
5081
|
this.#workers.push(agentScheduleWorker);
|
|
@@ -5715,7 +5715,7 @@ var Mastra = class Mastra {
|
|
|
5715
5715
|
this.#workers.push(sw);
|
|
5716
5716
|
}
|
|
5717
5717
|
if (!this.#findAgentScheduleWorker()) {
|
|
5718
|
-
const { AgentScheduleWorker } = await import("./worker-
|
|
5718
|
+
const { AgentScheduleWorker } = await import("./worker-BL1pA7s1.js");
|
|
5719
5719
|
const asw = new AgentScheduleWorker();
|
|
5720
5720
|
asw.__registerMastra(this);
|
|
5721
5721
|
this.#workers.push(asw);
|
|
@@ -6161,7 +6161,7 @@ var Mastra = class Mastra {
|
|
|
6161
6161
|
#syncGatewayRegistry() {
|
|
6162
6162
|
try {
|
|
6163
6163
|
if (process.env.MASTRA_DEV !== "true" && process.env.MASTRA_DEV !== "1") return;
|
|
6164
|
-
import("./provider-registry-
|
|
6164
|
+
import("./provider-registry-C-NQBGL4.js").then((n) => n.d).then(async ({ GatewayRegistry }) => {
|
|
6165
6165
|
const registry = GatewayRegistry.getInstance();
|
|
6166
6166
|
const customGateways = Object.values(this.#gateways || {});
|
|
6167
6167
|
registry.registerCustomGateways(customGateways);
|
package/dist/memory/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-DTSRWF58.cjs");
|
|
3
|
+
const require_stream = require("../stream-CrV6DfJ-.cjs");
|
|
4
4
|
const require_message_list = require("../message-list-C0F2sDNC.cjs");
|
|
5
5
|
exports.AUTHORED_USER_TURN = require_message_list.AUTHORED_USER_TURN;
|
|
6
6
|
exports.DEFAULT_MESSAGE_EMBEDDING_MAX_CHUNK_CHARS = require_run_registry.DEFAULT_MESSAGE_EMBEDDING_MAX_CHUNK_CHARS;
|
package/dist/memory/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Bo as MESSAGE_EMBEDDING_CHARS_PER_TOKEN, Cs as normalizeMessageHistoryConfig, Go as resolveMaxChunkChars, Ho as chunkMessageText, Jo as MemoryProcessor, Ko as upsertMessageVectors, Ss as isAfterMemoryTokenBoundary, Uo as extractMessageEmbeddingText, Vo as buildMessageEmbeddingRows, Wo as messageVectorId, Xo as filterSystemReminderMessages, Yo as memoryDefaultOptions, Zo as isSystemReminderMessage, bs as advanceMemoryTokenBoundary, dr as MemoryRunState, fr as getMemoryRunState, pr as MockMemory, qo as MastraMemory, vs as groupLinkedToolMessages, xs as getMemoryTokenBoundary, ys as loadMessageHistory, zo as DEFAULT_MESSAGE_EMBEDDING_MAX_CHUNK_CHARS } from "../run-registry-
|
|
2
|
-
import { Jt as getThreadOMMetadata, Qt as setThreadOMMetadata, Xt as isThreadTitlePinned, Yt as isObservationalMemoryEnabled, Zt as parseMemoryRequestContext, qt as TITLE_PINNED_THREAD_METADATA_KEY } from "../stream-
|
|
1
|
+
import { Bo as MESSAGE_EMBEDDING_CHARS_PER_TOKEN, Cs as normalizeMessageHistoryConfig, Go as resolveMaxChunkChars, Ho as chunkMessageText, Jo as MemoryProcessor, Ko as upsertMessageVectors, Ss as isAfterMemoryTokenBoundary, Uo as extractMessageEmbeddingText, Vo as buildMessageEmbeddingRows, Wo as messageVectorId, Xo as filterSystemReminderMessages, Yo as memoryDefaultOptions, Zo as isSystemReminderMessage, bs as advanceMemoryTokenBoundary, dr as MemoryRunState, fr as getMemoryRunState, pr as MockMemory, qo as MastraMemory, vs as groupLinkedToolMessages, xs as getMemoryTokenBoundary, ys as loadMessageHistory, zo as DEFAULT_MESSAGE_EMBEDDING_MAX_CHUNK_CHARS } from "../run-registry-rMtPezec.js";
|
|
2
|
+
import { Jt as getThreadOMMetadata, Qt as setThreadOMMetadata, Xt as isThreadTitlePinned, Yt as isObservationalMemoryEnabled, Zt as parseMemoryRequestContext, qt as TITLE_PINNED_THREAD_METADATA_KEY } from "../stream-BesrxR1K.js";
|
|
3
3
|
import { $ as AUTHORED_USER_TURN, C as extractWorkingMemoryTags, D as removeWorkingMemoryToolInvocationParts, E as removeWorkingMemoryTags, O as removeWorkingMemoryToolInvocations, S as extractWorkingMemoryContent, T as removeSystemReminderTags, _ as SYSTEM_REMINDER_START_TAG, at as stripClientAuthoredTurnMarks, b as WORKING_MEMORY_START_TAG, et as asUserTurn, g as SYSTEM_REMINDER_END_TAG, h as SET_WORKING_MEMORY_TOOL_NAME, it as sealUserTurnMessage, nt as messageDeclaresAuthoredTurn, rt as sealTurnMarkup, tt as escapeTurnMarkup, v as UPDATE_WORKING_MEMORY_TOOL_NAME, w as isWorkingMemoryToolName, x as WORKING_MEMORY_TOOL_NAMES, y as WORKING_MEMORY_END_TAG } from "../message-list-RgFlLrxG.js";
|
|
4
4
|
export { AUTHORED_USER_TURN, DEFAULT_MESSAGE_EMBEDDING_MAX_CHUNK_CHARS, MESSAGE_EMBEDDING_CHARS_PER_TOKEN, MastraMemory, MemoryProcessor, MemoryRunState, MockMemory, SET_WORKING_MEMORY_TOOL_NAME, SYSTEM_REMINDER_END_TAG, SYSTEM_REMINDER_START_TAG, TITLE_PINNED_THREAD_METADATA_KEY, UPDATE_WORKING_MEMORY_TOOL_NAME, WORKING_MEMORY_END_TAG, WORKING_MEMORY_START_TAG, WORKING_MEMORY_TOOL_NAMES, advanceMemoryTokenBoundary, asUserTurn, buildMessageEmbeddingRows, chunkMessageText, escapeTurnMarkup, extractMessageEmbeddingText, extractWorkingMemoryContent, extractWorkingMemoryTags, filterSystemReminderMessages, getMemoryRunState, getMemoryTokenBoundary, getThreadOMMetadata, groupLinkedToolMessages, isAfterMemoryTokenBoundary, isObservationalMemoryEnabled, isSystemReminderMessage, isThreadTitlePinned, isWorkingMemoryToolName, loadMessageHistory, memoryDefaultOptions, messageDeclaresAuthoredTurn, messageVectorId, normalizeMessageHistoryConfig, parseMemoryRequestContext, removeSystemReminderTags, removeWorkingMemoryTags, removeWorkingMemoryToolInvocationParts, removeWorkingMemoryToolInvocations, resolveMaxChunkChars, sealTurnMarkup, sealUserTurnMessage, setThreadOMMetadata, stripClientAuthoredTurnMarks, upsertMessageVectors };
|
|
@@ -4,7 +4,7 @@ import { i as MastraError, n as ErrorDomain, t as ErrorCategory } from "./error-
|
|
|
4
4
|
import { n as executeWithContextSync, t as executeWithContext } from "./utils-DU_pU5SK.js";
|
|
5
5
|
import { S as resolveObservabilityContext } from "./observability-D7RNOAPx.js";
|
|
6
6
|
import { isStandardSchemaWithJSON, standardSchemaToJSONSchema, toStandardSchema } from "./schema/index.js";
|
|
7
|
-
import { i as delay, u as isZodType$1 } from "./utils-
|
|
7
|
+
import { i as delay, u as isZodType$1 } from "./utils-D8ewiYXS.js";
|
|
8
8
|
import { i as isZodArray, t as getZodDef } from "./zod-utils-BDDS_mxU.js";
|
|
9
9
|
import { AnthropicSchemaCompatLayer, DeepSeekSchemaCompatLayer, GoogleSchemaCompatLayer, MetaSchemaCompatLayer, OpenAIReasoningSchemaCompatLayer, OpenAISchemaCompatLayer, applyCompatLayer, jsonSchema } from "@mastra/schema-compat";
|
|
10
10
|
// src/stream/aisdk/v4/usage.ts
|
|
@@ -3,7 +3,7 @@ const require_base = require("./base-BIzR1D3_.cjs");
|
|
|
3
3
|
const require_error = require("./error-D90lJ6M7.cjs");
|
|
4
4
|
const require_utils = require("./utils-D-eNsgDM.cjs");
|
|
5
5
|
const require_observability = require("./observability-B0R_D1PZ.cjs");
|
|
6
|
-
const require_utils$1 = require("./utils-
|
|
6
|
+
const require_utils$1 = require("./utils-CJvQVYFV.cjs");
|
|
7
7
|
const require_zod_utils = require("./zod-utils-Cl5jw5N_.cjs");
|
|
8
8
|
let _mastra_schema_compat = require("@mastra/schema-compat");
|
|
9
9
|
let _mastra_schema_compat_schema = require("@mastra/schema-compat/schema");
|
|
@@ -29126,7 +29126,7 @@ function createOpenRouter(options = {}) {
|
|
|
29126
29126
|
}
|
|
29127
29127
|
createOpenRouter({ compatibility: "strict" });
|
|
29128
29128
|
// src/llm/model/gateways/constants.ts
|
|
29129
|
-
const MASTRA_USER_AGENT = `mastra/1.87.0-alpha.
|
|
29129
|
+
const MASTRA_USER_AGENT = `mastra/1.87.0-alpha.16`;
|
|
29130
29130
|
const PROVIDERS_WITH_INSTALLED_PACKAGES = [
|
|
29131
29131
|
"anthropic",
|
|
29132
29132
|
"cerebras",
|
|
@@ -29125,7 +29125,7 @@ function createOpenRouter(options = {}) {
|
|
|
29125
29125
|
}
|
|
29126
29126
|
createOpenRouter({ compatibility: "strict" });
|
|
29127
29127
|
// src/llm/model/gateways/constants.ts
|
|
29128
|
-
const MASTRA_USER_AGENT = `mastra/1.87.0-alpha.
|
|
29128
|
+
const MASTRA_USER_AGENT = `mastra/1.87.0-alpha.16`;
|
|
29129
29129
|
const PROVIDERS_WITH_INSTALLED_PACKAGES = [
|
|
29130
29130
|
"anthropic",
|
|
29131
29131
|
"cerebras",
|
|
@@ -1,5 +1,5 @@
|
|
|
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-DTSRWF58.cjs");
|
|
3
3
|
const require_tool = require("../tool-CYlT2UA-.cjs");
|
|
4
4
|
let zod_v4 = require("zod/v4");
|
|
5
5
|
// src/notifications/tool.ts
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { $r as InMemoryNotificationsStorage, ai as notificationSignalMetadata, ci as summarizeNotifications, di as defaultNotificationDeliveryDecision, ei as NotificationsStorage, fi as resolveDeliveryFailureUpdate, ii as notificationSignalAttributes, li as readNotificationRoutingRequirement, ni as createNotificationSignal, oi as notificationSummaryContents, pi as resolveNotificationDeliveryDecision, ri as createNotificationSummarySignal, si as notificationSummarySignalMetadata, ti as dispatchDueNotifications, ui as MAX_NOTIFICATION_DELIVERY_ATTEMPTS } from "../run-registry-
|
|
1
|
+
import { $r as InMemoryNotificationsStorage, ai as notificationSignalMetadata, ci as summarizeNotifications, di as defaultNotificationDeliveryDecision, ei as NotificationsStorage, fi as resolveDeliveryFailureUpdate, ii as notificationSignalAttributes, li as readNotificationRoutingRequirement, ni as createNotificationSignal, oi as notificationSummaryContents, pi as resolveNotificationDeliveryDecision, ri as createNotificationSummarySignal, si as notificationSummarySignalMetadata, ti as dispatchDueNotifications, ui as MAX_NOTIFICATION_DELIVERY_ATTEMPTS } from "../run-registry-rMtPezec.js";
|
|
2
2
|
import { r as createTool } from "../tool-Z3bykc1m.js";
|
|
3
3
|
import { z } from "zod/v4";
|
|
4
4
|
// src/notifications/tool.ts
|
|
@@ -1,5 +1,5 @@
|
|
|
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-DTSRWF58.cjs");
|
|
3
3
|
let zod_v4 = require("zod/v4");
|
|
4
4
|
// src/processor-provider/types.ts
|
|
5
5
|
/**
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { As as PromptInjectionDetector, Ms as UnicodeNormalizer, Os as LanguageDetector, _s as TokenLimiterProcessor, fs as ToolCallFilter, gs as SystemPromptScrubber, js as ModerationProcessor, ks as PIIDetector, ws as BatchPartsProcessor } from "../run-registry-
|
|
1
|
+
import { As as PromptInjectionDetector, Ms as UnicodeNormalizer, Os as LanguageDetector, _s as TokenLimiterProcessor, fs as ToolCallFilter, gs as SystemPromptScrubber, js as ModerationProcessor, ks as PIIDetector, ws as BatchPartsProcessor } from "../run-registry-rMtPezec.js";
|
|
2
2
|
import { z } from "zod/v4";
|
|
3
3
|
// src/processor-provider/types.ts
|
|
4
4
|
/**
|
|
@@ -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-DTSRWF58.cjs");
|
|
3
|
+
const require_stream = require("../stream-CrV6DfJ-.cjs");
|
|
4
4
|
exports.AgentsMDInjector = require_run_registry.AgentsMDInjector;
|
|
5
5
|
exports.BaseProcessor = require_run_registry.BaseProcessor;
|
|
6
6
|
exports.BatchPartsProcessor = require_run_registry.BatchPartsProcessor;
|
package/dist/processors/index.js
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { $l as ProcessorStepSchema, As as PromptInjectionDetector, Bl as FilePartSchema, Bs as isBadRequestError, Ds as StructuredOutputProcessor, Es as ClassifierProcessor, Fs as isMalformedFunctionCallError, Gl as ProcessorInputStepPhaseSchema, Hl as MessageContentSchema, Hs as PrefillErrorHandler, Is as UnsupportedFileHandler, Jl as ProcessorOutputResultPhaseSchema, Kl as ProcessorMessageContentSchema, Ls as FileUploadProcessor, Ms as UnicodeNormalizer, Ns as STABILITY_ERROR_PROCESSOR_IDS, Os as LanguageDetector, Ps as defaultStabilityErrorProcessors, Ql as ProcessorStepOutputSchema, Rs as FILE_UPLOAD_ERROR_CODES, Ts as ModelSelectionProcessor, Ul as MessagePartSchema, Vl as ImagePartSchema, Vs as isRetryableOpenAIResponsesStreamError, Wl as ProcessorInputPhaseSchema, Xl as ProcessorOutputStreamPhaseSchema, Yl as ProcessorOutputStepPhaseSchema, Zl as ProcessorStepInputSchema, _s as TokenLimiterProcessor, ar as BaseProcessor, as as buildResponseCacheKey, cr as globalEmbeddingCache, cs as SkillsProcessor, ds as AgentsMDInjector, es as createBackgroundWorkSignalProcessor, eu as ReasoningPartSchema, fs as ToolCallFilter, gs as SystemPromptScrubber, hs as TokenCostControl, is as ResponseCache, iu as ToolInvocationPartSchema, js as ModerationProcessor, ks as PIIDetector, lr as WorkingMemory, ls as formatSkillsCatalog, ms as CostGuardProcessor, ns as DEFAULT_RESPONSE_CACHE_TTL_SECONDS, nu as StepStartPartSchema, or as MemoryInputFilter, os as WorkspaceInstructionsProcessor, ps as RegexFilterProcessor, ql as ProcessorMessageSchema, rs as RESPONSE_CACHE_CONTEXT_KEY, ru as TextPartSchema, sr as SemanticRecall, ss as SkillSearchProcessor, ts as CyberRefusalHandler, tu as SourcePartSchema, ur as MessageHistory, us as ToolSearchProcessor, ws as BatchPartsProcessor, zs as StreamErrorRetryProcessor } from "../run-registry-
|
|
2
|
-
import { H as anthropicToolIdFormat, K as REPROCESS_PART_KEY, M as ProcessorRunner, N as ProcessorState, U as cerebrasStripReasoningContent, V as ProviderHistoryCompat, W as openaiOrphanItemId, it as createProcessorSendSignal, ln as isProcessorWorkflow } from "../stream-
|
|
1
|
+
import { $l as ProcessorStepSchema, As as PromptInjectionDetector, Bl as FilePartSchema, Bs as isBadRequestError, Ds as StructuredOutputProcessor, Es as ClassifierProcessor, Fs as isMalformedFunctionCallError, Gl as ProcessorInputStepPhaseSchema, Hl as MessageContentSchema, Hs as PrefillErrorHandler, Is as UnsupportedFileHandler, Jl as ProcessorOutputResultPhaseSchema, Kl as ProcessorMessageContentSchema, Ls as FileUploadProcessor, Ms as UnicodeNormalizer, Ns as STABILITY_ERROR_PROCESSOR_IDS, Os as LanguageDetector, Ps as defaultStabilityErrorProcessors, Ql as ProcessorStepOutputSchema, Rs as FILE_UPLOAD_ERROR_CODES, Ts as ModelSelectionProcessor, Ul as MessagePartSchema, Vl as ImagePartSchema, Vs as isRetryableOpenAIResponsesStreamError, Wl as ProcessorInputPhaseSchema, Xl as ProcessorOutputStreamPhaseSchema, Yl as ProcessorOutputStepPhaseSchema, Zl as ProcessorStepInputSchema, _s as TokenLimiterProcessor, ar as BaseProcessor, as as buildResponseCacheKey, cr as globalEmbeddingCache, cs as SkillsProcessor, ds as AgentsMDInjector, es as createBackgroundWorkSignalProcessor, eu as ReasoningPartSchema, fs as ToolCallFilter, gs as SystemPromptScrubber, hs as TokenCostControl, is as ResponseCache, iu as ToolInvocationPartSchema, js as ModerationProcessor, ks as PIIDetector, lr as WorkingMemory, ls as formatSkillsCatalog, ms as CostGuardProcessor, ns as DEFAULT_RESPONSE_CACHE_TTL_SECONDS, nu as StepStartPartSchema, or as MemoryInputFilter, os as WorkspaceInstructionsProcessor, ps as RegexFilterProcessor, ql as ProcessorMessageSchema, rs as RESPONSE_CACHE_CONTEXT_KEY, ru as TextPartSchema, sr as SemanticRecall, ss as SkillSearchProcessor, ts as CyberRefusalHandler, tu as SourcePartSchema, ur as MessageHistory, us as ToolSearchProcessor, ws as BatchPartsProcessor, zs as StreamErrorRetryProcessor } from "../run-registry-rMtPezec.js";
|
|
2
|
+
import { H as anthropicToolIdFormat, K as REPROCESS_PART_KEY, M as ProcessorRunner, N as ProcessorState, U as cerebrasStripReasoningContent, V as ProviderHistoryCompat, W as openaiOrphanItemId, it as createProcessorSendSignal, ln as isProcessorWorkflow } from "../stream-BesrxR1K.js";
|
|
3
3
|
export { AgentsMDInjector, BaseProcessor, BatchPartsProcessor, ClassifierProcessor, CostGuardProcessor, CyberRefusalHandler, DEFAULT_RESPONSE_CACHE_TTL_SECONDS, FILE_UPLOAD_ERROR_CODES, FilePartSchema, FileUploadProcessor, ImagePartSchema, LanguageDetector, MemoryInputFilter, MessageContentSchema, MessageHistory, MessagePartSchema, ModelSelectionProcessor, ModerationProcessor, PIIDetector, PrefillErrorHandler, ProcessorInputPhaseSchema, ProcessorInputStepPhaseSchema, ProcessorMessageContentSchema, ProcessorMessageSchema, ProcessorOutputResultPhaseSchema, ProcessorOutputStepPhaseSchema, ProcessorOutputStreamPhaseSchema, ProcessorRunner, ProcessorState, ProcessorStepInputSchema, ProcessorStepOutputSchema, ProcessorStepSchema, PromptInjectionDetector, ProviderHistoryCompat, REPROCESS_PART_KEY, RESPONSE_CACHE_CONTEXT_KEY, ReasoningPartSchema, RegexFilterProcessor, ResponseCache, STABILITY_ERROR_PROCESSOR_IDS, SemanticRecall, SkillSearchProcessor, SkillsProcessor, SourcePartSchema, StepStartPartSchema, StreamErrorRetryProcessor, StructuredOutputProcessor, SystemPromptScrubber, TextPartSchema, TokenCostControl, TokenLimiterProcessor as TokenLimiter, TokenLimiterProcessor, ToolCallFilter, ToolInvocationPartSchema, ToolSearchProcessor, UnicodeNormalizer, UnsupportedFileHandler, WorkingMemory, WorkspaceInstructionsProcessor, anthropicToolIdFormat, buildResponseCacheKey, cerebrasStripReasoningContent, createBackgroundWorkSignalProcessor, createProcessorSendSignal, defaultStabilityErrorProcessors, formatSkillsCatalog, globalEmbeddingCache, isBadRequestError, isMalformedFunctionCallError, isProcessorWorkflow, isRetryableOpenAIResponsesStreamError, openaiOrphanItemId };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { n as __exportAll } from "./rolldown-runtime-tIEjjQTE.js";
|
|
2
|
-
import { _ as getCapabilityFileName, d as createOpenRouter, f as createAnthropic, g as shouldEnableGateway, l as GATEWAY_AUTH_HEADER, m as getGatewayId, r as ModelsDevGateway, t as NetlifyGateway, u as MASTRA_USER_AGENT, y as MastraModelGateway } from "./netlify-
|
|
2
|
+
import { _ as getCapabilityFileName, d as createOpenRouter, f as createAnthropic, g as shouldEnableGateway, l as GATEWAY_AUTH_HEADER, m as getGatewayId, r as ModelsDevGateway, t as NetlifyGateway, u as MASTRA_USER_AGENT, y as MastraModelGateway } from "./netlify-DgcmApEP.js";
|
|
3
3
|
import { i as MastraError, n as ErrorDomain, t as ErrorCategory } from "./error-oh2DLsP2.js";
|
|
4
4
|
import { createRequire } from "module";
|
|
5
5
|
import fs from "fs";
|
|
@@ -25157,10 +25157,10 @@ var GatewayRegistry = class GatewayRegistry {
|
|
|
25157
25157
|
if (this.isRefreshing && !forceRefresh) return;
|
|
25158
25158
|
this.isRefreshing = true;
|
|
25159
25159
|
try {
|
|
25160
|
-
const { ModelsDevGateway } = await import("./netlify-
|
|
25161
|
-
const { NetlifyGateway } = await import("./netlify-
|
|
25160
|
+
const { ModelsDevGateway } = await import("./netlify-DgcmApEP.js").then((n) => n.i);
|
|
25161
|
+
const { NetlifyGateway } = await import("./netlify-DgcmApEP.js").then((n) => n.n);
|
|
25162
25162
|
const { MastraGateway } = await Promise.resolve().then(() => mastra_exports);
|
|
25163
|
-
const { fetchProvidersFromGateways, writeRegistryFiles } = await import("./registry-generator-
|
|
25163
|
+
const { fetchProvidersFromGateways, writeRegistryFiles } = await import("./registry-generator-EYJb9e6K.js");
|
|
25164
25164
|
const { providers, models, attachmentCapabilities, temperatureCapabilities, structuredOutputCapabilities, reasoningCapabilities, failedGateways } = await fetchProvidersFromGateways([...[
|
|
25165
25165
|
new ModelsDevGateway({}),
|
|
25166
25166
|
new NetlifyGateway(),
|
|
@@ -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-BLF-KH2r.cjs");
|
|
3
3
|
const require_error = require("./error-D90lJ6M7.cjs");
|
|
4
4
|
let fs = require("fs");
|
|
5
5
|
fs = require_rolldown_runtime.__toESM(fs, 1);
|
|
@@ -25160,10 +25160,10 @@ var GatewayRegistry = class GatewayRegistry {
|
|
|
25160
25160
|
if (this.isRefreshing && !forceRefresh) return;
|
|
25161
25161
|
this.isRefreshing = true;
|
|
25162
25162
|
try {
|
|
25163
|
-
const { ModelsDevGateway } = await Promise.resolve().then(() => require("./netlify-
|
|
25164
|
-
const { NetlifyGateway } = await Promise.resolve().then(() => require("./netlify-
|
|
25163
|
+
const { ModelsDevGateway } = await Promise.resolve().then(() => require("./netlify-BLF-KH2r.cjs")).then((n) => n.models_dev_exports);
|
|
25164
|
+
const { NetlifyGateway } = await Promise.resolve().then(() => require("./netlify-BLF-KH2r.cjs")).then((n) => n.netlify_exports);
|
|
25165
25165
|
const { MastraGateway } = await Promise.resolve().then(() => mastra_exports);
|
|
25166
|
-
const { fetchProvidersFromGateways, writeRegistryFiles } = await Promise.resolve().then(() => require("./registry-generator-
|
|
25166
|
+
const { fetchProvidersFromGateways, writeRegistryFiles } = await Promise.resolve().then(() => require("./registry-generator-BZ5Pv4nI.cjs"));
|
|
25167
25167
|
const { providers, models, attachmentCapabilities, temperatureCapabilities, structuredOutputCapabilities, reasoningCapabilities, failedGateways } = await fetchProvidersFromGateways([...[
|
|
25168
25168
|
new ModelsDevGateway({}),
|
|
25169
25169
|
new NetlifyGateway(),
|
|
@@ -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-BLF-KH2r.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,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-DgcmApEP.js";
|
|
2
2
|
import path from "path";
|
|
3
3
|
import fs from "fs/promises";
|
|
4
4
|
// src/llm/model/registry-generator.ts
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
const require_run_registry = require("./run-registry-
|
|
1
|
+
const require_run_registry = require("./run-registry-DTSRWF58.cjs");
|
|
2
2
|
const require_predicate_index = require("./predicate/index.cjs");
|
|
3
|
-
const require_validate = require("./validate-
|
|
3
|
+
const require_validate = require("./validate-BRq40Xoy.cjs");
|
|
4
4
|
let _mastra_schema_compat_schema = require("@mastra/schema-compat/schema");
|
|
5
5
|
// src/workflows/dynamic/serialize.ts
|
|
6
6
|
/**
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { Gs as createEventedWorkflow, Ks as createWorkflow, Nc as mapVariable, Pc as predicateToCondition, Ws as cloneWorkflow, el as createStepFromAgent, gl as getSingleStepEntryId, nl as createStepFromTool } from "./run-registry-
|
|
1
|
+
import { Gs as createEventedWorkflow, Ks as createWorkflow, Nc as mapVariable, Pc as predicateToCondition, Ws as cloneWorkflow, el as createStepFromAgent, gl as getSingleStepEntryId, nl as createStepFromTool } from "./run-registry-rMtPezec.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-BRuenG5x.js";
|
|
4
4
|
import { standardSchemaToJSONSchema, toStandardSchema } from "./schema/index.js";
|
|
5
5
|
// src/workflows/dynamic/serialize.ts
|
|
6
6
|
/**
|