@get-bb/plugin-sdk 0.6.157 → 0.6.164

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.
@@ -300,7 +300,7 @@ declare const appSettingsUpdateSchema: z$1.ZodUnion<readonly [z$1.ZodObject<{
300
300
  }, z$1.core.$strict>]>;
301
301
  type AppSettingsUpdate = z$1.infer<typeof appSettingsUpdateSchema>;
302
302
 
303
- declare const UI_PREFERENCE_KEYS: readonly ["sidebar.organizationMode", "sidebar.threadGrouping.environment", "sidebar.chronologicalSort", "sidebar.sortDirection", "sidebar.sectionOrder", "sidebar.manualSectionOrder", "sidebar.machineSectionOrder", "sidebar.hiddenGroups", "sidebar.footerOrder", "sidebar.hiddenFooterItems", "sidebar.pluginPanelOrder", "sidebar.visiblePluginPanels", "sidebar.navigationProvider", "sidebar.threadListProvider", "composer.provider", "infoPanel.collapsedSections", "threadContextCard.pinned"];
303
+ declare const UI_PREFERENCE_KEYS: readonly ["sidebar.organizationMode", "sidebar.threadGrouping.environment", "sidebar.chronologicalSort", "sidebar.sortDirection", "sidebar.sectionOrder", "sidebar.manualSectionOrder", "sidebar.machineSectionOrder", "sidebar.hiddenGroups", "sidebar.footerOrder", "sidebar.hiddenFooterItems", "sidebar.pluginPanelOrder", "sidebar.visiblePluginPanels", "sidebar.navigationProvider", "sidebar.threadListProvider", "sidebar.updates.providerCli", "sidebar.updates.skipped", "composer.provider", "infoPanel.collapsedSections", "threadContextCard.pinned"];
304
304
  type UiPreferenceKey = (typeof UI_PREFERENCE_KEYS)[number];
