@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
package/construction.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
|
+
import { i as e, n as t, r as n, t as r } from "./chat-model-gyIajfDW.mjs";
|
|
3
|
+
//#region packages/embedding-lib/src/construction-agent/construction-mcp-tools.ts
|
|
4
|
+
var i = async (e) => {
|
|
5
|
+
if (typeof e.getConstructionAgentTools != "function" || typeof e.callConstructionAgentTool != "function") throw Error("Update the Rubens UI: fence agent tools are unavailable.");
|
|
6
|
+
return n(await e.getConstructionAgentTools(), (t, n) => e.callConstructionAgentTool(t, n), "fence-mcp");
|
|
7
|
+
}, a = async (e, n, r, i, a) => {
|
|
8
|
+
let o = (t) => {
|
|
9
|
+
r.aborted || e.planningAssistantOutput(t);
|
|
10
|
+
};
|
|
11
|
+
try {
|
|
12
|
+
let s = await t(n, r, o, i, a);
|
|
13
|
+
r.throwIfAborted();
|
|
14
|
+
let c = e.callbacks.onPlanningAssistantPrompt;
|
|
15
|
+
e.callbacks.onPlanningAssistantPrompt = s, r.addEventListener("abort", () => {
|
|
16
|
+
e.callbacks.onPlanningAssistantPrompt === s && (e.callbacks.onPlanningAssistantPrompt = c, e.planningAssistantOutput({
|
|
17
|
+
type: "availability",
|
|
18
|
+
available: !1
|
|
19
|
+
}));
|
|
20
|
+
}, { once: !0 }), o({
|
|
21
|
+
type: "images",
|
|
22
|
+
enabled: n.readsImages
|
|
23
|
+
}), o({
|
|
24
|
+
type: "availability",
|
|
25
|
+
available: !0
|
|
26
|
+
});
|
|
27
|
+
} catch (e) {
|
|
28
|
+
o({
|
|
29
|
+
type: "availability",
|
|
30
|
+
available: !1,
|
|
31
|
+
text: String(e)
|
|
32
|
+
});
|
|
33
|
+
}
|
|
34
|
+
}, o = (e, t, n) => a(e.window, t, n, async () => {
|
|
35
|
+
let [t, n] = await Promise.all([e.planner.getConstructionAgentPrompts(), i(e.planner)]);
|
|
36
|
+
return {
|
|
37
|
+
prompts: t,
|
|
38
|
+
tools: n
|
|
39
|
+
};
|
|
40
|
+
}, {
|
|
41
|
+
timeoutMs: 5 * 6e4,
|
|
42
|
+
recovery: (e) => r(e, {
|
|
43
|
+
subject: "plan",
|
|
44
|
+
readTools: new Set([
|
|
45
|
+
"get-construction-capabilities",
|
|
46
|
+
"get-terrain-context",
|
|
47
|
+
"get-construction-context",
|
|
48
|
+
"get-construction-products",
|
|
49
|
+
"get-construction-parameters",
|
|
50
|
+
"get-construction-edit-impact",
|
|
51
|
+
"get-construction-overview",
|
|
52
|
+
"get-terrain-height",
|
|
53
|
+
"get-terrain-edit-impact"
|
|
54
|
+
])
|
|
55
|
+
})
|
|
56
|
+
});
|
|
57
|
+
//#endregion
|
|
58
|
+
export { i as createConstructionMcpTools, e as loadChatModel, o as startFencePlanningAssistant };
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
/*! Third-party licenses: THIRD-PARTY-NOTICES.txt and sbom.cdx.json in the root of this package */
|
|
2
|
+
import { i as e, n as t, r as n, t as r } from "./chat-model-DKlWonm6.mjs";
|
|
3
|
+
var i = async (e) => {
|
|
4
|
+
if (typeof e.getConstructionAgentTools != "function" || typeof e.callConstructionAgentTool != "function") throw Error("Update the Rubens UI: fence agent tools are unavailable.");
|
|
5
|
+
return n(await e.getConstructionAgentTools(), (t, n) => e.callConstructionAgentTool(t, n), "fence-mcp");
|
|
6
|
+
}, a = (e, n, a) => (async (n, r, a, o, s) => {
|
|
7
|
+
let c = (e) => {
|
|
8
|
+
a.aborted || n.planningAssistantOutput(e);
|
|
9
|
+
};
|
|
10
|
+
try {
|
|
11
|
+
let o = await t(r, a, c, async () => {
|
|
12
|
+
let [t, n] = await Promise.all([e.planner.getConstructionAgentPrompts(), i(e.planner)]);
|
|
13
|
+
return {
|
|
14
|
+
prompts: t,
|
|
15
|
+
tools: n
|
|
16
|
+
};
|
|
17
|
+
}, s);
|
|
18
|
+
a.throwIfAborted();
|
|
19
|
+
let l = n.callbacks.onPlanningAssistantPrompt;
|
|
20
|
+
n.callbacks.onPlanningAssistantPrompt = o, a.addEventListener("abort", () => {
|
|
21
|
+
n.callbacks.onPlanningAssistantPrompt === o && (n.callbacks.onPlanningAssistantPrompt = l, n.planningAssistantOutput({
|
|
22
|
+
type: "availability",
|
|
23
|
+
available: !1
|
|
24
|
+
}));
|
|
25
|
+
}, { once: !0 }), c({
|
|
26
|
+
type: "images",
|
|
27
|
+
enabled: r.readsImages
|
|
28
|
+
}), c({
|
|
29
|
+
type: "availability",
|
|
30
|
+
available: !0
|
|
31
|
+
});
|
|
32
|
+
} catch (e) {
|
|
33
|
+
c({
|
|
34
|
+
type: "availability",
|
|
35
|
+
available: !1,
|
|
36
|
+
text: String(e)
|
|
37
|
+
});
|
|
38
|
+
}
|
|
39
|
+
})(e.window, n, a, 0, {
|
|
40
|
+
timeoutMs: 3e5,
|
|
41
|
+
recovery: (e) => r(e, {
|
|
42
|
+
subject: "plan",
|
|
43
|
+
readTools: new Set([
|
|
44
|
+
"get-construction-capabilities",
|
|
45
|
+
"get-terrain-context",
|
|
46
|
+
"get-construction-context",
|
|
47
|
+
"get-construction-products",
|
|
48
|
+
"get-construction-parameters",
|
|
49
|
+
"get-construction-edit-impact",
|
|
50
|
+
"get-construction-overview",
|
|
51
|
+
"get-terrain-height",
|
|
52
|
+
"get-terrain-edit-impact"
|
|
53
|
+
])
|
|
54
|
+
})
|
|
55
|
+
});
|
|
56
|
+
export { i as createConstructionMcpTools, e as loadChatModel, a as startFencePlanningAssistant };
|