@mastra/dynamodb 1.4.1-alpha.0 → 1.4.2-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/docs/SKILL.md +1 -1
- package/dist/docs/assets/SOURCE_MAP.json +1 -1
- package/dist/entities/index.d.ts +79 -0
- package/dist/entities/index.d.ts.map +1 -1
- package/dist/entities/run-fencing.d.ts +92 -0
- package/dist/entities/run-fencing.d.ts.map +1 -0
- package/dist/index.cjs +424 -51
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +425 -52
- package/dist/index.js.map +1 -1
- package/dist/storage/domains/memory/index.d.ts +16 -5
- package/dist/storage/domains/memory/index.d.ts.map +1 -1
- package/dist/storage/domains/run-fencing.d.ts +41 -0
- package/dist/storage/domains/run-fencing.d.ts.map +1 -0
- package/dist/storage/domains/utils.d.ts +2 -1
- package/dist/storage/domains/utils.d.ts.map +1 -1
- package/dist/storage/domains/workflows/index.d.ts +17 -5
- package/dist/storage/domains/workflows/index.d.ts.map +1 -1
- package/package.json +6 -6
package/dist/docs/SKILL.md
CHANGED
|
@@ -3,7 +3,7 @@ name: mastra-dynamodb
|
|
|
3
3
|
description: Documentation for @mastra/dynamodb. Use when working with @mastra/dynamodb APIs, configuration, or implementation.
|
|
4
4
|
metadata:
|
|
5
5
|
package: "@mastra/dynamodb"
|
|
6
|
-
version: "1.4.
|
|
6
|
+
version: "1.4.2-alpha.0"
|
|
7
7
|
---
|
|
8
8
|
|
|
9
9
|
## When to use
|
package/dist/entities/index.d.ts
CHANGED
|
@@ -1010,5 +1010,84 @@ export declare function getElectroDbService(client: DynamoDBDocumentClient, tabl
|
|
|
1010
1010
|
};
|
|
1011
1011
|
};
|
|
1012
1012
|
}, string>;
|
|
1013
|
+
workflow_run_owner: import("electrodb").Entity<string, string, string, {
|
|
1014
|
+
model: {
|
|
1015
|
+
entity: string;
|
|
1016
|
+
version: string;
|
|
1017
|
+
service: string;
|
|
1018
|
+
};
|
|
1019
|
+
attributes: {
|
|
1020
|
+
entity: {
|
|
1021
|
+
type: "string";
|
|
1022
|
+
required: true;
|
|
1023
|
+
};
|
|
1024
|
+
run_id: {
|
|
1025
|
+
type: "string";
|
|
1026
|
+
required: true;
|
|
1027
|
+
};
|
|
1028
|
+
generation: {
|
|
1029
|
+
type: "number";
|
|
1030
|
+
};
|
|
1031
|
+
ownerId: {
|
|
1032
|
+
type: "string";
|
|
1033
|
+
};
|
|
1034
|
+
leaseExpiresAt: {
|
|
1035
|
+
type: "number";
|
|
1036
|
+
};
|
|
1037
|
+
updatedAt: {
|
|
1038
|
+
type: "number";
|
|
1039
|
+
};
|
|
1040
|
+
};
|
|
1041
|
+
indexes: {
|
|
1042
|
+
primary: {
|
|
1043
|
+
pk: {
|
|
1044
|
+
field: string;
|
|
1045
|
+
composite: ("entity" | "run_id")[];
|
|
1046
|
+
};
|
|
1047
|
+
sk: {
|
|
1048
|
+
field: string;
|
|
1049
|
+
composite: "entity"[];
|
|
1050
|
+
};
|
|
1051
|
+
};
|
|
1052
|
+
};
|
|
1053
|
+
}, string>;
|
|
1054
|
+
memory_run_fence: import("electrodb").Entity<string, string, string, {
|
|
1055
|
+
model: {
|
|
1056
|
+
entity: string;
|
|
1057
|
+
version: string;
|
|
1058
|
+
service: string;
|
|
1059
|
+
};
|
|
1060
|
+
attributes: {
|
|
1061
|
+
entity: {
|
|
1062
|
+
type: "string";
|
|
1063
|
+
required: true;
|
|
1064
|
+
};
|
|
1065
|
+
run_id: {
|
|
1066
|
+
type: "string";
|
|
1067
|
+
required: true;
|
|
1068
|
+
};
|
|
1069
|
+
generation: {
|
|
1070
|
+
type: "number";
|
|
1071
|
+
};
|
|
1072
|
+
ownerId: {
|
|
1073
|
+
type: "string";
|
|
1074
|
+
};
|
|
1075
|
+
retiredAt: {
|
|
1076
|
+
type: "number";
|
|
1077
|
+
};
|
|
1078
|
+
};
|
|
1079
|
+
indexes: {
|
|
1080
|
+
primary: {
|
|
1081
|
+
pk: {
|
|
1082
|
+
field: string;
|
|
1083
|
+
composite: ("entity" | "run_id")[];
|
|
1084
|
+
};
|
|
1085
|
+
sk: {
|
|
1086
|
+
field: string;
|
|
1087
|
+
composite: "entity"[];
|
|
1088
|
+
};
|
|
1089
|
+
};
|
|
1090
|
+
};
|
|
1091
|
+
}, string>;
|
|
1013
1092
|
}>;
|
|
1014
1093
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/entities/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,uBAAuB,CAAC;AACpE,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/entities/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,uBAAuB,CAAC;AACpE,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAWpC,wBAAgB,mBAAmB,CAAC,MAAM,EAAE,sBAAsB,EAAE,SAAS,EAAE,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAmBpF"}
|
|
@@ -0,0 +1,92 @@
|
|
|
1
|
+
import { Entity } from 'electrodb';
|
|
2
|
+
/**
|
|
3
|
+
* The current claim on a durable workflow run. `leaseExpiresAt` holds the
|
|
4
|
+
* lease's expiry in epoch milliseconds and is removed when the owner releases
|
|
5
|
+
* the run; `generation` and `ownerId` are kept. `updatedAt` is the epoch
|
|
6
|
+
* milliseconds of the last claim, renewal or release.
|
|
7
|
+
*/
|
|
8
|
+
export declare const workflowRunOwnerEntity: Entity<string, string, string, {
|
|
9
|
+
model: {
|
|
10
|
+
entity: string;
|
|
11
|
+
version: string;
|
|
12
|
+
service: string;
|
|
13
|
+
};
|
|
14
|
+
attributes: {
|
|
15
|
+
entity: {
|
|
16
|
+
type: "string";
|
|
17
|
+
required: true;
|
|
18
|
+
};
|
|
19
|
+
run_id: {
|
|
20
|
+
type: "string";
|
|
21
|
+
required: true;
|
|
22
|
+
};
|
|
23
|
+
generation: {
|
|
24
|
+
type: "number";
|
|
25
|
+
};
|
|
26
|
+
ownerId: {
|
|
27
|
+
type: "string";
|
|
28
|
+
};
|
|
29
|
+
leaseExpiresAt: {
|
|
30
|
+
type: "number";
|
|
31
|
+
};
|
|
32
|
+
updatedAt: {
|
|
33
|
+
type: "number";
|
|
34
|
+
};
|
|
35
|
+
};
|
|
36
|
+
indexes: {
|
|
37
|
+
primary: {
|
|
38
|
+
pk: {
|
|
39
|
+
field: string;
|
|
40
|
+
composite: ("entity" | "run_id")[];
|
|
41
|
+
};
|
|
42
|
+
sk: {
|
|
43
|
+
field: string;
|
|
44
|
+
composite: "entity"[];
|
|
45
|
+
};
|
|
46
|
+
};
|
|
47
|
+
};
|
|
48
|
+
}, string>;
|
|
49
|
+
/**
|
|
50
|
+
* The newest fence memory has seen for a run. Fenced memory writes check it.
|
|
51
|
+
* `retiredAt` is set, in epoch milliseconds, once the execution holding the
|
|
52
|
+
* fence settles, and removed when a fence is raised again.
|
|
53
|
+
*/
|
|
54
|
+
export declare const memoryRunFenceEntity: Entity<string, string, string, {
|
|
55
|
+
model: {
|
|
56
|
+
entity: string;
|
|
57
|
+
version: string;
|
|
58
|
+
service: string;
|
|
59
|
+
};
|
|
60
|
+
attributes: {
|
|
61
|
+
entity: {
|
|
62
|
+
type: "string";
|
|
63
|
+
required: true;
|
|
64
|
+
};
|
|
65
|
+
run_id: {
|
|
66
|
+
type: "string";
|
|
67
|
+
required: true;
|
|
68
|
+
};
|
|
69
|
+
generation: {
|
|
70
|
+
type: "number";
|
|
71
|
+
};
|
|
72
|
+
ownerId: {
|
|
73
|
+
type: "string";
|
|
74
|
+
};
|
|
75
|
+
retiredAt: {
|
|
76
|
+
type: "number";
|
|
77
|
+
};
|
|
78
|
+
};
|
|
79
|
+
indexes: {
|
|
80
|
+
primary: {
|
|
81
|
+
pk: {
|
|
82
|
+
field: string;
|
|
83
|
+
composite: ("entity" | "run_id")[];
|
|
84
|
+
};
|
|
85
|
+
sk: {
|
|
86
|
+
field: string;
|
|
87
|
+
composite: "entity"[];
|
|
88
|
+
};
|
|
89
|
+
};
|
|
90
|
+
};
|
|
91
|
+
}, string>;
|
|
92
|
+
//# sourceMappingURL=run-fencing.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"run-fencing.d.ts","sourceRoot":"","sources":["../../src/entities/run-fencing.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,WAAW,CAAC;AAEnC;;;;;GAKG;AACH,eAAO,MAAM,sBAAsB;;QAE/B,MAAM;QACN,OAAO;QACP,OAAO;;;;;;;;;;;;;;;;;;;;;;;;;QAyBP,OAAO;YACL,EAAE;gBAAI,KAAK;gBAAQ,SAAS;;YAC5B,EAAE;gBAAI,KAAK;gBAAQ,SAAS;;;;UAGhC,CAAC;AAEH;;;;GAIG;AACH,eAAO,MAAM,oBAAoB;;QAE7B,MAAM;QACN,OAAO;QACP,OAAO;;;;;;;;;;;;;;;;;;;;;;QAsBP,OAAO;YACL,EAAE;gBAAI,KAAK;gBAAQ,SAAS;;YAC5B,EAAE;gBAAI,KAAK;gBAAQ,SAAS;;;;UAGhC,CAAC"}
|