@botpress/runtime 1.7.13 → 1.7.15

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.7.13", adk: "1.7.13", sdk: "4.19.0", llmz: "0.0.31", zai: "2.5.0", cognitive: "0.2.0" };
51
+ define_PACKAGE_VERSIONS_default = { runtime: "1.7.15", adk: "1.7.15", sdk: "4.19.0", llmz: "0.0.31", zai: "2.5.0", cognitive: "0.2.0" };
52
52
  }
53
53
  });
54
54
 
@@ -39758,6 +39758,12 @@ If the question is not related to the knowledge bases, do NOT use this tool.`.tr
39758
39758
  if (tags[WellKnownTags.knowledge.KNOWLEDGE_SOURCE_ID]) {
39759
39759
  citationMetadata.sourceId = tags[WellKnownTags.knowledge.KNOWLEDGE_SOURCE_ID];
39760
39760
  }
39761
+ for (const key in citationMetadata) {
39762
+ let value = citationMetadata[key];
39763
+ if (typeof value !== "string" || value.trim().length === 0 || value.length > 1024) {
39764
+ delete citationMetadata[key];
39765
+ }
39766
+ }
39761
39767
  const { tag } = citations.registerSource(citationMetadata);
39762
39768
  message.push(`<${tag} file="${p.file.key}" title="${citationMetadata.title || p.file.key}">`);
39763
39769
  message.push(p.content);