@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.
Files changed (118) hide show
  1. package/dist/agent/durable/index.cjs +1 -1
  2. package/dist/agent/durable/index.js +1 -1
  3. package/dist/agent/index.cjs +2 -2
  4. package/dist/agent/index.js +2 -2
  5. package/dist/agent-builder/ee/index.cjs +1 -1
  6. package/dist/agent-builder/ee/index.js +1 -1
  7. package/dist/agent-controller/index.cjs +1 -1
  8. package/dist/agent-controller/index.js +1 -1
  9. package/dist/{agent-controller-k4B293tu.cjs → agent-controller-DhDQXNoI.cjs} +5 -5
  10. package/dist/{agent-controller-FSjSZ_iD.js → agent-controller-DihwxeVJ.js} +5 -5
  11. package/dist/background-tasks/index.cjs +1 -1
  12. package/dist/background-tasks/index.js +1 -1
  13. package/dist/{background-tasks-ClI6oF60.js → background-tasks-BoUX5G90.js} +1 -1
  14. package/dist/{background-tasks-D40Y_iLc.cjs → background-tasks-udYDvnlw.cjs} +1 -1
  15. package/dist/browser/index.cjs +1 -1
  16. package/dist/browser/index.js +1 -1
  17. package/dist/{builder-C_I6l0US.cjs → builder-B2n-bUbl.cjs} +2 -2
  18. package/dist/{builder-D00XMm41.js → builder-Cn1lOWio.js} +2 -2
  19. package/dist/channels/index.cjs +2 -2
  20. package/dist/channels/index.js +2 -2
  21. package/dist/{channels-DMSae7xD.js → channels-DA3oMfhF.js} +1 -1
  22. package/dist/{channels-BU5_kAUO.cjs → channels-HRrlHnwF.cjs} +1 -1
  23. package/dist/coding-agent/index.cjs +2 -2
  24. package/dist/coding-agent/index.js +2 -2
  25. package/dist/datasets/index.cjs +2 -2
  26. package/dist/datasets/index.js +2 -2
  27. package/dist/docs/SKILL.md +1 -1
  28. package/dist/docs/assets/SOURCE_MAP.json +530 -530
  29. package/dist/docs/references/docs-signals-sending-signals.md +13 -0
  30. package/dist/docs/references/docs-signals-state-signals.md +1 -1
  31. package/dist/docs/references/reference-signals-time-signal-provider.md +35 -0
  32. package/dist/evals/index.cjs +1 -1
  33. package/dist/evals/index.js +1 -1
  34. package/dist/evals/scoreTraces/index.cjs +1 -1
  35. package/dist/evals/scoreTraces/index.js +1 -1
  36. package/dist/harness/index.cjs +1 -1
  37. package/dist/harness/index.js +1 -1
  38. package/dist/index.cjs +1 -1
  39. package/dist/index.js +1 -1
  40. package/dist/knowledge/index.cjs +1 -1
  41. package/dist/knowledge/index.js +1 -1
  42. package/dist/llm/index.cjs +3 -3
  43. package/dist/llm/index.js +3 -3
  44. package/dist/{llm-C1aiWB6O.cjs → llm-Bljw7LII.cjs} +2 -2
  45. package/dist/{llm-D5rGQSnS.js → llm-CxHzqEEI.js} +2 -2
  46. package/dist/loop/index.cjs +2 -2
  47. package/dist/loop/index.js +2 -2
  48. package/dist/{manager-DxwPLhYJ.js → manager-BimN8ZdV.js} +2 -2
  49. package/dist/{manager-B2z5f39G.cjs → manager-DVYVB-3O.cjs} +2 -2
  50. package/dist/mastra/index.cjs +1 -1
  51. package/dist/mastra/index.js +1 -1
  52. package/dist/{mastra-CHd7UnbI.js → mastra-BpMvri3z.js} +17 -16
  53. package/dist/{mastra-WMuI7TZD.cjs → mastra-k8L1lFip.cjs} +17 -16
  54. package/dist/memory/index.cjs +2 -2
  55. package/dist/memory/index.js +2 -2
  56. package/dist/{model-C2CTzjMk.cjs → model-CrDuEDRq.cjs} +1 -1
  57. package/dist/{model-B8DlLHex.js → model-sUJDcX2v.js} +1 -1
  58. package/dist/{netlify-xQFmVbr4.js → netlify-BEJ96z-w.js} +1 -1
  59. package/dist/{netlify-Dhs0UJul.cjs → netlify-Td-JUUkt.cjs} +1 -1
  60. package/dist/notifications/index.cjs +1 -1
  61. package/dist/notifications/index.js +1 -1
  62. package/dist/processor-provider/index.cjs +1 -1
  63. package/dist/processor-provider/index.js +1 -1
  64. package/dist/processors/index.cjs +2 -2
  65. package/dist/processors/index.js +2 -2
  66. package/dist/{provider-registry-CSQPAFzz.cjs → provider-registry-CCYXykIZ.cjs} +4 -4
  67. package/dist/{provider-registry-FxVHWmht.js → provider-registry-DBG4hlGl.js} +4 -4
  68. package/dist/{registry-generator-Dsh7xcz9.cjs → registry-generator-BxiC9XcX.cjs} +1 -1
  69. package/dist/{registry-generator-BzsrHxrr.js → registry-generator-D2lO3JJJ.js} +1 -1
  70. package/dist/{rehydrate-8q7KX4rD.cjs → rehydrate-BD0zOfc8.cjs} +2 -2
  71. package/dist/{rehydrate-DV1iO9eZ.js → rehydrate-PRFAu8yl.js} +2 -2
  72. package/dist/relevance/index.cjs +2 -2
  73. package/dist/relevance/index.js +2 -2
  74. package/dist/{run-registry-DOlZccsr.cjs → run-registry-BvMXuIb_.cjs} +451 -345
  75. package/dist/{run-registry-sTm40Ecv.js → run-registry-Cqp-VFdv.js} +451 -345
  76. package/dist/signals/index.cjs +1 -1
  77. package/dist/signals/index.js +1 -1
  78. package/dist/signals/time-signal-provider.d.ts +8 -0
  79. package/dist/{signals-CIwzgkvN.cjs → signals-CbmgVwL-.cjs} +74 -7
  80. package/dist/{signals-BTfT-6DE.js → signals-Clupx3jz.js} +74 -7
  81. package/dist/storage/domains/knowledge/base.d.ts +33 -1
  82. package/dist/storage/domains/knowledge/inmemory.d.ts +2 -0
  83. package/dist/storage/domains/knowledge/pages-inmemory.d.ts +20 -12
  84. package/dist/storage/index.cjs +2 -2
  85. package/dist/storage/index.js +2 -2
  86. package/dist/stream/index.cjs +2 -2
  87. package/dist/stream/index.js +2 -2
  88. package/dist/{stream-aGuW9AL8.cjs → stream-BIbVD8V8.cjs} +1 -1
  89. package/dist/{stream-k-Q1NLUs.js → stream-D607FmAx.js} +1 -1
  90. package/dist/test-utils/llm-mock.cjs +1 -1
  91. package/dist/test-utils/llm-mock.js +1 -1
  92. package/dist/tool-loop-agent/index.cjs +1 -1
  93. package/dist/tool-loop-agent/index.js +1 -1
  94. package/dist/{tool-loop-agent-WcRtGJHn.cjs → tool-loop-agent-Cnf7vONA.cjs} +3 -3
  95. package/dist/{tool-loop-agent-CJrysPOR.js → tool-loop-agent-eyoY_TEX.js} +3 -3
  96. package/dist/{utils-DamF4CfD.js → utils-CQkzZUcK.js} +1 -1
  97. package/dist/{utils-DEzQLxWP.cjs → utils-O1TXaFUl.cjs} +1 -1
  98. package/dist/utils.cjs +1 -1
  99. package/dist/utils.js +1 -1
  100. package/dist/{validate-CDlONK0o.cjs → validate-CEgWy7P0.cjs} +1 -1
  101. package/dist/{validate-rum3NMFA.js → validate-CTWjOlWp.js} +1 -1
  102. package/dist/vector/index.cjs +1 -1
  103. package/dist/vector/index.js +1 -1
  104. package/dist/worker/index.cjs +1 -1
  105. package/dist/worker/index.js +1 -1
  106. package/dist/{worker-rwal1zI8.cjs → worker-CCDvbK3P.cjs} +2 -2
  107. package/dist/{worker-st16x0my.js → worker-CCNb2aJe.js} +2 -2
  108. package/dist/{worker-6MiKMAqB.cjs → worker-CI1joT3R.cjs} +2 -2
  109. package/dist/{worker-BnXipQth.js → worker-D52cos24.js} +2 -2
  110. package/dist/{workflow-D2-gn0U0.cjs → workflow-BJL0qlPN.cjs} +3 -3
  111. package/dist/{workflow-BzhYKgc_.js → workflow-DsmyWwxG.js} +3 -3
  112. package/dist/workflows/builder/index.cjs +1 -1
  113. package/dist/workflows/builder/index.js +1 -1
  114. package/dist/workflows/evented/index.cjs +1 -1
  115. package/dist/workflows/evented/index.js +1 -1
  116. package/dist/workflows/index.cjs +4 -4
  117. package/dist/workflows/index.js +4 -4
  118. package/package.json +6 -6
@@ -2,7 +2,7 @@ Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
2
  const require_signals = require("../signals-CWxAMEmE.cjs");
3
3
  const require_state_processor = require("../state-processor-kRNZ38Nf.cjs");
4
4
  const require_signal_provider = require("../signal-provider-BFAvh_AJ.cjs");
5
- const require_signals$1 = require("../signals-CIwzgkvN.cjs");
5
+ const require_signals$1 = require("../signals-CbmgVwL-.cjs");
6
6
  exports.GoalSignalProvider = require_signal_provider.GoalSignalProvider;
7
7
  exports.SignalProvider = require_signal_provider.SignalProvider;
8
8
  exports.TaskSignalProvider = require_signals$1.TaskSignalProvider;
