@allbluecn/database 0.12.3 → 0.14.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/generated/internal/class.ts +4 -4
- package/generated/internal/prismaNamespace.ts +4 -1
- package/generated/internal/prismaNamespaceBrowser.ts +4 -1
- package/generated/models/ChatThread.ts +199 -1
- package/migrations/20261101040000_add_chat_thread_engine/migration.sql +4 -0
- package/migrations/20261104100000_add_chat_thread_local_agent_id/migration.sql +4 -0
- package/package.json +3 -1
- package/pglite-init.ts +14 -0
- package/pglite-seed.ts +63 -0
- package/schema.prisma +6 -0
|
@@ -11542,7 +11542,10 @@ export const ChatThreadScalarFieldEnum = {
|
|
|
11542
11542
|
createdAt: 'createdAt',
|
|
11543
11543
|
updatedAt: 'updatedAt',
|
|
11544
11544
|
agentId: 'agentId',
|
|
11545
|
-
workspaceId: 'workspaceId'
|
|
11545
|
+
workspaceId: 'workspaceId',
|
|
11546
|
+
engine: 'engine',
|
|
11547
|
+
localCwd: 'localCwd',
|
|
11548
|
+
localAgentId: 'localAgentId'
|
|
11546
11549
|
} as const
|
|
11547
11550
|
|
|
11548
11551
|
export type ChatThreadScalarFieldEnum = (typeof ChatThreadScalarFieldEnum)[keyof typeof ChatThreadScalarFieldEnum]
|
|
@@ -397,7 +397,10 @@ export const ChatThreadScalarFieldEnum = {
|
|
|
397
397
|
createdAt: 'createdAt',
|
|
398
398
|
updatedAt: 'updatedAt',
|
|
399
399
|
agentId: 'agentId',
|
|
400
|
-
workspaceId: 'workspaceId'
|
|
400
|
+
workspaceId: 'workspaceId',
|
|
401
|
+
engine: 'engine',
|
|
402
|
+
localCwd: 'localCwd',
|
|
403
|
+
localAgentId: 'localAgentId'
|
|
401
404
|
} as const
|
|
402
405
|
|
|
403
406
|
export type ChatThreadScalarFieldEnum = (typeof ChatThreadScalarFieldEnum)[keyof typeof ChatThreadScalarFieldEnum]
|
|
@@ -34,6 +34,9 @@ export type ChatThreadMinAggregateOutputType = {
|
|
|
34
34
|
updatedAt: Date | null
|
|
35
35
|
agentId: string | null
|
|
36
36
|
workspaceId: string | null
|
|
37
|
+
engine: string | null
|
|
38
|
+
localCwd: string | null
|
|
39
|
+
localAgentId: string | null
|
|
37
40
|
}
|
|
38
41
|
|
|
39
42
|
export type ChatThreadMaxAggregateOutputType = {
|
|
@@ -46,6 +49,9 @@ export type ChatThreadMaxAggregateOutputType = {
|
|
|
46
49
|
updatedAt: Date | null
|
|
47
50
|
agentId: string | null
|
|
48
51
|
workspaceId: string | null
|
|
52
|
+
engine: string | null
|
|
53
|
+
localCwd: string | null
|
|
54
|
+
localAgentId: string | null
|
|
49
55
|
}
|
|
50
56
|
|
|
51
57
|
export type ChatThreadCountAggregateOutputType = {
|
|
@@ -58,6 +64,9 @@ export type ChatThreadCountAggregateOutputType = {
|
|
|
58
64
|
updatedAt: number
|
|
59
65
|
agentId: number
|
|
60
66
|
workspaceId: number
|
|
67
|
+
engine: number
|
|
68
|
+
localCwd: number
|
|
69
|
+
localAgentId: number
|
|
61
70
|
_all: number
|
|
62
71
|
}
|
|
63
72
|
|
|
@@ -72,6 +81,9 @@ export type ChatThreadMinAggregateInputType = {
|
|
|
72
81
|
updatedAt?: true
|
|
73
82
|
agentId?: true
|
|
74
83
|
workspaceId?: true
|
|
84
|
+
engine?: true
|
|
85
|
+
localCwd?: true
|
|
86
|
+
localAgentId?: true
|
|
75
87
|
}
|
|
76
88
|
|
|
77
89
|
export type ChatThreadMaxAggregateInputType = {
|
|
@@ -84,6 +96,9 @@ export type ChatThreadMaxAggregateInputType = {
|
|
|
84
96
|
updatedAt?: true
|
|
85
97
|
agentId?: true
|
|
86
98
|
workspaceId?: true
|
|
99
|
+
engine?: true
|
|
100
|
+
localCwd?: true
|
|
101
|
+
localAgentId?: true
|
|
87
102
|
}
|
|
88
103
|
|
|
89
104
|
export type ChatThreadCountAggregateInputType = {
|
|
@@ -96,6 +111,9 @@ export type ChatThreadCountAggregateInputType = {
|
|
|
96
111
|
updatedAt?: true
|
|
97
112
|
agentId?: true
|
|
98
113
|
workspaceId?: true
|
|
114
|
+
engine?: true
|
|
115
|
+
localCwd?: true
|
|
116
|
+
localAgentId?: true
|
|
99
117
|
_all?: true
|
|
100
118
|
}
|
|
101
119
|
|
|
@@ -181,6 +199,9 @@ export type ChatThreadGroupByOutputType = {
|
|
|
181
199
|
updatedAt: Date
|
|
182
200
|
agentId: string | null
|
|
183
201
|
workspaceId: string | null
|
|
202
|
+
engine: string
|
|
203
|
+
localCwd: string | null
|
|
204
|
+
localAgentId: string | null
|
|
184
205
|
_count: ChatThreadCountAggregateOutputType | null
|
|
185
206
|
_min: ChatThreadMinAggregateOutputType | null
|
|
186
207
|
_max: ChatThreadMaxAggregateOutputType | null
|
|
@@ -214,6 +235,9 @@ export type ChatThreadWhereInput = {
|
|
|
214
235
|
updatedAt?: Prisma.DateTimeFilter<"ChatThread"> | Date | string
|
|
215
236
|
agentId?: Prisma.StringNullableFilter<"ChatThread"> | string | null
|
|
216
237
|
workspaceId?: Prisma.StringNullableFilter<"ChatThread"> | string | null
|
|
238
|
+
engine?: Prisma.StringFilter<"ChatThread"> | string
|
|
239
|
+
localCwd?: Prisma.StringNullableFilter<"ChatThread"> | string | null
|
|
240
|
+
localAgentId?: Prisma.StringNullableFilter<"ChatThread"> | string | null
|
|
217
241
|
user?: Prisma.XOR<Prisma.UserScalarRelationFilter, Prisma.UserWhereInput>
|
|
218
242
|
messages?: Prisma.ChatMessageListRelationFilter
|
|
219
243
|
runs?: Prisma.ChatRunListRelationFilter
|
|
@@ -233,6 +257,9 @@ export type ChatThreadOrderByWithRelationInput = {
|
|
|
233
257
|
updatedAt?: Prisma.SortOrder
|
|
234
258
|
agentId?: Prisma.SortOrderInput | Prisma.SortOrder
|
|
235
259
|
workspaceId?: Prisma.SortOrderInput | Prisma.SortOrder
|
|
260
|
+
engine?: Prisma.SortOrder
|
|
261
|
+
localCwd?: Prisma.SortOrderInput | Prisma.SortOrder
|
|
262
|
+
localAgentId?: Prisma.SortOrderInput | Prisma.SortOrder
|
|
236
263
|
user?: Prisma.UserOrderByWithRelationInput
|
|
237
264
|
messages?: Prisma.ChatMessageOrderByRelationAggregateInput
|
|
238
265
|
runs?: Prisma.ChatRunOrderByRelationAggregateInput
|
|
@@ -255,6 +282,9 @@ export type ChatThreadWhereUniqueInput = Prisma.AtLeast<{
|
|
|
255
282
|
updatedAt?: Prisma.DateTimeFilter<"ChatThread"> | Date | string
|
|
256
283
|
agentId?: Prisma.StringNullableFilter<"ChatThread"> | string | null
|
|
257
284
|
workspaceId?: Prisma.StringNullableFilter<"ChatThread"> | string | null
|
|
285
|
+
engine?: Prisma.StringFilter<"ChatThread"> | string
|
|
286
|
+
localCwd?: Prisma.StringNullableFilter<"ChatThread"> | string | null
|
|
287
|
+
localAgentId?: Prisma.StringNullableFilter<"ChatThread"> | string | null
|
|
258
288
|
user?: Prisma.XOR<Prisma.UserScalarRelationFilter, Prisma.UserWhereInput>
|
|
259
289
|
messages?: Prisma.ChatMessageListRelationFilter
|
|
260
290
|
runs?: Prisma.ChatRunListRelationFilter
|
|
@@ -274,6 +304,9 @@ export type ChatThreadOrderByWithAggregationInput = {
|
|
|
274
304
|
updatedAt?: Prisma.SortOrder
|
|
275
305
|
agentId?: Prisma.SortOrderInput | Prisma.SortOrder
|
|
276
306
|
workspaceId?: Prisma.SortOrderInput | Prisma.SortOrder
|
|
307
|
+
engine?: Prisma.SortOrder
|
|
308
|
+
localCwd?: Prisma.SortOrderInput | Prisma.SortOrder
|
|
309
|
+
localAgentId?: Prisma.SortOrderInput | Prisma.SortOrder
|
|
277
310
|
_count?: Prisma.ChatThreadCountOrderByAggregateInput
|
|
278
311
|
_max?: Prisma.ChatThreadMaxOrderByAggregateInput
|
|
279
312
|
_min?: Prisma.ChatThreadMinOrderByAggregateInput
|
|
@@ -292,6 +325,9 @@ export type ChatThreadScalarWhereWithAggregatesInput = {
|
|
|
292
325
|
updatedAt?: Prisma.DateTimeWithAggregatesFilter<"ChatThread"> | Date | string
|
|
293
326
|
agentId?: Prisma.StringNullableWithAggregatesFilter<"ChatThread"> | string | null
|
|
294
327
|
workspaceId?: Prisma.StringNullableWithAggregatesFilter<"ChatThread"> | string | null
|
|
328
|
+
engine?: Prisma.StringWithAggregatesFilter<"ChatThread"> | string
|
|
329
|
+
localCwd?: Prisma.StringNullableWithAggregatesFilter<"ChatThread"> | string | null
|
|
330
|
+
localAgentId?: Prisma.StringNullableWithAggregatesFilter<"ChatThread"> | string | null
|
|
295
331
|
}
|
|
296
332
|
|
|
297
333
|
export type ChatThreadCreateInput = {
|
|
@@ -301,6 +337,9 @@ export type ChatThreadCreateInput = {
|
|
|
301
337
|
sandboxPolicy?: string
|
|
302
338
|
createdAt?: Date | string
|
|
303
339
|
updatedAt?: Date | string
|
|
340
|
+
engine?: string
|
|
341
|
+
localCwd?: string | null
|
|
342
|
+
localAgentId?: string | null
|
|
304
343
|
user: Prisma.UserCreateNestedOneWithoutChatThreadsInput
|
|
305
344
|
messages?: Prisma.ChatMessageCreateNestedManyWithoutThreadInput
|
|
306
345
|
runs?: Prisma.ChatRunCreateNestedManyWithoutThreadInput
|
|
@@ -320,6 +359,9 @@ export type ChatThreadUncheckedCreateInput = {
|
|
|
320
359
|
updatedAt?: Date | string
|
|
321
360
|
agentId?: string | null
|
|
322
361
|
workspaceId?: string | null
|
|
362
|
+
engine?: string
|
|
363
|
+
localCwd?: string | null
|
|
364
|
+
localAgentId?: string | null
|
|
323
365
|
messages?: Prisma.ChatMessageUncheckedCreateNestedManyWithoutThreadInput
|
|
324
366
|
runs?: Prisma.ChatRunUncheckedCreateNestedManyWithoutThreadInput
|
|
325
367
|
interrupts?: Prisma.ChatInterruptUncheckedCreateNestedManyWithoutThreadInput
|
|
@@ -333,6 +375,9 @@ export type ChatThreadUpdateInput = {
|
|
|
333
375
|
sandboxPolicy?: Prisma.StringFieldUpdateOperationsInput | string
|
|
334
376
|
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
335
377
|
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
378
|
+
engine?: Prisma.StringFieldUpdateOperationsInput | string
|
|
379
|
+
localCwd?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
380
|
+
localAgentId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
336
381
|
user?: Prisma.UserUpdateOneRequiredWithoutChatThreadsNestedInput
|
|
337
382
|
messages?: Prisma.ChatMessageUpdateManyWithoutThreadNestedInput
|
|
338
383
|
runs?: Prisma.ChatRunUpdateManyWithoutThreadNestedInput
|
|
@@ -352,6 +397,9 @@ export type ChatThreadUncheckedUpdateInput = {
|
|
|
352
397
|
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
353
398
|
agentId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
354
399
|
workspaceId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
400
|
+
engine?: Prisma.StringFieldUpdateOperationsInput | string
|
|
401
|
+
localCwd?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
402
|
+
localAgentId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
355
403
|
messages?: Prisma.ChatMessageUncheckedUpdateManyWithoutThreadNestedInput
|
|
356
404
|
runs?: Prisma.ChatRunUncheckedUpdateManyWithoutThreadNestedInput
|
|
357
405
|
interrupts?: Prisma.ChatInterruptUncheckedUpdateManyWithoutThreadNestedInput
|
|
@@ -368,6 +416,9 @@ export type ChatThreadCreateManyInput = {
|
|
|
368
416
|
updatedAt?: Date | string
|
|
369
417
|
agentId?: string | null
|
|
370
418
|
workspaceId?: string | null
|
|
419
|
+
engine?: string
|
|
420
|
+
localCwd?: string | null
|
|
421
|
+
localAgentId?: string | null
|
|
371
422
|
}
|
|
372
423
|
|
|
373
424
|
export type ChatThreadUpdateManyMutationInput = {
|
|
@@ -377,6 +428,9 @@ export type ChatThreadUpdateManyMutationInput = {
|
|
|
377
428
|
sandboxPolicy?: Prisma.StringFieldUpdateOperationsInput | string
|
|
378
429
|
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
379
430
|
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
431
|
+
engine?: Prisma.StringFieldUpdateOperationsInput | string
|
|
432
|
+
localCwd?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
433
|
+
localAgentId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
380
434
|
}
|
|
381
435
|
|
|
382
436
|
export type ChatThreadUncheckedUpdateManyInput = {
|
|
@@ -389,6 +443,9 @@ export type ChatThreadUncheckedUpdateManyInput = {
|
|
|
389
443
|
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
390
444
|
agentId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
391
445
|
workspaceId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
446
|
+
engine?: Prisma.StringFieldUpdateOperationsInput | string
|
|
447
|
+
localCwd?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
448
|
+
localAgentId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
392
449
|
}
|
|
393
450
|
|
|
394
451
|
export type ChatThreadListRelationFilter = {
|
|
@@ -411,6 +468,9 @@ export type ChatThreadCountOrderByAggregateInput = {
|
|
|
411
468
|
updatedAt?: Prisma.SortOrder
|
|
412
469
|
agentId?: Prisma.SortOrder
|
|
413
470
|
workspaceId?: Prisma.SortOrder
|
|
471
|
+
engine?: Prisma.SortOrder
|
|
472
|
+
localCwd?: Prisma.SortOrder
|
|
473
|
+
localAgentId?: Prisma.SortOrder
|
|
414
474
|
}
|
|
415
475
|
|
|
416
476
|
export type ChatThreadMaxOrderByAggregateInput = {
|
|
@@ -423,6 +483,9 @@ export type ChatThreadMaxOrderByAggregateInput = {
|
|
|
423
483
|
updatedAt?: Prisma.SortOrder
|
|
424
484
|
agentId?: Prisma.SortOrder
|
|
425
485
|
workspaceId?: Prisma.SortOrder
|
|
486
|
+
engine?: Prisma.SortOrder
|
|
487
|
+
localCwd?: Prisma.SortOrder
|
|
488
|
+
localAgentId?: Prisma.SortOrder
|
|
426
489
|
}
|
|
427
490
|
|
|
428
491
|
export type ChatThreadMinOrderByAggregateInput = {
|
|
@@ -435,6 +498,9 @@ export type ChatThreadMinOrderByAggregateInput = {
|
|
|
435
498
|
updatedAt?: Prisma.SortOrder
|
|
436
499
|
agentId?: Prisma.SortOrder
|
|
437
500
|
workspaceId?: Prisma.SortOrder
|
|
501
|
+
engine?: Prisma.SortOrder
|
|
502
|
+
localCwd?: Prisma.SortOrder
|
|
503
|
+
localAgentId?: Prisma.SortOrder
|
|
438
504
|
}
|
|
439
505
|
|
|
440
506
|
export type ChatThreadScalarRelationFilter = {
|
|
@@ -631,6 +697,9 @@ export type ChatThreadCreateWithoutUserInput = {
|
|
|
631
697
|
sandboxPolicy?: string
|
|
632
698
|
createdAt?: Date | string
|
|
633
699
|
updatedAt?: Date | string
|
|
700
|
+
engine?: string
|
|
701
|
+
localCwd?: string | null
|
|
702
|
+
localAgentId?: string | null
|
|
634
703
|
messages?: Prisma.ChatMessageCreateNestedManyWithoutThreadInput
|
|
635
704
|
runs?: Prisma.ChatRunCreateNestedManyWithoutThreadInput
|
|
636
705
|
interrupts?: Prisma.ChatInterruptCreateNestedManyWithoutThreadInput
|
|
@@ -648,6 +717,9 @@ export type ChatThreadUncheckedCreateWithoutUserInput = {
|
|
|
648
717
|
updatedAt?: Date | string
|
|
649
718
|
agentId?: string | null
|
|
650
719
|
workspaceId?: string | null
|
|
720
|
+
engine?: string
|
|
721
|
+
localCwd?: string | null
|
|
722
|
+
localAgentId?: string | null
|
|
651
723
|
messages?: Prisma.ChatMessageUncheckedCreateNestedManyWithoutThreadInput
|
|
652
724
|
runs?: Prisma.ChatRunUncheckedCreateNestedManyWithoutThreadInput
|
|
653
725
|
interrupts?: Prisma.ChatInterruptUncheckedCreateNestedManyWithoutThreadInput
|
|
@@ -693,6 +765,9 @@ export type ChatThreadScalarWhereInput = {
|
|
|
693
765
|
updatedAt?: Prisma.DateTimeFilter<"ChatThread"> | Date | string
|
|
694
766
|
agentId?: Prisma.StringNullableFilter<"ChatThread"> | string | null
|
|
695
767
|
workspaceId?: Prisma.StringNullableFilter<"ChatThread"> | string | null
|
|
768
|
+
engine?: Prisma.StringFilter<"ChatThread"> | string
|
|
769
|
+
localCwd?: Prisma.StringNullableFilter<"ChatThread"> | string | null
|
|
770
|
+
localAgentId?: Prisma.StringNullableFilter<"ChatThread"> | string | null
|
|
696
771
|
}
|
|
697
772
|
|
|
698
773
|
export type ChatThreadCreateWithoutMessagesInput = {
|
|
@@ -702,6 +777,9 @@ export type ChatThreadCreateWithoutMessagesInput = {
|
|
|
702
777
|
sandboxPolicy?: string
|
|
703
778
|
createdAt?: Date | string
|
|
704
779
|
updatedAt?: Date | string
|
|
780
|
+
engine?: string
|
|
781
|
+
localCwd?: string | null
|
|
782
|
+
localAgentId?: string | null
|
|
705
783
|
user: Prisma.UserCreateNestedOneWithoutChatThreadsInput
|
|
706
784
|
runs?: Prisma.ChatRunCreateNestedManyWithoutThreadInput
|
|
707
785
|
interrupts?: Prisma.ChatInterruptCreateNestedManyWithoutThreadInput
|
|
@@ -720,6 +798,9 @@ export type ChatThreadUncheckedCreateWithoutMessagesInput = {
|
|
|
720
798
|
updatedAt?: Date | string
|
|
721
799
|
agentId?: string | null
|
|
722
800
|
workspaceId?: string | null
|
|
801
|
+
engine?: string
|
|
802
|
+
localCwd?: string | null
|
|
803
|
+
localAgentId?: string | null
|
|
723
804
|
runs?: Prisma.ChatRunUncheckedCreateNestedManyWithoutThreadInput
|
|
724
805
|
interrupts?: Prisma.ChatInterruptUncheckedCreateNestedManyWithoutThreadInput
|
|
725
806
|
generations?: Prisma.GenerationRunUncheckedCreateNestedManyWithoutThreadInput
|
|
@@ -748,6 +829,9 @@ export type ChatThreadUpdateWithoutMessagesInput = {
|
|
|
748
829
|
sandboxPolicy?: Prisma.StringFieldUpdateOperationsInput | string
|
|
749
830
|
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
750
831
|
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
832
|
+
engine?: Prisma.StringFieldUpdateOperationsInput | string
|
|
833
|
+
localCwd?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
834
|
+
localAgentId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
751
835
|
user?: Prisma.UserUpdateOneRequiredWithoutChatThreadsNestedInput
|
|
752
836
|
runs?: Prisma.ChatRunUpdateManyWithoutThreadNestedInput
|
|
753
837
|
interrupts?: Prisma.ChatInterruptUpdateManyWithoutThreadNestedInput
|
|
@@ -766,6 +850,9 @@ export type ChatThreadUncheckedUpdateWithoutMessagesInput = {
|
|
|
766
850
|
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
767
851
|
agentId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
768
852
|
workspaceId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
853
|
+
engine?: Prisma.StringFieldUpdateOperationsInput | string
|
|
854
|
+
localCwd?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
855
|
+
localAgentId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
769
856
|
runs?: Prisma.ChatRunUncheckedUpdateManyWithoutThreadNestedInput
|
|
770
857
|
interrupts?: Prisma.ChatInterruptUncheckedUpdateManyWithoutThreadNestedInput
|
|
771
858
|
generations?: Prisma.GenerationRunUncheckedUpdateManyWithoutThreadNestedInput
|
|
@@ -778,6 +865,9 @@ export type ChatThreadCreateWithoutRunsInput = {
|
|
|
778
865
|
sandboxPolicy?: string
|
|
779
866
|
createdAt?: Date | string
|
|
780
867
|
updatedAt?: Date | string
|
|
868
|
+
engine?: string
|
|
869
|
+
localCwd?: string | null
|
|
870
|
+
localAgentId?: string | null
|
|
781
871
|
user: Prisma.UserCreateNestedOneWithoutChatThreadsInput
|
|
782
872
|
messages?: Prisma.ChatMessageCreateNestedManyWithoutThreadInput
|
|
783
873
|
interrupts?: Prisma.ChatInterruptCreateNestedManyWithoutThreadInput
|
|
@@ -796,6 +886,9 @@ export type ChatThreadUncheckedCreateWithoutRunsInput = {
|
|
|
796
886
|
updatedAt?: Date | string
|
|
797
887
|
agentId?: string | null
|
|
798
888
|
workspaceId?: string | null
|
|
889
|
+
engine?: string
|
|
890
|
+
localCwd?: string | null
|
|
891
|
+
localAgentId?: string | null
|
|
799
892
|
messages?: Prisma.ChatMessageUncheckedCreateNestedManyWithoutThreadInput
|
|
800
893
|
interrupts?: Prisma.ChatInterruptUncheckedCreateNestedManyWithoutThreadInput
|
|
801
894
|
generations?: Prisma.GenerationRunUncheckedCreateNestedManyWithoutThreadInput
|
|
@@ -824,6 +917,9 @@ export type ChatThreadUpdateWithoutRunsInput = {
|
|
|
824
917
|
sandboxPolicy?: Prisma.StringFieldUpdateOperationsInput | string
|
|
825
918
|
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
826
919
|
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
920
|
+
engine?: Prisma.StringFieldUpdateOperationsInput | string
|
|
921
|
+
localCwd?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
922
|
+
localAgentId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
827
923
|
user?: Prisma.UserUpdateOneRequiredWithoutChatThreadsNestedInput
|
|
828
924
|
messages?: Prisma.ChatMessageUpdateManyWithoutThreadNestedInput
|
|
829
925
|
interrupts?: Prisma.ChatInterruptUpdateManyWithoutThreadNestedInput
|
|
@@ -842,6 +938,9 @@ export type ChatThreadUncheckedUpdateWithoutRunsInput = {
|
|
|
842
938
|
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
843
939
|
agentId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
844
940
|
workspaceId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
941
|
+
engine?: Prisma.StringFieldUpdateOperationsInput | string
|
|
942
|
+
localCwd?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
943
|
+
localAgentId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
845
944
|
messages?: Prisma.ChatMessageUncheckedUpdateManyWithoutThreadNestedInput
|
|
846
945
|
interrupts?: Prisma.ChatInterruptUncheckedUpdateManyWithoutThreadNestedInput
|
|
847
946
|
generations?: Prisma.GenerationRunUncheckedUpdateManyWithoutThreadNestedInput
|
|
@@ -854,6 +953,9 @@ export type ChatThreadCreateWithoutInterruptsInput = {
|
|
|
854
953
|
sandboxPolicy?: string
|
|
855
954
|
createdAt?: Date | string
|
|
856
955
|
updatedAt?: Date | string
|
|
956
|
+
engine?: string
|
|
957
|
+
localCwd?: string | null
|
|
958
|
+
localAgentId?: string | null
|
|
857
959
|
user: Prisma.UserCreateNestedOneWithoutChatThreadsInput
|
|
858
960
|
messages?: Prisma.ChatMessageCreateNestedManyWithoutThreadInput
|
|
859
961
|
runs?: Prisma.ChatRunCreateNestedManyWithoutThreadInput
|
|
@@ -872,6 +974,9 @@ export type ChatThreadUncheckedCreateWithoutInterruptsInput = {
|
|
|
872
974
|
updatedAt?: Date | string
|
|
873
975
|
agentId?: string | null
|
|
874
976
|
workspaceId?: string | null
|
|
977
|
+
engine?: string
|
|
978
|
+
localCwd?: string | null
|
|
979
|
+
localAgentId?: string | null
|
|
875
980
|
messages?: Prisma.ChatMessageUncheckedCreateNestedManyWithoutThreadInput
|
|
876
981
|
runs?: Prisma.ChatRunUncheckedCreateNestedManyWithoutThreadInput
|
|
877
982
|
generations?: Prisma.GenerationRunUncheckedCreateNestedManyWithoutThreadInput
|
|
@@ -900,6 +1005,9 @@ export type ChatThreadUpdateWithoutInterruptsInput = {
|
|
|
900
1005
|
sandboxPolicy?: Prisma.StringFieldUpdateOperationsInput | string
|
|
901
1006
|
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
902
1007
|
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
1008
|
+
engine?: Prisma.StringFieldUpdateOperationsInput | string
|
|
1009
|
+
localCwd?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
1010
|
+
localAgentId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
903
1011
|
user?: Prisma.UserUpdateOneRequiredWithoutChatThreadsNestedInput
|
|
904
1012
|
messages?: Prisma.ChatMessageUpdateManyWithoutThreadNestedInput
|
|
905
1013
|
runs?: Prisma.ChatRunUpdateManyWithoutThreadNestedInput
|
|
@@ -918,6 +1026,9 @@ export type ChatThreadUncheckedUpdateWithoutInterruptsInput = {
|
|
|
918
1026
|
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
919
1027
|
agentId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
920
1028
|
workspaceId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
1029
|
+
engine?: Prisma.StringFieldUpdateOperationsInput | string
|
|
1030
|
+
localCwd?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
1031
|
+
localAgentId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
921
1032
|
messages?: Prisma.ChatMessageUncheckedUpdateManyWithoutThreadNestedInput
|
|
922
1033
|
runs?: Prisma.ChatRunUncheckedUpdateManyWithoutThreadNestedInput
|
|
923
1034
|
generations?: Prisma.GenerationRunUncheckedUpdateManyWithoutThreadNestedInput
|
|
@@ -930,6 +1041,9 @@ export type ChatThreadCreateWithoutGenerationsInput = {
|
|
|
930
1041
|
sandboxPolicy?: string
|
|
931
1042
|
createdAt?: Date | string
|
|
932
1043
|
updatedAt?: Date | string
|
|
1044
|
+
engine?: string
|
|
1045
|
+
localCwd?: string | null
|
|
1046
|
+
localAgentId?: string | null
|
|
933
1047
|
user: Prisma.UserCreateNestedOneWithoutChatThreadsInput
|
|
934
1048
|
messages?: Prisma.ChatMessageCreateNestedManyWithoutThreadInput
|
|
935
1049
|
runs?: Prisma.ChatRunCreateNestedManyWithoutThreadInput
|
|
@@ -948,6 +1062,9 @@ export type ChatThreadUncheckedCreateWithoutGenerationsInput = {
|
|
|
948
1062
|
updatedAt?: Date | string
|
|
949
1063
|
agentId?: string | null
|
|
950
1064
|
workspaceId?: string | null
|
|
1065
|
+
engine?: string
|
|
1066
|
+
localCwd?: string | null
|
|
1067
|
+
localAgentId?: string | null
|
|
951
1068
|
messages?: Prisma.ChatMessageUncheckedCreateNestedManyWithoutThreadInput
|
|
952
1069
|
runs?: Prisma.ChatRunUncheckedCreateNestedManyWithoutThreadInput
|
|
953
1070
|
interrupts?: Prisma.ChatInterruptUncheckedCreateNestedManyWithoutThreadInput
|
|
@@ -976,6 +1093,9 @@ export type ChatThreadUpdateWithoutGenerationsInput = {
|
|
|
976
1093
|
sandboxPolicy?: Prisma.StringFieldUpdateOperationsInput | string
|
|
977
1094
|
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
978
1095
|
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
1096
|
+
engine?: Prisma.StringFieldUpdateOperationsInput | string
|
|
1097
|
+
localCwd?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
1098
|
+
localAgentId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
979
1099
|
user?: Prisma.UserUpdateOneRequiredWithoutChatThreadsNestedInput
|
|
980
1100
|
messages?: Prisma.ChatMessageUpdateManyWithoutThreadNestedInput
|
|
981
1101
|
runs?: Prisma.ChatRunUpdateManyWithoutThreadNestedInput
|
|
@@ -994,6 +1114,9 @@ export type ChatThreadUncheckedUpdateWithoutGenerationsInput = {
|
|
|
994
1114
|
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
995
1115
|
agentId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
996
1116
|
workspaceId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
1117
|
+
engine?: Prisma.StringFieldUpdateOperationsInput | string
|
|
1118
|
+
localCwd?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
1119
|
+
localAgentId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
997
1120
|
messages?: Prisma.ChatMessageUncheckedUpdateManyWithoutThreadNestedInput
|
|
998
1121
|
runs?: Prisma.ChatRunUncheckedUpdateManyWithoutThreadNestedInput
|
|
999
1122
|
interrupts?: Prisma.ChatInterruptUncheckedUpdateManyWithoutThreadNestedInput
|
|
@@ -1006,6 +1129,9 @@ export type ChatThreadCreateWithoutAgentInput = {
|
|
|
1006
1129
|
sandboxPolicy?: string
|
|
1007
1130
|
createdAt?: Date | string
|
|
1008
1131
|
updatedAt?: Date | string
|
|
1132
|
+
engine?: string
|
|
1133
|
+
localCwd?: string | null
|
|
1134
|
+
localAgentId?: string | null
|
|
1009
1135
|
user: Prisma.UserCreateNestedOneWithoutChatThreadsInput
|
|
1010
1136
|
messages?: Prisma.ChatMessageCreateNestedManyWithoutThreadInput
|
|
1011
1137
|
runs?: Prisma.ChatRunCreateNestedManyWithoutThreadInput
|
|
@@ -1023,6 +1149,9 @@ export type ChatThreadUncheckedCreateWithoutAgentInput = {
|
|
|
1023
1149
|
createdAt?: Date | string
|
|
1024
1150
|
updatedAt?: Date | string
|
|
1025
1151
|
workspaceId?: string | null
|
|
1152
|
+
engine?: string
|
|
1153
|
+
localCwd?: string | null
|
|
1154
|
+
localAgentId?: string | null
|
|
1026
1155
|
messages?: Prisma.ChatMessageUncheckedCreateNestedManyWithoutThreadInput
|
|
1027
1156
|
runs?: Prisma.ChatRunUncheckedCreateNestedManyWithoutThreadInput
|
|
1028
1157
|
interrupts?: Prisma.ChatInterruptUncheckedCreateNestedManyWithoutThreadInput
|
|
@@ -1062,6 +1191,9 @@ export type ChatThreadCreateWithoutWorkspaceInput = {
|
|
|
1062
1191
|
sandboxPolicy?: string
|
|
1063
1192
|
createdAt?: Date | string
|
|
1064
1193
|
updatedAt?: Date | string
|
|
1194
|
+
engine?: string
|
|
1195
|
+
localCwd?: string | null
|
|
1196
|
+
localAgentId?: string | null
|
|
1065
1197
|
user: Prisma.UserCreateNestedOneWithoutChatThreadsInput
|
|
1066
1198
|
messages?: Prisma.ChatMessageCreateNestedManyWithoutThreadInput
|
|
1067
1199
|
runs?: Prisma.ChatRunCreateNestedManyWithoutThreadInput
|
|
@@ -1079,6 +1211,9 @@ export type ChatThreadUncheckedCreateWithoutWorkspaceInput = {
|
|
|
1079
1211
|
createdAt?: Date | string
|
|
1080
1212
|
updatedAt?: Date | string
|
|
1081
1213
|
agentId?: string | null
|
|
1214
|
+
engine?: string
|
|
1215
|
+
localCwd?: string | null
|
|
1216
|
+
localAgentId?: string | null
|
|
1082
1217
|
messages?: Prisma.ChatMessageUncheckedCreateNestedManyWithoutThreadInput
|
|
1083
1218
|
runs?: Prisma.ChatRunUncheckedCreateNestedManyWithoutThreadInput
|
|
1084
1219
|
interrupts?: Prisma.ChatInterruptUncheckedCreateNestedManyWithoutThreadInput
|
|
@@ -1120,6 +1255,9 @@ export type ChatThreadCreateManyUserInput = {
|
|
|
1120
1255
|
updatedAt?: Date | string
|
|
1121
1256
|
agentId?: string | null
|
|
1122
1257
|
workspaceId?: string | null
|
|
1258
|
+
engine?: string
|
|
1259
|
+
localCwd?: string | null
|
|
1260
|
+
localAgentId?: string | null
|
|
1123
1261
|
}
|
|
1124
1262
|
|
|
1125
1263
|
export type ChatThreadUpdateWithoutUserInput = {
|
|
@@ -1129,6 +1267,9 @@ export type ChatThreadUpdateWithoutUserInput = {
|
|
|
1129
1267
|
sandboxPolicy?: Prisma.StringFieldUpdateOperationsInput | string
|
|
1130
1268
|
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
1131
1269
|
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
1270
|
+
engine?: Prisma.StringFieldUpdateOperationsInput | string
|
|
1271
|
+
localCwd?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
1272
|
+
localAgentId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
1132
1273
|
messages?: Prisma.ChatMessageUpdateManyWithoutThreadNestedInput
|
|
1133
1274
|
runs?: Prisma.ChatRunUpdateManyWithoutThreadNestedInput
|
|
1134
1275
|
interrupts?: Prisma.ChatInterruptUpdateManyWithoutThreadNestedInput
|
|
@@ -1146,6 +1287,9 @@ export type ChatThreadUncheckedUpdateWithoutUserInput = {
|
|
|
1146
1287
|
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
1147
1288
|
agentId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
1148
1289
|
workspaceId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
1290
|
+
engine?: Prisma.StringFieldUpdateOperationsInput | string
|
|
1291
|
+
localCwd?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
1292
|
+
localAgentId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
1149
1293
|
messages?: Prisma.ChatMessageUncheckedUpdateManyWithoutThreadNestedInput
|
|
1150
1294
|
runs?: Prisma.ChatRunUncheckedUpdateManyWithoutThreadNestedInput
|
|
1151
1295
|
interrupts?: Prisma.ChatInterruptUncheckedUpdateManyWithoutThreadNestedInput
|
|
@@ -1161,6 +1305,9 @@ export type ChatThreadUncheckedUpdateManyWithoutUserInput = {
|
|
|
1161
1305
|
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
1162
1306
|
agentId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
1163
1307
|
workspaceId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
1308
|
+
engine?: Prisma.StringFieldUpdateOperationsInput | string
|
|
1309
|
+
localCwd?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
1310
|
+
localAgentId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
1164
1311
|
}
|
|
1165
1312
|
|
|
1166
1313
|
export type ChatThreadCreateManyAgentInput = {
|
|
@@ -1172,6 +1319,9 @@ export type ChatThreadCreateManyAgentInput = {
|
|
|
1172
1319
|
createdAt?: Date | string
|
|
1173
1320
|
updatedAt?: Date | string
|
|
1174
1321
|
workspaceId?: string | null
|
|
1322
|
+
engine?: string
|
|
1323
|
+
localCwd?: string | null
|
|
1324
|
+
localAgentId?: string | null
|
|
1175
1325
|
}
|
|
1176
1326
|
|
|
1177
1327
|
export type ChatThreadUpdateWithoutAgentInput = {
|
|
@@ -1181,6 +1331,9 @@ export type ChatThreadUpdateWithoutAgentInput = {
|
|
|
1181
1331
|
sandboxPolicy?: Prisma.StringFieldUpdateOperationsInput | string
|
|
1182
1332
|
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
1183
1333
|
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
1334
|
+
engine?: Prisma.StringFieldUpdateOperationsInput | string
|
|
1335
|
+
localCwd?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
1336
|
+
localAgentId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
1184
1337
|
user?: Prisma.UserUpdateOneRequiredWithoutChatThreadsNestedInput
|
|
1185
1338
|
messages?: Prisma.ChatMessageUpdateManyWithoutThreadNestedInput
|
|
1186
1339
|
runs?: Prisma.ChatRunUpdateManyWithoutThreadNestedInput
|
|
@@ -1198,6 +1351,9 @@ export type ChatThreadUncheckedUpdateWithoutAgentInput = {
|
|
|
1198
1351
|
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
1199
1352
|
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
1200
1353
|
workspaceId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
1354
|
+
engine?: Prisma.StringFieldUpdateOperationsInput | string
|
|
1355
|
+
localCwd?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
1356
|
+
localAgentId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
1201
1357
|
messages?: Prisma.ChatMessageUncheckedUpdateManyWithoutThreadNestedInput
|
|
1202
1358
|
runs?: Prisma.ChatRunUncheckedUpdateManyWithoutThreadNestedInput
|
|
1203
1359
|
interrupts?: Prisma.ChatInterruptUncheckedUpdateManyWithoutThreadNestedInput
|
|
@@ -1213,6 +1369,9 @@ export type ChatThreadUncheckedUpdateManyWithoutAgentInput = {
|
|
|
1213
1369
|
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
1214
1370
|
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
1215
1371
|
workspaceId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
1372
|
+
engine?: Prisma.StringFieldUpdateOperationsInput | string
|
|
1373
|
+
localCwd?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
1374
|
+
localAgentId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
1216
1375
|
}
|
|
1217
1376
|
|
|
1218
1377
|
export type ChatThreadCreateManyWorkspaceInput = {
|
|
@@ -1224,6 +1383,9 @@ export type ChatThreadCreateManyWorkspaceInput = {
|
|
|
1224
1383
|
createdAt?: Date | string
|
|
1225
1384
|
updatedAt?: Date | string
|
|
1226
1385
|
agentId?: string | null
|
|
1386
|
+
engine?: string
|
|
1387
|
+
localCwd?: string | null
|
|
1388
|
+
localAgentId?: string | null
|
|
1227
1389
|
}
|
|
1228
1390
|
|
|
1229
1391
|
export type ChatThreadUpdateWithoutWorkspaceInput = {
|
|
@@ -1233,6 +1395,9 @@ export type ChatThreadUpdateWithoutWorkspaceInput = {
|
|
|
1233
1395
|
sandboxPolicy?: Prisma.StringFieldUpdateOperationsInput | string
|
|
1234
1396
|
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
1235
1397
|
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
1398
|
+
engine?: Prisma.StringFieldUpdateOperationsInput | string
|
|
1399
|
+
localCwd?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
1400
|
+
localAgentId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
1236
1401
|
user?: Prisma.UserUpdateOneRequiredWithoutChatThreadsNestedInput
|
|
1237
1402
|
messages?: Prisma.ChatMessageUpdateManyWithoutThreadNestedInput
|
|
1238
1403
|
runs?: Prisma.ChatRunUpdateManyWithoutThreadNestedInput
|
|
@@ -1250,6 +1415,9 @@ export type ChatThreadUncheckedUpdateWithoutWorkspaceInput = {
|
|
|
1250
1415
|
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
1251
1416
|
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
1252
1417
|
agentId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
1418
|
+
engine?: Prisma.StringFieldUpdateOperationsInput | string
|
|
1419
|
+
localCwd?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
1420
|
+
localAgentId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
1253
1421
|
messages?: Prisma.ChatMessageUncheckedUpdateManyWithoutThreadNestedInput
|
|
1254
1422
|
runs?: Prisma.ChatRunUncheckedUpdateManyWithoutThreadNestedInput
|
|
1255
1423
|
interrupts?: Prisma.ChatInterruptUncheckedUpdateManyWithoutThreadNestedInput
|
|
@@ -1265,6 +1433,9 @@ export type ChatThreadUncheckedUpdateManyWithoutWorkspaceInput = {
|
|
|
1265
1433
|
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
1266
1434
|
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
1267
1435
|
agentId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
1436
|
+
engine?: Prisma.StringFieldUpdateOperationsInput | string
|
|
1437
|
+
localCwd?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
1438
|
+
localAgentId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
1268
1439
|
}
|
|
1269
1440
|
|
|
1270
1441
|
|
|
@@ -1335,6 +1506,9 @@ export type ChatThreadSelect<ExtArgs extends runtime.Types.Extensions.InternalAr
|
|
|
1335
1506
|
updatedAt?: boolean
|
|
1336
1507
|
agentId?: boolean
|
|
1337
1508
|
workspaceId?: boolean
|
|
1509
|
+
engine?: boolean
|
|
1510
|
+
localCwd?: boolean
|
|
1511
|
+
localAgentId?: boolean
|
|
1338
1512
|
user?: boolean | Prisma.UserDefaultArgs<ExtArgs>
|
|
1339
1513
|
messages?: boolean | Prisma.ChatThread$messagesArgs<ExtArgs>
|
|
1340
1514
|
runs?: boolean | Prisma.ChatThread$runsArgs<ExtArgs>
|
|
@@ -1355,6 +1529,9 @@ export type ChatThreadSelectCreateManyAndReturn<ExtArgs extends runtime.Types.Ex
|
|
|
1355
1529
|
updatedAt?: boolean
|
|
1356
1530
|
agentId?: boolean
|
|
1357
1531
|
workspaceId?: boolean
|
|
1532
|
+
engine?: boolean
|
|
1533
|
+
localCwd?: boolean
|
|
1534
|
+
localAgentId?: boolean
|
|
1358
1535
|
user?: boolean | Prisma.UserDefaultArgs<ExtArgs>
|
|
1359
1536
|
agent?: boolean | Prisma.ChatThread$agentArgs<ExtArgs>
|
|
1360
1537
|
workspace?: boolean | Prisma.ChatThread$workspaceArgs<ExtArgs>
|
|
@@ -1370,6 +1547,9 @@ export type ChatThreadSelectUpdateManyAndReturn<ExtArgs extends runtime.Types.Ex
|
|
|
1370
1547
|
updatedAt?: boolean
|
|
1371
1548
|
agentId?: boolean
|
|
1372
1549
|
workspaceId?: boolean
|
|
1550
|
+
engine?: boolean
|
|
1551
|
+
localCwd?: boolean
|
|
1552
|
+
localAgentId?: boolean
|
|
1373
1553
|
user?: boolean | Prisma.UserDefaultArgs<ExtArgs>
|
|
1374
1554
|
agent?: boolean | Prisma.ChatThread$agentArgs<ExtArgs>
|
|
1375
1555
|
workspace?: boolean | Prisma.ChatThread$workspaceArgs<ExtArgs>
|
|
@@ -1385,9 +1565,12 @@ export type ChatThreadSelectScalar = {
|
|
|
1385
1565
|
updatedAt?: boolean
|
|
1386
1566
|
agentId?: boolean
|
|
1387
1567
|
workspaceId?: boolean
|
|
1568
|
+
engine?: boolean
|
|
1569
|
+
localCwd?: boolean
|
|
1570
|
+
localAgentId?: boolean
|
|
1388
1571
|
}
|
|
1389
1572
|
|
|
1390
|
-
export type ChatThreadOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"id" | "userId" | "title" | "isArchived" | "sandboxPolicy" | "createdAt" | "updatedAt" | "agentId" | "workspaceId", ExtArgs["result"]["chatThread"]>
|
|
1573
|
+
export type ChatThreadOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"id" | "userId" | "title" | "isArchived" | "sandboxPolicy" | "createdAt" | "updatedAt" | "agentId" | "workspaceId" | "engine" | "localCwd" | "localAgentId", ExtArgs["result"]["chatThread"]>
|
|
1391
1574
|
export type ChatThreadInclude<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1392
1575
|
user?: boolean | Prisma.UserDefaultArgs<ExtArgs>
|
|
1393
1576
|
messages?: boolean | Prisma.ChatThread$messagesArgs<ExtArgs>
|
|
@@ -1430,6 +1613,18 @@ export type $ChatThreadPayload<ExtArgs extends runtime.Types.Extensions.Internal
|
|
|
1430
1613
|
updatedAt: Date
|
|
1431
1614
|
agentId: string | null
|
|
1432
1615
|
workspaceId: string | null
|
|
1616
|
+
/**
|
|
1617
|
+
* 执行引擎:cloud(服务端模型)/ local(桌面本地 Agent)
|
|
1618
|
+
*/
|
|
1619
|
+
engine: string
|
|
1620
|
+
/**
|
|
1621
|
+
* 本地 Agent 的授权工作目录(engine=local 时必填;仅桌面壳)
|
|
1622
|
+
*/
|
|
1623
|
+
localCwd: string | null
|
|
1624
|
+
/**
|
|
1625
|
+
* 本地 agent 选择(engine=local 时):'pi'(内置引擎,null 视同)/ 'acp:<catalogId>'
|
|
1626
|
+
*/
|
|
1627
|
+
localAgentId: string | null
|
|
1433
1628
|
}, ExtArgs["result"]["chatThread"]>
|
|
1434
1629
|
composites: {}
|
|
1435
1630
|
}
|
|
@@ -1869,6 +2064,9 @@ export interface ChatThreadFieldRefs {
|
|
|
1869
2064
|
readonly updatedAt: Prisma.FieldRef<"ChatThread", 'DateTime'>
|
|
1870
2065
|
readonly agentId: Prisma.FieldRef<"ChatThread", 'String'>
|
|
1871
2066
|
readonly workspaceId: Prisma.FieldRef<"ChatThread", 'String'>
|
|
2067
|
+
readonly engine: Prisma.FieldRef<"ChatThread", 'String'>
|
|
2068
|
+
readonly localCwd: Prisma.FieldRef<"ChatThread", 'String'>
|
|
2069
|
+
readonly localAgentId: Prisma.FieldRef<"ChatThread", 'String'>
|
|
1872
2070
|
}
|
|
1873
2071
|
|
|
1874
2072
|
|