@mastra/memory 1.8.2 → 1.8.3-alpha.1

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 (78) hide show
  1. package/CHANGELOG.md +32 -0
  2. package/dist/chunk-3PUO6DLX.js +439 -0
  3. package/dist/chunk-3PUO6DLX.js.map +1 -0
  4. package/dist/{chunk-SUU4IAZJ.js → chunk-4KPXPQX3.js} +212 -75
  5. package/dist/chunk-4KPXPQX3.js.map +1 -0
  6. package/dist/{chunk-23EXJLET.cjs → chunk-CK4U3AYR.cjs} +4 -4
  7. package/dist/{chunk-23EXJLET.cjs.map → chunk-CK4U3AYR.cjs.map} +1 -1
  8. package/dist/chunk-DAJJSFVA.cjs +441 -0
  9. package/dist/chunk-DAJJSFVA.cjs.map +1 -0
  10. package/dist/{chunk-YPFNHFT6.cjs → chunk-LGCREJMO.cjs} +212 -74
  11. package/dist/chunk-LGCREJMO.cjs.map +1 -0
  12. package/dist/{chunk-BSDWQEU3.js → chunk-SVPZMV27.js} +4 -4
  13. package/dist/{chunk-BSDWQEU3.js.map → chunk-SVPZMV27.js.map} +1 -1
  14. package/dist/docs/SKILL.md +1 -1
  15. package/dist/docs/assets/SOURCE_MAP.json +30 -25
  16. package/dist/docs/references/docs-agents-agent-approval.md +4 -4
  17. package/dist/docs/references/docs-agents-network-approval.md +1 -1
  18. package/dist/docs/references/docs-agents-networks.md +1 -1
  19. package/dist/docs/references/docs-agents-supervisor-agents.md +3 -3
  20. package/dist/docs/references/docs-memory-memory-processors.md +6 -6
  21. package/dist/docs/references/docs-memory-semantic-recall.md +1 -1
  22. package/dist/docs/references/docs-memory-storage.md +1 -1
  23. package/dist/docs/references/docs-memory-working-memory.md +1 -1
  24. package/dist/docs/references/reference-memory-memory-class.md +3 -3
  25. package/dist/docs/references/reference-memory-observational-memory.md +5 -5
  26. package/dist/docs/references/reference-processors-token-limiter-processor.md +3 -3
  27. package/dist/docs/references/reference-storage-mongodb.md +1 -1
  28. package/dist/docs/references/reference-storage-postgresql.md +1 -1
  29. package/dist/docs/references/reference-storage-upstash.md +1 -1
  30. package/dist/docs/references/reference-vectors-libsql.md +1 -1
  31. package/dist/docs/references/reference-vectors-mongodb.md +1 -1
  32. package/dist/docs/references/reference-vectors-pg.md +1 -1
  33. package/dist/docs/references/reference-vectors-upstash.md +1 -1
  34. package/dist/index.cjs +891 -255
  35. package/dist/index.cjs.map +1 -1
  36. package/dist/index.d.ts +1 -0
  37. package/dist/index.d.ts.map +1 -1
  38. package/dist/index.js +881 -249
  39. package/dist/index.js.map +1 -1
  40. package/dist/{observational-memory-3HFM7PY2.cjs → observational-memory-4TV5KKFV.cjs} +21 -17
  41. package/dist/{observational-memory-3HFM7PY2.cjs.map → observational-memory-4TV5KKFV.cjs.map} +1 -1
  42. package/dist/observational-memory-UEDVTWS2.js +3 -0
  43. package/dist/{observational-memory-XXD6E2SO.js.map → observational-memory-UEDVTWS2.js.map} +1 -1
  44. package/dist/processors/index.cjs +19 -15
  45. package/dist/processors/index.js +1 -1
  46. package/dist/processors/observational-memory/index.d.ts +1 -0
  47. package/dist/processors/observational-memory/index.d.ts.map +1 -1
  48. package/dist/processors/observational-memory/observation-utils.d.ts +16 -0
  49. package/dist/processors/observational-memory/observation-utils.d.ts.map +1 -0
  50. package/dist/processors/observational-memory/observational-memory.d.ts +13 -4
  51. package/dist/processors/observational-memory/observational-memory.d.ts.map +1 -1
  52. package/dist/processors/observational-memory/observer-agent.d.ts +9 -7
  53. package/dist/processors/observational-memory/observer-agent.d.ts.map +1 -1
  54. package/dist/processors/observational-memory/token-counter.d.ts.map +1 -1
  55. package/dist/processors/observational-memory/tool-result-helpers.d.ts +12 -0
  56. package/dist/processors/observational-memory/tool-result-helpers.d.ts.map +1 -0
  57. package/dist/{token-6GSAFR2W-TW2P7HCS.cjs → token-APYSY3BW-POD4OUWN.cjs} +14 -14
  58. package/dist/token-APYSY3BW-POD4OUWN.cjs.map +1 -0
  59. package/dist/{token-6GSAFR2W-ABXTQD64.js → token-APYSY3BW-YTVQELJT.js} +11 -11
  60. package/dist/token-APYSY3BW-YTVQELJT.js.map +1 -0
  61. package/dist/token-util-RMHT2CPJ-77HHGIQN.cjs +10 -0
  62. package/dist/token-util-RMHT2CPJ-77HHGIQN.cjs.map +1 -0
  63. package/dist/token-util-RMHT2CPJ-WJZ2SYAR.js +8 -0
  64. package/dist/token-util-RMHT2CPJ-WJZ2SYAR.js.map +1 -0
  65. package/package.json +8 -8
  66. package/dist/chunk-HJYHDIOC.js +0 -250
  67. package/dist/chunk-HJYHDIOC.js.map +0 -1
  68. package/dist/chunk-LIBOSOHM.cjs +0 -252
  69. package/dist/chunk-LIBOSOHM.cjs.map +0 -1
  70. package/dist/chunk-SUU4IAZJ.js.map +0 -1
  71. package/dist/chunk-YPFNHFT6.cjs.map +0 -1
  72. package/dist/observational-memory-XXD6E2SO.js +0 -3
  73. package/dist/token-6GSAFR2W-ABXTQD64.js.map +0 -1
  74. package/dist/token-6GSAFR2W-TW2P7HCS.cjs.map +0 -1
  75. package/dist/token-util-NEHG7TUY-GYFEVMWP.cjs +0 -10
  76. package/dist/token-util-NEHG7TUY-GYFEVMWP.cjs.map +0 -1
  77. package/dist/token-util-NEHG7TUY-XQP3QSPX.js +0 -8
  78. package/dist/token-util-NEHG7TUY-XQP3QSPX.js.map +0 -1
