@roomle/embedding-lib 11.0.0-alpha.6 → 11.0.0-alpha.8
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 +1 -1
- package/ai.js +6 -6
- package/ai.min.js +5 -4
- package/{browser-D6M-d6y5.mjs → browser-Cys-y5Hy.mjs} +1 -2
- package/chat-model-B7BO8IhK.mjs +212 -0
- package/chat-model-XYf503pT.mjs +213 -0
- package/coerce-CuLRCRlo.mjs +6 -0
- package/coerce-Dup0o-HR.mjs +7 -0
- package/{comlink-CG3f9q6z.mjs → comlink-7u13Z2ZH.mjs} +2 -3
- package/{comlink-hSUzCx9j.mjs → comlink-DKhvPU0o.mjs} +1 -1
- package/configurator.js +3 -4
- package/configurator.min.js +2 -2
- package/construction.js +278 -24
- package/construction.min.js +284 -27
- package/continuation-CswXtOus.mjs +10 -0
- package/continuation-NclHDSgS.mjs +9 -0
- package/{dist-Cm3aF4sf.mjs → dist-7-X7Xqsl.mjs} +851 -919
- package/{dist-BQaw78-_.mjs → dist-BMxyw-Zs.mjs} +411 -405
- package/{dist-0WZWTj8T.mjs → dist-BU022PnG.mjs} +4 -9
- package/{dist-DkR6G9Kj.mjs → dist-BY8OLJ2p.mjs} +1 -1
- package/{dist-6TznX-Ae.mjs → dist-BZSd56sr.mjs} +3850 -3942
- package/{dist-70R0b5Mq.mjs → dist-Ba3J8AjB.mjs} +400 -390
- package/{dist-CTS0DDwt.mjs → dist-CbQKC1xX.mjs} +1590 -1616
- package/{dist-BmOBP9h9.mjs → dist-CiybWJvs.mjs} +44 -41
- package/{dist-CPG4atmb.mjs → dist-CkZuNdCU.mjs} +6 -4
- package/{dist-Bt1FopV4.mjs → dist-D2ZAAHGn.mjs} +1058 -1042
- package/{dist-BWNv7qW9.mjs → dist-DjsS42rR.mjs} +916 -962
- package/{dist-9UI7dzwc.mjs → dist-Jcq_kKKT.mjs} +403 -393
- package/{dist-D0XFfKEL.mjs → dist-S9sLSjZ4.mjs} +3112 -3104
- package/{dist-BV-32IEX.mjs → dist-XECXrV5Q.mjs} +1497 -1558
- package/{dist-Bc2s-kJZ.mjs → dist-a5_BIeaS.mjs} +45 -51
- package/{dist-Crrp-Bno.mjs → dist-bQAJDeYc.mjs} +698 -748
- package/docs/md/web/embedding/CHANGELOG.md +19 -64
- package/{drag-ghost-BpIDzSdK.mjs → drag-ghost-QZelgA-_.mjs} +2 -3
- package/{drag-ghost-Bhb0_67G.mjs → drag-ghost-VmgSWLva.mjs} +5 -7
- package/{drag-in-mE_ozj_Q.mjs → drag-in-Cd_67tzS.mjs} +4 -5
- package/{drag-in-CGBG4wEk.mjs → drag-in-DlDsgY4T.mjs} +3 -3
- package/embedding-plugins.js +1 -2
- package/embedding-plugins.min.js +1 -2
- package/{experimental-evaluation-FzKFGoye.mjs → experimental-evaluation-B4hKMgFH.mjs} +19 -38
- package/{experimental-evaluation-DczxmJme.mjs → experimental-evaluation-DmqghFSx.mjs} +1 -1
- package/{from-custom-view-B3fIWMox.mjs → from-custom-view-6HMD_sPe.mjs} +5 -4
- package/{from-custom-view-B3HCOhdT.mjs → from-custom-view-BRFynafo.mjs} +16 -16
- package/{from-website-DaTahmvJ.mjs → from-website-Dl1VN4h7.mjs} +5 -6
- package/{from-website-DUQ9USj1.mjs → from-website-iZzauH4C.mjs} +3 -3
- package/hi.js +188 -197
- package/hi.min.js +193 -194
- package/mcp-tools-BLB7pCga.mjs +42 -0
- package/mcp-tools-BirFT2R0.mjs +41 -0
- package/package.json +1 -1
- package/packages/web-sdk/packages/assistant.d.ts +1 -0
- package/packages/web-sdk/packages/common-core/src/planning-assistant/runtime.d.ts +4 -1
- package/packages/web-sdk/packages/common-core/src/planning-assistant.d.ts +3 -0
- package/rolldown-runtime--db92txo.mjs +10 -0
- package/rolldown-runtime-CyjYJMBa.mjs +11 -0
- package/roomle-embedding-lib.js +25 -34
- package/roomle-embedding-lib.min.js +3 -3
- package/sbom.cdx.json +5 -5
- package/turn-limits-9LbUeSG2.mjs +9 -0
- package/turn-limits-Ciq383Bd.mjs +10 -0
- package/{utils-BwWn6Fw4.mjs → utils-CJnKZceY.mjs} +3 -4
- package/{utils-BoELtcEK.mjs → utils-DdNhTbJr.mjs} +6 -6
- package/chat-model-CZfZsgX9.mjs +0 -377
- package/chat-model-vgLJamoj.mjs +0 -373
- package/coerce-CqJod_GZ.mjs +0 -8
- package/coerce-CsI42_k0.mjs +0 -6
- package/mcp-tools-8qPMNqTK.mjs +0 -2
- package/mcp-tools-D_GxXscW.mjs +0 -2
- /package/{browser-BjtSrqbu.mjs → browser-CzLpXYFF.mjs} +0 -0
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
|
|
2
|
+
import "./chat-model-XYf503pT.mjs";
|
|
3
|
+
// packages/web-sdk/packages/common-core/src/planning-assistant/mcp-tools.ts
|
|
4
|
+
var e = ({ output: e }) => ({
|
|
5
|
+
type: "content",
|
|
6
|
+
value: e.content.map((e) => e.type === "text" ? {
|
|
7
|
+
type: "text",
|
|
8
|
+
text: e.text
|
|
9
|
+
} : {
|
|
10
|
+
type: "file",
|
|
11
|
+
mediaType: e.mimeType,
|
|
12
|
+
data: {
|
|
13
|
+
type: "data",
|
|
14
|
+
data: e.data
|
|
15
|
+
}
|
|
16
|
+
})
|
|
17
|
+
}), t = (t, n, r) => Object.fromEntries(t.map(({ name: t, description: i, inputSchema: a, annotations: o }) => {
|
|
18
|
+
let s = () => a;
|
|
19
|
+
return [t, {
|
|
20
|
+
type: "dynamic",
|
|
21
|
+
...o && { annotations: o },
|
|
22
|
+
description: i,
|
|
23
|
+
inputSchema: { "~standard": {
|
|
24
|
+
version: 1,
|
|
25
|
+
vendor: r,
|
|
26
|
+
validate: (e) => ({ value: e }),
|
|
27
|
+
jsonSchema: {
|
|
28
|
+
input: s,
|
|
29
|
+
output: s
|
|
30
|
+
}
|
|
31
|
+
} },
|
|
32
|
+
execute: async (e, r) => (r?.abortSignal?.throwIfAborted(), n(t, e).catch((e) => ({
|
|
33
|
+
content: [{
|
|
34
|
+
type: "text",
|
|
35
|
+
text: e instanceof Error ? e.message : String(e)
|
|
36
|
+
}],
|
|
37
|
+
isError: !0
|
|
38
|
+
}))),
|
|
39
|
+
toModelOutput: e
|
|
40
|
+
}];
|
|
41
|
+
}));
|
|
42
|
+
export { t };
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
|
|
2
|
+
import "./chat-model-B7BO8IhK.mjs";
|
|
3
|
+
var e = ({ output: e }) => ({
|
|
4
|
+
type: "content",
|
|
5
|
+
value: e.content.map((e) => e.type === "text" ? {
|
|
6
|
+
type: "text",
|
|
7
|
+
text: e.text
|
|
8
|
+
} : {
|
|
9
|
+
type: "file",
|
|
10
|
+
mediaType: e.mimeType,
|
|
11
|
+
data: {
|
|
12
|
+
type: "data",
|
|
13
|
+
data: e.data
|
|
14
|
+
}
|
|
15
|
+
})
|
|
16
|
+
}), t = (t, n, r) => Object.fromEntries(t.map(({ name: t, description: i, inputSchema: a, annotations: o }) => {
|
|
17
|
+
let s = () => a;
|
|
18
|
+
return [t, {
|
|
19
|
+
type: "dynamic",
|
|
20
|
+
...o && { annotations: o },
|
|
21
|
+
description: i,
|
|
22
|
+
inputSchema: { "~standard": {
|
|
23
|
+
version: 1,
|
|
24
|
+
vendor: r,
|
|
25
|
+
validate: (e) => ({ value: e }),
|
|
26
|
+
jsonSchema: {
|
|
27
|
+
input: s,
|
|
28
|
+
output: s
|
|
29
|
+
}
|
|
30
|
+
} },
|
|
31
|
+
execute: async (e, r) => (r?.abortSignal?.throwIfAborted(), n(t, e).catch((e) => ({
|
|
32
|
+
content: [{
|
|
33
|
+
type: "text",
|
|
34
|
+
text: e instanceof Error ? e.message : String(e)
|
|
35
|
+
}],
|
|
36
|
+
isError: !0
|
|
37
|
+
}))),
|
|
38
|
+
toModelOutput: e
|
|
39
|
+
}];
|
|
40
|
+
}));
|
|
41
|
+
export { t };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@roomle/embedding-lib",
|
|
3
|
-
"version": "11.0.0-alpha.
|
|
3
|
+
"version": "11.0.0-alpha.8",
|
|
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",
|
|
@@ -2,5 +2,6 @@ export { loadChatModel } from './common-core/src/planning-assistant/chat-model';
|
|
|
2
2
|
export type { PlanningAssistantConfig, ConfiguratorAgentApi, } from './common-core/src/planning-assistant/types';
|
|
3
3
|
export { createAgentMcpTools, mcpToModelOutput, type AgentMcpModelOutput, type AgentMcpInputSchema, type AgentMcpTool, type AgentMcpTools, } from './common-core/src/planning-assistant/mcp-tools';
|
|
4
4
|
export { createAssistant } from './common-core/src/planning-assistant/runtime';
|
|
5
|
+
export { MAX_TURN_STEPS, TURN_TIMEOUT_MS, lastTurnStep, } from './common-core/src/planning-assistant/turn-limits';
|
|
5
6
|
export { createChatRecovery } from './common-core/src/planning-assistant/chat-recovery';
|
|
6
7
|
export { responsesProviderOf } from './common-core/src/planning-assistant/continuation';
|
|
@@ -2,6 +2,7 @@ import { LanguageModelV4 } from '@ai-sdk/provider';
|
|
|
2
2
|
import { PlanningAssistantOutput, PlanningAssistantPrompt } from '../planning-assistant';
|
|
3
3
|
import { PlanningAssistantConfig } from './chat-model';
|
|
4
4
|
import { AgentMcpTools } from './mcp-tools';
|
|
5
|
+
import { ConfigurationAssistantLog } from './session-log';
|
|
5
6
|
/** Runs a browser agent with the tools and prompts supplied by its SDK domain. */
|
|
6
7
|
export declare const createAssistant: (config: PlanningAssistantConfig, signal: AbortSignal, output: (part: PlanningAssistantOutput) => unknown, setupDomain: () => Promise<{
|
|
7
8
|
prompts: {
|
|
@@ -16,4 +17,6 @@ export declare const createAssistant: (config: PlanningAssistantConfig, signal:
|
|
|
16
17
|
tools: AgentMcpTools;
|
|
17
18
|
summary(): string;
|
|
18
19
|
};
|
|
19
|
-
}, hostModel?: LanguageModelV4) => Promise<(prompt: PlanningAssistantPrompt, turnSignal?: AbortSignal) => Promise<boolean
|
|
20
|
+
}, hostModel?: LanguageModelV4) => Promise<((prompt: PlanningAssistantPrompt, turnSignal?: AbortSignal) => Promise<boolean>) & {
|
|
21
|
+
report: () => ConfigurationAssistantLog;
|
|
22
|
+
}>;
|
|
@@ -11,6 +11,7 @@ export interface PlanningAssistantPrompt {
|
|
|
11
11
|
* - "activity": what the agent does now, e.g. the tool it runs, shown in the status line
|
|
12
12
|
* - "error": the turn failed; the text replaces the answer of the turn and ends the turn
|
|
13
13
|
* - "done": the turn is complete; the input is free again
|
|
14
|
+
* - "time-limit": the turn reached its time limit; the window asks whether to continue, in the language of the UI
|
|
14
15
|
* - "availability": the input on or off, with the reason shown in the status line; off until the host enables it
|
|
15
16
|
* - "images": the image drop on or off; off until the host enables it
|
|
16
17
|
*/
|
|
@@ -26,6 +27,8 @@ export type PlanningAssistantOutput = {
|
|
|
26
27
|
statusCode?: number;
|
|
27
28
|
} | {
|
|
28
29
|
type: 'done';
|
|
30
|
+
} | {
|
|
31
|
+
type: 'time-limit';
|
|
29
32
|
} | {
|
|
30
33
|
type: 'availability';
|
|
31
34
|
available: boolean;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
|
|
2
|
+
var e = Object.defineProperty, t = (e, t) => () => (t || (e((t = { exports: {} }).exports, t, t.exports), e = null), t.exports), n = (t, n) => {
|
|
3
|
+
let r = {};
|
|
4
|
+
for (var i in t) e(r, i, {
|
|
5
|
+
get: t[i],
|
|
6
|
+
enumerable: !0
|
|
7
|
+
});
|
|
8
|
+
return n || e(r, Symbol.toStringTag, { value: "Module" }), r;
|
|
9
|
+
};
|
|
10
|
+
export { n, t };
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
|
|
2
|
+
// \0rolldown/runtime.js
|
|
3
|
+
var e = Object.defineProperty, t = (e, t) => () => (t || (e((t = { exports: {} }).exports, t, t.exports), e = null), t.exports), n = (t, n) => {
|
|
4
|
+
let r = {};
|
|
5
|
+
for (var i in t) e(r, i, {
|
|
6
|
+
get: t[i],
|
|
7
|
+
enumerable: !0
|
|
8
|
+
});
|
|
9
|
+
return n || e(r, Symbol.toStringTag, { value: "Module" }), r;
|
|
10
|
+
};
|
|
11
|
+
export { n, t };
|
package/roomle-embedding-lib.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/*! Third-party licenses: THIRD-PARTY-NOTICES.txt and sbom.cdx.json in the root of this package */
|
|
2
|
-
import { t as e } from "./browser-
|
|
3
|
-
|
|
2
|
+
import { t as e } from "./browser-Cys-y5Hy.mjs";
|
|
3
|
+
// packages/common/src/utils/message-handler.ts
|
|
4
4
|
var t = class {
|
|
5
5
|
_side;
|
|
6
6
|
_incomingMessageBus = null;
|
|
@@ -90,7 +90,7 @@ var t = class {
|
|
|
90
90
|
return !!(r.includes(e) || t.test(e) || e.endsWith("roomle.com") || e.endsWith("gitlab.io") || e.endsWith("gitlab.com"));
|
|
91
91
|
}, o = (e, t) => s(JSON.parse(JSON.stringify(e)), t), s = (e, t) => {
|
|
92
92
|
for (let n in t) try {
|
|
93
|
-
t[n].constructor === Object ?
|
|
93
|
+
e[n] = t[n].constructor === Object ? s(e[n], t[n]) : t[n];
|
|
94
94
|
} catch {
|
|
95
95
|
e[n] = t[n];
|
|
96
96
|
}
|
|
@@ -182,11 +182,8 @@ var t = class {
|
|
|
182
182
|
t.forEach((e) => {
|
|
183
183
|
let t = e.split("."), n = t[0], r = t[1];
|
|
184
184
|
this[n] || (this[n] = {}), this[n][r] = function() {
|
|
185
|
-
if (!this._messageHandler)
|
|
186
|
-
|
|
187
|
-
return;
|
|
188
|
-
}
|
|
189
|
-
return this._messageHandler.sendMessage(e, [...arguments]);
|
|
185
|
+
if (!this._messageHandler) console.error("MessageHandler not set");
|
|
186
|
+
else return this._messageHandler.sendMessage(e, [...arguments]);
|
|
190
187
|
}.bind(this);
|
|
191
188
|
}), n.forEach((e) => {
|
|
192
189
|
let t = e.split("."), n = t[0], r = t[1], i = t[2];
|
|
@@ -204,7 +201,7 @@ var t = class {
|
|
|
204
201
|
setupPlugins(e, t, n = "website") {
|
|
205
202
|
for (let r of e) typeof r == "string" && r === "dragIn" ? this.pluginsLoaded.push(new Promise((e, r) => {
|
|
206
203
|
try {
|
|
207
|
-
import("./drag-in-
|
|
204
|
+
import("./drag-in-Cd_67tzS.mjs").then((e) => e.n).then(({ DragIn: i }) => {
|
|
208
205
|
let a = new i(this.ui, t, n, this.viewName);
|
|
209
206
|
a.init().then(() => {
|
|
210
207
|
this.plugins.dragIn = a, e();
|
|
@@ -236,8 +233,7 @@ var t = class {
|
|
|
236
233
|
reject: t
|
|
237
234
|
};
|
|
238
235
|
};
|
|
239
|
-
|
|
240
|
-
//#region packages/common/src/utils/rapi-version.ts
|
|
236
|
+
// packages/common/src/utils/rapi-version.ts
|
|
241
237
|
(/* @__PURE__ */ "/items./items/{id}./items/{id}/renderings./items/{id}/conversions./items/{id}/3d-exports./items/{id}/perspectiveImage./items/{id}/perspectiveImageHD./items/{id}/topImage./items/{id}/tags./items/{id}/tagConnections./items/{id}/additionalContents./items/{id}/assetProcessings./items/{id}/3dAssets/{format}./items/{id}/3dAssets/{format}/{dummyFileName}./configurations./configurations/{id}./configurations/{id}/shares./configurations/{id}/renderings./configurations/{id}/3d-exports./configurations/{id}/3dAssets/{format}./configurations/{id}/3dAssets/{format}/{dummyFileName}./auth/signin./auth/signout./auth/reset./auth/reset/confirm./auth/change/pwd./auth/context./assets/analyze./version".split(".")).map((e) => RegExp("^" + e.replace(/\{[^}]+\}/g, "[^/]+") + "/?$"));
|
|
242
238
|
var w = /\/v[23]\/?$/, T = (e, t) => w.test(e) ? e.replace(w, "/v2") + t : e + t, E = {
|
|
243
239
|
SDK: "extended",
|
|
@@ -288,15 +284,15 @@ var w = /\/v[23]\/?$/, T = (e, t) => w.test(e) ? e.replace(w, "/v2") + t : e + t
|
|
|
288
284
|
}
|
|
289
285
|
});
|
|
290
286
|
}, L = () => window.innerHeight * .01 + "px", R = (e) => {
|
|
291
|
-
e && setTimeout(() => e.style.setProperty(
|
|
292
|
-
}, z = "rml-styles", B =
|
|
287
|
+
e && setTimeout(() => e.style.setProperty(B, L()), 0);
|
|
288
|
+
}, z = "rml-styles", B = "--rml-full-height", V = {
|
|
293
289
|
CONTAINER: "rml-container",
|
|
294
290
|
FILL: "rml-fill",
|
|
295
291
|
POSITION: "rml-pos",
|
|
296
292
|
TRANSITION: "rml-transition",
|
|
297
293
|
ANDROID_HEIGHT: "rml-android-height",
|
|
298
294
|
OVERFLOW_HIDDEN: "rml-overflow-hidden"
|
|
299
|
-
},
|
|
295
|
+
}, H = /* @__PURE__ */ new Map(), U = class extends S {
|
|
300
296
|
static createPlanner(e, t, n, r = []) {
|
|
301
297
|
return this._create(e, t, n, r);
|
|
302
298
|
}
|
|
@@ -352,25 +348,25 @@ var w = /\/v[23]\/?$/, T = (e, t) => w.test(e) ? e.replace(w, "/v2") + t : e + t
|
|
|
352
348
|
_relays = /* @__PURE__ */ new Map();
|
|
353
349
|
constructor(e, n, r, i, a) {
|
|
354
350
|
if (super(), !e || typeof e.id != "string") throw Error("Please provide a correct configuratorId, you get the correct ID from your Roomle Contact Person");
|
|
355
|
-
if (
|
|
351
|
+
if (H.has(n)) throw Error("There is already an instance on this DOM element");
|
|
356
352
|
if (!document.getElementById(z)) {
|
|
357
353
|
let e = r.zIndex || 9999999, t = document.createElement("style");
|
|
358
354
|
t.type = "text/css", t.id = z;
|
|
359
|
-
let n = "transition:all ease-in-out
|
|
355
|
+
let n = "transition:all ease-in-out 450ms;", i = ["-webkit-", "-o-"].reduce((e, t) => e += t + n, "") + n, a = L();
|
|
360
356
|
t.innerHTML = `
|
|
361
|
-
.${
|
|
362
|
-
.${
|
|
363
|
-
.${
|
|
364
|
-
.${
|
|
365
|
-
.${
|
|
366
|
-
.${
|
|
357
|
+
.${V.CONTAINER}{${B}:${a};}
|
|
358
|
+
.${V.POSITION}{position:fixed;top:0;left:0;z-index:${e};opacity:0}
|
|
359
|
+
.${V.TRANSITION}{${i}}
|
|
360
|
+
.${V.FILL}{width:100%;height:100%;opacity:1}
|
|
361
|
+
.${V.ANDROID_HEIGHT}{height:calc(var(${B},1vh)*100)}
|
|
362
|
+
.${V.OVERFLOW_HIDDEN}{overflow:hidden}
|
|
367
363
|
`, document.head.appendChild(t);
|
|
368
364
|
}
|
|
369
365
|
this._executeMessage = this._executeMessage.bind(this);
|
|
370
366
|
let o = new t("website", window, null, this._executeMessage);
|
|
371
367
|
this.setMessageHandler(o), this._onResize = this._onResize.bind(this), x() && window.addEventListener("resize", this._onResize), this._container = n, this._initData = r, this._configuratorSettings = e;
|
|
372
368
|
let s = this._createIframe();
|
|
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),
|
|
369
|
+
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), H.set(n, !0);
|
|
374
370
|
}
|
|
375
371
|
startRelay(e, t) {
|
|
376
372
|
this._relays.get(e)?.();
|
|
@@ -385,35 +381,30 @@ var w = /\/v[23]\/?$/, T = (e, t) => w.test(e) ? e.replace(w, "/v2") + t : e + t
|
|
|
385
381
|
};
|
|
386
382
|
}
|
|
387
383
|
teardown() {
|
|
388
|
-
this._relays.forEach((e) => e()), this._relays.clear(), this._container &&
|
|
384
|
+
this._relays.forEach((e) => e()), this._relays.clear(), this._container && H.delete(this._container);
|
|
389
385
|
let e = this._container.querySelector("iframe");
|
|
390
386
|
e && this._container.removeChild(e), window.removeEventListener("resize", this._onResize);
|
|
391
387
|
}
|
|
392
388
|
_createIframe() {
|
|
393
389
|
let e = document.createElement("iframe"), t = this._configuratorSettings?.url || "https://www.roomle.com/t/cp/";
|
|
394
|
-
return this._initData.useLocalRoomle && (t = location.href.replace("embedding.html", "")), location.href.includes("roomle.gitlab.io") && (t = location.href.replace("embedding.html", "index.html")), this._initData.overrideServerUrl && (t = this._initData.overrideServerUrl), e.src = t, e.allow = "microphone", e.classList.add(
|
|
390
|
+
return this._initData.useLocalRoomle && (t = location.href.replace("embedding.html", "")), location.href.includes("roomle.gitlab.io") && (t = location.href.replace("embedding.html", "index.html")), this._initData.overrideServerUrl && (t = this._initData.overrideServerUrl), e.src = t, e.allow = "microphone", e.classList.add(V.CONTAINER), e.classList.add(V.FILL), e;
|
|
395
391
|
}
|
|
396
392
|
_onResize() {
|
|
397
393
|
R(this._iframe);
|
|
398
394
|
}
|
|
399
395
|
_onUseFullPage() {
|
|
400
|
-
this._iframe.classList.add(
|
|
396
|
+
this._iframe.classList.add(V.POSITION), document.documentElement.classList.add(V.OVERFLOW_HIDDEN), window.document.body.classList.add(V.OVERFLOW_HIDDEN), x() && (R(this._iframe), this._iframe.classList.add(V.ANDROID_HEIGHT));
|
|
401
397
|
}
|
|
402
398
|
_onBackToWebsite() {
|
|
403
|
-
this._iframe.classList.remove(
|
|
399
|
+
this._iframe.classList.remove(V.POSITION), this._iframe.classList.remove(V.ANDROID_HEIGHT), document.documentElement.classList.remove(V.OVERFLOW_HIDDEN), window.document.body.classList.remove(V.OVERFLOW_HIDDEN);
|
|
404
400
|
}
|
|
405
401
|
_executeMessage({ message: e, args: t }, n) {
|
|
406
402
|
if (n.source && n.source === this._iframe?.contentWindow) return e === k.REQUEST_BOOT ? this._messageHandler ? (this._messageHandler.setOutgoingMessageBus(n.source), Promise.resolve({ result: this._initData })) : (console.error("MessageHandler not set"), Promise.resolve({ error: "MessageHandler not set" })) : e === k.SETUP ? (this.handleSetup(t[0]), I(this.ui.callbacks, "onUseFullPage", this._onUseFullPage), I(this.ui.callbacks, "onBackToWebsite", this._onBackToWebsite), this._waitForIframe(this), setTimeout(() => {
|
|
407
|
-
|
|
408
|
-
console.error("MessageHandler not set");
|
|
409
|
-
return;
|
|
410
|
-
}
|
|
411
|
-
this._messageHandler.sendMessage(k.WEBSITE_READY);
|
|
403
|
+
this._messageHandler ? this._messageHandler.sendMessage(k.WEBSITE_READY) : console.error("MessageHandler not set");
|
|
412
404
|
}, 0), Promise.resolve({ result: null })) : this.executeMessage({
|
|
413
405
|
message: e,
|
|
414
406
|
args: t
|
|
415
407
|
});
|
|
416
408
|
}
|
|
417
409
|
};
|
|
418
|
-
|
|
419
|
-
export { k as HANDSHAKE_MESSAGES, F as INTERACTION_CONTAINER_SELECTOR, E as NAMESPACE, D as NAMESPACE_SEPARATOR, O as SDK_CALLBACK, A as WELL_KNOWN_MESSAGES, W as default, P as getConfiguratorSettings, N as getMethodNames, M as isExposable };
|
|
410
|
+
export { k as HANDSHAKE_MESSAGES, F as INTERACTION_CONTAINER_SELECTOR, E as NAMESPACE, D as NAMESPACE_SEPARATOR, O as SDK_CALLBACK, A as WELL_KNOWN_MESSAGES, U as default, P as getConfiguratorSettings, N as getMethodNames, M as isExposable };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*! Third-party licenses: THIRD-PARTY-NOTICES.txt and sbom.cdx.json in the root of this package */
|
|
2
|
-
import { t as e } from "./browser-
|
|
2
|
+
import { t as e } from "./browser-CzLpXYFF.mjs";
|
|
3
3
|
var t = class {
|
|
4
4
|
_side;
|
|
5
5
|
_incomingMessageBus = null;
|
|
@@ -68,7 +68,7 @@ var t = class {
|
|
|
68
68
|
"0.0.0.0"
|
|
69
69
|
], r = (e, t) => i(JSON.parse(JSON.stringify(e)), t), i = (e, t) => {
|
|
70
70
|
for (let n in t) try {
|
|
71
|
-
t[n].constructor === Object ?
|
|
71
|
+
e[n] = t[n].constructor === Object ? i(e[n], t[n]) : t[n];
|
|
72
72
|
} catch {
|
|
73
73
|
e[n] = t[n];
|
|
74
74
|
}
|
|
@@ -185,7 +185,7 @@ var t = class {
|
|
|
185
185
|
setupPlugins(e, t, n = "website") {
|
|
186
186
|
for (let r of e) typeof r == "string" && r === "dragIn" ? this.pluginsLoaded.push(new Promise((e, r) => {
|
|
187
187
|
try {
|
|
188
|
-
import("./drag-in-
|
|
188
|
+
import("./drag-in-DlDsgY4T.mjs").then((e) => e.n).then(({ DragIn: i }) => {
|
|
189
189
|
let a = new i(this.ui, t, n, this.viewName);
|
|
190
190
|
a.init().then(() => {
|
|
191
191
|
this.plugins.dragIn = a, e();
|
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:8e765d15-d1d0-5699-85ed-bd4d4bd3d386",
|
|
7
7
|
"metadata": {
|
|
8
|
-
"timestamp": "2026-11-
|
|
8
|
+
"timestamp": "2026-11-19T15:58: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": "6c976ce966d609b719b325ee0b93730911cc68d5",
|
|
13
|
+
"bom-ref": "@roomle/embedding-lib@6c976ce966d609b719b325ee0b93730911cc68d5"
|
|
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@6c976ce966d609b719b325ee0b93730911cc68d5"
|
|
355
355
|
},
|
|
356
356
|
{
|
|
357
357
|
"ref": "pkg:npm/%40ai-sdk/anthropic@4.0.68"
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
|
|
2
|
+
var e = (e) => AbortSignal.any(e), t = 3e5, n = (e) => `The turn reached its time limit of ${e / 6e4} minutes. Should I continue?`, r = (e, t, r) => (r({ type: "time-limit" }), r({ type: "done" }), {
|
|
3
|
+
role: "assistant",
|
|
4
|
+
content: `${e}\n\n${n(t)}`
|
|
5
|
+
}), i = "The step limit of this turn is reached: this answer cannot call a tool. Tell the user what you did and what is still open, say that the step limit of the turn was reached, and ask whether you should continue. The next message of the user starts a new turn, in which you can call tools again.", a = (e, t) => e === 31 ? {
|
|
6
|
+
toolChoice: "none",
|
|
7
|
+
instructions: t ? `${t}\n\n${i}` : i
|
|
8
|
+
} : {};
|
|
9
|
+
export { e as a, n as i, r as n, a as r, t };
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
|
|
2
|
+
// packages/common/src/dep-free/abort-signal.ts
|
|
3
|
+
var e = (e) => AbortSignal.any(e), t = 3e5, n = (e) => `The turn reached its time limit of ${e / 6e4} minutes. Should I continue?`, r = (e, t, r) => (r({ type: "time-limit" }), r({ type: "done" }), {
|
|
4
|
+
role: "assistant",
|
|
5
|
+
content: `${e}\n\n${n(t)}`
|
|
6
|
+
}), i = "The step limit of this turn is reached: this answer cannot call a tool. Tell the user what you did and what is still open, say that the step limit of the turn was reached, and ask whether you should continue. The next message of the user starts a new turn, in which you can call tools again.", a = (e, t) => e === 31 ? {
|
|
7
|
+
toolChoice: "none",
|
|
8
|
+
instructions: t ? `${t}\n\n${i}` : i
|
|
9
|
+
} : {};
|
|
10
|
+
export { e as a, n as i, r as n, a as r, t };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
|
|
2
|
-
|
|
2
|
+
// packages/common/src/utils/get-computed-style-cached.ts
|
|
3
3
|
var e = class {
|
|
4
4
|
_computedStyleCache = /* @__PURE__ */ new Map();
|
|
5
5
|
_maxLifetime = 16;
|
|
@@ -122,11 +122,10 @@ var e = class {
|
|
|
122
122
|
top: i.y,
|
|
123
123
|
bottom: i.y + i.height
|
|
124
124
|
})), o && !s && !c;
|
|
125
|
-
}, d = (e, t, n, r) => l(e, t, n) ? r
|
|
125
|
+
}, d = (e, t, n, r) => l(e, t, n) ? !r || !l(e, t, {
|
|
126
126
|
left: r.left + n.left,
|
|
127
127
|
right: r.right + n.left,
|
|
128
128
|
top: r.top + n.top,
|
|
129
129
|
bottom: r.bottom + n.top
|
|
130
|
-
}) : !
|
|
131
|
-
//#endregion
|
|
130
|
+
}) : !1;
|
|
132
131
|
export { u as a, t as c, a as i, o as n, d as o, r, l as s, c as t };
|
|
@@ -80,36 +80,36 @@ var e, t = class {
|
|
|
80
80
|
return r === void 0 ? (...e) => {} : r;
|
|
81
81
|
} }), l = (e, t, n) => e >= n.left && e <= n.right && t >= n.top && t <= n.bottom, u = (e, t, n, r, i, a) => {
|
|
82
82
|
let o = !1;
|
|
83
|
-
n && (o = l(e, t,
|
|
83
|
+
n && (o = a ? l(e, t, {
|
|
84
84
|
left: a.left + n.x,
|
|
85
85
|
right: a.left + n.x + n.width,
|
|
86
86
|
top: a.top + n.y,
|
|
87
87
|
bottom: a.top + n.y + n.height
|
|
88
|
-
} : {
|
|
88
|
+
}) : l(e, t, {
|
|
89
89
|
left: n.x,
|
|
90
90
|
right: n.x + n.width,
|
|
91
91
|
top: n.y,
|
|
92
92
|
bottom: n.y + n.height
|
|
93
93
|
}));
|
|
94
94
|
let s = !1;
|
|
95
|
-
r && (s = l(e, t,
|
|
95
|
+
r && (s = a ? l(e, t, {
|
|
96
96
|
left: a.left + r.x,
|
|
97
97
|
right: a.left + r.x + r.width,
|
|
98
98
|
top: a.top + r.y,
|
|
99
99
|
bottom: a.top + r.y + r.height
|
|
100
|
-
} : {
|
|
100
|
+
}) : l(e, t, {
|
|
101
101
|
left: r.x,
|
|
102
102
|
right: r.x + r.width,
|
|
103
103
|
top: r.y,
|
|
104
104
|
bottom: r.y + r.height
|
|
105
105
|
}));
|
|
106
106
|
let c = !1;
|
|
107
|
-
return i && (c = l(e, t,
|
|
107
|
+
return i && (c = a ? l(e, t, {
|
|
108
108
|
left: a.left + i.x,
|
|
109
109
|
right: a.left + i.x + i.width,
|
|
110
110
|
top: a.top + i.y,
|
|
111
111
|
bottom: a.top + i.y + i.height
|
|
112
|
-
} : {
|
|
112
|
+
}) : l(e, t, {
|
|
113
113
|
left: i.x,
|
|
114
114
|
right: i.x + i.width,
|
|
115
115
|
top: i.y,
|