@botpress/runtime 1.6.4 → 1.6.5

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.
@@ -48,7 +48,7 @@ var init_define_BUILD = __esm({
48
48
  var define_PACKAGE_VERSIONS_default;
49
49
  var init_define_PACKAGE_VERSIONS = __esm({
50
50
  "<define:__PACKAGE_VERSIONS__>"() {
51
- define_PACKAGE_VERSIONS_default = { runtime: "1.6.4", adk: "not-installed", sdk: "4.17.3", llmz: "0.0.27", zai: "2.4.0", cognitive: "0.2.0" };
51
+ define_PACKAGE_VERSIONS_default = { runtime: "1.6.5", adk: "not-installed", sdk: "4.17.3", llmz: "0.0.27", zai: "2.4.0", cognitive: "0.2.0" };
52
52
  }
53
53
  });
54
54
 
@@ -42463,6 +42463,13 @@ var WebsiteSource = class _WebsiteSource extends DataSource {
42463
42463
  const toRemove = existingFiles.filter(
42464
42464
  (f) => !discoveredUrls.find((u) => u.loc === f.metadata?.[WellKnownMetadata.knowledge.URL])
42465
42465
  );
42466
+ if (existingFiles.length > 0 && toRemove.length >= existingFiles.length * 0.8) {
42467
+ console.error(
42468
+ `Warning: All existing files (${existingFiles.length}) are scheduled for removal. Please check if the sitemap URL is correct and the website is accessible. We will try again in 5 minutes.`
42469
+ );
42470
+ await step2.sleep("retry wait", 5 * 60 * 1e3);
42471
+ throw new Error("Aborting sync due to potential misconfiguration (all files to be removed)");
42472
+ }
42466
42473
  const toFetch = [];
42467
42474
  let skippedUnchanged = 0;
42468
42475
  for (const url2 of discoveredUrls) {