@mastra/memory 1.0.0-beta.6 → 1.0.0-beta.7

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 (51) hide show
  1. package/CHANGELOG.md +127 -0
  2. package/dist/chunk-DGUM43GV.js +10 -0
  3. package/dist/chunk-DGUM43GV.js.map +1 -0
  4. package/dist/chunk-JEQ2X3Z6.cjs +12 -0
  5. package/dist/chunk-JEQ2X3Z6.cjs.map +1 -0
  6. package/dist/{chunk-E53QBCQN.js → chunk-KMQS2YEC.js} +3 -8
  7. package/dist/chunk-KMQS2YEC.js.map +1 -0
  8. package/dist/{chunk-MWO6ARUW.cjs → chunk-MMUHFOCG.js} +6 -16
  9. package/dist/chunk-MMUHFOCG.js.map +1 -0
  10. package/dist/chunk-QY6BZOPJ.js +250 -0
  11. package/dist/{chunk-2CIPVDK5.js.map → chunk-QY6BZOPJ.js.map} +1 -1
  12. package/dist/chunk-SG3GRV3O.cjs +84 -0
  13. package/dist/chunk-SG3GRV3O.cjs.map +1 -0
  14. package/dist/chunk-W72AYUIF.cjs +252 -0
  15. package/dist/{chunk-LRWWUW22.cjs.map → chunk-W72AYUIF.cjs.map} +1 -1
  16. package/dist/{chunk-2CIPVDK5.js → chunk-WC4XBMZT.js} +3 -3
  17. package/dist/chunk-WC4XBMZT.js.map +1 -0
  18. package/dist/{chunk-LRWWUW22.cjs → chunk-YMNW6DEN.cjs} +12 -12
  19. package/dist/chunk-YMNW6DEN.cjs.map +1 -0
  20. package/dist/chunk-ZUQPUTTO.cjs +84 -0
  21. package/dist/chunk-ZUQPUTTO.cjs.map +1 -0
  22. package/dist/index.cjs +5569 -234
  23. package/dist/index.cjs.map +1 -1
  24. package/dist/index.d.ts +7 -4
  25. package/dist/index.d.ts.map +1 -1
  26. package/dist/index.js +5669 -342
  27. package/dist/index.js.map +1 -1
  28. package/dist/token-6GSAFR2W-JV3TZR4M.cjs +63 -0
  29. package/dist/{token-6GSAFR2W-RTFFMWTB.cjs.map → token-6GSAFR2W-JV3TZR4M.cjs.map} +1 -1
  30. package/dist/token-6GSAFR2W-K2BTU23I.js +61 -0
  31. package/dist/{token-6GSAFR2W-KVDFAJ2M.js.map → token-6GSAFR2W-K2BTU23I.js.map} +1 -1
  32. package/dist/{token-6GSAFR2W-KVDFAJ2M.js → token-6GSAFR2W-VLY2XUPA.js} +4 -4
  33. package/dist/token-6GSAFR2W-VLY2XUPA.js.map +1 -0
  34. package/dist/{token-6GSAFR2W-RTFFMWTB.cjs → token-6GSAFR2W-YCB5SK2Z.cjs} +7 -7
  35. package/dist/token-6GSAFR2W-YCB5SK2Z.cjs.map +1 -0
  36. package/dist/token-util-NEHG7TUY-7IL6JUVY.cjs +10 -0
  37. package/dist/{token-util-NEHG7TUY-7TEUOH7J.cjs.map → token-util-NEHG7TUY-7IL6JUVY.cjs.map} +1 -1
  38. package/dist/token-util-NEHG7TUY-HF7KBP2H.cjs +10 -0
  39. package/dist/token-util-NEHG7TUY-HF7KBP2H.cjs.map +1 -0
  40. package/dist/token-util-NEHG7TUY-KSXDO2NO.js +8 -0
  41. package/dist/token-util-NEHG7TUY-KSXDO2NO.js.map +1 -0
  42. package/dist/token-util-NEHG7TUY-TIJ3LMSH.js +8 -0
  43. package/dist/{token-util-NEHG7TUY-DJYRKLRD.js.map → token-util-NEHG7TUY-TIJ3LMSH.js.map} +1 -1
  44. package/dist/tools/working-memory.d.ts.map +1 -1
  45. package/package.json +4 -3
  46. package/dist/chunk-E53QBCQN.js.map +0 -1
  47. package/dist/chunk-MWO6ARUW.cjs.map +0 -1
  48. package/dist/token-util-NEHG7TUY-7TEUOH7J.cjs +0 -10
  49. package/dist/token-util-NEHG7TUY-DJYRKLRD.js +0 -8
  50. package/dist/working-memory-utils.d.ts +0 -20
  51. package/dist/working-memory-utils.d.ts.map +0 -1
