@roomle/embedding-lib 0.0.0-dev-7e3cd4b → 0.0.0-dev-bf23f2d

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 (60) hide show
  1. package/THIRD-PARTY-NOTICES.txt +2 -2
  2. package/ai.d.ts +2 -0
  3. package/ai.js +60 -0
  4. package/ai.min.js +58 -0
  5. package/chat-model-DKlWonm6.mjs +322 -0
  6. package/chat-model-gyIajfDW.mjs +327 -0
  7. package/{comlink-Dc3LZUoi.mjs → comlink-BYqErFai.mjs} +87 -77
  8. package/{comlink-Cmiqa2s0.mjs → comlink-m82YLjsS.mjs} +29 -22
  9. package/configurator.js +1 -1
  10. package/configurator.min.js +1 -1
  11. package/{dist-XEy6Tk_Y.mjs → dist-6TznX-Ae.mjs} +1657 -1484
  12. package/{dist-B9yy8ym8.mjs → dist-BsVeWZ8R.mjs} +1 -1
  13. package/{dist-Bb2L1Zel.mjs → dist-CjIZv2gB.mjs} +1 -1
  14. package/{dist-5jYYtT4q.mjs → dist-Cmx_tCV5.mjs} +1 -1
  15. package/{dist-C5fKJXpB.mjs → dist-CnTUCpLZ.mjs} +1 -1
  16. package/{dist-GTk8ppiK.mjs → dist-Cxe4osFc.mjs} +1 -1
  17. package/{dist-DJtonrDM.mjs → dist-D0XFfKEL.mjs} +3081 -2908
  18. package/{dist-Bo3WzRdf.mjs → dist-DCzWWudD.mjs} +1 -1
  19. package/{drag-ghost-yXe7c8jA.mjs → drag-ghost-B24KVqgc.mjs} +1 -1
  20. package/{drag-ghost-D7FnWbO4.mjs → drag-ghost-C1WS2KmW.mjs} +1 -1
  21. package/{drag-in-t7T6Pqwc.mjs → drag-in-CWHSbwvG.mjs} +3 -3
  22. package/{drag-in-BiEe2Lgv.mjs → drag-in-O5uwMddL.mjs} +3 -3
  23. package/embedding-plugins.js +1 -1
  24. package/embedding-plugins.min.js +1 -1
  25. package/fence.d.ts +2 -0
  26. package/fence.js +55 -0
  27. package/fence.min.js +53 -0
  28. package/{from-custom-view-CTBapIc6.mjs → from-custom-view-BgmiWIEN.mjs} +3 -3
  29. package/{from-custom-view-xbjgsLll.mjs → from-custom-view-CxmIIsHU.mjs} +3 -3
  30. package/{from-website-JwG7Ic_U.mjs → from-website-B8qFEG_R.mjs} +3 -3
  31. package/{from-website-DUPMQPl6.mjs → from-website-CvcnHmr2.mjs} +3 -3
  32. package/hi.js +81 -63
  33. package/hi.min.js +70 -52
  34. package/package.json +15 -1
  35. package/packages/embedding-lib/src/ai.d.ts +28 -0
  36. package/packages/embedding-lib/src/fence-agent/fence-mcp-tools.d.ts +10 -0
  37. package/packages/embedding-lib/src/fence-agent/fence-planning-assistant.d.ts +7 -0
  38. package/packages/embedding-lib/src/fence.d.ts +3 -0
  39. package/packages/embedding-lib/src/planning-assistant/chat-recovery.d.ts +1 -0
  40. package/packages/embedding-lib/src/planning-assistant/planning-assistant.d.ts +15 -0
  41. package/packages/embedding-lib/src/roomle-embedding-lib.d.ts +17 -0
  42. package/packages/web-sdk/packages/assistant.d.ts +2 -0
  43. package/packages/web-sdk/packages/common-core/src/planning-assistant/types.d.ts +5 -0
  44. package/roomle-embedding-lib.js +17 -4
  45. package/roomle-embedding-lib.min.js +17 -4
  46. package/sbom.cdx.json +5 -5
  47. package/mcp-tools-Cnhgobge.mjs +0 -153
  48. package/mcp-tools-D3Ei3Apu.mjs +0 -151
  49. /package/{browser-D6As4Zxr.mjs → browser-BjtSrqbu.mjs} +0 -0
  50. /package/{browser-zrjtYpL8.mjs → browser-D6M-d6y5.mjs} +0 -0
  51. /package/{dist-CXemOs84.mjs → dist-BI_3AeI-.mjs} +0 -0
  52. /package/{dist-CqpDM10w.mjs → dist-CGgFMwb1.mjs} +0 -0
  53. /package/{dist-CqP0aX0A.mjs → dist-CZbrRF4T.mjs} +0 -0
  54. /package/{dist-D0kh4WfT.mjs → dist-Dr3LcjP6.mjs} +0 -0
  55. /package/{dist-COgAdYY1.mjs → dist-Ur4DqwwC.mjs} +0 -0
  56. /package/{dist-D5HdKuwj.mjs → dist-wPZpiGiu.mjs} +0 -0
  57. /package/{experimental-evaluation-D56MbtjO.mjs → experimental-evaluation-DPkDk-5A.mjs} +0 -0
  58. /package/{experimental-evaluation-BgWFolud.mjs → experimental-evaluation-DyONuPyk.mjs} +0 -0
  59. /package/{utils-CAAGdgk8.mjs → utils-BoELtcEK.mjs} +0 -0
  60. /package/{utils-WeolMfC5.mjs → utils-BwWn6Fw4.mjs} +0 -0
