@roomle/embedding-lib 11.0.0-alpha.1 → 11.0.0-alpha.10

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 (76) hide show
  1. package/THIRD-PARTY-NOTICES.txt +2 -2
  2. package/ai.js +86 -17
  3. package/ai.min.js +83 -13
  4. package/{browser-D6M-d6y5.mjs → browser-Cys-y5Hy.mjs} +1 -2
  5. package/chat-model-B7BO8IhK.mjs +212 -0
  6. package/chat-model-XYf503pT.mjs +213 -0
  7. package/coerce-CuLRCRlo.mjs +6 -0
  8. package/coerce-Dup0o-HR.mjs +7 -0
  9. package/{comlink-m82YLjsS.mjs → comlink-7u13Z2ZH.mjs} +2 -3
  10. package/{comlink-BYqErFai.mjs → comlink-DKhvPU0o.mjs} +1 -1
  11. package/configurator.js +7 -7
  12. package/configurator.min.js +6 -5
  13. package/construction.js +279 -22
  14. package/construction.min.js +287 -27
  15. package/continuation-CswXtOus.mjs +10 -0
  16. package/continuation-NclHDSgS.mjs +9 -0
  17. package/{dist-DCzWWudD.mjs → dist-7-X7Xqsl.mjs} +851 -919
  18. package/{dist-CjIZv2gB.mjs → dist-BMxyw-Zs.mjs} +411 -405
  19. package/{dist-wPZpiGiu.mjs → dist-BU022PnG.mjs} +4 -9
  20. package/{dist-CGgFMwb1.mjs → dist-BY8OLJ2p.mjs} +1 -1
  21. package/{dist-6TznX-Ae.mjs → dist-BZSd56sr.mjs} +3850 -3942
  22. package/{dist-Ur4DqwwC.mjs → dist-Ba3J8AjB.mjs} +400 -390
  23. package/{dist-CnTUCpLZ.mjs → dist-CbQKC1xX.mjs} +1590 -1616
  24. package/{dist-BsVeWZ8R.mjs → dist-CiybWJvs.mjs} +44 -41
  25. package/{dist-BI_3AeI-.mjs → dist-CkZuNdCU.mjs} +6 -4
  26. package/{dist-Bt1FopV4.mjs → dist-D2ZAAHGn.mjs} +1058 -1042
  27. package/{dist-Cxe4osFc.mjs → dist-DjsS42rR.mjs} +916 -962
  28. package/{dist-Cmx_tCV5.mjs → dist-Jcq_kKKT.mjs} +403 -393
  29. package/{dist-D0XFfKEL.mjs → dist-S9sLSjZ4.mjs} +3112 -3104
  30. package/{dist-BV-32IEX.mjs → dist-XECXrV5Q.mjs} +1497 -1558
  31. package/{dist-CZbrRF4T.mjs → dist-a5_BIeaS.mjs} +45 -51
  32. package/{dist-Dr3LcjP6.mjs → dist-bQAJDeYc.mjs} +698 -748
  33. package/docs/md/web/embedding/CHANGELOG.md +20 -175
  34. package/{drag-ghost-C1WS2KmW.mjs → drag-ghost-QZelgA-_.mjs} +2 -3
  35. package/{drag-ghost-B24KVqgc.mjs → drag-ghost-VmgSWLva.mjs} +5 -7
  36. package/{drag-in-O5uwMddL.mjs → drag-in-Cd_67tzS.mjs} +4 -5
  37. package/{drag-in-CWHSbwvG.mjs → drag-in-DlDsgY4T.mjs} +3 -3
  38. package/embedding-plugins.js +1 -2
  39. package/embedding-plugins.min.js +1 -2
  40. package/{experimental-evaluation-DyONuPyk.mjs → experimental-evaluation-B4hKMgFH.mjs} +19 -38
  41. package/{experimental-evaluation-DPkDk-5A.mjs → experimental-evaluation-DmqghFSx.mjs} +1 -1
  42. package/{from-custom-view-BgmiWIEN.mjs → from-custom-view-6HMD_sPe.mjs} +5 -4
  43. package/{from-custom-view-CxmIIsHU.mjs → from-custom-view-BRFynafo.mjs} +16 -16
  44. package/{from-website-CvcnHmr2.mjs → from-website-Dl1VN4h7.mjs} +5 -6
  45. package/{from-website-B8qFEG_R.mjs → from-website-iZzauH4C.mjs} +3 -3
  46. package/hi.js +251 -214
  47. package/hi.min.js +330 -288
  48. package/mcp-tools-BLB7pCga.mjs +42 -0
  49. package/mcp-tools-BirFT2R0.mjs +41 -0
  50. package/package.json +1 -1
  51. package/packages/common/src/utils/ai-model-relay.d.ts +22 -2
  52. package/packages/embedding-lib/src/ai.d.ts +3 -1
  53. package/packages/embedding-lib/src/hi.d.ts +1 -1
  54. package/packages/embedding-lib/src/homag-intelligence/hi-planning-assistant.d.ts +14 -2
  55. package/packages/embedding-lib/src/planning-assistant/chat-model.d.ts +1 -1
  56. package/packages/web-sdk/packages/assistant.d.ts +2 -0
  57. package/packages/web-sdk/packages/common-core/src/planning-assistant/chat-model.d.ts +1 -1
  58. package/packages/web-sdk/packages/common-core/src/planning-assistant/continuation.d.ts +5 -0
  59. package/packages/web-sdk/packages/common-core/src/planning-assistant/mcp-tools.d.ts +3 -1
  60. package/packages/web-sdk/packages/common-core/src/planning-assistant/runtime.d.ts +6 -1
  61. package/packages/web-sdk/packages/common-core/src/planning-assistant/types.d.ts +3 -1
  62. package/packages/web-sdk/packages/common-core/src/planning-assistant.d.ts +3 -0
  63. package/rolldown-runtime--db92txo.mjs +10 -0
  64. package/rolldown-runtime-CyjYJMBa.mjs +11 -0
  65. package/roomle-embedding-lib.js +25 -34
  66. package/roomle-embedding-lib.min.js +3 -3
  67. package/sbom.cdx.json +5 -5
  68. package/turn-limits-9LbUeSG2.mjs +9 -0
  69. package/turn-limits-Ciq383Bd.mjs +10 -0
  70. package/{utils-BwWn6Fw4.mjs → utils-CJnKZceY.mjs} +3 -4
  71. package/{utils-BoELtcEK.mjs → utils-DdNhTbJr.mjs} +6 -6
  72. package/chat-model-CFuHw4cp.mjs +0 -322
  73. package/chat-model-JqqVnnmY.mjs +0 -327
  74. package/coerce-CqJod_GZ.mjs +0 -8
  75. package/coerce-CsI42_k0.mjs +0 -6
  76. /package/{browser-BjtSrqbu.mjs → browser-CzLpXYFF.mjs} +0 -0
