@mastra/pg 1.33.0-alpha.0 → 1.33.0-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/docs/SKILL.md +1 -1
- package/dist/docs/assets/SOURCE_MAP.json +1 -1
- package/dist/docs/references/reference-storage-retention.md +1 -1
- package/dist/index.cjs +39 -4
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +40 -5
- package/dist/index.js.map +1 -1
- package/dist/storage/domains/workflows/index.d.ts +5 -2
- package/dist/storage/domains/workflows/index.d.ts.map +1 -1
- package/package.json +7 -7
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { WorkflowsStorage } from '@mastra/core/storage';
|
|
2
|
-
import type { ClaimRunOwnershipInput, ClaimRunOwnershipResult, RenewRunOwnershipInput, RenewRunOwnershipResult, RunFence, RunOwnershipRecord, UpdateWorkflowStateOptions, StorageListWorkflowRunsInput, WorkflowRun, WorkflowRuns, CreateIndexOptions, PruneOptions, PruneResult, RetentionTablesDescriptor, TableRetentionPolicy } from '@mastra/core/storage';
|
|
2
|
+
import type { ClaimRunOwnershipInput, ClaimRunOwnershipResult, RenewRunOwnershipInput, RenewRunOwnershipResult, RunFence, RunOwnershipRecord, WorkflowStepStartGuard, WorkflowStepCompletionGuard, UpdateWorkflowStateOptions, StorageListWorkflowRunsInput, WorkflowRun, WorkflowRuns, CreateIndexOptions, PruneOptions, PruneResult, RetentionTablesDescriptor, TableRetentionPolicy } from '@mastra/core/storage';
|
|
3
3
|
import type { StepResult, WorkflowRunState } from '@mastra/core/workflows';
|
|
4
4
|
import type { PgDomainConfig } from '../../db/index.js';
|
|
5
5
|
/**
|
|
@@ -89,7 +89,8 @@ export declare class WorkflowsPG extends WorkflowsStorage {
|
|
|
89
89
|
getRunOwnership({ runId }: {
|
|
90
90
|
runId: string;
|
|
91
91
|
}): Promise<RunOwnershipRecord | null>;
|
|
92
|
-
|
|
92
|
+
supportsWorkflowStepGuards(): boolean;
|
|
93
|
+
updateWorkflowResults({ workflowName, runId, stepId, result, requestContext, state, fence: explicitFence, startGuard, completionGuard, }: {
|
|
93
94
|
workflowName: string;
|
|
94
95
|
runId: string;
|
|
95
96
|
stepId: string;
|
|
@@ -97,6 +98,8 @@ export declare class WorkflowsPG extends WorkflowsStorage {
|
|
|
97
98
|
requestContext: Record<string, any>;
|
|
98
99
|
state?: Record<string, any>;
|
|
99
100
|
fence?: RunFence;
|
|
101
|
+
startGuard?: WorkflowStepStartGuard;
|
|
102
|
+
completionGuard?: WorkflowStepCompletionGuard;
|
|
100
103
|
}): Promise<Record<string, StepResult<any, any, any, any>>>;
|
|
101
104
|
updateWorkflowState({ workflowName, runId, opts, fence: explicitFence, }: {
|
|
102
105
|
workflowName: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/storage/domains/workflows/index.ts"],"names":[],"mappings":"AACA,OAAO,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/storage/domains/workflows/index.ts"],"names":[],"mappings":"AACA,OAAO,EAUL,gBAAgB,EAIjB,MAAM,sBAAsB,CAAC;AAC9B,OAAO,KAAK,EACV,sBAAsB,EACtB,uBAAuB,EACvB,sBAAsB,EACtB,uBAAuB,EACvB,QAAQ,EACR,kBAAkB,EAClB,sBAAsB,EACtB,2BAA2B,EAC3B,0BAA0B,EAC1B,4BAA4B,EAC5B,WAAW,EACX,YAAY,EACZ,kBAAkB,EAElB,YAAY,EACZ,WAAW,EACX,yBAAyB,EACzB,oBAAoB,EACrB,MAAM,sBAAsB,CAAC;AAC9B,OAAO,KAAK,EAAE,UAAU,EAAE,gBAAgB,EAAE,MAAM,wBAAwB,CAAC;AAG3E,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,UAAU,CAAC;AAwC/C;;;;;GAKG;AACH,wBAAgB,+BAA+B,CAAC,UAAU,CAAC,EAAE,MAAM,GAAG,MAAM,CAK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
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mastra/pg",
|
|
3
|
-
"version": "1.33.0-alpha.
|
|
3
|
+
"version": "1.33.0-alpha.1",
|
|
4
4
|
"description": "Postgres provider for Mastra - includes both vector and db storage capabilities",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/index.js",
|
|
@@ -28,20 +28,20 @@
|
|
|
28
28
|
"devDependencies": {
|
|
29
29
|
"@types/node": "22.20.5",
|
|
30
30
|
"@types/pg": "^8.20.0",
|
|
31
|
-
"@vitest/coverage-v8": "4.1.
|
|
32
|
-
"@vitest/ui": "4.1.
|
|
31
|
+
"@vitest/coverage-v8": "4.1.12",
|
|
32
|
+
"@vitest/ui": "4.1.12",
|
|
33
33
|
"tsdown": "0.23.1",
|
|
34
34
|
"tsx": "^4.23.1",
|
|
35
35
|
"typescript": "^7.0.2",
|
|
36
|
-
"vitest": "4.1.
|
|
37
|
-
"@internal/core": "0.1.3",
|
|
36
|
+
"vitest": "4.1.12",
|
|
38
37
|
"@internal/lint": "0.0.145",
|
|
39
38
|
"@internal/storage-test-utils": "0.0.141",
|
|
39
|
+
"@internal/core": "0.1.3",
|
|
40
40
|
"@internal/types-builder": "0.0.120",
|
|
41
|
-
"@mastra/core": "1.80.0-alpha.
|
|
41
|
+
"@mastra/core": "1.80.0-alpha.1"
|
|
42
42
|
},
|
|
43
43
|
"peerDependencies": {
|
|
44
|
-
"@mastra/core": ">=1.
|
|
44
|
+
"@mastra/core": ">=1.80.0-0 <2.0.0-0"
|
|
45
45
|
},
|
|
46
46
|
"files": [
|
|
47
47
|
"dist"
|