reeboot 1.3.5 → 1.3.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/dist/agent-runner/pi-runner.d.ts.map +1 -1
- package/dist/agent-runner/pi-runner.js +2 -6
- package/dist/agent-runner/pi-runner.js.map +1 -1
- package/dist/channels/whatsapp.d.ts.map +1 -1
- package/dist/channels/whatsapp.js +7 -1
- package/dist/channels/whatsapp.js.map +1 -1
- package/dist/db/index.d.ts +3 -1
- package/dist/db/index.d.ts.map +1 -1
- package/dist/db/schema.d.ts +292 -38
- package/dist/db/schema.d.ts.map +1 -1
- package/dist/db/schema.js +2 -2
- package/dist/db/schema.js.map +1 -1
- package/dist/extensions/custom-compaction.js +4 -4
- package/dist/extensions/custom-compaction.js.map +1 -1
- package/dist/packages.d.ts +11 -7
- package/dist/packages.d.ts.map +1 -1
- package/dist/packages.js +60 -90
- package/dist/packages.js.map +1 -1
- package/dist/scheduler/parse.d.ts.map +1 -1
- package/dist/scheduler/parse.js +3 -5
- package/dist/scheduler/parse.js.map +1 -1
- package/dist/server.d.ts.map +1 -1
- package/dist/server.js +5 -0
- package/dist/server.js.map +1 -1
- package/dist/wizard/steps/provider.d.ts.map +1 -1
- package/dist/wizard/steps/provider.js +22 -6
- package/dist/wizard/steps/provider.js.map +1 -1
- package/package.json +15 -15
package/dist/db/schema.d.ts
CHANGED
|
@@ -11,9 +11,16 @@ export declare const contexts: import("drizzle-orm/sqlite-core").SQLiteTableWith
|
|
|
11
11
|
driverParam: string;
|
|
12
12
|
notNull: true;
|
|
13
13
|
hasDefault: false;
|
|
14
|
+
isPrimaryKey: true;
|
|
15
|
+
isAutoincrement: false;
|
|
16
|
+
hasRuntimeDefault: false;
|
|
14
17
|
enumValues: [string, ...string[]];
|
|
15
18
|
baseColumn: never;
|
|
16
|
-
|
|
19
|
+
identity: undefined;
|
|
20
|
+
generated: undefined;
|
|
21
|
+
}, {}, {
|
|
22
|
+
length: number | undefined;
|
|
23
|
+
}>;
|
|
17
24
|
name: import("drizzle-orm/sqlite-core").SQLiteColumn<{
|
|
18
25
|
name: "name";
|
|
19
26
|
tableName: "contexts";
|
|
@@ -23,9 +30,16 @@ export declare const contexts: import("drizzle-orm/sqlite-core").SQLiteTableWith
|
|
|
23
30
|
driverParam: string;
|
|
24
31
|
notNull: true;
|
|
25
32
|
hasDefault: false;
|
|
33
|
+
isPrimaryKey: false;
|
|
34
|
+
isAutoincrement: false;
|
|
35
|
+
hasRuntimeDefault: false;
|
|
26
36
|
enumValues: [string, ...string[]];
|
|
27
37
|
baseColumn: never;
|
|
28
|
-
|
|
38
|
+
identity: undefined;
|
|
39
|
+
generated: undefined;
|
|
40
|
+
}, {}, {
|
|
41
|
+
length: number | undefined;
|
|
42
|
+
}>;
|
|
29
43
|
modelProvider: import("drizzle-orm/sqlite-core").SQLiteColumn<{
|
|
30
44
|
name: "model_provider";
|
|
31
45
|
tableName: "contexts";
|
|
@@ -35,9 +49,16 @@ export declare const contexts: import("drizzle-orm/sqlite-core").SQLiteTableWith
|
|
|
35
49
|
driverParam: string;
|
|
36
50
|
notNull: true;
|
|
37
51
|
hasDefault: true;
|
|
52
|
+
isPrimaryKey: false;
|
|
53
|
+
isAutoincrement: false;
|
|
54
|
+
hasRuntimeDefault: false;
|
|
38
55
|
enumValues: [string, ...string[]];
|
|
39
56
|
baseColumn: never;
|
|
40
|
-
|
|
57
|
+
identity: undefined;
|
|
58
|
+
generated: undefined;
|
|
59
|
+
}, {}, {
|
|
60
|
+
length: number | undefined;
|
|
61
|
+
}>;
|
|
41
62
|
modelId: import("drizzle-orm/sqlite-core").SQLiteColumn<{
|
|
42
63
|
name: "model_id";
|
|
43
64
|
tableName: "contexts";
|
|
@@ -47,9 +68,16 @@ export declare const contexts: import("drizzle-orm/sqlite-core").SQLiteTableWith
|
|
|
47
68
|
driverParam: string;
|
|
48
69
|
notNull: true;
|
|
49
70
|
hasDefault: true;
|
|
71
|
+
isPrimaryKey: false;
|
|
72
|
+
isAutoincrement: false;
|
|
73
|
+
hasRuntimeDefault: false;
|
|
50
74
|
enumValues: [string, ...string[]];
|
|
51
75
|
baseColumn: never;
|
|
52
|
-
|
|
76
|
+
identity: undefined;
|
|
77
|
+
generated: undefined;
|
|
78
|
+
}, {}, {
|
|
79
|
+
length: number | undefined;
|
|
80
|
+
}>;
|
|
53
81
|
status: import("drizzle-orm/sqlite-core").SQLiteColumn<{
|
|
54
82
|
name: "status";
|
|
55
83
|
tableName: "contexts";
|
|
@@ -59,9 +87,16 @@ export declare const contexts: import("drizzle-orm/sqlite-core").SQLiteTableWith
|
|
|
59
87
|
driverParam: string;
|
|
60
88
|
notNull: true;
|
|
61
89
|
hasDefault: true;
|
|
90
|
+
isPrimaryKey: false;
|
|
91
|
+
isAutoincrement: false;
|
|
92
|
+
hasRuntimeDefault: false;
|
|
62
93
|
enumValues: [string, ...string[]];
|
|
63
94
|
baseColumn: never;
|
|
64
|
-
|
|
95
|
+
identity: undefined;
|
|
96
|
+
generated: undefined;
|
|
97
|
+
}, {}, {
|
|
98
|
+
length: number | undefined;
|
|
99
|
+
}>;
|
|
65
100
|
createdAt: import("drizzle-orm/sqlite-core").SQLiteColumn<{
|
|
66
101
|
name: "created_at";
|
|
67
102
|
tableName: "contexts";
|
|
@@ -71,9 +106,16 @@ export declare const contexts: import("drizzle-orm/sqlite-core").SQLiteTableWith
|
|
|
71
106
|
driverParam: string;
|
|
72
107
|
notNull: true;
|
|
73
108
|
hasDefault: true;
|
|
109
|
+
isPrimaryKey: false;
|
|
110
|
+
isAutoincrement: false;
|
|
111
|
+
hasRuntimeDefault: false;
|
|
74
112
|
enumValues: [string, ...string[]];
|
|
75
113
|
baseColumn: never;
|
|
76
|
-
|
|
114
|
+
identity: undefined;
|
|
115
|
+
generated: undefined;
|
|
116
|
+
}, {}, {
|
|
117
|
+
length: number | undefined;
|
|
118
|
+
}>;
|
|
77
119
|
};
|
|
78
120
|
dialect: "sqlite";
|
|
79
121
|
}>;
|
|
@@ -90,9 +132,16 @@ export declare const messages: import("drizzle-orm/sqlite-core").SQLiteTableWith
|
|
|
90
132
|
driverParam: string;
|
|
91
133
|
notNull: true;
|
|
92
134
|
hasDefault: false;
|
|
135
|
+
isPrimaryKey: true;
|
|
136
|
+
isAutoincrement: false;
|
|
137
|
+
hasRuntimeDefault: false;
|
|
93
138
|
enumValues: [string, ...string[]];
|
|
94
139
|
baseColumn: never;
|
|
95
|
-
|
|
140
|
+
identity: undefined;
|
|
141
|
+
generated: undefined;
|
|
142
|
+
}, {}, {
|
|
143
|
+
length: number | undefined;
|
|
144
|
+
}>;
|
|
96
145
|
contextId: import("drizzle-orm/sqlite-core").SQLiteColumn<{
|
|
97
146
|
name: "context_id";
|
|
98
147
|
tableName: "messages";
|
|
@@ -102,9 +151,16 @@ export declare const messages: import("drizzle-orm/sqlite-core").SQLiteTableWith
|
|
|
102
151
|
driverParam: string;
|
|
103
152
|
notNull: true;
|
|
104
153
|
hasDefault: false;
|
|
154
|
+
isPrimaryKey: false;
|
|
155
|
+
isAutoincrement: false;
|
|
156
|
+
hasRuntimeDefault: false;
|
|
105
157
|
enumValues: [string, ...string[]];
|
|
106
158
|
baseColumn: never;
|
|
107
|
-
|
|
159
|
+
identity: undefined;
|
|
160
|
+
generated: undefined;
|
|
161
|
+
}, {}, {
|
|
162
|
+
length: number | undefined;
|
|
163
|
+
}>;
|
|
108
164
|
channel: import("drizzle-orm/sqlite-core").SQLiteColumn<{
|
|
109
165
|
name: "channel";
|
|
110
166
|
tableName: "messages";
|
|
@@ -114,9 +170,16 @@ export declare const messages: import("drizzle-orm/sqlite-core").SQLiteTableWith
|
|
|
114
170
|
driverParam: string;
|
|
115
171
|
notNull: true;
|
|
116
172
|
hasDefault: false;
|
|
173
|
+
isPrimaryKey: false;
|
|
174
|
+
isAutoincrement: false;
|
|
175
|
+
hasRuntimeDefault: false;
|
|
117
176
|
enumValues: [string, ...string[]];
|
|
118
177
|
baseColumn: never;
|
|
119
|
-
|
|
178
|
+
identity: undefined;
|
|
179
|
+
generated: undefined;
|
|
180
|
+
}, {}, {
|
|
181
|
+
length: number | undefined;
|
|
182
|
+
}>;
|
|
120
183
|
peerId: import("drizzle-orm/sqlite-core").SQLiteColumn<{
|
|
121
184
|
name: "peer_id";
|
|
122
185
|
tableName: "messages";
|
|
@@ -126,9 +189,16 @@ export declare const messages: import("drizzle-orm/sqlite-core").SQLiteTableWith
|
|
|
126
189
|
driverParam: string;
|
|
127
190
|
notNull: true;
|
|
128
191
|
hasDefault: false;
|
|
192
|
+
isPrimaryKey: false;
|
|
193
|
+
isAutoincrement: false;
|
|
194
|
+
hasRuntimeDefault: false;
|
|
129
195
|
enumValues: [string, ...string[]];
|
|
130
196
|
baseColumn: never;
|
|
131
|
-
|
|
197
|
+
identity: undefined;
|
|
198
|
+
generated: undefined;
|
|
199
|
+
}, {}, {
|
|
200
|
+
length: number | undefined;
|
|
201
|
+
}>;
|
|
132
202
|
role: import("drizzle-orm/sqlite-core").SQLiteColumn<{
|
|
133
203
|
name: "role";
|
|
134
204
|
tableName: "messages";
|
|
@@ -138,9 +208,16 @@ export declare const messages: import("drizzle-orm/sqlite-core").SQLiteTableWith
|
|
|
138
208
|
driverParam: string;
|
|
139
209
|
notNull: true;
|
|
140
210
|
hasDefault: false;
|
|
211
|
+
isPrimaryKey: false;
|
|
212
|
+
isAutoincrement: false;
|
|
213
|
+
hasRuntimeDefault: false;
|
|
141
214
|
enumValues: [string, ...string[]];
|
|
142
215
|
baseColumn: never;
|
|
143
|
-
|
|
216
|
+
identity: undefined;
|
|
217
|
+
generated: undefined;
|
|
218
|
+
}, {}, {
|
|
219
|
+
length: number | undefined;
|
|
220
|
+
}>;
|
|
144
221
|
content: import("drizzle-orm/sqlite-core").SQLiteColumn<{
|
|
145
222
|
name: "content";
|
|
146
223
|
tableName: "messages";
|
|
@@ -150,9 +227,16 @@ export declare const messages: import("drizzle-orm/sqlite-core").SQLiteTableWith
|
|
|
150
227
|
driverParam: string;
|
|
151
228
|
notNull: true;
|
|
152
229
|
hasDefault: false;
|
|
230
|
+
isPrimaryKey: false;
|
|
231
|
+
isAutoincrement: false;
|
|
232
|
+
hasRuntimeDefault: false;
|
|
153
233
|
enumValues: [string, ...string[]];
|
|
154
234
|
baseColumn: never;
|
|
155
|
-
|
|
235
|
+
identity: undefined;
|
|
236
|
+
generated: undefined;
|
|
237
|
+
}, {}, {
|
|
238
|
+
length: number | undefined;
|
|
239
|
+
}>;
|
|
156
240
|
tokensUsed: import("drizzle-orm/sqlite-core").SQLiteColumn<{
|
|
157
241
|
name: "tokens_used";
|
|
158
242
|
tableName: "messages";
|
|
@@ -162,9 +246,14 @@ export declare const messages: import("drizzle-orm/sqlite-core").SQLiteTableWith
|
|
|
162
246
|
driverParam: number;
|
|
163
247
|
notNull: false;
|
|
164
248
|
hasDefault: true;
|
|
249
|
+
isPrimaryKey: false;
|
|
250
|
+
isAutoincrement: false;
|
|
251
|
+
hasRuntimeDefault: false;
|
|
165
252
|
enumValues: undefined;
|
|
166
253
|
baseColumn: never;
|
|
167
|
-
|
|
254
|
+
identity: undefined;
|
|
255
|
+
generated: undefined;
|
|
256
|
+
}, {}, {}>;
|
|
168
257
|
createdAt: import("drizzle-orm/sqlite-core").SQLiteColumn<{
|
|
169
258
|
name: "created_at";
|
|
170
259
|
tableName: "messages";
|
|
@@ -174,9 +263,16 @@ export declare const messages: import("drizzle-orm/sqlite-core").SQLiteTableWith
|
|
|
174
263
|
driverParam: string;
|
|
175
264
|
notNull: true;
|
|
176
265
|
hasDefault: true;
|
|
266
|
+
isPrimaryKey: false;
|
|
267
|
+
isAutoincrement: false;
|
|
268
|
+
hasRuntimeDefault: false;
|
|
177
269
|
enumValues: [string, ...string[]];
|
|
178
270
|
baseColumn: never;
|
|
179
|
-
|
|
271
|
+
identity: undefined;
|
|
272
|
+
generated: undefined;
|
|
273
|
+
}, {}, {
|
|
274
|
+
length: number | undefined;
|
|
275
|
+
}>;
|
|
180
276
|
};
|
|
181
277
|
dialect: "sqlite";
|
|
182
278
|
}>;
|
|
@@ -193,9 +289,16 @@ export declare const tasks: import("drizzle-orm/sqlite-core").SQLiteTableWithCol
|
|
|
193
289
|
driverParam: string;
|
|
194
290
|
notNull: true;
|
|
195
291
|
hasDefault: false;
|
|
292
|
+
isPrimaryKey: true;
|
|
293
|
+
isAutoincrement: false;
|
|
294
|
+
hasRuntimeDefault: false;
|
|
196
295
|
enumValues: [string, ...string[]];
|
|
197
296
|
baseColumn: never;
|
|
198
|
-
|
|
297
|
+
identity: undefined;
|
|
298
|
+
generated: undefined;
|
|
299
|
+
}, {}, {
|
|
300
|
+
length: number | undefined;
|
|
301
|
+
}>;
|
|
199
302
|
contextId: import("drizzle-orm/sqlite-core").SQLiteColumn<{
|
|
200
303
|
name: "context_id";
|
|
201
304
|
tableName: "tasks";
|
|
@@ -205,9 +308,16 @@ export declare const tasks: import("drizzle-orm/sqlite-core").SQLiteTableWithCol
|
|
|
205
308
|
driverParam: string;
|
|
206
309
|
notNull: true;
|
|
207
310
|
hasDefault: false;
|
|
311
|
+
isPrimaryKey: false;
|
|
312
|
+
isAutoincrement: false;
|
|
313
|
+
hasRuntimeDefault: false;
|
|
208
314
|
enumValues: [string, ...string[]];
|
|
209
315
|
baseColumn: never;
|
|
210
|
-
|
|
316
|
+
identity: undefined;
|
|
317
|
+
generated: undefined;
|
|
318
|
+
}, {}, {
|
|
319
|
+
length: number | undefined;
|
|
320
|
+
}>;
|
|
211
321
|
schedule: import("drizzle-orm/sqlite-core").SQLiteColumn<{
|
|
212
322
|
name: "schedule";
|
|
213
323
|
tableName: "tasks";
|
|
@@ -217,9 +327,16 @@ export declare const tasks: import("drizzle-orm/sqlite-core").SQLiteTableWithCol
|
|
|
217
327
|
driverParam: string;
|
|
218
328
|
notNull: true;
|
|
219
329
|
hasDefault: false;
|
|
330
|
+
isPrimaryKey: false;
|
|
331
|
+
isAutoincrement: false;
|
|
332
|
+
hasRuntimeDefault: false;
|
|
220
333
|
enumValues: [string, ...string[]];
|
|
221
334
|
baseColumn: never;
|
|
222
|
-
|
|
335
|
+
identity: undefined;
|
|
336
|
+
generated: undefined;
|
|
337
|
+
}, {}, {
|
|
338
|
+
length: number | undefined;
|
|
339
|
+
}>;
|
|
223
340
|
prompt: import("drizzle-orm/sqlite-core").SQLiteColumn<{
|
|
224
341
|
name: "prompt";
|
|
225
342
|
tableName: "tasks";
|
|
@@ -229,9 +346,16 @@ export declare const tasks: import("drizzle-orm/sqlite-core").SQLiteTableWithCol
|
|
|
229
346
|
driverParam: string;
|
|
230
347
|
notNull: true;
|
|
231
348
|
hasDefault: false;
|
|
349
|
+
isPrimaryKey: false;
|
|
350
|
+
isAutoincrement: false;
|
|
351
|
+
hasRuntimeDefault: false;
|
|
232
352
|
enumValues: [string, ...string[]];
|
|
233
353
|
baseColumn: never;
|
|
234
|
-
|
|
354
|
+
identity: undefined;
|
|
355
|
+
generated: undefined;
|
|
356
|
+
}, {}, {
|
|
357
|
+
length: number | undefined;
|
|
358
|
+
}>;
|
|
235
359
|
enabled: import("drizzle-orm/sqlite-core").SQLiteColumn<{
|
|
236
360
|
name: "enabled";
|
|
237
361
|
tableName: "tasks";
|
|
@@ -241,9 +365,14 @@ export declare const tasks: import("drizzle-orm/sqlite-core").SQLiteTableWithCol
|
|
|
241
365
|
driverParam: number;
|
|
242
366
|
notNull: true;
|
|
243
367
|
hasDefault: true;
|
|
368
|
+
isPrimaryKey: false;
|
|
369
|
+
isAutoincrement: false;
|
|
370
|
+
hasRuntimeDefault: false;
|
|
244
371
|
enumValues: undefined;
|
|
245
372
|
baseColumn: never;
|
|
246
|
-
|
|
373
|
+
identity: undefined;
|
|
374
|
+
generated: undefined;
|
|
375
|
+
}, {}, {}>;
|
|
247
376
|
lastRun: import("drizzle-orm/sqlite-core").SQLiteColumn<{
|
|
248
377
|
name: "last_run";
|
|
249
378
|
tableName: "tasks";
|
|
@@ -253,9 +382,16 @@ export declare const tasks: import("drizzle-orm/sqlite-core").SQLiteTableWithCol
|
|
|
253
382
|
driverParam: string;
|
|
254
383
|
notNull: false;
|
|
255
384
|
hasDefault: false;
|
|
385
|
+
isPrimaryKey: false;
|
|
386
|
+
isAutoincrement: false;
|
|
387
|
+
hasRuntimeDefault: false;
|
|
256
388
|
enumValues: [string, ...string[]];
|
|
257
389
|
baseColumn: never;
|
|
258
|
-
|
|
390
|
+
identity: undefined;
|
|
391
|
+
generated: undefined;
|
|
392
|
+
}, {}, {
|
|
393
|
+
length: number | undefined;
|
|
394
|
+
}>;
|
|
259
395
|
createdAt: import("drizzle-orm/sqlite-core").SQLiteColumn<{
|
|
260
396
|
name: "created_at";
|
|
261
397
|
tableName: "tasks";
|
|
@@ -265,9 +401,16 @@ export declare const tasks: import("drizzle-orm/sqlite-core").SQLiteTableWithCol
|
|
|
265
401
|
driverParam: string;
|
|
266
402
|
notNull: true;
|
|
267
403
|
hasDefault: true;
|
|
404
|
+
isPrimaryKey: false;
|
|
405
|
+
isAutoincrement: false;
|
|
406
|
+
hasRuntimeDefault: false;
|
|
268
407
|
enumValues: [string, ...string[]];
|
|
269
408
|
baseColumn: never;
|
|
270
|
-
|
|
409
|
+
identity: undefined;
|
|
410
|
+
generated: undefined;
|
|
411
|
+
}, {}, {
|
|
412
|
+
length: number | undefined;
|
|
413
|
+
}>;
|
|
271
414
|
};
|
|
272
415
|
dialect: "sqlite";
|
|
273
416
|
}>;
|
|
@@ -284,9 +427,16 @@ export declare const channels: import("drizzle-orm/sqlite-core").SQLiteTableWith
|
|
|
284
427
|
driverParam: string;
|
|
285
428
|
notNull: true;
|
|
286
429
|
hasDefault: false;
|
|
430
|
+
isPrimaryKey: true;
|
|
431
|
+
isAutoincrement: false;
|
|
432
|
+
hasRuntimeDefault: false;
|
|
287
433
|
enumValues: [string, ...string[]];
|
|
288
434
|
baseColumn: never;
|
|
289
|
-
|
|
435
|
+
identity: undefined;
|
|
436
|
+
generated: undefined;
|
|
437
|
+
}, {}, {
|
|
438
|
+
length: number | undefined;
|
|
439
|
+
}>;
|
|
290
440
|
status: import("drizzle-orm/sqlite-core").SQLiteColumn<{
|
|
291
441
|
name: "status";
|
|
292
442
|
tableName: "channels";
|
|
@@ -296,9 +446,16 @@ export declare const channels: import("drizzle-orm/sqlite-core").SQLiteTableWith
|
|
|
296
446
|
driverParam: string;
|
|
297
447
|
notNull: true;
|
|
298
448
|
hasDefault: true;
|
|
449
|
+
isPrimaryKey: false;
|
|
450
|
+
isAutoincrement: false;
|
|
451
|
+
hasRuntimeDefault: false;
|
|
299
452
|
enumValues: [string, ...string[]];
|
|
300
453
|
baseColumn: never;
|
|
301
|
-
|
|
454
|
+
identity: undefined;
|
|
455
|
+
generated: undefined;
|
|
456
|
+
}, {}, {
|
|
457
|
+
length: number | undefined;
|
|
458
|
+
}>;
|
|
302
459
|
config: import("drizzle-orm/sqlite-core").SQLiteColumn<{
|
|
303
460
|
name: "config";
|
|
304
461
|
tableName: "channels";
|
|
@@ -308,9 +465,16 @@ export declare const channels: import("drizzle-orm/sqlite-core").SQLiteTableWith
|
|
|
308
465
|
driverParam: string;
|
|
309
466
|
notNull: true;
|
|
310
467
|
hasDefault: true;
|
|
468
|
+
isPrimaryKey: false;
|
|
469
|
+
isAutoincrement: false;
|
|
470
|
+
hasRuntimeDefault: false;
|
|
311
471
|
enumValues: [string, ...string[]];
|
|
312
472
|
baseColumn: never;
|
|
313
|
-
|
|
473
|
+
identity: undefined;
|
|
474
|
+
generated: undefined;
|
|
475
|
+
}, {}, {
|
|
476
|
+
length: number | undefined;
|
|
477
|
+
}>;
|
|
314
478
|
connectedAt: import("drizzle-orm/sqlite-core").SQLiteColumn<{
|
|
315
479
|
name: "connected_at";
|
|
316
480
|
tableName: "channels";
|
|
@@ -320,9 +484,16 @@ export declare const channels: import("drizzle-orm/sqlite-core").SQLiteTableWith
|
|
|
320
484
|
driverParam: string;
|
|
321
485
|
notNull: false;
|
|
322
486
|
hasDefault: false;
|
|
487
|
+
isPrimaryKey: false;
|
|
488
|
+
isAutoincrement: false;
|
|
489
|
+
hasRuntimeDefault: false;
|
|
323
490
|
enumValues: [string, ...string[]];
|
|
324
491
|
baseColumn: never;
|
|
325
|
-
|
|
492
|
+
identity: undefined;
|
|
493
|
+
generated: undefined;
|
|
494
|
+
}, {}, {
|
|
495
|
+
length: number | undefined;
|
|
496
|
+
}>;
|
|
326
497
|
};
|
|
327
498
|
dialect: "sqlite";
|
|
328
499
|
}>;
|
|
@@ -339,9 +510,14 @@ export declare const usage: import("drizzle-orm/sqlite-core").SQLiteTableWithCol
|
|
|
339
510
|
driverParam: number;
|
|
340
511
|
notNull: true;
|
|
341
512
|
hasDefault: true;
|
|
513
|
+
isPrimaryKey: true;
|
|
514
|
+
isAutoincrement: false;
|
|
515
|
+
hasRuntimeDefault: false;
|
|
342
516
|
enumValues: undefined;
|
|
343
517
|
baseColumn: never;
|
|
344
|
-
|
|
518
|
+
identity: undefined;
|
|
519
|
+
generated: undefined;
|
|
520
|
+
}, {}, {}>;
|
|
345
521
|
contextId: import("drizzle-orm/sqlite-core").SQLiteColumn<{
|
|
346
522
|
name: "context_id";
|
|
347
523
|
tableName: "usage";
|
|
@@ -351,9 +527,16 @@ export declare const usage: import("drizzle-orm/sqlite-core").SQLiteTableWithCol
|
|
|
351
527
|
driverParam: string;
|
|
352
528
|
notNull: true;
|
|
353
529
|
hasDefault: false;
|
|
530
|
+
isPrimaryKey: false;
|
|
531
|
+
isAutoincrement: false;
|
|
532
|
+
hasRuntimeDefault: false;
|
|
354
533
|
enumValues: [string, ...string[]];
|
|
355
534
|
baseColumn: never;
|
|
356
|
-
|
|
535
|
+
identity: undefined;
|
|
536
|
+
generated: undefined;
|
|
537
|
+
}, {}, {
|
|
538
|
+
length: number | undefined;
|
|
539
|
+
}>;
|
|
357
540
|
inputTokens: import("drizzle-orm/sqlite-core").SQLiteColumn<{
|
|
358
541
|
name: "input_tokens";
|
|
359
542
|
tableName: "usage";
|
|
@@ -363,9 +546,14 @@ export declare const usage: import("drizzle-orm/sqlite-core").SQLiteTableWithCol
|
|
|
363
546
|
driverParam: number;
|
|
364
547
|
notNull: true;
|
|
365
548
|
hasDefault: true;
|
|
549
|
+
isPrimaryKey: false;
|
|
550
|
+
isAutoincrement: false;
|
|
551
|
+
hasRuntimeDefault: false;
|
|
366
552
|
enumValues: undefined;
|
|
367
553
|
baseColumn: never;
|
|
368
|
-
|
|
554
|
+
identity: undefined;
|
|
555
|
+
generated: undefined;
|
|
556
|
+
}, {}, {}>;
|
|
369
557
|
outputTokens: import("drizzle-orm/sqlite-core").SQLiteColumn<{
|
|
370
558
|
name: "output_tokens";
|
|
371
559
|
tableName: "usage";
|
|
@@ -375,9 +563,14 @@ export declare const usage: import("drizzle-orm/sqlite-core").SQLiteTableWithCol
|
|
|
375
563
|
driverParam: number;
|
|
376
564
|
notNull: true;
|
|
377
565
|
hasDefault: true;
|
|
566
|
+
isPrimaryKey: false;
|
|
567
|
+
isAutoincrement: false;
|
|
568
|
+
hasRuntimeDefault: false;
|
|
378
569
|
enumValues: undefined;
|
|
379
570
|
baseColumn: never;
|
|
380
|
-
|
|
571
|
+
identity: undefined;
|
|
572
|
+
generated: undefined;
|
|
573
|
+
}, {}, {}>;
|
|
381
574
|
model: import("drizzle-orm/sqlite-core").SQLiteColumn<{
|
|
382
575
|
name: "model";
|
|
383
576
|
tableName: "usage";
|
|
@@ -387,9 +580,16 @@ export declare const usage: import("drizzle-orm/sqlite-core").SQLiteTableWithCol
|
|
|
387
580
|
driverParam: string;
|
|
388
581
|
notNull: true;
|
|
389
582
|
hasDefault: false;
|
|
583
|
+
isPrimaryKey: false;
|
|
584
|
+
isAutoincrement: false;
|
|
585
|
+
hasRuntimeDefault: false;
|
|
390
586
|
enumValues: [string, ...string[]];
|
|
391
587
|
baseColumn: never;
|
|
392
|
-
|
|
588
|
+
identity: undefined;
|
|
589
|
+
generated: undefined;
|
|
590
|
+
}, {}, {
|
|
591
|
+
length: number | undefined;
|
|
592
|
+
}>;
|
|
393
593
|
createdAt: import("drizzle-orm/sqlite-core").SQLiteColumn<{
|
|
394
594
|
name: "created_at";
|
|
395
595
|
tableName: "usage";
|
|
@@ -399,9 +599,16 @@ export declare const usage: import("drizzle-orm/sqlite-core").SQLiteTableWithCol
|
|
|
399
599
|
driverParam: string;
|
|
400
600
|
notNull: true;
|
|
401
601
|
hasDefault: true;
|
|
602
|
+
isPrimaryKey: false;
|
|
603
|
+
isAutoincrement: false;
|
|
604
|
+
hasRuntimeDefault: false;
|
|
402
605
|
enumValues: [string, ...string[]];
|
|
403
606
|
baseColumn: never;
|
|
404
|
-
|
|
607
|
+
identity: undefined;
|
|
608
|
+
generated: undefined;
|
|
609
|
+
}, {}, {
|
|
610
|
+
length: number | undefined;
|
|
611
|
+
}>;
|
|
405
612
|
};
|
|
406
613
|
dialect: "sqlite";
|
|
407
614
|
}>;
|
|
@@ -418,9 +625,16 @@ export declare const taskRuns: import("drizzle-orm/sqlite-core").SQLiteTableWith
|
|
|
418
625
|
driverParam: string;
|
|
419
626
|
notNull: true;
|
|
420
627
|
hasDefault: false;
|
|
628
|
+
isPrimaryKey: true;
|
|
629
|
+
isAutoincrement: false;
|
|
630
|
+
hasRuntimeDefault: false;
|
|
421
631
|
enumValues: [string, ...string[]];
|
|
422
632
|
baseColumn: never;
|
|
423
|
-
|
|
633
|
+
identity: undefined;
|
|
634
|
+
generated: undefined;
|
|
635
|
+
}, {}, {
|
|
636
|
+
length: number | undefined;
|
|
637
|
+
}>;
|
|
424
638
|
taskId: import("drizzle-orm/sqlite-core").SQLiteColumn<{
|
|
425
639
|
name: "task_id";
|
|
426
640
|
tableName: "task_runs";
|
|
@@ -430,9 +644,16 @@ export declare const taskRuns: import("drizzle-orm/sqlite-core").SQLiteTableWith
|
|
|
430
644
|
driverParam: string;
|
|
431
645
|
notNull: true;
|
|
432
646
|
hasDefault: false;
|
|
647
|
+
isPrimaryKey: false;
|
|
648
|
+
isAutoincrement: false;
|
|
649
|
+
hasRuntimeDefault: false;
|
|
433
650
|
enumValues: [string, ...string[]];
|
|
434
651
|
baseColumn: never;
|
|
435
|
-
|
|
652
|
+
identity: undefined;
|
|
653
|
+
generated: undefined;
|
|
654
|
+
}, {}, {
|
|
655
|
+
length: number | undefined;
|
|
656
|
+
}>;
|
|
436
657
|
runAt: import("drizzle-orm/sqlite-core").SQLiteColumn<{
|
|
437
658
|
name: "run_at";
|
|
438
659
|
tableName: "task_runs";
|
|
@@ -442,9 +663,16 @@ export declare const taskRuns: import("drizzle-orm/sqlite-core").SQLiteTableWith
|
|
|
442
663
|
driverParam: string;
|
|
443
664
|
notNull: true;
|
|
444
665
|
hasDefault: true;
|
|
666
|
+
isPrimaryKey: false;
|
|
667
|
+
isAutoincrement: false;
|
|
668
|
+
hasRuntimeDefault: false;
|
|
445
669
|
enumValues: [string, ...string[]];
|
|
446
670
|
baseColumn: never;
|
|
447
|
-
|
|
671
|
+
identity: undefined;
|
|
672
|
+
generated: undefined;
|
|
673
|
+
}, {}, {
|
|
674
|
+
length: number | undefined;
|
|
675
|
+
}>;
|
|
448
676
|
durationMs: import("drizzle-orm/sqlite-core").SQLiteColumn<{
|
|
449
677
|
name: "duration_ms";
|
|
450
678
|
tableName: "task_runs";
|
|
@@ -454,9 +682,14 @@ export declare const taskRuns: import("drizzle-orm/sqlite-core").SQLiteTableWith
|
|
|
454
682
|
driverParam: number;
|
|
455
683
|
notNull: true;
|
|
456
684
|
hasDefault: true;
|
|
685
|
+
isPrimaryKey: false;
|
|
686
|
+
isAutoincrement: false;
|
|
687
|
+
hasRuntimeDefault: false;
|
|
457
688
|
enumValues: undefined;
|
|
458
689
|
baseColumn: never;
|
|
459
|
-
|
|
690
|
+
identity: undefined;
|
|
691
|
+
generated: undefined;
|
|
692
|
+
}, {}, {}>;
|
|
460
693
|
status: import("drizzle-orm/sqlite-core").SQLiteColumn<{
|
|
461
694
|
name: "status";
|
|
462
695
|
tableName: "task_runs";
|
|
@@ -466,9 +699,16 @@ export declare const taskRuns: import("drizzle-orm/sqlite-core").SQLiteTableWith
|
|
|
466
699
|
driverParam: string;
|
|
467
700
|
notNull: true;
|
|
468
701
|
hasDefault: false;
|
|
702
|
+
isPrimaryKey: false;
|
|
703
|
+
isAutoincrement: false;
|
|
704
|
+
hasRuntimeDefault: false;
|
|
469
705
|
enumValues: [string, ...string[]];
|
|
470
706
|
baseColumn: never;
|
|
471
|
-
|
|
707
|
+
identity: undefined;
|
|
708
|
+
generated: undefined;
|
|
709
|
+
}, {}, {
|
|
710
|
+
length: number | undefined;
|
|
711
|
+
}>;
|
|
472
712
|
result: import("drizzle-orm/sqlite-core").SQLiteColumn<{
|
|
473
713
|
name: "result";
|
|
474
714
|
tableName: "task_runs";
|
|
@@ -478,9 +718,16 @@ export declare const taskRuns: import("drizzle-orm/sqlite-core").SQLiteTableWith
|
|
|
478
718
|
driverParam: string;
|
|
479
719
|
notNull: false;
|
|
480
720
|
hasDefault: false;
|
|
721
|
+
isPrimaryKey: false;
|
|
722
|
+
isAutoincrement: false;
|
|
723
|
+
hasRuntimeDefault: false;
|
|
481
724
|
enumValues: [string, ...string[]];
|
|
482
725
|
baseColumn: never;
|
|
483
|
-
|
|
726
|
+
identity: undefined;
|
|
727
|
+
generated: undefined;
|
|
728
|
+
}, {}, {
|
|
729
|
+
length: number | undefined;
|
|
730
|
+
}>;
|
|
484
731
|
error: import("drizzle-orm/sqlite-core").SQLiteColumn<{
|
|
485
732
|
name: "error";
|
|
486
733
|
tableName: "task_runs";
|
|
@@ -490,9 +737,16 @@ export declare const taskRuns: import("drizzle-orm/sqlite-core").SQLiteTableWith
|
|
|
490
737
|
driverParam: string;
|
|
491
738
|
notNull: false;
|
|
492
739
|
hasDefault: false;
|
|
740
|
+
isPrimaryKey: false;
|
|
741
|
+
isAutoincrement: false;
|
|
742
|
+
hasRuntimeDefault: false;
|
|
493
743
|
enumValues: [string, ...string[]];
|
|
494
744
|
baseColumn: never;
|
|
495
|
-
|
|
745
|
+
identity: undefined;
|
|
746
|
+
generated: undefined;
|
|
747
|
+
}, {}, {
|
|
748
|
+
length: number | undefined;
|
|
749
|
+
}>;
|
|
496
750
|
};
|
|
497
751
|
dialect: "sqlite";
|
|
498
752
|
}>;
|
package/dist/db/schema.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"schema.d.ts","sourceRoot":"","sources":["../../src/db/schema.ts"],"names":[],"mappings":"AAMA,eAAO,MAAM,QAAQ
|
|
1
|
+
{"version":3,"file":"schema.d.ts","sourceRoot":"","sources":["../../src/db/schema.ts"],"names":[],"mappings":"AAMA,eAAO,MAAM,QAAQ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAOnB,CAAC;AAIH,eAAO,MAAM,QAAQ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAWnB,CAAC;AAIH,eAAO,MAAM,KAAK;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAUhB,CAAC;AAIH,eAAO,MAAM,QAAQ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAKnB,CAAC;AAIH,eAAO,MAAM,KAAK;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAShB,CAAC;AAIH,eAAO,MAAM,QAAQ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAQnB,CAAC;AAIH;;;GAGG;AACH,wBAAgB,YAAY,CAAC,EAAE,EAAE,OAAO,gBAAgB,EAAE,QAAQ,GAAG,IAAI,CAqCxE"}
|
package/dist/db/schema.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { sqliteTable, text, integer } from 'drizzle-orm/sqlite-core';
|
|
2
2
|
import { sql } from 'drizzle-orm';
|
|
3
|
-
import
|
|
3
|
+
import { CronExpressionParser } from 'cron-parser';
|
|
4
4
|
// ─── contexts ────────────────────────────────────────────────────────────────
|
|
5
5
|
export const contexts = sqliteTable('contexts', {
|
|
6
6
|
id: text('id').primaryKey(),
|
|
@@ -112,7 +112,7 @@ function _computeMissingNextRuns(db) {
|
|
|
112
112
|
for (const row of rows) {
|
|
113
113
|
const expr = row.schedule_value || row.schedule;
|
|
114
114
|
try {
|
|
115
|
-
const next =
|
|
115
|
+
const next = CronExpressionParser.parse(expr).next().toDate().toISOString();
|
|
116
116
|
update.run(next, row.id);
|
|
117
117
|
}
|
|
118
118
|
catch {
|