@roomle/embedding-lib 9.1.0-alpha.2 → 9.1.0-alpha.3
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 +120 -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 5d3d52ca37742547fdded8befb045096fbca4756
|
|
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,121 @@
|
|
|
1
|
-
## 9.1.0-alpha.
|
|
1
|
+
## 9.1.0-alpha.3 (2026-11-09)
|
|
2
2
|
|
|
3
|
-
* Merge branch '
|
|
4
|
-
* Merge branch 'master' into
|
|
5
|
-
* Merge branch 'master' into
|
|
6
|
-
* Merge branch 'master' into feat/
|
|
7
|
-
* Merge branch 'master' into feat/
|
|
8
|
-
* Merge branch 'master' into feat/
|
|
9
|
-
* Merge branch 'master' into feat/
|
|
10
|
-
* Merge branch 'master' into feat/
|
|
11
|
-
* Merge branch 'master' into feat/
|
|
12
|
-
* Merge branch 'master' into feat/
|
|
13
|
-
* Merge branch 'master' into feat/
|
|
14
|
-
* Merge branch 'master' into feat/
|
|
15
|
-
* Merge branch 'master' into feat/
|
|
16
|
-
* Merge branch 'master' into
|
|
17
|
-
* Merge branch 'master' into
|
|
18
|
-
* Merge branch 'master' into
|
|
19
|
-
* Merge branch 'master' into
|
|
20
|
-
* Merge branch 'master' into
|
|
21
|
-
* Merge branch 'master' into
|
|
22
|
-
* Merge branch 'master' into fix/
|
|
23
|
-
* Merge branch 'master' into
|
|
24
|
-
* Merge branch 'master' into
|
|
25
|
-
* Merge
|
|
26
|
-
* Merge
|
|
27
|
-
* Merge
|
|
28
|
-
* Merge
|
|
29
|
-
* Merge
|
|
30
|
-
* Merge
|
|
31
|
-
* Merge pull request #
|
|
32
|
-
* Merge pull request #
|
|
33
|
-
* Merge pull request #
|
|
34
|
-
* Merge pull request #
|
|
35
|
-
* Merge pull request #
|
|
36
|
-
*
|
|
37
|
-
*
|
|
38
|
-
*
|
|
39
|
-
*
|
|
40
|
-
*
|
|
41
|
-
*
|
|
42
|
-
*
|
|
43
|
-
*
|
|
44
|
-
*
|
|
45
|
-
*
|
|
46
|
-
*
|
|
47
|
-
*
|
|
48
|
-
*
|
|
49
|
-
*
|
|
50
|
-
*
|
|
51
|
-
*
|
|
52
|
-
* feat:
|
|
53
|
-
* feat(
|
|
54
|
-
* feat
|
|
55
|
-
* feat
|
|
56
|
-
* feat:
|
|
57
|
-
* feat:
|
|
58
|
-
* feat:
|
|
59
|
-
* feat(
|
|
60
|
-
* feat(
|
|
61
|
-
* feat
|
|
62
|
-
* feat(
|
|
63
|
-
* feat(
|
|
64
|
-
* feat:
|
|
65
|
-
*
|
|
66
|
-
*
|
|
67
|
-
*
|
|
68
|
-
*
|
|
69
|
-
* fix(
|
|
70
|
-
* fix
|
|
71
|
-
* fix
|
|
72
|
-
* fix
|
|
73
|
-
* fix
|
|
74
|
-
* fix(
|
|
75
|
-
* fix(
|
|
76
|
-
* fix
|
|
77
|
-
* fix
|
|
78
|
-
* fix
|
|
79
|
-
* fix(
|
|
80
|
-
* fix:
|
|
81
|
-
* fix:
|
|
82
|
-
* fix
|
|
83
|
-
* fix:
|
|
84
|
-
* fix(
|
|
85
|
-
* fix(
|
|
86
|
-
* fix(
|
|
87
|
-
* fix(
|
|
88
|
-
* fix
|
|
89
|
-
* fix
|
|
90
|
-
* fix
|
|
91
|
-
* fix(
|
|
92
|
-
* fix(
|
|
93
|
-
* fix(
|
|
94
|
-
* fix
|
|
95
|
-
* fix
|
|
96
|
-
* fix
|
|
97
|
-
* fix
|
|
98
|
-
*
|
|
99
|
-
*
|
|
100
|
-
*
|
|
101
|
-
*
|
|
102
|
-
*
|
|
103
|
-
*
|
|
104
|
-
*
|
|
105
|
-
*
|
|
106
|
-
*
|
|
107
|
-
*
|
|
108
|
-
*
|
|
109
|
-
*
|
|
110
|
-
*
|
|
111
|
-
*
|
|
112
|
-
*
|
|
113
|
-
*
|
|
114
|
-
*
|
|
115
|
-
*
|
|
116
|
-
*
|
|
117
|
-
*
|
|
118
|
-
*
|
|
119
|
-
*
|
|
120
|
-
*
|
|
121
|
-
*
|
|
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 'feat/ai-model-transport-renderings-RML-18361' of github.com:roomle-dev/roomle-ui into ([3c4352f](https://github.com/roomle-dev/roomle-ui/commit/3c4352f))
|
|
4
|
+
* Merge branch 'master' into feat/ai-model-transport-renderings-RML-18361 ([656414e](https://github.com/roomle-dev/roomle-ui/commit/656414e))
|
|
5
|
+
* Merge branch 'master' into feat/ai-model-transport-renderings-RML-18361 ([82628d8](https://github.com/roomle-dev/roomle-ui/commit/82628d8))
|
|
6
|
+
* Merge branch 'master' into feat/ai-model-transport-renderings-RML-18361 ([0b33cb1](https://github.com/roomle-dev/roomle-ui/commit/0b33cb1))
|
|
7
|
+
* Merge branch 'master' into feat/ai-model-transport-renderings-RML-18361 ([38c3182](https://github.com/roomle-dev/roomle-ui/commit/38c3182))
|
|
8
|
+
* Merge branch 'master' into feat/ai-model-transport-renderings-RML-18361 ([a963122](https://github.com/roomle-dev/roomle-ui/commit/a963122))
|
|
9
|
+
* Merge branch 'master' into feat/ai-model-transport-renderings-RML-18361 ([c97fecd](https://github.com/roomle-dev/roomle-ui/commit/c97fecd))
|
|
10
|
+
* Merge branch 'master' into feat/ai-model-transport-renderings-RML-18361 ([bf04f5f](https://github.com/roomle-dev/roomle-ui/commit/bf04f5f))
|
|
11
|
+
* Merge branch 'master' into feat/arrow-key-move-RML-18282 ([eaac424](https://github.com/roomle-dev/roomle-ui/commit/eaac424))
|
|
12
|
+
* Merge branch 'master' into feat/arrow-key-move-RML-18282 ([5766bc2](https://github.com/roomle-dev/roomle-ui/commit/5766bc2))
|
|
13
|
+
* Merge branch 'master' into feat/arrow-key-move-RML-18282 ([3ac7baa](https://github.com/roomle-dev/roomle-ui/commit/3ac7baa))
|
|
14
|
+
* Merge branch 'master' into feat/arrow-key-move-RML-18282 ([c4fa868](https://github.com/roomle-dev/roomle-ui/commit/c4fa868))
|
|
15
|
+
* Merge branch 'master' into feat/arrow-key-move-RML-18282 ([7e59085](https://github.com/roomle-dev/roomle-ui/commit/7e59085))
|
|
16
|
+
* Merge branch 'master' into feat/three-js-187 ([8ae7717](https://github.com/roomle-dev/roomle-ui/commit/8ae7717))
|
|
17
|
+
* Merge branch 'master' into feat/three-js-187 ([9f513d9](https://github.com/roomle-dev/roomle-ui/commit/9f513d9))
|
|
18
|
+
* Merge branch 'master' into feat/three-js-187 ([9f107e1](https://github.com/roomle-dev/roomle-ui/commit/9f107e1))
|
|
19
|
+
* Merge branch 'master' into feat/warn-integrated-gpu ([be55a5a](https://github.com/roomle-dev/roomle-ui/commit/be55a5a))
|
|
20
|
+
* Merge branch 'master' into feat/warn-integrated-gpu ([b30880f](https://github.com/roomle-dev/roomle-ui/commit/b30880f))
|
|
21
|
+
* Merge branch 'master' into feat/warn-integrated-gpu ([3238596](https://github.com/roomle-dev/roomle-ui/commit/3238596))
|
|
22
|
+
* Merge branch 'master' into fix/hi-root-attribute-target-RML-18508 ([b1affc3](https://github.com/roomle-dev/roomle-ui/commit/b1affc3))
|
|
23
|
+
* Merge branch 'master' into release/test ([5d3d52c](https://github.com/roomle-dev/roomle-ui/commit/5d3d52c))
|
|
24
|
+
* Merge branch 'master' into upgraded-by-ci/core-3.3.0-alpha.10 ([1ecbb89](https://github.com/roomle-dev/roomle-ui/commit/1ecbb89))
|
|
25
|
+
* Merge pull request #3237 from roomle-dev/feat/arrow-key-move-RML-18282 ([8eb0b50](https://github.com/roomle-dev/roomle-ui/commit/8eb0b50)), closes [#3237](https://github.com/roomle-dev/roomle-ui/issues/3237)
|
|
26
|
+
* Merge pull request #3240 from roomle-dev/feat/warn-integrated-gpu ([40544ed](https://github.com/roomle-dev/roomle-ui/commit/40544ed)), closes [#3240](https://github.com/roomle-dev/roomle-ui/issues/3240)
|
|
27
|
+
* Merge pull request #3255 from roomle-dev/feat/ai-model-transport-renderings-RML-18361 ([10ff7f7](https://github.com/roomle-dev/roomle-ui/commit/10ff7f7)), closes [#3255](https://github.com/roomle-dev/roomle-ui/issues/3255)
|
|
28
|
+
* Merge pull request #3273 from roomle-dev/feat/three-js-187 ([03addc9](https://github.com/roomle-dev/roomle-ui/commit/03addc9)), closes [#3273](https://github.com/roomle-dev/roomle-ui/issues/3273)
|
|
29
|
+
* Merge pull request #3275 from roomle-dev/fix/types-qa-kernel-plain-arrays ([b5c7293](https://github.com/roomle-dev/roomle-ui/commit/b5c7293)), closes [#3275](https://github.com/roomle-dev/roomle-ui/issues/3275)
|
|
30
|
+
* Merge pull request #3276 from roomle-dev/fix/webgpu-race-condition ([85c8bce](https://github.com/roomle-dev/roomle-ui/commit/85c8bce)), closes [#3276](https://github.com/roomle-dev/roomle-ui/issues/3276)
|
|
31
|
+
* Merge pull request #3278 from roomle-dev/feat/configuration-assistant-improvements-RML-18392 ([a967289](https://github.com/roomle-dev/roomle-ui/commit/a967289)), closes [#3278](https://github.com/roomle-dev/roomle-ui/issues/3278)
|
|
32
|
+
* Merge pull request #3279 from roomle-dev/upgraded-by-ci/core-3.3.0-alpha.10 ([40c68ad](https://github.com/roomle-dev/roomle-ui/commit/40c68ad)), closes [#3279](https://github.com/roomle-dev/roomle-ui/issues/3279)
|
|
33
|
+
* Merge pull request #3289 from roomle-dev/chore/slim-agents-md-RML-18505 ([1d024d3](https://github.com/roomle-dev/roomle-ui/commit/1d024d3)), closes [#3289](https://github.com/roomle-dev/roomle-ui/issues/3289)
|
|
34
|
+
* Merge pull request #3293 from roomle-dev/fix/hi-root-attribute-target-RML-18508 ([ee4cd3f](https://github.com/roomle-dev/roomle-ui/commit/ee4cd3f)), closes [#3293](https://github.com/roomle-dev/roomle-ui/issues/3293)
|
|
35
|
+
* Merge pull request #3300 from roomle-dev/upgraded-by-ci/core-3.3.0-alpha.11 ([dc01e56](https://github.com/roomle-dev/roomle-ui/commit/dc01e56)), closes [#3300](https://github.com/roomle-dev/roomle-ui/issues/3300)
|
|
36
|
+
* refactor: address review comments on PR #3237 ([0b8dd3c](https://github.com/roomle-dev/roomle-ui/commit/0b8dd3c)), closes [#3237](https://github.com/roomle-dev/roomle-ui/issues/3237)
|
|
37
|
+
* refactor: address review comments on PR #3237 ([03d1c86](https://github.com/roomle-dev/roomle-ui/commit/03d1c86)), closes [#3237](https://github.com/roomle-dev/roomle-ui/issues/3237)
|
|
38
|
+
* refactor: address review comments on PR #3237 ([cfaface](https://github.com/roomle-dev/roomle-ui/commit/cfaface)), closes [#3237](https://github.com/roomle-dev/roomle-ui/issues/3237)
|
|
39
|
+
* refactor(ai-image): close the AI model connection with async/await ([eb903d7](https://github.com/roomle-dev/roomle-ui/commit/eb903d7))
|
|
40
|
+
* refactor(planner): drop finishKeyboardMove and its redundant environment update ([2a61585](https://github.com/roomle-dev/roomle-ui/commit/2a61585))
|
|
41
|
+
* refactor(planner): drop redundant renders after moving elements ([bbbb63e](https://github.com/roomle-dev/roomle-ui/commit/bbbb63e))
|
|
42
|
+
* refactor(planner): extract plan element moved notification ([88d8811](https://github.com/roomle-dev/roomle-ui/commit/88d8811))
|
|
43
|
+
* refactor: name the external root dependency refresh target ([680e1fc](https://github.com/roomle-dev/roomle-ui/commit/680e1fc))
|
|
44
|
+
* refactor(ai-image): name the image chat's AI feature once ([a391b65](https://github.com/roomle-dev/roomle-ui/commit/a391b65))
|
|
45
|
+
* refactor(ai-chat): relay AI model requests over lazy-loaded Comlink ([4f58f4b](https://github.com/roomle-dev/roomle-ui/commit/4f58f4b))
|
|
46
|
+
* refactor(ai-image): send the host only the feature and its JSON input ([f41faf6](https://github.com/roomle-dev/roomle-ui/commit/f41faf6))
|
|
47
|
+
* feat(ai-image): a host answers rendering requests with a multipart form ([f98231c](https://github.com/roomle-dev/roomle-ui/commit/f98231c))
|
|
48
|
+
* feat(embedding-lib): a public startRelay for host-side relays of an instance ([3258959](https://github.com/roomle-dev/roomle-ui/commit/3258959))
|
|
49
|
+
* feat: add docs link to webgpu integrated gpu warning ([c42fc4c](https://github.com/roomle-dev/roomle-ui/commit/c42fc4c))
|
|
50
|
+
* feat: add replace-component and swap-components configuration assistant tools ([3c2215d](https://github.com/roomle-dev/roomle-ui/commit/3c2215d))
|
|
51
|
+
* feat(embedding-lib): AI image chat example with the HOMAG Foundry as endpoint ([f308a6b](https://github.com/roomle-dev/roomle-ui/commit/f308a6b))
|
|
52
|
+
* feat(embedding-lib): AI image demos render on Sunburst, take ?customApiUrl= ([e6fb08b](https://github.com/roomle-dev/roomle-ui/commit/e6fb08b))
|
|
53
|
+
* feat(ai-chat): ask the host page for its login when the chat shows ([d23bd7d](https://github.com/roomle-dev/roomle-ui/commit/d23bd7d))
|
|
54
|
+
* feat: continue the stored conversation of the configuration assistant on openai and azure responses ([7ef85f1](https://github.com/roomle-dev/roomle-ui/commit/7ef85f1))
|
|
55
|
+
* feat: give the configuration assistant a static product context and a configuration context per turn ([1116ce4](https://github.com/roomle-dev/roomle-ui/commit/1116ce4))
|
|
56
|
+
* feat: give the configuration assistant the llm data and skills of the component definitions ([9e84c5c](https://github.com/roomle-dev/roomle-ui/commit/9e84c5c))
|
|
57
|
+
* feat: initdata flag to (partially) disable integrated gpu warning ([2dc4255](https://github.com/roomle-dev/roomle-ui/commit/2dc4255))
|
|
58
|
+
* feat: log the tool calls of the configuration assistant with their arguments and outcome ([c9b333c](https://github.com/roomle-dev/roomle-ui/commit/c9b333c))
|
|
59
|
+
* feat(planner): move selected objects with the arrow keys ([b599858](https://github.com/roomle-dev/roomle-ui/commit/b599858))
|
|
60
|
+
* feat(ai-chat): own image-gen endpoint and login for the host page ([9ebf884](https://github.com/roomle-dev/roomle-ui/commit/9ebf884))
|
|
61
|
+
* feat: request high performance adapter and warn if it is an integrated gpu on webgpu ([5d529b4](https://github.com/roomle-dev/roomle-ui/commit/5d529b4))
|
|
62
|
+
* feat(embedding-lib): serveAiModelRequests in its own ai entry point, with optional features ([97b24ea](https://github.com/roomle-dev/roomle-ui/commit/97b24ea))
|
|
63
|
+
* feat(embedding-lib): serveAiModelRequests waits for the iframe, features without null ([3e0107d](https://github.com/roomle-dev/roomle-ui/commit/3e0107d))
|
|
64
|
+
* feat(embedding-lib): the HOMAG demo keeps the user's camera ([7e262e6](https://github.com/roomle-dev/roomle-ui/commit/7e262e6))
|
|
65
|
+
* feat: threejs r187 ([d835831](https://github.com/roomle-dev/roomle-ui/commit/d835831))
|
|
66
|
+
* feat(ai-chat): try again after a failed turn and wait out a 429 ([fc2085e](https://github.com/roomle-dev/roomle-ui/commit/fc2085e))
|
|
67
|
+
* feat(core): upgrade to version 3.3.0-alpha.10 ([cf4c8f0](https://github.com/roomle-dev/roomle-ui/commit/cf4c8f0))
|
|
68
|
+
* feat(core): upgrade to version 3.3.0-alpha.11 ([978a250](https://github.com/roomle-dev/roomle-ui/commit/978a250))
|
|
69
|
+
* fix(types-qa): accept KernelAttic[] break for v5.12.0 baseline ([b717fdf](https://github.com/roomle-dev/roomle-ui/commit/b717fdf))
|
|
70
|
+
* fix: address review comments on PR #3237 ([cffc2b9](https://github.com/roomle-dev/roomle-ui/commit/cffc2b9)), closes [#3237](https://github.com/roomle-dev/roomle-ui/issues/3237)
|
|
71
|
+
* fix: address review comments on PR #3255 ([0dbe948](https://github.com/roomle-dev/roomle-ui/commit/0dbe948)), closes [#3255](https://github.com/roomle-dev/roomle-ui/issues/3255)
|
|
72
|
+
* fix: address review comments on PR #3255 ([0047328](https://github.com/roomle-dev/roomle-ui/commit/0047328)), closes [#3255](https://github.com/roomle-dev/roomle-ui/issues/3255)
|
|
73
|
+
* fix: address the review of the configuration assistant improvements ([44c4972](https://github.com/roomle-dev/roomle-ui/commit/44c4972))
|
|
74
|
+
* fix(embedding-lib): ask the Foundry demo's images/edits call for PNG explicitly ([0179b1c](https://github.com/roomle-dev/roomle-ui/commit/0179b1c))
|
|
75
|
+
* fix(ai-image): close the AI model port without waiting for the host ([50d68cd](https://github.com/roomle-dev/roomle-ui/commit/50d68cd))
|
|
76
|
+
* fix: confirm an assistant write once the history has committed its change ([f629743](https://github.com/roomle-dev/roomle-ui/commit/f629743))
|
|
77
|
+
* fix: keep attribute edits on the selected root ([d33d44e](https://github.com/roomle-dev/roomle-ui/commit/d33d44e))
|
|
78
|
+
* fix: keep hi examples on their deployed planner ([f1074ba](https://github.com/roomle-dev/roomle-ui/commit/f1074ba))
|
|
79
|
+
* fix(ai-chat): keep the host login button's click handler void ([e022db9](https://github.com/roomle-dev/roomle-ui/commit/e022db9))
|
|
80
|
+
* fix: mitigate race condition for large webgpu scenes ([a0fdd9d](https://github.com/roomle-dev/roomle-ui/commit/a0fdd9d))
|
|
81
|
+
* fix: preserve initial plan-object parameter updates ([7dabbce](https://github.com/roomle-dev/roomle-ui/commit/7dabbce))
|
|
82
|
+
* fix: preserve parameter updates without a response type ([4ced1d1](https://github.com/roomle-dev/roomle-ui/commit/4ced1d1))
|
|
83
|
+
* fix(agents): restore two When to Load triggers dropped by the trim ([826249b](https://github.com/roomle-dev/roomle-ui/commit/826249b))
|
|
84
|
+
* fix(ai-chat): send the b2c-api its multipart form, built from the JSON input ([d028299](https://github.com/roomle-dev/roomle-ui/commit/d028299)), closes [b2c-mono#85](https://github.com/b2c-mono/issues/85)
|
|
85
|
+
* fix(ai-chat): send the host endpoint the Sunburst path's prompt with the legend ([31e0e65](https://github.com/roomle-dev/roomle-ui/commit/31e0e65))
|
|
86
|
+
* fix(ai-chat): send the img-gen request with a literal POST ([34f9a65](https://github.com/roomle-dev/roomle-ui/commit/34f9a65))
|
|
87
|
+
* fix(embedding-lib): send the own-endpoint demo's request as the b2c-api's multipart form ([4796a42](https://github.com/roomle-dev/roomle-ui/commit/4796a42))
|
|
88
|
+
* fix: settle the mesh-queue entry of a mesh that fails to load ([e581585](https://github.com/roomle-dev/roomle-ui/commit/e581585))
|
|
89
|
+
* fix: show docking previews only to add a child and start step texts on a new paragraph ([522059d](https://github.com/roomle-dev/roomle-ui/commit/522059d))
|
|
90
|
+
* fix: show the configuration assistant the root component's runtime id instead of the configuration's ([7e45620](https://github.com/roomle-dev/roomle-ui/commit/7e45620))
|
|
91
|
+
* fix(ai-image): stop a request aborted while Comlink loads before it reaches the host ([876df40](https://github.com/roomle-dev/roomle-ui/commit/876df40))
|
|
92
|
+
* fix(embedding-lib): the Foundry example passes its 400, 429 and wait on ([f5244fa](https://github.com/roomle-dev/roomle-ui/commit/f5244fa))
|
|
93
|
+
* fix(embedding-lib): the own-endpoint demo signs in with prompt() ([6fc2a76](https://github.com/roomle-dev/roomle-ui/commit/6fc2a76))
|
|
94
|
+
* fix: type the assistant's tool outcome for the embedding flag schema build ([4bd393f](https://github.com/roomle-dev/roomle-ui/commit/4bd393f))
|
|
95
|
+
* fix: type the swap runtime ids for the embedding type check ([96b06c0](https://github.com/roomle-dev/roomle-ui/commit/96b06c0))
|
|
96
|
+
* fix: use the local planner in the hi development example ([6c4edfc](https://github.com/roomle-dev/roomle-ui/commit/6c4edfc))
|
|
97
|
+
* fix: use the local planner in the hi sign-in example ([7673621](https://github.com/roomle-dev/roomle-ui/commit/7673621))
|
|
98
|
+
* test: emit initial load completion from the mocked kernel ([bd5554e](https://github.com/roomle-dev/roomle-ui/commit/bd5554e))
|
|
99
|
+
* test(common): MessageHandler leaves connect_hi and the AI relay's port alone ([5b1da6a](https://github.com/roomle-dev/roomle-ui/commit/5b1da6a))
|
|
100
|
+
* test(e2e): update linux snapshot baselines for three.js r187 ([adbcb55](https://github.com/roomle-dev/roomle-ui/commit/adbcb55))
|
|
101
|
+
* chore(embedding-lib): add the built-in Roomle endpoint as an AI image chat demo ([edcb108](https://github.com/roomle-dev/roomle-ui/commit/edcb108))
|
|
102
|
+
* chore: add translations ([ac1da4d](https://github.com/roomle-dev/roomle-ui/commit/ac1da4d))
|
|
103
|
+
* chore(snapshots): auto-update headless baselines [skip ci] ([698ad3a](https://github.com/roomle-dev/roomle-ui/commit/698ad3a))
|
|
104
|
+
* chore: change integrated intel gpu -> intel gpu (sorry arc users) ([44069b6](https://github.com/roomle-dev/roomle-ui/commit/44069b6))
|
|
105
|
+
* chore(ai-chat): let lint:flags pass AbortSignal.any until RML-18405 ([f3420c1](https://github.com/roomle-dev/roomle-ui/commit/f3420c1))
|
|
106
|
+
* chore: merge master ([c44df30](https://github.com/roomle-dev/roomle-ui/commit/c44df30))
|
|
107
|
+
* chore: merge master into feat/ai-model-transport-renderings-RML-18361 ([cd8e5e1](https://github.com/roomle-dev/roomle-ui/commit/cd8e5e1))
|
|
108
|
+
* chore: merge master into feat/ai-model-transport-renderings-RML-18361 ([b57cfbd](https://github.com/roomle-dev/roomle-ui/commit/b57cfbd))
|
|
109
|
+
* chore: merge master into feat/configuration-assistant-improvements-RML-18392 ([5399aec](https://github.com/roomle-dev/roomle-ui/commit/5399aec))
|
|
110
|
+
* chore(embedding-lib): open the AI endpoint demos in the planner with the L kitchen ([b39b97a](https://github.com/roomle-dev/roomle-ui/commit/b39b97a))
|
|
111
|
+
* chore(agents): slim AGENTS.md, which is loaded on every AI turn ([86be368](https://github.com/roomle-dev/roomle-ui/commit/86be368))
|
|
112
|
+
* chore(embedding-lib): stage the HOMAG Foundry demo's kitchen at lived-in density ([1fe3dcb](https://github.com/roomle-dev/roomle-ui/commit/1fe3dcb))
|
|
113
|
+
* chore(embedding-lib): type the AI demos' imageGenConfig without a cast ([043118f](https://github.com/roomle-dev/roomle-ui/commit/043118f))
|
|
114
|
+
* chore: untrack the Playwright MCP session logs and ignore them ([9c13bc7](https://github.com/roomle-dev/roomle-ui/commit/9c13bc7))
|
|
115
|
+
* docs(agents): absorb details moved out of AGENTS.md into topical guidelines ([e2b965e](https://github.com/roomle-dev/roomle-ui/commit/e2b965e))
|
|
116
|
+
* docs(agents): host and iframe talk over MessageHandler or Comlink only ([f11b3a9](https://github.com/roomle-dev/roomle-ui/commit/f11b3a9))
|
|
117
|
+
* docs(embedding-lib): quote the ai entry point in the relay hook's JSDoc ([c729c5b](https://github.com/roomle-dev/roomle-ui/commit/c729c5b))
|
|
118
|
+
* docs(ai-chat): tell hosts to settle onRequestAiModelAuth on cancel ([c433a02](https://github.com/roomle-dev/roomle-ui/commit/c433a02))
|
|
119
|
+
* docs(ai-image): wrap the RenderingInput comment ([9c017d0](https://github.com/roomle-dev/roomle-ui/commit/9c017d0))
|
|
120
|
+
* perf(ai-image): encode the data URL only on the host route ([81f5c14](https://github.com/roomle-dev/roomle-ui/commit/81f5c14))
|
|
121
|
+
* style: format arrow key move tests ([f47a922](https://github.com/roomle-dev/roomle-ui/commit/f47a922))
|
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.3",
|
|
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:c6e70339-8149-5e2e-826d-4da271be3165",
|
|
7
7
|
"metadata": {
|
|
8
|
-
"timestamp": "2026-11-
|
|
8
|
+
"timestamp": "2026-11-09T09:08:18.000Z",
|
|
9
9
|
"component": {
|
|
10
10
|
"type": "library",
|
|
11
11
|
"name": "@roomle/embedding-lib",
|
|
12
|
-
"version": "
|
|
13
|
-
"bom-ref": "@roomle/embedding-lib@
|
|
12
|
+
"version": "5d3d52ca37742547fdded8befb045096fbca4756",
|
|
13
|
+
"bom-ref": "@roomle/embedding-lib@5d3d52ca37742547fdded8befb045096fbca4756"
|
|
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@5d3d52ca37742547fdded8befb045096fbca4756"
|
|
355
355
|
},
|
|
356
356
|
{
|
|
357
357
|
"ref": "pkg:npm/%40ai-sdk/anthropic@4.0.68"
|