@mastra/core 1.87.0-alpha.14 → 1.87.0-alpha.15
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-k4B293tu.cjs → agent-controller-DhDQXNoI.cjs} +5 -5
- package/dist/{agent-controller-FSjSZ_iD.js → agent-controller-DihwxeVJ.js} +5 -5
- package/dist/background-tasks/index.cjs +1 -1
- package/dist/background-tasks/index.js +1 -1
- package/dist/{background-tasks-ClI6oF60.js → background-tasks-BoUX5G90.js} +1 -1
- package/dist/{background-tasks-D40Y_iLc.cjs → background-tasks-udYDvnlw.cjs} +1 -1
- package/dist/browser/index.cjs +1 -1
- package/dist/browser/index.js +1 -1
- package/dist/{builder-C_I6l0US.cjs → builder-B2n-bUbl.cjs} +2 -2
- package/dist/{builder-D00XMm41.js → builder-Cn1lOWio.js} +2 -2
- package/dist/channels/index.cjs +2 -2
- package/dist/channels/index.js +2 -2
- package/dist/{channels-DMSae7xD.js → channels-DA3oMfhF.js} +1 -1
- package/dist/{channels-BU5_kAUO.cjs → channels-HRrlHnwF.cjs} +1 -1
- package/dist/coding-agent/index.cjs +2 -2
- package/dist/coding-agent/index.js +2 -2
- 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 +530 -530
- package/dist/docs/references/docs-signals-sending-signals.md +13 -0
- package/dist/docs/references/docs-signals-state-signals.md +1 -1
- package/dist/docs/references/reference-signals-time-signal-provider.md +35 -0
- package/dist/evals/index.cjs +1 -1
- package/dist/evals/index.js +1 -1
- package/dist/evals/scoreTraces/index.cjs +1 -1
- package/dist/evals/scoreTraces/index.js +1 -1
- package/dist/harness/index.cjs +1 -1
- package/dist/harness/index.js +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.js +1 -1
- package/dist/knowledge/index.cjs +1 -1
- package/dist/knowledge/index.js +1 -1
- package/dist/llm/index.cjs +3 -3
- package/dist/llm/index.js +3 -3
- package/dist/{llm-C1aiWB6O.cjs → llm-Bljw7LII.cjs} +2 -2
- package/dist/{llm-D5rGQSnS.js → llm-CxHzqEEI.js} +2 -2
- package/dist/loop/index.cjs +2 -2
- package/dist/loop/index.js +2 -2
- package/dist/{manager-DxwPLhYJ.js → manager-BimN8ZdV.js} +2 -2
- package/dist/{manager-B2z5f39G.cjs → manager-DVYVB-3O.cjs} +2 -2
- package/dist/mastra/index.cjs +1 -1
- package/dist/mastra/index.js +1 -1
- package/dist/{mastra-CHd7UnbI.js → mastra-BpMvri3z.js} +17 -16
- package/dist/{mastra-WMuI7TZD.cjs → mastra-k8L1lFip.cjs} +17 -16
- package/dist/memory/index.cjs +2 -2
- package/dist/memory/index.js +2 -2
- package/dist/{model-C2CTzjMk.cjs → model-CrDuEDRq.cjs} +1 -1
- package/dist/{model-B8DlLHex.js → model-sUJDcX2v.js} +1 -1
- package/dist/{netlify-xQFmVbr4.js → netlify-BEJ96z-w.js} +1 -1
- package/dist/{netlify-Dhs0UJul.cjs → netlify-Td-JUUkt.cjs} +1 -1
- package/dist/notifications/index.cjs +1 -1
- package/dist/notifications/index.js +1 -1
- package/dist/processor-provider/index.cjs +1 -1
- package/dist/processor-provider/index.js +1 -1
- package/dist/processors/index.cjs +2 -2
- package/dist/processors/index.js +2 -2
- package/dist/{provider-registry-CSQPAFzz.cjs → provider-registry-CCYXykIZ.cjs} +4 -4
- package/dist/{provider-registry-FxVHWmht.js → provider-registry-DBG4hlGl.js} +4 -4
- package/dist/{registry-generator-Dsh7xcz9.cjs → registry-generator-BxiC9XcX.cjs} +1 -1
- package/dist/{registry-generator-BzsrHxrr.js → registry-generator-D2lO3JJJ.js} +1 -1
- package/dist/{rehydrate-8q7KX4rD.cjs → rehydrate-BD0zOfc8.cjs} +2 -2
- package/dist/{rehydrate-DV1iO9eZ.js → rehydrate-PRFAu8yl.js} +2 -2
- package/dist/relevance/index.cjs +2 -2
- package/dist/relevance/index.js +2 -2
- package/dist/{run-registry-DOlZccsr.cjs → run-registry-BvMXuIb_.cjs} +451 -345
- package/dist/{run-registry-sTm40Ecv.js → run-registry-Cqp-VFdv.js} +451 -345
- package/dist/signals/index.cjs +1 -1
- package/dist/signals/index.js +1 -1
- package/dist/signals/time-signal-provider.d.ts +8 -0
- package/dist/{signals-CIwzgkvN.cjs → signals-CbmgVwL-.cjs} +74 -7
- package/dist/{signals-BTfT-6DE.js → signals-Clupx3jz.js} +74 -7
- package/dist/storage/domains/knowledge/base.d.ts +33 -1
- package/dist/storage/domains/knowledge/inmemory.d.ts +2 -0
- package/dist/storage/domains/knowledge/pages-inmemory.d.ts +20 -12
- 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-aGuW9AL8.cjs → stream-BIbVD8V8.cjs} +1 -1
- package/dist/{stream-k-Q1NLUs.js → stream-D607FmAx.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-WcRtGJHn.cjs → tool-loop-agent-Cnf7vONA.cjs} +3 -3
- package/dist/{tool-loop-agent-CJrysPOR.js → tool-loop-agent-eyoY_TEX.js} +3 -3
- package/dist/{utils-DamF4CfD.js → utils-CQkzZUcK.js} +1 -1
- package/dist/{utils-DEzQLxWP.cjs → utils-O1TXaFUl.cjs} +1 -1
- package/dist/utils.cjs +1 -1
- package/dist/utils.js +1 -1
- package/dist/{validate-CDlONK0o.cjs → validate-CEgWy7P0.cjs} +1 -1
- package/dist/{validate-rum3NMFA.js → validate-CTWjOlWp.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-rwal1zI8.cjs → worker-CCDvbK3P.cjs} +2 -2
- package/dist/{worker-st16x0my.js → worker-CCNb2aJe.js} +2 -2
- package/dist/{worker-6MiKMAqB.cjs → worker-CI1joT3R.cjs} +2 -2
- package/dist/{worker-BnXipQth.js → worker-D52cos24.js} +2 -2
- package/dist/{workflow-D2-gn0U0.cjs → workflow-BJL0qlPN.cjs} +3 -3
- package/dist/{workflow-BzhYKgc_.js → workflow-DsmyWwxG.js} +3 -3
- package/dist/workflows/builder/index.cjs +1 -1
- package/dist/workflows/builder/index.js +1 -1
- package/dist/workflows/evented/index.cjs +1 -1
- package/dist/workflows/evented/index.js +1 -1
- package/dist/workflows/index.cjs +4 -4
- package/dist/workflows/index.js +4 -4
- package/package.json +6 -6
|
@@ -41,6 +41,19 @@ await result.accepted
|
|
|
41
41
|
|
|
42
42
|
The model receives `<user name="Jane" sentFrom="slack">Use the latest customer note too.</user>`.
|
|
43
43
|
|
|
44
|
+
### Tell the agent the user's time zone
|
|
45
|
+
|
|
46
|
+
Put the user's IANA time zone in `attributes.timeZone`:
|
|
47
|
+
|
|
48
|
+
```typescript
|
|
49
|
+
const result = agent.sendMessage(
|
|
50
|
+
{ contents: 'Remind me after lunch.', attributes: { timeZone: 'Europe/Paris' } },
|
|
51
|
+
{ resourceId: 'user_123', threadId: 'thread_456' },
|
|
52
|
+
)
|
|
53
|
+
```
|
|
54
|
+
|
|
55
|
+
The model sees the attribute on the user's message, as `<user timeZone="Europe/Paris">`. A [`TimeSignalProvider`](https://mastra.ai/reference/signals/time-signal-provider) on the agent also reads it and adds a line with the time there to its `<current-time>` tag. The provider also reads `metadata.timeZone`. That keeps the zone off the user's message, but the `<current-time>` tag still shows the zone and its time.
|
|
56
|
+
|
|
44
57
|
## Queue a follow-up
|
|
45
58
|
|
|
46
59
|
Use [`queueMessage()`](https://mastra.ai/reference/agents/agent) when the current answer should finish before the agent sees the next message:
|
|
@@ -94,7 +94,7 @@ Mastra uses state signals for long-lived context, and the same patterns apply to
|
|
|
94
94
|
- The [browser](https://mastra.ai/docs/browser) context processor keeps the active page and tabs under `browser`.
|
|
95
95
|
- [Goals](https://mastra.ai/docs/harness/goals) keep the current objective under the `goal` id.
|
|
96
96
|
- [Task tracking](https://mastra.ai/docs/agents/tools) stores task state through [`TaskStateProcessor`](https://mastra.ai/reference/signals/task-signal-provider).
|
|
97
|
-
- [`TimeSignalProvider`](https://mastra.ai/reference/signals/time-signal-provider) keeps the current time for every configured zone in one lane, `current-time`. It adds a full `<current-time>` snapshot with a line per zone, then a small `<current-time-update>` delta each time its interval moves on.
|
|
97
|
+
- [`TimeSignalProvider`](https://mastra.ai/reference/signals/time-signal-provider) keeps the current time for every configured zone in one lane, `current-time`. It adds a full `<current-time>` snapshot with a line per zone, then a small `<current-time-update>` delta each time its interval moves on. It also lists the zones users send as `timeZone` on their messages, so the zone list can change with the conversation.
|
|
98
98
|
- [Working memory](https://mastra.ai/docs/memory/working-memory) can move out of the system prompt and into a `working-memory` state signal with `useStateSignals: true`.
|
|
99
99
|
|
|
100
100
|
## Persistence and truncation
|
|
@@ -54,6 +54,39 @@ With `interval: 'day'` every line shows a date, such as `UTC: Wednesday, Novembe
|
|
|
54
54
|
|
|
55
55
|
One provider instance can be listed on several agents and serves every thread.
|
|
56
56
|
|
|
57
|
+
## Zones from user messages
|
|
58
|
+
|
|
59
|
+
When your app knows a user's time zone, put it in `attributes.timeZone` on the message. The model sees the attribute on the user's message, and the provider adds a line with the time where that user is:
|
|
60
|
+
|
|
61
|
+
```typescript
|
|
62
|
+
agent.sendMessage(
|
|
63
|
+
{ contents: 'When should we meet?', attributes: { timeZone: 'Asia/Tokyo' } },
|
|
64
|
+
{ resourceId: 'user_123', threadId: 'thread_456' },
|
|
65
|
+
)
|
|
66
|
+
```
|
|
67
|
+
|
|
68
|
+
```xml
|
|
69
|
+
<current-time>
|
|
70
|
+
UTC: Tuesday, December 1, 2026 at 4:15 PM UTC
|
|
71
|
+
Asia/Tokyo: Wednesday, December 2, 2026 at 1:15 AM GMT+9
|
|
72
|
+
</current-time>
|
|
73
|
+
```
|
|
74
|
+
|
|
75
|
+
The provider reads `timeZone` from messages users write, in this order. It uses the first one set to a non-empty string:
|
|
76
|
+
|
|
77
|
+
1. `attributes.timeZone` on a message sent with `sendMessage()` or a `user` signal. The model sees it too.
|
|
78
|
+
2. `metadata.timeZone` on that signal. The model doesn't see it.
|
|
79
|
+
3. `metadata.timeZone` on an AI SDK v4 or v5 UI message passed to `generate()` or `stream()`. UI messages have no attributes, and they keep their `metadata` in memory.
|
|
80
|
+
|
|
81
|
+
Set the zone in one place. When `attributes` has a value, the provider ignores `metadata` on that message. If that value isn't a time zone, the message adds no zone. The provider ignores assistant messages and other signals. Legacy messages that carry `threadId` or `resourceId` drop their metadata, so their zones aren't read.
|
|
82
|
+
|
|
83
|
+
- **Which zones show.** At each step the provider looks at the user messages in the context, newest first. It adds up to `messageTimeZones.max` zones (default 10) after the configured zones, sorted by name. A zone equal to a configured one adds no line. Each learned zone shows its canonical name, so `Asia/Kolkata` can show as `Asia/Calcutta`.
|
|
84
|
+
- **Bounded work.** The provider checks at most 16 distinct values a step. A zone behind 16 newer distinct values isn't shown, even below the limit. No more than 16 learned zones can show, whatever `max` is. It returns when fewer values sit in front of it, or when its user writes again.
|
|
85
|
+
- **Values it can't use are skipped.** A value that isn't a string, is longer than 64 characters or isn't a time zone is ignored, and the step goes on.
|
|
86
|
+
- **A new zone starts a fresh snapshot.** When the set of zones changes, the provider adds a full snapshot with the new list. Deltas then cover every zone in it.
|
|
87
|
+
- **Zones leave with their messages.** A zone stays while the context holds a message that carries it. The next step drops the zone when memory stops loading that message or an input processor removes it. A `prepareStep` callback and a `processLLMRequest` rewrite run after the provider. A message removed there still keeps its zone in the tag for that step.
|
|
88
|
+
- **Agents on one thread can disagree.** Agents that load different amounts of history can see different zones. Each then adds its own snapshot when it runs.
|
|
89
|
+
|
|
57
90
|
## Requirements and cost
|
|
58
91
|
|
|
59
92
|
- **Memory is required.** Like every state signal, the time lane is tracked on a memory-backed thread. Listing the provider on an agent without memory makes every run fail with `computeStateSignal requires Mastra memory with an active resourceId and threadId`.
|
|
@@ -75,6 +108,8 @@ One provider instance can be listed on several agents and serves every thread.
|
|
|
75
108
|
|
|
76
109
|
**format** (`Intl.DateTimeFormatOptions | (date: Date, options: { timeZone: string; locale: string }) => string`): Overrides the text the model sees. By default the text matches the interval: the date for day, the date and hour for whole-hour intervals, and the date and time to the minute otherwise, each with the zone name. Deltas then show only the time of day, or the full date after it rolls over. With an override, every delta repeats the full override text.
|
|
77
110
|
|
|
111
|
+
**messageTimeZones** (`boolean | { max?: number }`): Adds the zones users send as timeZone in the attributes or metadata of their messages, after the configured zones. max caps how many such zones show; it defaults to 10 and must be a positive integer. Set false to show only the configured zones. See Zones from user messages. (Default: `true`)
|
|
112
|
+
|
|
78
113
|
**align** (`boolean`): When true, the time moves on at wall-clock boundaries in each zone (12:00, 12:15, ...). When false, it moves on once interval has passed since the last snapshot or delta. (Default: `true`)
|
|
79
114
|
|
|
80
115
|
## Properties
|
package/dist/evals/index.cjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
-
const require_run_registry = require("../run-registry-
|
|
2
|
+
const require_run_registry = require("../run-registry-BvMXuIb_.cjs");
|
|
3
3
|
const require_constants = require("../constants-CFO8w780.cjs");
|
|
4
4
|
const require_collect_tool_mocks = require("../collect-tool-mocks-k9fM6oDl.cjs");
|
|
5
5
|
exports.MastraScorer = require_run_registry.MastraScorer;
|
package/dist/evals/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { C as MastraScorer, D as isNotScorable, E as filterRun, Hc as SCORING_PREDICATE_ROOTS, O as notScorable, S as createClassifierScorer, T as createScorer, Uc as evaluateScoringPredicate, Wc as validateScoringPredicate, v as runEvals, w as ScorerRunError } from "../run-registry-
|
|
1
|
+
import { C as MastraScorer, D as isNotScorable, E as filterRun, Hc as SCORING_PREDICATE_ROOTS, O as notScorable, S as createClassifierScorer, T as createScorer, Uc as evaluateScoringPredicate, Wc as validateScoringPredicate, v as runEvals, w as ScorerRunError } from "../run-registry-Cqp-VFdv.js";
|
|
2
2
|
import { Ar as scoringEntityTypeSchema, Cr as extractTrajectory, Dr as saveScorePayloadSchema, Er as listScoresResponseSchema, Fr as scoringInputWithExtractStepResultAndScoreAndReasonSchema, Ir as scoringInputWithExtractStepResultSchema, Lr as scoringPromptsSchema, Mr as scoringHookInputSchema, Nr as scoringInputSchema, Or as scoreResultSchema, Pr as scoringInputWithExtractStepResultAndAnalyzeStepResultSchema, Rr as scoringSourceSchema, Tr as extractWorkflowTrajectory, jr as scoringExtractStepResultSchema, kr as scoreRowDataSchema, wr as extractTrajectoryFromTrace, zr as scoringValueSchema } from "../constants-CUv0mU2y.js";
|
|
3
3
|
import { t as collectToolMocks } from "../collect-tool-mocks-3s2BN8o7.js";
|
|
4
4
|
export { MastraScorer, SCORING_PREDICATE_ROOTS, ScorerRunError, collectToolMocks, createClassifierScorer, createScorer, evaluateScoringPredicate, extractTrajectory, extractTrajectoryFromTrace, extractWorkflowTrajectory, filterRun, isNotScorable, listScoresResponseSchema, notScorable, runEvals, saveScorePayloadSchema, scoreResultSchema, scoreRowDataSchema, scoringEntityTypeSchema, scoringExtractStepResultSchema, scoringHookInputSchema, scoringInputSchema, scoringInputWithExtractStepResultAndAnalyzeStepResultSchema, scoringInputWithExtractStepResultAndScoreAndReasonSchema, scoringInputWithExtractStepResultSchema, scoringPromptsSchema, scoringSourceSchema, scoringValueSchema, validateScoringPredicate };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
2
|
const require_error = require("../../error-D90lJ6M7.cjs");
|
|
3
3
|
const require_utils = require("../../utils-D-eNsgDM.cjs");
|
|
4
|
-
const require_run_registry = require("../../run-registry-
|
|
4
|
+
const require_run_registry = require("../../run-registry-BvMXuIb_.cjs");
|
|
5
5
|
const require_constants = require("../../constants-CFO8w780.cjs");
|
|
6
6
|
let zod_v4 = require("zod/v4");
|
|
7
7
|
// src/evals/scoreTraces/scoreTraces.ts
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { i as MastraError, n as ErrorDomain, t as ErrorCategory } from "../../error-oh2DLsP2.js";
|
|
2
2
|
import { i as getEntityTypeForSpan } from "../../utils-DU_pU5SK.js";
|
|
3
|
-
import { Qs as createWorkflow, Zs as createStep } from "../../run-registry-
|
|
3
|
+
import { Qs as createWorkflow, Zs as createStep } from "../../run-registry-Cqp-VFdv.js";
|
|
4
4
|
import { Dr as saveScorePayloadSchema } from "../../constants-CUv0mU2y.js";
|
|
5
5
|
import { z } from "zod/v4";
|
|
6
6
|
// src/evals/scoreTraces/scoreTraces.ts
|
package/dist/harness/index.cjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
2
|
const require_state_processor = require("../state-processor-kRNZ38Nf.cjs");
|
|
3
3
|
const require_tools = require("../tools-BEYxowf0.cjs");
|
|
4
|
-
const require_agent_controller = require("../agent-controller-
|
|
4
|
+
const require_agent_controller = require("../agent-controller-DhDQXNoI.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-DihwxeVJ.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-BpMvri3z.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-BvMXuIb_.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-Cqp-VFdv.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-Bljw7LII.cjs");
|
|
3
|
+
const require_netlify = require("../netlify-Td-JUUkt.cjs");
|
|
4
|
+
const require_provider_registry = require("../provider-registry-CCYXykIZ.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-CxHzqEEI.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-BEJ96z-w.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-DBG4hlGl.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-Td-JUUkt.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-CCYXykIZ.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-BEJ96z-w.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-DBG4hlGl.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-BvMXuIb_.cjs");
|
|
3
|
+
const require_stream = require("../stream-BIbVD8V8.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-Cqp-VFdv.js";
|
|
2
|
+
import { Tn as createTimeoutAbortSignal, kn as isMastraTimeoutError, wn as MastraTimeoutError } from "../stream-D607FmAx.js";
|
|
3
3
|
export { MastraTimeoutError, createScorer, createTimeoutAbortSignal, formatCheckFeedback, formatCompletionFeedback, formatStreamCompletionFeedback, formatValidationFeedback, generateFinalResult, generateStructuredFinalResult, isMastraTimeoutError, loop, runChecks, runCompletionScorers, runDefaultCompletionCheck, runStreamCompletionScorers, runValidation };
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { n as __exportAll } from "./rolldown-runtime-tIEjjQTE.js";
|
|
2
|
-
import { Qs as createWorkflow, Zs as createStep, ua as assertSupportedPatterns, w as ScorerRunError, x as validateAndSaveScore, y as flushBeforeTraceRead } from "./run-registry-
|
|
2
|
+
import { Qs as createWorkflow, Zs as createStep, ua as assertSupportedPatterns, w as ScorerRunError, x as validateAndSaveScore, y as flushBeforeTraceRead } from "./run-registry-Cqp-VFdv.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-D607FmAx.js";
|
|
6
6
|
import { o as MASTRA_RESOURCE_ID_KEY, p as withoutLiveRequestKeys, u as RequestContext } from "./request-context-COnZHt2-.js";
|
|
7
7
|
import { t as EntityType } from "./storage-Cc50aQAp.js";
|
|
8
8
|
import { a as getOrCreateSpan } from "./utils-DU_pU5SK.js";
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
const require_rolldown_runtime = require("./rolldown-runtime-BrhgMLW6.cjs");
|
|
2
|
-
const require_run_registry = require("./run-registry-
|
|
2
|
+
const require_run_registry = require("./run-registry-BvMXuIb_.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-BIbVD8V8.cjs");
|
|
6
6
|
const require_request_context = require("./request-context-D9RXYCy8.cjs");
|
|
7
7
|
const require_storage = require("./storage-CfG0I2aF.cjs");
|
|
8
8
|
const require_utils = require("./utils-D-eNsgDM.cjs");
|
package/dist/mastra/index.cjs
CHANGED
package/dist/mastra/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export { t as Mastra } from "../mastra-
|
|
1
|
+
export { t as Mastra } from "../mastra-BpMvri3z.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-Cqp-VFdv.js";
|
|
2
|
+
import { l as BackgroundTaskManager } from "./background-tasks-BoUX5G90.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-BimN8ZdV.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-BEJ96z-w.js";
|
|
10
|
+
import { l as defaultGateways } from "./llm-CxHzqEEI.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-eyoY_TEX.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-CQkzZUcK.js";
|
|
22
|
+
import { a as OrchestrationWorker, i as ORCHESTRATION_GROUP, n as BackgroundTaskWorker, r as SchedulerWorker } from "./worker-CCNb2aJe.js";
|
|
23
|
+
import { n as normalizeWorkflowBuilderDefinition } from "./builder-Cn1lOWio.js";
|
|
24
|
+
import { d as toJsonSchemaOrUndefined, p as collectNestedWorkflowIds, t as assertValidDynamicWorkflow } from "./validate-CTWjOlWp.js";
|
|
25
|
+
import { t as rehydrateWorkflow } from "./rehydrate-PRFAu8yl.js";
|
|
26
|
+
import { Ln as createRunScope } from "./stream-D607FmAx.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-BimN8ZdV.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-D52cos24.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-D52cos24.js");
|
|
5719
5719
|
const asw = new AgentScheduleWorker();
|
|
5720
5720
|
asw.__registerMastra(this);
|
|
5721
5721
|
this.#workers.push(asw);
|
|
@@ -5742,6 +5742,7 @@ var Mastra = class Mastra {
|
|
|
5742
5742
|
this.#ensureBackgroundTaskManager("full");
|
|
5743
5743
|
}
|
|
5744
5744
|
for (const worker of targets) {
|
|
5745
|
+
if (worker.isRunning) continue;
|
|
5745
5746
|
await worker.init(deps);
|
|
5746
5747
|
await worker.start();
|
|
5747
5748
|
}
|
|
@@ -6160,7 +6161,7 @@ var Mastra = class Mastra {
|
|
|
6160
6161
|
#syncGatewayRegistry() {
|
|
6161
6162
|
try {
|
|
6162
6163
|
if (process.env.MASTRA_DEV !== "true" && process.env.MASTRA_DEV !== "1") return;
|
|
6163
|
-
import("./provider-registry-
|
|
6164
|
+
import("./provider-registry-DBG4hlGl.js").then((n) => n.d).then(async ({ GatewayRegistry }) => {
|
|
6164
6165
|
const registry = GatewayRegistry.getInstance();
|
|
6165
6166
|
const customGateways = Object.values(this.#gateways || {});
|
|
6166
6167
|
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-BvMXuIb_.cjs");
|
|
2
|
+
const require_background_tasks = require("./background-tasks-udYDvnlw.cjs");
|
|
3
3
|
const require_inmemory = require("./inmemory-Dc86VWGB.cjs");
|
|
4
|
-
const require_manager = require("./manager-
|
|
4
|
+
const require_manager = require("./manager-DVYVB-3O.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-Td-JUUkt.cjs");
|
|
10
|
+
const require_llm = require("./llm-Bljw7LII.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-Cnf7vONA.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-O1TXaFUl.cjs");
|
|
22
|
+
const require_worker = require("./worker-CI1joT3R.cjs");
|
|
23
|
+
const require_builder = require("./builder-B2n-bUbl.cjs");
|
|
24
|
+
const require_validate = require("./validate-CEgWy7P0.cjs");
|
|
25
|
+
const require_rehydrate = require("./rehydrate-BD0zOfc8.cjs");
|
|
26
|
+
const require_stream = require("./stream-BIbVD8V8.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-DVYVB-3O.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-CCDvbK3P.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-CCDvbK3P.cjs"));
|
|
5719
5719
|
const asw = new AgentScheduleWorker();
|
|
5720
5720
|
asw.__registerMastra(this);
|
|
5721
5721
|
this.#workers.push(asw);
|
|
@@ -5742,6 +5742,7 @@ var Mastra = class Mastra {
|
|
|
5742
5742
|
this.#ensureBackgroundTaskManager("full");
|
|
5743
5743
|
}
|
|
5744
5744
|
for (const worker of targets) {
|
|
5745
|
+
if (worker.isRunning) continue;
|
|
5745
5746
|
await worker.init(deps);
|
|
5746
5747
|
await worker.start();
|
|
5747
5748
|
}
|
|
@@ -6160,7 +6161,7 @@ var Mastra = class Mastra {
|
|
|
6160
6161
|
#syncGatewayRegistry() {
|
|
6161
6162
|
try {
|
|
6162
6163
|
if (process.env.MASTRA_DEV !== "true" && process.env.MASTRA_DEV !== "1") return;
|
|
6163
|
-
Promise.resolve().then(() => require("./provider-registry-
|
|
6164
|
+
Promise.resolve().then(() => require("./provider-registry-CCYXykIZ.cjs")).then((n) => n.provider_registry_exports).then(async ({ GatewayRegistry }) => {
|
|
6164
6165
|
const registry = GatewayRegistry.getInstance();
|
|
6165
6166
|
const customGateways = Object.values(this.#gateways || {});
|
|
6166
6167
|
registry.registerCustomGateways(customGateways);
|
package/dist/memory/index.cjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
-
const require_run_registry = require("../run-registry-
|
|
3
|
-
const require_stream = require("../stream-
|
|
2
|
+
const require_run_registry = require("../run-registry-BvMXuIb_.cjs");
|
|
3
|
+
const require_stream = require("../stream-BIbVD8V8.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-Cqp-VFdv.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-D607FmAx.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 };
|
|
@@ -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-O1TXaFUl.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");
|
|
@@ -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-CQkzZUcK.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
|
|
@@ -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.15`;
|
|
29129
29129
|
const PROVIDERS_WITH_INSTALLED_PACKAGES = [
|
|
29130
29130
|
"anthropic",
|
|
29131
29131
|
"cerebras",
|
|
@@ -29126,7 +29126,7 @@ function createOpenRouter(options = {}) {
|
|
|
29126
29126
|
}
|
|
29127
29127
|
createOpenRouter({ compatibility: "strict" });
|
|
29128
29128
|
// src/llm/model/gateways/constants.ts
|
|
29129
|
-
const MASTRA_USER_AGENT = `mastra/1.87.0-alpha.
|
|
29129
|
+
const MASTRA_USER_AGENT = `mastra/1.87.0-alpha.15`;
|
|
29130
29130
|
const PROVIDERS_WITH_INSTALLED_PACKAGES = [
|
|
29131
29131
|
"anthropic",
|
|
29132
29132
|
"cerebras",
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
-
const require_run_registry = require("../run-registry-
|
|
2
|
+
const require_run_registry = require("../run-registry-BvMXuIb_.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-Cqp-VFdv.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-BvMXuIb_.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-Cqp-VFdv.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-BvMXuIb_.cjs");
|
|
3
|
+
const require_stream = require("../stream-BIbVD8V8.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-Cqp-VFdv.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-D607FmAx.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 };
|