@get-bb/plugin-sdk 0.6.16 → 0.6.19

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.
@@ -538,11 +538,13 @@ type Environment = z$1.infer<typeof environmentSchema>;
538
538
 
539
539
  declare const experimentsSchema: z$1.ZodRecord<z$1.ZodEnum<{
540
540
  changelogPreview: "changelogPreview";
541
+ performanceDiagnostics: "performanceDiagnostics";
541
542
  serverMove: "serverMove";
542
543
  }>, z$1.ZodBoolean>;
543
544
  type Experiments = z$1.infer<typeof experimentsSchema>;
544
545
  declare const experimentUpdatesSchema: z$1.ZodRecord<z$1.ZodEnum<{
545
546
  changelogPreview: "changelogPreview";
547
+ performanceDiagnostics: "performanceDiagnostics";
546
548
  serverMove: "serverMove";
547
549
  }> & z$1.core.$partial, z$1.ZodBoolean>;
548
550
  type ExperimentUpdates = z$1.infer<typeof experimentUpdatesSchema>;
@@ -2923,16 +2925,20 @@ declare const threadEventSchema: z$1.ZodUnion<readonly [z$1.ZodIntersection<z$1.
2923
2925
  "agent-only": "agent-only";
2924
2926
  }>>;
2925
2927
  }, z$1.core.$strip>, z$1.ZodObject<{
2928
+ hostId: z$1.ZodOptional<z$1.ZodString>;
2926
2929
  path: z$1.ZodString;
2930
+ sourceProjectId: z$1.ZodOptional<z$1.ZodString>;
2927
2931
  type: z$1.ZodLiteral<"localImage">;
2928
2932
  visibility: z$1.ZodOptional<z$1.ZodEnum<{
2929
2933
  "agent-only": "agent-only";
2930
2934
  }>>;
2931
2935
  }, z$1.core.$strip>, z$1.ZodObject<{
2936
+ hostId: z$1.ZodOptional<z$1.ZodString>;
2932
2937
  mimeType: z$1.ZodOptional<z$1.ZodString>;
2933
2938
  name: z$1.ZodOptional<z$1.ZodString>;
2934
2939
  path: z$1.ZodString;
2935
2940
  sizeBytes: z$1.ZodOptional<z$1.ZodNumber>;
2941
+ sourceProjectId: z$1.ZodOptional<z$1.ZodString>;
2936
2942
  type: z$1.ZodLiteral<"localFile">;
2937
2943
  visibility: z$1.ZodOptional<z$1.ZodEnum<{
2938
2944
  "agent-only": "agent-only";
@@ -3005,16 +3011,20 @@ declare const threadEventSchema: z$1.ZodUnion<readonly [z$1.ZodIntersection<z$1.
3005
3011
  "agent-only": "agent-only";
3006
3012
  }>>;
3007
3013
  }, z$1.core.$strip>, z$1.ZodObject<{
3014
+ hostId: z$1.ZodOptional<z$1.ZodString>;
3008
3015
  path: z$1.ZodString;
3016
+ sourceProjectId: z$1.ZodOptional<z$1.ZodString>;
3009
3017
  type: z$1.ZodLiteral<"localImage">;
3010
3018
  visibility: z$1.ZodOptional<z$1.ZodEnum<{
3011
3019
  "agent-only": "agent-only";
3012
3020
  }>>;
3013
3021
  }, z$1.core.$strip>, z$1.ZodObject<{
3022
+ hostId: z$1.ZodOptional<z$1.ZodString>;
3014
3023
  mimeType: z$1.ZodOptional<z$1.ZodString>;
3015
3024
  name: z$1.ZodOptional<z$1.ZodString>;
3016
3025
  path: z$1.ZodString;
3017
3026
  sizeBytes: z$1.ZodOptional<z$1.ZodNumber>;
3027
+ sourceProjectId: z$1.ZodOptional<z$1.ZodString>;
3018
3028
  type: z$1.ZodLiteral<"localFile">;
3019
3029
  visibility: z$1.ZodOptional<z$1.ZodEnum<{
3020
3030
  "agent-only": "agent-only";
@@ -3979,16 +3989,20 @@ declare const promptInputSchema: z$1.ZodDiscriminatedUnion<[z$1.ZodObject<{
3979
3989
  "agent-only": "agent-only";
3980
3990
  }>>;
3981
3991
  }, z$1.core.$strip>, z$1.ZodObject<{
3992
+ hostId: z$1.ZodOptional<z$1.ZodString>;
3982
3993
  path: z$1.ZodString;
3994
+ sourceProjectId: z$1.ZodOptional<z$1.ZodString>;
3983
3995
  type: z$1.ZodLiteral<"localImage">;
3984
3996
  visibility: z$1.ZodOptional<z$1.ZodEnum<{
3985
3997
  "agent-only": "agent-only";
3986
3998
  }>>;
3987
3999
  }, z$1.core.$strip>, z$1.ZodObject<{
4000
+ hostId: z$1.ZodOptional<z$1.ZodString>;
3988
4001
  mimeType: z$1.ZodOptional<z$1.ZodString>;
3989
4002
  name: z$1.ZodOptional<z$1.ZodString>;
3990
4003
  path: z$1.ZodString;
3991
4004
  sizeBytes: z$1.ZodOptional<z$1.ZodNumber>;
4005
+ sourceProjectId: z$1.ZodOptional<z$1.ZodString>;
3992
4006
  type: z$1.ZodLiteral<"localFile">;
3993
4007
  visibility: z$1.ZodOptional<z$1.ZodEnum<{
3994
4008
  "agent-only": "agent-only";
@@ -4281,16 +4295,20 @@ declare const threadQueuedMessageSchema: z$1.ZodObject<{
4281
4295
  "agent-only": "agent-only";
4282
4296
  }>>;
4283
4297
  }, z$1.core.$strip>, z$1.ZodObject<{
4298
+ hostId: z$1.ZodOptional<z$1.ZodString>;
4284
4299
  path: z$1.ZodString;
4300
+ sourceProjectId: z$1.ZodOptional<z$1.ZodString>;
4285
4301
  type: z$1.ZodLiteral<"localImage">;
4286
4302
  visibility: z$1.ZodOptional<z$1.ZodEnum<{
4287
4303
  "agent-only": "agent-only";
4288
4304
  }>>;
4289
4305
  }, z$1.core.$strip>, z$1.ZodObject<{
4306
+ hostId: z$1.ZodOptional<z$1.ZodString>;
4290
4307
  mimeType: z$1.ZodOptional<z$1.ZodString>;
4291
4308
  name: z$1.ZodOptional<z$1.ZodString>;
4292
4309
  path: z$1.ZodString;
4293
4310
  sizeBytes: z$1.ZodOptional<z$1.ZodNumber>;
4311
+ sourceProjectId: z$1.ZodOptional<z$1.ZodString>;
4294
4312
  type: z$1.ZodLiteral<"localFile">;
4295
4313
  visibility: z$1.ZodOptional<z$1.ZodEnum<{
4296
4314
  "agent-only": "agent-only";
@@ -4699,16 +4717,20 @@ declare const promptHistoryResponseSchema: z$1.ZodArray<z$1.ZodObject<{
4699
4717
  "agent-only": "agent-only";
4700
4718
  }>>;
4701
4719
  }, z$1.core.$strip>, z$1.ZodObject<{
4720
+ hostId: z$1.ZodOptional<z$1.ZodString>;
4702
4721
  path: z$1.ZodString;
4722
+ sourceProjectId: z$1.ZodOptional<z$1.ZodString>;
4703
4723
  type: z$1.ZodLiteral<"localImage">;
4704
4724
  visibility: z$1.ZodOptional<z$1.ZodEnum<{
4705
4725
  "agent-only": "agent-only";
4706
4726
  }>>;
4707
4727
  }, z$1.core.$strip>, z$1.ZodObject<{
4728
+ hostId: z$1.ZodOptional<z$1.ZodString>;
4708
4729
  mimeType: z$1.ZodOptional<z$1.ZodString>;
4709
4730
  name: z$1.ZodOptional<z$1.ZodString>;
4710
4731
  path: z$1.ZodString;
4711
4732
  sizeBytes: z$1.ZodOptional<z$1.ZodNumber>;
4733
+ sourceProjectId: z$1.ZodOptional<z$1.ZodString>;
4712
4734
  type: z$1.ZodLiteral<"localFile">;
4713
4735
  visibility: z$1.ZodOptional<z$1.ZodEnum<{
4714
4736
  "agent-only": "agent-only";
@@ -5159,6 +5181,7 @@ declare const uploadedPromptAttachmentSchema: z$1.ZodObject<{
5159
5181
  name: z$1.ZodString;
5160
5182
  path: z$1.ZodString;
5161
5183
  sizeBytes: z$1.ZodNumber;
5184
+ sourceProjectId: z$1.ZodOptional<z$1.ZodString>;
5162
5185
  type: z$1.ZodEnum<{
5163
5186
  localFile: "localFile";
5164
5187
  localImage: "localImage";
@@ -5247,16 +5270,20 @@ declare const promptHistoryListResponseSchema: z$1.ZodObject<{
5247
5270
  "agent-only": "agent-only";
5248
5271
  }>>;
5249
5272
  }, z$1.core.$strip>, z$1.ZodObject<{
5273
+ hostId: z$1.ZodOptional<z$1.ZodString>;
5250
5274
  path: z$1.ZodString;
5275
+ sourceProjectId: z$1.ZodOptional<z$1.ZodString>;
5251
5276
  type: z$1.ZodLiteral<"localImage">;
5252
5277
  visibility: z$1.ZodOptional<z$1.ZodEnum<{
5253
5278
  "agent-only": "agent-only";
5254
5279
  }>>;
5255
5280
  }, z$1.core.$strip>, z$1.ZodObject<{
5281
+ hostId: z$1.ZodOptional<z$1.ZodString>;
5256
5282
  mimeType: z$1.ZodOptional<z$1.ZodString>;
5257
5283
  name: z$1.ZodOptional<z$1.ZodString>;
5258
5284
  path: z$1.ZodString;
5259
5285
  sizeBytes: z$1.ZodOptional<z$1.ZodNumber>;
5286
+ sourceProjectId: z$1.ZodOptional<z$1.ZodString>;
5260
5287
  type: z$1.ZodLiteral<"localFile">;
5261
5288
  visibility: z$1.ZodOptional<z$1.ZodEnum<{
5262
5289
  "agent-only": "agent-only";
@@ -6384,16 +6411,20 @@ declare const hostDaemonCommandRegistry: {
6384
6411
  "agent-only": "agent-only";
6385
6412
  }>>;
6386
6413
  }, z$1.core.$strip>, z$1.ZodObject<{
6414
+ hostId: z$1.ZodOptional<z$1.ZodString>;
6387
6415
  path: z$1.ZodString;
6416
+ sourceProjectId: z$1.ZodOptional<z$1.ZodString>;
6388
6417
  type: z$1.ZodLiteral<"localImage">;
6389
6418
  visibility: z$1.ZodOptional<z$1.ZodEnum<{
6390
6419
  "agent-only": "agent-only";
6391
6420
  }>>;
6392
6421
  }, z$1.core.$strip>, z$1.ZodObject<{
6422
+ hostId: z$1.ZodOptional<z$1.ZodString>;
6393
6423
  mimeType: z$1.ZodOptional<z$1.ZodString>;
6394
6424
  name: z$1.ZodOptional<z$1.ZodString>;
6395
6425
  path: z$1.ZodString;
6396
6426
  sizeBytes: z$1.ZodOptional<z$1.ZodNumber>;
6427
+ sourceProjectId: z$1.ZodOptional<z$1.ZodString>;
6397
6428
  type: z$1.ZodLiteral<"localFile">;
6398
6429
  visibility: z$1.ZodOptional<z$1.ZodEnum<{
6399
6430
  "agent-only": "agent-only";
@@ -6466,16 +6497,20 @@ declare const hostDaemonCommandRegistry: {
6466
6497
  "agent-only": "agent-only";
6467
6498
  }>>;
6468
6499
  }, z$1.core.$strip>, z$1.ZodObject<{
6500
+ hostId: z$1.ZodOptional<z$1.ZodString>;
6469
6501
  path: z$1.ZodString;
6502
+ sourceProjectId: z$1.ZodOptional<z$1.ZodString>;
6470
6503
  type: z$1.ZodLiteral<"localImage">;
6471
6504
  visibility: z$1.ZodOptional<z$1.ZodEnum<{
6472
6505
  "agent-only": "agent-only";
6473
6506
  }>>;
6474
6507
  }, z$1.core.$strip>, z$1.ZodObject<{
6508
+ hostId: z$1.ZodOptional<z$1.ZodString>;
6475
6509
  mimeType: z$1.ZodOptional<z$1.ZodString>;
6476
6510
  name: z$1.ZodOptional<z$1.ZodString>;
6477
6511
  path: z$1.ZodString;
6478
6512
  sizeBytes: z$1.ZodOptional<z$1.ZodNumber>;
6513
+ sourceProjectId: z$1.ZodOptional<z$1.ZodString>;
6479
6514
  type: z$1.ZodLiteral<"localFile">;
6480
6515
  visibility: z$1.ZodOptional<z$1.ZodEnum<{
6481
6516
  "agent-only": "agent-only";
@@ -6630,16 +6665,20 @@ declare const hostDaemonCommandRegistry: {
6630
6665
  "agent-only": "agent-only";
6631
6666
  }>>;
6632
6667
  }, z$1.core.$strip>, z$1.ZodObject<{
6668
+ hostId: z$1.ZodOptional<z$1.ZodString>;
6633
6669
  path: z$1.ZodString;
6670
+ sourceProjectId: z$1.ZodOptional<z$1.ZodString>;
6634
6671
  type: z$1.ZodLiteral<"localImage">;
6635
6672
  visibility: z$1.ZodOptional<z$1.ZodEnum<{
6636
6673
  "agent-only": "agent-only";
6637
6674
  }>>;
6638
6675
  }, z$1.core.$strip>, z$1.ZodObject<{
6676
+ hostId: z$1.ZodOptional<z$1.ZodString>;
6639
6677
  mimeType: z$1.ZodOptional<z$1.ZodString>;
6640
6678
  name: z$1.ZodOptional<z$1.ZodString>;
6641
6679
  path: z$1.ZodString;
6642
6680
  sizeBytes: z$1.ZodOptional<z$1.ZodNumber>;
6681
+ sourceProjectId: z$1.ZodOptional<z$1.ZodString>;
6643
6682
  type: z$1.ZodLiteral<"localFile">;
6644
6683
  visibility: z$1.ZodOptional<z$1.ZodEnum<{
6645
6684
  "agent-only": "agent-only";
@@ -6712,16 +6751,20 @@ declare const hostDaemonCommandRegistry: {
6712
6751
  "agent-only": "agent-only";
6713
6752
  }>>;
6714
6753
  }, z$1.core.$strip>, z$1.ZodObject<{
6754
+ hostId: z$1.ZodOptional<z$1.ZodString>;
6715
6755
  path: z$1.ZodString;
6756
+ sourceProjectId: z$1.ZodOptional<z$1.ZodString>;
6716
6757
  type: z$1.ZodLiteral<"localImage">;
6717
6758
  visibility: z$1.ZodOptional<z$1.ZodEnum<{
6718
6759
  "agent-only": "agent-only";
6719
6760
  }>>;
6720
6761
  }, z$1.core.$strip>, z$1.ZodObject<{
6762
+ hostId: z$1.ZodOptional<z$1.ZodString>;
6721
6763
  mimeType: z$1.ZodOptional<z$1.ZodString>;
6722
6764
  name: z$1.ZodOptional<z$1.ZodString>;
6723
6765
  path: z$1.ZodString;
6724
6766
  sizeBytes: z$1.ZodOptional<z$1.ZodNumber>;
6767
+ sourceProjectId: z$1.ZodOptional<z$1.ZodString>;
6725
6768
  type: z$1.ZodLiteral<"localFile">;
6726
6769
  visibility: z$1.ZodOptional<z$1.ZodEnum<{
6727
6770
  "agent-only": "agent-only";
@@ -10188,6 +10231,7 @@ declare const systemConfigResponseSchema: z$1.ZodObject<{
10188
10231
  }, z$1.core.$strict>>;
10189
10232
  experiments: z$1.ZodRecord<z$1.ZodEnum<{
10190
10233
  changelogPreview: "changelogPreview";
10234
+ performanceDiagnostics: "performanceDiagnostics";
10191
10235
  serverMove: "serverMove";
10192
10236
  }>, z$1.ZodBoolean>;
10193
10237
  featureFlags: z$1.ZodObject<{
@@ -10430,6 +10474,7 @@ declare const systemConfigResponseSchema: z$1.ZodObject<{
10430
10474
  }, z$1.core.$strict>;
10431
10475
  }, z$1.core.$strict>>;
10432
10476
  localHelperPorts: z$1.ZodArray<z$1.ZodNumber>;
10477
+ performanceDiagnosticsAvailable: z$1.ZodBoolean;
10433
10478
  pluginThemes: z$1.ZodArray<z$1.ZodObject<{
10434
10479
  description: z$1.ZodNullable<z$1.ZodString>;
10435
10480
  id: z$1.ZodString;
@@ -10508,7 +10553,13 @@ declare const themeCatalogResponseSchema: z$1.ZodObject<{
10508
10553
  }, z$1.core.$strip>;
10509
10554
  type ThemeCatalogResponse = z$1.infer<typeof themeCatalogResponseSchema>;
10510
10555
  declare const systemVersionResponseSchema: z$1.ZodObject<{
10556
+ currentCommit: z$1.ZodNullable<z$1.ZodString>;
10511
10557
  currentVersion: z$1.ZodString;
10558
+ installKind: z$1.ZodNullable<z$1.ZodEnum<{
10559
+ desktop: "desktop";
10560
+ npm: "npm";
10561
+ source: "source";
10562
+ }>>;
10512
10563
  isDevelopment: z$1.ZodBoolean;
10513
10564
  latestVersion: z$1.ZodNullable<z$1.ZodString>;
10514
10565
  source: z$1.ZodLiteral<"npm">;
@@ -11037,6 +11088,7 @@ declare const timelineConversationRowSchema: z$1.ZodDiscriminatedUnion<[z$1.ZodO
11037
11088
  }, z$1.core.$strip>], "kind">, unknown>;
11038
11089
  start: z$1.ZodNumber;
11039
11090
  }, z$1.core.$strip>>;
11091
+ messageSeq: z$1.ZodNumber;
11040
11092
  role: z$1.ZodLiteral<"user">;
11041
11093
  senderThreadId: z$1.ZodNullable<z$1.ZodString>;
11042
11094
  sourceSeqEnd: z$1.ZodNumber;
@@ -11126,6 +11178,7 @@ declare const timelineConversationRowSchema: z$1.ZodDiscriminatedUnion<[z$1.ZodO
11126
11178
  createdAt: z$1.ZodNumber;
11127
11179
  id: z$1.ZodString;
11128
11180
  kind: z$1.ZodLiteral<"conversation">;
11181
+ messageSeq: z$1.ZodNumber;
11129
11182
  role: z$1.ZodLiteral<"assistant">;
11130
11183
  sourceSeqEnd: z$1.ZodNumber;
11131
11184
  sourceSeqStart: z$1.ZodNumber;
@@ -12257,16 +12310,20 @@ declare const createThreadRequestSchema: z$1.ZodObject<{
12257
12310
  "agent-only": "agent-only";
12258
12311
  }>>;
12259
12312
  }, z$1.core.$strip>, z$1.ZodObject<{
12313
+ hostId: z$1.ZodOptional<z$1.ZodString>;
12260
12314
  path: z$1.ZodString;
12315
+ sourceProjectId: z$1.ZodOptional<z$1.ZodString>;
12261
12316
  type: z$1.ZodLiteral<"localImage">;
12262
12317
  visibility: z$1.ZodOptional<z$1.ZodEnum<{
12263
12318
  "agent-only": "agent-only";
12264
12319
  }>>;
12265
12320
  }, z$1.core.$strip>, z$1.ZodObject<{
12321
+ hostId: z$1.ZodOptional<z$1.ZodString>;
12266
12322
  mimeType: z$1.ZodOptional<z$1.ZodString>;
12267
12323
  name: z$1.ZodOptional<z$1.ZodString>;
12268
12324
  path: z$1.ZodString;
12269
12325
  sizeBytes: z$1.ZodOptional<z$1.ZodNumber>;
12326
+ sourceProjectId: z$1.ZodOptional<z$1.ZodString>;
12270
12327
  type: z$1.ZodLiteral<"localFile">;
12271
12328
  visibility: z$1.ZodOptional<z$1.ZodEnum<{
12272
12329
  "agent-only": "agent-only";
@@ -12395,16 +12452,20 @@ declare const forkThreadRequestSchema: z$1.ZodObject<{
12395
12452
  "agent-only": "agent-only";
12396
12453
  }>>;
12397
12454
  }, z$1.core.$strip>, z$1.ZodObject<{
12455
+ hostId: z$1.ZodOptional<z$1.ZodString>;
12398
12456
  path: z$1.ZodString;
12457
+ sourceProjectId: z$1.ZodOptional<z$1.ZodString>;
12399
12458
  type: z$1.ZodLiteral<"localImage">;
12400
12459
  visibility: z$1.ZodOptional<z$1.ZodEnum<{
12401
12460
  "agent-only": "agent-only";
12402
12461
  }>>;
12403
12462
  }, z$1.core.$strip>, z$1.ZodObject<{
12463
+ hostId: z$1.ZodOptional<z$1.ZodString>;
12404
12464
  mimeType: z$1.ZodOptional<z$1.ZodString>;
12405
12465
  name: z$1.ZodOptional<z$1.ZodString>;
12406
12466
  path: z$1.ZodString;
12407
12467
  sizeBytes: z$1.ZodOptional<z$1.ZodNumber>;
12468
+ sourceProjectId: z$1.ZodOptional<z$1.ZodString>;
12408
12469
  type: z$1.ZodLiteral<"localFile">;
12409
12470
  visibility: z$1.ZodOptional<z$1.ZodEnum<{
12410
12471
  "agent-only": "agent-only";
@@ -12521,16 +12582,20 @@ declare const forkThreadRequestSchema: z$1.ZodObject<{
12521
12582
  "agent-only": "agent-only";
12522
12583
  }>>;
12523
12584
  }, z$1.core.$strip>, z$1.ZodObject<{
12585
+ hostId: z$1.ZodOptional<z$1.ZodString>;
12524
12586
  path: z$1.ZodString;
12587
+ sourceProjectId: z$1.ZodOptional<z$1.ZodString>;
12525
12588
  type: z$1.ZodLiteral<"localImage">;
12526
12589
  visibility: z$1.ZodOptional<z$1.ZodEnum<{
12527
12590
  "agent-only": "agent-only";
12528
12591
  }>>;
12529
12592
  }, z$1.core.$strip>, z$1.ZodObject<{
12593
+ hostId: z$1.ZodOptional<z$1.ZodString>;
12530
12594
  mimeType: z$1.ZodOptional<z$1.ZodString>;
12531
12595
  name: z$1.ZodOptional<z$1.ZodString>;
12532
12596
  path: z$1.ZodString;
12533
12597
  sizeBytes: z$1.ZodOptional<z$1.ZodNumber>;
12598
+ sourceProjectId: z$1.ZodOptional<z$1.ZodString>;
12534
12599
  type: z$1.ZodLiteral<"localFile">;
12535
12600
  visibility: z$1.ZodOptional<z$1.ZodEnum<{
12536
12601
  "agent-only": "agent-only";
@@ -12645,16 +12710,20 @@ declare const sendMessageRequestSchema: z$1.ZodObject<{
12645
12710
  "agent-only": "agent-only";
12646
12711
  }>>;
12647
12712
  }, z$1.core.$strip>, z$1.ZodObject<{
12713
+ hostId: z$1.ZodOptional<z$1.ZodString>;
12648
12714
  path: z$1.ZodString;
12715
+ sourceProjectId: z$1.ZodOptional<z$1.ZodString>;
12649
12716
  type: z$1.ZodLiteral<"localImage">;
12650
12717
  visibility: z$1.ZodOptional<z$1.ZodEnum<{
12651
12718
  "agent-only": "agent-only";
12652
12719
  }>>;
12653
12720
  }, z$1.core.$strip>, z$1.ZodObject<{
12721
+ hostId: z$1.ZodOptional<z$1.ZodString>;
12654
12722
  mimeType: z$1.ZodOptional<z$1.ZodString>;
12655
12723
  name: z$1.ZodOptional<z$1.ZodString>;
12656
12724
  path: z$1.ZodString;
12657
12725
  sizeBytes: z$1.ZodOptional<z$1.ZodNumber>;
12726
+ sourceProjectId: z$1.ZodOptional<z$1.ZodString>;
12658
12727
  type: z$1.ZodLiteral<"localFile">;
12659
12728
  visibility: z$1.ZodOptional<z$1.ZodEnum<{
12660
12729
  "agent-only": "agent-only";
@@ -12771,16 +12840,20 @@ declare const sendMessageResponseSchema: z$1.ZodDiscriminatedUnion<[z$1.ZodObjec
12771
12840
  "agent-only": "agent-only";
12772
12841
  }>>;
12773
12842
  }, z$1.core.$strip>, z$1.ZodObject<{
12843
+ hostId: z$1.ZodOptional<z$1.ZodString>;
12774
12844
  path: z$1.ZodString;
12845
+ sourceProjectId: z$1.ZodOptional<z$1.ZodString>;
12775
12846
  type: z$1.ZodLiteral<"localImage">;
12776
12847
  visibility: z$1.ZodOptional<z$1.ZodEnum<{
12777
12848
  "agent-only": "agent-only";
12778
12849
  }>>;
12779
12850
  }, z$1.core.$strip>, z$1.ZodObject<{
12851
+ hostId: z$1.ZodOptional<z$1.ZodString>;
12780
12852
  mimeType: z$1.ZodOptional<z$1.ZodString>;
12781
12853
  name: z$1.ZodOptional<z$1.ZodString>;
12782
12854
  path: z$1.ZodString;
12783
12855
  sizeBytes: z$1.ZodOptional<z$1.ZodNumber>;
12856
+ sourceProjectId: z$1.ZodOptional<z$1.ZodString>;
12784
12857
  type: z$1.ZodLiteral<"localFile">;
12785
12858
  visibility: z$1.ZodOptional<z$1.ZodEnum<{
12786
12859
  "agent-only": "agent-only";
@@ -12942,16 +13015,20 @@ declare const editMessageRequestSchema: z$1.ZodObject<{
12942
13015
  "agent-only": "agent-only";
12943
13016
  }>>;
12944
13017
  }, z$1.core.$strip>, z$1.ZodObject<{
13018
+ hostId: z$1.ZodOptional<z$1.ZodString>;
12945
13019
  path: z$1.ZodString;
13020
+ sourceProjectId: z$1.ZodOptional<z$1.ZodString>;
12946
13021
  type: z$1.ZodLiteral<"localImage">;
12947
13022
  visibility: z$1.ZodOptional<z$1.ZodEnum<{
12948
13023
  "agent-only": "agent-only";
12949
13024
  }>>;
12950
13025
  }, z$1.core.$strip>, z$1.ZodObject<{
13026
+ hostId: z$1.ZodOptional<z$1.ZodString>;
12951
13027
  mimeType: z$1.ZodOptional<z$1.ZodString>;
12952
13028
  name: z$1.ZodOptional<z$1.ZodString>;
12953
13029
  path: z$1.ZodString;
12954
13030
  sizeBytes: z$1.ZodOptional<z$1.ZodNumber>;
13031
+ sourceProjectId: z$1.ZodOptional<z$1.ZodString>;
12955
13032
  type: z$1.ZodLiteral<"localFile">;
12956
13033
  visibility: z$1.ZodOptional<z$1.ZodEnum<{
12957
13034
  "agent-only": "agent-only";
@@ -13111,16 +13188,20 @@ declare const createQueuedMessageRequestSchema: z$1.ZodObject<{
13111
13188
  "agent-only": "agent-only";
13112
13189
  }>>;
13113
13190
  }, z$1.core.$strip>, z$1.ZodObject<{
13191
+ hostId: z$1.ZodOptional<z$1.ZodString>;
13114
13192
  path: z$1.ZodString;
13193
+ sourceProjectId: z$1.ZodOptional<z$1.ZodString>;
13115
13194
  type: z$1.ZodLiteral<"localImage">;
13116
13195
  visibility: z$1.ZodOptional<z$1.ZodEnum<{
13117
13196
  "agent-only": "agent-only";
13118
13197
  }>>;
13119
13198
  }, z$1.core.$strip>, z$1.ZodObject<{
13199
+ hostId: z$1.ZodOptional<z$1.ZodString>;
13120
13200
  mimeType: z$1.ZodOptional<z$1.ZodString>;
13121
13201
  name: z$1.ZodOptional<z$1.ZodString>;
13122
13202
  path: z$1.ZodString;
13123
13203
  sizeBytes: z$1.ZodOptional<z$1.ZodNumber>;
13204
+ sourceProjectId: z$1.ZodOptional<z$1.ZodString>;
13124
13205
  type: z$1.ZodLiteral<"localFile">;
13125
13206
  visibility: z$1.ZodOptional<z$1.ZodEnum<{
13126
13207
  "agent-only": "agent-only";
@@ -13215,16 +13296,20 @@ declare const updateQueuedMessageRequestSchema: z$1.ZodObject<{
13215
13296
  "agent-only": "agent-only";
13216
13297
  }>>;
13217
13298
  }, z$1.core.$strip>, z$1.ZodObject<{
13299
+ hostId: z$1.ZodOptional<z$1.ZodString>;
13218
13300
  path: z$1.ZodString;
13301
+ sourceProjectId: z$1.ZodOptional<z$1.ZodString>;
13219
13302
  type: z$1.ZodLiteral<"localImage">;
13220
13303
  visibility: z$1.ZodOptional<z$1.ZodEnum<{
13221
13304
  "agent-only": "agent-only";
13222
13305
  }>>;
13223
13306
  }, z$1.core.$strip>, z$1.ZodObject<{
13307
+ hostId: z$1.ZodOptional<z$1.ZodString>;
13224
13308
  mimeType: z$1.ZodOptional<z$1.ZodString>;
13225
13309
  name: z$1.ZodOptional<z$1.ZodString>;
13226
13310
  path: z$1.ZodString;
13227
13311
  sizeBytes: z$1.ZodOptional<z$1.ZodNumber>;
13312
+ sourceProjectId: z$1.ZodOptional<z$1.ZodString>;
13228
13313
  type: z$1.ZodLiteral<"localFile">;
13229
13314
  visibility: z$1.ZodOptional<z$1.ZodEnum<{
13230
13315
  "agent-only": "agent-only";
@@ -13324,16 +13409,20 @@ declare const sendQueuedMessageResponseSchema: z$1.ZodDiscriminatedUnion<[z$1.Zo
13324
13409
  "agent-only": "agent-only";
13325
13410
  }>>;
13326
13411
  }, z$1.core.$strip>, z$1.ZodObject<{
13412
+ hostId: z$1.ZodOptional<z$1.ZodString>;
13327
13413
  path: z$1.ZodString;
13414
+ sourceProjectId: z$1.ZodOptional<z$1.ZodString>;
13328
13415
  type: z$1.ZodLiteral<"localImage">;
13329
13416
  visibility: z$1.ZodOptional<z$1.ZodEnum<{
13330
13417
  "agent-only": "agent-only";
13331
13418
  }>>;
13332
13419
  }, z$1.core.$strip>, z$1.ZodObject<{
13420
+ hostId: z$1.ZodOptional<z$1.ZodString>;
13333
13421
  mimeType: z$1.ZodOptional<z$1.ZodString>;
13334
13422
  name: z$1.ZodOptional<z$1.ZodString>;
13335
13423
  path: z$1.ZodString;
13336
13424
  sizeBytes: z$1.ZodOptional<z$1.ZodNumber>;
13425
+ sourceProjectId: z$1.ZodOptional<z$1.ZodString>;
13337
13426
  type: z$1.ZodLiteral<"localFile">;
13338
13427
  visibility: z$1.ZodOptional<z$1.ZodEnum<{
13339
13428
  "agent-only": "agent-only";
@@ -14251,16 +14340,20 @@ declare const threadQueuedMessageListResponseSchema: z$1.ZodArray<z$1.ZodObject<
14251
14340
  "agent-only": "agent-only";
14252
14341
  }>>;
14253
14342
  }, z$1.core.$strip>, z$1.ZodObject<{
14343
+ hostId: z$1.ZodOptional<z$1.ZodString>;
14254
14344
  path: z$1.ZodString;
14345
+ sourceProjectId: z$1.ZodOptional<z$1.ZodString>;
14255
14346
  type: z$1.ZodLiteral<"localImage">;
14256
14347
  visibility: z$1.ZodOptional<z$1.ZodEnum<{
14257
14348
  "agent-only": "agent-only";
14258
14349
  }>>;
14259
14350
  }, z$1.core.$strip>, z$1.ZodObject<{
14351
+ hostId: z$1.ZodOptional<z$1.ZodString>;
14260
14352
  mimeType: z$1.ZodOptional<z$1.ZodString>;
14261
14353
  name: z$1.ZodOptional<z$1.ZodString>;
14262
14354
  path: z$1.ZodString;
14263
14355
  sizeBytes: z$1.ZodOptional<z$1.ZodNumber>;
14356
+ sourceProjectId: z$1.ZodOptional<z$1.ZodString>;
14264
14357
  type: z$1.ZodLiteral<"localFile">;
14265
14358
  visibility: z$1.ZodOptional<z$1.ZodEnum<{
14266
14359
  "agent-only": "agent-only";
@@ -14494,6 +14587,522 @@ declare const timelineTurnSummaryDetailsQuerySchema: z$1.ZodObject<{
14494
14587
  turnId: z$1.ZodString;
14495
14588
  }, z$1.core.$strip>;
14496
14589
  type TimelineTurnSummaryDetailsQuery = z$1.infer<typeof timelineTurnSummaryDetailsQuerySchema>;
14590
+ declare const threadMessageResponseSchema: z$1.ZodObject<{
14591
+ after: z$1.ZodArray<z$1.ZodDiscriminatedUnion<[z$1.ZodObject<{
14592
+ attachments: z$1.ZodNullable<z$1.ZodObject<{
14593
+ imageUrls: z$1.ZodArray<z$1.ZodString>;
14594
+ localFilePaths: z$1.ZodArray<z$1.ZodString>;
14595
+ localFiles: z$1.ZodNumber;
14596
+ localImagePaths: z$1.ZodArray<z$1.ZodString>;
14597
+ localImages: z$1.ZodNumber;
14598
+ webImages: z$1.ZodNumber;
14599
+ }, z$1.core.$strip>>;
14600
+ createdAt: z$1.ZodNumber;
14601
+ id: z$1.ZodString;
14602
+ initiator: z$1.ZodEnum<{
14603
+ agent: "agent";
14604
+ system: "system";
14605
+ user: "user";
14606
+ }>;
14607
+ kind: z$1.ZodLiteral<"conversation">;
14608
+ mentions: z$1.ZodArray<z$1.ZodObject<{
14609
+ end: z$1.ZodNumber;
14610
+ resource: z$1.ZodPreprocess<z$1.ZodDiscriminatedUnion<[z$1.ZodObject<{
14611
+ kind: z$1.ZodLiteral<"thread">;
14612
+ label: z$1.ZodString;
14613
+ projectId: z$1.ZodOptional<z$1.ZodString>;
14614
+ threadId: z$1.ZodString;
14615
+ }, z$1.core.$strip>, z$1.ZodObject<{
14616
+ kind: z$1.ZodLiteral<"project">;
14617
+ label: z$1.ZodString;
14618
+ projectId: z$1.ZodString;
14619
+ }, z$1.core.$strip>, z$1.ZodObject<{
14620
+ kind: z$1.ZodLiteral<"section">;
14621
+ label: z$1.ZodString;
14622
+ sectionId: z$1.ZodString;
14623
+ }, z$1.core.$strip>, z$1.ZodObject<{
14624
+ entryKind: z$1.ZodEnum<{
14625
+ directory: "directory";
14626
+ file: "file";
14627
+ }>;
14628
+ kind: z$1.ZodLiteral<"path">;
14629
+ label: z$1.ZodString;
14630
+ path: z$1.ZodString;
14631
+ source: z$1.ZodEnum<{
14632
+ "thread-storage": "thread-storage";
14633
+ workspace: "workspace";
14634
+ }>;
14635
+ }, z$1.core.$strip>, z$1.ZodObject<{
14636
+ argumentHint: z$1.ZodNullable<z$1.ZodString>;
14637
+ kind: z$1.ZodLiteral<"command">;
14638
+ label: z$1.ZodString;
14639
+ name: z$1.ZodString;
14640
+ origin: z$1.ZodEnum<{
14641
+ builtin: "builtin";
14642
+ project: "project";
14643
+ user: "user";
14644
+ }>;
14645
+ source: z$1.ZodEnum<{
14646
+ command: "command";
14647
+ skill: "skill";
14648
+ }>;
14649
+ trigger: z$1.ZodEnum<{
14650
+ "/": "/";
14651
+ $: "$";
14652
+ }>;
14653
+ }, z$1.core.$strip>, z$1.ZodObject<{
14654
+ icon: z$1.ZodOptional<z$1.ZodNullable<z$1.ZodString>>;
14655
+ itemId: z$1.ZodString;
14656
+ kind: z$1.ZodLiteral<"plugin">;
14657
+ label: z$1.ZodString;
14658
+ pluginId: z$1.ZodString;
14659
+ }, z$1.core.$strip>], "kind">, unknown>;
14660
+ start: z$1.ZodNumber;
14661
+ }, z$1.core.$strip>>;
14662
+ messageSeq: z$1.ZodNumber;
14663
+ role: z$1.ZodLiteral<"user">;
14664
+ senderThreadId: z$1.ZodNullable<z$1.ZodString>;
14665
+ sourceSeqEnd: z$1.ZodNumber;
14666
+ sourceSeqStart: z$1.ZodNumber;
14667
+ startedAt: z$1.ZodNumber;
14668
+ systemMessageKind: z$1.ZodEnum<{
14669
+ "child-completed": "child-completed";
14670
+ "child-failed": "child-failed";
14671
+ "child-interrupted": "child-interrupted";
14672
+ "child-needs-attention": "child-needs-attention";
14673
+ "child-outcome-batch": "child-outcome-batch";
14674
+ "ownership-assigned": "ownership-assigned";
14675
+ "ownership-removed": "ownership-removed";
14676
+ "tool-result-delivered": "tool-result-delivered";
14677
+ unlabeled: "unlabeled";
14678
+ }>;
14679
+ systemMessageSubject: z$1.ZodNullable<z$1.ZodDiscriminatedUnion<[z$1.ZodObject<{
14680
+ kind: z$1.ZodLiteral<"thread">;
14681
+ outcomes: z$1.ZodOptional<z$1.ZodArray<z$1.ZodObject<{
14682
+ interruption: z$1.ZodOptional<z$1.ZodObject<{
14683
+ cause: z$1.ZodOptional<z$1.ZodLiteral<"host-connection-lost">>;
14684
+ reason: z$1.ZodEnum<{
14685
+ "host-daemon-restarted": "host-daemon-restarted";
14686
+ "host-removed": "host-removed";
14687
+ "manual-stop": "manual-stop";
14688
+ "provider-turn-idle": "provider-turn-idle";
14689
+ }>;
14690
+ }, z$1.core.$strip>>;
14691
+ status: z$1.ZodEnum<{
14692
+ completed: "completed";
14693
+ failed: "failed";
14694
+ interrupted: "interrupted";
14695
+ }>;
14696
+ threadId: z$1.ZodString;
14697
+ }, z$1.core.$strip>>>;
14698
+ threadId: z$1.ZodString;
14699
+ threadName: z$1.ZodString;
14700
+ }, z$1.core.$strip>, z$1.ZodObject<{
14701
+ count: z$1.ZodNumber;
14702
+ kind: z$1.ZodLiteral<"thread-batch">;
14703
+ outcomes: z$1.ZodOptional<z$1.ZodArray<z$1.ZodObject<{
14704
+ interruption: z$1.ZodOptional<z$1.ZodObject<{
14705
+ cause: z$1.ZodOptional<z$1.ZodLiteral<"host-connection-lost">>;
14706
+ reason: z$1.ZodEnum<{
14707
+ "host-daemon-restarted": "host-daemon-restarted";
14708
+ "host-removed": "host-removed";
14709
+ "manual-stop": "manual-stop";
14710
+ "provider-turn-idle": "provider-turn-idle";
14711
+ }>;
14712
+ }, z$1.core.$strip>>;
14713
+ status: z$1.ZodEnum<{
14714
+ completed: "completed";
14715
+ failed: "failed";
14716
+ interrupted: "interrupted";
14717
+ }>;
14718
+ threadId: z$1.ZodString;
14719
+ }, z$1.core.$strip>>>;
14720
+ }, z$1.core.$strip>, z$1.ZodObject<{
14721
+ kind: z$1.ZodLiteral<"tool-call">;
14722
+ suppress: z$1.ZodBoolean;
14723
+ toolName: z$1.ZodString;
14724
+ }, z$1.core.$strip>], "kind">>;
14725
+ text: z$1.ZodString;
14726
+ threadId: z$1.ZodString;
14727
+ turnId: z$1.ZodNullable<z$1.ZodString>;
14728
+ turnRequest: z$1.ZodObject<{
14729
+ isGrouped: z$1.ZodBoolean;
14730
+ kind: z$1.ZodEnum<{
14731
+ message: "message";
14732
+ steer: "steer";
14733
+ }>;
14734
+ status: z$1.ZodEnum<{
14735
+ accepted: "accepted";
14736
+ pending: "pending";
14737
+ rejected: "rejected";
14738
+ }>;
14739
+ }, z$1.core.$strip>;
14740
+ }, z$1.core.$strip>, z$1.ZodObject<{
14741
+ attachments: z$1.ZodNullable<z$1.ZodObject<{
14742
+ imageUrls: z$1.ZodArray<z$1.ZodString>;
14743
+ localFilePaths: z$1.ZodArray<z$1.ZodString>;
14744
+ localFiles: z$1.ZodNumber;
14745
+ localImagePaths: z$1.ZodArray<z$1.ZodString>;
14746
+ localImages: z$1.ZodNumber;
14747
+ webImages: z$1.ZodNumber;
14748
+ }, z$1.core.$strip>>;
14749
+ createdAt: z$1.ZodNumber;
14750
+ id: z$1.ZodString;
14751
+ kind: z$1.ZodLiteral<"conversation">;
14752
+ messageSeq: z$1.ZodNumber;
14753
+ role: z$1.ZodLiteral<"assistant">;
14754
+ sourceSeqEnd: z$1.ZodNumber;
14755
+ sourceSeqStart: z$1.ZodNumber;
14756
+ startedAt: z$1.ZodNumber;
14757
+ text: z$1.ZodString;
14758
+ threadId: z$1.ZodString;
14759
+ turnId: z$1.ZodNullable<z$1.ZodString>;
14760
+ turnRequest: z$1.ZodNull;
14761
+ }, z$1.core.$strip>], "role">>;
14762
+ before: z$1.ZodArray<z$1.ZodDiscriminatedUnion<[z$1.ZodObject<{
14763
+ attachments: z$1.ZodNullable<z$1.ZodObject<{
14764
+ imageUrls: z$1.ZodArray<z$1.ZodString>;
14765
+ localFilePaths: z$1.ZodArray<z$1.ZodString>;
14766
+ localFiles: z$1.ZodNumber;
14767
+ localImagePaths: z$1.ZodArray<z$1.ZodString>;
14768
+ localImages: z$1.ZodNumber;
14769
+ webImages: z$1.ZodNumber;
14770
+ }, z$1.core.$strip>>;
14771
+ createdAt: z$1.ZodNumber;
14772
+ id: z$1.ZodString;
14773
+ initiator: z$1.ZodEnum<{
14774
+ agent: "agent";
14775
+ system: "system";
14776
+ user: "user";
14777
+ }>;
14778
+ kind: z$1.ZodLiteral<"conversation">;
14779
+ mentions: z$1.ZodArray<z$1.ZodObject<{
14780
+ end: z$1.ZodNumber;
14781
+ resource: z$1.ZodPreprocess<z$1.ZodDiscriminatedUnion<[z$1.ZodObject<{
14782
+ kind: z$1.ZodLiteral<"thread">;
14783
+ label: z$1.ZodString;
14784
+ projectId: z$1.ZodOptional<z$1.ZodString>;
14785
+ threadId: z$1.ZodString;
14786
+ }, z$1.core.$strip>, z$1.ZodObject<{
14787
+ kind: z$1.ZodLiteral<"project">;
14788
+ label: z$1.ZodString;
14789
+ projectId: z$1.ZodString;
14790
+ }, z$1.core.$strip>, z$1.ZodObject<{
14791
+ kind: z$1.ZodLiteral<"section">;
14792
+ label: z$1.ZodString;
14793
+ sectionId: z$1.ZodString;
14794
+ }, z$1.core.$strip>, z$1.ZodObject<{
14795
+ entryKind: z$1.ZodEnum<{
14796
+ directory: "directory";
14797
+ file: "file";
14798
+ }>;
14799
+ kind: z$1.ZodLiteral<"path">;
14800
+ label: z$1.ZodString;
14801
+ path: z$1.ZodString;
14802
+ source: z$1.ZodEnum<{
14803
+ "thread-storage": "thread-storage";
14804
+ workspace: "workspace";
14805
+ }>;
14806
+ }, z$1.core.$strip>, z$1.ZodObject<{
14807
+ argumentHint: z$1.ZodNullable<z$1.ZodString>;
14808
+ kind: z$1.ZodLiteral<"command">;
14809
+ label: z$1.ZodString;
14810
+ name: z$1.ZodString;
14811
+ origin: z$1.ZodEnum<{
14812
+ builtin: "builtin";
14813
+ project: "project";
14814
+ user: "user";
14815
+ }>;
14816
+ source: z$1.ZodEnum<{
14817
+ command: "command";
14818
+ skill: "skill";
14819
+ }>;
14820
+ trigger: z$1.ZodEnum<{
14821
+ "/": "/";
14822
+ $: "$";
14823
+ }>;
14824
+ }, z$1.core.$strip>, z$1.ZodObject<{
14825
+ icon: z$1.ZodOptional<z$1.ZodNullable<z$1.ZodString>>;
14826
+ itemId: z$1.ZodString;
14827
+ kind: z$1.ZodLiteral<"plugin">;
14828
+ label: z$1.ZodString;
14829
+ pluginId: z$1.ZodString;
14830
+ }, z$1.core.$strip>], "kind">, unknown>;
14831
+ start: z$1.ZodNumber;
14832
+ }, z$1.core.$strip>>;
14833
+ messageSeq: z$1.ZodNumber;
14834
+ role: z$1.ZodLiteral<"user">;
14835
+ senderThreadId: z$1.ZodNullable<z$1.ZodString>;
14836
+ sourceSeqEnd: z$1.ZodNumber;
14837
+ sourceSeqStart: z$1.ZodNumber;
14838
+ startedAt: z$1.ZodNumber;
14839
+ systemMessageKind: z$1.ZodEnum<{
14840
+ "child-completed": "child-completed";
14841
+ "child-failed": "child-failed";
14842
+ "child-interrupted": "child-interrupted";
14843
+ "child-needs-attention": "child-needs-attention";
14844
+ "child-outcome-batch": "child-outcome-batch";
14845
+ "ownership-assigned": "ownership-assigned";
14846
+ "ownership-removed": "ownership-removed";
14847
+ "tool-result-delivered": "tool-result-delivered";
14848
+ unlabeled: "unlabeled";
14849
+ }>;
14850
+ systemMessageSubject: z$1.ZodNullable<z$1.ZodDiscriminatedUnion<[z$1.ZodObject<{
14851
+ kind: z$1.ZodLiteral<"thread">;
14852
+ outcomes: z$1.ZodOptional<z$1.ZodArray<z$1.ZodObject<{
14853
+ interruption: z$1.ZodOptional<z$1.ZodObject<{
14854
+ cause: z$1.ZodOptional<z$1.ZodLiteral<"host-connection-lost">>;
14855
+ reason: z$1.ZodEnum<{
14856
+ "host-daemon-restarted": "host-daemon-restarted";
14857
+ "host-removed": "host-removed";
14858
+ "manual-stop": "manual-stop";
14859
+ "provider-turn-idle": "provider-turn-idle";
14860
+ }>;
14861
+ }, z$1.core.$strip>>;
14862
+ status: z$1.ZodEnum<{
14863
+ completed: "completed";
14864
+ failed: "failed";
14865
+ interrupted: "interrupted";
14866
+ }>;
14867
+ threadId: z$1.ZodString;
14868
+ }, z$1.core.$strip>>>;
14869
+ threadId: z$1.ZodString;
14870
+ threadName: z$1.ZodString;
14871
+ }, z$1.core.$strip>, z$1.ZodObject<{
14872
+ count: z$1.ZodNumber;
14873
+ kind: z$1.ZodLiteral<"thread-batch">;
14874
+ outcomes: z$1.ZodOptional<z$1.ZodArray<z$1.ZodObject<{
14875
+ interruption: z$1.ZodOptional<z$1.ZodObject<{
14876
+ cause: z$1.ZodOptional<z$1.ZodLiteral<"host-connection-lost">>;
14877
+ reason: z$1.ZodEnum<{
14878
+ "host-daemon-restarted": "host-daemon-restarted";
14879
+ "host-removed": "host-removed";
14880
+ "manual-stop": "manual-stop";
14881
+ "provider-turn-idle": "provider-turn-idle";
14882
+ }>;
14883
+ }, z$1.core.$strip>>;
14884
+ status: z$1.ZodEnum<{
14885
+ completed: "completed";
14886
+ failed: "failed";
14887
+ interrupted: "interrupted";
14888
+ }>;
14889
+ threadId: z$1.ZodString;
14890
+ }, z$1.core.$strip>>>;
14891
+ }, z$1.core.$strip>, z$1.ZodObject<{
14892
+ kind: z$1.ZodLiteral<"tool-call">;
14893
+ suppress: z$1.ZodBoolean;
14894
+ toolName: z$1.ZodString;
14895
+ }, z$1.core.$strip>], "kind">>;
14896
+ text: z$1.ZodString;
14897
+ threadId: z$1.ZodString;
14898
+ turnId: z$1.ZodNullable<z$1.ZodString>;
14899
+ turnRequest: z$1.ZodObject<{
14900
+ isGrouped: z$1.ZodBoolean;
14901
+ kind: z$1.ZodEnum<{
14902
+ message: "message";
14903
+ steer: "steer";
14904
+ }>;
14905
+ status: z$1.ZodEnum<{
14906
+ accepted: "accepted";
14907
+ pending: "pending";
14908
+ rejected: "rejected";
14909
+ }>;
14910
+ }, z$1.core.$strip>;
14911
+ }, z$1.core.$strip>, z$1.ZodObject<{
14912
+ attachments: z$1.ZodNullable<z$1.ZodObject<{
14913
+ imageUrls: z$1.ZodArray<z$1.ZodString>;
14914
+ localFilePaths: z$1.ZodArray<z$1.ZodString>;
14915
+ localFiles: z$1.ZodNumber;
14916
+ localImagePaths: z$1.ZodArray<z$1.ZodString>;
14917
+ localImages: z$1.ZodNumber;
14918
+ webImages: z$1.ZodNumber;
14919
+ }, z$1.core.$strip>>;
14920
+ createdAt: z$1.ZodNumber;
14921
+ id: z$1.ZodString;
14922
+ kind: z$1.ZodLiteral<"conversation">;
14923
+ messageSeq: z$1.ZodNumber;
14924
+ role: z$1.ZodLiteral<"assistant">;
14925
+ sourceSeqEnd: z$1.ZodNumber;
14926
+ sourceSeqStart: z$1.ZodNumber;
14927
+ startedAt: z$1.ZodNumber;
14928
+ text: z$1.ZodString;
14929
+ threadId: z$1.ZodString;
14930
+ turnId: z$1.ZodNullable<z$1.ZodString>;
14931
+ turnRequest: z$1.ZodNull;
14932
+ }, z$1.core.$strip>], "role">>;
14933
+ message: z$1.ZodDiscriminatedUnion<[z$1.ZodObject<{
14934
+ attachments: z$1.ZodNullable<z$1.ZodObject<{
14935
+ imageUrls: z$1.ZodArray<z$1.ZodString>;
14936
+ localFilePaths: z$1.ZodArray<z$1.ZodString>;
14937
+ localFiles: z$1.ZodNumber;
14938
+ localImagePaths: z$1.ZodArray<z$1.ZodString>;
14939
+ localImages: z$1.ZodNumber;
14940
+ webImages: z$1.ZodNumber;
14941
+ }, z$1.core.$strip>>;
14942
+ createdAt: z$1.ZodNumber;
14943
+ id: z$1.ZodString;
14944
+ initiator: z$1.ZodEnum<{
14945
+ agent: "agent";
14946
+ system: "system";
14947
+ user: "user";
14948
+ }>;
14949
+ kind: z$1.ZodLiteral<"conversation">;
14950
+ mentions: z$1.ZodArray<z$1.ZodObject<{
14951
+ end: z$1.ZodNumber;
14952
+ resource: z$1.ZodPreprocess<z$1.ZodDiscriminatedUnion<[z$1.ZodObject<{
14953
+ kind: z$1.ZodLiteral<"thread">;
14954
+ label: z$1.ZodString;
14955
+ projectId: z$1.ZodOptional<z$1.ZodString>;
14956
+ threadId: z$1.ZodString;
14957
+ }, z$1.core.$strip>, z$1.ZodObject<{
14958
+ kind: z$1.ZodLiteral<"project">;
14959
+ label: z$1.ZodString;
14960
+ projectId: z$1.ZodString;
14961
+ }, z$1.core.$strip>, z$1.ZodObject<{
14962
+ kind: z$1.ZodLiteral<"section">;
14963
+ label: z$1.ZodString;
14964
+ sectionId: z$1.ZodString;
14965
+ }, z$1.core.$strip>, z$1.ZodObject<{
14966
+ entryKind: z$1.ZodEnum<{
14967
+ directory: "directory";
14968
+ file: "file";
14969
+ }>;
14970
+ kind: z$1.ZodLiteral<"path">;
14971
+ label: z$1.ZodString;
14972
+ path: z$1.ZodString;
14973
+ source: z$1.ZodEnum<{
14974
+ "thread-storage": "thread-storage";
14975
+ workspace: "workspace";
14976
+ }>;
14977
+ }, z$1.core.$strip>, z$1.ZodObject<{
14978
+ argumentHint: z$1.ZodNullable<z$1.ZodString>;
14979
+ kind: z$1.ZodLiteral<"command">;
14980
+ label: z$1.ZodString;
14981
+ name: z$1.ZodString;
14982
+ origin: z$1.ZodEnum<{
14983
+ builtin: "builtin";
14984
+ project: "project";
14985
+ user: "user";
14986
+ }>;
14987
+ source: z$1.ZodEnum<{
14988
+ command: "command";
14989
+ skill: "skill";
14990
+ }>;
14991
+ trigger: z$1.ZodEnum<{
14992
+ "/": "/";
14993
+ $: "$";
14994
+ }>;
14995
+ }, z$1.core.$strip>, z$1.ZodObject<{
14996
+ icon: z$1.ZodOptional<z$1.ZodNullable<z$1.ZodString>>;
14997
+ itemId: z$1.ZodString;
14998
+ kind: z$1.ZodLiteral<"plugin">;
14999
+ label: z$1.ZodString;
15000
+ pluginId: z$1.ZodString;
15001
+ }, z$1.core.$strip>], "kind">, unknown>;
15002
+ start: z$1.ZodNumber;
15003
+ }, z$1.core.$strip>>;
15004
+ messageSeq: z$1.ZodNumber;
15005
+ role: z$1.ZodLiteral<"user">;
15006
+ senderThreadId: z$1.ZodNullable<z$1.ZodString>;
15007
+ sourceSeqEnd: z$1.ZodNumber;
15008
+ sourceSeqStart: z$1.ZodNumber;
15009
+ startedAt: z$1.ZodNumber;
15010
+ systemMessageKind: z$1.ZodEnum<{
15011
+ "child-completed": "child-completed";
15012
+ "child-failed": "child-failed";
15013
+ "child-interrupted": "child-interrupted";
15014
+ "child-needs-attention": "child-needs-attention";
15015
+ "child-outcome-batch": "child-outcome-batch";
15016
+ "ownership-assigned": "ownership-assigned";
15017
+ "ownership-removed": "ownership-removed";
15018
+ "tool-result-delivered": "tool-result-delivered";
15019
+ unlabeled: "unlabeled";
15020
+ }>;
15021
+ systemMessageSubject: z$1.ZodNullable<z$1.ZodDiscriminatedUnion<[z$1.ZodObject<{
15022
+ kind: z$1.ZodLiteral<"thread">;
15023
+ outcomes: z$1.ZodOptional<z$1.ZodArray<z$1.ZodObject<{
15024
+ interruption: z$1.ZodOptional<z$1.ZodObject<{
15025
+ cause: z$1.ZodOptional<z$1.ZodLiteral<"host-connection-lost">>;
15026
+ reason: z$1.ZodEnum<{
15027
+ "host-daemon-restarted": "host-daemon-restarted";
15028
+ "host-removed": "host-removed";
15029
+ "manual-stop": "manual-stop";
15030
+ "provider-turn-idle": "provider-turn-idle";
15031
+ }>;
15032
+ }, z$1.core.$strip>>;
15033
+ status: z$1.ZodEnum<{
15034
+ completed: "completed";
15035
+ failed: "failed";
15036
+ interrupted: "interrupted";
15037
+ }>;
15038
+ threadId: z$1.ZodString;
15039
+ }, z$1.core.$strip>>>;
15040
+ threadId: z$1.ZodString;
15041
+ threadName: z$1.ZodString;
15042
+ }, z$1.core.$strip>, z$1.ZodObject<{
15043
+ count: z$1.ZodNumber;
15044
+ kind: z$1.ZodLiteral<"thread-batch">;
15045
+ outcomes: z$1.ZodOptional<z$1.ZodArray<z$1.ZodObject<{
15046
+ interruption: z$1.ZodOptional<z$1.ZodObject<{
15047
+ cause: z$1.ZodOptional<z$1.ZodLiteral<"host-connection-lost">>;
15048
+ reason: z$1.ZodEnum<{
15049
+ "host-daemon-restarted": "host-daemon-restarted";
15050
+ "host-removed": "host-removed";
15051
+ "manual-stop": "manual-stop";
15052
+ "provider-turn-idle": "provider-turn-idle";
15053
+ }>;
15054
+ }, z$1.core.$strip>>;
15055
+ status: z$1.ZodEnum<{
15056
+ completed: "completed";
15057
+ failed: "failed";
15058
+ interrupted: "interrupted";
15059
+ }>;
15060
+ threadId: z$1.ZodString;
15061
+ }, z$1.core.$strip>>>;
15062
+ }, z$1.core.$strip>, z$1.ZodObject<{
15063
+ kind: z$1.ZodLiteral<"tool-call">;
15064
+ suppress: z$1.ZodBoolean;
15065
+ toolName: z$1.ZodString;
15066
+ }, z$1.core.$strip>], "kind">>;
15067
+ text: z$1.ZodString;
15068
+ threadId: z$1.ZodString;
15069
+ turnId: z$1.ZodNullable<z$1.ZodString>;
15070
+ turnRequest: z$1.ZodObject<{
15071
+ isGrouped: z$1.ZodBoolean;
15072
+ kind: z$1.ZodEnum<{
15073
+ message: "message";
15074
+ steer: "steer";
15075
+ }>;
15076
+ status: z$1.ZodEnum<{
15077
+ accepted: "accepted";
15078
+ pending: "pending";
15079
+ rejected: "rejected";
15080
+ }>;
15081
+ }, z$1.core.$strip>;
15082
+ }, z$1.core.$strip>, z$1.ZodObject<{
15083
+ attachments: z$1.ZodNullable<z$1.ZodObject<{
15084
+ imageUrls: z$1.ZodArray<z$1.ZodString>;
15085
+ localFilePaths: z$1.ZodArray<z$1.ZodString>;
15086
+ localFiles: z$1.ZodNumber;
15087
+ localImagePaths: z$1.ZodArray<z$1.ZodString>;
15088
+ localImages: z$1.ZodNumber;
15089
+ webImages: z$1.ZodNumber;
15090
+ }, z$1.core.$strip>>;
15091
+ createdAt: z$1.ZodNumber;
15092
+ id: z$1.ZodString;
15093
+ kind: z$1.ZodLiteral<"conversation">;
15094
+ messageSeq: z$1.ZodNumber;
15095
+ role: z$1.ZodLiteral<"assistant">;
15096
+ sourceSeqEnd: z$1.ZodNumber;
15097
+ sourceSeqStart: z$1.ZodNumber;
15098
+ startedAt: z$1.ZodNumber;
15099
+ text: z$1.ZodString;
15100
+ threadId: z$1.ZodString;
15101
+ turnId: z$1.ZodNullable<z$1.ZodString>;
15102
+ turnRequest: z$1.ZodNull;
15103
+ }, z$1.core.$strip>], "role">;
15104
+ }, z$1.core.$strip>;
15105
+ type ThreadMessageResponse = z$1.infer<typeof threadMessageResponseSchema>;
14497
15106
  declare const threadStorageFilesQuerySchema: z$1.ZodObject<{
14498
15107
  limit: z$1.ZodOptional<z$1.ZodString>;
14499
15108
  query: z$1.ZodOptional<z$1.ZodString>;
@@ -16601,6 +17210,7 @@ type ThreadCountResult = ThreadCountResponse;
16601
17210
  type ThreadRunningResult = ThreadRunningResponse;
16602
17211
  type ThreadListResult = ThreadListResponse;
16603
17212
  type ThreadSearchResult = ThreadSearchResponse;
17213
+ type ThreadMessageResult = ThreadMessageResponse;
16604
17214
  type ThreadResolveMentionsResult = ResolveThreadMentionsResponse;
16605
17215
  interface ThreadOutputResponse {
16606
17216
  output: string | null;
@@ -16812,6 +17422,13 @@ interface ThreadOutputArgs {
16812
17422
  signal?: AbortSignal;
16813
17423
  threadId: string;
16814
17424
  }
17425
+ interface ThreadMessageArgs {
17426
+ signal?: AbortSignal;
17427
+ threadId: string;
17428
+ seq: number;
17429
+ before?: number;
17430
+ after?: number;
17431
+ }
16815
17432
  interface ThreadInteractionListArgs {
16816
17433
  signal?: AbortSignal;
16817
17434
  threadId: string;
@@ -16923,6 +17540,7 @@ interface ThreadsArea {
16923
17540
  markUnread(args: ThreadActionArgs): Promise<ThreadReadStateResult>;
16924
17541
  open(args: ThreadOpenArgs): Promise<ThreadOpenResult>;
16925
17542
  paneAction(args: ThreadPaneActionArgs): Promise<ThreadPaneActionResult>;
17543
+ message(args: ThreadMessageArgs): Promise<ThreadMessageResult>;
16926
17544
  output(args: ThreadOutputArgs): Promise<ThreadOutputResponse>;
16927
17545
  pin(args: ThreadActionArgs): Promise<ThreadMutationResult>;
16928
17546
  promptHistory(args: ThreadPromptHistoryArgs): Promise<ThreadPromptHistoryResult>;
@@ -19211,8 +19829,26 @@ interface ComposerDraft {
19211
19829
  text: string;
19212
19830
  mentions: readonly ComposerMention[];
19213
19831
  }
19214
- /** An already uploaded attachment; paths retain their original project or thread ownership. */
19215
- type ComposerAttachment = UploadedPromptAttachment;
19832
+ /**
19833
+ * A composer attachment: an uploaded file, optionally owned by another
19834
+ * project, or an absolute path on one machine. Never both.
19835
+ */
19836
+ type ComposerAttachment = {
19837
+ type: "localFile" | "localImage";
19838
+ path: string;
19839
+ name: string;
19840
+ mimeType?: string;
19841
+ /** Exact size in bytes; omit when unknown. Zero is treated as unknown. A wrong nonzero size can make the send fail when bb stages a file. */
19842
+ sizeBytes?: number;
19843
+ } & ({
19844
+ /** Project that currently owns this uploaded path; omit for destination-relative attachments. */
19845
+ sourceProjectId?: string;
19846
+ hostId?: never;
19847
+ } | {
19848
+ /** Machine whose absolute `path` this is; core rejects sending it to a thread on another machine. */
19849
+ hostId: string;
19850
+ sourceProjectId?: never;
19851
+ });
19216
19852
  /** The complete current draft. Snapshots and their entries are immutable. */
19217
19853
  interface ComposerDraftSnapshot extends ComposerDraft {
19218
19854
  readonly attachments: readonly ComposerAttachment[];
@@ -19373,8 +20009,10 @@ interface PluginComposerApi {
19373
20009
  * an empty list clears them. Does not infer or rebase mention ranges.
19374
20010
  * Ranges are non-overlapping UTF-16 offsets into the supplied text.
19375
20011
  * Invalid results, throwing updaters, and unavailable editors leave the
19376
- * draft unchanged. Does not focus, submit, upload, or copy files between
19377
- * projects. Use `insert` for insertion at the editor's cursor.
20012
+ * draft unchanged. Source project references on uploaded attachments are
20013
+ * preserved; core copies them into the destination project when the draft
20014
+ * is submitted. Does not focus or submit. Use `insert` for insertion at the
20015
+ * editor's cursor.
19378
20016
  */
19379
20017
  replace(next: ComposerDraftReplacement | ((current: ComposerDraftSnapshot) => ComposerDraftReplacement)): void;
19380
20018
  /**