@get-bb/plugin-sdk 0.6.15 → 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.
@@ -196,6 +196,7 @@ declare const appKeybindingOverridesSchema: z$1.ZodArray<z$1.ZodObject<{
196
196
  "pane.focus.up": "pane.focus.up";
197
197
  "pane.maximize.toggle": "pane.maximize.toggle";
198
198
  "panel.close": "panel.close";
199
+ "panel.fullScreen.toggle": "panel.fullScreen.toggle";
199
200
  "panel.newTab": "panel.newTab";
200
201
  "panel.nextNewTabItem": "panel.nextNewTabItem";
201
202
  "panel.nextTab": "panel.nextTab";
@@ -492,11 +493,13 @@ type Environment = z$1.infer<typeof environmentSchema>;
492
493
 
493
494
  declare const experimentsSchema: z$1.ZodRecord<z$1.ZodEnum<{
494
495
  changelogPreview: "changelogPreview";
496
+ performanceDiagnostics: "performanceDiagnostics";
495
497
  serverMove: "serverMove";
496
498
  }>, z$1.ZodBoolean>;
497
499
  type Experiments = z$1.infer<typeof experimentsSchema>;
498
500
  declare const experimentUpdatesSchema: z$1.ZodRecord<z$1.ZodEnum<{
499
501
  changelogPreview: "changelogPreview";
502
+ performanceDiagnostics: "performanceDiagnostics";
500
503
  serverMove: "serverMove";
501
504
  }> & z$1.core.$partial, z$1.ZodBoolean>;
502
505
  type ExperimentUpdates = z$1.infer<typeof experimentUpdatesSchema>;
@@ -2938,16 +2941,20 @@ declare const threadEventSchema: z$1.ZodUnion<readonly [z$1.ZodIntersection<z$1.
2938
2941
  "agent-only": "agent-only";
2939
2942
  }>>;
2940
2943
  }, z$1.core.$strip>, z$1.ZodObject<{
2944
+ hostId: z$1.ZodOptional<z$1.ZodString>;
2941
2945
  path: z$1.ZodString;
2946
+ sourceProjectId: z$1.ZodOptional<z$1.ZodString>;
2942
2947
  type: z$1.ZodLiteral<"localImage">;
2943
2948
  visibility: z$1.ZodOptional<z$1.ZodEnum<{
2944
2949
  "agent-only": "agent-only";
2945
2950
  }>>;
2946
2951
  }, z$1.core.$strip>, z$1.ZodObject<{
2952
+ hostId: z$1.ZodOptional<z$1.ZodString>;
2947
2953
  mimeType: z$1.ZodOptional<z$1.ZodString>;
2948
2954
  name: z$1.ZodOptional<z$1.ZodString>;
2949
2955
  path: z$1.ZodString;
2950
2956
  sizeBytes: z$1.ZodOptional<z$1.ZodNumber>;
2957
+ sourceProjectId: z$1.ZodOptional<z$1.ZodString>;
2951
2958
  type: z$1.ZodLiteral<"localFile">;
2952
2959
  visibility: z$1.ZodOptional<z$1.ZodEnum<{
2953
2960
  "agent-only": "agent-only";
@@ -3020,16 +3027,20 @@ declare const threadEventSchema: z$1.ZodUnion<readonly [z$1.ZodIntersection<z$1.
3020
3027
  "agent-only": "agent-only";
3021
3028
  }>>;
3022
3029
  }, z$1.core.$strip>, z$1.ZodObject<{
3030
+ hostId: z$1.ZodOptional<z$1.ZodString>;
3023
3031
  path: z$1.ZodString;
3032
+ sourceProjectId: z$1.ZodOptional<z$1.ZodString>;
3024
3033
  type: z$1.ZodLiteral<"localImage">;
3025
3034
  visibility: z$1.ZodOptional<z$1.ZodEnum<{
3026
3035
  "agent-only": "agent-only";
3027
3036
  }>>;
3028
3037
  }, z$1.core.$strip>, z$1.ZodObject<{
3038
+ hostId: z$1.ZodOptional<z$1.ZodString>;
3029
3039
  mimeType: z$1.ZodOptional<z$1.ZodString>;
3030
3040
  name: z$1.ZodOptional<z$1.ZodString>;
3031
3041
  path: z$1.ZodString;
3032
3042
  sizeBytes: z$1.ZodOptional<z$1.ZodNumber>;
3043
+ sourceProjectId: z$1.ZodOptional<z$1.ZodString>;
3033
3044
  type: z$1.ZodLiteral<"localFile">;
3034
3045
  visibility: z$1.ZodOptional<z$1.ZodEnum<{
3035
3046
  "agent-only": "agent-only";
@@ -4006,16 +4017,20 @@ declare const promptInputSchema: z$1.ZodDiscriminatedUnion<[z$1.ZodObject<{
4006
4017
  "agent-only": "agent-only";
4007
4018
  }>>;
4008
4019
  }, z$1.core.$strip>, z$1.ZodObject<{
4020
+ hostId: z$1.ZodOptional<z$1.ZodString>;
4009
4021
  path: z$1.ZodString;
4022
+ sourceProjectId: z$1.ZodOptional<z$1.ZodString>;
4010
4023
  type: z$1.ZodLiteral<"localImage">;
4011
4024
  visibility: z$1.ZodOptional<z$1.ZodEnum<{
4012
4025
  "agent-only": "agent-only";
4013
4026
  }>>;
4014
4027
  }, z$1.core.$strip>, z$1.ZodObject<{
4028
+ hostId: z$1.ZodOptional<z$1.ZodString>;
4015
4029
  mimeType: z$1.ZodOptional<z$1.ZodString>;
4016
4030
  name: z$1.ZodOptional<z$1.ZodString>;
4017
4031
  path: z$1.ZodString;
4018
4032
  sizeBytes: z$1.ZodOptional<z$1.ZodNumber>;
4033
+ sourceProjectId: z$1.ZodOptional<z$1.ZodString>;
4019
4034
  type: z$1.ZodLiteral<"localFile">;
4020
4035
  visibility: z$1.ZodOptional<z$1.ZodEnum<{
4021
4036
  "agent-only": "agent-only";
@@ -4331,16 +4346,20 @@ declare const threadQueuedMessageSchema: z$1.ZodObject<{
4331
4346
  "agent-only": "agent-only";
4332
4347
  }>>;
4333
4348
  }, z$1.core.$strip>, z$1.ZodObject<{
4349
+ hostId: z$1.ZodOptional<z$1.ZodString>;
4334
4350
  path: z$1.ZodString;
4351
+ sourceProjectId: z$1.ZodOptional<z$1.ZodString>;
4335
4352
  type: z$1.ZodLiteral<"localImage">;
4336
4353
  visibility: z$1.ZodOptional<z$1.ZodEnum<{
4337
4354
  "agent-only": "agent-only";
4338
4355
  }>>;
4339
4356
  }, z$1.core.$strip>, z$1.ZodObject<{
4357
+ hostId: z$1.ZodOptional<z$1.ZodString>;
4340
4358
  mimeType: z$1.ZodOptional<z$1.ZodString>;
4341
4359
  name: z$1.ZodOptional<z$1.ZodString>;
4342
4360
  path: z$1.ZodString;
4343
4361
  sizeBytes: z$1.ZodOptional<z$1.ZodNumber>;
4362
+ sourceProjectId: z$1.ZodOptional<z$1.ZodString>;
4344
4363
  type: z$1.ZodLiteral<"localFile">;
4345
4364
  visibility: z$1.ZodOptional<z$1.ZodEnum<{
4346
4365
  "agent-only": "agent-only";
@@ -4749,16 +4768,20 @@ declare const promptHistoryResponseSchema: z$1.ZodArray<z$1.ZodObject<{
4749
4768
  "agent-only": "agent-only";
4750
4769
  }>>;
4751
4770
  }, z$1.core.$strip>, z$1.ZodObject<{
4771
+ hostId: z$1.ZodOptional<z$1.ZodString>;
4752
4772
  path: z$1.ZodString;
4773
+ sourceProjectId: z$1.ZodOptional<z$1.ZodString>;
4753
4774
  type: z$1.ZodLiteral<"localImage">;
4754
4775
  visibility: z$1.ZodOptional<z$1.ZodEnum<{
4755
4776
  "agent-only": "agent-only";
4756
4777
  }>>;
4757
4778
  }, z$1.core.$strip>, z$1.ZodObject<{
4779
+ hostId: z$1.ZodOptional<z$1.ZodString>;
4758
4780
  mimeType: z$1.ZodOptional<z$1.ZodString>;
4759
4781
  name: z$1.ZodOptional<z$1.ZodString>;
4760
4782
  path: z$1.ZodString;
4761
4783
  sizeBytes: z$1.ZodOptional<z$1.ZodNumber>;
4784
+ sourceProjectId: z$1.ZodOptional<z$1.ZodString>;
4762
4785
  type: z$1.ZodLiteral<"localFile">;
4763
4786
  visibility: z$1.ZodOptional<z$1.ZodEnum<{
4764
4787
  "agent-only": "agent-only";
@@ -5209,6 +5232,7 @@ declare const uploadedPromptAttachmentSchema: z$1.ZodObject<{
5209
5232
  name: z$1.ZodString;
5210
5233
  path: z$1.ZodString;
5211
5234
  sizeBytes: z$1.ZodNumber;
5235
+ sourceProjectId: z$1.ZodOptional<z$1.ZodString>;
5212
5236
  type: z$1.ZodEnum<{
5213
5237
  localFile: "localFile";
5214
5238
  localImage: "localImage";
@@ -5297,16 +5321,20 @@ declare const promptHistoryListResponseSchema: z$1.ZodObject<{
5297
5321
  "agent-only": "agent-only";
5298
5322
  }>>;
5299
5323
  }, z$1.core.$strip>, z$1.ZodObject<{
5324
+ hostId: z$1.ZodOptional<z$1.ZodString>;
5300
5325
  path: z$1.ZodString;
5326
+ sourceProjectId: z$1.ZodOptional<z$1.ZodString>;
5301
5327
  type: z$1.ZodLiteral<"localImage">;
5302
5328
  visibility: z$1.ZodOptional<z$1.ZodEnum<{
5303
5329
  "agent-only": "agent-only";
5304
5330
  }>>;
5305
5331
  }, z$1.core.$strip>, z$1.ZodObject<{
5332
+ hostId: z$1.ZodOptional<z$1.ZodString>;
5306
5333
  mimeType: z$1.ZodOptional<z$1.ZodString>;
5307
5334
  name: z$1.ZodOptional<z$1.ZodString>;
5308
5335
  path: z$1.ZodString;
5309
5336
  sizeBytes: z$1.ZodOptional<z$1.ZodNumber>;
5337
+ sourceProjectId: z$1.ZodOptional<z$1.ZodString>;
5310
5338
  type: z$1.ZodLiteral<"localFile">;
5311
5339
  visibility: z$1.ZodOptional<z$1.ZodEnum<{
5312
5340
  "agent-only": "agent-only";
@@ -6434,16 +6462,20 @@ declare const hostDaemonCommandRegistry: {
6434
6462
  "agent-only": "agent-only";
6435
6463
  }>>;
6436
6464
  }, z$1.core.$strip>, z$1.ZodObject<{
6465
+ hostId: z$1.ZodOptional<z$1.ZodString>;
6437
6466
  path: z$1.ZodString;
6467
+ sourceProjectId: z$1.ZodOptional<z$1.ZodString>;
6438
6468
  type: z$1.ZodLiteral<"localImage">;
6439
6469
  visibility: z$1.ZodOptional<z$1.ZodEnum<{
6440
6470
  "agent-only": "agent-only";
6441
6471
  }>>;
6442
6472
  }, z$1.core.$strip>, z$1.ZodObject<{
6473
+ hostId: z$1.ZodOptional<z$1.ZodString>;
6443
6474
  mimeType: z$1.ZodOptional<z$1.ZodString>;
6444
6475
  name: z$1.ZodOptional<z$1.ZodString>;
6445
6476
  path: z$1.ZodString;
6446
6477
  sizeBytes: z$1.ZodOptional<z$1.ZodNumber>;
6478
+ sourceProjectId: z$1.ZodOptional<z$1.ZodString>;
6447
6479
  type: z$1.ZodLiteral<"localFile">;
6448
6480
  visibility: z$1.ZodOptional<z$1.ZodEnum<{
6449
6481
  "agent-only": "agent-only";
@@ -6516,16 +6548,20 @@ declare const hostDaemonCommandRegistry: {
6516
6548
  "agent-only": "agent-only";
6517
6549
  }>>;
6518
6550
  }, z$1.core.$strip>, z$1.ZodObject<{
6551
+ hostId: z$1.ZodOptional<z$1.ZodString>;
6519
6552
  path: z$1.ZodString;
6553
+ sourceProjectId: z$1.ZodOptional<z$1.ZodString>;
6520
6554
  type: z$1.ZodLiteral<"localImage">;
6521
6555
  visibility: z$1.ZodOptional<z$1.ZodEnum<{
6522
6556
  "agent-only": "agent-only";
6523
6557
  }>>;
6524
6558
  }, z$1.core.$strip>, z$1.ZodObject<{
6559
+ hostId: z$1.ZodOptional<z$1.ZodString>;
6525
6560
  mimeType: z$1.ZodOptional<z$1.ZodString>;
6526
6561
  name: z$1.ZodOptional<z$1.ZodString>;
6527
6562
  path: z$1.ZodString;
6528
6563
  sizeBytes: z$1.ZodOptional<z$1.ZodNumber>;
6564
+ sourceProjectId: z$1.ZodOptional<z$1.ZodString>;
6529
6565
  type: z$1.ZodLiteral<"localFile">;
6530
6566
  visibility: z$1.ZodOptional<z$1.ZodEnum<{
6531
6567
  "agent-only": "agent-only";
@@ -6680,16 +6716,20 @@ declare const hostDaemonCommandRegistry: {
6680
6716
  "agent-only": "agent-only";
6681
6717
  }>>;
6682
6718
  }, z$1.core.$strip>, z$1.ZodObject<{
6719
+ hostId: z$1.ZodOptional<z$1.ZodString>;
6683
6720
  path: z$1.ZodString;
6721
+ sourceProjectId: z$1.ZodOptional<z$1.ZodString>;
6684
6722
  type: z$1.ZodLiteral<"localImage">;
6685
6723
  visibility: z$1.ZodOptional<z$1.ZodEnum<{
6686
6724
  "agent-only": "agent-only";
6687
6725
  }>>;
6688
6726
  }, z$1.core.$strip>, z$1.ZodObject<{
6727
+ hostId: z$1.ZodOptional<z$1.ZodString>;
6689
6728
  mimeType: z$1.ZodOptional<z$1.ZodString>;
6690
6729
  name: z$1.ZodOptional<z$1.ZodString>;
6691
6730
  path: z$1.ZodString;
6692
6731
  sizeBytes: z$1.ZodOptional<z$1.ZodNumber>;
6732
+ sourceProjectId: z$1.ZodOptional<z$1.ZodString>;
6693
6733
  type: z$1.ZodLiteral<"localFile">;
6694
6734
  visibility: z$1.ZodOptional<z$1.ZodEnum<{
6695
6735
  "agent-only": "agent-only";
@@ -6762,16 +6802,20 @@ declare const hostDaemonCommandRegistry: {
6762
6802
  "agent-only": "agent-only";
6763
6803
  }>>;
6764
6804
  }, z$1.core.$strip>, z$1.ZodObject<{
6805
+ hostId: z$1.ZodOptional<z$1.ZodString>;
6765
6806
  path: z$1.ZodString;
6807
+ sourceProjectId: z$1.ZodOptional<z$1.ZodString>;
6766
6808
  type: z$1.ZodLiteral<"localImage">;
6767
6809
  visibility: z$1.ZodOptional<z$1.ZodEnum<{
6768
6810
  "agent-only": "agent-only";
6769
6811
  }>>;
6770
6812
  }, z$1.core.$strip>, z$1.ZodObject<{
6813
+ hostId: z$1.ZodOptional<z$1.ZodString>;
6771
6814
  mimeType: z$1.ZodOptional<z$1.ZodString>;
6772
6815
  name: z$1.ZodOptional<z$1.ZodString>;
6773
6816
  path: z$1.ZodString;
6774
6817
  sizeBytes: z$1.ZodOptional<z$1.ZodNumber>;
6818
+ sourceProjectId: z$1.ZodOptional<z$1.ZodString>;
6775
6819
  type: z$1.ZodLiteral<"localFile">;
6776
6820
  visibility: z$1.ZodOptional<z$1.ZodEnum<{
6777
6821
  "agent-only": "agent-only";
@@ -9631,6 +9675,7 @@ declare const pluginCatalogSearchResponseSchema: z$1.ZodObject<{
9631
9675
  iconUrl: z$1.ZodNullable<z$1.ZodString>;
9632
9676
  incompatibleReason: z$1.ZodNullable<z$1.ZodString>;
9633
9677
  installed: z$1.ZodBoolean;
9678
+ installedByDefault: z$1.ZodDefault<z$1.ZodBoolean>;
9634
9679
  installs: z$1.ZodDefault<z$1.ZodNullable<z$1.ZodNumber>>;
9635
9680
  marketplace: z$1.ZodString;
9636
9681
  marketplaceDisplayName: z$1.ZodString;
@@ -10151,6 +10196,7 @@ declare const systemConfigResponseSchema: z$1.ZodObject<{
10151
10196
  "pane.focus.up": "pane.focus.up";
10152
10197
  "pane.maximize.toggle": "pane.maximize.toggle";
10153
10198
  "panel.close": "panel.close";
10199
+ "panel.fullScreen.toggle": "panel.fullScreen.toggle";
10154
10200
  "panel.newTab": "panel.newTab";
10155
10201
  "panel.nextNewTabItem": "panel.nextNewTabItem";
10156
10202
  "panel.nextTab": "panel.nextTab";
@@ -10236,6 +10282,7 @@ declare const systemConfigResponseSchema: z$1.ZodObject<{
10236
10282
  }, z$1.core.$strict>>;
10237
10283
  experiments: z$1.ZodRecord<z$1.ZodEnum<{
10238
10284
  changelogPreview: "changelogPreview";
10285
+ performanceDiagnostics: "performanceDiagnostics";
10239
10286
  serverMove: "serverMove";
10240
10287
  }>, z$1.ZodBoolean>;
10241
10288
  featureFlags: z$1.ZodObject<{
@@ -10300,6 +10347,7 @@ declare const systemConfigResponseSchema: z$1.ZodObject<{
10300
10347
  "pane.focus.up": "pane.focus.up";
10301
10348
  "pane.maximize.toggle": "pane.maximize.toggle";
10302
10349
  "panel.close": "panel.close";
10350
+ "panel.fullScreen.toggle": "panel.fullScreen.toggle";
10303
10351
  "panel.newTab": "panel.newTab";
10304
10352
  "panel.nextNewTabItem": "panel.nextNewTabItem";
10305
10353
  "panel.nextTab": "panel.nextTab";
@@ -10392,6 +10440,7 @@ declare const systemConfigResponseSchema: z$1.ZodObject<{
10392
10440
  "pane.focus.up": "pane.focus.up";
10393
10441
  "pane.maximize.toggle": "pane.maximize.toggle";
10394
10442
  "panel.close": "panel.close";
10443
+ "panel.fullScreen.toggle": "panel.fullScreen.toggle";
10395
10444
  "panel.newTab": "panel.newTab";
10396
10445
  "panel.nextNewTabItem": "panel.nextNewTabItem";
10397
10446
  "panel.nextTab": "panel.nextTab";
@@ -10476,6 +10525,7 @@ declare const systemConfigResponseSchema: z$1.ZodObject<{
10476
10525
  }, z$1.core.$strict>;
10477
10526
  }, z$1.core.$strict>>;
10478
10527
  localHelperPorts: z$1.ZodArray<z$1.ZodNumber>;
10528
+ performanceDiagnosticsAvailable: z$1.ZodBoolean;
10479
10529
  pluginThemes: z$1.ZodArray<z$1.ZodObject<{
10480
10530
  description: z$1.ZodNullable<z$1.ZodString>;
10481
10531
  id: z$1.ZodString;
@@ -10554,7 +10604,13 @@ declare const themeCatalogResponseSchema: z$1.ZodObject<{
10554
10604
  }, z$1.core.$strip>;
10555
10605
  type ThemeCatalogResponse = z$1.infer<typeof themeCatalogResponseSchema>;
10556
10606
  declare const systemVersionResponseSchema: z$1.ZodObject<{
10607
+ currentCommit: z$1.ZodNullable<z$1.ZodString>;
10557
10608
  currentVersion: z$1.ZodString;
10609
+ installKind: z$1.ZodNullable<z$1.ZodEnum<{
10610
+ desktop: "desktop";
10611
+ npm: "npm";
10612
+ source: "source";
10613
+ }>>;
10558
10614
  isDevelopment: z$1.ZodBoolean;
10559
10615
  latestVersion: z$1.ZodNullable<z$1.ZodString>;
10560
10616
  source: z$1.ZodLiteral<"npm">;
@@ -11083,6 +11139,7 @@ declare const timelineConversationRowSchema: z$1.ZodDiscriminatedUnion<[z$1.ZodO
11083
11139
  }, z$1.core.$strip>], "kind">, unknown>;
11084
11140
  start: z$1.ZodNumber;
11085
11141
  }, z$1.core.$strip>>;
11142
+ messageSeq: z$1.ZodNumber;
11086
11143
  role: z$1.ZodLiteral<"user">;
11087
11144
  senderThreadId: z$1.ZodNullable<z$1.ZodString>;
11088
11145
  sourceSeqEnd: z$1.ZodNumber;
@@ -11172,6 +11229,7 @@ declare const timelineConversationRowSchema: z$1.ZodDiscriminatedUnion<[z$1.ZodO
11172
11229
  createdAt: z$1.ZodNumber;
11173
11230
  id: z$1.ZodString;
11174
11231
  kind: z$1.ZodLiteral<"conversation">;
11232
+ messageSeq: z$1.ZodNumber;
11175
11233
  role: z$1.ZodLiteral<"assistant">;
11176
11234
  sourceSeqEnd: z$1.ZodNumber;
11177
11235
  sourceSeqStart: z$1.ZodNumber;
@@ -12304,16 +12362,20 @@ declare const createThreadRequestSchema: z$1.ZodObject<{
12304
12362
  "agent-only": "agent-only";
12305
12363
  }>>;
12306
12364
  }, z$1.core.$strip>, z$1.ZodObject<{
12365
+ hostId: z$1.ZodOptional<z$1.ZodString>;
12307
12366
  path: z$1.ZodString;
12367
+ sourceProjectId: z$1.ZodOptional<z$1.ZodString>;
12308
12368
  type: z$1.ZodLiteral<"localImage">;
12309
12369
  visibility: z$1.ZodOptional<z$1.ZodEnum<{
12310
12370
  "agent-only": "agent-only";
12311
12371
  }>>;
12312
12372
  }, z$1.core.$strip>, z$1.ZodObject<{
12373
+ hostId: z$1.ZodOptional<z$1.ZodString>;
12313
12374
  mimeType: z$1.ZodOptional<z$1.ZodString>;
12314
12375
  name: z$1.ZodOptional<z$1.ZodString>;
12315
12376
  path: z$1.ZodString;
12316
12377
  sizeBytes: z$1.ZodOptional<z$1.ZodNumber>;
12378
+ sourceProjectId: z$1.ZodOptional<z$1.ZodString>;
12317
12379
  type: z$1.ZodLiteral<"localFile">;
12318
12380
  visibility: z$1.ZodOptional<z$1.ZodEnum<{
12319
12381
  "agent-only": "agent-only";
@@ -12442,16 +12504,20 @@ declare const forkThreadRequestSchema: z$1.ZodObject<{
12442
12504
  "agent-only": "agent-only";
12443
12505
  }>>;
12444
12506
  }, z$1.core.$strip>, z$1.ZodObject<{
12507
+ hostId: z$1.ZodOptional<z$1.ZodString>;
12445
12508
  path: z$1.ZodString;
12509
+ sourceProjectId: z$1.ZodOptional<z$1.ZodString>;
12446
12510
  type: z$1.ZodLiteral<"localImage">;
12447
12511
  visibility: z$1.ZodOptional<z$1.ZodEnum<{
12448
12512
  "agent-only": "agent-only";
12449
12513
  }>>;
12450
12514
  }, z$1.core.$strip>, z$1.ZodObject<{
12515
+ hostId: z$1.ZodOptional<z$1.ZodString>;
12451
12516
  mimeType: z$1.ZodOptional<z$1.ZodString>;
12452
12517
  name: z$1.ZodOptional<z$1.ZodString>;
12453
12518
  path: z$1.ZodString;
12454
12519
  sizeBytes: z$1.ZodOptional<z$1.ZodNumber>;
12520
+ sourceProjectId: z$1.ZodOptional<z$1.ZodString>;
12455
12521
  type: z$1.ZodLiteral<"localFile">;
12456
12522
  visibility: z$1.ZodOptional<z$1.ZodEnum<{
12457
12523
  "agent-only": "agent-only";
@@ -12568,16 +12634,20 @@ declare const forkThreadRequestSchema: z$1.ZodObject<{
12568
12634
  "agent-only": "agent-only";
12569
12635
  }>>;
12570
12636
  }, z$1.core.$strip>, z$1.ZodObject<{
12637
+ hostId: z$1.ZodOptional<z$1.ZodString>;
12571
12638
  path: z$1.ZodString;
12639
+ sourceProjectId: z$1.ZodOptional<z$1.ZodString>;
12572
12640
  type: z$1.ZodLiteral<"localImage">;
12573
12641
  visibility: z$1.ZodOptional<z$1.ZodEnum<{
12574
12642
  "agent-only": "agent-only";
12575
12643
  }>>;
12576
12644
  }, z$1.core.$strip>, z$1.ZodObject<{
12645
+ hostId: z$1.ZodOptional<z$1.ZodString>;
12577
12646
  mimeType: z$1.ZodOptional<z$1.ZodString>;
12578
12647
  name: z$1.ZodOptional<z$1.ZodString>;
12579
12648
  path: z$1.ZodString;
12580
12649
  sizeBytes: z$1.ZodOptional<z$1.ZodNumber>;
12650
+ sourceProjectId: z$1.ZodOptional<z$1.ZodString>;
12581
12651
  type: z$1.ZodLiteral<"localFile">;
12582
12652
  visibility: z$1.ZodOptional<z$1.ZodEnum<{
12583
12653
  "agent-only": "agent-only";
@@ -12692,16 +12762,20 @@ declare const sendMessageRequestSchema: z$1.ZodObject<{
12692
12762
  "agent-only": "agent-only";
12693
12763
  }>>;
12694
12764
  }, z$1.core.$strip>, z$1.ZodObject<{
12765
+ hostId: z$1.ZodOptional<z$1.ZodString>;
12695
12766
  path: z$1.ZodString;
12767
+ sourceProjectId: z$1.ZodOptional<z$1.ZodString>;
12696
12768
  type: z$1.ZodLiteral<"localImage">;
12697
12769
  visibility: z$1.ZodOptional<z$1.ZodEnum<{
12698
12770
  "agent-only": "agent-only";
12699
12771
  }>>;
12700
12772
  }, z$1.core.$strip>, z$1.ZodObject<{
12773
+ hostId: z$1.ZodOptional<z$1.ZodString>;
12701
12774
  mimeType: z$1.ZodOptional<z$1.ZodString>;
12702
12775
  name: z$1.ZodOptional<z$1.ZodString>;
12703
12776
  path: z$1.ZodString;
12704
12777
  sizeBytes: z$1.ZodOptional<z$1.ZodNumber>;
12778
+ sourceProjectId: z$1.ZodOptional<z$1.ZodString>;
12705
12779
  type: z$1.ZodLiteral<"localFile">;
12706
12780
  visibility: z$1.ZodOptional<z$1.ZodEnum<{
12707
12781
  "agent-only": "agent-only";
@@ -12818,16 +12892,20 @@ declare const sendMessageResponseSchema: z$1.ZodDiscriminatedUnion<[z$1.ZodObjec
12818
12892
  "agent-only": "agent-only";
12819
12893
  }>>;
12820
12894
  }, z$1.core.$strip>, z$1.ZodObject<{
12895
+ hostId: z$1.ZodOptional<z$1.ZodString>;
12821
12896
  path: z$1.ZodString;
12897
+ sourceProjectId: z$1.ZodOptional<z$1.ZodString>;
12822
12898
  type: z$1.ZodLiteral<"localImage">;
12823
12899
  visibility: z$1.ZodOptional<z$1.ZodEnum<{
12824
12900
  "agent-only": "agent-only";
12825
12901
  }>>;
12826
12902
  }, z$1.core.$strip>, z$1.ZodObject<{
12903
+ hostId: z$1.ZodOptional<z$1.ZodString>;
12827
12904
  mimeType: z$1.ZodOptional<z$1.ZodString>;
12828
12905
  name: z$1.ZodOptional<z$1.ZodString>;
12829
12906
  path: z$1.ZodString;
12830
12907
  sizeBytes: z$1.ZodOptional<z$1.ZodNumber>;
12908
+ sourceProjectId: z$1.ZodOptional<z$1.ZodString>;
12831
12909
  type: z$1.ZodLiteral<"localFile">;
12832
12910
  visibility: z$1.ZodOptional<z$1.ZodEnum<{
12833
12911
  "agent-only": "agent-only";
@@ -12989,16 +13067,20 @@ declare const editMessageRequestSchema: z$1.ZodObject<{
12989
13067
  "agent-only": "agent-only";
12990
13068
  }>>;
12991
13069
  }, z$1.core.$strip>, z$1.ZodObject<{
13070
+ hostId: z$1.ZodOptional<z$1.ZodString>;
12992
13071
  path: z$1.ZodString;
13072
+ sourceProjectId: z$1.ZodOptional<z$1.ZodString>;
12993
13073
  type: z$1.ZodLiteral<"localImage">;
12994
13074
  visibility: z$1.ZodOptional<z$1.ZodEnum<{
12995
13075
  "agent-only": "agent-only";
12996
13076
  }>>;
12997
13077
  }, z$1.core.$strip>, z$1.ZodObject<{
13078
+ hostId: z$1.ZodOptional<z$1.ZodString>;
12998
13079
  mimeType: z$1.ZodOptional<z$1.ZodString>;
12999
13080
  name: z$1.ZodOptional<z$1.ZodString>;
13000
13081
  path: z$1.ZodString;
13001
13082
  sizeBytes: z$1.ZodOptional<z$1.ZodNumber>;
13083
+ sourceProjectId: z$1.ZodOptional<z$1.ZodString>;
13002
13084
  type: z$1.ZodLiteral<"localFile">;
13003
13085
  visibility: z$1.ZodOptional<z$1.ZodEnum<{
13004
13086
  "agent-only": "agent-only";
@@ -13158,16 +13240,20 @@ declare const createQueuedMessageRequestSchema: z$1.ZodObject<{
13158
13240
  "agent-only": "agent-only";
13159
13241
  }>>;
13160
13242
  }, z$1.core.$strip>, z$1.ZodObject<{
13243
+ hostId: z$1.ZodOptional<z$1.ZodString>;
13161
13244
  path: z$1.ZodString;
13245
+ sourceProjectId: z$1.ZodOptional<z$1.ZodString>;
13162
13246
  type: z$1.ZodLiteral<"localImage">;
13163
13247
  visibility: z$1.ZodOptional<z$1.ZodEnum<{
13164
13248
  "agent-only": "agent-only";
13165
13249
  }>>;
13166
13250
  }, z$1.core.$strip>, z$1.ZodObject<{
13251
+ hostId: z$1.ZodOptional<z$1.ZodString>;
13167
13252
  mimeType: z$1.ZodOptional<z$1.ZodString>;
13168
13253
  name: z$1.ZodOptional<z$1.ZodString>;
13169
13254
  path: z$1.ZodString;
13170
13255
  sizeBytes: z$1.ZodOptional<z$1.ZodNumber>;
13256
+ sourceProjectId: z$1.ZodOptional<z$1.ZodString>;
13171
13257
  type: z$1.ZodLiteral<"localFile">;
13172
13258
  visibility: z$1.ZodOptional<z$1.ZodEnum<{
13173
13259
  "agent-only": "agent-only";
@@ -13262,16 +13348,20 @@ declare const updateQueuedMessageRequestSchema: z$1.ZodObject<{
13262
13348
  "agent-only": "agent-only";
13263
13349
  }>>;
13264
13350
  }, z$1.core.$strip>, z$1.ZodObject<{
13351
+ hostId: z$1.ZodOptional<z$1.ZodString>;
13265
13352
  path: z$1.ZodString;
13353
+ sourceProjectId: z$1.ZodOptional<z$1.ZodString>;
13266
13354
  type: z$1.ZodLiteral<"localImage">;
13267
13355
  visibility: z$1.ZodOptional<z$1.ZodEnum<{
13268
13356
  "agent-only": "agent-only";
13269
13357
  }>>;
13270
13358
  }, z$1.core.$strip>, z$1.ZodObject<{
13359
+ hostId: z$1.ZodOptional<z$1.ZodString>;
13271
13360
  mimeType: z$1.ZodOptional<z$1.ZodString>;
13272
13361
  name: z$1.ZodOptional<z$1.ZodString>;
13273
13362
  path: z$1.ZodString;
13274
13363
  sizeBytes: z$1.ZodOptional<z$1.ZodNumber>;
13364
+ sourceProjectId: z$1.ZodOptional<z$1.ZodString>;
13275
13365
  type: z$1.ZodLiteral<"localFile">;
13276
13366
  visibility: z$1.ZodOptional<z$1.ZodEnum<{
13277
13367
  "agent-only": "agent-only";
@@ -13371,16 +13461,20 @@ declare const sendQueuedMessageResponseSchema: z$1.ZodDiscriminatedUnion<[z$1.Zo
13371
13461
  "agent-only": "agent-only";
13372
13462
  }>>;
13373
13463
  }, z$1.core.$strip>, z$1.ZodObject<{
13464
+ hostId: z$1.ZodOptional<z$1.ZodString>;
13374
13465
  path: z$1.ZodString;
13466
+ sourceProjectId: z$1.ZodOptional<z$1.ZodString>;
13375
13467
  type: z$1.ZodLiteral<"localImage">;
13376
13468
  visibility: z$1.ZodOptional<z$1.ZodEnum<{
13377
13469
  "agent-only": "agent-only";
13378
13470
  }>>;
13379
13471
  }, z$1.core.$strip>, z$1.ZodObject<{
13472
+ hostId: z$1.ZodOptional<z$1.ZodString>;
13380
13473
  mimeType: z$1.ZodOptional<z$1.ZodString>;
13381
13474
  name: z$1.ZodOptional<z$1.ZodString>;
13382
13475
  path: z$1.ZodString;
13383
13476
  sizeBytes: z$1.ZodOptional<z$1.ZodNumber>;
13477
+ sourceProjectId: z$1.ZodOptional<z$1.ZodString>;
13384
13478
  type: z$1.ZodLiteral<"localFile">;
13385
13479
  visibility: z$1.ZodOptional<z$1.ZodEnum<{
13386
13480
  "agent-only": "agent-only";
@@ -14298,16 +14392,20 @@ declare const threadQueuedMessageListResponseSchema: z$1.ZodArray<z$1.ZodObject<
14298
14392
  "agent-only": "agent-only";
14299
14393
  }>>;
14300
14394
  }, z$1.core.$strip>, z$1.ZodObject<{
14395
+ hostId: z$1.ZodOptional<z$1.ZodString>;
14301
14396
  path: z$1.ZodString;
14397
+ sourceProjectId: z$1.ZodOptional<z$1.ZodString>;
14302
14398
  type: z$1.ZodLiteral<"localImage">;
14303
14399
  visibility: z$1.ZodOptional<z$1.ZodEnum<{
14304
14400
  "agent-only": "agent-only";
14305
14401
  }>>;
14306
14402
  }, z$1.core.$strip>, z$1.ZodObject<{
14403
+ hostId: z$1.ZodOptional<z$1.ZodString>;
14307
14404
  mimeType: z$1.ZodOptional<z$1.ZodString>;
14308
14405
  name: z$1.ZodOptional<z$1.ZodString>;
14309
14406
  path: z$1.ZodString;
14310
14407
  sizeBytes: z$1.ZodOptional<z$1.ZodNumber>;
14408
+ sourceProjectId: z$1.ZodOptional<z$1.ZodString>;
14311
14409
  type: z$1.ZodLiteral<"localFile">;
14312
14410
  visibility: z$1.ZodOptional<z$1.ZodEnum<{
14313
14411
  "agent-only": "agent-only";
@@ -14541,6 +14639,522 @@ declare const timelineTurnSummaryDetailsQuerySchema: z$1.ZodObject<{
14541
14639
  turnId: z$1.ZodString;
14542
14640
  }, z$1.core.$strip>;
14543
14641
  type TimelineTurnSummaryDetailsQuery = z$1.infer<typeof timelineTurnSummaryDetailsQuerySchema>;
14642
+ declare const threadMessageResponseSchema: z$1.ZodObject<{
14643
+ after: z$1.ZodArray<z$1.ZodDiscriminatedUnion<[z$1.ZodObject<{
14644
+ attachments: z$1.ZodNullable<z$1.ZodObject<{
14645
+ imageUrls: z$1.ZodArray<z$1.ZodString>;
14646
+ localFilePaths: z$1.ZodArray<z$1.ZodString>;
14647
+ localFiles: z$1.ZodNumber;
14648
+ localImagePaths: z$1.ZodArray<z$1.ZodString>;
14649
+ localImages: z$1.ZodNumber;
14650
+ webImages: z$1.ZodNumber;
14651
+ }, z$1.core.$strip>>;
14652
+ createdAt: z$1.ZodNumber;
14653
+ id: z$1.ZodString;
14654
+ initiator: z$1.ZodEnum<{
14655
+ agent: "agent";
14656
+ system: "system";
14657
+ user: "user";
14658
+ }>;
14659
+ kind: z$1.ZodLiteral<"conversation">;
14660
+ mentions: z$1.ZodArray<z$1.ZodObject<{
14661
+ end: z$1.ZodNumber;
14662
+ resource: z$1.ZodPreprocess<z$1.ZodDiscriminatedUnion<[z$1.ZodObject<{
14663
+ kind: z$1.ZodLiteral<"thread">;
14664
+ label: z$1.ZodString;
14665
+ projectId: z$1.ZodOptional<z$1.ZodString>;
14666
+ threadId: z$1.ZodString;
14667
+ }, z$1.core.$strip>, z$1.ZodObject<{
14668
+ kind: z$1.ZodLiteral<"project">;
14669
+ label: z$1.ZodString;
14670
+ projectId: z$1.ZodString;
14671
+ }, z$1.core.$strip>, z$1.ZodObject<{
14672
+ kind: z$1.ZodLiteral<"section">;
14673
+ label: z$1.ZodString;
14674
+ sectionId: z$1.ZodString;
14675
+ }, z$1.core.$strip>, z$1.ZodObject<{
14676
+ entryKind: z$1.ZodEnum<{
14677
+ directory: "directory";
14678
+ file: "file";
14679
+ }>;
14680
+ kind: z$1.ZodLiteral<"path">;
14681
+ label: z$1.ZodString;
14682
+ path: z$1.ZodString;
14683
+ source: z$1.ZodEnum<{
14684
+ "thread-storage": "thread-storage";
14685
+ workspace: "workspace";
14686
+ }>;
14687
+ }, z$1.core.$strip>, z$1.ZodObject<{
14688
+ argumentHint: z$1.ZodNullable<z$1.ZodString>;
14689
+ kind: z$1.ZodLiteral<"command">;
14690
+ label: z$1.ZodString;
14691
+ name: z$1.ZodString;
14692
+ origin: z$1.ZodEnum<{
14693
+ builtin: "builtin";
14694
+ project: "project";
14695
+ user: "user";
14696
+ }>;
14697
+ source: z$1.ZodEnum<{
14698
+ command: "command";
14699
+ skill: "skill";
14700
+ }>;
14701
+ trigger: z$1.ZodEnum<{
14702
+ "/": "/";
14703
+ $: "$";
14704
+ }>;
14705
+ }, z$1.core.$strip>, z$1.ZodObject<{
14706
+ icon: z$1.ZodOptional<z$1.ZodNullable<z$1.ZodString>>;
14707
+ itemId: z$1.ZodString;
14708
+ kind: z$1.ZodLiteral<"plugin">;
14709
+ label: z$1.ZodString;
14710
+ pluginId: z$1.ZodString;
14711
+ }, z$1.core.$strip>], "kind">, unknown>;
14712
+ start: z$1.ZodNumber;
14713
+ }, z$1.core.$strip>>;
14714
+ messageSeq: z$1.ZodNumber;
14715
+ role: z$1.ZodLiteral<"user">;
14716
+ senderThreadId: z$1.ZodNullable<z$1.ZodString>;
14717
+ sourceSeqEnd: z$1.ZodNumber;
14718
+ sourceSeqStart: z$1.ZodNumber;
14719
+ startedAt: z$1.ZodNumber;
14720
+ systemMessageKind: z$1.ZodEnum<{
14721
+ "child-completed": "child-completed";
14722
+ "child-failed": "child-failed";
14723
+ "child-interrupted": "child-interrupted";
14724
+ "child-needs-attention": "child-needs-attention";
14725
+ "child-outcome-batch": "child-outcome-batch";
14726
+ "ownership-assigned": "ownership-assigned";
14727
+ "ownership-removed": "ownership-removed";
14728
+ "tool-result-delivered": "tool-result-delivered";
14729
+ unlabeled: "unlabeled";
14730
+ }>;
14731
+ systemMessageSubject: z$1.ZodNullable<z$1.ZodDiscriminatedUnion<[z$1.ZodObject<{
14732
+ kind: z$1.ZodLiteral<"thread">;
14733
+ outcomes: z$1.ZodOptional<z$1.ZodArray<z$1.ZodObject<{
14734
+ interruption: z$1.ZodOptional<z$1.ZodObject<{
14735
+ cause: z$1.ZodOptional<z$1.ZodLiteral<"host-connection-lost">>;
14736
+ reason: z$1.ZodEnum<{
14737
+ "host-daemon-restarted": "host-daemon-restarted";
14738
+ "host-removed": "host-removed";
14739
+ "manual-stop": "manual-stop";
14740
+ "provider-turn-idle": "provider-turn-idle";
14741
+ }>;
14742
+ }, z$1.core.$strip>>;
14743
+ status: z$1.ZodEnum<{
14744
+ completed: "completed";
14745
+ failed: "failed";
14746
+ interrupted: "interrupted";
14747
+ }>;
14748
+ threadId: z$1.ZodString;
14749
+ }, z$1.core.$strip>>>;
14750
+ threadId: z$1.ZodString;
14751
+ threadName: z$1.ZodString;
14752
+ }, z$1.core.$strip>, z$1.ZodObject<{
14753
+ count: z$1.ZodNumber;
14754
+ kind: z$1.ZodLiteral<"thread-batch">;
14755
+ outcomes: z$1.ZodOptional<z$1.ZodArray<z$1.ZodObject<{
14756
+ interruption: z$1.ZodOptional<z$1.ZodObject<{
14757
+ cause: z$1.ZodOptional<z$1.ZodLiteral<"host-connection-lost">>;
14758
+ reason: z$1.ZodEnum<{
14759
+ "host-daemon-restarted": "host-daemon-restarted";
14760
+ "host-removed": "host-removed";
14761
+ "manual-stop": "manual-stop";
14762
+ "provider-turn-idle": "provider-turn-idle";
14763
+ }>;
14764
+ }, z$1.core.$strip>>;
14765
+ status: z$1.ZodEnum<{
14766
+ completed: "completed";
14767
+ failed: "failed";
14768
+ interrupted: "interrupted";
14769
+ }>;
14770
+ threadId: z$1.ZodString;
14771
+ }, z$1.core.$strip>>>;
14772
+ }, z$1.core.$strip>, z$1.ZodObject<{
14773
+ kind: z$1.ZodLiteral<"tool-call">;
14774
+ suppress: z$1.ZodBoolean;
14775
+ toolName: z$1.ZodString;
14776
+ }, z$1.core.$strip>], "kind">>;
14777
+ text: z$1.ZodString;
14778
+ threadId: z$1.ZodString;
14779
+ turnId: z$1.ZodNullable<z$1.ZodString>;
14780
+ turnRequest: z$1.ZodObject<{
14781
+ isGrouped: z$1.ZodBoolean;
14782
+ kind: z$1.ZodEnum<{
14783
+ message: "message";
14784
+ steer: "steer";
14785
+ }>;
14786
+ status: z$1.ZodEnum<{
14787
+ accepted: "accepted";
14788
+ pending: "pending";
14789
+ rejected: "rejected";
14790
+ }>;
14791
+ }, z$1.core.$strip>;
14792
+ }, z$1.core.$strip>, z$1.ZodObject<{
14793
+ attachments: z$1.ZodNullable<z$1.ZodObject<{
14794
+ imageUrls: z$1.ZodArray<z$1.ZodString>;
14795
+ localFilePaths: z$1.ZodArray<z$1.ZodString>;
14796
+ localFiles: z$1.ZodNumber;
14797
+ localImagePaths: z$1.ZodArray<z$1.ZodString>;
14798
+ localImages: z$1.ZodNumber;
14799
+ webImages: z$1.ZodNumber;
14800
+ }, z$1.core.$strip>>;
14801
+ createdAt: z$1.ZodNumber;
14802
+ id: z$1.ZodString;
14803
+ kind: z$1.ZodLiteral<"conversation">;
14804
+ messageSeq: z$1.ZodNumber;
14805
+ role: z$1.ZodLiteral<"assistant">;
14806
+ sourceSeqEnd: z$1.ZodNumber;
14807
+ sourceSeqStart: z$1.ZodNumber;
14808
+ startedAt: z$1.ZodNumber;
14809
+ text: z$1.ZodString;
14810
+ threadId: z$1.ZodString;
14811
+ turnId: z$1.ZodNullable<z$1.ZodString>;
14812
+ turnRequest: z$1.ZodNull;
14813
+ }, z$1.core.$strip>], "role">>;
14814
+ before: z$1.ZodArray<z$1.ZodDiscriminatedUnion<[z$1.ZodObject<{
14815
+ attachments: z$1.ZodNullable<z$1.ZodObject<{
14816
+ imageUrls: z$1.ZodArray<z$1.ZodString>;
14817
+ localFilePaths: z$1.ZodArray<z$1.ZodString>;
14818
+ localFiles: z$1.ZodNumber;
14819
+ localImagePaths: z$1.ZodArray<z$1.ZodString>;
14820
+ localImages: z$1.ZodNumber;
14821
+ webImages: z$1.ZodNumber;
14822
+ }, z$1.core.$strip>>;
14823
+ createdAt: z$1.ZodNumber;
14824
+ id: z$1.ZodString;
14825
+ initiator: z$1.ZodEnum<{
14826
+ agent: "agent";
14827
+ system: "system";
14828
+ user: "user";
14829
+ }>;
14830
+ kind: z$1.ZodLiteral<"conversation">;
14831
+ mentions: z$1.ZodArray<z$1.ZodObject<{
14832
+ end: z$1.ZodNumber;
14833
+ resource: z$1.ZodPreprocess<z$1.ZodDiscriminatedUnion<[z$1.ZodObject<{
14834
+ kind: z$1.ZodLiteral<"thread">;
14835
+ label: z$1.ZodString;
14836
+ projectId: z$1.ZodOptional<z$1.ZodString>;
14837
+ threadId: z$1.ZodString;
14838
+ }, z$1.core.$strip>, z$1.ZodObject<{
14839
+ kind: z$1.ZodLiteral<"project">;
14840
+ label: z$1.ZodString;
14841
+ projectId: z$1.ZodString;
14842
+ }, z$1.core.$strip>, z$1.ZodObject<{
14843
+ kind: z$1.ZodLiteral<"section">;
14844
+ label: z$1.ZodString;
14845
+ sectionId: z$1.ZodString;
14846
+ }, z$1.core.$strip>, z$1.ZodObject<{
14847
+ entryKind: z$1.ZodEnum<{
14848
+ directory: "directory";
14849
+ file: "file";
14850
+ }>;
14851
+ kind: z$1.ZodLiteral<"path">;
14852
+ label: z$1.ZodString;
14853
+ path: z$1.ZodString;
14854
+ source: z$1.ZodEnum<{
14855
+ "thread-storage": "thread-storage";
14856
+ workspace: "workspace";
14857
+ }>;
14858
+ }, z$1.core.$strip>, z$1.ZodObject<{
14859
+ argumentHint: z$1.ZodNullable<z$1.ZodString>;
14860
+ kind: z$1.ZodLiteral<"command">;
14861
+ label: z$1.ZodString;
14862
+ name: z$1.ZodString;
14863
+ origin: z$1.ZodEnum<{
14864
+ builtin: "builtin";
14865
+ project: "project";
14866
+ user: "user";
14867
+ }>;
14868
+ source: z$1.ZodEnum<{
14869
+ command: "command";
14870
+ skill: "skill";
14871
+ }>;
14872
+ trigger: z$1.ZodEnum<{
14873
+ "/": "/";
14874
+ $: "$";
14875
+ }>;
14876
+ }, z$1.core.$strip>, z$1.ZodObject<{
14877
+ icon: z$1.ZodOptional<z$1.ZodNullable<z$1.ZodString>>;
14878
+ itemId: z$1.ZodString;
14879
+ kind: z$1.ZodLiteral<"plugin">;
14880
+ label: z$1.ZodString;
14881
+ pluginId: z$1.ZodString;
14882
+ }, z$1.core.$strip>], "kind">, unknown>;
14883
+ start: z$1.ZodNumber;
14884
+ }, z$1.core.$strip>>;
14885
+ messageSeq: z$1.ZodNumber;
14886
+ role: z$1.ZodLiteral<"user">;
14887
+ senderThreadId: z$1.ZodNullable<z$1.ZodString>;
14888
+ sourceSeqEnd: z$1.ZodNumber;
14889
+ sourceSeqStart: z$1.ZodNumber;
14890
+ startedAt: z$1.ZodNumber;
14891
+ systemMessageKind: z$1.ZodEnum<{
14892
+ "child-completed": "child-completed";
14893
+ "child-failed": "child-failed";
14894
+ "child-interrupted": "child-interrupted";
14895
+ "child-needs-attention": "child-needs-attention";
14896
+ "child-outcome-batch": "child-outcome-batch";
14897
+ "ownership-assigned": "ownership-assigned";
14898
+ "ownership-removed": "ownership-removed";
14899
+ "tool-result-delivered": "tool-result-delivered";
14900
+ unlabeled: "unlabeled";
14901
+ }>;
14902
+ systemMessageSubject: z$1.ZodNullable<z$1.ZodDiscriminatedUnion<[z$1.ZodObject<{
14903
+ kind: z$1.ZodLiteral<"thread">;
14904
+ outcomes: z$1.ZodOptional<z$1.ZodArray<z$1.ZodObject<{
14905
+ interruption: z$1.ZodOptional<z$1.ZodObject<{
14906
+ cause: z$1.ZodOptional<z$1.ZodLiteral<"host-connection-lost">>;
14907
+ reason: z$1.ZodEnum<{
14908
+ "host-daemon-restarted": "host-daemon-restarted";
14909
+ "host-removed": "host-removed";
14910
+ "manual-stop": "manual-stop";
14911
+ "provider-turn-idle": "provider-turn-idle";
14912
+ }>;
14913
+ }, z$1.core.$strip>>;
14914
+ status: z$1.ZodEnum<{
14915
+ completed: "completed";
14916
+ failed: "failed";
14917
+ interrupted: "interrupted";
14918
+ }>;
14919
+ threadId: z$1.ZodString;
14920
+ }, z$1.core.$strip>>>;
14921
+ threadId: z$1.ZodString;
14922
+ threadName: z$1.ZodString;
14923
+ }, z$1.core.$strip>, z$1.ZodObject<{
14924
+ count: z$1.ZodNumber;
14925
+ kind: z$1.ZodLiteral<"thread-batch">;
14926
+ outcomes: z$1.ZodOptional<z$1.ZodArray<z$1.ZodObject<{
14927
+ interruption: z$1.ZodOptional<z$1.ZodObject<{
14928
+ cause: z$1.ZodOptional<z$1.ZodLiteral<"host-connection-lost">>;
14929
+ reason: z$1.ZodEnum<{
14930
+ "host-daemon-restarted": "host-daemon-restarted";
14931
+ "host-removed": "host-removed";
14932
+ "manual-stop": "manual-stop";
14933
+ "provider-turn-idle": "provider-turn-idle";
14934
+ }>;
14935
+ }, z$1.core.$strip>>;
14936
+ status: z$1.ZodEnum<{
14937
+ completed: "completed";
14938
+ failed: "failed";
14939
+ interrupted: "interrupted";
14940
+ }>;
14941
+ threadId: z$1.ZodString;
14942
+ }, z$1.core.$strip>>>;
14943
+ }, z$1.core.$strip>, z$1.ZodObject<{
14944
+ kind: z$1.ZodLiteral<"tool-call">;
14945
+ suppress: z$1.ZodBoolean;
14946
+ toolName: z$1.ZodString;
14947
+ }, z$1.core.$strip>], "kind">>;
14948
+ text: z$1.ZodString;
14949
+ threadId: z$1.ZodString;
14950
+ turnId: z$1.ZodNullable<z$1.ZodString>;
14951
+ turnRequest: z$1.ZodObject<{
14952
+ isGrouped: z$1.ZodBoolean;
14953
+ kind: z$1.ZodEnum<{
14954
+ message: "message";
14955
+ steer: "steer";
14956
+ }>;
14957
+ status: z$1.ZodEnum<{
14958
+ accepted: "accepted";
14959
+ pending: "pending";
14960
+ rejected: "rejected";
14961
+ }>;
14962
+ }, z$1.core.$strip>;
14963
+ }, z$1.core.$strip>, z$1.ZodObject<{
14964
+ attachments: z$1.ZodNullable<z$1.ZodObject<{
14965
+ imageUrls: z$1.ZodArray<z$1.ZodString>;
14966
+ localFilePaths: z$1.ZodArray<z$1.ZodString>;
14967
+ localFiles: z$1.ZodNumber;
14968
+ localImagePaths: z$1.ZodArray<z$1.ZodString>;
14969
+ localImages: z$1.ZodNumber;
14970
+ webImages: z$1.ZodNumber;
14971
+ }, z$1.core.$strip>>;
14972
+ createdAt: z$1.ZodNumber;
14973
+ id: z$1.ZodString;
14974
+ kind: z$1.ZodLiteral<"conversation">;
14975
+ messageSeq: z$1.ZodNumber;
14976
+ role: z$1.ZodLiteral<"assistant">;
14977
+ sourceSeqEnd: z$1.ZodNumber;
14978
+ sourceSeqStart: z$1.ZodNumber;
14979
+ startedAt: z$1.ZodNumber;
14980
+ text: z$1.ZodString;
14981
+ threadId: z$1.ZodString;
14982
+ turnId: z$1.ZodNullable<z$1.ZodString>;
14983
+ turnRequest: z$1.ZodNull;
14984
+ }, z$1.core.$strip>], "role">>;
14985
+ message: z$1.ZodDiscriminatedUnion<[z$1.ZodObject<{
14986
+ attachments: z$1.ZodNullable<z$1.ZodObject<{
14987
+ imageUrls: z$1.ZodArray<z$1.ZodString>;
14988
+ localFilePaths: z$1.ZodArray<z$1.ZodString>;
14989
+ localFiles: z$1.ZodNumber;
14990
+ localImagePaths: z$1.ZodArray<z$1.ZodString>;
14991
+ localImages: z$1.ZodNumber;
14992
+ webImages: z$1.ZodNumber;
14993
+ }, z$1.core.$strip>>;
14994
+ createdAt: z$1.ZodNumber;
14995
+ id: z$1.ZodString;
14996
+ initiator: z$1.ZodEnum<{
14997
+ agent: "agent";
14998
+ system: "system";
14999
+ user: "user";
15000
+ }>;
15001
+ kind: z$1.ZodLiteral<"conversation">;
15002
+ mentions: z$1.ZodArray<z$1.ZodObject<{
15003
+ end: z$1.ZodNumber;
15004
+ resource: z$1.ZodPreprocess<z$1.ZodDiscriminatedUnion<[z$1.ZodObject<{
15005
+ kind: z$1.ZodLiteral<"thread">;
15006
+ label: z$1.ZodString;
15007
+ projectId: z$1.ZodOptional<z$1.ZodString>;
15008
+ threadId: z$1.ZodString;
15009
+ }, z$1.core.$strip>, z$1.ZodObject<{
15010
+ kind: z$1.ZodLiteral<"project">;
15011
+ label: z$1.ZodString;
15012
+ projectId: z$1.ZodString;
15013
+ }, z$1.core.$strip>, z$1.ZodObject<{
15014
+ kind: z$1.ZodLiteral<"section">;
15015
+ label: z$1.ZodString;
15016
+ sectionId: z$1.ZodString;
15017
+ }, z$1.core.$strip>, z$1.ZodObject<{
15018
+ entryKind: z$1.ZodEnum<{
15019
+ directory: "directory";
15020
+ file: "file";
15021
+ }>;
15022
+ kind: z$1.ZodLiteral<"path">;
15023
+ label: z$1.ZodString;
15024
+ path: z$1.ZodString;
15025
+ source: z$1.ZodEnum<{
15026
+ "thread-storage": "thread-storage";
15027
+ workspace: "workspace";
15028
+ }>;
15029
+ }, z$1.core.$strip>, z$1.ZodObject<{
15030
+ argumentHint: z$1.ZodNullable<z$1.ZodString>;
15031
+ kind: z$1.ZodLiteral<"command">;
15032
+ label: z$1.ZodString;
15033
+ name: z$1.ZodString;
15034
+ origin: z$1.ZodEnum<{
15035
+ builtin: "builtin";
15036
+ project: "project";
15037
+ user: "user";
15038
+ }>;
15039
+ source: z$1.ZodEnum<{
15040
+ command: "command";
15041
+ skill: "skill";
15042
+ }>;
15043
+ trigger: z$1.ZodEnum<{
15044
+ "/": "/";
15045
+ $: "$";
15046
+ }>;
15047
+ }, z$1.core.$strip>, z$1.ZodObject<{
15048
+ icon: z$1.ZodOptional<z$1.ZodNullable<z$1.ZodString>>;
15049
+ itemId: z$1.ZodString;
15050
+ kind: z$1.ZodLiteral<"plugin">;
15051
+ label: z$1.ZodString;
15052
+ pluginId: z$1.ZodString;
15053
+ }, z$1.core.$strip>], "kind">, unknown>;
15054
+ start: z$1.ZodNumber;
15055
+ }, z$1.core.$strip>>;
15056
+ messageSeq: z$1.ZodNumber;
15057
+ role: z$1.ZodLiteral<"user">;
15058
+ senderThreadId: z$1.ZodNullable<z$1.ZodString>;
15059
+ sourceSeqEnd: z$1.ZodNumber;
15060
+ sourceSeqStart: z$1.ZodNumber;
15061
+ startedAt: z$1.ZodNumber;
15062
+ systemMessageKind: z$1.ZodEnum<{
15063
+ "child-completed": "child-completed";
15064
+ "child-failed": "child-failed";
15065
+ "child-interrupted": "child-interrupted";
15066
+ "child-needs-attention": "child-needs-attention";
15067
+ "child-outcome-batch": "child-outcome-batch";
15068
+ "ownership-assigned": "ownership-assigned";
15069
+ "ownership-removed": "ownership-removed";
15070
+ "tool-result-delivered": "tool-result-delivered";
15071
+ unlabeled: "unlabeled";
15072
+ }>;
15073
+ systemMessageSubject: z$1.ZodNullable<z$1.ZodDiscriminatedUnion<[z$1.ZodObject<{
15074
+ kind: z$1.ZodLiteral<"thread">;
15075
+ outcomes: z$1.ZodOptional<z$1.ZodArray<z$1.ZodObject<{
15076
+ interruption: z$1.ZodOptional<z$1.ZodObject<{
15077
+ cause: z$1.ZodOptional<z$1.ZodLiteral<"host-connection-lost">>;
15078
+ reason: z$1.ZodEnum<{
15079
+ "host-daemon-restarted": "host-daemon-restarted";
15080
+ "host-removed": "host-removed";
15081
+ "manual-stop": "manual-stop";
15082
+ "provider-turn-idle": "provider-turn-idle";
15083
+ }>;
15084
+ }, z$1.core.$strip>>;
15085
+ status: z$1.ZodEnum<{
15086
+ completed: "completed";
15087
+ failed: "failed";
15088
+ interrupted: "interrupted";
15089
+ }>;
15090
+ threadId: z$1.ZodString;
15091
+ }, z$1.core.$strip>>>;
15092
+ threadId: z$1.ZodString;
15093
+ threadName: z$1.ZodString;
15094
+ }, z$1.core.$strip>, z$1.ZodObject<{
15095
+ count: z$1.ZodNumber;
15096
+ kind: z$1.ZodLiteral<"thread-batch">;
15097
+ outcomes: z$1.ZodOptional<z$1.ZodArray<z$1.ZodObject<{
15098
+ interruption: z$1.ZodOptional<z$1.ZodObject<{
15099
+ cause: z$1.ZodOptional<z$1.ZodLiteral<"host-connection-lost">>;
15100
+ reason: z$1.ZodEnum<{
15101
+ "host-daemon-restarted": "host-daemon-restarted";
15102
+ "host-removed": "host-removed";
15103
+ "manual-stop": "manual-stop";
15104
+ "provider-turn-idle": "provider-turn-idle";
15105
+ }>;
15106
+ }, z$1.core.$strip>>;
15107
+ status: z$1.ZodEnum<{
15108
+ completed: "completed";
15109
+ failed: "failed";
15110
+ interrupted: "interrupted";
15111
+ }>;
15112
+ threadId: z$1.ZodString;
15113
+ }, z$1.core.$strip>>>;
15114
+ }, z$1.core.$strip>, z$1.ZodObject<{
15115
+ kind: z$1.ZodLiteral<"tool-call">;
15116
+ suppress: z$1.ZodBoolean;
15117
+ toolName: z$1.ZodString;
15118
+ }, z$1.core.$strip>], "kind">>;
15119
+ text: z$1.ZodString;
15120
+ threadId: z$1.ZodString;
15121
+ turnId: z$1.ZodNullable<z$1.ZodString>;
15122
+ turnRequest: z$1.ZodObject<{
15123
+ isGrouped: z$1.ZodBoolean;
15124
+ kind: z$1.ZodEnum<{
15125
+ message: "message";
15126
+ steer: "steer";
15127
+ }>;
15128
+ status: z$1.ZodEnum<{
15129
+ accepted: "accepted";
15130
+ pending: "pending";
15131
+ rejected: "rejected";
15132
+ }>;
15133
+ }, z$1.core.$strip>;
15134
+ }, z$1.core.$strip>, z$1.ZodObject<{
15135
+ attachments: z$1.ZodNullable<z$1.ZodObject<{
15136
+ imageUrls: z$1.ZodArray<z$1.ZodString>;
15137
+ localFilePaths: z$1.ZodArray<z$1.ZodString>;
15138
+ localFiles: z$1.ZodNumber;
15139
+ localImagePaths: z$1.ZodArray<z$1.ZodString>;
15140
+ localImages: z$1.ZodNumber;
15141
+ webImages: z$1.ZodNumber;
15142
+ }, z$1.core.$strip>>;
15143
+ createdAt: z$1.ZodNumber;
15144
+ id: z$1.ZodString;
15145
+ kind: z$1.ZodLiteral<"conversation">;
15146
+ messageSeq: z$1.ZodNumber;
15147
+ role: z$1.ZodLiteral<"assistant">;
15148
+ sourceSeqEnd: z$1.ZodNumber;
15149
+ sourceSeqStart: z$1.ZodNumber;
15150
+ startedAt: z$1.ZodNumber;
15151
+ text: z$1.ZodString;
15152
+ threadId: z$1.ZodString;
15153
+ turnId: z$1.ZodNullable<z$1.ZodString>;
15154
+ turnRequest: z$1.ZodNull;
15155
+ }, z$1.core.$strip>], "role">;
15156
+ }, z$1.core.$strip>;
15157
+ type ThreadMessageResponse = z$1.infer<typeof threadMessageResponseSchema>;
14544
15158
  declare const threadStorageFilesQuerySchema: z$1.ZodObject<{
14545
15159
  limit: z$1.ZodOptional<z$1.ZodString>;
14546
15160
  query: z$1.ZodOptional<z$1.ZodString>;
@@ -16659,6 +17273,7 @@ type ThreadCountResult = ThreadCountResponse;
16659
17273
  type ThreadRunningResult = ThreadRunningResponse;
16660
17274
  type ThreadListResult = ThreadListResponse;
16661
17275
  type ThreadSearchResult = ThreadSearchResponse;
17276
+ type ThreadMessageResult = ThreadMessageResponse;
16662
17277
  type ThreadResolveMentionsResult = ResolveThreadMentionsResponse;
16663
17278
  interface ThreadOutputResponse {
16664
17279
  output: string | null;
@@ -16870,6 +17485,13 @@ interface ThreadOutputArgs {
16870
17485
  signal?: AbortSignal;
16871
17486
  threadId: string;
16872
17487
  }
17488
+ interface ThreadMessageArgs {
17489
+ signal?: AbortSignal;
17490
+ threadId: string;
17491
+ seq: number;
17492
+ before?: number;
17493
+ after?: number;
17494
+ }
16873
17495
  interface ThreadInteractionListArgs {
16874
17496
  signal?: AbortSignal;
16875
17497
  threadId: string;
@@ -16981,6 +17603,7 @@ interface ThreadsArea {
16981
17603
  markUnread(args: ThreadActionArgs): Promise<ThreadReadStateResult>;
16982
17604
  open(args: ThreadOpenArgs): Promise<ThreadOpenResult>;
16983
17605
  paneAction(args: ThreadPaneActionArgs): Promise<ThreadPaneActionResult>;
17606
+ message(args: ThreadMessageArgs): Promise<ThreadMessageResult>;
16984
17607
  output(args: ThreadOutputArgs): Promise<ThreadOutputResponse>;
16985
17608
  pin(args: ThreadActionArgs): Promise<ThreadMutationResult>;
16986
17609
  promptHistory(args: ThreadPromptHistoryArgs): Promise<ThreadPromptHistoryResult>;
@@ -19382,8 +20005,26 @@ interface ComposerDraft {
19382
20005
  text: string;
19383
20006
  mentions: readonly ComposerMention[];
19384
20007
  }
19385
- /** An already uploaded attachment; paths retain their original project or thread ownership. */
19386
- type ComposerAttachment = UploadedPromptAttachment;
20008
+ /**
20009
+ * A composer attachment: an uploaded file, optionally owned by another
20010
+ * project, or an absolute path on one machine. Never both.
20011
+ */
20012
+ type ComposerAttachment = {
20013
+ type: "localFile" | "localImage";
20014
+ path: string;
20015
+ name: string;
20016
+ mimeType?: string;
20017
+ /** 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. */
20018
+ sizeBytes?: number;
20019
+ } & ({
20020
+ /** Project that currently owns this uploaded path; omit for destination-relative attachments. */
20021
+ sourceProjectId?: string;
20022
+ hostId?: never;
20023
+ } | {
20024
+ /** Machine whose absolute `path` this is; core rejects sending it to a thread on another machine. */
20025
+ hostId: string;
20026
+ sourceProjectId?: never;
20027
+ });
19387
20028
  /** The complete current draft. Snapshots and their entries are immutable. */
19388
20029
  interface ComposerDraftSnapshot extends ComposerDraft {
19389
20030
  readonly attachments: readonly ComposerAttachment[];
@@ -19544,8 +20185,10 @@ interface PluginComposerApi {
19544
20185
  * an empty list clears them. Does not infer or rebase mention ranges.
19545
20186
  * Ranges are non-overlapping UTF-16 offsets into the supplied text.
19546
20187
  * Invalid results, throwing updaters, and unavailable editors leave the
19547
- * draft unchanged. Does not focus, submit, upload, or copy files between
19548
- * projects. Use `insert` for insertion at the editor's cursor.
20188
+ * draft unchanged. Source project references on uploaded attachments are
20189
+ * preserved; core copies them into the destination project when the draft
20190
+ * is submitted. Does not focus or submit. Use `insert` for insertion at the
20191
+ * editor's cursor.
19549
20192
  */
19550
20193
  replace(next: ComposerDraftReplacement | ((current: ComposerDraftSnapshot) => ComposerDraftReplacement)): void;
19551
20194
  /**