@mastra/core 1.87.0-alpha.13 → 1.87.0-alpha.14
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-DYwtbG2-.js → agent-controller-FSjSZ_iD.js} +5 -5
- package/dist/{agent-controller-DDxEG9Nd.cjs → agent-controller-k4B293tu.cjs} +5 -5
- package/dist/background-tasks/index.cjs +1 -1
- package/dist/background-tasks/index.js +1 -1
- package/dist/{background-tasks-B8Lk1bt5.js → background-tasks-ClI6oF60.js} +1 -1
- package/dist/{background-tasks-LfQsDG6J.cjs → background-tasks-D40Y_iLc.cjs} +1 -1
- package/dist/browser/index.cjs +1 -1
- package/dist/browser/index.js +1 -1
- package/dist/{builder-CPgUrTDP.cjs → builder-C_I6l0US.cjs} +2 -2
- package/dist/{builder-DLaSPG2u.js → builder-D00XMm41.js} +2 -2
- package/dist/channels/index.cjs +2 -2
- package/dist/channels/index.js +2 -2
- package/dist/{channels-DH9fKqmy.cjs → channels-BU5_kAUO.cjs} +1 -1
- package/dist/{channels-BPxJYR70.js → channels-DMSae7xD.js} +1 -1
- package/dist/coding-agent/index.cjs +1 -1
- package/dist/coding-agent/index.js +1 -1
- package/dist/{constants-Bou0hEgY.cjs → constants-CFO8w780.cjs} +8 -0
- package/dist/{constants-CFWgIaqA.js → constants-CUv0mU2y.js} +8 -0
- 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 +751 -741
- package/dist/docs/references/docs-harness-schedules.md +34 -0
- package/dist/docs/references/reference-workspace-factory-sandbox.md +2 -0
- package/dist/evals/index.cjs +2 -2
- package/dist/evals/index.js +2 -2
- package/dist/evals/scoreTraces/index.cjs +2 -2
- package/dist/evals/scoreTraces/index.js +2 -2
- 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-DeOr7BXy.cjs → llm-C1aiWB6O.cjs} +2 -2
- package/dist/{llm-DGa7alUy.js → llm-D5rGQSnS.js} +2 -2
- package/dist/loop/index.cjs +2 -2
- package/dist/loop/index.js +2 -2
- package/dist/{manager-B-pQMauy.cjs → manager-B2z5f39G.cjs} +3 -3
- package/dist/{manager-BErWwr50.js → manager-DxwPLhYJ.js} +3 -3
- package/dist/mastra/index.cjs +1 -1
- package/dist/mastra/index.js +1 -1
- package/dist/{mastra-B1BKkzX0.js → mastra-CHd7UnbI.js} +16 -16
- package/dist/{mastra-CoWxmLQl.cjs → mastra-WMuI7TZD.cjs} +16 -16
- package/dist/memory/index.cjs +2 -2
- package/dist/memory/index.js +2 -2
- package/dist/{model-Bz3zffBv.js → model-B8DlLHex.js} +1 -1
- package/dist/{model-CGH6nAvh.cjs → model-C2CTzjMk.cjs} +1 -1
- package/dist/{netlify-D7oirBdu.cjs → netlify-Dhs0UJul.cjs} +1 -1
- package/dist/{netlify-CzbukKO2.js → netlify-xQFmVbr4.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-DTaqnIYP.cjs → provider-registry-CSQPAFzz.cjs} +4 -4
- package/dist/{provider-registry-CdCkSE3h.js → provider-registry-FxVHWmht.js} +4 -4
- package/dist/{registry-generator-Dbxm-MYh.js → registry-generator-BzsrHxrr.js} +1 -1
- package/dist/{registry-generator-CcgFsigf.cjs → registry-generator-Dsh7xcz9.cjs} +1 -1
- package/dist/{rehydrate-D7eaaJxI.cjs → rehydrate-8q7KX4rD.cjs} +2 -2
- package/dist/{rehydrate-BhmzzvtV.js → rehydrate-DV1iO9eZ.js} +2 -2
- package/dist/relevance/index.cjs +2 -2
- package/dist/relevance/index.js +2 -2
- package/dist/{run-registry-59R9kE8Z.cjs → run-registry-DOlZccsr.cjs} +86 -29
- package/dist/{run-registry-Du22tS_D.js → run-registry-sTm40Ecv.js} +86 -29
- package/dist/{scheduler-B-VZUvv_.js → scheduler-0ShtMM1I.js} +71 -21
- package/dist/{scheduler-D00X03jQ.cjs → scheduler-CMjK0LoQ.cjs} +82 -20
- package/dist/storage/constants.cjs +1 -1
- package/dist/storage/constants.js +1 -1
- package/dist/storage/domains/schedules/base.d.ts +31 -2
- package/dist/storage/domains/schedules/inmemory.d.ts +9 -2
- package/dist/storage/index.cjs +3 -3
- package/dist/storage/index.js +3 -3
- package/dist/stream/index.cjs +2 -2
- package/dist/stream/index.js +2 -2
- package/dist/{stream-mYc-fHPF.cjs → stream-aGuW9AL8.cjs} +1 -1
- package/dist/{stream-C_oNulbg.js → stream-k-Q1NLUs.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-Du1BJO8a.js → tool-loop-agent-CJrysPOR.js} +3 -3
- package/dist/{tool-loop-agent-Bi09dOW5.cjs → tool-loop-agent-WcRtGJHn.cjs} +3 -3
- package/dist/{utils-BGq3p2MX.cjs → utils-DEzQLxWP.cjs} +1 -1
- package/dist/{utils-nyjsIsHZ.js → utils-DamF4CfD.js} +1 -1
- package/dist/utils.cjs +1 -1
- package/dist/utils.js +1 -1
- package/dist/{validate-CcE7gP2j.cjs → validate-CDlONK0o.cjs} +1 -1
- package/dist/{validate-q0hhKzA4.js → validate-rum3NMFA.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-Dzfx-9D0.cjs → worker-6MiKMAqB.cjs} +3 -3
- package/dist/{worker-Wv2nS-Df.js → worker-BnXipQth.js} +2 -2
- package/dist/{worker-DmJLbaGI.cjs → worker-rwal1zI8.cjs} +2 -2
- package/dist/{worker-Dboi5I9k.js → worker-st16x0my.js} +3 -3
- package/dist/{workflow-CFfCkulP.js → workflow-BzhYKgc_.js} +3 -3
- package/dist/{workflow-BPf1-mkb.cjs → workflow-D2-gn0U0.cjs} +3 -3
- package/dist/workflows/builder/index.cjs +1 -1
- package/dist/workflows/builder/index.js +1 -1
- package/dist/workflows/evented/index.cjs +1 -1
- package/dist/workflows/evented/index.js +1 -1
- package/dist/workflows/index.cjs +7 -5
- package/dist/workflows/index.js +6 -6
- package/dist/workflows/scheduler/claim.d.ts +51 -0
- package/dist/workflows/scheduler/index.d.ts +2 -0
- package/package.json +8 -8
|
@@ -230,6 +230,40 @@ Things to know:
|
|
|
230
230
|
|
|
231
231
|
Turning on **Experimental schedule tools** in `/settings` (restart required) gives the agent tools that manage the same schedules: `schedule_create`, `schedule_list`, `schedule_update` (pause or delete), `schedule_resume`, and `schedule_run`. The tools only see and change schedules on the thread of the run that calls them. Because a schedule can run a script on every fire, `schedule_create`, `schedule_resume`, and `schedule_run` need the same approval as running a shell command unless YOLO mode is on. Schedules the agent creates are marked `created by agent` in the transcript.
|
|
232
232
|
|
|
233
|
+
## Ticking from outside the process
|
|
234
|
+
|
|
235
|
+
By default the in-process scheduler polls storage on a timer and fires due schedules. A host that serves many tenants from one database, or that runs without a long-lived process, can instead drive ticks itself, for example from a cron job that calls an HTTP route every minute.
|
|
236
|
+
|
|
237
|
+
Give each tenant a view of the store with `forTenant()`. A view only reads and writes that tenant's schedules and triggers, so schedule IDs only need to be unique per tenant:
|
|
238
|
+
|
|
239
|
+
```typescript
|
|
240
|
+
const schedules = await mastra.getStorage()!.getStore('schedules')
|
|
241
|
+
const project = schedules!.forTenant('org_1:project_1')
|
|
242
|
+
|
|
243
|
+
await project.createSchedule(schedule)
|
|
244
|
+
```
|
|
245
|
+
|
|
246
|
+
On each tick, call `runScheduleTick()` with the root store. It lists due tenant schedules across every tenant, passes each occurrence to `dispatch`, and only then advances the schedule:
|
|
247
|
+
|
|
248
|
+
```typescript
|
|
249
|
+
import { runScheduleTick } from '@mastra/core/workflows'
|
|
250
|
+
|
|
251
|
+
await runScheduleTick({
|
|
252
|
+
store: schedules!,
|
|
253
|
+
now: Date.now(),
|
|
254
|
+
dispatch: fire => queue.enqueue({ name: fire.runId, payload: fire }),
|
|
255
|
+
onError: (error, schedule) =>
|
|
256
|
+
logger.error('Schedule dispatch failed', { scheduleId: schedule.id, error }),
|
|
257
|
+
})
|
|
258
|
+
```
|
|
259
|
+
|
|
260
|
+
- **Dedupe on `runId`.** `runId` is the same for every attempt at one occurrence. If the process dies after `dispatch` but before the schedule advances, the next tick dispatches the same `runId` again, so `dispatch` must be idempotent on it, for example by naming the queue task after it.
|
|
261
|
+
- **Handle `onError`.** A failed dispatch leaves the schedule due, so it's retried on the next tick. A dispatch that keeps failing fails on every tick, and `onError` is the only place it's reported.
|
|
262
|
+
- **Tenant schedules only.** `runScheduleTick()` never fires schedules without a tenant. Those belong to the in-process scheduler, so the two never fire the same occurrence.
|
|
263
|
+
- **Claiming one fire.** To advance a single schedule you already dispatched yourself, call `claimScheduleFire({ store, schedule, now })`. It returns the claimed occurrence, or `undefined` if another tick claimed it first.
|
|
264
|
+
|
|
265
|
+
Tenant views are supported by the in-memory store, `@mastra/pg` and `@mastra/libsql`. Other stores throw from `forTenant()`. Prune trigger history from the root store. A tenant view refuses `prune()`.
|
|
266
|
+
|
|
233
267
|
## Related
|
|
234
268
|
|
|
235
269
|
- [`mastra.schedules`](https://mastra.ai/reference/schedules/overview): API reference for creating and managing schedules.
|
|
@@ -200,6 +200,8 @@ When the sandbox declares `builds`, factory builds the environment template ahea
|
|
|
200
200
|
|
|
201
201
|
A save that leaves every template input unchanged doesn't start a build. Scheduled, push and session builds skip when the last build is ready, no repository head moved and no template input changed (settings, repositories and their order, setup commands, the working directory or the factory's Build variables). Factory stores only the last build id and the active template. Status and history come from the provider through `GET …/environment/builds/:buildId` and `GET …/environment/builds` (404 `no_history` when the provider keeps none).
|
|
202
202
|
|
|
203
|
+
When the sandbox declares `builds`, setup commands run only in environment builds, and a session boots only a build of the environment as saved. A sandbox without `builds` keeps running setup in the session. Before the first build, or after a saved change to the sandbox settings, repositories, setup commands or Build variables, a session's sandbox commands fail with a message saying the environment is being built, and Factory starts a build if none is running and notifies each waiting session when it ends. Push and session builds keep the template current, so new commits alone don't make a session wait. If the build of a saved change fails, sessions boot the previous build and the agent is told the change failed. Without a previous build, commands fail with the build's error. Factory doesn't retry a failed build on every command. Start another build from the environment settings. The repositories page shows the setup result of the build that sessions boot from.
|
|
204
|
+
|
|
203
205
|
When a build start was never recorded and the provider can't list its builds, Factory can't tell whether that build is still running. Triggers skip with reason `unresolved` for 30 minutes after the start's lease lapsed, then Factory treats the start as failed and the next trigger builds.
|
|
204
206
|
|
|
205
207
|
## Environment variables
|
package/dist/evals/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_constants = require("../constants-
|
|
2
|
+
const require_run_registry = require("../run-registry-DOlZccsr.cjs");
|
|
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;
|
|
6
6
|
exports.SCORING_PREDICATE_ROOTS = require_run_registry.SCORING_PREDICATE_ROOTS;
|
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-
|
|
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-
|
|
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-sTm40Ecv.js";
|
|
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,8 +1,8 @@
|
|
|
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-
|
|
5
|
-
const require_constants = require("../../constants-
|
|
4
|
+
const require_run_registry = require("../../run-registry-DOlZccsr.cjs");
|
|
5
|
+
const require_constants = require("../../constants-CFO8w780.cjs");
|
|
6
6
|
let zod_v4 = require("zod/v4");
|
|
7
7
|
// src/evals/scoreTraces/scoreTraces.ts
|
|
8
8
|
async function scoreTraces({ scorerId, targets, mastra }) {
|
|
@@ -1,7 +1,7 @@
|
|
|
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-
|
|
4
|
-
import { Dr as saveScorePayloadSchema } from "../../constants-
|
|
3
|
+
import { Qs as createWorkflow, Zs as createStep } from "../../run-registry-sTm40Ecv.js";
|
|
4
|
+
import { Dr as saveScorePayloadSchema } from "../../constants-CUv0mU2y.js";
|
|
5
5
|
import { z } from "zod/v4";
|
|
6
6
|
// src/evals/scoreTraces/scoreTraces.ts
|
|
7
7
|
async function scoreTraces({ scorerId, targets, mastra }) {
|
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-k4B293tu.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-FSjSZ_iD.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-CHd7UnbI.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-DOlZccsr.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-sTm40Ecv.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-C1aiWB6O.cjs");
|
|
3
|
+
const require_netlify = require("../netlify-Dhs0UJul.cjs");
|
|
4
|
+
const require_provider_registry = require("../provider-registry-CSQPAFzz.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-D5rGQSnS.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-xQFmVbr4.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-FxVHWmht.js";
|
|
4
4
|
export { AzureOpenAIGateway, EMBEDDING_MODELS, GATEWAY_AUTH_HEADER, GatewayRegistry, MastraGateway, MastraModelGateway, ModelRouterEmbeddingModel, ModelRouterLanguageModel, ModelsDevGateway, NetlifyGateway, PROVIDER_REGISTRY, defaultGateways, findGatewayForModel, getGatewayId, getModelReasoningOptions, getProviderConfig, modelSupportsAttachments, modelSupportsStructuredOutput, modelSupportsTemperature, parseModelString, resolveModelAuth, resolveModelConfig };
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
const require_rolldown_runtime = require("./rolldown-runtime-BrhgMLW6.cjs");
|
|
2
|
-
const require_netlify = require("./netlify-
|
|
2
|
+
const require_netlify = require("./netlify-Dhs0UJul.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-CSQPAFzz.cjs");
|
|
7
7
|
const require_error = require("./error-D90lJ6M7.cjs");
|
|
8
8
|
const require_request_context = require("./request-context-D9RXYCy8.cjs");
|
|
9
9
|
const require_dynamic_argument = require("./dynamic-argument-CUc1BBOS.cjs");
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { S as EventSourceParserStream, a as interpolateUrlTemplate, b as createOpenAI, c as createGoogleGenerativeAI, g as shouldEnableGateway, h as hasAuthCredentials, m as getGatewayId, o as parseModelRouterId, p as findGatewayForModel, r as ModelsDevGateway, s as createOpenAI$1, t as NetlifyGateway, u as MASTRA_USER_AGENT, v as MASTRA_GATEWAY_STREAM_TRANSPORT, x as createOpenAICompatible, y as MastraModelGateway } from "./netlify-
|
|
1
|
+
import { S as EventSourceParserStream, a as interpolateUrlTemplate, b as createOpenAI, c as createGoogleGenerativeAI, g as shouldEnableGateway, h as hasAuthCredentials, m as getGatewayId, o as parseModelRouterId, p as findGatewayForModel, r as ModelsDevGateway, s as createOpenAI$1, t as NetlifyGateway, u as MASTRA_USER_AGENT, v as MASTRA_GATEWAY_STREAM_TRANSPORT, x as createOpenAICompatible, y as MastraModelGateway } from "./netlify-xQFmVbr4.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-FxVHWmht.js";
|
|
6
6
|
import { i as MastraError } from "./error-oh2DLsP2.js";
|
|
7
7
|
import { u as RequestContext } from "./request-context-COnZHt2-.js";
|
|
8
8
|
import { n as resolveDynamicArgument } from "./dynamic-argument-BzPK3qPN.js";
|
package/dist/loop/index.cjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
-
const require_run_registry = require("../run-registry-
|
|
3
|
-
const require_stream = require("../stream-
|
|
2
|
+
const require_run_registry = require("../run-registry-DOlZccsr.cjs");
|
|
3
|
+
const require_stream = require("../stream-aGuW9AL8.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-sTm40Ecv.js";
|
|
2
|
+
import { Tn as createTimeoutAbortSignal, kn as isMastraTimeoutError, wn as MastraTimeoutError } from "../stream-k-Q1NLUs.js";
|
|
3
3
|
export { MastraTimeoutError, createScorer, createTimeoutAbortSignal, formatCheckFeedback, formatCompletionFeedback, formatStreamCompletionFeedback, formatValidationFeedback, generateFinalResult, generateStructuredFinalResult, isMastraTimeoutError, loop, runChecks, runCompletionScorers, runDefaultCompletionCheck, runStreamCompletionScorers, runValidation };
|
|
@@ -1,13 +1,13 @@
|
|
|
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-DOlZccsr.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-aGuW9AL8.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");
|
|
9
9
|
const require_deep_equal = require("./deep-equal-TMDmByBC.cjs");
|
|
10
|
-
const require_constants = require("./constants-
|
|
10
|
+
const require_constants = require("./constants-CFO8w780.cjs");
|
|
11
11
|
let zod = require("zod");
|
|
12
12
|
let _mastra_schema_compat = require("@mastra/schema-compat");
|
|
13
13
|
let _mastra_schema_compat_zod_to_json = require("@mastra/schema-compat/zod-to-json");
|
|
@@ -1,13 +1,13 @@
|
|
|
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-sTm40Ecv.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-k-Q1NLUs.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";
|
|
9
9
|
import { t as deepEqual } from "./deep-equal-d1xU02ag.js";
|
|
10
|
-
import { Cr as extractTrajectory, Tr as extractWorkflowTrajectory, mn as BATCH_DELETE_TRACES_MAX_IDS, wr as extractTrajectoryFromTrace } from "./constants-
|
|
10
|
+
import { Cr as extractTrajectory, Tr as extractWorkflowTrajectory, mn as BATCH_DELETE_TRACES_MAX_IDS, wr as extractTrajectoryFromTrace } from "./constants-CUv0mU2y.js";
|
|
11
11
|
import { z } from "zod";
|
|
12
12
|
import { isZodType } from "@mastra/schema-compat";
|
|
13
13
|
import { zodToJsonSchema } from "@mastra/schema-compat/zod-to-json";
|
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-CHd7UnbI.js";
|
|
@@ -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-sTm40Ecv.js";
|
|
2
|
+
import { l as BackgroundTaskManager } from "./background-tasks-ClI6oF60.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-DxwPLhYJ.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-xQFmVbr4.js";
|
|
10
|
+
import { l as defaultGateways } from "./llm-D5rGQSnS.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-CJrysPOR.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-DamF4CfD.js";
|
|
22
|
+
import { a as OrchestrationWorker, i as ORCHESTRATION_GROUP, n as BackgroundTaskWorker, r as SchedulerWorker } from "./worker-st16x0my.js";
|
|
23
|
+
import { n as normalizeWorkflowBuilderDefinition } from "./builder-D00XMm41.js";
|
|
24
|
+
import { d as toJsonSchemaOrUndefined, p as collectNestedWorkflowIds, t as assertValidDynamicWorkflow } from "./validate-rum3NMFA.js";
|
|
25
|
+
import { t as rehydrateWorkflow } from "./rehydrate-DV1iO9eZ.js";
|
|
26
|
+
import { Ln as createRunScope } from "./stream-k-Q1NLUs.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-DxwPLhYJ.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-BnXipQth.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-BnXipQth.js");
|
|
5719
5719
|
const asw = new AgentScheduleWorker();
|
|
5720
5720
|
asw.__registerMastra(this);
|
|
5721
5721
|
this.#workers.push(asw);
|
|
@@ -6160,7 +6160,7 @@ var Mastra = class Mastra {
|
|
|
6160
6160
|
#syncGatewayRegistry() {
|
|
6161
6161
|
try {
|
|
6162
6162
|
if (process.env.MASTRA_DEV !== "true" && process.env.MASTRA_DEV !== "1") return;
|
|
6163
|
-
import("./provider-registry-
|
|
6163
|
+
import("./provider-registry-FxVHWmht.js").then((n) => n.d).then(async ({ GatewayRegistry }) => {
|
|
6164
6164
|
const registry = GatewayRegistry.getInstance();
|
|
6165
6165
|
const customGateways = Object.values(this.#gateways || {});
|
|
6166
6166
|
registry.registerCustomGateways(customGateways);
|
|
@@ -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-DOlZccsr.cjs");
|
|
2
|
+
const require_background_tasks = require("./background-tasks-D40Y_iLc.cjs");
|
|
3
3
|
const require_inmemory = require("./inmemory-Dc86VWGB.cjs");
|
|
4
|
-
const require_manager = require("./manager-
|
|
4
|
+
const require_manager = require("./manager-B2z5f39G.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-Dhs0UJul.cjs");
|
|
10
|
+
const require_llm = require("./llm-C1aiWB6O.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-WcRtGJHn.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-DEzQLxWP.cjs");
|
|
22
|
+
const require_worker = require("./worker-6MiKMAqB.cjs");
|
|
23
|
+
const require_builder = require("./builder-C_I6l0US.cjs");
|
|
24
|
+
const require_validate = require("./validate-CDlONK0o.cjs");
|
|
25
|
+
const require_rehydrate = require("./rehydrate-8q7KX4rD.cjs");
|
|
26
|
+
const require_stream = require("./stream-aGuW9AL8.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-B2z5f39G.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-rwal1zI8.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-rwal1zI8.cjs"));
|
|
5719
5719
|
const asw = new AgentScheduleWorker();
|
|
5720
5720
|
asw.__registerMastra(this);
|
|
5721
5721
|
this.#workers.push(asw);
|
|
@@ -6160,7 +6160,7 @@ var Mastra = class Mastra {
|
|
|
6160
6160
|
#syncGatewayRegistry() {
|
|
6161
6161
|
try {
|
|
6162
6162
|
if (process.env.MASTRA_DEV !== "true" && process.env.MASTRA_DEV !== "1") return;
|
|
6163
|
-
Promise.resolve().then(() => require("./provider-registry-
|
|
6163
|
+
Promise.resolve().then(() => require("./provider-registry-CSQPAFzz.cjs")).then((n) => n.provider_registry_exports).then(async ({ GatewayRegistry }) => {
|
|
6164
6164
|
const registry = GatewayRegistry.getInstance();
|
|
6165
6165
|
const customGateways = Object.values(this.#gateways || {});
|
|
6166
6166
|
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-DOlZccsr.cjs");
|
|
3
|
+
const require_stream = require("../stream-aGuW9AL8.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-sTm40Ecv.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-k-Q1NLUs.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-DamF4CfD.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-DEzQLxWP.cjs");
|
|
7
7
|
const require_zod_utils = require("./zod-utils-Cl5jw5N_.cjs");
|
|
8
8
|
let _mastra_schema_compat = require("@mastra/schema-compat");
|
|
9
9
|
let _mastra_schema_compat_schema = require("@mastra/schema-compat/schema");
|
|
@@ -29126,7 +29126,7 @@ function createOpenRouter(options = {}) {
|
|
|
29126
29126
|
}
|
|
29127
29127
|
createOpenRouter({ compatibility: "strict" });
|
|
29128
29128
|
// src/llm/model/gateways/constants.ts
|
|
29129
|
-
const MASTRA_USER_AGENT = `mastra/1.87.0-alpha.
|
|
29129
|
+
const MASTRA_USER_AGENT = `mastra/1.87.0-alpha.14`;
|
|
29130
29130
|
const PROVIDERS_WITH_INSTALLED_PACKAGES = [
|
|
29131
29131
|
"anthropic",
|
|
29132
29132
|
"cerebras",
|
|
@@ -29125,7 +29125,7 @@ function createOpenRouter(options = {}) {
|
|
|
29125
29125
|
}
|
|
29126
29126
|
createOpenRouter({ compatibility: "strict" });
|
|
29127
29127
|
// src/llm/model/gateways/constants.ts
|
|
29128
|
-
const MASTRA_USER_AGENT = `mastra/1.87.0-alpha.
|
|
29128
|
+
const MASTRA_USER_AGENT = `mastra/1.87.0-alpha.14`;
|
|
29129
29129
|
const PROVIDERS_WITH_INSTALLED_PACKAGES = [
|
|
29130
29130
|
"anthropic",
|
|
29131
29131
|
"cerebras",
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
-
const require_run_registry = require("../run-registry-
|
|
2
|
+
const require_run_registry = require("../run-registry-DOlZccsr.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-sTm40Ecv.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-DOlZccsr.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-sTm40Ecv.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-DOlZccsr.cjs");
|
|
3
|
+
const require_stream = require("../stream-aGuW9AL8.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-sTm40Ecv.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-k-Q1NLUs.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-Dhs0UJul.cjs");
|
|
3
3
|
const require_error = require("./error-D90lJ6M7.cjs");
|
|
4
4
|
let fs = require("fs");
|
|
5
5
|
fs = require_rolldown_runtime.__toESM(fs, 1);
|
|
@@ -25160,10 +25160,10 @@ var GatewayRegistry = class GatewayRegistry {
|
|
|
25160
25160
|
if (this.isRefreshing && !forceRefresh) return;
|
|
25161
25161
|
this.isRefreshing = true;
|
|
25162
25162
|
try {
|
|
25163
|
-
const { ModelsDevGateway } = await Promise.resolve().then(() => require("./netlify-
|
|
25164
|
-
const { NetlifyGateway } = await Promise.resolve().then(() => require("./netlify-
|
|
25163
|
+
const { ModelsDevGateway } = await Promise.resolve().then(() => require("./netlify-Dhs0UJul.cjs")).then((n) => n.models_dev_exports);
|
|
25164
|
+
const { NetlifyGateway } = await Promise.resolve().then(() => require("./netlify-Dhs0UJul.cjs")).then((n) => n.netlify_exports);
|
|
25165
25165
|
const { MastraGateway } = await Promise.resolve().then(() => mastra_exports);
|
|
25166
|
-
const { fetchProvidersFromGateways, writeRegistryFiles } = await Promise.resolve().then(() => require("./registry-generator-
|
|
25166
|
+
const { fetchProvidersFromGateways, writeRegistryFiles } = await Promise.resolve().then(() => require("./registry-generator-Dsh7xcz9.cjs"));
|
|
25167
25167
|
const { providers, models, attachmentCapabilities, temperatureCapabilities, structuredOutputCapabilities, reasoningCapabilities, failedGateways } = await fetchProvidersFromGateways([...[
|
|
25168
25168
|
new ModelsDevGateway({}),
|
|
25169
25169
|
new NetlifyGateway(),
|