@mastra/cloudflare 1.5.0-alpha.0 → 1.5.1-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/CHANGELOG.md +31 -0
- package/dist/{chunk-5NOOV27A.js → chunk-CD6XB3H3.js} +21 -9
- package/dist/chunk-CD6XB3H3.js.map +1 -0
- package/dist/{chunk-4QM3RKOF.cjs → chunk-D7CPZ5NS.cjs} +21 -9
- package/dist/chunk-D7CPZ5NS.cjs.map +1 -0
- package/dist/{chunk-ADP2QAK4.js → chunk-OMTTR37Z.js} +32 -9
- package/dist/chunk-OMTTR37Z.js.map +1 -0
- package/dist/{chunk-63YHZAI7.cjs → chunk-UQ4IOLSC.cjs} +32 -9
- package/dist/chunk-UQ4IOLSC.cjs.map +1 -0
- package/dist/do/index.cjs +8 -8
- package/dist/do/index.js +1 -1
- package/dist/do/storage/domains/scores/index.d.ts +9 -5
- package/dist/do/storage/domains/scores/index.d.ts.map +1 -1
- package/dist/docs/SKILL.md +1 -1
- package/dist/docs/assets/SOURCE_MAP.json +18 -18
- package/dist/docs/references/reference-storage-cloudflare.md +2 -0
- package/dist/index.cjs +13 -13
- package/dist/index.js +2 -2
- package/dist/kv/index.cjs +7 -7
- package/dist/kv/index.js +1 -1
- package/dist/kv/storage/domains/scores/index.d.ts +9 -5
- package/dist/kv/storage/domains/scores/index.d.ts.map +1 -1
- package/package.json +5 -5
- package/dist/chunk-4QM3RKOF.cjs.map +0 -1
- package/dist/chunk-5NOOV27A.js.map +0 -1
- package/dist/chunk-63YHZAI7.cjs.map +0 -1
- package/dist/chunk-ADP2QAK4.js.map +0 -1
package/dist/docs/SKILL.md
CHANGED
|
@@ -3,7 +3,7 @@ name: mastra-cloudflare
|
|
|
3
3
|
description: Documentation for @mastra/cloudflare. Use when working with @mastra/cloudflare APIs, configuration, or implementation.
|
|
4
4
|
metadata:
|
|
5
5
|
package: "@mastra/cloudflare"
|
|
6
|
-
version: "1.5.
|
|
6
|
+
version: "1.5.1-alpha.0"
|
|
7
7
|
---
|
|
8
8
|
|
|
9
9
|
## When to use
|
|
@@ -1,59 +1,59 @@
|
|
|
1
1
|
{
|
|
2
|
-
"version": "1.5.
|
|
2
|
+
"version": "1.5.1-alpha.0",
|
|
3
3
|
"package": "@mastra/cloudflare",
|
|
4
4
|
"exports": {
|
|
5
5
|
"CloudflareDOStorage": {
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
7
|
-
"implementation": "dist/chunk-
|
|
8
|
-
"line":
|
|
7
|
+
"implementation": "dist/chunk-OMTTR37Z.js",
|
|
8
|
+
"line": 2396
|
|
9
9
|
},
|
|
10
10
|
"DODB": {
|
|
11
11
|
"types": "dist/index.d.ts",
|
|
12
|
-
"implementation": "dist/chunk-
|
|
12
|
+
"implementation": "dist/chunk-OMTTR37Z.js",
|
|
13
13
|
"line": 282
|
|
14
14
|
},
|
|
15
15
|
"DOStore": {
|
|
16
16
|
"types": "dist/index.d.ts",
|
|
17
|
-
"implementation": "dist/chunk-
|
|
17
|
+
"implementation": "dist/chunk-OMTTR37Z.js"
|
|
18
18
|
},
|
|
19
19
|
"MemoryStorageDO": {
|
|
20
20
|
"types": "dist/index.d.ts",
|
|
21
|
-
"implementation": "dist/chunk-
|
|
21
|
+
"implementation": "dist/chunk-OMTTR37Z.js",
|
|
22
22
|
"line": 948
|
|
23
23
|
},
|
|
24
24
|
"ScoresStorageDO": {
|
|
25
25
|
"types": "dist/index.d.ts",
|
|
26
|
-
"implementation": "dist/chunk-
|
|
27
|
-
"line":
|
|
26
|
+
"implementation": "dist/chunk-OMTTR37Z.js",
|
|
27
|
+
"line": 1798
|
|
28
28
|
},
|
|
29
29
|
"WorkflowsStorageDO": {
|
|
30
30
|
"types": "dist/index.d.ts",
|
|
31
|
-
"implementation": "dist/chunk-
|
|
32
|
-
"line":
|
|
31
|
+
"implementation": "dist/chunk-OMTTR37Z.js",
|
|
32
|
+
"line": 2131
|
|
33
33
|
},
|
|
34
34
|
"CloudflareKVStorage": {
|
|
35
35
|
"types": "dist/index.d.ts",
|
|
36
|
-
"implementation": "dist/chunk-
|
|
37
|
-
"line":
|
|
36
|
+
"implementation": "dist/chunk-CD6XB3H3.js",
|
|
37
|
+
"line": 2322
|
|
38
38
|
},
|
|
39
39
|
"CloudflareStore": {
|
|
40
40
|
"types": "dist/index.d.ts",
|
|
41
|
-
"implementation": "dist/chunk-
|
|
41
|
+
"implementation": "dist/chunk-CD6XB3H3.js"
|
|
42
42
|
},
|
|
43
43
|
"MemoryStorageCloudflare": {
|
|
44
44
|
"types": "dist/index.d.ts",
|
|
45
|
-
"implementation": "dist/chunk-
|
|
45
|
+
"implementation": "dist/chunk-CD6XB3H3.js",
|
|
46
46
|
"line": 693
|
|
47
47
|
},
|
|
48
48
|
"ScoresStorageCloudflare": {
|
|
49
49
|
"types": "dist/index.d.ts",
|
|
50
|
-
"implementation": "dist/chunk-
|
|
51
|
-
"line":
|
|
50
|
+
"implementation": "dist/chunk-CD6XB3H3.js",
|
|
51
|
+
"line": 1743
|
|
52
52
|
},
|
|
53
53
|
"WorkflowsStorageCloudflare": {
|
|
54
54
|
"types": "dist/index.d.ts",
|
|
55
|
-
"implementation": "dist/chunk-
|
|
56
|
-
"line":
|
|
55
|
+
"implementation": "dist/chunk-CD6XB3H3.js",
|
|
56
|
+
"line": 2050
|
|
57
57
|
}
|
|
58
58
|
},
|
|
59
59
|
"modules": {}
|
package/dist/index.cjs
CHANGED
|
@@ -1,53 +1,53 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
4
|
-
var
|
|
3
|
+
var chunkUQ4IOLSC_cjs = require('./chunk-UQ4IOLSC.cjs');
|
|
4
|
+
var chunkD7CPZ5NS_cjs = require('./chunk-D7CPZ5NS.cjs');
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
|
|
8
8
|
Object.defineProperty(exports, "CloudflareDOStorage", {
|
|
9
9
|
enumerable: true,
|
|
10
|
-
get: function () { return
|
|
10
|
+
get: function () { return chunkUQ4IOLSC_cjs.CloudflareDOStorage; }
|
|
11
11
|
});
|
|
12
12
|
Object.defineProperty(exports, "DODB", {
|
|
13
13
|
enumerable: true,
|
|
14
|
-
get: function () { return
|
|
14
|
+
get: function () { return chunkUQ4IOLSC_cjs.DODB; }
|
|
15
15
|
});
|
|
16
16
|
Object.defineProperty(exports, "DOStore", {
|
|
17
17
|
enumerable: true,
|
|
18
|
-
get: function () { return
|
|
18
|
+
get: function () { return chunkUQ4IOLSC_cjs.DOStore; }
|
|
19
19
|
});
|
|
20
20
|
Object.defineProperty(exports, "MemoryStorageDO", {
|
|
21
21
|
enumerable: true,
|
|
22
|
-
get: function () { return
|
|
22
|
+
get: function () { return chunkUQ4IOLSC_cjs.MemoryStorageDO; }
|
|
23
23
|
});
|
|
24
24
|
Object.defineProperty(exports, "ScoresStorageDO", {
|
|
25
25
|
enumerable: true,
|
|
26
|
-
get: function () { return
|
|
26
|
+
get: function () { return chunkUQ4IOLSC_cjs.ScoresStorageDO; }
|
|
27
27
|
});
|
|
28
28
|
Object.defineProperty(exports, "WorkflowsStorageDO", {
|
|
29
29
|
enumerable: true,
|
|
30
|
-
get: function () { return
|
|
30
|
+
get: function () { return chunkUQ4IOLSC_cjs.WorkflowsStorageDO; }
|
|
31
31
|
});
|
|
32
32
|
Object.defineProperty(exports, "CloudflareKVStorage", {
|
|
33
33
|
enumerable: true,
|
|
34
|
-
get: function () { return
|
|
34
|
+
get: function () { return chunkD7CPZ5NS_cjs.CloudflareKVStorage; }
|
|
35
35
|
});
|
|
36
36
|
Object.defineProperty(exports, "CloudflareStore", {
|
|
37
37
|
enumerable: true,
|
|
38
|
-
get: function () { return
|
|
38
|
+
get: function () { return chunkD7CPZ5NS_cjs.CloudflareStore; }
|
|
39
39
|
});
|
|
40
40
|
Object.defineProperty(exports, "MemoryStorageCloudflare", {
|
|
41
41
|
enumerable: true,
|
|
42
|
-
get: function () { return
|
|
42
|
+
get: function () { return chunkD7CPZ5NS_cjs.MemoryStorageCloudflare; }
|
|
43
43
|
});
|
|
44
44
|
Object.defineProperty(exports, "ScoresStorageCloudflare", {
|
|
45
45
|
enumerable: true,
|
|
46
|
-
get: function () { return
|
|
46
|
+
get: function () { return chunkD7CPZ5NS_cjs.ScoresStorageCloudflare; }
|
|
47
47
|
});
|
|
48
48
|
Object.defineProperty(exports, "WorkflowsStorageCloudflare", {
|
|
49
49
|
enumerable: true,
|
|
50
|
-
get: function () { return
|
|
50
|
+
get: function () { return chunkD7CPZ5NS_cjs.WorkflowsStorageCloudflare; }
|
|
51
51
|
});
|
|
52
52
|
//# sourceMappingURL=index.cjs.map
|
|
53
53
|
//# sourceMappingURL=index.cjs.map
|
package/dist/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { CloudflareDOStorage, DODB, DOStore, MemoryStorageDO, ScoresStorageDO, WorkflowsStorageDO } from './chunk-
|
|
2
|
-
export { CloudflareKVStorage, CloudflareStore, MemoryStorageCloudflare, ScoresStorageCloudflare, WorkflowsStorageCloudflare } from './chunk-
|
|
1
|
+
export { CloudflareDOStorage, DODB, DOStore, MemoryStorageDO, ScoresStorageDO, WorkflowsStorageDO } from './chunk-OMTTR37Z.js';
|
|
2
|
+
export { CloudflareKVStorage, CloudflareStore, MemoryStorageCloudflare, ScoresStorageCloudflare, WorkflowsStorageCloudflare } from './chunk-CD6XB3H3.js';
|
|
3
3
|
//# sourceMappingURL=index.js.map
|
|
4
4
|
//# sourceMappingURL=index.js.map
|
package/dist/kv/index.cjs
CHANGED
|
@@ -1,32 +1,32 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunkD7CPZ5NS_cjs = require('../chunk-D7CPZ5NS.cjs');
|
|
4
4
|
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
Object.defineProperty(exports, "BackgroundTasksStorageCloudflare", {
|
|
8
8
|
enumerable: true,
|
|
9
|
-
get: function () { return
|
|
9
|
+
get: function () { return chunkD7CPZ5NS_cjs.BackgroundTasksStorageCloudflare; }
|
|
10
10
|
});
|
|
11
11
|
Object.defineProperty(exports, "CloudflareKVStorage", {
|
|
12
12
|
enumerable: true,
|
|
13
|
-
get: function () { return
|
|
13
|
+
get: function () { return chunkD7CPZ5NS_cjs.CloudflareKVStorage; }
|
|
14
14
|
});
|
|
15
15
|
Object.defineProperty(exports, "CloudflareStore", {
|
|
16
16
|
enumerable: true,
|
|
17
|
-
get: function () { return
|
|
17
|
+
get: function () { return chunkD7CPZ5NS_cjs.CloudflareStore; }
|
|
18
18
|
});
|
|
19
19
|
Object.defineProperty(exports, "MemoryStorageCloudflare", {
|
|
20
20
|
enumerable: true,
|
|
21
|
-
get: function () { return
|
|
21
|
+
get: function () { return chunkD7CPZ5NS_cjs.MemoryStorageCloudflare; }
|
|
22
22
|
});
|
|
23
23
|
Object.defineProperty(exports, "ScoresStorageCloudflare", {
|
|
24
24
|
enumerable: true,
|
|
25
|
-
get: function () { return
|
|
25
|
+
get: function () { return chunkD7CPZ5NS_cjs.ScoresStorageCloudflare; }
|
|
26
26
|
});
|
|
27
27
|
Object.defineProperty(exports, "WorkflowsStorageCloudflare", {
|
|
28
28
|
enumerable: true,
|
|
29
|
-
get: function () { return
|
|
29
|
+
get: function () { return chunkD7CPZ5NS_cjs.WorkflowsStorageCloudflare; }
|
|
30
30
|
});
|
|
31
31
|
//# sourceMappingURL=index.cjs.map
|
|
32
32
|
//# sourceMappingURL=index.cjs.map
|
package/dist/kv/index.js
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export { BackgroundTasksStorageCloudflare, CloudflareKVStorage, CloudflareStore, MemoryStorageCloudflare, ScoresStorageCloudflare, WorkflowsStorageCloudflare } from '../chunk-
|
|
1
|
+
export { BackgroundTasksStorageCloudflare, CloudflareKVStorage, CloudflareStore, MemoryStorageCloudflare, ScoresStorageCloudflare, WorkflowsStorageCloudflare } from '../chunk-CD6XB3H3.js';
|
|
2
2
|
//# sourceMappingURL=index.js.map
|
|
3
3
|
//# sourceMappingURL=index.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { ListScoresResponse, SaveScorePayload, ScoreRowData, ScoringSource } from '@mastra/core/evals';
|
|
2
2
|
import { ScoresStorage } from '@mastra/core/storage';
|
|
3
|
-
import type { StoragePagination } from '@mastra/core/storage';
|
|
3
|
+
import type { StoragePagination, ScoreTenancyFilters } from '@mastra/core/storage';
|
|
4
4
|
import type { CloudflareDomainConfig } from '../../types.js';
|
|
5
5
|
export declare class ScoresStorageCloudflare extends ScoresStorage {
|
|
6
6
|
#private;
|
|
@@ -13,26 +13,30 @@ export declare class ScoresStorageCloudflare extends ScoresStorage {
|
|
|
13
13
|
saveScore(score: SaveScorePayload): Promise<{
|
|
14
14
|
score: ScoreRowData;
|
|
15
15
|
}>;
|
|
16
|
-
listScoresByScorerId({ scorerId, entityId, entityType, source, pagination, }: {
|
|
16
|
+
listScoresByScorerId({ scorerId, entityId, entityType, source, pagination, filters, }: {
|
|
17
17
|
scorerId: string;
|
|
18
18
|
entityId?: string;
|
|
19
19
|
entityType?: string;
|
|
20
20
|
source?: ScoringSource;
|
|
21
21
|
pagination: StoragePagination;
|
|
22
|
+
filters?: ScoreTenancyFilters;
|
|
22
23
|
}): Promise<ListScoresResponse>;
|
|
23
|
-
listScoresByRunId({ runId, pagination, }: {
|
|
24
|
+
listScoresByRunId({ runId, pagination, filters, }: {
|
|
24
25
|
runId: string;
|
|
25
26
|
pagination: StoragePagination;
|
|
27
|
+
filters?: ScoreTenancyFilters;
|
|
26
28
|
}): Promise<ListScoresResponse>;
|
|
27
|
-
listScoresByEntityId({ entityId, entityType, pagination, }: {
|
|
29
|
+
listScoresByEntityId({ entityId, entityType, pagination, filters, }: {
|
|
28
30
|
pagination: StoragePagination;
|
|
29
31
|
entityId: string;
|
|
30
32
|
entityType: string;
|
|
33
|
+
filters?: ScoreTenancyFilters;
|
|
31
34
|
}): Promise<ListScoresResponse>;
|
|
32
|
-
listScoresBySpan({ traceId, spanId, pagination, }: {
|
|
35
|
+
listScoresBySpan({ traceId, spanId, pagination, filters, }: {
|
|
33
36
|
traceId: string;
|
|
34
37
|
spanId: string;
|
|
35
38
|
pagination: StoragePagination;
|
|
39
|
+
filters?: ScoreTenancyFilters;
|
|
36
40
|
}): Promise<ListScoresResponse>;
|
|
37
41
|
}
|
|
38
42
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/kv/storage/domains/scores/index.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,kBAAkB,EAAE,gBAAgB,EAAE,YAAY,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAC;AAC5G,OAAO,EAEL,aAAa,EAKd,MAAM,sBAAsB,CAAC;AAC9B,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,sBAAsB,CAAC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/kv/storage/domains/scores/index.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,kBAAkB,EAAE,gBAAgB,EAAE,YAAY,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAC;AAC5G,OAAO,EAEL,aAAa,EAKd,MAAM,sBAAsB,CAAC;AAC9B,OAAO,KAAK,EAAE,iBAAiB,EAAE,mBAAmB,EAAE,MAAM,sBAAsB,CAAC;AAEnF,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,aAAa,CAAC;AAiB1D,qBAAa,uBAAwB,SAAQ,aAAa;;gBAG5C,MAAM,EAAE,sBAAsB;IAKpC,IAAI,IAAI,OAAO,CAAC,IAAI,CAAC;IAIrB,mBAAmB,IAAI,OAAO,CAAC,IAAI,CAAC;IAIpC,YAAY,CAAC,EAAE,EAAE,EAAE,EAAE;QAAE,EAAE,EAAE,MAAM,CAAA;KAAE,GAAG,OAAO,CAAC,YAAY,GAAG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
1
|
{
|
|
2
2
|
"name": "@mastra/cloudflare",
|
|
3
|
-
"version": "1.5.
|
|
3
|
+
"version": "1.5.1-alpha.0",
|
|
4
4
|
"description": "Cloudflare provider for Mastra - includes db storage capabilities",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"files": [
|
|
@@ -58,10 +58,10 @@
|
|
|
58
58
|
"tsx": "^4.22.4",
|
|
59
59
|
"typescript": "^6.0.3",
|
|
60
60
|
"vitest": "4.1.8",
|
|
61
|
-
"@internal/lint": "0.0.
|
|
62
|
-
"@internal/
|
|
63
|
-
"@mastra/core": "1.
|
|
64
|
-
"@internal/
|
|
61
|
+
"@internal/lint": "0.0.110",
|
|
62
|
+
"@internal/types-builder": "0.0.85",
|
|
63
|
+
"@mastra/core": "1.49.0-alpha.5",
|
|
64
|
+
"@internal/storage-test-utils": "0.0.106"
|
|
65
65
|
},
|
|
66
66
|
"peerDependencies": {
|
|
67
67
|
"@cloudflare/workers-types": "^4.20240919.0",
|