@belonguniverseai/react-sdk 0.6.9 → 0.6.11

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/dist/api/client.d.ts +8 -8
  2. package/dist/component/{abnfDiagram-N423BO3Z-DLAVqv01.js → abnfDiagram-N423BO3Z-f0vftynw.js} +4 -4
  3. package/dist/component/{arc-CR4bQhii.js → arc-CXQH2Ipk.js} +2 -2
  4. package/dist/component/{architectureDiagram-T3A2C74G-pcZ0j72l.js → architectureDiagram-T3A2C74G-R0QUkbIx.js} +3 -3
  5. package/dist/component/{blockDiagram-VBNYF7ZC-CfmNZqIs.js → blockDiagram-VBNYF7ZC-BZqR-718.js} +4 -4
  6. package/dist/component/{c4Diagram-5PPSVZJV-DZmzykIC.js → c4Diagram-5PPSVZJV-DGrm76QR.js} +3 -3
  7. package/dist/component/{channel-3EtSE3EU.js → channel-CEw42mxj.js} +2 -2
  8. package/dist/component/{chunk-2GRJ4B5K-D90pKkpT.js → chunk-2GRJ4B5K-CV6yahj7.js} +2 -2
  9. package/dist/component/{chunk-2Q5K7J3B-ZWiOwI4L.js → chunk-2Q5K7J3B-3Gzn3Gq3.js} +2 -2
  10. package/dist/component/{chunk-5RXB4S5H-CSbA6Mhj.js → chunk-5RXB4S5H-D6BN0X9C.js} +5 -5
  11. package/dist/component/{chunk-5VM5RSS4-1euKS1UV.js → chunk-5VM5RSS4-BJYCmRhi.js} +2 -2
  12. package/dist/component/{chunk-6Q2QTUOP-Cej9yIQb.js → chunk-6Q2QTUOP-XEHEdcci.js} +2 -2
  13. package/dist/component/{chunk-GF5L2VYU-QL-N7lbL.js → chunk-GF5L2VYU-CylkEEoD.js} +6 -6
  14. package/dist/component/{chunk-JWPE2WC7-CsM5J037.js → chunk-JWPE2WC7-sotMl80e.js} +2 -2
  15. package/dist/component/{chunk-KBJHAD2P-D1oneTY8.js → chunk-KBJHAD2P-B8a02zqb.js} +2 -2
  16. package/dist/component/{chunk-RYQCIY6F-ByE9hJLw.js → chunk-RYQCIY6F-Ch1VqiDS.js} +2 -2
  17. package/dist/component/{chunk-XXDRQBXY-DLDheaQ5.js → chunk-XXDRQBXY-DXp1s2dM.js} +2 -2
  18. package/dist/component/{classDiagram-JCYQIIEL-DFkpV2wV.js → classDiagram-JCYQIIEL-E0pXXX_m.js} +3 -3
  19. package/dist/component/{classDiagram-v2-OCEON4UE-DFkpV2wV.js → classDiagram-v2-OCEON4UE-E0pXXX_m.js} +3 -3
  20. package/dist/component/{cose-bilkent-JH36ORCC-BNcFNd_D.js → cose-bilkent-JH36ORCC-BPzZCHeO.js} +2 -2
  21. package/dist/component/{cynefinDiagram-MW4NZA55-BIk309Ic.js → cynefinDiagram-MW4NZA55-Bi-rg43H.js} +3 -3
  22. package/dist/component/{dagre-VZM6K2ZE-DzDAzN4_.js → dagre-VZM6K2ZE-DVAYc_8p.js} +3 -3
  23. package/dist/component/{diagram-7IWD3JNH-PfjooO-W.js → diagram-7IWD3JNH-Cbp5lbOk.js} +4 -4
  24. package/dist/component/{diagram-B4RE2ZJO-BqxmG54L.js → diagram-B4RE2ZJO-BubNeW3G.js} +3 -3
  25. package/dist/component/{diagram-LBJQPF4R-DXW7feZB.js → diagram-LBJQPF4R-Dqb3Es9Z.js} +3 -3
  26. package/dist/component/{diagram-Q27KOJAE-B2YJkCKI.js → diagram-Q27KOJAE-BjYsDToI.js} +4 -4
  27. package/dist/component/{diagram-UB23O5K3-DKTc_UgY.js → diagram-UB23O5K3-PV1HLmX3.js} +3 -3
  28. package/dist/component/{ebnfDiagram-BXEA7PRR-DedkXGU4.js → ebnfDiagram-BXEA7PRR-CvdvRH0c.js} +4 -4
  29. package/dist/component/{erDiagram-JOGREHBK-Ca1lMYcX.js → erDiagram-JOGREHBK-BwjKYPnh.js} +5 -5
  30. package/dist/component/{flowDiagram-UKHOOZJN-BjDFgHmU.js → flowDiagram-UKHOOZJN-BD9V40gT.js} +7 -7
  31. package/dist/component/{ganttDiagram-PKOTCBZU-BGBxZbRR.js → ganttDiagram-PKOTCBZU-AEvtugqq.js} +3 -3
  32. package/dist/component/{gitGraphDiagram-DS77QQ5N-BzjSrZld.js → gitGraphDiagram-DS77QQ5N-KLldVABf.js} +4 -4
  33. package/dist/component/{highlighted-body-OFNGDK62-BjP2PEmB.js → highlighted-body-OFNGDK62-C03Oa8jH.js} +2 -2
  34. package/dist/component/index.js +2 -2
  35. package/dist/component/{infoDiagram-6WML65LV-CrhxXATi.js → infoDiagram-6WML65LV-C45NrVOi.js} +2 -2
  36. package/dist/component/{ishikawaDiagram-WSZJBQD7-DaVGd4UL.js → ishikawaDiagram-WSZJBQD7-D__wBFvx.js} +2 -2
  37. package/dist/component/{journeyDiagram-NVQOT4AX-CYWOjWyx.js → journeyDiagram-NVQOT4AX-CGpqNTr1.js} +5 -5
  38. package/dist/component/{kanban-definition-27J2QSJJ-DxRcfPUQ.js → kanban-definition-27J2QSJJ-BSdqSV_2.js} +3 -3
  39. package/dist/component/{linear-BG8OHLMY.js → linear-DRwDxwXK.js} +2 -2
  40. package/dist/component/{mermaid-GHXKKRXX-BUqVgw5a.js → mermaid-GHXKKRXX-CHuJqZfo.js} +22981 -22748
  41. package/dist/component/{mindmap-definition-FAOFIHXS-DZKrtesQ.js → mindmap-definition-FAOFIHXS-Cf0eIPFd.js} +4 -4
  42. package/dist/component/{pegDiagram-VL7TDLO6-C19Eq23D.js → pegDiagram-VL7TDLO6-BUWS2ATo.js} +4 -4
  43. package/dist/component/{pieDiagram-7S7Q4E2Y-fAB4Aaor.js → pieDiagram-7S7Q4E2Y-CDxjZgBZ.js} +4 -4
  44. package/dist/component/{quadrantDiagram-CIZ2JOQS-OhuduzrB.js → quadrantDiagram-CIZ2JOQS-CLFfARlt.js} +3 -3
  45. package/dist/component/{railroadDiagram-AXF67PYL-CFc6KRD2.js → railroadDiagram-AXF67PYL-DTAcc0HF.js} +4 -4
  46. package/dist/component/{requirementDiagram-LRYGKXZP-CdUXs9wj.js → requirementDiagram-LRYGKXZP-pf26et50.js} +4 -4
  47. package/dist/component/{sankeyDiagram-W5VNT64P-BUbmCKGp.js → sankeyDiagram-W5VNT64P-D9F7pieg.js} +2 -2
  48. package/dist/component/{sequenceDiagram-SI44F4Z6-Cup0cMzi.js → sequenceDiagram-SI44F4Z6-BubzoPKA.js} +4 -4
  49. package/dist/component/{sizeCapture-X5ZJPWSS-wHm-sb_w.js → sizeCapture-X5ZJPWSS-D__oK84n.js} +2 -2
  50. package/dist/component/{stateDiagram-OKZ733FA-Cf2EyMg5.js → stateDiagram-OKZ733FA-B5csLhbR.js} +3 -3
  51. package/dist/component/{stateDiagram-v2-UEYNNEHI-CE4iWCfm.js → stateDiagram-v2-UEYNNEHI-BgvCw2_s.js} +3 -3
  52. package/dist/component/{swimlanes-SLNWSIFB-B6tvPRmb.js → swimlanes-SLNWSIFB-CZAhxNrP.js} +4 -4
  53. package/dist/component/{swimlanesDiagram-ULZ7WXOC-BxoFDGMg.js → swimlanesDiagram-ULZ7WXOC-CVuXXQe-.js} +3 -3
  54. package/dist/component/{timeline-definition-Z64GVDOM-ps4srYfC.js → timeline-definition-Z64GVDOM-BTe9UDlH.js} +3 -3
  55. package/dist/component/{vennDiagram-T6HMQDX7-CtEHDZfK.js → vennDiagram-T6HMQDX7-B6XFjd-K.js} +2 -2
  56. package/dist/component/{wardleyDiagram-T6FBY63Y-CCSSKJS0.js → wardleyDiagram-T6FBY63Y-B509pP12.js} +3 -3
  57. package/dist/component/{xychartDiagram-ELKLHX3M-DBj-IK-B.js → xychartDiagram-ELKLHX3M-C6xL-FJB.js} +3 -3
  58. package/dist/components/embed/ContextWindowPanel.d.ts +5 -0
  59. package/dist/components/embed/format-tokens.d.ts +19 -0
  60. package/dist/embed/global.d.ts +5 -1
  61. package/dist/i18n/messages/en.d.ts +17 -1
  62. package/dist/i18n/messages/surfaces/usage.d.ts +52 -4
  63. package/dist/stream/belong-chat-transport.d.ts +11 -0
  64. package/dist/stream/belong-data-parts.d.ts +30 -1
  65. package/dist/stream/select-session-usage.d.ts +13 -2
  66. package/package.json +1 -1
