@mastra/core 1.87.0-alpha.17 → 1.87.0-alpha.18
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 +16 -0
- package/dist/{agent-controller-cqcUP-xy.cjs → agent-controller-D_OKCLUP.cjs} +21 -5
- package/dist/{agent-controller-ChZ3qcXE.js → agent-controller-UZNIM4h-.js} +21 -5
- package/dist/background-tasks/index.cjs +1 -1
- package/dist/background-tasks/index.js +1 -1
- package/dist/{background-tasks-BIk1TRPw.cjs → background-tasks-CLWnX7SN.cjs} +1 -1
- package/dist/{background-tasks-CH_gzJwc.js → background-tasks-CioDMzgY.js} +1 -1
- package/dist/browser/index.cjs +1 -1
- package/dist/browser/index.js +1 -1
- package/dist/{builder-ZAUhFqtD.cjs → builder-BC4l-RN5.cjs} +2 -2
- package/dist/{builder-v01k8_0x.js → builder-CQLqpQO_.js} +2 -2
- package/dist/channels/index.cjs +2 -2
- package/dist/channels/index.js +2 -2
- package/dist/{channels-CAA8MkDQ.cjs → channels-B7-KI9Ob.cjs} +1 -1
- package/dist/{channels-B7lf5BnT.js → channels-Bemsws_d.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 +19 -0
- package/dist/evals/index.cjs +1 -1
- package/dist/evals/index.js +1 -1
- package/dist/evals/scoreTraces/index.cjs +1 -1
- package/dist/evals/scoreTraces/index.js +1 -1
- package/dist/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-B5OxUmL4.js → llm-DCoDWje0.js} +2 -2
- package/dist/{llm-CGl_FZsb.cjs → llm-ZA8oIVog.cjs} +2 -2
- package/dist/loop/index.cjs +2 -2
- package/dist/loop/index.js +2 -2
- package/dist/{manager-R_QVoiy9.js → manager-DSbR85XK.js} +2 -2
- package/dist/{manager-BuPZ97U6.cjs → manager-oP6iB_H-.cjs} +2 -2
- package/dist/mastra/index.cjs +1 -1
- package/dist/mastra/index.js +1 -1
- package/dist/{mastra-CHYi4Woq.cjs → mastra-FEJ-anIN.cjs} +16 -16
- package/dist/{mastra-Cl5EC-jR.js → mastra-RgFRZ_Az.js} +16 -16
- package/dist/memory/index.cjs +2 -2
- package/dist/memory/index.js +2 -2
- package/dist/{model-BNIR9RSw.js → model-DSBVKOW8.js} +1 -1
- package/dist/{model-WmKuSHa8.cjs → model-opyZwnK3.cjs} +1 -1
- package/dist/{netlify-D4orVt-5.js → netlify-BqMGvc2s.js} +1 -1
- package/dist/{netlify-C_6KLad8.cjs → netlify-DzturPW3.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/{provider-registry-DH7XbpHT.cjs → provider-registry-BZw14X9M.cjs} +4 -4
- package/dist/{provider-registry-CkHZ7heH.js → provider-registry-BcG2ooFa.js} +4 -4
- package/dist/{registry-generator-Dn8HU1Jz.cjs → registry-generator-BrzPSCHS.cjs} +1 -1
- package/dist/{registry-generator-CAXpGkmM.js → registry-generator-CA4YBIHo.js} +1 -1
- package/dist/{rehydrate-DZyZNbaq.cjs → rehydrate-CfS6KkCr.cjs} +2 -2
- package/dist/{rehydrate-Cy7-QPU-.js → rehydrate-Chuw5IrY.js} +2 -2
- package/dist/relevance/index.cjs +2 -2
- package/dist/relevance/index.js +2 -2
- package/dist/{run-registry-BaVTwGKh.cjs → run-registry-CXeR1Qso.cjs} +7 -7
- package/dist/{run-registry-bm6b6mwQ.js → run-registry-Cu9CK7AR.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-CbG7k93m.cjs → stream-CiXZtgym.cjs} +1 -1
- package/dist/{stream-B9dswdIM.js → stream-DTpp9Tk-.js} +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-BmlzhMxc.js → tool-loop-agent-CqzgY98a.js} +3 -3
- package/dist/{tool-loop-agent-BnlPROel.cjs → tool-loop-agent-DtEg90Zj.cjs} +3 -3
- package/dist/{utils-N_OPw-9g.cjs → utils-B_y5EDSz.cjs} +1 -1
- package/dist/{utils-BU8lpEZ4.js → utils-tRzJ8Xfy.js} +1 -1
- package/dist/utils.cjs +1 -1
- package/dist/utils.js +1 -1
- package/dist/{validate-BvxwUPNa.cjs → validate-DpK_G9aa.cjs} +1 -1
- package/dist/{validate-BANPY3pi.js → validate-hFVBw9Sw.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-BpVWGM6Q.js → worker-BFAw0uVe.js} +2 -2
- package/dist/{worker-E2MdhICW.cjs → worker-BhaB8pNL.cjs} +2 -2
- package/dist/{worker-B3s2DjXP.cjs → worker-KkDudGwX.cjs} +2 -2
- package/dist/{worker-CZ_07SOb.js → worker-m_uyOwiv.js} +2 -2
- package/dist/{workflow-BuPW86ke.cjs → workflow-BwKfyvhR.cjs} +3 -3
- package/dist/{workflow-BrcVks0j.js → workflow-Uroh6hlJ.js} +3 -3
- package/dist/workflows/builder/index.cjs +1 -1
- package/dist/workflows/builder/index.js +1 -1
- package/dist/workflows/evented/index.cjs +1 -1
- package/dist/workflows/evented/index.js +1 -1
- package/dist/workflows/index.cjs +4 -4
- package/dist/workflows/index.js +4 -4
- package/package.json +5 -5
|
@@ -101,6 +101,25 @@ const unsubscribe = session.subscribe(send)
|
|
|
101
101
|
|
|
102
102
|
Returns: `AgentControllerEvent[]`
|
|
103
103
|
|
|
104
|
+
### Memory
|
|
105
|
+
|
|
106
|
+
#### `getMemory({ requestContext? }?)`
|
|
107
|
+
|
|
108
|
+
Resolve the current mode agent's effective memory without starting an agent run. Dynamic memory factories receive the session's selected thread, resource, and current settings through the same request context as a turn.
|
|
109
|
+
|
|
110
|
+
Use this method to prepare memory before the first message. Resolve memory again after changing the thread, mode, or memory settings. A memory implementation can perform its own model calls during preparation. `getMemory()` only resolves the instance.
|
|
111
|
+
|
|
112
|
+
```typescript
|
|
113
|
+
const memory = await session.getMemory()
|
|
114
|
+
if (memory) {
|
|
115
|
+
console.log(memory.getMergedThreadConfig())
|
|
116
|
+
}
|
|
117
|
+
```
|
|
118
|
+
|
|
119
|
+
**requestContext** (`RequestContext`): Additional context values merged with the session-bound context, as for sendMessage().
|
|
120
|
+
|
|
121
|
+
Returns: `Promise<MastraMemory | undefined>`. Returns `undefined` when the current agent has no memory configured.
|
|
122
|
+
|
|
104
123
|
### Messages and run control
|
|
105
124
|
|
|
106
125
|
#### `sendMessage({ content, files?, requestContext?, author? })`
|
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-CXeR1Qso.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-Cu9CK7AR.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-CXeR1Qso.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-Cu9CK7AR.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-D_OKCLUP.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-UZNIM4h-.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-RgFRZ_Az.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-CXeR1Qso.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-Cu9CK7AR.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-ZA8oIVog.cjs");
|
|
3
|
+
const require_netlify = require("../netlify-DzturPW3.cjs");
|
|
4
|
+
const require_provider_registry = require("../provider-registry-BZw14X9M.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-DCoDWje0.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-BqMGvc2s.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-BcG2ooFa.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,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-BqMGvc2s.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-BcG2ooFa.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";
|
|
@@ -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-DzturPW3.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-BZw14X9M.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");
|
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-CXeR1Qso.cjs");
|
|
3
|
+
const require_stream = require("../stream-CiXZtgym.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-Cu9CK7AR.js";
|
|
2
|
+
import { Tn as createTimeoutAbortSignal, kn as isMastraTimeoutError, wn as MastraTimeoutError } from "../stream-DTpp9Tk-.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-Cu9CK7AR.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-DTpp9Tk-.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-CXeR1Qso.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-CiXZtgym.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-RgFRZ_Az.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-CXeR1Qso.cjs");
|
|
2
|
+
const require_background_tasks = require("./background-tasks-CLWnX7SN.cjs");
|
|
3
3
|
const require_inmemory = require("./inmemory-Dc86VWGB.cjs");
|
|
4
|
-
const require_manager = require("./manager-
|
|
4
|
+
const require_manager = require("./manager-oP6iB_H-.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-DzturPW3.cjs");
|
|
10
|
+
const require_llm = require("./llm-ZA8oIVog.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-DtEg90Zj.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-B_y5EDSz.cjs");
|
|
22
|
+
const require_worker = require("./worker-KkDudGwX.cjs");
|
|
23
|
+
const require_builder = require("./builder-BC4l-RN5.cjs");
|
|
24
|
+
const require_validate = require("./validate-DpK_G9aa.cjs");
|
|
25
|
+
const require_rehydrate = require("./rehydrate-CfS6KkCr.cjs");
|
|
26
|
+
const require_stream = require("./stream-CiXZtgym.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-oP6iB_H-.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-BhaB8pNL.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-BhaB8pNL.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-BZw14X9M.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-Cu9CK7AR.js";
|
|
2
|
+
import { l as BackgroundTaskManager } from "./background-tasks-CioDMzgY.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-DSbR85XK.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-BqMGvc2s.js";
|
|
10
|
+
import { l as defaultGateways } from "./llm-DCoDWje0.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-CqzgY98a.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-tRzJ8Xfy.js";
|
|
22
|
+
import { a as OrchestrationWorker, i as ORCHESTRATION_GROUP, n as BackgroundTaskWorker, r as SchedulerWorker } from "./worker-BFAw0uVe.js";
|
|
23
|
+
import { n as normalizeWorkflowBuilderDefinition } from "./builder-CQLqpQO_.js";
|
|
24
|
+
import { d as toJsonSchemaOrUndefined, p as collectNestedWorkflowIds, t as assertValidDynamicWorkflow } from "./validate-hFVBw9Sw.js";
|
|
25
|
+
import { t as rehydrateWorkflow } from "./rehydrate-Chuw5IrY.js";
|
|
26
|
+
import { Ln as createRunScope } from "./stream-DTpp9Tk-.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-DSbR85XK.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-m_uyOwiv.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-m_uyOwiv.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-BcG2ooFa.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-CXeR1Qso.cjs");
|
|
3
|
+
const require_stream = require("../stream-CiXZtgym.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-Cu9CK7AR.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-DTpp9Tk-.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-tRzJ8Xfy.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-B_y5EDSz.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");
|
|
@@ -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.18`;
|
|
29129
29129
|
const PROVIDERS_WITH_INSTALLED_PACKAGES = [
|
|
29130
29130
|
"anthropic",
|
|
29131
29131
|
"cerebras",
|
|
@@ -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.18`;
|
|
29130
29130
|
const PROVIDERS_WITH_INSTALLED_PACKAGES = [
|
|
29131
29131
|
"anthropic",
|
|
29132
29132
|
"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-CXeR1Qso.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-Cu9CK7AR.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-CXeR1Qso.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-Cu9CK7AR.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-CXeR1Qso.cjs");
|
|
3
|
+
const require_stream = require("../stream-CiXZtgym.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-Cu9CK7AR.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-DTpp9Tk-.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
|
const require_rolldown_runtime = require("./rolldown-runtime-BrhgMLW6.cjs");
|
|
2
|
-
const require_netlify = require("./netlify-
|
|
2
|
+
const require_netlify = require("./netlify-DzturPW3.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);
|
|
@@ -25080,10 +25080,10 @@ var GatewayRegistry = class GatewayRegistry {
|
|
|
25080
25080
|
if (this.isRefreshing && !forceRefresh) return;
|
|
25081
25081
|
this.isRefreshing = true;
|
|
25082
25082
|
try {
|
|
25083
|
-
const { ModelsDevGateway } = await Promise.resolve().then(() => require("./netlify-
|
|
25084
|
-
const { NetlifyGateway } = await Promise.resolve().then(() => require("./netlify-
|
|
25083
|
+
const { ModelsDevGateway } = await Promise.resolve().then(() => require("./netlify-DzturPW3.cjs")).then((n) => n.models_dev_exports);
|
|
25084
|
+
const { NetlifyGateway } = await Promise.resolve().then(() => require("./netlify-DzturPW3.cjs")).then((n) => n.netlify_exports);
|
|
25085
25085
|
const { MastraGateway } = await Promise.resolve().then(() => mastra_exports);
|
|
25086
|
-
const { fetchProvidersFromGateways, writeRegistryFiles } = await Promise.resolve().then(() => require("./registry-generator-
|
|
25086
|
+
const { fetchProvidersFromGateways, writeRegistryFiles } = await Promise.resolve().then(() => require("./registry-generator-BrzPSCHS.cjs"));
|
|
25087
25087
|
const { providers, models, attachmentCapabilities, temperatureCapabilities, structuredOutputCapabilities, reasoningCapabilities, failedGateways } = await fetchProvidersFromGateways([...[
|
|
25088
25088
|
new ModelsDevGateway({}),
|
|
25089
25089
|
new NetlifyGateway(),
|
|
@@ -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-BqMGvc2s.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";
|
|
@@ -25077,10 +25077,10 @@ var GatewayRegistry = class GatewayRegistry {
|
|
|
25077
25077
|
if (this.isRefreshing && !forceRefresh) return;
|
|
25078
25078
|
this.isRefreshing = true;
|
|
25079
25079
|
try {
|
|
25080
|
-
const { ModelsDevGateway } = await import("./netlify-
|
|
25081
|
-
const { NetlifyGateway } = await import("./netlify-
|
|
25080
|
+
const { ModelsDevGateway } = await import("./netlify-BqMGvc2s.js").then((n) => n.i);
|
|
25081
|
+
const { NetlifyGateway } = await import("./netlify-BqMGvc2s.js").then((n) => n.n);
|
|
25082
25082
|
const { MastraGateway } = await Promise.resolve().then(() => mastra_exports);
|
|
25083
|
-
const { fetchProvidersFromGateways, writeRegistryFiles } = await import("./registry-generator-
|
|
25083
|
+
const { fetchProvidersFromGateways, writeRegistryFiles } = await import("./registry-generator-CA4YBIHo.js");
|
|
25084
25084
|
const { providers, models, attachmentCapabilities, temperatureCapabilities, structuredOutputCapabilities, reasoningCapabilities, failedGateways } = await fetchProvidersFromGateways([...[
|
|
25085
25085
|
new ModelsDevGateway({}),
|
|
25086
25086
|
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-DzturPW3.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-BqMGvc2s.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-CXeR1Qso.cjs");
|
|
2
2
|
const require_predicate_index = require("./predicate/index.cjs");
|
|
3
|
-
const require_validate = require("./validate-
|
|
3
|
+
const require_validate = require("./validate-DpK_G9aa.cjs");
|
|
4
4
|
let _mastra_schema_compat_schema = require("@mastra/schema-compat/schema");
|
|
5
5
|
// src/workflows/dynamic/serialize.ts
|
|
6
6
|
/**
|