@pluno/product-agent-web 0.1.72 → 0.1.74

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.
@@ -1819,7 +1819,12 @@ function us(e, t) {
1819
1819
  return i[r] = s, st(nt(i));
1820
1820
  }
1821
1821
  function ds(e, t) {
1822
- return t.map((s) => Ot(e, s));
1822
+ const s = t.map(
1823
+ (n) => Ot(e, n)
1824
+ );
1825
+ return t.length > 0 ? s : e.filter(
1826
+ (n) => n.role === "user" && n.id.startsWith("local-")
1827
+ );
1823
1828
  }
1824
1829
  function Ot(e, t) {
1825
1830
  if (t.role !== "user" || !t.attachments?.length)