@@ -1,6 +1,6 @@
1
1
 
2
- import { $ as e, $t as t, At as n, Bt as r, Dn as i, E as a, Et as o, Ft as s, H as c, Ht as l, It as u, Jt as d, K as f, M as p, N as m, Pt as h, Rt as g, S as _, Sn as ee, T as v, Tt as y, U as b, Vt as x, Wt as S, X as te, Yt as C, Zt as w, _ as ne, _n as re, _t as T, an as E, bn as D, bt as O, ct as ie, dn as k, dt as ae, f as A, fn as j, g as M, h as oe, in as N, j as P, jn as F, jt as se, k as I, kt as ce, ln as L, m as le, mt as ue, nn as de, nt as fe, on as R, ot as z, pt as B, rn as V, sn as H, st as pe, tn as U, tt as me, un as W, ut as he, w as G, wt as K, yt as q, zt as ge } from "./dist-Bt1FopV4.mjs";
3
- import { t as J } from "./experimental-evaluation-DPkDk-5A.mjs";
2
+ import { $ as e, $t as t, At as n, Bt as r, Dn as i, E as a, Et as o, Ft as s, H as c, Ht as l, It as u, Jt as d, K as f, M as p, N as m, Pt as h, Rt as g, S as _, Sn as ee, T as v, Tt as y, U as b, Vt as x, Wt as S, X as te, Yt as C, Zt as w, _ as ne, _n as re, _t as T, an as E, bn as D, bt as O, ct as ie, dn as k, dt as ae, f as A, fn as j, g as M, h as oe, in as N, j as P, jn as F, jt as se, k as I, kt as ce, ln as L, m as le, mt as ue, nn as de, nt as fe, on as R, ot as z, pt as B, rn as V, sn as H, st as pe, tn as U, tt as me, un as W, ut as he, w as G, wt as K, yt as q, zt as ge } from "./dist-D2ZAAHGn.mjs";
3
+ import { t as J } from "./experimental-evaluation-DmqghFSx.mjs";
4
4
  var Y = G({
5
5
  errorSchema: z(() => r(E({
6
6
  type: U("error"),
@@ -876,18 +876,20 @@ var Y = G({
876
876
  let t = e?.anthropic;
877
877
  return t?.cacheControl ?? t?.cache_control;
878
878
  }(e);
879
- if (n) if (t.canCache) {
880
- if (this.breakpointCount++, !(this.breakpointCount > 4)) return n;
881
- this.warnings.push({
879
+ if (n) {
880
+ if (t.canCache) {
881
+ if (this.breakpointCount++, !(this.breakpointCount > 4)) return n;
882
+ this.warnings.push({
883
+ type: "unsupported",
884
+ feature: "cacheControl breakpoint limit",
885
+ details: `Maximum 4 cache breakpoints exceeded (found ${this.breakpointCount}). This breakpoint will be ignored.`
886
+ });
887
+ } else this.warnings.push({
882
888
  type: "unsupported",
883
- feature: "cacheControl breakpoint limit",
884
- details: `Maximum 4 cache breakpoints exceeded (found ${this.breakpointCount}). This breakpoint will be ignored.`
889
+ feature: "cache_control on non-cacheable context",
890
+ details: `cache_control cannot be set on ${t.type}. It will be ignored.`
885
891
  });
886
- } else this.warnings.push({
887
- type: "unsupported",
888
- feature: "cache_control on non-cacheable context",
889
- details: `cache_control cannot be set on ${t.type}. It will be ignored.`
890
- });
892
+ }
891
893
  }
892
894
  getWarnings() {
893
895
  return this.warnings;
@@ -1418,7 +1420,7 @@ function vt({ finishReason: e, isJsonResponseFromTool: t }) {
1418
1420
  default: return "other";
1419
1421
  }
1420
1422
  }
1421
- var yt = new Set([
1423
+ var yt = /* @__PURE__ */ new Set([
1422
1424
  "date-time",
1423
1425
  "time",
1424
1426
  "date",
@@ -2290,35 +2292,36 @@ var Et = class t {
2290
2292
  server_name: n,
2291
2293
  cache_control: g
2292
2294
  });
2293
- } else if (r !== "code_execution" || o.input == null || typeof o.input != "object" || !("type" in o.input) || typeof o.input.type != "string" || o.input.type !== "bash_code_execution" && o.input.type !== "text_editor_code_execution") if (r === "code_execution" && o.input != null && typeof o.input == "object" && "type" in o.input && o.input.type === "programmatic-tool-call") {
2294
- let { type: t, ...r } = o.input;
2295
- e.push({
2295
+ } else if (r !== "code_execution" || o.input == null || typeof o.input != "object" || !("type" in o.input) || typeof o.input.type != "string" || o.input.type !== "bash_code_execution" && o.input.type !== "text_editor_code_execution") {
2296
+ if (r === "code_execution" && o.input != null && typeof o.input == "object" && "type" in o.input && o.input.type === "programmatic-tool-call") {
2297
+ let { type: t, ...r } = o.input;
2298
+ e.push({
2299
+ type: "server_tool_use",
2300
+ id: o.toolCallId,
2301
+ name: "code_execution",
2302
+ input: r,
2303
+ ...n && { caller: n },
2304
+ cache_control: g
2305
+ });
2306
+ } else r === "code_execution" || r === "web_fetch" || r === "web_search" || r === "tool_search_tool_regex" || r === "tool_search_tool_bm25" ? e.push({
2296
2307
  type: "server_tool_use",
2297
2308
  id: o.toolCallId,
2298
- name: "code_execution",
2299
- input: r,
2309
+ name: r,
2310
+ input: o.input,
2311
+ ...n && { caller: n },
2312
+ cache_control: g
2313
+ }) : r === "advisor" ? e.push({
2314
+ type: "server_tool_use",
2315
+ id: o.toolCallId,
2316
+ name: "advisor",
2317
+ input: {},
2300
2318
  ...n && { caller: n },
2301
2319
  cache_control: g
2320
+ }) : i.push({
2321
+ type: "other",
2322
+ message: `provider executed tool call for tool ${o.toolName} is not supported`
2302
2323
  });
2303
- } else r === "code_execution" || r === "web_fetch" || r === "web_search" || r === "tool_search_tool_regex" || r === "tool_search_tool_bm25" ? e.push({
2304
- type: "server_tool_use",
2305
- id: o.toolCallId,
2306
- name: r,
2307
- input: o.input,
2308
- ...n && { caller: n },
2309
- cache_control: g
2310
- }) : r === "advisor" ? e.push({
2311
- type: "server_tool_use",
2312
- id: o.toolCallId,
2313
- name: "advisor",
2314
- input: {},
2315
- ...n && { caller: n },
2316
- cache_control: g
2317
- }) : i.push({
2318
- type: "other",
2319
- message: `provider executed tool call for tool ${o.toolName} is not supported`
2320
- });
2321
- else {
2324
+ } else {
2322
2325
  let { type: t, ...r } = o.input;
2323
2326
  e.push({
2324
2327
  type: "server_tool_use",
@@ -3298,7 +3301,7 @@ var Et = class t {
3298
3301
  ...xe,
3299
3302
  ...Ce
3300
3303
  ],
3301
- betas: new Set([
3304
+ betas: /* @__PURE__ */ new Set([
3302
3305
  ...W,
3303
3306
  ...Se,
3304
3307
  ...i,
@@ -4435,7 +4438,7 @@ var At = /^[A-Za-z0-9_-]{1,64}$/, jt = Oe.pick({ anthropicBeta: !0 }), Mt = () =
4435
4438
  data: d(Mt()),
4436
4439
  has_more: C(),
4437
4440
  last_id: L().nullish()
4438
- }))), Ft = new Set([
4441
+ }))), Ft = /* @__PURE__ */ new Set([
4439
4442
  "advisor_tool_result",
4440
4443
  "bash_code_execution_tool_result",
4441
4444
  "code_execution_tool_result",
@@ -5328,7 +5331,7 @@ var qt = I({
5328
5331
  ...e,
5329
5332
  anthropic: {
5330
5333
  ...t,
5331
- allowedCallers: [...new Set([...t?.allowedCallers ?? [], "code_execution_20250825"])]
5334
+ allowedCallers: [.../* @__PURE__ */ new Set([...t?.allowedCallers ?? [], "code_execution_20250825"])]
5332
5335
  }
5333
5336
  };
5334
5337
  }
@@ -5341,7 +5344,7 @@ var qt = I({
5341
5344
  ...e,
5342
5345
  anthropic: {
5343
5346
  ...t,
5344
- allowedCallers: [...new Set([...t?.allowedCallers ?? [], "code_execution_20260120"])]
5347
+ allowedCallers: [.../* @__PURE__ */ new Set([...t?.allowedCallers ?? [], "code_execution_20260120"])]
5345
5348
  }
5346
5349
  };
5347
5350
  }
@@ -1,5 +1,5 @@
1
1
 
2
- import { $t as e, Bt as t, D as n, Dn as r, E as i, H as a, Ht as o, Jt as s, K as c, O as l, Rt as u, S as d, St as f, Tt as p, Vt as m, Wt as h, X as g, Yt as _, Zt as v, _ as y, _t as b, an as x, bn as S, bt as C, dn as w, dt as T, f as E, ft as ee, h as D, in as O, jn as k, jt as A, kn as j, ln as M, o as N, ot as P, q as F, qt as te, sn as ne, st as re, tn as I, w as ie, yt as ae, zt as L } from "./dist-Bt1FopV4.mjs";
2
+ import { $t as e, Bt as t, D as n, Dn as r, E as i, H as a, Ht as o, Jt as s, K as c, O as l, Rt as u, S as d, St as f, Tt as p, Vt as m, Wt as h, X as g, Yt as _, Zt as v, _ as y, _t as b, an as x, bn as S, bt as C, dn as w, dt as T, f as E, ft as ee, h as D, in as O, jn as k, jt as A, kn as j, ln as M, o as N, ot as P, q as F, qt as te, sn as ne, st as re, tn as I, w as ie, yt as ae, zt as L } from "./dist-D2ZAAHGn.mjs";
3
3
  var R = x({
4
4
  messages: s(e()).nullish(),
5
5
  cached_tokens: O().nullish(),
@@ -175,7 +175,7 @@ var G = x({
175
175
  code: M().nullable()
176
176
  }),
177
177
  errorToMessage: (e) => e.message
178
- }), q = new Set([
178
+ }), q = /* @__PURE__ */ new Set([
179
179
  "glm-5-2",
180
180
  "labs-leanstral-1-5",
181
181
  "labs-leanstral-1-5-1",
@@ -782,8 +782,10 @@ var X = w([M(), s(v("type", [
782
782
  }
783
783
  };
784
784
  function Q(e, t, n) {
785
- if (n != null) if (Array.isArray(n)) for (let r of n) e.append(t, r);
786
- else e.append(t, String(n));
785
+ if (n != null) {
786
+ if (Array.isArray(n)) for (let r of n) e.append(t, r);
787
+ else e.append(t, String(n));
788
+ }
787
789
  }
788
790
  var ge = x({
789
791
  model: M(),