@roomle/web-sdk 7.0.0-alpha.2 → 7.0.0-alpha.3

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.
Files changed (66) hide show
  1. package/THIRD-PARTY-NOTICES.txt +2 -2
  2. package/lib/ConfiguratorKernel.js +2 -2
  3. package/lib/ConfiguratorKernel.wasm +0 -0
  4. package/lib/RoomleCore.js +2 -2
  5. package/lib/RoomleCore.wasm +0 -0
  6. package/lib/RoomleToolsCore.wasm +0 -0
  7. package/lib/{api-DOHbOr7K.mjs → api-B_Mu7Mg1.mjs} +2 -2
  8. package/lib/{api-DOHbOr7K.mjs.map → api-B_Mu7Mg1.mjs.map} +1 -1
  9. package/lib/asset-loader.worker-Bdvb-pt7.mjs.map +1 -1
  10. package/lib/budgeteer.sw-ByZxiRBr.mjs.map +1 -1
  11. package/lib/{configuration-operations-DJD9A1xP.mjs → configuration-operations-C5rnDS8e.mjs} +10 -4
  12. package/lib/configuration-operations-C5rnDS8e.mjs.map +1 -0
  13. package/lib/{configurator-DCynrn7X.mjs → configurator-BeDJ8jD1.mjs} +3 -3
  14. package/lib/{configurator-DCynrn7X.mjs.map → configurator-BeDJ8jD1.mjs.map} +1 -1
  15. package/lib/{configurator-capabilities-BfSMwdWh.mjs → configurator-capabilities-C3TQUu_S.mjs} +2 -2
  16. package/lib/{configurator-capabilities-BfSMwdWh.mjs.map → configurator-capabilities-C3TQUu_S.mjs.map} +1 -1
  17. package/lib/configurator-capabilities-C42HYCCb.mjs +3 -0
  18. package/lib/{configurator-mcp-tools-D00ndjOy.mjs → configurator-mcp-tools-D7vZ7ozM.mjs} +3 -3
  19. package/lib/configurator-mcp-tools-D7vZ7ozM.mjs.map +1 -0
  20. package/lib/configurator-yctV6IDY.mjs +3 -0
  21. package/lib/{glb-viewer-BhiCqjpE.mjs → glb-viewer-BkU2Z-HJ.mjs} +3 -3
  22. package/lib/{glb-viewer-BhiCqjpE.mjs.map → glb-viewer-BkU2Z-HJ.mjs.map} +1 -1
  23. package/lib/glb-viewer-jt9mrYrF.mjs +3 -0
  24. package/lib/{homag-intelligence-DuFtYgdG.mjs → homag-intelligence-DboRA-Yd.mjs} +6 -3
  25. package/lib/homag-intelligence-DboRA-Yd.mjs.map +1 -0
  26. package/lib/kernel-2ku6lFfE.mjs.map +1 -1
  27. package/lib/{material-viewer-uEDqIbCx.mjs → material-viewer-BkaTt8Sn.mjs} +3 -3
  28. package/lib/{material-viewer-uEDqIbCx.mjs.map → material-viewer-BkaTt8Sn.mjs.map} +1 -1
  29. package/lib/{packages-DOCmEOxI.mjs → packages-DZzpY6V8.mjs} +5 -5
  30. package/lib/{packages-DOCmEOxI.mjs.map → packages-DZzpY6V8.mjs.map} +1 -1
  31. package/lib/planner-C7kZ9SKV.mjs +3 -0
  32. package/lib/{planner-D8UVNfkJ.mjs → planner-CuZaTB-P.mjs} +3 -3
  33. package/lib/{planner-D8UVNfkJ.mjs.map → planner-CuZaTB-P.mjs.map} +1 -1
  34. package/lib/roomle-headless.d.ts +130 -2
  35. package/lib/roomle-headless.js +8 -8
  36. package/lib/{roomle-sdk-C0YpFZdj.mjs → roomle-sdk-CSH3WHXV.mjs} +263 -235
  37. package/lib/roomle-sdk-CSH3WHXV.mjs.map +1 -0
  38. package/lib/roomle-sdk.d.ts +130 -2
  39. package/lib/roomle-sdk.js +6 -6
  40. package/lib/{roomle-webgpu-renderer-DZ9LaZfc.mjs → roomle-webgpu-renderer-D43bHxhT.mjs} +2 -2
  41. package/lib/{roomle-webgpu-renderer-DZ9LaZfc.mjs.map → roomle-webgpu-renderer-D43bHxhT.mjs.map} +1 -1
  42. package/lib/{runtime-Bz0u5ckH.mjs → runtime-D5zrHj-e.mjs} +181 -78
  43. package/lib/runtime-D5zrHj-e.mjs.map +1 -0
  44. package/lib/{script-loader-jRBMP-ca.mjs → script-loader-O8x5UOnP.mjs} +2 -2
  45. package/lib/{script-loader-jRBMP-ca.mjs.map → script-loader-O8x5UOnP.mjs.map} +1 -1
  46. package/lib/static/roomle-core-hsc/node_modules/roomle-core-hsc/package.json +1 -1
  47. package/lib/static/roomle-core-hsc/node_modules/roomle-core-hsc/src/embind/configuratorCoreInterface.d.ts +8 -0
  48. package/lib/static/roomle-core-hsc/node_modules/roomle-core-hsc/src/embind/configuratorCoreInterface.js.map +1 -1
  49. package/lib/static/roomle-core-hsc/node_modules/roomle-core-hsc/wasm_modern/ConfiguratorKernel.js +2 -2
  50. package/lib/static/roomle-core-hsc/node_modules/roomle-core-hsc/wasm_modern/ConfiguratorKernel.wasm +0 -0
  51. package/lib/static/roomle-core-hsc/node_modules/roomle-core-hsc/wasm_modern/RoomleCore.js +2 -2
  52. package/lib/static/roomle-core-hsc/node_modules/roomle-core-hsc/wasm_modern/RoomleCore.wasm +0 -0
  53. package/lib/static/roomle-core-hsc/node_modules/roomle-core-hsc/wasm_modern/RoomleToolsCore.wasm +0 -0
  54. package/lib/{tools-core-k93qrqfB.mjs → tools-core-DJvn2gR6.mjs} +3 -3
  55. package/lib/{tools-core-k93qrqfB.mjs.map → tools-core-DJvn2gR6.mjs.map} +1 -1
  56. package/package.json +2 -2
  57. package/sbom.cdx.json +5 -5
  58. package/lib/configuration-operations-DJD9A1xP.mjs.map +0 -1
  59. package/lib/configurator-D5Ehj649.mjs +0 -3
  60. package/lib/configurator-capabilities-DAJuxSTw.mjs +0 -3
  61. package/lib/configurator-mcp-tools-D00ndjOy.mjs.map +0 -1
  62. package/lib/glb-viewer-BrggGLte.mjs +0 -3
  63. package/lib/homag-intelligence-DuFtYgdG.mjs.map +0 -1
  64. package/lib/planner-B9GbQLSB.mjs +0 -3
  65. package/lib/roomle-sdk-C0YpFZdj.mjs.map +0 -1
  66. package/lib/runtime-Bz0u5ckH.mjs.map +0 -1
