@mastra/lance 1.0.0-beta.5 → 1.0.0-beta.6
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 +13 -0
- package/dist/index.cjs +20 -0
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +20 -0
- package/dist/index.js.map +1 -1
- package/dist/storage/domains/workflows/index.d.ts +4 -0
- package/dist/storage/domains/workflows/index.d.ts.map +1 -1
- package/dist/storage/index.d.ts +4 -0
- package/dist/storage/index.d.ts.map +1 -1
- package/package.json +3 -3
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,18 @@
|
|
|
1
1
|
# @mastra/lance
|
|
2
2
|
|
|
3
|
+
## 1.0.0-beta.6
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Add delete workflow run API ([#10991](https://github.com/mastra-ai/mastra/pull/10991))
|
|
8
|
+
|
|
9
|
+
```typescript
|
|
10
|
+
await workflow.deleteWorkflowRunById(runId);
|
|
11
|
+
```
|
|
12
|
+
|
|
13
|
+
- Updated dependencies [[`edb07e4`](https://github.com/mastra-ai/mastra/commit/edb07e49283e0c28bd094a60e03439bf6ecf0221), [`b7e17d3`](https://github.com/mastra-ai/mastra/commit/b7e17d3f5390bb5a71efc112204413656fcdc18d), [`261473a`](https://github.com/mastra-ai/mastra/commit/261473ac637e633064a22076671e2e02b002214d), [`5d7000f`](https://github.com/mastra-ai/mastra/commit/5d7000f757cd65ea9dc5b05e662fd83dfd44e932), [`4f0331a`](https://github.com/mastra-ai/mastra/commit/4f0331a79bf6eb5ee598a5086e55de4b5a0ada03), [`8a000da`](https://github.com/mastra-ai/mastra/commit/8a000da0c09c679a2312f6b3aa05b2ca78ca7393)]:
|
|
14
|
+
- @mastra/core@1.0.0-beta.10
|
|
15
|
+
|
|
3
16
|
## 1.0.0-beta.5
|
|
4
17
|
|
|
5
18
|
### Patch Changes
|
package/dist/index.cjs
CHANGED
|
@@ -1645,6 +1645,23 @@ var StoreWorkflowsLance = class extends storage.WorkflowsStorage {
|
|
|
1645
1645
|
);
|
|
1646
1646
|
}
|
|
1647
1647
|
}
|
|
1648
|
+
async deleteWorkflowRunById({ runId, workflowName }) {
|
|
1649
|
+
try {
|
|
1650
|
+
const table = await this.client.openTable(storage.TABLE_WORKFLOW_SNAPSHOT);
|
|
1651
|
+
const whereClause = `run_id = '${runId.replace(/'/g, "''")}' AND workflow_name = '${workflowName.replace(/'/g, "''")}'`;
|
|
1652
|
+
await table.delete(whereClause);
|
|
1653
|
+
} catch (error$1) {
|
|
1654
|
+
throw new error.MastraError(
|
|
1655
|
+
{
|
|
1656
|
+
id: storage.createStorageErrorId("LANCE", "DELETE_WORKFLOW_RUN_BY_ID", "FAILED"),
|
|
1657
|
+
domain: error.ErrorDomain.STORAGE,
|
|
1658
|
+
category: error.ErrorCategory.THIRD_PARTY,
|
|
1659
|
+
details: { runId, workflowName }
|
|
1660
|
+
},
|
|
1661
|
+
error$1
|
|
1662
|
+
);
|
|
1663
|
+
}
|
|
1664
|
+
}
|
|
1648
1665
|
async listWorkflowRuns(args) {
|
|
1649
1666
|
try {
|
|
1650
1667
|
const table = await this.client.openTable(storage.TABLE_WORKFLOW_SNAPSHOT);
|
|
@@ -1917,6 +1934,9 @@ var LanceStorage = class _LanceStorage extends storage.MastraStorage {
|
|
|
1917
1934
|
async getWorkflowRunById(args) {
|
|
1918
1935
|
return this.stores.workflows.getWorkflowRunById(args);
|
|
1919
1936
|
}
|
|
1937
|
+
async deleteWorkflowRunById({ runId, workflowName }) {
|
|
1938
|
+
return this.stores.workflows.deleteWorkflowRunById({ runId, workflowName });
|
|
1939
|
+
}
|
|
1920
1940
|
async updateWorkflowResults({
|
|
1921
1941
|
workflowName,
|
|
1922
1942
|
runId,
|