@@ -1,5 +1,5 @@
1
1
  import { a as isCreatedAgentSignal, l as mastraDBMessageToSignal, n as createSignal } from "../signals-CqR_iWkg.js";
2
2
  import { o as assignTaskIds } from "../state-processor-B9kxpM53.js";
3
3
  import { i as isSignalProvider, n as WebhookSignalProvider, r as SignalProvider, t as GoalSignalProvider } from "../signal-provider-BslnAjWG.js";
4
- import { n as TaskSignalProvider, t as TimeSignalProvider } from "../signals-BTfT-6DE.js";
4
+ import { n as TaskSignalProvider, t as TimeSignalProvider } from "../signals-Clupx3jz.js";
5
5
  export { GoalSignalProvider, SignalProvider, TaskSignalProvider, TimeSignalProvider, WebhookSignalProvider, assignTaskIds, createSignal, isCreatedAgentSignal, isSignalProvider, mastraDBMessageToSignal };
@@ -31,6 +31,14 @@ export type TimeSignalProviderOptions = {
31
31
  * `false`: it moves on once `interval` has passed since the last time the model was shown.
32
32
  */
33
33
  align?: boolean;
34
+ /**
35
+ * Also report the zones users send as `timeZone` in the attributes or metadata of their messages (default `true`).
36
+ * At each step the newest valid zones among the user messages in context are added after the
37
+ * configured ones, up to `max` (default 10). `false` reports only the configured zones.
38
+ */
39
+ messageTimeZones?: boolean | {
40
+ max?: number;
41
+ };
34
42
  };
35
43
  /**
36
44
  * Keeps the agent aware of the current time through a `<current-time>` state signal.
@@ -1,5 +1,6 @@
1
1
  const require_signal_provider = require("./signal-provider-BFAvh_AJ.cjs");
2
2
  const require_state_processor = require("./state-processor-kRNZ38Nf.cjs");
3
+ const require_signals = require("./signals-CWxAMEmE.cjs");
3
4
  // src/signals/task-signal-provider.ts
4
5
  /**
5
6
  * Bundles the built-in task tools and the {@link TaskStateProcessor} behind a
@@ -55,6 +56,11 @@ const MINUTE_MS = 6e4;
55
56
  const HOUR_MS = 60 * MINUTE_MS;
56
57
  const DEFAULT_INTERVAL_MS = 15 * MINUTE_MS;
57
58
  const DAY_MS = 24 * HOUR_MS;
59
+ const DEFAULT_MESSAGE_ZONES = 10;
60
+ /** Distinct `timeZone` values examined per step, cached or not, so the result never depends on the cache. */
61
+ const ZONE_SCAN_BUDGET = 16;
62
+ const MAX_ZONE_LENGTH = 64;
63
+ const ZONE_CACHE_SIZE = 256;
58
64
  const TIME_TAG = "current-time";
59
65
  const TIME_UPDATE_TAG = "current-time-update";