@@ -1211,6 +1211,75 @@ export declare const CONFIGURATION_TYPE: {
1211
1211
  readonly EXTERNAL: 2;
1212
1212
  };
1213
1213
 
1214
+ /** Carries no credential: no API key, base URL, token or header. */
1215
+ export declare interface ConfigurationAssistantLog {
1216
+ provider: PlanningAssistantConfig['provider'];
1217
+ model: string;
1218
+ tools: AgentToolDefinition[];
1219
+ systemPrompts: Array<{
1220
+ rootComponentId: string | null;
1221
+ text: string;
1222
+ /** The text the model receives instead of an empty prompt with images. */
1223
+ imagePrompt: string;
1224
+ }>;
1225
+ turns: ConfigurationAssistantTurnLog[];
1226
+ }
1227
+
1228
+ /** A file's `data` is a data URL or base64. */
1229
+ export declare type ConfigurationAssistantLogContent = {
1230
+ type: 'text';
1231
+ text: string;
1232
+ } | {
1233
+ type: 'file';
1234
+ mediaType: string;
1235
+ data: string;
1236
+ };
1237
+
1238
+ export declare type ConfigurationAssistantLogEvent = {
1239
+ type: 'text';
1240
+ text: string;
1241
+ } | ConfigurationAssistantToolEvent;
1242
+
1243
+ export declare interface ConfigurationAssistantLogMessage {
1244
+ role: 'system' | 'user' | 'assistant' | 'tool';
1245
+ content: ConfigurationAssistantLogContent[];
1246
+ }
1247
+
1248
+ export declare interface ConfigurationAssistantToolEvent {
1249
+ type: 'tool';
1250
+ name: string;
1251
+ args: unknown;
1252
+ result?: McpToolResult;
1253
+ error?: string;
1254
+ }
1255
+
1256
+ export declare interface ConfigurationAssistantTurnLog {
1257
+ turn: number;
1258
+ startedAt: string;
1259
+ endedAt: string | null;
1260
+ /** The index of the turn's system prompt in `systemPrompts`; null when the turn ended before the prompts were read. */
1261
+ systemPrompt: number | null;
1262
+ /** Every message the turn adds to the model input besides the user's prompt, e.g. the configuration. */
1263
+ context: ConfigurationAssistantLogMessage[];
1264
+ prompt: PlanningAssistantPrompt;
1265
+ events: ConfigurationAssistantLogEvent[];
1266
+ outcome: 'running' | 'done' | 'error' | 'aborted';
1267
+ error: string | null;
1268
+ usage: ConfigurationAssistantTurnUsage | null;
1269
+ }
1270
+
1271
+ export declare interface ConfigurationAssistantTurnUsage {
1272
+ status: 'complete' | 'partial' | 'unavailable';
1273
+ inputTokens: number | null;
1274
+ outputTokens: number | null;
1275
+ totalTokens: number | null;
1276
+ promptBytes: number | null;
1277
+ configurationBytes: number | null;
1278
+ requestBytes: number[];
1279
+ cachedInputTokens: number | null;
1280
+ chained: boolean;
1281
+ }
1282
+
1214
1283
  export declare interface ConfigurationExporter {
1215
1284
  new (): ConfigurationExporter;
1216
1285
  init(): void;
@@ -1976,6 +2045,7 @@ export declare class ConfiguratorKernelAccess extends CommonKernelAccess {
1976
2045
  runtimeId: number;
1977
2046
  }>): KernelReplaceComponentResult | null;
