@get-bb/plugin-sdk 0.4.97 → 0.4.99

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.
@@ -370,6 +370,7 @@ declare const changedMessageSchema: z$1.ZodDiscriminatedUnion<[z$1.ZodObject<{
370
370
  "environment-availability-changed": "environment-availability-changed";
371
371
  "plugins-changed": "plugins-changed";
372
372
  "provider-registrations-changed": "provider-registrations-changed";
373
+ "server-move-changed": "server-move-changed";
373
374
  "ui-preferences-changed": "ui-preferences-changed";
374
375
  }>>>;
375
376
  entity: z$1.ZodLiteral<"system">;
@@ -462,6 +463,7 @@ declare const experimentsSchema: z$1.ZodRecord<z$1.ZodEnum<{
462
463
  changelogPreview: "changelogPreview";
463
464
  mobileApp: "mobileApp";
464
465
  multiMachinePicker: "multiMachinePicker";
466
+ serverMove: "serverMove";
465
467
  sidebarProgressiveDisclosure: "sidebarProgressiveDisclosure";
466
468
  timelineWindowing: "timelineWindowing";
467
469
  }>, z$1.ZodBoolean>;
@@ -2719,6 +2721,7 @@ declare const threadEventSchema: z$1.ZodPipe<z$1.ZodUnknown, z$1.ZodUnion<readon
2719
2721
  core: z$1.ZodEnum<{
2720
2722
  "machine-environment": "machine-environment";
2721
2723
  "machine-git": "machine-git";
2724
+ "project-environment": "project-environment";
2722
2725
  }>;
2723
2726
  }, z$1.core.$strict>]>;
2724
2727
  value: z$1.ZodUnion<readonly [z$1.ZodString, z$1.ZodObject<{
@@ -2878,6 +2881,7 @@ declare const threadEventSchema: z$1.ZodPipe<z$1.ZodUnknown, z$1.ZodUnion<readon
2878
2881
  }>;
2879
2882
  trigger: z$1.ZodEnum<{
2880
2883
  "/": "/";
2884
+ $: "$";
2881
2885
  }>;
2882
2886
  }, z$1.core.$strip>, z$1.ZodObject<{
2883
2887
  icon: z$1.ZodOptional<z$1.ZodNullable<z$1.ZodString>>;
@@ -2959,6 +2963,7 @@ declare const threadEventSchema: z$1.ZodPipe<z$1.ZodUnknown, z$1.ZodUnion<readon
2959
2963
  }>;
2960
2964
  trigger: z$1.ZodEnum<{
2961
2965
  "/": "/";
2966
+ $: "$";
2962
2967
  }>;
