@mastra/cloudflare-d1 0.12.7 → 0.12.8-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/index.cjs +32 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +32 -1
- package/dist/index.js.map +1 -1
- package/dist/storage/domains/memory/index.d.ts.map +1 -1
- package/dist/storage/domains/workflows/index.d.ts +19 -1
- package/dist/storage/domains/workflows/index.d.ts.map +1 -1
- package/dist/storage/index.d.ts +19 -1
- package/dist/storage/index.d.ts.map +1 -1
- package/package.json +5 -5
package/dist/index.js
CHANGED
|
@@ -534,7 +534,6 @@ var MemoryStorageD1 = class extends MemoryStorage {
|
|
|
534
534
|
keys: { id: threadId }
|
|
535
535
|
});
|
|
536
536
|
if (!thread) return null;
|
|
537
|
-
console.log("thread", thread);
|
|
538
537
|
try {
|
|
539
538
|
return {
|
|
540
539
|
...thread,
|
|
@@ -1927,6 +1926,22 @@ var WorkflowsStorageD1 = class extends WorkflowsStorage {
|
|
|
1927
1926
|
super();
|
|
1928
1927
|
this.operations = operations;
|
|
1929
1928
|
}
|
|
1929
|
+
updateWorkflowResults({
|
|
1930
|
+
// workflowName,
|
|
1931
|
+
// runId,
|
|
1932
|
+
// stepId,
|
|
1933
|
+
// result,
|
|
1934
|
+
// runtimeContext,
|
|
1935
|
+
}) {
|
|
1936
|
+
throw new Error("Method not implemented.");
|
|
1937
|
+
}
|
|
1938
|
+
updateWorkflowState({
|
|
1939
|
+
// workflowName,
|
|
1940
|
+
// runId,
|
|
1941
|
+
// opts,
|
|
1942
|
+
}) {
|
|
1943
|
+
throw new Error("Method not implemented.");
|
|
1944
|
+
}
|
|
1930
1945
|
async persistWorkflowSnapshot({
|
|
1931
1946
|
workflowName,
|
|
1932
1947
|
runId,
|
|
@@ -2295,6 +2310,22 @@ var D1Store = class extends MastraStorage {
|
|
|
2295
2310
|
}) {
|
|
2296
2311
|
return this.stores.memory.getMessagesPaginated({ threadId, selectBy, format });
|
|
2297
2312
|
}
|
|
2313
|
+
async updateWorkflowResults({
|
|
2314
|
+
workflowName,
|
|
2315
|
+
runId,
|
|
2316
|
+
stepId,
|
|
2317
|
+
result,
|
|
2318
|
+
runtimeContext
|
|
2319
|
+
}) {
|
|
2320
|
+
return this.stores.workflows.updateWorkflowResults({ workflowName, runId, stepId, result, runtimeContext });
|
|
2321
|
+
}
|
|
2322
|
+
async updateWorkflowState({
|
|
2323
|
+
workflowName,
|
|
2324
|
+
runId,
|
|
2325
|
+
opts
|
|
2326
|
+
}) {
|
|
2327
|
+
return this.stores.workflows.updateWorkflowState({ workflowName, runId, opts });
|
|
2328
|
+
}
|
|
2298
2329
|
async persistWorkflowSnapshot({
|
|
2299
2330
|
workflowName,
|
|
2300
2331
|
runId,
|