@jbrowse/app-core 5.0.0-beta.4 → 5.0.0-beta.7

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.
@@ -22,6 +22,7 @@ interface DisplaySelf {
22
22
  regionTooLargeReason?: string;
23
23
  height?: number;
24
24
  error?: unknown;
25
+ renderError?: unknown;
25
26
  }
26
27
  interface TrackSelf extends IStateTreeNode {
27
28
  type: string;
@@ -37,14 +38,350 @@ export declare function undeliveredNotifications(session: AbstractSessionModel):
37
38
  message: string;
38
39
  }[];
39
40
  export declare function waitReady(timeoutMs: number, session?: AbstractSessionModel, root?: ParentNode): Promise<{
41
+ drawer: {
42
+ widget: string | undefined;
43
+ width?: number | undefined;
44
+ note: string;
45
+ };
46
+ dialog: {
47
+ note: string;
48
+ };
49
+ settled: boolean;
50
+ notifications?: {
51
+ level: string;
52
+ message: string;
53
+ }[] | undefined;
54
+ notReady?: ({
55
+ error: string;
56
+ phase?: undefined;
57
+ reason?: undefined;
58
+ viewId: string;
59
+ type: string;
60
+ } | {
61
+ error?: undefined;
62
+ phase: string;
63
+ reason?: undefined;
64
+ viewId: string;
65
+ type: string;
66
+ } | {
67
+ error?: undefined;
68
+ phase?: undefined;
69
+ reason?: undefined;
70
+ viewId: string;
71
+ type: string;
72
+ } | {
73
+ error?: undefined;
74
+ phase: string;
75
+ reason: string;
76
+ viewId: string;
77
+ type: string;
78
+ } | ({
79
+ trackId: string;
80
+ } & Record<"error", unknown>) | ({
81
+ trackId: string;
82
+ } & Record<"phase", unknown>))[] | undefined;
83
+ offscreen?: {
84
+ pageHeight: number;
85
+ windowHeight: number;
86
+ scrollY: number;
87
+ views: {
88
+ viewId: string;
89
+ top: number;
90
+ bottom: number;
91
+ }[];
92
+ note: string;
93
+ } | undefined;
94
+ } | {
95
+ drawer: {
96
+ widget: string | undefined;
97
+ width?: number | undefined;
98
+ note: string;
99
+ };
100
+ dialog?: undefined;
101
+ settled: boolean;
102
+ notifications?: {
103
+ level: string;
104
+ message: string;
105
+ }[] | undefined;
106
+ notReady?: ({
107
+ error: string;
108
+ phase?: undefined;
109
+ reason?: undefined;
110
+ viewId: string;
111
+ type: string;
112
+ } | {
113
+ error?: undefined;
114
+ phase: string;
115
+ reason?: undefined;
116
+ viewId: string;
117
+ type: string;
118
+ } | {
119
+ error?: undefined;
120
+ phase?: undefined;
121
+ reason?: undefined;
122
+ viewId: string;
123
+ type: string;
124
+ } | {
125
+ error?: undefined;
126
+ phase: string;
127
+ reason: string;
128
+ viewId: string;
129
+ type: string;
130
+ } | ({
131
+ trackId: string;
132
+ } & Record<"error", unknown>) | ({
133
+ trackId: string;
134
+ } & Record<"phase", unknown>))[] | undefined;
135
+ offscreen?: {
136
+ pageHeight: number;
137
+ windowHeight: number;
138
+ scrollY: number;
139
+ views: {
140
+ viewId: string;
141
+ top: number;
142
+ bottom: number;
143
+ }[];
144
+ note: string;
145
+ } | undefined;
146
+ } | {
147
+ drawer?: undefined;
148
+ dialog: {
149
+ note: string;
150
+ };
151
+ settled: boolean;
152
+ notifications?: {
153
+ level: string;
154
+ message: string;
155
+ }[] | undefined;
156
+ notReady?: ({
157
+ error: string;
158
+ phase?: undefined;
159
+ reason?: undefined;
160
+ viewId: string;
161
+ type: string;
162
+ } | {
163
+ error?: undefined;
164
+ phase: string;
165
+ reason?: undefined;
166
+ viewId: string;
167
+ type: string;
168
+ } | {
169
+ error?: undefined;
170
+ phase?: undefined;
171
+ reason?: undefined;
172
+ viewId: string;
173
+ type: string;
174
+ } | {
175
+ error?: undefined;
176
+ phase: string;
177
+ reason: string;
178
+ viewId: string;
179
+ type: string;
180
+ } | ({
181
+ trackId: string;
182
+ } & Record<"error", unknown>) | ({
183
+ trackId: string;
184
+ } & Record<"phase", unknown>))[] | undefined;
185
+ offscreen?: {
186
+ pageHeight: number;
187
+ windowHeight: number;
188
+ scrollY: number;
189
+ views: {
190
+ viewId: string;
191
+ top: number;
192
+ bottom: number;
193
+ }[];
194
+ note: string;
195
+ } | undefined;
196
+ } | {
197
+ drawer?: undefined;
198
+ dialog?: undefined;
199
+ settled: boolean;
200
+ notifications?: {
201
+ level: string;
202
+ message: string;
203
+ }[] | undefined;
204
+ notReady?: ({
205
+ error: string;
206
+ phase?: undefined;
207
+ reason?: undefined;
208
+ viewId: string;
209
+ type: string;
210
+ } | {
211
+ error?: undefined;
212
+ phase: string;
213
+ reason?: undefined;
214
+ viewId: string;
215
+ type: string;
216
+ } | {
217
+ error?: undefined;
218
+ phase?: undefined;
219
+ reason?: undefined;
220
+ viewId: string;
221
+ type: string;
222
+ } | {
223
+ error?: undefined;
224
+ phase: string;
225
+ reason: string;
226
+ viewId: string;
227
+ type: string;
228
+ } | ({
229
+ trackId: string;
230
+ } & Record<"error", unknown>) | ({
231
+ trackId: string;
232
+ } & Record<"phase", unknown>))[] | undefined;
233
+ offscreen?: {
234
+ pageHeight: number;
235
+ windowHeight: number;
236
+ scrollY: number;
237
+ views: {
238
+ viewId: string;
239
+ top: number;
240
+ bottom: number;
241
+ }[];
242
+ note: string;
243
+ } | undefined;
244
+ } | {
245
+ drawer: {
246
+ widget: string | undefined;
247
+ width?: number | undefined;
248
+ note: string;
249
+ };
250
+ dialog: {
251
+ note: string;
252
+ };
253
+ settled: boolean;
254
+ note: string;
255
+ notifications?: {
256
+ level: string;
257
+ message: string;
258
+ }[] | undefined;
259
+ notReady?: ({
260
+ error: string;
261
+ phase?: undefined;
262
+ reason?: undefined;
263
+ viewId: string;
264
+ type: string;
265
+ } | {
266
+ error?: undefined;
267
+ phase: string;
268
+ reason?: undefined;
269
+ viewId: string;
270
+ type: string;
271
+ } | {
272
+ error?: undefined;
273
+ phase?: undefined;
274
+ reason?: undefined;
275
+ viewId: string;
276
+ type: string;
277
+ } | {
278
+ error?: undefined;
279
+ phase: string;
280
+ reason: string;
281
+ viewId: string;
282
+ type: string;
283
+ } | ({
284
+ trackId: string;
285
+ } & Record<"error", unknown>) | ({
286
+ trackId: string;
287
+ } & Record<"phase", unknown>))[] | undefined;
288
+ offscreen?: {
289
+ pageHeight: number;
290
+ windowHeight: number;
291
+ scrollY: number;
292
+ views: {
293
+ viewId: string;
294
+ top: number;
295
+ bottom: number;
296
+ }[];
297
+ note: string;
298
+ } | undefined;
299
+ } | {
300
+ drawer: {
301
+ widget: string | undefined;
302
+ width?: number | undefined;
303
+ note: string;
304
+ };
305
+ dialog?: undefined;
306
+ settled: boolean;
307
+ note: string;
308
+ notifications?: {
309
+ level: string;
310
+ message: string;
311
+ }[] | undefined;
312
+ notReady?: ({
313
+ error: string;
314
+ phase?: undefined;
315
+ reason?: undefined;
316
+ viewId: string;
317
+ type: string;
318
+ } | {
319
+ error?: undefined;
320
+ phase: string;
321
+ reason?: undefined;
322
+ viewId: string;
323
+ type: string;
324
+ } | {
325
+ error?: undefined;
326
+ phase?: undefined;
327
+ reason?: undefined;
328
+ viewId: string;
329
+ type: string;
330
+ } | {
331
+ error?: undefined;
332
+ phase: string;
333
+ reason: string;
334
+ viewId: string;
335
+ type: string;
336
+ } | ({
337
+ trackId: string;
338
+ } & Record<"error", unknown>) | ({
339
+ trackId: string;
340
+ } & Record<"phase", unknown>))[] | undefined;
341
+ offscreen?: {
342
+ pageHeight: number;
343
+ windowHeight: number;
344
+ scrollY: number;
345
+ views: {
346
+ viewId: string;
347
+ top: number;
348
+ bottom: number;
349
+ }[];
350
+ note: string;
351
+ } | undefined;
352
+ } | {
353
+ drawer?: undefined;
354
+ dialog: {
355
+ note: string;
356
+ };
40
357
  settled: boolean;
358
+ note: string;
41
359
  notifications?: {
42
360
  level: string;
43
361
  message: string;
44
362
  }[] | undefined;
45
363
  notReady?: ({
46
- error?: string | undefined;
47
- phase?: string | undefined;
364
+ error: string;
365
+ phase?: undefined;
366
+ reason?: undefined;
367
+ viewId: string;
368
+ type: string;
369
+ } | {
370
+ error?: undefined;
371
+ phase: string;
372
+ reason?: undefined;
373
+ viewId: string;
374
+ type: string;
375
+ } | {
376
+ error?: undefined;
377
+ phase?: undefined;
378
+ reason?: undefined;
379
+ viewId: string;
380
+ type: string;
381
+ } | {
382
+ error?: undefined;
383
+ phase: string;
384
+ reason: string;
48
385
  viewId: string;
49
386
  type: string;
50
387
  } | ({
@@ -64,6 +401,8 @@ export declare function waitReady(timeoutMs: number, session?: AbstractSessionMo
64
401
  note: string;
65
402
  } | undefined;
66
403
  } | {
404
+ drawer?: undefined;
405
+ dialog?: undefined;
67
406
  settled: boolean;
68
407
  note: string;
69
408
  notifications?: {
@@ -71,8 +410,27 @@ export declare function waitReady(timeoutMs: number, session?: AbstractSessionMo
71
410
  message: string;
72
411
  }[] | undefined;
73
412
  notReady?: ({
74
- error?: string | undefined;
75
- phase?: string | undefined;
413
+ error: string;
414
+ phase?: undefined;
415
+ reason?: undefined;
416
+ viewId: string;
417
+ type: string;
418
+ } | {
419
+ error?: undefined;
420
+ phase: string;
421
+ reason?: undefined;
422
+ viewId: string;
423
+ type: string;
424
+ } | {
425
+ error?: undefined;
426
+ phase?: undefined;
427
+ reason?: undefined;
428
+ viewId: string;
429
+ type: string;
430
+ } | {
431
+ error?: undefined;
432
+ phase: string;
433
+ reason: string;
76
434
  viewId: string;
77
435
  type: string;
78
436
  } | ({
@@ -105,7 +463,23 @@ interface SlotDescription {
105
463
  }
106
464
  declare function describeSlots(conf: AnyConfigurationModel): Record<string, SlotDescription>;
107
465
  export declare function ensureReExports(): Promise<void>;
108
- export declare function createJbApi(pluginManager: PluginManager): {
466
+ export interface JbApiOptions {
467
+ /**
468
+ * Told about every notification a settle inside this object consumed.
469
+ *
470
+ * A toast is delivered to a caller once, by identity, so a settle is a
471
+ * CONSUMER: `await jb.waitReady(...)` followed by `return 'ok'` used to drop
472
+ * whatever fired during the call, while the MCP envelope goes on promising
473
+ * that every result carries the session's notifications. Desktop passes a
474
+ * sink and merges what it collects into the envelope; jbrowse-web passes
475
+ * none, because in a browser the settle result IS where an agent reads them.
476
+ */
477
+ onNotifications?: (notifications: {
478
+ level: string;
479
+ message: string;
480
+ }[]) => void;
481
+ }
482
+ export declare function createJbApi(pluginManager: PluginManager, options?: JbApiOptions): {
109
483
  help: string;
110
484
  readonly session: AbstractSessionModel;
111
485
  readonly rootModel: import("@jbrowse/core/util").AbstractRootModel | undefined;
@@ -125,14 +499,620 @@ export declare function createJbApi(pluginManager: PluginManager): {
125
499
  createStopToken: typeof createStopToken;
126
500
  stopStopToken: typeof stopStopToken;
127
501
  waitReady: (timeoutMs?: number) => Promise<{
502
+ drawer: {
503
+ widget: string | undefined;
504
+ width?: number | undefined;
505
+ note: string;
506
+ };
507
+ dialog: {
508
+ note: string;
509
+ };
510
+ settled: boolean;
511
+ notifications?: {
512
+ level: string;
513
+ message: string;
514
+ }[] | undefined;
515
+ notReady?: ({
516
+ error: string;
517
+ phase?: undefined;
518
+ reason?: undefined;
519
+ viewId: string;
520
+ type: string;
521
+ } | {
522
+ error?: undefined;
523
+ phase: string;
524
+ reason?: undefined;
525
+ viewId: string;
526
+ type: string;
527
+ } | {
528
+ error?: undefined;
529
+ phase?: undefined;
530
+ reason?: undefined;
531
+ viewId: string;
532
+ type: string;
533
+ } | {
534
+ error?: undefined;
535
+ phase: string;
536
+ reason: string;
537
+ viewId: string;
538
+ type: string;
539
+ } | ({
540
+ trackId: string;
541
+ } & Record<"error", unknown>) | ({
542
+ trackId: string;
543
+ } & Record<"phase", unknown>))[] | undefined;
544
+ offscreen?: {
545
+ pageHeight: number;
546
+ windowHeight: number;
547
+ scrollY: number;
548
+ views: {
549
+ viewId: string;
550
+ top: number;
551
+ bottom: number;
552
+ }[];
553
+ note: string;
554
+ } | undefined;
555
+ } | {
556
+ drawer: {
557
+ widget: string | undefined;
558
+ width?: number | undefined;
559
+ note: string;
560
+ };
561
+ dialog?: undefined;
562
+ settled: boolean;
563
+ notifications?: {
564
+ level: string;
565
+ message: string;
566
+ }[] | undefined;
567
+ notReady?: ({
568
+ error: string;
569
+ phase?: undefined;
570
+ reason?: undefined;
571
+ viewId: string;
572
+ type: string;
573
+ } | {
574
+ error?: undefined;
575
+ phase: string;
576
+ reason?: undefined;
577
+ viewId: string;
578
+ type: string;
579
+ } | {
580
+ error?: undefined;
581
+ phase?: undefined;
582
+ reason?: undefined;
583
+ viewId: string;
584
+ type: string;
585
+ } | {
586
+ error?: undefined;
587
+ phase: string;
588
+ reason: string;
589
+ viewId: string;
590
+ type: string;
591
+ } | ({
592
+ trackId: string;
593
+ } & Record<"error", unknown>) | ({
594
+ trackId: string;
595
+ } & Record<"phase", unknown>))[] | undefined;
596
+ offscreen?: {
597
+ pageHeight: number;
598
+ windowHeight: number;
599
+ scrollY: number;
600
+ views: {
601
+ viewId: string;
602
+ top: number;
603
+ bottom: number;
604
+ }[];
605
+ note: string;
606
+ } | undefined;
607
+ } | {
608
+ drawer?: undefined;
609
+ dialog: {
610
+ note: string;
611
+ };
612
+ settled: boolean;
613
+ notifications?: {
614
+ level: string;
615
+ message: string;
616
+ }[] | undefined;
617
+ notReady?: ({
618
+ error: string;
619
+ phase?: undefined;
620
+ reason?: undefined;
621
+ viewId: string;
622
+ type: string;
623
+ } | {
624
+ error?: undefined;
625
+ phase: string;
626
+ reason?: undefined;
627
+ viewId: string;
628
+ type: string;
629
+ } | {
630
+ error?: undefined;
631
+ phase?: undefined;
632
+ reason?: undefined;
633
+ viewId: string;
634
+ type: string;
635
+ } | {
636
+ error?: undefined;
637
+ phase: string;
638
+ reason: string;
639
+ viewId: string;
640
+ type: string;
641
+ } | ({
642
+ trackId: string;
643
+ } & Record<"error", unknown>) | ({
644
+ trackId: string;
645
+ } & Record<"phase", unknown>))[] | undefined;
646
+ offscreen?: {
647
+ pageHeight: number;
648
+ windowHeight: number;
649
+ scrollY: number;
650
+ views: {
651
+ viewId: string;
652
+ top: number;
653
+ bottom: number;
654
+ }[];
655
+ note: string;
656
+ } | undefined;
657
+ } | {
658
+ drawer?: undefined;
659
+ dialog?: undefined;
660
+ settled: boolean;
661
+ notifications?: {
662
+ level: string;
663
+ message: string;
664
+ }[] | undefined;
665
+ notReady?: ({
666
+ error: string;
667
+ phase?: undefined;
668
+ reason?: undefined;
669
+ viewId: string;
670
+ type: string;
671
+ } | {
672
+ error?: undefined;
673
+ phase: string;
674
+ reason?: undefined;
675
+ viewId: string;
676
+ type: string;
677
+ } | {
678
+ error?: undefined;
679
+ phase?: undefined;
680
+ reason?: undefined;
681
+ viewId: string;
682
+ type: string;
683
+ } | {
684
+ error?: undefined;
685
+ phase: string;
686
+ reason: string;
687
+ viewId: string;
688
+ type: string;
689
+ } | ({
690
+ trackId: string;
691
+ } & Record<"error", unknown>) | ({
692
+ trackId: string;
693
+ } & Record<"phase", unknown>))[] | undefined;
694
+ offscreen?: {
695
+ pageHeight: number;
696
+ windowHeight: number;
697
+ scrollY: number;
698
+ views: {
699
+ viewId: string;
700
+ top: number;
701
+ bottom: number;
702
+ }[];
703
+ note: string;
704
+ } | undefined;
705
+ } | {
706
+ drawer: {
707
+ widget: string | undefined;
708
+ width?: number | undefined;
709
+ note: string;
710
+ };
711
+ dialog: {
712
+ note: string;
713
+ };
714
+ settled: boolean;
715
+ note: string;
716
+ notifications?: {
717
+ level: string;
718
+ message: string;
719
+ }[] | undefined;
720
+ notReady?: ({
721
+ error: string;
722
+ phase?: undefined;
723
+ reason?: undefined;
724
+ viewId: string;
725
+ type: string;
726
+ } | {
727
+ error?: undefined;
728
+ phase: string;
729
+ reason?: undefined;
730
+ viewId: string;
731
+ type: string;
732
+ } | {
733
+ error?: undefined;
734
+ phase?: undefined;
735
+ reason?: undefined;
736
+ viewId: string;
737
+ type: string;
738
+ } | {
739
+ error?: undefined;
740
+ phase: string;
741
+ reason: string;
742
+ viewId: string;
743
+ type: string;
744
+ } | ({
745
+ trackId: string;
746
+ } & Record<"error", unknown>) | ({
747
+ trackId: string;
748
+ } & Record<"phase", unknown>))[] | undefined;
749
+ offscreen?: {
750
+ pageHeight: number;
751
+ windowHeight: number;
752
+ scrollY: number;
753
+ views: {
754
+ viewId: string;
755
+ top: number;
756
+ bottom: number;
757
+ }[];
758
+ note: string;
759
+ } | undefined;
760
+ } | {
761
+ drawer: {
762
+ widget: string | undefined;
763
+ width?: number | undefined;
764
+ note: string;
765
+ };
766
+ dialog?: undefined;
767
+ settled: boolean;
768
+ note: string;
769
+ notifications?: {
770
+ level: string;
771
+ message: string;
772
+ }[] | undefined;
773
+ notReady?: ({
774
+ error: string;
775
+ phase?: undefined;
776
+ reason?: undefined;
777
+ viewId: string;
778
+ type: string;
779
+ } | {
780
+ error?: undefined;
781
+ phase: string;
782
+ reason?: undefined;
783
+ viewId: string;
784
+ type: string;
785
+ } | {
786
+ error?: undefined;
787
+ phase?: undefined;
788
+ reason?: undefined;
789
+ viewId: string;
790
+ type: string;
791
+ } | {
792
+ error?: undefined;
793
+ phase: string;
794
+ reason: string;
795
+ viewId: string;
796
+ type: string;
797
+ } | ({
798
+ trackId: string;
799
+ } & Record<"error", unknown>) | ({
800
+ trackId: string;
801
+ } & Record<"phase", unknown>))[] | undefined;
802
+ offscreen?: {
803
+ pageHeight: number;
804
+ windowHeight: number;
805
+ scrollY: number;
806
+ views: {
807
+ viewId: string;
808
+ top: number;
809
+ bottom: number;
810
+ }[];
811
+ note: string;
812
+ } | undefined;
813
+ } | {
814
+ drawer?: undefined;
815
+ dialog: {
816
+ note: string;
817
+ };
818
+ settled: boolean;
819
+ note: string;
820
+ notifications?: {
821
+ level: string;
822
+ message: string;
823
+ }[] | undefined;
824
+ notReady?: ({
825
+ error: string;
826
+ phase?: undefined;
827
+ reason?: undefined;
828
+ viewId: string;
829
+ type: string;
830
+ } | {
831
+ error?: undefined;
832
+ phase: string;
833
+ reason?: undefined;
834
+ viewId: string;
835
+ type: string;
836
+ } | {
837
+ error?: undefined;
838
+ phase?: undefined;
839
+ reason?: undefined;
840
+ viewId: string;
841
+ type: string;
842
+ } | {
843
+ error?: undefined;
844
+ phase: string;
845
+ reason: string;
846
+ viewId: string;
847
+ type: string;
848
+ } | ({
849
+ trackId: string;
850
+ } & Record<"error", unknown>) | ({
851
+ trackId: string;
852
+ } & Record<"phase", unknown>))[] | undefined;
853
+ offscreen?: {
854
+ pageHeight: number;
855
+ windowHeight: number;
856
+ scrollY: number;
857
+ views: {
858
+ viewId: string;
859
+ top: number;
860
+ bottom: number;
861
+ }[];
862
+ note: string;
863
+ } | undefined;
864
+ } | {
865
+ drawer?: undefined;
866
+ dialog?: undefined;
867
+ settled: boolean;
868
+ note: string;
869
+ notifications?: {
870
+ level: string;
871
+ message: string;
872
+ }[] | undefined;
873
+ notReady?: ({
874
+ error: string;
875
+ phase?: undefined;
876
+ reason?: undefined;
877
+ viewId: string;
878
+ type: string;
879
+ } | {
880
+ error?: undefined;
881
+ phase: string;
882
+ reason?: undefined;
883
+ viewId: string;
884
+ type: string;
885
+ } | {
886
+ error?: undefined;
887
+ phase?: undefined;
888
+ reason?: undefined;
889
+ viewId: string;
890
+ type: string;
891
+ } | {
892
+ error?: undefined;
893
+ phase: string;
894
+ reason: string;
895
+ viewId: string;
896
+ type: string;
897
+ } | ({
898
+ trackId: string;
899
+ } & Record<"error", unknown>) | ({
900
+ trackId: string;
901
+ } & Record<"phase", unknown>))[] | undefined;
902
+ offscreen?: {
903
+ pageHeight: number;
904
+ windowHeight: number;
905
+ scrollY: number;
906
+ views: {
907
+ viewId: string;
908
+ top: number;
909
+ bottom: number;
910
+ }[];
911
+ note: string;
912
+ } | undefined;
913
+ }>;
914
+ sessionSummary: () => {
915
+ drawer: {
916
+ widget: string | undefined;
917
+ width?: number | undefined;
918
+ note: string;
919
+ };
920
+ dialog: {
921
+ note: string;
922
+ };
923
+ name: string;
924
+ assemblyNames: string[];
925
+ views: Record<string, unknown>[];
926
+ } | {
927
+ drawer: {
928
+ widget: string | undefined;
929
+ width?: number | undefined;
930
+ note: string;
931
+ };
932
+ dialog?: undefined;
933
+ name: string;
934
+ assemblyNames: string[];
935
+ views: Record<string, unknown>[];
936
+ } | {
937
+ drawer?: undefined;
938
+ dialog: {
939
+ note: string;
940
+ };
941
+ name: string;
942
+ assemblyNames: string[];
943
+ views: Record<string, unknown>[];
944
+ } | {
945
+ drawer?: undefined;
946
+ dialog?: undefined;
947
+ name: string;
948
+ assemblyNames: string[];
949
+ views: Record<string, unknown>[];
950
+ };
951
+ inspect: (path?: string, maxInspectBytes?: number) => {
952
+ path: string;
953
+ modelType?: string | undefined;
954
+ bytes: number;
955
+ getters?: string[] | undefined;
956
+ actions?: string[] | undefined;
957
+ value: unknown;
958
+ } | {
959
+ path: string;
960
+ modelType?: string | undefined;
961
+ bytes: number;
962
+ getters?: string[] | undefined;
963
+ actions?: string[] | undefined;
964
+ note: string;
965
+ items: string[];
966
+ } | {
967
+ path: string;
968
+ modelType?: string | undefined;
969
+ bytes: number;
970
+ getters?: string[] | undefined;
971
+ actions?: string[] | undefined;
972
+ note: string;
973
+ keys: {
974
+ [k: string]: string;
975
+ };
976
+ };
977
+ listTracks: (search?: string, limit?: number) => {
978
+ total: number;
979
+ note?: string | undefined;
980
+ tracks: {
981
+ trackId: any;
982
+ name: string;
983
+ type: any;
984
+ adapterType?: any;
985
+ assemblyNames: string[];
986
+ }[];
987
+ };
988
+ view: (viewId?: string) => AbstractViewModel;
989
+ trackModel: (trackId: string, viewId?: string) => TrackSelf;
990
+ visibleRegions: (viewId?: string) => Promise<JbRegion[]>;
991
+ loadSessionSpec: (spec: Record<string, unknown>, settleMs?: number) => Promise<{
992
+ drawer: {
993
+ widget: string | undefined;
994
+ width?: number | undefined;
995
+ note: string;
996
+ };
997
+ dialog: {
998
+ note: string;
999
+ };
1000
+ settled: boolean;
1001
+ notifications?: {
1002
+ level: string;
1003
+ message: string;
1004
+ }[] | undefined;
1005
+ notReady?: ({
1006
+ error: string;
1007
+ phase?: undefined;
1008
+ reason?: undefined;
1009
+ viewId: string;
1010
+ type: string;
1011
+ } | {
1012
+ error?: undefined;
1013
+ phase: string;
1014
+ reason?: undefined;
1015
+ viewId: string;
1016
+ type: string;
1017
+ } | {
1018
+ error?: undefined;
1019
+ phase?: undefined;
1020
+ reason?: undefined;
1021
+ viewId: string;
1022
+ type: string;
1023
+ } | {
1024
+ error?: undefined;
1025
+ phase: string;
1026
+ reason: string;
1027
+ viewId: string;
1028
+ type: string;
1029
+ } | ({
1030
+ trackId: string;
1031
+ } & Record<"error", unknown>) | ({
1032
+ trackId: string;
1033
+ } & Record<"phase", unknown>))[] | undefined;
1034
+ offscreen?: {
1035
+ pageHeight: number;
1036
+ windowHeight: number;
1037
+ scrollY: number;
1038
+ views: {
1039
+ viewId: string;
1040
+ top: number;
1041
+ bottom: number;
1042
+ }[];
1043
+ note: string;
1044
+ } | undefined;
1045
+ session?: {
1046
+ drawer: {
1047
+ widget: string | undefined;
1048
+ width?: number | undefined;
1049
+ note: string;
1050
+ };
1051
+ dialog: {
1052
+ note: string;
1053
+ };
1054
+ name: string;
1055
+ assemblyNames: string[];
1056
+ views: Record<string, unknown>[];
1057
+ } | {
1058
+ drawer: {
1059
+ widget: string | undefined;
1060
+ width?: number | undefined;
1061
+ note: string;
1062
+ };
1063
+ dialog?: undefined;
1064
+ name: string;
1065
+ assemblyNames: string[];
1066
+ views: Record<string, unknown>[];
1067
+ } | {
1068
+ drawer?: undefined;
1069
+ dialog: {
1070
+ note: string;
1071
+ };
1072
+ name: string;
1073
+ assemblyNames: string[];
1074
+ views: Record<string, unknown>[];
1075
+ } | {
1076
+ drawer?: undefined;
1077
+ dialog?: undefined;
1078
+ name: string;
1079
+ assemblyNames: string[];
1080
+ views: Record<string, unknown>[];
1081
+ } | undefined;
1082
+ } | {
1083
+ drawer: {
1084
+ widget: string | undefined;
1085
+ width?: number | undefined;
1086
+ note: string;
1087
+ };
1088
+ dialog?: undefined;
128
1089
  settled: boolean;
129
1090
  notifications?: {
130
1091
  level: string;
131
1092
  message: string;
132
1093
  }[] | undefined;
133
1094
  notReady?: ({
134
- error?: string | undefined;
135
- phase?: string | undefined;
1095
+ error: string;
1096
+ phase?: undefined;
1097
+ reason?: undefined;
1098
+ viewId: string;
1099
+ type: string;
1100
+ } | {
1101
+ error?: undefined;
1102
+ phase: string;
1103
+ reason?: undefined;
1104
+ viewId: string;
1105
+ type: string;
1106
+ } | {
1107
+ error?: undefined;
1108
+ phase?: undefined;
1109
+ reason?: undefined;
1110
+ viewId: string;
1111
+ type: string;
1112
+ } | {
1113
+ error?: undefined;
1114
+ phase: string;
1115
+ reason: string;
136
1116
  viewId: string;
137
1117
  type: string;
138
1118
  } | ({
@@ -151,16 +1131,75 @@ export declare function createJbApi(pluginManager: PluginManager): {
151
1131
  }[];
152
1132
  note: string;
153
1133
  } | undefined;
1134
+ session?: {
1135
+ drawer: {
1136
+ widget: string | undefined;
1137
+ width?: number | undefined;
1138
+ note: string;
1139
+ };
1140
+ dialog: {
1141
+ note: string;
1142
+ };
1143
+ name: string;
1144
+ assemblyNames: string[];
1145
+ views: Record<string, unknown>[];
1146
+ } | {
1147
+ drawer: {
1148
+ widget: string | undefined;
1149
+ width?: number | undefined;
1150
+ note: string;
1151
+ };
1152
+ dialog?: undefined;
1153
+ name: string;
1154
+ assemblyNames: string[];
1155
+ views: Record<string, unknown>[];
1156
+ } | {
1157
+ drawer?: undefined;
1158
+ dialog: {
1159
+ note: string;
1160
+ };
1161
+ name: string;
1162
+ assemblyNames: string[];
1163
+ views: Record<string, unknown>[];
1164
+ } | {
1165
+ drawer?: undefined;
1166
+ dialog?: undefined;
1167
+ name: string;
1168
+ assemblyNames: string[];
1169
+ views: Record<string, unknown>[];
1170
+ } | undefined;
154
1171
  } | {
1172
+ drawer?: undefined;
1173
+ dialog: {
1174
+ note: string;
1175
+ };
155
1176
  settled: boolean;
156
- note: string;
157
1177
  notifications?: {
158
1178
  level: string;
159
1179
  message: string;
160
1180
  }[] | undefined;
161
1181
  notReady?: ({
162
- error?: string | undefined;
163
- phase?: string | undefined;
1182
+ error: string;
1183
+ phase?: undefined;
1184
+ reason?: undefined;
1185
+ viewId: string;
1186
+ type: string;
1187
+ } | {
1188
+ error?: undefined;
1189
+ phase: string;
1190
+ reason?: undefined;
1191
+ viewId: string;
1192
+ type: string;
1193
+ } | {
1194
+ error?: undefined;
1195
+ phase?: undefined;
1196
+ reason?: undefined;
1197
+ viewId: string;
1198
+ type: string;
1199
+ } | {
1200
+ error?: undefined;
1201
+ phase: string;
1202
+ reason: string;
164
1203
  viewId: string;
165
1204
  type: string;
166
1205
  } | ({
@@ -179,61 +1218,343 @@ export declare function createJbApi(pluginManager: PluginManager): {
179
1218
  }[];
180
1219
  note: string;
181
1220
  } | undefined;
182
- }>;
183
- sessionSummary: () => {
184
- name: string;
185
- assemblyNames: string[];
186
- views: Record<string, unknown>[];
187
- };
188
- inspect: (path?: string, maxInspectBytes?: number) => {
189
- path: string;
190
- modelType?: string | undefined;
191
- bytes: number;
192
- getters?: string[] | undefined;
193
- actions?: string[] | undefined;
194
- value: unknown;
1221
+ session?: {
1222
+ drawer: {
1223
+ widget: string | undefined;
1224
+ width?: number | undefined;
1225
+ note: string;
1226
+ };
1227
+ dialog: {
1228
+ note: string;
1229
+ };
1230
+ name: string;
1231
+ assemblyNames: string[];
1232
+ views: Record<string, unknown>[];
1233
+ } | {
1234
+ drawer: {
1235
+ widget: string | undefined;
1236
+ width?: number | undefined;
1237
+ note: string;
1238
+ };
1239
+ dialog?: undefined;
1240
+ name: string;
1241
+ assemblyNames: string[];
1242
+ views: Record<string, unknown>[];
1243
+ } | {
1244
+ drawer?: undefined;
1245
+ dialog: {
1246
+ note: string;
1247
+ };
1248
+ name: string;
1249
+ assemblyNames: string[];
1250
+ views: Record<string, unknown>[];
1251
+ } | {
1252
+ drawer?: undefined;
1253
+ dialog?: undefined;
1254
+ name: string;
1255
+ assemblyNames: string[];
1256
+ views: Record<string, unknown>[];
1257
+ } | undefined;
195
1258
  } | {
196
- path: string;
197
- modelType?: string | undefined;
198
- bytes: number;
199
- getters?: string[] | undefined;
200
- actions?: string[] | undefined;
201
- note: string;
202
- items: string[];
1259
+ drawer?: undefined;
1260
+ dialog?: undefined;
1261
+ settled: boolean;
1262
+ notifications?: {
1263
+ level: string;
1264
+ message: string;
1265
+ }[] | undefined;
1266
+ notReady?: ({
1267
+ error: string;
1268
+ phase?: undefined;
1269
+ reason?: undefined;
1270
+ viewId: string;
1271
+ type: string;
1272
+ } | {
1273
+ error?: undefined;
1274
+ phase: string;
1275
+ reason?: undefined;
1276
+ viewId: string;
1277
+ type: string;
1278
+ } | {
1279
+ error?: undefined;
1280
+ phase?: undefined;
1281
+ reason?: undefined;
1282
+ viewId: string;
1283
+ type: string;
1284
+ } | {
1285
+ error?: undefined;
1286
+ phase: string;
1287
+ reason: string;
1288
+ viewId: string;
1289
+ type: string;
1290
+ } | ({
1291
+ trackId: string;
1292
+ } & Record<"error", unknown>) | ({
1293
+ trackId: string;
1294
+ } & Record<"phase", unknown>))[] | undefined;
1295
+ offscreen?: {
1296
+ pageHeight: number;
1297
+ windowHeight: number;
1298
+ scrollY: number;
1299
+ views: {
1300
+ viewId: string;
1301
+ top: number;
1302
+ bottom: number;
1303
+ }[];
1304
+ note: string;
1305
+ } | undefined;
1306
+ session?: {
1307
+ drawer: {
1308
+ widget: string | undefined;
1309
+ width?: number | undefined;
1310
+ note: string;
1311
+ };
1312
+ dialog: {
1313
+ note: string;
1314
+ };
1315
+ name: string;
1316
+ assemblyNames: string[];
1317
+ views: Record<string, unknown>[];
1318
+ } | {
1319
+ drawer: {
1320
+ widget: string | undefined;
1321
+ width?: number | undefined;
1322
+ note: string;
1323
+ };
1324
+ dialog?: undefined;
1325
+ name: string;
1326
+ assemblyNames: string[];
1327
+ views: Record<string, unknown>[];
1328
+ } | {
1329
+ drawer?: undefined;
1330
+ dialog: {
1331
+ note: string;
1332
+ };
1333
+ name: string;
1334
+ assemblyNames: string[];
1335
+ views: Record<string, unknown>[];
1336
+ } | {
1337
+ drawer?: undefined;
1338
+ dialog?: undefined;
1339
+ name: string;
1340
+ assemblyNames: string[];
1341
+ views: Record<string, unknown>[];
1342
+ } | undefined;
203
1343
  } | {
204
- path: string;
205
- modelType?: string | undefined;
206
- bytes: number;
207
- getters?: string[] | undefined;
208
- actions?: string[] | undefined;
1344
+ drawer: {
1345
+ widget: string | undefined;
1346
+ width?: number | undefined;
1347
+ note: string;
1348
+ };
1349
+ dialog: {
1350
+ note: string;
1351
+ };
1352
+ settled: boolean;
209
1353
  note: string;
210
- keys: {
211
- [k: string]: string;
1354
+ notifications?: {
1355
+ level: string;
1356
+ message: string;
1357
+ }[] | undefined;
1358
+ notReady?: ({
1359
+ error: string;
1360
+ phase?: undefined;
1361
+ reason?: undefined;
1362
+ viewId: string;
1363
+ type: string;
1364
+ } | {
1365
+ error?: undefined;
1366
+ phase: string;
1367
+ reason?: undefined;
1368
+ viewId: string;
1369
+ type: string;
1370
+ } | {
1371
+ error?: undefined;
1372
+ phase?: undefined;
1373
+ reason?: undefined;
1374
+ viewId: string;
1375
+ type: string;
1376
+ } | {
1377
+ error?: undefined;
1378
+ phase: string;
1379
+ reason: string;
1380
+ viewId: string;
1381
+ type: string;
1382
+ } | ({
1383
+ trackId: string;
1384
+ } & Record<"error", unknown>) | ({
1385
+ trackId: string;
1386
+ } & Record<"phase", unknown>))[] | undefined;
1387
+ offscreen?: {
1388
+ pageHeight: number;
1389
+ windowHeight: number;
1390
+ scrollY: number;
1391
+ views: {
1392
+ viewId: string;
1393
+ top: number;
1394
+ bottom: number;
1395
+ }[];
1396
+ note: string;
1397
+ } | undefined;
1398
+ session?: {
1399
+ drawer: {
1400
+ widget: string | undefined;
1401
+ width?: number | undefined;
1402
+ note: string;
1403
+ };
1404
+ dialog: {
1405
+ note: string;
1406
+ };
1407
+ name: string;
1408
+ assemblyNames: string[];
1409
+ views: Record<string, unknown>[];
1410
+ } | {
1411
+ drawer: {
1412
+ widget: string | undefined;
1413
+ width?: number | undefined;
1414
+ note: string;
1415
+ };
1416
+ dialog?: undefined;
1417
+ name: string;
1418
+ assemblyNames: string[];
1419
+ views: Record<string, unknown>[];
1420
+ } | {
1421
+ drawer?: undefined;
1422
+ dialog: {
1423
+ note: string;
1424
+ };
1425
+ name: string;
1426
+ assemblyNames: string[];
1427
+ views: Record<string, unknown>[];
1428
+ } | {
1429
+ drawer?: undefined;
1430
+ dialog?: undefined;
1431
+ name: string;
1432
+ assemblyNames: string[];
1433
+ views: Record<string, unknown>[];
1434
+ } | undefined;
1435
+ } | {
1436
+ drawer: {
1437
+ widget: string | undefined;
1438
+ width?: number | undefined;
1439
+ note: string;
212
1440
  };
213
- };
214
- listTracks: (search?: string, limit?: number) => {
215
- total: number;
216
- note?: string | undefined;
217
- tracks: {
218
- trackId: any;
1441
+ dialog?: undefined;
1442
+ settled: boolean;
1443
+ note: string;
1444
+ notifications?: {
1445
+ level: string;
1446
+ message: string;
1447
+ }[] | undefined;
1448
+ notReady?: ({
1449
+ error: string;
1450
+ phase?: undefined;
1451
+ reason?: undefined;
1452
+ viewId: string;
1453
+ type: string;
1454
+ } | {
1455
+ error?: undefined;
1456
+ phase: string;
1457
+ reason?: undefined;
1458
+ viewId: string;
1459
+ type: string;
1460
+ } | {
1461
+ error?: undefined;
1462
+ phase?: undefined;
1463
+ reason?: undefined;
1464
+ viewId: string;
1465
+ type: string;
1466
+ } | {
1467
+ error?: undefined;
1468
+ phase: string;
1469
+ reason: string;
1470
+ viewId: string;
1471
+ type: string;
1472
+ } | ({
1473
+ trackId: string;
1474
+ } & Record<"error", unknown>) | ({
1475
+ trackId: string;
1476
+ } & Record<"phase", unknown>))[] | undefined;
1477
+ offscreen?: {
1478
+ pageHeight: number;
1479
+ windowHeight: number;
1480
+ scrollY: number;
1481
+ views: {
1482
+ viewId: string;
1483
+ top: number;
1484
+ bottom: number;
1485
+ }[];
1486
+ note: string;
1487
+ } | undefined;
1488
+ session?: {
1489
+ drawer: {
1490
+ widget: string | undefined;
1491
+ width?: number | undefined;
1492
+ note: string;
1493
+ };
1494
+ dialog: {
1495
+ note: string;
1496
+ };
219
1497
  name: string;
220
- type: any;
221
- adapterType?: any;
222
1498
  assemblyNames: string[];
223
- }[];
224
- };
225
- view: (viewId?: string) => AbstractViewModel;
226
- trackModel: (trackId: string, viewId?: string) => TrackSelf;
227
- visibleRegions: (viewId?: string) => Promise<JbRegion[]>;
228
- loadSessionSpec: (spec: Record<string, unknown>, settleMs?: number) => Promise<{
1499
+ views: Record<string, unknown>[];
1500
+ } | {
1501
+ drawer: {
1502
+ widget: string | undefined;
1503
+ width?: number | undefined;
1504
+ note: string;
1505
+ };
1506
+ dialog?: undefined;
1507
+ name: string;
1508
+ assemblyNames: string[];
1509
+ views: Record<string, unknown>[];
1510
+ } | {
1511
+ drawer?: undefined;
1512
+ dialog: {
1513
+ note: string;
1514
+ };
1515
+ name: string;
1516
+ assemblyNames: string[];
1517
+ views: Record<string, unknown>[];
1518
+ } | {
1519
+ drawer?: undefined;
1520
+ dialog?: undefined;
1521
+ name: string;
1522
+ assemblyNames: string[];
1523
+ views: Record<string, unknown>[];
1524
+ } | undefined;
1525
+ } | {
1526
+ drawer?: undefined;
1527
+ dialog: {
1528
+ note: string;
1529
+ };
229
1530
  settled: boolean;
1531
+ note: string;
230
1532
  notifications?: {
231
1533
  level: string;
232
1534
  message: string;
233
1535
  }[] | undefined;
234
1536
  notReady?: ({
235
- error?: string | undefined;
236
- phase?: string | undefined;
1537
+ error: string;
1538
+ phase?: undefined;
1539
+ reason?: undefined;
1540
+ viewId: string;
1541
+ type: string;
1542
+ } | {
1543
+ error?: undefined;
1544
+ phase: string;
1545
+ reason?: undefined;
1546
+ viewId: string;
1547
+ type: string;
1548
+ } | {
1549
+ error?: undefined;
1550
+ phase?: undefined;
1551
+ reason?: undefined;
1552
+ viewId: string;
1553
+ type: string;
1554
+ } | {
1555
+ error?: undefined;
1556
+ phase: string;
1557
+ reason: string;
237
1558
  viewId: string;
238
1559
  type: string;
239
1560
  } | ({
@@ -253,11 +1574,45 @@ export declare function createJbApi(pluginManager: PluginManager): {
253
1574
  note: string;
254
1575
  } | undefined;
255
1576
  session?: {
1577
+ drawer: {
1578
+ widget: string | undefined;
1579
+ width?: number | undefined;
1580
+ note: string;
1581
+ };
1582
+ dialog: {
1583
+ note: string;
1584
+ };
1585
+ name: string;
1586
+ assemblyNames: string[];
1587
+ views: Record<string, unknown>[];
1588
+ } | {
1589
+ drawer: {
1590
+ widget: string | undefined;
1591
+ width?: number | undefined;
1592
+ note: string;
1593
+ };
1594
+ dialog?: undefined;
1595
+ name: string;
1596
+ assemblyNames: string[];
1597
+ views: Record<string, unknown>[];
1598
+ } | {
1599
+ drawer?: undefined;
1600
+ dialog: {
1601
+ note: string;
1602
+ };
1603
+ name: string;
1604
+ assemblyNames: string[];
1605
+ views: Record<string, unknown>[];
1606
+ } | {
1607
+ drawer?: undefined;
1608
+ dialog?: undefined;
256
1609
  name: string;
257
1610
  assemblyNames: string[];
258
1611
  views: Record<string, unknown>[];
259
1612
  } | undefined;
260
1613
  } | {
1614
+ drawer?: undefined;
1615
+ dialog?: undefined;
261
1616
  settled: boolean;
262
1617
  note: string;
263
1618
  notifications?: {
@@ -265,8 +1620,27 @@ export declare function createJbApi(pluginManager: PluginManager): {
265
1620
  message: string;
266
1621
  }[] | undefined;
267
1622
  notReady?: ({
268
- error?: string | undefined;
269
- phase?: string | undefined;
1623
+ error: string;
1624
+ phase?: undefined;
1625
+ reason?: undefined;
1626
+ viewId: string;
1627
+ type: string;
1628
+ } | {
1629
+ error?: undefined;
1630
+ phase: string;
1631
+ reason?: undefined;
1632
+ viewId: string;
1633
+ type: string;
1634
+ } | {
1635
+ error?: undefined;
1636
+ phase?: undefined;
1637
+ reason?: undefined;
1638
+ viewId: string;
1639
+ type: string;
1640
+ } | {
1641
+ error?: undefined;
1642
+ phase: string;
1643
+ reason: string;
270
1644
  viewId: string;
271
1645
  type: string;
272
1646
  } | ({
@@ -286,6 +1660,38 @@ export declare function createJbApi(pluginManager: PluginManager): {
286
1660
  note: string;
287
1661
  } | undefined;
288
1662
  session?: {
1663
+ drawer: {
1664
+ widget: string | undefined;
1665
+ width?: number | undefined;
1666
+ note: string;
1667
+ };
1668
+ dialog: {
1669
+ note: string;
1670
+ };
1671
+ name: string;
1672
+ assemblyNames: string[];
1673
+ views: Record<string, unknown>[];
1674
+ } | {
1675
+ drawer: {
1676
+ widget: string | undefined;
1677
+ width?: number | undefined;
1678
+ note: string;
1679
+ };
1680
+ dialog?: undefined;
1681
+ name: string;
1682
+ assemblyNames: string[];
1683
+ views: Record<string, unknown>[];
1684
+ } | {
1685
+ drawer?: undefined;
1686
+ dialog: {
1687
+ note: string;
1688
+ };
1689
+ name: string;
1690
+ assemblyNames: string[];
1691
+ views: Record<string, unknown>[];
1692
+ } | {
1693
+ drawer?: undefined;
1694
+ dialog?: undefined;
289
1695
  name: string;
290
1696
  assemblyNames: string[];
291
1697
  views: Record<string, unknown>[];