@roomle/embedding-lib 9.1.0-alpha.4 → 10.0.0-alpha.1
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/chat-model-DKlWonm6.mjs +322 -0
- package/chat-model-gyIajfDW.mjs +327 -0
- package/configurator.js +1 -1
- package/configurator.min.js +1 -1
- package/construction.d.ts +2 -0
- package/construction.js +58 -0
- package/construction.min.js +56 -0
- package/{dist-XEy6Tk_Y.mjs → dist-6TznX-Ae.mjs} +1657 -1484
- package/{dist-B9yy8ym8.mjs → dist-BsVeWZ8R.mjs} +1 -1
- package/{dist-Bb2L1Zel.mjs → dist-CjIZv2gB.mjs} +1 -1
- package/{dist-5jYYtT4q.mjs → dist-Cmx_tCV5.mjs} +1 -1
- package/{dist-C5fKJXpB.mjs → dist-CnTUCpLZ.mjs} +1 -1
- package/{dist-GTk8ppiK.mjs → dist-Cxe4osFc.mjs} +1 -1
- package/{dist-DJtonrDM.mjs → dist-D0XFfKEL.mjs} +3081 -2908
- package/{dist-Bo3WzRdf.mjs → dist-DCzWWudD.mjs} +1 -1
- package/docs/md/web/embedding/CHANGELOG.md +46 -19
- package/{drag-ghost-yXe7c8jA.mjs → drag-ghost-B24KVqgc.mjs} +1 -1
- package/{drag-ghost-D7FnWbO4.mjs → drag-ghost-C1WS2KmW.mjs} +1 -1
- package/{drag-in-t7T6Pqwc.mjs → drag-in-CWHSbwvG.mjs} +3 -3
- package/{drag-in-BiEe2Lgv.mjs → drag-in-O5uwMddL.mjs} +3 -3
- package/embedding-plugins.js +1 -1
- package/embedding-plugins.min.js +1 -1
- package/{from-custom-view-CTBapIc6.mjs → from-custom-view-BgmiWIEN.mjs} +3 -3
- package/{from-custom-view-xbjgsLll.mjs → from-custom-view-CxmIIsHU.mjs} +3 -3
- package/{from-website-JwG7Ic_U.mjs → from-website-B8qFEG_R.mjs} +3 -3
- package/{from-website-DUPMQPl6.mjs → from-website-CvcnHmr2.mjs} +3 -3
- package/hi.js +4 -4
- package/hi.min.js +4 -4
- package/package.json +8 -1
- package/packages/embedding-lib/src/construction-agent/construction-mcp-tools.d.ts +10 -0
- package/packages/embedding-lib/src/construction-agent/construction-planning-assistant.d.ts +7 -0
- package/packages/embedding-lib/src/construction.d.ts +3 -0
- package/packages/embedding-lib/src/planning-assistant/chat-recovery.d.ts +1 -0
- package/packages/embedding-lib/src/planning-assistant/planning-assistant.d.ts +15 -0
- package/packages/web-sdk/packages/assistant.d.ts +3 -1
- package/roomle-embedding-lib.js +2 -2
- package/roomle-embedding-lib.min.js +2 -2
- package/sbom.cdx.json +5 -5
- package/mcp-tools-Cnhgobge.mjs +0 -153
- package/mcp-tools-D3Ei3Apu.mjs +0 -151
- /package/{browser-D6As4Zxr.mjs → browser-BjtSrqbu.mjs} +0 -0
- /package/{browser-zrjtYpL8.mjs → browser-D6M-d6y5.mjs} +0 -0
- /package/{dist-CXemOs84.mjs → dist-BI_3AeI-.mjs} +0 -0
- /package/{dist-CqpDM10w.mjs → dist-CGgFMwb1.mjs} +0 -0
- /package/{dist-CqP0aX0A.mjs → dist-CZbrRF4T.mjs} +0 -0
- /package/{dist-D0kh4WfT.mjs → dist-Dr3LcjP6.mjs} +0 -0
- /package/{dist-COgAdYY1.mjs → dist-Ur4DqwwC.mjs} +0 -0
- /package/{dist-D5HdKuwj.mjs → dist-wPZpiGiu.mjs} +0 -0
- /package/{experimental-evaluation-D56MbtjO.mjs → experimental-evaluation-DPkDk-5A.mjs} +0 -0
- /package/{experimental-evaluation-BgWFolud.mjs → experimental-evaluation-DyONuPyk.mjs} +0 -0
- /package/{utils-CAAGdgk8.mjs → utils-BoELtcEK.mjs} +0 -0
- /package/{utils-WeolMfC5.mjs → utils-BwWn6Fw4.mjs} +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
|
|
2
2
|
import { At as e, Bt as t, E as n, Et as r, H as i, Ht as a, I as o, J as s, Jt as c, K as l, L as u, Lt as d, M as f, N as p, O as m, Ot as h, P as g, Q as _, Rt as v, S as y, Sn as b, St as x, T as S, Tt as C, U as w, Vt as T, W as E, Wt as D, X as O, Yt as k, _ as A, _t as j, a as M, an as N, bn as P, bt as F, dn as I, dt as ee, f as L, fn as R, g as te, gn as z, h as ne, in as B, it as re, j as V, jn as H, jt as U, kn as ie, kt as ae, ln as W, m as oe, nn as se, nt as ce, ot as G, p as le, pt as ue, rn as de, rt as fe, sn as K, st as pe, tn as q, ut as me, w as he, wt as J, y as ge, zt as _e } from "./dist-BV-32IEX.mjs";
|
|
3
|
-
import { t as ve } from "./experimental-evaluation-
|
|
3
|
+
import { t as ve } from "./experimental-evaluation-DyONuPyk.mjs";
|
|
4
4
|
//#region node_modules/@ai-sdk/google/dist/index.js
|
|
5
5
|
var ye = "4.0.85", Y = he({
|
|
6
6
|
errorSchema: G(() => t(N({ error: N({
|
|
@@ -1,20 +1,47 @@
|
|
|
1
|
-
##
|
|
1
|
+
## 10.0.0-alpha.1 (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 chore/lint-
|
|
7
|
-
* Merge branch 'master' into
|
|
8
|
-
* Merge branch 'master' into
|
|
9
|
-
* Merge
|
|
10
|
-
* Merge
|
|
11
|
-
*
|
|
12
|
-
*
|
|
13
|
-
*
|
|
14
|
-
*
|
|
15
|
-
*
|
|
16
|
-
*
|
|
17
|
-
*
|
|
18
|
-
*
|
|
19
|
-
*
|
|
20
|
-
*
|
|
3
|
+
* Merge branch 'chore/lint-no-template-comments' of github.com:roomle-dev/roomle-ui into chore/lint-no ([06b6f85](https://github.com/roomle-dev/roomle-ui/commit/06b6f85))
|
|
4
|
+
* Merge branch 'master' into chore/handoff-to-pr-workflow-RML-18532 ([c153f31](https://github.com/roomle-dev/roomle-ui/commit/c153f31))
|
|
5
|
+
* Merge branch 'master' into chore/handoff-to-pr-workflow-RML-18532 ([23fe80c](https://github.com/roomle-dev/roomle-ui/commit/23fe80c))
|
|
6
|
+
* Merge branch 'master' into chore/lint-no-template-comments ([05f8a63](https://github.com/roomle-dev/roomle-ui/commit/05f8a63))
|
|
7
|
+
* Merge branch 'master' into feat/configuration-assistant-gateway-login-RML-18481 ([3282654](https://github.com/roomle-dev/roomle-ui/commit/3282654))
|
|
8
|
+
* Merge branch 'master' into feat/configuration-assistant-gateway-login-RML-18481 ([1b69142](https://github.com/roomle-dev/roomle-ui/commit/1b69142))
|
|
9
|
+
* Merge branch 'master' into feat/configuration-assistant-gateway-login-RML-18481 ([e32c56c](https://github.com/roomle-dev/roomle-ui/commit/e32c56c))
|
|
10
|
+
* Merge branch 'master' into feat/configuration-assistant-gateway-login-RML-18481 ([dfc1ace](https://github.com/roomle-dev/roomle-ui/commit/dfc1ace))
|
|
11
|
+
* Merge branch 'master' into feat/configuration-assistant-gateway-login-RML-18481 ([26c0dd9](https://github.com/roomle-dev/roomle-ui/commit/26c0dd9))
|
|
12
|
+
* Merge branch 'master' into feat/configuration-assistant-gateway-login-RML-18481 ([cf57628](https://github.com/roomle-dev/roomle-ui/commit/cf57628))
|
|
13
|
+
* Merge branch 'master' into feat/fence-assistant ([c7467d6](https://github.com/roomle-dev/roomle-ui/commit/c7467d6))
|
|
14
|
+
* Merge branch 'master' into release/test ([74570fe](https://github.com/roomle-dev/roomle-ui/commit/74570fe))
|
|
15
|
+
* Merge pull request #3285 from roomle-dev/feat/configuration-assistant-gateway-login-RML-18481 ([af26ef6](https://github.com/roomle-dev/roomle-ui/commit/af26ef6)), closes [#3285](https://github.com/roomle-dev/roomle-ui/issues/3285)
|
|
16
|
+
* Merge pull request #3305 from roomle-dev/chore/handoff-to-pr-workflow-RML-18532 ([4e507fe](https://github.com/roomle-dev/roomle-ui/commit/4e507fe)), closes [#3305](https://github.com/roomle-dev/roomle-ui/issues/3305)
|
|
17
|
+
* Merge pull request #3306 from roomle-dev/chore/lint-no-template-comments ([c30ea05](https://github.com/roomle-dev/roomle-ui/commit/c30ea05)), closes [#3306](https://github.com/roomle-dev/roomle-ui/issues/3306)
|
|
18
|
+
* Merge pull request #3308 from roomle-dev/feat/fence-assistant ([ba20abd](https://github.com/roomle-dev/roomle-ui/commit/ba20abd)), closes [#3308](https://github.com/roomle-dev/roomle-ui/issues/3308)
|
|
19
|
+
* Merge pull request #3311 from roomle-dev/upgraded-by-ci/core-3.3.0-alpha.12 ([5e0d53b](https://github.com/roomle-dev/roomle-ui/commit/5e0d53b)), closes [#3311](https://github.com/roomle-dev/roomle-ui/issues/3311)
|
|
20
|
+
* refactor!: rename embedding fence entry to construction ([035a65b](https://github.com/roomle-dev/roomle-ui/commit/035a65b))
|
|
21
|
+
* feat: construction (fence) planning assistant ([2e65be5](https://github.com/roomle-dev/roomle-ui/commit/2e65be5))
|
|
22
|
+
* feat: integrate configuration assistant gateway login ([e6cdca2](https://github.com/roomle-dev/roomle-ui/commit/e6cdca2))
|
|
23
|
+
* feat: support isolated rapi authentication requests ([ea82378](https://github.com/roomle-dev/roomle-ui/commit/ea82378))
|
|
24
|
+
* feat(core): upgrade to version 3.3.0-alpha.12 ([bda355d](https://github.com/roomle-dev/roomle-ui/commit/bda355d))
|
|
25
|
+
* fix: distinguish assistant shutdown and signout failures ([dac4047](https://github.com/roomle-dev/roomle-ui/commit/dac4047))
|
|
26
|
+
* fix: make handoff branch setup work in a separate worktree ([a987151](https://github.com/roomle-dev/roomle-ui/commit/a987151))
|
|
27
|
+
* fix: persist native assistant login across reloads ([104b84b](https://github.com/roomle-dev/roomle-ui/commit/104b84b))
|
|
28
|
+
* fix: read enableAIRendering in the hi presets and sign-in examples ([fd6e97c](https://github.com/roomle-dev/roomle-ui/commit/fd6e97c))
|
|
29
|
+
* fix: revoke tokens of cancelled assistant logins without stalling ([372f156](https://github.com/roomle-dev/roomle-ui/commit/372f156))
|
|
30
|
+
* fix: skip deleted files in vue template comment check ([0a0ec9c](https://github.com/roomle-dev/roomle-ui/commit/0a0ec9c))
|
|
31
|
+
* chore: add /handoff-to-pr agent workflow ([8eb3028](https://github.com/roomle-dev/roomle-ui/commit/8eb3028))
|
|
32
|
+
* chore: forbid html comments in vue templates ([25fd67e](https://github.com/roomle-dev/roomle-ui/commit/25fd67e))
|
|
33
|
+
* chore: merge gateway coverage into configuration assistant login ([df4d547](https://github.com/roomle-dev/roomle-ui/commit/df4d547))
|
|
34
|
+
* chore: merge master into configuration assistant gateway login ([c483b50](https://github.com/roomle-dev/roomle-ui/commit/c483b50))
|
|
35
|
+
* chore: remove html comments from vue templates ([8ac140b](https://github.com/roomle-dev/roomle-ui/commit/8ac140b))
|
|
36
|
+
* refactor: make configuration assistant initialization awaitable ([e5c9e94](https://github.com/roomle-dev/roomle-ui/commit/e5c9e94))
|
|
37
|
+
* refactor: name configuration assistant login helper ([4e2e78d](https://github.com/roomle-dev/roomle-ui/commit/4e2e78d))
|
|
38
|
+
* refactor: reset login state in async helper finally ([6283a39](https://github.com/roomle-dev/roomle-ui/commit/6283a39))
|
|
39
|
+
* refactor: reuse sdk authentication in the gateway client ([dbac85c](https://github.com/roomle-dev/roomle-ui/commit/dbac85c))
|
|
40
|
+
* refactor: use structured exception handling for assistant logout ([934865a](https://github.com/roomle-dev/roomle-ui/commit/934865a))
|
|
41
|
+
* test: avoid namespace import in configuration assistant mock ([40e8eb5](https://github.com/roomle-dev/roomle-ui/commit/40e8eb5))
|
|
42
|
+
* test: cover authenticated native assistant gateway ([52a400a](https://github.com/roomle-dev/roomle-ui/commit/52a400a))
|
|
43
|
+
* docs: explain configuration assistant authentication and connection ([42d3c86](https://github.com/roomle-dev/roomle-ui/commit/42d3c86))
|
|
44
|
+
|
|
45
|
+
### BREAKING CHANGE
|
|
46
|
+
|
|
47
|
+
* Replace imports from @roomle/embedding-lib/fence and @roomle/embedding-lib/fence/min with @roomle/embedding-lib/construction and @roomle/embedding-lib/construction/min.
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
|
|
2
|
-
import { a as e, c as t, i as n, m as r, o as i, s as a } from "./drag-in-
|
|
2
|
+
import { a as e, c as t, i as n, m as r, o as i, s as a } from "./drag-in-O5uwMddL.mjs";
|
|
3
3
|
import "./embedding-plugins.js";
|
|
4
4
|
//#region packages/common/src/utils/drag.ts
|
|
5
5
|
var o = (e, t, n = 0, r = 0) => {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
|
|
2
|
-
import { a as e, c as t, i as n, m as r, o as i, s as a } from "./drag-in-
|
|
2
|
+
import { a as e, c as t, i as n, m as r, o as i, s as a } from "./drag-in-CWHSbwvG.mjs";
|
|
3
3
|
import "./embedding-plugins.min.js";
|
|
4
4
|
var o = (e, t, n = 0, r = 0) => {
|
|
5
5
|
let i = t.x + t.width + n, a = t.x - n, o = t.y + t.height + r, s = t.y - r, { x: c, y: l } = e;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
|
|
2
|
-
import {
|
|
2
|
+
import { n as e } from "./dist-D0XFfKEL.mjs";
|
|
3
3
|
var t = "rml-drag-in-styles", n = "rml-drag-in-drag-element", r = "rml-drag-in-overlay", i = "rml-drag-in-drag-ghost", a = "rml-drag-in-fade-in", o = "rml-drag-in-fade-out", s = { DISPLAY_NONE: "rml-display-none" }, c = .5, l = "250ms", u = "forwards", d = `@keyframes ${a} {from{opacity: 0;}to {opacity: 0.5;}}`, f = `@keyframes ${o} {from{opacity: 0.5;}to {opacity: 0;}}`, p = `${a} ${l} ${u}`, m = `${o} ${l} ${u}`, h = "https://res.cloudinary.com/roomle/image/upload/v1729679975/fallback_afpyqr.jpg", g = 112, _ = 112, v = class {
|
|
4
4
|
_mainDomElement;
|
|
5
5
|
_instance;
|
|
@@ -29,7 +29,7 @@ var t = "rml-drag-in-styles", n = "rml-drag-in-drag-element", r = "rml-drag-in-o
|
|
|
29
29
|
}
|
|
30
30
|
async init() {
|
|
31
31
|
if (await super.init(), this._mode === "website") try {
|
|
32
|
-
let { DragInFromWebsiteStrategy: e } = await import("./from-website-
|
|
32
|
+
let { DragInFromWebsiteStrategy: e } = await import("./from-website-B8qFEG_R.mjs");
|
|
33
33
|
this._strategy = new e(this._instance, this._mainDomElement, {
|
|
34
34
|
settings: this.options,
|
|
35
35
|
mode: "website"
|
|
@@ -40,7 +40,7 @@ var t = "rml-drag-in-styles", n = "rml-drag-in-drag-element", r = "rml-drag-in-o
|
|
|
40
40
|
else {
|
|
41
41
|
if (this._mode !== "custom-view") throw Error("Unsupported mode");
|
|
42
42
|
try {
|
|
43
|
-
let { DragInFromCustomViewStrategy: e } = await import("./from-custom-view-
|
|
43
|
+
let { DragInFromCustomViewStrategy: e } = await import("./from-custom-view-BgmiWIEN.mjs");
|
|
44
44
|
this._strategy = new e(this._instance, this._mainDomElement, this.options, this._viewName);
|
|
45
45
|
} catch (e) {
|
|
46
46
|
throw e;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
|
|
2
|
-
import {
|
|
2
|
+
import { n as e } from "./dist-6TznX-Ae.mjs";
|
|
3
3
|
//#region packages/embedding-lib/src/plugins/constants.ts
|
|
4
4
|
var t = "rml-drag-in-styles", n = "rml-drag-in-drag-element", r = "rml-drag-in-overlay", i = "rml-drag-in-drag-ghost", a = "rml-drag-in-fade-in", o = "rml-drag-in-fade-out", s = { DISPLAY_NONE: "rml-display-none" }, c = .5, l = "250ms", u = "forwards", d = `@keyframes ${a} {from{opacity: 0;}to {opacity: ${c};}}`, f = `@keyframes ${o} {from{opacity: ${c};}to {opacity: 0;}}`, p = `${a} ${l} ${u}`, m = `${o} ${l} ${u}`, h = "https://res.cloudinary.com/roomle/image/upload/v1729679975/fallback_afpyqr.jpg", g = 112, _ = 112, v = class {
|
|
5
5
|
_mainDomElement;
|
|
@@ -36,7 +36,7 @@ var t = "rml-drag-in-styles", n = "rml-drag-in-drag-element", r = "rml-drag-in-o
|
|
|
36
36
|
}
|
|
37
37
|
async init() {
|
|
38
38
|
if (await super.init(), this._mode === "website") try {
|
|
39
|
-
let { DragInFromWebsiteStrategy: e } = await import("./from-website-
|
|
39
|
+
let { DragInFromWebsiteStrategy: e } = await import("./from-website-CvcnHmr2.mjs");
|
|
40
40
|
this._strategy = new e(this._instance, this._mainDomElement, {
|
|
41
41
|
settings: this.options,
|
|
42
42
|
mode: "website"
|
|
@@ -45,7 +45,7 @@ var t = "rml-drag-in-styles", n = "rml-drag-in-drag-element", r = "rml-drag-in-o
|
|
|
45
45
|
throw console.error("Could not load Dragin strategy \"FromWebsite\""), e;
|
|
46
46
|
}
|
|
47
47
|
else if (this._mode === "custom-view") try {
|
|
48
|
-
let { DragInFromCustomViewStrategy: e } = await import("./from-custom-view-
|
|
48
|
+
let { DragInFromCustomViewStrategy: e } = await import("./from-custom-view-CxmIIsHU.mjs");
|
|
49
49
|
this._strategy = new e(this._instance, this._mainDomElement, this.options, this._viewName);
|
|
50
50
|
} catch (e) {
|
|
51
51
|
throw console.error("Could not load Dragin strategy \"FromCustomView\""), e;
|
package/embedding-plugins.js
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
/*! Third-party licenses: THIRD-PARTY-NOTICES.txt and sbom.cdx.json in the root of this package */
|
|
2
|
-
import { a as e, c as t, d as n, f as r, h as i, i as a, m as o, o as s, s as c, t as l, u } from "./drag-in-
|
|
2
|
+
import { a as e, c as t, d as n, f as r, h as i, i as a, m as o, o as s, s as c, t as l, u } from "./drag-in-O5uwMddL.mjs";
|
|
3
3
|
export { l as DragIn, a as RML_DRAG_GHOST_FADE_IN, e as RML_DRAG_GHOST_FADE_IN_ANIMATION_CSS, s as RML_DRAG_GHOST_FADE_OUT, c as RML_DRAG_GHOST_FADE_OUT_ANIMATION_CSS, t as RML_DRAG_IN_DRAG_ELEMENT_ID, u as RML_DRAG_IN_FALLBACK_GHOST_HEIGHT, n as RML_DRAG_IN_FALLBACK_GHOST_URL, r as RML_DRAG_IN_FALLBACK_GHOST_WIDTH, o as RML_DRAG_IN_STYLES_ID, i as TARGET_OPACITY };
|
package/embedding-plugins.min.js
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
/*! Third-party licenses: THIRD-PARTY-NOTICES.txt and sbom.cdx.json in the root of this package */
|
|
2
|
-
import { a as e, c as t, d as n, f as r, h as i, i as a, m as o, o as s, s as c, t as l, u } from "./drag-in-
|
|
2
|
+
import { a as e, c as t, d as n, f as r, h as i, i as a, m as o, o as s, s as c, t as l, u } from "./drag-in-CWHSbwvG.mjs";
|
|
3
3
|
export { l as DragIn, a as RML_DRAG_GHOST_FADE_IN, e as RML_DRAG_GHOST_FADE_IN_ANIMATION_CSS, s as RML_DRAG_GHOST_FADE_OUT, c as RML_DRAG_GHOST_FADE_OUT_ANIMATION_CSS, t as RML_DRAG_IN_DRAG_ELEMENT_ID, u as RML_DRAG_IN_FALLBACK_GHOST_HEIGHT, n as RML_DRAG_IN_FALLBACK_GHOST_URL, r as RML_DRAG_IN_FALLBACK_GHOST_WIDTH, o as RML_DRAG_IN_STYLES_ID, i as TARGET_OPACITY };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
|
|
2
|
-
import { a as e, c as t, n } from "./utils-
|
|
3
|
-
import { d as r } from "./drag-in-
|
|
4
|
-
import { t as i } from "./drag-ghost-
|
|
2
|
+
import { a as e, c as t, n } from "./utils-BoELtcEK.mjs";
|
|
3
|
+
import { d as r } from "./drag-in-CWHSbwvG.mjs";
|
|
4
|
+
import { t as i } from "./drag-ghost-C1WS2KmW.mjs";
|
|
5
5
|
var a = (e, n = 0) => t(e) ? {
|
|
6
6
|
clientX: e.touches[n].clientX,
|
|
7
7
|
clientY: e.touches[n].clientY
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
|
|
2
|
-
import { a as e, c as t, n } from "./utils-
|
|
3
|
-
import { d as r } from "./drag-in-
|
|
4
|
-
import { t as i } from "./drag-ghost-
|
|
2
|
+
import { a as e, c as t, n } from "./utils-BwWn6Fw4.mjs";
|
|
3
|
+
import { d as r } from "./drag-in-O5uwMddL.mjs";
|
|
4
|
+
import { t as i } from "./drag-ghost-B24KVqgc.mjs";
|
|
5
5
|
var a = (e, n = 0) => t(e) ? {
|
|
6
6
|
clientX: e.touches[n].clientX,
|
|
7
7
|
clientY: e.touches[n].clientY
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
|
|
2
|
-
import { c as e, i as t, n, o as r, r as i, s as a } from "./utils-
|
|
3
|
-
import { l as o, p as s, r as c } from "./drag-in-
|
|
4
|
-
import { t as l } from "./drag-ghost-
|
|
2
|
+
import { c as e, i as t, n, o as r, r as i, s as a } from "./utils-BoELtcEK.mjs";
|
|
3
|
+
import { l as o, p as s, r as c } from "./drag-in-CWHSbwvG.mjs";
|
|
4
|
+
import { t as l } from "./drag-ghost-C1WS2KmW.mjs";
|
|
5
5
|
var u = class {
|
|
6
6
|
_options = {};
|
|
7
7
|
_instance;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
|
|
2
|
-
import { c as e, i as t, n, o as r, r as i, s as a } from "./utils-
|
|
3
|
-
import { l as o, p as s, r as c } from "./drag-in-
|
|
4
|
-
import { t as l } from "./drag-ghost-
|
|
2
|
+
import { c as e, i as t, n, o as r, r as i, s as a } from "./utils-BwWn6Fw4.mjs";
|
|
3
|
+
import { l as o, p as s, r as c } from "./drag-in-O5uwMddL.mjs";
|
|
4
|
+
import { t as l } from "./drag-ghost-B24KVqgc.mjs";
|
|
5
5
|
//#region packages/embedding-lib/src/plugins/strategy/from-website.ts
|
|
6
6
|
var u = class {
|
|
7
7
|
_options = {};
|
package/hi.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
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
|
-
import { t } from "./utils-
|
|
4
|
-
import { n,
|
|
2
|
+
import { t as e } from "./browser-D6M-d6y5.mjs";
|
|
3
|
+
import { t } from "./utils-BwWn6Fw4.mjs";
|
|
4
|
+
import { i as n, r } from "./chat-model-gyIajfDW.mjs";
|
|
5
5
|
var i = (e, t) => t === e.libraryId ? e : {
|
|
6
6
|
...e,
|
|
7
7
|
libraryId: t
|
|
@@ -136,7 +136,7 @@ var i = (e, t) => t === e.libraryId ? e : {
|
|
|
136
136
|
let i = e.extended, a = (e) => i.planningAssistantOutput(e), o = [], s = null, c = /* @__PURE__ */ new Set(), l;
|
|
137
137
|
try {
|
|
138
138
|
l = await Promise.all([
|
|
139
|
-
import("./dist-
|
|
139
|
+
import("./dist-6TznX-Ae.mjs").then((e) => e.t),
|
|
140
140
|
n(t, async (e) => {
|
|
141
141
|
o.push({
|
|
142
142
|
...await D(e, c),
|
package/hi.min.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
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
|
-
import { t } from "./utils-
|
|
4
|
-
import { n,
|
|
2
|
+
import { t as e } from "./browser-BjtSrqbu.mjs";
|
|
3
|
+
import { t } from "./utils-BoELtcEK.mjs";
|
|
4
|
+
import { i as n, r } from "./chat-model-DKlWonm6.mjs";
|
|
5
5
|
var i = (e, t) => t === e.libraryId ? e : {
|
|
6
6
|
...e,
|
|
7
7
|
libraryId: t
|
|
@@ -124,7 +124,7 @@ var i = (e, t) => t === e.libraryId ? e : {
|
|
|
124
124
|
let i = e.extended, a = (e) => i.planningAssistantOutput(e), o = [], s = null, c = /* @__PURE__ */ new Set(), l;
|
|
125
125
|
try {
|
|
126
126
|
l = await Promise.all([
|
|
127
|
-
import("./dist-
|
|
127
|
+
import("./dist-D0XFfKEL.mjs").then((e) => e.t),
|
|
128
128
|
n(t, async (e) => {
|
|
129
129
|
o.push({
|
|
130
130
|
...await T(e, c),
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@roomle/embedding-lib",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "10.0.0-alpha.1",
|
|
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",
|
|
@@ -43,6 +43,13 @@
|
|
|
43
43
|
},
|
|
44
44
|
"./configurator/min": {
|
|
45
45
|
"import": "./configurator.min.js"
|
|
46
|
+
},
|
|
47
|
+
"./construction": {
|
|
48
|
+
"import": "./construction.js",
|
|
49
|
+
"types": "./construction.d.ts"
|
|
50
|
+
},
|
|
51
|
+
"./construction/min": {
|
|
52
|
+
"import": "./construction.min.js"
|
|
46
53
|
}
|
|
47
54
|
},
|
|
48
55
|
"scripts": {
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { AgentToolDefinition, McpToolResult } from '../../../web-sdk/packages';
|
|
2
|
+
export interface FenceAgentApi {
|
|
3
|
+
getConstructionAgentTools(): Promise<AgentToolDefinition[]>;
|
|
4
|
+
callConstructionAgentTool(name: string, input: unknown): Promise<McpToolResult>;
|
|
5
|
+
getConstructionAgentPrompts(): Promise<{
|
|
6
|
+
systemPrompt: string;
|
|
7
|
+
imagePrompt: string;
|
|
8
|
+
}>;
|
|
9
|
+
}
|
|
10
|
+
export declare const createConstructionMcpTools: (api: FenceAgentApi) => Promise<import('../../../web-sdk/packages/assistant').AgentMcpTools>;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { AssistantWindow } from '../planning-assistant/planning-assistant';
|
|
2
|
+
import { PlanningAssistantConfig } from '../planning-assistant/chat-model';
|
|
3
|
+
import { FenceAgentApi } from './construction-mcp-tools';
|
|
4
|
+
export declare const startFencePlanningAssistant: (endpoints: {
|
|
5
|
+
planner: FenceAgentApi;
|
|
6
|
+
window: AssistantWindow;
|
|
7
|
+
}, config: PlanningAssistantConfig, signal: AbortSignal) => Promise<void>;
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
export { createConstructionMcpTools, type FenceAgentApi, } from './construction-agent/construction-mcp-tools';
|
|
2
|
+
export { startFencePlanningAssistant } from './construction-agent/construction-planning-assistant';
|
|
3
|
+
export { loadChatModel, type PlanningAssistantConfig, } from './planning-assistant/chat-model';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { createChatRecovery } from '../../../web-sdk/packages/assistant';
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { PlanningAssistantOutput, PlanningAssistantPrompt } from '../../../web-sdk/packages';
|
|
2
|
+
import { createAssistant, PlanningAssistantConfig, AgentMcpTools } from '../../../web-sdk/packages/assistant';
|
|
3
|
+
export interface AssistantWindow {
|
|
4
|
+
planningAssistantOutput(part: PlanningAssistantOutput): unknown;
|
|
5
|
+
callbacks: {
|
|
6
|
+
onPlanningAssistantPrompt?: (prompt: PlanningAssistantPrompt) => void | Promise<void>;
|
|
7
|
+
};
|
|
8
|
+
}
|
|
9
|
+
export declare const startAssistant: (windowApi: AssistantWindow, config: PlanningAssistantConfig, signal: AbortSignal, setupDomain: () => Promise<{
|
|
10
|
+
prompts: {
|
|
11
|
+
systemPrompt: string;
|
|
12
|
+
imagePrompt: string;
|
|
13
|
+
};
|
|
14
|
+
tools: AgentMcpTools;
|
|
15
|
+
}>, turnPolicy?: Parameters<typeof createAssistant>[4]) => Promise<void>;
|
|
@@ -1,3 +1,5 @@
|
|
|
1
1
|
export { loadChatModel } from './common-core/src/planning-assistant/chat-model';
|
|
2
2
|
export type { PlanningAssistantConfig, ConfiguratorAgentApi, } from './common-core/src/planning-assistant/types';
|
|
3
|
-
export
|
|
3
|
+
export { createAgentMcpTools, mcpToModelOutput, type AgentMcpModelOutput, type AgentMcpInputSchema, type AgentMcpTool, type AgentMcpTools, } from './common-core/src/planning-assistant/mcp-tools';
|
|
4
|
+
export { createAssistant } from './common-core/src/planning-assistant/runtime';
|
|
5
|
+
export { createChatRecovery } from './common-core/src/planning-assistant/chat-recovery';
|
package/roomle-embedding-lib.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*! Third-party licenses: THIRD-PARTY-NOTICES.txt and sbom.cdx.json in the root of this package */
|
|
2
|
-
import { t as e } from "./browser-
|
|
2
|
+
import { t as e } from "./browser-D6M-d6y5.mjs";
|
|
3
3
|
//#region packages/common/src/utils/message-handler.ts
|
|
4
4
|
var t = class {
|
|
5
5
|
_side;
|
|
@@ -204,7 +204,7 @@ var t = class {
|
|
|
204
204
|
setupPlugins(e, t, n = "website") {
|
|
205
205
|
for (let r of e) typeof r == "string" && r === "dragIn" ? this.pluginsLoaded.push(new Promise((e, r) => {
|
|
206
206
|
try {
|
|
207
|
-
import("./drag-in-
|
|
207
|
+
import("./drag-in-O5uwMddL.mjs").then((e) => e.n).then(({ DragIn: i }) => {
|
|
208
208
|
let a = new i(this.ui, t, n, this.viewName);
|
|
209
209
|
a.init().then(() => {
|
|
210
210
|
this.plugins.dragIn = a, e();
|
|
@@ -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-BjtSrqbu.mjs";
|
|
3
3
|
var t = class {
|
|
4
4
|
_side;
|
|
5
5
|
_incomingMessageBus = null;
|
|
@@ -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-CWHSbwvG.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:754a2cdf-5d43-59a7-bd3f-b10533b4c0ea",
|
|
7
7
|
"metadata": {
|
|
8
|
-
"timestamp": "2026-11-
|
|
8
|
+
"timestamp": "2026-11-09T19:39:39.000Z",
|
|
9
9
|
"component": {
|
|
10
10
|
"type": "library",
|
|
11
11
|
"name": "@roomle/embedding-lib",
|
|
12
|
-
"version": "
|
|
13
|
-
"bom-ref": "@roomle/embedding-lib@
|
|
12
|
+
"version": "74570fef0c256d9c51b34ef2a4376ec43e3f7ca5",
|
|
13
|
+
"bom-ref": "@roomle/embedding-lib@74570fef0c256d9c51b34ef2a4376ec43e3f7ca5"
|
|
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@74570fef0c256d9c51b34ef2a4376ec43e3f7ca5"
|
|
355
355
|
},
|
|
356
356
|
{
|
|
357
357
|
"ref": "pkg:npm/%40ai-sdk/anthropic@4.0.68"
|
package/mcp-tools-Cnhgobge.mjs
DELETED
|
@@ -1,153 +0,0 @@
|
|
|
1
|
-
|
|
2
|
-
//#region packages/web-sdk/packages/common-core/src/planning-assistant/chat-model.ts
|
|
3
|
-
var e = "The images of this result follow in the next message.", t = (t) => t.flatMap((t) => {
|
|
4
|
-
if (t.role !== "tool") return [t];
|
|
5
|
-
let n = [], r = t.content.map((t) => {
|
|
6
|
-
if (t.type !== "tool-result" || t.output.type !== "content") return t;
|
|
7
|
-
let r = t.output.value.filter((e) => e.type === "file");
|
|
8
|
-
return r.length ? (n.push(...r), {
|
|
9
|
-
...t,
|
|
10
|
-
output: {
|
|
11
|
-
...t.output,
|
|
12
|
-
value: [...t.output.value.filter((e) => e.type !== "file"), {
|
|
13
|
-
type: "text",
|
|
14
|
-
text: e
|
|
15
|
-
}]
|
|
16
|
-
}
|
|
17
|
-
}) : t;
|
|
18
|
-
});
|
|
19
|
-
return n.length ? [{
|
|
20
|
-
...t,
|
|
21
|
-
content: r
|
|
22
|
-
}, {
|
|
23
|
-
role: "user",
|
|
24
|
-
content: n
|
|
25
|
-
}] : [t];
|
|
26
|
-
}), n = (e) => ({
|
|
27
|
-
specificationVersion: e.specificationVersion,
|
|
28
|
-
provider: e.provider,
|
|
29
|
-
modelId: e.modelId,
|
|
30
|
-
supportedUrls: e.supportedUrls,
|
|
31
|
-
doGenerate: (n) => e.doGenerate({
|
|
32
|
-
...n,
|
|
33
|
-
prompt: t(n.prompt)
|
|
34
|
-
}),
|
|
35
|
-
doStream: (n) => e.doStream({
|
|
36
|
-
...n,
|
|
37
|
-
prompt: t(n.prompt)
|
|
38
|
-
})
|
|
39
|
-
}), r = async ({ provider: e, model: t, apiKey: r, baseUrl: i, headers: a, chatCompletions: o, responses: s, reasoningEffort: c }, l) => {
|
|
40
|
-
let u = l ? { fetch: new Proxy(fetch, { apply: async (e, t, n) => (typeof n[1]?.body == "string" && await l(n[1].body), fetch(...n)) }) } : {};
|
|
41
|
-
switch (e) {
|
|
42
|
-
case "openai": {
|
|
43
|
-
let { createOpenAI: e } = await import("./dist-GTk8ppiK.mjs");
|
|
44
|
-
return { languageModel: e({
|
|
45
|
-
apiKey: r,
|
|
46
|
-
...u
|
|
47
|
-
})(t) };
|
|
48
|
-
}
|
|
49
|
-
case "azure": {
|
|
50
|
-
let { createAzure: e } = await import("./dist-D0kh4WfT.mjs"), n = e({
|
|
51
|
-
apiKey: r,
|
|
52
|
-
baseURL: i,
|
|
53
|
-
...u
|
|
54
|
-
});
|
|
55
|
-
return {
|
|
56
|
-
languageModel: o ? n.chat(t) : n(t),
|
|
57
|
-
providerOptions: c ? { azure: { reasoningEffort: c } } : void 0
|
|
58
|
-
};
|
|
59
|
-
}
|
|
60
|
-
case "openai-compatible": {
|
|
61
|
-
if (!i) throw Error("The provider \"openai-compatible\" needs a baseUrl");
|
|
62
|
-
if (s) {
|
|
63
|
-
let { createOpenAI: e } = await import("./dist-GTk8ppiK.mjs"), n = {
|
|
64
|
-
...!r && !a?.Authorization ? { Authorization: void 0 } : {},
|
|
65
|
-
...a
|
|
66
|
-
};
|
|
67
|
-
return {
|
|
68
|
-
languageModel: e({
|
|
69
|
-
baseURL: i,
|
|
70
|
-
apiKey: r ?? "none",
|
|
71
|
-
headers: n,
|
|
72
|
-
...u
|
|
73
|
-
}).responses(t),
|
|
74
|
-
providerOptions: { openai: {
|
|
75
|
-
store: !1,
|
|
76
|
-
forceReasoning: !0
|
|
77
|
-
} }
|
|
78
|
-
};
|
|
79
|
-
}
|
|
80
|
-
let { createOpenAICompatible: e } = await import("./dist-D5HdKuwj.mjs");
|
|
81
|
-
return { languageModel: n(e({
|
|
82
|
-
name: "openai-compatible",
|
|
83
|
-
baseURL: i,
|
|
84
|
-
apiKey: r,
|
|
85
|
-
headers: a,
|
|
86
|
-
includeUsage: !0,
|
|
87
|
-
...u
|
|
88
|
-
})(t)) };
|
|
89
|
-
}
|
|
90
|
-
case "mistral": {
|
|
91
|
-
let { createMistral: e } = await import("./dist-CqP0aX0A.mjs");
|
|
92
|
-
return { languageModel: n(e({
|
|
93
|
-
apiKey: r,
|
|
94
|
-
...u
|
|
95
|
-
})(t)) };
|
|
96
|
-
}
|
|
97
|
-
case "anthropic": {
|
|
98
|
-
let { createAnthropic: e } = await import("./dist-C5fKJXpB.mjs");
|
|
99
|
-
return { languageModel: e({
|
|
100
|
-
apiKey: r,
|
|
101
|
-
headers: { "anthropic-dangerous-direct-browser-access": "true" },
|
|
102
|
-
...u
|
|
103
|
-
})(t) };
|
|
104
|
-
}
|
|
105
|
-
case "google": {
|
|
106
|
-
let { createGoogleGenerativeAI: e } = await import("./dist-Bo3WzRdf.mjs");
|
|
107
|
-
return { languageModel: e({
|
|
108
|
-
apiKey: r,
|
|
109
|
-
...u
|
|
110
|
-
})(t) };
|
|
111
|
-
}
|
|
112
|
-
default: throw Error(`Unknown provider "${e}" - supported: azure, openai, openai-compatible, mistral, anthropic, google`);
|
|
113
|
-
}
|
|
114
|
-
}, i = ({ output: e }) => ({
|
|
115
|
-
type: "content",
|
|
116
|
-
value: e.content.map((e) => e.type === "text" ? {
|
|
117
|
-
type: "text",
|
|
118
|
-
text: e.text
|
|
119
|
-
} : {
|
|
120
|
-
type: "file",
|
|
121
|
-
mediaType: e.mimeType,
|
|
122
|
-
data: {
|
|
123
|
-
type: "data",
|
|
124
|
-
data: e.data
|
|
125
|
-
}
|
|
126
|
-
})
|
|
127
|
-
}), a = (e, t, n) => Object.fromEntries(e.map(({ name: e, description: r, inputSchema: a, annotations: o }) => {
|
|
128
|
-
let s = () => a;
|
|
129
|
-
return [e, {
|
|
130
|
-
type: "dynamic",
|
|
131
|
-
...o && { annotations: o },
|
|
132
|
-
description: r,
|
|
133
|
-
inputSchema: { "~standard": {
|
|
134
|
-
version: 1,
|
|
135
|
-
vendor: n,
|
|
136
|
-
validate: (e) => ({ value: e }),
|
|
137
|
-
jsonSchema: {
|
|
138
|
-
input: s,
|
|
139
|
-
output: s
|
|
140
|
-
}
|
|
141
|
-
} },
|
|
142
|
-
execute: (n) => t(e, n).catch((e) => ({
|
|
143
|
-
content: [{
|
|
144
|
-
type: "text",
|
|
145
|
-
text: e instanceof Error ? e.message : String(e)
|
|
146
|
-
}],
|
|
147
|
-
isError: !0
|
|
148
|
-
})),
|
|
149
|
-
toModelOutput: i
|
|
150
|
-
}];
|
|
151
|
-
}));
|
|
152
|
-
//#endregion
|
|
153
|
-
export { r as n, a as t };
|