@mastra/core 1.87.0-alpha.21 → 1.87.0-alpha.22
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 +2 -2
- package/dist/agent-controller/index.js +2 -2
- package/dist/{agent-controller-Cw5t1dkE.js → agent-controller-WGML_NKp.js} +6 -6
- package/dist/{agent-controller-4dz2FE2a.cjs → agent-controller-mS3CgzwJ.cjs} +6 -6
- package/dist/background-tasks/index.cjs +1 -1
- package/dist/background-tasks/index.js +1 -1
- package/dist/{background-tasks-DFDfV-FJ.js → background-tasks-CbBbS-g3.js} +1 -1
- package/dist/{background-tasks-fjEu5kC8.cjs → background-tasks-DEBc9BBP.cjs} +1 -1
- package/dist/browser/index.cjs +1 -1
- package/dist/browser/index.js +1 -1
- package/dist/{builder-la4Jv6di.js → builder-BOIUFJTC.js} +2 -2
- package/dist/{builder-DrBUrE-F.cjs → builder-DBori4UC.cjs} +2 -2
- package/dist/channels/index.cjs +2 -2
- package/dist/channels/index.js +2 -2
- package/dist/{channels-BUa-51eD.js → channels-BwOQwN3M.js} +1 -1
- package/dist/{channels-CqwRfJzZ.cjs → channels-DrLMv8qW.cjs} +1 -1
- package/dist/coding-agent/index.cjs +1 -1
- package/dist/coding-agent/index.js +1 -1
- package/dist/datasets/index.cjs +2 -2
- package/dist/datasets/index.js +2 -2
- package/dist/docs/SKILL.md +1 -1
- package/dist/docs/assets/SOURCE_MAP.json +511 -511
- package/dist/docs/references/docs-agents-tools.md +2 -2
- package/dist/evals/index.cjs +1 -1
- package/dist/evals/index.js +1 -1
- package/dist/evals/scoreTraces/index.cjs +1 -1
- package/dist/evals/scoreTraces/index.js +1 -1
- package/dist/{execution-fence-DeR5VB54.cjs → execution-fence-C-wa17Wr.cjs} +11 -11
- package/dist/{execution-fence-Yl_-iJxn.js → execution-fence-DvN3Fwm3.js} +11 -11
- package/dist/harness/index.cjs +2 -2
- package/dist/harness/index.js +2 -2
- package/dist/index.cjs +1 -1
- package/dist/index.js +1 -1
- package/dist/knowledge/index.cjs +1 -1
- package/dist/knowledge/index.js +1 -1
- package/dist/llm/index.cjs +3 -3
- package/dist/llm/index.js +3 -3
- package/dist/llm/model/mastra-gateway-provider-tools.d.ts +7 -0
- package/dist/{llm-DVQKutUM.cjs → llm-dX0y0atH.cjs} +4 -2
- package/dist/{llm-BZQdtNe1.js → llm-hWZGKDUy.js} +4 -2
- package/dist/loop/index.cjs +2 -2
- package/dist/loop/index.js +2 -2
- package/dist/{manager-CxN9r6o4.js → manager-9pUbVmmS.js} +2 -2
- package/dist/{manager-Cr0lJZSV.cjs → manager-CUoAGxcN.cjs} +2 -2
- package/dist/mastra/index.cjs +1 -1
- package/dist/mastra/index.js +1 -1
- package/dist/{mastra-D4Q2NPsZ.cjs → mastra-B6Fw2ZIW.cjs} +16 -16
- package/dist/{mastra-CsuV_iVH.js → mastra-CliUSn4-.js} +16 -16
- package/dist/mastra-gateway-provider-tools-C-AjGZis.js +58 -0
- package/dist/mastra-gateway-provider-tools-WpH3Tmu4.cjs +81 -0
- package/dist/memory/index.cjs +2 -2
- package/dist/memory/index.js +2 -2
- package/dist/{model-CIV_1-kW.js → model-CAp-mgCd.js} +1 -1
- package/dist/{model-DOqga9dt.cjs → model-DEnu3A8A.cjs} +1 -1
- package/dist/{netlify-KyTDrIQP.cjs → netlify-BMhDN9E8.cjs} +1 -1
- package/dist/{netlify-CoThk6uD.js → netlify-xMA06xL8.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-BsphJbPb.cjs → provider-registry-CcMAUHdH.cjs} +8 -51
- package/dist/{provider-registry-BIXG21H8.js → provider-registry-DsK3rXeU.js} +7 -50
- package/dist/{registry-generator-BXZzqm-j.js → registry-generator-CXDt3yuY.js} +1 -1
- package/dist/{registry-generator-BBmRjrp4.cjs → registry-generator-DRFJTQ2Q.cjs} +1 -1
- package/dist/{rehydrate-BwfL5GuU.js → rehydrate-C_fSTYcV.js} +2 -2
- package/dist/{rehydrate-tjUWtbB-.cjs → rehydrate-DNf3nk5t.cjs} +2 -2
- package/dist/relevance/index.cjs +2 -2
- package/dist/relevance/index.js +2 -2
- package/dist/storage/index.cjs +2 -2
- package/dist/storage/index.js +2 -2
- package/dist/stream/index.cjs +2 -2
- package/dist/stream/index.js +2 -2
- package/dist/{stream-C4XcOMuS.cjs → stream-BKEfY3-X.cjs} +1 -1
- package/dist/{stream-Dgsrva80.js → stream-CyaGm-DI.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-DN4C3VpR.js → tool-loop-agent-BYrNEcU_.js} +3 -3
- package/dist/{tool-loop-agent-Dze-IJOx.cjs → tool-loop-agent-Du3Vm65W.cjs} +3 -3
- package/dist/tools/builtin/web-search.d.ts +8 -0
- package/dist/tools/index.cjs +1 -1
- package/dist/tools/index.js +1 -1
- package/dist/{tools-C2q0ougI.cjs → tools-DZoVfKPl.cjs} +42 -17
- package/dist/{tools-ybbz1YKg.js → tools-FwJyNoyg.js} +41 -10
- package/dist/{utils-AfuTYtPM.cjs → utils-Ag63fN_T.cjs} +1 -1
- package/dist/{utils-B-UrrqES.js → utils-Dl5BqcZO.js} +1 -1
- package/dist/utils.cjs +1 -1
- package/dist/utils.js +1 -1
- package/dist/{validate-zLPo00kk.js → validate-CYqPJX3z.js} +1 -1
- package/dist/{validate-GzP07CVb.cjs → validate-bRsKfPrD.cjs} +1 -1
- package/dist/vector/index.cjs +1 -1
- package/dist/vector/index.js +1 -1
- package/dist/worker/index.cjs +1 -1
- package/dist/worker/index.js +1 -1
- package/dist/{worker-ChLwyYHR.cjs → worker-DPjo5pv_.cjs} +2 -2
- package/dist/{worker-J6-CpZ0n.cjs → worker-Dvt_y5ra.cjs} +2 -2
- package/dist/{worker-DP_A9d7f.js → worker-RbY0GNay.js} +2 -2
- package/dist/{worker-BYQGN5Lh.js → worker-oSqtPcV6.js} +2 -2
- package/dist/{workflow-COgwqQxL.cjs → workflow-B6Xdy2Ck.cjs} +3 -3
- package/dist/{workflow-DqV0r2P-.js → workflow-X6iwBizX.js} +3 -3
- package/dist/workflows/builder/index.cjs +1 -1
- package/dist/workflows/builder/index.js +1 -1
- package/dist/workflows/evented/index.cjs +1 -1
- package/dist/workflows/evented/index.js +1 -1
- package/dist/workflows/index.cjs +4 -4
- package/dist/workflows/index.js +4 -4
- package/package.json +5 -5
package/dist/storage/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { At as getSnapshotMemoryInfo, Bt as stateColumnsWrite, Ft as latestStepResults, Ht as unusedStateEntries, It as materializeState, Lt as materializeWorkflowRun, Mt as STEP_RESULT_SUMMARY_FIELDS, Nt as applyStateColumnsWrite, Pt as isStateCheckpointDue, Rt as pickStateKeys, Sn as takenQueueThreadId, Ut as applyStatePatch, Vt as summarizeStepResult, Wt as diffState, _n as QUEUE_THREAD_PREFIX, bn as pendingQueueThreadId, jt as STATE_CHECKPOINT_PATCHES, vn as assertNotQueueThreadId, xn as queuedQueueThreadId, yn as isQueueThreadId, zt as stateBaseOf } from "../stream-
|
|
2
|
-
import { $a as spanQueryResponseSchema, $i as ChannelsStorage, $n as assertKnowledgeCeilingRaised, $r as KnowledgeImporterBindingConflictError, Aa as THREAD_QUERY_DEFAULT_LIMIT, Ai as knowledgeLinkRefKey, Ar as ScoresInMemory, Ba as SPAN_QUERY_MAX_LIMIT, Bi as ExperimentsInMemory, Ca as validateStorageMetadataFilter, Ci as MAX_KNOWLEDGE_PAGE_LINKS, Cr as createEmptyWorkflowSnapshot, Da as tracePageNodeSchema, Dc as isWorkflowStepConflictError, Di as assertKnowledgeNoteTextWithinBound, Dr as WorkflowDefinitionsStorage, Ea as tracePageIdSchema, Ec as assertWorkflowStepGuard, Ei as MAX_KNOWLEDGE_PIN_LIST_DEPTH, Er as InMemoryWorkflowDefinitionsStorage, Fa as threadQueryRequestSchema, Fi as parseKnowledgePageRef, Fr as InMemoryNotificationsStorage, Ga as encodeSpanQueryCursor, Ha as SPAN_QUERY_ORDER_FIELDS, Hi as DatasetsInMemory, Ia as threadQueryResponseSchema, Ii as KnowledgeInvalidCursorError, Ir as NotificationsStorage, Ja as resolveSpanQueryCost, Ka as parseSpanQueryRequest, La as threadQueryRowSchema, Lr as dispatchDueNotifications, Ma as encodeThreadQueryCursor, Mi as knowledgePinDepth, Mr as InMemorySchedulesStorage, Na as planThreadRowsQuery, Ni as knowledgePositionBetween, Nr as SchedulesStorage, Oa as tracePageRequestSchema, Oi as assertKnowledgePageDescriptionWithinBound, Or as InMemoryToolProviderConnectionsStorage, Pa as threadQueryIdentitySchema, Pi as knowledgeScopeReadable, Pr as normalizeScheduleTarget, Qa as spanQueryRequestSchema, Qi as InMemoryChannelsStorage, Qn as MAX_KNOWLEDGE_SCOPE_TAGS, Qr as InMemoryKnowledgeStorage, Ra as SPAN_QUERY_MAX_COST_METRICS, Ri as InMemoryHarness, Sa as transformScoreRow, Si as MAX_KNOWLEDGE_PAGE_DESCRIPTION_TOKENS, Sr as WorkflowsStorage, Ta as readTracePage, Tc as WorkflowStepConflictError, Ti as MAX_KNOWLEDGE_PAGE_LIST_LIMIT, Tr as mergeWorkflowStepResult, Ua as buildSpanQueryResponse, Ui as DatasetsStorage, Va as SPAN_QUERY_MAX_PREVIEW_CHARACTERS, Vi as ExperimentsStorage, Wa as createSpanQueryPreview, Wi as DatasetItemIdentityConflictError, Xa as spanQueryIdentityKey, Xn as MAX_KNOWLEDGE_NODE_DESCRIPTION_LENGTH, Xr as InMemoryMemory, Ya as spanQueryCostSchema, Za as spanQueryIdentitySchema, Zn as MAX_KNOWLEDGE_RECORD_TEXT_LENGTH, Zr as MemoryStorage, _a as parseDuration, _i as KnowledgePageKeyConflictError, _o as ObservabilityStorage, _r as FilesystemDB, _u as matchesRunFence, aa as resolveRetentionTargets, ai as KnowledgeNotFoundError, ao as planTraceQuery, ar as expandKnowledgeScope, ba as storageMessageMatchesMetadataFilter, bi as MAX_KNOWLEDGE_PAGE_BODY_LINKS, bo as UniqueViolationError, br as WorkflowsInMemory, bu as runOutsideRunFenceScope, ca as createStorageErrorId, ci as KnowledgeTransactionDeadlineError, co as buildLogRecord, cr as knowledgeSemanticDocumentId, da as ensureDate, di as createKnowledgeUlid, do as buildUpdateSpanRecord, dr as parseKnowledgeNodeCursor, du as RUN_FENCE_CONFLICT_ERROR_ID, ea as InMemoryBlobStore, ei as KnowledgeImporterRunStateError, eo as spanQueryRowSchema, er as assertKnowledgeDescriptionWithinBound, fa as filterByDateRange, fi as inspectKnowledgeSchema, fo as getObjectOrNull, fr as StoreOperationsInMemory, fu as RUN_FENCING_NOT_SUPPORTED_ERROR_ID, ga as jsonValueEquals, gi as KnowledgePageHasChildrenError, go as ObservabilityInMemory, gr as FilesystemStore, gu as isRunFenceConflictError, ha as hasErrorCode, hi as KnowledgePageDepthError, ho as toEntityType, hr as createGitHubSourceControlProviderFromEnv, hu as currentRunGeneration, ia as executeRetentionPrune, ii as KnowledgeConflictError, io as planThreadQuery, ir as createKnowledgeNodeCursor, ja as THREAD_QUERY_MAX_LIMIT, ji as knowledgePagePath, jr as ScoresStorage, ka as tracePageResponseSchema, ki as canonicalKnowledgeName, kr as ToolProviderConnectionsStorage, la as createStoreErrorId, li as KnowledgeUnsupportedCapabilityError, lo as buildMetricRecord, lr as knowledgeSemanticIdempotencyKey, ma as getSqlType, mi as KnowledgeMoveTooLargeError, mo as serializeSpanAttributes, mr as GitHubSourceControlProvider, mu as coverNestedRun, na as BackgroundTasksInMemory, ni as KNOWLEDGE_STORAGE_CONTRACT_VERSION, no as encodeTraceQueryDeltaCursor, nr as assertKnowledgeScopeWithinCeiling, oa as retentionCutoffMs, oi as KnowledgeSchemaResetRequiredError, oo as buildCreateSpanRecord, or as isKnowledgeScopeVisible, pa as getDefaultValue, pi as parseKnowledgeWikilinks, po as getStringOrNull, pr as StoreOperations, pu as RunFenceConflictError, qa as planSpanQuery, ra as BackgroundTasksStorage, ri as KNOWLEDGE_STORAGE_SCHEMA_VERSION, ro as getTraceQueryDeltaWatermark, rr as canonicalizeKnowledgeScope, sa as runRetentionBatches, si as KnowledgeStorage, so as buildFeedbackRecord, sr as knowledgeScopeKey, ta as BlobStore, ti as KnowledgeImportersStorage, to as encodeTraceQueryCursor, tr as assertKnowledgeRecordTextWithinBound, ua as createVectorErrorId, ui as assertKnowledgeSchemaCompatible, uo as buildScoreRecord, ur as knowledgeVisibleScopeKeys, va as safelyParseJSON, vi as MAX_KNOWLEDGE_MOVE_PAGES, vo as FactoryStorage, vr as InMemoryStore, vu as resolveRunFence, wa as TracePageError, wi as MAX_KNOWLEDGE_PAGE_LINK_REF_LENGTH, wr as mergeStepResult, xa as transformRow, xi as MAX_KNOWLEDGE_PAGE_DEPTH, xr as cloneRunData, xu as setRunFenceContext, ya as serializeDate, yi as MAX_KNOWLEDGE_NOTE_TOKENS, yo as FactoryStorageDomain, yr as MockStore, yu as runFencingNotSupportedError, za as SPAN_QUERY_MAX_CURSOR_BYTES, zi as HarnessStorage } from "../execution-fence-
|
|
1
|
+
import { At as getSnapshotMemoryInfo, Bt as stateColumnsWrite, Ft as latestStepResults, Ht as unusedStateEntries, It as materializeState, Lt as materializeWorkflowRun, Mt as STEP_RESULT_SUMMARY_FIELDS, Nt as applyStateColumnsWrite, Pt as isStateCheckpointDue, Rt as pickStateKeys, Sn as takenQueueThreadId, Ut as applyStatePatch, Vt as summarizeStepResult, Wt as diffState, _n as QUEUE_THREAD_PREFIX, bn as pendingQueueThreadId, jt as STATE_CHECKPOINT_PATCHES, vn as assertNotQueueThreadId, xn as queuedQueueThreadId, yn as isQueueThreadId, zt as stateBaseOf } from "../stream-CyaGm-DI.js";
|
|
2
|
+
import { $a as spanQueryResponseSchema, $i as ChannelsStorage, $n as assertKnowledgeCeilingRaised, $r as KnowledgeImporterBindingConflictError, Aa as THREAD_QUERY_DEFAULT_LIMIT, Ai as knowledgeLinkRefKey, Ar as ScoresInMemory, Ba as SPAN_QUERY_MAX_LIMIT, Bi as ExperimentsInMemory, Ca as validateStorageMetadataFilter, Ci as MAX_KNOWLEDGE_PAGE_LINKS, Cr as createEmptyWorkflowSnapshot, Da as tracePageNodeSchema, Dc as isWorkflowStepConflictError, Di as assertKnowledgeNoteTextWithinBound, Dr as WorkflowDefinitionsStorage, Ea as tracePageIdSchema, Ec as assertWorkflowStepGuard, Ei as MAX_KNOWLEDGE_PIN_LIST_DEPTH, Er as InMemoryWorkflowDefinitionsStorage, Fa as threadQueryRequestSchema, Fi as parseKnowledgePageRef, Fr as InMemoryNotificationsStorage, Ga as encodeSpanQueryCursor, Ha as SPAN_QUERY_ORDER_FIELDS, Hi as DatasetsInMemory, Ia as threadQueryResponseSchema, Ii as KnowledgeInvalidCursorError, Ir as NotificationsStorage, Ja as resolveSpanQueryCost, Ka as parseSpanQueryRequest, La as threadQueryRowSchema, Lr as dispatchDueNotifications, Ma as encodeThreadQueryCursor, Mi as knowledgePinDepth, Mr as InMemorySchedulesStorage, Na as planThreadRowsQuery, Ni as knowledgePositionBetween, Nr as SchedulesStorage, Oa as tracePageRequestSchema, Oi as assertKnowledgePageDescriptionWithinBound, Or as InMemoryToolProviderConnectionsStorage, Pa as threadQueryIdentitySchema, Pi as knowledgeScopeReadable, Pr as normalizeScheduleTarget, Qa as spanQueryRequestSchema, Qi as InMemoryChannelsStorage, Qn as MAX_KNOWLEDGE_SCOPE_TAGS, Qr as InMemoryKnowledgeStorage, Ra as SPAN_QUERY_MAX_COST_METRICS, Ri as InMemoryHarness, Sa as transformScoreRow, Si as MAX_KNOWLEDGE_PAGE_DESCRIPTION_TOKENS, Sr as WorkflowsStorage, Ta as readTracePage, Tc as WorkflowStepConflictError, Ti as MAX_KNOWLEDGE_PAGE_LIST_LIMIT, Tr as mergeWorkflowStepResult, Ua as buildSpanQueryResponse, Ui as DatasetsStorage, Va as SPAN_QUERY_MAX_PREVIEW_CHARACTERS, Vi as ExperimentsStorage, Wa as createSpanQueryPreview, Wi as DatasetItemIdentityConflictError, Xa as spanQueryIdentityKey, Xn as MAX_KNOWLEDGE_NODE_DESCRIPTION_LENGTH, Xr as InMemoryMemory, Ya as spanQueryCostSchema, Za as spanQueryIdentitySchema, Zn as MAX_KNOWLEDGE_RECORD_TEXT_LENGTH, Zr as MemoryStorage, _a as parseDuration, _i as KnowledgePageKeyConflictError, _o as ObservabilityStorage, _r as FilesystemDB, _u as matchesRunFence, aa as resolveRetentionTargets, ai as KnowledgeNotFoundError, ao as planTraceQuery, ar as expandKnowledgeScope, ba as storageMessageMatchesMetadataFilter, bi as MAX_KNOWLEDGE_PAGE_BODY_LINKS, bo as UniqueViolationError, br as WorkflowsInMemory, bu as runOutsideRunFenceScope, ca as createStorageErrorId, ci as KnowledgeTransactionDeadlineError, co as buildLogRecord, cr as knowledgeSemanticDocumentId, da as ensureDate, di as createKnowledgeUlid, do as buildUpdateSpanRecord, dr as parseKnowledgeNodeCursor, du as RUN_FENCE_CONFLICT_ERROR_ID, ea as InMemoryBlobStore, ei as KnowledgeImporterRunStateError, eo as spanQueryRowSchema, er as assertKnowledgeDescriptionWithinBound, fa as filterByDateRange, fi as inspectKnowledgeSchema, fo as getObjectOrNull, fr as StoreOperationsInMemory, fu as RUN_FENCING_NOT_SUPPORTED_ERROR_ID, ga as jsonValueEquals, gi as KnowledgePageHasChildrenError, go as ObservabilityInMemory, gr as FilesystemStore, gu as isRunFenceConflictError, ha as hasErrorCode, hi as KnowledgePageDepthError, ho as toEntityType, hr as createGitHubSourceControlProviderFromEnv, hu as currentRunGeneration, ia as executeRetentionPrune, ii as KnowledgeConflictError, io as planThreadQuery, ir as createKnowledgeNodeCursor, ja as THREAD_QUERY_MAX_LIMIT, ji as knowledgePagePath, jr as ScoresStorage, ka as tracePageResponseSchema, ki as canonicalKnowledgeName, kr as ToolProviderConnectionsStorage, la as createStoreErrorId, li as KnowledgeUnsupportedCapabilityError, lo as buildMetricRecord, lr as knowledgeSemanticIdempotencyKey, ma as getSqlType, mi as KnowledgeMoveTooLargeError, mo as serializeSpanAttributes, mr as GitHubSourceControlProvider, mu as coverNestedRun, na as BackgroundTasksInMemory, ni as KNOWLEDGE_STORAGE_CONTRACT_VERSION, no as encodeTraceQueryDeltaCursor, nr as assertKnowledgeScopeWithinCeiling, oa as retentionCutoffMs, oi as KnowledgeSchemaResetRequiredError, oo as buildCreateSpanRecord, or as isKnowledgeScopeVisible, pa as getDefaultValue, pi as parseKnowledgeWikilinks, po as getStringOrNull, pr as StoreOperations, pu as RunFenceConflictError, qa as planSpanQuery, ra as BackgroundTasksStorage, ri as KNOWLEDGE_STORAGE_SCHEMA_VERSION, ro as getTraceQueryDeltaWatermark, rr as canonicalizeKnowledgeScope, sa as runRetentionBatches, si as KnowledgeStorage, so as buildFeedbackRecord, sr as knowledgeScopeKey, ta as BlobStore, ti as KnowledgeImportersStorage, to as encodeTraceQueryCursor, tr as assertKnowledgeRecordTextWithinBound, ua as createVectorErrorId, ui as assertKnowledgeSchemaCompatible, uo as buildScoreRecord, ur as knowledgeVisibleScopeKeys, va as safelyParseJSON, vi as MAX_KNOWLEDGE_MOVE_PAGES, vo as FactoryStorage, vr as InMemoryStore, vu as resolveRunFence, wa as TracePageError, wi as MAX_KNOWLEDGE_PAGE_LINK_REF_LENGTH, wr as mergeStepResult, xa as transformRow, xi as MAX_KNOWLEDGE_PAGE_DEPTH, xr as cloneRunData, xu as setRunFenceContext, ya as serializeDate, yi as MAX_KNOWLEDGE_NOTE_TOKENS, yo as FactoryStorageDomain, yr as MockStore, yu as runFencingNotSupportedError, za as SPAN_QUERY_MAX_CURSOR_BYTES, zi as HarnessStorage } from "../execution-fence-DvN3Fwm3.js";
|
|
3
3
|
import { l as PREVIEW_MAX_LENGTH } from "../observability-DPDWibyH.js";
|
|
4
4
|
import { $ as getFeedbackAggregateArgsSchema, $t as metricsFilterSchema, A as deleteScoresResponseSchema, An as tagsField, At as getServiceNamesResponseSchema, B as experimentIdField, Bt as listScoresArgsSchema, C as dateRangeSchema, Cn as scoresOrderBySchema, Ct as getScoreBreakdownArgsSchema, D as deleteFeedbackArgsSchema, Dn as sourceField, Dt as getScoreTimeSeriesArgsSchema, E as defaultPaginationArgs, En as sortDirectionSchema, Et as getScorePercentilesResponseSchema, F as entityIdField, Fn as userIdField, Ft as listLogsArgsSchema, G as feedbackRecordSchema, Gt as logsFilterSchema, H as feedbackInputSchema, Ht as logLevelSchema, I as entityNameField, It as listLogsResponseSchema, J as getEntityNamesResponseSchema, Jt as metadataField, K as feedbackReviewStatusSchema, Kt as logsOrderByFieldSchema, L as entityTypeField, Lt as listMetricsArgsSchema, M as deltaInfoSchema, Mn as traceIdField, Mt as getTagsResponseSchema, N as deltaLimitSchema, Nn as updateFeedbackReviewStatusArgsSchema, Nt as listFeedbackArgsSchema, O as deleteFeedbackResponseSchema, On as spanContextFields, Ot as getScoreTimeSeriesResponseSchema, P as distinctColumnSchema, Pn as updatedAtField, Pt as listFeedbackResponseSchema, Q as getEnvironmentsResponseSchema, Qt as metricsAggregationSchema, R as environmentField, Rt as listMetricsResponseSchema, S as createdAtField, Sn as scoresOrderByFieldSchema, St as getScoreAggregateResponseSchema, T as defaultDeltaLimit, Tn as sessionIdField, Tt as getScorePercentilesArgsSchema, U as feedbackOrderByFieldSchema, Ut as logRecordInputSchema, V as feedbackFilterSchema, Vt as listScoresResponseSchema, W as feedbackOrderBySchema, Wt as logRecordSchema, X as getEntityTypesResponseSchema, Xt as metricRecordSchema, Y as getEntityTypesArgsSchema, Yt as metricInputSchema, Z as getEnvironmentsArgsSchema, Zt as metricTypeSchema, _ as createMetricRecordSchema, _n as runIdField, _t as getMetricPercentilesArgsSchema, a as batchCreateFeedbackArgsSchema, an as paginationInfoSchema, at as getFeedbackTimeSeriesArgsSchema, b as createScoreRecordSchema, bn as scoreRecordSchema, bt as getMetricTimeSeriesResponseSchema, c as batchCreateScoresArgsSchema, cn as parentEntityTypeField, ct as getMetricAggregateResponseSchema, d as contextFields, dn as requestIdField, dt as getMetricLabelKeysArgsSchema, en as metricsOrderByFieldSchema, et as getFeedbackAggregateResponseSchema, f as createFeedbackArgsSchema, ft as getMetricLabelKeysResponseSchema, g as createLogRecordSchema, gn as rootEntityTypeField, gt as getMetricNamesResponseSchema, h as createFeedbackResponseSchema, hn as rootEntityNameField, ht as getMetricNamesArgsSchema, i as aggregationTypeSchema, in as paginationArgsSchema, it as getFeedbackPercentilesResponseSchema, j as deltaCursorSchema, jn as threadIdField, jt as getTagsArgsSchema, k as deleteScoresArgsSchema, kn as spanIdField, kt as getServiceNamesArgsSchema, l as commonFilterFields, ln as refineObservabilityListMode, lt as getMetricBreakdownArgsSchema, m as createFeedbackRecordSchema, mn as rootEntityIdField, mt as getMetricLabelValuesResponseSchema, n as METRIC_DISTINCT_COLUMNS, nn as normalizeObservabilityListArgs, nt as getFeedbackBreakdownResponseSchema, o as batchCreateLogsArgsSchema, on as parentEntityIdField, ot as getFeedbackTimeSeriesResponseSchema, p as createFeedbackBodySchema, pn as resourceIdField, pt as getMetricLabelValuesArgsSchema, q as getEntityNamesArgsSchema, qt as logsOrderBySchema, r as aggregationIntervalSchema, rn as organizationIdField, rt as getFeedbackPercentilesArgsSchema, s as batchCreateMetricsArgsSchema, sn as parentEntityNameField, st as getMetricAggregateArgsSchema, t as EntityType, tn as metricsOrderBySchema, tt as getFeedbackBreakdownArgsSchema, u as comparePeriodSchema, un as replaceFeedbackBodySchema, ut as getMetricBreakdownResponseSchema, v as createScoreArgsSchema, vn as scopeField, vt as getMetricPercentilesResponseSchema, w as dbTimestamps, wn as serviceNameField, wt as getScoreBreakdownResponseSchema, x as createScoreResponseSchema, xn as scoresFilterSchema, xt as getScoreAggregateArgsSchema, y as createScoreBodySchema, yn as scoreInputSchema, yt as getMetricTimeSeriesArgsSchema, z as executionSourceField, zt as listModeSchema } from "../storage-Cc50aQAp.js";
|
|
5
5
|
import { $ as TABLE_CHANNEL_INSTALLATIONS, $n as listTracesLightResponseSchema, $t as TABLE_WORKSPACES, A as MCP_CLIENTS_SCHEMA, An as computeTraceStatus, At as TABLE_OBSERVATIONAL_MEMORY, B as PROMPT_BLOCK_VERSIONS_SCHEMA, Bn as getSpansArgsSchema, Bt as TABLE_SKILLS, C as KNOWLEDGE_SCOPE_GRANTS_SCHEMA, Cn as branchesFilterSchema, Ct as TABLE_MCP_CLIENTS, D as KNOWLEDGE_V2_MENTIONS_SCHEMA, Dn as buildPreview, Dt as TABLE_MEMORY_RUN_FENCES, E as KNOWLEDGE_V2_ACTIVITY_SCHEMA, En as buildInputPreview, Et as TABLE_MCP_SERVER_VERSIONS, F as NOTIFICATIONS_SCHEMA, Fn as getBranchResponseSchema, Ft as TABLE_SCHEDULE_TRIGGERS, G as SKILLS_SCHEMA, Gn as getTraceLightResponseSchema, Gt as TABLE_THREAD_STATE, H as SCORERS_SCHEMA, Hn as getStringAttribute, Ht as TABLE_SKILL_VERSIONS, I as OBSERVATIONAL_MEMORY_SCHEMA, In as getRootSpanArgsSchema, It as TABLE_SCHEMAS, J as SPAN_SCHEMA, Jn as lightSpanRecordSchema, Jt as TABLE_WORKFLOW_DEFINITIONS, K as SKILL_BLOBS_SCHEMA, Kn as getTraceResponseSchema, Kt as TABLE_TOOL_PROVIDER_CONNECTIONS, L as OBSERVATIONAL_MEMORY_TABLE_SCHEMA, Ln as getRootSpanResponseSchema, Lt as TABLE_SCORERS, M as MCP_SERVERS_SCHEMA, Mn as createSpanRecordSchema, Mt as TABLE_PROMPT_BLOCK_VERSIONS, N as MCP_SERVER_VERSIONS_SCHEMA, Nn as extractBranchSpans, Nt as TABLE_RESOURCES, O as KNOWLEDGE_V2_NODES_SCHEMA, On as buildPreviewFromJson, Ot as TABLE_MESSAGES, P as MEMORY_RUN_FENCES_SCHEMA, Pn as getBranchArgsSchema, Pt as TABLE_SCHEDULES, Q as TABLE_CHANNEL_CONFIG, Qn as listTracesArgsSchema, Qt as TABLE_WORKFLOW_SNAPSHOT, R as OLD_SPAN_SCHEMA, Rn as getSpanArgsSchema, Rt as TABLE_SCORER_DEFINITIONS, S as KNOWLEDGE_SCOPE_ADDRESSES_SCHEMA, Sn as batchUpdateSpansArgsSchema, St as TABLE_KNOWLEDGE_SEMANTIC_OUTBOX, T as KNOWLEDGE_TABLE_NAMES, Tn as branchesOrderBySchema, Tt as TABLE_MCP_SERVERS, U as SCORER_DEFINITIONS_SCHEMA, Un as getStructureResponseSchema, Ut as TABLE_SPANS, V as RUN_FENCING_TABLE_SCHEMAS, Vn as getSpansResponseSchema, Vt as TABLE_SKILL_BLOBS, W as SCORER_DEFINITION_VERSIONS_SCHEMA, Wn as getTraceArgsSchema, Wt as TABLE_THREADS, X as TABLE_AGENT_VERSIONS, Xn as listBranchesResponseSchema, Xt as TABLE_WORKFLOW_RUN_ENTRIES, Y as TABLE_AGENTS, Yn as listBranchesArgsSchema, Yt as TABLE_WORKFLOW_RUNS, Z as TABLE_BACKGROUND_TASKS, Zn as listScoresBySpanResponseSchema, Zt as TABLE_WORKFLOW_RUN_OWNERS, _ as KNOWLEDGE_NODE_ADDRESSES_SCHEMA, _n as INPUT_PREVIEW_MAX_LENGTH, _r as isAppendOnlySince, _t as TABLE_KNOWLEDGE_PROPOSALS, a as DATASET_VERSIONS_SCHEMA, an as WORKFLOW_RUN_ENTRIES_SCHEMA, ar as spanRecordSchema, at as TABLE_EXPERIMENT_RESULTS, b as KNOWLEDGE_RECORDS_SCHEMA, bn as batchDeleteTracesArgsSchema, br as maxObservationCursor, bt as TABLE_KNOWLEDGE_SCOPE_ADDRESSES, c as FAVORITES_SCHEMA, cn as WORKSPACES_SCHEMA, cr as toTraceSpans, ct as TABLE_KNOWLEDGE_ACCESS_STATE, d as KNOWLEDGE_ACTIVITY_SCHEMA, dn as STORAGE_VISIBILITY_VALUES, dr as tracesOrderByFieldSchema, dt as TABLE_KNOWLEDGE_IMPORT_RUNS, en as TABLE_WORKSPACE_VERSIONS, er as listTracesResponseSchema, et as TABLE_CONFIGS, f as KNOWLEDGE_CURSORS_SCHEMA, fn as buildStorageSchema, fr as tracesOrderBySchema, ft as TABLE_KNOWLEDGE_IMPORT_STATE, g as KNOWLEDGE_NODES_SCHEMA, gn as BRANCH_SPAN_TYPE_SET, gr as compareObservationalMemoryHeadOrder, gt as TABLE_KNOWLEDGE_NODE_SCOPES, h as KNOWLEDGE_MENTIONS_SCHEMA, hn as BRANCH_SPAN_TYPES, hr as assertActiveObservationsApplied, ht as TABLE_KNOWLEDGE_NODE_ADDRESSES, i as DATASET_ITEMS_SCHEMA, in as WORKFLOW_RUNS_SCHEMA, ir as spanIdsSchema, it as TABLE_EXPERIMENTS, j as MCP_CLIENT_VERSIONS_SCHEMA, jn as createSpanArgsSchema, jt as TABLE_PROMPT_BLOCKS, k as KNOWLEDGE_V2_RECORDS_SCHEMA, kn as buildStoredPreview, kt as TABLE_NOTIFICATIONS, l as HARNESS_SESSIONS_SCHEMA, ln as WORKSPACE_VERSIONS_SCHEMA, lr as traceSpanSchema, lt as TABLE_KNOWLEDGE_ACTIVITY, m as KNOWLEDGE_IMPORT_STATE_SCHEMA, mn as BATCH_DELETE_TRACES_MAX_IDS, mr as updateSpanRecordSchema, mt as TABLE_KNOWLEDGE_NODES, n as AGENT_VERSIONS_SCHEMA, nn as TOOL_PROVIDER_CONNECTIONS_SCHEMA, nr as scoreTracesResponseSchema, nt as TABLE_DATASET_ITEMS, o as EXPERIMENTS_SCHEMA, on as WORKFLOW_RUN_JOURNAL_TABLE_CONFIGS, or as toLightSpanRecord, ot as TABLE_FAVORITES, p as KNOWLEDGE_IMPORT_RUNS_SCHEMA, pn as matchesExpectedWorkflowStatus, pr as updateSpanArgsSchema, pt as TABLE_KNOWLEDGE_MENTIONS, q as SKILL_VERSIONS_SCHEMA, qn as isPreviewTruncated, qt as TABLE_TRACES, r as DATASETS_SCHEMA, rn as WORKFLOW_DEFINITIONS_SCHEMA, rr as spanIds, rt as TABLE_DATASET_VERSIONS, s as EXPERIMENT_RESULTS_SCHEMA, sn as WORKFLOW_RUN_OWNERS_SCHEMA, sr as toTraceSpan, st as TABLE_HARNESS_SESSIONS, t as AGENTS_SCHEMA, tn as THREAD_STATE_SCHEMA, tr as scoreTracesRequestSchema, tt as TABLE_DATASETS, u as KNOWLEDGE_ACCESS_STATE_SCHEMA, un as STORAGE_FAVORITE_ENTITY_TYPES, ur as tracesFilterSchema, ut as TABLE_KNOWLEDGE_CURSORS, v as KNOWLEDGE_NODE_SCOPES_SCHEMA, vn as TraceStatus, vr as isBufferedChunkCoveredByCursor, vt as TABLE_KNOWLEDGE_RECORDS, w as KNOWLEDGE_SEMANTIC_OUTBOX_SCHEMA, wn as branchesOrderByFieldSchema, wt as TABLE_MCP_CLIENT_VERSIONS, x as KNOWLEDGE_RECORD_SCOPES_SCHEMA, xn as batchDeleteTracesResponseSchema, xr as planReflectionGenerationText, xt as TABLE_KNOWLEDGE_SCOPE_GRANTS, y as KNOWLEDGE_PROPOSALS_SCHEMA, yn as batchCreateSpansArgsSchema, yr as isBufferedReflectionUnchangedSince, yt as TABLE_KNOWLEDGE_RECORD_SCOPES, z as PROMPT_BLOCKS_SCHEMA, zn as getSpanResponseSchema, zt as TABLE_SCORER_DEFINITION_VERSIONS } from "../constants-Dro9fuhk.js";
|
package/dist/stream/index.cjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
-
const require_stream = require("../stream-
|
|
3
|
-
const require_llm = require("../llm-
|
|
2
|
+
const require_stream = require("../stream-BKEfY3-X.cjs");
|
|
3
|
+
const require_llm = require("../llm-dX0y0atH.cjs");
|
|
4
4
|
const require_file = require("../file-BEndQUN1.cjs");
|
|
5
5
|
exports.ChunkFrom = require_llm.ChunkFrom;
|
|
6
6
|
exports.DefaultGeneratedFile = require_file.DefaultGeneratedFile;
|
package/dist/stream/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Nn as convertFullStreamChunkToUIMessageStream, a as convertFullStreamChunkToMastra, c as WorkflowRunOutput, d as MastraModelOutput, i as withStreamCaching, n as createCachingTransformStream, o as convertMastraChunkToAISDKv5, r as createReplayStream, s as MastraAgentNetworkStream, t as smoothStream } from "../stream-
|
|
2
|
-
import { u as ChunkFrom } from "../llm-
|
|
1
|
+
import { Nn as convertFullStreamChunkToUIMessageStream, a as convertFullStreamChunkToMastra, c as WorkflowRunOutput, d as MastraModelOutput, i as withStreamCaching, n as createCachingTransformStream, o as convertMastraChunkToAISDKv5, r as createReplayStream, s as MastraAgentNetworkStream, t as smoothStream } from "../stream-CyaGm-DI.js";
|
|
2
|
+
import { u as ChunkFrom } from "../llm-hWZGKDUy.js";
|
|
3
3
|
import { n as DefaultGeneratedFileWithType, t as DefaultGeneratedFile } from "../file-DGZrR5f7.js";
|
|
4
4
|
export { ChunkFrom, DefaultGeneratedFile, DefaultGeneratedFileWithType, MastraAgentNetworkStream, MastraModelOutput, WorkflowRunOutput, convertFullStreamChunkToMastra, convertFullStreamChunkToUIMessageStream, convertMastraChunkToAISDKv5, createCachingTransformStream, createReplayStream, smoothStream, withStreamCaching };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
const require_rolldown_runtime = require("./rolldown-runtime-BrhgMLW6.cjs");
|
|
2
|
-
const require_llm = require("./llm-
|
|
2
|
+
const require_llm = require("./llm-dX0y0atH.cjs");
|
|
3
3
|
const require_message_list = require("./message-list-C0F2sDNC.cjs");
|
|
4
4
|
const require_observability = require("./observability-VaoaeadK.cjs");
|
|
5
5
|
const require_base = require("./base-BIzR1D3_.cjs");
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { n as __exportAll } from "./rolldown-runtime-tIEjjQTE.js";
|
|
2
|
-
import { d as attachModelStreamTransport, f as isDataChunk, i as resolveModelConfig, p as readModelStreamTransport } from "./llm-
|
|
2
|
+
import { d as attachModelStreamTransport, f as isDataChunk, i as resolveModelConfig, p as readModelStreamTransport } from "./llm-hWZGKDUy.js";
|
|
3
3
|
import { B as getResponseProviderItemIdFromPart, G as RESPONSE_ITEM_ID_PROVIDERS, K as RESPONSE_RESULT_ITEM_ID_KEY, f as coreContentToString, n as MessageList, p as messagesAreEqual, t as convertMessages } from "./message-list-RgFlLrxG.js";
|
|
4
4
|
import { _ as resolveObservabilityContext, g as createObservabilityContext } from "./observability-DPDWibyH.js";
|
|
5
5
|
import { t as MastraBase } from "./base-CKLWBhDo.js";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
2
|
const require_rolldown_runtime = require("../rolldown-runtime-BrhgMLW6.cjs");
|
|
3
3
|
const require_dist = require("../dist-CXeCeeW7.cjs");
|
|
4
|
-
const require_model = require("../model-
|
|
4
|
+
const require_model = require("../model-DEnu3A8A.cjs");
|
|
5
5
|
const require_model$1 = require("../model-jBymoqGa.cjs");
|
|
6
6
|
let stream = require("stream");
|
|
7
7
|
let module$1 = require("module");
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { o as simulateReadableStream } from "../dist-D3cKCUe-.js";
|
|
2
|
-
import { t as MastraLLMV1 } from "../model-
|
|
2
|
+
import { t as MastraLLMV1 } from "../model-CAp-mgCd.js";
|
|
3
3
|
import { t as AISDKV5LanguageModel } from "../model-DS-b2R-R.js";
|
|
4
4
|
import { createRequire } from "module";
|
|
5
5
|
import { Readable } from "stream";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
-
const require_tool_loop_agent = require("../tool-loop-agent-
|
|
2
|
+
const require_tool_loop_agent = require("../tool-loop-agent-Du3Vm65W.cjs");
|
|
3
3
|
exports.getSettings = require_tool_loop_agent.getSettings;
|
|
4
4
|
exports.isToolLoopAgentLike = require_tool_loop_agent.isToolLoopAgentLike;
|
|
5
5
|
exports.toolLoopAgentToMastraAgent = require_tool_loop_agent.toolLoopAgentToMastraAgent;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { n as getSettings, r as isToolLoopAgentLike, t as toolLoopAgentToMastraAgent } from "../tool-loop-agent-
|
|
1
|
+
export { n as getSettings, r as isToolLoopAgentLike, t as toolLoopAgentToMastraAgent } from "../tool-loop-agent-BYrNEcU_.js";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { m as generateId } from "./dist-TPVqg8oV.js";
|
|
2
|
-
import { T as Agent } from "./execution-fence-
|
|
3
|
-
import { un as isSupportedLanguageModel } from "./stream-
|
|
4
|
-
import { i as resolveModelConfig } from "./llm-
|
|
2
|
+
import { T as Agent } from "./execution-fence-DvN3Fwm3.js";
|
|
3
|
+
import { un as isSupportedLanguageModel } from "./stream-CyaGm-DI.js";
|
|
4
|
+
import { i as resolveModelConfig } from "./llm-hWZGKDUy.js";
|
|
5
5
|
import { N as ToolLoopAgent } from "./message-list-RgFlLrxG.js";
|
|
6
6
|
// src/tool-loop-agent/utils.ts
|
|
7
7
|
function isToolLoopAgentLike(obj) {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
const require_dist = require("./dist-P2rjrlmj.cjs");
|
|
2
|
-
const require_execution_fence = require("./execution-fence-
|
|
3
|
-
const require_stream = require("./stream-
|
|
4
|
-
const require_llm = require("./llm-
|
|
2
|
+
const require_execution_fence = require("./execution-fence-C-wa17Wr.cjs");
|
|
3
|
+
const require_stream = require("./stream-BKEfY3-X.cjs");
|
|
4
|
+
const require_llm = require("./llm-dX0y0atH.cjs");
|
|
5
5
|
const require_message_list = require("./message-list-C0F2sDNC.cjs");
|
|
6
6
|
// src/tool-loop-agent/utils.ts
|
|
7
7
|
function isToolLoopAgentLike(obj) {
|
|
@@ -8,6 +8,14 @@ export type WebSearchToolPlaceholder = {
|
|
|
8
8
|
export declare const webSearchTool: WebSearchToolPlaceholder;
|
|
9
9
|
export declare function isWebSearchTool(tool: unknown): tool is WebSearchToolPlaceholder;
|
|
10
10
|
export declare function normalizeWebSearchProvider(providerOrModel: unknown): WebSearchProvider;
|
|
11
|
+
/**
|
|
12
|
+
* The provider tool that webSearchTool stands for on the given model.
|
|
13
|
+
*
|
|
14
|
+
* A model with a native web search gets that tool. The Mastra gateway runs its own web search for
|
|
15
|
+
* every tool-calling model, so a gateway model from any other provider gets the gateway's tool
|
|
16
|
+
* instead of failing.
|
|
17
|
+
*/
|
|
18
|
+
export declare function resolveWebSearchProviderTool(model: unknown): ProviderDefinedTool;
|
|
11
19
|
export declare function createWebSearchProviderTool(provider: WebSearchProvider): ProviderDefinedTool;
|
|
12
20
|
export {};
|
|
13
21
|
//# sourceMappingURL=web-search.d.ts.map
|
package/dist/tools/index.cjs
CHANGED
|
@@ -4,7 +4,7 @@ const require_toolchecks = require("../toolchecks-DbBsQGHW.cjs");
|
|
|
4
4
|
const require_stream = require("../stream-BGbj9jAU.cjs");
|
|
5
5
|
const require_payload_transform = require("../payload-transform-CWgnsO9w.cjs");
|
|
6
6
|
const require_state_processor = require("../state-processor-DaSmhVUX.cjs");
|
|
7
|
-
const require_tools = require("../tools-
|
|
7
|
+
const require_tools = require("../tools-DZoVfKPl.cjs");
|
|
8
8
|
exports.CodeModeLimitError = require_tools.CodeModeLimitError;
|
|
9
9
|
exports.DEFAULT_GOAL_JUDGE_PROMPT = require_state_processor.DEFAULT_GOAL_JUDGE_PROMPT;
|
|
10
10
|
exports.DEFAULT_GOAL_MAX_RUNS = require_state_processor.DEFAULT_GOAL_MAX_RUNS;
|
package/dist/tools/index.js
CHANGED
|
@@ -3,5 +3,5 @@ import { c as isProviderDefinedTool, l as isProviderTool, u as isVercelTool } fr
|
|
|
3
3
|
import { t as ToolStream } from "../stream-D9JOykz7.js";
|
|
4
4
|
import { n as hasTransformedToolPayload, t as getTransformedToolPayload } from "../payload-transform-Dj3HUeD4.js";
|
|
5
5
|
import { A as writeObjective, C as GOAL_STATE_TYPE, D as readObjective, E as getObjectiveFromRequestContext, O as resolveEffectiveGoalSettings, S as GOAL_STATE_ID, a as TASK_STATE_TYPE, c as formatTaskListResult, d as summarizeTaskCheck, f as taskCheckTool, h as taskWriteTool, i as TASKS_STATE_ID, k as resolveGoalStore, l as getTasksFromRequestContext, m as taskUpdateTool, n as TaskStateProcessor, o as assignTaskIds, p as taskCompleteTool, r as TASKS_REQUEST_CONTEXT_KEY, s as demoteExtraInProgress, t as GoalStateProcessor, u as hasMultipleInProgress, v as DEFAULT_GOAL_JUDGE_PROMPT, w as clearObjective, y as DEFAULT_GOAL_MAX_RUNS } from "../state-processor-B_KsS82m.js";
|
|
6
|
-
import { _ as
|
|
6
|
+
import { _ as jsonSchemaToTsString, a as webFetchTool, c as createCodeMode, d as StdioCodeModeTransport, f as FRAME_PREFIX, g as generateStubs, h as createCodeModeInstructions, i as webSearchTool, l as createCodeModeTool, m as buildRunner, o as askUserTool, p as buildProgramModule, s as formatQuestionAnswer, t as submitPlanTool, u as CodeModeLimitError, v as sanitizeToolId, y as createCodeModeLogCollector } from "../tools-FwJyNoyg.js";
|
|
7
7
|
export { CodeModeLimitError, DEFAULT_GOAL_JUDGE_PROMPT, DEFAULT_GOAL_MAX_RUNS, FRAME_PREFIX, GOAL_STATE_ID, GOAL_STATE_TYPE, GoalStateProcessor, MASTRA_TOOL_MARKER, StdioCodeModeTransport, TASKS_REQUEST_CONTEXT_KEY, TASKS_STATE_ID, TASK_STATE_TYPE, TaskStateProcessor, Tool, ToolStream, askUserTool, assignTaskIds, buildProgramModule, buildRunner, clearObjective, createCodeMode, createCodeModeInstructions, createCodeModeLogCollector, createCodeModeTool, createTool, demoteExtraInProgress, formatQuestionAnswer, formatTaskListResult, generateStubs, getObjectiveFromRequestContext, getTasksFromRequestContext, getTransformedToolPayload, getValidationIssuePaths, hasMultipleInProgress, hasTransformedToolPayload, isProviderDefinedTool, isProviderTool, isValidationError, isVercelTool, jsonSchemaToTsString, noopObserve, readObjective, resolveEffectiveGoalSettings, resolveGoalStore, sanitizeToolId, submitPlanTool, summarizeTaskCheck, taskCheckTool, taskCompleteTool, taskUpdateTool, taskWriteTool, validateToolInput, validateToolOutput, webFetchTool, webSearchTool, writeObjective };
|
|
@@ -2,6 +2,7 @@ const require_rolldown_runtime = require("./rolldown-runtime-BrhgMLW6.cjs");
|
|
|
2
2
|
const require_error = require("./error-D90lJ6M7.cjs");
|
|
3
3
|
const require_request_context = require("./request-context-D9RXYCy8.cjs");
|
|
4
4
|
const require_tool = require("./tool-Dn9WSDVn.cjs");
|
|
5
|
+
const require_mastra_gateway_provider_tools = require("./mastra-gateway-provider-tools-WpH3Tmu4.cjs");
|
|
5
6
|
const require_errors = require("./errors-D5kMB1FQ.cjs");
|
|
6
7
|
let zod_v4 = require("zod/v4");
|
|
7
8
|
let os = require("os");
|
|
@@ -1159,15 +1160,8 @@ function isWebSearchTool(tool) {
|
|
|
1159
1160
|
}
|
|
1160
1161
|
function normalizeWebSearchProvider(providerOrModel) {
|
|
1161
1162
|
const provider = getProviderString(providerOrModel);
|
|
1162
|
-
const
|
|
1163
|
-
|
|
1164
|
-
"anthropic",
|
|
1165
|
-
"google",
|
|
1166
|
-
"xai"
|
|
1167
|
-
]);
|
|
1168
|
-
if (supportedProviders.has(provider)) return provider;
|
|
1169
|
-
const routerProvider = getRouterProvider(provider);
|
|
1170
|
-
if (supportedProviders.has(routerProvider)) return routerProvider;
|
|
1163
|
+
const supportedProvider = findSupportedProvider(provider);
|
|
1164
|
+
if (supportedProvider) return supportedProvider;
|
|
1171
1165
|
throw new require_error.MastraError({
|
|
1172
1166
|
id: "WEB_SEARCH_UNSUPPORTED_PROVIDER",
|
|
1173
1167
|
domain: require_error.ErrorDomain.AGENT,
|
|
@@ -1176,6 +1170,22 @@ function normalizeWebSearchProvider(providerOrModel) {
|
|
|
1176
1170
|
text: `The built-in webSearchTool supports OpenAI, Anthropic, Google, and xAI models. Could not infer a supported provider from "${provider}".`
|
|
1177
1171
|
});
|
|
1178
1172
|
}
|
|
1173
|
+
/**
|
|
1174
|
+
* The provider tool that webSearchTool stands for on the given model.
|
|
1175
|
+
*
|
|
1176
|
+
* A model with a native web search gets that tool. The Mastra gateway runs its own web search for
|
|
1177
|
+
* every tool-calling model, so a gateway model from any other provider gets the gateway's tool
|
|
1178
|
+
* instead of failing.
|
|
1179
|
+
*/
|
|
1180
|
+
function resolveWebSearchProviderTool(model) {
|
|
1181
|
+
if (isMastraGatewayModel(model) && !findSupportedProvider(getProviderString(model))) return {
|
|
1182
|
+
type: "provider-defined",
|
|
1183
|
+
id: require_mastra_gateway_provider_tools.OPENROUTER_WEB_SEARCH_TOOL_ID,
|
|
1184
|
+
name: "web_search",
|
|
1185
|
+
args: {}
|
|
1186
|
+
};
|
|
1187
|
+
return createWebSearchProviderTool(normalizeWebSearchProvider(model));
|
|
1188
|
+
}
|
|
1179
1189
|
function createWebSearchProviderTool(provider) {
|
|
1180
1190
|
const tool = getWebSearchProviderTool(provider);
|
|
1181
1191
|
return {
|
|
@@ -1185,6 +1195,27 @@ function createWebSearchProviderTool(provider) {
|
|
|
1185
1195
|
args: {}
|
|
1186
1196
|
};
|
|
1187
1197
|
}
|
|
1198
|
+
function findSupportedProvider(provider) {
|
|
1199
|
+
const supportedProviders = /* @__PURE__ */ new Set([
|
|
1200
|
+
"openai",
|
|
1201
|
+
"anthropic",
|
|
1202
|
+
"google",
|
|
1203
|
+
"xai"
|
|
1204
|
+
]);
|
|
1205
|
+
if (supportedProviders.has(provider)) return provider;
|
|
1206
|
+
const routerProvider = getRouterProvider(provider);
|
|
1207
|
+
if (supportedProviders.has(routerProvider)) return routerProvider;
|
|
1208
|
+
}
|
|
1209
|
+
/**
|
|
1210
|
+
* A router model reports the Mastra gateway as its gateway. Behind a host gateway that forwards
|
|
1211
|
+
* `mastra/...` ids, the gateway is the model's provider instead. A model built by the Mastra
|
|
1212
|
+
* gateway itself and passed in directly reports `openrouter` and carries the gateway's mark.
|
|
1213
|
+
*/
|
|
1214
|
+
function isMastraGatewayModel(model) {
|
|
1215
|
+
if (typeof model !== "object" || model === null) return false;
|
|
1216
|
+
const { gatewayId, provider } = model;
|
|
1217
|
+
return gatewayId === "mastra" || provider === "mastra" || require_mastra_gateway_provider_tools.isMastraGatewayChatModel(model);
|
|
1218
|
+
}
|
|
1188
1219
|
function getProviderString(providerOrModel) {
|
|
1189
1220
|
if (typeof providerOrModel === "string") return providerOrModel;
|
|
1190
1221
|
if (typeof providerOrModel === "object" && providerOrModel !== null) {
|
|
@@ -1384,12 +1415,6 @@ Object.defineProperty(exports, "createCodeModeTool", {
|
|
|
1384
1415
|
return createCodeModeTool;
|
|
1385
1416
|
}
|
|
1386
1417
|
});
|
|
1387
|
-
Object.defineProperty(exports, "createWebSearchProviderTool", {
|
|
1388
|
-
enumerable: true,
|
|
1389
|
-
get: function() {
|
|
1390
|
-
return createWebSearchProviderTool;
|
|
1391
|
-
}
|
|
1392
|
-
});
|
|
1393
1418
|
Object.defineProperty(exports, "formatQuestionAnswer", {
|
|
1394
1419
|
enumerable: true,
|
|
1395
1420
|
get: function() {
|
|
@@ -1414,10 +1439,10 @@ Object.defineProperty(exports, "jsonSchemaToTsString", {
|
|
|
1414
1439
|
return jsonSchemaToTsString;
|
|
1415
1440
|
}
|
|
1416
1441
|
});
|
|
1417
|
-
Object.defineProperty(exports, "
|
|
1442
|
+
Object.defineProperty(exports, "resolveWebSearchProviderTool", {
|
|
1418
1443
|
enumerable: true,
|
|
1419
1444
|
get: function() {
|
|
1420
|
-
return
|
|
1445
|
+
return resolveWebSearchProviderTool;
|
|
1421
1446
|
}
|
|
1422
1447
|
});
|
|
1423
1448
|
Object.defineProperty(exports, "sanitizeToolId", {
|
|
@@ -2,6 +2,7 @@ import { i as MastraError, n as ErrorDomain, t as ErrorCategory } from "./error-
|
|
|
2
2
|
import { u as RequestContext } from "./request-context-COnZHt2-.js";
|
|
3
3
|
import { r as createTool, s as isValidationError } from "./tool-DIFduuTw.js";
|
|
4
4
|
import { isStandardSchemaWithJSON, standardSchemaToJSONSchema } from "./schema/index.js";
|
|
5
|
+
import { n as isMastraGatewayChatModel, t as OPENROUTER_WEB_SEARCH_TOOL_ID } from "./mastra-gateway-provider-tools-C-AjGZis.js";
|
|
5
6
|
import { f as SandboxFeatureNotSupportedError } from "./errors-CzFYpCHw.js";
|
|
6
7
|
import { z } from "zod/v4";
|
|
7
8
|
import { tmpdir } from "os";
|
|
@@ -1155,15 +1156,8 @@ function isWebSearchTool(tool) {
|
|
|
1155
1156
|
}
|
|
1156
1157
|
function normalizeWebSearchProvider(providerOrModel) {
|
|
1157
1158
|
const provider = getProviderString(providerOrModel);
|
|
1158
|
-
const
|
|
1159
|
-
|
|
1160
|
-
"anthropic",
|
|
1161
|
-
"google",
|
|
1162
|
-
"xai"
|
|
1163
|
-
]);
|
|
1164
|
-
if (supportedProviders.has(provider)) return provider;
|
|
1165
|
-
const routerProvider = getRouterProvider(provider);
|
|
1166
|
-
if (supportedProviders.has(routerProvider)) return routerProvider;
|
|
1159
|
+
const supportedProvider = findSupportedProvider(provider);
|
|
1160
|
+
if (supportedProvider) return supportedProvider;
|
|
1167
1161
|
throw new MastraError({
|
|
1168
1162
|
id: "WEB_SEARCH_UNSUPPORTED_PROVIDER",
|
|
1169
1163
|
domain: ErrorDomain.AGENT,
|
|
@@ -1172,6 +1166,22 @@ function normalizeWebSearchProvider(providerOrModel) {
|
|
|
1172
1166
|
text: `The built-in webSearchTool supports OpenAI, Anthropic, Google, and xAI models. Could not infer a supported provider from "${provider}".`
|
|
1173
1167
|
});
|
|
1174
1168
|
}
|
|
1169
|
+
/**
|
|
1170
|
+
* The provider tool that webSearchTool stands for on the given model.
|
|
1171
|
+
*
|
|
1172
|
+
* A model with a native web search gets that tool. The Mastra gateway runs its own web search for
|
|
1173
|
+
* every tool-calling model, so a gateway model from any other provider gets the gateway's tool
|
|
1174
|
+
* instead of failing.
|
|
1175
|
+
*/
|
|
1176
|
+
function resolveWebSearchProviderTool(model) {
|
|
1177
|
+
if (isMastraGatewayModel(model) && !findSupportedProvider(getProviderString(model))) return {
|
|
1178
|
+
type: "provider-defined",
|
|
1179
|
+
id: OPENROUTER_WEB_SEARCH_TOOL_ID,
|
|
1180
|
+
name: "web_search",
|
|
1181
|
+
args: {}
|
|
1182
|
+
};
|
|
1183
|
+
return createWebSearchProviderTool(normalizeWebSearchProvider(model));
|
|
1184
|
+
}
|
|
1175
1185
|
function createWebSearchProviderTool(provider) {
|
|
1176
1186
|
const tool = getWebSearchProviderTool(provider);
|
|
1177
1187
|
return {
|
|
@@ -1181,6 +1191,27 @@ function createWebSearchProviderTool(provider) {
|
|
|
1181
1191
|
args: {}
|
|
1182
1192
|
};
|
|
1183
1193
|
}
|
|
1194
|
+
function findSupportedProvider(provider) {
|
|
1195
|
+
const supportedProviders = /* @__PURE__ */ new Set([
|
|
1196
|
+
"openai",
|
|
1197
|
+
"anthropic",
|
|
1198
|
+
"google",
|
|
1199
|
+
"xai"
|
|
1200
|
+
]);
|
|
1201
|
+
if (supportedProviders.has(provider)) return provider;
|
|
1202
|
+
const routerProvider = getRouterProvider(provider);
|
|
1203
|
+
if (supportedProviders.has(routerProvider)) return routerProvider;
|
|
1204
|
+
}
|
|
1205
|
+
/**
|
|
1206
|
+
* A router model reports the Mastra gateway as its gateway. Behind a host gateway that forwards
|
|
1207
|
+
* `mastra/...` ids, the gateway is the model's provider instead. A model built by the Mastra
|
|
1208
|
+
* gateway itself and passed in directly reports `openrouter` and carries the gateway's mark.
|
|
1209
|
+
*/
|
|
1210
|
+
function isMastraGatewayModel(model) {
|
|
1211
|
+
if (typeof model !== "object" || model === null) return false;
|
|
1212
|
+
const { gatewayId, provider } = model;
|
|
1213
|
+
return gatewayId === "mastra" || provider === "mastra" || isMastraGatewayChatModel(model);
|
|
1214
|
+
}
|
|
1184
1215
|
function getProviderString(providerOrModel) {
|
|
1185
1216
|
if (typeof providerOrModel === "string") return providerOrModel;
|
|
1186
1217
|
if (typeof providerOrModel === "object" && providerOrModel !== null) {
|
|
@@ -1320,4 +1351,4 @@ const submitPlanTool = createTool({
|
|
|
1320
1351
|
}
|
|
1321
1352
|
}
|
|
1322
1353
|
});
|
|
1323
|
-
export {
|
|
1354
|
+
export { jsonSchemaToTsString as _, webFetchTool as a, createCodeMode as c, StdioCodeModeTransport as d, FRAME_PREFIX as f, generateStubs as g, createCodeModeInstructions as h, webSearchTool as i, createCodeModeTool as l, buildRunner as m, isWebSearchTool as n, askUserTool as o, buildProgramModule as p, resolveWebSearchProviderTool as r, formatQuestionAnswer as s, submitPlanTool as t, CodeModeLimitError as u, sanitizeToolId as v, createCodeModeLogCollector as y };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
const require_error = require("./error-D90lJ6M7.cjs");
|
|
2
2
|
const require_tool = require("./tool-Dn9WSDVn.cjs");
|
|
3
3
|
const require_ee_iTj2bRDt = require("./ee-iTj2bRDt-D3-QLGDF.cjs");
|
|
4
|
-
const require_background_tasks = require("./background-tasks-
|
|
4
|
+
const require_background_tasks = require("./background-tasks-DEBc9BBP.cjs");
|
|
5
5
|
const require_base = require("./base-BIzR1D3_.cjs");
|
|
6
6
|
const require_observability = require("./observability-VaoaeadK.cjs");
|
|
7
7
|
const require_utils = require("./utils-D-eNsgDM.cjs");
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { i as MastraError, n as ErrorDomain, o as getErrorFromUnknown, t as ErrorCategory } from "./error-oh2DLsP2.js";
|
|
2
2
|
import { c as registerToolOutputValidationSchema, d as validateToolOutput, f as validateToolSuspendData, h as markBuilderValidatedInput, i as createStandardSchemaIssuesError, n as Tool, o as getValidationIssuePaths, p as createToolObserve, s as isValidationError, u as validateToolInput } from "./tool-DIFduuTw.js";
|
|
3
3
|
import { i as MastraFGAPermissions } from "./ee-iTj2bRDt-By_B9ngH.js";
|
|
4
|
-
import { a as isToolBackgroundEligible, i as isModelBackgroundOverrideAllowed, n as backgroundOverrideJsonSchema, r as backgroundOverrideZodSchema } from "./background-tasks-
|
|
4
|
+
import { a as isToolBackgroundEligible, i as isModelBackgroundOverrideAllowed, n as backgroundOverrideJsonSchema, r as backgroundOverrideZodSchema } from "./background-tasks-CbBbS-g3.js";
|
|
5
5
|
import { t as MastraBase } from "./base-CKLWBhDo.js";
|
|
6
6
|
import { g as createObservabilityContext, h as wrapMastra, o as executionFailureTermination } from "./observability-DPDWibyH.js";
|
|
7
7
|
import { a as getOrCreateSpan, t as executeWithContext } from "./utils-DU_pU5SK.js";
|
package/dist/utils.cjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
2
|
const require_zod_utils = require("./zod-utils-Cl5jw5N_.cjs");
|
|
3
|
-
const require_utils = require("./utils-
|
|
3
|
+
const require_utils = require("./utils-Ag63fN_T.cjs");
|
|
4
4
|
const require_fetchWithRetry = require("./fetchWithRetry-f5k4p7_1.cjs");
|
|
5
5
|
const require_utils_safe_stringify = require("./utils/safe-stringify.cjs");
|
|
6
6
|
const require_deep_equal = require("./deep-equal-TMDmByBC.cjs");
|
package/dist/utils.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { a as isZodObject, i as isZodArray, r as getZodTypeName, t as getZodDef } from "./zod-utils-BDDS_mxU.js";
|
|
2
|
-
import { C as setNestedValue, S as selectFields, _ as parseSqlIdentifier, a as ensureToolProperties, b as removeUndefinedValues, c as isCoreMessage, d as makeCoreTool, f as makeCoreToolV5, g as parseFieldKey, h as omitKeys, i as delay, l as isUiMessage, m as maskStreamTags, n as createMastraProxy, o as generateEmptyFromSchema, p as makeProcessorCoreTool, r as deepMerge, s as getNestedValue, t as checkEvalStorageFields, u as isZodType, v as readPositiveIntEnv, x as resolveSerializedZodOutput, y as rebindProcessorTools } from "./utils-
|
|
2
|
+
import { C as setNestedValue, S as selectFields, _ as parseSqlIdentifier, a as ensureToolProperties, b as removeUndefinedValues, c as isCoreMessage, d as makeCoreTool, f as makeCoreToolV5, g as parseFieldKey, h as omitKeys, i as delay, l as isUiMessage, m as maskStreamTags, n as createMastraProxy, o as generateEmptyFromSchema, p as makeProcessorCoreTool, r as deepMerge, s as getNestedValue, t as checkEvalStorageFields, u as isZodType, v as readPositiveIntEnv, x as resolveSerializedZodOutput, y as rebindProcessorTools } from "./utils-Dl5BqcZO.js";
|
|
3
3
|
import { t as fetchWithRetry } from "./fetchWithRetry-DFSvpYDT.js";
|
|
4
4
|
import { boundedStringify, ensureSerializable, isBoundedSerializable, safeStringify } from "./utils/safe-stringify.js";
|
|
5
5
|
import { t as deepEqual } from "./deep-equal-d1xU02ag.js";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { standardSchemaToJSONSchema, toStandardSchema } from "./schema/index.js";
|
|
2
|
-
import { Ct as collectTemplateStepIds, Dt as validateTemplate } from "./stream-
|
|
2
|
+
import { Ct as collectTemplateStepIds, Dt as validateTemplate } from "./stream-CyaGm-DI.js";
|
|
3
3
|
import { z } from "zod";
|
|
4
4
|
// src/workflows/dynamic/graph.ts
|
|
5
5
|
/**
|
package/dist/vector/index.cjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
2
|
const require_base = require("../base-BIzR1D3_.cjs");
|
|
3
3
|
const require_error = require("../error-D90lJ6M7.cjs");
|
|
4
|
-
const require_execution_fence = require("../execution-fence-
|
|
4
|
+
const require_execution_fence = require("../execution-fence-C-wa17Wr.cjs");
|
|
5
5
|
const require_message_list = require("../message-list-C0F2sDNC.cjs");
|
|
6
6
|
const require_dist = require("../dist-P2rjrlmj.cjs");
|
|
7
7
|
const require_dist$1 = require("../dist-CXeCeeW7.cjs");
|
package/dist/vector/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { t as MastraBase } from "../base-CKLWBhDo.js";
|
|
2
2
|
import { i as MastraError, n as ErrorDomain, t as ErrorCategory } from "../error-oh2DLsP2.js";
|
|
3
|
-
import { Zt as embed$3, ua as createVectorErrorId } from "../execution-fence-
|
|
3
|
+
import { Zt as embed$3, ua as createVectorErrorId } from "../execution-fence-DvN3Fwm3.js";
|
|
4
4
|
import { P as embed$2 } from "../message-list-RgFlLrxG.js";
|
|
5
5
|
import { r as embed$1 } from "../dist-TPVqg8oV.js";
|
|
6
6
|
import { n as embed } from "../dist-D3cKCUe-.js";
|
package/dist/worker/index.cjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
-
const require_worker = require("../worker-
|
|
2
|
+
const require_worker = require("../worker-Dvt_y5ra.cjs");
|
|
3
3
|
exports.BackgroundTaskWorker = require_worker.BackgroundTaskWorker;
|
|
4
4
|
exports.HttpRemoteStrategy = require_worker.HttpRemoteStrategy;
|
|
5
5
|
exports.InProcessStrategy = require_worker.InProcessStrategy;
|
package/dist/worker/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export { n as BackgroundTaskWorker, s as HttpRemoteStrategy, t as InProcessStrategy, l as MastraWorker, a as OrchestrationWorker, o as PullTransport, r as SchedulerWorker, c as StepExecutionError } from "../worker-
|
|
1
|
+
export { n as BackgroundTaskWorker, s as HttpRemoteStrategy, t as InProcessStrategy, l as MastraWorker, a as OrchestrationWorker, o as PullTransport, r as SchedulerWorker, c as StepExecutionError } from "../worker-oSqtPcV6.js";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
const require_execution_fence = require("./execution-fence-
|
|
1
|
+
const require_execution_fence = require("./execution-fence-C-wa17Wr.cjs");
|
|
2
2
|
const require_request_context = require("./request-context-D9RXYCy8.cjs");
|
|
3
|
-
const require_worker = require("./worker-
|
|
3
|
+
const require_worker = require("./worker-Dvt_y5ra.cjs");
|
|
4
4
|
const require_schedules = require("./schedules-BZS8McF7.cjs");
|
|
5
5
|
// src/schedules/worker.ts
|
|
6
6
|
/** PubSub topic on which the scheduler publishes `agent-schedule.fire` events. */
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
const require_execution_fence = require("./execution-fence-
|
|
1
|
+
const require_execution_fence = require("./execution-fence-C-wa17Wr.cjs");
|
|
2
2
|
const require_scheduler = require("./scheduler-CMjK0LoQ.cjs");
|
|
3
|
-
const require_background_tasks = require("./background-tasks-
|
|
3
|
+
const require_background_tasks = require("./background-tasks-DEBc9BBP.cjs");
|
|
4
4
|
const require_request_context = require("./request-context-D9RXYCy8.cjs");
|
|
5
5
|
// src/worker/worker.ts
|
|
6
6
|
/**
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { $s as resolveAgentById } from "./execution-fence-
|
|
1
|
+
import { $s as resolveAgentById } from "./execution-fence-DvN3Fwm3.js";
|
|
2
2
|
import { u as RequestContext } from "./request-context-COnZHt2-.js";
|
|
3
|
-
import { l as MastraWorker, o as PullTransport } from "./worker-
|
|
3
|
+
import { l as MastraWorker, o as PullTransport } from "./worker-oSqtPcV6.js";
|
|
4
4
|
import { l as parseFsAgentScheduleRowId } from "./schedules-DZfSx-7P.js";
|
|
5
5
|
// src/schedules/worker.ts
|
|
6
6
|
/** PubSub topic on which the scheduler publishes `agent-schedule.fire` events. */
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { $s as resolveAgentById, Ac as getStepEntry, Fs as WorkflowEventProcessor, Is as StepExecutor, Ll as assertDrainTimeout, Ls as computeScheduleDefinitionHash, Rl as waitMs, kc as getNestedWorkflow } from "./execution-fence-
|
|
1
|
+
import { $s as resolveAgentById, Ac as getStepEntry, Fs as WorkflowEventProcessor, Is as StepExecutor, Ll as assertDrainTimeout, Ls as computeScheduleDefinitionHash, Rl as waitMs, kc as getNestedWorkflow } from "./execution-fence-DvN3Fwm3.js";
|
|
2
2
|
import { t as Scheduler } from "./scheduler-0ShtMM1I.js";
|
|
3
|
-
import { l as BackgroundTaskManager } from "./background-tasks-
|
|
3
|
+
import { l as BackgroundTaskManager } from "./background-tasks-CbBbS-g3.js";
|
|
4
4
|
import { u as RequestContext } from "./request-context-COnZHt2-.js";
|
|
5
5
|
// src/worker/worker.ts
|
|
6
6
|
/**
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
const require_stream = require("./stream-
|
|
1
|
+
const require_stream = require("./stream-BKEfY3-X.cjs");
|
|
2
2
|
require("./utils-D-eNsgDM.cjs");
|
|
3
3
|
const require_output_helpers = require("./output-helpers-By5FbLpp.cjs");
|
|
4
|
-
const require_execution_fence = require("./execution-fence-
|
|
5
|
-
const require_background_tasks = require("./background-tasks-
|
|
4
|
+
const require_execution_fence = require("./execution-fence-C-wa17Wr.cjs");
|
|
5
|
+
const require_background_tasks = require("./background-tasks-DEBc9BBP.cjs");
|
|
6
6
|
let zod = require("zod");
|
|
7
7
|
// src/background-tasks/workflow.ts
|
|
8
8
|
const inputSchema = zod.z.object({ taskId: zod.z.string() });
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { dn as resolveSuspendedToolRunId } from "./stream-
|
|
1
|
+
import { dn as resolveSuspendedToolRunId } from "./stream-CyaGm-DI.js";
|
|
2
2
|
import "./utils-DU_pU5SK.js";
|
|
3
3
|
import { h as slimProgressChunk } from "./output-helpers-k2-48ssH.js";
|
|
4
|
-
import { Os as createWorkflow, Pc as createStep } from "./execution-fence-
|
|
5
|
-
import { d as nextAttemptStart, f as suspendEnvelope, m as unwrapSuspendData, p as toolSuspendPayload, u as BACKGROUND_TASK_WORKFLOW_ID } from "./background-tasks-
|
|
4
|
+
import { Os as createWorkflow, Pc as createStep } from "./execution-fence-DvN3Fwm3.js";
|
|
5
|
+
import { d as nextAttemptStart, f as suspendEnvelope, m as unwrapSuspendData, p as toolSuspendPayload, u as BACKGROUND_TASK_WORKFLOW_ID } from "./background-tasks-CbBbS-g3.js";
|
|
6
6
|
import { z } from "zod";
|
|
7
7
|
// src/background-tasks/workflow.ts
|
|
8
8
|
const inputSchema = z.object({ taskId: z.string() });
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
-
const require_builder = require("../../builder-
|
|
2
|
+
const require_builder = require("../../builder-DBori4UC.cjs");
|
|
3
3
|
exports.WORKFLOW_BUILDER_AUTHORING_CONSTRAINTS = require_builder.WORKFLOW_BUILDER_AUTHORING_CONSTRAINTS;
|
|
4
4
|
exports.WORKFLOW_BUILDER_AUTHORING_PLAYBOOK = require_builder.WORKFLOW_BUILDER_AUTHORING_PLAYBOOK;
|
|
5
5
|
exports.WORKFLOW_BUILDER_MAPPING_CONFIG_DESCRIPTION = require_builder.WORKFLOW_BUILDER_MAPPING_CONFIG_DESCRIPTION;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { U as WORKFLOW_BUILDER_AUTHORING_CONSTRAINTS, W as WORKFLOW_BUILDER_AUTHORING_PLAYBOOK, i as WORKFLOW_BUILDER_MAPPING_CONFIG_DESCRIPTION, t as WORKFLOW_BUILDER_SUPPORTED_STEP_TYPES, B as compareWorkflowBuilderSchemas, r as createWorkflowBuilderAgent, a as deleteStoredWorkflowResponseSchema, V as inspectWorkflowBuilderSchemas, o as listStoredWorkflowsResponseSchema, n as normalizeWorkflowBuilderDefinition, H as preflightWorkflowDefinition, s as storedWorkflowDefinitionSchema, c as upsertStoredWorkflowResponseSchema, l as workflowBuilderAgentEntryInputSchema, u as workflowBuilderAgentEntrySchema, d as workflowBuilderClassifierEntryInputSchema, f as workflowBuilderClassifierEntrySchema, p as workflowBuilderConditionalEntryInputSchema, m as workflowBuilderConditionalEntrySchema, h as workflowBuilderDefinitionInputSchema, g as workflowBuilderDefinitionSchema, _ as workflowBuilderForeachEntryInputSchema, v as workflowBuilderForeachEntrySchema, y as workflowBuilderGraphEntryInputSchema, b as workflowBuilderGraphEntrySchema, x as workflowBuilderLoopEntryInputSchema, S as workflowBuilderLoopEntrySchema, C as workflowBuilderMappingConfigSchema, w as workflowBuilderMappingDescriptorSchema, T as workflowBuilderMappingEntryInputSchema, E as workflowBuilderMappingEntrySchema, D as workflowBuilderNestedWorkflowEntryInputSchema, O as workflowBuilderNestedWorkflowEntrySchema, k as workflowBuilderParallelEntryInputSchema, A as workflowBuilderParallelEntrySchema, j as workflowBuilderPredicateSchema, M as workflowBuilderScheduleConfigSchema, N as workflowBuilderScheduleSchema, P as workflowBuilderSleepEntryInputSchema, F as workflowBuilderSleepEntrySchema, I as workflowBuilderSleepUntilEntryInputSchema, L as workflowBuilderSleepUntilEntrySchema, R as workflowBuilderToolEntryInputSchema, z as workflowBuilderToolEntrySchema } from "../../builder-
|
|
1
|
+
export { U as WORKFLOW_BUILDER_AUTHORING_CONSTRAINTS, W as WORKFLOW_BUILDER_AUTHORING_PLAYBOOK, i as WORKFLOW_BUILDER_MAPPING_CONFIG_DESCRIPTION, t as WORKFLOW_BUILDER_SUPPORTED_STEP_TYPES, B as compareWorkflowBuilderSchemas, r as createWorkflowBuilderAgent, a as deleteStoredWorkflowResponseSchema, V as inspectWorkflowBuilderSchemas, o as listStoredWorkflowsResponseSchema, n as normalizeWorkflowBuilderDefinition, H as preflightWorkflowDefinition, s as storedWorkflowDefinitionSchema, c as upsertStoredWorkflowResponseSchema, l as workflowBuilderAgentEntryInputSchema, u as workflowBuilderAgentEntrySchema, d as workflowBuilderClassifierEntryInputSchema, f as workflowBuilderClassifierEntrySchema, p as workflowBuilderConditionalEntryInputSchema, m as workflowBuilderConditionalEntrySchema, h as workflowBuilderDefinitionInputSchema, g as workflowBuilderDefinitionSchema, _ as workflowBuilderForeachEntryInputSchema, v as workflowBuilderForeachEntrySchema, y as workflowBuilderGraphEntryInputSchema, b as workflowBuilderGraphEntrySchema, x as workflowBuilderLoopEntryInputSchema, S as workflowBuilderLoopEntrySchema, C as workflowBuilderMappingConfigSchema, w as workflowBuilderMappingDescriptorSchema, T as workflowBuilderMappingEntryInputSchema, E as workflowBuilderMappingEntrySchema, D as workflowBuilderNestedWorkflowEntryInputSchema, O as workflowBuilderNestedWorkflowEntrySchema, k as workflowBuilderParallelEntryInputSchema, A as workflowBuilderParallelEntrySchema, j as workflowBuilderPredicateSchema, M as workflowBuilderScheduleConfigSchema, N as workflowBuilderScheduleSchema, P as workflowBuilderSleepEntryInputSchema, F as workflowBuilderSleepEntrySchema, I as workflowBuilderSleepUntilEntryInputSchema, L as workflowBuilderSleepUntilEntrySchema, R as workflowBuilderToolEntryInputSchema, z as workflowBuilderToolEntrySchema } from "../../builder-BOIUFJTC.js";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
-
const require_execution_fence = require("../../execution-fence-
|
|
2
|
+
const require_execution_fence = require("../../execution-fence-C-wa17Wr.cjs");
|
|
3
3
|
exports.EventedExecutionEngine = require_execution_fence.EventedExecutionEngine;
|
|
4
4
|
exports.EventedRun = require_execution_fence.EventedRun;
|
|
5
5
|
exports.EventedWorkflow = require_execution_fence.EventedWorkflow;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { Oc as EventedExecutionEngine, ks as EventedRun, As as EventedWorkflow, Is as StepExecutor, Fs as WorkflowEventProcessor, js as cloneStep, Ms as cloneWorkflow, Ns as createStep, Ps as createWorkflow } from "../../execution-fence-
|
|
1
|
+
export { Oc as EventedExecutionEngine, ks as EventedRun, As as EventedWorkflow, Is as StepExecutor, Fs as WorkflowEventProcessor, js as cloneStep, Ms as cloneWorkflow, Ns as createStep, Ps as createWorkflow } from "../../execution-fence-DvN3Fwm3.js";
|
package/dist/workflows/index.cjs
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
-
const require_execution_fence = require("../execution-fence-
|
|
3
|
-
const require_stream = require("../stream-
|
|
2
|
+
const require_execution_fence = require("../execution-fence-C-wa17Wr.cjs");
|
|
3
|
+
const require_stream = require("../stream-BKEfY3-X.cjs");
|
|
4
4
|
const require_predicate_index = require("../predicate/index.cjs");
|
|
5
5
|
const require_schedules = require("../schedules-BZS8McF7.cjs");
|
|
6
6
|
const require_scheduler = require("../scheduler-CMjK0LoQ.cjs");
|
|
7
|
-
const require_validate = require("../validate-
|
|
8
|
-
const require_rehydrate = require("../rehydrate-
|
|
7
|
+
const require_validate = require("../validate-bRsKfPrD.cjs");
|
|
8
|
+
const require_rehydrate = require("../rehydrate-DNf3nk5t.cjs");
|
|
9
9
|
// src/workflows/state-reader.ts
|
|
10
10
|
const getStep = (state, stepId) => state.steps?.[stepId];
|
|
11
11
|
const getFirstStepResult = (step) => {
|
package/dist/workflows/index.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { Al as validateStepRequestContext, Cl as isSingleStepEntry, Dl as runCountDeprecationMessage, Ds as createEventedWorkflow, El as resolveForeachConcurrency, Es as cloneWorkflow, Fc as isProcessor, Fl as getEntryId, Ic as mapVariable, Il as getEntryWorkflow, Lc as predicateToCondition, Ls as computeScheduleDefinitionHash, Mc as Workflow, Ml as validateStepStateData, Nc as cloneStep, Nl as validateStepSuspendData, Ol as setLongTimeout, Os as createWorkflow, Pc as createStep, Pl as waitForSuspendedSnapshot, Qc as ExecutionEngine, Rc as evaluatePredicate, Sl as isEntryFinished, Tl as omitPriorSuspensionFields, Wc as DefaultExecutionEngine, _l as getRestartStartIndex, al as createStepFromTool, bl as getStepIds, cl as abortableSleep, dl as cleanStepResult, fl as createDeprecationProxy, gl as defineStateAccessors, hl as defineLazyWriter, il as createStepFromClassifier, jc as Run, jl as validateStepResumeData, kl as validateStepInput, ll as applyStateDelta, ml as createTimeTravelExecutionParams, nl as createMappingStep, ol as RESUME_SNAPSHOT_POLL_INTERVAL_MS, pl as createRestartExecutionParams, rl as createStepFromAgent, sl as RESUME_SNAPSHOT_WAIT_STATUSES, ul as assertTimeTravelGraphMatchesSnapshot, vl as getResumeLabelsByStepId, wl as omitPriorCompletionFields, xl as hydrateSerializedStepErrors, yl as getSingleStepEntryId, zl as workflowTermination } from "../execution-fence-
|
|
2
|
-
import { Ot as getStepResult, kt as getStepResultAsync } from "../stream-
|
|
1
|
+
import { Al as validateStepRequestContext, Cl as isSingleStepEntry, Dl as runCountDeprecationMessage, Ds as createEventedWorkflow, El as resolveForeachConcurrency, Es as cloneWorkflow, Fc as isProcessor, Fl as getEntryId, Ic as mapVariable, Il as getEntryWorkflow, Lc as predicateToCondition, Ls as computeScheduleDefinitionHash, Mc as Workflow, Ml as validateStepStateData, Nc as cloneStep, Nl as validateStepSuspendData, Ol as setLongTimeout, Os as createWorkflow, Pc as createStep, Pl as waitForSuspendedSnapshot, Qc as ExecutionEngine, Rc as evaluatePredicate, Sl as isEntryFinished, Tl as omitPriorSuspensionFields, Wc as DefaultExecutionEngine, _l as getRestartStartIndex, al as createStepFromTool, bl as getStepIds, cl as abortableSleep, dl as cleanStepResult, fl as createDeprecationProxy, gl as defineStateAccessors, hl as defineLazyWriter, il as createStepFromClassifier, jc as Run, jl as validateStepResumeData, kl as validateStepInput, ll as applyStateDelta, ml as createTimeTravelExecutionParams, nl as createMappingStep, ol as RESUME_SNAPSHOT_POLL_INTERVAL_MS, pl as createRestartExecutionParams, rl as createStepFromAgent, sl as RESUME_SNAPSHOT_WAIT_STATUSES, ul as assertTimeTravelGraphMatchesSnapshot, vl as getResumeLabelsByStepId, wl as omitPriorCompletionFields, xl as hydrateSerializedStepErrors, yl as getSingleStepEntryId, zl as workflowTermination } from "../execution-fence-DvN3Fwm3.js";
|
|
2
|
+
import { Ot as getStepResult, kt as getStepResultAsync } from "../stream-CyaGm-DI.js";
|
|
3
3
|
import { derivePredicateLabel, predicateSchema } from "../predicate/index.js";
|
|
4
4
|
import { _ as validateCron, h as computeNextFireAt } from "../schedules-DZfSx-7P.js";
|
|
5
5
|
import { i as runScheduleTick, n as WorkflowScheduler, r as claimScheduleFire, t as Scheduler } from "../scheduler-0ShtMM1I.js";
|
|
6
|
-
import { a as jsonSchemaToZod, c as analyzeMapConfig, d as toJsonSchemaOrUndefined, f as validateWorkflowRefs, h as forEachSingleStepEntryWithPath, i as validateWorkflowSchemas, l as parseMapConfig, m as forEachSingleStepEntry, n as validateDynamicWorkflow, o as validateStorableJsonSchema, p as collectNestedWorkflowIds, r as validateWorkflowStructure, s as inferGraphSchemas, t as assertValidDynamicWorkflow, u as schemaCompatibility } from "../validate-
|
|
7
|
-
import { n as entryOptionFields, r as toStorableGraph, t as rehydrateWorkflow } from "../rehydrate-
|
|
6
|
+
import { a as jsonSchemaToZod, c as analyzeMapConfig, d as toJsonSchemaOrUndefined, f as validateWorkflowRefs, h as forEachSingleStepEntryWithPath, i as validateWorkflowSchemas, l as parseMapConfig, m as forEachSingleStepEntry, n as validateDynamicWorkflow, o as validateStorableJsonSchema, p as collectNestedWorkflowIds, r as validateWorkflowStructure, s as inferGraphSchemas, t as assertValidDynamicWorkflow, u as schemaCompatibility } from "../validate-CYqPJX3z.js";
|
|
7
|
+
import { n as entryOptionFields, r as toStorableGraph, t as rehydrateWorkflow } from "../rehydrate-C_fSTYcV.js";
|
|
8
8
|
// src/workflows/state-reader.ts
|
|
9
9
|
const getStep = (state, stepId) => state.steps?.[stepId];
|
|
10
10
|
const getFirstStepResult = (step) => {
|