@mastra/cloudflare-d1 1.0.0-beta.7 → 1.0.0-beta.8
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 +40 -0
- package/dist/index.cjs +3 -13
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +2 -15
- package/dist/index.js.map +1 -1
- package/dist/storage/index.d.ts +6 -2
- package/dist/storage/index.d.ts.map +1 -1
- package/package.json +3 -3
package/dist/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { MastraError, ErrorCategory, ErrorDomain } from '@mastra/core/error';
|
|
2
|
-
import {
|
|
2
|
+
import { MemoryStorage, TABLE_SCHEMAS, TABLE_THREADS, TABLE_MESSAGES, TABLE_RESOURCES, ensureDate, createStorageErrorId, normalizePerPage, calculatePagination, serializeDate, ScoresStorage, TABLE_SCORERS, WorkflowsStorage, TABLE_WORKFLOW_SNAPSHOT, MastraStorage, getSqlType, getDefaultValue, transformScoreRow as transformScoreRow$1 } from '@mastra/core/storage';
|
|
3
3
|
import Cloudflare from 'cloudflare';
|
|
4
4
|
import { MessageList } from '@mastra/core/agent';
|
|
5
5
|
import { MastraBase } from '@mastra/core/base';
|
|
@@ -2097,19 +2097,6 @@ var D1Store = class extends MastraStorage {
|
|
|
2097
2097
|
memory
|
|
2098
2098
|
};
|
|
2099
2099
|
}
|
|
2100
|
-
get supports() {
|
|
2101
|
-
return {
|
|
2102
|
-
selectByIncludeResourceScope: true,
|
|
2103
|
-
resourceWorkingMemory: true,
|
|
2104
|
-
hasColumn: true,
|
|
2105
|
-
createTable: true,
|
|
2106
|
-
deleteMessages: true,
|
|
2107
|
-
observability: false,
|
|
2108
|
-
indexManagement: false,
|
|
2109
|
-
listScoresBySpan: true,
|
|
2110
|
-
agents: false
|
|
2111
|
-
};
|
|
2112
|
-
}
|
|
2113
2100
|
/**
|
|
2114
2101
|
* Close the database connection
|
|
2115
2102
|
* No explicit cleanup needed for D1 in either REST or Workers Binding mode
|
|
@@ -2119,6 +2106,6 @@ var D1Store = class extends MastraStorage {
|
|
|
2119
2106
|
}
|
|
2120
2107
|
};
|
|
2121
2108
|
|
|
2122
|
-
export { D1Store };
|
|
2109
|
+
export { D1Store, MemoryStorageD1, ScoresStorageD1, WorkflowsStorageD1 };
|
|
2123
2110
|
//# sourceMappingURL=index.js.map
|
|
2124
2111
|
//# sourceMappingURL=index.js.map
|