@mastra/dynamodb 0.0.0-error-handler-fix-20251020202607 → 0.0.0-execa-dynamic-import-20260304221256
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 +1442 -3
- package/LICENSE.md +15 -0
- package/README.md +1 -2
- package/dist/docs/SKILL.md +22 -0
- package/dist/docs/assets/SOURCE_MAP.json +6 -0
- package/dist/docs/references/reference-storage-dynamodb.md +282 -0
- package/dist/entities/eval.d.ts +8 -0
- package/dist/entities/eval.d.ts.map +1 -1
- package/dist/entities/index.d.ts +66 -5
- package/dist/entities/index.d.ts.map +1 -1
- package/dist/entities/message.d.ts +8 -0
- package/dist/entities/message.d.ts.map +1 -1
- package/dist/entities/resource.d.ts +8 -0
- package/dist/entities/resource.d.ts.map +1 -1
- package/dist/entities/score.d.ts +18 -5
- package/dist/entities/score.d.ts.map +1 -1
- package/dist/entities/thread.d.ts +8 -0
- package/dist/entities/thread.d.ts.map +1 -1
- package/dist/entities/trace.d.ts +8 -0
- package/dist/entities/trace.d.ts.map +1 -1
- package/dist/entities/utils.d.ts +90 -0
- package/dist/entities/utils.d.ts.map +1 -1
- package/dist/entities/workflow-snapshot.d.ts +8 -0
- package/dist/entities/workflow-snapshot.d.ts.map +1 -1
- package/dist/index.cjs +786 -1269
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +780 -1270
- package/dist/index.js.map +1 -1
- package/dist/storage/db/index.d.ts +48 -0
- package/dist/storage/db/index.d.ts.map +1 -0
- package/dist/storage/domains/memory/index.d.ts +18 -45
- package/dist/storage/domains/memory/index.d.ts.map +1 -1
- package/dist/storage/domains/scores/index.d.ts +47 -0
- package/dist/storage/domains/scores/index.d.ts.map +1 -0
- package/dist/storage/domains/utils.d.ts +7 -0
- package/dist/storage/domains/utils.d.ts.map +1 -0
- package/dist/storage/domains/workflows/index.d.ts +26 -24
- package/dist/storage/domains/workflows/index.d.ts.map +1 -1
- package/dist/storage/index.d.ts +177 -221
- package/dist/storage/index.d.ts.map +1 -1
- package/dist/storage/ttl.d.ts +52 -0
- package/dist/storage/ttl.d.ts.map +1 -0
- package/package.json +17 -16
- package/dist/storage/domains/legacy-evals/index.d.ts +0 -19
- package/dist/storage/domains/legacy-evals/index.d.ts.map +0 -1
- package/dist/storage/domains/operations/index.d.ts +0 -69
- package/dist/storage/domains/operations/index.d.ts.map +0 -1
- package/dist/storage/domains/score/index.d.ts +0 -51
- package/dist/storage/domains/score/index.d.ts.map +0 -1
- package/dist/storage/domains/traces/index.d.ts +0 -28
- package/dist/storage/domains/traces/index.d.ts.map +0 -1
package/dist/entities/utils.d.ts
CHANGED
|
@@ -1,3 +1,74 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Base fields shared by all entities
|
|
3
|
+
*/
|
|
4
|
+
export interface BaseEntityData {
|
|
5
|
+
entity: string;
|
|
6
|
+
createdAt: string;
|
|
7
|
+
updatedAt: string;
|
|
8
|
+
metadata?: string;
|
|
9
|
+
ttl?: number;
|
|
10
|
+
expiresAt?: number;
|
|
11
|
+
}
|
|
12
|
+
export interface ThreadEntityData extends BaseEntityData {
|
|
13
|
+
entity: 'thread';
|
|
14
|
+
id: string;
|
|
15
|
+
resourceId: string;
|
|
16
|
+
title: string;
|
|
17
|
+
}
|
|
18
|
+
export interface MessageEntityData extends BaseEntityData {
|
|
19
|
+
entity: 'message';
|
|
20
|
+
id: string;
|
|
21
|
+
threadId?: string;
|
|
22
|
+
role: string;
|
|
23
|
+
type?: string;
|
|
24
|
+
content: string;
|
|
25
|
+
resourceId?: string;
|
|
26
|
+
toolCallIds?: string;
|
|
27
|
+
toolCallArgs?: string;
|
|
28
|
+
toolNames?: string;
|
|
29
|
+
}
|
|
30
|
+
export interface ResourceEntityData extends BaseEntityData {
|
|
31
|
+
entity: 'resource';
|
|
32
|
+
id: string;
|
|
33
|
+
workingMemory?: string;
|
|
34
|
+
}
|
|
35
|
+
export interface WorkflowSnapshotEntityData extends BaseEntityData {
|
|
36
|
+
entity: 'workflow_snapshot';
|
|
37
|
+
workflow_name: string;
|
|
38
|
+
run_id: string;
|
|
39
|
+
snapshot: string;
|
|
40
|
+
resourceId?: string;
|
|
41
|
+
}
|
|
42
|
+
export interface ScoreEntityData extends BaseEntityData {
|
|
43
|
+
entity: 'score';
|
|
44
|
+
id: string;
|
|
45
|
+
scorerId: string;
|
|
46
|
+
runId: string;
|
|
47
|
+
scorer: string;
|
|
48
|
+
score: number;
|
|
49
|
+
input: string;
|
|
50
|
+
output: string;
|
|
51
|
+
source: string;
|
|
52
|
+
traceId?: string;
|
|
53
|
+
spanId?: string;
|
|
54
|
+
reason?: string;
|
|
55
|
+
extractPrompt?: string;
|
|
56
|
+
analyzePrompt?: string;
|
|
57
|
+
reasonPrompt?: string;
|
|
58
|
+
generateScorePrompt?: string;
|
|
59
|
+
generateReasonPrompt?: string;
|
|
60
|
+
preprocessPrompt?: string;
|
|
61
|
+
extractStepResult?: string;
|
|
62
|
+
preprocessStepResult?: string;
|
|
63
|
+
analyzeStepResult?: string;
|
|
64
|
+
additionalContext?: string;
|
|
65
|
+
requestContext?: string;
|
|
66
|
+
entityType?: string;
|
|
67
|
+
entityData?: string;
|
|
68
|
+
entityId?: string;
|
|
69
|
+
resourceId?: string;
|
|
70
|
+
threadId?: string;
|
|
71
|
+
}
|
|
1
72
|
export declare const baseAttributes: {
|
|
2
73
|
readonly createdAt: {
|
|
3
74
|
readonly type: "string";
|
|
@@ -17,5 +88,24 @@ export declare const baseAttributes: {
|
|
|
17
88
|
readonly set: (value?: Record<string, unknown> | string) => string | undefined;
|
|
18
89
|
readonly get: (value?: string) => any;
|
|
19
90
|
};
|
|
91
|
+
/**
|
|
92
|
+
* TTL attribute for DynamoDB automatic item expiration.
|
|
93
|
+
* This is a Unix timestamp (epoch seconds) that indicates when the item should be deleted.
|
|
94
|
+
*
|
|
95
|
+
* Note: For TTL to work, you must enable TTL on your DynamoDB table
|
|
96
|
+
* specifying this attribute name (default: 'ttl').
|
|
97
|
+
*/
|
|
98
|
+
readonly ttl: {
|
|
99
|
+
readonly type: "number";
|
|
100
|
+
readonly required: false;
|
|
101
|
+
};
|
|
102
|
+
/**
|
|
103
|
+
* Alternative TTL attribute with configurable name.
|
|
104
|
+
* Use this if you've configured TTL on your DynamoDB table with 'expiresAt' as the attribute name.
|
|
105
|
+
*/
|
|
106
|
+
readonly expiresAt: {
|
|
107
|
+
readonly type: "number";
|
|
108
|
+
readonly required: false;
|
|
109
|
+
};
|
|
20
110
|
};
|
|
21
111
|
//# sourceMappingURL=utils.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../src/entities/utils.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,cAAc;;;;;+BAMT,IAAI,GAAG,MAAM;;;;;;+BAab,IAAI,GAAG,MAAM;;;;;+BAYb,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,MAAM;+BAOhC,MAAM;;
|
|
1
|
+
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../src/entities/utils.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,MAAM,WAAW,cAAc;IAC7B,MAAM,EAAE,MAAM,CAAC;IACf,SAAS,EAAE,MAAM,CAAC;IAClB,SAAS,EAAE,MAAM,CAAC;IAClB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED,MAAM,WAAW,gBAAiB,SAAQ,cAAc;IACtD,MAAM,EAAE,QAAQ,CAAC;IACjB,EAAE,EAAE,MAAM,CAAC;IACX,UAAU,EAAE,MAAM,CAAC;IACnB,KAAK,EAAE,MAAM,CAAC;CACf;AAED,MAAM,WAAW,iBAAkB,SAAQ,cAAc;IACvD,MAAM,EAAE,SAAS,CAAC;IAClB,EAAE,EAAE,MAAM,CAAC;IACX,QAAQ,CAAC,EAAE,MAAM,CAA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,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B,oBAAoB,CAAC,EAAE,MAAM,CAAC;IAC9B,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB;AAED,eAAO,MAAM,cAAc;;;;;+BAMT,IAAI,GAAG,MAAM;;;;;;+BAab,IAAI,GAAG,MAAM;;;;;+BAYb,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,MAAM;+BAOhC,MAAM;;IAYtB;;;;;;OAMG;;;;;IAKH;;;OAGG;;;;;CAKK,CAAC"}
|
|
@@ -42,6 +42,14 @@ export declare const workflowSnapshotEntity: Entity<string, string, string, {
|
|
|
42
42
|
readonly set: (value?: Record<string, unknown> | string) => string | undefined;
|
|
43
43
|
readonly get: (value?: string) => any;
|
|
44
44
|
};
|
|
45
|
+
ttl: {
|
|
46
|
+
readonly type: "number";
|
|
47
|
+
readonly required: false;
|
|
48
|
+
};
|
|
49
|
+
expiresAt: {
|
|
50
|
+
readonly type: "number";
|
|
51
|
+
readonly required: false;
|
|
52
|
+
};
|
|
45
53
|
entity: {
|
|
46
54
|
type: "string";
|
|
47
55
|
required: true;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"workflow-snapshot.d.ts","sourceRoot":"","sources":["../../src/entities/workflow-snapshot.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,WAAW,CAAC;AAGnC,eAAO,MAAM,sBAAsB;;;;;;;;;;;;;;;;;;0BAwBf,GAAG;0BAOH,MAAM
|
|
1
|
+
{"version":3,"file":"workflow-snapshot.d.ts","sourceRoot":"","sources":["../../src/entities/workflow-snapshot.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,WAAW,CAAC;AAGnC,eAAO,MAAM,sBAAsB;;;;;;;;;;;;;;;;;;0BAwBf,GAAG;0BAOH,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAqBxB,CAAC"}
|