305
305
  interface UiPreferenceDefinition<Schema extends z$1.ZodTypeAny = z$1.ZodTypeAny> {
306
306
  schema: Schema;
@@ -335,6 +335,8 @@ declare const uiPreferenceDefinitions: {
335
335
  readonly "sidebar.visiblePluginPanels": UiPreferenceDefinition<z$1.ZodNullable<z$1.ZodArray<z$1.ZodString>>>;
336
336
  readonly "sidebar.navigationProvider": UiPreferenceDefinition<z$1.ZodPipe<z$1.ZodString, z$1.ZodTransform<string, string>>>;
337
337
  readonly "sidebar.threadListProvider": UiPreferenceDefinition<z$1.ZodPipe<z$1.ZodString, z$1.ZodTransform<string, string>>>;
338
+ readonly "sidebar.updates.providerCli": UiPreferenceDefinition<z$1.ZodBoolean>;
339
+ readonly "sidebar.updates.skipped": UiPreferenceDefinition<z$1.ZodArray<z$1.ZodString>>;
338
340
  readonly "composer.provider": UiPreferenceDefinition<z$1.ZodString>;
339
341
  readonly "threadContextCard.pinned": UiPreferenceDefinition<z$1.ZodBoolean>;
340
342
  readonly "infoPanel.collapsedSections": UiPreferenceDefinition<z$1.ZodPipe<z$1.ZodArray<z$1.ZodString>, z$1.ZodTransform<string[], string[]>>>;
@@ -673,6 +675,7 @@ declare const environmentSchema: z$1.ZodObject<{
673
675
  teardown: z$1.ZodNullable<z$1.ZodObject<{
674
676
  attempt: z$1.ZodNumber;
675
677
  message: z$1.ZodOptional<z$1.ZodString>;
678
+ needsRecovery: z$1.ZodBoolean;
676
679
  status: z$1.ZodEnum<{
677
680
  failed: "failed";
678
681
  removed: "removed";
@@ -774,6 +777,8 @@ declare const hostSchema: z$1.ZodObject<{
774
777
  suspendedAt: z$1.ZodNullable<z$1.ZodNumber>;
775
778
  teardown: z$1.ZodNullable<z$1.ZodObject<{
776
779
  attempt: z$1.ZodNumber;
780
+ blockedByEnvironmentId: z$1.ZodNullable<z$1.ZodString>;
781
+ needsRecovery: z$1.ZodBoolean;
777
782
  status: z$1.ZodEnum<{
778
783
  failed: "failed";
779
784
  removed: "removed";
@@ -4909,6 +4914,15 @@ declare const workspacePathListResponseSchema: z$1.ZodObject<{
4909
4914
  }, z$1.core.$strip>;
4910
4915
  type WorkspacePathListResponse = z$1.infer<typeof workspacePathListResponseSchema>;
4911
4916
 
4917
+ declare const operationResponseSchema: z$1.ZodObject<{
4918
+ ok: z$1.ZodLiteral<true>;
4919
+ progress: z$1.ZodEnum<{
4920
+ "in-progress": "in-progress";
4921
+ complete: "complete";
4922
+ }>;
4923
+ }, z$1.core.$strict>;
4924
+ type OperationResponse = z$1.infer<typeof operationResponseSchema>;
4925
+
4912
4926
  declare const createProjectSourceRequestSchema: z$1.ZodDiscriminatedUnion<[z$1.ZodObject<{
4913
4927
  hostId: z$1.ZodString;
4914
4928
  path: z$1.ZodPipe<z$1.ZodString, z$1.ZodTransform<string, string>>;
@@ -7256,29 +7270,12 @@ declare const hostDaemonCommandRegistry: {
7256
7270
  type: z$1.ZodLiteral<"interactive.resolve">;
7257
7271
  }, z$1.core.$strict>, z$1.ZodObject<{}, z$1.core.$strip>, "settled", false>;
7258
7272
  "environment.attach": HostDaemonCommandDescriptor<"environment.attach", z$1.ZodObject<{
7259
- contributedEnv: z$1.ZodArray<z$1.ZodObject<{
7260
- name: z$1.ZodString;
7261
- reason: z$1.ZodString;
7262
- source: z$1.ZodUnion<readonly [z$1.ZodObject<{
7263
- plugin: z$1.ZodString;
7264
- }, z$1.core.$strict>, z$1.ZodObject<{
7265
- core: z$1.ZodEnum<{
7266
- "machine-environment": "machine-environment";
7267
- "machine-git": "machine-git";
7268
- "project-environment": "project-environment";
7269
- }>;
7270
- }, z$1.core.$strict>]>;
7271
- value: z$1.ZodUnion<readonly [z$1.ZodString, z$1.ZodObject<{
7272
- serverPath: z$1.ZodString;
7273
- }, z$1.core.$strict>]>;
7274
- }, z$1.core.$strict>>;
7275
7273
  environmentId: z$1.ZodString;
7276
7274
  initiator: z$1.ZodNullable<z$1.ZodObject<{
7277
7275
  provisioningId: z$1.ZodString;
7278
7276
  threadId: z$1.ZodString;
7279
7277
  }, z$1.core.$strict>>;
7280
7278
  path: z$1.ZodString;
7281
- setupScriptTimeoutMs: z$1.ZodNullable<z$1.ZodNumber>;
7282
7279
  type: z$1.ZodLiteral<"environment.attach">;
7283
7280
  }, z$1.core.$strict>, z$1.ZodObject<{
7284
7281
  branchName: z$1.ZodNullable<z$1.ZodString>;
@@ -8173,6 +8170,22 @@ declare const hostDaemonCommandRegistry: {
8173
8170
  kind: z$1.ZodLiteral<"artifact">;
8174
8171
  }, z$1.core.$strict>;
8175
8172
  }, z$1.core.$strict>;
8173
+ contributedEnv: z$1.ZodArray<z$1.ZodObject<{
8174
+ name: z$1.ZodString;
8175
+ reason: z$1.ZodString;
8176
+ source: z$1.ZodUnion<readonly [z$1.ZodObject<{
8177
+ plugin: z$1.ZodString;
8178
+ }, z$1.core.$strict>, z$1.ZodObject<{
8179
+ core: z$1.ZodEnum<{
8180
+ "machine-environment": "machine-environment";
8181
+ "machine-git": "machine-git";
8182
+ "project-environment": "project-environment";
8183
+ }>;
8184
+ }, z$1.core.$strict>]>;
8185
+ value: z$1.ZodUnion<readonly [z$1.ZodString, z$1.ZodObject<{
8186
+ serverPath: z$1.ZodString;
8187
+ }, z$1.core.$strict>]>;
8188
+ }, z$1.core.$strict>>;
8176
8189
  cwd: z$1.ZodNullable<z$1.ZodString>;
8177
8190
  providerId: z$1.ZodString;
8178
8191
  type: z$1.ZodLiteral<"provider.list_commands">;
@@ -8210,6 +8223,22 @@ declare const hostDaemonCommandRegistry: {
8210
8223
  kind: z$1.ZodLiteral<"artifact">;
8211
8224
  }, z$1.core.$strict>;
8212
8225
  }, z$1.core.$strict>;
8226
+ contributedEnv: z$1.ZodArray<z$1.ZodObject<{
8227
+ name: z$1.ZodString;
8228
+ reason: z$1.ZodString;
8229
+ source: z$1.ZodUnion<readonly [z$1.ZodObject<{
8230
+ plugin: z$1.ZodString;
8231
+ }, z$1.core.$strict>, z$1.ZodObject<{
8232
+ core: z$1.ZodEnum<{
8233
+ "machine-environment": "machine-environment";
8234
+ "machine-git": "machine-git";
8235
+ "project-environment": "project-environment";
8236
+ }>;
8237
+ }, z$1.core.$strict>]>;
8238
+ value: z$1.ZodUnion<readonly [z$1.ZodString, z$1.ZodObject<{
8239
+ serverPath: z$1.ZodString;
8240
+ }, z$1.core.$strict>]>;
8241
+ }, z$1.core.$strict>>;
8213
8242
  cwd: z$1.ZodOptional<z$1.ZodString>;
8214
8243
  providerId: z$1.ZodString;
8215
8244
  type: z$1.ZodLiteral<"provider.health">;
@@ -8265,6 +8294,22 @@ declare const hostDaemonCommandRegistry: {
8265
8294
  kind: z$1.ZodLiteral<"artifact">;
8266
8295
  }, z$1.core.$strict>;
8267
8296
  }, z$1.core.$strict>;
8297
+ contributedEnv: z$1.ZodArray<z$1.ZodObject<{
8298
+ name: z$1.ZodString;
8299
+ reason: z$1.ZodString;
8300
+ source: z$1.ZodUnion<readonly [z$1.ZodObject<{
8301
+ plugin: z$1.ZodString;
8302
+ }, z$1.core.$strict>, z$1.ZodObject<{
8303
+ core: z$1.ZodEnum<{
8304
+ "machine-environment": "machine-environment";
8305
+ "machine-git": "machine-git";
8306
+ "project-environment": "project-environment";
8307
+ }>;
8308
+ }, z$1.core.$strict>]>;
8309
+ value: z$1.ZodUnion<readonly [z$1.ZodString, z$1.ZodObject<{
8310
+ serverPath: z$1.ZodString;
8311
+ }, z$1.core.$strict>]>;
8312
+ }, z$1.core.$strict>>;
8268
8313
  providerId: z$1.ZodString;
8269
8314
  type: z$1.ZodLiteral<"provider.installation.status">;
8270
8315
  }, z$1.core.$strict>, z$1.ZodObject<{
@@ -8326,6 +8371,22 @@ declare const hostDaemonCommandRegistry: {
8326
8371
  kind: z$1.ZodLiteral<"artifact">;
8327
8372
  }, z$1.core.$strict>;
8328
8373
  }, z$1.core.$strict>;
8374
+ contributedEnv: z$1.ZodArray<z$1.ZodObject<{
8375
+ name: z$1.ZodString;
8376
+ reason: z$1.ZodString;
8377
+ source: z$1.ZodUnion<readonly [z$1.ZodObject<{
8378
+ plugin: z$1.ZodString;
8379
+ }, z$1.core.$strict>, z$1.ZodObject<{
8380
+ core: z$1.ZodEnum<{
8381
+ "machine-environment": "machine-environment";
8382
+ "machine-git": "machine-git";
8383
+ "project-environment": "project-environment";
8384
+ }>;
8385
+ }, z$1.core.$strict>]>;
8386
+ value: z$1.ZodUnion<readonly [z$1.ZodString, z$1.ZodObject<{
8387
+ serverPath: z$1.ZodString;
8388
+ }, z$1.core.$strict>]>;
8389
+ }, z$1.core.$strict>>;
8329
8390
  providerId: z$1.ZodString;
8330
8391
  type: z$1.ZodLiteral<"provider.installation.run">;
8331
8392
  }, z$1.core.$strict>, z$1.ZodObject<{
@@ -8906,12 +8967,21 @@ declare const updateHostRequestSchema: z$1.ZodObject<{
8906
8967
  name: z$1.ZodString;
8907
8968
  }, z$1.core.$strict>;
8908
8969
  type UpdateHostRequest = z$1.infer<typeof updateHostRequestSchema>;
8909
- declare const hostActionResponseSchema: z$1.ZodObject<{
8970
+ declare const hostRemovalResponseSchema: z$1.ZodObject<{
8910
8971
  ok: z$1.ZodLiteral<true>;
8972
+ progress: z$1.ZodEnum<{
8973
+ "in-progress": "in-progress";
8974
+ complete: "complete";
8975
+ }>;
8976
+ warnings: z$1.ZodArray<z$1.ZodString>;
8911
8977
  }, z$1.core.$strict>;
8912
- type HostActionResponse = z$1.infer<typeof hostActionResponseSchema>;
8978
+ type HostRemovalResponse = z$1.infer<typeof hostRemovalResponseSchema>;
8913
8979
  declare const hostRetryUpdateResponseSchema: z$1.ZodObject<{
8914
8980
  ok: z$1.ZodLiteral<true>;
8981
+ progress: z$1.ZodEnum<{
8982
+ "in-progress": "in-progress";
8983
+ complete: "complete";
8984
+ }>;
8915
8985
  }, z$1.core.$strict>;
8916
8986
  type HostRetryUpdateResponse = z$1.infer<typeof hostRetryUpdateResponseSchema>;
8917
8987
  type HostPathsExistRequest = PathsExistRequest;
@@ -9908,6 +9978,14 @@ declare const pluginCatalogSearchResponseSchema: z$1.ZodObject<{
9908
9978
  installed: z$1.ZodBoolean;
9909
9979
  installedByDefault: z$1.ZodDefault<z$1.ZodBoolean>;
9910
9980
  installs: z$1.ZodDefault<z$1.ZodNullable<z$1.ZodNumber>>;
9981
+ listings: z$1.ZodDefault<z$1.ZodArray<z$1.ZodObject<{
9982
+ entryId: z$1.ZodString;
9983
+ marketplace: z$1.ZodString;
9984
+ marketplaceDisplayName: z$1.ZodString;
9985
+ official: z$1.ZodBoolean;
9986
+ publisherLabel: z$1.ZodString;
9987
+ source: z$1.ZodString;
9988
+ }, z$1.core.$strip>>>;
9911
9989
  marketplace: z$1.ZodString;
9912
9990
  marketplaceDisplayName: z$1.ZodString;
9913
9991
  official: z$1.ZodBoolean;
@@ -11419,7 +11497,11 @@ declare const systemAppUpdateAcknowledgeRequestSchema: z$1.ZodObject<{
11419
11497
  type SystemAppUpdateAcknowledgeRequest = z$1.infer<typeof systemAppUpdateAcknowledgeRequestSchema>;
11420
11498
  declare const systemConfigReloadResponseSchema: z$1.ZodObject<{
11421
11499
  ok: z$1.ZodLiteral<true>;
11422
- }, z$1.core.$strip>;
11500
+ progress: z$1.ZodEnum<{
11501
+ "in-progress": "in-progress";
11502
+ complete: "complete";
11503
+ }>;
11504
+ }, z$1.core.$strict>;
11423
11505
  declare const systemCliSkillsStatusResponseSchema: z$1.ZodObject<{
11424
11506
  machines: z$1.ZodArray<z$1.ZodObject<{
11425
11507
  hostId: z$1.ZodString;
@@ -14851,6 +14933,7 @@ declare const threadWithIncludesResponseSchema: z$1.ZodObject<{
14851
14933
  teardown: z$1.ZodNullable<z$1.ZodObject<{
14852
14934
  attempt: z$1.ZodNumber;
14853
14935
  message: z$1.ZodOptional<z$1.ZodString>;
14936
+ needsRecovery: z$1.ZodBoolean;
14854
14937
  status: z$1.ZodEnum<{
14855
14938
  failed: "failed";
14856
14939
  removed: "removed";
@@ -14899,6 +14982,8 @@ declare const threadWithIncludesResponseSchema: z$1.ZodObject<{
14899
14982
  suspendedAt: z$1.ZodNullable<z$1.ZodNumber>;
14900
14983
  teardown: z$1.ZodNullable<z$1.ZodObject<{
14901
14984
  attempt: z$1.ZodNumber;
14985
+ blockedByEnvironmentId: z$1.ZodNullable<z$1.ZodString>;
14986
+ needsRecovery: z$1.ZodBoolean;
14902
14987
  status: z$1.ZodEnum<{
14903
14988
  failed: "failed";
14904
14989
  removed: "removed";
@@ -16506,130 +16591,294 @@ declare const threadTimelineResponseSchema: z$1.ZodObject<{
16506
16591
  }>;
16507
16592
  sourceSeq: z$1.ZodNumber;
16508
16593
  }, z$1.core.$strip>>;
16509
- pendingTodos: z$1.ZodNullable<z$1.ZodObject<{
16510
- items: z$1.ZodArray<z$1.ZodObject<{
16511
- id: z$1.ZodString;
16512
- status: z$1.ZodEnum<{
16513
- completed: "completed";
16514
- in_progress: "in_progress";
16515
- pending: "pending";
16516
- }>;
16517
- text: z$1.ZodString;
16594
+ pendingSteers: z$1.ZodArray<z$1.ZodObject<{
16595
+ attachments: z$1.ZodNullable<z$1.ZodObject<{
16596
+ imageUrls: z$1.ZodArray<z$1.ZodString>;
16597
+ localFileDetails: z$1.ZodArray<z$1.ZodObject<{
16598
+ name: z$1.ZodString;
16599
+ path: z$1.ZodString;
16600
+ sizeBytes: z$1.ZodNullable<z$1.ZodNumber>;
16601
+ }, z$1.core.$strip>>;
16602
+ localFilePaths: z$1.ZodArray<z$1.ZodString>;
16603
+ localFiles: z$1.ZodNumber;
16604
+ localImagePaths: z$1.ZodArray<z$1.ZodString>;
16605
+ localImages: z$1.ZodNumber;
16606
+ webImages: z$1.ZodNumber;
16518
16607
  }, z$1.core.$strip>>;
16519
- sourceSeq: z$1.ZodNumber;
16520
- updatedAt: z$1.ZodNumber;
16521
- }, z$1.core.$strip>>;
16522
- providerCommands: z$1.ZodNullable<z$1.ZodArray<z$1.ZodObject<{
16523
- argumentHint: z$1.ZodNullable<z$1.ZodString>;
16524
- description: z$1.ZodNullable<z$1.ZodString>;
16525
- name: z$1.ZodString;
16526
- origin: z$1.ZodEnum<{
16527
- builtin: "builtin";
16528
- project: "project";
16608
+ createdAt: z$1.ZodNumber;
16609
+ id: z$1.ZodString;
16610
+ initiator: z$1.ZodEnum<{
16611
+ agent: "agent";
16612
+ system: "system";
16529
16613
  user: "user";
16530
16614
  }>;
16531
- source: z$1.ZodEnum<{
16532
- command: "command";
16533
- skill: "skill";
16534
- }>;
16535
- }, z$1.core.$strip>>>;
16536
- rows: z$1.ZodArray<z$1.ZodType<TimelineRow, unknown, z$1.core.$ZodTypeInternals<TimelineRow, unknown>>>;
16537
- sessionOptions: z$1.ZodNullable<z$1.ZodArray<z$1.ZodDiscriminatedUnion<[z$1.ZodObject<{
16538
- category: z$1.ZodNullable<z$1.ZodString>;
16539
- description: z$1.ZodNullable<z$1.ZodString>;
16540
- id: z$1.ZodString;
16541
- label: z$1.ZodString;
16542
- pendingValue: z$1.ZodNullable<z$1.ZodString>;
16543
- type: z$1.ZodLiteral<"select">;
16544
- value: z$1.ZodString;
16545
- values: z$1.ZodArray<z$1.ZodObject<{
16546
- description: z$1.ZodNullable<z$1.ZodString>;
16547
- group: z$1.ZodNullable<z$1.ZodString>;
16548
- id: z$1.ZodString;
16549
- label: z$1.ZodString;
16550
- }, z$1.core.$strip>>;
16551
- }, z$1.core.$strip>, z$1.ZodObject<{
16552
- category: z$1.ZodNullable<z$1.ZodString>;
16553
- description: z$1.ZodNullable<z$1.ZodString>;
16554
- id: z$1.ZodString;
16555
- label: z$1.ZodString;
16556
- pendingValue: z$1.ZodNullable<z$1.ZodBoolean>;
16557
- type: z$1.ZodLiteral<"boolean">;
16558
- value: z$1.ZodBoolean;
16559
- }, z$1.core.$strip>], "type">>>;
16560
- tag: z$1.ZodString;
16561
- timelinePage: z$1.ZodObject<{
16562
- historySnapshot: z$1.ZodString;
16563
- olderCursor: z$1.ZodNullable<z$1.ZodObject<{
16564
- anchorId: z$1.ZodString;
16565
- anchorSeq: z$1.ZodNumber;
16566
- }, z$1.core.$strict>>;
16567
- olderRowUpdates: z$1.ZodOptional<z$1.ZodArray<z$1.ZodType<TimelineRow, unknown, z$1.core.$ZodTypeInternals<TimelineRow, unknown>>>>;
16568
- olderRowsSourceSeqEnd: z$1.ZodNullable<z$1.ZodNumber>;
16569
- returnedSegmentCount: z$1.ZodNumber;
16570
- }, z$1.core.$strict>;
16571
- }, z$1.core.$strip>;
16572
- type ThreadTimelineResponse = z$1.infer<typeof threadTimelineResponseSchema>;
16573
- declare const threadTimelineReadResponseSchema: z$1.ZodUnion<readonly [z$1.ZodObject<{
16574
- delta: z$1.ZodObject<{
16575
- afterTag: z$1.ZodString;
16576
- fields: z$1.ZodObject<{
16577
- activeBackgroundCommands: z$1.ZodOptional<z$1.ZodArray<z$1.ZodObject<{
16578
- completedAt: z$1.ZodNullable<z$1.ZodNumber>;
16579
- createdAt: z$1.ZodNumber;
16580
- description: z$1.ZodString;
16581
- error: z$1.ZodNullable<z$1.ZodString>;
16582
- id: z$1.ZodString;
16583
- itemId: z$1.ZodString;
16584
- kind: z$1.ZodLiteral<"work">;
16585
- model: z$1.ZodNullable<z$1.ZodString>;
16586
- presentation: z$1.ZodOptional<z$1.ZodObject<{
16587
- badge: z$1.ZodOptional<z$1.ZodObject<{
16588
- glyph: z$1.ZodString;
16589
- hint: z$1.ZodString;
16590
- label: z$1.ZodString;
16591
- tone: z$1.ZodEnum<{
16592
- destructive: "destructive";
16593
- neutral: "neutral";
16594
- }>;
16595
- }, z$1.core.$strip>>;
16596
- detail: z$1.ZodOptional<z$1.ZodString>;
16597
- icon: z$1.ZodObject<{
16598
- glyph: z$1.ZodString;
16599
- }, z$1.core.$strip>;
16600
- label: z$1.ZodObject<{
16601
- completed: z$1.ZodString;
16602
- pending: z$1.ZodString;
16603
- }, z$1.core.$strip>;
16604
- suppress: z$1.ZodOptional<z$1.ZodBoolean>;
16605
- tint: z$1.ZodOptional<z$1.ZodObject<{
16606
- dark: z$1.ZodString;
16607
- light: z$1.ZodString;
16608
- }, z$1.core.$strip>>;
16609
- title: z$1.ZodOptional<z$1.ZodString>;
16610
- }, z$1.core.$strip>>;
16611
- sourceSeqEnd: z$1.ZodNumber;
16612
- sourceSeqStart: z$1.ZodNumber;
16613
- startedAt: z$1.ZodNumber;
16614
- status: z$1.ZodEnum<{
16615
- completed: "completed";
16616
- error: "error";
16617
- interrupted: "interrupted";
16618
- pending: "pending";
16615
+ kind: z$1.ZodLiteral<"conversation">;
16616
+ mentions: z$1.ZodArray<z$1.ZodObject<{
16617
+ end: z$1.ZodNumber;
16618
+ resource: z$1.ZodPreprocess<z$1.ZodDiscriminatedUnion<[z$1.ZodObject<{
16619
+ kind: z$1.ZodLiteral<"thread">;
16620
+ label: z$1.ZodString;
16621
+ projectId: z$1.ZodOptional<z$1.ZodString>;
16622
+ threadId: z$1.ZodString;
16623
+ }, z$1.core.$strip>, z$1.ZodObject<{
16624
+ kind: z$1.ZodLiteral<"project">;
16625
+ label: z$1.ZodString;
16626
+ projectId: z$1.ZodString;
16627
+ }, z$1.core.$strip>, z$1.ZodObject<{
16628
+ kind: z$1.ZodLiteral<"section">;
16629
+ label: z$1.ZodString;
16630
+ sectionId: z$1.ZodString;
16631
+ }, z$1.core.$strip>, z$1.ZodObject<{
16632
+ entryKind: z$1.ZodEnum<{
16633
+ directory: "directory";
16634
+ file: "file";
16619
16635
  }>;
16620
- summary: z$1.ZodNullable<z$1.ZodString>;
16621
- taskStatus: z$1.ZodEnum<{
16622
- completed: "completed";
16623
- failed: "failed";
16624
- killed: "killed";
16625
- paused: "paused";
16626
- pending: "pending";
16627
- running: "running";
16628
- stopped: "stopped";
16636
+ kind: z$1.ZodLiteral<"path">;
16637
+ label: z$1.ZodString;
16638
+ path: z$1.ZodString;
16639
+ source: z$1.ZodEnum<{
16640
+ "thread-storage": "thread-storage";
16641
+ workspace: "workspace";
16629
16642
  }>;
16630
- taskType: z$1.ZodString;
16631
- threadId: z$1.ZodString;
16632
- turnId: z$1.ZodNullable<z$1.ZodString>;
16643
+ }, z$1.core.$strip>, z$1.ZodObject<{
16644
+ argumentHint: z$1.ZodNullable<z$1.ZodString>;
16645
+ kind: z$1.ZodLiteral<"command">;
16646
+ label: z$1.ZodString;
16647
+ name: z$1.ZodString;
16648
+ origin: z$1.ZodEnum<{
16649
+ builtin: "builtin";
16650
+ project: "project";
16651
+ user: "user";
16652
+ }>;
16653
+ source: z$1.ZodEnum<{
16654
+ command: "command";
16655
+ skill: "skill";
16656
+ }>;
16657
+ trigger: z$1.ZodEnum<{
16658
+ "/": "/";
16659
+ $: "$";
16660
+ }>;
16661
+ }, z$1.core.$strip>, z$1.ZodObject<{
16662
+ icon: z$1.ZodOptional<z$1.ZodNullable<z$1.ZodString>>;
16663
+ itemId: z$1.ZodString;
16664
+ kind: z$1.ZodLiteral<"plugin">;
16665
+ label: z$1.ZodString;
16666
+ pluginId: z$1.ZodString;
16667
+ }, z$1.core.$strip>, z$1.ZodObject<{
16668
+ kind: z$1.ZodLiteral<"attachment">;
16669
+ label: z$1.ZodString;
16670
+ path: z$1.ZodString;
16671
+ }, z$1.core.$strip>], "kind">, unknown>;
16672
+ start: z$1.ZodNumber;
16673
+ }, z$1.core.$strip>>;
16674
+ messageSeq: z$1.ZodNumber;
16675
+ role: z$1.ZodLiteral<"user">;
16676
+ senderThreadId: z$1.ZodNullable<z$1.ZodString>;
16677
+ sourceSeqEnd: z$1.ZodNumber;
16678
+ sourceSeqStart: z$1.ZodNumber;
16679
+ startedAt: z$1.ZodNumber;
16680
+ systemMessageKind: z$1.ZodEnum<{
16681
+ "child-completed": "child-completed";
16682
+ "child-failed": "child-failed";
16683
+ "child-interrupted": "child-interrupted";
16684
+ "child-needs-attention": "child-needs-attention";
16685
+ "child-outcome-batch": "child-outcome-batch";
16686
+ "environment-directory-updated": "environment-directory-updated";
16687
+ "ownership-assigned": "ownership-assigned";
16688
+ "ownership-batch": "ownership-batch";
16689
+ "ownership-removed": "ownership-removed";
16690
+ "tool-result-delivered": "tool-result-delivered";
16691
+ unlabeled: "unlabeled";
16692
+ }>;
16693
+ systemMessageSubject: z$1.ZodNullable<z$1.ZodDiscriminatedUnion<[z$1.ZodObject<{
16694
+ kind: z$1.ZodLiteral<"thread">;
16695
+ outcomes: z$1.ZodOptional<z$1.ZodArray<z$1.ZodObject<{
16696
+ interruption: z$1.ZodOptional<z$1.ZodObject<{
16697
+ cause: z$1.ZodOptional<z$1.ZodLiteral<"host-connection-lost">>;
16698
+ reason: z$1.ZodEnum<{
16699
+ "host-daemon-restarted": "host-daemon-restarted";
16700
+ "host-removed": "host-removed";
16701
+ "manual-stop": "manual-stop";
16702
+ "provider-turn-idle": "provider-turn-idle";
16703
+ }>;
16704
+ }, z$1.core.$strip>>;
16705
+ status: z$1.ZodEnum<{
16706
+ completed: "completed";
16707
+ failed: "failed";
16708
+ interrupted: "interrupted";
16709
+ }>;
16710
+ threadId: z$1.ZodString;
16711
+ }, z$1.core.$strip>>>;
16712
+ threadId: z$1.ZodString;
16713
+ threadName: z$1.ZodString;
16714
+ }, z$1.core.$strip>, z$1.ZodObject<{
16715
+ count: z$1.ZodNumber;
16716
+ kind: z$1.ZodLiteral<"thread-batch">;
16717
+ outcomes: z$1.ZodOptional<z$1.ZodArray<z$1.ZodObject<{
16718
+ interruption: z$1.ZodOptional<z$1.ZodObject<{
16719
+ cause: z$1.ZodOptional<z$1.ZodLiteral<"host-connection-lost">>;
16720
+ reason: z$1.ZodEnum<{
16721
+ "host-daemon-restarted": "host-daemon-restarted";
16722
+ "host-removed": "host-removed";
16723
+ "manual-stop": "manual-stop";
16724
+ "provider-turn-idle": "provider-turn-idle";
16725
+ }>;
16726
+ }, z$1.core.$strip>>;
16727
+ status: z$1.ZodEnum<{
16728
+ completed: "completed";
16729
+ failed: "failed";
16730
+ interrupted: "interrupted";
16731
+ }>;
16732
+ threadId: z$1.ZodString;
16733
+ }, z$1.core.$strip>>>;
16734
+ }, z$1.core.$strip>, z$1.ZodObject<{
16735
+ kind: z$1.ZodLiteral<"tool-call">;
16736
+ suppress: z$1.ZodBoolean;
16737
+ toolName: z$1.ZodString;
16738
+ }, z$1.core.$strip>, z$1.ZodObject<{
16739
+ kind: z$1.ZodLiteral<"directory">;
16740
+ path: z$1.ZodString;
16741
+ }, z$1.core.$strip>], "kind">>;
16742
+ text: z$1.ZodString;
16743
+ threadId: z$1.ZodString;
16744
+ turnId: z$1.ZodNullable<z$1.ZodString>;
16745
+ turnRequest: z$1.ZodObject<{
16746
+ isGrouped: z$1.ZodBoolean;
16747
+ kind: z$1.ZodEnum<{
16748
+ message: "message";
16749
+ steer: "steer";
16750
+ }>;
16751
+ status: z$1.ZodEnum<{
16752
+ accepted: "accepted";
16753
+ pending: "pending";
16754
+ rejected: "rejected";
16755
+ }>;
16756
+ }, z$1.core.$strip>;
16757
+ }, z$1.core.$strip>>;
16758
+ pendingTodos: z$1.ZodNullable<z$1.ZodObject<{
16759
+ items: z$1.ZodArray<z$1.ZodObject<{
16760
+ id: z$1.ZodString;
16761
+ status: z$1.ZodEnum<{
16762
+ completed: "completed";
16763
+ in_progress: "in_progress";
16764
+ pending: "pending";
16765
+ }>;
16766
+ text: z$1.ZodString;
16767
+ }, z$1.core.$strip>>;
16768
+ sourceSeq: z$1.ZodNumber;
16769
+ updatedAt: z$1.ZodNumber;
16770
+ }, z$1.core.$strip>>;
16771
+ providerCommands: z$1.ZodNullable<z$1.ZodArray<z$1.ZodObject<{
16772
+ argumentHint: z$1.ZodNullable<z$1.ZodString>;
16773
+ description: z$1.ZodNullable<z$1.ZodString>;
16774
+ name: z$1.ZodString;
16775
+ origin: z$1.ZodEnum<{
16776
+ builtin: "builtin";
16777
+ project: "project";
16778
+ user: "user";
16779
+ }>;
16780
+ source: z$1.ZodEnum<{
16781
+ command: "command";
16782
+ skill: "skill";
16783
+ }>;
16784
+ }, z$1.core.$strip>>>;
16785
+ rows: z$1.ZodArray<z$1.ZodType<TimelineRow, unknown, z$1.core.$ZodTypeInternals<TimelineRow, unknown>>>;
16786
+ sessionOptions: z$1.ZodNullable<z$1.ZodArray<z$1.ZodDiscriminatedUnion<[z$1.ZodObject<{
16787
+ category: z$1.ZodNullable<z$1.ZodString>;
16788
+ description: z$1.ZodNullable<z$1.ZodString>;
16789
+ id: z$1.ZodString;
16790
+ label: z$1.ZodString;
16791
+ pendingValue: z$1.ZodNullable<z$1.ZodString>;
16792
+ type: z$1.ZodLiteral<"select">;
16793
+ value: z$1.ZodString;
16794
+ values: z$1.ZodArray<z$1.ZodObject<{
16795
+ description: z$1.ZodNullable<z$1.ZodString>;
16796
+ group: z$1.ZodNullable<z$1.ZodString>;
16797
+ id: z$1.ZodString;
16798
+ label: z$1.ZodString;
16799
+ }, z$1.core.$strip>>;
16800
+ }, z$1.core.$strip>, z$1.ZodObject<{
16801
+ category: z$1.ZodNullable<z$1.ZodString>;
16802
+ description: z$1.ZodNullable<z$1.ZodString>;
16803
+ id: z$1.ZodString;
16804
+ label: z$1.ZodString;
16805
+ pendingValue: z$1.ZodNullable<z$1.ZodBoolean>;
16806
+ type: z$1.ZodLiteral<"boolean">;
16807
+ value: z$1.ZodBoolean;
16808
+ }, z$1.core.$strip>], "type">>>;
16809
+ tag: z$1.ZodString;
16810
+ timelinePage: z$1.ZodObject<{
16811
+ historySnapshot: z$1.ZodString;
16812
+ olderCursor: z$1.ZodNullable<z$1.ZodObject<{
16813
+ anchorId: z$1.ZodString;
16814
+ anchorSeq: z$1.ZodNumber;
16815
+ }, z$1.core.$strict>>;
16816
+ olderRowUpdates: z$1.ZodOptional<z$1.ZodArray<z$1.ZodType<TimelineRow, unknown, z$1.core.$ZodTypeInternals<TimelineRow, unknown>>>>;
16817
+ olderRowsSourceSeqEnd: z$1.ZodNullable<z$1.ZodNumber>;
16818
+ returnedSegmentCount: z$1.ZodNumber;
16819
+ }, z$1.core.$strict>;
16820
+ }, z$1.core.$strip>;
16821
+ type ThreadTimelineResponse = z$1.infer<typeof threadTimelineResponseSchema>;
16822
+ declare const threadTimelineReadResponseSchema: z$1.ZodUnion<readonly [z$1.ZodObject<{
16823
+ delta: z$1.ZodObject<{
16824
+ afterTag: z$1.ZodString;
16825
+ fields: z$1.ZodObject<{
16826
+ activeBackgroundCommands: z$1.ZodOptional<z$1.ZodArray<z$1.ZodObject<{
16827
+ completedAt: z$1.ZodNullable<z$1.ZodNumber>;
16828
+ createdAt: z$1.ZodNumber;
16829
+ description: z$1.ZodString;
16830
+ error: z$1.ZodNullable<z$1.ZodString>;
16831
+ id: z$1.ZodString;
16832
+ itemId: z$1.ZodString;
16833
+ kind: z$1.ZodLiteral<"work">;
16834
+ model: z$1.ZodNullable<z$1.ZodString>;
16835
+ presentation: z$1.ZodOptional<z$1.ZodObject<{
16836
+ badge: z$1.ZodOptional<z$1.ZodObject<{
16837
+ glyph: z$1.ZodString;
16838
+ hint: z$1.ZodString;
16839
+ label: z$1.ZodString;
16840
+ tone: z$1.ZodEnum<{
16841
+ destructive: "destructive";
16842
+ neutral: "neutral";
16843
+ }>;
16844
+ }, z$1.core.$strip>>;
16845
+ detail: z$1.ZodOptional<z$1.ZodString>;
16846
+ icon: z$1.ZodObject<{
16847
+ glyph: z$1.ZodString;
16848
+ }, z$1.core.$strip>;
16849
+ label: z$1.ZodObject<{
16850
+ completed: z$1.ZodString;
16851
+ pending: z$1.ZodString;
16852
+ }, z$1.core.$strip>;
16853
+ suppress: z$1.ZodOptional<z$1.ZodBoolean>;
16854
+ tint: z$1.ZodOptional<z$1.ZodObject<{
16855
+ dark: z$1.ZodString;
16856
+ light: z$1.ZodString;
16857
+ }, z$1.core.$strip>>;
16858
+ title: z$1.ZodOptional<z$1.ZodString>;
16859
+ }, z$1.core.$strip>>;
16860
+ sourceSeqEnd: z$1.ZodNumber;
16861
+ sourceSeqStart: z$1.ZodNumber;
16862
+ startedAt: z$1.ZodNumber;
16863
+ status: z$1.ZodEnum<{
16864
+ completed: "completed";
16865
+ error: "error";
16866
+ interrupted: "interrupted";
16867
+ pending: "pending";
16868
+ }>;
16869
+ summary: z$1.ZodNullable<z$1.ZodString>;
16870
+ taskStatus: z$1.ZodEnum<{
16871
+ completed: "completed";
16872
+ failed: "failed";
16873
+ killed: "killed";
16874
+ paused: "paused";
16875
+ pending: "pending";
16876
+ running: "running";
16877
+ stopped: "stopped";
16878
+ }>;
16879
+ taskType: z$1.ZodString;
16880
+ threadId: z$1.ZodString;
16881
+ turnId: z$1.ZodNullable<z$1.ZodString>;
16633
16882
  usage: z$1.ZodNullable<z$1.ZodObject<{
16634
16883
  durationMs: z$1.ZodNumber;
16635
16884
  toolUses: z$1.ZodNumber;
@@ -16838,6 +17087,170 @@ declare const threadTimelineReadResponseSchema: z$1.ZodUnion<readonly [z$1.ZodOb
16838
17087
  }>;
16839
17088
  sourceSeq: z$1.ZodNumber;
16840
17089
  }, z$1.core.$strip>>>;
17090
+ pendingSteers: z$1.ZodOptional<z$1.ZodArray<z$1.ZodObject<{
17091
+ attachments: z$1.ZodNullable<z$1.ZodObject<{
17092
+ imageUrls: z$1.ZodArray<z$1.ZodString>;
17093
+ localFileDetails: z$1.ZodArray<z$1.ZodObject<{
17094
+ name: z$1.ZodString;
17095
+ path: z$1.ZodString;
17096
+ sizeBytes: z$1.ZodNullable<z$1.ZodNumber>;
17097
+ }, z$1.core.$strip>>;
17098
+ localFilePaths: z$1.ZodArray<z$1.ZodString>;
17099
+ localFiles: z$1.ZodNumber;
17100
+ localImagePaths: z$1.ZodArray<z$1.ZodString>;
17101
+ localImages: z$1.ZodNumber;
17102
+ webImages: z$1.ZodNumber;
17103
+ }, z$1.core.$strip>>;
17104
+ createdAt: z$1.ZodNumber;
17105
+ id: z$1.ZodString;
17106
+ initiator: z$1.ZodEnum<{
17107
+ agent: "agent";
17108
+ system: "system";
17109
+ user: "user";
17110
+ }>;
17111
+ kind: z$1.ZodLiteral<"conversation">;
17112
+ mentions: z$1.ZodArray<z$1.ZodObject<{
17113
+ end: z$1.ZodNumber;
17114
+ resource: z$1.ZodPreprocess<z$1.ZodDiscriminatedUnion<[z$1.ZodObject<{
17115
+ kind: z$1.ZodLiteral<"thread">;
17116
+ label: z$1.ZodString;
17117
+ projectId: z$1.ZodOptional<z$1.ZodString>;
17118
+ threadId: z$1.ZodString;
17119
+ }, z$1.core.$strip>, z$1.ZodObject<{
17120
+ kind: z$1.ZodLiteral<"project">;
17121
+ label: z$1.ZodString;
17122
+ projectId: z$1.ZodString;
17123
+ }, z$1.core.$strip>, z$1.ZodObject<{
17124
+ kind: z$1.ZodLiteral<"section">;
17125
+ label: z$1.ZodString;
17126
+ sectionId: z$1.ZodString;
17127
+ }, z$1.core.$strip>, z$1.ZodObject<{
17128
+ entryKind: z$1.ZodEnum<{
17129
+ directory: "directory";
17130
+ file: "file";
17131
+ }>;
17132
+ kind: z$1.ZodLiteral<"path">;
17133
+ label: z$1.ZodString;
17134
+ path: z$1.ZodString;
17135
+ source: z$1.ZodEnum<{
17136
+ "thread-storage": "thread-storage";
17137
+ workspace: "workspace";
17138
+ }>;
17139
+ }, z$1.core.$strip>, z$1.ZodObject<{
17140
+ argumentHint: z$1.ZodNullable<z$1.ZodString>;
17141
+ kind: z$1.ZodLiteral<"command">;
17142
+ label: z$1.ZodString;
17143
+ name: z$1.ZodString;
17144
+ origin: z$1.ZodEnum<{
17145
+ builtin: "builtin";
17146
+ project: "project";
17147
+ user: "user";
17148
+ }>;
17149
+ source: z$1.ZodEnum<{
17150
+ command: "command";
17151
+ skill: "skill";
17152
+ }>;
17153
+ trigger: z$1.ZodEnum<{
17154
+ "/": "/";
17155
+ $: "$";
17156
+ }>;
17157
+ }, z$1.core.$strip>, z$1.ZodObject<{
17158
+ icon: z$1.ZodOptional<z$1.ZodNullable<z$1.ZodString>>;
17159
+ itemId: z$1.ZodString;
17160
+ kind: z$1.ZodLiteral<"plugin">;
17161
+ label: z$1.ZodString;
17162
+ pluginId: z$1.ZodString;
17163
+ }, z$1.core.$strip>, z$1.ZodObject<{
17164
+ kind: z$1.ZodLiteral<"attachment">;
17165
+ label: z$1.ZodString;
17166
+ path: z$1.ZodString;
17167
+ }, z$1.core.$strip>], "kind">, unknown>;
17168
+ start: z$1.ZodNumber;
17169
+ }, z$1.core.$strip>>;
17170
+ messageSeq: z$1.ZodNumber;
17171
+ role: z$1.ZodLiteral<"user">;
17172
+ senderThreadId: z$1.ZodNullable<z$1.ZodString>;
17173
+ sourceSeqEnd: z$1.ZodNumber;
17174
+ sourceSeqStart: z$1.ZodNumber;
17175
+ startedAt: z$1.ZodNumber;
17176
+ systemMessageKind: z$1.ZodEnum<{
17177
+ "child-completed": "child-completed";
17178
+ "child-failed": "child-failed";
17179
+ "child-interrupted": "child-interrupted";
17180
+ "child-needs-attention": "child-needs-attention";
17181
+ "child-outcome-batch": "child-outcome-batch";
17182
+ "environment-directory-updated": "environment-directory-updated";
17183
+ "ownership-assigned": "ownership-assigned";
17184
+ "ownership-batch": "ownership-batch";
17185
+ "ownership-removed": "ownership-removed";
17186
+ "tool-result-delivered": "tool-result-delivered";
17187
+ unlabeled: "unlabeled";
17188
+ }>;
17189
+ systemMessageSubject: z$1.ZodNullable<z$1.ZodDiscriminatedUnion<[z$1.ZodObject<{
17190
+ kind: z$1.ZodLiteral<"thread">;
17191
+ outcomes: z$1.ZodOptional<z$1.ZodArray<z$1.ZodObject<{
17192
+ interruption: z$1.ZodOptional<z$1.ZodObject<{
17193
+ cause: z$1.ZodOptional<z$1.ZodLiteral<"host-connection-lost">>;
17194
+ reason: z$1.ZodEnum<{
17195
+ "host-daemon-restarted": "host-daemon-restarted";
17196
+ "host-removed": "host-removed";
17197
+ "manual-stop": "manual-stop";
17198
+ "provider-turn-idle": "provider-turn-idle";
17199
+ }>;
17200
+ }, z$1.core.$strip>>;
17201
+ status: z$1.ZodEnum<{
17202
+ completed: "completed";
17203
+ failed: "failed";
17204
+ interrupted: "interrupted";
17205
+ }>;
17206
+ threadId: z$1.ZodString;
17207
+ }, z$1.core.$strip>>>;
17208
+ threadId: z$1.ZodString;
17209
+ threadName: z$1.ZodString;
17210
+ }, z$1.core.$strip>, z$1.ZodObject<{
17211
+ count: z$1.ZodNumber;
17212
+ kind: z$1.ZodLiteral<"thread-batch">;
17213
+ outcomes: z$1.ZodOptional<z$1.ZodArray<z$1.ZodObject<{
17214
+ interruption: z$1.ZodOptional<z$1.ZodObject<{
17215
+ cause: z$1.ZodOptional<z$1.ZodLiteral<"host-connection-lost">>;
17216
+ reason: z$1.ZodEnum<{
17217
+ "host-daemon-restarted": "host-daemon-restarted";
17218
+ "host-removed": "host-removed";
17219
+ "manual-stop": "manual-stop";
17220
+ "provider-turn-idle": "provider-turn-idle";
17221
+ }>;
17222
+ }, z$1.core.$strip>>;
17223
+ status: z$1.ZodEnum<{
17224
+ completed: "completed";
17225
+ failed: "failed";
17226
+ interrupted: "interrupted";
17227
+ }>;
17228
+ threadId: z$1.ZodString;
17229
+ }, z$1.core.$strip>>>;
17230
+ }, z$1.core.$strip>, z$1.ZodObject<{
17231
+ kind: z$1.ZodLiteral<"tool-call">;
17232
+ suppress: z$1.ZodBoolean;
17233
+ toolName: z$1.ZodString;
17234
+ }, z$1.core.$strip>, z$1.ZodObject<{
17235
+ kind: z$1.ZodLiteral<"directory">;
17236
+ path: z$1.ZodString;
17237
+ }, z$1.core.$strip>], "kind">>;
17238
+ text: z$1.ZodString;
17239
+ threadId: z$1.ZodString;
17240
+ turnId: z$1.ZodNullable<z$1.ZodString>;
17241
+ turnRequest: z$1.ZodObject<{
17242
+ isGrouped: z$1.ZodBoolean;
17243
+ kind: z$1.ZodEnum<{
17244
+ message: "message";
17245
+ steer: "steer";
17246
+ }>;
17247
+ status: z$1.ZodEnum<{
17248
+ accepted: "accepted";
17249
+ pending: "pending";
17250
+ rejected: "rejected";
17251
+ }>;
17252
+ }, z$1.core.$strip>;
17253
+ }, z$1.core.$strip>>>;
16841
17254
  pendingTodos: z$1.ZodOptional<z$1.ZodNullable<z$1.ZodObject<{
16842
17255
  items: z$1.ZodArray<z$1.ZodObject<{
16843
17256
  id: z$1.ZodString;
@@ -17174,6 +17587,170 @@ declare const threadTimelineReadResponseSchema: z$1.ZodUnion<readonly [z$1.ZodOb
17174
17587
  }>;
17175
17588
  sourceSeq: z$1.ZodNumber;
17176
17589
  }, z$1.core.$strip>>;
17590
+ pendingSteers: z$1.ZodArray<z$1.ZodObject<{
17591
+ attachments: z$1.ZodNullable<z$1.ZodObject<{
17592
+ imageUrls: z$1.ZodArray<z$1.ZodString>;
17593
+ localFileDetails: z$1.ZodArray<z$1.ZodObject<{
17594
+ name: z$1.ZodString;
17595
+ path: z$1.ZodString;
17596
+ sizeBytes: z$1.ZodNullable<z$1.ZodNumber>;
17597
+ }, z$1.core.$strip>>;
17598
+ localFilePaths: z$1.ZodArray<z$1.ZodString>;
17599
+ localFiles: z$1.ZodNumber;
17600
+ localImagePaths: z$1.ZodArray<z$1.ZodString>;
17601
+ localImages: z$1.ZodNumber;
17602
+ webImages: z$1.ZodNumber;
17603
+ }, z$1.core.$strip>>;
17604
+ createdAt: z$1.ZodNumber;
17605
+ id: z$1.ZodString;
17606
+ initiator: z$1.ZodEnum<{
17607
+ agent: "agent";
17608
+ system: "system";
17609
+ user: "user";
17610
+ }>;
17611
+ kind: z$1.ZodLiteral<"conversation">;
17612
+ mentions: z$1.ZodArray<z$1.ZodObject<{
17613
+ end: z$1.ZodNumber;
17614
+ resource: z$1.ZodPreprocess<z$1.ZodDiscriminatedUnion<[z$1.ZodObject<{
17615
+ kind: z$1.ZodLiteral<"thread">;
17616
+ label: z$1.ZodString;
17617
+ projectId: z$1.ZodOptional<z$1.ZodString>;
17618
+ threadId: z$1.ZodString;
17619
+ }, z$1.core.$strip>, z$1.ZodObject<{
17620
+ kind: z$1.ZodLiteral<"project">;
17621
+ label: z$1.ZodString;
17622
+ projectId: z$1.ZodString;
17623
+ }, z$1.core.$strip>, z$1.ZodObject<{
17624
+ kind: z$1.ZodLiteral<"section">;
17625
+ label: z$1.ZodString;
17626
+ sectionId: z$1.ZodString;
17627
+ }, z$1.core.$strip>, z$1.ZodObject<{
17628
+ entryKind: z$1.ZodEnum<{
17629
+ directory: "directory";
17630
+ file: "file";
17631
+ }>;
17632
+ kind: z$1.ZodLiteral<"path">;
17633
+ label: z$1.ZodString;
17634
+ path: z$1.ZodString;
17635
+ source: z$1.ZodEnum<{
17636
+ "thread-storage": "thread-storage";
17637
+ workspace: "workspace";
17638
+ }>;
17639
+ }, z$1.core.$strip>, z$1.ZodObject<{
17640
+ argumentHint: z$1.ZodNullable<z$1.ZodString>;
17641
+ kind: z$1.ZodLiteral<"command">;
17642
+ label: z$1.ZodString;
17643
+ name: z$1.ZodString;
17644
+ origin: z$1.ZodEnum<{
17645
+ builtin: "builtin";
17646
+ project: "project";
17647
+ user: "user";
17648
+ }>;
17649
+ source: z$1.ZodEnum<{
17650
+ command: "command";
17651
+ skill: "skill";
17652
+ }>;
17653
+ trigger: z$1.ZodEnum<{
17654
+ "/": "/";
17655
+ $: "$";
17656
+ }>;
17657
+ }, z$1.core.$strip>, z$1.ZodObject<{
17658
+ icon: z$1.ZodOptional<z$1.ZodNullable<z$1.ZodString>>;
17659
+ itemId: z$1.ZodString;
17660
+ kind: z$1.ZodLiteral<"plugin">;
17661
+ label: z$1.ZodString;
17662
+ pluginId: z$1.ZodString;
17663
+ }, z$1.core.$strip>, z$1.ZodObject<{
17664
+ kind: z$1.ZodLiteral<"attachment">;
17665
+ label: z$1.ZodString;
17666
+ path: z$1.ZodString;
17667
+ }, z$1.core.$strip>], "kind">, unknown>;
17668
+ start: z$1.ZodNumber;
17669
+ }, z$1.core.$strip>>;
17670
+ messageSeq: z$1.ZodNumber;
17671
+ role: z$1.ZodLiteral<"user">;
17672
+ senderThreadId: z$1.ZodNullable<z$1.ZodString>;
17673
+ sourceSeqEnd: z$1.ZodNumber;
17674
+ sourceSeqStart: z$1.ZodNumber;
17675
+ startedAt: z$1.ZodNumber;
17676
+ systemMessageKind: z$1.ZodEnum<{
17677
+ "child-completed": "child-completed";
17678
+ "child-failed": "child-failed";
17679
+ "child-interrupted": "child-interrupted";
17680
+ "child-needs-attention": "child-needs-attention";
17681
+ "child-outcome-batch": "child-outcome-batch";
17682
+ "environment-directory-updated": "environment-directory-updated";
17683
+ "ownership-assigned": "ownership-assigned";
17684
+ "ownership-batch": "ownership-batch";
17685
+ "ownership-removed": "ownership-removed";
17686
+ "tool-result-delivered": "tool-result-delivered";
17687
+ unlabeled: "unlabeled";
17688
+ }>;
17689
+ systemMessageSubject: z$1.ZodNullable<z$1.ZodDiscriminatedUnion<[z$1.ZodObject<{
17690
+ kind: z$1.ZodLiteral<"thread">;
17691
+ outcomes: z$1.ZodOptional<z$1.ZodArray<z$1.ZodObject<{
17692
+ interruption: z$1.ZodOptional<z$1.ZodObject<{
17693
+ cause: z$1.ZodOptional<z$1.ZodLiteral<"host-connection-lost">>;
17694
+ reason: z$1.ZodEnum<{
17695
+ "host-daemon-restarted": "host-daemon-restarted";
17696
+ "host-removed": "host-removed";
17697
+ "manual-stop": "manual-stop";
17698
+ "provider-turn-idle": "provider-turn-idle";
17699
+ }>;
17700
+ }, z$1.core.$strip>>;
17701
+ status: z$1.ZodEnum<{
17702
+ completed: "completed";
17703
+ failed: "failed";
17704
+ interrupted: "interrupted";
17705
+ }>;
17706
+ threadId: z$1.ZodString;
17707
+ }, z$1.core.$strip>>>;
17708
+ threadId: z$1.ZodString;
17709
+ threadName: z$1.ZodString;
17710
+ }, z$1.core.$strip>, z$1.ZodObject<{
17711
+ count: z$1.ZodNumber;
17712
+ kind: z$1.ZodLiteral<"thread-batch">;
17713
+ outcomes: z$1.ZodOptional<z$1.ZodArray<z$1.ZodObject<{
17714
+ interruption: z$1.ZodOptional<z$1.ZodObject<{
17715
+ cause: z$1.ZodOptional<z$1.ZodLiteral<"host-connection-lost">>;
17716
+ reason: z$1.ZodEnum<{
17717
+ "host-daemon-restarted": "host-daemon-restarted";
17718
+ "host-removed": "host-removed";
17719
+ "manual-stop": "manual-stop";
17720
+ "provider-turn-idle": "provider-turn-idle";
17721
+ }>;
17722
+ }, z$1.core.$strip>>;
17723
+ status: z$1.ZodEnum<{
17724
+ completed: "completed";
17725
+ failed: "failed";
17726
+ interrupted: "interrupted";
17727
+ }>;
17728
+ threadId: z$1.ZodString;
17729
+ }, z$1.core.$strip>>>;
17730
+ }, z$1.core.$strip>, z$1.ZodObject<{
17731
+ kind: z$1.ZodLiteral<"tool-call">;
17732
+ suppress: z$1.ZodBoolean;
17733
+ toolName: z$1.ZodString;
17734
+ }, z$1.core.$strip>, z$1.ZodObject<{
17735
+ kind: z$1.ZodLiteral<"directory">;
17736
+ path: z$1.ZodString;
17737
+ }, z$1.core.$strip>], "kind">>;
17738
+ text: z$1.ZodString;
17739
+ threadId: z$1.ZodString;
17740
+ turnId: z$1.ZodNullable<z$1.ZodString>;
17741
+ turnRequest: z$1.ZodObject<{
17742
+ isGrouped: z$1.ZodBoolean;
17743
+ kind: z$1.ZodEnum<{
17744
+ message: "message";
17745
+ steer: "steer";
17746
+ }>;
17747
+ status: z$1.ZodEnum<{
17748
+ accepted: "accepted";
17749
+ pending: "pending";
17750
+ rejected: "rejected";
17751
+ }>;
17752
+ }, z$1.core.$strip>;
17753
+ }, z$1.core.$strip>>;
17177
17754
  pendingTodos: z$1.ZodNullable<z$1.ZodObject<{
17178
17755
  items: z$1.ZodArray<z$1.ZodObject<{
17179
17756
  id: z$1.ZodString;
@@ -17653,6 +18230,23 @@ declare const deleteOldServerCopyResponseSchema: z$1.ZodObject<{
17653
18230
  }, z$1.core.$strict>;
17654
18231
  type DeleteOldServerCopyResponse = z$1.infer<typeof deleteOldServerCopyResponseSchema>;
17655
18232
 
18233
+ declare const serverSweepFailuresResponseSchema: z$1.ZodObject<{
18234
+ failures: z$1.ZodArray<z$1.ZodObject<{
18235
+ attempts: z$1.ZodNumber;
18236
+ firstFailedAt: z$1.ZodNumber;
18237
+ itemKey: z$1.ZodString;
18238
+ lastError: z$1.ZodString;
18239
+ needsRecovery: z$1.ZodBoolean;
18240
+ retryAt: z$1.ZodNumber;
18241
+ sweep: z$1.ZodString;
18242
+ }, z$1.core.$strict>>;
18243
+ }, z$1.core.$strict>;
18244
+ type ServerSweepFailuresResponse = z$1.infer<typeof serverSweepFailuresResponseSchema>;
18245
+ declare const serverSweepRetryResponseSchema: z$1.ZodObject<{
18246
+ retried: z$1.ZodNumber;
18247
+ }, z$1.core.$strict>;
18248
+ type ServerSweepRetryResponse = z$1.infer<typeof serverSweepRetryResponseSchema>;
18249
+
17656
18250
  declare const threadTabsResponseSchema: z$1.ZodObject<{
17657
18251
  revision: z$1.ZodNumber;
17658
18252
  tabs: z$1.ZodArray<z$1.ZodDiscriminatedUnion<[z$1.ZodObject<{
@@ -18078,9 +18672,7 @@ type EnvironmentListResult = Environment[];
18078
18672
  interface EnvironmentDeleteArgs {
18079
18673
  environmentId: string;
18080
18674
  }
18081
- type EnvironmentDeleteResult = {
18082
- ok: true;
18083
- };
18675
+ type EnvironmentDeleteResult = OperationResponse;
18084
18676
  interface EnvironmentListProvidersArgs {
18085
18677
  projectId?: string;
18086
18678
  hostId?: string;
@@ -18090,9 +18682,7 @@ type EnvironmentListProvidersResult = SystemEnvironmentProvider[];
18090
18682
  interface EnvironmentsArea {
18091
18683
  experimental_cleanup(args: EnvironmentActionArgs & {
18092
18684
  recover?: boolean;
18093
- }): Promise<{
18094
- ok: true;
18095
- }>;
18685
+ }): Promise<OperationResponse>;
18096
18686
  archiveThreads(args: EnvironmentActionArgs): Promise<EnvironmentArchiveThreadsResult>;
18097
18687
  commit(args: EnvironmentCommitArgs): Promise<EnvironmentCommitResult>;
18098
18688
  get(args: EnvironmentGetArgs): Promise<EnvironmentGetResult>;
@@ -18265,9 +18855,7 @@ interface MachineProviderListArgs {
18265
18855
  signal?: AbortSignal;
18266
18856
  }
18267
18857
  type HostCreateJoinCodeResult = CreateHostJoinCodeResponse;
18268
- type HostDeleteResult = {
18269
- ok: true;
18270
- };
18858
+ type HostDeleteResult = HostRemovalResponse;
18271
18859
  type HostDirectoryResult = HostDirectoryListing;
18272
18860
  type HostDiscoverReposResult = HostDiscoveredReposResponse;
18273
18861
  type HostGetResult = Host & {
@@ -18283,7 +18871,7 @@ type HostPathsExistResult = HostPathsExistResponse;
18283
18871
  type HostPickFolderResult = HostPickFolderResponse;
18284
18872
  type HostProviderCliStatusResult = HostProviderCliStatusResponse;
18285
18873
  type HostRetryUpdateResult = HostRetryUpdateResponse;
18286
- type HostActionResult = HostActionResponse;
18874
+ type HostRetryCleanupResult = HostRemovalResponse;
18287
18875
  type HostUpdateResult = Host;
18288
18876
  type MachineProviderListResult = SystemMachineProvider[];
18289
18877
  interface HostsArea {
@@ -18307,7 +18895,7 @@ interface HostsArea {
18307
18895
  pickFolder(args: HostPickFolderArgs): Promise<HostPickFolderResult>;
18308
18896
  providerCliStatus(args: HostProviderCliStatusArgs): Promise<HostProviderCliStatusResult>;
18309
18897
  experimental_resume(args: HostActionArgs): Promise<Host>;
18310
- experimental_retryCleanup(args: HostActionArgs): Promise<HostActionResult>;
18898
+ experimental_retryCleanup(args: HostActionArgs): Promise<HostRetryCleanupResult>;
18311
18899
  retryUpdate(args: HostRetryUpdateArgs): Promise<HostRetryUpdateResult>;
18312
18900
  experimental_suspend(args: HostActionArgs): Promise<Host>;
18313
18901
  experimental_reconcile(args: HostActionArgs): Promise<Host>;
@@ -18323,6 +18911,9 @@ interface ServerMoveStatusArgs {
18323
18911
  interface ServerExportArgs {
18324
18912
  signal?: AbortSignal;
18325
18913
  }
18914
+ interface ServerSweepFailuresArgs {
18915
+ signal?: AbortSignal;
18916
+ }
18326
18917
  interface ServerExportResult {
18327
18918
  fileName: string;
18328
18919
  body: ReadableStream<Uint8Array>;
@@ -18334,6 +18925,8 @@ interface ExperimentalServerArea {
18334
18925
  moveStatus(args?: ServerMoveStatusArgs): Promise<ServerMoveStatusResponse>;
18335
18926
  cancelMove(): Promise<ServerMoveStatus>;
18336
18927
  export(args?: ServerExportArgs): Promise<ServerExportResult>;
18928
+ sweepFailures(args?: ServerSweepFailuresArgs): Promise<ServerSweepFailuresResponse>;
18929
+ retrySweepFailures(): Promise<ServerSweepRetryResponse>;
18337
18930
  }
18338
18931
 
18339
18932
  interface ProjectListArgs {
@@ -18443,9 +19036,7 @@ type ProjectAttachmentUploadResult = UploadedPromptAttachment;
18443
19036
  type ProjectCommandsResult = CommandListResponse;
18444
19037
  type ProjectCreateResult = ProjectResponse;
18445
19038
  type ProjectDefaultExecutionOptionsResult = ProjectExecutionDefaults | null;
18446
- type ProjectDeleteResult = {
18447
- ok: true;
18448
- };
19039
+ type ProjectDeleteResult = OperationResponse;
18449
19040
  interface ProjectFileContentResult {
18450
19041
  content: string;
18451
19042
  contentEncoding: "base64" | "utf8";
@@ -18460,9 +19051,7 @@ type ProjectPromptHistoryResult = PromptHistoryResponse;
18460
19051
  type ProjectReorderResult = ProjectResponse[];
18461
19052
  type ProjectSidebarBootstrapResult = SidebarBootstrapResponse;
18462
19053
  type ProjectSourceAddResult = ProjectSource;
18463
- type ProjectSourceDeleteResult = {
18464
- ok: true;
18465
- };
19054
+ type ProjectSourceDeleteResult = OperationResponse;
18466
19055
  type ProjectSourceUpdateResult = ProjectSource;
18467
19056
  type ProjectUpdateResult = ProjectResponse;
18468
19057
  interface ProjectSourcesArea {
@@ -18471,7 +19060,7 @@ interface ProjectSourcesArea {
18471
19060
  update(args: ProjectSourceUpdateArgs): Promise<ProjectSourceUpdateResult>;
18472
19061
  }
18473
19062
  interface ProjectAttachmentsArea {
18474
- copy(args: ProjectAttachmentCopyArgs): Promise<void>;
19063
+ copy(args: ProjectAttachmentCopyArgs): Promise<OperationResponse>;
18475
19064
  read(args: ProjectAttachmentReadArgs): Promise<ProjectAttachmentReadResult>;
18476
19065
  upload(args: ProjectAttachmentUploadArgs): Promise<ProjectAttachmentUploadResult>;
18477
19066
  }
@@ -19245,24 +19834,16 @@ type ThreadTimelineReadResult = ThreadTimelineReadResponse;
19245
19834
  type ThreadArchiveResult = ThreadArchiveAllResponse;
19246
19835
  type ThreadOpenResult = ThreadOpenResponse;
19247
19836
  type ThreadPaneActionResult = ThreadPaneActionResponse;
19248
- type ThreadDeleteResult = {
19249
- ok: true;
19250
- };
19837
+ type ThreadDeleteResult = OperationResponse;
19251
19838
  type ThreadSendResult = SendMessageResponse;
19252
19839
  type ThreadRetryResult = RetryTurnResponse;
19253
19840
  type ThreadEditMessageResult = EditMessageResponse;
19254
- type ThreadStopResult = {
19255
- ok: true;
19256
- };
19257
- type ThreadCompactResult = {
19258
- ok: true;
19259
- };
19260
- type ThreadBannerActionResult = {
19261
- ok: true;
19262
- };
19263
- type ThreadUnarchiveResult = {
19264
- ok: true;
19841
+ type ThreadStopResult = OperationResponse & {
19842
+ status: ThreadStatus;
19265
19843
  };
19844
+ type ThreadCompactResult = OperationResponse;
19845
+ type ThreadBannerActionResult = OperationResponse;
19846
+ type ThreadUnarchiveResult = OperationResponse;
19266
19847
  type ThreadArchiveAllResult = ThreadArchiveAllResponse;
19267
19848
  type ThreadReadStateResult = ThreadResponse;
19268
19849
  type ThreadRestoreEnvironmentResult = ThreadResponse;
@@ -19271,13 +19852,9 @@ type ThreadPromptHistoryResult = PromptHistoryResponse;
19271
19852
  type ThreadQueuedMessagesResult = ThreadQueuedMessageListResponse;
19272
19853
  type ThreadQueuedMessageCreateResult = ThreadQueuedMessage;
19273
19854
  type ThreadQueuedMessageUpdateResult = ThreadQueuedMessage;
19274
- type ThreadQueuedMessageDeleteResult = {
19275
- ok: true;
19276
- };
19855
+ type ThreadQueuedMessageDeleteResult = OperationResponse;
19277
19856
  type ThreadQueuedMessageEditHoldResult = QueuedMessageEditHoldResponse;
19278
- type ThreadQueuedMessageEditHoldReleaseResult = {
19279
- ok: true;
19280
- };
19857
+ type ThreadQueuedMessageEditHoldReleaseResult = OperationResponse;
19281
19858
  type ThreadQueuedMessageReorderResult = ThreadQueuedMessageListResponse;
19282
19859
  type ThreadQueuedMessageSendResult = SendQueuedMessageResponse;
19283
19860
  type ThreadQueuedMessageGroupBoundaryResult = ThreadQueuedMessageListResponse;
@@ -20185,6 +20762,36 @@ interface PluginStorage {
20185
20762
  */
20186
20763
  migrate(db: Database.Database, statements: string[]): void;
20187
20764
  }
20765
+ /**
20766
+ * One terminal outcome of the work on a thread, in a single union so a plugin
20767
+ * that keeps a record per run handles every way that work can end in one
20768
+ * exhaustive `switch`. Experimental: see docs/api_to_audit.md.
20769
+ *
20770
+ * - `completed`: the thread went idle; `lastAssistantText` as on `thread.idle`.
20771
+ * - `failed`: the thread landed in `error`; `error` as on `thread.failed`.
20772
+ * - `cancelled`: a queued message was removed before it dispatched; `entry`
20773
+ * is that message, so `entry.originPluginId` says whose it was.
20774
+ * - `archived` / `deleted`: the thread itself is gone.
20775
+ */
20776
+ type PluginThreadSettledEvent = {
20777
+ outcome: "completed";
20778
+ thread: ThreadResponse;
20779
+ lastAssistantText: string | null;
20780
+ } | {
20781
+ outcome: "failed";
20782
+ thread: ThreadResponse;
20783
+ error: string | null;
20784
+ } | {
20785
+ outcome: "cancelled";
20786
+ thread: ThreadResponse;
20787
+ entry: ThreadQueuedMessage;
20788
+ } | {
20789
+ outcome: "archived";
20790
+ thread: ThreadResponse;
20791
+ } | {
20792
+ outcome: "deleted";
20793
+ thread: ThreadResponse;
20794
+ };
20188
20795
  /**
20189
20796
  * Why a turn failed, assembled by core from the failed turn's own records so a
20190
20797
  * listener never has to replay the event log to find out.
@@ -20386,6 +20993,13 @@ interface PluginThreadEventPayloads {
20386
20993
  "message.cancelled": {
20387
20994
  entry: ThreadQueuedMessage;
20388
20995
  };
20996
+ /**
20997
+ * Fired with every `thread.idle`, `thread.failed`, `thread.archived` and
20998
+ * `thread.deleted`, and with every `message.cancelled` whose thread still
20999
+ * exists, as one {@link PluginThreadSettledEvent}. Experimental: see
21000
+ * docs/api_to_audit.md.
21001
+ */
21002
+ "experimental_thread.settled": PluginThreadSettledEvent;
20389
21003
  }
20390
21004
  type PluginThreadEventName = keyof PluginThreadEventPayloads;
20391
21005
  type PluginThreadEventHandler<E extends PluginThreadEventName> = (payload: PluginThreadEventPayloads[E]) => void | Promise<void>;
@@ -21739,7 +22353,12 @@ interface PluginUi {
21739
22353
  interface PluginEvents {
21740
22354
  /**
21741
22355
  * Add a thread lifecycle listener. Multiple listeners for the same event are
21742
- * additive and run independently in registration order.
22356
+ * additive and run independently in registration order. Events for a thread
22357
+ * that this plugin's own `bb.sdk.threads.spawn` or `bb.sdk.threads.fork`
22358
+ * call may have created wait until that call has returned to the plugin,
22359
+ * and keep their order. Record the returned thread before your next
22360
+ * `await` and its `thread.idle` or `thread.failed` finds the record, even
22361
+ * when the turn ends before the call returns.
21743
22362
  */
21744
22363
  on<E extends PluginThreadEventName>(event: E, handler: PluginThreadEventHandler<E>): void;
21745
22364
  }
@@ -21768,36 +22387,6 @@ interface PluginServerApi {
21768
22387
  * not a place to write.
21769
22388
  */
21770
22389
  readonly experimental_dataDir: string;
21771
- /**
21772
- * Internal to bb's own connect plugins. Do not use: it is not part of the
21773
- * plugin API and may change or disappear in any release.
21774
- *
21775
- * Open (or share) this server's tunnel ingress for `audience`, a private
21776
- * listener on 127.0.0.1 with an ephemeral port. For a plugin that runs a
21777
- * tunnel client for bb connect next: point the client at `baseUrl`.
21778
- *
21779
- * Every HTTP request and WebSocket upgrade must carry an
21780
- * `x-bb-gate-assertion` signed by the bb connect gate for `audience`
21781
- * (`server:<serverId>`), the request method and the exact path and query;
21782
- * anything else is answered 401. A verified request reaches the same app
21783
- * as `loopbackBaseUrl`, authenticated only by the gate's claims.
21784
- *
21785
- * Opening the same audience again shares the listener; it stops when every
21786
- * handle is closed. Handles close when the plugin is disabled or unloaded.
21787
- */
21788
- internal_DO_NOT_USE_openTunnelIngress(options: InternalDoNotUsePluginTunnelIngressOptions): Promise<InternalDoNotUsePluginTunnelIngress>;
21789
- }
21790
- /** Options for `bb.server.internal_DO_NOT_USE_openTunnelIngress`. */
21791
- interface InternalDoNotUsePluginTunnelIngressOptions {
21792
- /** The gate assertion audience this ingress accepts, e.g. `server:<id>`. */
21793
- audience: string;
21794
- }
21795
- /** A handle on an open tunnel ingress. */
21796
- interface InternalDoNotUsePluginTunnelIngress {
21797
- /** Base URL of the ingress listener, e.g. "http://127.0.0.1:41234". */
21798
- readonly baseUrl: string;
21799
- /** Release this handle; idempotent. */
21800
- close(): Promise<void>;
21801
22390
  }
21802
22391
  /** Options for one `complete` call. */
21803
22392
  interface PluginAiCompleteOptions {
@@ -21881,45 +22470,6 @@ interface PluginSharedPortTunnelIdentity {
21881
22470
  /** Gate apex without a scheme, e.g. "getbb.app". */
21882
22471
  baseDomain: string;
21883
22472
  }
21884
- /** The frp server a machine's next tunnel dials. */
21885
- interface InternalDoNotUsePluginNextTunnelServer {
21886
- /** `wss` for TLS, `websocket` for plain `ws://` (local runs only). */
21887
- protocol: "websocket" | "wss";
21888
- /** Host name without a port, e.g. "tunnel.next.getbb.app". */
21889
- host: string;
21890
- port: number;
21891
- }
21892
- /** Where every eligible machine serves its port shares through bb connect next. */
21893
- interface InternalDoNotUsePluginNextTunnelConfig {
21894
- /**
21895
- * Next domain without a scheme, with a port only for local runs, e.g.
21896
- * "next.getbb.app". A share answers at `<machine-label>--<port>.<domain>`.
21897
- */
21898
- domain: string;
21899
- server: InternalDoNotUsePluginNextTunnelServer;
21900
- }
21901
- /** One machine's next tunnel, as its daemon last reported it. */
21902
- interface InternalDoNotUsePluginHostNextTunnelStatus {
21903
- hostId: string;
21904
- hostName: string;
21905
- /**
21906
- * `idle` while the machine shares no port or next is off, `refused` when
21907
- * the gate refused the machine credential (retried after five minutes),
21908
- * `offline` when the gate cannot be reached (retried with backoff),
21909
- * `error` when the daemon could not start frpc or refused the configuration.
21910
- */
21911
- state: "connected" | "connecting" | "error" | "idle" | "offline" | "refused";
21912
- /** The machine's gate label, or null before the daemon learned it. */
21913
- label: string | null;
21914
- lastError: string | null;
21915
- nextRetryAt: number | null;
21916
- since: number;
21917
- shares: Array<{
21918
- port: number;
21919
- state: "active" | "pending" | "refused";
21920
- error: string | null;
21921
- }>;
21922
- }
21923
22473
  interface PluginHosts {
21924
22474
  /** Create the owning plugin's typed client for its singular `bb.host` entry. */
21925
22475
  experimental_client<Contract extends PluginRpcContract, Signals extends ExperimentalHostSignals = {}>(args: {
@@ -21942,31 +22492,6 @@ interface PluginHosts {
21942
22492
  * here: it is owned by the daemon's trusted enrollment.
21943
22493
  */
21944
22494
  declareSharedPorts(hostId: string, ports: readonly number[]): void;
21945
- /**
21946
- * Internal to bb's own connect plugins. Do not use: it is not part of the
21947
- * plugin API and may change or disappear in any release.
21948
- *
21949
- * Turn bb connect next machine tunnels on (a config) or off (`null`). The
21950
- * server sends the config to every connected daemon that holds a bb connect
21951
- * machine credential and speaks a protocol that knows next tunnels; each
21952
- * such daemon runs frpc with one proxy per port declared with
21953
- * `declareSharedPorts`, at `<machine-label>--<port>.<domain>`. The daemon
21954
- * refuses a domain or tunnel server outside its trusted enrollment's
21955
- * domain. One plugin owns the setting at a time; another plugin's call
21956
- * throws while it is set. Cleared when the owning plugin is disabled.
21957
- */
21958
- internal_DO_NOT_USE_setNextTunnels(config: InternalDoNotUsePluginNextTunnelConfig | null): void;
21959
- /** Internal to bb's own connect plugins; do not use. The last next-tunnel status of every connected daemon that reported one. */
21960
- internal_DO_NOT_USE_nextTunnelStatuses(): InternalDoNotUsePluginHostNextTunnelStatus[];
21961
- /**
21962
- * Internal to bb's own connect plugins. Do not use: it is not part of the
21963
- * plugin API and may change or disappear in any release.
21964
- *
21965
- * Call `listener` whenever a daemon reports a changed next-tunnel status or
21966
- * its session ends. Returns an unsubscribe function; plugin disposal also
21967
- * unsubscribes.
21968
- */
21969
- internal_DO_NOT_USE_onNextTunnelStatusChange(listener: () => void): () => void;
21970
22495
  }
21971
22496
  interface PluginStatusApi {
21972
22497
  /**
@@ -25270,6 +25795,8 @@ interface ExperimentalMessageMetadataRegistration {
25270
25795
  placement?: ExperimentalMessageMetadataPlacement;
25271
25796
  component: ComponentType<ExperimentalMessageMetadataProps>;
25272
25797
  }
25798
+ /** A timeline a `messageAction` can show in; see {@link PluginMessageActionRegistration.experimental_surfaces}. */
25799
+ type ExperimentalMessageActionSurface = "embedded-chat" | "thread-view";
25273
25800
  /** Context handed to a `messageAction`'s `run`. */
25274
25801
  interface PluginMessageActionContext {
25275
25802
  /** The thread whose timeline surfaced the action. */
@@ -25290,12 +25817,13 @@ interface PluginMessageActionContext {
25290
25817
  composer: PluginComposerApi | null;
25291
25818
  }
25292
25819
  /**
25293
- * An action on chat messages in the main thread timeline: an icon button in
25294
- * the per-message action bar (user and assistant messages) and an entry in
25295
- * the assistant-message text-selection menu. Embedded `ThreadChat` timelines
25296
- * do not show slot-registered actions. Host-rendered chrome — the plugin
25297
- * supplies title, icon, and `run` behavior only. Resolved icon names take precedence over
25298
- * plugin branding; omitted or unknown names fall back to branding.
25820
+ * An action on chat messages in every thread timeline, including embedded
25821
+ * `ThreadChat` timelines unless `experimental_surfaces` narrows it: an icon
25822
+ * button in the per-message action bar (user and assistant messages) and an
25823
+ * entry in the assistant-message text-selection menu. Host-rendered chrome —
25824
+ * the plugin supplies title, icon, and `run` behavior only. Resolved icon
25825
+ * names take precedence over plugin branding; omitted or unknown names fall
25826
+ * back to branding.
25299
25827
  */
25300
25828
  interface PluginMessageActionRegistration {
25301
25829
  /** Unique within the plugin; letters, digits, `-`, `_`. */
@@ -25303,6 +25831,12 @@ interface PluginMessageActionRegistration {
25303
25831
  /** Tooltip / menu label for the action. */
25304
25832
  title: string;
25305
25833
  icon?: BbIconName;
25834
+ /**
25835
+ * Timelines that show the action: `"thread-view"` is bb's thread view and
25836
+ * `"embedded-chat"` an embedded `ThreadChat`. Omit for both. Experimental:
25837
+ * see docs/api_to_audit.md.
25838
+ */
25839
+ experimental_surfaces?: readonly ExperimentalMessageActionSurface[];
25306
25840
  /**
25307
25841
  * Runs when the user activates the action. Errors (sync or async) are
25308
25842
  * contained and logged; they never break the timeline.
@@ -25335,6 +25869,13 @@ interface PluginCommandShortcut {
25335
25869
  alt?: boolean;
25336
25870
  shift?: boolean;
25337
25871
  }
25872
+ /** The fields of a keydown that {@link PluginSdkApp.experimental_matchesShortcutKey} reads; DOM and React keyboard events both fit. */
25873
+ interface ExperimentalShortcutKeyEvent {
25874
+ key: string;
25875
+ code: string;
25876
+ altKey: boolean;
25877
+ shiftKey: boolean;
25878
+ }
25338
25879
  /**
25339
25880
  * A command registered with `app.commands.register`, listed in bb's quick
25340
25881
  * palette (Mod+Shift+P) under the plugin's name
@@ -25900,6 +26441,13 @@ interface ComposerCustomization {
25900
26441
  id: string;
25901
26442
  /** Composer kinds where this customization is active; omit for all kinds. */
25902
26443
  scopes?: readonly PluginComposerScope["kind"][];
26444
+ /**
26445
+ * Controls rendered in the composer's action row, before the voice, stop
26446
+ * and submit controls. The collapsed single-line layout leaves them out,
26447
+ * as it does bb's `+` menu and model picker; they show once the composer
26448
+ * expands. bb shows the first three plugins' actions inline and the rest
26449
+ * behind a "More plugin actions" button.
26450
+ */
25903
26451
  actions?: readonly {
25904
26452
  id: string;
25905
26453
  component: ComponentType;
@@ -26322,8 +26870,8 @@ interface ComposerSubmitOptions {
26322
26870
  /**
26323
26871
  * A consumer-supplied action on the messages of one `ThreadChat` instance,
26324
26872
  * rendered in the embedded timeline's per-message action bar alongside the
26325
- * native actions. Slot-registered `messageAction`s do not appear there. Unlike
26326
- * the `messageAction` slot this is scoped to the rendering component, not
26873
+ * native and slot-registered `messageAction` actions. Unlike the
26874
+ * `messageAction` slot this is scoped to the rendering component, not
26327
26875
  * registered globally.
26328
26876
  */
26329
26877
  interface ThreadChatMessageAction {
@@ -26566,9 +27114,10 @@ interface NewThreadRequest {
26566
27114
  */
26567
27115
  interface NewThreadComposerProps {
26568
27116
  /**
26569
- * Seeds the project picker. The user can change it, including choosing
26570
- * "Don't work in a project"; see {@link NewThreadRequest.projectId} for the
26571
- * submitted projectless shape.
27117
+ * Seeds the project picker. Omitted, the picker starts on the project the
27118
+ * user last picked in bb's New thread view. The user can change it,
27119
+ * including choosing "Don't work in a project"; see
27120
+ * {@link NewThreadRequest.projectId} for the submitted projectless shape.
26572
27121
  */
26573
27122
  defaultProjectId?: string;
26574
27123
  /**
@@ -26683,6 +27232,13 @@ interface MarkdownProps {
26683
27232
  kind: "host";
26684
27233
  }>;
26685
27234
  };
27235
+ /**
27236
+ * The chat message this Markdown shows. With it, the code-fence renderers
27237
+ * and message directives plugins register render here as they do in the
27238
+ * thread timeline, and receive this as their `message`. Without it, fences
27239
+ * render as code and directives as their source text.
27240
+ */
27241
+ experimental_message?: PluginMessageDirectiveMessage;
26686
27242
  }
26687
27243
  /**
26688
27244
  * Props for BB's semantic URL link. The host owns ordinary activation while
@@ -27633,6 +28189,22 @@ interface PluginSdkApp {
27633
28189
  experimental_VoiceRecordingBar: ComponentType<ExperimentalVoiceRecordingBarProps>;
27634
28190
  experimental_FailedVoiceRecordings: ComponentType<ExperimentalFailedVoiceRecordingsProps>;
27635
28191
  experimental_ShortcutHint: ComponentType<ExperimentalShortcutHintProps>;
28192
+ /**
28193
+ * Whether `event` presses `key` (a `PluginCommandShortcut` key such as
28194
+ * `"k"`, `"["` or `"Enter"`), compared the way bb compares keys for its own
28195
+ * keybindings; the caller checks modifiers. Letter, digit and punctuation
28196
+ * keys match by physical position when the active layout types a non-Latin
28197
+ * character there, so Ctrl+K is found on Cyrillic, Greek, Hebrew or Arabic
28198
+ * layouts, while Latin layouts such as Dvorak keep their own letters.
28199
+ * Experimental: see docs/api_to_audit.md.
28200
+ */
28201
+ experimental_matchesShortcutKey(event: ExperimentalShortcutKeyEvent, key: string): boolean;
28202
+ /**
28203
+ * Cuts `value` to at most `maxChars` UTF-16 code units without splitting a
28204
+ * surrogate pair, so an emoji at the cut is dropped whole instead of leaving
28205
+ * half of it. Experimental: see docs/api_to_audit.md.
28206
+ */
28207
+ experimental_sliceUtf16Head(value: string, maxChars: number): string;
27636
28208
  experimental_ImageLightbox: ComponentType<ExperimentalImageLightboxProps>;
27637
28209
  experimental_PromptMentionIcon: ComponentType<ExperimentalPromptMentionIconProps>;
27638
28210
  /**
@@ -27914,5 +28486,7 @@ declare const experimental_THREAD_INFO_SECTION_GROUPS: {
27914
28486
  readonly storage: "3_storage";
27915
28487
  };
27916
28488
 
27917
- export { PLUGIN_CLI_OUTPUT_MAX_BYTES, PluginCliError, cliCommand, defineCli, defineRpcContract, experimental_PluginRpcCallError, experimental_PluginRpcRefusal, experimental_THREAD_ACTION_GROUPS, experimental_THREAD_CONTEXT_SEGMENT_GROUPS, experimental_THREAD_INFO_ROW_GROUPS, experimental_THREAD_INFO_SECTION_GROUPS, experimental_defineHostEntry, getHostPathBasename as experimental_getHostPathBasename, getHostPathComparisonKey as experimental_getHostPathComparisonKey, getHostPathDirname as experimental_getHostPathDirname, getRelativeHostPath as experimental_getRelativeHostPath, isHostPathWithin as experimental_isHostPathWithin, joinHostPath as experimental_joinHostPath, normalizeHostPath as experimental_normalizeHostPath, resolveHostPath as experimental_resolveHostPath };
27918
- export type { BbContext, BbNavigate, BbPluginApi, BranchPickerProps, BranchesState, CheckoutState, CodeOverflowMode, ComposerAttachment, ComposerCustomization, ComposerDraft, ComposerDraftReplacement, ComposerDraftSnapshot, ComposerInsertOptions, ComposerInsertPart, ComposerMention, ComposerPlusMenuItem, ComposerRichTextSpec, ComposerSelection, ComposerSendMenuItem, ComposerSubmitOptions, DiffProps, DiffViewMode, ExperimentalAppIcons, ExperimentalAppOverlayProps, ExperimentalAppOverlayRegistration, ExperimentalBadge, ExperimentalBadgeTone, ExperimentalClipboardContent, ExperimentalCodeFenceRendererProps, ExperimentalCodeFenceRendererRegistration, ExperimentalCodeFenceStatus, ExperimentalCollapsibleStackCardDismiss, ExperimentalCollapsibleStackCardProps, ExperimentalComposerAction, ExperimentalComposerAttachments, ExperimentalComposerClipboard, ExperimentalComposerCommandRegistration, ExperimentalComposerCommandSearch, ExperimentalComposerCommandSuggestion, ExperimentalComposerCommandSuggestionGroup, ExperimentalComposerCommandTrigger, ExperimentalComposerContribution, ExperimentalComposerContributions, ExperimentalComposerDecorationSource, ExperimentalComposerEditor, ExperimentalComposerEditorState, ExperimentalComposerEditorVoice, ExperimentalComposerHistory, ExperimentalComposerInput, ExperimentalComposerMentionSearch, ExperimentalComposerMentionSuggestion, ExperimentalComposerMentionSuggestionGroup, ExperimentalComposerMentionTarget, ExperimentalComposerMenuEntryProps, ExperimentalComposerMenuSelection, ExperimentalComposerPendingUpload, ExperimentalComposerPlusMenuContribution, ExperimentalComposerPopupContribution, ExperimentalComposerPopupProps, ExperimentalComposerPopupRegistration, ExperimentalComposerPromptAction, ExperimentalComposerProps, ExperimentalComposerRegistration, ExperimentalComposerRendererApi, ExperimentalComposerRootProps, ExperimentalComposerSearchQuery, ExperimentalComposerSendMenuContribution, ExperimentalComposerSubmission, ExperimentalComposerThreadLink, ExperimentalComposerThreadLinkTarget, ExperimentalComposerThreadLinks, ExperimentalComposerThreadRelation, ExperimentalComposerVoice, ExperimentalDesktopBrowserAcquireInput, ExperimentalDesktopBrowserCreateInput, ExperimentalDesktopBrowserLease, ExperimentalDesktopBrowserScope, ExperimentalDesktopBrowsersArea, ExperimentalDetailRowProps, ExperimentalDiffFileContent, ExperimentalDiffFullFileContents, ExperimentalDroppedThreadMention, ExperimentalFailedVoiceRecording, ExperimentalFailedVoiceRecordingsProps, ExperimentalFileLinkProps, ExperimentalFileLocation, ExperimentalFileOpenOptions, ExperimentalFilePreviewFile, ExperimentalFilePreviewOptions, ExperimentalFilePreviewProps, ExperimentalFixedTabTargetContract, ExperimentalFixedTabTargetState, ExperimentalHostCallOptions, ExperimentalHostClient, ExperimentalHostEntry, ExperimentalHostPaths, ExperimentalHostRpcContext, ExperimentalHostRpcHandlers, ExperimentalHostSignalContract, ExperimentalHostSignalEvent, ExperimentalHostSignals, ExperimentalHostWatchChange, ExperimentalHostWatchChangeType, ExperimentalHostWatchEvent, ExperimentalHostWatchListener, ExperimentalHostWatchOptions, ExperimentalHostWatchSubscription, ExperimentalHostWorkerLease, ExperimentalIconProps, ExperimentalIconRegistration, ExperimentalImageLightboxProps, ExperimentalInfoListProps, ExperimentalInfoListRowProps, ExperimentalInfoSectionProps, ExperimentalLiveFileTarget, ExperimentalMessageClipboardPayload, ExperimentalMessageMetadataContext, ExperimentalMessageMetadataPlacement, ExperimentalMessageMetadataProps, ExperimentalMessageMetadataRegistration, ExperimentalOpenTabOptions, ExperimentalPageBreadcrumb, ExperimentalPageTitle, ExperimentalPanelController, ExperimentalPanelTab, ExperimentalPanelTabDetail, ExperimentalPanelTabIconProps, ExperimentalPanelTabs, ExperimentalPermissionModePickerProps, ExperimentalPluginBrowserPage, ExperimentalPluginBrowserPageEvaluateOptions, ExperimentalPluginBrowserPageWorld, ExperimentalPluginBrowserToolbarActionProps, ExperimentalPluginBrowserToolbarActionRegistration, ExperimentalPluginFixedTabReference, ExperimentalPluginIconProps, ExperimentalPluginMentionImage, ExperimentalPluginProviderEnvContext, ExperimentalPluginProviderEnvEntry, ExperimentalPluginProviderEnvHealth, ExperimentalPluginProviderEnvHealthContext, ExperimentalPluginRpcCaller, ExperimentalPluginRpcHandlerContext, ExperimentalPluginRpcHandlersWithContext, ExperimentalPluginWebSocket, ExperimentalPluginWebSocketContext, ExperimentalPluginWebSocketHandler, ExperimentalPluginWebSocketHandlers, ExperimentalPromptMentionClipboardPill, ExperimentalPromptMentionIconProps, ExperimentalPromptMentionPresentation, ExperimentalProviderIconProps, ExperimentalProviderModelPickerProps, ExperimentalProviderModelPickerRouting, ExperimentalProviderModelPickerValue, ExperimentalQuestionFormAction, ExperimentalQuestionFormHost, ExperimentalQuestionShortcut, ExperimentalRpcKeyedMethod, ExperimentalRpcKeyedQueryState, ExperimentalRpcKeyedValue, ExperimentalRpcMutationOptions, ExperimentalRpcMutationState, ExperimentalRpcOptimisticCache, ExperimentalRpcQueryOptions, ExperimentalRpcQueryState, ExperimentalSaveFileOutcome, ExperimentalSaveFileRequest, ExperimentalServer, ExperimentalServers, ExperimentalShortcutHintProps, ExperimentalShortcutPresentation, ExperimentalSidebarFooter, ExperimentalSidebarFooterActionContext, ExperimentalSidebarFooterActionRegistration, ExperimentalSidebarFooterDisclosureController, ExperimentalSidebarFooterDisclosureProps, ExperimentalSidebarFooterDisclosureRegistration, ExperimentalSidebarFooterItemBase, ExperimentalSidebarFooterItemRegistration, ExperimentalSidebarHeaderProps, ExperimentalSidebarNavigationAction, ExperimentalSidebarNavigationActions, ExperimentalSidebarNavigationActivationOptions, ExperimentalSidebarNavigationIcon, ExperimentalSidebarNavigationIconProps, ExperimentalSidebarNavigationItem, ExperimentalSidebarNavigationPlacement, ExperimentalSidebarNavigationProps, ExperimentalSidebarNavigationRegistration, ExperimentalSidebarNavigationShortcut, ExperimentalSidebarNavigationSplit, ExperimentalSidebarNavigationSplitOptions, ExperimentalSidebarNavigationState, ExperimentalSidebarNavigationTarget, ExperimentalTabContext, ExperimentalTabReference, ExperimentalTabRegistration, ExperimentalTabTargetReference, ExperimentalThreadActionTabProps, ExperimentalThreadContextCardProps, ExperimentalThreadContextCardRowProps, ExperimentalThreadContextCardRowRegistration, ExperimentalThreadContextCardSectionRegistration, ExperimentalThreadContextKind, ExperimentalThreadContextSegmentInput, ExperimentalThreadContextSegmentProps, ExperimentalThreadContextSegmentReference, ExperimentalThreadContextSegmentRegistration, ExperimentalThreadEnvironment, ExperimentalThreadHeaderRowProps, ExperimentalThreadHeaderRowRegistration, ExperimentalThreadHeaderTitleProps, ExperimentalThreadHeaderTitleRegistration, ExperimentalThreadInfoProps, ExperimentalThreadInfoRowRegistration, ExperimentalThreadInfoSectionRegistration, ExperimentalThreadRowMetadataDataInput, ExperimentalThreadRowMetadataLineProps, ExperimentalThreadRowMetadataProps, ExperimentalThreadRowMetadataRegistration, ExperimentalThreadTabActionContext, ExperimentalThreadTabProps, ExperimentalThreadTitleTextProps, ExperimentalVoiceDelivery, ExperimentalVoiceInputButtonProps, ExperimentalVoiceInputTextareaProps, ExperimentalVoiceRecordingBarProps, InternalDoNotUsePluginHostNextTunnelStatus, InternalDoNotUsePluginNextTunnelConfig, InternalDoNotUsePluginNextTunnelServer, InternalDoNotUsePluginTunnelIngress, InternalDoNotUsePluginTunnelIngressOptions, InternalDoNotUseSetupFailureDetail, InternalDoNotUseSetupFailureStage, InternalDoNotUseSetupGuideSectionProps, InternalDoNotUseSetupGuideSectionRegistration, JsonValue, MachineBootstrapApi, MachineBootstrapRequest, MachineExecutor, MachineExecutorRequest, MarkdownProps, MessageDispatchHookContext, MessageDispatchHookDecision, NewThreadComposerProps, NewThreadRequest, PluginAgentConfiguration, PluginAgentConfigurationContext, PluginAgentToolContentPart, PluginAgentToolContext, PluginAgentToolRegistrationBase, PluginAgentToolResult, PluginAgentToolSelection, PluginAgents, PluginAiCompleteOptions, PluginAiServiceDeclaration, PluginAiServiceStatus, PluginAiServices, PluginAiTranscribeOptions, PluginAppBuilder, PluginAppCommands, PluginAppComposer, PluginAppContentScripts, PluginAppDefinition, PluginAppSetup, PluginAppSlots, PluginBackground, PluginBbSdk, PluginBoundThreadAction, PluginBoundThreadsArea, PluginBrowserBbSdk, PluginCli, PluginCliBooleanOption, PluginCliCommand, PluginCliCommandInfo, PluginCliConstraint, PluginCliContext, PluginCliDurationOption, PluginCliDurationUnit, PluginCliEnumOption, PluginCliErrorCode, PluginCliExecutionResult, PluginCliIntegerOption, PluginCliOption, PluginCliOptionValues, PluginCliOutputLimitError, PluginCliPositional, PluginCliPositionalValues, PluginCliRegistration, PluginCliResult, PluginCliRunInput, PluginCliSpec, PluginCliStringOption, PluginCodeThemeData, PluginCodeThemeState, PluginCodeThemeTokenRule, PluginCommandContext, PluginCommandRegistration, PluginCommandShortcut, PluginComposerApi, PluginComposerMention, PluginComposerScope, PluginComposerTextEffect, PluginComposerThreadRowStatus, PluginContentScriptContext, PluginContentScriptDisposer, PluginContentScriptRegistration, PluginDiffRendererProps, PluginDiffRendererRegistration, PluginDispatchAttemptKind, PluginDispatchEnvironmentIntent, PluginDispatchExecution, PluginDispatchExecutionSources, PluginDispatchInput, PluginEnvironmentProvider, PluginEnvironmentProviderDeclaration, PluginEnvironmentProviderInputsChange, PluginEnvironmentProviderInputsProps, PluginEnvironmentProviderInputsRegistration, PluginEnvironmentProviderRequirements, PluginEnvironmentProvidersState, PluginEnvironmentValidateDecision, PluginEnvironments, PluginEvents, PluginFileOpenerProps, PluginFileOpenerRegistration, PluginFileOpenerSource, PluginHomepageSectionProps, PluginHomepageSectionRegistration, PluginHookHandler, PluginHookName, PluginHookSignatures, PluginHooks, PluginHosts, PluginHttp, PluginHttpAuthMode, PluginHttpHandler, PluginInteractionCancelReason, PluginInteractionDescription, 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, PluginPendingInteractionProps, PluginPendingInteractionRegistration, PluginPendingInteractionView, PluginProviderCapabilities, PluginProviderCompletedTurnDisplay, PluginProviderComposerAction, PluginProviderDeclaration, PluginProviderExtensionKindDeclaration, PluginProviderFallbackModel, PluginProviderIconRegistration, PluginProviderMaintenance, PluginProviderModelCatalogScope, PluginProviderNativeRootEntry, PluginProviderNativeRoots, PluginProviderOptionDescriptor, PluginProviderOptionsContext, PluginProviderPermissionMode, PluginProviderReasoningLevel, PluginProviderStrings, PluginProviders, PluginProvidersState, PluginRealtime, PluginRealtimeConnectionState, PluginRowLabels, PluginRowPresentation, 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, PluginSidebarSection, PluginSidebarSplitLayout, PluginSidebarSplitPane, PluginSidebarThread, PluginSidebarThreadActivity, PluginSidebarThreadDraftState, PluginSidebarThreadIndicator, PluginSidebarThreadRowStatus, PluginSidebarThreadShortcut, PluginSidebarThreadSplit, PluginSidebarThreadSplitOptions, PluginSidebarThreadsState, PluginSourceCodeRendererProps, PluginSourceCodeRendererRegistration, PluginStatusApi, PluginStorage, PluginThreadAction, PluginThreadActionBulkItemInput, PluginThreadActionChoice, PluginThreadActionChoices, PluginThreadActionDataInput, PluginThreadActionEntry, PluginThreadActionItemInput, PluginThreadActionPlacement, PluginThreadActionRegistration, PluginThreadActionRegistrationInfo, PluginThreadActionRunInput, PluginThreadActionTarget, PluginThreadActionsContextMenuProps, PluginThreadActionsInlineItem, PluginThreadActionsMenuProps, PluginThreadActionsOptions, PluginThreadActionsTriggerProps, PluginThreadEventHandler, PluginThreadEventName, PluginThreadEventPayloads, PluginThreadListProps, PluginThreadListRegistration, PluginThreadStatus, PluginThreadStatusGlyphProps, PluginThreadStatusInput, PluginThreadStatusThread, PluginThreadTitleProps, PluginTimelineRendererProps, PluginTimelineRendererRegistration, PluginTimelineRendererRow, PluginTimelineRowPresentation, PluginTimelineRowStatus, PluginTurnFailedEvent, PluginUi, ReadonlyJsonValue, ServerAccessGrant, ServerAccessProviderDeclaration, SourceCodeLineRange, SourceCodeProps, StandardSchemaV1, StandardSchemaV1InferInput, StandardSchemaV1InferOutput, StandardSchemaV1Issue, StandardSchemaV1Result, ThreadChatMessageAction, ThreadChatMessageReference, ThreadChatProps, UrlLinkProps, UseBranchesArgs, UseCheckoutStateArgs };
28489
+ declare function sliceUtf16Head(value: string, maxChars: number): string;
28490
+
28491
+ export { PLUGIN_CLI_OUTPUT_MAX_BYTES, PluginCliError, cliCommand, defineCli, defineRpcContract, experimental_PluginRpcCallError, experimental_PluginRpcRefusal, experimental_THREAD_ACTION_GROUPS, experimental_THREAD_CONTEXT_SEGMENT_GROUPS, experimental_THREAD_INFO_ROW_GROUPS, experimental_THREAD_INFO_SECTION_GROUPS, experimental_defineHostEntry, getHostPathBasename as experimental_getHostPathBasename, getHostPathComparisonKey as experimental_getHostPathComparisonKey, getHostPathDirname as experimental_getHostPathDirname, getRelativeHostPath as experimental_getRelativeHostPath, isHostPathWithin as experimental_isHostPathWithin, joinHostPath as experimental_joinHostPath, normalizeHostPath as experimental_normalizeHostPath, resolveHostPath as experimental_resolveHostPath, sliceUtf16Head as experimental_sliceUtf16Head };
28492
+ export type { BbContext, BbNavigate, BbPluginApi, BranchPickerProps, BranchesState, CheckoutState, CodeOverflowMode, ComposerAttachment, ComposerCustomization, ComposerDraft, ComposerDraftReplacement, ComposerDraftSnapshot, ComposerInsertOptions, ComposerInsertPart, ComposerMention, ComposerPlusMenuItem, ComposerRichTextSpec, ComposerSelection, ComposerSendMenuItem, ComposerSubmitOptions, DiffProps, DiffViewMode, ExperimentalAppIcons, ExperimentalAppOverlayProps, ExperimentalAppOverlayRegistration, ExperimentalBadge, ExperimentalBadgeTone, ExperimentalClipboardContent, ExperimentalCodeFenceRendererProps, ExperimentalCodeFenceRendererRegistration, ExperimentalCodeFenceStatus, ExperimentalCollapsibleStackCardDismiss, ExperimentalCollapsibleStackCardProps, ExperimentalComposerAction, ExperimentalComposerAttachments, ExperimentalComposerClipboard, ExperimentalComposerCommandRegistration, ExperimentalComposerCommandSearch, ExperimentalComposerCommandSuggestion, ExperimentalComposerCommandSuggestionGroup, ExperimentalComposerCommandTrigger, ExperimentalComposerContribution, ExperimentalComposerContributions, ExperimentalComposerDecorationSource, ExperimentalComposerEditor, ExperimentalComposerEditorState, ExperimentalComposerEditorVoice, ExperimentalComposerHistory, ExperimentalComposerInput, ExperimentalComposerMentionSearch, ExperimentalComposerMentionSuggestion, ExperimentalComposerMentionSuggestionGroup, ExperimentalComposerMentionTarget, ExperimentalComposerMenuEntryProps, ExperimentalComposerMenuSelection, ExperimentalComposerPendingUpload, ExperimentalComposerPlusMenuContribution, ExperimentalComposerPopupContribution, ExperimentalComposerPopupProps, ExperimentalComposerPopupRegistration, ExperimentalComposerPromptAction, ExperimentalComposerProps, ExperimentalComposerRegistration, ExperimentalComposerRendererApi, ExperimentalComposerRootProps, ExperimentalComposerSearchQuery, ExperimentalComposerSendMenuContribution, ExperimentalComposerSubmission, ExperimentalComposerThreadLink, ExperimentalComposerThreadLinkTarget, ExperimentalComposerThreadLinks, ExperimentalComposerThreadRelation, ExperimentalComposerVoice, ExperimentalDesktopBrowserAcquireInput, ExperimentalDesktopBrowserCreateInput, ExperimentalDesktopBrowserLease, ExperimentalDesktopBrowserScope, ExperimentalDesktopBrowsersArea, ExperimentalDetailRowProps, ExperimentalDiffFileContent, ExperimentalDiffFullFileContents, ExperimentalDroppedThreadMention, ExperimentalFailedVoiceRecording, ExperimentalFailedVoiceRecordingsProps, ExperimentalFileLinkProps, ExperimentalFileLocation, ExperimentalFileOpenOptions, ExperimentalFilePreviewFile, ExperimentalFilePreviewOptions, ExperimentalFilePreviewProps, ExperimentalFixedTabTargetContract, ExperimentalFixedTabTargetState, ExperimentalHostCallOptions, ExperimentalHostClient, ExperimentalHostEntry, ExperimentalHostPaths, ExperimentalHostRpcContext, ExperimentalHostRpcHandlers, ExperimentalHostSignalContract, ExperimentalHostSignalEvent, ExperimentalHostSignals, ExperimentalHostWatchChange, ExperimentalHostWatchChangeType, ExperimentalHostWatchEvent, ExperimentalHostWatchListener, ExperimentalHostWatchOptions, ExperimentalHostWatchSubscription, ExperimentalHostWorkerLease, ExperimentalIconProps, ExperimentalIconRegistration, ExperimentalImageLightboxProps, ExperimentalInfoListProps, ExperimentalInfoListRowProps, ExperimentalInfoSectionProps, ExperimentalLiveFileTarget, ExperimentalMessageActionSurface, ExperimentalMessageClipboardPayload, ExperimentalMessageMetadataContext, ExperimentalMessageMetadataPlacement, ExperimentalMessageMetadataProps, ExperimentalMessageMetadataRegistration, ExperimentalOpenTabOptions, ExperimentalPageBreadcrumb, ExperimentalPageTitle, ExperimentalPanelController, ExperimentalPanelTab, ExperimentalPanelTabDetail, ExperimentalPanelTabIconProps, ExperimentalPanelTabs, ExperimentalPermissionModePickerProps, ExperimentalPluginBrowserPage, ExperimentalPluginBrowserPageEvaluateOptions, ExperimentalPluginBrowserPageWorld, ExperimentalPluginBrowserToolbarActionProps, ExperimentalPluginBrowserToolbarActionRegistration, ExperimentalPluginFixedTabReference, ExperimentalPluginIconProps, ExperimentalPluginMentionImage, ExperimentalPluginProviderEnvContext, ExperimentalPluginProviderEnvEntry, ExperimentalPluginProviderEnvHealth, ExperimentalPluginProviderEnvHealthContext, ExperimentalPluginRpcCaller, ExperimentalPluginRpcHandlerContext, ExperimentalPluginRpcHandlersWithContext, ExperimentalPluginWebSocket, ExperimentalPluginWebSocketContext, ExperimentalPluginWebSocketHandler, ExperimentalPluginWebSocketHandlers, ExperimentalPromptMentionClipboardPill, ExperimentalPromptMentionIconProps, ExperimentalPromptMentionPresentation, ExperimentalProviderIconProps, ExperimentalProviderModelPickerProps, ExperimentalProviderModelPickerRouting, ExperimentalProviderModelPickerValue, ExperimentalQuestionFormAction, ExperimentalQuestionFormHost, ExperimentalQuestionShortcut, ExperimentalRpcKeyedMethod, ExperimentalRpcKeyedQueryState, ExperimentalRpcKeyedValue, ExperimentalRpcMutationOptions, ExperimentalRpcMutationState, ExperimentalRpcOptimisticCache, ExperimentalRpcQueryOptions, ExperimentalRpcQueryState, ExperimentalSaveFileOutcome, ExperimentalSaveFileRequest, ExperimentalServer, ExperimentalServers, ExperimentalShortcutHintProps, ExperimentalShortcutKeyEvent, ExperimentalShortcutPresentation, ExperimentalSidebarFooter, ExperimentalSidebarFooterActionContext, ExperimentalSidebarFooterActionRegistration, ExperimentalSidebarFooterDisclosureController, ExperimentalSidebarFooterDisclosureProps, ExperimentalSidebarFooterDisclosureRegistration, ExperimentalSidebarFooterItemBase, ExperimentalSidebarFooterItemRegistration, ExperimentalSidebarHeaderProps, ExperimentalSidebarNavigationAction, ExperimentalSidebarNavigationActions, ExperimentalSidebarNavigationActivationOptions, ExperimentalSidebarNavigationIcon, ExperimentalSidebarNavigationIconProps, ExperimentalSidebarNavigationItem, ExperimentalSidebarNavigationPlacement, ExperimentalSidebarNavigationProps, ExperimentalSidebarNavigationRegistration, ExperimentalSidebarNavigationShortcut, ExperimentalSidebarNavigationSplit, ExperimentalSidebarNavigationSplitOptions, ExperimentalSidebarNavigationState, ExperimentalSidebarNavigationTarget, ExperimentalTabContext, ExperimentalTabReference, ExperimentalTabRegistration, ExperimentalTabTargetReference, ExperimentalThreadActionTabProps, ExperimentalThreadContextCardProps, ExperimentalThreadContextCardRowProps, ExperimentalThreadContextCardRowRegistration, ExperimentalThreadContextCardSectionRegistration, ExperimentalThreadContextKind, ExperimentalThreadContextSegmentInput, ExperimentalThreadContextSegmentProps, ExperimentalThreadContextSegmentReference, ExperimentalThreadContextSegmentRegistration, ExperimentalThreadEnvironment, ExperimentalThreadHeaderRowProps, ExperimentalThreadHeaderRowRegistration, ExperimentalThreadHeaderTitleProps, ExperimentalThreadHeaderTitleRegistration, ExperimentalThreadInfoProps, ExperimentalThreadInfoRowRegistration, ExperimentalThreadInfoSectionRegistration, ExperimentalThreadRowMetadataDataInput, ExperimentalThreadRowMetadataLineProps, ExperimentalThreadRowMetadataProps, ExperimentalThreadRowMetadataRegistration, ExperimentalThreadTabActionContext, ExperimentalThreadTabProps, ExperimentalThreadTitleTextProps, ExperimentalVoiceDelivery, ExperimentalVoiceInputButtonProps, ExperimentalVoiceInputTextareaProps, ExperimentalVoiceRecordingBarProps, InternalDoNotUseSetupFailureDetail, InternalDoNotUseSetupFailureStage, InternalDoNotUseSetupGuideSectionProps, InternalDoNotUseSetupGuideSectionRegistration, JsonValue, MachineBootstrapApi, MachineBootstrapRequest, MachineExecutor, MachineExecutorRequest, MarkdownProps, MessageDispatchHookContext, MessageDispatchHookDecision, NewThreadComposerProps, NewThreadRequest, PluginAgentConfiguration, PluginAgentConfigurationContext, PluginAgentToolContentPart, PluginAgentToolContext, PluginAgentToolRegistrationBase, PluginAgentToolResult, PluginAgentToolSelection, PluginAgents, PluginAiCompleteOptions, PluginAiServiceDeclaration, PluginAiServiceStatus, PluginAiServices, PluginAiTranscribeOptions, PluginAppBuilder, PluginAppCommands, PluginAppComposer, PluginAppContentScripts, PluginAppDefinition, PluginAppSetup, PluginAppSlots, PluginBackground, PluginBbSdk, PluginBoundThreadAction, PluginBoundThreadsArea, PluginBrowserBbSdk, PluginCli, PluginCliBooleanOption, PluginCliCommand, PluginCliCommandInfo, PluginCliConstraint, PluginCliContext, PluginCliDurationOption, PluginCliDurationUnit, PluginCliEnumOption, PluginCliErrorCode, PluginCliExecutionResult, PluginCliIntegerOption, PluginCliOption, PluginCliOptionValues, PluginCliOutputLimitError, PluginCliPositional, PluginCliPositionalValues, PluginCliRegistration, PluginCliResult, PluginCliRunInput, PluginCliSpec, PluginCliStringOption, PluginCodeThemeData, PluginCodeThemeState, PluginCodeThemeTokenRule, PluginCommandContext, PluginCommandRegistration, PluginCommandShortcut, PluginComposerApi, PluginComposerMention, PluginComposerScope, PluginComposerTextEffect, PluginComposerThreadRowStatus, PluginContentScriptContext, PluginContentScriptDisposer, PluginContentScriptRegistration, PluginDiffRendererProps, PluginDiffRendererRegistration, PluginDispatchAttemptKind, PluginDispatchEnvironmentIntent, PluginDispatchExecution, PluginDispatchExecutionSources, PluginDispatchInput, PluginEnvironmentProvider, PluginEnvironmentProviderDeclaration, PluginEnvironmentProviderInputsChange, PluginEnvironmentProviderInputsProps, PluginEnvironmentProviderInputsRegistration, PluginEnvironmentProviderRequirements, PluginEnvironmentProvidersState, PluginEnvironmentValidateDecision, PluginEnvironments, PluginEvents, PluginFileOpenerProps, PluginFileOpenerRegistration, PluginFileOpenerSource, PluginHomepageSectionProps, PluginHomepageSectionRegistration, PluginHookHandler, PluginHookName, PluginHookSignatures, PluginHooks, PluginHosts, PluginHttp, PluginHttpAuthMode, PluginHttpHandler, PluginInteractionCancelReason, PluginInteractionDescription, 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, PluginPendingInteractionProps, PluginPendingInteractionRegistration, PluginPendingInteractionView, PluginProviderCapabilities, PluginProviderCompletedTurnDisplay, PluginProviderComposerAction, PluginProviderDeclaration, PluginProviderExtensionKindDeclaration, PluginProviderFallbackModel, PluginProviderIconRegistration, PluginProviderMaintenance, PluginProviderModelCatalogScope, PluginProviderNativeRootEntry, PluginProviderNativeRoots, PluginProviderOptionDescriptor, PluginProviderOptionsContext, PluginProviderPermissionMode, PluginProviderReasoningLevel, PluginProviderStrings, PluginProviders, PluginProvidersState, PluginRealtime, PluginRealtimeConnectionState, PluginRowLabels, PluginRowPresentation, 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, PluginSidebarSection, PluginSidebarSplitLayout, PluginSidebarSplitPane, PluginSidebarThread, PluginSidebarThreadActivity, PluginSidebarThreadDraftState, PluginSidebarThreadIndicator, PluginSidebarThreadRowStatus, PluginSidebarThreadShortcut, PluginSidebarThreadSplit, PluginSidebarThreadSplitOptions, PluginSidebarThreadsState, PluginSourceCodeRendererProps, PluginSourceCodeRendererRegistration, PluginStatusApi, PluginStorage, PluginThreadAction, PluginThreadActionBulkItemInput, PluginThreadActionChoice, PluginThreadActionChoices, PluginThreadActionDataInput, PluginThreadActionEntry, PluginThreadActionItemInput, PluginThreadActionPlacement, PluginThreadActionRegistration, PluginThreadActionRegistrationInfo, PluginThreadActionRunInput, PluginThreadActionTarget, PluginThreadActionsContextMenuProps, PluginThreadActionsInlineItem, PluginThreadActionsMenuProps, PluginThreadActionsOptions, PluginThreadActionsTriggerProps, PluginThreadEventHandler, PluginThreadEventName, PluginThreadEventPayloads, PluginThreadListProps, PluginThreadListRegistration, PluginThreadSettledEvent, PluginThreadStatus, PluginThreadStatusGlyphProps, PluginThreadStatusInput, PluginThreadStatusThread, PluginThreadTitleProps, PluginTimelineRendererProps, PluginTimelineRendererRegistration, PluginTimelineRendererRow, PluginTimelineRowPresentation, PluginTimelineRowStatus, PluginTurnFailedEvent, PluginUi, ReadonlyJsonValue, ServerAccessGrant, ServerAccessProviderDeclaration, SourceCodeLineRange, SourceCodeProps, StandardSchemaV1, StandardSchemaV1InferInput, StandardSchemaV1InferOutput, StandardSchemaV1Issue, StandardSchemaV1Result, ThreadChatMessageAction, ThreadChatMessageReference, ThreadChatProps, UrlLinkProps, UseBranchesArgs, UseCheckoutStateArgs };