1978
2047
  swapComponents(targetObjectId: number, firstRuntimeId: number, secondRuntimeId: number): void;
2048
+ moveComponent(targetObjectId: number, runtimeId: number, dockPair: KernelMoveComponentDockPair): void;
1979
2049
  setComponentParameter(runtimeId: number, parameterKey: string, value: string): void;
1980
2050
  setPlanObjectParameter(objectId: number, parameterKey: string, value: string): void;
1981
2051
  deleteComponent(runtimeId: number, redockChildrenToParent: boolean): void;
@@ -2133,6 +2203,7 @@ export declare interface ConfiguratorKernelClass {
2133
2203
  runtimeId: number;
2134
2204
  }>): KernelReplaceComponentResult | null;
2135
2205
  swapComponents(targetObjectId: number, firstRuntimeId: number, secondRuntimeId: number): void;
2206
+ moveComponent(targetObjectId: number, runtimeId: number, dockPair: KernelMoveComponentDockPair): void;
2136
2207
  getComponentParameters(componentId: number): KernelParameter[];
2137
2208
  getPlanComponentAnimations(planComponentId: number): KernelAnimation[];
2138
2209
  setComponentParameter(componentId: number, parameterKey: string, value: string): void;
@@ -4481,6 +4552,13 @@ export declare interface ExternalObjectAPI {
4481
4552
  * @param posGroupId The ID of the pos group.
4482
4553
  */
4483
4554
  getExternalObjectValidSubArticles(posGroupId?: string): PosArticle[];
4555
+ /**
4556
+ * "getExternalObjectArticleInfo" returns the ID, name and description of the article of a root module.
4557
+ * Returns `undefined` if the group or the root module is not known.
4558
+ * @param groupId The ID of the group of the root module.
4559
+ * @param rootModuleId The ID of the root module.
4560
+ */
4561
+ getExternalObjectArticleInfo(groupId: string, rootModuleId: string): Pick<PosArticleInfo, 'articleId' | 'articleName' | 'desc'> | undefined;
4484
4562
  /**
4485
4563
  * "selectExternalObjectSubArticle" selects a sub article in the planner.
4486
4564
  * @param subArticleId The ID of the sub article to be selected.
@@ -5294,6 +5372,7 @@ export declare interface GlueLogic {
5294
5372
  hiObjectSelection: HiObjectSelectionApi;
5295
5373
  isLibraryLoaded(libraryId: string): boolean;
5296
5374
  getLibraryData(libraryId: string): LibraryData | null;
5375
+ getGroup(groupId: string): GroupItem | undefined;
5297
5376
  addLibrary(libraryData: LibraryData): Promise<void>;
5298
5377
  setPosDataForLoading(posData: PosSaveData | null): Promise<void>;
5299
5378
  loadPosData(articleCatalogJson: any, libraryId: string): void;
@@ -5332,6 +5411,32 @@ export declare interface GlueLogic {
5332
5411
  getMaterialUrl(materialId: string, groupOrModuleId?: string): string | null;
5333
5412
  }
5334
5413
 
5414
+ export declare interface GroupItem {
5415
+ posDataJson: PosGroup;
5416
+ opened: boolean;
5417
+ /** Prevents concurrent calculations on this group. When true, modifications are blocked until the current calculation completes. */
5418
+ calculationInProgress: boolean;
5419
+ /** The running calculateAndUpdateGroupMap run; re-entrant calls await it instead of calculating again. */
5420
+ calculationPromise: Promise<PosGroup> | null;
5421
+ /**
5422
+ * The last stored calculation. The next one is compared against it to log
5423
+ * only the root modules the modification broke, since callers write their
5424
+ * modification into posDataJson before the calculation runs.
5425
+ */
5426
+ lastCalculatedPosDataJson?: PosGroup;
5427
+ pendingArrangement?: {
5428
+ originalGroup?: PosGroup;
5429
+ allowRepositioning: boolean;
5430
+ carrierOverrides?: Map<string, UnitAboveCarrier>;
5431
+ };
5432
+ /**
5433
+ * The load that follows has to ask the kernel to apply the group position:
5434
+ * the last calculation moved the group to keep its distance to the walls, or
5435
+ * kept it where it was while a root gained or lost its docking vectors.
5436
+ */
5437
+ appliesGroupPosition?: boolean;
5438
+ }
5439
+
5335
5440
  /**
5336
5441
  * Hand-typed overrides of core handler methods, re-typed against our model types
5337
5442
  * (PlanObject, KernelObject, …) which differ from core's. Everything not listed here
@@ -6966,6 +7071,7 @@ export declare interface Kernel {
6966
7071
  dockNewComponent(targetObjectId: number, dockingEntity: NewComponentDockingSource, dockPair: NewComponentDockPair): number;
6967
7072
  replaceComponent(targetObjectId: number, runtimeId: number, dockingEntity: NewComponentDockingSource): ReplaceComponentResult;
6968
7073
  swapComponents(targetObjectId: number, firstRuntimeId: number, secondRuntimeId: number): void;
7074
+ moveComponent(targetObjectId: number, runtimeId: number, dockPair: MoveComponentDockPair): void;
6969
7075
  setExternalMeshInvalid(assetType: AssetType_2, idOrUrl: string, quality: number): void;
6970
7076
  setAssetInvalid(assetType: AssetType_2, idOrUrl: string, quality: number): void;
6971
7077
  loadExternalAttributeDefinition(serializedDefinition: string): void;
@@ -7247,6 +7353,10 @@ export declare interface KernelMessageMetaInfo {
7247
7353
 
7248
7354
  export declare type KernelMessageType = ValuesFromObject<typeof KERNEL_MESSAGE_TYPE>;
7249
7355
 
7356
+ export declare interface KernelMoveComponentDockPair extends KernelDockPairTarget {
7357
+ childDockId: number;
7358
+ }
7359
+
7250
7360
  export declare interface KernelObject {
7251
7361
  extRef: EMSReference_2 | null;
7252
7362
  clone(): KernelObject;
@@ -7983,6 +8093,14 @@ export declare interface ModelExportOptions {
7983
8093
  filename?: string;
7984
8094
  }
7985
8095
 
8096
+ export declare interface MoveComponentDockPair {
8097
+ parentId: number;
8098
+ parentDockId: number;
8099
+ childDockId: number;
8100
+ position?: Vector3;
8101
+ insertInBetween?: boolean;
8102
+ }
8103
+
7986
8104
  export declare interface NeighboringObjectMeasurementInfo {
7987
8105
  bounds: Box3;
7988
8106
  id: number;
@@ -10250,7 +10368,7 @@ export declare interface PosGroup {
10250
10368
  */
