@mastra/editor 0.13.3-alpha.1 → 0.13.3-alpha.2

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/CHANGELOG.md CHANGED
@@ -1,5 +1,30 @@
1
1
  # @mastra/editor
2
2
 
3
+ ## 0.13.3-alpha.2
4
+
5
+ ### Patch Changes
6
+
7
+ - Agent Builder agents now default observational memory to `__GATEWAY_OPENAI_MODEL_MINI__` instead of `__GATEWAY_GOOGLE_MODEL__`. Set `OPENAI_API_KEY` in any environment where Builder agents run. Core (non-builder) agents are unaffected and keep the framework default. Admins can still override the model: ([#18650](https://github.com/mastra-ai/mastra/pull/18650))
8
+
9
+ ```typescript
10
+ new MastraEditor({
11
+ builder: {
12
+ enabled: true,
13
+ configuration: {
14
+ agent: {
15
+ memory: { observationalMemory: { model: '__GATEWAY_OPENAI_MODEL_MINI__' } },
16
+ },
17
+ },
18
+ },
19
+ });
20
+ ```
21
+
22
+ - Updated dependencies [[`b33c77d`](https://github.com/mastra-ai/mastra/commit/b33c77d5293f14a794f3ec38dc947a6676de2764), [`1009f77`](https://github.com/mastra-ai/mastra/commit/1009f772aa40016b49267c8566d0c29f6a16aa3c), [`23c31de`](https://github.com/mastra-ai/mastra/commit/23c31de96ed8153402dcf092ac84b27a0c3638c1), [`0368766`](https://github.com/mastra-ai/mastra/commit/0368766744c7ea3df4d6059e2cc15f7bdf55f5a6), [`d0702ee`](https://github.com/mastra-ai/mastra/commit/d0702eedc1594cb2d0d83476440cfc2ec8820adb), [`65a66db`](https://github.com/mastra-ai/mastra/commit/65a66dbe249a0d92d828c605b955e73a983cf3b0), [`2866f04`](https://github.com/mastra-ai/mastra/commit/2866f04953edb78c1637fa45cc53abe24122edcb)]:
23
+ - @mastra/core@1.48.0-alpha.6
24
+ - @mastra/schema-compat@1.3.2-alpha.1
25
+ - @mastra/mcp@1.12.1-alpha.0
26
+ - @mastra/memory@1.21.3-alpha.2
27
+
3
28
  ## 0.13.3-alpha.1
4
29
 
5
30
  ### Patch Changes
package/dist/index.cjs CHANGED
@@ -978,6 +978,7 @@ function defaultModelToStored(entry) {
978
978
  var BUILDER_BASELINE_DEFAULTS = {
979
979
  memory: { observationalMemory: true }
980
980
  };
981
+ var BUILDER_DEFAULT_OM_MODEL = "openai/gpt-5.4-mini";
981
982
  function applyBuilderDefaults(input, builderAgentConfig) {
982
983
  const defaults = {};
983
984
  for (const field of BUILDER_DEFAULT_FIELDS) {
@@ -1879,7 +1880,9 @@ var EditorAgentNamespace = class extends CrudEditorNamespace {
1879
1880
  if (memoryConfig.observationalMemory) {
1880
1881
  options = {
1881
1882
  ...options,
1882
- observationalMemory: memoryConfig.observationalMemory
1883
+ // A literal `true` means "use the builder default OM model"; an explicit
1884
+ // object (user/admin choice) passes through untouched.
1885
+ observationalMemory: memoryConfig.observationalMemory === true ? { model: BUILDER_DEFAULT_OM_MODEL } : memoryConfig.observationalMemory
1883
1886
  };
1884
1887
  }
1885
1888
  if (options?.semanticRecall && (!vector || !memoryConfig.embedder)) {