@mastra/cloudflare 1.7.5 → 1.7.6-alpha.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/do/index.cjs +1 -1
- package/dist/do/index.js +1 -1
- package/dist/do/storage/db/index.d.ts.map +1 -1
- package/dist/{do-BX1nAsXg.js → do-BWVFzDmS.js} +10 -19
- package/dist/do-BWVFzDmS.js.map +1 -0
- package/dist/{do-Cl2WWMnv.cjs → do-DLpNbVvV.cjs} +10 -19
- package/dist/do-DLpNbVvV.cjs.map +1 -0
- package/dist/docs/SKILL.md +1 -1
- package/dist/docs/assets/SOURCE_MAP.json +1 -1
- package/dist/docs/references/integrations-databases-cloudflare-kv.md +4 -0
- package/dist/index.cjs +2 -2
- package/dist/index.js +2 -2
- package/dist/kv/index.cjs +1 -1
- package/dist/kv/index.js +1 -1
- package/dist/{kv-OtUwwOU4.js → kv-BWTdU3Nl.js} +7 -13
- package/dist/{kv-OtUwwOU4.js.map → kv-BWTdU3Nl.js.map} +1 -1
- package/dist/{kv-kikiC8PI.cjs → kv-sSeIiUri.cjs} +8 -15
- package/dist/{kv-kikiC8PI.cjs.map → kv-sSeIiUri.cjs.map} +1 -1
- package/package.json +10 -10
- package/dist/do-BX1nAsXg.js.map +0 -1
- package/dist/do-Cl2WWMnv.cjs.map +0 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
// \0rolldown/runtime.js
|
|
2
2
|
var __create = Object.create;
|
|
3
3
|
var __defProp = Object.defineProperty;
|
|
4
4
|
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
@@ -19,7 +19,6 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
|
|
|
19
19
|
value: mod,
|
|
20
20
|
enumerable: true
|
|
21
21
|
}) : target, mod));
|
|
22
|
-
//#endregion
|
|
23
22
|
let _mastra_core_error = require("@mastra/core/error");
|
|
24
23
|
let _mastra_core_storage = require("@mastra/core/storage");
|
|
25
24
|
let cloudflare = require("cloudflare");
|
|
@@ -27,7 +26,7 @@ cloudflare = __toESM(cloudflare, 1);
|
|
|
27
26
|
let _mastra_core_agent = require("@mastra/core/agent");
|
|
28
27
|
let _mastra_core_base = require("@mastra/core/base");
|
|
29
28
|
let _mastra_core_evals = require("@mastra/core/evals");
|
|
30
|
-
|
|
29
|
+
// src/kv/storage/db/index.ts
|
|
31
30
|
/**
|
|
32
31
|
* Resolves CloudflareDomainConfig to CloudflareKVDBConfig.
|
|
33
32
|
* Handles creating a new Cloudflare client if apiToken is provided.
|
|
@@ -506,8 +505,7 @@ var CloudflareKVDB = class extends _mastra_core_base.MastraBase {
|
|
|
506
505
|
}
|
|
507
506
|
}
|
|
508
507
|
};
|
|
509
|
-
|
|
510
|
-
//#region src/kv/storage/domains/memory/index.ts
|
|
508
|
+
// src/kv/storage/domains/memory/index.ts
|
|
511
509
|
var MemoryStorageCloudflare = class extends _mastra_core_storage.MemoryStorage {
|
|
512
510
|
supportsPartialThreadUpdate = true;
|
|
513
511
|
#db;
|
|
@@ -1423,8 +1421,7 @@ var MemoryStorageCloudflare = class extends _mastra_core_storage.MemoryStorage {
|
|
|
1423
1421
|
}
|
|
1424
1422
|
}
|
|
1425
1423
|
};
|
|
1426
|
-
|
|
1427
|
-
//#region src/kv/storage/domains/scores/index.ts
|
|
1424
|
+
// src/kv/storage/domains/scores/index.ts
|
|
1428
1425
|
/**
|
|
1429
1426
|
* Cloudflare KV-specific score row transformation.
|
|
1430
1427
|
* Uses default options (no timestamp conversion).
|
|
@@ -1710,8 +1707,7 @@ var ScoresStorageCloudflare = class extends _mastra_core_storage.ScoresStorage {
|
|
|
1710
1707
|
}
|
|
1711
1708
|
}
|
|
1712
1709
|
};
|
|
1713
|
-
|
|
1714
|
-
//#region src/kv/storage/domains/workflows/index.ts
|
|
1710
|
+
// src/kv/storage/domains/workflows/index.ts
|
|
1715
1711
|
var WorkflowsStorageCloudflare = class extends _mastra_core_storage.WorkflowsStorage {
|
|
1716
1712
|
#db;
|
|
1717
1713
|
constructor(config) {
|
|
@@ -1946,16 +1942,14 @@ var WorkflowsStorageCloudflare = class extends _mastra_core_storage.WorkflowsSto
|
|
|
1946
1942
|
}
|
|
1947
1943
|
}
|
|
1948
1944
|
};
|
|
1949
|
-
|
|
1950
|
-
//#region src/kv/storage/types.ts
|
|
1945
|
+
// src/kv/storage/types.ts
|
|
1951
1946
|
/**
|
|
1952
1947
|
* Helper to determine if a config is using Workers bindings
|
|
1953
1948
|
*/
|
|
1954
1949
|
function isWorkersConfig(config) {
|
|
1955
1950
|
return "bindings" in config;
|
|
1956
1951
|
}
|
|
1957
|
-
|
|
1958
|
-
//#region src/kv/index.ts
|
|
1952
|
+
// src/kv/index.ts
|
|
1959
1953
|
/**
|
|
1960
1954
|
* Cloudflare KV storage adapter for Mastra.
|
|
1961
1955
|
*
|
|
@@ -2052,7 +2046,6 @@ var CloudflareKVStorage = class extends _mastra_core_storage.MastraCompositeStor
|
|
|
2052
2046
|
* @deprecated Use CloudflareKVStorage instead
|
|
2053
2047
|
*/
|
|
2054
2048
|
const CloudflareStore = CloudflareKVStorage;
|
|
2055
|
-
//#endregion
|
|
2056
2049
|
Object.defineProperty(exports, "CloudflareKVStorage", {
|
|
2057
2050
|
enumerable: true,
|
|
2058
2051
|
get: function() {
|
|
@@ -2084,4 +2077,4 @@ Object.defineProperty(exports, "WorkflowsStorageCloudflare", {
|
|
|
2084
2077
|
}
|
|
2085
2078
|
});
|
|
2086
2079
|
|
|
2087
|
-
//# sourceMappingURL=kv-
|
|
2080
|
+
//# sourceMappingURL=kv-sSeIiUri.cjs.map
|