@belonguniverseai/react-sdk 0.4.1 → 0.4.2

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 (51) hide show
  1. package/dist/api/client.d.ts +57 -0
  2. package/dist/component/{arc-Du1-HUt0.js → arc-COH48Rtu.js} +2 -2
  3. package/dist/component/{architectureDiagram-3BPJPVTR-NTFoFNN-.js → architectureDiagram-3BPJPVTR-B5qmE5k5.js} +3 -3
  4. package/dist/component/{blockDiagram-GPEHLZMM-9LBL4EUV.js → blockDiagram-GPEHLZMM-lkovkWkX.js} +4 -4
  5. package/dist/component/{c4Diagram-AAUBKEIU-C1enIoRg.js → c4Diagram-AAUBKEIU-CaWDjxTr.js} +3 -3
  6. package/dist/component/{channel-CNnOkAN_.js → channel-DNnfyuhY.js} +2 -2
  7. package/dist/component/{chunk-2J33WTMH-X2Iy3mMD.js → chunk-2J33WTMH-I7HgfCPn.js} +2 -2
  8. package/dist/component/{chunk-4BX2VUAB-BLlcE09Q.js → chunk-4BX2VUAB-CZBTp8pg.js} +2 -2
  9. package/dist/component/{chunk-55IACEB6-23v_td5T.js → chunk-55IACEB6-C-RnqcTj.js} +2 -2
  10. package/dist/component/{chunk-727SXJPM-BC2kAa1t.js → chunk-727SXJPM-BFV7YyWV.js} +6 -6
  11. package/dist/component/{chunk-AQP2D5EJ-CsRFVdwF.js → chunk-AQP2D5EJ-BDVikNJT.js} +4 -4
  12. package/dist/component/{chunk-FMBD7UC4-CWrggihb.js → chunk-FMBD7UC4-C864-npb.js} +2 -2
  13. package/dist/component/{chunk-ND2GUHAM-Bj78QMsn.js → chunk-ND2GUHAM-DuitYR9A.js} +2 -2
  14. package/dist/component/{chunk-QZHKN3VN-CS_FAlLS.js → chunk-QZHKN3VN-B9uI1TYV.js} +2 -2
  15. package/dist/component/{classDiagram-4FO5ZUOK-ci84KOU1.js → classDiagram-4FO5ZUOK-BUdCEjaj.js} +3 -3
  16. package/dist/component/{classDiagram-v2-Q7XG4LA2-ci84KOU1.js → classDiagram-v2-Q7XG4LA2-BUdCEjaj.js} +3 -3
  17. package/dist/component/{cose-bilkent-S5V4N54A-QLIj0pt2.js → cose-bilkent-S5V4N54A-Dgk__ohs.js} +2 -2
  18. package/dist/component/{dagre-BM42HDAG-D32wP-VH.js → dagre-BM42HDAG-DGHFHFPf.js} +2 -2
  19. package/dist/component/{diagram-2AECGRRQ-Dn47q_hT.js → diagram-2AECGRRQ-DvGSzrwW.js} +3 -3
  20. package/dist/component/{diagram-5GNKFQAL-Df7a_ICg.js → diagram-5GNKFQAL-XebuIyjn.js} +4 -4
  21. package/dist/component/{diagram-KO2AKTUF-CNcoKufc.js → diagram-KO2AKTUF-slUL6XEO.js} +3 -3
  22. package/dist/component/{diagram-LMA3HP47-Dq8j6XNs.js → diagram-LMA3HP47-BEPY8GOZ.js} +3 -3
  23. package/dist/component/{diagram-OG6HWLK6-CZ1WglbZ.js → diagram-OG6HWLK6-DHI_0aIk.js} +4 -4
  24. package/dist/component/{erDiagram-TEJ5UH35-CDlHARAu.js → erDiagram-TEJ5UH35-D-6DbJr-.js} +5 -5
  25. package/dist/component/{flowDiagram-I6XJVG4X-Cw1mKy8X.js → flowDiagram-I6XJVG4X-Cw87OG_x.js} +7 -7
  26. package/dist/component/{ganttDiagram-6RSMTGT7-B3FUForj.js → ganttDiagram-6RSMTGT7-B47s5HUB.js} +3 -3
  27. package/dist/component/{gitGraphDiagram-PVQCEYII-BgHuuQ27.js → gitGraphDiagram-PVQCEYII-DqFW3uiq.js} +4 -4
  28. package/dist/component/{highlighted-body-OFNGDK62-BTv_Fxf3.js → highlighted-body-OFNGDK62-CBU3EdTE.js} +2 -2
  29. package/dist/component/index.js +1 -1
  30. package/dist/component/{infoDiagram-5YYISTIA-DE9i_OcK.js → infoDiagram-5YYISTIA-_0W78xb_.js} +2 -2
  31. package/dist/component/{ishikawaDiagram-YF4QCWOH-BDe88Hz2.js → ishikawaDiagram-YF4QCWOH-CvybNkGE.js} +2 -2
  32. package/dist/component/{journeyDiagram-JHISSGLW-D3t45UC1.js → journeyDiagram-JHISSGLW-DgLrQs9G.js} +5 -5
  33. package/dist/component/{kanban-definition-UN3LZRKU-DfFJIuhU.js → kanban-definition-UN3LZRKU-ReYnw5Xl.js} +3 -3
  34. package/dist/component/{linear-AXxuun7R.js → linear-Cih5KQ00.js} +2 -2
  35. package/dist/component/{mermaid-GHXKKRXX-D7NVqIBP.js → mermaid-GHXKKRXX-B6ix-Z04.js} +19909 -19818
  36. package/dist/component/{mindmap-definition-RKZ34NQL-cTac4kYU.js → mindmap-definition-RKZ34NQL-hRhkTdF6.js} +4 -4
  37. package/dist/component/{pieDiagram-4H26LBE5-B1SubLQb.js → pieDiagram-4H26LBE5-DAAEUZCY.js} +4 -4
  38. package/dist/component/{quadrantDiagram-W4KKPZXB-CzyBW8Cr.js → quadrantDiagram-W4KKPZXB-Benxdf_G.js} +3 -3
  39. package/dist/component/{requirementDiagram-4Y6WPE33-DgS33NcX.js → requirementDiagram-4Y6WPE33-BxvkbDYP.js} +4 -4
  40. package/dist/component/{sankeyDiagram-5OEKKPKP-Cp4o_akq.js → sankeyDiagram-5OEKKPKP-RPwwVwu3.js} +2 -2
  41. package/dist/component/{sequenceDiagram-3UESZ5HK-2gf91-2b.js → sequenceDiagram-3UESZ5HK-C-prnAtS.js} +4 -4
  42. package/dist/component/{stateDiagram-AJRCARHV-BByZezJw.js → stateDiagram-AJRCARHV-BEIQAx9e.js} +3 -3
  43. package/dist/component/{stateDiagram-v2-BHNVJYJU-B-IObShO.js → stateDiagram-v2-BHNVJYJU-BD5dkY8l.js} +3 -3
  44. package/dist/component/{timeline-definition-PNZ67QCA-D_2NG1sj.js → timeline-definition-PNZ67QCA-DQJPMkfL.js} +3 -3
  45. package/dist/component/{vennDiagram-CIIHVFJN-BjrQUaEs.js → vennDiagram-CIIHVFJN-CreOqXMc.js} +2 -2
  46. package/dist/component/{wardleyDiagram-YWT4CUSO-DYcvfAeQ.js → wardleyDiagram-YWT4CUSO--dbQqySn.js} +3 -3
  47. package/dist/component/{xychartDiagram-2RQKCTM6-CtLaJFtQ.js → xychartDiagram-2RQKCTM6-BOSkmQiX.js} +3 -3
  48. package/dist/components/embed/rail-flags.d.ts +21 -12
  49. package/dist/embed/use-workspace-file-download.d.ts +10 -2
  50. package/dist/stream/preview-panel-store.d.ts +8 -0
  51. package/package.json +1 -1
