@mastra/upstash 0.14.2 → 0.14.3
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/.turbo/turbo-build.log +1 -1
- package/CHANGELOG.md +18 -0
- package/dist/index.cjs +32 -0
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +32 -0
- package/dist/index.js.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/src/storage/domains/workflows/index.ts +38 -1
- package/src/storage/index.ts +35 -1
package/dist/index.js
CHANGED
|
@@ -1542,6 +1542,22 @@ var WorkflowsUpstash = class extends WorkflowsStorage {
|
|
|
1542
1542
|
this.client = client;
|
|
1543
1543
|
this.operations = operations;
|
|
1544
1544
|
}
|
|
1545
|
+
updateWorkflowResults({
|
|
1546
|
+
// workflowName,
|
|
1547
|
+
// runId,
|
|
1548
|
+
// stepId,
|
|
1549
|
+
// result,
|
|
1550
|
+
// runtimeContext,
|
|
1551
|
+
}) {
|
|
1552
|
+
throw new Error("Method not implemented.");
|
|
1553
|
+
}
|
|
1554
|
+
updateWorkflowState({
|
|
1555
|
+
// workflowName,
|
|
1556
|
+
// runId,
|
|
1557
|
+
// opts,
|
|
1558
|
+
}) {
|
|
1559
|
+
throw new Error("Method not implemented.");
|
|
1560
|
+
}
|
|
1545
1561
|
async persistWorkflowSnapshot(params) {
|
|
1546
1562
|
const { namespace = "workflows", workflowName, runId, snapshot } = params;
|
|
1547
1563
|
try {
|
|
@@ -1829,6 +1845,22 @@ var UpstashStore = class extends MastraStorage {
|
|
|
1829
1845
|
async getMessagesPaginated(args) {
|
|
1830
1846
|
return this.stores.memory.getMessagesPaginated(args);
|
|
1831
1847
|
}
|
|
1848
|
+
async updateWorkflowResults({
|
|
1849
|
+
workflowName,
|
|
1850
|
+
runId,
|
|
1851
|
+
stepId,
|
|
1852
|
+
result,
|
|
1853
|
+
runtimeContext
|
|
1854
|
+
}) {
|
|
1855
|
+
return this.stores.workflows.updateWorkflowResults({ workflowName, runId, stepId, result, runtimeContext });
|
|
1856
|
+
}
|
|
1857
|
+
async updateWorkflowState({
|
|
1858
|
+
workflowName,
|
|
1859
|
+
runId,
|
|
1860
|
+
opts
|
|
1861
|
+
}) {
|
|
1862
|
+
return this.stores.workflows.updateWorkflowState({ workflowName, runId, opts });
|
|
1863
|
+
}
|
|
1832
1864
|
async persistWorkflowSnapshot(params) {
|
|
1833
1865
|
return this.stores.workflows.persistWorkflowSnapshot(params);
|
|
1834
1866
|
}
|