60
66
  const NAMED_INTERVALS = {
@@ -153,6 +159,25 @@ function localClock(date, timeZone) {
153
159
  function lastShown(args) {
154
160
  return (args.deltasSinceSnapshot.at(-1) ?? args.lastSnapshot)?.metadata?.value;
155
161
  }
162
+ /**
163
+ * The zone a user message carries. Agent-facing signal `attributes` come first, then the signal's
164
+ * own `metadata`, then message `metadata`. The first one set to a non-empty string is the only one
165
+ * read: an invalid value there skips the message rather than falling back.
166
+ */
167
+ function messageTimeZone(message) {
168
+ const metadata = message.content?.metadata;
169
+ for (const value of [
170
+ metadata?.signal?.attributes?.timeZone,
171
+ metadata?.signal?.metadata?.timeZone,
172
+ metadata?.timeZone
173
+ ]) if (typeof value === "string" && value) return value;
174
+ }
175
+ function resolveMessageZoneLimit(option) {
176
+ if (option === false) return 0;
177
+ const max = option === true || option === void 0 ? DEFAULT_MESSAGE_ZONES : option.max ?? DEFAULT_MESSAGE_ZONES;
178
+ if (!Number.isInteger(max) || max < 1) throw new Error(`TimeSignalProvider: messageTimeZones.max must be a positive integer, got ${String(max)}`);
179
+ return max;
180
+ }
156
181
  function pad(value) {
157
182
  return String(value).padStart(2, "0");
158
183
  }
@@ -172,7 +197,13 @@ var TimeStateProcessor = class {
172
197
  #align;
173
198
  #format;
174
199
  #formatTime;
200
+ #configured;
201
+ #messageZoneLimit;
202
+ /** Canonical names by raw value, `null` for rejected values; least recently used first. */
203
+ #zoneCache = /* @__PURE__ */ new Map();
175
204
  constructor(options, timeZones) {
205
+ this.#messageZoneLimit = resolveMessageZoneLimit(options.messageTimeZones);
206
+ this.#configured = new Set(timeZones.map(resolveTimeZone));
176
207
  this.#align = options.align ?? true;
177
208
  this.#intervalMs = resolveInterval(options.interval, this.#align);
178
209
  this.timeZones = timeZones;
@@ -184,6 +215,41 @@ var TimeStateProcessor = class {
184
215
  }).format(date) : defaultFormatter(this.#intervalMs);
185
216
  this.#formatTime = format ? this.#format : timeOfDayFormatter(this.#intervalMs);
186
217
  }
218
+ #canonicalZone(raw) {
219
+ let canonical = this.#zoneCache.get(raw);
220
+ if (canonical !== void 0) this.#zoneCache.delete(raw);
221
+ else {
222
+ try {
223
+ canonical = new Intl.DateTimeFormat("en-US", { timeZone: raw }).resolvedOptions().timeZone;
224
+ } catch {
225
+ canonical = null;
226
+ }
227
+ if (this.#zoneCache.size >= ZONE_CACHE_SIZE) this.#zoneCache.delete(this.#zoneCache.keys().next().value);
228
+ }
229
+ this.#zoneCache.set(raw, canonical);
230
+ return canonical ?? void 0;
231
+ }
232
+ /**
233
+ * The configured zones, then the newest valid zones users sent as `timeZone`, sorted by
234
+ * canonical name so the list only changes when the set does. Scans newest first and stops after
235
+ * `ZONE_SCAN_BUDGET` distinct values: a zone behind that many newer ones is left out.
236
+ */
237
+ #zones(messages) {
238
+ if (!this.#messageZoneLimit || !messages?.length) return this.timeZones;
239
+ const seen = /* @__PURE__ */ new Set();
240
+ const learned = /* @__PURE__ */ new Set();
241
+ for (let i = messages.length - 1; i >= 0 && learned.size < this.#messageZoneLimit; i--) {
242
+ const message = messages[i];
243
+ if (!require_signals.isUserAuthoredMessage(message)) continue;
244
+ const raw = messageTimeZone(message);
245
+ if (typeof raw !== "string" || !raw || raw.length > MAX_ZONE_LENGTH || seen.has(raw)) continue;
246
+ if (seen.size === ZONE_SCAN_BUDGET) break;
247
+ seen.add(raw);
248
+ const canonical = this.#canonicalZone(raw);
249
+ if (canonical && !this.#configured.has(canonical)) learned.add(canonical);
250
+ }
251
+ return learned.size ? [...this.timeZones, ...[...learned].sort()] : this.timeZones;
252
+ }
187
253
  /** The bucket the clock is in for one zone, keyed by its local wall-clock start. */
188
254
  #bucket(now, timeZone) {
189
255
  const clock = localClock(now, timeZone);
@@ -193,21 +259,22 @@ var TimeStateProcessor = class {
193
259
  }
194
260
  computeStateSignal(args) {
195
261
  const now = /* @__PURE__ */ new Date();
262
+ const zones = this.#zones(args.messages);
196
263
  const shown = args.contextWindow.hasSnapshot ? lastShown(args) : void 0;
197
264
  const shownZones = shown?.timeZones;
198
- const inWindow = typeof shown?.iso === "string" && Array.isArray(shownZones) && shownZones.length === this.timeZones.length && shownZones.every((zone, i) => zone === this.timeZones[i]);
265
+ const inWindow = typeof shown?.iso === "string" && Array.isArray(shownZones) && shownZones.length === zones.length && shownZones.every((zone, i) => zone === zones[i]);
199
266
  let cacheKey;
200
267
  if (this.#align) {
201
- cacheKey = `time:${this.timeZones.map((timeZone) => `${timeZone}=${this.#bucket(now, timeZone)}`).join("|")}`;
268
+ cacheKey = `time:${zones.map((timeZone) => `${timeZone}=${this.#bucket(now, timeZone)}`).join("|")}`;
202
269
  if (inWindow && args.tracking?.currentCacheKey === cacheKey) return;
203
270
  } else {
204
271
  const last = args.tracking?.updatedAt ? Date.parse(args.tracking.updatedAt) : NaN;
205
272
  if (inWindow && now.getTime() - last < this.#intervalMs) return;
206
- cacheKey = `time:${this.timeZones.join("|")}@${now.toISOString()}`;
273
+ cacheKey = `time:${zones.join("|")}@${now.toISOString()}`;
207
274
  }
208
275
  const value = {
209
276
  iso: now.toISOString(),
210
- timeZones: this.timeZones,
277
+ timeZones: zones,
211
278
  interval: this.#intervalMs
212
279
  };
213
280
  const line = (timeZone, format) => `${timeZone}: ${format(now, {
@@ -219,18 +286,18 @@ var TimeStateProcessor = class {
219
286
  tagName: TIME_TAG,
220
287
  mode: "snapshot",
221
288
  cacheKey,
222
- contents: this.timeZones.map((timeZone) => line(timeZone, this.#format)).join("\n"),
289
+ contents: zones.map((timeZone) => line(timeZone, this.#format)).join("\n"),
223
290
  value
224
291
  };
225
292
  const shownAt = new Date(shown.iso);
226
- const rolled = this.timeZones.filter((timeZone) => localClock(shownAt, timeZone).date !== localClock(now, timeZone).date);
293
+ const rolled = zones.filter((timeZone) => localClock(shownAt, timeZone).date !== localClock(now, timeZone).date);
227
294
  const changed = rolled.length ? "date" : "time";
228
295
  return {
229
296
  id: this.stateId,
230
297
  tagName: TIME_UPDATE_TAG,
231
298
  mode: "delta",
232
299
  cacheKey,
233
- contents: this.timeZones.map((timeZone) => line(timeZone, rolled.includes(timeZone) ? this.#format : this.#formatTime)).join("\n"),
300
+ contents: zones.map((timeZone) => line(timeZone, rolled.includes(timeZone) ? this.#format : this.#formatTime)).join("\n"),
234
301
  attributes: { changed },
235
302
  value,
236
303
  delta: {
@@ -1,5 +1,6 @@
1
1
  import { r as SignalProvider } from "./signal-provider-BslnAjWG.js";
2
2
  import { f as taskCheckTool, h as taskWriteTool, m as taskUpdateTool, n as TaskStateProcessor, p as taskCompleteTool } from "./state-processor-B9kxpM53.js";
3
+ import { c as isUserAuthoredMessage } from "./signals-CqR_iWkg.js";
3
4
  // src/signals/task-signal-provider.ts
4
5
  /**
5
6
  * Bundles the built-in task tools and the {@link TaskStateProcessor} behind a
@@ -55,6 +56,11 @@ const MINUTE_MS = 6e4;
55
56
  const HOUR_MS = 60 * MINUTE_MS;
56
57
  const DEFAULT_INTERVAL_MS = 15 * MINUTE_MS;
57
58
  const DAY_MS = 24 * HOUR_MS;
59
+ const DEFAULT_MESSAGE_ZONES = 10;
60
+ /** Distinct `timeZone` values examined per step, cached or not, so the result never depends on the cache. */
61
+ const ZONE_SCAN_BUDGET = 16;
62
+ const MAX_ZONE_LENGTH = 64;
63
+ const ZONE_CACHE_SIZE = 256;
58
64
  const TIME_TAG = "current-time";
59
65
  const TIME_UPDATE_TAG = "current-time-update";
60
66
  const NAMED_INTERVALS = {
@@ -153,6 +159,25 @@ function localClock(date, timeZone) {
153
159
  function lastShown(args) {
154
160
  return (args.deltasSinceSnapshot.at(-1) ?? args.lastSnapshot)?.metadata?.value;
155
161
  }
162
+ /**
163
+ * The zone a user message carries. Agent-facing signal `attributes` come first, then the signal's
164
+ * own `metadata`, then message `metadata`. The first one set to a non-empty string is the only one
165
+ * read: an invalid value there skips the message rather than falling back.
166
+ */
167
+ function messageTimeZone(message) {
168
+ const metadata = message.content?.metadata;
169
+ for (const value of [
170
+ metadata?.signal?.attributes?.timeZone,
171
+ metadata?.signal?.metadata?.timeZone,
172
+ metadata?.timeZone
173
+ ]) if (typeof value === "string" && value) return value;
174
+ }
175
+ function resolveMessageZoneLimit(option) {
176
+ if (option === false) return 0;
177
+ const max = option === true || option === void 0 ? DEFAULT_MESSAGE_ZONES : option.max ?? DEFAULT_MESSAGE_ZONES;
178
+ if (!Number.isInteger(max) || max < 1) throw new Error(`TimeSignalProvider: messageTimeZones.max must be a positive integer, got ${String(max)}`);
179
+ return max;
180
+ }
156
181
  function pad(value) {
157
182
  return String(value).padStart(2, "0");
158
183
  }
@@ -172,7 +197,13 @@ var TimeStateProcessor = class {
172
197
  #align;
173
198
  #format;
174
199
  #formatTime;
200
+ #configured;
201
+ #messageZoneLimit;
202
+ /** Canonical names by raw value, `null` for rejected values; least recently used first. */
203
+ #zoneCache = /* @__PURE__ */ new Map();
175
204
  constructor(options, timeZones) {
205
+ this.#messageZoneLimit = resolveMessageZoneLimit(options.messageTimeZones);
206
+ this.#configured = new Set(timeZones.map(resolveTimeZone));
176
207
  this.#align = options.align ?? true;
177
208
  this.#intervalMs = resolveInterval(options.interval, this.#align);
178
209
  this.timeZones = timeZones;
@@ -184,6 +215,41 @@ var TimeStateProcessor = class {
184
215
  }).format(date) : defaultFormatter(this.#intervalMs);
185
216
  this.#formatTime = format ? this.#format : timeOfDayFormatter(this.#intervalMs);
186
217
  }
218
+ #canonicalZone(raw) {
219
+ let canonical = this.#zoneCache.get(raw);
220
+ if (canonical !== void 0) this.#zoneCache.delete(raw);
221
+ else {
222
+ try {
223
+ canonical = new Intl.DateTimeFormat("en-US", { timeZone: raw }).resolvedOptions().timeZone;
224
+ } catch {
225
+ canonical = null;
226
+ }
227
+ if (this.#zoneCache.size >= ZONE_CACHE_SIZE) this.#zoneCache.delete(this.#zoneCache.keys().next().value);
228
+ }
229
+ this.#zoneCache.set(raw, canonical);
230
+ return canonical ?? void 0;
231
+ }
232
+ /**
233
+ * The configured zones, then the newest valid zones users sent as `timeZone`, sorted by
234
+ * canonical name so the list only changes when the set does. Scans newest first and stops after
235
+ * `ZONE_SCAN_BUDGET` distinct values: a zone behind that many newer ones is left out.
236
+ */
237
+ #zones(messages) {
238
+ if (!this.#messageZoneLimit || !messages?.length) return this.timeZones;
239
+ const seen = /* @__PURE__ */ new Set();
240
+ const learned = /* @__PURE__ */ new Set();
241
+ for (let i = messages.length - 1; i >= 0 && learned.size < this.#messageZoneLimit; i--) {
242
+ const message = messages[i];
243
+ if (!isUserAuthoredMessage(message)) continue;
244
+ const raw = messageTimeZone(message);
245
+ if (typeof raw !== "string" || !raw || raw.length > MAX_ZONE_LENGTH || seen.has(raw)) continue;
246
+ if (seen.size === ZONE_SCAN_BUDGET) break;
247
+ seen.add(raw);
248
+ const canonical = this.#canonicalZone(raw);
249
+ if (canonical && !this.#configured.has(canonical)) learned.add(canonical);
250
+ }
251
+ return learned.size ? [...this.timeZones, ...[...learned].sort()] : this.timeZones;
252
+ }
187
253
  /** The bucket the clock is in for one zone, keyed by its local wall-clock start. */
188
254
  #bucket(now, timeZone) {
189
255
  const clock = localClock(now, timeZone);
@@ -193,21 +259,22 @@ var TimeStateProcessor = class {
193
259
  }
194
260
  computeStateSignal(args) {
195
261
  const now = /* @__PURE__ */ new Date();
262
+ const zones = this.#zones(args.messages);
196
263
  const shown = args.contextWindow.hasSnapshot ? lastShown(args) : void 0;
197
264
  const shownZones = shown?.timeZones;
198
- const inWindow = typeof shown?.iso === "string" && Array.isArray(shownZones) && shownZones.length === this.timeZones.length && shownZones.every((zone, i) => zone === this.timeZones[i]);
265
+ const inWindow = typeof shown?.iso === "string" && Array.isArray(shownZones) && shownZones.length === zones.length && shownZones.every((zone, i) => zone === zones[i]);
199
266
  let cacheKey;
200
267
  if (this.#align) {
201
- cacheKey = `time:${this.timeZones.map((timeZone) => `${timeZone}=${this.#bucket(now, timeZone)}`).join("|")}`;
268
+ cacheKey = `time:${zones.map((timeZone) => `${timeZone}=${this.#bucket(now, timeZone)}`).join("|")}`;
202
269
  if (inWindow && args.tracking?.currentCacheKey === cacheKey) return;
203
270
  } else {
204
271
  const last = args.tracking?.updatedAt ? Date.parse(args.tracking.updatedAt) : NaN;
205
272
  if (inWindow && now.getTime() - last < this.#intervalMs) return;
206
- cacheKey = `time:${this.timeZones.join("|")}@${now.toISOString()}`;
273
+ cacheKey = `time:${zones.join("|")}@${now.toISOString()}`;
207
274
  }
208
275
  const value = {
209
276
  iso: now.toISOString(),
210
- timeZones: this.timeZones,
277
+ timeZones: zones,
211
278
  interval: this.#intervalMs
212
279
  };
213
280
  const line = (timeZone, format) => `${timeZone}: ${format(now, {
@@ -219,18 +286,18 @@ var TimeStateProcessor = class {
219
286
  tagName: TIME_TAG,
220
287
  mode: "snapshot",
221
288
  cacheKey,
222
- contents: this.timeZones.map((timeZone) => line(timeZone, this.#format)).join("\n"),
289
+ contents: zones.map((timeZone) => line(timeZone, this.#format)).join("\n"),
223
290
  value
224
291
  };
225
292
  const shownAt = new Date(shown.iso);
226
- const rolled = this.timeZones.filter((timeZone) => localClock(shownAt, timeZone).date !== localClock(now, timeZone).date);
293
+ const rolled = zones.filter((timeZone) => localClock(shownAt, timeZone).date !== localClock(now, timeZone).date);
227
294
  const changed = rolled.length ? "date" : "time";
228
295
  return {
229
296
  id: this.stateId,
230
297
  tagName: TIME_UPDATE_TAG,
231
298
  mode: "delta",
232
299
  cacheKey,
233
- contents: this.timeZones.map((timeZone) => line(timeZone, rolled.includes(timeZone) ? this.#format : this.#formatTime)).join("\n"),
300
+ contents: zones.map((timeZone) => line(timeZone, rolled.includes(timeZone) ? this.#format : this.#formatTime)).join("\n"),
234
301
  attributes: { changed },
235
302
  value,
236
303
  delta: {
@@ -1,7 +1,7 @@
1
1
  import type { KnowledgeScopeDeclarations } from '../../../knowledge/declarations.js';
2
2
  import { StorageDomain } from '../base.js';
3
3
  import type { KnowledgeImportersStorage } from './importers.js';
4
- import type { KnowledgeNote, KnowledgePage, KnowledgePageStore, KnowledgePageWrite, KnowledgeReadScope } from './pages.js';
4
+ import type { KnowledgeListedPin, KnowledgeNote, KnowledgePage, KnowledgePageStore, KnowledgePageWrite, KnowledgeReadScope } from './pages.js';
5
5
  /** @experimental Knowledge APIs are experimental and may change without notice. */
6
6
  export declare const KNOWLEDGE_STORAGE_CONTRACT_VERSION: 4;
7
7
  /** @experimental Knowledge APIs are experimental and may change without notice. */
@@ -227,6 +227,38 @@ export declare abstract class KnowledgeStorage extends StorageDomain implements
227
227
  paths: string[][];
228
228
  read: KnowledgeReadScope;
229
229
  }): Promise<(KnowledgePage | null)[]>;
230
+ /**
231
+ * For each lookup, what {@link getPageByPath} returns for its `scopeId` and `path`, in input order.
232
+ * Like {@link getPagesByPaths}, but the paths may be under different scopes.
233
+ *
234
+ * @experimental
235
+ */
236
+ getPagesAtPaths?(input: {
237
+ lookups: {
238
+ scopeId: string;
239
+ path: string[];
240
+ }[];
241
+ read: KnowledgeReadScope;
242
+ }): Promise<(KnowledgePage | null)[]>;
243
+ /**
244
+ * What {@link listPins} returns tier by tier, in one call: pins whose audience intersects a tier,
245
+ * ranked by the first tier they match, newest first within it (`createdAt` desc, then `id` desc),
246
+ * each pin once, at most `limit`. Takes the other {@link listPins} filters. `count` adds `total`,
247
+ * the number of pins matching any tier.
248
+ *
249
+ * @experimental
250
+ */
251
+ listPinsByTier?(input: {
252
+ tiers: string[][];
253
+ read: KnowledgeReadScope;
254
+ excludePageIds?: string[];
255
+ withBody?: boolean;
256
+ count?: boolean;
257
+ limit?: number;
258
+ }): Promise<{
259
+ pins: KnowledgeListedPin[];
260
+ total?: number;
261
+ }>;
230
262
  /**
231
263
  * For each parent, the position {@link createPage} places a new child after: the position of its
232
264
  * last live child, or `null` with none. Every requested id is a key. Takes no read scope, like
@@ -13,6 +13,8 @@ export declare class InMemoryKnowledgeStorage extends KnowledgeStorage {
13
13
  getPageParents(input: Parameters<KnowledgeStorage['getPageParents']>[0]): ReturnType<KnowledgeStorage['getPageParents']>;
14
14
  getPageChains(input: Parameters<NonNullable<KnowledgeStorage['getPageChains']>>[0]): ReturnType<NonNullable<KnowledgeStorage['getPageChains']>>;
15
15
  getPagesByPaths(input: Parameters<NonNullable<KnowledgeStorage['getPagesByPaths']>>[0]): ReturnType<NonNullable<KnowledgeStorage['getPagesByPaths']>>;
16
+ getPagesAtPaths(input: Parameters<NonNullable<KnowledgeStorage['getPagesAtPaths']>>[0]): ReturnType<NonNullable<KnowledgeStorage['getPagesAtPaths']>>;
17
+ listPinsByTier(input: Parameters<NonNullable<KnowledgeStorage['listPinsByTier']>>[0]): ReturnType<NonNullable<KnowledgeStorage['listPinsByTier']>>;
16
18
  getLastChildPositions(input: Parameters<NonNullable<KnowledgeStorage['getLastChildPositions']>>[0]): ReturnType<NonNullable<KnowledgeStorage['getLastChildPositions']>>;
17
19
  getPageSubtrees(input: Parameters<NonNullable<KnowledgeStorage['getPageSubtrees']>>[0]): ReturnType<NonNullable<KnowledgeStorage['getPageSubtrees']>>;
18
20
  listNotesByPages(input: Parameters<NonNullable<KnowledgeStorage['listNotesByPages']>>[0]): ReturnType<NonNullable<KnowledgeStorage['listNotesByPages']>>;
@@ -1,4 +1,4 @@
1
- import type { KnowledgeNote, KnowledgePage, KnowledgePageActivityAction, KnowledgePageActivityEvent, KnowledgePageBodyLink, KnowledgePageLinkCounts, KnowledgePageLinkEdge, KnowledgePageSearchHit, KnowledgePageStore, KnowledgePageWrite, KnowledgePin, KnowledgePinKind, KnowledgeProvenance, KnowledgeReadScope } from './pages.js';
1
+ import type { KnowledgeListedPin, KnowledgeNote, KnowledgePage, KnowledgePageActivityAction, KnowledgePageActivityEvent, KnowledgePageBodyLink, KnowledgePageLinkCounts, KnowledgePageLinkEdge, KnowledgePageSearchHit, KnowledgePageStore, KnowledgePageWrite, KnowledgePin, KnowledgeProvenance, KnowledgeReadScope } from './pages.js';
2
2
  type Store = KnowledgePageStore;
3
3
  /**
4
4
  * In-memory schema-4 page store: the reference implementation of {@link KnowledgePageStore} that the
@@ -55,6 +55,13 @@ export declare class InMemoryKnowledgePageStore implements KnowledgePageStore {
55
55
  paths: string[][];
56
56
  read: KnowledgeReadScope;
57
57
  }): Promise<(KnowledgePage | null)[]>;
58
+ getPagesAtPaths(input: {
59
+ lookups: {
60
+ scopeId: string;
61
+ path: string[];
62
+ }[];
63
+ read: KnowledgeReadScope;
64
+ }): Promise<(KnowledgePage | null)[]>;
58
65
  getLastChildPositions(input: {
59
66
  parentIds: string[];
60
67
  }): Promise<Record<string, string | null>>;
@@ -127,18 +134,19 @@ export declare class InMemoryKnowledgePageStore implements KnowledgePageStore {
127
134
  }>;
128
135
  addPinAudience(input: Parameters<Store['addPinAudience']>[0]): Promise<KnowledgePin>;
129
136
  removePinAudience(input: Parameters<Store['removePinAudience']>[0]): Promise<KnowledgePin | null>;
137
+ listPinsByTier(input: {
138
+ tiers: string[][];
139
+ read: KnowledgeReadScope;
140
+ excludePageIds?: string[];
141
+ withBody?: boolean;
142
+ count?: boolean;
143
+ limit?: number;
144
+ }): Promise<{
145
+ pins: KnowledgeListedPin[];
146
+ total?: number | undefined;
147
+ }>;
130
148
  listPins(input: Parameters<Store['listPins']>[0]): Promise<{
131
- pins: {
132
- id: string;
133
- pageId: string;
134
- kind: KnowledgePinKind;
135
- depth?: number;
136
- audience: string[];
137
- createdBy: string;
138
- createdAt: Date;
139
- updatedAt: Date;
140
- pageName: string;
141
- }[];
149
+ pins: KnowledgeListedPin[];
142
150
  nextCursor?: string | undefined;
143
151
  total?: number | undefined;
144
152
  }>;
@@ -1,7 +1,7 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
- const require_run_registry = require("../run-registry-DOlZccsr.cjs");
2
+ const require_run_registry = require("../run-registry-BvMXuIb_.cjs");
3
3
  const require_observability = require("../observability-B0R_D1PZ.cjs");
4
- const require_stream = require("../stream-aGuW9AL8.cjs");
4
+ const require_stream = require("../stream-BIbVD8V8.cjs");
5
5
  const require_storage = require("../storage-CfG0I2aF.cjs");
6
6
  const require_constants = require("../constants-CFO8w780.cjs");
7
7
  const require_filesystem_versioned = require("../filesystem-versioned-BavRtYWJ.cjs");
@@ -1,6 +1,6 @@
1
- import { $a as threadQueryRequestSchema, $i as parseKnowledgePageRef, $r as InMemoryNotificationsStorage, Aa as filterByDateRange, Ai as inspectKnowledgeSchema, Ao as getObjectOrNull, Ar as StoreOperationsInMemory, Ba as transformScoreRow, Bi as MAX_KNOWLEDGE_PAGE_DESCRIPTION_TOKENS, Br as WorkflowsStorage, Ca as resolveRetentionTargets, Ci as KnowledgeNotFoundError, Co as planTraceQuery, Cr as expandKnowledgeScope, Da as createStoreErrorId, Di as KnowledgeUnsupportedCapabilityError, Do as buildMetricRecord, Dr as knowledgeSemanticIdempotencyKey, Ea as createStorageErrorId, Ei as KnowledgeTransactionDeadlineError, Eo as buildLogRecord, Er as knowledgeSemanticDocumentId, Fa as parseDuration, Fi as KnowledgePageKeyConflictError, Fo as ObservabilityStorage, Fr as FilesystemDB, Ga as tracePageNodeSchema, Gi as assertKnowledgeNoteTextWithinBound, Gr as WorkflowDefinitionsStorage, Ha as TracePageError, Hi as MAX_KNOWLEDGE_PAGE_LINK_REF_LENGTH, Hr as mergeStepResult, Ia as safelyParseJSON, Ii as MAX_KNOWLEDGE_MOVE_PAGES, Io as FactoryStorage, Ir as InMemoryStore, Ja as THREAD_QUERY_DEFAULT_LIMIT, Ji as knowledgeLinkRefKey, Jr as ScoresInMemory, Ka as tracePageRequestSchema, Ki as assertKnowledgePageDescriptionWithinBound, Kr as InMemoryToolProviderConnectionsStorage, La as serializeDate, Li as MAX_KNOWLEDGE_NOTE_TOKENS, Lo as FactoryStorageDomain, Lr as MockStore, Ma as getSqlType, Mi as KnowledgeMoveTooLargeError, Mo as serializeSpanAttributes, Mr as GitHubSourceControlProvider, Na as hasErrorCode, Ni as KnowledgePageDepthError, No as toEntityType, Nr as createGitHubSourceControlProviderFromEnv, Oa as createVectorErrorId, Oi as assertKnowledgeSchemaCompatible, Oo as buildScoreRecord, Or as knowledgeVisibleScopeKeys, Pa as jsonValueEquals, Pi as KnowledgePageHasChildrenError, Po as ObservabilityInMemory, Pr as FilesystemStore, Qa as threadQueryIdentitySchema, Qi as knowledgeScopeReadable, Qr as normalizeScheduleTarget, Ra as storageMessageMatchesMetadataFilter, Ri as MAX_KNOWLEDGE_PAGE_BODY_LINKS, Ro as UniqueViolationError, Rr as WorkflowsInMemory, Sa as executeRetentionPrune, Si as KnowledgeConflictError, So as planThreadQuery, Sr as createKnowledgeNodeCursor, Ta as runRetentionBatches, Ti as KnowledgeStorage, To as buildFeedbackRecord, Tr as knowledgeScopeKey, Ua as readTracePage, Ui as MAX_KNOWLEDGE_PAGE_LIST_LIMIT, Ur as mergeWorkflowStepResult, Va as validateStorageMetadataFilter, Vi as MAX_KNOWLEDGE_PAGE_LINKS, Vr as createEmptyWorkflowSnapshot, Wa as tracePageIdSchema, Wi as MAX_KNOWLEDGE_PIN_LIST_DEPTH, Wr as InMemoryWorkflowDefinitionsStorage, Xa as encodeThreadQueryCursor, Xi as knowledgePinDepth, Xr as InMemorySchedulesStorage, Ya as THREAD_QUERY_MAX_LIMIT, Yi as knowledgePagePath, Yr as ScoresStorage, Za as planThreadRowsQuery, Zi as knowledgePositionBetween, Zr as SchedulesStorage, _a as ChannelsStorage, _i as KnowledgeImporterBindingConflictError, _o as spanQueryResponseSchema, _r as assertKnowledgeCeilingRaised, _u as runFencingNotSupportedError, aa as ExperimentsStorage, ao as SPAN_QUERY_MAX_PREVIEW_CHARACTERS, ba as BackgroundTasksInMemory, bi as KNOWLEDGE_STORAGE_CONTRACT_VERSION, bo as encodeTraceQueryDeltaCursor, br as assertKnowledgeScopeWithinCeiling, ca as DatasetItemIdentityConflictError, co as createSpanQueryPreview, cu as isWorkflowStepConflictError, do as planSpanQuery, du as RunFenceConflictError, ea as KnowledgeInvalidCursorError, ei as NotificationsStorage, eo as threadQueryResponseSchema, fo as resolveSpanQueryCost, fu as coverNestedRun, ga as InMemoryChannelsStorage, gi as InMemoryKnowledgeStorage, go as spanQueryRequestSchema, gr as MAX_KNOWLEDGE_SCOPE_TAGS, gu as resolveRunFence, hi as MemoryStorage, ho as spanQueryIdentitySchema, hr as MAX_KNOWLEDGE_RECORD_TEXT_LENGTH, hu as matchesRunFence, ia as ExperimentsInMemory, io as SPAN_QUERY_MAX_LIMIT, ja as getDefaultValue, ji as parseKnowledgeWikilinks, jo as getStringOrNull, jr as StoreOperations, ka as ensureDate, ki as createKnowledgeUlid, ko as buildUpdateSpanRecord, kr as parseKnowledgeNodeCursor, lo as encodeSpanQueryCursor, lu as RUN_FENCE_CONFLICT_ERROR_ID, mi as InMemoryMemory, mo as spanQueryIdentityKey, mr as MAX_KNOWLEDGE_NODE_DESCRIPTION_LENGTH, mu as isRunFenceConflictError, na as InMemoryHarness, no as SPAN_QUERY_MAX_COST_METRICS, oa as DatasetsInMemory, oo as SPAN_QUERY_ORDER_FIELDS, ou as WorkflowStepConflictError, po as spanQueryCostSchema, pu as currentRunGeneration, qa as tracePageResponseSchema, qi as canonicalKnowledgeName, qr as ToolProviderConnectionsStorage, ra as HarnessStorage, ro as SPAN_QUERY_MAX_CURSOR_BYTES, sa as DatasetsStorage, so as buildSpanQueryResponse, su as assertWorkflowStepGuard, ti as dispatchDueNotifications, to as threadQueryRowSchema, uo as parseSpanQueryRequest, uu as RUN_FENCING_NOT_SUPPORTED_ERROR_ID, va as InMemoryBlobStore, vi as KnowledgeImporterRunStateError, vo as spanQueryRowSchema, vr as assertKnowledgeDescriptionWithinBound, vu as runOutsideRunFenceScope, wa as retentionCutoffMs, wi as KnowledgeSchemaResetRequiredError, wo as buildCreateSpanRecord, wr as isKnowledgeScopeVisible, xa as BackgroundTasksStorage, xi as KNOWLEDGE_STORAGE_SCHEMA_VERSION, xo as getTraceQueryDeltaWatermark, xr as canonicalizeKnowledgeScope, ya as BlobStore, yi as KnowledgeImportersStorage, yo as encodeTraceQueryCursor, yr as assertKnowledgeRecordTextWithinBound, yu as setRunFenceContext, za as transformRow, zi as MAX_KNOWLEDGE_PAGE_DEPTH, zr as cloneRunData } from "../run-registry-sTm40Ecv.js";
1
+ import { $a as threadQueryRequestSchema, $i as parseKnowledgePageRef, $r as InMemoryNotificationsStorage, Aa as filterByDateRange, Ai as inspectKnowledgeSchema, Ao as getObjectOrNull, Ar as StoreOperationsInMemory, Ba as transformScoreRow, Bi as MAX_KNOWLEDGE_PAGE_DESCRIPTION_TOKENS, Br as WorkflowsStorage, Ca as resolveRetentionTargets, Ci as KnowledgeNotFoundError, Co as planTraceQuery, Cr as expandKnowledgeScope, Da as createStoreErrorId, Di as KnowledgeUnsupportedCapabilityError, Do as buildMetricRecord, Dr as knowledgeSemanticIdempotencyKey, Ea as createStorageErrorId, Ei as KnowledgeTransactionDeadlineError, Eo as buildLogRecord, Er as knowledgeSemanticDocumentId, Fa as parseDuration, Fi as KnowledgePageKeyConflictError, Fo as ObservabilityStorage, Fr as FilesystemDB, Ga as tracePageNodeSchema, Gi as assertKnowledgeNoteTextWithinBound, Gr as WorkflowDefinitionsStorage, Ha as TracePageError, Hi as MAX_KNOWLEDGE_PAGE_LINK_REF_LENGTH, Hr as mergeStepResult, Ia as safelyParseJSON, Ii as MAX_KNOWLEDGE_MOVE_PAGES, Io as FactoryStorage, Ir as InMemoryStore, Ja as THREAD_QUERY_DEFAULT_LIMIT, Ji as knowledgeLinkRefKey, Jr as ScoresInMemory, Ka as tracePageRequestSchema, Ki as assertKnowledgePageDescriptionWithinBound, Kr as InMemoryToolProviderConnectionsStorage, La as serializeDate, Li as MAX_KNOWLEDGE_NOTE_TOKENS, Lo as FactoryStorageDomain, Lr as MockStore, Ma as getSqlType, Mi as KnowledgeMoveTooLargeError, Mo as serializeSpanAttributes, Mr as GitHubSourceControlProvider, Na as hasErrorCode, Ni as KnowledgePageDepthError, No as toEntityType, Nr as createGitHubSourceControlProviderFromEnv, Oa as createVectorErrorId, Oi as assertKnowledgeSchemaCompatible, Oo as buildScoreRecord, Or as knowledgeVisibleScopeKeys, Pa as jsonValueEquals, Pi as KnowledgePageHasChildrenError, Po as ObservabilityInMemory, Pr as FilesystemStore, Qa as threadQueryIdentitySchema, Qi as knowledgeScopeReadable, Qr as normalizeScheduleTarget, Ra as storageMessageMatchesMetadataFilter, Ri as MAX_KNOWLEDGE_PAGE_BODY_LINKS, Ro as UniqueViolationError, Rr as WorkflowsInMemory, Sa as executeRetentionPrune, Si as KnowledgeConflictError, So as planThreadQuery, Sr as createKnowledgeNodeCursor, Ta as runRetentionBatches, Ti as KnowledgeStorage, To as buildFeedbackRecord, Tr as knowledgeScopeKey, Ua as readTracePage, Ui as MAX_KNOWLEDGE_PAGE_LIST_LIMIT, Ur as mergeWorkflowStepResult, Va as validateStorageMetadataFilter, Vi as MAX_KNOWLEDGE_PAGE_LINKS, Vr as createEmptyWorkflowSnapshot, Wa as tracePageIdSchema, Wi as MAX_KNOWLEDGE_PIN_LIST_DEPTH, Wr as InMemoryWorkflowDefinitionsStorage, Xa as encodeThreadQueryCursor, Xi as knowledgePinDepth, Xr as InMemorySchedulesStorage, Ya as THREAD_QUERY_MAX_LIMIT, Yi as knowledgePagePath, Yr as ScoresStorage, Za as planThreadRowsQuery, Zi as knowledgePositionBetween, Zr as SchedulesStorage, _a as ChannelsStorage, _i as KnowledgeImporterBindingConflictError, _o as spanQueryResponseSchema, _r as assertKnowledgeCeilingRaised, _u as runFencingNotSupportedError, aa as ExperimentsStorage, ao as SPAN_QUERY_MAX_PREVIEW_CHARACTERS, ba as BackgroundTasksInMemory, bi as KNOWLEDGE_STORAGE_CONTRACT_VERSION, bo as encodeTraceQueryDeltaCursor, br as assertKnowledgeScopeWithinCeiling, ca as DatasetItemIdentityConflictError, co as createSpanQueryPreview, cu as isWorkflowStepConflictError, do as planSpanQuery, du as RunFenceConflictError, ea as KnowledgeInvalidCursorError, ei as NotificationsStorage, eo as threadQueryResponseSchema, fo as resolveSpanQueryCost, fu as coverNestedRun, ga as InMemoryChannelsStorage, gi as InMemoryKnowledgeStorage, go as spanQueryRequestSchema, gr as MAX_KNOWLEDGE_SCOPE_TAGS, gu as resolveRunFence, hi as MemoryStorage, ho as spanQueryIdentitySchema, hr as MAX_KNOWLEDGE_RECORD_TEXT_LENGTH, hu as matchesRunFence, ia as ExperimentsInMemory, io as SPAN_QUERY_MAX_LIMIT, ja as getDefaultValue, ji as parseKnowledgeWikilinks, jo as getStringOrNull, jr as StoreOperations, ka as ensureDate, ki as createKnowledgeUlid, ko as buildUpdateSpanRecord, kr as parseKnowledgeNodeCursor, lo as encodeSpanQueryCursor, lu as RUN_FENCE_CONFLICT_ERROR_ID, mi as InMemoryMemory, mo as spanQueryIdentityKey, mr as MAX_KNOWLEDGE_NODE_DESCRIPTION_LENGTH, mu as isRunFenceConflictError, na as InMemoryHarness, no as SPAN_QUERY_MAX_COST_METRICS, oa as DatasetsInMemory, oo as SPAN_QUERY_ORDER_FIELDS, ou as WorkflowStepConflictError, po as spanQueryCostSchema, pu as currentRunGeneration, qa as tracePageResponseSchema, qi as canonicalKnowledgeName, qr as ToolProviderConnectionsStorage, ra as HarnessStorage, ro as SPAN_QUERY_MAX_CURSOR_BYTES, sa as DatasetsStorage, so as buildSpanQueryResponse, su as assertWorkflowStepGuard, ti as dispatchDueNotifications, to as threadQueryRowSchema, uo as parseSpanQueryRequest, uu as RUN_FENCING_NOT_SUPPORTED_ERROR_ID, va as InMemoryBlobStore, vi as KnowledgeImporterRunStateError, vo as spanQueryRowSchema, vr as assertKnowledgeDescriptionWithinBound, vu as runOutsideRunFenceScope, wa as retentionCutoffMs, wi as KnowledgeSchemaResetRequiredError, wo as buildCreateSpanRecord, wr as isKnowledgeScopeVisible, xa as BackgroundTasksStorage, xi as KNOWLEDGE_STORAGE_SCHEMA_VERSION, xo as getTraceQueryDeltaWatermark, xr as canonicalizeKnowledgeScope, ya as BlobStore, yi as KnowledgeImportersStorage, yo as encodeTraceQueryCursor, yr as assertKnowledgeRecordTextWithinBound, yu as setRunFenceContext, za as transformRow, zi as MAX_KNOWLEDGE_PAGE_DEPTH, zr as cloneRunData } from "../run-registry-Cqp-VFdv.js";
2
2
  import { a as PREVIEW_MAX_LENGTH } from "../observability-D7RNOAPx.js";
3
- import { At as getSnapshotMemoryInfo, Bt as stateColumnsWrite, Ft as latestStepResults, Ht as unusedStateEntries, It as materializeState, Lt as materializeWorkflowRun, Mt as STEP_RESULT_SUMMARY_FIELDS, Nt as applyStateColumnsWrite, Pt as isStateCheckpointDue, Rt as pickStateKeys, Ut as applyStatePatch, Vt as summarizeStepResult, Wt as diffState, _n as QUEUE_THREAD_PREFIX, bn as pendingQueueThreadId, jt as STATE_CHECKPOINT_PATCHES, vn as assertNotQueueThreadId, xn as takenQueueThreadId, yn as isQueueThreadId, zt as stateBaseOf } from "../stream-k-Q1NLUs.js";
3
+ import { At as getSnapshotMemoryInfo, Bt as stateColumnsWrite, Ft as latestStepResults, Ht as unusedStateEntries, It as materializeState, Lt as materializeWorkflowRun, Mt as STEP_RESULT_SUMMARY_FIELDS, Nt as applyStateColumnsWrite, Pt as isStateCheckpointDue, Rt as pickStateKeys, Ut as applyStatePatch, Vt as summarizeStepResult, Wt as diffState, _n as QUEUE_THREAD_PREFIX, bn as pendingQueueThreadId, jt as STATE_CHECKPOINT_PATCHES, vn as assertNotQueueThreadId, xn as takenQueueThreadId, yn as isQueueThreadId, zt as stateBaseOf } from "../stream-D607FmAx.js";
4
4
  import { $ as getFeedbackAggregateArgsSchema, $t as metricsFilterSchema, A as deleteScoresResponseSchema, An as tagsField, At as getServiceNamesResponseSchema, B as experimentIdField, Bt as listScoresArgsSchema, C as dateRangeSchema, Cn as scoresOrderBySchema, Ct as getScoreBreakdownArgsSchema, D as deleteFeedbackArgsSchema, Dn as sourceField, Dt as getScoreTimeSeriesArgsSchema, E as defaultPaginationArgs, En as sortDirectionSchema, Et as getScorePercentilesResponseSchema, F as entityIdField, Fn as userIdField, Ft as listLogsArgsSchema, G as feedbackRecordSchema, Gt as logsFilterSchema, H as feedbackInputSchema, Ht as logLevelSchema, I as entityNameField, It as listLogsResponseSchema, J as getEntityNamesResponseSchema, Jt as metadataField, K as feedbackReviewStatusSchema, Kt as logsOrderByFieldSchema, L as entityTypeField, Lt as listMetricsArgsSchema, M as deltaInfoSchema, Mn as traceIdField, Mt as getTagsResponseSchema, N as deltaLimitSchema, Nn as updateFeedbackReviewStatusArgsSchema, Nt as listFeedbackArgsSchema, O as deleteFeedbackResponseSchema, On as spanContextFields, Ot as getScoreTimeSeriesResponseSchema, P as distinctColumnSchema, Pn as updatedAtField, Pt as listFeedbackResponseSchema, Q as getEnvironmentsResponseSchema, Qt as metricsAggregationSchema, R as environmentField, Rt as listMetricsResponseSchema, S as createdAtField, Sn as scoresOrderByFieldSchema, St as getScoreAggregateResponseSchema, T as defaultDeltaLimit, Tn as sessionIdField, Tt as getScorePercentilesArgsSchema, U as feedbackOrderByFieldSchema, Ut as logRecordInputSchema, V as feedbackFilterSchema, Vt as listScoresResponseSchema, W as feedbackOrderBySchema, Wt as logRecordSchema, X as getEntityTypesResponseSchema, Xt as metricRecordSchema, Y as getEntityTypesArgsSchema, Yt as metricInputSchema, Z as getEnvironmentsArgsSchema, Zt as metricTypeSchema, _ as createMetricRecordSchema, _n as runIdField, _t as getMetricPercentilesArgsSchema, a as batchCreateFeedbackArgsSchema, an as paginationInfoSchema, at as getFeedbackTimeSeriesArgsSchema, b as createScoreRecordSchema, bn as scoreRecordSchema, bt as getMetricTimeSeriesResponseSchema, c as batchCreateScoresArgsSchema, cn as parentEntityTypeField, ct as getMetricAggregateResponseSchema, d as contextFields, dn as requestIdField, dt as getMetricLabelKeysArgsSchema, en as metricsOrderByFieldSchema, et as getFeedbackAggregateResponseSchema, f as createFeedbackArgsSchema, ft as getMetricLabelKeysResponseSchema, g as createLogRecordSchema, gn as rootEntityTypeField, gt as getMetricNamesResponseSchema, h as createFeedbackResponseSchema, hn as rootEntityNameField, ht as getMetricNamesArgsSchema, i as aggregationTypeSchema, in as paginationArgsSchema, it as getFeedbackPercentilesResponseSchema, j as deltaCursorSchema, jn as threadIdField, jt as getTagsArgsSchema, k as deleteScoresArgsSchema, kn as spanIdField, kt as getServiceNamesArgsSchema, l as commonFilterFields, ln as refineObservabilityListMode, lt as getMetricBreakdownArgsSchema, m as createFeedbackRecordSchema, mn as rootEntityIdField, mt as getMetricLabelValuesResponseSchema, n as METRIC_DISTINCT_COLUMNS, nn as normalizeObservabilityListArgs, nt as getFeedbackBreakdownResponseSchema, o as batchCreateLogsArgsSchema, on as parentEntityIdField, ot as getFeedbackTimeSeriesResponseSchema, p as createFeedbackBodySchema, pn as resourceIdField, pt as getMetricLabelValuesArgsSchema, q as getEntityNamesArgsSchema, qt as logsOrderBySchema, r as aggregationIntervalSchema, rn as organizationIdField, rt as getFeedbackPercentilesArgsSchema, s as batchCreateMetricsArgsSchema, sn as parentEntityNameField, st as getMetricAggregateArgsSchema, t as EntityType, tn as metricsOrderBySchema, tt as getFeedbackBreakdownArgsSchema, u as comparePeriodSchema, un as replaceFeedbackBodySchema, ut as getMetricBreakdownResponseSchema, v as createScoreArgsSchema, vn as scopeField, vt as getMetricPercentilesResponseSchema, w as dbTimestamps, wn as serviceNameField, wt as getScoreBreakdownResponseSchema, x as createScoreResponseSchema, xn as scoresFilterSchema, xt as getScoreAggregateArgsSchema, y as createScoreBodySchema, yn as scoreInputSchema, yt as getMetricTimeSeriesArgsSchema, z as executionSourceField, zt as listModeSchema } from "../storage-Cc50aQAp.js";
5
5
  import { $ as TABLE_CHANNEL_INSTALLATIONS, $n as listTracesLightResponseSchema, $t as TABLE_WORKSPACES, A as MCP_CLIENTS_SCHEMA, An as computeTraceStatus, At as TABLE_OBSERVATIONAL_MEMORY, B as PROMPT_BLOCK_VERSIONS_SCHEMA, Bn as getSpansArgsSchema, Bt as TABLE_SKILLS, C as KNOWLEDGE_SCOPE_GRANTS_SCHEMA, Cn as branchesFilterSchema, Ct as TABLE_MCP_CLIENTS, D as KNOWLEDGE_V2_MENTIONS_SCHEMA, Dn as buildPreview, Dt as TABLE_MEMORY_RUN_FENCES, E as KNOWLEDGE_V2_ACTIVITY_SCHEMA, En as buildInputPreview, Et as TABLE_MCP_SERVER_VERSIONS, F as NOTIFICATIONS_SCHEMA, Fn as getBranchResponseSchema, Ft as TABLE_SCHEDULE_TRIGGERS, G as SKILLS_SCHEMA, Gn as getTraceLightResponseSchema, Gt as TABLE_THREAD_STATE, H as SCORERS_SCHEMA, Hn as getStringAttribute, Ht as TABLE_SKILL_VERSIONS, I as OBSERVATIONAL_MEMORY_SCHEMA, In as getRootSpanArgsSchema, It as TABLE_SCHEMAS, J as SPAN_SCHEMA, Jn as lightSpanRecordSchema, Jt as TABLE_WORKFLOW_DEFINITIONS, K as SKILL_BLOBS_SCHEMA, Kn as getTraceResponseSchema, Kt as TABLE_TOOL_PROVIDER_CONNECTIONS, L as OBSERVATIONAL_MEMORY_TABLE_SCHEMA, Ln as getRootSpanResponseSchema, Lt as TABLE_SCORERS, M as MCP_SERVERS_SCHEMA, Mn as createSpanRecordSchema, Mt as TABLE_PROMPT_BLOCK_VERSIONS, N as MCP_SERVER_VERSIONS_SCHEMA, Nn as extractBranchSpans, Nt as TABLE_RESOURCES, O as KNOWLEDGE_V2_NODES_SCHEMA, On as buildPreviewFromJson, Ot as TABLE_MESSAGES, P as MEMORY_RUN_FENCES_SCHEMA, Pn as getBranchArgsSchema, Pt as TABLE_SCHEDULES, Q as TABLE_CHANNEL_CONFIG, Qn as listTracesArgsSchema, Qt as TABLE_WORKFLOW_SNAPSHOT, R as OLD_SPAN_SCHEMA, Rn as getSpanArgsSchema, Rt as TABLE_SCORER_DEFINITIONS, S as KNOWLEDGE_SCOPE_ADDRESSES_SCHEMA, Sn as batchUpdateSpansArgsSchema, St as TABLE_KNOWLEDGE_SEMANTIC_OUTBOX, T as KNOWLEDGE_TABLE_NAMES, Tn as branchesOrderBySchema, Tt as TABLE_MCP_SERVERS, U as SCORER_DEFINITIONS_SCHEMA, Un as getStructureResponseSchema, Ut as TABLE_SPANS, V as RUN_FENCING_TABLE_SCHEMAS, Vn as getSpansResponseSchema, Vt as TABLE_SKILL_BLOBS, W as SCORER_DEFINITION_VERSIONS_SCHEMA, Wn as getTraceArgsSchema, Wt as TABLE_THREADS, X as TABLE_AGENT_VERSIONS, Xn as listBranchesResponseSchema, Xt as TABLE_WORKFLOW_RUN_ENTRIES, Y as TABLE_AGENTS, Yn as listBranchesArgsSchema, Yt as TABLE_WORKFLOW_RUNS, Z as TABLE_BACKGROUND_TASKS, Zn as listScoresBySpanResponseSchema, Zt as TABLE_WORKFLOW_RUN_OWNERS, _ as KNOWLEDGE_NODE_ADDRESSES_SCHEMA, _n as INPUT_PREVIEW_MAX_LENGTH, _r as isAppendOnlySince, _t as TABLE_KNOWLEDGE_PROPOSALS, a as DATASET_VERSIONS_SCHEMA, an as WORKFLOW_RUN_ENTRIES_SCHEMA, ar as spanRecordSchema, at as TABLE_EXPERIMENT_RESULTS, b as KNOWLEDGE_RECORDS_SCHEMA, bn as batchDeleteTracesArgsSchema, br as maxObservationCursor, bt as TABLE_KNOWLEDGE_SCOPE_ADDRESSES, c as FAVORITES_SCHEMA, cn as WORKSPACES_SCHEMA, cr as toTraceSpans, ct as TABLE_KNOWLEDGE_ACCESS_STATE, d as KNOWLEDGE_ACTIVITY_SCHEMA, dn as STORAGE_VISIBILITY_VALUES, dr as tracesOrderByFieldSchema, dt as TABLE_KNOWLEDGE_IMPORT_RUNS, en as TABLE_WORKSPACE_VERSIONS, er as listTracesResponseSchema, et as TABLE_CONFIGS, f as KNOWLEDGE_CURSORS_SCHEMA, fn as buildStorageSchema, fr as tracesOrderBySchema, ft as TABLE_KNOWLEDGE_IMPORT_STATE, g as KNOWLEDGE_NODES_SCHEMA, gn as BRANCH_SPAN_TYPE_SET, gr as compareObservationalMemoryHeadOrder, gt as TABLE_KNOWLEDGE_NODE_SCOPES, h as KNOWLEDGE_MENTIONS_SCHEMA, hn as BRANCH_SPAN_TYPES, hr as assertActiveObservationsApplied, ht as TABLE_KNOWLEDGE_NODE_ADDRESSES, i as DATASET_ITEMS_SCHEMA, in as WORKFLOW_RUNS_SCHEMA, ir as spanIdsSchema, it as TABLE_EXPERIMENTS, j as MCP_CLIENT_VERSIONS_SCHEMA, jn as createSpanArgsSchema, jt as TABLE_PROMPT_BLOCKS, k as KNOWLEDGE_V2_RECORDS_SCHEMA, kn as buildStoredPreview, kt as TABLE_NOTIFICATIONS, l as HARNESS_SESSIONS_SCHEMA, ln as WORKSPACE_VERSIONS_SCHEMA, lr as traceSpanSchema, lt as TABLE_KNOWLEDGE_ACTIVITY, m as KNOWLEDGE_IMPORT_STATE_SCHEMA, mn as BATCH_DELETE_TRACES_MAX_IDS, mr as updateSpanRecordSchema, mt as TABLE_KNOWLEDGE_NODES, n as AGENT_VERSIONS_SCHEMA, nn as TOOL_PROVIDER_CONNECTIONS_SCHEMA, nr as scoreTracesResponseSchema, nt as TABLE_DATASET_ITEMS, o as EXPERIMENTS_SCHEMA, on as WORKFLOW_RUN_JOURNAL_TABLE_CONFIGS, or as toLightSpanRecord, ot as TABLE_FAVORITES, p as KNOWLEDGE_IMPORT_RUNS_SCHEMA, pn as matchesExpectedWorkflowStatus, pr as updateSpanArgsSchema, pt as TABLE_KNOWLEDGE_MENTIONS, q as SKILL_VERSIONS_SCHEMA, qn as isPreviewTruncated, qt as TABLE_TRACES, r as DATASETS_SCHEMA, rn as WORKFLOW_DEFINITIONS_SCHEMA, rr as spanIds, rt as TABLE_DATASET_VERSIONS, s as EXPERIMENT_RESULTS_SCHEMA, sn as WORKFLOW_RUN_OWNERS_SCHEMA, sr as toTraceSpan, st as TABLE_HARNESS_SESSIONS, t as AGENTS_SCHEMA, tn as THREAD_STATE_SCHEMA, tr as scoreTracesRequestSchema, tt as TABLE_DATASETS, u as KNOWLEDGE_ACCESS_STATE_SCHEMA, un as STORAGE_FAVORITE_ENTITY_TYPES, ur as tracesFilterSchema, ut as TABLE_KNOWLEDGE_CURSORS, v as KNOWLEDGE_NODE_SCOPES_SCHEMA, vn as TraceStatus, vr as isBufferedChunkCoveredByCursor, vt as TABLE_KNOWLEDGE_RECORDS, w as KNOWLEDGE_SEMANTIC_OUTBOX_SCHEMA, wn as branchesOrderByFieldSchema, wt as TABLE_MCP_CLIENT_VERSIONS, x as KNOWLEDGE_RECORD_SCOPES_SCHEMA, xn as batchDeleteTracesResponseSchema, xr as planReflectionGenerationText, xt as TABLE_KNOWLEDGE_SCOPE_GRANTS, y as KNOWLEDGE_PROPOSALS_SCHEMA, yn as batchCreateSpansArgsSchema, yr as isBufferedReflectionUnchangedSince, yt as TABLE_KNOWLEDGE_RECORD_SCOPES, z as PROMPT_BLOCKS_SCHEMA, zn as getSpanResponseSchema, zt as TABLE_SCORER_DEFINITION_VERSIONS } from "../constants-CUv0mU2y.js";
6
6
  import { _ as ThreadStateStorage, a as GitHistory, c as DOMAIN_KEYS, d as MastraStorage, f as calculatePagination, g as InMemoryThreadStateStorage, h as resolveListOrderBy, i as getSourceControlEntityFilePath, l as EDITOR_DOMAINS, m as normalizePerPage, n as SOURCE_CONTROL_AGENTS_DIR, o as VersionedStorageDomain, p as compareByField, r as getSourceAgentFilePath, s as StorageDomain, t as FilesystemVersionedHelpers, u as MastraCompositeStore } from "../filesystem-versioned-BL1ojJLo.js";
@@ -1,6 +1,6 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
- const require_stream = require("../stream-aGuW9AL8.cjs");
3
- const require_llm = require("../llm-C1aiWB6O.cjs");
2
+ const require_stream = require("../stream-BIbVD8V8.cjs");
3
+ const require_llm = require("../llm-Bljw7LII.cjs");
4
4
  const require_file = require("../file-BEndQUN1.cjs");
5
5
  exports.ChunkFrom = require_llm.ChunkFrom;
6
6
  exports.DefaultGeneratedFile = require_file.DefaultGeneratedFile;
@@ -1,4 +1,4 @@
1
- import { Mn as convertFullStreamChunkToUIMessageStream, a as convertFullStreamChunkToMastra, c as WorkflowRunOutput, d as MastraModelOutput, i as withStreamCaching, n as createCachingTransformStream, o as convertMastraChunkToAISDKv5, r as createReplayStream, s as MastraAgentNetworkStream, t as smoothStream } from "../stream-k-Q1NLUs.js";
2
- import { u as ChunkFrom } from "../llm-D5rGQSnS.js";
1
+ import { Mn as convertFullStreamChunkToUIMessageStream, a as convertFullStreamChunkToMastra, c as WorkflowRunOutput, d as MastraModelOutput, i as withStreamCaching, n as createCachingTransformStream, o as convertMastraChunkToAISDKv5, r as createReplayStream, s as MastraAgentNetworkStream, t as smoothStream } from "../stream-D607FmAx.js";
2
+ import { u as ChunkFrom } from "../llm-CxHzqEEI.js";
3
3
  import { n as DefaultGeneratedFileWithType, t as DefaultGeneratedFile } from "../file-DGZrR5f7.js";
4
4
  export { ChunkFrom, DefaultGeneratedFile, DefaultGeneratedFileWithType, MastraAgentNetworkStream, MastraModelOutput, WorkflowRunOutput, convertFullStreamChunkToMastra, convertFullStreamChunkToUIMessageStream, convertMastraChunkToAISDKv5, createCachingTransformStream, createReplayStream, smoothStream, withStreamCaching };
@@ -1,5 +1,5 @@
1
1
  const require_rolldown_runtime = require("./rolldown-runtime-BrhgMLW6.cjs");
2
- const require_llm = require("./llm-C1aiWB6O.cjs");
2
+ const require_llm = require("./llm-Bljw7LII.cjs");
3
3
  const require_message_list = require("./message-list-C0F2sDNC.cjs");
4
4
  const require_observability = require("./observability-B0R_D1PZ.cjs");
5
5
  const require_base = require("./base-BIzR1D3_.cjs");
@@ -1,5 +1,5 @@
1
1
  import { n as __exportAll } from "./rolldown-runtime-tIEjjQTE.js";
2
- import { d as attachModelStreamTransport, f as isDataChunk, i as resolveModelConfig, p as readModelStreamTransport } from "./llm-D5rGQSnS.js";
2
+ import { d as attachModelStreamTransport, f as isDataChunk, i as resolveModelConfig, p as readModelStreamTransport } from "./llm-CxHzqEEI.js";
3
3
  import { B as getResponseProviderItemIdFromPart, G as RESPONSE_ITEM_ID_PROVIDERS, K as RESPONSE_RESULT_ITEM_ID_KEY, f as coreContentToString, n as MessageList, p as messagesAreEqual, t as convertMessages } from "./message-list-RgFlLrxG.js";
4
4
  import { S as resolveObservabilityContext, x as createObservabilityContext } from "./observability-D7RNOAPx.js";
5
5
  import { t as MastraBase } from "./base-CKLWBhDo.js";
@@ -1,7 +1,7 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
2
  const require_rolldown_runtime = require("../rolldown-runtime-BrhgMLW6.cjs");
3
3
  const require_dist = require("../dist-CXeCeeW7.cjs");
4
- const require_model = require("../model-C2CTzjMk.cjs");
4
+ const require_model = require("../model-CrDuEDRq.cjs");
5
5
  const require_model$1 = require("../model-jBymoqGa.cjs");
6
6
  let stream = require("stream");
7
7
  let module$1 = require("module");
@@ -1,5 +1,5 @@
1
1
  import { o as simulateReadableStream } from "../dist-D3cKCUe-.js";
2
- import { t as MastraLLMV1 } from "../model-B8DlLHex.js";
2
+ import { t as MastraLLMV1 } from "../model-sUJDcX2v.js";
3
3
  import { t as AISDKV5LanguageModel } from "../model-DS-b2R-R.js";
4
4
  import { createRequire } from "module";
5
5
  import { Readable } from "stream";
@@ -1,5 +1,5 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
- const require_tool_loop_agent = require("../tool-loop-agent-WcRtGJHn.cjs");
2
+ const require_tool_loop_agent = require("../tool-loop-agent-Cnf7vONA.cjs");
3
3
  exports.getSettings = require_tool_loop_agent.getSettings;
4
4
  exports.isToolLoopAgentLike = require_tool_loop_agent.isToolLoopAgentLike;
5
5
  exports.toolLoopAgentToMastraAgent = require_tool_loop_agent.toolLoopAgentToMastraAgent;
@@ -1 +1 @@
1
- export { n as getSettings, r as isToolLoopAgentLike, t as toolLoopAgentToMastraAgent } from "../tool-loop-agent-CJrysPOR.js";
1
+ export { n as getSettings, r as isToolLoopAgentLike, t as toolLoopAgentToMastraAgent } from "../tool-loop-agent-eyoY_TEX.js";
@@ -1,7 +1,7 @@
1
1
  const require_dist = require("./dist-P2rjrlmj.cjs");
2
- const require_run_registry = require("./run-registry-DOlZccsr.cjs");
3
- const require_stream = require("./stream-aGuW9AL8.cjs");
4
- const require_llm = require("./llm-C1aiWB6O.cjs");
2
+ const require_run_registry = require("./run-registry-BvMXuIb_.cjs");
3
+ const require_stream = require("./stream-BIbVD8V8.cjs");
4
+ const require_llm = require("./llm-Bljw7LII.cjs");
5
5
  const require_message_list = require("./message-list-C0F2sDNC.cjs");
6
6
  // src/tool-loop-agent/utils.ts
7
7
  function isToolLoopAgentLike(obj) {
@@ -1,7 +1,7 @@
1
1
  import { m as generateId } from "./dist-TPVqg8oV.js";
2
- import { F as Agent } from "./run-registry-sTm40Ecv.js";
3
- import { un as isSupportedLanguageModel } from "./stream-k-Q1NLUs.js";
4
- import { i as resolveModelConfig } from "./llm-D5rGQSnS.js";
2
+ import { F as Agent } from "./run-registry-Cqp-VFdv.js";
3
+ import { un as isSupportedLanguageModel } from "./stream-D607FmAx.js";
4
+ import { i as resolveModelConfig } from "./llm-CxHzqEEI.js";
5
5
  import { N as ToolLoopAgent } from "./message-list-RgFlLrxG.js";
6
6
  // src/tool-loop-agent/utils.ts
7
7
  function isToolLoopAgentLike(obj) {
@@ -1,7 +1,7 @@
1
1
  import { i as MastraError, n as ErrorDomain, o as getErrorFromUnknown, t as ErrorCategory } from "./error-oh2DLsP2.js";
2
2
  import { c as registerToolOutputValidationSchema, d as validateToolOutput, f as validateToolSuspendData, h as markBuilderValidatedInput, i as createStandardSchemaIssuesError, n as Tool, o as getValidationIssuePaths, p as createToolObserve, s as isValidationError, u as validateToolInput } from "./tool-Z3bykc1m.js";
3
3
  import { i as MastraFGAPermissions } from "./ee-iTj2bRDt-By_B9ngH.js";
4
- import { a as isToolBackgroundEligible, i as isModelBackgroundOverrideAllowed, n as backgroundOverrideJsonSchema, r as backgroundOverrideZodSchema } from "./background-tasks-ClI6oF60.js";
4
+ import { a as isToolBackgroundEligible, i as isModelBackgroundOverrideAllowed, n as backgroundOverrideJsonSchema, r as backgroundOverrideZodSchema } from "./background-tasks-BoUX5G90.js";
5
5
  import { t as MastraBase } from "./base-CKLWBhDo.js";
6
6
  import { O as executionFailureTermination, b as wrapMastra, x as createObservabilityContext } from "./observability-D7RNOAPx.js";
7
7
  import { a as getOrCreateSpan, t as executeWithContext } from "./utils-DU_pU5SK.js";
@@ -1,7 +1,7 @@
1
1
  const require_error = require("./error-D90lJ6M7.cjs");
2
2
  const require_tool = require("./tool-CYlT2UA-.cjs");
3
3
  const require_ee_iTj2bRDt = require("./ee-iTj2bRDt-D3-QLGDF.cjs");
4
- const require_background_tasks = require("./background-tasks-D40Y_iLc.cjs");
4
+ const require_background_tasks = require("./background-tasks-udYDvnlw.cjs");
5
5
  const require_base = require("./base-BIzR1D3_.cjs");
6
6
  const require_observability = require("./observability-B0R_D1PZ.cjs");
7
7
  const require_utils = require("./utils-D-eNsgDM.cjs");
package/dist/utils.cjs CHANGED
@@ -4,7 +4,7 @@ const require_deep_equal = require("./deep-equal-TMDmByBC.cjs");
4
4
  const require_zod_utils = require("./zod-utils-Cl5jw5N_.cjs");
5
5
  const require_fetchWithRetry = require("./fetchWithRetry-f5k4p7_1.cjs");
6
6
  const require_dynamic_argument = require("./dynamic-argument-CUc1BBOS.cjs");
7
- const require_utils = require("./utils-DEzQLxWP.cjs");
7
+ const require_utils = require("./utils-O1TXaFUl.cjs");
8
8
  exports.boundedStringify = require_utils_safe_stringify.boundedStringify;
9
9
  exports.checkEvalStorageFields = require_utils.checkEvalStorageFields;
10
10
  exports.createMastraProxy = require_utils.createMastraProxy;