@okf/ootils 1.39.0 → 1.39.2

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.
@@ -486,7 +486,7 @@ declare namespace BASE_BULLMQ_CONFIG {
486
486
  }
487
487
  export { workerConfig_4 as workerConfig };
488
488
  }
489
- namespace AI_CATEGORIZE_QUEUE {
489
+ namespace AI_AUTO_ANNOTATE_QUEUE {
490
490
  let id_5: string;
491
491
  export { id_5 as id };
492
492
  export namespace queueConfig_5 {
@@ -523,17 +523,10 @@ declare namespace BASE_BULLMQ_CONFIG {
523
523
  export { lockDuration_5 as lockDuration };
524
524
  let maxStalledCount_5: number;
525
525
  export { maxStalledCount_5 as maxStalledCount };
526
- export namespace limiter_2 {
527
- let max_2: number;
528
- export { max_2 as max };
529
- let duration_2: number;
530
- export { duration_2 as duration };
531
- }
532
- export { limiter_2 as limiter };
533
526
  }
534
527
  export { workerConfig_5 as workerConfig };
535
528
  }
536
- namespace SENTIMENT_AND_NER_QUEUE {
529
+ namespace AI_AUTO_ANNOTATE_CHUNK_QUEUE {
537
530
  let id_6: string;
538
531
  export { id_6 as id };
539
532
  export namespace queueConfig_6 {
@@ -570,17 +563,10 @@ declare namespace BASE_BULLMQ_CONFIG {
570
563
  export { lockDuration_6 as lockDuration };
571
564
  let maxStalledCount_6: number;
572
565
  export { maxStalledCount_6 as maxStalledCount };
573
- export namespace limiter_3 {
574
- let max_3: number;
575
- export { max_3 as max };
576
- let duration_3: number;
577
- export { duration_3 as duration };
578
- }
579
- export { limiter_3 as limiter };
580
566
  }
581
567
  export { workerConfig_6 as workerConfig };
582
568
  }
583
- namespace AI_AUTO_ANNOTATE_QUEUE {
569
+ namespace ANNOS_ELASTIC_SYNC_QUEUE {
584
570
  let id_7: string;
585
571
  export { id_7 as id };
586
572
  export namespace queueConfig_7 {
@@ -620,7 +606,7 @@ declare namespace BASE_BULLMQ_CONFIG {
620
606
  }
621
607
  export { workerConfig_7 as workerConfig };
622
608
  }
623
- namespace AI_AUTO_ANNOTATE_CHUNK_QUEUE {
609
+ namespace CHUNKS_ELASTIC_SYNC_QUEUE {
624
610
  let id_8: string;
625
611
  export { id_8 as id };
626
612
  export namespace queueConfig_8 {
@@ -660,7 +646,7 @@ declare namespace BASE_BULLMQ_CONFIG {
660
646
  }
661
647
  export { workerConfig_8 as workerConfig };
662
648
  }
663
- namespace ANNOS_ELASTIC_SYNC_QUEUE {
649
+ namespace USERS_ELASTIC_SYNC_QUEUE {
664
650
  let id_9: string;
665
651
  export { id_9 as id };
666
652
  export namespace queueConfig_9 {
@@ -700,7 +686,7 @@ declare namespace BASE_BULLMQ_CONFIG {
700
686
  }
701
687
  export { workerConfig_9 as workerConfig };
702
688
  }
703
- namespace CHUNKS_ELASTIC_SYNC_QUEUE {
689
+ namespace CONTENT_ELASTIC_SYNC_QUEUE {
704
690
  let id_10: string;
705
691
  export { id_10 as id };
706
692
  export namespace queueConfig_10 {
@@ -740,7 +726,7 @@ declare namespace BASE_BULLMQ_CONFIG {
740
726
  }
741
727
  export { workerConfig_10 as workerConfig };
742
728
  }
743
- namespace USERS_ELASTIC_SYNC_QUEUE {
729
+ namespace SARVAM_TRANSCRIPTION_QUEUE {
744
730
  let id_11: string;
745
731
  export { id_11 as id };
746
732
  export namespace queueConfig_11 {
@@ -780,7 +766,7 @@ declare namespace BASE_BULLMQ_CONFIG {
780
766
  }
781
767
  export { workerConfig_11 as workerConfig };
782
768
  }
783
- namespace CONTENT_ELASTIC_SYNC_QUEUE {
769
+ namespace INTERCOM_CONVERSATIONS_QUEUE {
784
770
  let id_12: string;
785
771
  export { id_12 as id };
786
772
  export namespace queueConfig_12 {
@@ -820,7 +806,7 @@ declare namespace BASE_BULLMQ_CONFIG {
820
806
  }
821
807
  export { workerConfig_12 as workerConfig };
822
808
  }
823
- namespace SARVAM_TRANSCRIPTION_QUEUE {
809
+ namespace TAG_SYNC_PLAN_QUEUE {
824
810
  let id_13: string;
825
811
  export { id_13 as id };
826
812
  export namespace queueConfig_13 {
@@ -860,7 +846,7 @@ declare namespace BASE_BULLMQ_CONFIG {
860
846
  }
861
847
  export { workerConfig_13 as workerConfig };
862
848
  }
863
- namespace INTERCOM_CONVERSATIONS_QUEUE {
849
+ namespace TAG_SYNC_BATCH_QUEUE {
864
850
  let id_14: string;
865
851
  export { id_14 as id };
866
852
  export namespace queueConfig_14 {
@@ -900,13 +886,11 @@ declare namespace BASE_BULLMQ_CONFIG {
900
886
  }
901
887
  export { workerConfig_14 as workerConfig };
902
888
  }
903
- namespace TAG_SYNC_PLAN_QUEUE {
889
+ namespace SCHEDULED_EXTERNAL_SYNC_QUEUE {
904
890
  let id_15: string;
905
891
  export { id_15 as id };
906
892
  export namespace queueConfig_15 {
907
893
  export namespace defaultJobOptions_15 {
908
- let attempts_15: number;
909
- export { attempts_15 as attempts };
910
894
  export namespace backoff_15 {
911
895
  let type_15: string;
912
896
  export { type_15 as type };
@@ -914,6 +898,8 @@ declare namespace BASE_BULLMQ_CONFIG {
914
898
  export { delay_15 as delay };
915
899
  }
916
900
  export { backoff_15 as backoff };
901
+ let attempts_15: number;
902
+ export { attempts_15 as attempts };
917
903
  let removeOnComplete_15: number;
918
904
  export { removeOnComplete_15 as removeOnComplete };
919
905
  let removeOnFail_15: number;
@@ -940,7 +926,7 @@ declare namespace BASE_BULLMQ_CONFIG {
940
926
  }
941
927
  export { workerConfig_15 as workerConfig };
942
928
  }
943
- namespace TAG_SYNC_BATCH_QUEUE {
929
+ namespace REINDEX_QUEUE {
944
930
  let id_16: string;
945
931
  export { id_16 as id };
946
932
  export namespace queueConfig_16 {
@@ -954,6 +940,8 @@ declare namespace BASE_BULLMQ_CONFIG {
954
940
  export { delay_16 as delay };
955
941
  }
956
942
  export { backoff_16 as backoff };
943
+ let delay_17: number;
944
+ export { delay_17 as delay };
957
945
  let removeOnComplete_16: number;
958
946
  export { removeOnComplete_16 as removeOnComplete };
959
947
  let removeOnFail_16: number;
@@ -980,88 +968,6 @@ declare namespace BASE_BULLMQ_CONFIG {
980
968
  }
981
969
  export { workerConfig_16 as workerConfig };
982
970
  }
983
- namespace SCHEDULED_EXTERNAL_SYNC_QUEUE {
984
- let id_17: string;
985
- export { id_17 as id };
986
- export namespace queueConfig_17 {
987
- export namespace defaultJobOptions_17 {
988
- export namespace backoff_17 {
989
- let type_17: string;
990
- export { type_17 as type };
991
- let delay_17: number;
992
- export { delay_17 as delay };
993
- }
994
- export { backoff_17 as backoff };
995
- let attempts_17: number;
996
- export { attempts_17 as attempts };
997
- let removeOnComplete_17: number;
998
- export { removeOnComplete_17 as removeOnComplete };
999
- let removeOnFail_17: number;
1000
- export { removeOnFail_17 as removeOnFail };
1001
- }
1002
- export { defaultJobOptions_17 as defaultJobOptions };
1003
- export namespace streams_17 {
1004
- export namespace events_17 {
1005
- let maxLen_17: number;
1006
- export { maxLen_17 as maxLen };
1007
- }
1008
- export { events_17 as events };
1009
- }
1010
- export { streams_17 as streams };
1011
- }
1012
- export { queueConfig_17 as queueConfig };
1013
- export namespace workerConfig_17 {
1014
- let concurrency_17: number;
1015
- export { concurrency_17 as concurrency };
1016
- let lockDuration_17: number;
1017
- export { lockDuration_17 as lockDuration };
1018
- let maxStalledCount_17: number;
1019
- export { maxStalledCount_17 as maxStalledCount };
1020
- }
1021
- export { workerConfig_17 as workerConfig };
1022
- }
1023
- namespace REINDEX_QUEUE {
1024
- let id_18: string;
1025
- export { id_18 as id };
1026
- export namespace queueConfig_18 {
1027
- export namespace defaultJobOptions_18 {
1028
- let attempts_18: number;
1029
- export { attempts_18 as attempts };
1030
- export namespace backoff_18 {
1031
- let type_18: string;
1032
- export { type_18 as type };
1033
- let delay_18: number;
1034
- export { delay_18 as delay };
1035
- }
1036
- export { backoff_18 as backoff };
1037
- let delay_19: number;
1038
- export { delay_19 as delay };
1039
- let removeOnComplete_18: number;
1040
- export { removeOnComplete_18 as removeOnComplete };
1041
- let removeOnFail_18: number;
1042
- export { removeOnFail_18 as removeOnFail };
1043
- }
1044
- export { defaultJobOptions_18 as defaultJobOptions };
1045
- export namespace streams_18 {
1046
- export namespace events_18 {
1047
- let maxLen_18: number;
1048
- export { maxLen_18 as maxLen };
1049
- }
1050
- export { events_18 as events };
1051
- }
1052
- export { streams_18 as streams };
1053
- }
1054
- export { queueConfig_18 as queueConfig };
1055
- export namespace workerConfig_18 {
1056
- let concurrency_18: number;
1057
- export { concurrency_18 as concurrency };
1058
- let lockDuration_18: number;
1059
- export { lockDuration_18 as lockDuration };
1060
- let maxStalledCount_18: number;
1061
- export { maxStalledCount_18 as maxStalledCount };
1062
- }
1063
- export { workerConfig_18 as workerConfig };
1064
- }
1065
971
  }
1066
972
 
1067
973
  interface PlatformContextContentItem {
@@ -1356,7 +1262,7 @@ declare const FILTER_IDS: {
1356
1262
  * renders that level as multiple meta entries (one per tab), each scoping its
1357
1263
  * options by the tab's findQuery. Selected values still flow through the level's
1358
1264
  * single filterId. Currently used to split sub-themes into Thematics + Attributes
1359
- * when EXPERIMENTAL_newTopicModelling is on.
1265
+ * when aiAnnotation.newTopicModelling is on.
1360
1266
  */
1361
1267
  declare const _self_managed_buildAnnoHierarchyConfig: ({ annotationTagsCount, attributeThematicTabs, }: {
1362
1268
  annotationTagsCount: any;
package/dist/browser.d.ts CHANGED
@@ -486,7 +486,7 @@ declare namespace BASE_BULLMQ_CONFIG {
486
486
  }
487
487
  export { workerConfig_4 as workerConfig };
488
488
  }
489
- namespace AI_CATEGORIZE_QUEUE {
489
+ namespace AI_AUTO_ANNOTATE_QUEUE {
490
490
  let id_5: string;
491
491
  export { id_5 as id };
492
492
  export namespace queueConfig_5 {
@@ -523,17 +523,10 @@ declare namespace BASE_BULLMQ_CONFIG {
523
523
  export { lockDuration_5 as lockDuration };
524
524
  let maxStalledCount_5: number;
525
525
  export { maxStalledCount_5 as maxStalledCount };
526
- export namespace limiter_2 {
527
- let max_2: number;
528
- export { max_2 as max };
529
- let duration_2: number;
530
- export { duration_2 as duration };
531
- }
532
- export { limiter_2 as limiter };
533
526
  }
534
527
  export { workerConfig_5 as workerConfig };
535
528
  }
536
- namespace SENTIMENT_AND_NER_QUEUE {
529
+ namespace AI_AUTO_ANNOTATE_CHUNK_QUEUE {
537
530
  let id_6: string;
538
531
  export { id_6 as id };
539
532
  export namespace queueConfig_6 {
@@ -570,17 +563,10 @@ declare namespace BASE_BULLMQ_CONFIG {
570
563
  export { lockDuration_6 as lockDuration };
571
564
  let maxStalledCount_6: number;
572
565
  export { maxStalledCount_6 as maxStalledCount };
573
- export namespace limiter_3 {
574
- let max_3: number;
575
- export { max_3 as max };
576
- let duration_3: number;
577
- export { duration_3 as duration };
578
- }
579
- export { limiter_3 as limiter };
580
566
  }
581
567
  export { workerConfig_6 as workerConfig };
582
568
  }
583
- namespace AI_AUTO_ANNOTATE_QUEUE {
569
+ namespace ANNOS_ELASTIC_SYNC_QUEUE {
584
570
  let id_7: string;
585
571
  export { id_7 as id };
586
572
  export namespace queueConfig_7 {
@@ -620,7 +606,7 @@ declare namespace BASE_BULLMQ_CONFIG {
620
606
  }
621
607
  export { workerConfig_7 as workerConfig };
622
608
  }
623
- namespace AI_AUTO_ANNOTATE_CHUNK_QUEUE {
609
+ namespace CHUNKS_ELASTIC_SYNC_QUEUE {
624
610
  let id_8: string;
625
611
  export { id_8 as id };
626
612
  export namespace queueConfig_8 {
@@ -660,7 +646,7 @@ declare namespace BASE_BULLMQ_CONFIG {
660
646
  }
661
647
  export { workerConfig_8 as workerConfig };
662
648
  }
663
- namespace ANNOS_ELASTIC_SYNC_QUEUE {
649
+ namespace USERS_ELASTIC_SYNC_QUEUE {
664
650
  let id_9: string;
665
651
  export { id_9 as id };
666
652
  export namespace queueConfig_9 {
@@ -700,7 +686,7 @@ declare namespace BASE_BULLMQ_CONFIG {
700
686
  }
701
687
  export { workerConfig_9 as workerConfig };
702
688
  }
703
- namespace CHUNKS_ELASTIC_SYNC_QUEUE {
689
+ namespace CONTENT_ELASTIC_SYNC_QUEUE {
704
690
  let id_10: string;
705
691
  export { id_10 as id };
706
692
  export namespace queueConfig_10 {
@@ -740,7 +726,7 @@ declare namespace BASE_BULLMQ_CONFIG {
740
726
  }
741
727
  export { workerConfig_10 as workerConfig };
742
728
  }
743
- namespace USERS_ELASTIC_SYNC_QUEUE {
729
+ namespace SARVAM_TRANSCRIPTION_QUEUE {
744
730
  let id_11: string;
745
731
  export { id_11 as id };
746
732
  export namespace queueConfig_11 {
@@ -780,7 +766,7 @@ declare namespace BASE_BULLMQ_CONFIG {
780
766
  }
781
767
  export { workerConfig_11 as workerConfig };
782
768
  }
783
- namespace CONTENT_ELASTIC_SYNC_QUEUE {
769
+ namespace INTERCOM_CONVERSATIONS_QUEUE {
784
770
  let id_12: string;
785
771
  export { id_12 as id };
786
772
  export namespace queueConfig_12 {
@@ -820,7 +806,7 @@ declare namespace BASE_BULLMQ_CONFIG {
820
806
  }
821
807
  export { workerConfig_12 as workerConfig };
822
808
  }
823
- namespace SARVAM_TRANSCRIPTION_QUEUE {
809
+ namespace TAG_SYNC_PLAN_QUEUE {
824
810
  let id_13: string;
825
811
  export { id_13 as id };
826
812
  export namespace queueConfig_13 {
@@ -860,7 +846,7 @@ declare namespace BASE_BULLMQ_CONFIG {
860
846
  }
861
847
  export { workerConfig_13 as workerConfig };
862
848
  }
863
- namespace INTERCOM_CONVERSATIONS_QUEUE {
849
+ namespace TAG_SYNC_BATCH_QUEUE {
864
850
  let id_14: string;
865
851
  export { id_14 as id };
866
852
  export namespace queueConfig_14 {
@@ -900,13 +886,11 @@ declare namespace BASE_BULLMQ_CONFIG {
900
886
  }
901
887
  export { workerConfig_14 as workerConfig };
902
888
  }
903
- namespace TAG_SYNC_PLAN_QUEUE {
889
+ namespace SCHEDULED_EXTERNAL_SYNC_QUEUE {
904
890
  let id_15: string;
905
891
  export { id_15 as id };
906
892
  export namespace queueConfig_15 {
907
893
  export namespace defaultJobOptions_15 {
908
- let attempts_15: number;
909
- export { attempts_15 as attempts };
910
894
  export namespace backoff_15 {
911
895
  let type_15: string;
912
896
  export { type_15 as type };
@@ -914,6 +898,8 @@ declare namespace BASE_BULLMQ_CONFIG {
914
898
  export { delay_15 as delay };
915
899
  }
916
900
  export { backoff_15 as backoff };
901
+ let attempts_15: number;
902
+ export { attempts_15 as attempts };
917
903
  let removeOnComplete_15: number;
918
904
  export { removeOnComplete_15 as removeOnComplete };
919
905
  let removeOnFail_15: number;
@@ -940,7 +926,7 @@ declare namespace BASE_BULLMQ_CONFIG {
940
926
  }
941
927
  export { workerConfig_15 as workerConfig };
942
928
  }
943
- namespace TAG_SYNC_BATCH_QUEUE {
929
+ namespace REINDEX_QUEUE {
944
930
  let id_16: string;
945
931
  export { id_16 as id };
946
932
  export namespace queueConfig_16 {
@@ -954,6 +940,8 @@ declare namespace BASE_BULLMQ_CONFIG {
954
940
  export { delay_16 as delay };
955
941
  }
956
942
  export { backoff_16 as backoff };
943
+ let delay_17: number;
944
+ export { delay_17 as delay };
957
945
  let removeOnComplete_16: number;
958
946
  export { removeOnComplete_16 as removeOnComplete };
959
947
  let removeOnFail_16: number;
@@ -980,88 +968,6 @@ declare namespace BASE_BULLMQ_CONFIG {
980
968
  }
981
969
  export { workerConfig_16 as workerConfig };
982
970
  }
983
- namespace SCHEDULED_EXTERNAL_SYNC_QUEUE {
984
- let id_17: string;
985
- export { id_17 as id };
986
- export namespace queueConfig_17 {
987
- export namespace defaultJobOptions_17 {
988
- export namespace backoff_17 {
989
- let type_17: string;
990
- export { type_17 as type };
991
- let delay_17: number;
992
- export { delay_17 as delay };
993
- }
994
- export { backoff_17 as backoff };
995
- let attempts_17: number;
996
- export { attempts_17 as attempts };
997
- let removeOnComplete_17: number;
998
- export { removeOnComplete_17 as removeOnComplete };
999
- let removeOnFail_17: number;
1000
- export { removeOnFail_17 as removeOnFail };
1001
- }
1002
- export { defaultJobOptions_17 as defaultJobOptions };
1003
- export namespace streams_17 {
1004
- export namespace events_17 {
1005
- let maxLen_17: number;
1006
- export { maxLen_17 as maxLen };
1007
- }
1008
- export { events_17 as events };
1009
- }
1010
- export { streams_17 as streams };
1011
- }
1012
- export { queueConfig_17 as queueConfig };
1013
- export namespace workerConfig_17 {
1014
- let concurrency_17: number;
1015
- export { concurrency_17 as concurrency };
1016
- let lockDuration_17: number;
1017
- export { lockDuration_17 as lockDuration };
1018
- let maxStalledCount_17: number;
1019
- export { maxStalledCount_17 as maxStalledCount };
1020
- }
1021
- export { workerConfig_17 as workerConfig };
1022
- }
1023
- namespace REINDEX_QUEUE {
1024
- let id_18: string;
1025
- export { id_18 as id };
1026
- export namespace queueConfig_18 {
1027
- export namespace defaultJobOptions_18 {
1028
- let attempts_18: number;
1029
- export { attempts_18 as attempts };
1030
- export namespace backoff_18 {
1031
- let type_18: string;
1032
- export { type_18 as type };
1033
- let delay_18: number;
1034
- export { delay_18 as delay };
1035
- }
1036
- export { backoff_18 as backoff };
1037
- let delay_19: number;
1038
- export { delay_19 as delay };
1039
- let removeOnComplete_18: number;
1040
- export { removeOnComplete_18 as removeOnComplete };
1041
- let removeOnFail_18: number;
1042
- export { removeOnFail_18 as removeOnFail };
1043
- }
1044
- export { defaultJobOptions_18 as defaultJobOptions };
1045
- export namespace streams_18 {
1046
- export namespace events_18 {
1047
- let maxLen_18: number;
1048
- export { maxLen_18 as maxLen };
1049
- }
1050
- export { events_18 as events };
1051
- }
1052
- export { streams_18 as streams };
1053
- }
1054
- export { queueConfig_18 as queueConfig };
1055
- export namespace workerConfig_18 {
1056
- let concurrency_18: number;
1057
- export { concurrency_18 as concurrency };
1058
- let lockDuration_18: number;
1059
- export { lockDuration_18 as lockDuration };
1060
- let maxStalledCount_18: number;
1061
- export { maxStalledCount_18 as maxStalledCount };
1062
- }
1063
- export { workerConfig_18 as workerConfig };
1064
- }
1065
971
  }
1066
972
 
1067
973
  interface PlatformContextContentItem {
@@ -1356,7 +1262,7 @@ declare const FILTER_IDS: {
1356
1262
  * renders that level as multiple meta entries (one per tab), each scoping its
1357
1263
  * options by the tab's findQuery. Selected values still flow through the level's
1358
1264
  * single filterId. Currently used to split sub-themes into Thematics + Attributes
1359
- * when EXPERIMENTAL_newTopicModelling is on.
1265
+ * when aiAnnotation.newTopicModelling is on.
1360
1266
  */
1361
1267
  declare const _self_managed_buildAnnoHierarchyConfig: ({ annotationTagsCount, attributeThematicTabs, }: {
1362
1268
  annotationTagsCount: any;
package/dist/browser.js CHANGED
@@ -956,65 +956,6 @@ var BASE_BULLMQ_CONFIG = {
956
956
  }
957
957
  }
958
958
  },
959
- AI_CATEGORIZE_QUEUE: {
960
- id: "ai-categorize-queue",
961
- queueConfig: {
962
- defaultJobOptions: {
963
- attempts: 3,
964
- backoff: {
965
- type: "exponential",
966
- delay: 2e3
967
- },
968
- removeOnComplete: 30,
969
- removeOnFail: 100
970
- },
971
- streams: {
972
- events: {
973
- maxLen: 10
974
- // Keep very low, cuz we dont really use historical stream events as of now
975
- }
976
- }
977
- },
978
- workerConfig: {
979
- concurrency: 1,
980
- lockDuration: 9e4,
981
- maxStalledCount: 3,
982
- limiter: {
983
- max: 100,
984
- // (lets always keep this same as content enhance & embed since it comes immediately after)
985
- duration: 6e4
986
- // ...60 seconds (higher throughput for chunking)
987
- }
988
- }
989
- },
990
- SENTIMENT_AND_NER_QUEUE: {
991
- id: "sentiment-and-ner-queue",
992
- queueConfig: {
993
- defaultJobOptions: {
994
- attempts: 3,
995
- backoff: {
996
- type: "exponential",
997
- delay: 2e3
998
- },
999
- removeOnComplete: 30,
1000
- removeOnFail: 100
1001
- },
1002
- streams: {
1003
- events: {
1004
- maxLen: 10
1005
- }
1006
- }
1007
- },
1008
- workerConfig: {
1009
- concurrency: 1,
1010
- lockDuration: 9e4,
1011
- maxStalledCount: 3,
1012
- limiter: {
1013
- max: 100,
1014
- duration: 6e4
1015
- }
1016
- }
1017
- },
1018
959
  AI_AUTO_ANNOTATE_QUEUE: {
1019
960
  // PARENT queue in the per-doc Flow. One job per doc; child jobs (one
1020
961
  // per chunk) live on AI_AUTO_ANNOTATE_CHUNK_QUEUE. BullMQ Flow fires
@@ -1085,8 +1026,8 @@ var BASE_BULLMQ_CONFIG = {
1085
1026
  type: "exponential",
1086
1027
  delay: 5e3
1087
1028
  },
1088
- removeOnComplete: 100,
1089
- // chunks fan out wider; keep a few more
1029
+ removeOnComplete: 200,
1030
+ // chunks fan out wider; keep a few more. because if a parent has MANY chunks, we need all of them to survive until the parent gets triggered
1090
1031
  removeOnFail: 300
1091
1032
  },
1092
1033
  streams: {
package/dist/browser.mjs CHANGED
@@ -886,65 +886,6 @@ var BASE_BULLMQ_CONFIG = {
886
886
  }
887
887
  }
888
888
  },
889
- AI_CATEGORIZE_QUEUE: {
890
- id: "ai-categorize-queue",
891
- queueConfig: {
892
- defaultJobOptions: {
893
- attempts: 3,
894
- backoff: {
895
- type: "exponential",
896
- delay: 2e3
897
- },
898
- removeOnComplete: 30,
899
- removeOnFail: 100
900
- },
901
- streams: {
902
- events: {
903
- maxLen: 10
904
- // Keep very low, cuz we dont really use historical stream events as of now
905
- }
906
- }
907
- },
908
- workerConfig: {
909
- concurrency: 1,
910
- lockDuration: 9e4,
911
- maxStalledCount: 3,
912
- limiter: {
913
- max: 100,
914
- // (lets always keep this same as content enhance & embed since it comes immediately after)
915
- duration: 6e4
916
- // ...60 seconds (higher throughput for chunking)
917
- }
918
- }
919
- },
920
- SENTIMENT_AND_NER_QUEUE: {
921
- id: "sentiment-and-ner-queue",
922
- queueConfig: {
923
- defaultJobOptions: {
924
- attempts: 3,
925
- backoff: {
926
- type: "exponential",
927
- delay: 2e3
928
- },
929
- removeOnComplete: 30,
930
- removeOnFail: 100
931
- },
932
- streams: {
933
- events: {
934
- maxLen: 10
935
- }
936
- }
937
- },
938
- workerConfig: {
939
- concurrency: 1,
940
- lockDuration: 9e4,
941
- maxStalledCount: 3,
942
- limiter: {
943
- max: 100,
944
- duration: 6e4
945
- }
946
- }
947
- },
948
889
  AI_AUTO_ANNOTATE_QUEUE: {
949
890
  // PARENT queue in the per-doc Flow. One job per doc; child jobs (one
950
891
  // per chunk) live on AI_AUTO_ANNOTATE_CHUNK_QUEUE. BullMQ Flow fires
@@ -1015,8 +956,8 @@ var BASE_BULLMQ_CONFIG = {
1015
956
  type: "exponential",
1016
957
  delay: 5e3
1017
958
  },
1018
- removeOnComplete: 100,
1019
- // chunks fan out wider; keep a few more
959
+ removeOnComplete: 200,
960
+ // chunks fan out wider; keep a few more. because if a parent has MANY chunks, we need all of them to survive until the parent gets triggered
1020
961
  removeOnFail: 300
1021
962
  },
1022
963
  streams: {