@roomle/embedding-lib 11.0.0-alpha.6 → 11.0.0-alpha.7
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/ai.js +6 -6
- package/ai.min.js +5 -4
- package/{browser-D6M-d6y5.mjs → browser-Cys-y5Hy.mjs} +1 -2
- package/chat-model-B7BO8IhK.mjs +212 -0
- package/chat-model-XYf503pT.mjs +213 -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 +143 -24
- package/construction.min.js +141 -23
- package/continuation-CswXtOus.mjs +10 -0
- package/continuation-NclHDSgS.mjs +9 -0
- 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-6TznX-Ae.mjs → dist-BZSd56sr.mjs} +3850 -3942
- 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-D0XFfKEL.mjs → dist-S9sLSjZ4.mjs} +3112 -3104
- 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/docs/md/web/embedding/CHANGELOG.md +41 -64
- 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 +188 -197
- package/hi.min.js +193 -194
- package/mcp-tools-BLB7pCga.mjs +42 -0
- package/mcp-tools-BirFT2R0.mjs +41 -0
- package/package.json +1 -1
- package/packages/web-sdk/packages/assistant.d.ts +1 -0
- package/packages/web-sdk/packages/common-core/src/planning-assistant.d.ts +3 -0
- 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/turn-limits-9LbUeSG2.mjs +9 -0
- package/turn-limits-Ciq383Bd.mjs +10 -0
- package/{utils-BwWn6Fw4.mjs → utils-CJnKZceY.mjs} +3 -4
- package/{utils-BoELtcEK.mjs → utils-DdNhTbJr.mjs} +6 -6
- package/chat-model-CZfZsgX9.mjs +0 -377
- package/chat-model-vgLJamoj.mjs +0 -373
- package/coerce-CqJod_GZ.mjs +0 -8
- package/coerce-CsI42_k0.mjs +0 -6
- package/mcp-tools-8qPMNqTK.mjs +0 -2
- package/mcp-tools-D_GxXscW.mjs +0 -2
- /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-
|
|
3
|
-
import { t as J } from "./experimental-evaluation-
|
|
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)
|
|
880
|
-
if (
|
|
881
|
-
|
|
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: "
|
|
884
|
-
details: `
|
|
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
|
-
}
|
|
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")
|
|
2294
|
-
|
|
2295
|
-
|
|
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:
|
|
2299
|
-
input:
|
|
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
|
|
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: [
|
|
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: [
|
|
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-
|
|
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)
|
|
786
|
-
|
|
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(),
|