@roomle/embedding-lib 0.0.0-dev-bf23f2d → 0.0.0-dev-c7467d6
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/fence.d.ts +1 -1
- package/fence.js +9 -6
- package/fence.min.js +8 -5
- package/package.json +1 -1
- package/packages/embedding-lib/src/construction-agent/construction-mcp-tools.d.ts +10 -0
- package/packages/embedding-lib/src/{fence-agent/fence-planning-assistant.d.ts → construction-agent/construction-planning-assistant.d.ts} +1 -1
- package/packages/embedding-lib/src/construction.d.ts +3 -0
- package/packages/web-sdk/packages/assistant.d.ts +1 -1
- package/sbom.cdx.json +5 -5
- package/packages/embedding-lib/src/fence-agent/fence-mcp-tools.d.ts +0 -10
- package/packages/embedding-lib/src/fence.d.ts +0 -3
package/THIRD-PARTY-NOTICES.txt
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
Third-party software notices for @roomle/embedding-lib
|
|
1
|
+
Third-party software notices for @roomle/embedding-lib c7467d6afdd35b9a7bfad1539a72f60696e847f8
|
|
2
2
|
Generated 2026-11-09
|
|
3
3
|
|
|
4
4
|
This product includes the following third-party components.
|
package/fence.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export * from './packages/embedding-lib/src/
|
|
1
|
+
export * from './packages/embedding-lib/src/construction'
|
|
2
2
|
export {}
|
package/fence.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
/*! Third-party licenses: THIRD-PARTY-NOTICES.txt and sbom.cdx.json in the root of this package */
|
|
2
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/
|
|
3
|
+
//#region packages/embedding-lib/src/construction-agent/construction-mcp-tools.ts
|
|
4
4
|
var i = async (e) => {
|
|
5
|
-
if (typeof e.
|
|
6
|
-
return n(await 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
7
|
}, a = async (e, n, r, i, a) => {
|
|
8
8
|
let o = (t) => {
|
|
9
9
|
r.aborted || e.planningAssistantOutput(t);
|
|
@@ -13,7 +13,10 @@ var i = async (e) => {
|
|
|
13
13
|
r.throwIfAborted();
|
|
14
14
|
let c = e.callbacks.onPlanningAssistantPrompt;
|
|
15
15
|
e.callbacks.onPlanningAssistantPrompt = s, r.addEventListener("abort", () => {
|
|
16
|
-
e.callbacks.onPlanningAssistantPrompt === s && (e.callbacks.onPlanningAssistantPrompt = c
|
|
16
|
+
e.callbacks.onPlanningAssistantPrompt === s && (e.callbacks.onPlanningAssistantPrompt = c, e.planningAssistantOutput({
|
|
17
|
+
type: "availability",
|
|
18
|
+
available: !1
|
|
19
|
+
}));
|
|
17
20
|
}, { once: !0 }), o({
|
|
18
21
|
type: "images",
|
|
19
22
|
enabled: n.readsImages
|
|
@@ -29,7 +32,7 @@ var i = async (e) => {
|
|
|
29
32
|
});
|
|
30
33
|
}
|
|
31
34
|
}, o = (e, t, n) => a(e.window, t, n, async () => {
|
|
32
|
-
let [t, n] = await Promise.all([e.planner.
|
|
35
|
+
let [t, n] = await Promise.all([e.planner.getConstructionAgentPrompts(), i(e.planner)]);
|
|
33
36
|
return {
|
|
34
37
|
prompts: t,
|
|
35
38
|
tools: n
|
|
@@ -52,4 +55,4 @@ var i = async (e) => {
|
|
|
52
55
|
})
|
|
53
56
|
});
|
|
54
57
|
//#endregion
|
|
55
|
-
export { i as
|
|
58
|
+
export { i as createConstructionMcpTools, e as loadChatModel, o as startFencePlanningAssistant };
|
package/fence.min.js
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
/*! Third-party licenses: THIRD-PARTY-NOTICES.txt and sbom.cdx.json in the root of this package */
|
|
2
2
|
import { i as e, n as t, r as n, t as r } from "./chat-model-DKlWonm6.mjs";
|
|
3
3
|
var i = async (e) => {
|
|
4
|
-
if (typeof e.
|
|
5
|
-
return n(await 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
6
|
}, a = (e, n, a) => (async (n, r, a, o, s) => {
|
|
7
7
|
let c = (e) => {
|
|
8
8
|
a.aborted || n.planningAssistantOutput(e);
|
|
9
9
|
};
|
|
10
10
|
try {
|
|
11
11
|
let o = await t(r, a, c, async () => {
|
|
12
|
-
let [t, n] = await Promise.all([e.planner.
|
|
12
|
+
let [t, n] = await Promise.all([e.planner.getConstructionAgentPrompts(), i(e.planner)]);
|
|
13
13
|
return {
|
|
14
14
|
prompts: t,
|
|
15
15
|
tools: n
|
|
@@ -18,7 +18,10 @@ var i = async (e) => {
|
|
|
18
18
|
a.throwIfAborted();
|
|
19
19
|
let l = n.callbacks.onPlanningAssistantPrompt;
|
|
20
20
|
n.callbacks.onPlanningAssistantPrompt = o, a.addEventListener("abort", () => {
|
|
21
|
-
n.callbacks.onPlanningAssistantPrompt === o && (n.callbacks.onPlanningAssistantPrompt = l
|
|
21
|
+
n.callbacks.onPlanningAssistantPrompt === o && (n.callbacks.onPlanningAssistantPrompt = l, n.planningAssistantOutput({
|
|
22
|
+
type: "availability",
|
|
23
|
+
available: !1
|
|
24
|
+
}));
|
|
22
25
|
}, { once: !0 }), c({
|
|
23
26
|
type: "images",
|
|
24
27
|
enabled: r.readsImages
|
|
@@ -50,4 +53,4 @@ var i = async (e) => {
|
|
|
50
53
|
])
|
|
51
54
|
})
|
|
52
55
|
});
|
|
53
|
-
export { i as
|
|
56
|
+
export { i as createConstructionMcpTools, e as loadChatModel, a as startFencePlanningAssistant };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@roomle/embedding-lib",
|
|
3
|
-
"version": "0.0.0-dev-
|
|
3
|
+
"version": "0.0.0-dev-c7467d6",
|
|
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",
|
|
@@ -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>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { AssistantWindow } from '../planning-assistant/planning-assistant';
|
|
2
2
|
import { PlanningAssistantConfig } from '../planning-assistant/chat-model';
|
|
3
|
-
import { FenceAgentApi } from './
|
|
3
|
+
import { FenceAgentApi } from './construction-mcp-tools';
|
|
4
4
|
export declare const startFencePlanningAssistant: (endpoints: {
|
|
5
5
|
planner: FenceAgentApi;
|
|
6
6
|
window: AssistantWindow;
|
|
@@ -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';
|
|
@@ -1,5 +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
4
|
export { createAssistant } from './common-core/src/planning-assistant/runtime';
|
|
5
5
|
export { createChatRecovery } from './common-core/src/planning-assistant/chat-recovery';
|
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:9dba96fb-b8c9-5c88-b90c-52dbe844728b",
|
|
7
7
|
"metadata": {
|
|
8
|
-
"timestamp": "2026-11-
|
|
8
|
+
"timestamp": "2026-11-09T18:31:44.000Z",
|
|
9
9
|
"component": {
|
|
10
10
|
"type": "library",
|
|
11
11
|
"name": "@roomle/embedding-lib",
|
|
12
|
-
"version": "
|
|
13
|
-
"bom-ref": "@roomle/embedding-lib@
|
|
12
|
+
"version": "c7467d6afdd35b9a7bfad1539a72f60696e847f8",
|
|
13
|
+
"bom-ref": "@roomle/embedding-lib@c7467d6afdd35b9a7bfad1539a72f60696e847f8"
|
|
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@c7467d6afdd35b9a7bfad1539a72f60696e847f8"
|
|
355
355
|
},
|
|
356
356
|
{
|
|
357
357
|
"ref": "pkg:npm/%40ai-sdk/anthropic@4.0.68"
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { AgentToolDefinition, McpToolResult } from '../../../web-sdk/packages';
|
|
2
|
-
export interface FenceAgentApi {
|
|
3
|
-
getFenceAgentTools(): Promise<AgentToolDefinition[]>;
|
|
4
|
-
callFenceAgentTool(name: string, input: unknown): Promise<McpToolResult>;
|
|
5
|
-
getFenceAgentPrompts(): Promise<{
|
|
6
|
-
systemPrompt: string;
|
|
7
|
-
imagePrompt: string;
|
|
8
|
-
}>;
|
|
9
|
-
}
|
|
10
|
-
export declare const createFenceMcpTools: (api: FenceAgentApi) => Promise<import('../../../web-sdk/packages/assistant').AgentMcpTools>;
|