@@ -40,7 +40,7 @@ function c(e, t = globalThis, n = ["*"]) {
40
40
  console.warn(`Invalid origin '${o.origin}' for comlink proxy`);
41
41
  return;
42
42
  }
43
- let { id: l, type: d, path: f } = Object.assign({ path: [] }, o.data), p = (o.data.argumentList || []).map(T), m;
43
+ let { id: l, type: d, path: f } = Object.assign({ path: [] }, o.data), p = (o.data.argumentList || []).map(E), m;
44
44
  try {
45
45
  let t = f.slice(0, -1).reduce((e, t) => e[t], e), n = f.reduce((e, t) => e[t], e);
46
46
  switch (d) {
@@ -48,7 +48,7 @@ function c(e, t = globalThis, n = ["*"]) {
48
48
  m = n;
49
49
  break;
50
50
  case "SET":
51
- t[f.slice(-1)[0]] = T(o.data.value), m = !0;
51
+ t[f.slice(-1)[0]] = E(o.data.value), m = !0;
52
52
  break;
53
53
  case "APPLY":
54
54
  m = n.apply(t, p);
@@ -77,10 +77,10 @@ function c(e, t = globalThis, n = ["*"]) {
77
77
  value: e,
78
78
  [i]: 0
79
79
  })).then((n) => {
80
- let [i, o] = w(n);
80
+ let [i, o] = T(n);
81
81
  t.postMessage(Object.assign(Object.assign({}, i), { id: l }), o), d === "RELEASE" && (t.removeEventListener("message", a), u(t), r in e && typeof e[r] == "function" && e[r]());
82
82
  }).catch((e) => {
83
- let [n, r] = w({
83
+ let [n, r] = T({
84
84
  value: /* @__PURE__ */ TypeError("Unserializable return value"),
85
85
  [i]: 0
86
86
  });
@@ -111,7 +111,7 @@ function f(e) {
111
111
  if (e) throw Error("Proxy has been released and is not useable");
112
112
  }
113
113
  function p(e) {
114
- return E(e, /* @__PURE__ */ new Map(), { type: "RELEASE" }).then(() => {
114
+ return D(e, /* @__PURE__ */ new Map(), { type: "RELEASE" }).then(() => {
115
115
  u(e);
116
116
  });
117
117
  }
@@ -134,43 +134,43 @@ function v(e, r, i = [], a = function() {}) {
134
134
  };
135
135
  if (a === "then") {
136
136
  if (i.length === 0) return { then: () => s };
137
- let t = E(e, r, {
137
+ let t = D(e, r, {
138
138
  type: "GET",
139
139
  path: i.map((e) => e.toString())
140
- }).then(T);
140
+ }).then(E);
141
141
  return t.then.bind(t);
142
142
  }
143
143
  return v(e, r, [...i, a]);
144
144
  },
145
145
  set(t, n, a) {
146
146
  f(o);
147
- let [s, c] = w(a);
148
- return E(e, r, {
147
+ let [s, c] = T(a);
148
+ return D(e, r, {
149
149
  type: "SET",
150
150
  path: [...i, n].map((e) => e.toString()),
151
151
  value: s
152
- }, c).then(T);
152
+ }, c).then(E);
153
153
  },
154
154
  apply(n, a, s) {
155
155
  f(o);
156
156
  let c = i[i.length - 1];
157
- if (c === t) return E(e, r, { type: "ENDPOINT" }).then(T);
157
+ if (c === t) return D(e, r, { type: "ENDPOINT" }).then(E);
158
158
  if (c === "bind") return v(e, r, i.slice(0, -1));
159
159
  let [l, u] = b(s);
160
- return E(e, r, {
160
+ return D(e, r, {
161
161
  type: "APPLY",
162
162
  path: i.map((e) => e.toString()),
163
163
  argumentList: l
164
- }, u).then(T);
164
+ }, u).then(E);
165
165
  },
166
166
  construct(t, n) {
167
167
  f(o);
168
168
  let [a, s] = b(n);
169
- return E(e, r, {
169
+ return D(e, r, {
170
170
  type: "CONSTRUCT",
171
171
  path: i.map((e) => e.toString()),
172
172
  argumentList: a
173
- }, s).then(T);
173
+ }, s).then(E);
174
174
  }
175
175
  });
176
176
  return g(s, e), s;
@@ -179,7 +179,7 @@ function y(e) {
179
179
  return Array.prototype.concat.apply([], e);
180
180
  }
181
181
  function b(e) {
182
- let t = e.map(w);
182
+ let t = e.map(T);
183
183
  return [t.map((e) => e[0]), y(t.map((e) => e[1]))];
184
184
  }
185
185
  var x = /* @__PURE__ */ new WeakMap();
@@ -189,7 +189,14 @@ function S(e, t) {
189
189
  function C(t) {
190
190
  return Object.assign(t, { [e]: !0 });
191
191
  }
192
- function w(e) {
192
+ function w(e, t = globalThis, n = "*") {
193
+ return {
194
+ postMessage: (t, r) => e.postMessage(t, n, r),
195
+ addEventListener: t.addEventListener.bind(t),
196
+ removeEventListener: t.removeEventListener.bind(t)
197
+ };
198
+ }
199
+ function T(e) {
193
200
  for (let [t, n] of o) if (n.canHandle(e)) {
194
201
  let [r, i] = n.serialize(e);
195
202
  return [{
@@ -203,19 +210,19 @@ function w(e) {
203
210
  value: e
204
211
  }, x.get(e) || []];
205
212
  }
206
- function T(e) {
213
+ function E(e) {
207
214
  switch (e.type) {
208
215
  case "HANDLER": return o.get(e.name).deserialize(e.value);
209
216
  case "RAW": return e.value;
210
217
  }
211
218
  }
212
- function E(e, t, n, r) {
219
+ function D(e, t, n, r) {
213
220
  return new Promise((i) => {
214
- let a = D();
221
+ let a = O();
215
222
  t.set(a, i), e.start && e.start(), e.postMessage(Object.assign({ id: a }, n), r);
216
223
  });
217
224
  }
218
- function D() {
225
+ function O() {
219
226
  return [
220
227
  ,
221
228
  ,
@@ -224,4 +231,4 @@ function D() {
224
231
  ].fill(0).map(() => Math.floor(Math.random() * (2 ** 53 - 1)).toString(16)).join("-");
225
232
  }
226
233
  //#endregion
227
- export { c as expose };
234
+ export { t as createEndpoint, c as expose, r as finalizer, C as proxy, e as proxyMarker, n as releaseProxy, S as transfer, o as transferHandlers, w as windowEndpoint, d as wrap };
package/configurator.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /*! Third-party licenses: THIRD-PARTY-NOTICES.txt and sbom.cdx.json in the root of this package */
2
- import { n as e, t } from "./mcp-tools-Cnhgobge.mjs";
2
+ import { i as e, r as t } from "./chat-model-gyIajfDW.mjs";
3
3
  //#region packages/embedding-lib/src/configurator-agent/configurator-mcp-tools.ts
4
4
  var n = async (e) => {
5
5
  if (typeof e.getConfiguratorAgentTools != "function" || typeof e.callConfiguratorAgentTool != "function") throw Error("Update the Rubens UI: configurator agent tools are unavailable.");
@@ -1,5 +1,5 @@
1
1
  /*! Third-party licenses: THIRD-PARTY-NOTICES.txt and sbom.cdx.json in the root of this package */
2
- import { n as e, t } from "./mcp-tools-D3Ei3Apu.mjs";
2
+ import { i as e, r as t } from "./chat-model-DKlWonm6.mjs";
3
3
  var n = async (e) => {
4
4
  if (typeof e.getConfiguratorAgentTools != "function" || typeof e.callConfiguratorAgentTool != "function") throw Error("Update the Rubens UI: configurator agent tools are unavailable.");
5
5
  return t(await e.getConfiguratorAgentTools(), (t, n) => e.callConfiguratorAgentTool(t, n), "configurator-mcp");