@roomle/embedding-lib 0.0.0-dev-bf23f2d → 0.0.0-dev-2e65be5

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.
@@ -1,4 +1,4 @@
1
- Third-party software notices for @roomle/embedding-lib bf23f2db3f3762eceac0b2289be8268f3c256679
1
+ Third-party software notices for @roomle/embedding-lib 2e65be5247090a5148f076dc9ecf10bdd5f7186c
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/fence'
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/fence-agent/fence-mcp-tools.ts
3
+ //#region packages/embedding-lib/src/construction-agent/construction-mcp-tools.ts
4
4
  var i = async (e) => {
5
- if (typeof e.getFenceAgentTools != "function" || typeof e.callFenceAgentTool != "function") throw Error("Update the Rubens UI: fence agent tools are unavailable.");
6
- return n(await e.getFenceAgentTools(), (t, n) => e.callFenceAgentTool(t, n), "fence-mcp");
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.getFenceAgentPrompts(), i(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 createFenceMcpTools, e as loadChatModel, o as startFencePlanningAssistant };
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.getFenceAgentTools != "function" || typeof e.callFenceAgentTool != "function") throw Error("Update the Rubens UI: fence agent tools are unavailable.");
5
- return n(await e.getFenceAgentTools(), (t, n) => e.callFenceAgentTool(t, n), "fence-mcp");
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.getFenceAgentPrompts(), i(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 createFenceMcpTools, e as loadChatModel, a as startFencePlanningAssistant };
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-bf23f2d",
3
+ "version": "0.0.0-dev-2e65be5",
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 './fence-mcp-tools';
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 * from './common-core/src/planning-assistant/mcp-tools';
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:481be387-8c75-5568-badc-3d4668c9a57e",
6
+ "serialNumber": "urn:uuid:8a8e4980-700f-5a8a-8c7b-6a802b96c5a8",
7
7
  "metadata": {
8
- "timestamp": "2026-11-09T16:33:29.000Z",
8
+ "timestamp": "2026-11-09T17:47:49.000Z",
9
9
  "component": {
10
10
  "type": "library",
11
11
  "name": "@roomle/embedding-lib",
12
- "version": "bf23f2db3f3762eceac0b2289be8268f3c256679",
13
- "bom-ref": "@roomle/embedding-lib@bf23f2db3f3762eceac0b2289be8268f3c256679"
12
+ "version": "2e65be5247090a5148f076dc9ecf10bdd5f7186c",
13
+ "bom-ref": "@roomle/embedding-lib@2e65be5247090a5148f076dc9ecf10bdd5f7186c"
14
14
  }
15
15
  },
16
16
  "components": [
@@ -351,7 +351,7 @@
351
351
  ],
352
352
  "dependencies": [
353
353
  {
354
- "ref": "@roomle/embedding-lib@bf23f2db3f3762eceac0b2289be8268f3c256679"
354
+ "ref": "@roomle/embedding-lib@2e65be5247090a5148f076dc9ecf10bdd5f7186c"
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>;
@@ -1,3 +0,0 @@
1
- export { createFenceMcpTools, type FenceAgentApi, } from './fence-agent/fence-mcp-tools';
2
- export { startFencePlanningAssistant } from './fence-agent/fence-planning-assistant';
3
- export { loadChatModel, type PlanningAssistantConfig, } from './planning-assistant/chat-model';