@streamoid/agent 0.10.13 → 0.10.14

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.
Files changed (2) hide show
  1. package/dist/index.js +4 -7
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -76040,15 +76040,12 @@ function sourceIsConnected(e, t) {
76040
76040
  const n = e.dataTasks, s = Array.isArray(n) ? n.flatMap((c) => Array.isArray(c?.requirements) ? c.requirements : []).filter((c) => c?.key === t && ["missing", "connected"].includes(c.state)) : [];
76041
76041
  if (s.length) return s.every((c) => c.state === "connected");
76042
76042
  const o = e.dataReadiness;
76043
- if (o && typeof o == "object") {
76044
- const c = o.sources;
76045
- return Array.isArray(c) && c.some((d) => d && d.key === t && ["loaded", "partial", "old"].includes(d.status));
76046
- }
76047
- const l = { sales: "Sales", product_master: "Product master", stock: "Stock", costs: "Costs" }[t];
76048
- return typeof o == "string" && !!l && new RegExp(`(?:\\(|, |; also )${l} (?:in(?: but out of date)?|partly in)(?=[,).;]|$)`, "i").test(o);
76043
+ if (!o || typeof o != "object") return !1;
76044
+ const l = o.sources;
76045
+ return Array.isArray(l) && l.some((c) => c && c.key === t && ["loaded", "partial", "old"].includes(c.status));
76049
76046
  }
76050
76047
  function isTactixSample(e) {
76051
- return e?.app === "tactix" && (e.is_demo_workspace === !0 || typeof e.dataReadiness == "string" && e.dataReadiness.includes("This is Tacx, a fictional sample brand:"));
76048
+ return e?.app === "tactix" && e.is_demo_workspace === !0;
76052
76049
  }
76053
76050
  const inflight = /* @__PURE__ */ new Set(), results = /* @__PURE__ */ new Map();
76054
76051
  function HostRequest({ id: e, name: t, params: n, workspaceId: s, actions: o, active: l, submitted: c, submit: d, question: h, nextStep: g, uploadContext: v, guidance: C, card: N, standalone: T, blockedSources: R }) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@streamoid/agent",
3
- "version": "0.10.13",
3
+ "version": "0.10.14",
4
4
  "description": "Native (no-iframe) embeddable Streamoid agent chat panel. Host renders <AgentPanel adapters={\u2026}/>. Prebuilt bundle \u2014 source + build live in the stream-agent repo.",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",