@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/library.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
 
@@ -45040,6 +45040,13 @@ var WebsiteSource = class _WebsiteSource extends DataSource {
45040
45040
  const toRemove = existingFiles.filter(
45041
45041
  (f) => !discoveredUrls.find((u) => u.loc === f.metadata?.[WellKnownMetadata.knowledge.URL])
45042
45042
  );
45043
+ if (existingFiles.length > 0 && toRemove.length >= existingFiles.length * 0.8) {
45044
+ console.error(
45045
+ `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.`
45046
+ );
45047
+ await step2.sleep("retry wait", 5 * 60 * 1e3);
45048
+ throw new Error("Aborting sync due to potential misconfiguration (all files to be removed)");
45049
+ }
45043
45050
  const toFetch = [];
45044
45051
  let skippedUnchanged = 0;
45045
45052
  for (const url2 of discoveredUrls) {