@@ -1,6 +1,6 @@
1
- import { g as oe } from "./chunk-55IACEB6-23v_td5T.js";
2
- import { s as ae } from "./chunk-2J33WTMH-X2Iy3mMD.js";
3
- import { _ as l, l as C, p as ce, r as le, G as he, K as G, c as B, i as F, b6 as de, af as ge, ag as ue, ah as pe } from "./mermaid-GHXKKRXX-D7NVqIBP.js";
1
+ import { g as oe } from "./chunk-55IACEB6-C-RnqcTj.js";
2
+ import { s as ae } from "./chunk-2J33WTMH-I7HgfCPn.js";
3
+ import { _ as l, l as C, p as ce, r as le, G as he, K as G, c as B, i as F, b6 as de, af as ge, ag as ue, ah as pe } from "./mermaid-GHXKKRXX-B6ix-Z04.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-RKZ34NQL-cTac4kYU.js.map
833
+ //# sourceMappingURL=mindmap-definition-RKZ34NQL-hRhkTdF6.js.map
@@ -1,7 +1,7 @@
1
- import { a0 as S, S as R, b5 as J, g as Q, s as Y, a as tt, b as et, t as at, q as nt, _ as g, l as W, c as rt, I as it, N as st, a7 as lt, e as ot, B as ct, K as ut } from "./mermaid-GHXKKRXX-D7NVqIBP.js";
2
- import { p as gt } from "./chunk-4BX2VUAB-BLlcE09Q.js";
1
+ import { a0 as S, S as R, b5 as J, g as Q, s as Y, a as tt, b as et, t as at, q as nt, _ as g, l as W, c as rt, I as it, N as st, a7 as lt, e as ot, B as ct, K as ut } from "./mermaid-GHXKKRXX-B6ix-Z04.js";
2
+ import { p as gt } from "./chunk-4BX2VUAB-CZBTp8pg.js";
3
3
  import { p as dt } from "./wardley-L42UT6IY-HA1eSIS_.js";
