@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.js CHANGED
@@ -10782,10 +10782,16 @@ function resolveCollabInputText(params) {
10782
10782
  return blocks.join("\n\n");
10783
10783
  }
10784
10784
  if (!params.items || params.items.length === 0) {
10785
+ if (blocks.length > 0) {
10786
+ return blocks.join("\n\n");
10787
+ }
10785
10788
  throw new Error(params.emptyItemsError);
10786
10789
  }
10787
10790
  const itemText = resolveInputItemsText(params.items);
10788
10791
  if (!itemText) {
10792
+ if (blocks.length > 0) {
10793
+ return blocks.join("\n\n");
10794
+ }
10789
10795
  throw new Error(params.emptyItemsError);
10790
10796
  }
10791
10797
  blocks.push(itemText);