@@ -33,9 +33,9 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
33
33
  mod
34
34
  ));
35
35
 
36
- // ../_vendored/ai_v5/dist/chunk-TLQKI65U.js
36
+ // ../_vendored/ai_v5/dist/chunk-QOME2VME.js
37
37
  var require_token_error = __commonJS({
38
- "../../../node_modules/.pnpm/@vercel+oidc@3.0.5/node_modules/@vercel/oidc/dist/token-error.js"(exports$1, module) {
38
+ "../../../node_modules/.pnpm/@vercel+oidc@3.1.0/node_modules/@vercel/oidc/dist/token-error.js"(exports$1, module) {
39
39
  var __defProp2 = Object.defineProperty;
40
40
  var __getOwnPropDesc2 = Object.getOwnPropertyDescriptor;
41
41
  var __getOwnPropNames2 = Object.getOwnPropertyNames;
@@ -75,5 +75,5 @@ var require_token_error = __commonJS({
75
75
  });
76
76
 
77
77
  export { __commonJS, __require2 as __require, __toESM, require_token_error };
78
- //# sourceMappingURL=chunk-BSDWQEU3.js.map
79
- //# sourceMappingURL=chunk-BSDWQEU3.js.map
78
+ //# sourceMappingURL=chunk-SVPZMV27.js.map
79
+ //# sourceMappingURL=chunk-SVPZMV27.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../../_vendored/ai_v5/dist/chunk-7D4SUZUM.js","../../../node_modules/.pnpm/@vercel+oidc@3.0.5/node_modules/@vercel/oidc/dist/token-error.js"],"names":["__require","__require2","exports","__defProp","__getOwnPropDesc","__getOwnPropNames","__hasOwnProp","__copyProps"],"mappings":";;;AAAA,IAAI,WAAW,MAAA,CAAO,MAAA;AACtB,IAAI,YAAY,MAAA,CAAO,cAAA;AACvB,IAAI,mBAAmB,MAAA,CAAO,wBAAA;AAC9B,IAAI,oBAAoB,MAAA,CAAO,mBAAA;AAC/B,IAAI,eAAe,MAAA,CAAO,cAAA;AAC1B,IAAI,YAAA,GAAe,OAAO,SAAA,CAAU,cAAA;AACpC,IAAIA,UAAAA,mBAA6B,CAAA,CAAC,CAAA,KAAM,OAAO,SAAA,KAAY,WAAA,GAAc,SAAA,GAAU,OAAO,KAAA,KAAU,WAAA,GAAc,IAAI,KAAA,CAAM,CAAA,EAAG;AAAA,EAC7H,GAAA,EAAK,CAAC,CAAA,EAAG,CAAA,KAAA,CAAO,OAAO,SAAA,KAAY,WAAA,GAAc,SAAA,GAAU,CAAA,EAAG,CAAC;AACjE,CAAC,CAAA,GAAI,CAAA,EAAG,SAAS,CAAA,EAAG;AAClB,EAAA,IAAI,OAAO,SAAA,KAAY,WAAA,SAAoB,SAAA,CAAQ,KAAA,CAAM,MAAM,SAAS,CAAA;AACxE,EAAA,MAAM,KAAA,CAAM,sBAAA,GAAyB,CAA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A;AAC1B,IAAA,QAAA,CAAS,mBAAA,EAAqB;AAC5B,MAAA,oBAAA,EAAsB,MAAM;KAC7B,CAAA;AACD,IAAA,MAAA,CAAO,OAAA,GAAU,aAAa,mBAAmB,CAAA;AACjD,IAAA,IAAM,oBAAA,GAAN,cAAmC,KAAA,CAAM;AACvC,MAAA,WAAA,CAAY,SAAS,KAAA,EAAO;AAC1B,QAAA,KAAA,CAAM,OAAO,CAAA;AACb,QAAA,IAAA,CAAK,IAAA,GAAO,sBAAA;AACZ,QAAA,IAAA,CAAK,KAAA,GAAQ,KAAA;AACf,MAAA;MACA,QAAA,GAAW;AACT,QAAA,IAAI,KAAK,KAAA,EAAO;AACd,UAAA,OAAO,CAAA,EAAG,KAAK,IAAI,CAAA,EAAA,EAAK,KAAK,OAAO,CAAA,EAAA,EAAK,KAAK,KAAK,CAAA,CAAA;AACrD,QAAA;AACA,QAAA,OAAO,CAAA,EAAG,IAAA,CAAK,IAAI,CAAA,EAAA,EAAK,KAAK,OAAO,CAAA,CAAA;AACtC,MAAA;AAAA,KAAA;AACF,EAAA;AAAA,CAAA","file":"chunk-BSDWQEU3.js","sourcesContent":["var __create = Object.create;\nvar __defProp = Object.defineProperty;\nvar __getOwnPropDesc = Object.getOwnPropertyDescriptor;\nvar __getOwnPropNames = Object.getOwnPropertyNames;\nvar __getProtoOf = Object.getPrototypeOf;\nvar __hasOwnProp = Object.prototype.hasOwnProperty;\nvar __require = /* @__PURE__ */ ((x) => typeof require !== \"undefined\" ? require : typeof Proxy !== \"undefined\" ? new Proxy(x, {\n get: (a, b) => (typeof require !== \"undefined\" ? require : a)[b]\n}) : x)(function(x) {\n if (typeof require !== \"undefined\") return require.apply(this, arguments);\n throw Error('Dynamic require of \"' + x + '\" is not supported');\n});\nvar __commonJS = (cb, mod) => function __require2() {\n return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;\n};\nvar __copyProps = (to, from, except, desc) => {\n if (from && typeof from === \"object\" || typeof from === \"function\") {\n for (let key of __getOwnPropNames(from))\n if (!__hasOwnProp.call(to, key) && key !== except)\n __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });\n }\n return to;\n};\nvar __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(\n // If the importer is in node compatibility mode or this is not an ESM\n // file that has been converted to a CommonJS file using a Babel-\n // compatible transform (i.e. \"__esModule\" has not been set), then set\n // \"default\" to the CommonJS \"module.exports\" for node compatibility.\n isNodeMode || !mod || !mod.__esModule ? __defProp(target, \"default\", { value: mod, enumerable: true }) : target,\n mod\n));\n\nexport { __commonJS, __require, __toESM };\n//# sourceMappingURL=chunk-7D4SUZUM.js.map\n//# sourceMappingURL=chunk-7D4SUZUM.js.map","\"use strict\";\nvar __defProp = Object.defineProperty;\nvar __getOwnPropDesc = Object.getOwnPropertyDescriptor;\nvar __getOwnPropNames = Object.getOwnPropertyNames;\nvar __hasOwnProp = Object.prototype.hasOwnProperty;\nvar __export = (target, all) => {\n for (var name in all)\n __defProp(target, name, { get: all[name], enumerable: true });\n};\nvar __copyProps = (to, from, except, desc) => {\n if (from && typeof from === \"object\" || typeof from === \"function\") {\n for (let key of __getOwnPropNames(from))\n if (!__hasOwnProp.call(to, key) && key !== except)\n __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });\n }\n return to;\n};\nvar __toCommonJS = (mod) => __copyProps(__defProp({}, \"__esModule\", { value: true }), mod);\nvar token_error_exports = {};\n__export(token_error_exports, {\n VercelOidcTokenError: () => VercelOidcTokenError\n});\nmodule.exports = __toCommonJS(token_error_exports);\nclass VercelOidcTokenError extends Error {\n constructor(message, cause) {\n super(message);\n this.name = \"VercelOidcTokenError\";\n this.cause = cause;\n }\n toString() {\n if (this.cause) {\n return `${this.name}: ${this.message}: ${this.cause}`;\n }\n return `${this.name}: ${this.message}`;\n }\n}\n// Annotate the CommonJS export names for ESM import in node:\n0 && (module.exports = {\n VercelOidcTokenError\n});\n"]}
1
+ {"version":3,"sources":["../../_vendored/ai_v5/dist/chunk-7D4SUZUM.js","../../../node_modules/.pnpm/@vercel+oidc@3.1.0/node_modules/@vercel/oidc/dist/token-error.js"],"names":["__require","__require2","exports","__defProp","__getOwnPropDesc","__getOwnPropNames","__hasOwnProp","__copyProps"],"mappings":";;;AAAA,IAAI,WAAW,MAAA,CAAO,MAAA;AACtB,IAAI,YAAY,MAAA,CAAO,cAAA;AACvB,IAAI,mBAAmB,MAAA,CAAO,wBAAA;AAC9B,IAAI,oBAAoB,MAAA,CAAO,mBAAA;AAC/B,IAAI,eAAe,MAAA,CAAO,cAAA;AAC1B,IAAI,YAAA,GAAe,OAAO,SAAA,CAAU,cAAA;AACpC,IAAIA,UAAAA,mBAA6B,CAAA,CAAC,CAAA,KAAM,OAAO,SAAA,KAAY,WAAA,GAAc,SAAA,GAAU,OAAO,KAAA,KAAU,WAAA,GAAc,IAAI,KAAA,CAAM,CAAA,EAAG;AAAA,EAC7H,GAAA,EAAK,CAAC,CAAA,EAAG,CAAA,KAAA,CAAO,OAAO,SAAA,KAAY,WAAA,GAAc,SAAA,GAAU,CAAA,EAAG,CAAC;AACjE,CAAC,CAAA,GAAI,CAAA,EAAG,SAAS,CAAA,EAAG;AAClB,EAAA,IAAI,OAAO,SAAA,KAAY,WAAA,SAAoB,SAAA,CAAQ,KAAA,CAAM,MAAM,SAAS,CAAA;AACxE,EAAA,MAAM,KAAA,CAAM,sBAAA,GAAyB,CAAA,GAAI,oBAAoB,CAAA;AAC/D,CAAC;AACD,IAAI,UAAA,GAAa,CAAC,EAAA,EAAI,GAAA,KAAQ,SAASC,WAAAA,GAAa;AAClD,EAAA,OAAO,WAAW,EAAA,CAAG,kBAAkB,EAAE,CAAA,CAAE,CAAC,CAAC,CAAA,EAAA,CAAI,GAAA,GAAM,EAAE,SAAS,EAAC,IAAK,OAAA,EAAS,GAAG,GAAG,GAAA,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CAAA;AACb,QAAA,IAAA,CAAK,IAAA,GAAO,sBAAA;AACZ,QAAA,IAAA,CAAK,KAAA,GAAQ,KAAA;AACf,MAAA;MACA,QAAA,GAAW;AACT,QAAA,IAAI,KAAK,KAAA,EAAO;AACd,UAAA,OAAO,CAAA,EAAG,KAAK,IAAI,CAAA,EAAA,EAAK,KAAK,OAAO,CAAA,EAAA,EAAK,KAAK,KAAK,CAAA,CAAA;AACrD,QAAA;AACA,QAAA,OAAO,CAAA,EAAG,IAAA,CAAK,IAAI,CAAA,EAAA,EAAK,KAAK,OAAO,CAAA,CAAA;AACtC,MAAA;AAAA,KAAA;AACF,EAAA;AAAA,CAAA","file":"chunk-SVPZMV27.js","sourcesContent":["var __create = Object.create;\nvar __defProp = Object.defineProperty;\nvar __getOwnPropDesc = Object.getOwnPropertyDescriptor;\nvar __getOwnPropNames = Object.getOwnPropertyNames;\nvar __getProtoOf = Object.getPrototypeOf;\nvar __hasOwnProp = Object.prototype.hasOwnProperty;\nvar __require = /* @__PURE__ */ ((x) => typeof require !== \"undefined\" ? require : typeof Proxy !== \"undefined\" ? new Proxy(x, {\n get: (a, b) => (typeof require !== \"undefined\" ? require : a)[b]\n}) : x)(function(x) {\n if (typeof require !== \"undefined\") return require.apply(this, arguments);\n throw Error('Dynamic require of \"' + x + '\" is not supported');\n});\nvar __commonJS = (cb, mod) => function __require2() {\n return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;\n};\nvar __copyProps = (to, from, except, desc) => {\n if (from && typeof from === \"object\" || typeof from === \"function\") {\n for (let key of __getOwnPropNames(from))\n if (!__hasOwnProp.call(to, key) && key !== except)\n __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });\n }\n return to;\n};\nvar __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(\n // If the importer is in node compatibility mode or this is not an ESM\n // file that has been converted to a CommonJS file using a Babel-\n // compatible transform (i.e. \"__esModule\" has not been set), then set\n // \"default\" to the CommonJS \"module.exports\" for node compatibility.\n isNodeMode || !mod || !mod.__esModule ? __defProp(target, \"default\", { value: mod, enumerable: true }) : target,\n mod\n));\n\nexport { __commonJS, __require, __toESM };\n//# sourceMappingURL=chunk-7D4SUZUM.js.map\n//# sourceMappingURL=chunk-7D4SUZUM.js.map","\"use strict\";\nvar __defProp = Object.defineProperty;\nvar __getOwnPropDesc = Object.getOwnPropertyDescriptor;\nvar __getOwnPropNames = Object.getOwnPropertyNames;\nvar __hasOwnProp = Object.prototype.hasOwnProperty;\nvar __export = (target, all) => {\n for (var name in all)\n __defProp(target, name, { get: all[name], enumerable: true });\n};\nvar __copyProps = (to, from, except, desc) => {\n if (from && typeof from === \"object\" || typeof from === \"function\") {\n for (let key of __getOwnPropNames(from))\n if (!__hasOwnProp.call(to, key) && key !== except)\n __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });\n }\n return to;\n};\nvar __toCommonJS = (mod) => __copyProps(__defProp({}, \"__esModule\", { value: true }), mod);\nvar token_error_exports = {};\n__export(token_error_exports, {\n VercelOidcTokenError: () => VercelOidcTokenError\n});\nmodule.exports = __toCommonJS(token_error_exports);\nclass VercelOidcTokenError extends Error {\n constructor(message, cause) {\n super(message);\n this.name = \"VercelOidcTokenError\";\n this.cause = cause;\n }\n toString() {\n if (this.cause) {\n return `${this.name}: ${this.message}: ${this.cause}`;\n }\n return `${this.name}: ${this.message}`;\n }\n}\n// Annotate the CommonJS export names for ESM import in node:\n0 && (module.exports = {\n VercelOidcTokenError\n});\n"]}
@@ -3,7 +3,7 @@ name: mastra-memory
3
3
  description: Documentation for @mastra/memory. Use when working with @mastra/memory APIs, configuration, or implementation.
4
4
  metadata:
5
5
  package: "@mastra/memory"
6
- version: "1.8.2"
6
+ version: "1.8.3-alpha.1"
7
7
  ---
8
8
 
9
9
  ## When to use
@@ -1,71 +1,76 @@
1
1
  {
2
- "version": "1.8.2",
2
+ "version": "1.8.3-alpha.1",
3
3
  "package": "@mastra/memory",
4
4
  "exports": {
5
5
  "OBSERVATIONAL_MEMORY_DEFAULTS": {
6
6
  "types": "dist/processors/index.d.ts",
7
- "implementation": "dist/chunk-SUU4IAZJ.js"
7
+ "implementation": "dist/chunk-4KPXPQX3.js"
8
8
  },
9
9
  "OBSERVATION_CONTEXT_INSTRUCTIONS": {
10
10
  "types": "dist/processors/index.d.ts",
11
- "implementation": "dist/chunk-SUU4IAZJ.js"
11
+ "implementation": "dist/chunk-4KPXPQX3.js"
12
12
  },
13
13
  "OBSERVATION_CONTEXT_PROMPT": {
14
14
  "types": "dist/processors/index.d.ts",
15
- "implementation": "dist/chunk-SUU4IAZJ.js"
15
+ "implementation": "dist/chunk-4KPXPQX3.js"
16
16
  },
17
17
  "OBSERVATION_CONTINUATION_HINT": {
18
18
  "types": "dist/processors/index.d.ts",
19
- "implementation": "dist/chunk-SUU4IAZJ.js"
19
+ "implementation": "dist/chunk-4KPXPQX3.js"
20
20
  },
21
21
  "OBSERVER_SYSTEM_PROMPT": {
22
22
  "types": "dist/processors/index.d.ts",
23
- "implementation": "dist/chunk-SUU4IAZJ.js"
23
+ "implementation": "dist/chunk-4KPXPQX3.js"
24
24
  },
25
25
  "ObservationalMemory": {
26
26
  "types": "dist/processors/index.d.ts",
27
- "implementation": "dist/chunk-SUU4IAZJ.js",
28
- "line": 2966
27
+ "implementation": "dist/chunk-4KPXPQX3.js",
28
+ "line": 3054
29
29
  },
30
30
  "TokenCounter": {
31
31
  "types": "dist/processors/index.d.ts",
32
- "implementation": "dist/chunk-SUU4IAZJ.js",
33
- "line": 2447
32
+ "implementation": "dist/chunk-4KPXPQX3.js",
33
+ "line": 2543
34
34
  },
35
35
  "buildObserverPrompt": {
36
36
  "types": "dist/processors/index.d.ts",
37
- "implementation": "dist/chunk-SUU4IAZJ.js",
38
- "line": 1068
37
+ "implementation": "dist/chunk-4KPXPQX3.js",
38
+ "line": 1164
39
39
  },
40
40
  "buildObserverSystemPrompt": {
41
41
  "types": "dist/processors/index.d.ts",
42
- "implementation": "dist/chunk-SUU4IAZJ.js",
43
- "line": 572
42
+ "implementation": "dist/chunk-4KPXPQX3.js",
43
+ "line": 663
44
44
  },
45
45
  "extractCurrentTask": {
46
46
  "types": "dist/processors/index.d.ts",
47
- "implementation": "dist/chunk-SUU4IAZJ.js",
48
- "line": 1176
47
+ "implementation": "dist/chunk-4KPXPQX3.js",
48
+ "line": 1272
49
49
  },
50
50
  "formatMessagesForObserver": {
51
51
  "types": "dist/processors/index.d.ts",
52
- "implementation": "dist/chunk-SUU4IAZJ.js",
53
- "line": 827
52
+ "implementation": "dist/chunk-4KPXPQX3.js",
53
+ "line": 923
54
+ },
55
+ "getObservationsAsOf": {
56
+ "types": "dist/processors/index.d.ts",
57
+ "implementation": "dist/chunk-4KPXPQX3.js",
58
+ "line": 7086
54
59
  },
55
60
  "hasCurrentTaskSection": {
56
61
  "types": "dist/processors/index.d.ts",
57
- "implementation": "dist/chunk-SUU4IAZJ.js",
58
- "line": 1164
62
+ "implementation": "dist/chunk-4KPXPQX3.js",
63
+ "line": 1260
59
64
  },
60
65
  "optimizeObservationsForContext": {
61
66
  "types": "dist/processors/index.d.ts",
62
- "implementation": "dist/chunk-SUU4IAZJ.js",
63
- "line": 1187
67
+ "implementation": "dist/chunk-4KPXPQX3.js",
68
+ "line": 1283
64
69
  },
65
70
  "parseObserverOutput": {
66
71
  "types": "dist/processors/index.d.ts",
67
- "implementation": "dist/chunk-SUU4IAZJ.js",
68
- "line": 1078
72
+ "implementation": "dist/chunk-4KPXPQX3.js",
73
+ "line": 1174
69
74
  },
70
75
  "extractWorkingMemoryContent": {
71
76
  "types": "dist/index.d.ts",
@@ -96,7 +101,7 @@
96
101
  "processors": {
97
102
  "index": "dist/processors/index.js",
98
103
  "chunks": [
99
- "chunk-SUU4IAZJ.js"
104
+ "chunk-4KPXPQX3.js"
100
105
  ]
101
106
  }
102
107
  }
@@ -278,7 +278,7 @@ const agent = new Agent({
278
278
  id: 'my-agent',
279
279
  name: 'My Agent',
280
280
  instructions: 'You are a helpful assistant',
281
- model: 'openai/gpt-4o-mini',
281
+ model: 'openai/gpt-5-mini',
282
282
  tools: { weatherTool },
283
283
  memory: new Memory(),
284
284
  defaultOptions: {
@@ -343,7 +343,7 @@ const agent = new Agent({
343
343
  id: 'my-agent',
344
344
  name: 'My Agent',
345
345
  instructions: 'You are a helpful assistant',
346
- model: 'openai/gpt-4o-mini',
346
+ model: 'openai/gpt-5-mini',
347
347
  tools: { weatherTool },
348
348
  memory: new Memory(),
349
349
  defaultOptions: {
@@ -445,7 +445,7 @@ const dataAgent = new Agent({
445
445
  id: 'data-agent',
446
446
  name: 'Data Agent',
447
447
  description: 'Handles database queries and user data retrieval',
448
- model: 'openai/gpt-4o-mini',
448
+ model: 'openai/gpt-5-mini',
449
449
  tools: { findUserTool },
450
450
  })
451
451
 
@@ -454,7 +454,7 @@ const supervisorAgent = new Agent({
454
454
  name: 'Supervisor Agent',
455
455
  instructions: `You coordinate data retrieval tasks.
456
456
  Delegate to data-agent for user lookups.`,
457
- model: 'openai/gpt-5.1',
457
+ model: 'openai/gpt-5.4',
458
458
  agents: { dataAgent },
459
459
  memory: new Memory(),
460
460
  })
@@ -176,7 +176,7 @@ const routingAgent = new Agent({
176
176
  id: 'routing-agent',
177
177
  name: 'Routing Agent',
178
178
  instructions: 'You coordinate tasks across multiple agents',
179
- model: 'openai/gpt-4o-mini',
179
+ model: 'openai/gpt-5-mini',
180
180
  tools: { confirmationTool },
181
181
  memory: new Memory(),
182
182
  defaultNetworkOptions: {
@@ -48,7 +48,7 @@ export const routingAgent = new Agent({
48
48
  Always respond with a complete report—no bullet points.
49
49
  Write in full paragraphs, like a blog post.
50
50
  Do not answer with incomplete or uncertain information.`,
51
- model: 'openai/gpt-5.1',
51
+ model: 'openai/gpt-5.4',
52
52
  agents: {
53
53
  researchAgent,
54
54
  writingAgent,
@@ -24,20 +24,20 @@ import { LibSQLStore } from '@mastra/libsql'
24
24
  const researchAgent = new Agent({
25
25
  id: 'research-agent',
26
26
  description: 'Gathers factual information and returns bullet-point summaries.',
27
- model: 'openai/gpt-4o-mini',
27
+ model: 'openai/gpt-5-mini',
28
28
  })
29
29
 
30
30
  const writingAgent = new Agent({
31
31
  id: 'writing-agent',
32
32
  description: 'Transforms research into well-structured articles.',
33
- model: 'openai/gpt-4o-mini',
33
+ model: 'openai/gpt-5-mini',
34
34
  })
35
35
 
36
36
  const supervisor = new Agent({
37
37
  id: 'supervisor',
38
38
  instructions: `You coordinate research and writing using specialized agents.
39
39
  Delegate to research-agent for facts, then writing-agent for content.`,
40
- model: 'openai/gpt-5.1',
40
+ model: 'openai/gpt-5.4',
41
41
  agents: { researchAgent, writingAgent },
42
42
  memory: new Memory({
43
43
  storage: new LibSQLStore({ id: 'storage', url: 'file:mastra.db' }),
@@ -45,7 +45,7 @@ const agent = new Agent({
45
45
  id: 'test-agent',
46
46
  name: 'Test Agent',
47
47
  instructions: 'You are a helpful assistant',
48
- model: 'openai/gpt-4o',
48
+ model: 'openai/gpt-5.4',
49
49
  memory: new Memory({
50
50
  storage: new LibSQLStore({
51
51
  id: 'memory-store',
@@ -95,7 +95,7 @@ import { openai } from '@ai-sdk/openai'
95
95
  const agent = new Agent({
96
96
  name: 'semantic-agent',
97
97
  instructions: 'You are a helpful assistant with semantic memory',
98
- model: 'openai/gpt-4o',
98
+ model: 'openai/gpt-5.4',
99
99
  memory: new Memory({
100
100
  storage: new LibSQLStore({
101
101
  id: 'memory-store',
@@ -148,7 +148,7 @@ import { openai } from '@ai-sdk/openai'
148
148
  const agent = new Agent({
149
149
  name: 'working-memory-agent',
150
150
  instructions: 'You are an assistant with working memory',
151
- model: 'openai/gpt-4o',
151
+ model: 'openai/gpt-5.4',
152
152
  memory: new Memory({
153
153
  storage: new LibSQLStore({
154
154
  id: 'memory-store',
@@ -180,7 +180,7 @@ const customMessageHistory = new MessageHistory({
180
180
  const agent = new Agent({
181
181
  name: 'custom-memory-agent',
182
182
  instructions: 'You are a helpful assistant',
183
- model: 'openai/gpt-4o',
183
+ model: 'openai/gpt-5.4',
184
184
  memory: new Memory({
185
185
  storage: new LibSQLStore({ id: 'memory-store', url: 'file:memory.db' }),
186
186
  lastMessages: 10, // This would normally add MessageHistory(10)
@@ -250,7 +250,7 @@ const contentBlocker = {
250
250
  const agent = new Agent({
251
251
  name: 'safe-agent',
252
252
  instructions: 'You are a helpful assistant',
253
- model: 'openai/gpt-4o',
253
+ model: 'openai/gpt-5.4',
254
254
  memory: new Memory({ lastMessages: 10 }),
255
255
  // Your guardrail runs BEFORE memory saves
256
256
  outputProcessors: [contentBlocker],
@@ -289,7 +289,7 @@ const inputValidator = {
289
289
  const agent = new Agent({
290
290
  name: 'validated-agent',
291
291
  instructions: 'You are a helpful assistant',
292
- model: 'openai/gpt-4o',
292
+ model: 'openai/gpt-5.4',
293
293
  memory: new Memory({ lastMessages: 10 }),
294
294
  // Your guardrail runs AFTER memory loads history
295
295
  inputProcessors: [inputValidator],
@@ -28,7 +28,7 @@ const agent = new Agent({
28
28
  id: 'support-agent',
29
29
  name: 'SupportAgent',
30
30
  instructions: 'You are a helpful support agent.',
31
- model: 'openai/gpt-5.1',
31
+ model: 'openai/gpt-5.4',
32
32
  memory: new Memory(),
33
33
  })
34
34
  ```
@@ -180,7 +180,7 @@ export const agent = new Agent({
180
180
  memory: new Memory({
181
181
  options: {
182
182
  generateTitle: {
183
- model: 'openai/gpt-4o-mini',
183
+ model: 'openai/gpt-5-mini',
184
184
  instructions: 'Generate a 1 word title',
185
185
  },
186
186
  },
@@ -26,7 +26,7 @@ const agent = new Agent({
26
26
  id: 'personal-assistant',
27
27
  name: 'PersonalAssistant',
28
28
  instructions: 'You are a helpful personal assistant.',
29
- model: 'openai/gpt-5.1',
29
+ model: 'openai/gpt-5.4',
30
30
  memory: new Memory({
31
31
  options: {
32
32
  workingMemory: {
@@ -11,7 +11,7 @@ import { Agent } from '@mastra/core/agent'
11
11
  export const agent = new Agent({
12
12
  name: 'test-agent',
13
13
  instructions: 'You are an agent with memory.',
14
- model: 'openai/gpt-5.1',
14
+ model: 'openai/gpt-5.4',
15
15
  memory: new Memory({
16
16
  options: {
17
17
  workingMemory: {
@@ -60,7 +60,7 @@ import { LibSQLStore, LibSQLVector } from '@mastra/libsql'
60
60
  export const agent = new Agent({
61
61
  name: 'test-agent',
62
62
  instructions: 'You are an agent with memory.',
63
- model: 'openai/gpt-5.1',
63
+ model: 'openai/gpt-5.4',
64
64
  memory: new Memory({
65
65
  storage: new LibSQLStore({
66
66
  id: 'test-agent-storage',
@@ -97,7 +97,7 @@ import { PgStore, PgVector } from '@mastra/pg'
97
97
  export const agent = new Agent({
98
98
  name: 'pg-agent',
99
99
  instructions: 'You are an agent with optimized PostgreSQL memory.',
100
- model: 'openai/gpt-5.1',
100
+ model: 'openai/gpt-5.4',
101
101
  memory: new Memory({
102
102
  storage: new PgStore({
103
103
  id: 'pg-agent-storage',
@@ -159,11 +159,11 @@ import { Agent } from '@mastra/core/agent'
159
159
  export const agent = new Agent({
160
160
  name: 'my-agent',
161
161
  instructions: 'You are a helpful assistant.',
162
- model: 'openai/gpt-5-mini',
162
+ model: 'openai/gpt-5.4',
163
163
  memory: new Memory({
164
164
  options: {
165
165
  observationalMemory: {
166
- model: 'openai/gpt-4o-mini',
166
+ model: 'openai/gpt-5-mini',
167
167
  },
168
168
  },
169
169
  }),
@@ -179,7 +179,7 @@ import { Agent } from '@mastra/core/agent'
179
179
  export const agent = new Agent({
180
180
  name: 'my-agent',
181
181
  instructions: 'You are a helpful assistant.',
182
- model: 'openai/gpt-5-mini',
182
+ model: 'openai/gpt-5.4',
183
183
  memory: new Memory({
184
184
  options: {
185
185
  observationalMemory: {
@@ -187,7 +187,7 @@ export const agent = new Agent({
187
187
  model: 'google/gemini-2.5-flash',
188
188
  },
189
189
  reflection: {
190
- model: 'openai/gpt-4o-mini',
190
+ model: 'openai/gpt-5-mini',
191
191
  },
192
192
  },
193
193
  },
@@ -206,7 +206,7 @@ import { Agent } from '@mastra/core/agent'
206
206
  export const agent = new Agent({
207
207
  name: 'health-assistant',
208
208
  instructions: 'You are a health and wellness assistant.',
209
- model: 'openai/gpt-5-mini',
209
+ model: 'openai/gpt-5.4',
210
210
  memory: new Memory({
211
211
  options: {
212
212
  observationalMemory: {
@@ -79,7 +79,7 @@ import { TokenLimiterProcessor } from '@mastra/core/processors'
79
79
  export const agent = new Agent({
80
80
  name: 'context-limited-agent',
81
81
  instructions: 'You are a helpful assistant',
82
- model: 'openai/gpt-4o',
82
+ model: 'openai/gpt-5.4',
83
83
  memory: new Memory({
84
84
  /* ... */
85
85
  }),
@@ -100,7 +100,7 @@ import { TokenLimiterProcessor } from '@mastra/core/processors'
100
100
  export const agent = new Agent({
101
101
  name: 'multi-step-agent',
102
102
  instructions: 'You are a helpful research assistant with access to tools',
103
- model: 'openai/gpt-4o',
103
+ model: 'openai/gpt-5.4',
104
104
  inputProcessors: [
105
105
  new TokenLimiterProcessor({ limit: 8000 }), // Applied at every step
106
106
  ],
@@ -123,7 +123,7 @@ import { TokenLimiterProcessor } from '@mastra/core/processors'
123
123
  export const agent = new Agent({
124
124
  name: 'response-limited-agent',
125
125
  instructions: 'You are a helpful assistant',
126
- model: 'openai/gpt-4o',
126
+ model: 'openai/gpt-5.4',
127
127
  outputProcessors: [
128
128
  new TokenLimiterProcessor({
129
129
  limit: 1000,
@@ -206,7 +206,7 @@ export const mongodbAgent = new Agent({
206
206
  name: 'mongodb-agent',
207
207
  instructions:
208
208
  'You are an AI agent with the ability to automatically recall memories from previous interactions.',
209
- model: 'openai/gpt-5.1',
209
+ model: 'openai/gpt-5.4',
210
210
  memory: new Memory({
211
211
  storage: new MongoDBStore({
212
212
  uri: process.env.MONGODB_URI!,
@@ -332,7 +332,7 @@ export const pgAgent = new Agent({
332
332
  name: 'PG Agent',
333
333
  instructions:
334
334
  'You are an AI agent with the ability to automatically recall memories from previous interactions.',
335
- model: 'openai/gpt-5.1',
335
+ model: 'openai/gpt-5.4',
336
336
  memory: new Memory({
337
337
  storage: new PostgresStore({
338
338
  id: 'pg-agent-storage',
@@ -103,7 +103,7 @@ export const upstashAgent = new Agent({
103
103
  name: 'Upstash Agent',
104
104
  instructions:
105
105
  'You are an AI agent with the ability to automatically recall memories from previous interactions.',
106
- model: 'openai/gpt-5.1',
106
+ model: 'openai/gpt-5.4',
107
107
  memory: new Memory({
108
108
  storage: new UpstashStore({
109
109
  id: 'upstash-agent-storage',
@@ -277,7 +277,7 @@ export const libsqlAgent = new Agent({
277
277
  name: 'libSQL Agent',
278
278
  instructions:
279
279
  'You are an AI agent with the ability to automatically recall memories from previous interactions.',
280
- model: 'openai/gpt-5.1',
280
+ model: 'openai/gpt-5.4',
281
281
  memory: new Memory({
282
282
  storage: new LibSQLStore({
283
283
  id: 'libsql-agent-storage',
@@ -265,7 +265,7 @@ export const mongodbAgent = new Agent({
265
265
  name: 'mongodb-agent',
266
266
  instructions:
267
267
  'You are an AI agent with the ability to automatically recall memories from previous interactions.',
268
- model: 'openai/gpt-5.1',
268
+ model: 'openai/gpt-5.4',
269
269
  memory: new Memory({
270
270
  storage: new MongoDBStore({
271
271
  id: 'mongodb-storage',
@@ -399,7 +399,7 @@ export const pgAgent = new Agent({
399
399
  name: 'PG Agent',
400
400
  instructions:
401
401
  'You are an AI agent with the ability to automatically recall memories from previous interactions.',
402
- model: 'openai/gpt-5.1',
402
+ model: 'openai/gpt-5.4',
403
403
  memory: new Memory({
404
404
  storage: new PostgresStore({
405
405
  id: 'pg-agent-storage',
@@ -265,7 +265,7 @@ export const upstashAgent = new Agent({
265
265
  name: 'Upstash Agent',
266
266
  instructions:
267
267
  'You are an AI agent with the ability to automatically recall memories from previous interactions.',
268
- model: 'openai/gpt-5.1',
268
+ model: 'openai/gpt-5.4',
269
269
  memory: new Memory({
270
270
  storage: new UpstashStore({
271
271
  id: 'upstash-agent-storage',