@app-vitals/agent-admin 1.39.0 → 1.40.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/package.json +2 -2
- package/prisma/client/browser.ts +10 -0
- package/prisma/client/client.ts +10 -0
- package/prisma/client/internal/class.ts +24 -4
- package/prisma/client/internal/prismaNamespace.ts +184 -2
- package/prisma/client/internal/prismaNamespaceBrowser.ts +33 -1
- package/prisma/client/models/Account.ts +148 -0
- package/prisma/client/models/Agent.ts +80 -1
- package/prisma/client/models/AgentCronJob.ts +54 -1
- package/prisma/client/models/AgentEnv.ts +36 -1
- package/prisma/client/models/AgentPlugin.ts +36 -1
- package/prisma/client/models/AgentTemplate.ts +1501 -0
- package/prisma/client/models/AgentTemplateItem.ts +1416 -0
- package/prisma/client/models/AgentTool.ts +71 -1
- package/prisma/client/models.ts +2 -0
- package/prisma/migrations/20261113000000_add_agent_templates/migration.sql +71 -0
- package/prisma/schema/schema.prisma +61 -4
- package/src/admin-local-agent.smoke.test.ts +2 -0
- package/src/admin-ui.fixtures.ts +3 -0
- package/src/admin-ui.smoke.test.ts +2 -0
- package/src/agent-cron-run-stats.smoke.test.ts +10 -0
- package/src/agent-plugins.unit.test.ts +1 -0
- package/src/agent-template-items.ts +55 -0
- package/src/agent-template-items.unit.test.ts +55 -0
- package/src/agent-templates.integration.test.ts +200 -0
- package/src/agents-api.smoke.test.ts +17 -0
- package/src/api.smoke.test.ts +13 -0
- package/src/chat.smoke.test.ts +2 -0
|
@@ -30,6 +30,7 @@ export type AgentPluginMinAggregateOutputType = {
|
|
|
30
30
|
name: string | null
|
|
31
31
|
version: string | null
|
|
32
32
|
enabled: boolean | null
|
|
33
|
+
source: string | null
|
|
33
34
|
createdAt: Date | null
|
|
34
35
|
updatedAt: Date | null
|
|
35
36
|
}
|
|
@@ -40,6 +41,7 @@ export type AgentPluginMaxAggregateOutputType = {
|
|
|
40
41
|
name: string | null
|
|
41
42
|
version: string | null
|
|
42
43
|
enabled: boolean | null
|
|
44
|
+
source: string | null
|
|
43
45
|
createdAt: Date | null
|
|
44
46
|
updatedAt: Date | null
|
|
45
47
|
}
|
|
@@ -50,6 +52,7 @@ export type AgentPluginCountAggregateOutputType = {
|
|
|
50
52
|
name: number
|
|
51
53
|
version: number
|
|
52
54
|
enabled: number
|
|
55
|
+
source: number
|
|
53
56
|
createdAt: number
|
|
54
57
|
updatedAt: number
|
|
55
58
|
_all: number
|
|
@@ -62,6 +65,7 @@ export type AgentPluginMinAggregateInputType = {
|
|
|
62
65
|
name?: true
|
|
63
66
|
version?: true
|
|
64
67
|
enabled?: true
|
|
68
|
+
source?: true
|
|
65
69
|
createdAt?: true
|
|
66
70
|
updatedAt?: true
|
|
67
71
|
}
|
|
@@ -72,6 +76,7 @@ export type AgentPluginMaxAggregateInputType = {
|
|
|
72
76
|
name?: true
|
|
73
77
|
version?: true
|
|
74
78
|
enabled?: true
|
|
79
|
+
source?: true
|
|
75
80
|
createdAt?: true
|
|
76
81
|
updatedAt?: true
|
|
77
82
|
}
|
|
@@ -82,6 +87,7 @@ export type AgentPluginCountAggregateInputType = {
|
|
|
82
87
|
name?: true
|
|
83
88
|
version?: true
|
|
84
89
|
enabled?: true
|
|
90
|
+
source?: true
|
|
85
91
|
createdAt?: true
|
|
86
92
|
updatedAt?: true
|
|
87
93
|
_all?: true
|
|
@@ -165,6 +171,7 @@ export type AgentPluginGroupByOutputType = {
|
|
|
165
171
|
name: string
|
|
166
172
|
version: string | null
|
|
167
173
|
enabled: boolean
|
|
174
|
+
source: string
|
|
168
175
|
createdAt: Date
|
|
169
176
|
updatedAt: Date
|
|
170
177
|
_count: AgentPluginCountAggregateOutputType | null
|
|
@@ -196,6 +203,7 @@ export type AgentPluginWhereInput = {
|
|
|
196
203
|
name?: Prisma.StringFilter<"AgentPlugin"> | string
|
|
197
204
|
version?: Prisma.StringNullableFilter<"AgentPlugin"> | string | null
|
|
198
205
|
enabled?: Prisma.BoolFilter<"AgentPlugin"> | boolean
|
|
206
|
+
source?: Prisma.StringFilter<"AgentPlugin"> | string
|
|
199
207
|
createdAt?: Prisma.DateTimeFilter<"AgentPlugin"> | Date | string
|
|
200
208
|
updatedAt?: Prisma.DateTimeFilter<"AgentPlugin"> | Date | string
|
|
201
209
|
agent?: Prisma.XOR<Prisma.AgentScalarRelationFilter, Prisma.AgentWhereInput>
|
|
@@ -207,6 +215,7 @@ export type AgentPluginOrderByWithRelationInput = {
|
|
|
207
215
|
name?: Prisma.SortOrder
|
|
208
216
|
version?: Prisma.SortOrderInput | Prisma.SortOrder
|
|
209
217
|
enabled?: Prisma.SortOrder
|
|
218
|
+
source?: Prisma.SortOrder
|
|
210
219
|
createdAt?: Prisma.SortOrder
|
|
211
220
|
updatedAt?: Prisma.SortOrder
|
|
212
221
|
agent?: Prisma.AgentOrderByWithRelationInput
|
|
@@ -222,6 +231,7 @@ export type AgentPluginWhereUniqueInput = Prisma.AtLeast<{
|
|
|
222
231
|
name?: Prisma.StringFilter<"AgentPlugin"> | string
|
|
223
232
|
version?: Prisma.StringNullableFilter<"AgentPlugin"> | string | null
|
|
224
233
|
enabled?: Prisma.BoolFilter<"AgentPlugin"> | boolean
|
|
234
|
+
source?: Prisma.StringFilter<"AgentPlugin"> | string
|
|
225
235
|
createdAt?: Prisma.DateTimeFilter<"AgentPlugin"> | Date | string
|
|
226
236
|
updatedAt?: Prisma.DateTimeFilter<"AgentPlugin"> | Date | string
|
|
227
237
|
agent?: Prisma.XOR<Prisma.AgentScalarRelationFilter, Prisma.AgentWhereInput>
|
|
@@ -233,6 +243,7 @@ export type AgentPluginOrderByWithAggregationInput = {
|
|
|
233
243
|
name?: Prisma.SortOrder
|
|
234
244
|
version?: Prisma.SortOrderInput | Prisma.SortOrder
|
|
235
245
|
enabled?: Prisma.SortOrder
|
|
246
|
+
source?: Prisma.SortOrder
|
|
236
247
|
createdAt?: Prisma.SortOrder
|
|
237
248
|
updatedAt?: Prisma.SortOrder
|
|
238
249
|
_count?: Prisma.AgentPluginCountOrderByAggregateInput
|
|
@@ -249,6 +260,7 @@ export type AgentPluginScalarWhereWithAggregatesInput = {
|
|
|
249
260
|
name?: Prisma.StringWithAggregatesFilter<"AgentPlugin"> | string
|
|
250
261
|
version?: Prisma.StringNullableWithAggregatesFilter<"AgentPlugin"> | string | null
|
|
251
262
|
enabled?: Prisma.BoolWithAggregatesFilter<"AgentPlugin"> | boolean
|
|
263
|
+
source?: Prisma.StringWithAggregatesFilter<"AgentPlugin"> | string
|
|
252
264
|
createdAt?: Prisma.DateTimeWithAggregatesFilter<"AgentPlugin"> | Date | string
|
|
253
265
|
updatedAt?: Prisma.DateTimeWithAggregatesFilter<"AgentPlugin"> | Date | string
|
|
254
266
|
}
|
|
@@ -258,6 +270,7 @@ export type AgentPluginCreateInput = {
|
|
|
258
270
|
name: string
|
|
259
271
|
version?: string | null
|
|
260
272
|
enabled?: boolean
|
|
273
|
+
source?: string
|
|
261
274
|
createdAt?: Date | string
|
|
262
275
|
updatedAt?: Date | string
|
|
263
276
|
agent: Prisma.AgentCreateNestedOneWithoutPluginsInput
|
|
@@ -269,6 +282,7 @@ export type AgentPluginUncheckedCreateInput = {
|
|
|
269
282
|
name: string
|
|
270
283
|
version?: string | null
|
|
271
284
|
enabled?: boolean
|
|
285
|
+
source?: string
|
|
272
286
|
createdAt?: Date | string
|
|
273
287
|
updatedAt?: Date | string
|
|
274
288
|
}
|
|
@@ -278,6 +292,7 @@ export type AgentPluginUpdateInput = {
|
|
|
278
292
|
name?: Prisma.StringFieldUpdateOperationsInput | string
|
|
279
293
|
version?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
280
294
|
enabled?: Prisma.BoolFieldUpdateOperationsInput | boolean
|
|
295
|
+
source?: Prisma.StringFieldUpdateOperationsInput | string
|
|
281
296
|
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
282
297
|
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
283
298
|
agent?: Prisma.AgentUpdateOneRequiredWithoutPluginsNestedInput
|
|
@@ -289,6 +304,7 @@ export type AgentPluginUncheckedUpdateInput = {
|
|
|
289
304
|
name?: Prisma.StringFieldUpdateOperationsInput | string
|
|
290
305
|
version?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
291
306
|
enabled?: Prisma.BoolFieldUpdateOperationsInput | boolean
|
|
307
|
+
source?: Prisma.StringFieldUpdateOperationsInput | string
|
|
292
308
|
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
293
309
|
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
294
310
|
}
|
|
@@ -299,6 +315,7 @@ export type AgentPluginCreateManyInput = {
|
|
|
299
315
|
name: string
|
|
300
316
|
version?: string | null
|
|
301
317
|
enabled?: boolean
|
|
318
|
+
source?: string
|
|
302
319
|
createdAt?: Date | string
|
|
303
320
|
updatedAt?: Date | string
|
|
304
321
|
}
|
|
@@ -308,6 +325,7 @@ export type AgentPluginUpdateManyMutationInput = {
|
|
|
308
325
|
name?: Prisma.StringFieldUpdateOperationsInput | string
|
|
309
326
|
version?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
310
327
|
enabled?: Prisma.BoolFieldUpdateOperationsInput | boolean
|
|
328
|
+
source?: Prisma.StringFieldUpdateOperationsInput | string
|
|
311
329
|
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
312
330
|
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
313
331
|
}
|
|
@@ -318,6 +336,7 @@ export type AgentPluginUncheckedUpdateManyInput = {
|
|
|
318
336
|
name?: Prisma.StringFieldUpdateOperationsInput | string
|
|
319
337
|
version?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
320
338
|
enabled?: Prisma.BoolFieldUpdateOperationsInput | boolean
|
|
339
|
+
source?: Prisma.StringFieldUpdateOperationsInput | string
|
|
321
340
|
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
322
341
|
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
323
342
|
}
|
|
@@ -343,6 +362,7 @@ export type AgentPluginCountOrderByAggregateInput = {
|
|
|
343
362
|
name?: Prisma.SortOrder
|
|
344
363
|
version?: Prisma.SortOrder
|
|
345
364
|
enabled?: Prisma.SortOrder
|
|
365
|
+
source?: Prisma.SortOrder
|
|
346
366
|
createdAt?: Prisma.SortOrder
|
|
347
367
|
updatedAt?: Prisma.SortOrder
|
|
348
368
|
}
|
|
@@ -353,6 +373,7 @@ export type AgentPluginMaxOrderByAggregateInput = {
|
|
|
353
373
|
name?: Prisma.SortOrder
|
|
354
374
|
version?: Prisma.SortOrder
|
|
355
375
|
enabled?: Prisma.SortOrder
|
|
376
|
+
source?: Prisma.SortOrder
|
|
356
377
|
createdAt?: Prisma.SortOrder
|
|
357
378
|
updatedAt?: Prisma.SortOrder
|
|
358
379
|
}
|
|
@@ -363,6 +384,7 @@ export type AgentPluginMinOrderByAggregateInput = {
|
|
|
363
384
|
name?: Prisma.SortOrder
|
|
364
385
|
version?: Prisma.SortOrder
|
|
365
386
|
enabled?: Prisma.SortOrder
|
|
387
|
+
source?: Prisma.SortOrder
|
|
366
388
|
createdAt?: Prisma.SortOrder
|
|
367
389
|
updatedAt?: Prisma.SortOrder
|
|
368
390
|
}
|
|
@@ -414,6 +436,7 @@ export type AgentPluginCreateWithoutAgentInput = {
|
|
|
414
436
|
name: string
|
|
415
437
|
version?: string | null
|
|
416
438
|
enabled?: boolean
|
|
439
|
+
source?: string
|
|
417
440
|
createdAt?: Date | string
|
|
418
441
|
updatedAt?: Date | string
|
|
419
442
|
}
|
|
@@ -423,6 +446,7 @@ export type AgentPluginUncheckedCreateWithoutAgentInput = {
|
|
|
423
446
|
name: string
|
|
424
447
|
version?: string | null
|
|
425
448
|
enabled?: boolean
|
|
449
|
+
source?: string
|
|
426
450
|
createdAt?: Date | string
|
|
427
451
|
updatedAt?: Date | string
|
|
428
452
|
}
|
|
@@ -462,6 +486,7 @@ export type AgentPluginScalarWhereInput = {
|
|
|
462
486
|
name?: Prisma.StringFilter<"AgentPlugin"> | string
|
|
463
487
|
version?: Prisma.StringNullableFilter<"AgentPlugin"> | string | null
|
|
464
488
|
enabled?: Prisma.BoolFilter<"AgentPlugin"> | boolean
|
|
489
|
+
source?: Prisma.StringFilter<"AgentPlugin"> | string
|
|
465
490
|
createdAt?: Prisma.DateTimeFilter<"AgentPlugin"> | Date | string
|
|
466
491
|
updatedAt?: Prisma.DateTimeFilter<"AgentPlugin"> | Date | string
|
|
467
492
|
}
|
|
@@ -471,6 +496,7 @@ export type AgentPluginCreateManyAgentInput = {
|
|
|
471
496
|
name: string
|
|
472
497
|
version?: string | null
|
|
473
498
|
enabled?: boolean
|
|
499
|
+
source?: string
|
|
474
500
|
createdAt?: Date | string
|
|
475
501
|
updatedAt?: Date | string
|
|
476
502
|
}
|
|
@@ -480,6 +506,7 @@ export type AgentPluginUpdateWithoutAgentInput = {
|
|
|
480
506
|
name?: Prisma.StringFieldUpdateOperationsInput | string
|
|
481
507
|
version?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
482
508
|
enabled?: Prisma.BoolFieldUpdateOperationsInput | boolean
|
|
509
|
+
source?: Prisma.StringFieldUpdateOperationsInput | string
|
|
483
510
|
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
484
511
|
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
485
512
|
}
|
|
@@ -489,6 +516,7 @@ export type AgentPluginUncheckedUpdateWithoutAgentInput = {
|
|
|
489
516
|
name?: Prisma.StringFieldUpdateOperationsInput | string
|
|
490
517
|
version?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
491
518
|
enabled?: Prisma.BoolFieldUpdateOperationsInput | boolean
|
|
519
|
+
source?: Prisma.StringFieldUpdateOperationsInput | string
|
|
492
520
|
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
493
521
|
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
494
522
|
}
|
|
@@ -498,6 +526,7 @@ export type AgentPluginUncheckedUpdateManyWithoutAgentInput = {
|
|
|
498
526
|
name?: Prisma.StringFieldUpdateOperationsInput | string
|
|
499
527
|
version?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
500
528
|
enabled?: Prisma.BoolFieldUpdateOperationsInput | boolean
|
|
529
|
+
source?: Prisma.StringFieldUpdateOperationsInput | string
|
|
501
530
|
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
502
531
|
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
503
532
|
}
|
|
@@ -510,6 +539,7 @@ export type AgentPluginSelect<ExtArgs extends runtime.Types.Extensions.InternalA
|
|
|
510
539
|
name?: boolean
|
|
511
540
|
version?: boolean
|
|
512
541
|
enabled?: boolean
|
|
542
|
+
source?: boolean
|
|
513
543
|
createdAt?: boolean
|
|
514
544
|
updatedAt?: boolean
|
|
515
545
|
agent?: boolean | Prisma.AgentDefaultArgs<ExtArgs>
|
|
@@ -521,6 +551,7 @@ export type AgentPluginSelectCreateManyAndReturn<ExtArgs extends runtime.Types.E
|
|
|
521
551
|
name?: boolean
|
|
522
552
|
version?: boolean
|
|
523
553
|
enabled?: boolean
|
|
554
|
+
source?: boolean
|
|
524
555
|
createdAt?: boolean
|
|
525
556
|
updatedAt?: boolean
|
|
526
557
|
agent?: boolean | Prisma.AgentDefaultArgs<ExtArgs>
|
|
@@ -532,6 +563,7 @@ export type AgentPluginSelectUpdateManyAndReturn<ExtArgs extends runtime.Types.E
|
|
|
532
563
|
name?: boolean
|
|
533
564
|
version?: boolean
|
|
534
565
|
enabled?: boolean
|
|
566
|
+
source?: boolean
|
|
535
567
|
createdAt?: boolean
|
|
536
568
|
updatedAt?: boolean
|
|
537
569
|
agent?: boolean | Prisma.AgentDefaultArgs<ExtArgs>
|
|
@@ -543,11 +575,12 @@ export type AgentPluginSelectScalar = {
|
|
|
543
575
|
name?: boolean
|
|
544
576
|
version?: boolean
|
|
545
577
|
enabled?: boolean
|
|
578
|
+
source?: boolean
|
|
546
579
|
createdAt?: boolean
|
|
547
580
|
updatedAt?: boolean
|
|
548
581
|
}
|
|
549
582
|
|
|
550
|
-
export type AgentPluginOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"id" | "agentId" | "name" | "version" | "enabled" | "createdAt" | "updatedAt", ExtArgs["result"]["agentPlugin"]>
|
|
583
|
+
export type AgentPluginOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"id" | "agentId" | "name" | "version" | "enabled" | "source" | "createdAt" | "updatedAt", ExtArgs["result"]["agentPlugin"]>
|
|
551
584
|
export type AgentPluginInclude<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
552
585
|
agent?: boolean | Prisma.AgentDefaultArgs<ExtArgs>
|
|
553
586
|
}
|
|
@@ -569,6 +602,7 @@ export type $AgentPluginPayload<ExtArgs extends runtime.Types.Extensions.Interna
|
|
|
569
602
|
name: string
|
|
570
603
|
version: string | null
|
|
571
604
|
enabled: boolean
|
|
605
|
+
source: string
|
|
572
606
|
createdAt: Date
|
|
573
607
|
updatedAt: Date
|
|
574
608
|
}, ExtArgs["result"]["agentPlugin"]>
|
|
@@ -1000,6 +1034,7 @@ export interface AgentPluginFieldRefs {
|
|
|
1000
1034
|
readonly name: Prisma.FieldRef<"AgentPlugin", 'String'>
|
|
1001
1035
|
readonly version: Prisma.FieldRef<"AgentPlugin", 'String'>
|
|
1002
1036
|
readonly enabled: Prisma.FieldRef<"AgentPlugin", 'Boolean'>
|
|
1037
|
+
readonly source: Prisma.FieldRef<"AgentPlugin", 'String'>
|
|
1003
1038
|
readonly createdAt: Prisma.FieldRef<"AgentPlugin", 'DateTime'>
|
|
1004
1039
|
readonly updatedAt: Prisma.FieldRef<"AgentPlugin", 'DateTime'>
|
|
1005
1040
|
}
|