@roomle/embedding-lib 9.1.0-alpha.2 → 9.1.0-alpha.4
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/THIRD-PARTY-NOTICES.txt +2 -2
- package/ai.d.ts +2 -0
- package/ai.js +60 -0
- package/ai.min.js +58 -0
- package/{comlink-Dc3LZUoi.mjs → comlink-BYqErFai.mjs} +87 -77
- package/{comlink-Cmiqa2s0.mjs → comlink-m82YLjsS.mjs} +29 -22
- package/docs/md/web/embedding/CHANGELOG.md +19 -127
- package/hi.js +1 -1
- package/hi.min.js +1 -1
- package/package.json +8 -1
- package/packages/embedding-lib/src/ai.d.ts +28 -0
- package/packages/embedding-lib/src/roomle-embedding-lib.d.ts +17 -0
- package/packages/web-sdk/packages/common-core/src/planning-assistant/types.d.ts +5 -0
- package/roomle-embedding-lib.js +15 -2
- package/roomle-embedding-lib.min.js +15 -2
- package/sbom.cdx.json +5 -5
package/THIRD-PARTY-NOTICES.txt
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
Third-party software notices for @roomle/embedding-lib
|
|
2
|
-
Generated 2026-11-
|
|
1
|
+
Third-party software notices for @roomle/embedding-lib 3f509b1ce1f5a5caa5da17fc0b94a88328f881b6
|
|
2
|
+
Generated 2026-11-09
|
|
3
3
|
|
|
4
4
|
This product includes the following third-party components.
|
|
5
5
|
|
package/ai.d.ts
ADDED
package/ai.js
ADDED
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
/*! Third-party licenses: THIRD-PARTY-NOTICES.txt and sbom.cdx.json in the root of this package */
|
|
2
|
+
//#region packages/common/src/utils/ai-model-relay.ts
|
|
3
|
+
var e = "roomle_ai_model_connect", t = () => import("./comlink-m82YLjsS.mjs"), n = (e, { transfer: t }) => ({
|
|
4
|
+
request: async (n, r) => {
|
|
5
|
+
let i = new AbortController();
|
|
6
|
+
r.onmessage = () => i.abort();
|
|
7
|
+
try {
|
|
8
|
+
let r = await e.onAiModelRequest(n, i.signal);
|
|
9
|
+
if (r.status === 0) throw TypeError("The host answered without a status");
|
|
10
|
+
let a = await r.arrayBuffer();
|
|
11
|
+
return t({
|
|
12
|
+
status: r.status,
|
|
13
|
+
statusText: r.statusText,
|
|
14
|
+
headers: [...r.headers],
|
|
15
|
+
body: a
|
|
16
|
+
}, [a]);
|
|
17
|
+
} finally {
|
|
18
|
+
r.close();
|
|
19
|
+
}
|
|
20
|
+
},
|
|
21
|
+
auth: async (t, n) => {
|
|
22
|
+
try {
|
|
23
|
+
return !e.onRequestAiModelAuth || await e.onRequestAiModelAuth(t, n) === !0;
|
|
24
|
+
} catch {
|
|
25
|
+
return !1;
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
}), r = (r, i, a) => {
|
|
29
|
+
let o = [], s = async (s) => {
|
|
30
|
+
let [c] = s.ports;
|
|
31
|
+
if (s.source !== r || s.origin !== i || s.data?.type !== e || !c) return;
|
|
32
|
+
o.push(c);
|
|
33
|
+
let l = await t();
|
|
34
|
+
l.expose(n(a, l), c);
|
|
35
|
+
};
|
|
36
|
+
return window.addEventListener("message", s), () => {
|
|
37
|
+
window.removeEventListener("message", s), o.forEach((e) => e.close());
|
|
38
|
+
};
|
|
39
|
+
}, i = async (e, { features: t, ...n }) => {
|
|
40
|
+
if (t?.length === 0) throw Error("serveAiModelRequests: features is empty; leave it out to serve every feature");
|
|
41
|
+
let i = e.startRelay("ai", (e, t) => r(e, t, n));
|
|
42
|
+
try {
|
|
43
|
+
await e.ui.setAiModelHost({
|
|
44
|
+
auth: !!n.onRequestAiModelAuth,
|
|
45
|
+
...t && { features: t }
|
|
46
|
+
});
|
|
47
|
+
} catch (e) {
|
|
48
|
+
throw i.stop(), e;
|
|
49
|
+
}
|
|
50
|
+
return {
|
|
51
|
+
signOut: async () => {
|
|
52
|
+
i.isCurrent() && await e.ui.signOutAiModel();
|
|
53
|
+
},
|
|
54
|
+
stop: async () => {
|
|
55
|
+
i.isCurrent() && (i.stop(), await e.ui.setAiModelHost(null));
|
|
56
|
+
}
|
|
57
|
+
};
|
|
58
|
+
};
|
|
59
|
+
//#endregion
|
|
60
|
+
export { i as serveAiModelRequests };
|
package/ai.min.js
ADDED
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
/*! Third-party licenses: THIRD-PARTY-NOTICES.txt and sbom.cdx.json in the root of this package */
|
|
2
|
+
var e = async (e, { features: t, ...n }) => {
|
|
3
|
+
if (t?.length === 0) throw Error("serveAiModelRequests: features is empty; leave it out to serve every feature");
|
|
4
|
+
let r = e.startRelay("ai", (e, t) => ((e, t, n) => {
|
|
5
|
+
let r = [], i = async (i) => {
|
|
6
|
+
let [a] = i.ports;
|
|
7
|
+
if (i.source !== e || i.origin !== t || i.data?.type !== "roomle_ai_model_connect" || !a) return;
|
|
8
|
+
r.push(a);
|
|
9
|
+
let o = await import("./comlink-BYqErFai.mjs");
|
|
10
|
+
o.expose(((e, { transfer: t }) => ({
|
|
11
|
+
request: async (n, r) => {
|
|
12
|
+
let i = new AbortController();
|
|
13
|
+
r.onmessage = () => i.abort();
|
|
14
|
+
try {
|
|
15
|
+
let r = await e.onAiModelRequest(n, i.signal);
|
|
16
|
+
if (r.status === 0) throw TypeError("The host answered without a status");
|
|
17
|
+
let a = await r.arrayBuffer();
|
|
18
|
+
return t({
|
|
19
|
+
status: r.status,
|
|
20
|
+
statusText: r.statusText,
|
|
21
|
+
headers: [...r.headers],
|
|
22
|
+
body: a
|
|
23
|
+
}, [a]);
|
|
24
|
+
} finally {
|
|
25
|
+
r.close();
|
|
26
|
+
}
|
|
27
|
+
},
|
|
28
|
+
auth: async (t, n) => {
|
|
29
|
+
try {
|
|
30
|
+
return !e.onRequestAiModelAuth || !0 === await e.onRequestAiModelAuth(t, n);
|
|
31
|
+
} catch {
|
|
32
|
+
return !1;
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
}))(n, o), a);
|
|
36
|
+
};
|
|
37
|
+
return window.addEventListener("message", i), () => {
|
|
38
|
+
window.removeEventListener("message", i), r.forEach((e) => e.close());
|
|
39
|
+
};
|
|
40
|
+
})(e, t, n));
|
|
41
|
+
try {
|
|
42
|
+
await e.ui.setAiModelHost({
|
|
43
|
+
auth: !!n.onRequestAiModelAuth,
|
|
44
|
+
...t && { features: t }
|
|
45
|
+
});
|
|
46
|
+
} catch (e) {
|
|
47
|
+
throw r.stop(), e;
|
|
48
|
+
}
|
|
49
|
+
return {
|
|
50
|
+
signOut: async () => {
|
|
51
|
+
r.isCurrent() && await e.ui.signOutAiModel();
|
|
52
|
+
},
|
|
53
|
+
stop: async () => {
|
|
54
|
+
r.isCurrent() && (r.stop(), await e.ui.setAiModelHost(null));
|
|
55
|
+
}
|
|
56
|
+
};
|
|
57
|
+
};
|
|
58
|
+
export { e as serveAiModelRequests };
|
|
@@ -5,19 +5,7 @@ var e = Symbol("Comlink.proxy"), t = Symbol("Comlink.endpoint"), n = Symbol("Com
|
|
|
5
5
|
let { port1: t, port2: n } = new MessageChannel();
|
|
6
6
|
return s(e, t), [n, [n]];
|
|
7
7
|
},
|
|
8
|
-
deserialize: (e) => (e.start(),
|
|
9
|
-
let t = /* @__PURE__ */ new Map();
|
|
10
|
-
return e.addEventListener("message", function(e) {
|
|
11
|
-
let { data: n } = e;
|
|
12
|
-
if (!n || !n.id) return;
|
|
13
|
-
let r = t.get(n.id);
|
|
14
|
-
if (r) try {
|
|
15
|
-
r(n);
|
|
16
|
-
} finally {
|
|
17
|
-
t.delete(n.id);
|
|
18
|
-
}
|
|
19
|
-
}), p(e, t, [], void 0);
|
|
20
|
-
}(e))
|
|
8
|
+
deserialize: (e) => (e.start(), l(e))
|
|
21
9
|
}], ["throw", {
|
|
22
10
|
canHandle: (e) => a(e) && i in e,
|
|
23
11
|
serialize({ value: e }) {
|
|
@@ -38,142 +26,164 @@ var e = Symbol("Comlink.proxy"), t = Symbol("Comlink.endpoint"), n = Symbol("Com
|
|
|
38
26
|
throw e.isError ? Object.assign(Error(e.value.message), e.value) : e.value;
|
|
39
27
|
}
|
|
40
28
|
}]]);
|
|
41
|
-
function s(
|
|
42
|
-
|
|
43
|
-
if (!
|
|
29
|
+
function s(e, t = globalThis, n = ["*"]) {
|
|
30
|
+
t.addEventListener("message", function a(o) {
|
|
31
|
+
if (!o || !o.data || !function(e, t) {
|
|
44
32
|
for (let n of e) if (t === n || n === "*" || n instanceof RegExp && n.test(t)) return !0;
|
|
45
33
|
return !1;
|
|
46
|
-
}(
|
|
47
|
-
let { id:
|
|
34
|
+
}(n, o.origin)) return;
|
|
35
|
+
let { id: l, type: u, path: d } = Object.assign({ path: [] }, o.data), f = (o.data.argumentList || []).map(x), p;
|
|
48
36
|
try {
|
|
49
|
-
let
|
|
50
|
-
switch (
|
|
37
|
+
let t = d.slice(0, -1).reduce((e, t) => e[t], e), n = d.reduce((e, t) => e[t], e);
|
|
38
|
+
switch (u) {
|
|
51
39
|
case "GET":
|
|
52
|
-
|
|
40
|
+
p = n;
|
|
53
41
|
break;
|
|
54
42
|
case "SET":
|
|
55
|
-
|
|
43
|
+
t[d.slice(-1)[0]] = x(o.data.value), p = !0;
|
|
56
44
|
break;
|
|
57
45
|
case "APPLY":
|
|
58
|
-
|
|
46
|
+
p = n.apply(t, f);
|
|
59
47
|
break;
|
|
60
48
|
case "CONSTRUCT":
|
|
61
|
-
|
|
62
|
-
return Object.assign(t, { [e]: !0 });
|
|
63
|
-
}(new r(...p));
|
|
49
|
+
p = v(new n(...f));
|
|
64
50
|
break;
|
|
65
51
|
case "ENDPOINT":
|
|
66
52
|
{
|
|
67
|
-
let { port1:
|
|
68
|
-
s(
|
|
69
|
-
return h.set(e, t), e;
|
|
70
|
-
}(e, [e]);
|
|
53
|
+
let { port1: t, port2: n } = new MessageChannel();
|
|
54
|
+
s(e, n), p = _(t, [t]);
|
|
71
55
|
}
|
|
72
56
|
break;
|
|
73
57
|
case "RELEASE":
|
|
74
|
-
|
|
58
|
+
p = void 0;
|
|
75
59
|
break;
|
|
76
60
|
default: return;
|
|
77
61
|
}
|
|
78
62
|
} catch (e) {
|
|
79
|
-
|
|
63
|
+
p = {
|
|
80
64
|
value: e,
|
|
81
65
|
[i]: 0
|
|
82
66
|
};
|
|
83
67
|
}
|
|
84
|
-
Promise.resolve(
|
|
68
|
+
Promise.resolve(p).catch((e) => ({
|
|
85
69
|
value: e,
|
|
86
70
|
[i]: 0
|
|
87
|
-
})).then((
|
|
88
|
-
let [i,
|
|
89
|
-
|
|
71
|
+
})).then((n) => {
|
|
72
|
+
let [i, o] = b(n);
|
|
73
|
+
t.postMessage(Object.assign(Object.assign({}, i), { id: l }), o), u === "RELEASE" && (t.removeEventListener("message", a), c(t), r in e && typeof e[r] == "function" && e[r]());
|
|
90
74
|
}).catch((e) => {
|
|
91
|
-
let [
|
|
75
|
+
let [n, r] = b({
|
|
92
76
|
value: /* @__PURE__ */ TypeError("Unserializable return value"),
|
|
93
77
|
[i]: 0
|
|
94
78
|
});
|
|
95
|
-
|
|
79
|
+
t.postMessage(Object.assign(Object.assign({}, n), { id: l }), r);
|
|
96
80
|
});
|
|
97
|
-
}),
|
|
81
|
+
}), t.start && t.start();
|
|
98
82
|
}
|
|
99
83
|
function c(e) {
|
|
100
84
|
(function(e) {
|
|
101
85
|
return e.constructor.name === "MessagePort";
|
|
102
86
|
})(e) && e.close();
|
|
103
87
|
}
|
|
104
|
-
function l(e) {
|
|
105
|
-
|
|
88
|
+
function l(e, t) {
|
|
89
|
+
let n = /* @__PURE__ */ new Map();
|
|
90
|
+
return e.addEventListener("message", function(e) {
|
|
91
|
+
let { data: t } = e;
|
|
92
|
+
if (!t || !t.id) return;
|
|
93
|
+
let r = n.get(t.id);
|
|
94
|
+
if (r) try {
|
|
95
|
+
r(t);
|
|
96
|
+
} finally {
|
|
97
|
+
n.delete(t.id);
|
|
98
|
+
}
|
|
99
|
+
}), m(e, n, [], t);
|
|
106
100
|
}
|
|
107
101
|
function u(e) {
|
|
108
|
-
|
|
102
|
+
if (e) throw Error("Proxy has been released and is not useable");
|
|
103
|
+
}
|
|
104
|
+
function d(e) {
|
|
105
|
+
return S(e, /* @__PURE__ */ new Map(), { type: "RELEASE" }).then(() => {
|
|
109
106
|
c(e);
|
|
110
107
|
});
|
|
111
108
|
}
|
|
112
|
-
var
|
|
113
|
-
let t = (
|
|
114
|
-
|
|
109
|
+
var f = /* @__PURE__ */ new WeakMap(), p = "FinalizationRegistry" in globalThis && new FinalizationRegistry((e) => {
|
|
110
|
+
let t = (f.get(e) || 0) - 1;
|
|
111
|
+
f.set(e, t), t === 0 && d(e);
|
|
115
112
|
});
|
|
116
|
-
function
|
|
113
|
+
function m(e, r, i = [], a = function() {}) {
|
|
117
114
|
let o = !1, s = new Proxy(a, {
|
|
118
115
|
get(t, a) {
|
|
119
|
-
if (
|
|
116
|
+
if (u(o), a === n) return () => {
|
|
120
117
|
(function(e) {
|
|
121
|
-
|
|
122
|
-
})(s),
|
|
118
|
+
p && p.unregister(e);
|
|
119
|
+
})(s), d(e), r.clear(), o = !0;
|
|
123
120
|
};
|
|
124
121
|
if (a === "then") {
|
|
125
122
|
if (i.length === 0) return { then: () => s };
|
|
126
|
-
let t =
|
|
123
|
+
let t = S(e, r, {
|
|
127
124
|
type: "GET",
|
|
128
125
|
path: i.map((e) => e.toString())
|
|
129
|
-
}).then(
|
|
126
|
+
}).then(x);
|
|
130
127
|
return t.then.bind(t);
|
|
131
128
|
}
|
|
132
|
-
return
|
|
129
|
+
return m(e, r, [...i, a]);
|
|
133
130
|
},
|
|
134
131
|
set(t, n, a) {
|
|
135
|
-
|
|
136
|
-
let [s, c] =
|
|
137
|
-
return
|
|
132
|
+
u(o);
|
|
133
|
+
let [s, c] = b(a);
|
|
134
|
+
return S(e, r, {
|
|
138
135
|
type: "SET",
|
|
139
136
|
path: [...i, n].map((e) => e.toString()),
|
|
140
137
|
value: s
|
|
141
|
-
}, c).then(
|
|
138
|
+
}, c).then(x);
|
|
142
139
|
},
|
|
143
140
|
apply(n, a, s) {
|
|
144
|
-
|
|
141
|
+
u(o);
|
|
145
142
|
let c = i[i.length - 1];
|
|
146
|
-
if (c === t) return
|
|
147
|
-
if (c === "bind") return
|
|
148
|
-
let [
|
|
149
|
-
return
|
|
143
|
+
if (c === t) return S(e, r, { type: "ENDPOINT" }).then(x);
|
|
144
|
+
if (c === "bind") return m(e, r, i.slice(0, -1));
|
|
145
|
+
let [l, d] = h(s);
|
|
146
|
+
return S(e, r, {
|
|
150
147
|
type: "APPLY",
|
|
151
148
|
path: i.map((e) => e.toString()),
|
|
152
|
-
argumentList:
|
|
153
|
-
}, d).then(
|
|
149
|
+
argumentList: l
|
|
150
|
+
}, d).then(x);
|
|
154
151
|
},
|
|
155
152
|
construct(t, n) {
|
|
156
|
-
|
|
157
|
-
let [a, s] =
|
|
158
|
-
return
|
|
153
|
+
u(o);
|
|
154
|
+
let [a, s] = h(n);
|
|
155
|
+
return S(e, r, {
|
|
159
156
|
type: "CONSTRUCT",
|
|
160
157
|
path: i.map((e) => e.toString()),
|
|
161
158
|
argumentList: a
|
|
162
|
-
}, s).then(
|
|
159
|
+
}, s).then(x);
|
|
163
160
|
}
|
|
164
161
|
});
|
|
165
162
|
return function(e, t) {
|
|
166
|
-
let n = (
|
|
167
|
-
|
|
163
|
+
let n = (f.get(t) || 0) + 1;
|
|
164
|
+
f.set(t, n), p && p.register(e, t, e);
|
|
168
165
|
}(s, e), s;
|
|
169
166
|
}
|
|
170
|
-
function
|
|
171
|
-
let t = e.map(
|
|
167
|
+
function h(e) {
|
|
168
|
+
let t = e.map(b);
|
|
172
169
|
return [t.map((e) => e[0]), (n = t.map((e) => e[1]), Array.prototype.concat.apply([], n))];
|
|
173
170
|
var n;
|
|
174
171
|
}
|
|
175
|
-
var
|
|
176
|
-
function
|
|
172
|
+
var g = /* @__PURE__ */ new WeakMap();
|
|
173
|
+
function _(e, t) {
|
|
174
|
+
return g.set(e, t), e;
|
|
175
|
+
}
|
|
176
|
+
function v(t) {
|
|
177
|
+
return Object.assign(t, { [e]: !0 });
|
|
178
|
+
}
|
|
179
|
+
function y(e, t = globalThis, n = "*") {
|
|
180
|
+
return {
|
|
181
|
+
postMessage: (t, r) => e.postMessage(t, n, r),
|
|
182
|
+
addEventListener: t.addEventListener.bind(t),
|
|
183
|
+
removeEventListener: t.removeEventListener.bind(t)
|
|
184
|
+
};
|
|
185
|
+
}
|
|
186
|
+
function b(e) {
|
|
177
187
|
for (let [t, n] of o) if (n.canHandle(e)) {
|
|
178
188
|
let [r, i] = n.serialize(e);
|
|
179
189
|
return [{
|
|
@@ -185,15 +195,15 @@ function g(e) {
|
|
|
185
195
|
return [{
|
|
186
196
|
type: "RAW",
|
|
187
197
|
value: e
|
|
188
|
-
},
|
|
198
|
+
}, g.get(e) || []];
|
|
189
199
|
}
|
|
190
|
-
function
|
|
200
|
+
function x(e) {
|
|
191
201
|
switch (e.type) {
|
|
192
202
|
case "HANDLER": return o.get(e.name).deserialize(e.value);
|
|
193
203
|
case "RAW": return e.value;
|
|
194
204
|
}
|
|
195
205
|
}
|
|
196
|
-
function
|
|
206
|
+
function S(e, t, n, r) {
|
|
197
207
|
return new Promise((i) => {
|
|
198
208
|
let a = [
|
|
199
209
|
,
|
|
@@ -204,4 +214,4 @@ function v(e, t, n, r) {
|
|
|
204
214
|
t.set(a, i), e.start && e.start(), e.postMessage(Object.assign({ id: a }, n), r);
|
|
205
215
|
});
|
|
206
216
|
}
|
|
207
|
-
export { s as expose };
|
|
217
|
+
export { t as createEndpoint, s as expose, r as finalizer, v as proxy, e as proxyMarker, n as releaseProxy, _ as transfer, o as transferHandlers, y as windowEndpoint, l as wrap };
|
|
@@ -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(
|
|
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]] =
|
|
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] =
|
|
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] =
|
|
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
|
|
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 =
|
|
137
|
+
let t = D(e, r, {
|
|
138
138
|
type: "GET",
|
|
139
139
|
path: i.map((e) => e.toString())
|
|
140
|
-
}).then(
|
|
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] =
|
|
148
|
-
return
|
|
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(
|
|
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
|
|
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
|
|
160
|
+
return D(e, r, {
|
|
161
161
|
type: "APPLY",
|
|
162
162
|
path: i.map((e) => e.toString()),
|
|
163
163
|
argumentList: l
|
|
164
|
-
}, u).then(
|
|
164
|
+
}, u).then(E);
|
|
165
165
|
},
|
|
166
166
|
construct(t, n) {
|
|
167
167
|
f(o);
|
|
168
168
|
let [a, s] = b(n);
|
|
169
|
-
return
|
|
169
|
+
return D(e, r, {
|
|
170
170
|
type: "CONSTRUCT",
|
|
171
171
|
path: i.map((e) => e.toString()),
|
|
172
172
|
argumentList: a
|
|
173
|
-
}, s).then(
|
|
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(
|
|
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
|
|
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
|
|
219
|
+
function D(e, t, n, r) {
|
|
213
220
|
return new Promise((i) => {
|
|
214
|
-
let a =
|
|
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
|
|
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 };
|
|
@@ -1,128 +1,20 @@
|
|
|
1
|
-
## 9.1.0-alpha.
|
|
1
|
+
## 9.1.0-alpha.4 (2026-11-09)
|
|
2
2
|
|
|
3
|
-
* Merge branch '
|
|
4
|
-
* Merge branch 'master' into chore/
|
|
5
|
-
* Merge branch 'master' into chore/
|
|
6
|
-
* Merge branch 'master' into
|
|
7
|
-
* Merge branch 'master' into
|
|
8
|
-
* Merge branch 'master' into
|
|
9
|
-
* Merge
|
|
10
|
-
* Merge
|
|
11
|
-
*
|
|
12
|
-
*
|
|
13
|
-
*
|
|
14
|
-
*
|
|
15
|
-
*
|
|
16
|
-
*
|
|
17
|
-
*
|
|
18
|
-
*
|
|
19
|
-
*
|
|
20
|
-
*
|
|
21
|
-
* Merge branch 'master' into fix/fence-selection-follows-redistribution-RML-18388 ([70366cd](https://github.com/roomle-dev/roomle-ui/commit/70366cd))
|
|
22
|
-
* Merge branch 'master' into fix/fence-selection-follows-redistribution-RML-18388 ([42d1817](https://github.com/roomle-dev/roomle-ui/commit/42d1817))
|
|
23
|
-
* Merge branch 'master' into fix/fence-selection-follows-redistribution-RML-18388 ([8801516](https://github.com/roomle-dev/roomle-ui/commit/8801516))
|
|
24
|
-
* Merge branch 'master' into fix/fence-selection-follows-redistribution-RML-18388 ([aa9b3e2](https://github.com/roomle-dev/roomle-ui/commit/aa9b3e2))
|
|
25
|
-
* Merge branch 'master' into fix/static-item-initial-scaling-RML-18372 ([d83d45e](https://github.com/roomle-dev/roomle-ui/commit/d83d45e))
|
|
26
|
-
* Merge branch 'master' into fix/static-item-initial-scaling-RML-18372 ([55bb73e](https://github.com/roomle-dev/roomle-ui/commit/55bb73e))
|
|
27
|
-
* Merge branch 'master' into fix/static-item-initial-scaling-RML-18372 ([1a051de](https://github.com/roomle-dev/roomle-ui/commit/1a051de))
|
|
28
|
-
* Merge branch 'master' into upgraded-by-ci/core-3.3.0-alpha.9 ([6378b40](https://github.com/roomle-dev/roomle-ui/commit/6378b40))
|
|
29
|
-
* Merge branch 'origin/fix/static-item-initial-scaling-RML-18372' into fix/static-item-initial-scaling ([aa947a3](https://github.com/roomle-dev/roomle-ui/commit/aa947a3))
|
|
30
|
-
* Merge branch 'origin/fix/static-item-initial-scaling-RML-18372' into fix/static-item-initial-scaling ([1f9db72](https://github.com/roomle-dev/roomle-ui/commit/1f9db72))
|
|
31
|
-
* Merge pull request #3167 from roomle-dev/feat/webgpu-vxgi ([27f0fca](https://github.com/roomle-dev/roomle-ui/commit/27f0fca)), closes [#3167](https://github.com/roomle-dev/roomle-ui/issues/3167)
|
|
32
|
-
* Merge pull request #3214 from roomle-dev/fix/ao-bounds-lazy-pass-RML-18333 ([9f4e769](https://github.com/roomle-dev/roomle-ui/commit/9f4e769)), closes [#3214](https://github.com/roomle-dev/roomle-ui/issues/3214)
|
|
33
|
-
* Merge pull request #3220 from roomle-dev/feat/helpcenter-auto-open-RML-18263 ([95c2143](https://github.com/roomle-dev/roomle-ui/commit/95c2143)), closes [#3220](https://github.com/roomle-dev/roomle-ui/issues/3220)
|
|
34
|
-
* Merge pull request #3238 from roomle-dev/fix/core-lockfile-hoist-RML-18282 ([fbb9cc1](https://github.com/roomle-dev/roomle-ui/commit/fbb9cc1)), closes [#3238](https://github.com/roomle-dev/roomle-ui/issues/3238)
|
|
35
|
-
* Merge pull request #3254 from roomle-dev/fix/static-item-initial-scaling-RML-18372 ([9b4cdbe](https://github.com/roomle-dev/roomle-ui/commit/9b4cdbe)), closes [#3254](https://github.com/roomle-dev/roomle-ui/issues/3254)
|
|
36
|
-
* Merge pull request #3256 from roomle-dev/fix/configurator-construction-hidden-wall-RML-18379 ([b29fc7a](https://github.com/roomle-dev/roomle-ui/commit/b29fc7a)), closes [#3256](https://github.com/roomle-dev/roomle-ui/issues/3256)
|
|
37
|
-
* Merge pull request #3257 from roomle-dev/fix/hide-ceiling-invisible-walls-RML-18377 ([d091103](https://github.com/roomle-dev/roomle-ui/commit/d091103)), closes [#3257](https://github.com/roomle-dev/roomle-ui/issues/3257)
|
|
38
|
-
* Merge pull request #3258 from roomle-dev/upgraded-by-ci/core-3.3.0-alpha.5 ([b4b70a3](https://github.com/roomle-dev/roomle-ui/commit/b4b70a3)), closes [#3258](https://github.com/roomle-dev/roomle-ui/issues/3258)
|
|
39
|
-
* Merge pull request #3259 from roomle-dev/chore/organize-configurator-assistant-docs ([4be42cc](https://github.com/roomle-dev/roomle-ui/commit/4be42cc)), closes [#3259](https://github.com/roomle-dev/roomle-ui/issues/3259)
|
|
40
|
-
* Merge pull request #3260 from roomle-dev/feat/hi-planning-assistant-lightweight ([056eaa3](https://github.com/roomle-dev/roomle-ui/commit/056eaa3)), closes [#3260](https://github.com/roomle-dev/roomle-ui/issues/3260)
|
|
41
|
-
* Merge pull request #3262 from roomle-dev/upgraded-by-ci/core-3.3.0-alpha.6 ([7630944](https://github.com/roomle-dev/roomle-ui/commit/7630944)), closes [#3262](https://github.com/roomle-dev/roomle-ui/issues/3262)
|
|
42
|
-
* Merge pull request #3263 from roomle-dev/chore/remove-ai-chat-configurator-presets-RML-18402 ([446c297](https://github.com/roomle-dev/roomle-ui/commit/446c297)), closes [#3263](https://github.com/roomle-dev/roomle-ui/issues/3263)
|
|
43
|
-
* Merge pull request #3267 from roomle-dev/release/live ([90f1313](https://github.com/roomle-dev/roomle-ui/commit/90f1313)), closes [#3267](https://github.com/roomle-dev/roomle-ui/issues/3267)
|
|
44
|
-
* Merge pull request #3268 from roomle-dev/upgraded-by-ci/core-3.3.0-alpha.7 ([8969add](https://github.com/roomle-dev/roomle-ui/commit/8969add)), closes [#3268](https://github.com/roomle-dev/roomle-ui/issues/3268)
|
|
45
|
-
* Merge pull request #3269 from roomle-dev/fix/fence-selection-follows-redistribution-RML-18388 ([d9a2756](https://github.com/roomle-dev/roomle-ui/commit/d9a2756)), closes [#3269](https://github.com/roomle-dev/roomle-ui/issues/3269)
|
|
46
|
-
* Merge pull request #3270 from roomle-dev/upgraded-by-ci/core-3.3.0-alpha.8 ([dce2b6c](https://github.com/roomle-dev/roomle-ui/commit/dce2b6c)), closes [#3270](https://github.com/roomle-dev/roomle-ui/issues/3270)
|
|
47
|
-
* Merge pull request #3271 from roomle-dev/fix/dimensions-test-renderer-bounds-RML-18441 ([c8e6ba6](https://github.com/roomle-dev/roomle-ui/commit/c8e6ba6)), closes [#3271](https://github.com/roomle-dev/roomle-ui/issues/3271)
|
|
48
|
-
* Merge pull request #3272 from roomle-dev/feat/hi-planning-assistant-improvements ([4cd9aae](https://github.com/roomle-dev/roomle-ui/commit/4cd9aae)), closes [#3272](https://github.com/roomle-dev/roomle-ui/issues/3272)
|
|
49
|
-
* Merge pull request #3274 from roomle-dev/upgraded-by-ci/core-3.3.0-alpha.9 ([821beb1](https://github.com/roomle-dev/roomle-ui/commit/821beb1)), closes [#3274](https://github.com/roomle-dev/roomle-ui/issues/3274)
|
|
50
|
-
* Merge remote-tracking branch 'origin/master' into release/test ([0f88fbc](https://github.com/roomle-dev/roomle-ui/commit/0f88fbc))
|
|
51
|
-
* Potential fix for pull request finding 'Auto-open tutorials overwrite the failed startup error overl ([c82db3f](https://github.com/roomle-dev/roomle-ui/commit/c82db3f))
|
|
52
|
-
* feat: continue the stored conversation in the follow-up turns of the planning assistant ([5ef1806](https://github.com/roomle-dev/roomle-ui/commit/5ef1806))
|
|
53
|
-
* feat(hi): declare the pos group payload in the tool schema and map guessed relation forms ([a242c2b](https://github.com/roomle-dev/roomle-ui/commit/a242c2b))
|
|
54
|
-
* feat(hi): list the backend ids and libraries of the user in the sc example ([856193a](https://github.com/roomle-dev/roomle-ui/commit/856193a))
|
|
55
|
-
* feat(hi): name the edit tools by the user's words and hint them on a replace ([15ab4f5](https://github.com/roomle-dev/roomle-ui/commit/15ab4f5))
|
|
56
|
-
* feat: name where each returned group stands in the plan context's words (standsAt) ([12e37eb](https://github.com/roomle-dev/roomle-ui/commit/12e37eb))
|
|
57
|
-
* feat: open the help center on start behind featureFlags.helpcenterAutoOpen ([deddc9b](https://github.com/roomle-dev/roomle-ui/commit/deddc9b))
|
|
58
|
-
* feat: read the agent's descriptions from the llmData of the library ([dbb625b](https://github.com/roomle-dev/roomle-ui/commit/dbb625b))
|
|
59
|
-
* feat(core): upgrade to version 3.3.0-alpha.5 ([71020b8](https://github.com/roomle-dev/roomle-ui/commit/71020b8))
|
|
60
|
-
* feat(core): upgrade to version 3.3.0-alpha.6 ([06c4c09](https://github.com/roomle-dev/roomle-ui/commit/06c4c09))
|
|
61
|
-
* feat(core): upgrade to version 3.3.0-alpha.7 ([ec79540](https://github.com/roomle-dev/roomle-ui/commit/ec79540))
|
|
62
|
-
* feat(core): upgrade to version 3.3.0-alpha.8 ([42c5e79](https://github.com/roomle-dev/roomle-ui/commit/42c5e79))
|
|
63
|
-
* feat(core): upgrade to version 3.3.0-alpha.9 ([92c7b9a](https://github.com/roomle-dev/roomle-ui/commit/92c7b9a))
|
|
64
|
-
* feat: vxgi for webgpu renderer ([d07c955](https://github.com/roomle-dev/roomle-ui/commit/d07c955))
|
|
65
|
-
* fix(hi): add heightMm to the agent-facing wall type ([668afba](https://github.com/roomle-dev/roomle-ui/commit/668afba))
|
|
66
|
-
* fix: address review comments on PR #3220 ([2ae11bc](https://github.com/roomle-dev/roomle-ui/commit/2ae11bc)), closes [#3220](https://github.com/roomle-dev/roomle-ui/issues/3220)
|
|
67
|
-
* fix(hi): answer an interior edit the library cannot calculate with the cause and the fix ([599c871](https://github.com/roomle-dev/roomle-ui/commit/599c871))
|
|
68
|
-
* fix(hi): answer opening and closing doors with the state of the doors and drawers ([f30369e](https://github.com/roomle-dev/roomle-ui/commit/f30369e))
|
|
69
|
-
* fix(hi): apply the review of the planning assistant's tool feedback ([3f03bfb](https://github.com/roomle-dev/roomle-ui/commit/3f03bfb))
|
|
70
|
-
* fix(hi): carry each appliance of an image in an article whose subModules hold it and name one left o ([fe36e2a](https://github.com/roomle-dev/roomle-ui/commit/fe36e2a))
|
|
71
|
-
* fix(hi): check a text value against its selections where the library gives no verified options ([ca882a5](https://github.com/roomle-dev/roomle-ui/commit/ca882a5))
|
|
72
|
-
* fix(hi): compare a replace with the article roots of the group, its generated roots left out ([61b4279](https://github.com/roomle-dev/roomle-ui/commit/61b4279))
|
|
73
|
-
* fix(hi): count the gap of a window as wall when reading the slope above it ([3423e64](https://github.com/roomle-dev/roomle-ui/commit/3423e64))
|
|
74
|
-
* fix(hi): describe a root with the llmData of its own library's article ([6962194](https://github.com/roomle-dev/roomle-ui/commit/6962194))
|
|
75
|
-
* fix(hi): describe each wall of the plan context in the agent's words ([de79487](https://github.com/roomle-dev/roomle-ui/commit/de79487))
|
|
76
|
-
* fix(hi): drop freeStretchesMm, a field no real plan context carried ([3278568](https://github.com/roomle-dev/roomle-ui/commit/3278568))
|
|
77
|
-
* fix(build): find the lock entry of a package npm recorded at another path ([70a60ab](https://github.com/roomle-dev/roomle-ui/commit/70a60ab))
|
|
78
|
-
* fix(hi): guard the frame point of the free-point hint for the type check ([dc648ff](https://github.com/roomle-dev/roomle-ui/commit/dc648ff))
|
|
79
|
-
* fix(hi): hang a group of wall units only placed by wall at the wall-unit height ([6f69a0c](https://github.com/roomle-dev/roomle-ui/commit/6f69a0c))
|
|
80
|
-
* fix: hide planner ceiling when all walls are invisible ([701a998](https://github.com/roomle-dev/roomle-ui/commit/701a998))
|
|
81
|
-
* fix: keep a whole-fence selection in step with the posts and fields the kernel adds or removes ([e0f8096](https://github.com/roomle-dev/roomle-ui/commit/e0f8096))
|
|
82
|
-
* fix(hi): keep the door side of a row of one and undo the whole last request of the user ([cb1736d](https://github.com/roomle-dev/roomle-ui/commit/cb1736d))
|
|
83
|
-
* fix: keep the flying menu in place when the kernel changes a selected fence ([a6d82c5](https://github.com/roomle-dev/roomle-ui/commit/a6d82c5))
|
|
84
|
-
* fix(planner): keep walls and doors/windows visible while configuring ([9e5b807](https://github.com/roomle-dev/roomle-ui/commit/9e5b807))
|
|
85
|
-
* fix(hi): leave the target out of the groups merge-groups merges into it ([bd94f61](https://github.com/roomle-dev/roomle-ui/commit/bd94f61))
|
|
86
|
-
* fix(hi): let a root without an article and a number written as text reach the server ([2349a8e](https://github.com/roomle-dev/roomle-ui/commit/2349a8e))
|
|
87
|
-
* fix(hi): move the images of a tool result into a user message for Mistral models ([aeb6bbe](https://github.com/roomle-dev/roomle-ui/commit/aeb6bbe))
|
|
88
|
-
* fix(hi): name in the result when a placed group reaches past its wall or out of the room ([d10a16e](https://github.com/roomle-dev/roomle-ui/commit/d10a16e))
|
|
89
|
-
* fix(hi): name the free point of a point-placed group in plan space and in the placement frame ([0aa3ad7](https://github.com/roomle-dev/roomle-ui/commit/0aa3ad7))
|
|
90
|
-
* fix(hi): name the gap-leaving delete among the edits that give a row a new end ([ed5e5b8](https://github.com/roomle-dev/roomle-ui/commit/ed5e5b8))
|
|
91
|
-
* fix(hi): name the placement that clears an obstacle in the result's hint ([463b179](https://github.com/roomle-dev/roomle-ui/commit/463b179))
|
|
92
|
-
* fix(hi): name the root modules each built group of a create has in the result hint ([e3c0e55](https://github.com/roomle-dev/roomle-ui/commit/e3c0e55))
|
|
93
|
-
* fix(hi): name the root modules of the built group in the composition hint ([6e71a80](https://github.com/roomle-dev/roomle-ui/commit/6e71a80))
|
|
94
|
-
* fix(hi): name the row an island of an image runs parallel to and face it to that row's wall ([3ab0f8a](https://github.com/roomle-dev/roomle-ui/commit/3ab0f8a))
|
|
95
|
-
* fix(hi): name the wall row in the doors rule and give the units above their place in it ([46cc31e](https://github.com/roomle-dev/roomle-ui/commit/46cc31e))
|
|
96
|
-
* fix(hi): name two root modules of one group that overlap in the result of a create ([d142620](https://github.com/roomle-dev/roomle-ui/commit/d142620))
|
|
97
|
-
* fix(web-sdk): pass scene bounds to lazily created AO and soft shadow passes ([2697591](https://github.com/roomle-dev/roomle-ui/commit/2697591))
|
|
98
|
-
* fix: publish a remaining member when the kernel removes the active member of a selection ([d682769](https://github.com/roomle-dev/roomle-ui/commit/d682769))
|
|
99
|
-
* fix(hi): read a wall row from the docking points and keep its side-docked units together ([f000858](https://github.com/roomle-dev/roomle-ui/commit/f000858))
|
|
100
|
-
* fix(hi): read attributes given as an object of ids and values without a correction ([00723fe](https://github.com/roomle-dev/roomle-ui/commit/00723fe))
|
|
101
|
-
* fix: reconcile related groups in planning assistant creates ([82ecd66](https://github.com/roomle-dev/roomle-ui/commit/82ecd66))
|
|
102
|
-
* fix: record roomle-core-hsc at the root of package-lock.json ([202c020](https://github.com/roomle-dev/roomle-ui/commit/202c020))
|
|
103
|
-
* fix: refresh the outline once a fence member the kernel added has loaded ([a4b0524](https://github.com/roomle-dev/roomle-ui/commit/a4b0524))
|
|
104
|
-
* fix(hi): replay the answers of the whole history as content after a rejected continuation ([ecc3095](https://github.com/roomle-dev/roomle-ui/commit/ecc3095))
|
|
105
|
-
* fix(hi): resolve guessed attribute ids and values against the library's vocabulary ([97d4d40](https://github.com/roomle-dev/roomle-ui/commit/97d4d40))
|
|
106
|
-
* fix(planner): restore configurator context before re-applying wall visibility after image export ([334bf13](https://github.com/roomle-dev/roomle-ui/commit/334bf13))
|
|
107
|
-
* fix(hi): run a command on the only group of the plan for an unknown group id ([2c46e55](https://github.com/roomle-dev/roomle-ui/commit/2c46e55))
|
|
108
|
-
* fix(hi): say that standsAt measures its span along the whole wall of a side ([dba360e](https://github.com/roomle-dev/roomle-ui/commit/dba360e))
|
|
109
|
-
* fix(planner): scale a static item to its kernel size on load ([36ec82f](https://github.com/roomle-dev/roomle-ui/commit/36ec82f))
|
|
110
|
-
* fix(web-sdk): send scene bounds to the image renderer in the configurator ([cec01d1](https://github.com/roomle-dev/roomle-ui/commit/cec01d1))
|
|
111
|
-
* fix: skip a wall the kernel does not add in drawWalls ([a19bb78](https://github.com/roomle-dev/roomle-ui/commit/a19bb78))
|
|
112
|
-
* test(hi): drop the unused vitest import in the replace test ([ee5e639](https://github.com/roomle-dev/roomle-ui/commit/ee5e639))
|
|
113
|
-
* test: restore spies after the door/window configuring tests ([b53468a](https://github.com/roomle-dev/roomle-ui/commit/b53468a))
|
|
114
|
-
* test: stub the renderer bounds update in the dimensionings bounds tests ([d0ac6f3](https://github.com/roomle-dev/roomle-ui/commit/d0ac6f3))
|
|
115
|
-
* chore: correct docs ([220c1c5](https://github.com/roomle-dev/roomle-ui/commit/220c1c5))
|
|
116
|
-
* chore: format the static item loader ([90c01a7](https://github.com/roomle-dev/roomle-ui/commit/90c01a7))
|
|
117
|
-
* chore: improve code quality/readability ([81a019e](https://github.com/roomle-dev/roomle-ui/commit/81a019e))
|
|
118
|
-
* chore: merge remote feat/helpcenter-auto-open-RML-18263 ([88f2cab](https://github.com/roomle-dev/roomle-ui/commit/88f2cab))
|
|
119
|
-
* chore(ai-chat): remove the configurator's untested prompt presets ([ba1bfe8](https://github.com/roomle-dev/roomle-ui/commit/ba1bfe8))
|
|
120
|
-
* refactor(web-sdk): keep one scene clip box per AO pass ([5dacb58](https://github.com/roomle-dev/roomle-ui/commit/5dacb58))
|
|
121
|
-
* refactor(sdk): remove the unused size parameter of the static item loader ([063b932](https://github.com/roomle-dev/roomle-ui/commit/063b932))
|
|
122
|
-
* docs(hi): decide that an appliance of an image is chosen by the subModules of the catalog before the ([51779de](https://github.com/roomle-dev/roomle-ui/commit/51779de))
|
|
123
|
-
* docs(hi): decide the overlap of two root modules of one group by their docking boxes ([3ef94bf](https://github.com/roomle-dev/roomle-ui/commit/3ef94bf))
|
|
124
|
-
* docs(hi): give the schema mapping and merge rows of the behaviour reference ids of their own ([f98b2ac](https://github.com/roomle-dev/roomle-ui/commit/f98b2ac))
|
|
125
|
-
* docs: move configurator agent documentation into .agents/configurator-assistant ([77f5208](https://github.com/roomle-dev/roomle-ui/commit/77f5208))
|
|
126
|
-
* docs(hi): name the rejected alternatives of the row of one and of the whole last request ([8178962](https://github.com/roomle-dev/roomle-ui/commit/8178962))
|
|
127
|
-
* docs(sdk): note that update() scales the static item after load ([e143bb9](https://github.com/roomle-dev/roomle-ui/commit/e143bb9))
|
|
128
|
-
* revert: restore the npm generated roomle-core-hsc lock entry ([e3f37e7](https://github.com/roomle-dev/roomle-ui/commit/e3f37e7))
|
|
3
|
+
* Merge branch 'master' into chore/add-on-ai-model-request-RML-18476 ([c83462c](https://github.com/roomle-dev/roomle-ui/commit/c83462c))
|
|
4
|
+
* Merge branch 'master' into chore/add-on-ai-model-request-RML-18476 ([f046490](https://github.com/roomle-dev/roomle-ui/commit/f046490))
|
|
5
|
+
* Merge branch 'master' into chore/lint-cdn-imports-client-keys-RML-18366 ([9fd991a](https://github.com/roomle-dev/roomle-ui/commit/9fd991a))
|
|
6
|
+
* Merge branch 'master' into chore/lint-cdn-imports-client-keys-RML-18366 ([2fab91e](https://github.com/roomle-dev/roomle-ui/commit/2fab91e))
|
|
7
|
+
* Merge branch 'master' into chore/lint-cdn-imports-client-keys-RML-18366 ([16a1fe3](https://github.com/roomle-dev/roomle-ui/commit/16a1fe3))
|
|
8
|
+
* Merge branch 'master' into release/test ([3f509b1](https://github.com/roomle-dev/roomle-ui/commit/3f509b1))
|
|
9
|
+
* Merge pull request #3239 from roomle-dev/chore/lint-cdn-imports-client-keys-RML-18366 ([c0dceee](https://github.com/roomle-dev/roomle-ui/commit/c0dceee)), closes [#3239](https://github.com/roomle-dev/roomle-ui/issues/3239)
|
|
10
|
+
* Merge pull request #3277 from roomle-dev/chore/add-on-ai-model-request-RML-18476 ([a713f2c](https://github.com/roomle-dev/roomle-ui/commit/a713f2c)), closes [#3277](https://github.com/roomle-dev/roomle-ui/issues/3277)
|
|
11
|
+
* feat(examples): serve image edits only for an azure chat with a key ([eab4755](https://github.com/roomle-dev/roomle-ui/commit/eab4755))
|
|
12
|
+
* refactor(examples): share the Foundry image-edits helpers and handler ([f0b053e](https://github.com/roomle-dev/roomle-ui/commit/f0b053e))
|
|
13
|
+
* chore: add onAiModelRequest to hi-sc-example and hi-presets-example ([ccfddba](https://github.com/roomle-dev/roomle-ui/commit/ccfddba))
|
|
14
|
+
* chore: lint runtime cdn imports and provider keys in client code ([6673410](https://github.com/roomle-dev/roomle-ui/commit/6673410))
|
|
15
|
+
* chore: update oxlint to 1.91.0 ([9043250](https://github.com/roomle-dev/roomle-ui/commit/9043250))
|
|
16
|
+
* chore: upgrade oxlint to 1.90.0 ([f7f48ba](https://github.com/roomle-dev/roomle-ui/commit/f7f48ba))
|
|
17
|
+
* chore: use await also in packages/embedding-lib/examples/demos/hi-presets-example.ts as we do it in ([b9376a3](https://github.com/roomle-dev/roomle-ui/commit/b9376a3))
|
|
18
|
+
* docs: forbid runtime cdn code and browser provider keys ([754285e](https://github.com/roomle-dev/roomle-ui/commit/754285e))
|
|
19
|
+
* docs: scope the CDN lint rule and require tickets only for temporary disables ([2cee3ba](https://github.com/roomle-dev/roomle-ui/commit/2cee3ba))
|
|
20
|
+
* fix: catch data, blob and vite-ignored imports and legacy openai keys ([934219a](https://github.com/roomle-dev/roomle-ui/commit/934219a))
|
package/hi.js
CHANGED
|
@@ -58,7 +58,7 @@ var i = (e, t) => t === e.libraryId ? e : {
|
|
|
58
58
|
_ && window.removeEventListener("message", _);
|
|
59
59
|
let r = typeof e == "string" ? { libraryId: e } : e;
|
|
60
60
|
n.onLoadJavascript === void 0 && (n.onLoadJavascript = (e) => f(i(r, e))), n.onLoadArticleCatalog === void 0 && (n.onLoadArticleCatalog = (e) => u(i(r, e))), n.onLoadMasterData === void 0 && (n.onLoadMasterData = (e) => d(i(r, e)));
|
|
61
|
-
let { expose: a } = await import("./comlink-
|
|
61
|
+
let { expose: a } = await import("./comlink-m82YLjsS.mjs");
|
|
62
62
|
_ = (e) => {
|
|
63
63
|
if (e.data.type === "connect_hi" && e.data.port) {
|
|
64
64
|
let i = e.data.port;
|
package/hi.min.js
CHANGED
|
@@ -57,7 +57,7 @@ var i = (e, t) => t === e.libraryId ? e : {
|
|
|
57
57
|
g && window.removeEventListener("message", g);
|
|
58
58
|
let a = typeof n == "string" ? { libraryId: n } : n;
|
|
59
59
|
r.onLoadJavascript === void 0 && (r.onLoadJavascript = (e) => f(i(a, e))), r.onLoadArticleCatalog === void 0 && (r.onLoadArticleCatalog = (e) => u(i(a, e))), r.onLoadMasterData === void 0 && (r.onLoadMasterData = (e) => d(i(a, e)));
|
|
60
|
-
let { expose: o } = await import("./comlink-
|
|
60
|
+
let { expose: o } = await import("./comlink-BYqErFai.mjs");
|
|
61
61
|
g = (n) => {
|
|
62
62
|
if (n.data.type === "connect_hi" && n.data.port) {
|
|
63
63
|
let i = n.data.port;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@roomle/embedding-lib",
|
|
3
|
-
"version": "9.1.0-alpha.
|
|
3
|
+
"version": "9.1.0-alpha.4",
|
|
4
4
|
"description": "This is a small library which can be used to communicate with the Roomle Configurator. ES modules only (browser-compatible).",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./roomle-embedding-lib.js",
|
|
@@ -23,6 +23,13 @@
|
|
|
23
23
|
"./hi/min": {
|
|
24
24
|
"import": "./hi.min.js"
|
|
25
25
|
},
|
|
26
|
+
"./ai": {
|
|
27
|
+
"import": "./ai.js",
|
|
28
|
+
"types": "./ai.d.ts"
|
|
29
|
+
},
|
|
30
|
+
"./ai/min": {
|
|
31
|
+
"import": "./ai.min.js"
|
|
32
|
+
},
|
|
26
33
|
"./plugins": {
|
|
27
34
|
"import": "./embedding-plugins.js",
|
|
28
35
|
"types": "./embedding-plugins.d.ts"
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { default as RoomleEmbeddingApi } from './roomle-embedding-lib';
|
|
2
|
+
import { AiFeature, AiModelHandlers } from '../../common/src/utils/ai-model-relay';
|
|
3
|
+
export type { AiFeature, AiModelAuthReason, AiModelHandlers, AiModelRequest, } from '../../common/src/utils/ai-model-relay';
|
|
4
|
+
export type { RenderingInput } from '../../../src/common/utils/img-gen';
|
|
5
|
+
export interface AiModelHostOptions extends AiModelHandlers {
|
|
6
|
+
/**
|
|
7
|
+
* The features the host answers; the others keep the built-in endpoints.
|
|
8
|
+
* Left out: every feature, also ones added later. Never empty.
|
|
9
|
+
*/
|
|
10
|
+
features?: AiFeature[];
|
|
11
|
+
}
|
|
12
|
+
/**
|
|
13
|
+
* What serveAiModelRequests hands back to the host page; once a later call
|
|
14
|
+
* has replaced this registration, both do nothing
|
|
15
|
+
*/
|
|
16
|
+
export interface AiModelHostControl {
|
|
17
|
+
/** The host's user signed out: its AI features lock until a sign-in */
|
|
18
|
+
signOut(): Promise<void>;
|
|
19
|
+
/** The built-in endpoints answer again */
|
|
20
|
+
stop(): Promise<void>;
|
|
21
|
+
}
|
|
22
|
+
/**
|
|
23
|
+
* The host page answers the AI model requests of `instance` with its own
|
|
24
|
+
* endpoint, and the AI features it serves switch to it; call it once the
|
|
25
|
+
* instance is created. Rejects, with the relay stopped, when the iframe
|
|
26
|
+
* cannot take the host, e.g. an older UI without the AI relay.
|
|
27
|
+
*/
|
|
28
|
+
export declare const serveAiModelRequests: (instance: Pick<RoomleEmbeddingApi<unknown, unknown>, "startRelay" | "ui">, { features, ...handlers }: AiModelHostOptions) => Promise<AiModelHostControl>;
|
|
@@ -24,6 +24,14 @@ export declare const getMethodNames: (proto: any, namespace: string, isCallback?
|
|
|
24
24
|
export declare const getConfiguratorSettings: (configuratorId: string, initData: UiInitData) => Promise<ConfiguratorSettings>;
|
|
25
25
|
export declare const INTERACTION_CONTAINER_SELECTOR = "data-rml-interaction-container";
|
|
26
26
|
export type { ConfiguratorSettings, UiInitData, } from '../../../src/configurator/embedding/types';
|
|
27
|
+
/** The host-side relays an instance serves, see startRelay */
|
|
28
|
+
export type EmbeddingRelayType = 'ai';
|
|
29
|
+
export interface EmbeddingRelay {
|
|
30
|
+
/** False once the next startRelay of the type or teardown replaced it */
|
|
31
|
+
isCurrent(): boolean;
|
|
32
|
+
/** Stops the relay; does nothing once it is replaced */
|
|
33
|
+
stop(): void;
|
|
34
|
+
}
|
|
27
35
|
interface PluginMap {
|
|
28
36
|
dragIn: typeof DragIn;
|
|
29
37
|
}
|
|
@@ -71,7 +79,16 @@ export default class RoomleEmbeddingApi<SdkType, SdkCallbacks> extends Connector
|
|
|
71
79
|
private _configuratorSettings;
|
|
72
80
|
private _initData;
|
|
73
81
|
private _iframe;
|
|
82
|
+
private _relays;
|
|
74
83
|
private constructor();
|
|
84
|
+
/**
|
|
85
|
+
* Serves a host-side relay of `type` (e.g. serveAiModelRequests of
|
|
86
|
+
* `@roomle/embedding-lib/ai`) for this instance's iframe: `start` gets the
|
|
87
|
+
* iframe's window and origin, to answer only its messages, and returns how
|
|
88
|
+
* to stop. One relay per type: the next call stops the previous one, and
|
|
89
|
+
* teardown stops all.
|
|
90
|
+
*/
|
|
91
|
+
startRelay(type: EmbeddingRelayType, start: (source: Window, origin: string) => () => void): EmbeddingRelay;
|
|
75
92
|
teardown(): void;
|
|
76
93
|
private _createIframe;
|
|
77
94
|
private _onResize;
|
|
@@ -31,5 +31,10 @@ export interface ConfiguratorAgentApi {
|
|
|
31
31
|
getConfiguratorAgentPrompts(): Promise<{
|
|
32
32
|
systemPrompt: string;
|
|
33
33
|
imagePrompt: string;
|
|
34
|
+
/**
|
|
35
|
+
* The root component of the product whose context the system prompt holds; absent while a
|
|
36
|
+
* definition of the product could not be read, so that the prompts are read again.
|
|
37
|
+
*/
|
|
38
|
+
rootComponentId?: string;
|
|
34
39
|
}>;
|
|
35
40
|
}
|
package/roomle-embedding-lib.js
CHANGED
|
@@ -44,7 +44,7 @@ var t = class {
|
|
|
44
44
|
}
|
|
45
45
|
_handleMessage(e) {
|
|
46
46
|
let t = e.ports && Array.isArray(e.ports) && e.ports.length > 0 ? e.ports[0] : null;
|
|
47
|
-
if (e.data &&
|
|
47
|
+
if (e.data && typeof e.data == "string" && t) try {
|
|
48
48
|
let n = JSON.parse(e.data);
|
|
49
49
|
if (!this._execMessage) return t.postMessage(JSON.stringify({ error: this._side + " is not ready to handle messages" }));
|
|
50
50
|
Array.isArray(n.args) || (n.args = [n.args]);
|
|
@@ -349,6 +349,7 @@ var w = /\/v[23]\/?$/, T = (e, t) => w.test(e) ? e.replace(w, "/v2") + t : e + t
|
|
|
349
349
|
_configuratorSettings;
|
|
350
350
|
_initData = {};
|
|
351
351
|
_iframe;
|
|
352
|
+
_relays = /* @__PURE__ */ new Map();
|
|
352
353
|
constructor(e, n, r, i, a) {
|
|
353
354
|
if (super(), !e || typeof e.id != "string") throw Error("Please provide a correct configuratorId, you get the correct ID from your Roomle Contact Person");
|
|
354
355
|
if (U.has(n)) throw Error("There is already an instance on this DOM element");
|
|
@@ -371,8 +372,20 @@ var w = /\/v[23]\/?$/, T = (e, t) => w.test(e) ? e.replace(w, "/v2") + t : e + t
|
|
|
371
372
|
let s = this._createIframe();
|
|
372
373
|
this._onUseFullPage = this._onUseFullPage.bind(this), this._onBackToWebsite = this._onBackToWebsite.bind(this), this._waitForIframe = a, this._container.appendChild(s), this._iframe = s, this.setupPlugins(i, this._iframe), U.set(n, !0);
|
|
373
374
|
}
|
|
375
|
+
startRelay(e, t) {
|
|
376
|
+
this._relays.get(e)?.();
|
|
377
|
+
let n = t(this._iframe.contentWindow, new URL(this._iframe.src, location.href).origin);
|
|
378
|
+
this._relays.set(e, n);
|
|
379
|
+
let r = () => this._relays.get(e) === n;
|
|
380
|
+
return {
|
|
381
|
+
isCurrent: r,
|
|
382
|
+
stop: () => {
|
|
383
|
+
r() && (n(), this._relays.delete(e));
|
|
384
|
+
}
|
|
385
|
+
};
|
|
386
|
+
}
|
|
374
387
|
teardown() {
|
|
375
|
-
this._container && U.delete(this._container);
|
|
388
|
+
this._relays.forEach((e) => e()), this._relays.clear(), this._container && U.delete(this._container);
|
|
376
389
|
let e = this._container.querySelector("iframe");
|
|
377
390
|
e && this._container.removeChild(e), window.removeEventListener("resize", this._onResize);
|
|
378
391
|
}
|
|
@@ -43,7 +43,7 @@ var t = class {
|
|
|
43
43
|
}
|
|
44
44
|
_handleMessage(e) {
|
|
45
45
|
let t = e.ports && Array.isArray(e.ports) && e.ports.length > 0 ? e.ports[0] : null;
|
|
46
|
-
if (e.data &&
|
|
46
|
+
if (e.data && typeof e.data == "string" && t) try {
|
|
47
47
|
let n = JSON.parse(e.data);
|
|
48
48
|
if (!this._execMessage) return t.postMessage(JSON.stringify({ error: this._side + " is not ready to handle messages" }));
|
|
49
49
|
Array.isArray(n.args) || (n.args = [n.args]);
|
|
@@ -331,6 +331,7 @@ var h = /\/v[23]\/?$/, g = {
|
|
|
331
331
|
_configuratorSettings;
|
|
332
332
|
_initData = {};
|
|
333
333
|
_iframe;
|
|
334
|
+
_relays = /* @__PURE__ */ new Map();
|
|
334
335
|
constructor(e, n, r, i, a) {
|
|
335
336
|
if (super(), !e || typeof e.id != "string") throw Error("Please provide a correct configuratorId, you get the correct ID from your Roomle Contact Person");
|
|
336
337
|
if (I.has(n)) throw Error("There is already an instance on this DOM element");
|
|
@@ -346,8 +347,20 @@ var h = /\/v[23]\/?$/, g = {
|
|
|
346
347
|
let s = this._createIframe();
|
|
347
348
|
this._onUseFullPage = this._onUseFullPage.bind(this), this._onBackToWebsite = this._onBackToWebsite.bind(this), this._waitForIframe = a, this._container.appendChild(s), this._iframe = s, this.setupPlugins(i, this._iframe), I.set(n, !0);
|
|
348
349
|
}
|
|
350
|
+
startRelay(e, t) {
|
|
351
|
+
this._relays.get(e)?.();
|
|
352
|
+
let n = t(this._iframe.contentWindow, new URL(this._iframe.src, location.href).origin);
|
|
353
|
+
this._relays.set(e, n);
|
|
354
|
+
let r = () => this._relays.get(e) === n;
|
|
355
|
+
return {
|
|
356
|
+
isCurrent: r,
|
|
357
|
+
stop: () => {
|
|
358
|
+
r() && (n(), this._relays.delete(e));
|
|
359
|
+
}
|
|
360
|
+
};
|
|
361
|
+
}
|
|
349
362
|
teardown() {
|
|
350
|
-
this._container && I.delete(this._container);
|
|
363
|
+
this._relays.forEach((e) => e()), this._relays.clear(), this._container && I.delete(this._container);
|
|
351
364
|
let e = this._container.querySelector("iframe");
|
|
352
365
|
e && this._container.removeChild(e), window.removeEventListener("resize", this._onResize);
|
|
353
366
|
}
|
package/sbom.cdx.json
CHANGED
|
@@ -3,14 +3,14 @@
|
|
|
3
3
|
"bomFormat": "CycloneDX",
|
|
4
4
|
"specVersion": "1.6",
|
|
5
5
|
"version": 1,
|
|
6
|
-
"serialNumber": "urn:uuid:
|
|
6
|
+
"serialNumber": "urn:uuid:324e2d46-332d-53ac-9268-ab5410ef6925",
|
|
7
7
|
"metadata": {
|
|
8
|
-
"timestamp": "2026-11-
|
|
8
|
+
"timestamp": "2026-11-09T13:46:15.000Z",
|
|
9
9
|
"component": {
|
|
10
10
|
"type": "library",
|
|
11
11
|
"name": "@roomle/embedding-lib",
|
|
12
|
-
"version": "
|
|
13
|
-
"bom-ref": "@roomle/embedding-lib@
|
|
12
|
+
"version": "3f509b1ce1f5a5caa5da17fc0b94a88328f881b6",
|
|
13
|
+
"bom-ref": "@roomle/embedding-lib@3f509b1ce1f5a5caa5da17fc0b94a88328f881b6"
|
|
14
14
|
}
|
|
15
15
|
},
|
|
16
16
|
"components": [
|
|
@@ -351,7 +351,7 @@
|
|
|
351
351
|
],
|
|
352
352
|
"dependencies": [
|
|
353
353
|
{
|
|
354
|
-
"ref": "@roomle/embedding-lib@
|
|
354
|
+
"ref": "@roomle/embedding-lib@3f509b1ce1f5a5caa5da17fc0b94a88328f881b6"
|
|
355
355
|
},
|
|
356
356
|
{
|
|
357
357
|
"ref": "pkg:npm/%40ai-sdk/anthropic@4.0.68"
|