4
- import { d as P } from "./arc-Du1-HUt0.js";
4
+ import { d as P } from "./arc-COH48Rtu.js";
5
5
  import { o as pt } from "./ordinal-D0x7izaa.js";
6
6
  globalThis.process = globalThis.process || { env: {} };
7
7
  globalThis.global = globalThis.global || globalThis;
@@ -163,4 +163,4 @@ var vt = ut.pie, z = {
163
163
  export {
164
164
  Lt as diagram
165
165
  };
166
- //# sourceMappingURL=pieDiagram-4H26LBE5-B1SubLQb.js.map
166
+ //# sourceMappingURL=pieDiagram-4H26LBE5-DAAEUZCY.js.map
@@ -1,5 +1,5 @@
1
- import { s as Se, g as _e, t as ee, q as Ae, a as ke, b as Fe, _ as r, c as Et, l as qt, d as vt, e as Pe, B as ve, K as z, i as Ce, a4 as Le } from "./mermaid-GHXKKRXX-D7NVqIBP.js";
2
- import { l as te } from "./linear-AXxuun7R.js";
1
+ import { s as Se, g as _e, t as ee, q as Ae, a as ke, b as Fe, _ as r, c as Et, l as qt, d as vt, e as Pe, B as ve, K as z, i as Ce, a4 as Le } from "./mermaid-GHXKKRXX-B6ix-Z04.js";
2
+ import { l as te } from "./linear-Cih5KQ00.js";
3
3
  globalThis.process = globalThis.process || { env: {} };
4
4
  globalThis.global = globalThis.global || globalThis;
5
5
  var Ct = (function() {
@@ -1030,4 +1030,4 @@ var Ve = /* @__PURE__ */ r(function() {
1030
1030
  export {
1031
1031
  We as diagram
1032
1032
  };
1033
- //# sourceMappingURL=quadrantDiagram-W4KKPZXB-CzyBW8Cr.js.map
1033
+ //# sourceMappingURL=quadrantDiagram-W4KKPZXB-Benxdf_G.js.map
@@ -1,6 +1,6 @@
1
- import { g as Ge } from "./chunk-55IACEB6-23v_td5T.js";
2
- import { s as ze } from "./chunk-2J33WTMH-X2Iy3mMD.js";
3
- import { _ as h, G as Ye, b as Xe, a as Je, s as Ze, g as et, q as tt, t as st, c as ke, l as Ne, B as it, F as rt, p as nt, r as at, u as lt } from "./mermaid-GHXKKRXX-D7NVqIBP.js";
1
+ import { g as Ge } from "./chunk-55IACEB6-C-RnqcTj.js";
2
+ import { s as ze } from "./chunk-2J33WTMH-I7HgfCPn.js";
3
+ import { _ as h, G as Ye, b as Xe, a as Je, s as Ze, g as et, q as tt, t as st, c as ke, l as Ne, B as it, F as rt, p as nt, r as at, u as lt } from "./mermaid-GHXKKRXX-B6ix-Z04.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-4Y6WPE33-DgS33NcX.js.map
888
+ //# sourceMappingURL=requirementDiagram-4Y6WPE33-BxvkbDYP.js.map
@@ -1,4 +1,4 @@
1
- import { q as kt, t as mt, s as xt, g as _t, b as vt, a as bt, _ as y, c as ot, C as St, d as G, ai as wt, B as Lt, k as Et } from "./mermaid-GHXKKRXX-D7NVqIBP.js";
1
+ import { q as kt, t as mt, s as xt, g as _t, b as vt, a as bt, _ as y, c as ot, C as St, d as G, ai as wt, B as Lt, k as Et } from "./mermaid-GHXKKRXX-B6ix-Z04.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-5OEKKPKP-Cp4o_akq.js.map
862
+ //# sourceMappingURL=sankeyDiagram-5OEKKPKP-RPwwVwu3.js.map
@@ -1,6 +1,6 @@
1
- import { _ as g, o as tr, c as $, d as Mt, l as at, j as Ce, e as er, f as rr, k as P, b as ke, s as ar, q as sr, a as ir, g as nr, t as or, v as cr, J as lr, B as hr, i as Bt, u as Z, a5 as Q, a6 as wt, a7 as Me, a8 as dr, G as Yt, a9 as Tr, aa as Be } from "./mermaid-GHXKKRXX-D7NVqIBP.js";
2
- import { a as pr, b as ee, g as dt, d as Er, e as re, f as ae } from "./chunk-ND2GUHAM-Bj78QMsn.js";
3
- import { I as ur } from "./chunk-QZHKN3VN-CS_FAlLS.js";
1
+ import { _ as g, o as tr, c as $, d as Mt, l as at, j as Ce, e as er, f as rr, k as P, b as ke, s as ar, q as sr, a as ir, g as nr, t as or, v as cr, J as lr, B as hr, i as Bt, u as Z, a5 as Q, a6 as wt, a7 as Me, a8 as dr, G as Yt, a9 as Tr, aa as Be } from "./mermaid-GHXKKRXX-B6ix-Z04.js";
2
+ import { a as pr, b as ee, g as dt, d as Er, e as re, f as ae } from "./chunk-ND2GUHAM-DuitYR9A.js";
3
+ import { I as ur } from "./chunk-QZHKN3VN-B9uI1TYV.js";
4
4
  globalThis.process = globalThis.process || { env: {} };
5
5
  globalThis.global = globalThis.global || globalThis;
6
6
  var $t = (function() {
@@ -2894,4 +2894,4 @@ var ra = /* @__PURE__ */ g(async function(e, t, a) {
2894
2894
  export {
2895
2895
  Ta as diagram
2896
2896
  };
2897
- //# sourceMappingURL=sequenceDiagram-3UESZ5HK-2gf91-2b.js.map
2897
+ //# sourceMappingURL=sequenceDiagram-3UESZ5HK-C-prnAtS.js.map
@@ -1,5 +1,5 @@
1
- import { s as R, a as W, S as N } from "./chunk-AQP2D5EJ-CsRFVdwF.js";
2
- import { _ as f, c as t, d as M, l as S, e as P, k as z, ac as _, ad as U, a9 as C, u as F } from "./mermaid-GHXKKRXX-D7NVqIBP.js";
1
+ import { s as R, a as W, S as N } from "./chunk-AQP2D5EJ-BDVikNJT.js";
2
+ import { _ as f, c as t, d as M, l as S, e as P, k as z, ac as _, ad as U, a9 as C, u as F } from "./mermaid-GHXKKRXX-B6ix-Z04.js";
3
3
  import { G as O } from "./graph-BZLHvygk.js";
4
4
  import { l as J } from "./layout-Bu6nRdWm.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-AJRCARHV-BByZezJw.js.map
266
+ //# sourceMappingURL=stateDiagram-AJRCARHV-BEIQAx9e.js.map
@@ -1,5 +1,5 @@
1
- import { s as e, b as r, a as s, S as t } from "./chunk-AQP2D5EJ-CsRFVdwF.js";
2
- import { _ as l } from "./mermaid-GHXKKRXX-D7NVqIBP.js";
1
+ import { s as e, b as r, a as s, S as t } from "./chunk-AQP2D5EJ-BDVikNJT.js";
2
+ import { _ as l } from "./mermaid-GHXKKRXX-B6ix-Z04.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-BHNVJYJU-B-IObShO.js.map
19
+ //# sourceMappingURL=stateDiagram-v2-BHNVJYJU-BD5dkY8l.js.map
@@ -1,5 +1,5 @@
1
- import { _ as o, G as gt, af as Rt, ag as Ct, ah as Wt, c as pt, l as E, N as Pt, a7 as Bt, ai as ft, d as U, F as Vt, aj as Ft, B as zt } from "./mermaid-GHXKKRXX-D7NVqIBP.js";
2
- import { d as ot } from "./arc-Du1-HUt0.js";
1
+ import { _ as o, G as gt, af as Rt, ag as Ct, ah as Wt, c as pt, l as E, N as Pt, a7 as Bt, ai as ft, d as U, F as Vt, aj as Ft, B as zt } from "./mermaid-GHXKKRXX-B6ix-Z04.js";
2
+ import { d as ot } from "./arc-COH48Rtu.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-PNZ67QCA-D_2NG1sj.js.map
1058
+ //# sourceMappingURL=timeline-definition-PNZ67QCA-DQJPMkfL.js.map
@@ -1,4 +1,4 @@
1
- import { aX as Gt, s as Wt, g as Kt, t as Ht, q as Xt, a as Yt, b as Zt, _ as w, G as wt, N as Jt, d as ot, ao as Qt, af as $t, ag as te, ah as ee, e as ne, B as se, I as ie, K as oe } from "./mermaid-GHXKKRXX-D7NVqIBP.js";
1
+ import { aX as Gt, s as Wt, g as Kt, t as Ht, q as Xt, a as Yt, b as Zt, _ as w, G as wt, N as Jt, d as ot, ao as Qt, af as $t, ag as te, ah as ee, e as ne, B as se, I as ie, K as oe } from "./mermaid-GHXKKRXX-B6ix-Z04.js";
2
2
  globalThis.process = globalThis.process || { env: {} };
3
3
  globalThis.global = globalThis.global || globalThis;
4
4
  const kt = (t, n) => Gt(t, "a", -n), _t = 1e-10;
@@ -1557,4 +1557,4 @@ var qe = { draw: Ve }, Ge = {
1557
1557
  export {
1558
1558
  Ge as diagram
1559
1559
  };
1560
- //# sourceMappingURL=vennDiagram-CIIHVFJN-BjrQUaEs.js.map
1560
+ //# sourceMappingURL=vennDiagram-CIIHVFJN-CreOqXMc.js.map
@@ -1,5 +1,5 @@
1
- import { s as St, g as Mt, t as Nt, q as Tt, a as zt, b as Lt, _ as u, a4 as At, G as Xt, I as U, l as K, N as Et, e as Yt, B as It, c as j } from "./mermaid-GHXKKRXX-D7NVqIBP.js";
2
- import { p as Bt } from "./chunk-4BX2VUAB-BLlcE09Q.js";
1
+ import { s as St, g as Mt, t as Nt, q as Tt, a as zt, b as Lt, _ as u, a4 as At, G as Xt, I as U, l as K, N as Et, e as Yt, B as It, c as j } from "./mermaid-GHXKKRXX-B6ix-Z04.js";
2
+ import { p as Bt } from "./chunk-4BX2VUAB-CZBTp8pg.js";
3
3
  import { p as Ft } from "./wardley-L42UT6IY-HA1eSIS_.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-YWT4CUSO-DYcvfAeQ.js.map
681
+ //# sourceMappingURL=wardleyDiagram-YWT4CUSO--dbQqySn.js.map
@@ -1,7 +1,7 @@
1
- import { s as ei, g as si, t as Lt, q as ni, a as ai, b as oi, _ as a, l as Et, N as ri, e as hi, B as li, G as dt, i as ci, I as It, K as ui, a4 as gi, ap as xi, ac as Rt } from "./mermaid-GHXKKRXX-D7NVqIBP.js";
1
+ import { s as ei, g as si, t as Lt, q as ni, a as ai, b as oi, _ as a, l as Et, N as ri, e as hi, B as li, G as dt, i as ci, I as It, K as ui, a4 as gi, ap as xi, ac as Rt } from "./mermaid-GHXKKRXX-B6ix-Z04.js";
2
2
  import { i as di } from "./init-BOu0eQYQ.js";
3
3
  import { o as fi } from "./ordinal-D0x7izaa.js";
4
- import { l as Dt } from "./linear-AXxuun7R.js";
4
+ import { l as Dt } from "./linear-Cih5KQ00.js";
5
5
  globalThis.process = globalThis.process || { env: {} };
6
6
  globalThis.global = globalThis.global || globalThis;
7
7
  function pi(t, i, e) {
@@ -1372,4 +1372,4 @@ var Ti = /* @__PURE__ */ a(function() {
1372
1372
  export {
1373
1373
  Mi as diagram
1374
1374
  };
1375
- //# sourceMappingURL=xychartDiagram-2RQKCTM6-CtLaJFtQ.js.map
1375
+ //# sourceMappingURL=xychartDiagram-2RQKCTM6-BOSkmQiX.js.map
@@ -8,16 +8,25 @@
8
8
  * EmbedRail.tsx a clean component-only Fast Refresh boundary.
9
9
  */
10
10
  /**
11
- * Multi-agent rail (parallel chat "agent lines" spawned from the "+" button,
12
- * capped at MAX_AGENT_LINES) is DEACTIVATED switching between the spawned
13
- * agents was buggy. While off:
14
- * - the "+" spawn button is not rendered (no new chat agent lines can be
15
- * started from the rail), so a plain chat session stays on line 1 and the
16
- * rail is the single-chat item exactly as before; and
17
- * - the standalone Chats/history dropdown is restored to the rail (it was
18
- * demoted into the avatar menu when the agent rail landed).
19
- * The underlying agent-line registry + voice multi-agent call board are left
20
- * intact (the rail still renders line chips if a VOICE call opens more than
21
- * one). Flip this to `true` to re-enable the chat spawn UX.
11
+ * Multi-agent rail parallel chat "agent lines" spawned from the "+" button,
12
+ * capped at MAX_AGENT_LINES, switchable as rail chips.
13
+ *
14
+ * History: shipped in #171, deactivated a day later in #204 after eight
15
+ * defects in two days, most of them session-IDENTITY bugs (a spawn orphaning
16
+ * line 1's own session; the unbound line-1 chip aliasing into another
17
+ * conversation; History duplicating an agent instead of switching to it; line
18
+ * ownership not surviving a reload). Re-enabled deliberately — see the rail
19
+ * regression tests in EmbedRail.test.tsx and the agent-line ownership tests in
20
+ * voice-call-lines, which now cover that class.
21
+ *
22
+ * The rail carries exactly ONE "+", and this flag decides which:
23
+ * - `true` → the SPAWN "+" (rail-agent-spawn) opens a parallel agent line.
24
+ * - `false` → the NEW-CHAT "+" (rail-new-chat) starts a fresh conversation
25
+ * on line 1 — the same action as the Chats menu's "New chat", so the dock
26
+ * is never left without a visible way to start a chat.
27
+ * Either way the standalone Chats/history dropdown stays on the rail.
28
+ *
29
+ * This remains the kill switch: flip to `false` to fall back to single-chat
30
+ * without touching anything else.
22
31
  */
23
- export declare const MULTI_AGENT_RAIL_ENABLED = false;
32
+ export declare const MULTI_AGENT_RAIL_ENABLED = true;
@@ -10,8 +10,16 @@
10
10
  * `onError` so each component keeps its own `error` state (also used by its
11
11
  * `load()` flow).
12
12
  */
13
- /** `path` (+ the current workspace scope) as a workspace-file query string. */
14
- export declare const workspaceFileQuery: (path: string) => string;
13
+ /**
14
+ * `path` (+ a workspace scope) as a workspace-file query string.
15
+ *
16
+ * Callers rendering a LIVE scoped listing (the file tree) omit the scope and
17
+ * get the current one. Callers holding a path captured earlier — the preview
18
+ * panel — must pass the workspace that path is relative to, because the live
19
+ * scope can have moved on (or gone `missing`, which reads as the unscoped
20
+ * root) since the path was captured.
21
+ */
22
+ export declare const workspaceFileQuery: (path: string, workspaceId?: string | null) => string;
15
23
  export declare function useWorkspaceFileDownload(apiBaseUrl: string, onError: (message: string | null) => void): {
16
24
  download: (path: string) => Promise<void>;
17
25
  downloading: string | null;
@@ -21,6 +21,12 @@ export declare const DEFAULT_PREVIEW_PANEL_WIDTH_PX = 480;
21
21
  * What the panel is previewing. A published artifact is fetched by id; a
22
22
  * workspace file by its workspace-relative path. Both resolve to an auth'd
23
23
  * bytes URL in `PreviewPanel`.
24
+ *
25
+ * A workspace target PINS the workspace it was opened from. The path is
26
+ * relative to `ws-<id>/`, so it is only meaningful together with that id —
27
+ * reading the live scope later instead would silently repoint an open preview
28
+ * at a different workspace's file (or, when the scope goes `missing`, at the
29
+ * unscoped root) the next time the panel re-renders.
24
30
  */
25
31
  export type PreviewTarget = {
26
32
  readonly kind: "artifact";
@@ -32,6 +38,8 @@ export type PreviewTarget = {
32
38
  readonly path: string;
33
39
  readonly title: string;
34
40
  readonly mimeType: string;
41
+ /** The workspace this path belongs to; null when the host configures none. */
42
+ readonly workspaceExternalId: string | null;
35
43
  };
36
44
  export type PreviewPanelState = {
37
45
  readonly open: boolean;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@belonguniverseai/react-sdk",
3
- "version": "0.4.1",
3
+ "version": "0.4.2",
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",