@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.
package/dist/internal.js CHANGED
@@ -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
 
@@ -45008,6 +45008,13 @@ var WebsiteSource = class _WebsiteSource extends DataSource {
45008
45008
  const toRemove = existingFiles.filter(
45009
45009
  (f) => !discoveredUrls.find((u) => u.loc === f.metadata?.[WellKnownMetadata.knowledge.URL])
45010
45010
  );
45011
+ if (existingFiles.length > 0 && toRemove.length >= existingFiles.length * 0.8) {
45012
+ console.error(
45013
+ `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.`
45014
+ );
45015
+ await step2.sleep("retry wait", 5 * 60 * 1e3);
45016
+ throw new Error("Aborting sync due to potential misconfiguration (all files to be removed)");
45017
+ }
45011
45018
  const toFetch = [];
45012
45019
  let skippedUnchanged = 0;
45013
45020
  for (const url2 of discoveredUrls) {