@get-bb/plugin-sdk 0.6.80 → 0.6.90

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.
@@ -161,7 +161,7 @@ declare const uiPreferenceDefinitions: {
161
161
  readonly "sidebar.navigationProvider": UiPreferenceDefinition<z$1.ZodPipe<z$1.ZodString, z$1.ZodTransform<string, string>>>;
162
162
  readonly "sidebar.threadListProvider": UiPreferenceDefinition<z$1.ZodPipe<z$1.ZodString, z$1.ZodTransform<string, string>>>;
163
163
  readonly "composer.provider": UiPreferenceDefinition<z$1.ZodString>;
164
- readonly "infoPanel.collapsedSections": UiPreferenceDefinition<z$1.ZodArray<z$1.ZodString>>;
164
+ readonly "infoPanel.collapsedSections": UiPreferenceDefinition<z$1.ZodPipe<z$1.ZodArray<z$1.ZodString>, z$1.ZodTransform<string[], string[]>>>;
165
165
  };
166
166
  type UiPreferenceValue<Key extends UiPreferenceKey> = z$1.infer<(typeof uiPreferenceDefinitions)[Key]["schema"]>;
167
167
  interface UiPreferenceEntry<Key extends UiPreferenceKey = UiPreferenceKey> {
@@ -180,7 +180,6 @@ declare const appKeybindingOverridesSchema: z$1.ZodArray<z$1.ZodObject<{
180
180
  "browser.reload": "browser.reload";
181
181
  "composer.focus": "composer.focus";
182
182
  "dataDirectory.open": "dataDirectory.open";
183
- "diff.toggle": "diff.toggle";
184
183
  "file.quickOpen": "file.quickOpen";
185
184
  "history.back": "history.back";
186
185
  "history.forward": "history.forward";
@@ -245,8 +244,10 @@ declare const appKeybindingOverridesSchema: z$1.ZodArray<z$1.ZodObject<{
245
244
  "thread.jump.7": "thread.jump.7";
246
245
  "thread.jump.8": "thread.jump.8";
247
246
  "thread.jump.9": "thread.jump.9";
247
+ "thread.markRead": "thread.markRead";
248
248
  "thread.new": "thread.new";
249
249
  "thread.next": "thread.next";
250
+ "thread.pin": "thread.pin";
250
251
  "thread.previous": "thread.previous";
251
252
  "thread.rename": "thread.rename";
252
253
  "thread.search": "thread.search";
@@ -403,6 +404,7 @@ declare const changedMessageSchema: z$1.ZodDiscriminatedUnion<[z$1.ZodObject<{
403
404
  changes: z$1.ZodReadonly<z$1.ZodArray<z$1.ZodEnum<{
404
405
  "host-connected": "host-connected";
405
406
  "host-disconnected": "host-disconnected";
407
+ "provider-commands-changed": "provider-commands-changed";
406
408
  "provider-model-catalog-changed": "provider-model-catalog-changed";
407
409
  }>>>;
408
410
  entity: z$1.ZodLiteral<"host">;
@@ -521,21 +523,27 @@ declare const environmentSchema: z$1.ZodObject<{
521
523
  type Environment = z$1.infer<typeof environmentSchema>;
522
524
 
523
525
  declare const experimentsSchema: z$1.ZodRecord<z$1.ZodEnum<{
526
+ applicationLinks: "applicationLinks";
524
527
  changelogPreview: "changelogPreview";
525
528
  compactExpiredCache: "compactExpiredCache";
526
529
  performanceDiagnostics: "performanceDiagnostics";
527
530
  serverMove: "serverMove";
528
531
  sidebarMultiSelect: "sidebarMultiSelect";
529
532
  timelinePush: "timelinePush";
533
+ unreadDividerAtAnswer: "unreadDividerAtAnswer";
534
+ websocketCompression: "websocketCompression";
530
535
  }>, z$1.ZodBoolean>;
531
536
  type Experiments = z$1.infer<typeof experimentsSchema>;
532
537
  declare const experimentUpdatesSchema: z$1.ZodRecord<z$1.ZodEnum<{
538
+ applicationLinks: "applicationLinks";
533
539
  changelogPreview: "changelogPreview";
534
540
  compactExpiredCache: "compactExpiredCache";
535
541
  performanceDiagnostics: "performanceDiagnostics";
536
542
  serverMove: "serverMove";
537
543
  sidebarMultiSelect: "sidebarMultiSelect";
538
544
  timelinePush: "timelinePush";
545
+ unreadDividerAtAnswer: "unreadDividerAtAnswer";
546
+ websocketCompression: "websocketCompression";
539
547
  }> & z$1.core.$partial, z$1.ZodBoolean>;
540
548
  type ExperimentUpdates = z$1.infer<typeof experimentUpdatesSchema>;
541
549
 
@@ -5678,31 +5686,6 @@ declare const environmentPathsQuerySchema: z$1.ZodObject<{
5678
5686
  query: z$1.ZodOptional<z$1.ZodString>;
5679
5687
  }, z$1.core.$strip>;
5680
5688
  type EnvironmentPathsQuery = z$1.infer<typeof environmentPathsQuerySchema>;
5681
- declare const environmentDiffBranchesQuerySchema: z$1.ZodObject<{
5682
- limit: z$1.ZodOptional<z$1.ZodString>;
5683
- query: z$1.ZodOptional<z$1.ZodString>;
5684
- selectedBranch: z$1.ZodOptional<z$1.ZodString>;
5685
- }, z$1.core.$strip>;
5686
- type EnvironmentDiffBranchesQuery = z$1.infer<typeof environmentDiffBranchesQuerySchema>;
5687
- declare const environmentDiffBranchesResponseSchema: z$1.ZodObject<{
5688
- branches: z$1.ZodArray<z$1.ZodString>;
5689
- branchesTruncated: z$1.ZodBoolean;
5690
- remoteBranches: z$1.ZodArray<z$1.ZodString>;
5691
- remoteBranchesTruncated: z$1.ZodBoolean;
5692
- selectedBranch: z$1.ZodNullable<z$1.ZodObject<{
5693
- kind: z$1.ZodEnum<{
5694
- local: "local";
5695
- missing: "missing";
5696
- remote: "remote";
5697
- }>;
5698
- name: z$1.ZodString;
5699
- }, z$1.core.$strip>>;
5700
- }, z$1.core.$strip>;
5701
- type EnvironmentDiffBranchesResponse = z$1.infer<typeof environmentDiffBranchesResponseSchema>;
5702
- declare const environmentStatusQuerySchema: z$1.ZodObject<{
5703
- mergeBaseBranch: z$1.ZodOptional<z$1.ZodPipe<z$1.ZodString, z$1.ZodString>>;
5704
- }, z$1.core.$strip>;
5705
- type EnvironmentStatusQuery = z$1.infer<typeof environmentStatusQuerySchema>;
5706
5689
  declare const environmentDiffQuerySchema: z$1.ZodDiscriminatedUnion<[z$1.ZodObject<{
5707
5690
  target: z$1.ZodLiteral<"uncommitted">;
5708
5691
  }, z$1.core.$strip>, z$1.ZodObject<{
@@ -5716,50 +5699,6 @@ declare const environmentDiffQuerySchema: z$1.ZodDiscriminatedUnion<[z$1.ZodObje
5716
5699
  target: z$1.ZodLiteral<"commit">;
5717
5700
  }, z$1.core.$strip>], "target">;
5718
5701
  type EnvironmentDiffQuery = z$1.infer<typeof environmentDiffQuerySchema>;
5719
- declare const environmentDiffFileQuerySchema: z$1.ZodDiscriminatedUnion<[z$1.ZodObject<{
5720
- path: z$1.ZodString;
5721
- side: z$1.ZodEnum<{
5722
- new: "new";
5723
- old: "old";
5724
- }>;
5725
- target: z$1.ZodLiteral<"uncommitted">;
5726
- }, z$1.core.$strip>, z$1.ZodObject<{
5727
- mergeBaseRef: z$1.ZodString;
5728
- path: z$1.ZodString;
5729
- side: z$1.ZodEnum<{
5730
- new: "new";
5731
- old: "old";
5732
- }>;
5733
- target: z$1.ZodLiteral<"branch_committed">;
5734
- }, z$1.core.$strip>, z$1.ZodObject<{
5735
- mergeBaseRef: z$1.ZodString;
5736
- path: z$1.ZodString;
5737
- side: z$1.ZodEnum<{
5738
- new: "new";
5739
- old: "old";
5740
- }>;
5741
- target: z$1.ZodLiteral<"all">;
5742
- }, z$1.core.$strip>, z$1.ZodObject<{
5743
- path: z$1.ZodString;
5744
- sha: z$1.ZodString;
5745
- side: z$1.ZodEnum<{
5746
- new: "new";
5747
- old: "old";
5748
- }>;
5749
- target: z$1.ZodLiteral<"commit">;
5750
- }, z$1.core.$strip>], "target">;
5751
- type EnvironmentDiffFileQuery = z$1.infer<typeof environmentDiffFileQuerySchema>;
5752
- declare const environmentDiffFileResponseSchema: z$1.ZodObject<{
5753
- content: z$1.ZodString;
5754
- contentEncoding: z$1.ZodEnum<{
5755
- base64: "base64";
5756
- utf8: "utf8";
5757
- }>;
5758
- mimeType: z$1.ZodOptional<z$1.ZodString>;
5759
- path: z$1.ZodString;
5760
- sizeBytes: z$1.ZodNumber;
5761
- }, z$1.core.$strip>;
5762
- type EnvironmentDiffFileResponse = z$1.infer<typeof environmentDiffFileResponseSchema>;
5763
5702
  declare const environmentArchiveThreadsResponseSchema: z$1.ZodObject<{
5764
5703
  archivedThreadIds: z$1.ZodArray<z$1.ZodString>;
5765
5704
  ok: z$1.ZodLiteral<true>;
@@ -5773,246 +5712,6 @@ declare const commitActionResponseSchema: z$1.ZodObject<{
5773
5712
  ok: z$1.ZodLiteral<true>;
5774
5713
  }, z$1.core.$strip>;
5775
5714
  type CommitActionResponse = z$1.infer<typeof commitActionResponseSchema>;
5776
- declare const environmentStatusResponseSchema: z$1.ZodDiscriminatedUnion<[z$1.ZodObject<{
5777
- outcome: z$1.ZodLiteral<"available">;
5778
- workspace: z$1.ZodObject<{
5779
- branch: z$1.ZodObject<{
5780
- currentBranch: z$1.ZodNullable<z$1.ZodString>;
5781
- defaultBranch: z$1.ZodString;
5782
- }, z$1.core.$strip>;
5783
- checkout: z$1.ZodDiscriminatedUnion<[z$1.ZodObject<{
5784
- branchName: z$1.ZodString;
5785
- headSha: z$1.ZodNullable<z$1.ZodString>;
5786
- kind: z$1.ZodLiteral<"branch">;
5787
- }, z$1.core.$strip>, z$1.ZodObject<{
5788
- headSha: z$1.ZodNullable<z$1.ZodString>;
5789
- kind: z$1.ZodLiteral<"detached">;
5790
- }, z$1.core.$strip>, z$1.ZodObject<{
5791
- branchName: z$1.ZodNullable<z$1.ZodString>;
5792
- kind: z$1.ZodLiteral<"unborn">;
5793
- }, z$1.core.$strip>, z$1.ZodObject<{
5794
- kind: z$1.ZodLiteral<"unknown">;
5795
- reason: z$1.ZodString;
5796
- }, z$1.core.$strip>], "kind">;
5797
- mergeBase: z$1.ZodNullable<z$1.ZodObject<{
5798
- aheadCount: z$1.ZodNumber;
5799
- baseRef: z$1.ZodNullable<z$1.ZodString>;
5800
- behindCount: z$1.ZodNumber;
5801
- commits: z$1.ZodArray<z$1.ZodObject<{
5802
- authorName: z$1.ZodString;
5803
- authoredAt: z$1.ZodNumber;
5804
- sha: z$1.ZodString;
5805
- shortSha: z$1.ZodString;
5806
- subject: z$1.ZodString;
5807
- }, z$1.core.$strip>>;
5808
- deletions: z$1.ZodNumber;
5809
- fileCount: z$1.ZodNumber;
5810
- files: z$1.ZodArray<z$1.ZodObject<{
5811
- deletions: z$1.ZodNullable<z$1.ZodNumber>;
5812
- insertions: z$1.ZodNullable<z$1.ZodNumber>;
5813
- path: z$1.ZodString;
5814
- status: z$1.ZodEnum<{
5815
- "?": "?";
5816
- "??": "??";
5817
- A: "A";
5818
- C: "C";
5819
- D: "D";
5820
- M: "M";
5821
- R: "R";
5822
- U: "U";
5823
- }>;
5824
- }, z$1.core.$strip>>;
5825
- hasCommittedUnmergedChanges: z$1.ZodBoolean;
5826
- insertions: z$1.ZodNumber;
5827
- lineStatsComplete: z$1.ZodBoolean;
5828
- mergeBaseBranch: z$1.ZodString;
5829
- squashMergeCheckComplete: z$1.ZodBoolean;
5830
- }, z$1.core.$strip>>;
5831
- workingTree: z$1.ZodObject<{
5832
- deletions: z$1.ZodNumber;
5833
- fileCount: z$1.ZodNumber;
5834
- files: z$1.ZodArray<z$1.ZodObject<{
5835
- deletions: z$1.ZodNullable<z$1.ZodNumber>;
5836
- insertions: z$1.ZodNullable<z$1.ZodNumber>;
5837
- path: z$1.ZodString;
5838
- status: z$1.ZodEnum<{
5839
- "?": "?";
5840
- "??": "??";
5841
- A: "A";
5842
- C: "C";
5843
- D: "D";
5844
- M: "M";
5845
- R: "R";
5846
- U: "U";
5847
- }>;
5848
- }, z$1.core.$strip>>;
5849
- hasUncommittedChanges: z$1.ZodBoolean;
5850
- insertions: z$1.ZodNumber;
5851
- lineStatsComplete: z$1.ZodBoolean;
5852
- state: z$1.ZodEnum<{
5853
- clean: "clean";
5854
- committed_unmerged: "committed_unmerged";
5855
- dirty_and_committed_unmerged: "dirty_and_committed_unmerged";
5856
- dirty_uncommitted: "dirty_uncommitted";
5857
- untracked: "untracked";
5858
- }>;
5859
- }, z$1.core.$strip>;
5860
- }, z$1.core.$strip>;
5861
- }, z$1.core.$strict>, z$1.ZodObject<{
5862
- message: z$1.ZodString;
5863
- outcome: z$1.ZodLiteral<"not_applicable">;
5864
- reason: z$1.ZodEnum<{
5865
- non_git_environment: "non_git_environment";
5866
- }>;
5867
- }, z$1.core.$strict>, z$1.ZodObject<{
5868
- failure: z$1.ZodObject<{
5869
- code: z$1.ZodEnum<{
5870
- not_git_repo: "not_git_repo";
5871
- path_not_found: "path_not_found";
5872
- permission_denied: "permission_denied";
5873
- unknown: "unknown";
5874
- unknown_environment: "unknown_environment";
5875
- workspace_type_mismatch: "workspace_type_mismatch";
5876
- }>;
5877
- message: z$1.ZodString;
5878
- workspacePath: z$1.ZodString;
5879
- }, z$1.core.$strict>;
5880
- outcome: z$1.ZodLiteral<"unavailable">;
5881
- }, z$1.core.$strict>], "outcome">;
5882
- declare const environmentDiffResponseSchema: z$1.ZodDiscriminatedUnion<[z$1.ZodObject<{
5883
- diff: z$1.ZodObject<{
5884
- diff: z$1.ZodString;
5885
- files: z$1.ZodString;
5886
- mergeBaseRef: z$1.ZodNullable<z$1.ZodString>;
5887
- shortstat: z$1.ZodString;
5888
- truncated: z$1.ZodBoolean;
5889
- }, z$1.core.$strip>;
5890
- outcome: z$1.ZodLiteral<"available">;
5891
- }, z$1.core.$strict>, z$1.ZodObject<{
5892
- message: z$1.ZodString;
5893
- outcome: z$1.ZodLiteral<"not_applicable">;
5894
- reason: z$1.ZodEnum<{
5895
- non_git_environment: "non_git_environment";
5896
- }>;
5897
- }, z$1.core.$strict>, z$1.ZodObject<{
5898
- failure: z$1.ZodObject<{
5899
- code: z$1.ZodEnum<{
5900
- not_git_repo: "not_git_repo";
5901
- path_not_found: "path_not_found";
5902
- permission_denied: "permission_denied";
5903
- unknown: "unknown";
5904
- unknown_environment: "unknown_environment";
5905
- workspace_type_mismatch: "workspace_type_mismatch";
5906
- }>;
5907
- message: z$1.ZodString;
5908
- workspacePath: z$1.ZodString;
5909
- }, z$1.core.$strict>;
5910
- outcome: z$1.ZodLiteral<"unavailable">;
5911
- }, z$1.core.$strict>], "outcome">;
5912
- type EnvironmentDiffResponse = z$1.infer<typeof environmentDiffResponseSchema>;
5913
- declare const environmentDiffFilesResponseSchema: z$1.ZodDiscriminatedUnion<[z$1.ZodObject<{
5914
- files: z$1.ZodArray<z$1.ZodObject<{
5915
- additions: z$1.ZodNumber;
5916
- binary: z$1.ZodBoolean;
5917
- changeKind: z$1.ZodEnum<{
5918
- added: "added";
5919
- copied: "copied";
5920
- deleted: "deleted";
5921
- modified: "modified";
5922
- renamed: "renamed";
5923
- type_changed: "type_changed";
5924
- }>;
5925
- deletions: z$1.ZodNumber;
5926
- loadMode: z$1.ZodEnum<{
5927
- auto: "auto";
5928
- on_demand: "on_demand";
5929
- too_large: "too_large";
5930
- }>;
5931
- origin: z$1.ZodEnum<{
5932
- tracked: "tracked";
5933
- untracked: "untracked";
5934
- }>;
5935
- path: z$1.ZodString;
5936
- previousPath: z$1.ZodNullable<z$1.ZodString>;
5937
- revision: z$1.ZodString;
5938
- }, z$1.core.$strip>>;
5939
- initialPatches: z$1.ZodArray<z$1.ZodObject<{
5940
- patch: z$1.ZodString;
5941
- path: z$1.ZodString;
5942
- truncated: z$1.ZodBoolean;
5943
- }, z$1.core.$strip>>;
5944
- mergeBaseRef: z$1.ZodNullable<z$1.ZodString>;
5945
- outcome: z$1.ZodLiteral<"available">;
5946
- shortstat: z$1.ZodString;
5947
- truncated: z$1.ZodBoolean;
5948
- }, z$1.core.$strict>, z$1.ZodObject<{
5949
- message: z$1.ZodString;
5950
- outcome: z$1.ZodLiteral<"not_applicable">;
5951
- reason: z$1.ZodEnum<{
5952
- non_git_environment: "non_git_environment";
5953
- }>;
5954
- }, z$1.core.$strict>, z$1.ZodObject<{
5955
- failure: z$1.ZodObject<{
5956
- code: z$1.ZodEnum<{
5957
- not_git_repo: "not_git_repo";
5958
- path_not_found: "path_not_found";
5959
- permission_denied: "permission_denied";
5960
- unknown: "unknown";
5961
- unknown_environment: "unknown_environment";
5962
- workspace_type_mismatch: "workspace_type_mismatch";
5963
- }>;
5964
- message: z$1.ZodString;
5965
- workspacePath: z$1.ZodString;
5966
- }, z$1.core.$strict>;
5967
- outcome: z$1.ZodLiteral<"unavailable">;
5968
- }, z$1.core.$strict>], "outcome">;
5969
- type EnvironmentDiffFilesResponse = z$1.infer<typeof environmentDiffFilesResponseSchema>;
5970
- declare const environmentDiffPatchResponseSchema: z$1.ZodDiscriminatedUnion<[z$1.ZodObject<{
5971
- outcome: z$1.ZodLiteral<"available">;
5972
- patches: z$1.ZodArray<z$1.ZodObject<{
5973
- patch: z$1.ZodString;
5974
- path: z$1.ZodString;
5975
- truncated: z$1.ZodBoolean;
5976
- }, z$1.core.$strip>>;
5977
- }, z$1.core.$strict>, z$1.ZodObject<{
5978
- message: z$1.ZodString;
5979
- outcome: z$1.ZodLiteral<"not_applicable">;
5980
- reason: z$1.ZodEnum<{
5981
- non_git_environment: "non_git_environment";
5982
- }>;
5983
- }, z$1.core.$strict>, z$1.ZodObject<{
5984
- failure: z$1.ZodObject<{
5985
- code: z$1.ZodEnum<{
5986
- not_git_repo: "not_git_repo";
5987
- path_not_found: "path_not_found";
5988
- permission_denied: "permission_denied";
5989
- unknown: "unknown";
5990
- unknown_environment: "unknown_environment";
5991
- workspace_type_mismatch: "workspace_type_mismatch";
5992
- }>;
5993
- message: z$1.ZodString;
5994
- workspacePath: z$1.ZodString;
5995
- }, z$1.core.$strict>;
5996
- outcome: z$1.ZodLiteral<"unavailable">;
5997
- }, z$1.core.$strict>], "outcome">;
5998
- type EnvironmentDiffPatchResponse = z$1.infer<typeof environmentDiffPatchResponseSchema>;
5999
- declare const environmentDiffPatchRequestSchema: z$1.ZodObject<{
6000
- ignoreWhitespace: z$1.ZodOptional<z$1.ZodBoolean>;
6001
- paths: z$1.ZodArray<z$1.ZodString>;
6002
- target: z$1.ZodDiscriminatedUnion<[z$1.ZodObject<{
6003
- type: z$1.ZodLiteral<"uncommitted">;
6004
- }, z$1.core.$strip>, z$1.ZodObject<{
6005
- mergeBaseBranch: z$1.ZodString;
6006
- type: z$1.ZodLiteral<"branch_committed">;
6007
- }, z$1.core.$strip>, z$1.ZodObject<{
6008
- mergeBaseBranch: z$1.ZodString;
6009
- type: z$1.ZodLiteral<"all">;
6010
- }, z$1.core.$strip>, z$1.ZodObject<{
6011
- sha: z$1.ZodString;
6012
- type: z$1.ZodLiteral<"commit">;
6013
- }, z$1.core.$strip>], "type">;
6014
- }, z$1.core.$strict>;
6015
- type EnvironmentDiffPatchRequest = z$1.infer<typeof environmentDiffPatchRequestSchema>;
6016
5715
  declare const environmentDiffViewedResponseSchema: z$1.ZodObject<{
6017
5716
  files: z$1.ZodArray<z$1.ZodObject<{
6018
5717
  path: z$1.ZodString;
@@ -6053,7 +5752,6 @@ declare const environmentDiffViewedClearRequestSchema: z$1.ZodObject<{
6053
5752
  }, z$1.core.$strip>], "type">;
6054
5753
  }, z$1.core.$strict>;
6055
5754
  type EnvironmentDiffViewedClearRequest = z$1.infer<typeof environmentDiffViewedClearRequestSchema>;
6056
- type EnvironmentStatusResponse = z$1.infer<typeof environmentStatusResponseSchema>;
6057
5755
 
6058
5756
  declare const providerUsageResponseSchema: z$1.ZodRecord<z$1.ZodString, z$1.ZodDiscriminatedUnion<[z$1.ZodObject<{
6059
5757
  accountEmail: z$1.ZodNullable<z$1.ZodString>;
@@ -8155,6 +7853,7 @@ declare const hostDaemonCommandRegistry: {
8155
7853
  }, z$1.core.$strip>>;
8156
7854
  }, z$1.core.$strip>, "onlineRpc", true>;
8157
7855
  "host.read_file": HostDaemonCommandDescriptor<"host.read_file", z$1.ZodObject<{
7856
+ followRootSymlink: z$1.ZodBoolean;
8158
7857
  ifNoneMatch: z$1.ZodOptional<z$1.ZodDiscriminatedUnion<[z$1.ZodObject<{
8159
7858
  kind: z$1.ZodLiteral<"any">;
8160
7859
  }, z$1.core.$strict>, z$1.ZodObject<{
@@ -8204,27 +7903,6 @@ declare const hostDaemonCommandRegistry: {
8204
7903
  revision: z$1.ZodString;
8205
7904
  sizeBytes: z$1.ZodNumber;
8206
7905
  }, z$1.core.$strict>, "onlineRpc", true>;
8207
- "host.read_file_relative": HostDaemonCommandDescriptor<"host.read_file_relative", z$1.ZodObject<{
8208
- dotfiles: z$1.ZodEnum<{
8209
- allow: "allow";
8210
- deny: "deny";
8211
- }>;
8212
- followRootSymlink: z$1.ZodBoolean;
8213
- path: z$1.ZodString;
8214
- rootPath: z$1.ZodString;
8215
- type: z$1.ZodLiteral<"host.read_file_relative">;
8216
- }, z$1.core.$strict>, z$1.ZodObject<{
8217
- content: z$1.ZodString;
8218
- contentEncoding: z$1.ZodEnum<{
8219
- base64: "base64";
8220
- utf8: "utf8";
8221
- }>;
8222
- mimeType: z$1.ZodOptional<z$1.ZodString>;
8223
- modifiedAtMs: z$1.ZodOptional<z$1.ZodNumber>;
8224
- path: z$1.ZodString;
8225
- sha256: z$1.ZodString;
8226
- sizeBytes: z$1.ZodNumber;
8227
- }, z$1.core.$strip>, "onlineRpc", true>;
8228
7906
  "host.write_file": HostDaemonCommandDescriptor<"host.write_file", z$1.ZodObject<{
8229
7907
  content: z$1.ZodString;
8230
7908
  contentEncoding: z$1.ZodEnum<{
@@ -8654,264 +8332,6 @@ declare const hostDaemonCommandRegistry: {
8654
8332
  }, z$1.core.$strict>>;
8655
8333
  truncated: z$1.ZodBoolean;
8656
8334
  }, z$1.core.$strict>, "onlineRpc", true>;
8657
- "workspace.status": HostDaemonCommandDescriptor<"workspace.status", z$1.ZodObject<{
8658
- environmentId: z$1.ZodString;
8659
- maxFiles: z$1.ZodNumber;
8660
- maxUntrackedLineStatBytes: z$1.ZodNumber;
8661
- maxUntrackedLineStatFiles: z$1.ZodNumber;
8662
- mergeBaseBranch: z$1.ZodOptional<z$1.ZodString>;
8663
- type: z$1.ZodLiteral<"workspace.status">;
8664
- workspaceContext: z$1.ZodObject<{
8665
- workspacePath: z$1.ZodString;
8666
- }, z$1.core.$strip>;
8667
- }, z$1.core.$strict>, z$1.ZodDiscriminatedUnion<[z$1.ZodObject<{
8668
- outcome: z$1.ZodLiteral<"available">;
8669
- workspaceStatus: z$1.ZodObject<{
8670
- branch: z$1.ZodObject<{
8671
- currentBranch: z$1.ZodNullable<z$1.ZodString>;
8672
- defaultBranch: z$1.ZodString;
8673
- }, z$1.core.$strip>;
8674
- checkout: z$1.ZodDiscriminatedUnion<[z$1.ZodObject<{
8675
- branchName: z$1.ZodString;
8676
- headSha: z$1.ZodNullable<z$1.ZodString>;
8677
- kind: z$1.ZodLiteral<"branch">;
8678
- }, z$1.core.$strip>, z$1.ZodObject<{
8679
- headSha: z$1.ZodNullable<z$1.ZodString>;
8680
- kind: z$1.ZodLiteral<"detached">;
8681
- }, z$1.core.$strip>, z$1.ZodObject<{
8682
- branchName: z$1.ZodNullable<z$1.ZodString>;
8683
- kind: z$1.ZodLiteral<"unborn">;
8684
- }, z$1.core.$strip>, z$1.ZodObject<{
8685
- kind: z$1.ZodLiteral<"unknown">;
8686
- reason: z$1.ZodString;
8687
- }, z$1.core.$strip>], "kind">;
8688
- mergeBase: z$1.ZodNullable<z$1.ZodObject<{
8689
- aheadCount: z$1.ZodNumber;
8690
- baseRef: z$1.ZodNullable<z$1.ZodString>;
8691
- behindCount: z$1.ZodNumber;
8692
- commits: z$1.ZodArray<z$1.ZodObject<{
8693
- authorName: z$1.ZodString;
8694
- authoredAt: z$1.ZodNumber;
8695
- sha: z$1.ZodString;
8696
- shortSha: z$1.ZodString;
8697
- subject: z$1.ZodString;
8698
- }, z$1.core.$strip>>;
8699
- deletions: z$1.ZodNumber;
8700
- fileCount: z$1.ZodNumber;
8701
- files: z$1.ZodArray<z$1.ZodObject<{
8702
- deletions: z$1.ZodNullable<z$1.ZodNumber>;
8703
- insertions: z$1.ZodNullable<z$1.ZodNumber>;
8704
- path: z$1.ZodString;
8705
- status: z$1.ZodEnum<{
8706
- "?": "?";
8707
- "??": "??";
8708
- A: "A";
8709
- C: "C";
8710
- D: "D";
8711
- M: "M";
8712
- R: "R";
8713
- U: "U";
8714
- }>;
8715
- }, z$1.core.$strip>>;
8716
- hasCommittedUnmergedChanges: z$1.ZodBoolean;
8717
- insertions: z$1.ZodNumber;
8718
- lineStatsComplete: z$1.ZodBoolean;
8719
- mergeBaseBranch: z$1.ZodString;
8720
- squashMergeCheckComplete: z$1.ZodDefault<z$1.ZodBoolean>;
8721
- }, z$1.core.$strip>>;
8722
- workingTree: z$1.ZodObject<{
8723
- deletions: z$1.ZodNumber;
8724
- fileCount: z$1.ZodNumber;
8725
- files: z$1.ZodArray<z$1.ZodObject<{
8726
- deletions: z$1.ZodNullable<z$1.ZodNumber>;
8727
- insertions: z$1.ZodNullable<z$1.ZodNumber>;
8728
- path: z$1.ZodString;
8729
- status: z$1.ZodEnum<{
8730
- "?": "?";
8731
- "??": "??";
8732
- A: "A";
8733
- C: "C";
8734
- D: "D";
8735
- M: "M";
8736
- R: "R";
8737
- U: "U";
8738
- }>;
8739
- }, z$1.core.$strip>>;
8740
- hasUncommittedChanges: z$1.ZodBoolean;
8741
- insertions: z$1.ZodNumber;
8742
- lineStatsComplete: z$1.ZodBoolean;
8743
- state: z$1.ZodEnum<{
8744
- clean: "clean";
8745
- committed_unmerged: "committed_unmerged";
8746
- dirty_and_committed_unmerged: "dirty_and_committed_unmerged";
8747
- dirty_uncommitted: "dirty_uncommitted";
8748
- untracked: "untracked";
8749
- }>;
8750
- }, z$1.core.$strip>;
8751
- }, z$1.core.$strip>;
8752
- }, z$1.core.$strict>, z$1.ZodObject<{
8753
- failure: z$1.ZodObject<{
8754
- code: z$1.ZodEnum<{
8755
- not_git_repo: "not_git_repo";
8756
- path_not_found: "path_not_found";
8757
- permission_denied: "permission_denied";
8758
- unknown: "unknown";
8759
- unknown_environment: "unknown_environment";
8760
- workspace_type_mismatch: "workspace_type_mismatch";
8761
- }>;
8762
- message: z$1.ZodString;
8763
- workspacePath: z$1.ZodString;
8764
- }, z$1.core.$strict>;
8765
- outcome: z$1.ZodLiteral<"unavailable">;
8766
- }, z$1.core.$strict>], "outcome">, "onlineRpc", true>;
8767
- "workspace.diff": HostDaemonCommandDescriptor<"workspace.diff", z$1.ZodObject<{
8768
- environmentId: z$1.ZodString;
8769
- maxDiffBytes: z$1.ZodNumber;
8770
- maxFileListBytes: z$1.ZodNumber;
8771
- maxUntrackedFiles: z$1.ZodNumber;
8772
- target: z$1.ZodDiscriminatedUnion<[z$1.ZodObject<{
8773
- type: z$1.ZodLiteral<"uncommitted">;
8774
- }, z$1.core.$strip>, z$1.ZodObject<{
8775
- mergeBaseBranch: z$1.ZodString;
8776
- type: z$1.ZodLiteral<"branch_committed">;
8777
- }, z$1.core.$strip>, z$1.ZodObject<{
8778
- mergeBaseBranch: z$1.ZodString;
8779
- type: z$1.ZodLiteral<"all">;
8780
- }, z$1.core.$strip>, z$1.ZodObject<{
8781
- sha: z$1.ZodString;
8782
- type: z$1.ZodLiteral<"commit">;
8783
- }, z$1.core.$strip>], "type">;
8784
- type: z$1.ZodLiteral<"workspace.diff">;
8785
- workspaceContext: z$1.ZodObject<{
8786
- workspacePath: z$1.ZodString;
8787
- }, z$1.core.$strip>;
8788
- }, z$1.core.$strict>, z$1.ZodDiscriminatedUnion<[z$1.ZodObject<{
8789
- diff: z$1.ZodObject<{
8790
- diff: z$1.ZodString;
8791
- files: z$1.ZodString;
8792
- mergeBaseRef: z$1.ZodNullable<z$1.ZodString>;
8793
- shortstat: z$1.ZodString;
8794
- truncated: z$1.ZodBoolean;
8795
- }, z$1.core.$strip>;
8796
- outcome: z$1.ZodLiteral<"available">;
8797
- }, z$1.core.$strict>, z$1.ZodObject<{
8798
- failure: z$1.ZodObject<{
8799
- code: z$1.ZodEnum<{
8800
- not_git_repo: "not_git_repo";
8801
- path_not_found: "path_not_found";
8802
- permission_denied: "permission_denied";
8803
- unknown: "unknown";
8804
- unknown_environment: "unknown_environment";
8805
- workspace_type_mismatch: "workspace_type_mismatch";
8806
- }>;
8807
- message: z$1.ZodString;
8808
- workspacePath: z$1.ZodString;
8809
- }, z$1.core.$strict>;
8810
- outcome: z$1.ZodLiteral<"unavailable">;
8811
- }, z$1.core.$strict>], "outcome">, "onlineRpc", true>;
8812
- "workspace.diffFiles": HostDaemonCommandDescriptor<"workspace.diffFiles", z$1.ZodObject<{
8813
- environmentId: z$1.ZodString;
8814
- ignoreWhitespace: z$1.ZodBoolean;
8815
- maxFiles: z$1.ZodNumber;
8816
- target: z$1.ZodDiscriminatedUnion<[z$1.ZodObject<{
8817
- type: z$1.ZodLiteral<"uncommitted">;
8818
- }, z$1.core.$strip>, z$1.ZodObject<{
8819
- mergeBaseBranch: z$1.ZodString;
8820
- type: z$1.ZodLiteral<"branch_committed">;
8821
- }, z$1.core.$strip>, z$1.ZodObject<{
8822
- mergeBaseBranch: z$1.ZodString;
8823
- type: z$1.ZodLiteral<"all">;
8824
- }, z$1.core.$strip>, z$1.ZodObject<{
8825
- sha: z$1.ZodString;
8826
- type: z$1.ZodLiteral<"commit">;
8827
- }, z$1.core.$strip>], "type">;
8828
- type: z$1.ZodLiteral<"workspace.diffFiles">;
8829
- workspaceContext: z$1.ZodObject<{
8830
- workspacePath: z$1.ZodString;
8831
- }, z$1.core.$strip>;
8832
- }, z$1.core.$strict>, z$1.ZodDiscriminatedUnion<[z$1.ZodObject<{
8833
- files: z$1.ZodArray<z$1.ZodObject<{
8834
- additions: z$1.ZodNumber;
8835
- binary: z$1.ZodBoolean;
8836
- deletions: z$1.ZodNumber;
8837
- origin: z$1.ZodEnum<{
8838
- tracked: "tracked";
8839
- untracked: "untracked";
8840
- }>;
8841
- path: z$1.ZodString;
8842
- previousPath: z$1.ZodNullable<z$1.ZodString>;
8843
- revision: z$1.ZodString;
8844
- statusLetter: z$1.ZodEnum<{
8845
- A: "A";
8846
- C: "C";
8847
- D: "D";
8848
- M: "M";
8849
- R: "R";
8850
- T: "T";
8851
- }>;
8852
- }, z$1.core.$strip>>;
8853
- mergeBaseRef: z$1.ZodNullable<z$1.ZodString>;
8854
- outcome: z$1.ZodLiteral<"available">;
8855
- shortstat: z$1.ZodString;
8856
- truncated: z$1.ZodBoolean;
8857
- }, z$1.core.$strict>, z$1.ZodObject<{
8858
- failure: z$1.ZodObject<{
8859
- code: z$1.ZodEnum<{
8860
- not_git_repo: "not_git_repo";
8861
- path_not_found: "path_not_found";
8862
- permission_denied: "permission_denied";
8863
- unknown: "unknown";
8864
- unknown_environment: "unknown_environment";
8865
- workspace_type_mismatch: "workspace_type_mismatch";
8866
- }>;
8867
- message: z$1.ZodString;
8868
- workspacePath: z$1.ZodString;
8869
- }, z$1.core.$strict>;
8870
- outcome: z$1.ZodLiteral<"unavailable">;
8871
- }, z$1.core.$strict>], "outcome">, "onlineRpc", true>;
8872
- "workspace.diffPatch": HostDaemonCommandDescriptor<"workspace.diffPatch", z$1.ZodObject<{
8873
- environmentId: z$1.ZodString;
8874
- ignoreWhitespace: z$1.ZodBoolean;
8875
- maxBytesPerFile: z$1.ZodNumber;
8876
- paths: z$1.ZodArray<z$1.ZodString>;
8877
- target: z$1.ZodDiscriminatedUnion<[z$1.ZodObject<{
8878
- type: z$1.ZodLiteral<"uncommitted">;
8879
- }, z$1.core.$strip>, z$1.ZodObject<{
8880
- mergeBaseBranch: z$1.ZodString;
8881
- type: z$1.ZodLiteral<"branch_committed">;
8882
- }, z$1.core.$strip>, z$1.ZodObject<{
8883
- mergeBaseBranch: z$1.ZodString;
8884
- type: z$1.ZodLiteral<"all">;
8885
- }, z$1.core.$strip>, z$1.ZodObject<{
8886
- sha: z$1.ZodString;
8887
- type: z$1.ZodLiteral<"commit">;
8888
- }, z$1.core.$strip>], "type">;
8889
- type: z$1.ZodLiteral<"workspace.diffPatch">;
8890
- workspaceContext: z$1.ZodObject<{
8891
- workspacePath: z$1.ZodString;
8892
- }, z$1.core.$strip>;
8893
- }, z$1.core.$strict>, z$1.ZodDiscriminatedUnion<[z$1.ZodObject<{
8894
- outcome: z$1.ZodLiteral<"available">;
8895
- patches: z$1.ZodArray<z$1.ZodObject<{
8896
- patch: z$1.ZodString;
8897
- path: z$1.ZodString;
8898
- truncated: z$1.ZodBoolean;
8899
- }, z$1.core.$strict>>;
8900
- }, z$1.core.$strict>, z$1.ZodObject<{
8901
- failure: z$1.ZodObject<{
8902
- code: z$1.ZodEnum<{
8903
- not_git_repo: "not_git_repo";
8904
- path_not_found: "path_not_found";
8905
- permission_denied: "permission_denied";
8906
- unknown: "unknown";
8907
- unknown_environment: "unknown_environment";
8908
- workspace_type_mismatch: "workspace_type_mismatch";
8909
- }>;
8910
- message: z$1.ZodString;
8911
- workspacePath: z$1.ZodString;
8912
- }, z$1.core.$strict>;
8913
- outcome: z$1.ZodLiteral<"unavailable">;
8914
- }, z$1.core.$strict>], "outcome">, "onlineRpc", true>;
8915
8335
  "server_move.inspect": HostDaemonCommandDescriptor<"server_move.inspect", z$1.ZodObject<{
8916
8336
  paths: z$1.ZodArray<z$1.ZodString>;
8917
8337
  port: z$1.ZodNumber;
@@ -9526,6 +8946,7 @@ declare const installedPluginSchema: z$1.ZodObject<{
9526
8946
  hash: z$1.ZodString;
9527
8947
  jsBytes: z$1.ZodNumber;
9528
8948
  jsUrl: z$1.ZodString;
8949
+ runtimeSlots: z$1.ZodArray<z$1.ZodString>;
9529
8950
  sdkMajor: z$1.ZodNumber;
9530
8951
  sdkVersion: z$1.ZodString;
9531
8952
  }, z$1.core.$strip>>;
@@ -9646,6 +9067,7 @@ declare const pluginListResponseSchema: z$1.ZodObject<{
9646
9067
  hash: z$1.ZodString;
9647
9068
  jsBytes: z$1.ZodNumber;
9648
9069
  jsUrl: z$1.ZodString;
9070
+ runtimeSlots: z$1.ZodArray<z$1.ZodString>;
9649
9071
  sdkMajor: z$1.ZodNumber;
9650
9072
  sdkVersion: z$1.ZodString;
9651
9073
  }, z$1.core.$strip>>;
@@ -9832,6 +9254,7 @@ declare const pluginInstallJobSchema: z$1.ZodDiscriminatedUnion<[z$1.ZodObject<{
9832
9254
  hash: z$1.ZodString;
9833
9255
  jsBytes: z$1.ZodNumber;
9834
9256
  jsUrl: z$1.ZodString;
9257
+ runtimeSlots: z$1.ZodArray<z$1.ZodString>;
9835
9258
  sdkMajor: z$1.ZodNumber;
9836
9259
  sdkVersion: z$1.ZodString;
9837
9260
  }, z$1.core.$strip>>;
@@ -10015,6 +9438,7 @@ declare const pluginReloadResponseSchema: z$1.ZodObject<{
10015
9438
  hash: z$1.ZodString;
10016
9439
  jsBytes: z$1.ZodNumber;
10017
9440
  jsUrl: z$1.ZodString;
9441
+ runtimeSlots: z$1.ZodArray<z$1.ZodString>;
10018
9442
  sdkMajor: z$1.ZodNumber;
10019
9443
  sdkVersion: z$1.ZodString;
10020
9444
  }, z$1.core.$strip>>;
@@ -10885,7 +10309,6 @@ declare const systemConfigResponseSchema: z$1.ZodObject<{
10885
10309
  "browser.reload": "browser.reload";
10886
10310
  "composer.focus": "composer.focus";
10887
10311
  "dataDirectory.open": "dataDirectory.open";
10888
- "diff.toggle": "diff.toggle";
10889
10312
  "file.quickOpen": "file.quickOpen";
10890
10313
  "history.back": "history.back";
10891
10314
  "history.forward": "history.forward";
@@ -10950,8 +10373,10 @@ declare const systemConfigResponseSchema: z$1.ZodObject<{
10950
10373
  "thread.jump.7": "thread.jump.7";
10951
10374
  "thread.jump.8": "thread.jump.8";
10952
10375
  "thread.jump.9": "thread.jump.9";
10376
+ "thread.markRead": "thread.markRead";
10953
10377
  "thread.new": "thread.new";
10954
10378
  "thread.next": "thread.next";
10379
+ "thread.pin": "thread.pin";
10955
10380
  "thread.previous": "thread.previous";
10956
10381
  "thread.rename": "thread.rename";
10957
10382
  "thread.search": "thread.search";
@@ -11003,12 +10428,15 @@ declare const systemConfigResponseSchema: z$1.ZodObject<{
11003
10428
  }, z$1.core.$strict>;
11004
10429
  }, z$1.core.$strict>>;
11005
10430
  experiments: z$1.ZodRecord<z$1.ZodEnum<{
10431
+ applicationLinks: "applicationLinks";
11006
10432
  changelogPreview: "changelogPreview";
11007
10433
  compactExpiredCache: "compactExpiredCache";
11008
10434
  performanceDiagnostics: "performanceDiagnostics";
11009
10435
  serverMove: "serverMove";
11010
10436
  sidebarMultiSelect: "sidebarMultiSelect";
11011
10437
  timelinePush: "timelinePush";
10438
+ unreadDividerAtAnswer: "unreadDividerAtAnswer";
10439
+ websocketCompression: "websocketCompression";
11012
10440
  }>, z$1.ZodBoolean>;
11013
10441
  featureFlags: z$1.ZodObject<{
11014
10442
  initiatorTelemetry: z$1.ZodDefault<z$1.ZodBoolean>;
@@ -11051,7 +10479,6 @@ declare const systemConfigResponseSchema: z$1.ZodObject<{
11051
10479
  "browser.reload": "browser.reload";
11052
10480
  "composer.focus": "composer.focus";
11053
10481
  "dataDirectory.open": "dataDirectory.open";
11054
- "diff.toggle": "diff.toggle";
11055
10482
  "file.quickOpen": "file.quickOpen";
11056
10483
  "history.back": "history.back";
11057
10484
  "history.forward": "history.forward";
@@ -11116,8 +10543,10 @@ declare const systemConfigResponseSchema: z$1.ZodObject<{
11116
10543
  "thread.jump.7": "thread.jump.7";
11117
10544
  "thread.jump.8": "thread.jump.8";
11118
10545
  "thread.jump.9": "thread.jump.9";
10546
+ "thread.markRead": "thread.markRead";
11119
10547
  "thread.new": "thread.new";
11120
10548
  "thread.next": "thread.next";
10549
+ "thread.pin": "thread.pin";
11121
10550
  "thread.previous": "thread.previous";
11122
10551
  "thread.rename": "thread.rename";
11123
10552
  "thread.search": "thread.search";
@@ -11148,7 +10577,6 @@ declare const systemConfigResponseSchema: z$1.ZodObject<{
11148
10577
  "browser.reload": "browser.reload";
11149
10578
  "composer.focus": "composer.focus";
11150
10579
  "dataDirectory.open": "dataDirectory.open";
11151
- "diff.toggle": "diff.toggle";
11152
10580
  "file.quickOpen": "file.quickOpen";
11153
10581
  "history.back": "history.back";
11154
10582
  "history.forward": "history.forward";
@@ -11213,8 +10641,10 @@ declare const systemConfigResponseSchema: z$1.ZodObject<{
11213
10641
  "thread.jump.7": "thread.jump.7";
11214
10642
  "thread.jump.8": "thread.jump.8";
11215
10643
  "thread.jump.9": "thread.jump.9";
10644
+ "thread.markRead": "thread.markRead";
11216
10645
  "thread.new": "thread.new";
11217
10646
  "thread.next": "thread.next";
10647
+ "thread.pin": "thread.pin";
11218
10648
  "thread.previous": "thread.previous";
11219
10649
  "thread.rename": "thread.rename";
11220
10650
  "thread.search": "thread.search";
@@ -14688,10 +14118,22 @@ declare const threadDescendantsListResponseSchema: z$1.ZodObject<{
14688
14118
  }, z$1.core.$strict>>;
14689
14119
  }, z$1.core.$strict>;
14690
14120
  type ThreadDescendantsListResponse = z$1.infer<typeof threadDescendantsListResponseSchema>;
14691
- declare const threadWithIncludesResponseSchema: z$1.ZodObject<{
14692
- activeBackgroundAgentCount: z$1.ZodNumber;
14693
- archivedAt: z$1.ZodNullable<z$1.ZodNumber>;
14694
- canEditMessages: z$1.ZodBoolean;
14121
+ declare const threadCascadeActionSchema: z$1.ZodEnum<{
14122
+ archive: "archive";
14123
+ delete: "delete";
14124
+ }>;
14125
+ type ThreadCascadeAction = z$1.infer<typeof threadCascadeActionSchema>;
14126
+ declare const threadCascadeListResponseSchema: z$1.ZodObject<{
14127
+ threads: z$1.ZodArray<z$1.ZodObject<{
14128
+ cascadeThreadIds: z$1.ZodArray<z$1.ZodString>;
14129
+ threadId: z$1.ZodString;
14130
+ }, z$1.core.$strict>>;
14131
+ }, z$1.core.$strict>;
14132
+ type ThreadCascadeListResponse = z$1.infer<typeof threadCascadeListResponseSchema>;
14133
+ declare const threadWithIncludesResponseSchema: z$1.ZodObject<{
14134
+ activeBackgroundAgentCount: z$1.ZodNumber;
14135
+ archivedAt: z$1.ZodNullable<z$1.ZodNumber>;
14136
+ canEditMessages: z$1.ZodBoolean;
14695
14137
  canRestoreEnvironment: z$1.ZodBoolean;
14696
14138
  canSpawnChild: z$1.ZodBoolean;
14697
14139
  createdAt: z$1.ZodNumber;
@@ -15427,7 +14869,7 @@ declare const threadSearchQuerySchema: z$1.ZodObject<{
15427
14869
  }, z$1.core.$strip>;
15428
14870
  type ThreadSearchQuery = z$1.infer<typeof threadSearchQuerySchema>;
15429
14871
  declare const threadTimelineQuerySchema: z$1.ZodObject<{
15430
- afterSequence: z$1.ZodOptional<z$1.ZodString>;
14872
+ afterTag: z$1.ZodOptional<z$1.ZodString>;
15431
14873
  beforeAnchorId: z$1.ZodOptional<z$1.ZodString>;
15432
14874
  beforeAnchorSeq: z$1.ZodOptional<z$1.ZodString>;
15433
14875
  deferContent: z$1.ZodOptional<z$1.ZodEnum<{
@@ -15969,94 +15411,784 @@ declare const threadMessageResponseSchema: z$1.ZodObject<{
15969
15411
  }>;
15970
15412
  }, z$1.core.$strip>>;
15971
15413
  status: z$1.ZodEnum<{
15972
- completed: "completed";
15973
- failed: "failed";
15974
- interrupted: "interrupted";
15414
+ completed: "completed";
15415
+ failed: "failed";
15416
+ interrupted: "interrupted";
15417
+ }>;
15418
+ threadId: z$1.ZodString;
15419
+ }, z$1.core.$strip>>>;
15420
+ }, z$1.core.$strip>, z$1.ZodObject<{
15421
+ kind: z$1.ZodLiteral<"tool-call">;
15422
+ suppress: z$1.ZodBoolean;
15423
+ toolName: z$1.ZodString;
15424
+ }, z$1.core.$strip>, z$1.ZodObject<{
15425
+ kind: z$1.ZodLiteral<"directory">;
15426
+ path: z$1.ZodString;
15427
+ }, z$1.core.$strip>], "kind">>;
15428
+ text: z$1.ZodString;
15429
+ threadId: z$1.ZodString;
15430
+ turnId: z$1.ZodNullable<z$1.ZodString>;
15431
+ turnRequest: z$1.ZodObject<{
15432
+ isGrouped: z$1.ZodBoolean;
15433
+ kind: z$1.ZodEnum<{
15434
+ message: "message";
15435
+ steer: "steer";
15436
+ }>;
15437
+ status: z$1.ZodEnum<{
15438
+ accepted: "accepted";
15439
+ pending: "pending";
15440
+ rejected: "rejected";
15441
+ }>;
15442
+ }, z$1.core.$strip>;
15443
+ }, z$1.core.$strip>, z$1.ZodObject<{
15444
+ attachments: z$1.ZodNullable<z$1.ZodObject<{
15445
+ imageUrls: z$1.ZodArray<z$1.ZodString>;
15446
+ localFileDetails: z$1.ZodArray<z$1.ZodObject<{
15447
+ name: z$1.ZodString;
15448
+ path: z$1.ZodString;
15449
+ sizeBytes: z$1.ZodNullable<z$1.ZodNumber>;
15450
+ }, z$1.core.$strip>>;
15451
+ localFilePaths: z$1.ZodArray<z$1.ZodString>;
15452
+ localFiles: z$1.ZodNumber;
15453
+ localImagePaths: z$1.ZodArray<z$1.ZodString>;
15454
+ localImages: z$1.ZodNumber;
15455
+ webImages: z$1.ZodNumber;
15456
+ }, z$1.core.$strip>>;
15457
+ createdAt: z$1.ZodNumber;
15458
+ id: z$1.ZodString;
15459
+ kind: z$1.ZodLiteral<"conversation">;
15460
+ messageSeq: z$1.ZodNumber;
15461
+ role: z$1.ZodLiteral<"assistant">;
15462
+ sourceSeqEnd: z$1.ZodNumber;
15463
+ sourceSeqStart: z$1.ZodNumber;
15464
+ startedAt: z$1.ZodNumber;
15465
+ text: z$1.ZodString;
15466
+ threadId: z$1.ZodString;
15467
+ turnId: z$1.ZodNullable<z$1.ZodString>;
15468
+ turnRequest: z$1.ZodNull;
15469
+ }, z$1.core.$strip>], "role">;
15470
+ }, z$1.core.$strip>;
15471
+ type ThreadMessageResponse = z$1.infer<typeof threadMessageResponseSchema>;
15472
+ declare const threadStorageFilesQuerySchema: z$1.ZodObject<{
15473
+ limit: z$1.ZodOptional<z$1.ZodString>;
15474
+ query: z$1.ZodOptional<z$1.ZodString>;
15475
+ }, z$1.core.$strip>;
15476
+ type ThreadStorageFilesQuery = z$1.infer<typeof threadStorageFilesQuerySchema>;
15477
+ declare const threadStoragePathsQuerySchema: z$1.ZodObject<{
15478
+ includeDirectories: z$1.ZodEnum<{
15479
+ false: "false";
15480
+ true: "true";
15481
+ }>;
15482
+ includeFiles: z$1.ZodEnum<{
15483
+ false: "false";
15484
+ true: "true";
15485
+ }>;
15486
+ limit: z$1.ZodOptional<z$1.ZodString>;
15487
+ query: z$1.ZodOptional<z$1.ZodString>;
15488
+ }, z$1.core.$strip>;
15489
+ type ThreadStoragePathsQuery = z$1.infer<typeof threadStoragePathsQuerySchema>;
15490
+ declare const threadStorageLocationResponseSchema: z$1.ZodObject<{
15491
+ hostId: z$1.ZodString;
15492
+ storageRootPath: z$1.ZodString;
15493
+ }, z$1.core.$strict>;
15494
+ type ThreadStorageLocationResponse = z$1.infer<typeof threadStorageLocationResponseSchema>;
15495
+ declare const timelineTurnSummaryDetailsResponseSchema: z$1.ZodObject<{
15496
+ historySnapshot: z$1.ZodOptional<z$1.ZodString>;
15497
+ olderCursor: z$1.ZodOptional<z$1.ZodNullable<z$1.ZodString>>;
15498
+ rows: z$1.ZodArray<z$1.ZodType<TimelineRow, unknown, z$1.core.$ZodTypeInternals<TimelineRow, unknown>>>;
15499
+ }, z$1.core.$strip>;
15500
+ type TimelineTurnSummaryDetailsResponse = z$1.infer<typeof timelineTurnSummaryDetailsResponseSchema>;
15501
+ declare const threadTimelineResponseSchema: z$1.ZodObject<{
15502
+ activeBackgroundCommands: z$1.ZodArray<z$1.ZodObject<{
15503
+ completedAt: z$1.ZodNullable<z$1.ZodNumber>;
15504
+ createdAt: z$1.ZodNumber;
15505
+ description: z$1.ZodString;
15506
+ error: z$1.ZodNullable<z$1.ZodString>;
15507
+ id: z$1.ZodString;
15508
+ itemId: z$1.ZodString;
15509
+ kind: z$1.ZodLiteral<"work">;
15510
+ model: z$1.ZodNullable<z$1.ZodString>;
15511
+ presentation: z$1.ZodOptional<z$1.ZodObject<{
15512
+ badge: z$1.ZodOptional<z$1.ZodObject<{
15513
+ glyph: z$1.ZodString;
15514
+ hint: z$1.ZodString;
15515
+ label: z$1.ZodString;
15516
+ tone: z$1.ZodEnum<{
15517
+ destructive: "destructive";
15518
+ neutral: "neutral";
15519
+ }>;
15520
+ }, z$1.core.$strip>>;
15521
+ detail: z$1.ZodOptional<z$1.ZodString>;
15522
+ icon: z$1.ZodObject<{
15523
+ glyph: z$1.ZodString;
15524
+ }, z$1.core.$strip>;
15525
+ label: z$1.ZodObject<{
15526
+ completed: z$1.ZodString;
15527
+ pending: z$1.ZodString;
15528
+ }, z$1.core.$strip>;
15529
+ suppress: z$1.ZodOptional<z$1.ZodBoolean>;
15530
+ tint: z$1.ZodOptional<z$1.ZodObject<{
15531
+ dark: z$1.ZodString;
15532
+ light: z$1.ZodString;
15533
+ }, z$1.core.$strip>>;
15534
+ title: z$1.ZodOptional<z$1.ZodString>;
15535
+ }, z$1.core.$strip>>;
15536
+ sourceSeqEnd: z$1.ZodNumber;
15537
+ sourceSeqStart: z$1.ZodNumber;
15538
+ startedAt: z$1.ZodNumber;
15539
+ status: z$1.ZodEnum<{
15540
+ completed: "completed";
15541
+ error: "error";
15542
+ interrupted: "interrupted";
15543
+ pending: "pending";
15544
+ }>;
15545
+ summary: z$1.ZodNullable<z$1.ZodString>;
15546
+ taskStatus: z$1.ZodEnum<{
15547
+ completed: "completed";
15548
+ failed: "failed";
15549
+ killed: "killed";
15550
+ paused: "paused";
15551
+ pending: "pending";
15552
+ running: "running";
15553
+ stopped: "stopped";
15554
+ }>;
15555
+ taskType: z$1.ZodString;
15556
+ threadId: z$1.ZodString;
15557
+ turnId: z$1.ZodNullable<z$1.ZodString>;
15558
+ usage: z$1.ZodNullable<z$1.ZodObject<{
15559
+ durationMs: z$1.ZodNumber;
15560
+ toolUses: z$1.ZodNumber;
15561
+ totalTokens: z$1.ZodNumber;
15562
+ }, z$1.core.$strip>>;
15563
+ workKind: z$1.ZodLiteral<"workflow">;
15564
+ workflow: z$1.ZodNullable<z$1.ZodObject<{
15565
+ agents: z$1.ZodArray<z$1.ZodObject<{
15566
+ agentType: z$1.ZodOptional<z$1.ZodString>;
15567
+ attempt: z$1.ZodNumber;
15568
+ cached: z$1.ZodBoolean;
15569
+ durationMs: z$1.ZodOptional<z$1.ZodNumber>;
15570
+ error: z$1.ZodOptional<z$1.ZodString>;
15571
+ index: z$1.ZodNumber;
15572
+ isolation: z$1.ZodOptional<z$1.ZodString>;
15573
+ label: z$1.ZodString;
15574
+ lastProgressAt: z$1.ZodNumber;
15575
+ lastToolName: z$1.ZodOptional<z$1.ZodString>;
15576
+ lastToolSummary: z$1.ZodOptional<z$1.ZodString>;
15577
+ model: z$1.ZodString;
15578
+ phaseIndex: z$1.ZodOptional<z$1.ZodNumber>;
15579
+ phaseTitle: z$1.ZodOptional<z$1.ZodString>;
15580
+ promptPreview: z$1.ZodOptional<z$1.ZodString>;
15581
+ queuedAt: z$1.ZodOptional<z$1.ZodNumber>;
15582
+ resultPreview: z$1.ZodOptional<z$1.ZodString>;
15583
+ startedAt: z$1.ZodOptional<z$1.ZodNumber>;
15584
+ state: z$1.ZodEnum<{
15585
+ done: "done";
15586
+ failed: "failed";
15587
+ queued: "queued";
15588
+ running: "running";
15589
+ skipped: "skipped";
15590
+ }>;
15591
+ tokens: z$1.ZodOptional<z$1.ZodNumber>;
15592
+ toolCalls: z$1.ZodOptional<z$1.ZodNumber>;
15593
+ }, z$1.core.$strip>>;
15594
+ phases: z$1.ZodArray<z$1.ZodObject<{
15595
+ index: z$1.ZodNumber;
15596
+ kind: z$1.ZodOptional<z$1.ZodString>;
15597
+ title: z$1.ZodString;
15598
+ }, z$1.core.$strip>>;
15599
+ }, z$1.core.$strip>>;
15600
+ workflowName: z$1.ZodNullable<z$1.ZodString>;
15601
+ }, z$1.core.$strip>>;
15602
+ activePromptMode: z$1.ZodNullable<z$1.ZodObject<{
15603
+ mode: z$1.ZodLiteral<"plan">;
15604
+ prompt: z$1.ZodString;
15605
+ providerId: z$1.ZodString;
15606
+ }, z$1.core.$strict>>;
15607
+ activeThinking: z$1.ZodNullable<z$1.ZodObject<{
15608
+ id: z$1.ZodString;
15609
+ startedAt: z$1.ZodNumber;
15610
+ text: z$1.ZodString;
15611
+ updatedAt: z$1.ZodNumber;
15612
+ }, z$1.core.$strip>>;
15613
+ activeWorkflows: z$1.ZodArray<z$1.ZodObject<{
15614
+ completedAt: z$1.ZodNullable<z$1.ZodNumber>;
15615
+ createdAt: z$1.ZodNumber;
15616
+ description: z$1.ZodString;
15617
+ error: z$1.ZodNullable<z$1.ZodString>;
15618
+ id: z$1.ZodString;
15619
+ itemId: z$1.ZodString;
15620
+ kind: z$1.ZodLiteral<"work">;
15621
+ model: z$1.ZodNullable<z$1.ZodString>;
15622
+ presentation: z$1.ZodOptional<z$1.ZodObject<{
15623
+ badge: z$1.ZodOptional<z$1.ZodObject<{
15624
+ glyph: z$1.ZodString;
15625
+ hint: z$1.ZodString;
15626
+ label: z$1.ZodString;
15627
+ tone: z$1.ZodEnum<{
15628
+ destructive: "destructive";
15629
+ neutral: "neutral";
15630
+ }>;
15631
+ }, z$1.core.$strip>>;
15632
+ detail: z$1.ZodOptional<z$1.ZodString>;
15633
+ icon: z$1.ZodObject<{
15634
+ glyph: z$1.ZodString;
15635
+ }, z$1.core.$strip>;
15636
+ label: z$1.ZodObject<{
15637
+ completed: z$1.ZodString;
15638
+ pending: z$1.ZodString;
15639
+ }, z$1.core.$strip>;
15640
+ suppress: z$1.ZodOptional<z$1.ZodBoolean>;
15641
+ tint: z$1.ZodOptional<z$1.ZodObject<{
15642
+ dark: z$1.ZodString;
15643
+ light: z$1.ZodString;
15644
+ }, z$1.core.$strip>>;
15645
+ title: z$1.ZodOptional<z$1.ZodString>;
15646
+ }, z$1.core.$strip>>;
15647
+ sourceSeqEnd: z$1.ZodNumber;
15648
+ sourceSeqStart: z$1.ZodNumber;
15649
+ startedAt: z$1.ZodNumber;
15650
+ status: z$1.ZodEnum<{
15651
+ completed: "completed";
15652
+ error: "error";
15653
+ interrupted: "interrupted";
15654
+ pending: "pending";
15655
+ }>;
15656
+ summary: z$1.ZodNullable<z$1.ZodString>;
15657
+ taskStatus: z$1.ZodEnum<{
15658
+ completed: "completed";
15659
+ failed: "failed";
15660
+ killed: "killed";
15661
+ paused: "paused";
15662
+ pending: "pending";
15663
+ running: "running";
15664
+ stopped: "stopped";
15665
+ }>;
15666
+ taskType: z$1.ZodString;
15667
+ threadId: z$1.ZodString;
15668
+ turnId: z$1.ZodNullable<z$1.ZodString>;
15669
+ usage: z$1.ZodNullable<z$1.ZodObject<{
15670
+ durationMs: z$1.ZodNumber;
15671
+ toolUses: z$1.ZodNumber;
15672
+ totalTokens: z$1.ZodNumber;
15673
+ }, z$1.core.$strip>>;
15674
+ workKind: z$1.ZodLiteral<"workflow">;
15675
+ workflow: z$1.ZodNullable<z$1.ZodObject<{
15676
+ agents: z$1.ZodArray<z$1.ZodObject<{
15677
+ agentType: z$1.ZodOptional<z$1.ZodString>;
15678
+ attempt: z$1.ZodNumber;
15679
+ cached: z$1.ZodBoolean;
15680
+ durationMs: z$1.ZodOptional<z$1.ZodNumber>;
15681
+ error: z$1.ZodOptional<z$1.ZodString>;
15682
+ index: z$1.ZodNumber;
15683
+ isolation: z$1.ZodOptional<z$1.ZodString>;
15684
+ label: z$1.ZodString;
15685
+ lastProgressAt: z$1.ZodNumber;
15686
+ lastToolName: z$1.ZodOptional<z$1.ZodString>;
15687
+ lastToolSummary: z$1.ZodOptional<z$1.ZodString>;
15688
+ model: z$1.ZodString;
15689
+ phaseIndex: z$1.ZodOptional<z$1.ZodNumber>;
15690
+ phaseTitle: z$1.ZodOptional<z$1.ZodString>;
15691
+ promptPreview: z$1.ZodOptional<z$1.ZodString>;
15692
+ queuedAt: z$1.ZodOptional<z$1.ZodNumber>;
15693
+ resultPreview: z$1.ZodOptional<z$1.ZodString>;
15694
+ startedAt: z$1.ZodOptional<z$1.ZodNumber>;
15695
+ state: z$1.ZodEnum<{
15696
+ done: "done";
15697
+ failed: "failed";
15698
+ queued: "queued";
15699
+ running: "running";
15700
+ skipped: "skipped";
15701
+ }>;
15702
+ tokens: z$1.ZodOptional<z$1.ZodNumber>;
15703
+ toolCalls: z$1.ZodOptional<z$1.ZodNumber>;
15704
+ }, z$1.core.$strip>>;
15705
+ phases: z$1.ZodArray<z$1.ZodObject<{
15706
+ index: z$1.ZodNumber;
15707
+ kind: z$1.ZodOptional<z$1.ZodString>;
15708
+ title: z$1.ZodString;
15709
+ }, z$1.core.$strip>>;
15710
+ }, z$1.core.$strip>>;
15711
+ workflowName: z$1.ZodNullable<z$1.ZodString>;
15712
+ }, z$1.core.$strip>>;
15713
+ completedTurnDisplay: z$1.ZodEnum<{
15714
+ collapse: "collapse";
15715
+ flat: "flat";
15716
+ }>;
15717
+ contextBoundarySeq: z$1.ZodNullable<z$1.ZodNumber>;
15718
+ contextWindowUsage: z$1.ZodOptional<z$1.ZodObject<{
15719
+ compactionOfferAt: z$1.ZodOptional<z$1.ZodISODateTime>;
15720
+ cost: z$1.ZodOptional<z$1.ZodObject<{
15721
+ amount: z$1.ZodNumber;
15722
+ currency: z$1.ZodString;
15723
+ }, z$1.core.$strip>>;
15724
+ estimated: z$1.ZodBoolean;
15725
+ modelContextWindow: z$1.ZodNumber;
15726
+ snapshot: z$1.ZodOptional<z$1.ZodObject<{
15727
+ autoCompactAtTokens: z$1.ZodNullable<z$1.ZodNumber>;
15728
+ capturedAt: z$1.ZodISODateTime;
15729
+ categories: z$1.ZodArray<z$1.ZodObject<{
15730
+ entries: z$1.ZodArray<z$1.ZodObject<{
15731
+ id: z$1.ZodString;
15732
+ label: z$1.ZodString;
15733
+ tokens: z$1.ZodNumber;
15734
+ }, z$1.core.$strip>>;
15735
+ id: z$1.ZodString;
15736
+ kind: z$1.ZodEnum<{
15737
+ deferred: "deferred";
15738
+ free: "free";
15739
+ reserved: "reserved";
15740
+ used: "used";
15741
+ }>;
15742
+ label: z$1.ZodString;
15743
+ tokens: z$1.ZodNumber;
15744
+ }, z$1.core.$strip>>;
15745
+ contextWindowTokens: z$1.ZodNumber;
15746
+ estimated: z$1.ZodBoolean;
15747
+ model: z$1.ZodString;
15748
+ providerSessionId: z$1.ZodString;
15749
+ providerTurnId: z$1.ZodNullable<z$1.ZodString>;
15750
+ usedTokens: z$1.ZodNumber;
15751
+ }, z$1.core.$strip>>;
15752
+ usedTokens: z$1.ZodNumber;
15753
+ }, z$1.core.$strip>>;
15754
+ goal: z$1.ZodNullable<z$1.ZodObject<{
15755
+ objective: z$1.ZodString;
15756
+ sourceSeq: z$1.ZodNumber;
15757
+ status: z$1.ZodEnum<{
15758
+ active: "active";
15759
+ budgetLimited: "budgetLimited";
15760
+ complete: "complete";
15761
+ paused: "paused";
15762
+ }>;
15763
+ timeUsedSeconds: z$1.ZodNumber;
15764
+ tokenBudget: z$1.ZodNullable<z$1.ZodNumber>;
15765
+ tokensUsed: z$1.ZodNumber;
15766
+ updatedAt: z$1.ZodNumber;
15767
+ }, z$1.core.$strip>>;
15768
+ maxSeq: z$1.ZodNumber;
15769
+ modelFallback: z$1.ZodNullable<z$1.ZodObject<{
15770
+ detectedAt: z$1.ZodNumber;
15771
+ fallbackModel: z$1.ZodString;
15772
+ message: z$1.ZodString;
15773
+ originalModel: z$1.ZodString;
15774
+ reason: z$1.ZodEnum<{
15775
+ provider: "provider";
15776
+ refusal: "refusal";
15777
+ }>;
15778
+ sourceSeq: z$1.ZodNumber;
15779
+ }, z$1.core.$strip>>;
15780
+ pendingTodos: z$1.ZodNullable<z$1.ZodObject<{
15781
+ items: z$1.ZodArray<z$1.ZodObject<{
15782
+ id: z$1.ZodString;
15783
+ status: z$1.ZodEnum<{
15784
+ completed: "completed";
15785
+ in_progress: "in_progress";
15786
+ pending: "pending";
15787
+ }>;
15788
+ text: z$1.ZodString;
15789
+ }, z$1.core.$strip>>;
15790
+ sourceSeq: z$1.ZodNumber;
15791
+ updatedAt: z$1.ZodNumber;
15792
+ }, z$1.core.$strip>>;
15793
+ providerCommands: z$1.ZodNullable<z$1.ZodArray<z$1.ZodObject<{
15794
+ argumentHint: z$1.ZodNullable<z$1.ZodString>;
15795
+ description: z$1.ZodNullable<z$1.ZodString>;
15796
+ name: z$1.ZodString;
15797
+ origin: z$1.ZodEnum<{
15798
+ builtin: "builtin";
15799
+ project: "project";
15800
+ user: "user";
15801
+ }>;
15802
+ source: z$1.ZodEnum<{
15803
+ command: "command";
15804
+ skill: "skill";
15805
+ }>;
15806
+ }, z$1.core.$strip>>>;
15807
+ rows: z$1.ZodArray<z$1.ZodType<TimelineRow, unknown, z$1.core.$ZodTypeInternals<TimelineRow, unknown>>>;
15808
+ sessionOptions: z$1.ZodNullable<z$1.ZodArray<z$1.ZodDiscriminatedUnion<[z$1.ZodObject<{
15809
+ category: z$1.ZodNullable<z$1.ZodString>;
15810
+ description: z$1.ZodNullable<z$1.ZodString>;
15811
+ id: z$1.ZodString;
15812
+ label: z$1.ZodString;
15813
+ pendingValue: z$1.ZodNullable<z$1.ZodString>;
15814
+ type: z$1.ZodLiteral<"select">;
15815
+ value: z$1.ZodString;
15816
+ values: z$1.ZodArray<z$1.ZodObject<{
15817
+ description: z$1.ZodNullable<z$1.ZodString>;
15818
+ group: z$1.ZodNullable<z$1.ZodString>;
15819
+ id: z$1.ZodString;
15820
+ label: z$1.ZodString;
15821
+ }, z$1.core.$strip>>;
15822
+ }, z$1.core.$strip>, z$1.ZodObject<{
15823
+ category: z$1.ZodNullable<z$1.ZodString>;
15824
+ description: z$1.ZodNullable<z$1.ZodString>;
15825
+ id: z$1.ZodString;
15826
+ label: z$1.ZodString;
15827
+ pendingValue: z$1.ZodNullable<z$1.ZodBoolean>;
15828
+ type: z$1.ZodLiteral<"boolean">;
15829
+ value: z$1.ZodBoolean;
15830
+ }, z$1.core.$strip>], "type">>>;
15831
+ tag: z$1.ZodString;
15832
+ timelinePage: z$1.ZodObject<{
15833
+ historySnapshot: z$1.ZodString;
15834
+ olderCursor: z$1.ZodNullable<z$1.ZodObject<{
15835
+ anchorId: z$1.ZodString;
15836
+ anchorSeq: z$1.ZodNumber;
15837
+ }, z$1.core.$strict>>;
15838
+ olderRowUpdates: z$1.ZodOptional<z$1.ZodArray<z$1.ZodType<TimelineRow, unknown, z$1.core.$ZodTypeInternals<TimelineRow, unknown>>>>;
15839
+ olderRowsSourceSeqEnd: z$1.ZodNullable<z$1.ZodNumber>;
15840
+ returnedSegmentCount: z$1.ZodNumber;
15841
+ }, z$1.core.$strict>;
15842
+ }, z$1.core.$strip>;
15843
+ type ThreadTimelineResponse = z$1.infer<typeof threadTimelineResponseSchema>;
15844
+ declare const threadTimelineReadResponseSchema: z$1.ZodUnion<readonly [z$1.ZodObject<{
15845
+ delta: z$1.ZodObject<{
15846
+ afterTag: z$1.ZodString;
15847
+ fields: z$1.ZodObject<{
15848
+ activeBackgroundCommands: z$1.ZodOptional<z$1.ZodArray<z$1.ZodObject<{
15849
+ completedAt: z$1.ZodNullable<z$1.ZodNumber>;
15850
+ createdAt: z$1.ZodNumber;
15851
+ description: z$1.ZodString;
15852
+ error: z$1.ZodNullable<z$1.ZodString>;
15853
+ id: z$1.ZodString;
15854
+ itemId: z$1.ZodString;
15855
+ kind: z$1.ZodLiteral<"work">;
15856
+ model: z$1.ZodNullable<z$1.ZodString>;
15857
+ presentation: z$1.ZodOptional<z$1.ZodObject<{
15858
+ badge: z$1.ZodOptional<z$1.ZodObject<{
15859
+ glyph: z$1.ZodString;
15860
+ hint: z$1.ZodString;
15861
+ label: z$1.ZodString;
15862
+ tone: z$1.ZodEnum<{
15863
+ destructive: "destructive";
15864
+ neutral: "neutral";
15865
+ }>;
15866
+ }, z$1.core.$strip>>;
15867
+ detail: z$1.ZodOptional<z$1.ZodString>;
15868
+ icon: z$1.ZodObject<{
15869
+ glyph: z$1.ZodString;
15870
+ }, z$1.core.$strip>;
15871
+ label: z$1.ZodObject<{
15872
+ completed: z$1.ZodString;
15873
+ pending: z$1.ZodString;
15874
+ }, z$1.core.$strip>;
15875
+ suppress: z$1.ZodOptional<z$1.ZodBoolean>;
15876
+ tint: z$1.ZodOptional<z$1.ZodObject<{
15877
+ dark: z$1.ZodString;
15878
+ light: z$1.ZodString;
15879
+ }, z$1.core.$strip>>;
15880
+ title: z$1.ZodOptional<z$1.ZodString>;
15881
+ }, z$1.core.$strip>>;
15882
+ sourceSeqEnd: z$1.ZodNumber;
15883
+ sourceSeqStart: z$1.ZodNumber;
15884
+ startedAt: z$1.ZodNumber;
15885
+ status: z$1.ZodEnum<{
15886
+ completed: "completed";
15887
+ error: "error";
15888
+ interrupted: "interrupted";
15889
+ pending: "pending";
15890
+ }>;
15891
+ summary: z$1.ZodNullable<z$1.ZodString>;
15892
+ taskStatus: z$1.ZodEnum<{
15893
+ completed: "completed";
15894
+ failed: "failed";
15895
+ killed: "killed";
15896
+ paused: "paused";
15897
+ pending: "pending";
15898
+ running: "running";
15899
+ stopped: "stopped";
15900
+ }>;
15901
+ taskType: z$1.ZodString;
15902
+ threadId: z$1.ZodString;
15903
+ turnId: z$1.ZodNullable<z$1.ZodString>;
15904
+ usage: z$1.ZodNullable<z$1.ZodObject<{
15905
+ durationMs: z$1.ZodNumber;
15906
+ toolUses: z$1.ZodNumber;
15907
+ totalTokens: z$1.ZodNumber;
15908
+ }, z$1.core.$strip>>;
15909
+ workKind: z$1.ZodLiteral<"workflow">;
15910
+ workflow: z$1.ZodNullable<z$1.ZodObject<{
15911
+ agents: z$1.ZodArray<z$1.ZodObject<{
15912
+ agentType: z$1.ZodOptional<z$1.ZodString>;
15913
+ attempt: z$1.ZodNumber;
15914
+ cached: z$1.ZodBoolean;
15915
+ durationMs: z$1.ZodOptional<z$1.ZodNumber>;
15916
+ error: z$1.ZodOptional<z$1.ZodString>;
15917
+ index: z$1.ZodNumber;
15918
+ isolation: z$1.ZodOptional<z$1.ZodString>;
15919
+ label: z$1.ZodString;
15920
+ lastProgressAt: z$1.ZodNumber;
15921
+ lastToolName: z$1.ZodOptional<z$1.ZodString>;
15922
+ lastToolSummary: z$1.ZodOptional<z$1.ZodString>;
15923
+ model: z$1.ZodString;
15924
+ phaseIndex: z$1.ZodOptional<z$1.ZodNumber>;
15925
+ phaseTitle: z$1.ZodOptional<z$1.ZodString>;
15926
+ promptPreview: z$1.ZodOptional<z$1.ZodString>;
15927
+ queuedAt: z$1.ZodOptional<z$1.ZodNumber>;
15928
+ resultPreview: z$1.ZodOptional<z$1.ZodString>;
15929
+ startedAt: z$1.ZodOptional<z$1.ZodNumber>;
15930
+ state: z$1.ZodEnum<{
15931
+ done: "done";
15932
+ failed: "failed";
15933
+ queued: "queued";
15934
+ running: "running";
15935
+ skipped: "skipped";
15936
+ }>;
15937
+ tokens: z$1.ZodOptional<z$1.ZodNumber>;
15938
+ toolCalls: z$1.ZodOptional<z$1.ZodNumber>;
15939
+ }, z$1.core.$strip>>;
15940
+ phases: z$1.ZodArray<z$1.ZodObject<{
15941
+ index: z$1.ZodNumber;
15942
+ kind: z$1.ZodOptional<z$1.ZodString>;
15943
+ title: z$1.ZodString;
15944
+ }, z$1.core.$strip>>;
15945
+ }, z$1.core.$strip>>;
15946
+ workflowName: z$1.ZodNullable<z$1.ZodString>;
15947
+ }, z$1.core.$strip>>>;
15948
+ activePromptMode: z$1.ZodOptional<z$1.ZodNullable<z$1.ZodObject<{
15949
+ mode: z$1.ZodLiteral<"plan">;
15950
+ prompt: z$1.ZodString;
15951
+ providerId: z$1.ZodString;
15952
+ }, z$1.core.$strict>>>;
15953
+ activeThinking: z$1.ZodOptional<z$1.ZodNullable<z$1.ZodObject<{
15954
+ id: z$1.ZodString;
15955
+ startedAt: z$1.ZodNumber;
15956
+ text: z$1.ZodString;
15957
+ updatedAt: z$1.ZodNumber;
15958
+ }, z$1.core.$strip>>>;
15959
+ activeWorkflows: z$1.ZodOptional<z$1.ZodArray<z$1.ZodObject<{
15960
+ completedAt: z$1.ZodNullable<z$1.ZodNumber>;
15961
+ createdAt: z$1.ZodNumber;
15962
+ description: z$1.ZodString;
15963
+ error: z$1.ZodNullable<z$1.ZodString>;
15964
+ id: z$1.ZodString;
15965
+ itemId: z$1.ZodString;
15966
+ kind: z$1.ZodLiteral<"work">;
15967
+ model: z$1.ZodNullable<z$1.ZodString>;
15968
+ presentation: z$1.ZodOptional<z$1.ZodObject<{
15969
+ badge: z$1.ZodOptional<z$1.ZodObject<{
15970
+ glyph: z$1.ZodString;
15971
+ hint: z$1.ZodString;
15972
+ label: z$1.ZodString;
15973
+ tone: z$1.ZodEnum<{
15974
+ destructive: "destructive";
15975
+ neutral: "neutral";
15976
+ }>;
15977
+ }, z$1.core.$strip>>;
15978
+ detail: z$1.ZodOptional<z$1.ZodString>;
15979
+ icon: z$1.ZodObject<{
15980
+ glyph: z$1.ZodString;
15981
+ }, z$1.core.$strip>;
15982
+ label: z$1.ZodObject<{
15983
+ completed: z$1.ZodString;
15984
+ pending: z$1.ZodString;
15985
+ }, z$1.core.$strip>;
15986
+ suppress: z$1.ZodOptional<z$1.ZodBoolean>;
15987
+ tint: z$1.ZodOptional<z$1.ZodObject<{
15988
+ dark: z$1.ZodString;
15989
+ light: z$1.ZodString;
15990
+ }, z$1.core.$strip>>;
15991
+ title: z$1.ZodOptional<z$1.ZodString>;
15992
+ }, z$1.core.$strip>>;
15993
+ sourceSeqEnd: z$1.ZodNumber;
15994
+ sourceSeqStart: z$1.ZodNumber;
15995
+ startedAt: z$1.ZodNumber;
15996
+ status: z$1.ZodEnum<{
15997
+ completed: "completed";
15998
+ error: "error";
15999
+ interrupted: "interrupted";
16000
+ pending: "pending";
16001
+ }>;
16002
+ summary: z$1.ZodNullable<z$1.ZodString>;
16003
+ taskStatus: z$1.ZodEnum<{
16004
+ completed: "completed";
16005
+ failed: "failed";
16006
+ killed: "killed";
16007
+ paused: "paused";
16008
+ pending: "pending";
16009
+ running: "running";
16010
+ stopped: "stopped";
16011
+ }>;
16012
+ taskType: z$1.ZodString;
16013
+ threadId: z$1.ZodString;
16014
+ turnId: z$1.ZodNullable<z$1.ZodString>;
16015
+ usage: z$1.ZodNullable<z$1.ZodObject<{
16016
+ durationMs: z$1.ZodNumber;
16017
+ toolUses: z$1.ZodNumber;
16018
+ totalTokens: z$1.ZodNumber;
16019
+ }, z$1.core.$strip>>;
16020
+ workKind: z$1.ZodLiteral<"workflow">;
16021
+ workflow: z$1.ZodNullable<z$1.ZodObject<{
16022
+ agents: z$1.ZodArray<z$1.ZodObject<{
16023
+ agentType: z$1.ZodOptional<z$1.ZodString>;
16024
+ attempt: z$1.ZodNumber;
16025
+ cached: z$1.ZodBoolean;
16026
+ durationMs: z$1.ZodOptional<z$1.ZodNumber>;
16027
+ error: z$1.ZodOptional<z$1.ZodString>;
16028
+ index: z$1.ZodNumber;
16029
+ isolation: z$1.ZodOptional<z$1.ZodString>;
16030
+ label: z$1.ZodString;
16031
+ lastProgressAt: z$1.ZodNumber;
16032
+ lastToolName: z$1.ZodOptional<z$1.ZodString>;
16033
+ lastToolSummary: z$1.ZodOptional<z$1.ZodString>;
16034
+ model: z$1.ZodString;
16035
+ phaseIndex: z$1.ZodOptional<z$1.ZodNumber>;
16036
+ phaseTitle: z$1.ZodOptional<z$1.ZodString>;
16037
+ promptPreview: z$1.ZodOptional<z$1.ZodString>;
16038
+ queuedAt: z$1.ZodOptional<z$1.ZodNumber>;
16039
+ resultPreview: z$1.ZodOptional<z$1.ZodString>;
16040
+ startedAt: z$1.ZodOptional<z$1.ZodNumber>;
16041
+ state: z$1.ZodEnum<{
16042
+ done: "done";
16043
+ failed: "failed";
16044
+ queued: "queued";
16045
+ running: "running";
16046
+ skipped: "skipped";
16047
+ }>;
16048
+ tokens: z$1.ZodOptional<z$1.ZodNumber>;
16049
+ toolCalls: z$1.ZodOptional<z$1.ZodNumber>;
16050
+ }, z$1.core.$strip>>;
16051
+ phases: z$1.ZodArray<z$1.ZodObject<{
16052
+ index: z$1.ZodNumber;
16053
+ kind: z$1.ZodOptional<z$1.ZodString>;
16054
+ title: z$1.ZodString;
16055
+ }, z$1.core.$strip>>;
16056
+ }, z$1.core.$strip>>;
16057
+ workflowName: z$1.ZodNullable<z$1.ZodString>;
16058
+ }, z$1.core.$strip>>>;
16059
+ completedTurnDisplay: z$1.ZodOptional<z$1.ZodEnum<{
16060
+ collapse: "collapse";
16061
+ flat: "flat";
16062
+ }>>;
16063
+ contextBoundarySeq: z$1.ZodOptional<z$1.ZodNullable<z$1.ZodNumber>>;
16064
+ contextWindowUsage: z$1.ZodOptional<z$1.ZodNullable<z$1.ZodObject<{
16065
+ compactionOfferAt: z$1.ZodOptional<z$1.ZodISODateTime>;
16066
+ cost: z$1.ZodOptional<z$1.ZodObject<{
16067
+ amount: z$1.ZodNumber;
16068
+ currency: z$1.ZodString;
16069
+ }, z$1.core.$strip>>;
16070
+ estimated: z$1.ZodBoolean;
16071
+ modelContextWindow: z$1.ZodNumber;
16072
+ snapshot: z$1.ZodOptional<z$1.ZodObject<{
16073
+ autoCompactAtTokens: z$1.ZodNullable<z$1.ZodNumber>;
16074
+ capturedAt: z$1.ZodISODateTime;
16075
+ categories: z$1.ZodArray<z$1.ZodObject<{
16076
+ entries: z$1.ZodArray<z$1.ZodObject<{
16077
+ id: z$1.ZodString;
16078
+ label: z$1.ZodString;
16079
+ tokens: z$1.ZodNumber;
16080
+ }, z$1.core.$strip>>;
16081
+ id: z$1.ZodString;
16082
+ kind: z$1.ZodEnum<{
16083
+ deferred: "deferred";
16084
+ free: "free";
16085
+ reserved: "reserved";
16086
+ used: "used";
16087
+ }>;
16088
+ label: z$1.ZodString;
16089
+ tokens: z$1.ZodNumber;
16090
+ }, z$1.core.$strip>>;
16091
+ contextWindowTokens: z$1.ZodNumber;
16092
+ estimated: z$1.ZodBoolean;
16093
+ model: z$1.ZodString;
16094
+ providerSessionId: z$1.ZodString;
16095
+ providerTurnId: z$1.ZodNullable<z$1.ZodString>;
16096
+ usedTokens: z$1.ZodNumber;
16097
+ }, z$1.core.$strip>>;
16098
+ usedTokens: z$1.ZodNumber;
16099
+ }, z$1.core.$strip>>>;
16100
+ goal: z$1.ZodOptional<z$1.ZodNullable<z$1.ZodObject<{
16101
+ objective: z$1.ZodString;
16102
+ sourceSeq: z$1.ZodNumber;
16103
+ status: z$1.ZodEnum<{
16104
+ active: "active";
16105
+ budgetLimited: "budgetLimited";
16106
+ complete: "complete";
16107
+ paused: "paused";
15975
16108
  }>;
15976
- threadId: z$1.ZodString;
16109
+ timeUsedSeconds: z$1.ZodNumber;
16110
+ tokenBudget: z$1.ZodNullable<z$1.ZodNumber>;
16111
+ tokensUsed: z$1.ZodNumber;
16112
+ updatedAt: z$1.ZodNumber;
15977
16113
  }, z$1.core.$strip>>>;
15978
- }, z$1.core.$strip>, z$1.ZodObject<{
15979
- kind: z$1.ZodLiteral<"tool-call">;
15980
- suppress: z$1.ZodBoolean;
15981
- toolName: z$1.ZodString;
15982
- }, z$1.core.$strip>, z$1.ZodObject<{
15983
- kind: z$1.ZodLiteral<"directory">;
15984
- path: z$1.ZodString;
15985
- }, z$1.core.$strip>], "kind">>;
15986
- text: z$1.ZodString;
15987
- threadId: z$1.ZodString;
15988
- turnId: z$1.ZodNullable<z$1.ZodString>;
15989
- turnRequest: z$1.ZodObject<{
15990
- isGrouped: z$1.ZodBoolean;
15991
- kind: z$1.ZodEnum<{
15992
- message: "message";
15993
- steer: "steer";
15994
- }>;
15995
- status: z$1.ZodEnum<{
15996
- accepted: "accepted";
15997
- pending: "pending";
15998
- rejected: "rejected";
15999
- }>;
16000
- }, z$1.core.$strip>;
16001
- }, z$1.core.$strip>, z$1.ZodObject<{
16002
- attachments: z$1.ZodNullable<z$1.ZodObject<{
16003
- imageUrls: z$1.ZodArray<z$1.ZodString>;
16004
- localFileDetails: z$1.ZodArray<z$1.ZodObject<{
16114
+ modelFallback: z$1.ZodOptional<z$1.ZodNullable<z$1.ZodObject<{
16115
+ detectedAt: z$1.ZodNumber;
16116
+ fallbackModel: z$1.ZodString;
16117
+ message: z$1.ZodString;
16118
+ originalModel: z$1.ZodString;
16119
+ reason: z$1.ZodEnum<{
16120
+ provider: "provider";
16121
+ refusal: "refusal";
16122
+ }>;
16123
+ sourceSeq: z$1.ZodNumber;
16124
+ }, z$1.core.$strip>>>;
16125
+ pendingTodos: z$1.ZodOptional<z$1.ZodNullable<z$1.ZodObject<{
16126
+ items: z$1.ZodArray<z$1.ZodObject<{
16127
+ id: z$1.ZodString;
16128
+ status: z$1.ZodEnum<{
16129
+ completed: "completed";
16130
+ in_progress: "in_progress";
16131
+ pending: "pending";
16132
+ }>;
16133
+ text: z$1.ZodString;
16134
+ }, z$1.core.$strip>>;
16135
+ sourceSeq: z$1.ZodNumber;
16136
+ updatedAt: z$1.ZodNumber;
16137
+ }, z$1.core.$strip>>>;
16138
+ providerCommands: z$1.ZodOptional<z$1.ZodNullable<z$1.ZodArray<z$1.ZodObject<{
16139
+ argumentHint: z$1.ZodNullable<z$1.ZodString>;
16140
+ description: z$1.ZodNullable<z$1.ZodString>;
16005
16141
  name: z$1.ZodString;
16006
- path: z$1.ZodString;
16007
- sizeBytes: z$1.ZodNullable<z$1.ZodNumber>;
16008
- }, z$1.core.$strip>>;
16009
- localFilePaths: z$1.ZodArray<z$1.ZodString>;
16010
- localFiles: z$1.ZodNumber;
16011
- localImagePaths: z$1.ZodArray<z$1.ZodString>;
16012
- localImages: z$1.ZodNumber;
16013
- webImages: z$1.ZodNumber;
16014
- }, z$1.core.$strip>>;
16015
- createdAt: z$1.ZodNumber;
16016
- id: z$1.ZodString;
16017
- kind: z$1.ZodLiteral<"conversation">;
16018
- messageSeq: z$1.ZodNumber;
16019
- role: z$1.ZodLiteral<"assistant">;
16020
- sourceSeqEnd: z$1.ZodNumber;
16021
- sourceSeqStart: z$1.ZodNumber;
16022
- startedAt: z$1.ZodNumber;
16023
- text: z$1.ZodString;
16024
- threadId: z$1.ZodString;
16025
- turnId: z$1.ZodNullable<z$1.ZodString>;
16026
- turnRequest: z$1.ZodNull;
16027
- }, z$1.core.$strip>], "role">;
16028
- }, z$1.core.$strip>;
16029
- type ThreadMessageResponse = z$1.infer<typeof threadMessageResponseSchema>;
16030
- declare const threadStorageFilesQuerySchema: z$1.ZodObject<{
16031
- limit: z$1.ZodOptional<z$1.ZodString>;
16032
- query: z$1.ZodOptional<z$1.ZodString>;
16033
- }, z$1.core.$strip>;
16034
- type ThreadStorageFilesQuery = z$1.infer<typeof threadStorageFilesQuerySchema>;
16035
- declare const threadStoragePathsQuerySchema: z$1.ZodObject<{
16036
- includeDirectories: z$1.ZodEnum<{
16037
- false: "false";
16038
- true: "true";
16039
- }>;
16040
- includeFiles: z$1.ZodEnum<{
16041
- false: "false";
16042
- true: "true";
16043
- }>;
16044
- limit: z$1.ZodOptional<z$1.ZodString>;
16045
- query: z$1.ZodOptional<z$1.ZodString>;
16046
- }, z$1.core.$strip>;
16047
- type ThreadStoragePathsQuery = z$1.infer<typeof threadStoragePathsQuerySchema>;
16048
- declare const threadStorageLocationResponseSchema: z$1.ZodObject<{
16049
- hostId: z$1.ZodString;
16050
- storageRootPath: z$1.ZodString;
16051
- }, z$1.core.$strict>;
16052
- type ThreadStorageLocationResponse = z$1.infer<typeof threadStorageLocationResponseSchema>;
16053
- declare const timelineTurnSummaryDetailsResponseSchema: z$1.ZodObject<{
16054
- historySnapshot: z$1.ZodOptional<z$1.ZodString>;
16055
- olderCursor: z$1.ZodOptional<z$1.ZodNullable<z$1.ZodString>>;
16056
- rows: z$1.ZodArray<z$1.ZodType<TimelineRow, unknown, z$1.core.$ZodTypeInternals<TimelineRow, unknown>>>;
16057
- }, z$1.core.$strip>;
16058
- type TimelineTurnSummaryDetailsResponse = z$1.infer<typeof timelineTurnSummaryDetailsResponseSchema>;
16059
- declare const threadTimelineResponseSchema: z$1.ZodObject<{
16142
+ origin: z$1.ZodEnum<{
16143
+ builtin: "builtin";
16144
+ project: "project";
16145
+ user: "user";
16146
+ }>;
16147
+ source: z$1.ZodEnum<{
16148
+ command: "command";
16149
+ skill: "skill";
16150
+ }>;
16151
+ }, z$1.core.$strip>>>>;
16152
+ sessionOptions: z$1.ZodOptional<z$1.ZodNullable<z$1.ZodArray<z$1.ZodDiscriminatedUnion<[z$1.ZodObject<{
16153
+ category: z$1.ZodNullable<z$1.ZodString>;
16154
+ description: z$1.ZodNullable<z$1.ZodString>;
16155
+ id: z$1.ZodString;
16156
+ label: z$1.ZodString;
16157
+ pendingValue: z$1.ZodNullable<z$1.ZodString>;
16158
+ type: z$1.ZodLiteral<"select">;
16159
+ value: z$1.ZodString;
16160
+ values: z$1.ZodArray<z$1.ZodObject<{
16161
+ description: z$1.ZodNullable<z$1.ZodString>;
16162
+ group: z$1.ZodNullable<z$1.ZodString>;
16163
+ id: z$1.ZodString;
16164
+ label: z$1.ZodString;
16165
+ }, z$1.core.$strip>>;
16166
+ }, z$1.core.$strip>, z$1.ZodObject<{
16167
+ category: z$1.ZodNullable<z$1.ZodString>;
16168
+ description: z$1.ZodNullable<z$1.ZodString>;
16169
+ id: z$1.ZodString;
16170
+ label: z$1.ZodString;
16171
+ pendingValue: z$1.ZodNullable<z$1.ZodBoolean>;
16172
+ type: z$1.ZodLiteral<"boolean">;
16173
+ value: z$1.ZodBoolean;
16174
+ }, z$1.core.$strip>], "type">>>>;
16175
+ timelinePage: z$1.ZodOptional<z$1.ZodObject<{
16176
+ historySnapshot: z$1.ZodOptional<z$1.ZodString>;
16177
+ olderCursor: z$1.ZodOptional<z$1.ZodNullable<z$1.ZodObject<{
16178
+ anchorId: z$1.ZodString;
16179
+ anchorSeq: z$1.ZodNumber;
16180
+ }, z$1.core.$strict>>>;
16181
+ olderRowUpdates: z$1.ZodOptional<z$1.ZodNullable<z$1.ZodArray<z$1.ZodType<TimelineRow, unknown, z$1.core.$ZodTypeInternals<TimelineRow, unknown>>>>>;
16182
+ olderRowsSourceSeqEnd: z$1.ZodOptional<z$1.ZodNullable<z$1.ZodNumber>>;
16183
+ returnedSegmentCount: z$1.ZodOptional<z$1.ZodNumber>;
16184
+ }, z$1.core.$strict>>;
16185
+ }, z$1.core.$strip>;
16186
+ rowOrder: z$1.ZodOptional<z$1.ZodArray<z$1.ZodUnion<readonly [z$1.ZodString, z$1.ZodTuple<[z$1.ZodNumber, z$1.ZodNumber], null>]>>>;
16187
+ upsertRows: z$1.ZodArray<z$1.ZodType<TimelineRow, unknown, z$1.core.$ZodTypeInternals<TimelineRow, unknown>>>;
16188
+ }, z$1.core.$strip>;
16189
+ maxSeq: z$1.ZodNumber;
16190
+ tag: z$1.ZodString;
16191
+ }, z$1.core.$strip>, z$1.ZodObject<{
16060
16192
  activeBackgroundCommands: z$1.ZodArray<z$1.ZodObject<{
16061
16193
  completedAt: z$1.ZodNullable<z$1.ZodNumber>;
16062
16194
  createdAt: z$1.ZodNumber;
@@ -16309,10 +16441,6 @@ declare const threadTimelineResponseSchema: z$1.ZodObject<{
16309
16441
  }, z$1.core.$strip>>;
16310
16442
  usedTokens: z$1.ZodNumber;
16311
16443
  }, z$1.core.$strip>>;
16312
- delta: z$1.ZodOptional<z$1.ZodObject<{
16313
- rowOrder: z$1.ZodOptional<z$1.ZodArray<z$1.ZodString>>;
16314
- upsertRows: z$1.ZodArray<z$1.ZodType<TimelineRow, unknown, z$1.core.$ZodTypeInternals<TimelineRow, unknown>>>;
16315
- }, z$1.core.$strip>>;
16316
16444
  goal: z$1.ZodNullable<z$1.ZodObject<{
16317
16445
  objective: z$1.ZodString;
16318
16446
  sourceSeq: z$1.ZodNumber;
@@ -16390,6 +16518,7 @@ declare const threadTimelineResponseSchema: z$1.ZodObject<{
16390
16518
  type: z$1.ZodLiteral<"boolean">;
16391
16519
  value: z$1.ZodBoolean;
16392
16520
  }, z$1.core.$strip>], "type">>>;
16521
+ tag: z$1.ZodString;
16393
16522
  timelinePage: z$1.ZodObject<{
16394
16523
  historySnapshot: z$1.ZodString;
16395
16524
  olderCursor: z$1.ZodNullable<z$1.ZodObject<{
@@ -16400,8 +16529,8 @@ declare const threadTimelineResponseSchema: z$1.ZodObject<{
16400
16529
  olderRowsSourceSeqEnd: z$1.ZodNullable<z$1.ZodNumber>;
16401
16530
  returnedSegmentCount: z$1.ZodNumber;
16402
16531
  }, z$1.core.$strict>;
16403
- }, z$1.core.$strip>;
16404
- type ThreadTimelineResponse = z$1.infer<typeof threadTimelineResponseSchema>;
16532
+ }, z$1.core.$strip>]>;
16533
+ type ThreadTimelineReadResponse = z$1.infer<typeof threadTimelineReadResponseSchema>;
16405
16534
  declare const threadConversationOutlineQuerySchema: z$1.ZodObject<{
16406
16535
  role: z$1.ZodOptional<z$1.ZodEnum<{
16407
16536
  assistant: "assistant";
@@ -17109,32 +17238,13 @@ type EnvironmentUpdateFields = EnvironmentMergeBaseBranchUpdate | EnvironmentNam
17109
17238
  type EnvironmentUpdateArgs = EnvironmentUpdateFields & {
17110
17239
  environmentId: string;
17111
17240
  };
17112
- interface EnvironmentStatusArgs extends EnvironmentStatusQuery {
17113
- environmentId: string;
17114
- signal?: AbortSignal;
17115
- }
17116
17241
  type EnvironmentDiffArgs = EnvironmentDiffQuery & {
17117
17242
  environmentId: string;
17118
17243
  signal?: AbortSignal;
17119
17244
  };
17120
- type EnvironmentDiffFilesArgs = EnvironmentDiffArgs & {
17121
- ignoreWhitespace?: boolean;
17122
- };
17123
- type EnvironmentDiffFileArgs = EnvironmentDiffFileQuery & {
17124
- environmentId: string;
17125
- signal?: AbortSignal;
17126
- };
17127
- interface EnvironmentDiffBranchesArgs extends EnvironmentDiffBranchesQuery {
17128
- environmentId: string;
17129
- signal?: AbortSignal;
17130
- }
17131
17245
  interface EnvironmentCommitArgs {
17132
17246
  environmentId: string;
17133
17247
  }
17134
- type EnvironmentDiffPatchArgs = EnvironmentDiffPatchRequest & {
17135
- environmentId: string;
17136
- signal?: AbortSignal;
17137
- };
17138
17248
  type EnvironmentDiffViewedMarkArgs = EnvironmentDiffViewedMarkRequest & {
17139
17249
  environmentId: string;
17140
17250
  };
@@ -17147,15 +17257,9 @@ interface EnvironmentPathsArgs extends EnvironmentPathsQuery {
17147
17257
  }
17148
17258
  type EnvironmentArchiveThreadsResult = EnvironmentArchiveThreadsResponse;
17149
17259
  type EnvironmentCommitResult = CommitActionResponse;
17150
- type EnvironmentDiffResult = EnvironmentDiffResponse;
17151
- type EnvironmentDiffBranchesResult = EnvironmentDiffBranchesResponse;
17152
- type EnvironmentDiffFileResult = EnvironmentDiffFileResponse;
17153
- type EnvironmentDiffFilesResult = EnvironmentDiffFilesResponse;
17154
- type EnvironmentDiffPatchResult = EnvironmentDiffPatchResponse;
17155
17260
  type EnvironmentDiffViewedResult = EnvironmentDiffViewedResponse;
17156
17261
  type EnvironmentGetResult = Environment;
17157
17262
  type EnvironmentPathsResult = WorkspacePathListResponse;
17158
- type EnvironmentStatusResult = EnvironmentStatusResponse;
17159
17263
  type EnvironmentUpdateResult = Environment;
17160
17264
  interface EnvironmentListArgs {
17161
17265
  environmentProviderId?: string;
@@ -17189,11 +17293,6 @@ interface EnvironmentsArea {
17189
17293
  }>;
17190
17294
  archiveThreads(args: EnvironmentActionArgs): Promise<EnvironmentArchiveThreadsResult>;
17191
17295
  commit(args: EnvironmentCommitArgs): Promise<EnvironmentCommitResult>;
17192
- diff(args: EnvironmentDiffArgs): Promise<EnvironmentDiffResult>;
17193
- diffBranches(args: EnvironmentDiffBranchesArgs): Promise<EnvironmentDiffBranchesResult>;
17194
- diffFile(args: EnvironmentDiffFileArgs): Promise<EnvironmentDiffFileResult>;
17195
- diffFiles(args: EnvironmentDiffFilesArgs): Promise<EnvironmentDiffFilesResult>;
17196
- diffPatch(args: EnvironmentDiffPatchArgs): Promise<EnvironmentDiffPatchResult>;
17197
17296
  experimental_diffViewed(args: EnvironmentDiffArgs & {
17198
17297
  paths?: string[];
17199
17298
  }): Promise<EnvironmentDiffViewedResult>;
@@ -17208,7 +17307,6 @@ interface EnvironmentsArea {
17208
17307
  listProviders(args?: EnvironmentListProvidersArgs): Promise<EnvironmentListProvidersResult>;
17209
17308
  delete(args: EnvironmentDeleteArgs): Promise<EnvironmentDeleteResult>;
17210
17309
  paths(args: EnvironmentPathsArgs): Promise<EnvironmentPathsResult>;
17211
- status(args: EnvironmentStatusArgs): Promise<EnvironmentStatusResult>;
17212
17310
  update(args: EnvironmentUpdateArgs): Promise<EnvironmentUpdateResult>;
17213
17311
  }
17214
17312
 
@@ -17216,6 +17314,12 @@ interface FileReadArgs {
17216
17314
  hostId?: string;
17217
17315
  path: string;
17218
17316
  rootPath?: string;
17317
+ /**
17318
+ * Read the file as it is at this git revision of the repository at
17319
+ * `rootPath` instead of from disk. Requires `rootPath`; `path` stays the
17320
+ * file's absolute path in the working tree.
17321
+ */
17322
+ ref?: string;
17219
17323
  signal?: AbortSignal;
17220
17324
  }
17221
17325
  interface FileWriteArgs {
@@ -18298,6 +18402,7 @@ type ThreadPluginMetadataResult = ThreadPluginMetadataResponse;
18298
18402
  type PluginThreadMetadataListResult = PluginThreadMetadataListResponse;
18299
18403
  type ThreadAncestorsListResult = ThreadAncestorsListResponse;
18300
18404
  type ThreadDescendantsListResult = ThreadDescendantsListResponse;
18405
+ type ThreadCascadeListResult = ThreadCascadeListResponse;
18301
18406
  type ThreadSpawnResult = ThreadResponse;
18302
18407
  type ThreadForkResult = ThreadResponse;
18303
18408
  type ThreadInteractionGetResult = PendingInteraction;
@@ -18309,6 +18414,7 @@ type ThreadEventsListResult = ThreadEventRow[];
18309
18414
  type ThreadEventWaitResult = ThreadEventRow | null;
18310
18415
  type ThreadContextResult = ThreadContextResponse;
18311
18416
  type ThreadTimelineResult = ThreadTimelineResponse;
18417
+ type ThreadTimelineReadResult = ThreadTimelineReadResponse;
18312
18418
  type ThreadArchiveResult = ThreadArchiveAllResponse;
18313
18419
  type ThreadOpenResult = ThreadOpenResponse;
18314
18420
  type ThreadPaneActionResult = ThreadPaneActionResponse;
@@ -18391,6 +18497,11 @@ interface ThreadAncestorsListArgs {
18391
18497
  threadIds: readonly string[];
18392
18498
  signal?: AbortSignal;
18393
18499
  }
18500
+ interface ThreadCascadeListArgs {
18501
+ threadIds: readonly string[];
18502
+ action: ThreadCascadeAction;
18503
+ signal?: AbortSignal;
18504
+ }
18394
18505
  interface ThreadDescendantsListArgs {
18395
18506
  threadIds: readonly string[];
18396
18507
  includeArchived?: boolean;
@@ -18658,6 +18769,16 @@ interface ThreadsArea {
18658
18769
  * Experimental: see docs/api_to_audit.md.
18659
18770
  */
18660
18771
  experimental_listDescendants(args: ThreadDescendantsListArgs): Promise<ThreadDescendantsListResult>;
18772
+ /**
18773
+ * Each of `threadIds` (1–200 per request) that exists and is not deleted,
18774
+ * with `cascadeThreadIds`: the visible threads that archiving
18775
+ * (`action: "archive"`) or deleting (`action: "delete"`) it would also
18776
+ * affect, matching the cascade `archiveAll` and `delete` apply. Archive
18777
+ * omits threads already archived; delete includes them. Hidden threads,
18778
+ * deleted threads and unknown ids are omitted.
18779
+ * Experimental: see docs/api_to_audit.md.
18780
+ */
18781
+ experimental_listCascade(args: ThreadCascadeListArgs): Promise<ThreadCascadeListResult>;
18661
18782
  updatePluginMetadata(args: ThreadPluginMetadataUpdateArgs): Promise<ThreadPluginMetadataResult>;
18662
18783
  queue: ThreadQueueArea;
18663
18784
  interactions: ThreadInteractionsArea;
@@ -18704,7 +18825,10 @@ interface ThreadsArea {
18704
18825
  stop(args: ThreadActionArgs): Promise<ThreadStopResult>;
18705
18826
  tabs: ThreadTabsArea;
18706
18827
  context(args: ThreadStatusArgs): Promise<ThreadContextResult>;
18707
- timeline(args: ThreadTimelineArgs): Promise<ThreadTimelineResult>;
18828
+ timeline(args: ThreadTimelineArgs & {
18829
+ afterTag?: undefined;
18830
+ }): Promise<ThreadTimelineResult>;
18831
+ timeline(args: ThreadTimelineArgs): Promise<ThreadTimelineReadResult>;
18708
18832
  timelineTurnSummaryDetails(args: ThreadTimelineTurnSummaryDetailsArgs): Promise<ThreadTimelineTurnSummaryDetailsResult>;
18709
18833
  storageFiles(args: ThreadStorageFilesArgs): Promise<ThreadStorageFilesResult>;
18710
18834
  storageLocation(args: ThreadStatusArgs): Promise<ThreadStorageLocationResult>;
@@ -21134,12 +21258,15 @@ interface ExperimentalPageBreadcrumb {
21134
21258
  /** Props passed to a `navPanel` component (it owns its whole route). */
21135
21259
  interface PluginNavPanelProps {
21136
21260
  /**
21137
- * The route remainder after the panel root, "" at the root. The panel's
21138
- * route is `/plugins/<pluginId>/<path>/*`, so a deep link like
21139
- * `/plugins/notes/notes/work/ideas.md` renders the panel with
21140
- * `subPath: "work/ideas.md"`. Navigate within the panel via
21141
- * `useBbNavigate().toPluginPanel(path, { subPath })` — browser
21142
- * back/forward then walks panel-internal history.
21261
+ * The route remainder after the panel root, "" at the root, as it appears
21262
+ * in the URL: each segment stays percent-encoded. The panel's route is
21263
+ * `/plugins/<pluginId>/<path>/*`, so a deep link like
21264
+ * `/plugins/notes/notes/work/my%20ideas.md` renders the panel with
21265
+ * `subPath: "work/my%20ideas.md"`. Decode each segment with
21266
+ * `decodeURIComponent` before using it. Navigate within the panel via
21267
+ * `useBbNavigate().toPluginPanel(path, { subPath })`, which takes
21268
+ * unencoded segments and encodes them — browser back/forward then walks
21269
+ * panel-internal history.
21143
21270
  */
21144
21271
  subPath: string;
21145
21272
  }
@@ -21149,23 +21276,33 @@ interface PluginNavPanelProps {
21149
21276
  * This slot is rendered only for an existing thread. Use
21150
21277
  * `experimental_newThreadPanelAction` for the root New thread screen.
21151
21278
  */
21152
- interface ExperimentalThreadActionTabProps {
21153
- threadId: string;
21279
+ interface ExperimentalThreadActionTabProps extends ExperimentalThreadTabProps {
21154
21280
  /**
21155
- * The JSON value the action's `openPanel` call passed (round-tripped
21156
- * through persistence, so the tab restores across reloads); null when the
21157
- * action opened the panel without params.
21281
+ * The JSON `params` the tab was opened with (round-tripped through
21282
+ * persistence, so the tab restores across reloads); null when it was
21283
+ * opened without params.
21158
21284
  */
21159
21285
  params: JsonValue | null;
21160
21286
  }
21287
+ /** Props every thread tab receives, fixed or action. */
21288
+ interface ExperimentalThreadTabProps {
21289
+ threadId: string;
21290
+ /**
21291
+ * The thread's environment, taken from the thread so it is present on the
21292
+ * first render; null only when the thread has no environment. The tab reads
21293
+ * whatever it needs about the environment itself and handles loading and
21294
+ * failure there.
21295
+ */
21296
+ environment: ExperimentalThreadEnvironment | null;
21297
+ }
21161
21298
  /** Props passed to a panel tab opened by `experimental_newThreadPanelAction`. */
21162
21299
  interface PluginNewThreadPanelProps {
21163
21300
  /** Project selected in the root composer; null in projectless compose. */
21164
21301
  projectId: string | null;
21165
21302
  /**
21166
- * The JSON value the action's `openPanel` call passed (round-tripped
21167
- * through persistence, so the tab restores across reloads); null when the
21168
- * action opened the panel without params.
21303
+ * The JSON `params` the tab was opened with (round-tripped through
21304
+ * persistence, so the tab restores across reloads); null when it was
21305
+ * opened without params.
21169
21306
  */
21170
21307
  params: JsonValue | null;
21171
21308
  }
@@ -21619,7 +21756,8 @@ interface ExperimentalDiffFullFileContents {
21619
21756
  * Props of the host-owned `experimental_SourceCode` component — BB's source
21620
21757
  * viewer. The host owns syntax highlighting, gutters, wrapping, line-selection
21621
21758
  * presentation, and the live BB code theme; the caller owns loading the text
21622
- * and any surrounding chrome.
21759
+ * and any surrounding chrome. Inside a thread view, selected lines offer Add to
21760
+ * chat, which quotes them into that thread's composer.
21623
21761
  */
21624
21762
  interface SourceCodeProps {
21625
21763
  /** The complete source text to render. */
@@ -21641,8 +21779,9 @@ interface SourceCodeProps {
21641
21779
  * The host owns patch normalization (a patch without a `diff --git` header is
21642
21780
  * completed from `path`), syntax highlighting, unified/split presentation,
21643
21781
  * gutters, line-selection presentation, optional full-file context expansion,
21644
- * and the live BB code theme. Content that cannot be parsed as a patch
21645
- * degrades to plain monospace text.
21782
+ * and the live BB code theme. Inside a thread view, selected lines offer Add
21783
+ * to chat, which quotes them into that thread's composer. Content that cannot
21784
+ * be parsed as a patch degrades to plain monospace text.
21646
21785
  */
21647
21786
  interface DiffProps {
21648
21787
  /** Unified patch text for exactly ONE file. */
@@ -21944,22 +22083,6 @@ interface PluginNavPanelRegistration {
21944
22083
  */
21945
22084
  headerContent?: ComponentType<PluginNavPanelProps>;
21946
22085
  }
21947
- /**
21948
- * What a plugin action passes when it asks the host to open one of its panel
21949
- * tabs. Shared by every `openPanel` entry point so a plugin registering more
21950
- * than one kind of action can write a single open routine;
21951
- * `PluginTargetedPanelActionOpenOptions` adds the `actionId` a caller
21952
- * outside a panel action must pass to name the panel it wants.
21953
- */
21954
- interface PluginPanelActionOpenOptions {
21955
- /** Tab label. Default: the action's `title`. */
21956
- title?: string;
21957
- /**
21958
- * Persisted with the tab and handed to the component as its `params` prop.
21959
- * Must be a JSON value; anything else is a declined open.
21960
- */
21961
- params?: JsonValue;
21962
- }
21963
22086
  /**
21964
22087
  * Context handed to a thread action tab's `run`.
21965
22088
  *
@@ -21969,23 +22092,8 @@ interface PluginPanelActionOpenOptions {
21969
22092
  interface ExperimentalThreadTabActionContext {
21970
22093
  /** The thread whose panel launcher invoked the action. */
21971
22094
  threadId: string;
21972
- /**
21973
- * Open a tab in the thread's side panel rendering this action's
21974
- * `component`. `title` labels the tab (default: the action's `title`);
21975
- * `params` must be JSON-serializable — it is persisted with the tab and
21976
- * reaches the component as its `params` prop. Opening with params
21977
- * identical to an already-open tab of this action focuses that tab
21978
- * (updating its title) instead of duplicating it. May be called more than
21979
- * once (different params ⇒ multiple tabs) or not at all.
21980
- *
21981
- * Returns true when the host accepted the open; false when it declined —
21982
- * from this launcher, only a `params` that is not a JSON value. The true /
21983
- * false contract is shared with `messageAction`'s `openPanel` and
21984
- * `useBbNavigate().openThreadPanel` (which decline for more reasons) so one
21985
- * open routine can serve every action kind. A decline is never thrown: the
21986
- * host logs it and reports it here.
21987
- */
21988
- openPanel(options?: PluginPanelActionOpenOptions): boolean;
22095
+ /** The side panel of the thread view that invoked the action. */
22096
+ experimental_panel: ExperimentalPanelController;
21989
22097
  }
21990
22098
  /** Where a plugin tab belongs. Navigation panels are owned by the registering plugin. */
21991
22099
  type ExperimentalTabContext = {
@@ -22018,14 +22126,12 @@ type ExperimentalTabLifecycle<Props, Context> = {
22018
22126
  /** Default persisted params when opened without explicit params. */
22019
22127
  params?: JsonValue;
22020
22128
  run?(context: Context & {
22021
- openPanel(options?: PluginPanelActionOpenOptions): boolean;
22129
+ experimental_panel: ExperimentalPanelController;
22022
22130
  }): void | Promise<void>;
22023
22131
  };
22024
22132
  type ExperimentalTabContextProps<C extends ExperimentalTabContext> = C extends {
22025
22133
  kind: "thread";
22026
- } ? {
22027
- threadId: string;
22028
- } : PluginNavPanelProps;
22134
+ } ? ExperimentalThreadTabProps : PluginNavPanelProps;
22029
22135
  type ExperimentalTabInput<C extends ExperimentalTabContext, A extends "action" | "fixed"> = {
22030
22136
  id: string;
22031
22137
  title: string;
@@ -22039,16 +22145,14 @@ type ExperimentalTabInput<C extends ExperimentalTabContext, A extends "action" |
22039
22145
  component: ComponentType<ExperimentalTabContextProps<C>>;
22040
22146
  run?: never;
22041
22147
  params?: never;
22042
- experimental_target?: C extends {
22043
- kind: "nav-panel";
22044
- } ? ExperimentalFixedTabTargetContract<JsonValue> : never;
22148
+ experimental_target?: ExperimentalFixedTabTargetContract<JsonValue>;
22045
22149
  } : {
22046
22150
  component: ComponentType<ExperimentalTabContextProps<C> & {
22047
22151
  params: JsonValue | null;
22048
22152
  }>;
22049
22153
  params?: JsonValue;
22050
22154
  run?(context: ExperimentalTabContextProps<C> & {
22051
- openPanel(options?: PluginPanelActionOpenOptions): boolean;
22155
+ experimental_panel: ExperimentalPanelController;
22052
22156
  }): void | Promise<void>;
22053
22157
  experimental_target?: never;
22054
22158
  });
@@ -22057,15 +22161,14 @@ type ExperimentalTabRegistration = ExperimentalTabCommon & (({
22057
22161
  context: {
22058
22162
  kind: "thread";
22059
22163
  };
22060
- useVisible?(props: {
22061
- threadId: string;
22062
- }): boolean;
22164
+ useVisible?(props: ExperimentalThreadTabProps): boolean;
22165
+ } & ((ExperimentalTabLifecycle<ExperimentalThreadTabProps, ExperimentalThreadTabProps> & {
22166
+ availability: "action";
22063
22167
  experimental_target?: never;
22064
- } & ExperimentalTabLifecycle<{
22065
- threadId: string;
22066
- }, {
22067
- threadId: string;
22068
- }>) | ({
22168
+ }) | (ExperimentalTabLifecycle<ExperimentalThreadTabProps, ExperimentalThreadTabProps> & {
22169
+ availability: "fixed";
22170
+ experimental_target?: ExperimentalFixedTabTargetContract<JsonValue>;
22171
+ }))) | ({
22069
22172
  context: {
22070
22173
  kind: "nav-panel";
22071
22174
  panelId: string;
@@ -22083,11 +22186,10 @@ interface PluginNewThreadPanelActionContext {
22083
22186
  /** Project selected in the root composer; null in projectless compose. */
22084
22187
  projectId: string | null;
22085
22188
  /**
22086
- * Open a tab in the root New thread screen's side panel rendering this
22087
- * action's `component`. The title, params, deduplication, return value, and
22088
- * error semantics match thread action tabs.
22189
+ * The New thread screen's side panel. Address this action's tab as
22190
+ * `{ id, context: { kind: "thread" }, availability: "action" }`.
22089
22191
  */
22090
- openPanel(options?: PluginPanelActionOpenOptions): boolean;
22192
+ experimental_panel: ExperimentalPanelController;
22091
22193
  }
22092
22194
  /** Registration for the root New thread screen's panel Actions list. */
22093
22195
  interface PluginNewThreadPanelActionRegistration {
@@ -22609,8 +22711,8 @@ interface ExperimentalThreadInfoProps {
22609
22711
  threadId: string;
22610
22712
  projectId: string;
22611
22713
  /**
22612
- * The thread's environment, or null when the thread has no environment,
22613
- * its host is not active, or the environment is not a usable checkout.
22714
+ * The thread's environment, taken from the thread; null only when the
22715
+ * thread has no environment. Read its state (host, checkout, git) yourself.
22614
22716
  */
22615
22717
  environment: ExperimentalThreadEnvironment | null;
22616
22718
  }
@@ -22875,12 +22977,30 @@ interface PluginThreadActionItemInput<Data> {
22875
22977
  data: Data;
22876
22978
  /** The registering plugin's `useSdk()` client. */
22877
22979
  sdk: PluginBrowserBbSdk;
22980
+ /** The registering plugin's `useBbNavigate()`. */
22981
+ navigate: BbNavigate;
22878
22982
  /**
22879
- * The registering plugin's `useBbNavigate()`. Thread menus are not inside a
22880
- * side panel, so `openThreadPanel` opens in the focused thread view, as
22881
- * plugin commands do, and returns false when no thread view is open.
22983
+ * The focused surface's side panel, as for plugin commands. Thread menus
22984
+ * are not inside a side panel, so calls return false when the focused
22985
+ * surface has no such tab.
22882
22986
  */
22987
+ experimental_panel: ExperimentalPanelController;
22988
+ }
22989
+ /**
22990
+ * What a registration's `experimental_bulkItem` receives for a selection
22991
+ * of several threads.
22992
+ */
22993
+ interface PluginThreadActionBulkItemInput<Data> {
22994
+ /** The selected threads in the surface's list order; always two or more. */
22995
+ threads: readonly PluginThreadActionTarget[];
22996
+ /** What `useData` last returned; undefined when the registration has none. */
22997
+ data: Data;
22998
+ /** The registering plugin's `useSdk()` client. */
22999
+ sdk: PluginBrowserBbSdk;
23000
+ /** The registering plugin's `useBbNavigate()`, as for `item`. */
22883
23001
  navigate: BbNavigate;
23002
+ /** The focused surface's side panel, as for `item`. */
23003
+ experimental_panel: ExperimentalPanelController;
22884
23004
  }
22885
23005
  /**
22886
23006
  * Add an action to every thread actions menu: the thread header's menu, the
@@ -22915,6 +23035,15 @@ interface PluginThreadActionRegistration<Data = undefined> {
22915
23035
  order?: number;
22916
23036
  useData?(input: PluginThreadActionDataInput): Data;
22917
23037
  item(input: PluginThreadActionItemInput<Data>): PluginThreadAction | null;
23038
+ /**
23039
+ * The action for several selected threads at once, shown when
23040
+ * `experimental_ThreadActionsContextMenu` gets an `experimental_bulkThreads`
23041
+ * (see {@link PluginThreadActionsContextMenuProps}). Pure and
23042
+ * synchronous like `item`, with every selected thread in `useData`'s
23043
+ * `threadIds`; `run` acts on all of them. Omit it, or return null, to leave
23044
+ * the action out of selection menus. Experimental: see docs/api_to_audit.md.
23045
+ */
23046
+ experimental_bulkItem?(input: PluginThreadActionBulkItemInput<Data>): PluginThreadAction | null;
22918
23047
  }
22919
23048
  /**
22920
23049
  * A thread action as {@link PluginSdkApp.experimental_useThreadActions}
@@ -23001,6 +23130,18 @@ interface PluginThreadActionsContextMenuProps extends PluginThreadActionsMenuBas
23001
23130
  disabled?: boolean;
23002
23131
  /** Closes the menu and suppresses opening while the row is being dragged. */
23003
23132
  dragging?: boolean;
23133
+ /**
23134
+ * The selected threads in list order when the row is part of a multi-row
23135
+ * selection. With two or more, the menu acts on all of them: it lists every
23136
+ * registration's `experimental_bulkItem` under a count of the
23137
+ * selection, including bb's own Mark read, Pin, Archive and Delete, which
23138
+ * confirm and clean up as the single-thread actions do, then `inline`.
23139
+ * Omit it, or pass fewer than two, for `thread`'s own menu. Experimental:
23140
+ * see docs/api_to_audit.md.
23141
+ */
23142
+ experimental_bulkThreads?: readonly PluginThreadActionTarget[];
23143
+ /** Called when Escape dismisses the desktop menu, e.g. to clear a selection. */
23144
+ onEscapeKeyDown?(event: KeyboardEvent): void;
23004
23145
  }
23005
23146
  /** One pane's place in the split layout, as fractions of the split area. */
23006
23147
  interface PluginSidebarSplitPane {
@@ -23863,16 +24004,6 @@ interface ThreadChatMessageReference {
23863
24004
  */
23864
24005
  experimental_messageSeq: number;
23865
24006
  }
23866
- /**
23867
- * What a caller that is *not* itself a panel action passes to open one — a
23868
- * `messageAction`'s `run`, or any component via `useBbNavigate()`. A panel
23869
- * action opening its own tab is already the target, so it passes the bare
23870
- * {@link PluginPanelActionOpenOptions} instead.
23871
- */
23872
- interface PluginTargetedPanelActionOpenOptions extends PluginPanelActionOpenOptions {
23873
- /** A thread action tab id registered by this same plugin. */
23874
- actionId: string;
23875
- }
23876
24007
  /** Context handed to a `messageAction`'s `run`. */
23877
24008
  interface PluginMessageActionContext {
23878
24009
  /** The thread whose timeline surfaced the action. */
@@ -23883,18 +24014,8 @@ interface PluginMessageActionContext {
23883
24014
  * the exact text the user highlighted inside `message`.
23884
24015
  */
23885
24016
  selectedText?: string;
23886
- /**
23887
- * Open one of this plugin's thread action tab components in the current
23888
- * thread's side panel — the registration-callback equivalent of
23889
- * `useBbNavigate().openThreadPanel`.
23890
- *
23891
- * Returns true when the host accepted the open; false when it declined —
23892
- * `params` was not a JSON value, the action id names no thread action tab
23893
- * of this plugin, or the surface has no side panel (only the main thread
23894
- * view does; a `ThreadChat` embedded in a plugin panel does not). A decline
23895
- * is never thrown: the host logs it and reports it here.
23896
- */
23897
- openPanel(options: PluginTargetedPanelActionOpenOptions): boolean;
24017
+ /** The side panel of the thread view whose timeline surfaced the action. */
24018
+ experimental_panel: ExperimentalPanelController;
23898
24019
  /**
23899
24020
  * The composer of the thread the message is in, or null when that thread's
23900
24021
  * composer is not available on this surface. The same handle
@@ -23928,17 +24049,15 @@ interface PluginCommandContext {
23928
24049
  threadId: string | null;
23929
24050
  projectId: string | null;
23930
24051
  /**
23931
- * Open one of this plugin's panel components in the focused side panel.
23932
- * In a thread, `actionId` resolves against thread action tabs; on the New
23933
- * thread screen, it resolves against `experimental_newThreadPanelAction`.
23934
- * Register both slots with the same id to support commands on both screens.
23935
- *
23936
- * Returns true when the host accepted the open; false when it declined —
23937
- * `params` was not a JSON value, the action id names no matching panel action
23938
- * of this plugin on the focused surface, or the surface has no side panel.
23939
- * The palette opens anywhere, so guard with `isAvailable` rather than assuming.
24052
+ * The focused surface's side panel: the thread view or New thread screen
24053
+ * in focus, or the focused plugin page. On the New thread screen, a
24054
+ * `{ context: { kind: "thread" }, availability: "action" }` tab resolves
24055
+ * against `experimental_newThreadPanelAction` with the same id, so register
24056
+ * both slots with the same id to support commands on both screens. Calls
24057
+ * return false when the focused surface has no such tab or no side panel;
24058
+ * guard with `isAvailable` rather than assuming.
23940
24059
  */
23941
- openPanel(options: PluginTargetedPanelActionOpenOptions): boolean;
24060
+ experimental_panel: ExperimentalPanelController;
23942
24061
  }
23943
24062
  /** A default keyboard shortcut. Omitted modifiers are false. */
23944
24063
  interface PluginCommandShortcut {
@@ -25281,6 +25400,13 @@ type ExperimentalLiveFileTarget = {
25281
25400
  kind: "workspace";
25282
25401
  environmentId: string;
25283
25402
  path: string;
25403
+ /**
25404
+ * Git revision to read instead of the working copy: `"HEAD"` or a 4–40
25405
+ * character commit SHA; other values make the target invalid. Previews
25406
+ * open read-only and are labelled with the ref; external opens ignore it
25407
+ * and open the working copy.
25408
+ */
25409
+ experimental_ref?: string;
25284
25410
  } | {
25285
25411
  kind: "host";
25286
25412
  hostId: string;
@@ -25314,10 +25440,6 @@ interface ExperimentalFileLinkProps extends Omit<ComponentPropsWithoutRef<"a">,
25314
25440
  target: ExperimentalLiveFileTarget;
25315
25441
  location?: ExperimentalFileLocation | null;
25316
25442
  }
25317
- /** The panel surface resolved by the component making the request. */
25318
- type ExperimentalAppPanelSurface = {
25319
- kind: "current";
25320
- };
25321
25443
  /**
25322
25444
  * The owning fixed tab's current memory-only target. It survives tab, panel,
25323
25445
  * and route remounts during the current app session, but is never persisted
@@ -25328,65 +25450,51 @@ interface ExperimentalFixedTabTargetState<Target extends JsonValue> {
25328
25450
  readonly target: Target;
25329
25451
  clear(): void;
25330
25452
  }
25331
- type ExperimentalOpenFixedTabOptions<Target extends JsonValue> = {
25332
- surface: ExperimentalAppPanelSurface;
25333
- tab: ExperimentalPluginFixedTabReference<Target>;
25334
- /** Omit to select the tab without replacing its current session target. */
25335
- target?: NoInfer<Target>;
25336
- } | {
25337
- surface: ExperimentalAppPanelSurface;
25338
- tab: {
25339
- id: string;
25340
- panelId?: never;
25341
- experimental_target?: never;
25342
- };
25343
- target?: never;
25344
- };
25345
- /** A navigation-page fixed tab with an owner-validated target. */
25453
+ /** A fixed tab with an owner-validated target. */
25346
25454
  type ExperimentalTabTargetReference<Target extends JsonValue> = ExperimentalTabReference & {
25347
- context: {
25348
- kind: "nav-panel";
25349
- panelId: string;
25350
- };
25351
25455
  availability: "fixed";
25352
25456
  experimental_target: ExperimentalFixedTabTargetContract<Target>;
25353
25457
  };
25354
- /** Open a registered tab on the current surface. Action inputs persist; fixed targets are session-only. */
25355
- type ExperimentalTabOpenOptions = {
25356
- surface: ExperimentalAppPanelSurface;
25357
- } & ({
25358
- tab: ExperimentalTabReference & {
25359
- availability: "action";
25360
- };
25361
- params?: JsonValue;
25362
- title?: string;
25363
- target?: never;
25364
- } | {
25458
+ /**
25459
+ * A registered tab of the calling plugin to open on the current surface.
25460
+ * Fixed tabs accept a session-only `target`, validated by the tab's
25461
+ * `experimental_target`. Action tabs accept persisted `params`, which
25462
+ * identify the instance (opening with the same params focuses the existing
25463
+ * tab), and a `title`.
25464
+ */
25465
+ type ExperimentalOpenTabOptions = {
25365
25466
  tab: ExperimentalTabReference & {
25366
- context: {
25367
- kind: "thread";
25368
- };
25369
25467
  availability: "fixed";
25370
25468
  };
25371
- target?: never;
25469
+ target?: JsonValue;
25372
25470
  params?: never;
25373
25471
  title?: never;
25374
25472
  } | {
25375
25473
  tab: ExperimentalTabReference & {
25376
- context: {
25377
- kind: "nav-panel";
25378
- panelId: string;
25379
- };
25380
- availability: "fixed";
25474
+ availability: "action";
25381
25475
  };
25382
- target?: JsonValue;
25383
- params?: never;
25384
- title?: never;
25385
- });
25386
- /** Surface-aware controller for selecting owner-scoped fixed tabs. */
25387
- interface ExperimentalAppPanel {
25388
- experimental_openTab(options: ExperimentalTabOpenOptions): boolean;
25389
- openFixedTab<Target extends JsonValue = never>(options: ExperimentalOpenFixedTabOptions<Target>): boolean;
25476
+ params?: JsonValue;
25477
+ title?: string;
25478
+ target?: never;
25479
+ };
25480
+ /**
25481
+ * The side panel of one surface: a thread view, a plugin page, or the New
25482
+ * thread screen. Every call returns true when the host accepted it and false
25483
+ * when it declined: the surface has no side panel, the tab is not registered
25484
+ * by this plugin for this surface or is hidden, or `target`/`params` is not
25485
+ * a JSON value or fails the tab's validator. A decline is never thrown.
25486
+ */
25487
+ interface ExperimentalPanelController {
25488
+ /** Select the tab and reveal the side panel. */
25489
+ openTab(options: ExperimentalOpenTabOptions): boolean;
25490
+ /**
25491
+ * Close the side panel if this tab is showing — a fixed tab selected with
25492
+ * the panel open (`target` is ignored), or the action tab instance with the
25493
+ * same `params` selected — otherwise `openTab(options)`.
25494
+ */
25495
+ toggleTab(options: ExperimentalOpenTabOptions): boolean;
25496
+ /** Close the side panel. */
25497
+ close(): boolean;
25390
25498
  }
25391
25499
  /** Current app selection, derived from the route. */
25392
25500
  interface BbContext {
@@ -25406,8 +25514,9 @@ interface BbNavigate {
25406
25514
  toProject(projectId: string): void;
25407
25515
  /**
25408
25516
  * Navigate to one of this plugin's own nav panels by its `path`.
25409
- * `subPath` targets a location inside the panel (the component's
25410
- * `subPath` prop); `replace` swaps the current history entry instead of
25517
+ * `subPath` targets a location inside the panel as unencoded
25518
+ * `/`-separated segments; the component's `subPath` prop receives them
25519
+ * percent-encoded. `replace` swaps the current history entry instead of
25411
25520
  * pushing — use it for redirects so back does not bounce.
25412
25521
  */
25413
25522
  toPluginPanel(path: string, options?: {
@@ -25437,16 +25546,10 @@ interface BbNavigate {
25437
25546
  hostId?: string;
25438
25547
  }): void;
25439
25548
  /**
25440
- * Open one of this plugin's registered panel actions in the current
25441
- * surface's side panel: a thread action tab in a thread, or an
25442
- * `experimental_newThreadPanelAction` on the New thread screen. Plugin
25443
- * commands and thread actions use the focused thread view's opener. Returns false when the surface has no side
25444
- * panel actions (plugin pages) or the action is unavailable.
25445
- */
25446
- openThreadPanel(options: PluginTargetedPanelActionOpenOptions): boolean;
25447
- /**
25448
- * Open an HTTP(S) URL using this client's BB browser preference. Returns
25449
- * false for schemes the host does not own. Experimental: see
25549
+ * Open an HTTP(S) URL using this client's BB browser preference, or request
25550
+ * an application link on this device with confirmation unless its scheme is approved when
25551
+ * the applicationLinks experiment is enabled. Returns false
25552
+ * for blocked or unsupported schemes. True means handled, not launched. See
25450
25553
  * docs/api_to_audit.md.
25451
25554
  */
25452
25555
  openUrl(url: string): boolean;
@@ -25492,6 +25595,13 @@ interface ExperimentalRpcQueryState<T> {
25492
25595
  refetch(): Promise<void>;
25493
25596
  }
25494
25597
  interface ExperimentalRpcKeyedQueryState<T, Selection = Record<string, T>> extends ExperimentalRpcQueryState<Selection> {
25598
+ /**
25599
+ * Read these keys again and keep every other loaded row, for retrying one
25600
+ * failed row without refreshing the rest. Keys must be among this query's
25601
+ * keys; others are ignored. Resolves once the read settles; failures update
25602
+ * `error` and retain data.
25603
+ */
25604
+ refetchKeys(keys: readonly string[]): Promise<void>;
25495
25605
  }
25496
25606
  interface ExperimentalRpcQueryOptions<Contract extends PluginRpcContract, Method extends keyof Contract & string> {
25497
25607
  contract: Contract;
@@ -25540,6 +25650,10 @@ interface ExperimentalRpcMutationState<Method extends PluginRpcMethodContract> {
25540
25650
  * shims the specifier to that object on `globalThis.__bbPluginRuntime`.
25541
25651
  */
25542
25652
  interface PluginSdkApp {
25653
+ /** List URL schemes approved for this BB site in the viewing client's localStorage. Core Settings uses the same implementation. */
25654
+ experimental_getApplicationLinkApprovals(): Promise<string[]>;
25655
+ /** Revoke one scheme, or all with null, for this BB site on this client. Does not grant permission. */
25656
+ experimental_revokeApplicationLinkApproval(scheme: string | null): Promise<string[]>;
25543
25657
  experimental_PluginRpcCallError: typeof experimental_PluginRpcCallError;
25544
25658
  experimental_useRpcRefresh(): {
25545
25659
  refresh(): void;
@@ -25604,8 +25718,28 @@ interface PluginSdkApp {
25604
25718
  */
25605
25719
  experimental_useQuestionFormHost(): ExperimentalQuestionFormHost;
25606
25720
  useBbNavigate(): BbNavigate;
25607
- /** Select one of this plugin's eligible fixed tabs on the current surface. */
25608
- experimental_useAppPanel(): ExperimentalAppPanel;
25721
+ /**
25722
+ * Whether `useBbNavigate().experimental_openFileExternally` can open this
25723
+ * target now: it resolves to a path on its host (a ready environment, a
25724
+ * host, or thread storage) and this client has an external file target for
25725
+ * that host. False while either is loading; the component re-renders when
25726
+ * the answer changes. Experimental: see docs/api_to_audit.md.
25727
+ */
25728
+ experimental_useCanOpenFileExternally(target: ExperimentalLiveFileTarget): boolean;
25729
+ /**
25730
+ * Whether the panel tab this component renders in is showing: it is the
25731
+ * selected tab of its pane and the side panel is open. False while the panel
25732
+ * is closed or suppressed, while another tab is selected, and outside a
25733
+ * panel tab. bb keeps a closed panel's tab mounted, so pause reads that only
25734
+ * feed what the tab draws while this is false. Works in fixed and action
25735
+ * tabs. Experimental: see docs/api_to_audit.md.
25736
+ */
25737
+ experimental_useTabVisible(): boolean;
25738
+ /**
25739
+ * The side panel of the surface the calling component renders in: the
25740
+ * thread view, the plugin page, or the New thread screen.
25741
+ */
25742
+ experimental_useAppPanel(): ExperimentalPanelController;
25609
25743
  /** Read or clear the owning tab's validated, session-scoped target. */
25610
25744
  experimental_useFixedTabTarget<Target extends JsonValue>(tab: ExperimentalTabTargetReference<Target> | ExperimentalPluginFixedTabReference<Target>): ExperimentalFixedTabTargetState<Target> | null;
25611
25745
  useComposer(): PluginComposerApi;
@@ -26303,4 +26437,4 @@ declare const experimental_THREAD_INFO_SECTION_GROUPS: {
26303
26437
  };
26304
26438
 
26305
26439
  export { PLUGIN_CLI_OUTPUT_MAX_BYTES, PluginCliError, cliCommand, defineCli, defineRpcContract, experimental_PluginRpcCallError, experimental_PluginRpcRefusal, experimental_THREAD_ACTION_GROUPS, experimental_THREAD_CONTEXT_SEGMENT_GROUPS, experimental_THREAD_INFO_ROW_GROUPS, experimental_THREAD_INFO_SECTION_GROUPS, experimental_defineHostEntry };
26306
- export type { BbContext, BbNavigate, BbPluginApi, BranchPickerProps, BranchesState, CheckoutState, CodeOverflowMode, ComposerAttachment, ComposerCustomization, ComposerDraft, ComposerDraftReplacement, ComposerDraftSnapshot, ComposerInsertOptions, ComposerInsertPart, ComposerMention, ComposerPlusMenuItem, ComposerRichTextSpec, ComposerSelection, ComposerSendMenuItem, ComposerSubmitOptions, DiffProps, DiffViewMode, ExperimentalAppIcons, ExperimentalAppOverlayProps, ExperimentalAppOverlayRegistration, ExperimentalAppPanel, ExperimentalAppPanelSurface, ExperimentalBadge, ExperimentalBadgeTone, ExperimentalClipboardContent, ExperimentalCodeFenceRendererProps, ExperimentalCodeFenceRendererRegistration, ExperimentalCodeFenceStatus, 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, ExperimentalComposerView, ExperimentalComposerVoice, ExperimentalDesktopBrowserAcquireInput, ExperimentalDesktopBrowserCreateInput, ExperimentalDesktopBrowserLease, ExperimentalDesktopBrowserScope, ExperimentalDesktopBrowsersArea, ExperimentalDetailRowProps, ExperimentalDiffFileContent, ExperimentalDiffFullFileContents, ExperimentalDroppedThreadMention, ExperimentalFailedVoiceRecording, ExperimentalFailedVoiceRecordingsProps, ExperimentalFileLinkProps, ExperimentalFileLocation, ExperimentalFileOpenOptions, ExperimentalFixedTabTargetContract, ExperimentalFixedTabTargetState, ExperimentalHostCallOptions, ExperimentalHostClient, ExperimentalHostEntry, ExperimentalHostPaths, ExperimentalHostRpcContext, ExperimentalHostRpcHandlers, ExperimentalHostSignalContract, ExperimentalHostSignalEvent, ExperimentalHostSignals, ExperimentalHostWatchChange, ExperimentalHostWatchChangeType, ExperimentalHostWatchEvent, ExperimentalHostWatchListener, ExperimentalHostWatchOptions, ExperimentalHostWatchSubscription, ExperimentalHostWorkerLease, ExperimentalIconProps, ExperimentalIconRegistration, ExperimentalImageLightboxProps, ExperimentalInfoListProps, ExperimentalInfoListRowProps, ExperimentalInfoSectionProps, ExperimentalLiveFileTarget, ExperimentalMessageClipboardPayload, ExperimentalOpenFixedTabOptions, ExperimentalPageBreadcrumb, ExperimentalPageTitle, ExperimentalPermissionModePickerProps, ExperimentalPluginBrowserPage, ExperimentalPluginBrowserPageEvaluateOptions, ExperimentalPluginBrowserPageWorld, ExperimentalPluginBrowserToolbarActionProps, ExperimentalPluginBrowserToolbarActionRegistration, ExperimentalPluginFixedTabReference, ExperimentalPluginIconProps, ExperimentalPluginMentionImage, ExperimentalPluginProviderEnvContext, ExperimentalPluginProviderEnvEntry, ExperimentalPluginProviderEnvHealth, ExperimentalPluginProviderEnvHealthContext, ExperimentalPluginRpcCaller, ExperimentalPluginRpcHandlerContext, ExperimentalPluginRpcHandlersWithContext, ExperimentalPluginWebSocket, ExperimentalPluginWebSocketContext, ExperimentalPluginWebSocketHandler, ExperimentalPluginWebSocketHandlers, ExperimentalPromptMentionClipboardPill, ExperimentalPromptMentionIconProps, ExperimentalPromptMentionPresentation, ExperimentalProviderIconProps, ExperimentalProviderModelPickerProps, ExperimentalProviderModelPickerRouting, ExperimentalProviderModelPickerValue, ExperimentalQuestionFormHost, ExperimentalQuestionShortcut, ExperimentalRpcKeyedMethod, ExperimentalRpcKeyedQueryState, ExperimentalRpcKeyedValue, ExperimentalRpcMutationOptions, ExperimentalRpcMutationState, ExperimentalRpcOptimisticCache, ExperimentalRpcQueryOptions, ExperimentalRpcQueryState, ExperimentalSaveFileOutcome, ExperimentalSaveFileRequest, 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, ExperimentalTabOpenOptions, ExperimentalTabReference, ExperimentalTabRegistration, ExperimentalTabTargetReference, ExperimentalThreadActionTabProps, ExperimentalThreadContextSegmentInput, ExperimentalThreadContextSegmentProps, ExperimentalThreadContextSegmentReference, ExperimentalThreadContextSegmentRegistration, ExperimentalThreadEnvironment, ExperimentalThreadInfoProps, ExperimentalThreadInfoRowRegistration, ExperimentalThreadInfoSectionRegistration, ExperimentalThreadTabActionContext, ExperimentalThreadTitleTextProps, ExperimentalVoiceDelivery, ExperimentalVoiceInputButtonProps, ExperimentalVoiceInputTextareaProps, ExperimentalVoiceRecordingBarProps, InternalDoNotUsePluginHostNextTunnelStatus, InternalDoNotUsePluginNextTunnelConfig, InternalDoNotUsePluginNextTunnelServer, InternalDoNotUsePluginTunnelIngress, InternalDoNotUsePluginTunnelIngressOptions, JsonValue, MachineBootstrapApi, MachineBootstrapRequest, MachineExecutor, MachineExecutorRequest, MarkdownProps, MessageDispatchHookContext, MessageDispatchHookDecision, NewThreadComposerProps, NewThreadRequest, PluginAgentConfiguration, PluginAgentConfigurationContext, PluginAgentToolContentPart, PluginAgentToolContext, PluginAgentToolRegistrationBase, PluginAgentToolResult, PluginAgentToolSelection, PluginAgents, PluginAiCompleteOptions, PluginAiServiceDeclaration, PluginAiServiceStatus, PluginAiServices, PluginAiTranscribeOptions, PluginAppBuilder, PluginAppCommands, PluginAppComposer, PluginAppContentScripts, PluginAppDefinition, PluginAppSetup, PluginAppSlots, PluginBackground, PluginBbSdk, PluginBoundThreadAction, PluginBoundThreadsArea, PluginBrowserBbSdk, PluginCli, PluginCliBooleanOption, PluginCliCommand, PluginCliCommandInfo, PluginCliConstraint, PluginCliContext, PluginCliDurationOption, PluginCliDurationUnit, PluginCliEnumOption, PluginCliErrorCode, PluginCliExecutionResult, PluginCliIntegerOption, PluginCliOption, PluginCliOptionValues, PluginCliOutputLimitError, PluginCliPositional, PluginCliPositionalValues, PluginCliRegistration, PluginCliResult, PluginCliRunInput, PluginCliSpec, PluginCliStringOption, PluginCodeThemeData, PluginCodeThemeState, PluginCodeThemeTokenRule, PluginCommandContext, PluginCommandRegistration, PluginCommandShortcut, PluginComposerApi, PluginComposerMention, PluginComposerScope, PluginComposerTextEffect, PluginComposerThreadRowStatus, PluginContentScriptContext, PluginContentScriptDisposer, PluginContentScriptRegistration, PluginDiffRendererProps, PluginDiffRendererRegistration, PluginDispatchAttemptKind, PluginDispatchEnvironmentIntent, PluginDispatchExecution, PluginDispatchExecutionSources, PluginDispatchInput, PluginEnvironmentProvider, PluginEnvironmentProviderDeclaration, PluginEnvironmentProviderInputsChange, PluginEnvironmentProviderInputsProps, PluginEnvironmentProviderInputsRegistration, PluginEnvironmentProviderRequirements, PluginEnvironmentProvidersState, PluginEnvironmentValidateDecision, PluginEnvironments, PluginEvents, PluginFileOpenerProps, PluginFileOpenerRegistration, PluginFileOpenerSource, PluginHomepageSectionProps, PluginHomepageSectionRegistration, PluginHookHandler, PluginHookName, PluginHookSignatures, PluginHooks, PluginHosts, PluginHttp, PluginHttpAuthMode, PluginHttpHandler, PluginInteractionCancelReason, PluginInteractionDescription, PluginInteractionRequest, PluginInteractionResult, PluginKvStorage, PluginLogger, PluginMachineProviderDeclaration, PluginMachineProviderInputsChange, PluginMachineProviderInputsProps, PluginMachineProviderInputsRegistration, PluginMachineValidateDecision, PluginMachines, PluginMentionItem, PluginMentionProviderRegistration, PluginMentionSearchContext, PluginMentionTrigger, PluginMessageActionContext, PluginMessageActionRegistration, PluginMessageDirectiveMessage, PluginMessageDirectiveOpenWorkspaceFile, PluginMessageDirectiveProps, PluginMessageDirectiveRegistration, PluginNavPanelProps, PluginNavPanelRegistration, PluginNewThreadPanelActionContext, PluginNewThreadPanelActionRegistration, PluginNewThreadPanelProps, PluginPanelActionOpenOptions, PluginPendingInteractionProps, PluginPendingInteractionRegistration, PluginPendingInteractionView, PluginProviderCapabilities, PluginProviderCompletedTurnDisplay, PluginProviderComposerAction, PluginProviderDeclaration, PluginProviderExtensionKindDeclaration, PluginProviderFallbackModel, PluginProviderIconRegistration, PluginProviderMaintenance, PluginProviderModelCatalogScope, PluginProviderNativeRootEntry, PluginProviderNativeRoots, PluginProviderOptionDescriptor, PluginProviderOptionsContext, PluginProviderPermissionMode, PluginProviderReasoningLevel, PluginProviderStrings, PluginProviders, PluginProvidersState, PluginRealtime, PluginRealtimeConnectionState, PluginRowLabels, PluginRowPresentation, PluginRpc, PluginRpcCallArgs, PluginRpcClient, PluginRpcContract, PluginRpcError, PluginRpcErrorCode, PluginRpcHandlers, PluginRpcIssuePathSegment, PluginRpcMethodContract, PluginRpcResult, PluginRpcValidationIssue, PluginSdkApp, PluginServerAccess, PluginServerApi, PluginSettingDescriptor, PluginSettingDescriptors, PluginSettingValue, PluginSettings, PluginSettingsHandle, PluginSettingsSectionProps, PluginSettingsSectionRegistration, PluginSettingsState, PluginSettingsValues, PluginSharedPortTunnelIdentity, PluginSidebarFooterActionContext, PluginSidebarFooterActionProps, PluginSidebarFooterActionRegistration, PluginSidebarProject, PluginSidebarSection, PluginSidebarSplitLayout, PluginSidebarSplitPane, PluginSidebarThread, PluginSidebarThreadActivity, PluginSidebarThreadDraftState, PluginSidebarThreadIndicator, PluginSidebarThreadRowStatus, PluginSidebarThreadShortcut, PluginSidebarThreadSplit, PluginSidebarThreadSplitOptions, PluginSidebarThreadsState, PluginSourceCodeRendererProps, PluginSourceCodeRendererRegistration, PluginStatusApi, PluginStorage, PluginTargetedPanelActionOpenOptions, PluginThreadAction, PluginThreadActionChoice, PluginThreadActionChoices, PluginThreadActionDataInput, PluginThreadActionEntry, PluginThreadActionItemInput, PluginThreadActionRegistration, PluginThreadActionRegistrationInfo, PluginThreadActionRunInput, PluginThreadActionTarget, PluginThreadActionsContextMenuProps, PluginThreadActionsInlineItem, PluginThreadActionsMenuProps, PluginThreadActionsOptions, PluginThreadActionsTriggerProps, PluginThreadEventHandler, PluginThreadEventName, PluginThreadEventPayloads, PluginThreadHeaderActionProps, PluginThreadHeaderActionRegistration, PluginThreadListProps, PluginThreadListRegistration, PluginThreadStatusGlyphProps, PluginThreadTitleProps, PluginTimelineRendererProps, PluginTimelineRendererRegistration, PluginTimelineRendererRow, PluginTimelineRowPresentation, PluginTimelineRowStatus, PluginTurnFailedEvent, PluginUi, ReadonlyJsonValue, ServerAccessGrant, ServerAccessProviderDeclaration, SourceCodeLineRange, SourceCodeProps, StandardSchemaV1, StandardSchemaV1InferInput, StandardSchemaV1InferOutput, StandardSchemaV1Issue, StandardSchemaV1Result, ThreadChatMessageAction, ThreadChatMessageReference, ThreadChatProps, UrlLinkProps, UseBranchesArgs, UseCheckoutStateArgs };
26440
+ export type { BbContext, BbNavigate, BbPluginApi, BranchPickerProps, BranchesState, CheckoutState, CodeOverflowMode, ComposerAttachment, ComposerCustomization, ComposerDraft, ComposerDraftReplacement, ComposerDraftSnapshot, ComposerInsertOptions, ComposerInsertPart, ComposerMention, ComposerPlusMenuItem, ComposerRichTextSpec, ComposerSelection, ComposerSendMenuItem, ComposerSubmitOptions, DiffProps, DiffViewMode, ExperimentalAppIcons, ExperimentalAppOverlayProps, ExperimentalAppOverlayRegistration, ExperimentalBadge, ExperimentalBadgeTone, ExperimentalClipboardContent, ExperimentalCodeFenceRendererProps, ExperimentalCodeFenceRendererRegistration, ExperimentalCodeFenceStatus, 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, ExperimentalComposerView, ExperimentalComposerVoice, ExperimentalDesktopBrowserAcquireInput, ExperimentalDesktopBrowserCreateInput, ExperimentalDesktopBrowserLease, ExperimentalDesktopBrowserScope, ExperimentalDesktopBrowsersArea, ExperimentalDetailRowProps, ExperimentalDiffFileContent, ExperimentalDiffFullFileContents, ExperimentalDroppedThreadMention, ExperimentalFailedVoiceRecording, ExperimentalFailedVoiceRecordingsProps, ExperimentalFileLinkProps, ExperimentalFileLocation, ExperimentalFileOpenOptions, ExperimentalFixedTabTargetContract, ExperimentalFixedTabTargetState, ExperimentalHostCallOptions, ExperimentalHostClient, ExperimentalHostEntry, ExperimentalHostPaths, ExperimentalHostRpcContext, ExperimentalHostRpcHandlers, ExperimentalHostSignalContract, ExperimentalHostSignalEvent, ExperimentalHostSignals, ExperimentalHostWatchChange, ExperimentalHostWatchChangeType, ExperimentalHostWatchEvent, ExperimentalHostWatchListener, ExperimentalHostWatchOptions, ExperimentalHostWatchSubscription, ExperimentalHostWorkerLease, ExperimentalIconProps, ExperimentalIconRegistration, ExperimentalImageLightboxProps, ExperimentalInfoListProps, ExperimentalInfoListRowProps, ExperimentalInfoSectionProps, ExperimentalLiveFileTarget, ExperimentalMessageClipboardPayload, ExperimentalOpenTabOptions, ExperimentalPageBreadcrumb, ExperimentalPageTitle, ExperimentalPanelController, ExperimentalPermissionModePickerProps, ExperimentalPluginBrowserPage, ExperimentalPluginBrowserPageEvaluateOptions, ExperimentalPluginBrowserPageWorld, ExperimentalPluginBrowserToolbarActionProps, ExperimentalPluginBrowserToolbarActionRegistration, ExperimentalPluginFixedTabReference, ExperimentalPluginIconProps, ExperimentalPluginMentionImage, ExperimentalPluginProviderEnvContext, ExperimentalPluginProviderEnvEntry, ExperimentalPluginProviderEnvHealth, ExperimentalPluginProviderEnvHealthContext, ExperimentalPluginRpcCaller, ExperimentalPluginRpcHandlerContext, ExperimentalPluginRpcHandlersWithContext, ExperimentalPluginWebSocket, ExperimentalPluginWebSocketContext, ExperimentalPluginWebSocketHandler, ExperimentalPluginWebSocketHandlers, ExperimentalPromptMentionClipboardPill, ExperimentalPromptMentionIconProps, ExperimentalPromptMentionPresentation, ExperimentalProviderIconProps, ExperimentalProviderModelPickerProps, ExperimentalProviderModelPickerRouting, ExperimentalProviderModelPickerValue, ExperimentalQuestionFormHost, ExperimentalQuestionShortcut, ExperimentalRpcKeyedMethod, ExperimentalRpcKeyedQueryState, ExperimentalRpcKeyedValue, ExperimentalRpcMutationOptions, ExperimentalRpcMutationState, ExperimentalRpcOptimisticCache, ExperimentalRpcQueryOptions, ExperimentalRpcQueryState, ExperimentalSaveFileOutcome, ExperimentalSaveFileRequest, 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, ExperimentalThreadContextSegmentInput, ExperimentalThreadContextSegmentProps, ExperimentalThreadContextSegmentReference, ExperimentalThreadContextSegmentRegistration, ExperimentalThreadEnvironment, ExperimentalThreadInfoProps, ExperimentalThreadInfoRowRegistration, ExperimentalThreadInfoSectionRegistration, ExperimentalThreadTabActionContext, ExperimentalThreadTabProps, ExperimentalThreadTitleTextProps, ExperimentalVoiceDelivery, ExperimentalVoiceInputButtonProps, ExperimentalVoiceInputTextareaProps, ExperimentalVoiceRecordingBarProps, InternalDoNotUsePluginHostNextTunnelStatus, InternalDoNotUsePluginNextTunnelConfig, InternalDoNotUsePluginNextTunnelServer, InternalDoNotUsePluginTunnelIngress, InternalDoNotUsePluginTunnelIngressOptions, JsonValue, MachineBootstrapApi, MachineBootstrapRequest, MachineExecutor, MachineExecutorRequest, MarkdownProps, MessageDispatchHookContext, MessageDispatchHookDecision, NewThreadComposerProps, NewThreadRequest, PluginAgentConfiguration, PluginAgentConfigurationContext, PluginAgentToolContentPart, PluginAgentToolContext, PluginAgentToolRegistrationBase, PluginAgentToolResult, PluginAgentToolSelection, PluginAgents, PluginAiCompleteOptions, PluginAiServiceDeclaration, PluginAiServiceStatus, PluginAiServices, PluginAiTranscribeOptions, PluginAppBuilder, PluginAppCommands, PluginAppComposer, PluginAppContentScripts, PluginAppDefinition, PluginAppSetup, PluginAppSlots, PluginBackground, PluginBbSdk, PluginBoundThreadAction, PluginBoundThreadsArea, PluginBrowserBbSdk, PluginCli, PluginCliBooleanOption, PluginCliCommand, PluginCliCommandInfo, PluginCliConstraint, PluginCliContext, PluginCliDurationOption, PluginCliDurationUnit, PluginCliEnumOption, PluginCliErrorCode, PluginCliExecutionResult, PluginCliIntegerOption, PluginCliOption, PluginCliOptionValues, PluginCliOutputLimitError, PluginCliPositional, PluginCliPositionalValues, PluginCliRegistration, PluginCliResult, PluginCliRunInput, PluginCliSpec, PluginCliStringOption, PluginCodeThemeData, PluginCodeThemeState, PluginCodeThemeTokenRule, PluginCommandContext, PluginCommandRegistration, PluginCommandShortcut, PluginComposerApi, PluginComposerMention, PluginComposerScope, PluginComposerTextEffect, PluginComposerThreadRowStatus, PluginContentScriptContext, PluginContentScriptDisposer, PluginContentScriptRegistration, PluginDiffRendererProps, PluginDiffRendererRegistration, PluginDispatchAttemptKind, PluginDispatchEnvironmentIntent, PluginDispatchExecution, PluginDispatchExecutionSources, PluginDispatchInput, PluginEnvironmentProvider, PluginEnvironmentProviderDeclaration, PluginEnvironmentProviderInputsChange, PluginEnvironmentProviderInputsProps, PluginEnvironmentProviderInputsRegistration, PluginEnvironmentProviderRequirements, PluginEnvironmentProvidersState, PluginEnvironmentValidateDecision, PluginEnvironments, PluginEvents, PluginFileOpenerProps, PluginFileOpenerRegistration, PluginFileOpenerSource, PluginHomepageSectionProps, PluginHomepageSectionRegistration, PluginHookHandler, PluginHookName, PluginHookSignatures, PluginHooks, PluginHosts, PluginHttp, PluginHttpAuthMode, PluginHttpHandler, PluginInteractionCancelReason, PluginInteractionDescription, PluginInteractionRequest, PluginInteractionResult, PluginKvStorage, PluginLogger, PluginMachineProviderDeclaration, PluginMachineProviderInputsChange, PluginMachineProviderInputsProps, PluginMachineProviderInputsRegistration, PluginMachineValidateDecision, PluginMachines, PluginMentionItem, PluginMentionProviderRegistration, PluginMentionSearchContext, PluginMentionTrigger, PluginMessageActionContext, PluginMessageActionRegistration, PluginMessageDirectiveMessage, PluginMessageDirectiveOpenWorkspaceFile, PluginMessageDirectiveProps, PluginMessageDirectiveRegistration, PluginNavPanelProps, PluginNavPanelRegistration, PluginNewThreadPanelActionContext, PluginNewThreadPanelActionRegistration, PluginNewThreadPanelProps, PluginPendingInteractionProps, PluginPendingInteractionRegistration, PluginPendingInteractionView, PluginProviderCapabilities, PluginProviderCompletedTurnDisplay, PluginProviderComposerAction, PluginProviderDeclaration, PluginProviderExtensionKindDeclaration, PluginProviderFallbackModel, PluginProviderIconRegistration, PluginProviderMaintenance, PluginProviderModelCatalogScope, PluginProviderNativeRootEntry, PluginProviderNativeRoots, PluginProviderOptionDescriptor, PluginProviderOptionsContext, PluginProviderPermissionMode, PluginProviderReasoningLevel, PluginProviderStrings, PluginProviders, PluginProvidersState, PluginRealtime, PluginRealtimeConnectionState, PluginRowLabels, PluginRowPresentation, PluginRpc, PluginRpcCallArgs, PluginRpcClient, PluginRpcContract, PluginRpcError, PluginRpcErrorCode, PluginRpcHandlers, PluginRpcIssuePathSegment, PluginRpcMethodContract, PluginRpcResult, PluginRpcValidationIssue, PluginSdkApp, PluginServerAccess, PluginServerApi, PluginSettingDescriptor, PluginSettingDescriptors, PluginSettingValue, PluginSettings, PluginSettingsHandle, PluginSettingsSectionProps, PluginSettingsSectionRegistration, PluginSettingsState, PluginSettingsValues, PluginSharedPortTunnelIdentity, PluginSidebarFooterActionContext, PluginSidebarFooterActionProps, PluginSidebarFooterActionRegistration, PluginSidebarProject, PluginSidebarSection, PluginSidebarSplitLayout, PluginSidebarSplitPane, PluginSidebarThread, PluginSidebarThreadActivity, PluginSidebarThreadDraftState, PluginSidebarThreadIndicator, PluginSidebarThreadRowStatus, PluginSidebarThreadShortcut, PluginSidebarThreadSplit, PluginSidebarThreadSplitOptions, PluginSidebarThreadsState, PluginSourceCodeRendererProps, PluginSourceCodeRendererRegistration, PluginStatusApi, PluginStorage, PluginThreadAction, PluginThreadActionBulkItemInput, PluginThreadActionChoice, PluginThreadActionChoices, PluginThreadActionDataInput, PluginThreadActionEntry, PluginThreadActionItemInput, PluginThreadActionRegistration, PluginThreadActionRegistrationInfo, PluginThreadActionRunInput, PluginThreadActionTarget, PluginThreadActionsContextMenuProps, PluginThreadActionsInlineItem, PluginThreadActionsMenuProps, PluginThreadActionsOptions, PluginThreadActionsTriggerProps, PluginThreadEventHandler, PluginThreadEventName, PluginThreadEventPayloads, PluginThreadHeaderActionProps, PluginThreadHeaderActionRegistration, PluginThreadListProps, PluginThreadListRegistration, PluginThreadStatusGlyphProps, PluginThreadTitleProps, PluginTimelineRendererProps, PluginTimelineRendererRegistration, PluginTimelineRendererRow, PluginTimelineRowPresentation, PluginTimelineRowStatus, PluginTurnFailedEvent, PluginUi, ReadonlyJsonValue, ServerAccessGrant, ServerAccessProviderDeclaration, SourceCodeLineRange, SourceCodeProps, StandardSchemaV1, StandardSchemaV1InferInput, StandardSchemaV1InferOutput, StandardSchemaV1Issue, StandardSchemaV1Result, ThreadChatMessageAction, ThreadChatMessageReference, ThreadChatProps, UrlLinkProps, UseBranchesArgs, UseCheckoutStateArgs };