@@ -0,0 +1,84 @@
1
+ 'use strict';
2
+
3
+ var chunkJEQ2X3Z6_cjs = require('./chunk-JEQ2X3Z6.cjs');
4
+
5
+ // ../_vendored/ai_v6/dist/chunk-7D4SUZUM.js
6
+ var __create = Object.create;
7
+ var __defProp = Object.defineProperty;
8
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
9
+ var __getOwnPropNames = Object.getOwnPropertyNames;
10
+ var __getProtoOf = Object.getPrototypeOf;
11
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
12
+ var __require2 = /* @__PURE__ */ ((x) => typeof chunkJEQ2X3Z6_cjs.__require !== "undefined" ? chunkJEQ2X3Z6_cjs.__require : typeof Proxy !== "undefined" ? new Proxy(x, {
13
+ get: (a, b) => (typeof chunkJEQ2X3Z6_cjs.__require !== "undefined" ? chunkJEQ2X3Z6_cjs.__require : a)[b]
14
+ }) : x)(function(x) {
15
+ if (typeof chunkJEQ2X3Z6_cjs.__require !== "undefined") return chunkJEQ2X3Z6_cjs.__require.apply(this, arguments);
16
+ throw Error('Dynamic require of "' + x + '" is not supported');
17
+ });
18
+ var __commonJS = (cb, mod) => function __require22() {
19
+ return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
20
+ };
21
+ var __copyProps = (to, from, except, desc) => {
22
+ if (from && typeof from === "object" || typeof from === "function") {
23
+ for (let key of __getOwnPropNames(from))
24
+ if (!__hasOwnProp.call(to, key) && key !== except)
25
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
26
+ }
27
+ return to;
28
+ };
29
+ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
30
+ // If the importer is in node compatibility mode or this is not an ESM
31
+ // file that has been converted to a CommonJS file using a Babel-
32
+ // compatible transform (i.e. "__esModule" has not been set), then set
33
+ // "default" to the CommonJS "module.exports" for node compatibility.
34
+ isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
35
+ mod
36
+ ));
37
+
38
+ // ../_vendored/ai_v6/dist/chunk-TLQKI65U.js
39
+ var require_token_error = __commonJS({
40
+ "../../../node_modules/.pnpm/@vercel+oidc@3.0.5/node_modules/@vercel/oidc/dist/token-error.js"(exports, module) {
41
+ var __defProp2 = Object.defineProperty;
42
+ var __getOwnPropDesc2 = Object.getOwnPropertyDescriptor;
43
+ var __getOwnPropNames2 = Object.getOwnPropertyNames;
44
+ var __hasOwnProp2 = Object.prototype.hasOwnProperty;
45
+ var __export = (target, all) => {
46
+ for (var name in all)
47
+ __defProp2(target, name, { get: all[name], enumerable: true });
48
+ };
49
+ var __copyProps2 = (to, from, except, desc) => {
50
+ if (from && typeof from === "object" || typeof from === "function") {
51
+ for (let key of __getOwnPropNames2(from))
52
+ if (!__hasOwnProp2.call(to, key) && key !== except)
53
+ __defProp2(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc2(from, key)) || desc.enumerable });
54
+ }
55
+ return to;
56
+ };
57
+ var __toCommonJS = (mod) => __copyProps2(__defProp2({}, "__esModule", { value: true }), mod);
58
+ var token_error_exports = {};
59
+ __export(token_error_exports, {
60
+ VercelOidcTokenError: () => VercelOidcTokenError
61
+ });
62
+ module.exports = __toCommonJS(token_error_exports);
63
+ var VercelOidcTokenError = class extends Error {
64
+ constructor(message, cause) {
65
+ super(message);
66
+ this.name = "VercelOidcTokenError";
67
+ this.cause = cause;
68
+ }
69
+ toString() {
70
+ if (this.cause) {
71
+ return `${this.name}: ${this.message}: ${this.cause}`;
72
+ }
73
+ return `${this.name}: ${this.message}`;
74
+ }
75
+ };
76
+ }
77
+ });
78
+
79
+ exports.__commonJS = __commonJS;
80
+ exports.__require = __require2;
81
+ exports.__toESM = __toESM;
82
+ exports.require_token_error = require_token_error;
83
+ //# sourceMappingURL=chunk-ZUQPUTTO.cjs.map
84
+ //# sourceMappingURL=chunk-ZUQPUTTO.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../_vendored/ai_v6/dist/chunk-7D4SUZUM.js","../../../node_modules/.pnpm/@vercel+oidc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AA,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-ZUQPUTTO.cjs","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"]}