2963
2968
  }, z$1.core.$strip>, z$1.ZodObject<{
2964
2969
  icon: z$1.ZodOptional<z$1.ZodNullable<z$1.ZodString>>;
@@ -3844,6 +3849,7 @@ declare const promptInputSchema: z$1.ZodDiscriminatedUnion<[z$1.ZodObject<{
3844
3849
  }>;
3845
3850
  trigger: z$1.ZodEnum<{
3846
3851
  "/": "/";
3852
+ $: "$";
3847
3853
  }>;
3848
3854
  }, z$1.core.$strip>, z$1.ZodObject<{
3849
3855
  icon: z$1.ZodOptional<z$1.ZodNullable<z$1.ZodString>>;
@@ -3983,6 +3989,7 @@ declare const providerInfoSchema: z$1.ZodObject<{
3983
3989
  kind: z$1.ZodLiteral<"skills">;
3984
3990
  trigger: z$1.ZodEnum<{
3985
3991
  "/": "/";
3992
+ $: "$";
3986
3993
  }>;
3987
3994
  }, z$1.core.$strip>, z$1.ZodObject<{
3988
3995
  command: z$1.ZodObject<{
@@ -3990,6 +3997,7 @@ declare const providerInfoSchema: z$1.ZodObject<{
3990
3997
  trailingText: z$1.ZodString;
3991
3998
  trigger: z$1.ZodEnum<{
3992
3999
  "/": "/";
4000
+ $: "$";
3993
4001
  }>;
3994
4002
  }, z$1.core.$strip>;
3995
4003
  kind: z$1.ZodLiteral<"plan">;
@@ -3999,6 +4007,7 @@ declare const providerInfoSchema: z$1.ZodObject<{
3999
4007
  trailingText: z$1.ZodString;
4000
4008
  trigger: z$1.ZodEnum<{
4001
4009
  "/": "/";
4010
+ $: "$";
4002
4011
  }>;
4003
4012
  }, z$1.core.$strip>;
4004
4013
  kind: z$1.ZodLiteral<"goal">;
@@ -4145,6 +4154,7 @@ declare const threadQueuedMessageSchema: z$1.ZodObject<{
4145
4154
  }>;
4146
4155
  trigger: z$1.ZodEnum<{
4147
4156
  "/": "/";
4157
+ $: "$";
4148
4158
  }>;
4149
4159
  }, z$1.core.$strip>, z$1.ZodObject<{
4150
4160
  icon: z$1.ZodOptional<z$1.ZodNullable<z$1.ZodString>>;
@@ -4553,6 +4563,7 @@ declare const promptHistoryResponseSchema: z$1.ZodArray<z$1.ZodObject<{
4553
4563
  }>;
4554
4564
  trigger: z$1.ZodEnum<{
4555
4565
  "/": "/";
4566
+ $: "$";
4556
4567
  }>;
4557
4568
  }, z$1.core.$strip>, z$1.ZodObject<{
4558
4569
  icon: z$1.ZodOptional<z$1.ZodNullable<z$1.ZodString>>;
@@ -4750,6 +4761,7 @@ declare const projectWithThreadsResponseSchema: z$1.ZodObject<{
4750
4761
  id: z$1.ZodString;
4751
4762
  lastReadAt: z$1.ZodNullable<z$1.ZodNumber>;
4752
4763
  latestAttentionAt: z$1.ZodNumber;
4764
+ lifecycleOwnerThreadId: z$1.ZodNullable<z$1.ZodString>;
4753
4765
  originKind: z$1.ZodNullable<z$1.ZodEnum<{
4754
4766
  fork: "fork";
4755
4767
  }>>;
@@ -4869,6 +4881,7 @@ declare const sidebarBootstrapResponseSchema: z$1.ZodObject<{
4869
4881
  id: z$1.ZodString;
4870
4882
  lastReadAt: z$1.ZodNullable<z$1.ZodNumber>;
4871
4883
  latestAttentionAt: z$1.ZodNumber;
4884
+ lifecycleOwnerThreadId: z$1.ZodNullable<z$1.ZodString>;
4872
4885
  originKind: z$1.ZodNullable<z$1.ZodEnum<{
4873
4886
  fork: "fork";
4874
4887
  }>>;
@@ -4986,6 +4999,7 @@ declare const sidebarBootstrapResponseSchema: z$1.ZodObject<{
4986
4999
  id: z$1.ZodString;
4987
5000
  lastReadAt: z$1.ZodNullable<z$1.ZodNumber>;
4988
5001
  latestAttentionAt: z$1.ZodNumber;
5002
+ lifecycleOwnerThreadId: z$1.ZodNullable<z$1.ZodString>;
4989
5003
  originKind: z$1.ZodNullable<z$1.ZodEnum<{
4990
5004
  fork: "fork";
4991
5005
  }>>;
@@ -5895,6 +5909,7 @@ declare const hostDaemonCommandRegistry: {
5895
5909
  core: z$1.ZodEnum<{
5896
5910
  "machine-environment": "machine-environment";
5897
5911
  "machine-git": "machine-git";
5912
+ "project-environment": "project-environment";
5898
5913
  }>;
5899
5914
  }, z$1.core.$strict>]>;
5900
5915
  value: z$1.ZodUnion<readonly [z$1.ZodString, z$1.ZodObject<{
@@ -6055,6 +6070,7 @@ declare const hostDaemonCommandRegistry: {
6055
6070
  core: z$1.ZodEnum<{
6056
6071
  "machine-environment": "machine-environment";
6057
6072
  "machine-git": "machine-git";
6073
+ "project-environment": "project-environment";
6058
6074
  }>;
6059
6075
  }, z$1.core.$strict>]>;
6060
6076
  value: z$1.ZodUnion<readonly [z$1.ZodString, z$1.ZodObject<{
@@ -6169,6 +6185,7 @@ declare const hostDaemonCommandRegistry: {
6169
6185
  }>;
6170
6186
  trigger: z$1.ZodEnum<{
6171
6187
  "/": "/";
6188
+ $: "$";
6172
6189
  }>;
6173
6190
  }, z$1.core.$strip>, z$1.ZodObject<{
6174
6191
  icon: z$1.ZodOptional<z$1.ZodNullable<z$1.ZodString>>;
@@ -6250,6 +6267,7 @@ declare const hostDaemonCommandRegistry: {
6250
6267
  }>;
6251
6268
  trigger: z$1.ZodEnum<{
6252
6269
  "/": "/";
6270
+ $: "$";
6253
6271
  }>;
6254
6272
  }, z$1.core.$strip>, z$1.ZodObject<{
6255
6273
  icon: z$1.ZodOptional<z$1.ZodNullable<z$1.ZodString>>;
@@ -6416,6 +6434,7 @@ declare const hostDaemonCommandRegistry: {
6416
6434
  }>;
6417
6435
  trigger: z$1.ZodEnum<{
6418
6436
  "/": "/";
6437
+ $: "$";
6419
6438
  }>;
6420
6439
  }, z$1.core.$strip>, z$1.ZodObject<{
6421
6440
  icon: z$1.ZodOptional<z$1.ZodNullable<z$1.ZodString>>;
@@ -6497,6 +6516,7 @@ declare const hostDaemonCommandRegistry: {
6497
6516
  }>;
6498
6517
  trigger: z$1.ZodEnum<{
6499
6518
  "/": "/";
6519
+ $: "$";
6500
6520
  }>;
6501
6521
  }, z$1.core.$strip>, z$1.ZodObject<{
6502
6522
  icon: z$1.ZodOptional<z$1.ZodNullable<z$1.ZodString>>;
@@ -6611,6 +6631,7 @@ declare const hostDaemonCommandRegistry: {
6611
6631
  core: z$1.ZodEnum<{
6612
6632
  "machine-environment": "machine-environment";
6613
6633
  "machine-git": "machine-git";
6634
+ "project-environment": "project-environment";
6614
6635
  }>;
6615
6636
  }, z$1.core.$strict>]>;
6616
6637
  value: z$1.ZodUnion<readonly [z$1.ZodString, z$1.ZodObject<{
@@ -6714,6 +6735,7 @@ declare const hostDaemonCommandRegistry: {
6714
6735
  threadId: z$1.ZodString;
6715
6736
  type: z$1.ZodLiteral<"thread.stop">;
6716
6737
  }, z$1.core.$strict>, z$1.ZodObject<{
6738
+ activeTurnRetained: z$1.ZodOptional<z$1.ZodBoolean>;
6717
6739
  providerCheckpointId: z$1.ZodNullable<z$1.ZodString>;
6718
6740
  }, z$1.core.$strict>, "settled", false>;
6719
6741
  "thread.storage.delete": HostDaemonCommandDescriptor<"thread.storage.delete", z$1.ZodObject<{
@@ -6721,6 +6743,7 @@ declare const hostDaemonCommandRegistry: {
6721
6743
  threadId: z$1.ZodString;
6722
6744
  type: z$1.ZodLiteral<"thread.storage.delete">;
6723
6745
  }, z$1.core.$strict>, z$1.ZodObject<{
6746
+ activeTurnRetained: z$1.ZodOptional<z$1.ZodBoolean>;
6724
6747
  providerCheckpointId: z$1.ZodNullable<z$1.ZodString>;
6725
6748
  }, z$1.core.$strict>, "settled", false>;
6726
6749
  "thread.goal.clear": HostDaemonCommandDescriptor<"thread.goal.clear", z$1.ZodObject<{
@@ -6827,6 +6850,7 @@ declare const hostDaemonCommandRegistry: {
6827
6850
  core: z$1.ZodEnum<{
6828
6851
  "machine-environment": "machine-environment";
6829
6852
  "machine-git": "machine-git";
6853
+ "project-environment": "project-environment";
6830
6854
  }>;
6831
6855
  }, z$1.core.$strict>]>;
6832
6856
  value: z$1.ZodUnion<readonly [z$1.ZodString, z$1.ZodObject<{
@@ -7047,6 +7071,7 @@ declare const hostDaemonCommandRegistry: {
7047
7071
  core: z$1.ZodEnum<{
7048
7072
  "machine-environment": "machine-environment";
7049
7073
  "machine-git": "machine-git";
7074
+ "project-environment": "project-environment";
7050
7075
  }>;
7051
7076
  }, z$1.core.$strict>]>;
7052
7077
  value: z$1.ZodUnion<readonly [z$1.ZodString, z$1.ZodObject<{
@@ -7078,6 +7103,7 @@ declare const hostDaemonCommandRegistry: {
7078
7103
  core: z$1.ZodEnum<{
7079
7104
  "machine-environment": "machine-environment";
7080
7105
  "machine-git": "machine-git";
7106
+ "project-environment": "project-environment";
7081
7107
  }>;
7082
7108
  }, z$1.core.$strict>]>;
7083
7109
  value: z$1.ZodUnion<readonly [z$1.ZodString, z$1.ZodObject<{
@@ -7248,6 +7274,7 @@ declare const hostDaemonCommandRegistry: {
7248
7274
  core: z$1.ZodEnum<{
7249
7275
  "machine-environment": "machine-environment";
7250
7276
  "machine-git": "machine-git";
7277
+ "project-environment": "project-environment";
7251
7278
  }>;
7252
7279
  }, z$1.core.$strict>]>;
7253
7280
  value: z$1.ZodUnion<readonly [z$1.ZodString, z$1.ZodObject<{
@@ -7288,6 +7315,7 @@ declare const hostDaemonCommandRegistry: {
7288
7315
  core: z$1.ZodEnum<{
7289
7316
  "machine-environment": "machine-environment";
7290
7317
  "machine-git": "machine-git";
7318
+ "project-environment": "project-environment";
7291
7319
  }>;
7292
7320
  }, z$1.core.$strict>]>;
7293
7321
  value: z$1.ZodUnion<readonly [z$1.ZodString, z$1.ZodObject<{
@@ -8377,6 +8405,106 @@ declare const hostDaemonCommandRegistry: {
8377
8405
  message: z$1.ZodString;
8378
8406
  outcome: z$1.ZodLiteral<"unavailable">;
8379
8407
  }, z$1.core.$strict>], "outcome">, "onlineRpc", true>;
8408
+ "server_move.inspect": HostDaemonCommandDescriptor<"server_move.inspect", z$1.ZodObject<{
8409
+ paths: z$1.ZodArray<z$1.ZodString>;
8410
+ port: z$1.ZodNumber;
8411
+ type: z$1.ZodLiteral<"server_move.inspect">;
8412
+ }, z$1.core.$strict>, z$1.ZodObject<{
8413
+ bbAppVersion: z$1.ZodString;
8414
+ codexCredentialsPresent: z$1.ZodBoolean;
8415
+ dataDir: z$1.ZodString;
8416
+ dataDirHasServerData: z$1.ZodBoolean;
8417
+ diskFreeBytes: z$1.ZodNullable<z$1.ZodNumber>;
8418
+ existingServerData: z$1.ZodNullable<z$1.ZodObject<{
8419
+ path: z$1.ZodString;
8420
+ sizeBytes: z$1.ZodNumber;
8421
+ }, z$1.core.$strict>>;
8422
+ ghAuthenticated: z$1.ZodNullable<z$1.ZodBoolean>;
8423
+ pathsExist: z$1.ZodRecord<z$1.ZodString, z$1.ZodBoolean>;
8424
+ platform: z$1.ZodEnum<{
8425
+ darwin: "darwin";
8426
+ linux: "linux";
8427
+ unknown: "unknown";
8428
+ wsl: "wsl";
8429
+ }>;
8430
+ portAvailable: z$1.ZodBoolean;
8431
+ serverEntryAvailable: z$1.ZodBoolean;
8432
+ serviceManager: z$1.ZodEnum<{
8433
+ "systemd-system": "systemd-system";
8434
+ "systemd-user": "systemd-user";
8435
+ launchd: "launchd";
8436
+ none: "none";
8437
+ }>;
8438
+ timeZone: z$1.ZodNullable<z$1.ZodString>;
8439
+ }, z$1.core.$strict>, "onlineRpc", true>;
8440
+ "server_move.probe": HostDaemonCommandDescriptor<"server_move.probe", z$1.ZodObject<{
8441
+ moveId: z$1.ZodString;
8442
+ type: z$1.ZodLiteral<"server_move.probe">;
8443
+ url: z$1.ZodString;
8444
+ }, z$1.core.$strict>, z$1.ZodObject<{
8445
+ message: z$1.ZodNullable<z$1.ZodString>;
8446
+ reachable: z$1.ZodBoolean;
8447
+ state: z$1.ZodNullable<z$1.ZodEnum<{
8448
+ activating: "activating";
8449
+ pending: "pending";
8450
+ ready: "ready";
8451
+ }>>;
8452
+ }, z$1.core.$strict>, "onlineRpc", true>;
8453
+ "server_move.prepare": HostDaemonCommandDescriptor<"server_move.prepare", z$1.ZodObject<{
8454
+ activationToken: z$1.ZodString;
8455
+ archive: z$1.ZodObject<{
8456
+ downloadPath: z$1.ZodString;
8457
+ sha256: z$1.ZodString;
8458
+ sizeBytes: z$1.ZodNumber;
8459
+ }, z$1.core.$strict>;
8460
+ archiveExistingServerData: z$1.ZodBoolean;
8461
+ bbApp: z$1.ZodNullable<z$1.ZodObject<{
8462
+ downloadPath: z$1.ZodString;
8463
+ sha256: z$1.ZodString;
8464
+ sizeBytes: z$1.ZodNumber;
8465
+ version: z$1.ZodString;
8466
+ }, z$1.core.$strict>>;
8467
+ bindHost: z$1.ZodNullable<z$1.ZodEnum<{
8468
+ "0.0.0.0": "0.0.0.0";
8469
+ "127.0.0.1": "127.0.0.1";
8470
+ }>>;
8471
+ moveId: z$1.ZodString;
8472
+ serverPort: z$1.ZodNumber;
8473
+ serverUrl: z$1.ZodString;
8474
+ sourceDataDir: z$1.ZodString;
8475
+ sourceServerHostId: z$1.ZodNullable<z$1.ZodString>;
8476
+ type: z$1.ZodLiteral<"server_move.prepare">;
8477
+ }, z$1.core.$strict>, z$1.ZodObject<{
8478
+ localServerUrl: z$1.ZodString;
8479
+ pid: z$1.ZodNumber;
8480
+ }, z$1.core.$strict>, "onlineRpc", false>;
8481
+ "server_move.activate": HostDaemonCommandDescriptor<"server_move.activate", z$1.ZodObject<{
8482
+ activationToken: z$1.ZodString;
8483
+ lastMove: z$1.ZodObject<{
8484
+ completedAt: z$1.ZodNumber;
8485
+ fromHostId: z$1.ZodString;
8486
+ fromHostName: z$1.ZodString;
8487
+ moveId: z$1.ZodString;
8488
+ oldCopyDeletedAt: z$1.ZodNullable<z$1.ZodNumber>;
8489
+ toHostId: z$1.ZodString;
8490
+ toHostName: z$1.ZodString;
8491
+ }, z$1.core.$strict>;
8492
+ moveId: z$1.ZodString;
8493
+ type: z$1.ZodLiteral<"server_move.activate">;
8494
+ }, z$1.core.$strict>, z$1.ZodObject<{
8495
+ ok: z$1.ZodLiteral<true>;
8496
+ }, z$1.core.$strict>, "onlineRpc", false>;
8497
+ "server_move.abort": HostDaemonCommandDescriptor<"server_move.abort", z$1.ZodObject<{
8498
+ moveId: z$1.ZodString;
8499
+ type: z$1.ZodLiteral<"server_move.abort">;
8500
+ }, z$1.core.$strict>, z$1.ZodObject<{
8501
+ ok: z$1.ZodLiteral<true>;
8502
+ }, z$1.core.$strict>, "onlineRpc", false>;
8503
+ "server_move.delete_old_copy": HostDaemonCommandDescriptor<"server_move.delete_old_copy", z$1.ZodObject<{
8504
+ type: z$1.ZodLiteral<"server_move.delete_old_copy">;
8505
+ }, z$1.core.$strict>, z$1.ZodObject<{
8506
+ deleted: z$1.ZodBoolean;
8507
+ }, z$1.core.$strict>, "onlineRpc", false>;
8380
8508
  };
8381
8509
  type HostDaemonCommandRegistry = typeof hostDaemonCommandRegistry;
8382
8510
  type AnyHostDaemonCommandDescriptor = HostDaemonCommandRegistry[keyof HostDaemonCommandRegistry];
@@ -9500,6 +9628,7 @@ declare const systemExecutionOptionsResponseSchema: z$1.ZodObject<{
9500
9628
  kind: z$1.ZodLiteral<"skills">;
9501
9629
  trigger: z$1.ZodEnum<{
9502
9630
  "/": "/";
9631
+ $: "$";
9503
9632
  }>;
9504
9633
  }, z$1.core.$strip>, z$1.ZodObject<{
9505
9634
  command: z$1.ZodObject<{
@@ -9507,6 +9636,7 @@ declare const systemExecutionOptionsResponseSchema: z$1.ZodObject<{
9507
9636
  trailingText: z$1.ZodString;
9508
9637
  trigger: z$1.ZodEnum<{
9509
9638
  "/": "/";
9639
+ $: "$";
9510
9640
  }>;
9511
9641
  }, z$1.core.$strip>;
9512
9642
  kind: z$1.ZodLiteral<"plan">;
@@ -9516,6 +9646,7 @@ declare const systemExecutionOptionsResponseSchema: z$1.ZodObject<{
9516
9646
  trailingText: z$1.ZodString;
9517
9647
  trigger: z$1.ZodEnum<{
9518
9648
  "/": "/";
9649
+ $: "$";
9519
9650
  }>;
9520
9651
  }, z$1.core.$strip>;
9521
9652
  kind: z$1.ZodLiteral<"goal">;
@@ -9783,6 +9914,7 @@ declare const systemConfigResponseSchema: z$1.ZodObject<{
9783
9914
  changelogPreview: "changelogPreview";
9784
9915
  mobileApp: "mobileApp";
9785
9916
  multiMachinePicker: "multiMachinePicker";
9917
+ serverMove: "serverMove";
9786
9918
  sidebarProgressiveDisclosure: "sidebarProgressiveDisclosure";
9787
9919
  timelineWindowing: "timelineWindowing";
9788
9920
  }>, z$1.ZodBoolean>;
@@ -10365,6 +10497,7 @@ declare const timelineConversationRowSchema: z$1.ZodDiscriminatedUnion<[z$1.ZodO
10365
10497
  }>;
10366
10498
  trigger: z$1.ZodEnum<{
10367
10499
  "/": "/";
10500
+ $: "$";
10368
10501
  }>;
10369
10502
  }, z$1.core.$strip>, z$1.ZodObject<{
10370
10503
  icon: z$1.ZodOptional<z$1.ZodNullable<z$1.ZodString>>;
@@ -11495,6 +11628,7 @@ declare const createThreadRequestSchema: z$1.ZodObject<{
11495
11628
  }>;
11496
11629
  trigger: z$1.ZodEnum<{
11497
11630
  "/": "/";
11631
+ $: "$";
11498
11632
  }>;
11499
11633
  }, z$1.core.$strip>, z$1.ZodObject<{
11500
11634
  icon: z$1.ZodOptional<z$1.ZodNullable<z$1.ZodString>>;
@@ -11532,6 +11666,7 @@ declare const createThreadRequestSchema: z$1.ZodObject<{
11532
11666
  "agent-only": "agent-only";
11533
11667
  }>>;
11534
11668
  }, z$1.core.$strip>], "type">>;
11669
+ lifecycleOwnerThreadId: z$1.ZodOptional<z$1.ZodString>;
11535
11670
  model: z$1.ZodOptional<z$1.ZodString>;
11536
11671
  origin: z$1.ZodEnum<{
11537
11672
  app: "app";
@@ -11633,6 +11768,7 @@ declare const forkThreadRequestSchema: z$1.ZodObject<{
11633
11768
  }>;
11634
11769
  trigger: z$1.ZodEnum<{
11635
11770
  "/": "/";
11771
+ $: "$";
11636
11772
  }>;
11637
11773
  }, z$1.core.$strip>, z$1.ZodObject<{
11638
11774
  icon: z$1.ZodOptional<z$1.ZodNullable<z$1.ZodString>>;
@@ -11758,6 +11894,7 @@ declare const forkThreadRequestSchema: z$1.ZodObject<{
11758
11894
  }>;
11759
11895
  trigger: z$1.ZodEnum<{
11760
11896
  "/": "/";
11897
+ $: "$";
11761
11898
  }>;
11762
11899
  }, z$1.core.$strip>, z$1.ZodObject<{
11763
11900
  icon: z$1.ZodOptional<z$1.ZodNullable<z$1.ZodString>>;
@@ -11795,6 +11932,7 @@ declare const forkThreadRequestSchema: z$1.ZodObject<{
11795
11932
  "agent-only": "agent-only";
11796
11933
  }>>;
11797
11934
  }, z$1.core.$strip>], "type">>>;
11935
+ lifecycleOwnerThreadId: z$1.ZodOptional<z$1.ZodString>;
11798
11936
  origin: z$1.ZodDefault<z$1.ZodEnum<{
11799
11937
  app: "app";
11800
11938
  cli: "cli";
@@ -11880,6 +12018,7 @@ declare const sendMessageRequestSchema: z$1.ZodObject<{
11880
12018
  }>;
11881
12019
  trigger: z$1.ZodEnum<{
11882
12020
  "/": "/";
12021
+ $: "$";
11883
12022
  }>;
11884
12023
  }, z$1.core.$strip>, z$1.ZodObject<{
11885
12024
  icon: z$1.ZodOptional<z$1.ZodNullable<z$1.ZodString>>;
@@ -12008,6 +12147,7 @@ declare const sendMessageResponseSchema: z$1.ZodDiscriminatedUnion<[z$1.ZodObjec
12008
12147
  }>;
12009
12148
  trigger: z$1.ZodEnum<{
12010
12149
  "/": "/";
12150
+ $: "$";
12011
12151
  }>;
12012
12152
  }, z$1.core.$strip>, z$1.ZodObject<{
12013
12153
  icon: z$1.ZodOptional<z$1.ZodNullable<z$1.ZodString>>;
@@ -12174,6 +12314,7 @@ declare const editMessageRequestSchema: z$1.ZodObject<{
12174
12314
  }>;
12175
12315
  trigger: z$1.ZodEnum<{
12176
12316
  "/": "/";
12317
+ $: "$";
12177
12318
  }>;
12178
12319
  }, z$1.core.$strip>, z$1.ZodObject<{
12179
12320
  icon: z$1.ZodOptional<z$1.ZodNullable<z$1.ZodString>>;
@@ -12345,6 +12486,7 @@ declare const createQueuedMessageRequestSchema: z$1.ZodObject<{
12345
12486
  }>;
12346
12487
  trigger: z$1.ZodEnum<{
12347
12488
  "/": "/";
12489
+ $: "$";
12348
12490
  }>;
12349
12491
  }, z$1.core.$strip>, z$1.ZodObject<{
12350
12492
  icon: z$1.ZodOptional<z$1.ZodNullable<z$1.ZodString>>;
@@ -12451,6 +12593,7 @@ declare const updateQueuedMessageRequestSchema: z$1.ZodObject<{
12451
12593
  }>;
12452
12594
  trigger: z$1.ZodEnum<{
12453
12595
  "/": "/";
12596
+ $: "$";
12454
12597
  }>;
12455
12598
  }, z$1.core.$strip>, z$1.ZodObject<{
12456
12599
  icon: z$1.ZodOptional<z$1.ZodNullable<z$1.ZodString>>;
@@ -12559,6 +12702,7 @@ declare const sendQueuedMessageResponseSchema: z$1.ZodDiscriminatedUnion<[z$1.Zo
12559
12702
  }>;
12560
12703
  trigger: z$1.ZodEnum<{
12561
12704
  "/": "/";
12705
+ $: "$";
12562
12706
  }>;
12563
12707
  }, z$1.core.$strip>, z$1.ZodObject<{
12564
12708
  icon: z$1.ZodOptional<z$1.ZodNullable<z$1.ZodString>>;
@@ -12688,6 +12832,7 @@ declare const threadListResponseSchema: z$1.ZodArray<z$1.ZodObject<{
12688
12832
  id: z$1.ZodString;
12689
12833
  lastReadAt: z$1.ZodNullable<z$1.ZodNumber>;
12690
12834
  latestAttentionAt: z$1.ZodNumber;
12835
+ lifecycleOwnerThreadId: z$1.ZodNullable<z$1.ZodString>;
12691
12836
  originKind: z$1.ZodNullable<z$1.ZodEnum<{
12692
12837
  fork: "fork";
12693
12838
  }>>;
@@ -12790,6 +12935,7 @@ declare const threadSearchResponseSchema: z$1.ZodObject<{
12790
12935
  id: z$1.ZodString;
12791
12936
  lastReadAt: z$1.ZodNullable<z$1.ZodNumber>;
12792
12937
  latestAttentionAt: z$1.ZodNumber;
12938
+ lifecycleOwnerThreadId: z$1.ZodNullable<z$1.ZodString>;
12793
12939
  originKind: z$1.ZodNullable<z$1.ZodEnum<{
12794
12940
  fork: "fork";
12795
12941
  }>>;
@@ -12883,6 +13029,7 @@ declare const threadSearchResponseSchema: z$1.ZodObject<{
12883
13029
  id: z$1.ZodString;
12884
13030
  lastReadAt: z$1.ZodNullable<z$1.ZodNumber>;
12885
13031
  latestAttentionAt: z$1.ZodNumber;
13032
+ lifecycleOwnerThreadId: z$1.ZodNullable<z$1.ZodString>;
12886
13033
  originKind: z$1.ZodNullable<z$1.ZodEnum<{
12887
13034
  fork: "fork";
12888
13035
  }>>;
@@ -12944,6 +13091,7 @@ declare const threadResponseSchema: z$1.ZodObject<{
12944
13091
  id: z$1.ZodString;
12945
13092
  lastReadAt: z$1.ZodNullable<z$1.ZodNumber>;
12946
13093
  latestAttentionAt: z$1.ZodNumber;
13094
+ lifecycleOwnerThreadId: z$1.ZodNullable<z$1.ZodString>;
12947
13095
  originKind: z$1.ZodNullable<z$1.ZodEnum<{
12948
13096
  fork: "fork";
12949
13097
  }>>;
@@ -13104,6 +13252,7 @@ declare const threadWithIncludesResponseSchema: z$1.ZodObject<{
13104
13252
  id: z$1.ZodString;
13105
13253
  lastReadAt: z$1.ZodNullable<z$1.ZodNumber>;
13106
13254
  latestAttentionAt: z$1.ZodNumber;
13255
+ lifecycleOwnerThreadId: z$1.ZodNullable<z$1.ZodString>;
13107
13256
  originKind: z$1.ZodNullable<z$1.ZodEnum<{
13108
13257
  fork: "fork";
13109
13258
  }>>;
@@ -13447,6 +13596,7 @@ declare const threadQueuedMessageListResponseSchema: z$1.ZodArray<z$1.ZodObject<
13447
13596
  }>;
13448
13597
  trigger: z$1.ZodEnum<{
13449
13598
  "/": "/";
13599
+ $: "$";
13450
13600
  }>;
13451
13601
  }, z$1.core.$strip>, z$1.ZodObject<{
13452
13602
  icon: z$1.ZodOptional<z$1.ZodNullable<z$1.ZodString>>;
@@ -14193,6 +14343,169 @@ type ExperimentalDesktopBrowserImportCookiesInput = z$1.input<typeof desktopBrow
14193
14343
  type ExperimentalDesktopBrowserImportSources = DesktopBrowserResult<"desktop.browser.list_import_sources">;
14194
14344
  type ExperimentalDesktopBrowserImportOutcome = DesktopBrowserResult<"desktop.browser.import_cookies">;
14195
14345
 
14346
+ declare const serverMoveStatusSchema: z$1.ZodObject<{
14347
+ cancellable: z$1.ZodBoolean;
14348
+ destinationStatusUrl: z$1.ZodNullable<z$1.ZodString>;
14349
+ error: z$1.ZodNullable<z$1.ZodObject<{
14350
+ message: z$1.ZodString;
14351
+ step: z$1.ZodEnum<{
14352
+ "start-target": "start-target";
14353
+ "stop-work": "stop-work";
14354
+ "update-target": "update-target";
14355
+ "verify-address": "verify-address";
14356
+ export: "export";
14357
+ switch: "switch";
14358
+ transfer: "transfer";
14359
+ }>;
14360
+ }, z$1.core.$strict>>;
14361
+ finishedAt: z$1.ZodNullable<z$1.ZodNumber>;
14362
+ mode: z$1.ZodEnum<{
14363
+ connect: "connect";
14364
+ direct: "direct";
14365
+ }>;
14366
+ moveId: z$1.ZodString;
14367
+ serverUrl: z$1.ZodString;
14368
+ startedAt: z$1.ZodNumber;
14369
+ state: z$1.ZodEnum<{
14370
+ cancelled: "cancelled";
14371
+ completed: "completed";
14372
+ failed: "failed";
14373
+ preparing: "preparing";
14374
+ recovery_required: "recovery_required";
14375
+ switching: "switching";
14376
+ }>;
14377
+ steps: z$1.ZodArray<z$1.ZodObject<{
14378
+ id: z$1.ZodEnum<{
14379
+ "start-target": "start-target";
14380
+ "stop-work": "stop-work";
14381
+ "update-target": "update-target";
14382
+ "verify-address": "verify-address";
14383
+ export: "export";
14384
+ switch: "switch";
14385
+ transfer: "transfer";
14386
+ }>;
14387
+ message: z$1.ZodNullable<z$1.ZodString>;
14388
+ status: z$1.ZodEnum<{
14389
+ done: "done";
14390
+ failed: "failed";
14391
+ pending: "pending";
14392
+ running: "running";
14393
+ skipped: "skipped";
14394
+ }>;
14395
+ }, z$1.core.$strict>>;
14396
+ targetHostId: z$1.ZodString;
14397
+ targetHostName: z$1.ZodString;
14398
+ }, z$1.core.$strict>;
14399
+ type ServerMoveStatus = z$1.infer<typeof serverMoveStatusSchema>;
14400
+ declare const serverMoveStatusResponseSchema: z$1.ZodObject<{
14401
+ lastMove: z$1.ZodNullable<z$1.ZodObject<{
14402
+ completedAt: z$1.ZodNumber;
14403
+ fromHostId: z$1.ZodString;
14404
+ fromHostName: z$1.ZodString;
14405
+ moveId: z$1.ZodString;
14406
+ oldCopyDeletedAt: z$1.ZodNullable<z$1.ZodNumber>;
14407
+ toHostId: z$1.ZodString;
14408
+ toHostName: z$1.ZodString;
14409
+ }, z$1.core.$strict>>;
14410
+ move: z$1.ZodNullable<z$1.ZodObject<{
14411
+ cancellable: z$1.ZodBoolean;
14412
+ destinationStatusUrl: z$1.ZodNullable<z$1.ZodString>;
14413
+ error: z$1.ZodNullable<z$1.ZodObject<{
14414
+ message: z$1.ZodString;
14415
+ step: z$1.ZodEnum<{
14416
+ "start-target": "start-target";
14417
+ "stop-work": "stop-work";
14418
+ "update-target": "update-target";
14419
+ "verify-address": "verify-address";
14420
+ export: "export";
14421
+ switch: "switch";
14422
+ transfer: "transfer";
14423
+ }>;
14424
+ }, z$1.core.$strict>>;
14425
+ finishedAt: z$1.ZodNullable<z$1.ZodNumber>;
14426
+ mode: z$1.ZodEnum<{
14427
+ connect: "connect";
14428
+ direct: "direct";
14429
+ }>;
14430
+ moveId: z$1.ZodString;
14431
+ serverUrl: z$1.ZodString;
14432
+ startedAt: z$1.ZodNumber;
14433
+ state: z$1.ZodEnum<{
14434
+ cancelled: "cancelled";
14435
+ completed: "completed";
14436
+ failed: "failed";
14437
+ preparing: "preparing";
14438
+ recovery_required: "recovery_required";
14439
+ switching: "switching";
14440
+ }>;
14441
+ steps: z$1.ZodArray<z$1.ZodObject<{
14442
+ id: z$1.ZodEnum<{
14443
+ "start-target": "start-target";
14444
+ "stop-work": "stop-work";
14445
+ "update-target": "update-target";
14446
+ "verify-address": "verify-address";
14447
+ export: "export";
14448
+ switch: "switch";
14449
+ transfer: "transfer";
14450
+ }>;
14451
+ message: z$1.ZodNullable<z$1.ZodString>;
14452
+ status: z$1.ZodEnum<{
14453
+ done: "done";
14454
+ failed: "failed";
14455
+ pending: "pending";
14456
+ running: "running";
14457
+ skipped: "skipped";
14458
+ }>;
14459
+ }, z$1.core.$strict>>;
14460
+ targetHostId: z$1.ZodString;
14461
+ targetHostName: z$1.ZodString;
14462
+ }, z$1.core.$strict>>;
14463
+ }, z$1.core.$strict>;
14464
+ type ServerMoveStatusResponse = z$1.infer<typeof serverMoveStatusResponseSchema>;
14465
+ declare const serverMoveCheckRequestSchema: z$1.ZodObject<{
14466
+ serverUrl: z$1.ZodNullable<z$1.ZodString>;
14467
+ targetHostId: z$1.ZodString;
14468
+ }, z$1.core.$strict>;
14469
+ type ServerMoveCheckRequest = z$1.infer<typeof serverMoveCheckRequestSchema>;
14470
+ declare const serverMoveCheckResponseSchema: z$1.ZodObject<{
14471
+ canMove: z$1.ZodBoolean;
14472
+ existingTargetServerData: z$1.ZodNullable<z$1.ZodObject<{
14473
+ path: z$1.ZodString;
14474
+ sizeBytes: z$1.ZodNumber;
14475
+ }, z$1.core.$strict>>;
14476
+ items: z$1.ZodArray<z$1.ZodObject<{
14477
+ detail: z$1.ZodNullable<z$1.ZodString>;
14478
+ id: z$1.ZodString;
14479
+ severity: z$1.ZodEnum<{
14480
+ blocker: "blocker";
14481
+ info: "info";
14482
+ warning: "warning";
14483
+ }>;
14484
+ title: z$1.ZodString;
14485
+ }, z$1.core.$strict>>;
14486
+ mode: z$1.ZodEnum<{
14487
+ connect: "connect";
14488
+ direct: "direct";
14489
+ }>;
14490
+ requiresServerUrl: z$1.ZodBoolean;
14491
+ serverUrl: z$1.ZodNullable<z$1.ZodString>;
14492
+ targetDataDir: z$1.ZodNullable<z$1.ZodString>;
14493
+ targetHostId: z$1.ZodString;
14494
+ targetHostName: z$1.ZodString;
14495
+ }, z$1.core.$strict>;
14496
+ type ServerMoveCheckResponse = z$1.infer<typeof serverMoveCheckResponseSchema>;
14497
+ declare const serverMoveStartRequestSchema: z$1.ZodObject<{
14498
+ archiveExistingTargetServerData: z$1.ZodBoolean;
14499
+ serverUrl: z$1.ZodNullable<z$1.ZodString>;
14500
+ stopRunningWork: z$1.ZodLiteral<true>;
14501
+ targetHostId: z$1.ZodString;
14502
+ }, z$1.core.$strict>;
14503
+ type ServerMoveStartRequest = z$1.infer<typeof serverMoveStartRequestSchema>;
14504
+ declare const deleteOldServerCopyResponseSchema: z$1.ZodObject<{
14505
+ deleted: z$1.ZodBoolean;
14506
+ }, z$1.core.$strict>;
14507
+ type DeleteOldServerCopyResponse = z$1.infer<typeof deleteOldServerCopyResponseSchema>;
14508
+
14196
14509
  declare const threadTabsResponseSchema: z$1.ZodObject<{
14197
14510
  revision: z$1.ZodNumber;
14198
14511
  tabs: z$1.ZodArray<z$1.ZodDiscriminatedUnion<[z$1.ZodObject<{
@@ -14474,6 +14787,12 @@ declare const updateThreadTabsRequestSchema: z$1.ZodObject<{
14474
14787
  }, z$1.core.$strict>;
14475
14788
  type UpdateThreadTabsRequest = z$1.infer<typeof updateThreadTabsRequestSchema>;
14476
14789
 
14790
+ declare const machineEnvironmentSetSchema: z$1.ZodObject<{
14791
+ name: z$1.ZodString;
14792
+ note: z$1.ZodDefault<z$1.ZodNullable<z$1.ZodString>>;
14793
+ value: z$1.ZodString;
14794
+ }, z$1.core.$strict>;
14795
+ type MachineEnvironmentSet = z$1.infer<typeof machineEnvironmentSetSchema>;
14477
14796
  declare const machineEnvironmentListSchema: z$1.ZodObject<{
14478
14797
  builtInGit: z$1.ZodObject<{
14479
14798
  status: z$1.ZodEnum<{
@@ -14492,6 +14811,30 @@ declare const machineEnvironmentListSchema: z$1.ZodObject<{
14492
14811
  }, z$1.core.$strict>>;
14493
14812
  }, z$1.core.$strip>;
14494
14813
  type MachineEnvironmentList = z$1.infer<typeof machineEnvironmentListSchema>;
14814
+ declare const projectMachineEnvironmentListSchema: z$1.ZodObject<{
14815
+ builtInGit: z$1.ZodObject<{
14816
+ status: z$1.ZodEnum<{
14817
+ "logged in": "logged in";
14818
+ "not logged in": "not logged in";
14819
+ disabled: "disabled";
14820
+ overridden: "overridden";
14821
+ }>;
14822
+ statusMessage: z$1.ZodString;
14823
+ }, z$1.core.$strip>;
14824
+ inheritedVariables: z$1.ZodArray<z$1.ZodObject<{
14825
+ name: z$1.ZodString;
14826
+ note: z$1.ZodNullable<z$1.ZodString>;
14827
+ secret: z$1.ZodLiteral<true>;
14828
+ value: z$1.ZodNull;
14829
+ }, z$1.core.$strict>>;
14830
+ variables: z$1.ZodArray<z$1.ZodObject<{
14831
+ name: z$1.ZodString;
14832
+ note: z$1.ZodNullable<z$1.ZodString>;
14833
+ secret: z$1.ZodLiteral<true>;
14834
+ value: z$1.ZodNull;
14835
+ }, z$1.core.$strict>>;
14836
+ }, z$1.core.$strip>;
14837
+ type ProjectMachineEnvironmentList = z$1.infer<typeof projectMachineEnvironmentListSchema>;
14495
14838
 
14496
14839
  /**
14497
14840
  * A value that survives a JSON round trip without coercion or data loss.
@@ -14771,6 +15114,34 @@ interface PluginThreadHeaderActionProps {
14771
15114
  */
14772
15115
  isCompactViewport: boolean;
14773
15116
  }
15117
+ /** JavaScript world a Browser page expression runs in. */
15118
+ type ExperimentalPluginBrowserPageWorld = "isolated" | "main";
15119
+ interface ExperimentalPluginBrowserPageEvaluateOptions {
15120
+ /**
15121
+ * `isolated` (default) runs in a BB-owned world that shares the page DOM but
15122
+ * not page globals, and binds `bb.postMessage(data)`. `main` runs beside the
15123
+ * page's own scripts, where `bb` is `null`.
15124
+ */
15125
+ world?: ExperimentalPluginBrowserPageWorld;
15126
+ }
15127
+ /**
15128
+ * Script access to the top-level document of one Browser tab. Independent of
15129
+ * CDP control leases: it never attaches a debugger or shows a control banner.
15130
+ */
15131
+ interface ExperimentalPluginBrowserPage {
15132
+ /**
15133
+ * Evaluate a JavaScript expression and resolve its JSON-serialized value.
15134
+ * Promises are awaited and `undefined` resolves to `null`. The expression
15135
+ * can reference `bb`. Rejects when the tab is gone or the expression throws.
15136
+ * Anything the expression installs is lost when the document navigates.
15137
+ */
15138
+ evaluate(expression: string, options?: ExperimentalPluginBrowserPageEvaluateOptions): Promise<JsonValue>;
15139
+ /**
15140
+ * Subscribe to values this plugin's isolated-world scripts in this tab send
15141
+ * with `bb.postMessage(data)`. Returns the unsubscribe function.
15142
+ */
15143
+ onMessage(listener: (data: JsonValue) => void): () => void;
15144
+ }
14774
15145
  interface ExperimentalPluginBrowserToolbarActionProps {
14775
15146
  /** Thread that owns the Browser tab. */
14776
15147
  threadId: string;
@@ -14780,6 +15151,8 @@ interface ExperimentalPluginBrowserToolbarActionProps {
14780
15151
  url: string;
14781
15152
  /** True when the Browser chrome needs compact controls. */
14782
15153
  isCompactViewport: boolean;
15154
+ /** Script access to this tab's page; `null` outside the desktop app. */
15155
+ experimental_page: ExperimentalPluginBrowserPage | null;
14783
15156
  }
14784
15157
  /**
14785
15158
  * Where a file being opened by a `fileOpener` lives. `path` semantics follow
@@ -16370,6 +16743,13 @@ interface PluginComposerApi {
16370
16743
  * content should be fetched fresh when the message is sent.
16371
16744
  */
16372
16745
  insertMention(mention: PluginComposerMention): void;
16746
+ /** Remove this plugin's matching mention pills and their text from the current draft. */
16747
+ experimental_removeMention(mention: {
16748
+ provider: string;
16749
+ id: string;
16750
+ }): void;
16751
+ /** Subscribe to successful local submissions in this composer scope, including accepted queued messages. Failed sends and draft clearing do not notify. Dispose on unmount. */
16752
+ experimental_onSubmitted(listener: () => void): () => void;
16373
16753
  /** Focus the composer caret at the end of the draft. */
16374
16754
  focus(): void;
16375
16755
  /**
@@ -17548,6 +17928,7 @@ interface HostsArea {
17548
17928
  experimental_getEnrollmentCommand(args: HostGetArgs): Promise<HostEnrollmentCommandResult>;
17549
17929
  createJoinCode(): Promise<HostCreateJoinCodeResult>;
17550
17930
  delete(args: HostDeleteArgs): Promise<HostDeleteResult>;
17931
+ experimental_deleteOldServerCopy(args: HostActionArgs): Promise<DeleteOldServerCopyResponse>;
17551
17932
  directory(args: HostDirectoryArgs): Promise<HostDirectoryResult>;
17552
17933
  get(args: HostGetArgs): Promise<HostGetResult>;
17553
17934
  cloneDefaultPath(args: HostCloneDefaultPathArgs): Promise<HostCloneDefaultPathResult>;
@@ -17565,6 +17946,28 @@ interface HostsArea {
17565
17946
  update(args: HostUpdateArgs): Promise<HostUpdateResult>;
17566
17947
  }
17567
17948
 
17949
+ interface ServerMoveCheckArgs extends ServerMoveCheckRequest {
17950
+ signal?: AbortSignal;
17951
+ }
17952
+ interface ServerMoveStatusArgs {
17953
+ signal?: AbortSignal;
17954
+ }
17955
+ interface ServerExportArgs {
17956
+ signal?: AbortSignal;
17957
+ }
17958
+ interface ServerExportResult {
17959
+ fileName: string;
17960
+ body: ReadableStream<Uint8Array>;
17961
+ sha256: string;
17962
+ }
17963
+ interface ExperimentalServerArea {
17964
+ checkMove(args: ServerMoveCheckArgs): Promise<ServerMoveCheckResponse>;
17965
+ startMove(args: ServerMoveStartRequest): Promise<ServerMoveStatus>;
17966
+ moveStatus(args?: ServerMoveStatusArgs): Promise<ServerMoveStatusResponse>;
17967
+ cancelMove(): Promise<ServerMoveStatus>;
17968
+ export(args?: ServerExportArgs): Promise<ServerExportResult>;
17969
+ }
17970
+
17568
17971
  interface ProjectListArgs {
17569
17972
  include?: ProjectListQuery["include"];
17570
17973
  includePersonal?: boolean;
@@ -17704,6 +18107,19 @@ interface ProjectAttachmentsArea {
17704
18107
  upload(args: ProjectAttachmentUploadArgs): Promise<ProjectAttachmentUploadResult>;
17705
18108
  }
17706
18109
  interface ProjectsArea {
18110
+ machineEnvironment(args: {
18111
+ projectId: string;
18112
+ }): Promise<ProjectMachineEnvironmentList>;
18113
+ replaceMachineEnvironment(args: {
18114
+ projectId: string;
18115
+ } & MachineEnvironmentReplace): Promise<ProjectMachineEnvironmentList>;
18116
+ setMachineEnvironmentVariable(args: {
18117
+ projectId: string;
18118
+ } & MachineEnvironmentSet): Promise<ProjectMachineEnvironmentList>;
18119
+ deleteMachineEnvironmentVariable(args: {
18120
+ projectId: string;
18121
+ name: string;
18122
+ }): Promise<ProjectMachineEnvironmentList>;
17707
18123
  attachments: ProjectAttachmentsArea;
17708
18124
  branches(args: ProjectBranchesArgs): Promise<ProjectBranchesResult>;
17709
18125
  commands(args: ProjectCommandsArgs): Promise<ProjectCommandsResult>;
@@ -18121,6 +18537,10 @@ interface SystemUiPreferencesArea {
18121
18537
  reset<Key extends UiPreferenceKey>(args: SystemResetUiPreferenceArgs<Key>): Promise<SystemUiPreferenceResult<Key>>;
18122
18538
  }
18123
18539
  interface SystemArea {
18540
+ setMachineEnvironmentVariable(input: MachineEnvironmentSet): Promise<MachineEnvironmentList>;
18541
+ deleteMachineEnvironmentVariable(input: {
18542
+ name: string;
18543
+ }): Promise<MachineEnvironmentList>;
18124
18544
  machineEnvironment(): Promise<MachineEnvironmentList>;
18125
18545
  replaceMachineEnvironment(input: MachineEnvironmentReplace): Promise<MachineEnvironmentList>;
18126
18546
  attention(args?: SystemAttentionArgs): Promise<SystemAttentionResult>;
@@ -18637,6 +19057,14 @@ interface ThreadsArea {
18637
19057
  search(args: ThreadSearchArgs): Promise<ThreadSearchResult>;
18638
19058
  send(args: ThreadSendArgs): Promise<ThreadSendResult>;
18639
19059
  spawn(args: ThreadSpawnArgs): Promise<ThreadSpawnResult>;
19060
+ /**
19061
+ * Stop the thread's work and release its loaded runtime. An explicit stop
19062
+ * wins over running work: a turn the machine still runs while the thread
19063
+ * looks idle or failed, or a turn that starts while the stop is delivered,
19064
+ * is interrupted. The call waits for the interrupt attempt; if the machine
19065
+ * cannot confirm it, the thread remains stopping. Inspect its status before
19066
+ * treating the stop as confirmed.
19067
+ */
18640
19068
  stop(args: ThreadActionArgs): Promise<ThreadStopResult>;
18641
19069
  tabs: ThreadTabsArea;
18642
19070
  context(args: ThreadStatusArgs): Promise<ThreadContextResult>;
@@ -18667,6 +19095,7 @@ interface ThreadSectionsArea {
18667
19095
 
18668
19096
  interface BbSdkAreas extends BbRealtime {
18669
19097
  experimental_desktopBrowsers: ExperimentalDesktopBrowsersArea;
19098
+ experimental_server: ExperimentalServerArea;
18670
19099
  environments: EnvironmentsArea;
18671
19100
  files: FilesArea;
18672
19101
  hosts: HostsArea;
@@ -20498,4 +20927,4 @@ interface BbPluginApi {
20498
20927
  }
20499
20928
 
20500
20929
  export { PLUGIN_CLI_OUTPUT_MAX_BYTES, defineRpcContract, experimental_defineHostEntry };
20501
- export type { BbContext, BbNavigate, BbPluginApi, BranchPickerProps, BranchesState, CheckoutState, CodeOverflowMode, ComposerCustomization, ComposerPlusMenuItem, ComposerRichTextSpec, ComposerStructuredDraft, ComposerView, DiffProps, DiffViewMode, ExperimentalAppIcons, ExperimentalAppOverlayProps, ExperimentalAppOverlayRegistration, ExperimentalAppPanel, ExperimentalAppPanelSurface, ExperimentalComposerSubmitOptions, ExperimentalDesktopBrowserAcquireInput, ExperimentalDesktopBrowserCreateInput, ExperimentalDesktopBrowserLease, ExperimentalDesktopBrowserScope, ExperimentalDesktopBrowsersArea, ExperimentalDiffFileContent, ExperimentalDiffFullFileContents, ExperimentalFileLinkProps, ExperimentalFileLocation, ExperimentalFileOpenOptions, ExperimentalFixedTabTargetContract, ExperimentalFixedTabTargetState, ExperimentalHostCallOptions, ExperimentalHostClient, ExperimentalHostEntry, ExperimentalHostPaths, ExperimentalHostRpcContext, ExperimentalHostRpcHandlers, ExperimentalHostSignalContract, ExperimentalHostSignalEvent, ExperimentalHostSignals, ExperimentalHostWatchChange, ExperimentalHostWatchChangeType, ExperimentalHostWatchEvent, ExperimentalHostWatchListener, ExperimentalHostWatchOptions, ExperimentalHostWatchSubscription, ExperimentalHostWorkerLease, ExperimentalIconProps, ExperimentalIconRegistration, ExperimentalLiveFileTarget, ExperimentalOpenFixedTabOptions, ExperimentalPermissionModePickerProps, ExperimentalPluginBrowserToolbarActionProps, ExperimentalPluginBrowserToolbarActionRegistration, ExperimentalPluginFixedTabReference, ExperimentalPluginMentionImage, ExperimentalPluginProviderEnvContext, ExperimentalPluginProviderEnvEntry, ExperimentalPluginProviderEnvHealth, ExperimentalPluginProviderEnvHealthContext, ExperimentalPluginWebSocket, ExperimentalPluginWebSocketContext, ExperimentalPluginWebSocketHandler, ExperimentalPluginWebSocketHandlers, ExperimentalProviderIconProps, ExperimentalProviderModelPickerProps, ExperimentalProviderModelPickerRouting, ExperimentalProviderModelPickerValue, ExperimentalSidebarFooter, ExperimentalSidebarFooterActionContext, ExperimentalSidebarFooterActionRegistration, ExperimentalSidebarFooterDisclosureController, ExperimentalSidebarFooterDisclosureProps, ExperimentalSidebarFooterDisclosureRegistration, ExperimentalSidebarFooterItemBase, ExperimentalSidebarFooterItemRegistration, ExperimentalSidebarNavigationAction, ExperimentalSidebarNavigationActivationOptions, ExperimentalSidebarNavigationIcon, ExperimentalSidebarNavigationItem, ExperimentalSidebarNavigationProps, ExperimentalSidebarNavigationRegistration, ExperimentalSidebarNavigationShortcut, JsonValue, MachineBootstrapApi, MachineBootstrapRequest, MachineExecutor, MachineExecutorRequest, MarkdownProps, MessageDispatchHookContext, MessageDispatchHookDecision, NewThreadComposerProps, NewThreadRequest, PluginAgentConfiguration, PluginAgentConfigurationContext, PluginAgentToolContentPart, PluginAgentToolContext, PluginAgentToolLabels, PluginAgentToolPresentation, PluginAgentToolRegistrationBase, PluginAgentToolResult, PluginAgentToolSelection, PluginAgents, PluginAiServiceDeclaration, PluginAiServiceKind, PluginAiServices, PluginAppBuilder, PluginAppCommands, PluginAppComposer, PluginAppContentScripts, PluginAppDefinition, PluginAppSetup, PluginAppSlots, PluginBackground, PluginBbSdk, PluginCli, PluginCliCommandInfo, PluginCliContext, PluginCliExecutionResult, PluginCliOutputLimitError, PluginCliRegistration, PluginCliResult, PluginCodeThemeData, PluginCodeThemeState, PluginCodeThemeTokenRule, PluginCommandContext, PluginCommandPaletteActionContext, PluginCommandPaletteActionRegistration, PluginCommandRegistration, PluginCommandShortcut, PluginComposerApi, PluginComposerMention, PluginComposerScope, PluginComposerTextEffect, PluginComposerThreadRowStatus, PluginContentScriptContext, PluginContentScriptDisposer, PluginContentScriptRegistration, PluginDiffRendererProps, PluginDiffRendererRegistration, PluginDispatchAttemptKind, PluginDispatchEnvironmentIntent, PluginDispatchExecution, PluginDispatchExecutionSources, PluginDispatchInput, PluginEnvironmentProviderDeclaration, PluginEnvironmentProviderInputsChange, PluginEnvironmentProviderInputsProps, PluginEnvironmentProviderInputsRegistration, PluginEnvironmentProviderRequirements, PluginEnvironmentValidateDecision, PluginEnvironments, PluginEvents, PluginFileOpenerProps, PluginFileOpenerRegistration, PluginFileOpenerSource, PluginFixedTabDeclaration, PluginFixedTabRegistration, PluginHomepageSectionProps, PluginHomepageSectionRegistration, PluginHookHandler, PluginHookName, PluginHookSignatures, PluginHooks, PluginHosts, PluginHttp, PluginHttpAuthMode, PluginHttpHandler, PluginInteractionCancelReason, PluginInteractionRequest, PluginInteractionResult, PluginKvStorage, PluginLogger, PluginMachineProviderDeclaration, PluginMachineProviderInputsChange, PluginMachineProviderInputsProps, PluginMachineProviderInputsRegistration, PluginMachineValidateDecision, PluginMachines, PluginMentionItem, PluginMentionProviderRegistration, PluginMentionSearchContext, PluginMentionTrigger, PluginMessageActionContext, PluginMessageActionRegistration, PluginMessageDirectiveMessage, PluginMessageDirectiveOpenWorkspaceFile, PluginMessageDirectiveProps, PluginMessageDirectiveRegistration, PluginNavPanelProps, PluginNavPanelRegistration, PluginNewThreadPanelActionContext, PluginNewThreadPanelActionRegistration, PluginNewThreadPanelProps, PluginPanelActionOpenOptions, PluginPendingInteractionProps, PluginPendingInteractionRegistration, PluginPendingInteractionView, PluginProviderCapabilities, PluginProviderCompletedTurnDisplay, PluginProviderComposerAction, PluginProviderDeclaration, PluginProviderExtensionKindDeclaration, PluginProviderFallbackModel, PluginProviderIconRegistration, PluginProviderMaintenance, PluginProviderModelCatalogScope, PluginProviderNativeRootEntry, PluginProviderNativeRoots, PluginProviderOptionDescriptor, PluginProviderOptionsContext, PluginProviderPermissionMode, PluginProviderReasoningLevel, PluginProviderStrings, PluginProviders, PluginProvidersState, PluginRealtime, PluginRealtimeConnectionState, PluginRpc, PluginRpcCallArgs, PluginRpcClient, PluginRpcContract, PluginRpcError, PluginRpcErrorCode, PluginRpcHandlers, PluginRpcIssuePathSegment, PluginRpcMethodContract, PluginRpcResult, PluginRpcValidationIssue, PluginSdkApp, PluginServerAccess, PluginServerApi, PluginSettingDescriptor, PluginSettingDescriptors, PluginSettingValue, PluginSettings, PluginSettingsHandle, PluginSettingsSectionProps, PluginSettingsSectionRegistration, PluginSettingsState, PluginSettingsValues, PluginSharedPortTunnelIdentity, PluginSidebarFooterActionContext, PluginSidebarFooterActionProps, PluginSidebarFooterActionRegistration, PluginSidebarProject, PluginSidebarPullRequest, PluginSidebarSplitPane, PluginSidebarThread, PluginSidebarThreadActions, PluginSidebarThreadActivity, PluginSidebarThreadIndicator, PluginSidebarThreadPullRequestState, PluginSidebarThreadSplit, PluginSidebarThreadsState, PluginSourceCodeRendererProps, PluginSourceCodeRendererRegistration, PluginStatusApi, PluginStorage, PluginTargetedPanelActionOpenOptions, PluginThreadEventHandler, PluginThreadEventName, PluginThreadEventPayloads, PluginThreadHeaderActionProps, PluginThreadHeaderActionRegistration, PluginThreadListProps, PluginThreadListRegistration, PluginThreadPanelActionContext, PluginThreadPanelActionRegistration, PluginThreadPanelProps, PluginTimelineRendererProps, PluginTimelineRendererRegistration, PluginTimelineRendererRow, PluginTimelineRowPresentation, PluginTimelineRowStatus, PluginTurnFailedEvent, PluginUi, ReadonlyJsonValue, ServerAccessGrant, ServerAccessProviderDeclaration, SourceCodeLineRange, SourceCodeProps, StandardSchemaV1, StandardSchemaV1InferInput, StandardSchemaV1InferOutput, StandardSchemaV1Issue, StandardSchemaV1Result, ThreadChatMessageAction, ThreadChatMessageReference, ThreadChatProps, UrlLinkProps, UseBranchesArgs, UseCheckoutStateArgs };
20930
+ export type { BbContext, BbNavigate, BbPluginApi, BranchPickerProps, BranchesState, CheckoutState, CodeOverflowMode, ComposerCustomization, ComposerPlusMenuItem, ComposerRichTextSpec, ComposerStructuredDraft, ComposerView, DiffProps, DiffViewMode, ExperimentalAppIcons, ExperimentalAppOverlayProps, ExperimentalAppOverlayRegistration, ExperimentalAppPanel, ExperimentalAppPanelSurface, ExperimentalComposerSubmitOptions, ExperimentalDesktopBrowserAcquireInput, ExperimentalDesktopBrowserCreateInput, ExperimentalDesktopBrowserLease, ExperimentalDesktopBrowserScope, ExperimentalDesktopBrowsersArea, ExperimentalDiffFileContent, ExperimentalDiffFullFileContents, ExperimentalFileLinkProps, ExperimentalFileLocation, ExperimentalFileOpenOptions, ExperimentalFixedTabTargetContract, ExperimentalFixedTabTargetState, ExperimentalHostCallOptions, ExperimentalHostClient, ExperimentalHostEntry, ExperimentalHostPaths, ExperimentalHostRpcContext, ExperimentalHostRpcHandlers, ExperimentalHostSignalContract, ExperimentalHostSignalEvent, ExperimentalHostSignals, ExperimentalHostWatchChange, ExperimentalHostWatchChangeType, ExperimentalHostWatchEvent, ExperimentalHostWatchListener, ExperimentalHostWatchOptions, ExperimentalHostWatchSubscription, ExperimentalHostWorkerLease, ExperimentalIconProps, ExperimentalIconRegistration, ExperimentalLiveFileTarget, ExperimentalOpenFixedTabOptions, ExperimentalPermissionModePickerProps, ExperimentalPluginBrowserPage, ExperimentalPluginBrowserPageEvaluateOptions, ExperimentalPluginBrowserPageWorld, ExperimentalPluginBrowserToolbarActionProps, ExperimentalPluginBrowserToolbarActionRegistration, ExperimentalPluginFixedTabReference, ExperimentalPluginMentionImage, ExperimentalPluginProviderEnvContext, ExperimentalPluginProviderEnvEntry, ExperimentalPluginProviderEnvHealth, ExperimentalPluginProviderEnvHealthContext, ExperimentalPluginWebSocket, ExperimentalPluginWebSocketContext, ExperimentalPluginWebSocketHandler, ExperimentalPluginWebSocketHandlers, ExperimentalProviderIconProps, ExperimentalProviderModelPickerProps, ExperimentalProviderModelPickerRouting, ExperimentalProviderModelPickerValue, ExperimentalSidebarFooter, ExperimentalSidebarFooterActionContext, ExperimentalSidebarFooterActionRegistration, ExperimentalSidebarFooterDisclosureController, ExperimentalSidebarFooterDisclosureProps, ExperimentalSidebarFooterDisclosureRegistration, ExperimentalSidebarFooterItemBase, ExperimentalSidebarFooterItemRegistration, ExperimentalSidebarNavigationAction, ExperimentalSidebarNavigationActivationOptions, ExperimentalSidebarNavigationIcon, ExperimentalSidebarNavigationItem, ExperimentalSidebarNavigationProps, ExperimentalSidebarNavigationRegistration, ExperimentalSidebarNavigationShortcut, JsonValue, MachineBootstrapApi, MachineBootstrapRequest, MachineExecutor, MachineExecutorRequest, MarkdownProps, MessageDispatchHookContext, MessageDispatchHookDecision, NewThreadComposerProps, NewThreadRequest, PluginAgentConfiguration, PluginAgentConfigurationContext, PluginAgentToolContentPart, PluginAgentToolContext, PluginAgentToolLabels, PluginAgentToolPresentation, PluginAgentToolRegistrationBase, PluginAgentToolResult, PluginAgentToolSelection, PluginAgents, PluginAiServiceDeclaration, PluginAiServiceKind, PluginAiServices, PluginAppBuilder, PluginAppCommands, PluginAppComposer, PluginAppContentScripts, PluginAppDefinition, PluginAppSetup, PluginAppSlots, PluginBackground, PluginBbSdk, PluginCli, PluginCliCommandInfo, PluginCliContext, PluginCliExecutionResult, PluginCliOutputLimitError, PluginCliRegistration, PluginCliResult, PluginCodeThemeData, PluginCodeThemeState, PluginCodeThemeTokenRule, PluginCommandContext, PluginCommandPaletteActionContext, PluginCommandPaletteActionRegistration, PluginCommandRegistration, PluginCommandShortcut, PluginComposerApi, PluginComposerMention, PluginComposerScope, PluginComposerTextEffect, PluginComposerThreadRowStatus, PluginContentScriptContext, PluginContentScriptDisposer, PluginContentScriptRegistration, PluginDiffRendererProps, PluginDiffRendererRegistration, PluginDispatchAttemptKind, PluginDispatchEnvironmentIntent, PluginDispatchExecution, PluginDispatchExecutionSources, PluginDispatchInput, PluginEnvironmentProviderDeclaration, PluginEnvironmentProviderInputsChange, PluginEnvironmentProviderInputsProps, PluginEnvironmentProviderInputsRegistration, PluginEnvironmentProviderRequirements, PluginEnvironmentValidateDecision, PluginEnvironments, PluginEvents, PluginFileOpenerProps, PluginFileOpenerRegistration, PluginFileOpenerSource, PluginFixedTabDeclaration, PluginFixedTabRegistration, PluginHomepageSectionProps, PluginHomepageSectionRegistration, PluginHookHandler, PluginHookName, PluginHookSignatures, PluginHooks, PluginHosts, PluginHttp, PluginHttpAuthMode, PluginHttpHandler, PluginInteractionCancelReason, PluginInteractionRequest, PluginInteractionResult, PluginKvStorage, PluginLogger, PluginMachineProviderDeclaration, PluginMachineProviderInputsChange, PluginMachineProviderInputsProps, PluginMachineProviderInputsRegistration, PluginMachineValidateDecision, PluginMachines, PluginMentionItem, PluginMentionProviderRegistration, PluginMentionSearchContext, PluginMentionTrigger, PluginMessageActionContext, PluginMessageActionRegistration, PluginMessageDirectiveMessage, PluginMessageDirectiveOpenWorkspaceFile, PluginMessageDirectiveProps, PluginMessageDirectiveRegistration, PluginNavPanelProps, PluginNavPanelRegistration, PluginNewThreadPanelActionContext, PluginNewThreadPanelActionRegistration, PluginNewThreadPanelProps, PluginPanelActionOpenOptions, PluginPendingInteractionProps, PluginPendingInteractionRegistration, PluginPendingInteractionView, PluginProviderCapabilities, PluginProviderCompletedTurnDisplay, PluginProviderComposerAction, PluginProviderDeclaration, PluginProviderExtensionKindDeclaration, PluginProviderFallbackModel, PluginProviderIconRegistration, PluginProviderMaintenance, PluginProviderModelCatalogScope, PluginProviderNativeRootEntry, PluginProviderNativeRoots, PluginProviderOptionDescriptor, PluginProviderOptionsContext, PluginProviderPermissionMode, PluginProviderReasoningLevel, PluginProviderStrings, PluginProviders, PluginProvidersState, PluginRealtime, PluginRealtimeConnectionState, PluginRpc, PluginRpcCallArgs, PluginRpcClient, PluginRpcContract, PluginRpcError, PluginRpcErrorCode, PluginRpcHandlers, PluginRpcIssuePathSegment, PluginRpcMethodContract, PluginRpcResult, PluginRpcValidationIssue, PluginSdkApp, PluginServerAccess, PluginServerApi, PluginSettingDescriptor, PluginSettingDescriptors, PluginSettingValue, PluginSettings, PluginSettingsHandle, PluginSettingsSectionProps, PluginSettingsSectionRegistration, PluginSettingsState, PluginSettingsValues, PluginSharedPortTunnelIdentity, PluginSidebarFooterActionContext, PluginSidebarFooterActionProps, PluginSidebarFooterActionRegistration, PluginSidebarProject, PluginSidebarPullRequest, PluginSidebarSplitPane, PluginSidebarThread, PluginSidebarThreadActions, PluginSidebarThreadActivity, PluginSidebarThreadIndicator, PluginSidebarThreadPullRequestState, PluginSidebarThreadSplit, PluginSidebarThreadsState, PluginSourceCodeRendererProps, PluginSourceCodeRendererRegistration, PluginStatusApi, PluginStorage, PluginTargetedPanelActionOpenOptions, PluginThreadEventHandler, PluginThreadEventName, PluginThreadEventPayloads, PluginThreadHeaderActionProps, PluginThreadHeaderActionRegistration, PluginThreadListProps, PluginThreadListRegistration, PluginThreadPanelActionContext, PluginThreadPanelActionRegistration, PluginThreadPanelProps, PluginTimelineRendererProps, PluginTimelineRendererRegistration, PluginTimelineRendererRow, PluginTimelineRowPresentation, PluginTimelineRowStatus, PluginTurnFailedEvent, PluginUi, ReadonlyJsonValue, ServerAccessGrant, ServerAccessProviderDeclaration, SourceCodeLineRange, SourceCodeProps, StandardSchemaV1, StandardSchemaV1InferInput, StandardSchemaV1InferOutput, StandardSchemaV1Issue, StandardSchemaV1Result, ThreadChatMessageAction, ThreadChatMessageReference, ThreadChatProps, UrlLinkProps, UseBranchesArgs, UseCheckoutStateArgs };