@allbluecn/database 0.14.7 → 0.14.9

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.
@@ -44,6 +44,7 @@ export type ChatThreadMinAggregateOutputType = {
44
44
  updatedAt: Date | null
45
45
  agentId: string | null
46
46
  workspaceId: string | null
47
+ sshHostId: string | null
47
48
  engine: string | null
48
49
  localCwd: string | null
49
50
  localAgentId: string | null
@@ -60,6 +61,7 @@ export type ChatThreadMaxAggregateOutputType = {
60
61
  updatedAt: Date | null
61
62
  agentId: string | null
62
63
  workspaceId: string | null
64
+ sshHostId: string | null
63
65
  engine: string | null
64
66
  localCwd: string | null
65
67
  localAgentId: string | null
@@ -76,6 +78,7 @@ export type ChatThreadCountAggregateOutputType = {
76
78
  updatedAt: number
77
79
  agentId: number
78
80
  workspaceId: number
81
+ sshHostId: number
79
82
  engine: number
80
83
  localCwd: number
81
84
  localAgentId: number
@@ -103,6 +106,7 @@ export type ChatThreadMinAggregateInputType = {
103
106
  updatedAt?: true
104
107
  agentId?: true
105
108
  workspaceId?: true
109
+ sshHostId?: true
106
110
  engine?: true
107
111
  localCwd?: true
108
112
  localAgentId?: true
@@ -119,6 +123,7 @@ export type ChatThreadMaxAggregateInputType = {
119
123
  updatedAt?: true
120
124
  agentId?: true
121
125
  workspaceId?: true
126
+ sshHostId?: true
122
127
  engine?: true
123
128
  localCwd?: true
124
129
  localAgentId?: true
@@ -135,6 +140,7 @@ export type ChatThreadCountAggregateInputType = {
135
140
  updatedAt?: true
136
141
  agentId?: true
137
142
  workspaceId?: true
143
+ sshHostId?: true
138
144
  engine?: true
139
145
  localCwd?: true
140
146
  localAgentId?: true
@@ -239,6 +245,7 @@ export type ChatThreadGroupByOutputType = {
239
245
  updatedAt: Date
240
246
  agentId: string | null
241
247
  workspaceId: string | null
248
+ sshHostId: string | null
242
249
  engine: string
243
250
  localCwd: string | null
244
251
  localAgentId: string | null
@@ -279,6 +286,7 @@ export type ChatThreadWhereInput = {
279
286
  updatedAt?: Prisma.DateTimeFilter<"ChatThread"> | Date | string
280
287
  agentId?: Prisma.StringNullableFilter<"ChatThread"> | string | null
281
288
  workspaceId?: Prisma.StringNullableFilter<"ChatThread"> | string | null
289
+ sshHostId?: Prisma.StringNullableFilter<"ChatThread"> | string | null
282
290
  engine?: Prisma.StringFilter<"ChatThread"> | string
283
291
  localCwd?: Prisma.StringNullableFilter<"ChatThread"> | string | null
284
292
  localAgentId?: Prisma.StringNullableFilter<"ChatThread"> | string | null
@@ -291,6 +299,7 @@ export type ChatThreadWhereInput = {
291
299
  generations?: Prisma.GenerationRunListRelationFilter
292
300
  agent?: Prisma.XOR<Prisma.UserAgentNullableScalarRelationFilter, Prisma.UserAgentWhereInput> | null
293
301
  workspace?: Prisma.XOR<Prisma.HarnessWorkspaceNullableScalarRelationFilter, Prisma.HarnessWorkspaceWhereInput> | null
302
+ sshHost?: Prisma.XOR<Prisma.HarnessSshHostNullableScalarRelationFilter, Prisma.HarnessSshHostWhereInput> | null
294
303
  }
295
304
 
296
305
  export type ChatThreadOrderByWithRelationInput = {
@@ -303,6 +312,7 @@ export type ChatThreadOrderByWithRelationInput = {
303
312
  updatedAt?: Prisma.SortOrder
304
313
  agentId?: Prisma.SortOrderInput | Prisma.SortOrder
305
314
  workspaceId?: Prisma.SortOrderInput | Prisma.SortOrder
315
+ sshHostId?: Prisma.SortOrderInput | Prisma.SortOrder
306
316
  engine?: Prisma.SortOrder
307
317
  localCwd?: Prisma.SortOrderInput | Prisma.SortOrder
308
318
  localAgentId?: Prisma.SortOrderInput | Prisma.SortOrder
@@ -315,6 +325,7 @@ export type ChatThreadOrderByWithRelationInput = {
315
325
  generations?: Prisma.GenerationRunOrderByRelationAggregateInput
316
326
  agent?: Prisma.UserAgentOrderByWithRelationInput
317
327
  workspace?: Prisma.HarnessWorkspaceOrderByWithRelationInput
328
+ sshHost?: Prisma.HarnessSshHostOrderByWithRelationInput
318
329
  }
319
330
 
320
331
  export type ChatThreadWhereUniqueInput = Prisma.AtLeast<{
@@ -330,6 +341,7 @@ export type ChatThreadWhereUniqueInput = Prisma.AtLeast<{
330
341
  updatedAt?: Prisma.DateTimeFilter<"ChatThread"> | Date | string
331
342
  agentId?: Prisma.StringNullableFilter<"ChatThread"> | string | null
332
343
  workspaceId?: Prisma.StringNullableFilter<"ChatThread"> | string | null
344
+ sshHostId?: Prisma.StringNullableFilter<"ChatThread"> | string | null
333
345
  engine?: Prisma.StringFilter<"ChatThread"> | string
334
346
  localCwd?: Prisma.StringNullableFilter<"ChatThread"> | string | null
335
347
  localAgentId?: Prisma.StringNullableFilter<"ChatThread"> | string | null
@@ -342,6 +354,7 @@ export type ChatThreadWhereUniqueInput = Prisma.AtLeast<{
342
354
  generations?: Prisma.GenerationRunListRelationFilter
343
355
  agent?: Prisma.XOR<Prisma.UserAgentNullableScalarRelationFilter, Prisma.UserAgentWhereInput> | null
344
356
  workspace?: Prisma.XOR<Prisma.HarnessWorkspaceNullableScalarRelationFilter, Prisma.HarnessWorkspaceWhereInput> | null
357
+ sshHost?: Prisma.XOR<Prisma.HarnessSshHostNullableScalarRelationFilter, Prisma.HarnessSshHostWhereInput> | null
345
358
  }, "id">
346
359
 
347
360
  export type ChatThreadOrderByWithAggregationInput = {
@@ -354,6 +367,7 @@ export type ChatThreadOrderByWithAggregationInput = {
354
367
  updatedAt?: Prisma.SortOrder
355
368
  agentId?: Prisma.SortOrderInput | Prisma.SortOrder
356
369
  workspaceId?: Prisma.SortOrderInput | Prisma.SortOrder
370
+ sshHostId?: Prisma.SortOrderInput | Prisma.SortOrder
357
371
  engine?: Prisma.SortOrder
358
372
  localCwd?: Prisma.SortOrderInput | Prisma.SortOrder
359
373
  localAgentId?: Prisma.SortOrderInput | Prisma.SortOrder
@@ -379,6 +393,7 @@ export type ChatThreadScalarWhereWithAggregatesInput = {
379
393
  updatedAt?: Prisma.DateTimeWithAggregatesFilter<"ChatThread"> | Date | string
380
394
  agentId?: Prisma.StringNullableWithAggregatesFilter<"ChatThread"> | string | null
381
395
  workspaceId?: Prisma.StringNullableWithAggregatesFilter<"ChatThread"> | string | null
396
+ sshHostId?: Prisma.StringNullableWithAggregatesFilter<"ChatThread"> | string | null
382
397
  engine?: Prisma.StringWithAggregatesFilter<"ChatThread"> | string
383
398
  localCwd?: Prisma.StringNullableWithAggregatesFilter<"ChatThread"> | string | null
384
399
  localAgentId?: Prisma.StringNullableWithAggregatesFilter<"ChatThread"> | string | null
@@ -405,6 +420,7 @@ export type ChatThreadCreateInput = {
405
420
  generations?: Prisma.GenerationRunCreateNestedManyWithoutThreadInput
406
421
  agent?: Prisma.UserAgentCreateNestedOneWithoutThreadsInput
407
422
  workspace?: Prisma.HarnessWorkspaceCreateNestedOneWithoutThreadsInput
423
+ sshHost?: Prisma.HarnessSshHostCreateNestedOneWithoutThreadsInput
408
424
  }
409
425
 
410
426
  export type ChatThreadUncheckedCreateInput = {
@@ -417,6 +433,7 @@ export type ChatThreadUncheckedCreateInput = {
417
433
  updatedAt?: Date | string
418
434
  agentId?: string | null
419
435
  workspaceId?: string | null
436
+ sshHostId?: string | null
420
437
  engine?: string
421
438
  localCwd?: string | null
422
439
  localAgentId?: string | null
@@ -447,6 +464,7 @@ export type ChatThreadUpdateInput = {
447
464
  generations?: Prisma.GenerationRunUpdateManyWithoutThreadNestedInput
448
465
  agent?: Prisma.UserAgentUpdateOneWithoutThreadsNestedInput
449
466
  workspace?: Prisma.HarnessWorkspaceUpdateOneWithoutThreadsNestedInput
467
+ sshHost?: Prisma.HarnessSshHostUpdateOneWithoutThreadsNestedInput
450
468
  }
451
469
 
452
470
  export type ChatThreadUncheckedUpdateInput = {
@@ -459,6 +477,7 @@ export type ChatThreadUncheckedUpdateInput = {
459
477
  updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
460
478
  agentId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
461
479
  workspaceId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
480
+ sshHostId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
462
481
  engine?: Prisma.StringFieldUpdateOperationsInput | string
463
482
  localCwd?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
464
483
  localAgentId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
@@ -480,6 +499,7 @@ export type ChatThreadCreateManyInput = {
480
499
  updatedAt?: Date | string
481
500
  agentId?: string | null
482
501
  workspaceId?: string | null
502
+ sshHostId?: string | null
483
503
  engine?: string
484
504
  localCwd?: string | null
485
505
  localAgentId?: string | null
@@ -511,6 +531,7 @@ export type ChatThreadUncheckedUpdateManyInput = {
511
531
  updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
512
532
  agentId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
513
533
  workspaceId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
534
+ sshHostId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
514
535
  engine?: Prisma.StringFieldUpdateOperationsInput | string
515
536
  localCwd?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
516
537
  localAgentId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
@@ -538,6 +559,7 @@ export type ChatThreadCountOrderByAggregateInput = {
538
559
  updatedAt?: Prisma.SortOrder
539
560
  agentId?: Prisma.SortOrder
540
561
  workspaceId?: Prisma.SortOrder
562
+ sshHostId?: Prisma.SortOrder
541
563
  engine?: Prisma.SortOrder
542
564
  localCwd?: Prisma.SortOrder
543
565
  localAgentId?: Prisma.SortOrder
@@ -559,6 +581,7 @@ export type ChatThreadMaxOrderByAggregateInput = {
559
581
  updatedAt?: Prisma.SortOrder
560
582
  agentId?: Prisma.SortOrder
561
583
  workspaceId?: Prisma.SortOrder
584
+ sshHostId?: Prisma.SortOrder
562
585
  engine?: Prisma.SortOrder
563
586
  localCwd?: Prisma.SortOrder
564
587
  localAgentId?: Prisma.SortOrder
@@ -575,6 +598,7 @@ export type ChatThreadMinOrderByAggregateInput = {
575
598
  updatedAt?: Prisma.SortOrder
576
599
  agentId?: Prisma.SortOrder
577
600
  workspaceId?: Prisma.SortOrder
601
+ sshHostId?: Prisma.SortOrder
578
602
  engine?: Prisma.SortOrder
579
603
  localCwd?: Prisma.SortOrder
580
604
  localAgentId?: Prisma.SortOrder
@@ -772,6 +796,48 @@ export type ChatThreadUncheckedUpdateManyWithoutWorkspaceNestedInput = {
772
796
  deleteMany?: Prisma.ChatThreadScalarWhereInput | Prisma.ChatThreadScalarWhereInput[]
773
797
  }
774
798
 
799
+ export type ChatThreadCreateNestedManyWithoutSshHostInput = {
800
+ create?: Prisma.XOR<Prisma.ChatThreadCreateWithoutSshHostInput, Prisma.ChatThreadUncheckedCreateWithoutSshHostInput> | Prisma.ChatThreadCreateWithoutSshHostInput[] | Prisma.ChatThreadUncheckedCreateWithoutSshHostInput[]
801
+ connectOrCreate?: Prisma.ChatThreadCreateOrConnectWithoutSshHostInput | Prisma.ChatThreadCreateOrConnectWithoutSshHostInput[]
802
+ createMany?: Prisma.ChatThreadCreateManySshHostInputEnvelope
803
+ connect?: Prisma.ChatThreadWhereUniqueInput | Prisma.ChatThreadWhereUniqueInput[]
804
+ }
805
+
806
+ export type ChatThreadUncheckedCreateNestedManyWithoutSshHostInput = {
807
+ create?: Prisma.XOR<Prisma.ChatThreadCreateWithoutSshHostInput, Prisma.ChatThreadUncheckedCreateWithoutSshHostInput> | Prisma.ChatThreadCreateWithoutSshHostInput[] | Prisma.ChatThreadUncheckedCreateWithoutSshHostInput[]
808
+ connectOrCreate?: Prisma.ChatThreadCreateOrConnectWithoutSshHostInput | Prisma.ChatThreadCreateOrConnectWithoutSshHostInput[]
809
+ createMany?: Prisma.ChatThreadCreateManySshHostInputEnvelope
810
+ connect?: Prisma.ChatThreadWhereUniqueInput | Prisma.ChatThreadWhereUniqueInput[]
811
+ }
812
+
813
+ export type ChatThreadUpdateManyWithoutSshHostNestedInput = {
814
+ create?: Prisma.XOR<Prisma.ChatThreadCreateWithoutSshHostInput, Prisma.ChatThreadUncheckedCreateWithoutSshHostInput> | Prisma.ChatThreadCreateWithoutSshHostInput[] | Prisma.ChatThreadUncheckedCreateWithoutSshHostInput[]
815
+ connectOrCreate?: Prisma.ChatThreadCreateOrConnectWithoutSshHostInput | Prisma.ChatThreadCreateOrConnectWithoutSshHostInput[]
816
+ upsert?: Prisma.ChatThreadUpsertWithWhereUniqueWithoutSshHostInput | Prisma.ChatThreadUpsertWithWhereUniqueWithoutSshHostInput[]
817
+ createMany?: Prisma.ChatThreadCreateManySshHostInputEnvelope
818
+ set?: Prisma.ChatThreadWhereUniqueInput | Prisma.ChatThreadWhereUniqueInput[]
819
+ disconnect?: Prisma.ChatThreadWhereUniqueInput | Prisma.ChatThreadWhereUniqueInput[]
820
+ delete?: Prisma.ChatThreadWhereUniqueInput | Prisma.ChatThreadWhereUniqueInput[]
821
+ connect?: Prisma.ChatThreadWhereUniqueInput | Prisma.ChatThreadWhereUniqueInput[]
822
+ update?: Prisma.ChatThreadUpdateWithWhereUniqueWithoutSshHostInput | Prisma.ChatThreadUpdateWithWhereUniqueWithoutSshHostInput[]
823
+ updateMany?: Prisma.ChatThreadUpdateManyWithWhereWithoutSshHostInput | Prisma.ChatThreadUpdateManyWithWhereWithoutSshHostInput[]
824
+ deleteMany?: Prisma.ChatThreadScalarWhereInput | Prisma.ChatThreadScalarWhereInput[]
825
+ }
826
+
827
+ export type ChatThreadUncheckedUpdateManyWithoutSshHostNestedInput = {
828
+ create?: Prisma.XOR<Prisma.ChatThreadCreateWithoutSshHostInput, Prisma.ChatThreadUncheckedCreateWithoutSshHostInput> | Prisma.ChatThreadCreateWithoutSshHostInput[] | Prisma.ChatThreadUncheckedCreateWithoutSshHostInput[]
829
+ connectOrCreate?: Prisma.ChatThreadCreateOrConnectWithoutSshHostInput | Prisma.ChatThreadCreateOrConnectWithoutSshHostInput[]
830
+ upsert?: Prisma.ChatThreadUpsertWithWhereUniqueWithoutSshHostInput | Prisma.ChatThreadUpsertWithWhereUniqueWithoutSshHostInput[]
831
+ createMany?: Prisma.ChatThreadCreateManySshHostInputEnvelope
832
+ set?: Prisma.ChatThreadWhereUniqueInput | Prisma.ChatThreadWhereUniqueInput[]
833
+ disconnect?: Prisma.ChatThreadWhereUniqueInput | Prisma.ChatThreadWhereUniqueInput[]
834
+ delete?: Prisma.ChatThreadWhereUniqueInput | Prisma.ChatThreadWhereUniqueInput[]
835
+ connect?: Prisma.ChatThreadWhereUniqueInput | Prisma.ChatThreadWhereUniqueInput[]
836
+ update?: Prisma.ChatThreadUpdateWithWhereUniqueWithoutSshHostInput | Prisma.ChatThreadUpdateWithWhereUniqueWithoutSshHostInput[]
837
+ updateMany?: Prisma.ChatThreadUpdateManyWithWhereWithoutSshHostInput | Prisma.ChatThreadUpdateManyWithWhereWithoutSshHostInput[]
838
+ deleteMany?: Prisma.ChatThreadScalarWhereInput | Prisma.ChatThreadScalarWhereInput[]
839
+ }
840
+
775
841
  export type ChatThreadCreateWithoutUserInput = {
776
842
  id?: string
777
843
  title?: string | null
@@ -790,6 +856,7 @@ export type ChatThreadCreateWithoutUserInput = {
790
856
  generations?: Prisma.GenerationRunCreateNestedManyWithoutThreadInput
791
857
  agent?: Prisma.UserAgentCreateNestedOneWithoutThreadsInput
792
858
  workspace?: Prisma.HarnessWorkspaceCreateNestedOneWithoutThreadsInput
859
+ sshHost?: Prisma.HarnessSshHostCreateNestedOneWithoutThreadsInput
793
860
  }
794
861
 
795
862
  export type ChatThreadUncheckedCreateWithoutUserInput = {
@@ -801,6 +868,7 @@ export type ChatThreadUncheckedCreateWithoutUserInput = {
801
868
  updatedAt?: Date | string
802
869
  agentId?: string | null
803
870
  workspaceId?: string | null
871
+ sshHostId?: string | null
804
872
  engine?: string
805
873
  localCwd?: string | null
806
874
  localAgentId?: string | null
@@ -851,6 +919,7 @@ export type ChatThreadScalarWhereInput = {
851
919
  updatedAt?: Prisma.DateTimeFilter<"ChatThread"> | Date | string
852
920
  agentId?: Prisma.StringNullableFilter<"ChatThread"> | string | null
853
921
  workspaceId?: Prisma.StringNullableFilter<"ChatThread"> | string | null
922
+ sshHostId?: Prisma.StringNullableFilter<"ChatThread"> | string | null
854
923
  engine?: Prisma.StringFilter<"ChatThread"> | string
855
924
  localCwd?: Prisma.StringNullableFilter<"ChatThread"> | string | null
856
925
  localAgentId?: Prisma.StringNullableFilter<"ChatThread"> | string | null
@@ -876,6 +945,7 @@ export type ChatThreadCreateWithoutMessagesInput = {
876
945
  generations?: Prisma.GenerationRunCreateNestedManyWithoutThreadInput
877
946
  agent?: Prisma.UserAgentCreateNestedOneWithoutThreadsInput
878
947
  workspace?: Prisma.HarnessWorkspaceCreateNestedOneWithoutThreadsInput
948
+ sshHost?: Prisma.HarnessSshHostCreateNestedOneWithoutThreadsInput
879
949
  }
880
950
 
881
951
  export type ChatThreadUncheckedCreateWithoutMessagesInput = {
@@ -888,6 +958,7 @@ export type ChatThreadUncheckedCreateWithoutMessagesInput = {
888
958
  updatedAt?: Date | string
889
959
  agentId?: string | null
890
960
  workspaceId?: string | null
961
+ sshHostId?: string | null
891
962
  engine?: string
892
963
  localCwd?: string | null
893
964
  localAgentId?: string | null
@@ -932,6 +1003,7 @@ export type ChatThreadUpdateWithoutMessagesInput = {
932
1003
  generations?: Prisma.GenerationRunUpdateManyWithoutThreadNestedInput
933
1004
  agent?: Prisma.UserAgentUpdateOneWithoutThreadsNestedInput
934
1005
  workspace?: Prisma.HarnessWorkspaceUpdateOneWithoutThreadsNestedInput
1006
+ sshHost?: Prisma.HarnessSshHostUpdateOneWithoutThreadsNestedInput
935
1007
  }
936
1008
 
937
1009
  export type ChatThreadUncheckedUpdateWithoutMessagesInput = {
@@ -944,6 +1016,7 @@ export type ChatThreadUncheckedUpdateWithoutMessagesInput = {
944
1016
  updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
945
1017
  agentId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
946
1018
  workspaceId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
1019
+ sshHostId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
947
1020
  engine?: Prisma.StringFieldUpdateOperationsInput | string
948
1021
  localCwd?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
949
1022
  localAgentId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
@@ -972,6 +1045,7 @@ export type ChatThreadCreateWithoutRunsInput = {
972
1045
  generations?: Prisma.GenerationRunCreateNestedManyWithoutThreadInput
973
1046
  agent?: Prisma.UserAgentCreateNestedOneWithoutThreadsInput
974
1047
  workspace?: Prisma.HarnessWorkspaceCreateNestedOneWithoutThreadsInput
1048
+ sshHost?: Prisma.HarnessSshHostCreateNestedOneWithoutThreadsInput
975
1049
  }
976
1050
 
977
1051
  export type ChatThreadUncheckedCreateWithoutRunsInput = {
@@ -984,6 +1058,7 @@ export type ChatThreadUncheckedCreateWithoutRunsInput = {
984
1058
  updatedAt?: Date | string
985
1059
  agentId?: string | null
986
1060
  workspaceId?: string | null
1061
+ sshHostId?: string | null
987
1062
  engine?: string
988
1063
  localCwd?: string | null
989
1064
  localAgentId?: string | null
@@ -1028,6 +1103,7 @@ export type ChatThreadUpdateWithoutRunsInput = {
1028
1103
  generations?: Prisma.GenerationRunUpdateManyWithoutThreadNestedInput
1029
1104
  agent?: Prisma.UserAgentUpdateOneWithoutThreadsNestedInput
1030
1105
  workspace?: Prisma.HarnessWorkspaceUpdateOneWithoutThreadsNestedInput
1106
+ sshHost?: Prisma.HarnessSshHostUpdateOneWithoutThreadsNestedInput
1031
1107
  }
1032
1108
 
1033
1109
  export type ChatThreadUncheckedUpdateWithoutRunsInput = {
@@ -1040,6 +1116,7 @@ export type ChatThreadUncheckedUpdateWithoutRunsInput = {
1040
1116
  updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
1041
1117
  agentId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
1042
1118
  workspaceId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
1119
+ sshHostId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
1043
1120
  engine?: Prisma.StringFieldUpdateOperationsInput | string
1044
1121
  localCwd?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
1045
1122
  localAgentId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
@@ -1068,6 +1145,7 @@ export type ChatThreadCreateWithoutInterruptsInput = {
1068
1145
  generations?: Prisma.GenerationRunCreateNestedManyWithoutThreadInput
1069
1146
  agent?: Prisma.UserAgentCreateNestedOneWithoutThreadsInput
1070
1147
  workspace?: Prisma.HarnessWorkspaceCreateNestedOneWithoutThreadsInput
1148
+ sshHost?: Prisma.HarnessSshHostCreateNestedOneWithoutThreadsInput
1071
1149
  }
1072
1150
 
1073
1151
  export type ChatThreadUncheckedCreateWithoutInterruptsInput = {
@@ -1080,6 +1158,7 @@ export type ChatThreadUncheckedCreateWithoutInterruptsInput = {
1080
1158
  updatedAt?: Date | string
1081
1159
  agentId?: string | null
1082
1160
  workspaceId?: string | null
1161
+ sshHostId?: string | null
1083
1162
  engine?: string
1084
1163
  localCwd?: string | null
1085
1164
  localAgentId?: string | null
@@ -1124,6 +1203,7 @@ export type ChatThreadUpdateWithoutInterruptsInput = {
1124
1203
  generations?: Prisma.GenerationRunUpdateManyWithoutThreadNestedInput
1125
1204
  agent?: Prisma.UserAgentUpdateOneWithoutThreadsNestedInput
1126
1205
  workspace?: Prisma.HarnessWorkspaceUpdateOneWithoutThreadsNestedInput
1206
+ sshHost?: Prisma.HarnessSshHostUpdateOneWithoutThreadsNestedInput
1127
1207
  }
1128
1208
 
1129
1209
  export type ChatThreadUncheckedUpdateWithoutInterruptsInput = {
@@ -1136,6 +1216,7 @@ export type ChatThreadUncheckedUpdateWithoutInterruptsInput = {
1136
1216
  updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
1137
1217
  agentId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
1138
1218
  workspaceId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
1219
+ sshHostId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
1139
1220
  engine?: Prisma.StringFieldUpdateOperationsInput | string
1140
1221
  localCwd?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
1141
1222
  localAgentId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
@@ -1164,6 +1245,7 @@ export type ChatThreadCreateWithoutGenerationsInput = {
1164
1245
  interrupts?: Prisma.ChatInterruptCreateNestedManyWithoutThreadInput
1165
1246
  agent?: Prisma.UserAgentCreateNestedOneWithoutThreadsInput
1166
1247
  workspace?: Prisma.HarnessWorkspaceCreateNestedOneWithoutThreadsInput
1248
+ sshHost?: Prisma.HarnessSshHostCreateNestedOneWithoutThreadsInput
1167
1249
  }
1168
1250
 
1169
1251
  export type ChatThreadUncheckedCreateWithoutGenerationsInput = {
@@ -1176,6 +1258,7 @@ export type ChatThreadUncheckedCreateWithoutGenerationsInput = {
1176
1258
  updatedAt?: Date | string
1177
1259
  agentId?: string | null
1178
1260
  workspaceId?: string | null
1261
+ sshHostId?: string | null
1179
1262
  engine?: string
1180
1263
  localCwd?: string | null
1181
1264
  localAgentId?: string | null
@@ -1220,6 +1303,7 @@ export type ChatThreadUpdateWithoutGenerationsInput = {
1220
1303
  interrupts?: Prisma.ChatInterruptUpdateManyWithoutThreadNestedInput
1221
1304
  agent?: Prisma.UserAgentUpdateOneWithoutThreadsNestedInput
1222
1305
  workspace?: Prisma.HarnessWorkspaceUpdateOneWithoutThreadsNestedInput
1306
+ sshHost?: Prisma.HarnessSshHostUpdateOneWithoutThreadsNestedInput
1223
1307
  }
1224
1308
 
1225
1309
  export type ChatThreadUncheckedUpdateWithoutGenerationsInput = {
@@ -1232,6 +1316,7 @@ export type ChatThreadUncheckedUpdateWithoutGenerationsInput = {
1232
1316
  updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
1233
1317
  agentId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
1234
1318
  workspaceId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
1319
+ sshHostId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
1235
1320
  engine?: Prisma.StringFieldUpdateOperationsInput | string
1236
1321
  localCwd?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
1237
1322
  localAgentId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
@@ -1260,6 +1345,7 @@ export type ChatThreadCreateWithoutAgentInput = {
1260
1345
  interrupts?: Prisma.ChatInterruptCreateNestedManyWithoutThreadInput
1261
1346
  generations?: Prisma.GenerationRunCreateNestedManyWithoutThreadInput
1262
1347
  workspace?: Prisma.HarnessWorkspaceCreateNestedOneWithoutThreadsInput
1348
+ sshHost?: Prisma.HarnessSshHostCreateNestedOneWithoutThreadsInput
1263
1349
  }
1264
1350
 
1265
1351
  export type ChatThreadUncheckedCreateWithoutAgentInput = {
@@ -1271,6 +1357,7 @@ export type ChatThreadUncheckedCreateWithoutAgentInput = {
1271
1357
  createdAt?: Date | string
1272
1358
  updatedAt?: Date | string
1273
1359
  workspaceId?: string | null
1360
+ sshHostId?: string | null
1274
1361
  engine?: string
1275
1362
  localCwd?: string | null
1276
1363
  localAgentId?: string | null
@@ -1326,6 +1413,7 @@ export type ChatThreadCreateWithoutWorkspaceInput = {
1326
1413
  interrupts?: Prisma.ChatInterruptCreateNestedManyWithoutThreadInput
1327
1414
  generations?: Prisma.GenerationRunCreateNestedManyWithoutThreadInput
1328
1415
  agent?: Prisma.UserAgentCreateNestedOneWithoutThreadsInput
1416
+ sshHost?: Prisma.HarnessSshHostCreateNestedOneWithoutThreadsInput
1329
1417
  }
1330
1418
 
1331
1419
  export type ChatThreadUncheckedCreateWithoutWorkspaceInput = {
@@ -1337,6 +1425,7 @@ export type ChatThreadUncheckedCreateWithoutWorkspaceInput = {
1337
1425
  createdAt?: Date | string
1338
1426
  updatedAt?: Date | string
1339
1427
  agentId?: string | null
1428
+ sshHostId?: string | null
1340
1429
  engine?: string
1341
1430
  localCwd?: string | null
1342
1431
  localAgentId?: string | null
@@ -1374,6 +1463,74 @@ export type ChatThreadUpdateManyWithWhereWithoutWorkspaceInput = {
1374
1463
  data: Prisma.XOR<Prisma.ChatThreadUpdateManyMutationInput, Prisma.ChatThreadUncheckedUpdateManyWithoutWorkspaceInput>
1375
1464
  }
1376
1465
 
1466
+ export type ChatThreadCreateWithoutSshHostInput = {
1467
+ id?: string
1468
+ title?: string | null
1469
+ isArchived?: boolean
1470
+ sandboxPolicy?: string
1471
+ createdAt?: Date | string
1472
+ updatedAt?: Date | string
1473
+ engine?: string
1474
+ localCwd?: string | null
1475
+ localAgentId?: string | null
1476
+ indexRevision?: number
1477
+ indexMetadata?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
1478
+ user: Prisma.UserCreateNestedOneWithoutChatThreadsInput
1479
+ messages?: Prisma.ChatMessageCreateNestedManyWithoutThreadInput
1480
+ runs?: Prisma.ChatRunCreateNestedManyWithoutThreadInput
1481
+ interrupts?: Prisma.ChatInterruptCreateNestedManyWithoutThreadInput
1482
+ generations?: Prisma.GenerationRunCreateNestedManyWithoutThreadInput
1483
+ agent?: Prisma.UserAgentCreateNestedOneWithoutThreadsInput
1484
+ workspace?: Prisma.HarnessWorkspaceCreateNestedOneWithoutThreadsInput
1485
+ }
1486
+
1487
+ export type ChatThreadUncheckedCreateWithoutSshHostInput = {
1488
+ id?: string
1489
+ userId: string
1490
+ title?: string | null
1491
+ isArchived?: boolean
1492
+ sandboxPolicy?: string
1493
+ createdAt?: Date | string
1494
+ updatedAt?: Date | string
1495
+ agentId?: string | null
1496
+ workspaceId?: string | null
1497
+ engine?: string
1498
+ localCwd?: string | null
1499
+ localAgentId?: string | null
1500
+ indexRevision?: number
1501
+ indexMetadata?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
1502
+ messages?: Prisma.ChatMessageUncheckedCreateNestedManyWithoutThreadInput
1503
+ runs?: Prisma.ChatRunUncheckedCreateNestedManyWithoutThreadInput
1504
+ interrupts?: Prisma.ChatInterruptUncheckedCreateNestedManyWithoutThreadInput
1505
+ generations?: Prisma.GenerationRunUncheckedCreateNestedManyWithoutThreadInput
1506
+ }
1507
+
1508
+ export type ChatThreadCreateOrConnectWithoutSshHostInput = {
1509
+ where: Prisma.ChatThreadWhereUniqueInput
1510
+ create: Prisma.XOR<Prisma.ChatThreadCreateWithoutSshHostInput, Prisma.ChatThreadUncheckedCreateWithoutSshHostInput>
1511
+ }
1512
+
1513
+ export type ChatThreadCreateManySshHostInputEnvelope = {
1514
+ data: Prisma.ChatThreadCreateManySshHostInput | Prisma.ChatThreadCreateManySshHostInput[]
1515
+ skipDuplicates?: boolean
1516
+ }
1517
+
1518
+ export type ChatThreadUpsertWithWhereUniqueWithoutSshHostInput = {
1519
+ where: Prisma.ChatThreadWhereUniqueInput
1520
+ update: Prisma.XOR<Prisma.ChatThreadUpdateWithoutSshHostInput, Prisma.ChatThreadUncheckedUpdateWithoutSshHostInput>
1521
+ create: Prisma.XOR<Prisma.ChatThreadCreateWithoutSshHostInput, Prisma.ChatThreadUncheckedCreateWithoutSshHostInput>
1522
+ }
1523
+
1524
+ export type ChatThreadUpdateWithWhereUniqueWithoutSshHostInput = {
1525
+ where: Prisma.ChatThreadWhereUniqueInput
1526
+ data: Prisma.XOR<Prisma.ChatThreadUpdateWithoutSshHostInput, Prisma.ChatThreadUncheckedUpdateWithoutSshHostInput>
1527
+ }
1528
+
1529
+ export type ChatThreadUpdateManyWithWhereWithoutSshHostInput = {
1530
+ where: Prisma.ChatThreadScalarWhereInput
1531
+ data: Prisma.XOR<Prisma.ChatThreadUpdateManyMutationInput, Prisma.ChatThreadUncheckedUpdateManyWithoutSshHostInput>
1532
+ }
1533
+
1377
1534
  export type ChatThreadCreateManyUserInput = {
1378
1535
  id?: string
1379
1536
  title?: string | null
@@ -1383,6 +1540,7 @@ export type ChatThreadCreateManyUserInput = {
1383
1540
  updatedAt?: Date | string
1384
1541
  agentId?: string | null
1385
1542
  workspaceId?: string | null
1543
+ sshHostId?: string | null
1386
1544
  engine?: string
1387
1545
  localCwd?: string | null
1388
1546
  localAgentId?: string | null
@@ -1408,6 +1566,7 @@ export type ChatThreadUpdateWithoutUserInput = {
1408
1566
  generations?: Prisma.GenerationRunUpdateManyWithoutThreadNestedInput
1409
1567
  agent?: Prisma.UserAgentUpdateOneWithoutThreadsNestedInput
1410
1568
  workspace?: Prisma.HarnessWorkspaceUpdateOneWithoutThreadsNestedInput
1569
+ sshHost?: Prisma.HarnessSshHostUpdateOneWithoutThreadsNestedInput
1411
1570
  }
1412
1571
 
1413
1572
  export type ChatThreadUncheckedUpdateWithoutUserInput = {
@@ -1419,6 +1578,7 @@ export type ChatThreadUncheckedUpdateWithoutUserInput = {
1419
1578
  updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
1420
1579
  agentId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
1421
1580
  workspaceId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
1581
+ sshHostId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
1422
1582
  engine?: Prisma.StringFieldUpdateOperationsInput | string
1423
1583
  localCwd?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
1424
1584
  localAgentId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
@@ -1439,6 +1599,7 @@ export type ChatThreadUncheckedUpdateManyWithoutUserInput = {
1439
1599
  updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
1440
1600
  agentId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
1441
1601
  workspaceId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
1602
+ sshHostId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
1442
1603
  engine?: Prisma.StringFieldUpdateOperationsInput | string
1443
1604
  localCwd?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
1444
1605
  localAgentId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
@@ -1455,6 +1616,7 @@ export type ChatThreadCreateManyAgentInput = {
1455
1616
  createdAt?: Date | string
1456
1617
  updatedAt?: Date | string
1457
1618
  workspaceId?: string | null
1619
+ sshHostId?: string | null
1458
1620
  engine?: string
1459
1621
  localCwd?: string | null
1460
1622
  localAgentId?: string | null
@@ -1480,6 +1642,7 @@ export type ChatThreadUpdateWithoutAgentInput = {
1480
1642
  interrupts?: Prisma.ChatInterruptUpdateManyWithoutThreadNestedInput
1481
1643
  generations?: Prisma.GenerationRunUpdateManyWithoutThreadNestedInput
1482
1644
  workspace?: Prisma.HarnessWorkspaceUpdateOneWithoutThreadsNestedInput
1645
+ sshHost?: Prisma.HarnessSshHostUpdateOneWithoutThreadsNestedInput
1483
1646
  }
1484
1647
 
1485
1648
  export type ChatThreadUncheckedUpdateWithoutAgentInput = {
@@ -1491,6 +1654,7 @@ export type ChatThreadUncheckedUpdateWithoutAgentInput = {
1491
1654
  createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
1492
1655
  updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
1493
1656
  workspaceId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
1657
+ sshHostId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
1494
1658
  engine?: Prisma.StringFieldUpdateOperationsInput | string
1495
1659
  localCwd?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
1496
1660
  localAgentId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
@@ -1511,6 +1675,7 @@ export type ChatThreadUncheckedUpdateManyWithoutAgentInput = {
1511
1675
  createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
1512
1676
  updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
1513
1677
  workspaceId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
1678
+ sshHostId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
1514
1679
  engine?: Prisma.StringFieldUpdateOperationsInput | string
1515
1680
  localCwd?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
1516
1681
  localAgentId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
@@ -1527,6 +1692,7 @@ export type ChatThreadCreateManyWorkspaceInput = {
1527
1692
  createdAt?: Date | string
1528
1693
  updatedAt?: Date | string
1529
1694
  agentId?: string | null
1695
+ sshHostId?: string | null
1530
1696
  engine?: string
1531
1697
  localCwd?: string | null
1532
1698
  localAgentId?: string | null
@@ -1552,6 +1718,7 @@ export type ChatThreadUpdateWithoutWorkspaceInput = {
1552
1718
  interrupts?: Prisma.ChatInterruptUpdateManyWithoutThreadNestedInput
1553
1719
  generations?: Prisma.GenerationRunUpdateManyWithoutThreadNestedInput
1554
1720
  agent?: Prisma.UserAgentUpdateOneWithoutThreadsNestedInput
1721
+ sshHost?: Prisma.HarnessSshHostUpdateOneWithoutThreadsNestedInput
1555
1722
  }
1556
1723
 
1557
1724
  export type ChatThreadUncheckedUpdateWithoutWorkspaceInput = {
@@ -1563,6 +1730,7 @@ export type ChatThreadUncheckedUpdateWithoutWorkspaceInput = {
1563
1730
  createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
1564
1731
  updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
1565
1732
  agentId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
1733
+ sshHostId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
1566
1734
  engine?: Prisma.StringFieldUpdateOperationsInput | string
1567
1735
  localCwd?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
1568
1736
  localAgentId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
@@ -1583,6 +1751,83 @@ export type ChatThreadUncheckedUpdateManyWithoutWorkspaceInput = {
1583
1751
  createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
1584
1752
  updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
1585
1753
  agentId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
1754
+ sshHostId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
1755
+ engine?: Prisma.StringFieldUpdateOperationsInput | string
1756
+ localCwd?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
1757
+ localAgentId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
1758
+ indexRevision?: Prisma.IntFieldUpdateOperationsInput | number
1759
+ indexMetadata?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
1760
+ }
1761
+
1762
+ export type ChatThreadCreateManySshHostInput = {
1763
+ id?: string
1764
+ userId: string
1765
+ title?: string | null
1766
+ isArchived?: boolean
1767
+ sandboxPolicy?: string
1768
+ createdAt?: Date | string
1769
+ updatedAt?: Date | string
1770
+ agentId?: string | null
1771
+ workspaceId?: string | null
1772
+ engine?: string
1773
+ localCwd?: string | null
1774
+ localAgentId?: string | null
1775
+ indexRevision?: number
1776
+ indexMetadata?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
1777
+ }
1778
+
1779
+ export type ChatThreadUpdateWithoutSshHostInput = {
1780
+ id?: Prisma.StringFieldUpdateOperationsInput | string
1781
+ title?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
1782
+ isArchived?: Prisma.BoolFieldUpdateOperationsInput | boolean
1783
+ sandboxPolicy?: Prisma.StringFieldUpdateOperationsInput | string
1784
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
1785
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
1786
+ engine?: Prisma.StringFieldUpdateOperationsInput | string
1787
+ localCwd?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
1788
+ localAgentId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
1789
+ indexRevision?: Prisma.IntFieldUpdateOperationsInput | number
1790
+ indexMetadata?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
1791
+ user?: Prisma.UserUpdateOneRequiredWithoutChatThreadsNestedInput
1792
+ messages?: Prisma.ChatMessageUpdateManyWithoutThreadNestedInput
1793
+ runs?: Prisma.ChatRunUpdateManyWithoutThreadNestedInput
1794
+ interrupts?: Prisma.ChatInterruptUpdateManyWithoutThreadNestedInput
1795
+ generations?: Prisma.GenerationRunUpdateManyWithoutThreadNestedInput
1796
+ agent?: Prisma.UserAgentUpdateOneWithoutThreadsNestedInput
1797
+ workspace?: Prisma.HarnessWorkspaceUpdateOneWithoutThreadsNestedInput
1798
+ }
1799
+
1800
+ export type ChatThreadUncheckedUpdateWithoutSshHostInput = {
1801
+ id?: Prisma.StringFieldUpdateOperationsInput | string
1802
+ userId?: Prisma.StringFieldUpdateOperationsInput | string
1803
+ title?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
1804
+ isArchived?: Prisma.BoolFieldUpdateOperationsInput | boolean
1805
+ sandboxPolicy?: Prisma.StringFieldUpdateOperationsInput | string
1806
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
1807
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
1808
+ agentId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
1809
+ workspaceId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
1810
+ engine?: Prisma.StringFieldUpdateOperationsInput | string
1811
+ localCwd?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
1812
+ localAgentId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
1813
+ indexRevision?: Prisma.IntFieldUpdateOperationsInput | number
1814
+ indexMetadata?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
1815
+ messages?: Prisma.ChatMessageUncheckedUpdateManyWithoutThreadNestedInput
1816
+ runs?: Prisma.ChatRunUncheckedUpdateManyWithoutThreadNestedInput
1817
+ interrupts?: Prisma.ChatInterruptUncheckedUpdateManyWithoutThreadNestedInput
1818
+ generations?: Prisma.GenerationRunUncheckedUpdateManyWithoutThreadNestedInput
1819
+ }
1820
+
1821
+ export type ChatThreadUncheckedUpdateManyWithoutSshHostInput = {
1822
+ id?: Prisma.StringFieldUpdateOperationsInput | string
1823
+ userId?: Prisma.StringFieldUpdateOperationsInput | string
1824
+ title?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
1825
+ isArchived?: Prisma.BoolFieldUpdateOperationsInput | boolean
1826
+ sandboxPolicy?: Prisma.StringFieldUpdateOperationsInput | string
1827
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
1828
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
1829
+ agentId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
1830
+ workspaceId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
1586
1831
  engine?: Prisma.StringFieldUpdateOperationsInput | string
1587
1832
  localCwd?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
1588
1833
  localAgentId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
@@ -1658,6 +1903,7 @@ export type ChatThreadSelect<ExtArgs extends runtime.Types.Extensions.InternalAr
1658
1903
  updatedAt?: boolean
1659
1904
  agentId?: boolean
1660
1905
  workspaceId?: boolean
1906
+ sshHostId?: boolean
1661
1907
  engine?: boolean
1662
1908
  localCwd?: boolean
1663
1909
  localAgentId?: boolean
@@ -1670,6 +1916,7 @@ export type ChatThreadSelect<ExtArgs extends runtime.Types.Extensions.InternalAr
1670
1916
  generations?: boolean | Prisma.ChatThread$generationsArgs<ExtArgs>
1671
1917
  agent?: boolean | Prisma.ChatThread$agentArgs<ExtArgs>
1672
1918
  workspace?: boolean | Prisma.ChatThread$workspaceArgs<ExtArgs>
1919
+ sshHost?: boolean | Prisma.ChatThread$sshHostArgs<ExtArgs>
1673
1920
  _count?: boolean | Prisma.ChatThreadCountOutputTypeDefaultArgs<ExtArgs>
1674
1921
  }, ExtArgs["result"]["chatThread"]>
1675
1922
 
@@ -1683,6 +1930,7 @@ export type ChatThreadSelectCreateManyAndReturn<ExtArgs extends runtime.Types.Ex
1683
1930
  updatedAt?: boolean
1684
1931
  agentId?: boolean
1685
1932
  workspaceId?: boolean
1933
+ sshHostId?: boolean
1686
1934
  engine?: boolean
1687
1935
  localCwd?: boolean
1688
1936
  localAgentId?: boolean
@@ -1691,6 +1939,7 @@ export type ChatThreadSelectCreateManyAndReturn<ExtArgs extends runtime.Types.Ex
1691
1939
  user?: boolean | Prisma.UserDefaultArgs<ExtArgs>
1692
1940
  agent?: boolean | Prisma.ChatThread$agentArgs<ExtArgs>
1693
1941
  workspace?: boolean | Prisma.ChatThread$workspaceArgs<ExtArgs>
1942
+ sshHost?: boolean | Prisma.ChatThread$sshHostArgs<ExtArgs>
1694
1943
  }, ExtArgs["result"]["chatThread"]>
1695
1944
 
1696
1945
  export type ChatThreadSelectUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
@@ -1703,6 +1952,7 @@ export type ChatThreadSelectUpdateManyAndReturn<ExtArgs extends runtime.Types.Ex
1703
1952
  updatedAt?: boolean
1704
1953
  agentId?: boolean
1705
1954
  workspaceId?: boolean
1955
+ sshHostId?: boolean
1706
1956
  engine?: boolean
1707
1957
  localCwd?: boolean
1708
1958
  localAgentId?: boolean
@@ -1711,6 +1961,7 @@ export type ChatThreadSelectUpdateManyAndReturn<ExtArgs extends runtime.Types.Ex
1711
1961
  user?: boolean | Prisma.UserDefaultArgs<ExtArgs>
1712
1962
  agent?: boolean | Prisma.ChatThread$agentArgs<ExtArgs>
1713
1963
  workspace?: boolean | Prisma.ChatThread$workspaceArgs<ExtArgs>
1964
+ sshHost?: boolean | Prisma.ChatThread$sshHostArgs<ExtArgs>
1714
1965
  }, ExtArgs["result"]["chatThread"]>
1715
1966
 
1716
1967
  export type ChatThreadSelectScalar = {
@@ -1723,6 +1974,7 @@ export type ChatThreadSelectScalar = {
1723
1974
  updatedAt?: boolean
1724
1975
  agentId?: boolean
1725
1976
  workspaceId?: boolean
1977
+ sshHostId?: boolean
1726
1978
  engine?: boolean
1727
1979
  localCwd?: boolean
1728
1980
  localAgentId?: boolean
@@ -1730,7 +1982,7 @@ export type ChatThreadSelectScalar = {
1730
1982
  indexMetadata?: boolean
1731
1983
  }
1732
1984
 
1733
- 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" | "indexRevision" | "indexMetadata", ExtArgs["result"]["chatThread"]>
1985
+ 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" | "sshHostId" | "engine" | "localCwd" | "localAgentId" | "indexRevision" | "indexMetadata", ExtArgs["result"]["chatThread"]>
1734
1986
  export type ChatThreadInclude<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1735
1987
  user?: boolean | Prisma.UserDefaultArgs<ExtArgs>
1736
1988
  messages?: boolean | Prisma.ChatThread$messagesArgs<ExtArgs>
@@ -1739,17 +1991,20 @@ export type ChatThreadInclude<ExtArgs extends runtime.Types.Extensions.InternalA
1739
1991
  generations?: boolean | Prisma.ChatThread$generationsArgs<ExtArgs>
1740
1992
  agent?: boolean | Prisma.ChatThread$agentArgs<ExtArgs>
1741
1993
  workspace?: boolean | Prisma.ChatThread$workspaceArgs<ExtArgs>
1994
+ sshHost?: boolean | Prisma.ChatThread$sshHostArgs<ExtArgs>
1742
1995
  _count?: boolean | Prisma.ChatThreadCountOutputTypeDefaultArgs<ExtArgs>
1743
1996
  }
1744
1997
  export type ChatThreadIncludeCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1745
1998
  user?: boolean | Prisma.UserDefaultArgs<ExtArgs>
1746
1999
  agent?: boolean | Prisma.ChatThread$agentArgs<ExtArgs>
1747
2000
  workspace?: boolean | Prisma.ChatThread$workspaceArgs<ExtArgs>
2001
+ sshHost?: boolean | Prisma.ChatThread$sshHostArgs<ExtArgs>
1748
2002
  }
1749
2003
  export type ChatThreadIncludeUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1750
2004
  user?: boolean | Prisma.UserDefaultArgs<ExtArgs>
1751
2005
  agent?: boolean | Prisma.ChatThread$agentArgs<ExtArgs>
1752
2006
  workspace?: boolean | Prisma.ChatThread$workspaceArgs<ExtArgs>
2007
+ sshHost?: boolean | Prisma.ChatThread$sshHostArgs<ExtArgs>
1753
2008
  }
1754
2009
 
1755
2010
  export type $ChatThreadPayload<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
@@ -1762,6 +2017,7 @@ export type $ChatThreadPayload<ExtArgs extends runtime.Types.Extensions.Internal
1762
2017
  generations: Prisma.$GenerationRunPayload<ExtArgs>[]
1763
2018
  agent: Prisma.$UserAgentPayload<ExtArgs> | null
1764
2019
  workspace: Prisma.$HarnessWorkspacePayload<ExtArgs> | null
2020
+ sshHost: Prisma.$HarnessSshHostPayload<ExtArgs> | null
1765
2021
  }
1766
2022
  scalars: runtime.Types.Extensions.GetPayloadResult<{
1767
2023
  id: string
@@ -1773,6 +2029,10 @@ export type $ChatThreadPayload<ExtArgs extends runtime.Types.Extensions.Internal
1773
2029
  updatedAt: Date
1774
2030
  agentId: string | null
1775
2031
  workspaceId: string | null
2032
+ /**
2033
+ * SSH 执行目标(任务 16,仅桌面):非空时工作区后端走远端 SSH 主机
2034
+ */
2035
+ sshHostId: string | null
1776
2036
  /**
1777
2037
  * 执行引擎:cloud(服务端模型)/ local(桌面本地 Agent)
1778
2038
  */
@@ -2196,6 +2456,7 @@ export interface Prisma__ChatThreadClient<T, Null = never, ExtArgs extends runti
2196
2456
  generations<T extends Prisma.ChatThread$generationsArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.ChatThread$generationsArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$GenerationRunPayload<ExtArgs>, T, "findMany", GlobalOmitOptions> | Null>
2197
2457
  agent<T extends Prisma.ChatThread$agentArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.ChatThread$agentArgs<ExtArgs>>): Prisma.Prisma__UserAgentClient<runtime.Types.Result.GetResult<Prisma.$UserAgentPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
2198
2458
  workspace<T extends Prisma.ChatThread$workspaceArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.ChatThread$workspaceArgs<ExtArgs>>): Prisma.Prisma__HarnessWorkspaceClient<runtime.Types.Result.GetResult<Prisma.$HarnessWorkspacePayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
2459
+ sshHost<T extends Prisma.ChatThread$sshHostArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.ChatThread$sshHostArgs<ExtArgs>>): Prisma.Prisma__HarnessSshHostClient<runtime.Types.Result.GetResult<Prisma.$HarnessSshHostPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
2199
2460
  /**
2200
2461
  * Attaches callbacks for the resolution and/or rejection of the Promise.
2201
2462
  * @param onfulfilled The callback to execute when the Promise is resolved.
@@ -2234,6 +2495,7 @@ export interface ChatThreadFieldRefs {
2234
2495
  readonly updatedAt: Prisma.FieldRef<"ChatThread", 'DateTime'>
2235
2496
  readonly agentId: Prisma.FieldRef<"ChatThread", 'String'>
2236
2497
  readonly workspaceId: Prisma.FieldRef<"ChatThread", 'String'>
2498
+ readonly sshHostId: Prisma.FieldRef<"ChatThread", 'String'>
2237
2499
  readonly engine: Prisma.FieldRef<"ChatThread", 'String'>
2238
2500
  readonly localCwd: Prisma.FieldRef<"ChatThread", 'String'>
2239
2501
  readonly localAgentId: Prisma.FieldRef<"ChatThread", 'String'>
@@ -2773,6 +3035,25 @@ export type ChatThread$workspaceArgs<ExtArgs extends runtime.Types.Extensions.In
2773
3035
  where?: Prisma.HarnessWorkspaceWhereInput
2774
3036
  }
2775
3037
 
3038
+ /**
3039
+ * ChatThread.sshHost
3040
+ */
3041
+ export type ChatThread$sshHostArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
3042
+ /**
3043
+ * Select specific fields to fetch from the HarnessSshHost
3044
+ */
3045
+ select?: Prisma.HarnessSshHostSelect<ExtArgs> | null
3046
+ /**
3047
+ * Omit specific fields from the HarnessSshHost
3048
+ */
3049
+ omit?: Prisma.HarnessSshHostOmit<ExtArgs> | null
3050
+ /**
3051
+ * Choose, which related nodes to fetch as well
3052
+ */
3053
+ include?: Prisma.HarnessSshHostInclude<ExtArgs> | null
3054
+ where?: Prisma.HarnessSshHostWhereInput
3055
+ }
3056
+
2776
3057
  /**
2777
3058
  * ChatThread without action
2778
3059
  */