@ljoukov/llm 7.0.8 → 7.0.9

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/index.cjs CHANGED
@@ -10895,10 +10895,16 @@ function resolveCollabInputText(params) {
10895
10895
  return blocks.join("\n\n");
10896
10896
  }
10897
10897
  if (!params.items || params.items.length === 0) {
10898
+ if (blocks.length > 0) {
10899
+ return blocks.join("\n\n");
10900
+ }
10898
10901
  throw new Error(params.emptyItemsError);
10899
10902
  }
10900
10903
  const itemText = resolveInputItemsText(params.items);
10901
10904
  if (!itemText) {
10905
+ if (blocks.length > 0) {
10906
+ return blocks.join("\n\n");
10907
+ }
10902
10908
  throw new Error(params.emptyItemsError);
10903
10909
  }
10904
10910
  blocks.push(itemText);