@mastra/cloudflare-d1 0.12.7-alpha.0 → 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 +7 -7
package/dist/index.cjs
CHANGED
|
@@ -540,7 +540,6 @@ var MemoryStorageD1 = class extends storage.MemoryStorage {
|
|
|
540
540
|
keys: { id: threadId }
|
|
541
541
|
});
|
|
542
542
|
if (!thread) return null;
|
|
543
|
-
console.log("thread", thread);
|
|
544
543
|
try {
|
|
545
544
|
return {
|
|
546
545
|
...thread,
|
|
@@ -1933,6 +1932,22 @@ var WorkflowsStorageD1 = class extends storage.WorkflowsStorage {
|
|
|
1933
1932
|
super();
|
|
1934
1933
|
this.operations = operations;
|
|
1935
1934
|
}
|
|
1935
|
+
updateWorkflowResults({
|
|
1936
|
+
// workflowName,
|
|
1937
|
+
// runId,
|
|
1938
|
+
// stepId,
|
|
1939
|
+
// result,
|
|
1940
|
+
// runtimeContext,
|
|
1941
|
+
}) {
|
|
1942
|
+
throw new Error("Method not implemented.");
|
|
1943
|
+
}
|
|
1944
|
+
updateWorkflowState({
|
|
1945
|
+
// workflowName,
|
|
1946
|
+
// runId,
|
|
1947
|
+
// opts,
|
|
1948
|
+
}) {
|
|
1949
|
+
throw new Error("Method not implemented.");
|
|
1950
|
+
}
|
|
1936
1951
|
async persistWorkflowSnapshot({
|
|
1937
1952
|
workflowName,
|
|
1938
1953
|
runId,
|
|
@@ -2301,6 +2316,22 @@ var D1Store = class extends storage.MastraStorage {
|
|
|
2301
2316
|
}) {
|
|
2302
2317
|
return this.stores.memory.getMessagesPaginated({ threadId, selectBy, format });
|
|
2303
2318
|
}
|
|
2319
|
+
async updateWorkflowResults({
|
|
2320
|
+
workflowName,
|
|
2321
|
+
runId,
|
|
2322
|
+
stepId,
|
|
2323
|
+
result,
|
|
2324
|
+
runtimeContext
|
|
2325
|
+
}) {
|
|
2326
|
+
return this.stores.workflows.updateWorkflowResults({ workflowName, runId, stepId, result, runtimeContext });
|
|
2327
|
+
}
|
|
2328
|
+
async updateWorkflowState({
|
|
2329
|
+
workflowName,
|
|
2330
|
+
runId,
|
|
2331
|
+
opts
|
|
2332
|
+
}) {
|
|
2333
|
+
return this.stores.workflows.updateWorkflowState({ workflowName, runId, opts });
|
|
2334
|
+
}
|
|
2304
2335
|
async persistWorkflowSnapshot({
|
|
2305
2336
|
workflowName,
|
|
2306
2337
|
runId,
|