10251
10369
  pos?: number[];
10252
10370
  /**
10253
- * The rotation on the vertical axis in degree (0-360)
10371
+ * The rotation on the vertical axis in degree, in [0°, 360°); 360° is written as 0°
10254
10372
  */
10255
10373
  rotationY?: number;
10256
10374
  /**
@@ -10323,7 +10441,7 @@ export declare interface PosModuleRootData extends PosModuleData, PosPositionInf
10323
10441
  */
10324
10442
  articlePos?: number[];
10325
10443
  /**
10326
- * Rotation on the vertical axis in degree (0-359)
10444
+ * Rotation on the vertical axis in degree, in [0°, 360°); 360° is written as 0°
10327
10445
  */
10328
10446
  rotationY?: number;
10329
10447
  logMessages: PosErrorMsg[];
@@ -11701,6 +11819,8 @@ export declare class RoomleConfigurator<P extends readonly PluginName[] = readon
11701
11819
  stopConfigurationAssistant(owner: string): Promise<void>;
11702
11820
  /** Dispatches one prompt to the SDK session or the custom host agent. */
11703
11821
  planningAssistantPrompt(prompt: PlanningAssistantPrompt): Promise<void>;
11822
+ /** The log of the configuration assistant's last started session; undefined without an SDK session. */
11823
+ getConfigurationAssistantReport(): ConfigurationAssistantLog | undefined;
11704
11824
  /** Lists the native configurator's tools, loaded on the first agent request. */
