@get-bb/plugin-sdk 0.6.157 → 0.6.169

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.
Files changed (30) hide show
  1. package/README.md +1 -1
  2. package/bundled-types/bb-plugin-sdk-app.d.ts +1010 -353
  3. package/bundled-types/bb-plugin-sdk-environment-provider.d.ts +3 -0
  4. package/bundled-types/bb-plugin-sdk-host.d.ts +4 -1
  5. package/bundled-types/bb-plugin-sdk-internal-host-policy.d.ts +9 -6
  6. package/bundled-types/bb-plugin-sdk-internal-plugin-app-collector.d.ts +10 -4
  7. package/bundled-types/bb-plugin-sdk-internal-thread-event-gate.d.ts +1001 -0
  8. package/bundled-types/bb-plugin-sdk-internal-thread-status.d.ts +2 -2
  9. package/bundled-types/bb-plugin-sdk-provider-bridge-acp-next.d.ts +56 -6
  10. package/bundled-types/bb-plugin-sdk-provider-bridge-acp.d.ts +56 -6
  11. package/bundled-types/bb-plugin-sdk-provider-bridge.d.ts +45 -8
  12. package/bundled-types/bb-plugin-sdk-testing-app.d.ts +7 -3
  13. package/bundled-types/bb-plugin-sdk-testing.d.ts +14 -19
  14. package/bundled-types/bb-plugin-sdk.d.ts +1043 -436
  15. package/dist/app.js +8 -0
  16. package/dist/host.js +27 -3
  17. package/dist/index.js +19 -1
  18. package/dist/internal/host-policy.js +34 -13
  19. package/dist/internal/plugin-app-collector.js +35 -3
  20. package/dist/internal/rpc-query-host.js +1 -0
  21. package/dist/internal/thread-event-gate.js +95 -0
  22. package/dist/process.js +7 -1
  23. package/dist/provider-bridge-acp-next.js +503 -144
  24. package/dist/provider-bridge-acp.js +503 -144
  25. package/dist/provider-bridge-testing.js +12 -4
  26. package/dist/provider-bridge.js +115 -34
  27. package/dist/replay-provider-child.mjs +158 -31
  28. package/dist/testing/app.js +647 -351
  29. package/dist/testing/index.js +184 -77
  30. package/package.json +8 -1
@@ -215,7 +215,7 @@ declare const appSettingsUpdateSchema: z$1.ZodUnion<readonly [z$1.ZodObject<{
215
215
  }, z$1.core.$strict>]>;
216
216
  type AppSettingsUpdate = z$1.infer<typeof appSettingsUpdateSchema>;
217
217
 
218
- 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"];
218
+ 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", "threadContextCard.collapsedSections"];
219
219
  type UiPreferenceKey = (typeof UI_PREFERENCE_KEYS)[number];
