@roomle/embedding-lib 0.0.0-dev-20f436f → 0.0.0-dev-86c52f1
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-model-host-CS8tMlto.mjs +144 -0
- package/ai-model-host-D_b_GVlC.mjs +145 -0
- package/ai.js +1 -128
- package/ai.min.js +1 -126
- package/{browser-D6M-d6y5.mjs → browser-Cys-y5Hy.mjs} +1 -2
- package/chat-model-DooKwd8I.mjs +117 -0
- package/chat-model-KHuz1Ej9.mjs +118 -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 +17865 -37
- package/construction.min.js +17536 -41
- 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-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-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/{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 +80 -428
- package/hi.min.js +75 -376
- package/mcp-tools-C6O2gQZW.mjs +41 -0
- package/mcp-tools-m_3IX0vB.mjs +40 -0
- package/package.json +1 -1
- package/packages/embedding-lib/src/ai-model-host.d.ts +34 -0
- package/packages/embedding-lib/src/ai.d.ts +11 -27
- package/packages/embedding-lib/src/homag-intelligence/hi-planning-assistant.d.ts +11 -19
- package/packages/web-sdk/packages/assistant.d.ts +3 -1
- package/packages/web-sdk/packages/common-core/src/planning-assistant/chat-recovery.d.ts +5 -1
- package/packages/web-sdk/packages/common-core/src/planning-assistant/continuation.d.ts +5 -3
- 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/types.d.ts +2 -0
- package/packages/web-sdk/packages/common-core/src/planning-assistant/usage.d.ts +31 -0
- package/packages/web-sdk/packages/common-core/src/planning-assistant.d.ts +19 -1
- 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/usage-C3HE9yXi.mjs +33 -0
- package/usage-CYqDPQOx.mjs +34 -0
- package/{utils-BwWn6Fw4.mjs → utils-CJnKZceY.mjs} +3 -4
- package/{utils-BoELtcEK.mjs → utils-DdNhTbJr.mjs} +6 -6
- package/chat-model-C1ov616e.mjs +0 -377
- package/chat-model-CifTV-8H.mjs +0 -373
- package/coerce-CqJod_GZ.mjs +0 -8
- package/coerce-CsI42_k0.mjs +0 -6
- package/dist-6TznX-Ae.mjs +0 -17514
- package/dist-D0XFfKEL.mjs +0 -17079
- package/mcp-tools-CC8DTfZA.mjs +0 -2
- package/mcp-tools-CfJ_ue_2.mjs +0 -2
- package/packages/embedding-lib/src/homag-intelligence/hi-planning-usage.d.ts +0 -54
- /package/{browser-BjtSrqbu.mjs → browser-CzLpXYFF.mjs} +0 -0
|
@@ -0,0 +1,118 @@
|
|
|
1
|
+
|
|
2
|
+
// packages/web-sdk/packages/common-core/src/planning-assistant/chat-model.ts
|
|
3
|
+
var e = (e) => e.flatMap((e) => {
|
|
4
|
+
if (e.role !== "tool") return [e];
|
|
5
|
+
let t = [], n = e.content.map((e) => {
|
|
6
|
+
if (e.type !== "tool-result" || e.output.type !== "content") return e;
|
|
7
|
+
let n = e.output.value.filter((e) => e.type === "file");
|
|
8
|
+
return n.length ? (t.push(...n), {
|
|
9
|
+
...e,
|
|
10
|
+
output: {
|
|
11
|
+
...e.output,
|
|
12
|
+
value: [...e.output.value.filter((e) => e.type !== "file"), {
|
|
13
|
+
type: "text",
|
|
14
|
+
text: "The images of this result follow in the next message."
|
|
15
|
+
}]
|
|
16
|
+
}
|
|
17
|
+
}) : e;
|
|
18
|
+
});
|
|
19
|
+
return t.length ? [{
|
|
20
|
+
...e,
|
|
21
|
+
content: n
|
|
22
|
+
}, {
|
|
23
|
+
role: "user",
|
|
24
|
+
content: t
|
|
25
|
+
}] : [e];
|
|
26
|
+
}), t = (t) => ({
|
|
27
|
+
specificationVersion: t.specificationVersion,
|
|
28
|
+
provider: t.provider,
|
|
29
|
+
modelId: t.modelId,
|
|
30
|
+
supportedUrls: t.supportedUrls,
|
|
31
|
+
doGenerate: (n) => t.doGenerate({
|
|
32
|
+
...n,
|
|
33
|
+
prompt: e(n.prompt)
|
|
34
|
+
}),
|
|
35
|
+
doStream: (n) => t.doStream({
|
|
36
|
+
...n,
|
|
37
|
+
prompt: e(n.prompt)
|
|
38
|
+
})
|
|
39
|
+
}), n = async ({ provider: e, model: n, apiKey: r, baseUrl: i, headers: a, chatCompletions: o, responses: s, storedResponses: c, reasoningEffort: l }, u, d) => {
|
|
40
|
+
let f = u ? { fetch: new Proxy(fetch, { apply: async (e, t, n) => (typeof n[1]?.body == "string" && await u(n[1].body), fetch(...n)) }) } : {};
|
|
41
|
+
switch (e) {
|
|
42
|
+
case "host":
|
|
43
|
+
if (!d) throw Error("The host assistant model is unavailable.");
|
|
44
|
+
return { languageModel: d };
|
|
45
|
+
case "openai": {
|
|
46
|
+
let { createOpenAI: e } = await import("./dist-DjsS42rR.mjs");
|
|
47
|
+
return { languageModel: e({
|
|
48
|
+
apiKey: r,
|
|
49
|
+
...f
|
|
50
|
+
})(n) };
|
|
51
|
+
}
|
|
52
|
+
case "azure": {
|
|
53
|
+
let { createAzure: e } = await import("./dist-bQAJDeYc.mjs"), t = e({
|
|
54
|
+
apiKey: r,
|
|
55
|
+
baseURL: i,
|
|
56
|
+
...f
|
|
57
|
+
});
|
|
58
|
+
return {
|
|
59
|
+
languageModel: o ? t.chat(n) : t(n),
|
|
60
|
+
providerOptions: l ? { azure: { reasoningEffort: l } } : void 0
|
|
61
|
+
};
|
|
62
|
+
}
|
|
63
|
+
case "openai-compatible": {
|
|
64
|
+
if (!i) throw Error("The provider \"openai-compatible\" needs a baseUrl");
|
|
65
|
+
if (s) {
|
|
66
|
+
let { createOpenAI: e } = await import("./dist-DjsS42rR.mjs"), t = {
|
|
67
|
+
...!r && !a?.Authorization ? { Authorization: void 0 } : {},
|
|
68
|
+
...a
|
|
69
|
+
};
|
|
70
|
+
return {
|
|
71
|
+
languageModel: e({
|
|
72
|
+
baseURL: i,
|
|
73
|
+
apiKey: r ?? "none",
|
|
74
|
+
headers: t,
|
|
75
|
+
...f
|
|
76
|
+
}).responses(n),
|
|
77
|
+
providerOptions: { openai: c ? { store: !0 } : {
|
|
78
|
+
store: !1,
|
|
79
|
+
forceReasoning: !0
|
|
80
|
+
} }
|
|
81
|
+
};
|
|
82
|
+
}
|
|
83
|
+
let { createOpenAICompatible: e } = await import("./dist-BU022PnG.mjs");
|
|
84
|
+
return { languageModel: t(e({
|
|
85
|
+
name: "openai-compatible",
|
|
86
|
+
baseURL: i,
|
|
87
|
+
apiKey: r,
|
|
88
|
+
headers: a,
|
|
89
|
+
includeUsage: !0,
|
|
90
|
+
...f
|
|
91
|
+
})(n)) };
|
|
92
|
+
}
|
|
93
|
+
case "mistral": {
|
|
94
|
+
let { createMistral: e } = await import("./dist-a5_BIeaS.mjs");
|
|
95
|
+
return { languageModel: t(e({
|
|
96
|
+
apiKey: r,
|
|
97
|
+
...f
|
|
98
|
+
})(n)) };
|
|
99
|
+
}
|
|
100
|
+
case "anthropic": {
|
|
101
|
+
let { createAnthropic: e } = await import("./dist-CbQKC1xX.mjs");
|
|
102
|
+
return { languageModel: e({
|
|
103
|
+
apiKey: r,
|
|
104
|
+
headers: { "anthropic-dangerous-direct-browser-access": "true" },
|
|
105
|
+
...f
|
|
106
|
+
})(n) };
|
|
107
|
+
}
|
|
108
|
+
case "google": {
|
|
109
|
+
let { createGoogleGenerativeAI: e } = await import("./dist-7-X7Xqsl.mjs");
|
|
110
|
+
return { languageModel: e({
|
|
111
|
+
apiKey: r,
|
|
112
|
+
...f
|
|
113
|
+
})(n) };
|
|
114
|
+
}
|
|
115
|
+
default: throw Error(`Unknown provider "${e}" - supported: azure, openai, openai-compatible, mistral, anthropic, google`);
|
|
116
|
+
}
|
|
117
|
+
};
|
|
118
|
+
export { n as t };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
|
|
2
|
-
|
|
3
|
-
var e = Symbol("Comlink.proxy"), t = Symbol("Comlink.endpoint"), n = Symbol("Comlink.releaseProxy"), r = Symbol("Comlink.finalizer"), i = Symbol("Comlink.thrown"), a = (e) => typeof e == "object" && !!e || typeof e == "function", o = new Map([["proxy", {
|
|
2
|
+
// node_modules/comlink/dist/esm/comlink.mjs
|
|
3
|
+
var e = Symbol("Comlink.proxy"), t = Symbol("Comlink.endpoint"), n = Symbol("Comlink.releaseProxy"), r = Symbol("Comlink.finalizer"), i = Symbol("Comlink.thrown"), a = (e) => typeof e == "object" && !!e || typeof e == "function", o = /* @__PURE__ */ new Map([["proxy", {
|
|
4
4
|
canHandle: (t) => a(t) && t[e],
|
|
5
5
|
serialize(e) {
|
|
6
6
|
let { port1: t, port2: n } = new MessageChannel();
|
|
@@ -230,5 +230,4 @@ function O() {
|
|
|
230
230
|
,
|
|
231
231
|
].fill(0).map(() => Math.floor(Math.random() * (2 ** 53 - 1)).toString(16)).join("-");
|
|
232
232
|
}
|
|
233
|
-
//#endregion
|
|
234
233
|
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,5 +1,5 @@
|
|
|
1
1
|
|
|
2
|
-
var e = Symbol("Comlink.proxy"), t = Symbol("Comlink.endpoint"), n = Symbol("Comlink.releaseProxy"), r = Symbol("Comlink.finalizer"), i = Symbol("Comlink.thrown"), a = (e) => typeof e == "object" && !!e || typeof e == "function", o = new Map([["proxy", {
|
|
2
|
+
var e = Symbol("Comlink.proxy"), t = Symbol("Comlink.endpoint"), n = Symbol("Comlink.releaseProxy"), r = Symbol("Comlink.finalizer"), i = Symbol("Comlink.thrown"), a = (e) => typeof e == "object" && !!e || typeof e == "function", o = /* @__PURE__ */ new Map([["proxy", {
|
|
3
3
|
canHandle: (t) => a(t) && t[e],
|
|
4
4
|
serialize(e) {
|
|
5
5
|
let { port1: t, port2: n } = new MessageChannel();
|
package/configurator.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 {
|
|
3
|
-
import "./
|
|
4
|
-
|
|
2
|
+
import { t as e } from "./mcp-tools-C6O2gQZW.mjs";
|
|
3
|
+
import { t } from "./chat-model-KHuz1Ej9.mjs";
|
|
4
|
+
// packages/embedding-lib/src/configurator-agent/configurator-mcp-tools.ts
|
|
5
5
|
var n = async (t) => {
|
|
6
6
|
if (typeof t.getConfiguratorAgentTools != "function" || typeof t.callConfiguratorAgentTool != "function") throw Error("Update the Rubens UI: configurator agent tools are unavailable.");
|
|
7
7
|
return e(await t.getConfiguratorAgentTools(), (e, n) => t.callConfiguratorAgentTool(e, n), "configurator-mcp");
|
|
@@ -26,5 +26,4 @@ var n = async (t) => {
|
|
|
26
26
|
throw n.removeEventListener("abort", a), e;
|
|
27
27
|
}
|
|
28
28
|
};
|
|
29
|
-
//#endregion
|
|
30
29
|
export { n as createConfiguratorMcpTools, t as loadChatModel, r as startConfiguratorPlanningAssistant };
|
package/configurator.min.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 {
|
|
3
|
-
import "./
|
|
2
|
+
import { t as e } from "./mcp-tools-m_3IX0vB.mjs";
|
|
3
|
+
import { t } from "./chat-model-DooKwd8I.mjs";
|
|
4
4
|
var n = async (t) => {
|
|
5
5
|
if (typeof t.getConfiguratorAgentTools != "function" || typeof t.callConfiguratorAgentTool != "function") throw Error("Update the Rubens UI: configurator agent tools are unavailable.");
|
|
6
6
|
return e(await t.getConfiguratorAgentTools(), (e, n) => t.callConfiguratorAgentTool(e, n), "configurator-mcp");
|