11705
11825
  getConfiguratorAgentTools(): Promise<AgentToolDefinition[]>;
11706
11826
  /** Executes an agent tool and returns its MCP-shaped result. */
@@ -12907,6 +13027,7 @@ export declare class RoomlePlanner<P extends readonly PluginName[] = readonly []
12907
13027
  [key: string]: string;
12908
13028
  }>;
12909
13029
  getExternalObjectValidSubArticles(posGroupId?: string): PosArticle[];
13030
+ getExternalObjectArticleInfo(groupId: string, rootModuleId: string): Pick<PosArticleInfo, 'articleId' | 'articleName' | 'desc'> | undefined;
12910
13031
  selectExternalObjectSubArticle(subArticleId: string): void;
12911
13032
  deleteExternalObjectSubArticle(posGroupId: string, subArticleId: string): Promise<void>;
12912
13033
  _mergeExternalObjects(groupIds: string[]): Promise<void>;
@@ -14417,6 +14538,13 @@ export declare const enum Unit_2 {
14417
14538
  CM = 2
14418
14539
  }
14419
14540
 
14541
+ /** The root a unit above moves with, and the root its place was relative to. */
14542
+ export declare interface UnitAboveCarrier {
14543
+ carrierId: string;
14544
+ /** The root the unit stood above before the change: the carrier, or a root that left. */
14545
+ referenceId: string;
14546
+ }
14547
+
14420
14548
  export declare class UnitFormatter implements Context {
14421
14549
  _creator_: string;
14422
14550
  _actualUnitString: string;
@@ -1,17 +1,17 @@
1
1
  /*! Third-party licenses: THIRD-PARTY-NOTICES.txt and sbom.cdx.json in the root of this package */
2
- import { a as e, i as t, n, r, t as i } from "./packages-DOCmEOxI.mjs";
2
+ import { a as e, i as t, n, r, t as i } from "./packages-DZzpY6V8.mjs";
3
3
  import { i as a, t as o } from "./kernel-2ku6lFfE.mjs";
4
4
  import { Ot as s, Tt as c, wt as l } from "./threejs-utils-D1gtvxiA.mjs";
5
5
  import { m as u, nt as d, wi as f } from "./three.core-BpdpLVZy.mjs";
6
6
  import { i as p } from "./decorate-CooD7C6J.mjs";
7
7
  import { D as ee, H as m, g as te } from "./common-utils-zPOllvAT.mjs";
8
- import { A as ne, C as re, G as ie, H as ae, J as oe, K as se, O as ce, V as le, X as ue, Y as h, Z as de, _ as fe, _t as pe, b as me, bt as he, c as ge, dt as g, f as _e, ft as _, gt as ve, ht as ye, i as v, j as y, k as b, l as x, m as S, mt as C, o as w, p as T, pt as E, q as D, r as O, s as k, t as A, u as j, ut as M, v as N, y as P, z as be } from "./roomle-sdk-C0YpFZdj.mjs";
8
+ import { A as ne, C as re, G as ie, H as ae, J as oe, K as se, O as ce, V as le, X as ue, Y as h, Z as de, _ as fe, _t as pe, b as me, bt as he, c as ge, dt as g, f as _e, ft as _, gt as ve, ht as ye, i as v, j as y, k as b, l as x, m as S, mt as C, o as w, p as T, pt as E, q as D, r as O, s as k, t as A, u as j, ut as M, v as N, y as P, z as be } from "./roomle-sdk-CSH3WHXV.mjs";
9
9
  import { n as xe } from "./roomle-renderer-hDktY-wA.mjs";
10
- import { n as Se } from "./script-loader-jRBMP-ca.mjs";
11
- import { t as Ce } from "./configurator-DCynrn7X.mjs";
12
- import { t as we } from "./planner-D8UVNfkJ.mjs";
13
- import { n as Te, t as Ee } from "./glb-viewer-BhiCqjpE.mjs";
14
- import { t as De } from "./api-DOHbOr7K.mjs";
10
+ import { n as Se } from "./script-loader-O8x5UOnP.mjs";
11
+ import { t as Ce } from "./configurator-BeDJ8jD1.mjs";
12
+ import { t as we } from "./planner-CuZaTB-P.mjs";
13
+ import { n as Te, t as Ee } from "./glb-viewer-BkU2Z-HJ.mjs";
14
+ import { t as De } from "./api-B_Mu7Mg1.mjs";
15
15
  import { t as Oe } from "./roomle-headless-setup-Cbu025cl.mjs";
16
16
  import { createRequire as ke } from "module";
17
17
  //#region packages/headless-core/src/headless-tween-stub.ts
@@ -374,7 +374,7 @@ var Ve = (e) => {
374
374
  }
375
375
  async _createRoomleRenderer(e) {
376
376
  if (!e.isWebGPURenderer) return super._createRoomleRenderer(e);
377
- let { RoomleWebGPURenderer: t } = await import("./roomle-webgpu-renderer-DZ9LaZfc.mjs");
377
+ let { RoomleWebGPURenderer: t } = await import("./roomle-webgpu-renderer-D43bHxhT.mjs");
378
378
  return new t(this._creator_, e, !0, void 0, !1);
379
379
  }
380
380
  static hasExplicitCameraPlacement(e) {