@@ -1,6 +1,6 @@
1
- import { g as oe } from "./chunk-XXDRQBXY-DLDheaQ5.js";
2
- import { s as ae } from "./chunk-KBJHAD2P-D1oneTY8.js";
3
- import { _ as l, l as C, v as ce, x as le, z as he, E as G, c as B, i as F, b9 as de, ad as ge, ae as ue, af as pe } from "./mermaid-GHXKKRXX-BUqVgw5a.js";
1
+ import { g as oe } from "./chunk-XXDRQBXY-DXp1s2dM.js";
2
+ import { s as ae } from "./chunk-KBJHAD2P-B8a02zqb.js";
3
+ import { _ as l, l as C, v as ce, x as le, z as he, E as G, c as B, i as F, b9 as de, ad as ge, ae as ue, af as pe } from "./mermaid-GHXKKRXX-CHuJqZfo.js";
4
4
  globalThis.process = globalThis.process || { env: {} };
5
5
  globalThis.global = globalThis.global || globalThis;
6
6
  const b = [];
@@ -830,4 +830,4 @@ var _e = Y, ke = 12, N = {
830
830
  export {
831
831
  we as diagram
832
832
  };
833
- //# sourceMappingURL=mindmap-definition-FAOFIHXS-DZKrtesQ.js.map
833
+ //# sourceMappingURL=mindmap-definition-FAOFIHXS-Cf0eIPFd.js.map
@@ -1,6 +1,6 @@
1
- import { g as i, r as m, d as a } from "./chunk-6Q2QTUOP-Cej9yIQb.js";
2
- import { p } from "./chunk-JWPE2WC7-CsM5J037.js";
3
- import { _ as t, l as o } from "./mermaid-GHXKKRXX-BUqVgw5a.js";
1
+ import { g as i, r as m, d as a } from "./chunk-6Q2QTUOP-XEHEdcci.js";
2
+ import { p } from "./chunk-JWPE2WC7-sotMl80e.js";
3
+ import { _ as t, l as o } from "./mermaid-GHXKKRXX-CHuJqZfo.js";
4
4
  import { M as u, d as c } from "./cynefin-VYW2F7L2-DAyxamLw.js";
5
5
  globalThis.process = globalThis.process || { env: {} };
6
6
  globalThis.global = globalThis.global || globalThis;
@@ -95,4 +95,4 @@ var f = c().RailroadPeg.parser.LangiumParser, l = /* @__PURE__ */ t((e) => {
95
95
  export {
96
96
  S as diagram
97
97
  };
98
- //# sourceMappingURL=pegDiagram-VL7TDLO6-C19Eq23D.js.map
98
+ //# sourceMappingURL=pegDiagram-VL7TDLO6-BUWS2ATo.js.map
@@ -1,7 +1,7 @@
1
- import { p as at } from "./chunk-JWPE2WC7-CsM5J037.js";
2
- import { V as D, K as P, b8 as rt, g as nt, s as it, a as ot, b as st, p as lt, o as ct, _ as d, l as B, c as gt, D as ut, G as dt, a4 as ht, e as pt, q as ft, E as mt } from "./mermaid-GHXKKRXX-BUqVgw5a.js";
1
+ import { p as at } from "./chunk-JWPE2WC7-sotMl80e.js";
2
+ import { V as D, K as P, b8 as rt, g as nt, s as it, a as ot, b as st, p as lt, o as ct, _ as d, l as B, c as gt, D as ut, G as dt, a4 as ht, e as pt, q as ft, E as mt } from "./mermaid-GHXKKRXX-CHuJqZfo.js";
3
3
  import { p as vt } from "./cynefin-VYW2F7L2-DAyxamLw.js";
4
- import { d as X } from "./arc-CR4bQhii.js";
4
+ import { d as X } from "./arc-CXQH2Ipk.js";
5
5
  import { o as xt } from "./ordinal-D0x7izaa.js";
6
6
  globalThis.process = globalThis.process || { env: {} };
7
7
  globalThis.global = globalThis.global || globalThis;
@@ -207,4 +207,4 @@ var At = mt.pie, I = {
207
207
  export {
208
208
  It as diagram
209
209
  };
210
- //# sourceMappingURL=pieDiagram-7S7Q4E2Y-fAB4Aaor.js.map
210
+ //# sourceMappingURL=pieDiagram-7S7Q4E2Y-CDxjZgBZ.js.map
@@ -1,5 +1,5 @@
1
- import { s as Se, g as _e, p as ee, o as Ae, a as ke, b as Fe, _ as r, c as Et, l as qt, d as vt, e as Pe, q as ve, E as z, i as Ce, Z as Le } from "./mermaid-GHXKKRXX-BUqVgw5a.js";
2
- import { l as te } from "./linear-BG8OHLMY.js";
1
+ import { s as Se, g as _e, p as ee, o as Ae, a as ke, b as Fe, _ as r, c as Et, l as qt, d as vt, e as Pe, q as ve, E as z, i as Ce, Z as Le } from "./mermaid-GHXKKRXX-CHuJqZfo.js";
2
+ import { l as te } from "./linear-DRwDxwXK.js";
3
3
  globalThis.process = globalThis.process || { env: {} };
4
4
  globalThis.global = globalThis.global || globalThis;
5
5
  var Ct = (function() {
@@ -1029,4 +1029,4 @@ var ze = /* @__PURE__ */ r(function() {
1029
1029
  export {
1030
1030
  Ne as diagram
1031
1031
  };
1032
- //# sourceMappingURL=quadrantDiagram-CIZ2JOQS-OhuduzrB.js.map
1032
+ //# sourceMappingURL=quadrantDiagram-CIZ2JOQS-CLFfARlt.js.map
@@ -1,6 +1,6 @@
1
- import { g as o, r as i, d as t } from "./chunk-6Q2QTUOP-Cej9yIQb.js";
2
- import { p } from "./chunk-JWPE2WC7-CsM5J037.js";
3
- import { _ as l, l as n } from "./mermaid-GHXKKRXX-BUqVgw5a.js";
1
+ import { g as o, r as i, d as t } from "./chunk-6Q2QTUOP-XEHEdcci.js";
2
+ import { p } from "./chunk-JWPE2WC7-sotMl80e.js";
3
+ import { _ as l, l as n } from "./mermaid-GHXKKRXX-CHuJqZfo.js";
4
4
  import { M as m, c as u } from "./cynefin-VYW2F7L2-DAyxamLw.js";
5
5
  globalThis.process = globalThis.process || { env: {} };
6
6
  globalThis.global = globalThis.global || globalThis;
@@ -77,4 +77,4 @@ var d = u().Railroad.parser.LangiumParser, a = /* @__PURE__ */ l((e) => {
77
77
  export {
78
78
  E as diagram
79
79
  };
80
- //# sourceMappingURL=railroadDiagram-AXF67PYL-CFc6KRD2.js.map
80
+ //# sourceMappingURL=railroadDiagram-AXF67PYL-DTAcc0HF.js.map
@@ -1,6 +1,6 @@
1
- import { g as ze } from "./chunk-XXDRQBXY-DLDheaQ5.js";
2
- import { s as Ge } from "./chunk-KBJHAD2P-D1oneTY8.js";
3
- import { _ as h, z as Ye, b as Xe, a as Je, s as Ze, g as et, o as tt, p as st, c as ke, l as Ne, q as it, u as rt, v as nt, x as at, y as lt } from "./mermaid-GHXKKRXX-BUqVgw5a.js";
1
+ import { g as ze } from "./chunk-XXDRQBXY-DXp1s2dM.js";
2
+ import { s as Ge } from "./chunk-KBJHAD2P-B8a02zqb.js";
3
+ import { _ as h, z as Ye, b as Xe, a as Je, s as Ze, g as et, o as tt, p as st, c as ke, l as Ne, q as it, u as rt, v as nt, x as at, y as lt } from "./mermaid-GHXKKRXX-CHuJqZfo.js";
4
4
  globalThis.process = globalThis.process || { env: {} };
5
5
  globalThis.global = globalThis.global || globalThis;
6
6
  var qe = (function() {
@@ -885,4 +885,4 @@ var mt = /* @__PURE__ */ h(async function(e, u, o, n) {
885
885
  export {
886
886
  Rt as diagram
887
887
  };
888
- //# sourceMappingURL=requirementDiagram-LRYGKXZP-CdUXs9wj.js.map
888
+ //# sourceMappingURL=requirementDiagram-LRYGKXZP-pf26et50.js.map
@@ -1,4 +1,4 @@
1
- import { o as kt, p as mt, s as xt, g as _t, b as vt, a as bt, _ as y, c as ot, bc as St, d as G, ag as wt, q as Lt, k as Et } from "./mermaid-GHXKKRXX-BUqVgw5a.js";
1
+ import { o as kt, p as mt, s as xt, g as _t, b as vt, a as bt, _ as y, c as ot, bc as St, d as G, ag as wt, q as Lt, k as Et } from "./mermaid-GHXKKRXX-CHuJqZfo.js";
2
2
  import { o as Tt } from "./ordinal-D0x7izaa.js";
3
3
  globalThis.process = globalThis.process || { env: {} };
4
4
  globalThis.global = globalThis.global || globalThis;
@@ -859,4 +859,4 @@ var ge = {
859
859
  export {
860
860
  ge as diagram
861
861
  };
862
- //# sourceMappingURL=sankeyDiagram-W5VNT64P-BUbmCKGp.js.map
862
+ //# sourceMappingURL=sankeyDiagram-W5VNT64P-D9F7pieg.js.map
@@ -1,6 +1,6 @@
1
- import { I as tr } from "./chunk-2Q5K7J3B-ZWiOwI4L.js";
2
- import { _ as x, $ as er, c as $, d as Vt, l as at, j as Ce, e as rr, f as ar, k as N, b as ke, s as sr, o as ir, a as nr, g as or, p as cr, a0 as lr, a1 as hr, q as dr, i as Yt, y as Z, a2 as Q, a3 as Pt, a4 as Me, a5 as Tr, z as Kt, a6 as pr, a7 as Be } from "./mermaid-GHXKKRXX-BUqVgw5a.js";
3
- import { a as Er, b as ae, g as dt, d as ur, c as se, e as ie } from "./chunk-2GRJ4B5K-D90pKkpT.js";
1
+ import { I as tr } from "./chunk-2Q5K7J3B-3Gzn3Gq3.js";
2
+ import { _ as x, $ as er, c as $, d as Vt, l as at, j as Ce, e as rr, f as ar, k as N, b as ke, s as sr, o as ir, a as nr, g as or, p as cr, a0 as lr, a1 as hr, q as dr, i as Yt, y as Z, a2 as Q, a3 as Pt, a4 as Me, a5 as Tr, z as Kt, a6 as pr, a7 as Be } from "./mermaid-GHXKKRXX-CHuJqZfo.js";
3
+ import { a as Er, b as ae, g as dt, d as ur, c as se, e as ie } from "./chunk-2GRJ4B5K-CV6yahj7.js";
4
4
  globalThis.process = globalThis.process || { env: {} };
5
5
  globalThis.global = globalThis.global || globalThis;
6
6
  var te = (function() {
@@ -2891,4 +2891,4 @@ var ra = /* @__PURE__ */ x(async function(e, t, a) {
2891
2891
  export {
2892
2892
  Ta as diagram
2893
2893
  };
2894
- //# sourceMappingURL=sequenceDiagram-SI44F4Z6-Cup0cMzi.js.map
2894
+ //# sourceMappingURL=sequenceDiagram-SI44F4Z6-BubzoPKA.js.map
@@ -1,4 +1,4 @@
1
- import { _ as t } from "./mermaid-GHXKKRXX-BUqVgw5a.js";
1
+ import { _ as t } from "./mermaid-GHXKKRXX-CHuJqZfo.js";
2
2
  globalThis.process = globalThis.process || { env: {} };
3
3
  globalThis.global = globalThis.global || globalThis;
4
4
  var l = 1;
@@ -46,4 +46,4 @@ export {
46
46
  p as captureNodeSizes,
47
47
  c as shouldCaptureSizes
48
48
  };
49
- //# sourceMappingURL=sizeCapture-X5ZJPWSS-wHm-sb_w.js.map
49
+ //# sourceMappingURL=sizeCapture-X5ZJPWSS-D__oK84n.js.map
@@ -1,5 +1,5 @@
1
- import { s as R, a as W, S as N } from "./chunk-5RXB4S5H-CSbA6Mhj.js";
2
- import { _ as f, c as t, d as M, l as S, e as P, k as z, aa as _, ab as U, a6 as C, y as F } from "./mermaid-GHXKKRXX-BUqVgw5a.js";
1
+ import { s as R, a as W, S as N } from "./chunk-5RXB4S5H-D6BN0X9C.js";
2
+ import { _ as f, c as t, d as M, l as S, e as P, k as z, aa as _, ab as U, a6 as C, y as F } from "./mermaid-GHXKKRXX-CHuJqZfo.js";
3
3
  import { G as O } from "./graph-CWpEkm4G.js";
4
4
  import { l as J } from "./layout-Br2UjHRU.js";
5
5
  globalThis.process = globalThis.process || { env: {} };
@@ -263,4 +263,4 @@ var X = /* @__PURE__ */ f((e) => e.append("circle").attr("class", "start-state")
263
263
  export {
264
264
  ot as diagram
265
265
  };
266
- //# sourceMappingURL=stateDiagram-OKZ733FA-Cf2EyMg5.js.map
266
+ //# sourceMappingURL=stateDiagram-OKZ733FA-B5csLhbR.js.map
@@ -1,5 +1,5 @@
1
- import { s as e, b as r, a as s, S as t } from "./chunk-5RXB4S5H-CSbA6Mhj.js";
2
- import { _ as l } from "./mermaid-GHXKKRXX-BUqVgw5a.js";
1
+ import { s as e, b as r, a as s, S as t } from "./chunk-5RXB4S5H-D6BN0X9C.js";
2
+ import { _ as l } from "./mermaid-GHXKKRXX-CHuJqZfo.js";
3
3
  globalThis.process = globalThis.process || { env: {} };
4
4
  globalThis.global = globalThis.global || globalThis;
5
5
  var b = {
@@ -16,4 +16,4 @@ var b = {
16
16
  export {
17
17
  b as diagram
18
18
  };
19
- //# sourceMappingURL=stateDiagram-v2-UEYNNEHI-CE4iWCfm.js.map
19
+ //# sourceMappingURL=stateDiagram-v2-UEYNNEHI-BgvCw2_s.js.map
@@ -1,5 +1,5 @@
1
- import { c as Tr } from "./chunk-RYQCIY6F-ByE9hJLw.js";
2
- import { ap as Er, aq as wr, ar as Ar, as as Rr, l as Ke, c as Nr, aj as Or, ai as Pr, ak as Br, aw as kr, ay as Fr, z as _r, av as Dr, az as Hr, y as Oe, aA as Ye, _ as d, aB as Ao } from "./mermaid-GHXKKRXX-BUqVgw5a.js";
1
+ import { c as Tr } from "./chunk-RYQCIY6F-Ch1VqiDS.js";
2
+ import { ap as Er, aq as wr, ar as Ar, as as Rr, l as Ke, c as Nr, aj as Or, ai as Pr, ak as Br, aw as kr, ay as Fr, z as _r, av as Dr, az as Hr, y as Oe, aA as Ye, _ as d, aB as Ao } from "./mermaid-GHXKKRXX-CHuJqZfo.js";
3
3
  import { G as Xr } from "./graph-CWpEkm4G.js";
4
4
  globalThis.process = globalThis.process || { env: {} };
5
5
  globalThis.global = globalThis.global || globalThis;
@@ -24,7 +24,7 @@ async function Fo(t, e) {
24
24
  for (const I of o)
25
25
  n.setEdge(I.start, I.end, { ...I }, I.id), e.edges.some((p) => p.id === I.id) || e.edges.push(I);
26
26
  if (globalThis.mermaidCaptureSizes) {
27
- const { captureNodeSizes: I } = await import("./sizeCapture-X5ZJPWSS-wHm-sb_w.js");
27
+ const { captureNodeSizes: I } = await import("./sizeCapture-X5ZJPWSS-D__oK84n.js");
28
28
  I(t, e);
29
29
  }
30
30
  return {
@@ -5332,4 +5332,4 @@ d(Zr, "render");
5332
5332
  export {
5333
5333
  Zr as render
5334
5334
  };
5335
- //# sourceMappingURL=swimlanes-SLNWSIFB-B6tvPRmb.js.map
5335
+ //# sourceMappingURL=swimlanes-SLNWSIFB-CZAhxNrP.js.map
@@ -1,5 +1,5 @@
1
- import { c as e, s as a } from "./flowDiagram-UKHOOZJN-BjDFgHmU.js";
2
- import { _ as s } from "./mermaid-GHXKKRXX-BUqVgw5a.js";
1
+ import { c as e, s as a } from "./flowDiagram-UKHOOZJN-BD9V40gT.js";
2
+ import { _ as s } from "./mermaid-GHXKKRXX-CHuJqZfo.js";
3
3
  globalThis.process = globalThis.process || { env: {} };
4
4
  globalThis.global = globalThis.global || globalThis;
5
5
  var t = /* @__PURE__ */ s((l) => `${a(l)}
@@ -13,4 +13,4 @@ var t = /* @__PURE__ */ s((l) => `${a(l)}
13
13
  export {
14
14
  g as diagram
15
15
  };
16
- //# sourceMappingURL=swimlanesDiagram-ULZ7WXOC-BxoFDGMg.js.map
16
+ //# sourceMappingURL=swimlanesDiagram-ULZ7WXOC-CVuXXQe-.js.map
@@ -1,5 +1,5 @@
1
- import { _ as o, z as gt, ad as Rt, ae as Ct, af as Wt, c as pt, l as E, G as Pt, a4 as Bt, ag as ft, d as U, u as Vt, ah as Ft, q as zt } from "./mermaid-GHXKKRXX-BUqVgw5a.js";
2
- import { d as ot } from "./arc-CR4bQhii.js";
1
+ import { _ as o, z as gt, ad as Rt, ae as Ct, af as Wt, c as pt, l as E, G as Pt, a4 as Bt, ag as ft, d as U, u as Vt, ah as Ft, q as zt } from "./mermaid-GHXKKRXX-CHuJqZfo.js";
2
+ import { d as ot } from "./arc-CXQH2Ipk.js";
3
3
  globalThis.process = globalThis.process || { env: {} };
4
4
  globalThis.global = globalThis.global || globalThis;
5
5
  var tt = (function() {
@@ -1055,4 +1055,4 @@ var Qt = /* @__PURE__ */ o(function(e, t, n, i, r, h = !1) {
1055
1055
  export {
1056
1056
  me as diagram
1057
1057
  };
1058
- //# sourceMappingURL=timeline-definition-Z64GVDOM-ps4srYfC.js.map
1058
+ //# sourceMappingURL=timeline-definition-Z64GVDOM-BTe9UDlH.js.map
@@ -1,4 +1,4 @@
1
- import { b7 as Wt, s as Kt, g as Ht, p as Yt, o as Xt, a as Zt, b as Jt, _ as w, z as wt, G as Qt, d as ot, ao as $t, ad as te, ae as ee, af as ne, e as se, q as ie, D as oe, E as re } from "./mermaid-GHXKKRXX-BUqVgw5a.js";
1
+ import { b7 as Wt, s as Kt, g as Ht, p as Yt, o as Xt, a as Zt, b as Jt, _ as w, z as wt, G as Qt, d as ot, ao as $t, ad as te, ae as ee, af as ne, e as se, q as ie, D as oe, E as re } from "./mermaid-GHXKKRXX-CHuJqZfo.js";
2
2
  globalThis.process = globalThis.process || { env: {} };
3
3
  globalThis.global = globalThis.global || globalThis;
4
4
  const kt = (t, n) => Wt(t, "a", -n), _t = 1e-10;
@@ -1578,4 +1578,4 @@ var Ue = { draw: qe }, We = {
1578
1578
  export {
1579
1579
  We as diagram
1580
1580
  };
1581
- //# sourceMappingURL=vennDiagram-T6HMQDX7-CtEHDZfK.js.map
1581
+ //# sourceMappingURL=vennDiagram-T6HMQDX7-B6XFjd-K.js.map
@@ -1,5 +1,5 @@
1
- import { p as St } from "./chunk-JWPE2WC7-CsM5J037.js";
2
- import { s as Mt, g as Nt, p as Tt, o as zt, a as Lt, b as At, _ as u, Z as Xt, z as Et, D as U, l as K, G as Yt, e as It, q as Bt, c as j } from "./mermaid-GHXKKRXX-BUqVgw5a.js";
1
+ import { p as St } from "./chunk-JWPE2WC7-sotMl80e.js";
2
+ import { s as Mt, g as Nt, p as Tt, o as zt, a as Lt, b as At, _ as u, Z as Xt, z as Et, D as U, l as K, G as Yt, e as It, q as Bt, c as j } from "./mermaid-GHXKKRXX-CHuJqZfo.js";
3
3
  import { p as Ft } from "./cynefin-VYW2F7L2-DAyxamLw.js";
4
4
  globalThis.process = globalThis.process || { env: {} };
5
5
  globalThis.global = globalThis.global || globalThis;
@@ -678,4 +678,4 @@ var Dt = {
678
678
  export {
679
679
  Qt as diagram
680
680
  };
681
- //# sourceMappingURL=wardleyDiagram-T6FBY63Y-CCSSKJS0.js.map
681
+ //# sourceMappingURL=wardleyDiagram-T6FBY63Y-B509pP12.js.map
@@ -1,7 +1,7 @@
1
- import { s as si, g as ai, p as Et, o as ni, a as oi, b as ri, _ as n, l as It, G as hi, e as li, q as ci, z as pt, i as ui, D as Mt, E as gi, Z as xi, aC as di, aa as Dt } from "./mermaid-GHXKKRXX-BUqVgw5a.js";
1
+ import { s as si, g as ai, p as Et, o as ni, a as oi, b as ri, _ as n, l as It, G as hi, e as li, q as ci, z as pt, i as ui, D as Mt, E as gi, Z as xi, aC as di, aa as Dt } from "./mermaid-GHXKKRXX-CHuJqZfo.js";
2
2
  import { i as fi } from "./init-BOu0eQYQ.js";
3
3
  import { o as pi } from "./ordinal-D0x7izaa.js";
4
- import { l as vt } from "./linear-BG8OHLMY.js";
4
+ import { l as vt } from "./linear-DRwDxwXK.js";
5
5
  globalThis.process = globalThis.process || { env: {} };
6
6
  globalThis.global = globalThis.global || globalThis;
7
7
  function mi(t, i, e) {
@@ -1418,4 +1418,4 @@ var Ti = /* @__PURE__ */ n(function() {
1418
1418
  export {
1419
1419
  zi as diagram
1420
1420
  };
1421
- //# sourceMappingURL=xychartDiagram-ELKLHX3M-DBj-IK-B.js.map
1421
+ //# sourceMappingURL=xychartDiagram-ELKLHX3M-C6xL-FJB.js.map
@@ -0,0 +1,5 @@
1
+ import { SessionUsageSummary } from '../../stream/select-session-usage.ts';
2
+ export type ContextWindowPanelProps = {
3
+ readonly usage: SessionUsageSummary;
4
+ };
5
+ export declare const ContextWindowPanel: ({ usage }: ContextWindowPanelProps) => React.ReactElement;
@@ -0,0 +1,19 @@
1
+ /**
2
+ * Compact token-count formatting shared by the usage meter, the context
3
+ * window panel and the session stats panel (it was duplicated verbatim in
4
+ * two of them before the panel made it three).
5
+ *
6
+ * 500 → "500"
7
+ * 1_234 → "1.2k"
8
+ * 12_345 → "12k"
9
+ * 253_500 → "254k" (hundreds of k keep no decimals — same rule as 12k)
10
+ * 1_000_000 → "1M"
11
+ * 1_250_000 → "1.3M"
12
+ */
13
+ export declare const formatTokens: (count: number) => string;
14
+ /**
15
+ * Percentage-of-window formatting for the panel rows: whole numbers at ≥10%,
16
+ * one decimal below, and a "<0.1%" floor so a tiny-but-present segment never
17
+ * reads as zero.
18
+ */
19
+ export declare const formatWindowPct: (tokens: number, windowTokens: number) => string;
@@ -75,6 +75,10 @@ export type BelongGlobalWithInternals = BelongGlobal & {
75
75
  readonly __routeHandlers: ReadonlyMap<string, RouteHandler>;
76
76
  readonly __uiActionHandlers: ReadonlyMap<string, UiActionHandler>;
77
77
  };
78
+ export type ApplyInitConfigOptions = {
79
+ /** React mounts can re-run; script-tag init owns the one-time host diagnostic. */
80
+ readonly reportThemeResolution?: boolean;
81
+ };
78
82
  /**
79
83
  * Populate the SDK's module-singleton config from a host's init input — the
80
84
  * shared CONFIG step of both embed paths. The `window.belong` global's `init`
@@ -84,6 +88,6 @@ export type BelongGlobalWithInternals = BelongGlobal & {
84
88
  * deliberately does NOT mount, set a token, or start the browser-control
85
89
  * channel — those side effects belong to the caller.
86
90
  */
87
- export declare const applyInitConfig: (input: BelongInitInput) => Promise<void>;
91
+ export declare const applyInitConfig: (input: BelongInitInput, options?: ApplyInitConfigOptions) => Promise<void>;
88
92
  export declare const createBelongGlobal: () => BelongGlobalWithInternals;
89
93
  export {};
@@ -1,11 +1,27 @@
1
1
  export declare const en: {
2
2
  readonly usage: {
3
3
  readonly tooltip: "Auto-compacts at {{chars}} chars; {{tokens}} tokens used this session";
4
+ readonly windowTooltip: "Context window: {{used}} of {{window}} tokens used ({{pct}}%)";
4
5
  readonly context: "Context {{pct}}%";
5
6
  readonly tokens: "{{count}} tokens";
6
- readonly lastTurn: "Last turn: {{in}} in / {{out}} out";
7
+ readonly inOut: "Input {{in}} · output {{out}}";
7
8
  readonly turnsThisSessionOne: "{{count}} turn this session";
8
9
  readonly turnsThisSessionOther: "{{count}} turns this session";
10
+ readonly panel: {
11
+ readonly title: "Context window";
12
+ readonly segments: {
13
+ readonly messages: "Messages";
14
+ readonly system_prompt: "System prompt";
15
+ readonly tools: "Tools";
16
+ readonly skills: "Skills";
17
+ readonly memory: "Memory";
18
+ };
19
+ readonly freeSpace: "Free space";
20
+ readonly estimateNote: "Breakdown is estimated; the total is as reported by the model.";
21
+ readonly sessionTokens: "{{tokens}} tokens this session";
22
+ readonly cacheLine: "Cache: {{read}} read · {{write}} written";
23
+ readonly autoCompact: "Auto-compact: {{pct}}% of budget";
24
+ };
9
25
  };
10
26
  readonly stream: {
11
27
  readonly copyOutput: "Copy output";
@@ -1,31 +1,79 @@
1
- /** Usage meter dock strings. */
1
+ /** Usage meter + context-window panel dock strings. */
2
2
  export declare const usageEn: {
3
3
  readonly usage: {
4
4
  readonly tooltip: "Auto-compacts at {{chars}} chars; {{tokens}} tokens used this session";
5
+ readonly windowTooltip: "Context window: {{used}} of {{window}} tokens used ({{pct}}%)";
5
6
  readonly context: "Context {{pct}}%";
6
7
  readonly tokens: "{{count}} tokens";
7
- readonly lastTurn: "Last turn: {{in}} in / {{out}} out";
8
+ readonly inOut: "Input {{in}} · output {{out}}";
8
9
  readonly turnsThisSessionOne: "{{count}} turn this session";
9
10
  readonly turnsThisSessionOther: "{{count}} turns this session";
11
+ readonly panel: {
12
+ readonly title: "Context window";
13
+ readonly segments: {
14
+ readonly messages: "Messages";
15
+ readonly system_prompt: "System prompt";
16
+ readonly tools: "Tools";
17
+ readonly skills: "Skills";
18
+ readonly memory: "Memory";
19
+ };
20
+ readonly freeSpace: "Free space";
21
+ readonly estimateNote: "Breakdown is estimated; the total is as reported by the model.";
22
+ readonly sessionTokens: "{{tokens}} tokens this session";
23
+ readonly cacheLine: "Cache: {{read}} read · {{write}} written";
24
+ readonly autoCompact: "Auto-compact: {{pct}}% of budget";
25
+ };
10
26
  };
11
27
  };
12
28
  export declare const usageEs: {
13
29
  usage: {
14
30
  tooltip: string;
31
+ windowTooltip: string;
15
32
  context: string;
16
33
  tokens: string;
17
- lastTurn: string;
34
+ inOut: string;
18
35
  turnsThisSessionOne: string;
19
36
  turnsThisSessionOther: string;
37
+ panel: {
38
+ title: string;
39
+ segments: {
40
+ messages: string;
41
+ system_prompt: string;
42
+ tools: string;
43
+ skills: string;
44
+ memory: string;
45
+ };
46
+ freeSpace: string;
47
+ estimateNote: string;
48
+ sessionTokens: string;
49
+ cacheLine: string;
50
+ autoCompact: string;
51
+ };
20
52
  };
21
53
  };
22
54
  export declare const usagePt: {
23
55
  usage: {
24
56
  tooltip: string;
57
+ windowTooltip: string;
25
58
  context: string;
26
59
  tokens: string;
27
- lastTurn: string;
60
+ inOut: string;
28
61
  turnsThisSessionOne: string;
29
62
  turnsThisSessionOther: string;
63
+ panel: {
64
+ title: string;
65
+ segments: {
66
+ messages: string;
67
+ system_prompt: string;
68
+ tools: string;
69
+ skills: string;
70
+ memory: string;
71
+ };
72
+ freeSpace: string;
73
+ estimateNote: string;
74
+ sessionTokens: string;
75
+ cacheLine: string;
76
+ autoCompact: string;
77
+ };
30
78
  };
31
79
  };
@@ -171,8 +171,19 @@ export declare const wireStreamPartSchema: z.ZodDiscriminatedUnion<[z.ZodObject<
171
171
  inputTokens: z.ZodNumber;
172
172
  outputTokens: z.ZodNumber;
173
173
  totalTokens: z.ZodNumber;
174
+ cacheReadInputTokens: z.ZodOptional<z.ZodNumber>;
175
+ cacheWriteInputTokens: z.ZodOptional<z.ZodNumber>;
174
176
  historyChars: z.ZodNumber;
175
177
  autoCompactThresholdChars: z.ZodNumber;
178
+ contextWindow: z.ZodOptional<z.ZodObject<{
179
+ contextWindowTokens: z.ZodNumber;
180
+ usedTokens: z.ZodNumber;
181
+ segments: z.ZodArray<z.ZodObject<{
182
+ key: z.ZodString;
183
+ tokens: z.ZodNumber;
184
+ count: z.ZodOptional<z.ZodNumber>;
185
+ }, z.core.$strip>>;
186
+ }, z.core.$strip>>;
176
187
  }, z.core.$strip>;
177
188
  }, z.core.$strip>, z.ZodObject<{
178
189
  type: z.ZodLiteral<"data-choice-request">;
@@ -199,18 +199,47 @@ export type StatusData = {
199
199
  */
200
200
  readonly retryable?: boolean | undefined;
201
201
  };
202
+ /**
203
+ * One slice of the context-window breakdown. `key` is an open string on the
204
+ * wire; the KNOWN values are rendered as labeled rows (`messages`,
205
+ * `system_prompt`, `tools`, `skills`, `memory`) and unknown ones are skipped
206
+ * rather than failing the part (see the transport schema).
207
+ */
208
+ export type ContextWindowSegmentData = {
209
+ readonly key: string;
210
+ readonly tokens: number;
211
+ readonly count?: number | undefined;
212
+ };
213
+ /**
214
+ * The turn-end snapshot of the model's context window (own-loop runtimes
215
+ * only). `usedTokens` is the REAL last-request prompt + its output as the
216
+ * provider reported it; `segments` are estimates scaled to sum to it. Free
217
+ * space is `contextWindowTokens - usedTokens`, computed at render.
218
+ */
219
+ export type ContextWindowData = {
220
+ readonly contextWindowTokens: number;
221
+ readonly usedTokens: number;
222
+ readonly segments: readonly ContextWindowSegmentData[];
223
+ };
202
224
  /**
203
225
  * F3 — per-turn token usage + compaction context. Emitted once per turn at
204
226
  * the end of the stream; the SDK renders the quiet context meter from this.
205
227
  * `historyChars / autoCompactThresholdChars` gives compaction proximity;
206
- * `threshold === 0` means no auto-compact is configured — hide the meter.
228
+ * `threshold === 0` means no auto-compact is configured — hide the meter
229
+ * unless a `contextWindow` report is present (the panel stands on its own).
230
+ * The optional fields are absent on rows persisted before they existed.
207
231
  */
208
232
  export type UsageData = {
209
233
  readonly inputTokens: number;
210
234
  readonly outputTokens: number;
211
235
  readonly totalTokens: number;
236
+ /** BEL-206 — the turn's prompt-cache reads/writes. */
237
+ readonly cacheReadInputTokens?: number | undefined;
238
+ readonly cacheWriteInputTokens?: number | undefined;
212
239
  readonly historyChars: number;
213
240
  readonly autoCompactThresholdChars: number;
241
+ /** The detailed context-window breakdown (own-loop runtimes only). */
242
+ readonly contextWindow?: ContextWindowData | undefined;
214
243
  };
215
244
  /**
216
245
  * Single source of truth for Belong's custom data parts. The record
@@ -1,4 +1,4 @@
1
- import { BelongUIMessage } from './belong-data-parts.ts';
1
+ import { BelongUIMessage, ContextWindowData } from './belong-data-parts.ts';
2
2
  export type SessionUsageSummary = {
3
3
  /** Sum of all per-turn input tokens. */
4
4
  readonly totalInputTokens: number;
@@ -6,6 +6,9 @@ export type SessionUsageSummary = {
6
6
  readonly totalOutputTokens: number;
7
7
  /** Sum of all per-turn combined tokens. */
8
8
  readonly totalTokens: number;
9
+ /** BEL-206 — sums of the per-turn prompt-cache reads/writes (0 when unreported). */
10
+ readonly totalCacheReadInputTokens: number;
11
+ readonly totalCacheWriteInputTokens: number;
9
12
  /** How many turns have reported usage. */
10
13
  readonly turns: number;
11
14
  /**
@@ -16,8 +19,16 @@ export type SessionUsageSummary = {
16
19
  readonly historyChars: number;
17
20
  /**
18
21
  * Auto-compact threshold in chars (last-wins). 0 means auto-compact is
19
- * not configured — the meter must be hidden when this is 0.
22
+ * not configured — the legacy meter is hidden when this is 0 AND no
23
+ * context-window report is present.
20
24
  */
21
25
  readonly autoCompactThresholdChars: number;
26
+ /**
27
+ * The most recent turn's context-window breakdown (last-wins — the
28
+ * current context IS the latest turn's context). Null when no turn has
29
+ * reported one (older sessions, or the claude-agent-sdk runtime); the
30
+ * panel then falls back to the session-usage view.
31
+ */
32
+ readonly contextWindow: ContextWindowData | null;
22
33
  };
23
34
  export declare const selectSessionUsage: (messages: readonly BelongUIMessage[]) => SessionUsageSummary | null;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@belonguniverseai/react-sdk",
3
- "version": "0.6.9",
3
+ "version": "0.6.11",
4
4
  "description": "Belong — embeddable React AI assistant dock. Mount <BelongWidget> in your app tree with getToken dependency-injection auth.",
5
5
  "license": "UNLICENSED",
6
6
  "type": "module",