220
220
  interface UiPreferenceDefinition<Schema extends z$1.ZodTypeAny = z$1.ZodTypeAny> {
221
221
  schema: Schema;
@@ -250,8 +250,11 @@ declare const uiPreferenceDefinitions: {
250
250
  readonly "sidebar.visiblePluginPanels": UiPreferenceDefinition<z$1.ZodNullable<z$1.ZodArray<z$1.ZodString>>>;
251
251
  readonly "sidebar.navigationProvider": UiPreferenceDefinition<z$1.ZodPipe<z$1.ZodString, z$1.ZodTransform<string, string>>>;
252
252
  readonly "sidebar.threadListProvider": UiPreferenceDefinition<z$1.ZodPipe<z$1.ZodString, z$1.ZodTransform<string, string>>>;
253
+ readonly "sidebar.updates.providerCli": UiPreferenceDefinition<z$1.ZodBoolean>;
254
+ readonly "sidebar.updates.skipped": UiPreferenceDefinition<z$1.ZodArray<z$1.ZodString>>;
253
255
  readonly "composer.provider": UiPreferenceDefinition<z$1.ZodString>;
254
256
  readonly "threadContextCard.pinned": UiPreferenceDefinition<z$1.ZodBoolean>;
257
+ readonly "threadContextCard.collapsedSections": UiPreferenceDefinition<z$1.ZodPipe<z$1.ZodArray<z$1.ZodString>, z$1.ZodTransform<string[], string[]>>>;
255
258
  readonly "infoPanel.collapsedSections": UiPreferenceDefinition<z$1.ZodPipe<z$1.ZodArray<z$1.ZodString>, z$1.ZodTransform<string[], string[]>>>;
256
259
  };
257
260
  type UiPreferenceValue<Key extends UiPreferenceKey> = z$1.infer<(typeof uiPreferenceDefinitions)[Key]["schema"]>;
@@ -582,6 +585,7 @@ declare const environmentSchema: z$1.ZodObject<{
582
585
  teardown: z$1.ZodNullable<z$1.ZodObject<{
583
586
  attempt: z$1.ZodNumber;
584
587
  message: z$1.ZodOptional<z$1.ZodString>;
588
+ needsRecovery: z$1.ZodBoolean;
585
589
  status: z$1.ZodEnum<{
586
590
  failed: "failed";
587
591
  removed: "removed";
@@ -683,6 +687,8 @@ declare const hostSchema: z$1.ZodObject<{
683
687
  suspendedAt: z$1.ZodNullable<z$1.ZodNumber>;
684
688
  teardown: z$1.ZodNullable<z$1.ZodObject<{
685
689
  attempt: z$1.ZodNumber;
690
+ blockedByEnvironmentId: z$1.ZodNullable<z$1.ZodString>;
691
+ needsRecovery: z$1.ZodBoolean;
686
692
  status: z$1.ZodEnum<{
687
693
  failed: "failed";
688
694
  removed: "removed";
@@ -4694,6 +4700,15 @@ declare const workspacePathListResponseSchema: z$1.ZodObject<{
4694
4700
  }, z$1.core.$strip>;
4695
4701
  type WorkspacePathListResponse = z$1.infer<typeof workspacePathListResponseSchema>;
4696
4702
 
4703
+ declare const operationResponseSchema: z$1.ZodObject<{
4704
+ ok: z$1.ZodLiteral<true>;
4705
+ progress: z$1.ZodEnum<{
4706
+ "in-progress": "in-progress";
4707
+ complete: "complete";
4708
+ }>;
4709
+ }, z$1.core.$strict>;
4710
+ type OperationResponse = z$1.infer<typeof operationResponseSchema>;
4711
+
4697
4712
  declare const createProjectSourceRequestSchema: z$1.ZodDiscriminatedUnion<[z$1.ZodObject<{
4698
4713
  hostId: z$1.ZodString;
4699
4714
  path: z$1.ZodPipe<z$1.ZodString, z$1.ZodTransform<string, string>>;
@@ -4983,7 +4998,7 @@ declare const skillListResponseSchema: z$1.ZodObject<{
4983
4998
  manageable: z$1.ZodBoolean;
4984
4999
  name: z$1.ZodString;
4985
5000
  pluginId: z$1.ZodNullable<z$1.ZodString>;
4986
- provider: z$1.ZodNullable<z$1.ZodString>;
5001
+ providers: z$1.ZodArray<z$1.ZodString>;
4987
5002
  registrySkillId: z$1.ZodNullable<z$1.ZodString>;
4988
5003
  scope: z$1.ZodEnum<{
4989
5004
  "bb-builtin": "bb-builtin";
@@ -7041,29 +7056,12 @@ declare const hostDaemonCommandRegistry: {
7041
7056
  type: z$1.ZodLiteral<"interactive.resolve">;
7042
7057
  }, z$1.core.$strict>, z$1.ZodObject<{}, z$1.core.$strip>, "settled", false>;
7043
7058
  "environment.attach": HostDaemonCommandDescriptor<"environment.attach", z$1.ZodObject<{
7044
- contributedEnv: z$1.ZodArray<z$1.ZodObject<{
7045
- name: z$1.ZodString;
7046
- reason: z$1.ZodString;
7047
- source: z$1.ZodUnion<readonly [z$1.ZodObject<{
7048
- plugin: z$1.ZodString;
7049
- }, z$1.core.$strict>, z$1.ZodObject<{
7050
- core: z$1.ZodEnum<{
7051
- "machine-environment": "machine-environment";
7052
- "machine-git": "machine-git";
7053
- "project-environment": "project-environment";
7054
- }>;
7055
- }, z$1.core.$strict>]>;
7056
- value: z$1.ZodUnion<readonly [z$1.ZodString, z$1.ZodObject<{
7057
- serverPath: z$1.ZodString;
7058
- }, z$1.core.$strict>]>;
7059
- }, z$1.core.$strict>>;
7060
7059
  environmentId: z$1.ZodString;
7061
7060
  initiator: z$1.ZodNullable<z$1.ZodObject<{
7062
7061
  provisioningId: z$1.ZodString;
7063
7062
  threadId: z$1.ZodString;
7064
7063
  }, z$1.core.$strict>>;
7065
7064
  path: z$1.ZodString;
7066
- setupScriptTimeoutMs: z$1.ZodNullable<z$1.ZodNumber>;
7067
7065
  type: z$1.ZodLiteral<"environment.attach">;
7068
7066
  }, z$1.core.$strict>, z$1.ZodObject<{
7069
7067
  branchName: z$1.ZodNullable<z$1.ZodString>;
@@ -7958,6 +7956,22 @@ declare const hostDaemonCommandRegistry: {
7958
7956
  kind: z$1.ZodLiteral<"artifact">;
7959
7957
  }, z$1.core.$strict>;
7960
7958
  }, z$1.core.$strict>;
7959
+ contributedEnv: z$1.ZodArray<z$1.ZodObject<{
7960
+ name: z$1.ZodString;
7961
+ reason: z$1.ZodString;
7962
+ source: z$1.ZodUnion<readonly [z$1.ZodObject<{
7963
+ plugin: z$1.ZodString;
7964
+ }, z$1.core.$strict>, z$1.ZodObject<{
7965
+ core: z$1.ZodEnum<{
7966
+ "machine-environment": "machine-environment";
7967
+ "machine-git": "machine-git";
7968
+ "project-environment": "project-environment";
7969
+ }>;
7970
+ }, z$1.core.$strict>]>;
7971
+ value: z$1.ZodUnion<readonly [z$1.ZodString, z$1.ZodObject<{
7972
+ serverPath: z$1.ZodString;
7973
+ }, z$1.core.$strict>]>;
7974
+ }, z$1.core.$strict>>;
7961
7975
  cwd: z$1.ZodNullable<z$1.ZodString>;
7962
7976
  providerId: z$1.ZodString;
7963
7977
  type: z$1.ZodLiteral<"provider.list_commands">;
@@ -7995,6 +8009,22 @@ declare const hostDaemonCommandRegistry: {
7995
8009
  kind: z$1.ZodLiteral<"artifact">;
7996
8010
  }, z$1.core.$strict>;
7997
8011
  }, z$1.core.$strict>;
8012
+ contributedEnv: z$1.ZodArray<z$1.ZodObject<{
8013
+ name: z$1.ZodString;
8014
+ reason: z$1.ZodString;
8015
+ source: z$1.ZodUnion<readonly [z$1.ZodObject<{
8016
+ plugin: z$1.ZodString;
8017
+ }, z$1.core.$strict>, z$1.ZodObject<{
8018
+ core: z$1.ZodEnum<{
8019
+ "machine-environment": "machine-environment";
8020
+ "machine-git": "machine-git";
8021
+ "project-environment": "project-environment";
8022
+ }>;
8023
+ }, z$1.core.$strict>]>;
8024
+ value: z$1.ZodUnion<readonly [z$1.ZodString, z$1.ZodObject<{
8025
+ serverPath: z$1.ZodString;
8026
+ }, z$1.core.$strict>]>;
8027
+ }, z$1.core.$strict>>;
7998
8028
  cwd: z$1.ZodOptional<z$1.ZodString>;
7999
8029
  providerId: z$1.ZodString;
8000
8030
  type: z$1.ZodLiteral<"provider.health">;
@@ -8050,6 +8080,22 @@ declare const hostDaemonCommandRegistry: {
8050
8080
  kind: z$1.ZodLiteral<"artifact">;
8051
8081
  }, z$1.core.$strict>;
8052
8082
  }, z$1.core.$strict>;
8083
+ contributedEnv: z$1.ZodArray<z$1.ZodObject<{
8084
+ name: z$1.ZodString;
8085
+ reason: z$1.ZodString;
8086
+ source: z$1.ZodUnion<readonly [z$1.ZodObject<{
8087
+ plugin: z$1.ZodString;
8088
+ }, z$1.core.$strict>, z$1.ZodObject<{
8089
+ core: z$1.ZodEnum<{
8090
+ "machine-environment": "machine-environment";
8091
+ "machine-git": "machine-git";
8092
+ "project-environment": "project-environment";
8093
+ }>;
8094
+ }, z$1.core.$strict>]>;
8095
+ value: z$1.ZodUnion<readonly [z$1.ZodString, z$1.ZodObject<{
8096
+ serverPath: z$1.ZodString;
8097
+ }, z$1.core.$strict>]>;
8098
+ }, z$1.core.$strict>>;
8053
8099
  providerId: z$1.ZodString;
8054
8100
  type: z$1.ZodLiteral<"provider.installation.status">;
8055
8101
  }, z$1.core.$strict>, z$1.ZodObject<{
@@ -8111,6 +8157,22 @@ declare const hostDaemonCommandRegistry: {
8111
8157
  kind: z$1.ZodLiteral<"artifact">;
8112
8158
  }, z$1.core.$strict>;
8113
8159
  }, z$1.core.$strict>;
8160
+ contributedEnv: z$1.ZodArray<z$1.ZodObject<{
8161
+ name: z$1.ZodString;
8162
+ reason: z$1.ZodString;
8163
+ source: z$1.ZodUnion<readonly [z$1.ZodObject<{
8164
+ plugin: z$1.ZodString;
8165
+ }, z$1.core.$strict>, z$1.ZodObject<{
8166
+ core: z$1.ZodEnum<{
8167
+ "machine-environment": "machine-environment";
8168
+ "machine-git": "machine-git";
8169
+ "project-environment": "project-environment";
8170
+ }>;
8171
+ }, z$1.core.$strict>]>;
8172
+ value: z$1.ZodUnion<readonly [z$1.ZodString, z$1.ZodObject<{
8173
+ serverPath: z$1.ZodString;
8174
+ }, z$1.core.$strict>]>;
8175
+ }, z$1.core.$strict>>;
8114
8176
  providerId: z$1.ZodString;
8115
8177
  type: z$1.ZodLiteral<"provider.installation.run">;
8116
8178
  }, z$1.core.$strict>, z$1.ZodObject<{
@@ -8691,12 +8753,21 @@ declare const updateHostRequestSchema: z$1.ZodObject<{
8691
8753
  name: z$1.ZodString;
8692
8754
  }, z$1.core.$strict>;
8693
8755
  type UpdateHostRequest = z$1.infer<typeof updateHostRequestSchema>;
8694
- declare const hostActionResponseSchema: z$1.ZodObject<{
8756
+ declare const hostRemovalResponseSchema: z$1.ZodObject<{
8695
8757
  ok: z$1.ZodLiteral<true>;
8758
+ progress: z$1.ZodEnum<{
8759
+ "in-progress": "in-progress";
8760
+ complete: "complete";
8761
+ }>;
8762
+ warnings: z$1.ZodArray<z$1.ZodString>;
8696
8763
  }, z$1.core.$strict>;
8697
- type HostActionResponse = z$1.infer<typeof hostActionResponseSchema>;
8764
+ type HostRemovalResponse = z$1.infer<typeof hostRemovalResponseSchema>;
8698
8765
  declare const hostRetryUpdateResponseSchema: z$1.ZodObject<{
8699
8766
  ok: z$1.ZodLiteral<true>;
8767
+ progress: z$1.ZodEnum<{
8768
+ "in-progress": "in-progress";
8769
+ complete: "complete";
8770
+ }>;
8700
8771
  }, z$1.core.$strict>;
8701
8772
  type HostRetryUpdateResponse = z$1.infer<typeof hostRetryUpdateResponseSchema>;
8702
8773
  type HostPathsExistRequest = PathsExistRequest;
@@ -9693,6 +9764,14 @@ declare const pluginCatalogSearchResponseSchema: z$1.ZodObject<{
9693
9764
  installed: z$1.ZodBoolean;
9694
9765
  installedByDefault: z$1.ZodDefault<z$1.ZodBoolean>;
9695
9766
  installs: z$1.ZodDefault<z$1.ZodNullable<z$1.ZodNumber>>;
9767
+ listings: z$1.ZodDefault<z$1.ZodArray<z$1.ZodObject<{
9768
+ entryId: z$1.ZodString;
9769
+ marketplace: z$1.ZodString;
9770
+ marketplaceDisplayName: z$1.ZodString;
9771
+ official: z$1.ZodBoolean;
9772
+ publisherLabel: z$1.ZodString;
9773
+ source: z$1.ZodString;
9774
+ }, z$1.core.$strip>>>;
9696
9775
  marketplace: z$1.ZodString;
9697
9776
  marketplaceDisplayName: z$1.ZodString;
9698
9777
  official: z$1.ZodBoolean;
@@ -9776,8 +9855,10 @@ declare const pluginCatalogInstallPlanSchema: z$1.ZodDiscriminatedUnion<[z$1.Zod
9776
9855
  }, z$1.core.$strip>], "kind">;
9777
9856
  type PluginCatalogInstallPlan = z$1.infer<typeof pluginCatalogInstallPlanSchema>;
9778
9857
  declare const pluginMarketplaceSchema: z$1.ZodObject<{
9858
+ canDisable: z$1.ZodBoolean;
9779
9859
  description: z$1.ZodNullable<z$1.ZodString>;
9780
9860
  displayName: z$1.ZodString;
9861
+ enabled: z$1.ZodBoolean;
9781
9862
  entryCount: z$1.ZodNumber;
9782
9863
  lastAttemptAt: z$1.ZodNullable<z$1.ZodNumber>;
9783
9864
  lastError: z$1.ZodNullable<z$1.ZodString>;
@@ -9797,8 +9878,10 @@ type PluginMarketplace = z$1.infer<typeof pluginMarketplaceSchema>;
9797
9878
  declare const pluginMarketplaceRefreshResultSchema: z$1.ZodObject<{
9798
9879
  error: z$1.ZodNullable<z$1.ZodString>;
9799
9880
  marketplace: z$1.ZodObject<{
9881
+ canDisable: z$1.ZodBoolean;
9800
9882
  description: z$1.ZodNullable<z$1.ZodString>;
9801
9883
  displayName: z$1.ZodString;
9884
+ enabled: z$1.ZodBoolean;
9802
9885
  entryCount: z$1.ZodNumber;
9803
9886
  lastAttemptAt: z$1.ZodNullable<z$1.ZodNumber>;
9804
9887
  lastError: z$1.ZodNullable<z$1.ZodString>;
@@ -11204,7 +11287,11 @@ declare const systemAppUpdateAcknowledgeRequestSchema: z$1.ZodObject<{
11204
11287
  type SystemAppUpdateAcknowledgeRequest = z$1.infer<typeof systemAppUpdateAcknowledgeRequestSchema>;
11205
11288
  declare const systemConfigReloadResponseSchema: z$1.ZodObject<{
11206
11289
  ok: z$1.ZodLiteral<true>;
11207
- }, z$1.core.$strip>;
11290
+ progress: z$1.ZodEnum<{
11291
+ "in-progress": "in-progress";
11292
+ complete: "complete";
11293
+ }>;
11294
+ }, z$1.core.$strict>;
11208
11295
  declare const systemCliSkillsStatusResponseSchema: z$1.ZodObject<{
11209
11296
  machines: z$1.ZodArray<z$1.ZodObject<{
11210
11297
  hostId: z$1.ZodString;
@@ -14635,6 +14722,7 @@ declare const threadWithIncludesResponseSchema: z$1.ZodObject<{
14635
14722
  teardown: z$1.ZodNullable<z$1.ZodObject<{
14636
14723
  attempt: z$1.ZodNumber;
14637
14724
  message: z$1.ZodOptional<z$1.ZodString>;
14725
+ needsRecovery: z$1.ZodBoolean;
14638
14726
  status: z$1.ZodEnum<{
14639
14727
  failed: "failed";
14640
14728
  removed: "removed";
@@ -14683,6 +14771,8 @@ declare const threadWithIncludesResponseSchema: z$1.ZodObject<{
14683
14771
  suspendedAt: z$1.ZodNullable<z$1.ZodNumber>;
14684
14772
  teardown: z$1.ZodNullable<z$1.ZodObject<{
14685
14773
  attempt: z$1.ZodNumber;
14774
+ blockedByEnvironmentId: z$1.ZodNullable<z$1.ZodString>;
14775
+ needsRecovery: z$1.ZodBoolean;
14686
14776
  status: z$1.ZodEnum<{
14687
14777
  failed: "failed";
14688
14778
  removed: "removed";
@@ -16290,128 +16380,292 @@ declare const threadTimelineResponseSchema: z$1.ZodObject<{
16290
16380
  }>;
16291
16381
  sourceSeq: z$1.ZodNumber;
16292
16382
  }, z$1.core.$strip>>;
16293
- pendingTodos: z$1.ZodNullable<z$1.ZodObject<{
16294
- items: z$1.ZodArray<z$1.ZodObject<{
16295
- id: z$1.ZodString;
16296
- status: z$1.ZodEnum<{
16297
- completed: "completed";
16298
- in_progress: "in_progress";
16299
- pending: "pending";
16300
- }>;
16301
- text: z$1.ZodString;
16383
+ pendingSteers: z$1.ZodArray<z$1.ZodObject<{
16384
+ attachments: z$1.ZodNullable<z$1.ZodObject<{
16385
+ imageUrls: z$1.ZodArray<z$1.ZodString>;
16386
+ localFileDetails: z$1.ZodArray<z$1.ZodObject<{
16387
+ name: z$1.ZodString;
16388
+ path: z$1.ZodString;
16389
+ sizeBytes: z$1.ZodNullable<z$1.ZodNumber>;
16390
+ }, z$1.core.$strip>>;
16391
+ localFilePaths: z$1.ZodArray<z$1.ZodString>;
16392
+ localFiles: z$1.ZodNumber;
16393
+ localImagePaths: z$1.ZodArray<z$1.ZodString>;
16394
+ localImages: z$1.ZodNumber;
16395
+ webImages: z$1.ZodNumber;
16302
16396
  }, z$1.core.$strip>>;
16303
- sourceSeq: z$1.ZodNumber;
16304
- updatedAt: z$1.ZodNumber;
16305
- }, z$1.core.$strip>>;
16306
- providerCommands: z$1.ZodNullable<z$1.ZodArray<z$1.ZodObject<{
16307
- argumentHint: z$1.ZodNullable<z$1.ZodString>;
16308
- description: z$1.ZodNullable<z$1.ZodString>;
16309
- name: z$1.ZodString;
16310
- origin: z$1.ZodEnum<{
16311
- builtin: "builtin";
16312
- project: "project";
16397
+ createdAt: z$1.ZodNumber;
16398
+ id: z$1.ZodString;
16399
+ initiator: z$1.ZodEnum<{
16400
+ agent: "agent";
16401
+ system: "system";
16313
16402
  user: "user";
16314
16403
  }>;
16315
- source: z$1.ZodEnum<{
16316
- command: "command";
16317
- skill: "skill";
16318
- }>;
16319
- }, z$1.core.$strip>>>;
16320
- rows: z$1.ZodArray<z$1.ZodType<TimelineRow, unknown, z$1.core.$ZodTypeInternals<TimelineRow, unknown>>>;
16321
- sessionOptions: z$1.ZodNullable<z$1.ZodArray<z$1.ZodDiscriminatedUnion<[z$1.ZodObject<{
16322
- category: z$1.ZodNullable<z$1.ZodString>;
16323
- description: z$1.ZodNullable<z$1.ZodString>;
16324
- id: z$1.ZodString;
16325
- label: z$1.ZodString;
16326
- pendingValue: z$1.ZodNullable<z$1.ZodString>;
16327
- type: z$1.ZodLiteral<"select">;
16328
- value: z$1.ZodString;
16329
- values: z$1.ZodArray<z$1.ZodObject<{
16330
- description: z$1.ZodNullable<z$1.ZodString>;
16331
- group: z$1.ZodNullable<z$1.ZodString>;
16332
- id: z$1.ZodString;
16333
- label: z$1.ZodString;
16334
- }, z$1.core.$strip>>;
16335
- }, z$1.core.$strip>, z$1.ZodObject<{
16336
- category: z$1.ZodNullable<z$1.ZodString>;
16337
- description: z$1.ZodNullable<z$1.ZodString>;
16338
- id: z$1.ZodString;
16339
- label: z$1.ZodString;
16340
- pendingValue: z$1.ZodNullable<z$1.ZodBoolean>;
16341
- type: z$1.ZodLiteral<"boolean">;
16342
- value: z$1.ZodBoolean;
16343
- }, z$1.core.$strip>], "type">>>;
16344
- tag: z$1.ZodString;
16345
- timelinePage: z$1.ZodObject<{
16346
- historySnapshot: z$1.ZodString;
16347
- olderCursor: z$1.ZodNullable<z$1.ZodObject<{
16348
- anchorId: z$1.ZodString;
16349
- anchorSeq: z$1.ZodNumber;
16350
- }, z$1.core.$strict>>;
16351
- olderRowUpdates: z$1.ZodOptional<z$1.ZodArray<z$1.ZodType<TimelineRow, unknown, z$1.core.$ZodTypeInternals<TimelineRow, unknown>>>>;
16352
- olderRowsSourceSeqEnd: z$1.ZodNullable<z$1.ZodNumber>;
16353
- returnedSegmentCount: z$1.ZodNumber;
16354
- }, z$1.core.$strict>;
16355
- }, z$1.core.$strip>;
16356
- type ThreadTimelineResponse = z$1.infer<typeof threadTimelineResponseSchema>;
16357
- declare const threadTimelineReadResponseSchema: z$1.ZodUnion<readonly [z$1.ZodObject<{
16358
- delta: z$1.ZodObject<{
16359
- afterTag: z$1.ZodString;
16360
- fields: z$1.ZodObject<{
16361
- activeBackgroundCommands: z$1.ZodOptional<z$1.ZodArray<z$1.ZodObject<{
16362
- completedAt: z$1.ZodNullable<z$1.ZodNumber>;
16363
- createdAt: z$1.ZodNumber;
16364
- description: z$1.ZodString;
16365
- error: z$1.ZodNullable<z$1.ZodString>;
16366
- id: z$1.ZodString;
16367
- itemId: z$1.ZodString;
16368
- kind: z$1.ZodLiteral<"work">;
16369
- model: z$1.ZodNullable<z$1.ZodString>;
16370
- presentation: z$1.ZodOptional<z$1.ZodObject<{
16371
- badge: z$1.ZodOptional<z$1.ZodObject<{
16372
- glyph: z$1.ZodString;
16373
- hint: z$1.ZodString;
16374
- label: z$1.ZodString;
16375
- tone: z$1.ZodEnum<{
16376
- destructive: "destructive";
16377
- neutral: "neutral";
16378
- }>;
16379
- }, z$1.core.$strip>>;
16380
- detail: z$1.ZodOptional<z$1.ZodString>;
16381
- icon: z$1.ZodObject<{
16382
- glyph: z$1.ZodString;
16383
- }, z$1.core.$strip>;
16384
- label: z$1.ZodObject<{
16385
- completed: z$1.ZodString;
16386
- pending: z$1.ZodString;
16387
- }, z$1.core.$strip>;
16388
- suppress: z$1.ZodOptional<z$1.ZodBoolean>;
16389
- tint: z$1.ZodOptional<z$1.ZodObject<{
16390
- dark: z$1.ZodString;
16391
- light: z$1.ZodString;
16392
- }, z$1.core.$strip>>;
16393
- title: z$1.ZodOptional<z$1.ZodString>;
16394
- }, z$1.core.$strip>>;
16395
- sourceSeqEnd: z$1.ZodNumber;
16396
- sourceSeqStart: z$1.ZodNumber;
16397
- startedAt: z$1.ZodNumber;
16398
- status: z$1.ZodEnum<{
16399
- completed: "completed";
16400
- error: "error";
16401
- interrupted: "interrupted";
16402
- pending: "pending";
16404
+ kind: z$1.ZodLiteral<"conversation">;
16405
+ mentions: z$1.ZodArray<z$1.ZodObject<{
16406
+ end: z$1.ZodNumber;
16407
+ resource: z$1.ZodPreprocess<z$1.ZodDiscriminatedUnion<[z$1.ZodObject<{
16408
+ kind: z$1.ZodLiteral<"thread">;
16409
+ label: z$1.ZodString;
16410
+ projectId: z$1.ZodOptional<z$1.ZodString>;
16411
+ threadId: z$1.ZodString;
16412
+ }, z$1.core.$strip>, z$1.ZodObject<{
16413
+ kind: z$1.ZodLiteral<"project">;
16414
+ label: z$1.ZodString;
16415
+ projectId: z$1.ZodString;
16416
+ }, z$1.core.$strip>, z$1.ZodObject<{
16417
+ kind: z$1.ZodLiteral<"section">;
16418
+ label: z$1.ZodString;
16419
+ sectionId: z$1.ZodString;
16420
+ }, z$1.core.$strip>, z$1.ZodObject<{
16421
+ entryKind: z$1.ZodEnum<{
16422
+ directory: "directory";
16423
+ file: "file";
16403
16424
  }>;
16404
- summary: z$1.ZodNullable<z$1.ZodString>;
16405
- taskStatus: z$1.ZodEnum<{
16406
- completed: "completed";
16407
- failed: "failed";
16408
- killed: "killed";
16409
- paused: "paused";
16410
- pending: "pending";
16411
- running: "running";
16412
- stopped: "stopped";
16425
+ kind: z$1.ZodLiteral<"path">;
16426
+ label: z$1.ZodString;
16427
+ path: z$1.ZodString;
16428
+ source: z$1.ZodEnum<{
16429
+ "thread-storage": "thread-storage";
16430
+ workspace: "workspace";
16431
+ }>;
16432
+ }, z$1.core.$strip>, z$1.ZodObject<{
16433
+ argumentHint: z$1.ZodNullable<z$1.ZodString>;
16434
+ kind: z$1.ZodLiteral<"command">;
16435
+ label: z$1.ZodString;
16436
+ name: z$1.ZodString;
16437
+ origin: z$1.ZodEnum<{
16438
+ builtin: "builtin";
16439
+ project: "project";
16440
+ user: "user";
16441
+ }>;
16442
+ source: z$1.ZodEnum<{
16443
+ command: "command";
16444
+ skill: "skill";
16445
+ }>;
16446
+ trigger: z$1.ZodEnum<{
16447
+ "/": "/";
16448
+ $: "$";
16449
+ }>;
16450
+ }, z$1.core.$strip>, z$1.ZodObject<{
16451
+ icon: z$1.ZodOptional<z$1.ZodNullable<z$1.ZodString>>;
16452
+ itemId: z$1.ZodString;
16453
+ kind: z$1.ZodLiteral<"plugin">;
16454
+ label: z$1.ZodString;
16455
+ pluginId: z$1.ZodString;
16456
+ }, z$1.core.$strip>, z$1.ZodObject<{
16457
+ kind: z$1.ZodLiteral<"attachment">;
16458
+ label: z$1.ZodString;
16459
+ path: z$1.ZodString;
16460
+ }, z$1.core.$strip>], "kind">, unknown>;
16461
+ start: z$1.ZodNumber;
16462
+ }, z$1.core.$strip>>;
16463
+ messageSeq: z$1.ZodNumber;
16464
+ role: z$1.ZodLiteral<"user">;
16465
+ senderThreadId: z$1.ZodNullable<z$1.ZodString>;
16466
+ sourceSeqEnd: z$1.ZodNumber;
16467
+ sourceSeqStart: z$1.ZodNumber;
16468
+ startedAt: z$1.ZodNumber;
16469
+ systemMessageKind: z$1.ZodEnum<{
16470
+ "child-completed": "child-completed";
16471
+ "child-failed": "child-failed";
16472
+ "child-interrupted": "child-interrupted";
16473
+ "child-needs-attention": "child-needs-attention";
16474
+ "child-outcome-batch": "child-outcome-batch";
16475
+ "environment-directory-updated": "environment-directory-updated";
16476
+ "ownership-assigned": "ownership-assigned";
16477
+ "ownership-batch": "ownership-batch";
16478
+ "ownership-removed": "ownership-removed";
16479
+ "tool-result-delivered": "tool-result-delivered";
16480
+ unlabeled: "unlabeled";
16481
+ }>;
16482
+ systemMessageSubject: z$1.ZodNullable<z$1.ZodDiscriminatedUnion<[z$1.ZodObject<{
16483
+ kind: z$1.ZodLiteral<"thread">;
16484
+ outcomes: z$1.ZodOptional<z$1.ZodArray<z$1.ZodObject<{
16485
+ interruption: z$1.ZodOptional<z$1.ZodObject<{
16486
+ cause: z$1.ZodOptional<z$1.ZodLiteral<"host-connection-lost">>;
16487
+ reason: z$1.ZodEnum<{
16488
+ "host-daemon-restarted": "host-daemon-restarted";
16489
+ "host-removed": "host-removed";
16490
+ "manual-stop": "manual-stop";
16491
+ "provider-turn-idle": "provider-turn-idle";
16492
+ }>;
16493
+ }, z$1.core.$strip>>;
16494
+ status: z$1.ZodEnum<{
16495
+ completed: "completed";
16496
+ failed: "failed";
16497
+ interrupted: "interrupted";
16413
16498
  }>;
16414
- taskType: z$1.ZodString;
16499
+ threadId: z$1.ZodString;
16500
+ }, z$1.core.$strip>>>;
16501
+ threadId: z$1.ZodString;
16502
+ threadName: z$1.ZodString;
16503
+ }, z$1.core.$strip>, z$1.ZodObject<{
16504
+ count: z$1.ZodNumber;
16505
+ kind: z$1.ZodLiteral<"thread-batch">;
16506
+ outcomes: z$1.ZodOptional<z$1.ZodArray<z$1.ZodObject<{
16507
+ interruption: z$1.ZodOptional<z$1.ZodObject<{
16508
+ cause: z$1.ZodOptional<z$1.ZodLiteral<"host-connection-lost">>;
16509
+ reason: z$1.ZodEnum<{
16510
+ "host-daemon-restarted": "host-daemon-restarted";
16511
+ "host-removed": "host-removed";
16512
+ "manual-stop": "manual-stop";
16513
+ "provider-turn-idle": "provider-turn-idle";
16514
+ }>;
16515
+ }, z$1.core.$strip>>;
16516
+ status: z$1.ZodEnum<{
16517
+ completed: "completed";
16518
+ failed: "failed";
16519
+ interrupted: "interrupted";
16520
+ }>;
16521
+ threadId: z$1.ZodString;
16522
+ }, z$1.core.$strip>>>;
16523
+ }, z$1.core.$strip>, z$1.ZodObject<{
16524
+ kind: z$1.ZodLiteral<"tool-call">;
16525
+ suppress: z$1.ZodBoolean;
16526
+ toolName: z$1.ZodString;
16527
+ }, z$1.core.$strip>, z$1.ZodObject<{
16528
+ kind: z$1.ZodLiteral<"directory">;
16529
+ path: z$1.ZodString;
16530
+ }, z$1.core.$strip>], "kind">>;
16531
+ text: z$1.ZodString;
16532
+ threadId: z$1.ZodString;
16533
+ turnId: z$1.ZodNullable<z$1.ZodString>;
16534
+ turnRequest: z$1.ZodObject<{
16535
+ isGrouped: z$1.ZodBoolean;
16536
+ kind: z$1.ZodEnum<{
16537
+ message: "message";
16538
+ steer: "steer";
16539
+ }>;
16540
+ status: z$1.ZodEnum<{
16541
+ accepted: "accepted";
16542
+ pending: "pending";
16543
+ rejected: "rejected";
16544
+ }>;
16545
+ }, z$1.core.$strip>;
16546
+ }, z$1.core.$strip>>;
16547
+ pendingTodos: z$1.ZodNullable<z$1.ZodObject<{
16548
+ items: z$1.ZodArray<z$1.ZodObject<{
16549
+ id: z$1.ZodString;
16550
+ status: z$1.ZodEnum<{
16551
+ completed: "completed";
16552
+ in_progress: "in_progress";
16553
+ pending: "pending";
16554
+ }>;
16555
+ text: z$1.ZodString;
16556
+ }, z$1.core.$strip>>;
16557
+ sourceSeq: z$1.ZodNumber;
16558
+ updatedAt: z$1.ZodNumber;
16559
+ }, z$1.core.$strip>>;
16560
+ providerCommands: z$1.ZodNullable<z$1.ZodArray<z$1.ZodObject<{
16561
+ argumentHint: z$1.ZodNullable<z$1.ZodString>;
16562
+ description: z$1.ZodNullable<z$1.ZodString>;
16563
+ name: z$1.ZodString;
16564
+ origin: z$1.ZodEnum<{
16565
+ builtin: "builtin";
16566
+ project: "project";
16567
+ user: "user";
16568
+ }>;
16569
+ source: z$1.ZodEnum<{
16570
+ command: "command";
16571
+ skill: "skill";
16572
+ }>;
16573
+ }, z$1.core.$strip>>>;
16574
+ rows: z$1.ZodArray<z$1.ZodType<TimelineRow, unknown, z$1.core.$ZodTypeInternals<TimelineRow, unknown>>>;
16575
+ sessionOptions: z$1.ZodNullable<z$1.ZodArray<z$1.ZodDiscriminatedUnion<[z$1.ZodObject<{
16576
+ category: z$1.ZodNullable<z$1.ZodString>;
16577
+ description: z$1.ZodNullable<z$1.ZodString>;
16578
+ id: z$1.ZodString;
16579
+ label: z$1.ZodString;
16580
+ pendingValue: z$1.ZodNullable<z$1.ZodString>;
16581
+ type: z$1.ZodLiteral<"select">;
16582
+ value: z$1.ZodString;
16583
+ values: z$1.ZodArray<z$1.ZodObject<{
16584
+ description: z$1.ZodNullable<z$1.ZodString>;
16585
+ group: z$1.ZodNullable<z$1.ZodString>;
16586
+ id: z$1.ZodString;
16587
+ label: z$1.ZodString;
16588
+ }, z$1.core.$strip>>;
16589
+ }, z$1.core.$strip>, z$1.ZodObject<{
16590
+ category: z$1.ZodNullable<z$1.ZodString>;
16591
+ description: z$1.ZodNullable<z$1.ZodString>;
16592
+ id: z$1.ZodString;
16593
+ label: z$1.ZodString;
16594
+ pendingValue: z$1.ZodNullable<z$1.ZodBoolean>;
16595
+ type: z$1.ZodLiteral<"boolean">;
16596
+ value: z$1.ZodBoolean;
16597
+ }, z$1.core.$strip>], "type">>>;
16598
+ tag: z$1.ZodString;
16599
+ timelinePage: z$1.ZodObject<{
16600
+ historySnapshot: z$1.ZodString;
16601
+ olderCursor: z$1.ZodNullable<z$1.ZodObject<{
16602
+ anchorId: z$1.ZodString;
16603
+ anchorSeq: z$1.ZodNumber;
16604
+ }, z$1.core.$strict>>;
16605
+ olderRowUpdates: z$1.ZodOptional<z$1.ZodArray<z$1.ZodType<TimelineRow, unknown, z$1.core.$ZodTypeInternals<TimelineRow, unknown>>>>;
16606
+ olderRowsSourceSeqEnd: z$1.ZodNullable<z$1.ZodNumber>;
16607
+ returnedSegmentCount: z$1.ZodNumber;
16608
+ }, z$1.core.$strict>;
16609
+ }, z$1.core.$strip>;
16610
+ type ThreadTimelineResponse = z$1.infer<typeof threadTimelineResponseSchema>;
16611
+ declare const threadTimelineReadResponseSchema: z$1.ZodUnion<readonly [z$1.ZodObject<{
16612
+ delta: z$1.ZodObject<{
16613
+ afterTag: z$1.ZodString;
16614
+ fields: z$1.ZodObject<{
16615
+ activeBackgroundCommands: z$1.ZodOptional<z$1.ZodArray<z$1.ZodObject<{
16616
+ completedAt: z$1.ZodNullable<z$1.ZodNumber>;
16617
+ createdAt: z$1.ZodNumber;
16618
+ description: z$1.ZodString;
16619
+ error: z$1.ZodNullable<z$1.ZodString>;
16620
+ id: z$1.ZodString;
16621
+ itemId: z$1.ZodString;
16622
+ kind: z$1.ZodLiteral<"work">;
16623
+ model: z$1.ZodNullable<z$1.ZodString>;
16624
+ presentation: z$1.ZodOptional<z$1.ZodObject<{
16625
+ badge: z$1.ZodOptional<z$1.ZodObject<{
16626
+ glyph: z$1.ZodString;
16627
+ hint: z$1.ZodString;
16628
+ label: z$1.ZodString;
16629
+ tone: z$1.ZodEnum<{
16630
+ destructive: "destructive";
16631
+ neutral: "neutral";
16632
+ }>;
16633
+ }, z$1.core.$strip>>;
16634
+ detail: z$1.ZodOptional<z$1.ZodString>;
16635
+ icon: z$1.ZodObject<{
16636
+ glyph: z$1.ZodString;
16637
+ }, z$1.core.$strip>;
16638
+ label: z$1.ZodObject<{
16639
+ completed: z$1.ZodString;
16640
+ pending: z$1.ZodString;
16641
+ }, z$1.core.$strip>;
16642
+ suppress: z$1.ZodOptional<z$1.ZodBoolean>;
16643
+ tint: z$1.ZodOptional<z$1.ZodObject<{
16644
+ dark: z$1.ZodString;
16645
+ light: z$1.ZodString;
16646
+ }, z$1.core.$strip>>;
16647
+ title: z$1.ZodOptional<z$1.ZodString>;
16648
+ }, z$1.core.$strip>>;
16649
+ sourceSeqEnd: z$1.ZodNumber;
16650
+ sourceSeqStart: z$1.ZodNumber;
16651
+ startedAt: z$1.ZodNumber;
16652
+ status: z$1.ZodEnum<{
16653
+ completed: "completed";
16654
+ error: "error";
16655
+ interrupted: "interrupted";
16656
+ pending: "pending";
16657
+ }>;
16658
+ summary: z$1.ZodNullable<z$1.ZodString>;
16659
+ taskStatus: z$1.ZodEnum<{
16660
+ completed: "completed";
16661
+ failed: "failed";
16662
+ killed: "killed";
16663
+ paused: "paused";
16664
+ pending: "pending";
16665
+ running: "running";
16666
+ stopped: "stopped";
16667
+ }>;
16668
+ taskType: z$1.ZodString;
16415
16669
  threadId: z$1.ZodString;
16416
16670
  turnId: z$1.ZodNullable<z$1.ZodString>;
16417
16671
  usage: z$1.ZodNullable<z$1.ZodObject<{
@@ -16622,6 +16876,170 @@ declare const threadTimelineReadResponseSchema: z$1.ZodUnion<readonly [z$1.ZodOb
16622
16876
  }>;
16623
16877
  sourceSeq: z$1.ZodNumber;
16624
16878
  }, z$1.core.$strip>>>;
16879
+ pendingSteers: z$1.ZodOptional<z$1.ZodArray<z$1.ZodObject<{
16880
+ attachments: z$1.ZodNullable<z$1.ZodObject<{
16881
+ imageUrls: z$1.ZodArray<z$1.ZodString>;
16882
+ localFileDetails: z$1.ZodArray<z$1.ZodObject<{
16883
+ name: z$1.ZodString;
16884
+ path: z$1.ZodString;
16885
+ sizeBytes: z$1.ZodNullable<z$1.ZodNumber>;
16886
+ }, z$1.core.$strip>>;
16887
+ localFilePaths: z$1.ZodArray<z$1.ZodString>;
16888
+ localFiles: z$1.ZodNumber;
16889
+ localImagePaths: z$1.ZodArray<z$1.ZodString>;
16890
+ localImages: z$1.ZodNumber;
16891
+ webImages: z$1.ZodNumber;
16892
+ }, z$1.core.$strip>>;
16893
+ createdAt: z$1.ZodNumber;
16894
+ id: z$1.ZodString;
16895
+ initiator: z$1.ZodEnum<{
16896
+ agent: "agent";
16897
+ system: "system";
16898
+ user: "user";
16899
+ }>;
16900
+ kind: z$1.ZodLiteral<"conversation">;
16901
+ mentions: z$1.ZodArray<z$1.ZodObject<{
16902
+ end: z$1.ZodNumber;
16903
+ resource: z$1.ZodPreprocess<z$1.ZodDiscriminatedUnion<[z$1.ZodObject<{
16904
+ kind: z$1.ZodLiteral<"thread">;
16905
+ label: z$1.ZodString;
16906
+ projectId: z$1.ZodOptional<z$1.ZodString>;
16907
+ threadId: z$1.ZodString;
16908
+ }, z$1.core.$strip>, z$1.ZodObject<{
16909
+ kind: z$1.ZodLiteral<"project">;
16910
+ label: z$1.ZodString;
16911
+ projectId: z$1.ZodString;
16912
+ }, z$1.core.$strip>, z$1.ZodObject<{
16913
+ kind: z$1.ZodLiteral<"section">;
16914
+ label: z$1.ZodString;
16915
+ sectionId: z$1.ZodString;
16916
+ }, z$1.core.$strip>, z$1.ZodObject<{
16917
+ entryKind: z$1.ZodEnum<{
16918
+ directory: "directory";
16919
+ file: "file";
16920
+ }>;
16921
+ kind: z$1.ZodLiteral<"path">;
16922
+ label: z$1.ZodString;
16923
+ path: z$1.ZodString;
16924
+ source: z$1.ZodEnum<{
16925
+ "thread-storage": "thread-storage";
16926
+ workspace: "workspace";
16927
+ }>;
16928
+ }, z$1.core.$strip>, z$1.ZodObject<{
16929
+ argumentHint: z$1.ZodNullable<z$1.ZodString>;
16930
+ kind: z$1.ZodLiteral<"command">;
16931
+ label: z$1.ZodString;
16932
+ name: z$1.ZodString;
16933
+ origin: z$1.ZodEnum<{
16934
+ builtin: "builtin";
16935
+ project: "project";
16936
+ user: "user";
16937
+ }>;
16938
+ source: z$1.ZodEnum<{
16939
+ command: "command";
16940
+ skill: "skill";
16941
+ }>;
16942
+ trigger: z$1.ZodEnum<{
16943
+ "/": "/";
16944
+ $: "$";
16945
+ }>;
16946
+ }, z$1.core.$strip>, z$1.ZodObject<{
16947
+ icon: z$1.ZodOptional<z$1.ZodNullable<z$1.ZodString>>;
16948
+ itemId: z$1.ZodString;
16949
+ kind: z$1.ZodLiteral<"plugin">;
16950
+ label: z$1.ZodString;
16951
+ pluginId: z$1.ZodString;
16952
+ }, z$1.core.$strip>, z$1.ZodObject<{
16953
+ kind: z$1.ZodLiteral<"attachment">;
16954
+ label: z$1.ZodString;
16955
+ path: z$1.ZodString;
16956
+ }, z$1.core.$strip>], "kind">, unknown>;
16957
+ start: z$1.ZodNumber;
16958
+ }, z$1.core.$strip>>;
16959
+ messageSeq: z$1.ZodNumber;
16960
+ role: z$1.ZodLiteral<"user">;
16961
+ senderThreadId: z$1.ZodNullable<z$1.ZodString>;
16962
+ sourceSeqEnd: z$1.ZodNumber;
16963
+ sourceSeqStart: z$1.ZodNumber;
16964
+ startedAt: z$1.ZodNumber;
16965
+ systemMessageKind: z$1.ZodEnum<{
16966
+ "child-completed": "child-completed";
16967
+ "child-failed": "child-failed";
16968
+ "child-interrupted": "child-interrupted";
16969
+ "child-needs-attention": "child-needs-attention";
16970
+ "child-outcome-batch": "child-outcome-batch";
16971
+ "environment-directory-updated": "environment-directory-updated";
16972
+ "ownership-assigned": "ownership-assigned";
16973
+ "ownership-batch": "ownership-batch";
16974
+ "ownership-removed": "ownership-removed";
16975
+ "tool-result-delivered": "tool-result-delivered";
16976
+ unlabeled: "unlabeled";
16977
+ }>;
16978
+ systemMessageSubject: z$1.ZodNullable<z$1.ZodDiscriminatedUnion<[z$1.ZodObject<{
16979
+ kind: z$1.ZodLiteral<"thread">;
16980
+ outcomes: z$1.ZodOptional<z$1.ZodArray<z$1.ZodObject<{
16981
+ interruption: z$1.ZodOptional<z$1.ZodObject<{
16982
+ cause: z$1.ZodOptional<z$1.ZodLiteral<"host-connection-lost">>;
16983
+ reason: z$1.ZodEnum<{
16984
+ "host-daemon-restarted": "host-daemon-restarted";
16985
+ "host-removed": "host-removed";
16986
+ "manual-stop": "manual-stop";
16987
+ "provider-turn-idle": "provider-turn-idle";
16988
+ }>;
16989
+ }, z$1.core.$strip>>;
16990
+ status: z$1.ZodEnum<{
16991
+ completed: "completed";
16992
+ failed: "failed";
16993
+ interrupted: "interrupted";
16994
+ }>;
16995
+ threadId: z$1.ZodString;
16996
+ }, z$1.core.$strip>>>;
16997
+ threadId: z$1.ZodString;
16998
+ threadName: z$1.ZodString;
16999
+ }, z$1.core.$strip>, z$1.ZodObject<{
17000
+ count: z$1.ZodNumber;
17001
+ kind: z$1.ZodLiteral<"thread-batch">;
17002
+ outcomes: z$1.ZodOptional<z$1.ZodArray<z$1.ZodObject<{
17003
+ interruption: z$1.ZodOptional<z$1.ZodObject<{
17004
+ cause: z$1.ZodOptional<z$1.ZodLiteral<"host-connection-lost">>;
17005
+ reason: z$1.ZodEnum<{
17006
+ "host-daemon-restarted": "host-daemon-restarted";
17007
+ "host-removed": "host-removed";
17008
+ "manual-stop": "manual-stop";
17009
+ "provider-turn-idle": "provider-turn-idle";
17010
+ }>;
17011
+ }, z$1.core.$strip>>;
17012
+ status: z$1.ZodEnum<{
17013
+ completed: "completed";
17014
+ failed: "failed";
17015
+ interrupted: "interrupted";
17016
+ }>;
17017
+ threadId: z$1.ZodString;
17018
+ }, z$1.core.$strip>>>;
17019
+ }, z$1.core.$strip>, z$1.ZodObject<{
17020
+ kind: z$1.ZodLiteral<"tool-call">;
17021
+ suppress: z$1.ZodBoolean;
17022
+ toolName: z$1.ZodString;
17023
+ }, z$1.core.$strip>, z$1.ZodObject<{
17024
+ kind: z$1.ZodLiteral<"directory">;
17025
+ path: z$1.ZodString;
17026
+ }, z$1.core.$strip>], "kind">>;
17027
+ text: z$1.ZodString;
17028
+ threadId: z$1.ZodString;
17029
+ turnId: z$1.ZodNullable<z$1.ZodString>;
17030
+ turnRequest: z$1.ZodObject<{
17031
+ isGrouped: z$1.ZodBoolean;
17032
+ kind: z$1.ZodEnum<{
17033
+ message: "message";
17034
+ steer: "steer";
17035
+ }>;
17036
+ status: z$1.ZodEnum<{
17037
+ accepted: "accepted";
17038
+ pending: "pending";
17039
+ rejected: "rejected";
17040
+ }>;
17041
+ }, z$1.core.$strip>;
17042
+ }, z$1.core.$strip>>>;
16625
17043
  pendingTodos: z$1.ZodOptional<z$1.ZodNullable<z$1.ZodObject<{
16626
17044
  items: z$1.ZodArray<z$1.ZodObject<{
16627
17045
  id: z$1.ZodString;
@@ -16893,70 +17311,234 @@ declare const threadTimelineReadResponseSchema: z$1.ZodUnion<readonly [z$1.ZodOb
16893
17311
  running: "running";
16894
17312
  skipped: "skipped";
16895
17313
  }>;
16896
- tokens: z$1.ZodOptional<z$1.ZodNumber>;
16897
- toolCalls: z$1.ZodOptional<z$1.ZodNumber>;
16898
- }, z$1.core.$strip>>;
16899
- phases: z$1.ZodArray<z$1.ZodObject<{
16900
- index: z$1.ZodNumber;
16901
- kind: z$1.ZodOptional<z$1.ZodString>;
16902
- title: z$1.ZodString;
16903
- }, z$1.core.$strip>>;
16904
- }, z$1.core.$strip>>;
16905
- workflowName: z$1.ZodNullable<z$1.ZodString>;
16906
- }, z$1.core.$strip>>;
16907
- completedTurnDisplay: z$1.ZodEnum<{
16908
- collapse: "collapse";
16909
- flat: "flat";
16910
- }>;
16911
- contextBoundarySeq: z$1.ZodNullable<z$1.ZodNumber>;
16912
- contextWindowUsage: z$1.ZodOptional<z$1.ZodObject<{
16913
- compactionOfferAt: z$1.ZodOptional<z$1.ZodISODateTime>;
16914
- cost: z$1.ZodOptional<z$1.ZodObject<{
16915
- amount: z$1.ZodNumber;
16916
- currency: z$1.ZodString;
16917
- }, z$1.core.$strip>>;
16918
- estimated: z$1.ZodBoolean;
16919
- modelContextWindow: z$1.ZodNumber;
16920
- snapshot: z$1.ZodOptional<z$1.ZodObject<{
16921
- autoCompactAtTokens: z$1.ZodNullable<z$1.ZodNumber>;
16922
- capturedAt: z$1.ZodISODateTime;
16923
- categories: z$1.ZodArray<z$1.ZodObject<{
16924
- entries: z$1.ZodArray<z$1.ZodObject<{
16925
- id: z$1.ZodString;
16926
- label: z$1.ZodString;
16927
- tokens: z$1.ZodNumber;
16928
- }, z$1.core.$strip>>;
16929
- id: z$1.ZodString;
16930
- kind: z$1.ZodEnum<{
16931
- deferred: "deferred";
16932
- free: "free";
16933
- reserved: "reserved";
16934
- used: "used";
17314
+ tokens: z$1.ZodOptional<z$1.ZodNumber>;
17315
+ toolCalls: z$1.ZodOptional<z$1.ZodNumber>;
17316
+ }, z$1.core.$strip>>;
17317
+ phases: z$1.ZodArray<z$1.ZodObject<{
17318
+ index: z$1.ZodNumber;
17319
+ kind: z$1.ZodOptional<z$1.ZodString>;
17320
+ title: z$1.ZodString;
17321
+ }, z$1.core.$strip>>;
17322
+ }, z$1.core.$strip>>;
17323
+ workflowName: z$1.ZodNullable<z$1.ZodString>;
17324
+ }, z$1.core.$strip>>;
17325
+ completedTurnDisplay: z$1.ZodEnum<{
17326
+ collapse: "collapse";
17327
+ flat: "flat";
17328
+ }>;
17329
+ contextBoundarySeq: z$1.ZodNullable<z$1.ZodNumber>;
17330
+ contextWindowUsage: z$1.ZodOptional<z$1.ZodObject<{
17331
+ compactionOfferAt: z$1.ZodOptional<z$1.ZodISODateTime>;
17332
+ cost: z$1.ZodOptional<z$1.ZodObject<{
17333
+ amount: z$1.ZodNumber;
17334
+ currency: z$1.ZodString;
17335
+ }, z$1.core.$strip>>;
17336
+ estimated: z$1.ZodBoolean;
17337
+ modelContextWindow: z$1.ZodNumber;
17338
+ snapshot: z$1.ZodOptional<z$1.ZodObject<{
17339
+ autoCompactAtTokens: z$1.ZodNullable<z$1.ZodNumber>;
17340
+ capturedAt: z$1.ZodISODateTime;
17341
+ categories: z$1.ZodArray<z$1.ZodObject<{
17342
+ entries: z$1.ZodArray<z$1.ZodObject<{
17343
+ id: z$1.ZodString;
17344
+ label: z$1.ZodString;
17345
+ tokens: z$1.ZodNumber;
17346
+ }, z$1.core.$strip>>;
17347
+ id: z$1.ZodString;
17348
+ kind: z$1.ZodEnum<{
17349
+ deferred: "deferred";
17350
+ free: "free";
17351
+ reserved: "reserved";
17352
+ used: "used";
17353
+ }>;
17354
+ label: z$1.ZodString;
17355
+ tokens: z$1.ZodNumber;
17356
+ }, z$1.core.$strip>>;
17357
+ contextWindowTokens: z$1.ZodNumber;
17358
+ estimated: z$1.ZodBoolean;
17359
+ model: z$1.ZodString;
17360
+ providerSessionId: z$1.ZodString;
17361
+ providerTurnId: z$1.ZodNullable<z$1.ZodString>;
17362
+ usedTokens: z$1.ZodNumber;
17363
+ }, z$1.core.$strip>>;
17364
+ usedTokens: z$1.ZodNumber;
17365
+ }, z$1.core.$strip>>;
17366
+ extensionStates: z$1.ZodRecord<z$1.ZodString, z$1.ZodType<JsonValue, unknown, z$1.core.$ZodTypeInternals<JsonValue, unknown>>>;
17367
+ maxSeq: z$1.ZodNumber;
17368
+ modelFallback: z$1.ZodNullable<z$1.ZodObject<{
17369
+ detectedAt: z$1.ZodNumber;
17370
+ fallbackModel: z$1.ZodString;
17371
+ message: z$1.ZodString;
17372
+ originalModel: z$1.ZodString;
17373
+ reason: z$1.ZodEnum<{
17374
+ provider: "provider";
17375
+ refusal: "refusal";
17376
+ }>;
17377
+ sourceSeq: z$1.ZodNumber;
17378
+ }, z$1.core.$strip>>;
17379
+ pendingSteers: z$1.ZodArray<z$1.ZodObject<{
17380
+ attachments: z$1.ZodNullable<z$1.ZodObject<{
17381
+ imageUrls: z$1.ZodArray<z$1.ZodString>;
17382
+ localFileDetails: z$1.ZodArray<z$1.ZodObject<{
17383
+ name: z$1.ZodString;
17384
+ path: z$1.ZodString;
17385
+ sizeBytes: z$1.ZodNullable<z$1.ZodNumber>;
17386
+ }, z$1.core.$strip>>;
17387
+ localFilePaths: z$1.ZodArray<z$1.ZodString>;
17388
+ localFiles: z$1.ZodNumber;
17389
+ localImagePaths: z$1.ZodArray<z$1.ZodString>;
17390
+ localImages: z$1.ZodNumber;
17391
+ webImages: z$1.ZodNumber;
17392
+ }, z$1.core.$strip>>;
17393
+ createdAt: z$1.ZodNumber;
17394
+ id: z$1.ZodString;
17395
+ initiator: z$1.ZodEnum<{
17396
+ agent: "agent";
17397
+ system: "system";
17398
+ user: "user";
17399
+ }>;
17400
+ kind: z$1.ZodLiteral<"conversation">;
17401
+ mentions: z$1.ZodArray<z$1.ZodObject<{
17402
+ end: z$1.ZodNumber;
17403
+ resource: z$1.ZodPreprocess<z$1.ZodDiscriminatedUnion<[z$1.ZodObject<{
17404
+ kind: z$1.ZodLiteral<"thread">;
17405
+ label: z$1.ZodString;
17406
+ projectId: z$1.ZodOptional<z$1.ZodString>;
17407
+ threadId: z$1.ZodString;
17408
+ }, z$1.core.$strip>, z$1.ZodObject<{
17409
+ kind: z$1.ZodLiteral<"project">;
17410
+ label: z$1.ZodString;
17411
+ projectId: z$1.ZodString;
17412
+ }, z$1.core.$strip>, z$1.ZodObject<{
17413
+ kind: z$1.ZodLiteral<"section">;
17414
+ label: z$1.ZodString;
17415
+ sectionId: z$1.ZodString;
17416
+ }, z$1.core.$strip>, z$1.ZodObject<{
17417
+ entryKind: z$1.ZodEnum<{
17418
+ directory: "directory";
17419
+ file: "file";
17420
+ }>;
17421
+ kind: z$1.ZodLiteral<"path">;
17422
+ label: z$1.ZodString;
17423
+ path: z$1.ZodString;
17424
+ source: z$1.ZodEnum<{
17425
+ "thread-storage": "thread-storage";
17426
+ workspace: "workspace";
17427
+ }>;
17428
+ }, z$1.core.$strip>, z$1.ZodObject<{
17429
+ argumentHint: z$1.ZodNullable<z$1.ZodString>;
17430
+ kind: z$1.ZodLiteral<"command">;
17431
+ label: z$1.ZodString;
17432
+ name: z$1.ZodString;
17433
+ origin: z$1.ZodEnum<{
17434
+ builtin: "builtin";
17435
+ project: "project";
17436
+ user: "user";
17437
+ }>;
17438
+ source: z$1.ZodEnum<{
17439
+ command: "command";
17440
+ skill: "skill";
17441
+ }>;
17442
+ trigger: z$1.ZodEnum<{
17443
+ "/": "/";
17444
+ $: "$";
16935
17445
  }>;
17446
+ }, z$1.core.$strip>, z$1.ZodObject<{
17447
+ icon: z$1.ZodOptional<z$1.ZodNullable<z$1.ZodString>>;
17448
+ itemId: z$1.ZodString;
17449
+ kind: z$1.ZodLiteral<"plugin">;
16936
17450
  label: z$1.ZodString;
16937
- tokens: z$1.ZodNumber;
16938
- }, z$1.core.$strip>>;
16939
- contextWindowTokens: z$1.ZodNumber;
16940
- estimated: z$1.ZodBoolean;
16941
- model: z$1.ZodString;
16942
- providerSessionId: z$1.ZodString;
16943
- providerTurnId: z$1.ZodNullable<z$1.ZodString>;
16944
- usedTokens: z$1.ZodNumber;
17451
+ pluginId: z$1.ZodString;
17452
+ }, z$1.core.$strip>, z$1.ZodObject<{
17453
+ kind: z$1.ZodLiteral<"attachment">;
17454
+ label: z$1.ZodString;
17455
+ path: z$1.ZodString;
17456
+ }, z$1.core.$strip>], "kind">, unknown>;
17457
+ start: z$1.ZodNumber;
16945
17458
  }, z$1.core.$strip>>;
16946
- usedTokens: z$1.ZodNumber;
16947
- }, z$1.core.$strip>>;
16948
- extensionStates: z$1.ZodRecord<z$1.ZodString, z$1.ZodType<JsonValue, unknown, z$1.core.$ZodTypeInternals<JsonValue, unknown>>>;
16949
- maxSeq: z$1.ZodNumber;
16950
- modelFallback: z$1.ZodNullable<z$1.ZodObject<{
16951
- detectedAt: z$1.ZodNumber;
16952
- fallbackModel: z$1.ZodString;
16953
- message: z$1.ZodString;
16954
- originalModel: z$1.ZodString;
16955
- reason: z$1.ZodEnum<{
16956
- provider: "provider";
16957
- refusal: "refusal";
17459
+ messageSeq: z$1.ZodNumber;
17460
+ role: z$1.ZodLiteral<"user">;
17461
+ senderThreadId: z$1.ZodNullable<z$1.ZodString>;
17462
+ sourceSeqEnd: z$1.ZodNumber;
17463
+ sourceSeqStart: z$1.ZodNumber;
17464
+ startedAt: z$1.ZodNumber;
17465
+ systemMessageKind: z$1.ZodEnum<{
17466
+ "child-completed": "child-completed";
17467
+ "child-failed": "child-failed";
17468
+ "child-interrupted": "child-interrupted";
17469
+ "child-needs-attention": "child-needs-attention";
17470
+ "child-outcome-batch": "child-outcome-batch";
17471
+ "environment-directory-updated": "environment-directory-updated";
17472
+ "ownership-assigned": "ownership-assigned";
17473
+ "ownership-batch": "ownership-batch";
17474
+ "ownership-removed": "ownership-removed";
17475
+ "tool-result-delivered": "tool-result-delivered";
17476
+ unlabeled: "unlabeled";
16958
17477
  }>;
16959
- sourceSeq: z$1.ZodNumber;
17478
+ systemMessageSubject: z$1.ZodNullable<z$1.ZodDiscriminatedUnion<[z$1.ZodObject<{
17479
+ kind: z$1.ZodLiteral<"thread">;
17480
+ outcomes: z$1.ZodOptional<z$1.ZodArray<z$1.ZodObject<{
17481
+ interruption: z$1.ZodOptional<z$1.ZodObject<{
17482
+ cause: z$1.ZodOptional<z$1.ZodLiteral<"host-connection-lost">>;
17483
+ reason: z$1.ZodEnum<{
17484
+ "host-daemon-restarted": "host-daemon-restarted";
17485
+ "host-removed": "host-removed";
17486
+ "manual-stop": "manual-stop";
17487
+ "provider-turn-idle": "provider-turn-idle";
17488
+ }>;
17489
+ }, z$1.core.$strip>>;
17490
+ status: z$1.ZodEnum<{
17491
+ completed: "completed";
17492
+ failed: "failed";
17493
+ interrupted: "interrupted";
17494
+ }>;
17495
+ threadId: z$1.ZodString;
17496
+ }, z$1.core.$strip>>>;
17497
+ threadId: z$1.ZodString;
17498
+ threadName: z$1.ZodString;
17499
+ }, z$1.core.$strip>, z$1.ZodObject<{
17500
+ count: z$1.ZodNumber;
17501
+ kind: z$1.ZodLiteral<"thread-batch">;
17502
+ outcomes: z$1.ZodOptional<z$1.ZodArray<z$1.ZodObject<{
17503
+ interruption: z$1.ZodOptional<z$1.ZodObject<{
17504
+ cause: z$1.ZodOptional<z$1.ZodLiteral<"host-connection-lost">>;
17505
+ reason: z$1.ZodEnum<{
17506
+ "host-daemon-restarted": "host-daemon-restarted";
17507
+ "host-removed": "host-removed";
17508
+ "manual-stop": "manual-stop";
17509
+ "provider-turn-idle": "provider-turn-idle";
17510
+ }>;
17511
+ }, z$1.core.$strip>>;
17512
+ status: z$1.ZodEnum<{
17513
+ completed: "completed";
17514
+ failed: "failed";
17515
+ interrupted: "interrupted";
17516
+ }>;
17517
+ threadId: z$1.ZodString;
17518
+ }, z$1.core.$strip>>>;
17519
+ }, z$1.core.$strip>, z$1.ZodObject<{
17520
+ kind: z$1.ZodLiteral<"tool-call">;
17521
+ suppress: z$1.ZodBoolean;
17522
+ toolName: z$1.ZodString;
17523
+ }, z$1.core.$strip>, z$1.ZodObject<{
17524
+ kind: z$1.ZodLiteral<"directory">;
17525
+ path: z$1.ZodString;
17526
+ }, z$1.core.$strip>], "kind">>;
17527
+ text: z$1.ZodString;
17528
+ threadId: z$1.ZodString;
17529
+ turnId: z$1.ZodNullable<z$1.ZodString>;
17530
+ turnRequest: z$1.ZodObject<{
17531
+ isGrouped: z$1.ZodBoolean;
17532
+ kind: z$1.ZodEnum<{
17533
+ message: "message";
17534
+ steer: "steer";
17535
+ }>;
17536
+ status: z$1.ZodEnum<{
17537
+ accepted: "accepted";
17538
+ pending: "pending";
17539
+ rejected: "rejected";
17540
+ }>;
17541
+ }, z$1.core.$strip>;
16960
17542
  }, z$1.core.$strip>>;
16961
17543
  pendingTodos: z$1.ZodNullable<z$1.ZodObject<{
16962
17544
  items: z$1.ZodArray<z$1.ZodObject<{
@@ -17437,6 +18019,23 @@ declare const deleteOldServerCopyResponseSchema: z$1.ZodObject<{
17437
18019
  }, z$1.core.$strict>;
17438
18020
  type DeleteOldServerCopyResponse = z$1.infer<typeof deleteOldServerCopyResponseSchema>;
17439
18021
 
18022
+ declare const serverSweepFailuresResponseSchema: z$1.ZodObject<{
18023
+ failures: z$1.ZodArray<z$1.ZodObject<{
18024
+ attempts: z$1.ZodNumber;
18025
+ firstFailedAt: z$1.ZodNumber;
18026
+ itemKey: z$1.ZodString;
18027
+ lastError: z$1.ZodString;
18028
+ needsRecovery: z$1.ZodBoolean;
18029
+ retryAt: z$1.ZodNumber;
18030
+ sweep: z$1.ZodString;
18031
+ }, z$1.core.$strict>>;
18032
+ }, z$1.core.$strict>;
18033
+ type ServerSweepFailuresResponse = z$1.infer<typeof serverSweepFailuresResponseSchema>;
18034
+ declare const serverSweepRetryResponseSchema: z$1.ZodObject<{
18035
+ retried: z$1.ZodNumber;
18036
+ }, z$1.core.$strict>;
18037
+ type ServerSweepRetryResponse = z$1.infer<typeof serverSweepRetryResponseSchema>;
18038
+
17440
18039
  declare const threadTabsResponseSchema: z$1.ZodObject<{
17441
18040
  revision: z$1.ZodNumber;
17442
18041
  tabs: z$1.ZodArray<z$1.ZodDiscriminatedUnion<[z$1.ZodObject<{
@@ -17862,9 +18461,7 @@ type EnvironmentListResult = Environment[];
17862
18461
  interface EnvironmentDeleteArgs {
17863
18462
  environmentId: string;
17864
18463
  }
17865
- type EnvironmentDeleteResult = {
17866
- ok: true;
17867
- };
18464
+ type EnvironmentDeleteResult = OperationResponse;
17868
18465
  interface EnvironmentListProvidersArgs {
17869
18466
  projectId?: string;
17870
18467
  hostId?: string;
@@ -17874,9 +18471,7 @@ type EnvironmentListProvidersResult = SystemEnvironmentProvider[];
17874
18471
  interface EnvironmentsArea {
17875
18472
  experimental_cleanup(args: EnvironmentActionArgs & {
17876
18473
  recover?: boolean;
17877
- }): Promise<{
17878
- ok: true;
17879
- }>;
18474
+ }): Promise<OperationResponse>;
17880
18475
  archiveThreads(args: EnvironmentActionArgs): Promise<EnvironmentArchiveThreadsResult>;
17881
18476
  commit(args: EnvironmentCommitArgs): Promise<EnvironmentCommitResult>;
17882
18477
  get(args: EnvironmentGetArgs): Promise<EnvironmentGetResult>;
@@ -18038,9 +18633,7 @@ interface MachineProviderListArgs {
18038
18633
  signal?: AbortSignal;
18039
18634
  }
18040
18635
  type HostCreateJoinCodeResult = CreateHostJoinCodeResponse;
18041
- type HostDeleteResult = {
18042
- ok: true;
18043
- };
18636
+ type HostDeleteResult = HostRemovalResponse;
18044
18637
  type HostDirectoryResult = HostDirectoryListing;
18045
18638
  type HostDiscoverReposResult = HostDiscoveredReposResponse;
18046
18639
  type HostGetResult = Host & {
@@ -18056,7 +18649,7 @@ type HostPathsExistResult = HostPathsExistResponse;
18056
18649
  type HostPickFolderResult = HostPickFolderResponse;
18057
18650
  type HostProviderCliStatusResult = HostProviderCliStatusResponse;
18058
18651
  type HostRetryUpdateResult = HostRetryUpdateResponse;
18059
- type HostActionResult = HostActionResponse;
18652
+ type HostRetryCleanupResult = HostRemovalResponse;
18060
18653
  type HostUpdateResult = Host;
18061
18654
  type MachineProviderListResult = SystemMachineProvider[];
18062
18655
  interface HostsArea {
@@ -18080,7 +18673,7 @@ interface HostsArea {
18080
18673
  pickFolder(args: HostPickFolderArgs): Promise<HostPickFolderResult>;
18081
18674
  providerCliStatus(args: HostProviderCliStatusArgs): Promise<HostProviderCliStatusResult>;
18082
18675
  experimental_resume(args: HostActionArgs): Promise<Host>;
18083
- experimental_retryCleanup(args: HostActionArgs): Promise<HostActionResult>;
18676
+ experimental_retryCleanup(args: HostActionArgs): Promise<HostRetryCleanupResult>;
18084
18677
  retryUpdate(args: HostRetryUpdateArgs): Promise<HostRetryUpdateResult>;
18085
18678
  experimental_suspend(args: HostActionArgs): Promise<Host>;
18086
18679
  experimental_reconcile(args: HostActionArgs): Promise<Host>;
@@ -18096,6 +18689,9 @@ interface ServerMoveStatusArgs {
18096
18689
  interface ServerExportArgs {
18097
18690
  signal?: AbortSignal;
18098
18691
  }
18692
+ interface ServerSweepFailuresArgs {
18693
+ signal?: AbortSignal;
18694
+ }
18099
18695
  interface ServerExportResult {
18100
18696
  fileName: string;
18101
18697
  body: ReadableStream<Uint8Array>;
@@ -18107,6 +18703,8 @@ interface ExperimentalServerArea {
18107
18703
  moveStatus(args?: ServerMoveStatusArgs): Promise<ServerMoveStatusResponse>;
18108
18704
  cancelMove(): Promise<ServerMoveStatus>;
18109
18705
  export(args?: ServerExportArgs): Promise<ServerExportResult>;
18706
+ sweepFailures(args?: ServerSweepFailuresArgs): Promise<ServerSweepFailuresResponse>;
18707
+ retrySweepFailures(): Promise<ServerSweepRetryResponse>;
18110
18708
  }
18111
18709
 
18112
18710
  interface ProjectListArgs {
@@ -18216,9 +18814,7 @@ type ProjectAttachmentUploadResult = UploadedPromptAttachment;
18216
18814
  type ProjectCommandsResult = CommandListResponse;
18217
18815
  type ProjectCreateResult = ProjectResponse;
18218
18816
  type ProjectDefaultExecutionOptionsResult = ProjectExecutionDefaults | null;
18219
- type ProjectDeleteResult = {
18220
- ok: true;
18221
- };
18817
+ type ProjectDeleteResult = OperationResponse;
18222
18818
  interface ProjectFileContentResult {
18223
18819
  content: string;
18224
18820
  contentEncoding: "base64" | "utf8";
@@ -18233,9 +18829,7 @@ type ProjectPromptHistoryResult = PromptHistoryResponse;
18233
18829
  type ProjectReorderResult = ProjectResponse[];
18234
18830
  type ProjectSidebarBootstrapResult = SidebarBootstrapResponse;
18235
18831
  type ProjectSourceAddResult = ProjectSource;
18236
- type ProjectSourceDeleteResult = {
18237
- ok: true;
18238
- };
18832
+ type ProjectSourceDeleteResult = OperationResponse;
18239
18833
  type ProjectSourceUpdateResult = ProjectSource;
18240
18834
  type ProjectUpdateResult = ProjectResponse;
18241
18835
  interface ProjectSourcesArea {
@@ -18244,7 +18838,7 @@ interface ProjectSourcesArea {
18244
18838
  update(args: ProjectSourceUpdateArgs): Promise<ProjectSourceUpdateResult>;
18245
18839
  }
18246
18840
  interface ProjectAttachmentsArea {
18247
- copy(args: ProjectAttachmentCopyArgs): Promise<void>;
18841
+ copy(args: ProjectAttachmentCopyArgs): Promise<OperationResponse>;
18248
18842
  read(args: ProjectAttachmentReadArgs): Promise<ProjectAttachmentReadResult>;
18249
18843
  upload(args: ProjectAttachmentUploadArgs): Promise<ProjectAttachmentUploadResult>;
18250
18844
  }
@@ -18365,6 +18959,10 @@ interface PluginMarketplaceRefreshArgs {
18365
18959
  interface PluginMarketplaceRemoveArgs {
18366
18960
  name: string;
18367
18961
  }
18962
+ interface PluginMarketplaceSetEnabledArgs {
18963
+ name: string;
18964
+ enabled: boolean;
18965
+ }
18368
18966
  interface PluginReloadArgs {
18369
18967
  pluginId?: string;
18370
18968
  }
@@ -18438,6 +19036,7 @@ type PluginCatalogInstallPlanResult = PluginCatalogInstallPlan;
18438
19036
  type PluginMarketplaceListResult = PluginMarketplace[];
18439
19037
  type PluginMarketplaceAddResult = PluginMarketplace;
18440
19038
  type PluginMarketplaceRefreshResult = PluginMarketplaceRefreshResult$1[];
19039
+ type PluginMarketplaceSetEnabledResult = PluginMarketplace;
18441
19040
  interface PluginMarketplaceRemoveResult {
18442
19041
  convertedPluginIds: string[];
18443
19042
  }
@@ -18453,6 +19052,7 @@ interface PluginMarketplacesArea {
18453
19052
  list(args?: PluginMarketplaceListArgs): Promise<PluginMarketplaceListResult>;
18454
19053
  refresh(args?: PluginMarketplaceRefreshArgs): Promise<PluginMarketplaceRefreshResult>;
18455
19054
  remove(args: PluginMarketplaceRemoveArgs): Promise<PluginMarketplaceRemoveResult>;
19055
+ setEnabled(args: PluginMarketplaceSetEnabledArgs): Promise<PluginMarketplaceSetEnabledResult>;
18456
19056
  }
18457
19057
  interface PluginInstallJobsArea {
18458
19058
  cancel(args: PluginInstallJobArgs): Promise<PluginInstallJob>;
@@ -19018,24 +19618,16 @@ type ThreadTimelineReadResult = ThreadTimelineReadResponse;
19018
19618
  type ThreadArchiveResult = ThreadArchiveAllResponse;
19019
19619
  type ThreadOpenResult = ThreadOpenResponse;
19020
19620
  type ThreadPaneActionResult = ThreadPaneActionResponse;
19021
- type ThreadDeleteResult = {
19022
- ok: true;
19023
- };
19621
+ type ThreadDeleteResult = OperationResponse;
19024
19622
  type ThreadSendResult = SendMessageResponse;
19025
19623
  type ThreadRetryResult = RetryTurnResponse;
19026
19624
  type ThreadEditMessageResult = EditMessageResponse;
19027
- type ThreadStopResult = {
19028
- ok: true;
19029
- };
19030
- type ThreadCompactResult = {
19031
- ok: true;
19032
- };
19033
- type ThreadBannerActionResult = {
19034
- ok: true;
19035
- };
19036
- type ThreadUnarchiveResult = {
19037
- ok: true;
19625
+ type ThreadStopResult = OperationResponse & {
19626
+ status: ThreadStatus;
19038
19627
  };
19628
+ type ThreadCompactResult = OperationResponse;
19629
+ type ThreadBannerActionResult = OperationResponse;
19630
+ type ThreadUnarchiveResult = OperationResponse;
19039
19631
  type ThreadArchiveAllResult = ThreadArchiveAllResponse;
19040
19632
  type ThreadReadStateResult = ThreadResponse;
19041
19633
  type ThreadRestoreEnvironmentResult = ThreadResponse;
@@ -19044,13 +19636,9 @@ type ThreadPromptHistoryResult = PromptHistoryResponse;
19044
19636
  type ThreadQueuedMessagesResult = ThreadQueuedMessageListResponse;
19045
19637
  type ThreadQueuedMessageCreateResult = ThreadQueuedMessage;
19046
19638
  type ThreadQueuedMessageUpdateResult = ThreadQueuedMessage;
19047
- type ThreadQueuedMessageDeleteResult = {
19048
- ok: true;
19049
- };
19639
+ type ThreadQueuedMessageDeleteResult = OperationResponse;
19050
19640
  type ThreadQueuedMessageEditHoldResult = QueuedMessageEditHoldResponse;
19051
- type ThreadQueuedMessageEditHoldReleaseResult = {
19052
- ok: true;
19053
- };
19641
+ type ThreadQueuedMessageEditHoldReleaseResult = OperationResponse;
19054
19642
  type ThreadQueuedMessageReorderResult = ThreadQueuedMessageListResponse;
19055
19643
  type ThreadQueuedMessageSendResult = SendQueuedMessageResponse;
19056
19644
  type ThreadQueuedMessageGroupBoundaryResult = ThreadQueuedMessageListResponse;
@@ -19492,7 +20080,7 @@ interface BbSdkAreas extends BbRealtime {
19492
20080
  type PluginMentionTrigger = "!" | "#" | "$" | "@" | "~";
19493
20081
 
19494
20082
  /**
19495
- * The `@get-bb/plugin-sdk/app` contract (plugin design §5.2) — pure types with no
20083
+ * The `@get-bb/plugin-sdk/app` contract — pure types with no
19496
20084
  * side effects. The BB app imports these to keep its real implementation in
19497
20085
  * sync (`satisfies PluginSdkApp`). Plugin authors import the same shapes through
19498
20086
  * `@get-bb/plugin-sdk/app`.
@@ -19507,21 +20095,10 @@ interface PluginHomepageSectionProps {
19507
20095
  /**
19508
20096
  * Props passed to a `settingsSection` component.
19509
20097
  *
19510
- * Versioned additive like the other slot props.
20098
+ * Deliberately empty while sections read live app state through SDK hooks;
20099
+ * versioned additive like the other slot props.
19511
20100
  */
19512
20101
  interface PluginSettingsSectionProps {
19513
- /**
19514
- * Internal to bb's bundled connect plugin; not part of the plugin API.
19515
- * Set only when the setup guide renders the section; call it when the user
19516
- * starts setting it up.
19517
- */
19518
- internal_DO_NOT_USE_onSetupStarted?: () => void;
19519
- /**
19520
- * Internal to bb's bundled connect plugin; not part of the plugin API.
19521
- * Set only when the setup guide renders the section; call it when a setup
19522
- * attempt fails, with the stage that failed and, when known, why.
19523
- */
19524
- internal_DO_NOT_USE_onSetupFailed?: (stage: InternalDoNotUseSetupFailureStage, detail?: InternalDoNotUseSetupFailureDetail) => void;
19525
20102
  }
19526
20103
  /**
19527
20104
  * Stage of a setup guide section's setup attempt that failed.
@@ -20447,11 +21024,9 @@ interface PluginNavPanelRegistration {
20447
21024
  * The action is thread-only and is never offered on the root New thread
20448
21025
  * screen, so `threadId` is always present.
20449
21026
  */
20450
- interface ExperimentalThreadTabActionContext {
21027
+ interface ExperimentalThreadTabActionContext extends ExperimentalPluginActionContext {
20451
21028
  /** The thread whose panel launcher invoked the action. */
20452
21029
  threadId: string;
20453
- /** The side panel of the thread view that invoked the action. */
20454
- experimental_panel: ExperimentalPanelController;
20455
21030
  }
20456
21031
  /** Where a plugin tab belongs. Navigation panels are owned by the registering plugin. */
20457
21032
  type ExperimentalTabContext = {
@@ -20483,9 +21058,7 @@ type ExperimentalTabLifecycle<Props, Context> = {
20483
21058
  }>;
20484
21059
  /** Default persisted params when opened without explicit params. */
20485
21060
  params?: JsonValue$1;
20486
- run?(context: Context & {
20487
- experimental_panel: ExperimentalPanelController;
20488
- }): void | Promise<void>;
21061
+ run?(context: Context & ExperimentalPluginActionContext): void | Promise<void>;
20489
21062
  };
20490
21063
  type ExperimentalTabContextProps<C extends ExperimentalTabContext> = C extends {
20491
21064
  kind: "thread";
@@ -20509,9 +21082,7 @@ type ExperimentalTabInput<C extends ExperimentalTabContext, A extends "action" |
20509
21082
  params: JsonValue$1 | null;
20510
21083
  }>;
20511
21084
  params?: JsonValue$1;
20512
- run?(context: ExperimentalTabContextProps<C> & {
20513
- experimental_panel: ExperimentalPanelController;
20514
- }): void | Promise<void>;
21085
+ run?(context: ExperimentalTabContextProps<C> & ExperimentalPluginActionContext): void | Promise<void>;
20515
21086
  experimental_target?: never;
20516
21087
  });
20517
21088
  /** One registration for pinned destinations and actions opening closable instances. */
@@ -20540,14 +21111,13 @@ type ExperimentalTabRegistration = ExperimentalTabCommon & (({
20540
21111
  experimental_target?: ExperimentalFixedTabTargetContract<JsonValue$1>;
20541
21112
  }))));
20542
21113
  /** Context handed to an `experimental_newThreadPanelAction`'s `run`. */
20543
- interface PluginNewThreadPanelActionContext {
21114
+ /**
21115
+ * `panel` is the New thread screen's side panel. Address this
21116
+ * action's tab as `{ id, context: { kind: "thread" }, availability: "action" }`.
21117
+ */
21118
+ interface PluginNewThreadPanelActionContext extends ExperimentalPluginActionContext {
20544
21119
  /** Project selected in the root composer; null in projectless compose. */
20545
21120
  projectId: string | null;
20546
- /**
20547
- * The New thread screen's side panel. Address this action's tab as
20548
- * `{ id, context: { kind: "thread" }, availability: "action" }`.
20549
- */
20550
- experimental_panel: ExperimentalPanelController;
20551
21121
  }
20552
21122
  /** Registration for the root New thread screen's panel Actions list. */
20553
21123
  interface PluginNewThreadPanelActionRegistration {
@@ -20582,8 +21152,11 @@ interface PluginPendingInteractionRegistration {
20582
21152
  id: string;
20583
21153
  component: ComponentType<PluginPendingInteractionProps>;
20584
21154
  }
20585
- /** Context handed to a `sidebarFooterAction`'s `run`. */
20586
- interface PluginSidebarFooterActionContext {
21155
+ /**
21156
+ * Context handed to a `sidebarFooterAction`'s `run`. `navigate` and
21157
+ * `panel` act on the focused surface, as for commands.
21158
+ */
21159
+ interface PluginSidebarFooterActionContext extends ExperimentalPluginActionContext {
20587
21160
  /**
20588
21161
  * Navigate to this plugin's detail page in Tools, where declarative settings
20589
21162
  * and `settingsSection` slots render.
@@ -20609,8 +21182,11 @@ interface PluginSidebarFooterActionRegistration {
20609
21182
  */
20610
21183
  run(context: PluginSidebarFooterActionContext): void | Promise<void>;
20611
21184
  }
20612
- /** Context handed to an experimental sidebar-footer action. */
20613
- interface ExperimentalSidebarFooterActionContext {
21185
+ /**
21186
+ * Context handed to an experimental sidebar-footer action. `navigate` and
21187
+ * `panel` act on the focused surface, as for commands.
21188
+ */
21189
+ interface ExperimentalSidebarFooterActionContext extends ExperimentalPluginActionContext {
20614
21190
  /** Navigate to this plugin's detail page in Tools. */
20615
21191
  openPluginDetails(): void;
20616
21192
  }
@@ -21075,8 +21651,8 @@ interface PluginSidebarThreadDraftState {
21075
21651
  * the content-script context's `experimental_setThreadRowStatus` (see
21076
21652
  * {@link PluginSdkApp.useSidebarThreadRowStatus}). bb's row draws it in
21077
21653
  * place of the draft glyph while it is set; a replaced list should do the
21078
- * same so a status set by, say, the drafts or workflows plugin does not
21079
- * vanish when the list changes hands.
21654
+ * same so a status another plugin set does not vanish when the list changes
21655
+ * hands. No bundled plugin sets one; only content scripts can.
21080
21656
  */
21081
21657
  type PluginSidebarThreadRowStatus = PluginComposerThreadRowStatus;
21082
21658
  /**
@@ -21375,8 +21951,12 @@ type ExperimentalThreadContextKind = "banner" | "card";
21375
21951
  * `experimental_threadInfoRow`. Render one or more
21376
21952
  * `experimental_ThreadContextCardRow` elements, or null to show nothing for
21377
21953
  * this thread. bb draws the card and places it, and mounts rows only in panes
21378
- * whose thread context kind is `card`. A crash removes only this row for that
21379
- * thread.
21954
+ * whose thread context kind is `card`. The card is behind the "Thread context
21955
+ * card" experiment, off by default, and never shows on a phone (a compact
21956
+ * viewport with a coarse pointer); every other pane uses the `banner` kind, so
21957
+ * register an `experimental_threadContextSegment` or
21958
+ * `experimental_threadInfoRow` as well to reach it. A crash removes only this
21959
+ * row for that thread.
21380
21960
  */
21381
21961
  interface ExperimentalThreadContextCardRowRegistration {
21382
21962
  /** Unique within the plugin; letters, digits, `-`, `_`. */
@@ -21393,16 +21973,20 @@ interface ExperimentalThreadContextCardRowRegistration {
21393
21973
  component: ComponentType<ExperimentalThreadContextCardProps>;
21394
21974
  }
21395
21975
  /**
21396
- * A titled section of the thread context card, below its rows; the card's
21397
- * counterpart of `experimental_threadInfoSection`. bb draws the title and a
21398
- * divider above it, and hides the section while its component renders
21399
- * nothing. A crash removes only this section for that thread.
21976
+ * A section of the thread context card, below its rows; the card's
21977
+ * counterpart of `experimental_threadInfoSection`. Render one
21978
+ * `experimental_InfoSection`, or null to hide the section for this thread. In
21979
+ * the card, bb draws the section's label as a button that folds it and a
21980
+ * divider above it. Sections start open; bb remembers the ones the person folds
21981
+ * by `pluginId/id` across threads and restarts. While folded, the component
21982
+ * stays mounted and the `experimental_InfoSection` children unmount. Like
21983
+ * card rows, sections mount only where the card shows: behind the "Thread
21984
+ * context card" experiment, off by default, and never on a phone. A crash
21985
+ * removes only this section for that thread.
21400
21986
  */
21401
21987
  interface ExperimentalThreadContextCardSectionRegistration {
21402
21988
  /** Unique within the plugin; letters, digits, `-`, `_`. */
21403
21989
  id: string;
21404
- /** Heading bb draws above the section's rows. */
21405
- title: string;
21406
21990
  /**
21407
21991
  * Sections sort by `group` (string compare), then by `order` within a group
21408
21992
  * (unset sorts last), then by registration order, with bb's own sections
@@ -21595,36 +22179,25 @@ interface PluginThreadActionDataInput {
21595
22179
  threadIds: readonly string[];
21596
22180
  }
21597
22181
  /** What a registration's `item` receives for each thread it is shown for. */
21598
- interface PluginThreadActionItemInput<Data> {
22182
+ /**
22183
+ * `panel` is the focused surface's side panel, as for plugin
22184
+ * commands. Thread menus are not inside a side panel, so calls return false
22185
+ * when the focused surface has no such tab.
22186
+ */
22187
+ interface PluginThreadActionItemInput<Data> extends ExperimentalPluginActionContext {
21599
22188
  thread: PluginThreadActionTarget;
21600
22189
  /** What `useData` last returned; undefined when the registration has none. */
21601
22190
  data: Data;
21602
- /** The registering plugin's `useSdk()` client. */
21603
- sdk: PluginBrowserBbSdk;
21604
- /** The registering plugin's `useBbNavigate()`. */
21605
- navigate: BbNavigate;
21606
- /**
21607
- * The focused surface's side panel, as for plugin commands. Thread menus
21608
- * are not inside a side panel, so calls return false when the focused
21609
- * surface has no such tab.
21610
- */
21611
- experimental_panel: ExperimentalPanelController;
21612
22191
  }
21613
22192
  /**
21614
22193
  * What a registration's `experimental_bulkItem` receives for a selection
21615
22194
  * of several threads.
21616
22195
  */
21617
- interface PluginThreadActionBulkItemInput<Data> {
22196
+ interface PluginThreadActionBulkItemInput<Data> extends ExperimentalPluginActionContext {
21618
22197
  /** The selected threads in the surface's list order; always two or more. */
21619
22198
  threads: readonly PluginThreadActionTarget[];
21620
22199
  /** What `useData` last returned; undefined when the registration has none. */
21621
22200
  data: Data;
21622
- /** The registering plugin's `useSdk()` client. */
21623
- sdk: PluginBrowserBbSdk;
21624
- /** The registering plugin's `useBbNavigate()`, as for `item`. */
21625
- navigate: BbNavigate;
21626
- /** The focused surface's side panel, as for `item`. */
21627
- experimental_panel: ExperimentalPanelController;
21628
22201
  }
21629
22202
  /**
21630
22203
  * Add an action to every thread actions menu: the thread header's menu, the
@@ -22667,8 +23240,36 @@ interface ExperimentalMessageMetadataRegistration {
22667
23240
  placement?: ExperimentalMessageMetadataPlacement;
22668
23241
  component: ComponentType<ExperimentalMessageMetadataProps>;
22669
23242
  }
23243
+ /** A timeline a `messageAction` can show in; see {@link PluginMessageActionRegistration.experimental_surfaces}. */
23244
+ type ExperimentalMessageActionSurface = "embedded-chat" | "thread-view";
23245
+ /**
23246
+ * What every plugin callback's context carries besides its own fields:
23247
+ * commands, message actions, thread actions, panel and New thread panel
23248
+ * actions, sidebar footer actions, and composer commands and menu items.
23249
+ * Experimental: see docs/api_to_audit.md.
23250
+ */
23251
+ interface ExperimentalPluginActionContext {
23252
+ /** The registering plugin's `useSdk()` client. */
23253
+ sdk: PluginBrowserBbSdk;
23254
+ /**
23255
+ * The registering plugin's `useBbNavigate()`, bound to the surface that
23256
+ * invoked the callback, so terminals, files and links open there.
23257
+ */
23258
+ navigate: BbNavigate;
23259
+ /** The side panel of the surface that invoked the callback. */
23260
+ panel: ExperimentalPanelController;
23261
+ }
23262
+ /**
23263
+ * Context handed to a composer command's or composer menu item's `run`.
23264
+ * `navigate` and `panel` act on the surface showing the
23265
+ * composer.
23266
+ */
23267
+ interface ExperimentalComposerActionContext extends ExperimentalPluginActionContext {
23268
+ /** The handling composer, bound to this plugin like `useComposer()`. */
23269
+ composer: PluginComposerApi;
23270
+ }
22670
23271
  /** Context handed to a `messageAction`'s `run`. */
22671
- interface PluginMessageActionContext {
23272
+ interface PluginMessageActionContext extends ExperimentalPluginActionContext {
22672
23273
  /** The thread whose timeline surfaced the action. */
22673
23274
  threadId: string;
22674
23275
  message: ThreadChatMessageReference;
@@ -22677,8 +23278,6 @@ interface PluginMessageActionContext {
22677
23278
  * the exact text the user highlighted inside `message`.
22678
23279
  */
22679
23280
  selectedText?: string;
22680
- /** The side panel of the thread view whose timeline surfaced the action. */
22681
- experimental_panel: ExperimentalPanelController;
22682
23281
  /**
22683
23282
  * The composer of the thread the message is in, or null when that thread's
22684
23283
  * composer is not available on this surface. The same handle
@@ -22687,12 +23286,13 @@ interface PluginMessageActionContext {
22687
23286
  composer: PluginComposerApi | null;
22688
23287
  }
22689
23288
  /**
22690
- * An action on chat messages in the main thread timeline: an icon button in
22691
- * the per-message action bar (user and assistant messages) and an entry in
22692
- * the assistant-message text-selection menu. Embedded `ThreadChat` timelines
22693
- * do not show slot-registered actions. Host-rendered chrome — the plugin
22694
- * supplies title, icon, and `run` behavior only. Resolved icon names take precedence over
22695
- * plugin branding; omitted or unknown names fall back to branding.
23289
+ * An action on chat messages in every thread timeline, including embedded
23290
+ * `ThreadChat` timelines unless `experimental_surfaces` narrows it: an icon
23291
+ * button in the per-message action bar (user and assistant messages) and an
23292
+ * entry in the assistant-message text-selection menu. Host-rendered chrome —
23293
+ * the plugin supplies title, icon, and `run` behavior only. Resolved icon
23294
+ * names take precedence over plugin branding; omitted or unknown names fall
23295
+ * back to branding.
22696
23296
  */
22697
23297
  interface PluginMessageActionRegistration {
22698
23298
  /** Unique within the plugin; letters, digits, `-`, `_`. */
@@ -22700,27 +23300,32 @@ interface PluginMessageActionRegistration {
22700
23300
  /** Tooltip / menu label for the action. */
22701
23301
  title: string;
22702
23302
  icon?: BbIconName;
23303
+ /**
23304
+ * Timelines that show the action: `"thread-view"` is bb's thread view and
23305
+ * `"embedded-chat"` an embedded `ThreadChat`. Omit for both. Experimental:
23306
+ * see docs/api_to_audit.md.
23307
+ */
23308
+ experimental_surfaces?: readonly ExperimentalMessageActionSurface[];
22703
23309
  /**
22704
23310
  * Runs when the user activates the action. Errors (sync or async) are
22705
23311
  * contained and logged; they never break the timeline.
22706
23312
  */
22707
23313
  run(context: PluginMessageActionContext): void | Promise<void>;
22708
23314
  }
22709
- /** Current context for palette and keyboard command invocations. */
22710
- interface PluginCommandContext {
23315
+ /**
23316
+ * Current context for palette and keyboard command invocations. `navigate`
23317
+ * and `panel` act on the focused surface: the thread view or
23318
+ * New thread screen in focus, or the focused plugin page. On the New thread
23319
+ * screen, a `{ context: { kind: "thread" }, availability: "action" }` tab
23320
+ * resolves against `experimental_newThreadPanelAction` with the same id, so
23321
+ * register both slots with the same id to support commands on both screens.
23322
+ * Panel calls return false when the focused surface has no such tab or no
23323
+ * side panel; guard with `isAvailable` rather than assuming.
23324
+ */
23325
+ interface PluginCommandContext extends ExperimentalPluginActionContext {
22711
23326
  /** The thread in view, or null on a surface without one. */
22712
23327
  threadId: string | null;
22713
23328
  projectId: string | null;
22714
- /**
22715
- * The focused surface's side panel: the thread view or New thread screen
22716
- * in focus, or the focused plugin page. On the New thread screen, a
22717
- * `{ context: { kind: "thread" }, availability: "action" }` tab resolves
22718
- * against `experimental_newThreadPanelAction` with the same id, so register
22719
- * both slots with the same id to support commands on both screens. Calls
22720
- * return false when the focused surface has no such tab or no side panel;
22721
- * guard with `isAvailable` rather than assuming.
22722
- */
22723
- experimental_panel: ExperimentalPanelController;
22724
23329
  }
22725
23330
  /** A default keyboard shortcut. Omitted modifiers are false. */
22726
23331
  interface PluginCommandShortcut {
@@ -22732,6 +23337,13 @@ interface PluginCommandShortcut {
22732
23337
  alt?: boolean;
22733
23338
  shift?: boolean;
22734
23339
  }
23340
+ /** The fields of a keydown that {@link PluginSdkApp.experimental_matchesShortcutKey} reads; DOM and React keyboard events both fit. */
23341
+ interface ExperimentalShortcutKeyEvent {
23342
+ key: string;
23343
+ code: string;
23344
+ altKey: boolean;
23345
+ shiftKey: boolean;
23346
+ }
22735
23347
  /**
22736
23348
  * A command registered with `app.commands.register`, listed in bb's quick
22737
23349
  * palette (Mod+Shift+P) under the plugin's name
@@ -22776,9 +23388,7 @@ interface ExperimentalComposerCommandRegistration {
22776
23388
  * Runs with the handling composer, bound to this plugin like `useComposer()`.
22777
23389
  * Errors (sync or async) are contained and logged.
22778
23390
  */
22779
- run(context: {
22780
- composer: PluginComposerApi;
22781
- }): void | Promise<void>;
23391
+ run(context: ExperimentalComposerActionContext): void | Promise<void>;
22782
23392
  }
22783
23393
  /** Registers commands for bb's command palette. */
22784
23394
  interface PluginAppCommands {
@@ -23049,13 +23659,13 @@ interface PluginAppSlots {
23049
23659
  */
23050
23660
  experimental_threadHeaderTitle(registration: ExperimentalThreadHeaderTitleRegistration): void;
23051
23661
  /**
23052
- * Add a row to the thread context card of every thread pane (see
23662
+ * Add a row to the thread context card, in panes that show one (see
23053
23663
  * {@link ExperimentalThreadContextCardRowRegistration}). Experimental: see
23054
23664
  * docs/api_to_audit.md.
23055
23665
  */
23056
23666
  experimental_threadContextCardRow(registration: ExperimentalThreadContextCardRowRegistration): void;
23057
23667
  /**
23058
- * Add a titled section to the thread context card of every thread pane (see
23668
+ * Add a section to the thread context card, in panes that show one (see
23059
23669
  * {@link ExperimentalThreadContextCardSectionRegistration}). Experimental:
23060
23670
  * see docs/api_to_audit.md.
23061
23671
  */
@@ -23297,6 +23907,13 @@ interface ComposerCustomization {
23297
23907
  id: string;
23298
23908
  /** Composer kinds where this customization is active; omit for all kinds. */
23299
23909
  scopes?: readonly PluginComposerScope["kind"][];
23910
+ /**
23911
+ * Controls rendered in the composer's action row, before the voice, stop
23912
+ * and submit controls. The collapsed single-line layout leaves them out,
23913
+ * as it does bb's `+` menu and model picker; they show once the composer
23914
+ * expands. bb shows the first three plugins' actions inline and the rest
23915
+ * behind a "More plugin actions" button.
23916
+ */
23300
23917
  actions?: readonly {
23301
23918
  id: string;
23302
23919
  component: ComponentType;
@@ -23332,9 +23949,7 @@ interface ComposerPlusMenuItem {
23332
23949
  /** Accessible description for the host-rendered row. */
23333
23950
  description?: string;
23334
23951
  disabled?: boolean | ((composer: PluginComposerApi) => boolean);
23335
- run(context: {
23336
- composer: PluginComposerApi;
23337
- }): void | Promise<void>;
23952
+ run(context: ExperimentalComposerActionContext): void | Promise<void>;
23338
23953
  }
23339
23954
  /**
23340
23955
  * Host-rendered row in the menu next to the composer's send button, for
@@ -23349,9 +23964,7 @@ interface ComposerSendMenuItem {
23349
23964
  /** Accessible description for the host-rendered row. */
23350
23965
  description?: string;
23351
23966
  disabled?: boolean | ((composer: PluginComposerApi) => boolean);
23352
- run(context: {
23353
- composer: PluginComposerApi;
23354
- }): void | Promise<void>;
23967
+ run(context: ExperimentalComposerActionContext): void | Promise<void>;
23355
23968
  }
23356
23969
  interface ComposerRichTextSpec {
23357
23970
  /** Content-derived paint: match ranges receive `className`; text is never mutated. */
@@ -23719,8 +24332,8 @@ interface ComposerSubmitOptions {
23719
24332
  /**
23720
24333
  * A consumer-supplied action on the messages of one `ThreadChat` instance,
23721
24334
  * rendered in the embedded timeline's per-message action bar alongside the
23722
- * native actions. Slot-registered `messageAction`s do not appear there. Unlike
23723
- * the `messageAction` slot this is scoped to the rendering component, not
24335
+ * native and slot-registered `messageAction` actions. Unlike the
24336
+ * `messageAction` slot this is scoped to the rendering component, not
23724
24337
  * registered globally.
23725
24338
  */
23726
24339
  interface ThreadChatMessageAction {
@@ -23744,7 +24357,7 @@ interface ThreadChatMessageAction {
23744
24357
  * Props of the host-owned `ThreadChat` component — one thread's chat
23745
24358
  * (timeline, and for the composer variants the full send/queue/draft
23746
24359
  * engine), rendered by the BB app inside a plugin slot. This is the
23747
- * deliberate exception to the no-host-components rule (§5.5): a stable
24360
+ * deliberate exception to the no-host-components rule: a stable
23748
24361
  * product capability, not a UI kit. Versioned additive like slot props;
23749
24362
  * internal timeline rows, query hooks, and prompt-box configuration are
23750
24363
  * deliberately not exposed.
@@ -23959,13 +24572,14 @@ interface NewThreadRequest {
23959
24572
  * rendered by the BB app inside a plugin slot.
23960
24573
  *
23961
24574
  * It is the create-side counterpart to `ThreadChat`: same deliberate
23962
- * exception to the no-host-components rule (§5.5), same additive versioning.
24575
+ * exception to the no-host-components rule, same additive versioning.
23963
24576
  */
23964
24577
  interface NewThreadComposerProps {
23965
24578
  /**
23966
- * Seeds the project picker. The user can change it, including choosing
23967
- * "Don't work in a project"; see {@link NewThreadRequest.projectId} for the
23968
- * submitted projectless shape.
24579
+ * Seeds the project picker. Omitted, the picker starts on the project the
24580
+ * user last picked in bb's New thread view. The user can change it,
24581
+ * including choosing "Don't work in a project"; see
24582
+ * {@link NewThreadRequest.projectId} for the submitted projectless shape.
23969
24583
  */
23970
24584
  defaultProjectId?: string;
23971
24585
  /**
@@ -24080,6 +24694,13 @@ interface MarkdownProps {
24080
24694
  kind: "host";
24081
24695
  }>;
24082
24696
  };
24697
+ /**
24698
+ * The chat message this Markdown shows. With it, the code-fence renderers
24699
+ * and message directives plugins register render here as they do in the
24700
+ * thread timeline, and receive this as their `message`. Without it, fences
24701
+ * render as code and directives as their source text.
24702
+ */
24703
+ experimental_message?: PluginMessageDirectiveMessage;
24083
24704
  }
24084
24705
  /**
24085
24706
  * Props for BB's semantic URL link. The host owns ordinary activation while
@@ -24273,10 +24894,23 @@ interface ExperimentalPanelTabIconProps {
24273
24894
  /** An {@link ExperimentalPanelTab.key}; renders nothing for a closed tab. */
24274
24895
  tabKey: string;
24275
24896
  }
24897
+ /** A plugin nav panel page; see {@link BbContext.experimental_pluginPanel}. */
24898
+ interface ExperimentalPluginPanelPage {
24899
+ pluginId: string;
24900
+ /** The panel's registered `path`. */
24901
+ path: string;
24902
+ /** The location inside the panel, percent-encoded like the component's `subPath` prop; empty at the panel's root. */
24903
+ subPath: string;
24904
+ }
24276
24905
  /** Current app selection, derived from the route. */
24277
24906
  interface BbContext {
24278
24907
  projectId: string | null;
24279
24908
  threadId: string | null;
24909
+ /**
24910
+ * The plugin nav panel the route shows (any plugin's), or null on other
24911
+ * pages. Experimental: see docs/api_to_audit.md.
24912
+ */
24913
+ experimental_pluginPanel: ExperimentalPluginPanelPage | null;
24280
24914
  }
24281
24915
  interface BbNavigate {
24282
24916
  /**
@@ -24302,14 +24936,17 @@ interface BbNavigate {
24302
24936
  }): void;
24303
24937
  /**
24304
24938
  * Navigate to the root compose surface (the new-thread screen). Pass
24305
- * `initialPrompt` to seed the composer draft (serialized thread, project,
24306
- * and section mention tokens become pills) and `focusPrompt` to focus the
24307
- * composer on arrival — the pairing behind "Create via chat" style entry
24308
- * points that drop the user into chat with a prefilled prompt.
24309
- * `projectId` makes that project the composer's selection; `placement`
24310
- * files the new thread in a section and pin state (omitted: unpinned,
24311
- * outside sections); `environmentId` reuses that environment and `hostId`
24312
- * picks a machine for a new one (`environmentId` wins when both are set).
24939
+ * `initialPrompt` to seed the composer draft when it is empty (serialized
24940
+ * thread, project, and section mention tokens become pills) and
24941
+ * `focusPrompt` to focus the composer on arrival — the pairing behind
24942
+ * "Create via chat" style entry points that drop the user into chat with a
24943
+ * prefilled prompt. `projectId` makes that project the composer's
24944
+ * selection; `placement` files the new thread in a section and pin state.
24945
+ * Without `placement`, the screen keeps the placement it already shows,
24946
+ * unless `environmentId` or `hostId` is set, which resets it to unpinned
24947
+ * and outside sections. `environmentId` reuses that environment and
24948
+ * `hostId` picks a machine for a new one (`environmentId` wins when both
24949
+ * are set).
24313
24950
  */
24314
24951
  toCompose(options?: {
24315
24952
  projectId?: string;
@@ -24856,9 +25493,9 @@ interface PluginSdkApp {
24856
25493
  */
24857
25494
  experimental_saveFile(request: ExperimentalSaveFileRequest): Promise<ExperimentalSaveFileOutcome>;
24858
25495
  /**
24859
- * The host-owned chat component (see {@link ThreadChatProps}). Together
24860
- * with `Markdown`, the only components the SDK ships — everything else
24861
- * stays vendored per §5.5.
25496
+ * The host-owned chat component (see {@link ThreadChatProps}): bb's own
25497
+ * chat, not a generic UI kit. Generic primitives stay vendored from the BB
25498
+ * registry.
24862
25499
  */
24863
25500
  ThreadChat: ComponentType<ThreadChatProps>;
24864
25501
  /**
@@ -24941,10 +25578,12 @@ interface PluginSdkApp {
24941
25578
  */
24942
25579
  experimental_Diff: ComponentType<DiffProps>;
24943
25580
  /**
24944
- * The thread Info tab's section frame (see
25581
+ * The section frame of the thread Info tab and the thread context card (see
24945
25582
  * {@link ExperimentalInfoSectionProps}), the one bb's own sections use.
24946
- * Inside an `experimental_threadInfoSection` it collapses, and the host
24947
- * remembers that per registration. Experimental: see docs/api_to_audit.md.
25583
+ * Inside an `experimental_threadInfoSection` it collapses, and inside an
25584
+ * `experimental_threadContextCardSection` it folds in the card's style; the
25585
+ * host remembers either per registration. Experimental: see
25586
+ * docs/api_to_audit.md.
24948
25587
  */
24949
25588
  experimental_InfoSection: ComponentType<ExperimentalInfoSectionProps>;
24950
25589
  /**
@@ -25030,6 +25669,22 @@ interface PluginSdkApp {
25030
25669
  experimental_VoiceRecordingBar: ComponentType<ExperimentalVoiceRecordingBarProps>;
25031
25670
  experimental_FailedVoiceRecordings: ComponentType<ExperimentalFailedVoiceRecordingsProps>;
25032
25671
  experimental_ShortcutHint: ComponentType<ExperimentalShortcutHintProps>;
25672
+ /**
25673
+ * Whether `event` presses `key` (a `PluginCommandShortcut` key such as
25674
+ * `"k"`, `"["` or `"Enter"`), compared the way bb compares keys for its own
25675
+ * keybindings; the caller checks modifiers. Letter, digit and punctuation
25676
+ * keys match by physical position when the active layout types a non-Latin
25677
+ * character there, so Ctrl+K is found on Cyrillic, Greek, Hebrew or Arabic
25678
+ * layouts, while Latin layouts such as Dvorak keep their own letters.
25679
+ * Experimental: see docs/api_to_audit.md.
25680
+ */
25681
+ experimental_matchesShortcutKey(event: ExperimentalShortcutKeyEvent, key: string): boolean;
25682
+ /**
25683
+ * Cuts `value` to at most `maxChars` UTF-16 code units without splitting a
25684
+ * surrogate pair, so an emoji at the cut is dropped whole instead of leaving
25685
+ * half of it. Experimental: see docs/api_to_audit.md.
25686
+ */
25687
+ experimental_sliceUtf16Head(value: string, maxChars: number): string;
25033
25688
  experimental_ImageLightbox: ComponentType<ExperimentalImageLightboxProps>;
25034
25689
  experimental_PromptMentionIcon: ComponentType<ExperimentalPromptMentionIconProps>;
25035
25690
  /**
@@ -25146,6 +25801,8 @@ declare const experimental_FailedVoiceRecordings: react.ComponentType<Experiment
25146
25801
  declare const experimental_ShortcutHint: react.ComponentType<ExperimentalShortcutHintProps>;
25147
25802
  declare const experimental_ImageLightbox: react.ComponentType<ExperimentalImageLightboxProps>;
25148
25803
  declare const experimental_PromptMentionIcon: react.ComponentType<ExperimentalPromptMentionIconProps>;
25804
+ declare const experimental_matchesShortcutKey: (event: ExperimentalShortcutKeyEvent, key: string) => boolean;
25805
+ declare const experimental_sliceUtf16Head: (value: string, maxChars: number) => string;
25149
25806
  declare const experimental_describePromptMention: (mention: ExperimentalComposerMentionTarget) => ExperimentalPromptMentionPresentation;
25150
25807
  declare const experimental_promptMentionClipboardAttributes: (mention: ExperimentalComposerMentionTarget, text: string) => Readonly<Record<string, string>>;
25151
25808
  declare const experimental_readPromptMentionClipboard: (element: Element) => ExperimentalPromptMentionClipboardPill | null;
@@ -25187,5 +25844,5 @@ declare const experimental_saveFile: (request: ExperimentalSaveFileRequest) => P
25187
25844
  declare const experimental_getApplicationLinkApprovals: () => Promise<string[]>;
25188
25845
  declare const experimental_revokeApplicationLinkApproval: (scheme: string | null) => Promise<string[]>;
25189
25846
 
25190
- export { Markdown, ThreadChat, ThreadTitle, UrlLink, definePluginApp, experimental_BranchPicker, experimental_CollapsibleStackCard, experimental_ComposerRoot, experimental_DetailRow, experimental_Diff, experimental_FailedVoiceRecordings, experimental_FileLink, experimental_FilePreview, experimental_Icon, experimental_ImageLightbox, experimental_InfoList, experimental_InfoListRow, experimental_InfoSection, experimental_NewThreadComposer, experimental_PanelTabIcon, experimental_PermissionModePicker, experimental_PluginIcon, experimental_PluginRpcCallError, experimental_PromptMentionIcon, experimental_ProviderIcon, experimental_ProviderModelPicker, experimental_ShortcutHint, experimental_SidebarNavigationIcon, experimental_SourceCode, experimental_THREAD_ACTION_GROUPS, experimental_THREAD_CONTEXT_SEGMENT_GROUPS, experimental_THREAD_INFO_ROW_GROUPS, experimental_THREAD_INFO_SECTION_GROUPS, experimental_ThreadActionsContextMenu, experimental_ThreadActionsMenu, experimental_ThreadContextCardRow, experimental_ThreadRowMetadata, experimental_ThreadStatusGlyph, experimental_ThreadTitleText, experimental_VoiceInputButton, experimental_VoiceInputTextarea, experimental_VoiceRecordingBar, experimental_copyToClipboard, experimental_describePromptMention, experimental_getApplicationLinkApprovals, experimental_promptMentionClipboardAttributes, experimental_readPromptMentionClipboard, experimental_resolveThreadStatus, experimental_revokeApplicationLinkApproval, experimental_saveFile, experimental_useAppPanel, experimental_useArchiveEnvironmentThreads, experimental_useBranches, experimental_useCanOpenFileExternally, experimental_useCheckoutState, experimental_useCodeTheme, experimental_useComposerCommandSearch, experimental_useComposerContributions, experimental_useComposerMentionSearch, experimental_useComposerRenderer, experimental_useExperiment, experimental_useFixedTabTarget, experimental_usePanelTabs, experimental_usePluginId, experimental_useProviders, experimental_useQuestionFormHost, experimental_useRpcKeyedQuery, experimental_useRpcMutation, experimental_useRpcQuery, experimental_useRpcRefresh, experimental_useServers, experimental_useSidebarNavigation, experimental_useSidebarNavigationSplit, experimental_useSidebarThreadSplit, experimental_useSidebarThreads, experimental_useTabVisible, experimental_useThreadActionRegistrations, experimental_useThreadActions, experimental_useThreadContextKind, experimental_useThreadExtensionState, experimental_useThreadTitleDisplayText, useBbContext, useBbNavigate, useComposer, useComposers, useEnvironmentProviders, useRealtime, useRealtimeConnectionState, useRpc, useSdk, useSettings, useSidebarSplitLayout, useSidebarThreadDraft, useSidebarThreadDraftIds, useSidebarThreadRowStatus, useSidebarThreadRowStatuses, useSidebarThreadShortcut };
25191
- export type { BbContext, BbNavigate, 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, ExperimentalDetailRowProps, ExperimentalDiffFileContent, ExperimentalDiffFullFileContents, ExperimentalDroppedThreadMention, ExperimentalFailedVoiceRecording, ExperimentalFailedVoiceRecordingsProps, ExperimentalFileLinkProps, ExperimentalFileLocation, ExperimentalFileOpenOptions, ExperimentalFilePreviewFile, ExperimentalFilePreviewOptions, ExperimentalFilePreviewProps, ExperimentalFixedTabTargetContract, ExperimentalFixedTabTargetState, 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, 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, InternalDoNotUseSetupFailureDetail, InternalDoNotUseSetupFailureStage, InternalDoNotUseSetupGuideSectionProps, InternalDoNotUseSetupGuideSectionRegistration, JsonValue$1 as JsonValue, MarkdownProps, NewThreadComposerProps, NewThreadRequest, PluginAppBuilder, PluginAppCommands, PluginAppComposer, PluginAppContentScripts, PluginAppDefinition, PluginAppSetup, PluginAppSlots, PluginBoundThreadAction, PluginBoundThreadsArea, PluginBrowserBbSdk, PluginCodeThemeData, PluginCodeThemeState, PluginCodeThemeTokenRule, PluginCommandContext, PluginCommandRegistration, PluginCommandShortcut, PluginComposerApi, PluginComposerMention, PluginComposerScope, PluginComposerTextEffect, PluginComposerThreadRowStatus, PluginContentScriptContext, PluginContentScriptDisposer, PluginContentScriptRegistration, PluginDiffRendererProps, PluginDiffRendererRegistration, PluginEnvironmentProvider, PluginEnvironmentProviderInputsChange, PluginEnvironmentProviderInputsProps, PluginEnvironmentProviderInputsRegistration, PluginEnvironmentProvidersState, PluginFileOpenerProps, PluginFileOpenerRegistration, PluginFileOpenerSource, PluginHomepageSectionProps, PluginHomepageSectionRegistration, PluginMachineProviderInputsChange, PluginMachineProviderInputsProps, PluginMachineProviderInputsRegistration, PluginMessageActionContext, PluginMessageActionRegistration, PluginMessageDirectiveMessage, PluginMessageDirectiveOpenWorkspaceFile, PluginMessageDirectiveProps, PluginMessageDirectiveRegistration, PluginNavPanelProps, PluginNavPanelRegistration, PluginNewThreadPanelActionContext, PluginNewThreadPanelActionRegistration, PluginNewThreadPanelProps, PluginPendingInteractionProps, PluginPendingInteractionRegistration, PluginPendingInteractionView, PluginProviderIconRegistration, PluginProvidersState, PluginRealtimeConnectionState, PluginRpcCallArgs, PluginRpcClient, PluginRpcContract, PluginRpcError, PluginRpcErrorCode, PluginRpcHandlers, PluginRpcIssuePathSegment, PluginRpcMethodContract, PluginRpcResult, PluginRpcValidationIssue, PluginSdkApp, PluginSettingsSectionProps, PluginSettingsSectionRegistration, PluginSettingsState, PluginSidebarFooterActionContext, PluginSidebarFooterActionProps, PluginSidebarFooterActionRegistration, PluginSidebarProject, PluginSidebarSection, PluginSidebarSplitLayout, PluginSidebarSplitPane, PluginSidebarThread, PluginSidebarThreadActivity, PluginSidebarThreadDraftState, PluginSidebarThreadIndicator, PluginSidebarThreadRowStatus, PluginSidebarThreadShortcut, PluginSidebarThreadSplit, PluginSidebarThreadSplitOptions, PluginSidebarThreadsState, PluginSourceCodeRendererProps, PluginSourceCodeRendererRegistration, PluginThreadAction, PluginThreadActionBulkItemInput, PluginThreadActionChoice, PluginThreadActionChoices, PluginThreadActionDataInput, PluginThreadActionEntry, PluginThreadActionItemInput, PluginThreadActionPlacement, PluginThreadActionRegistration, PluginThreadActionRegistrationInfo, PluginThreadActionRunInput, PluginThreadActionTarget, PluginThreadActionsContextMenuProps, PluginThreadActionsInlineItem, PluginThreadActionsMenuProps, PluginThreadActionsOptions, PluginThreadActionsTriggerProps, PluginThreadListProps, PluginThreadListRegistration, PluginThreadStatus, PluginThreadStatusGlyphProps, PluginThreadStatusInput, PluginThreadStatusThread, PluginThreadTitleProps, PluginTimelineRendererProps, PluginTimelineRendererRegistration, PluginTimelineRendererRow, PluginTimelineRowPresentation, PluginTimelineRowStatus, ReadonlyJsonValue, SourceCodeLineRange, SourceCodeProps, StandardSchemaV1, StandardSchemaV1InferInput, StandardSchemaV1InferOutput, StandardSchemaV1Issue, StandardSchemaV1Result, ThreadChatMessageAction, ThreadChatMessageReference, ThreadChatProps, UrlLinkProps, UseBranchesArgs, UseCheckoutStateArgs };
25847
+ export { Markdown, ThreadChat, ThreadTitle, UrlLink, definePluginApp, experimental_BranchPicker, experimental_CollapsibleStackCard, experimental_ComposerRoot, experimental_DetailRow, experimental_Diff, experimental_FailedVoiceRecordings, experimental_FileLink, experimental_FilePreview, experimental_Icon, experimental_ImageLightbox, experimental_InfoList, experimental_InfoListRow, experimental_InfoSection, experimental_NewThreadComposer, experimental_PanelTabIcon, experimental_PermissionModePicker, experimental_PluginIcon, experimental_PluginRpcCallError, experimental_PromptMentionIcon, experimental_ProviderIcon, experimental_ProviderModelPicker, experimental_ShortcutHint, experimental_SidebarNavigationIcon, experimental_SourceCode, experimental_THREAD_ACTION_GROUPS, experimental_THREAD_CONTEXT_SEGMENT_GROUPS, experimental_THREAD_INFO_ROW_GROUPS, experimental_THREAD_INFO_SECTION_GROUPS, experimental_ThreadActionsContextMenu, experimental_ThreadActionsMenu, experimental_ThreadContextCardRow, experimental_ThreadRowMetadata, experimental_ThreadStatusGlyph, experimental_ThreadTitleText, experimental_VoiceInputButton, experimental_VoiceInputTextarea, experimental_VoiceRecordingBar, experimental_copyToClipboard, experimental_describePromptMention, experimental_getApplicationLinkApprovals, experimental_matchesShortcutKey, experimental_promptMentionClipboardAttributes, experimental_readPromptMentionClipboard, experimental_resolveThreadStatus, experimental_revokeApplicationLinkApproval, experimental_saveFile, experimental_sliceUtf16Head, experimental_useAppPanel, experimental_useArchiveEnvironmentThreads, experimental_useBranches, experimental_useCanOpenFileExternally, experimental_useCheckoutState, experimental_useCodeTheme, experimental_useComposerCommandSearch, experimental_useComposerContributions, experimental_useComposerMentionSearch, experimental_useComposerRenderer, experimental_useExperiment, experimental_useFixedTabTarget, experimental_usePanelTabs, experimental_usePluginId, experimental_useProviders, experimental_useQuestionFormHost, experimental_useRpcKeyedQuery, experimental_useRpcMutation, experimental_useRpcQuery, experimental_useRpcRefresh, experimental_useServers, experimental_useSidebarNavigation, experimental_useSidebarNavigationSplit, experimental_useSidebarThreadSplit, experimental_useSidebarThreads, experimental_useTabVisible, experimental_useThreadActionRegistrations, experimental_useThreadActions, experimental_useThreadContextKind, experimental_useThreadExtensionState, experimental_useThreadTitleDisplayText, useBbContext, useBbNavigate, useComposer, useComposers, useEnvironmentProviders, useRealtime, useRealtimeConnectionState, useRpc, useSdk, useSettings, useSidebarSplitLayout, useSidebarThreadDraft, useSidebarThreadDraftIds, useSidebarThreadRowStatus, useSidebarThreadRowStatuses, useSidebarThreadShortcut };
25848
+ export type { BbContext, BbNavigate, 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, ExperimentalComposerActionContext, 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, ExperimentalDetailRowProps, ExperimentalDiffFileContent, ExperimentalDiffFullFileContents, ExperimentalDroppedThreadMention, ExperimentalFailedVoiceRecording, ExperimentalFailedVoiceRecordingsProps, ExperimentalFileLinkProps, ExperimentalFileLocation, ExperimentalFileOpenOptions, ExperimentalFilePreviewFile, ExperimentalFilePreviewOptions, ExperimentalFilePreviewProps, ExperimentalFixedTabTargetContract, ExperimentalFixedTabTargetState, ExperimentalIconProps, ExperimentalIconRegistration, ExperimentalImageLightboxProps, ExperimentalInfoListProps, ExperimentalInfoListRowProps, ExperimentalInfoSectionProps, ExperimentalLiveFileTarget, ExperimentalMessageActionSurface, ExperimentalMessageClipboardPayload, ExperimentalMessageMetadataContext, ExperimentalMessageMetadataPlacement, ExperimentalMessageMetadataProps, ExperimentalMessageMetadataRegistration, ExperimentalOpenTabOptions, ExperimentalPageBreadcrumb, ExperimentalPageTitle, ExperimentalPanelController, ExperimentalPanelTab, ExperimentalPanelTabDetail, ExperimentalPanelTabIconProps, ExperimentalPanelTabs, ExperimentalPermissionModePickerProps, ExperimentalPluginActionContext, ExperimentalPluginBrowserPage, ExperimentalPluginBrowserPageEvaluateOptions, ExperimentalPluginBrowserPageWorld, ExperimentalPluginBrowserToolbarActionProps, ExperimentalPluginBrowserToolbarActionRegistration, ExperimentalPluginFixedTabReference, ExperimentalPluginIconProps, ExperimentalPluginPanelPage, 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$1 as JsonValue, MarkdownProps, NewThreadComposerProps, NewThreadRequest, PluginAppBuilder, PluginAppCommands, PluginAppComposer, PluginAppContentScripts, PluginAppDefinition, PluginAppSetup, PluginAppSlots, PluginBoundThreadAction, PluginBoundThreadsArea, PluginBrowserBbSdk, PluginCodeThemeData, PluginCodeThemeState, PluginCodeThemeTokenRule, PluginCommandContext, PluginCommandRegistration, PluginCommandShortcut, PluginComposerApi, PluginComposerMention, PluginComposerScope, PluginComposerTextEffect, PluginComposerThreadRowStatus, PluginContentScriptContext, PluginContentScriptDisposer, PluginContentScriptRegistration, PluginDiffRendererProps, PluginDiffRendererRegistration, PluginEnvironmentProvider, PluginEnvironmentProviderInputsChange, PluginEnvironmentProviderInputsProps, PluginEnvironmentProviderInputsRegistration, PluginEnvironmentProvidersState, PluginFileOpenerProps, PluginFileOpenerRegistration, PluginFileOpenerSource, PluginHomepageSectionProps, PluginHomepageSectionRegistration, PluginMachineProviderInputsChange, PluginMachineProviderInputsProps, PluginMachineProviderInputsRegistration, PluginMessageActionContext, PluginMessageActionRegistration, PluginMessageDirectiveMessage, PluginMessageDirectiveOpenWorkspaceFile, PluginMessageDirectiveProps, PluginMessageDirectiveRegistration, PluginNavPanelProps, PluginNavPanelRegistration, PluginNewThreadPanelActionContext, PluginNewThreadPanelActionRegistration, PluginNewThreadPanelProps, PluginPendingInteractionProps, PluginPendingInteractionRegistration, PluginPendingInteractionView, PluginProviderIconRegistration, PluginProvidersState, PluginRealtimeConnectionState, PluginRpcCallArgs, PluginRpcClient, PluginRpcContract, PluginRpcError, PluginRpcErrorCode, PluginRpcHandlers, PluginRpcIssuePathSegment, PluginRpcMethodContract, PluginRpcResult, PluginRpcValidationIssue, PluginSdkApp, PluginSettingsSectionProps, PluginSettingsSectionRegistration, PluginSettingsState, PluginSidebarFooterActionContext, PluginSidebarFooterActionProps, PluginSidebarFooterActionRegistration, PluginSidebarProject, PluginSidebarSection, PluginSidebarSplitLayout, PluginSidebarSplitPane, PluginSidebarThread, PluginSidebarThreadActivity, PluginSidebarThreadDraftState, PluginSidebarThreadIndicator, PluginSidebarThreadRowStatus, PluginSidebarThreadShortcut, PluginSidebarThreadSplit, PluginSidebarThreadSplitOptions, PluginSidebarThreadsState, PluginSourceCodeRendererProps, PluginSourceCodeRendererRegistration, PluginThreadAction, PluginThreadActionBulkItemInput, PluginThreadActionChoice, PluginThreadActionChoices, PluginThreadActionDataInput, PluginThreadActionEntry, PluginThreadActionItemInput, PluginThreadActionPlacement, PluginThreadActionRegistration, PluginThreadActionRegistrationInfo, PluginThreadActionRunInput, PluginThreadActionTarget, PluginThreadActionsContextMenuProps, PluginThreadActionsInlineItem, PluginThreadActionsMenuProps, PluginThreadActionsOptions, PluginThreadActionsTriggerProps, PluginThreadListProps, PluginThreadListRegistration, PluginThreadStatus, PluginThreadStatusGlyphProps, PluginThreadStatusInput, PluginThreadStatusThread, PluginThreadTitleProps, PluginTimelineRendererProps, PluginTimelineRendererRegistration, PluginTimelineRendererRow, PluginTimelineRowPresentation, PluginTimelineRowStatus, ReadonlyJsonValue, SourceCodeLineRange, SourceCodeProps, StandardSchemaV1, StandardSchemaV1InferInput, StandardSchemaV1InferOutput, StandardSchemaV1Issue, StandardSchemaV1Result, ThreadChatMessageAction, ThreadChatMessageReference, ThreadChatProps, UrlLinkProps, UseBranchesArgs, UseCheckoutStateArgs };