@mastra/convex 1.8.1-alpha.0 → 1.9.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 +16 -16
- package/dist/index.cjs +6 -0
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +6 -0
- package/dist/index.js.map +1 -1
- package/dist/schema.cjs +2 -0
- package/dist/schema.cjs.map +1 -1
- package/dist/schema.d.ts +5 -1
- package/dist/schema.d.ts.map +1 -1
- package/dist/schema.js +2 -0
- package/dist/schema.js.map +1 -1
- package/dist/storage/domains/schedules/index.d.ts.map +1 -1
- package/package.json +5 -5
package/dist/docs/SKILL.md
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
{
|
|
2
|
-
"version": "1.
|
|
2
|
+
"version": "1.9.0",
|
|
3
3
|
"package": "@mastra/convex",
|
|
4
4
|
"exports": {
|
|
5
5
|
"ConvexCacheClient": {
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
"ConvexNativeVector": {
|
|
11
11
|
"types": "dist/vector/native.d.ts",
|
|
12
12
|
"implementation": "dist/index.js",
|
|
13
|
-
"line":
|
|
13
|
+
"line": 2861
|
|
14
14
|
},
|
|
15
15
|
"ConvexServerCache": {
|
|
16
16
|
"types": "dist/cache/index.d.ts",
|
|
@@ -20,27 +20,27 @@
|
|
|
20
20
|
"ConvexStore": {
|
|
21
21
|
"types": "dist/storage/index.d.ts",
|
|
22
22
|
"implementation": "dist/index.js",
|
|
23
|
-
"line":
|
|
23
|
+
"line": 2558
|
|
24
24
|
},
|
|
25
25
|
"ConvexVector": {
|
|
26
26
|
"types": "dist/vector/index.d.ts",
|
|
27
27
|
"implementation": "dist/index.js",
|
|
28
|
-
"line":
|
|
28
|
+
"line": 2582
|
|
29
29
|
},
|
|
30
30
|
"TABLE_OBSERVATIONAL_MEMORY": {
|
|
31
31
|
"types": "dist/schema.d.ts",
|
|
32
32
|
"implementation": "dist/schema.js",
|
|
33
|
-
"line":
|
|
33
|
+
"line": 332
|
|
34
34
|
},
|
|
35
35
|
"defineMastraNativeVectorTable": {
|
|
36
36
|
"types": "dist/schema.d.ts",
|
|
37
37
|
"implementation": "dist/schema.js",
|
|
38
|
-
"line":
|
|
38
|
+
"line": 282
|
|
39
39
|
},
|
|
40
40
|
"mastraBackgroundTasksTable": {
|
|
41
41
|
"types": "dist/schema.d.ts",
|
|
42
42
|
"implementation": "dist/schema.js",
|
|
43
|
-
"line":
|
|
43
|
+
"line": 174
|
|
44
44
|
},
|
|
45
45
|
"mastraCache": {
|
|
46
46
|
"types": "dist/server/cache.d.ts",
|
|
@@ -50,27 +50,27 @@
|
|
|
50
50
|
"mastraCacheListItemsTable": {
|
|
51
51
|
"types": "dist/schema.d.ts",
|
|
52
52
|
"implementation": "dist/schema.js",
|
|
53
|
-
"line":
|
|
53
|
+
"line": 315
|
|
54
54
|
},
|
|
55
55
|
"mastraCacheTable": {
|
|
56
56
|
"types": "dist/schema.d.ts",
|
|
57
57
|
"implementation": "dist/schema.js",
|
|
58
|
-
"line":
|
|
58
|
+
"line": 303
|
|
59
59
|
},
|
|
60
60
|
"mastraChannelConfigTable": {
|
|
61
61
|
"types": "dist/schema.d.ts",
|
|
62
62
|
"implementation": "dist/schema.js",
|
|
63
|
-
"line":
|
|
63
|
+
"line": 159
|
|
64
64
|
},
|
|
65
65
|
"mastraChannelInstallationsTable": {
|
|
66
66
|
"types": "dist/schema.d.ts",
|
|
67
67
|
"implementation": "dist/schema.js",
|
|
68
|
-
"line":
|
|
68
|
+
"line": 141
|
|
69
69
|
},
|
|
70
70
|
"mastraDocumentsTable": {
|
|
71
71
|
"types": "dist/schema.d.ts",
|
|
72
72
|
"implementation": "dist/schema.js",
|
|
73
|
-
"line":
|
|
73
|
+
"line": 324
|
|
74
74
|
},
|
|
75
75
|
"mastraMessagesTable": {
|
|
76
76
|
"types": "dist/schema.d.ts",
|
|
@@ -95,7 +95,7 @@
|
|
|
95
95
|
"mastraObservationalMemoryTable": {
|
|
96
96
|
"types": "dist/schema.d.ts",
|
|
97
97
|
"implementation": "dist/schema.js",
|
|
98
|
-
"line":
|
|
98
|
+
"line": 218
|
|
99
99
|
},
|
|
100
100
|
"mastraResourcesTable": {
|
|
101
101
|
"types": "dist/schema.d.ts",
|
|
@@ -105,7 +105,7 @@
|
|
|
105
105
|
"mastraScheduleTriggersTable": {
|
|
106
106
|
"types": "dist/schema.d.ts",
|
|
107
107
|
"implementation": "dist/schema.js",
|
|
108
|
-
"line":
|
|
108
|
+
"line": 123
|
|
109
109
|
},
|
|
110
110
|
"mastraSchedulesTable": {
|
|
111
111
|
"types": "dist/schema.d.ts",
|
|
@@ -130,12 +130,12 @@
|
|
|
130
130
|
"mastraVectorIndexesTable": {
|
|
131
131
|
"types": "dist/schema.d.ts",
|
|
132
132
|
"implementation": "dist/schema.js",
|
|
133
|
-
"line":
|
|
133
|
+
"line": 258
|
|
134
134
|
},
|
|
135
135
|
"mastraVectorsTable": {
|
|
136
136
|
"types": "dist/schema.d.ts",
|
|
137
137
|
"implementation": "dist/schema.js",
|
|
138
|
-
"line":
|
|
138
|
+
"line": 269
|
|
139
139
|
},
|
|
140
140
|
"mastraWorkflowSnapshotsTable": {
|
|
141
141
|
"types": "dist/schema.d.ts",
|
package/dist/index.cjs
CHANGED
|
@@ -2054,6 +2054,8 @@ function scheduleToRecord(schedule) {
|
|
|
2054
2054
|
metadata: schedule.metadata == null ? null : serializeJson(schedule.metadata),
|
|
2055
2055
|
owner_type: schedule.ownerType ?? null,
|
|
2056
2056
|
owner_id: schedule.ownerId ?? null,
|
|
2057
|
+
run_at: schedule.runAt ?? null,
|
|
2058
|
+
end_at: schedule.endAt ?? null,
|
|
2057
2059
|
workflow_id: schedule.target.type === "workflow" ? schedule.target.workflowId : null
|
|
2058
2060
|
};
|
|
2059
2061
|
}
|
|
@@ -2076,6 +2078,8 @@ function recordToSchedule(record) {
|
|
|
2076
2078
|
if (metadata != null) schedule.metadata = metadata;
|
|
2077
2079
|
if (record.owner_type != null) schedule.ownerType = String(record.owner_type);
|
|
2078
2080
|
if (record.owner_id != null) schedule.ownerId = String(record.owner_id);
|
|
2081
|
+
if (record.run_at != null) schedule.runAt = Number(record.run_at);
|
|
2082
|
+
if (record.end_at != null) schedule.endAt = Number(record.end_at);
|
|
2079
2083
|
return schedule;
|
|
2080
2084
|
}
|
|
2081
2085
|
function triggerToRecord(trigger) {
|
|
@@ -2201,6 +2205,8 @@ var SchedulesConvex = class extends _mastra_core_storage.SchedulesStorage {
|
|
|
2201
2205
|
if ("metadata" in patch) updates.metadata = patch.metadata == null ? null : serializeJson(patch.metadata);
|
|
2202
2206
|
if ("ownerType" in patch) updates.owner_type = patch.ownerType ?? null;
|
|
2203
2207
|
if ("ownerId" in patch) updates.owner_id = patch.ownerId ?? null;
|
|
2208
|
+
if ("runAt" in patch) updates.run_at = patch.runAt ?? null;
|
|
2209
|
+
if ("endAt" in patch) updates.end_at = patch.endAt ?? null;
|
|
2204
2210
|
if (Object.keys(updates).length === 0) {
|
|
2205
2211
|
const existing = await this.getSchedule(id);
|
|
2206
2212
|
if (!existing) throw new Error(`Schedule ${id} not found`);
|