@mastra/cloudflare-d1 0.11.0 → 0.11.1-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.
- package/dist/_tsup-dts-rollup.d.cts +10 -0
- package/dist/_tsup-dts-rollup.d.ts +10 -0
- package/dist/index.cjs +438 -206
- package/dist/index.js +418 -186
- package/package.json +3 -3
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import type { D1Database as D1Database_2 } from '@cloudflare/workers-types';
|
|
2
2
|
import type { EvalRow } from '@mastra/core/storage';
|
|
3
|
+
import type { MastraMessageContentV2 } from '@mastra/core/agent';
|
|
3
4
|
import type { MastraMessageV1 } from '@mastra/core/memory';
|
|
4
5
|
import type { MastraMessageV2 } from '@mastra/core/memory';
|
|
5
6
|
import { MastraStorage } from '@mastra/core/storage';
|
|
@@ -224,6 +225,15 @@ declare class D1Store extends MastraStorage {
|
|
|
224
225
|
* No explicit cleanup needed for D1 in either REST or Workers Binding mode
|
|
225
226
|
*/
|
|
226
227
|
close(): Promise<void>;
|
|
228
|
+
updateMessages(_args: {
|
|
229
|
+
messages: Partial<Omit<MastraMessageV2, 'createdAt'>> & {
|
|
230
|
+
id: string;
|
|
231
|
+
content?: {
|
|
232
|
+
metadata?: MastraMessageContentV2['metadata'];
|
|
233
|
+
content?: MastraMessageContentV2['content'];
|
|
234
|
+
};
|
|
235
|
+
}[];
|
|
236
|
+
}): Promise<MastraMessageV2[]>;
|
|
227
237
|
}
|
|
228
238
|
export { D1Store }
|
|
229
239
|
export { D1Store as D1Store_alias_1 }
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import type { D1Database as D1Database_2 } from '@cloudflare/workers-types';
|
|
2
2
|
import type { EvalRow } from '@mastra/core/storage';
|
|
3
|
+
import type { MastraMessageContentV2 } from '@mastra/core/agent';
|
|
3
4
|
import type { MastraMessageV1 } from '@mastra/core/memory';
|
|
4
5
|
import type { MastraMessageV2 } from '@mastra/core/memory';
|
|
5
6
|
import { MastraStorage } from '@mastra/core/storage';
|
|
@@ -224,6 +225,15 @@ declare class D1Store extends MastraStorage {
|
|
|
224
225
|
* No explicit cleanup needed for D1 in either REST or Workers Binding mode
|
|
225
226
|
*/
|
|
226
227
|
close(): Promise<void>;
|
|
228
|
+
updateMessages(_args: {
|
|
229
|
+
messages: Partial<Omit<MastraMessageV2, 'createdAt'>> & {
|
|
230
|
+
id: string;
|
|
231
|
+
content?: {
|
|
232
|
+
metadata?: MastraMessageContentV2['metadata'];
|
|
233
|
+
content?: MastraMessageContentV2['content'];
|
|
234
|
+
};
|
|
235
|
+
}[];
|
|
236
|
+
}): Promise<MastraMessageV2[]>;
|
|
227
237
|
}
|
|
228
238
|
export { D1Store }
|
|
229
239
|
export { D1Store as D1Store_alias_1 }
|