@belonguniverseai/react-sdk 0.5.0 → 0.6.0

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 (57) hide show
  1. package/dist/api/client.d.ts +93 -2
  2. package/dist/api/skills.d.ts +6 -1
  3. package/dist/component/{arc-CtyXH_sw.js → arc-DpA4gw3l.js} +2 -2
  4. package/dist/component/{architectureDiagram-3BPJPVTR-C6NZifN6.js → architectureDiagram-3BPJPVTR-C8WjH-Q1.js} +3 -3
  5. package/dist/component/{blockDiagram-GPEHLZMM-_-K66LP4.js → blockDiagram-GPEHLZMM-O9IURu7q.js} +4 -4
  6. package/dist/component/{c4Diagram-AAUBKEIU-DL-K-sZW.js → c4Diagram-AAUBKEIU-B4cFy6te.js} +3 -3
  7. package/dist/component/{channel-scCA9sxi.js → channel-7qPdE580.js} +2 -2
  8. package/dist/component/{chunk-2J33WTMH-Dkd9OyM1.js → chunk-2J33WTMH-CUyqMMUN.js} +2 -2
  9. package/dist/component/{chunk-4BX2VUAB-JbEXcQ3q.js → chunk-4BX2VUAB-4MjzMD47.js} +2 -2
  10. package/dist/component/{chunk-55IACEB6-Dg96dHvQ.js → chunk-55IACEB6-BOiOLlJY.js} +2 -2
  11. package/dist/component/{chunk-727SXJPM-Cu3-awqi.js → chunk-727SXJPM-D7rQvYjL.js} +6 -6
  12. package/dist/component/{chunk-AQP2D5EJ-DLX62MPh.js → chunk-AQP2D5EJ-B4yIZLgM.js} +4 -4
  13. package/dist/component/{chunk-FMBD7UC4-BxU0KQRK.js → chunk-FMBD7UC4-CHC657o0.js} +2 -2
  14. package/dist/component/{chunk-ND2GUHAM-CEQj3so6.js → chunk-ND2GUHAM-BAq6BoPv.js} +2 -2
  15. package/dist/component/{chunk-QZHKN3VN-BWgwT04-.js → chunk-QZHKN3VN-DSE2KpkL.js} +2 -2
  16. package/dist/component/{classDiagram-4FO5ZUOK-Ton6m2pw.js → classDiagram-4FO5ZUOK-Dp6GpqVA.js} +3 -3
  17. package/dist/component/{classDiagram-v2-Q7XG4LA2-Ton6m2pw.js → classDiagram-v2-Q7XG4LA2-Dp6GpqVA.js} +3 -3
  18. package/dist/component/{cose-bilkent-S5V4N54A-Dja09hp6.js → cose-bilkent-S5V4N54A-D7qy0jl5.js} +2 -2
  19. package/dist/component/{dagre-BM42HDAG-Ch6fODe-.js → dagre-BM42HDAG-Bp1xKCuc.js} +2 -2
  20. package/dist/component/{diagram-2AECGRRQ-DdDr6tHi.js → diagram-2AECGRRQ-BgnTJHhy.js} +3 -3
  21. package/dist/component/{diagram-5GNKFQAL-BT2qfjUH.js → diagram-5GNKFQAL-D2Sf6fvv.js} +4 -4
  22. package/dist/component/{diagram-KO2AKTUF-UcWrBVNK.js → diagram-KO2AKTUF-B6q2Givz.js} +3 -3
  23. package/dist/component/{diagram-LMA3HP47-D-BCOeIt.js → diagram-LMA3HP47-Dd-PZ9QO.js} +3 -3
  24. package/dist/component/{diagram-OG6HWLK6-CJDJgfQO.js → diagram-OG6HWLK6-v65-inn8.js} +4 -4
  25. package/dist/component/{erDiagram-TEJ5UH35-kY5sdKqg.js → erDiagram-TEJ5UH35-s5ngcfah.js} +5 -5
  26. package/dist/component/{flowDiagram-I6XJVG4X-9OddgRiE.js → flowDiagram-I6XJVG4X-C-3l7ZN2.js} +7 -7
  27. package/dist/component/{ganttDiagram-6RSMTGT7-Dc9t8llA.js → ganttDiagram-6RSMTGT7-AFajly3C.js} +3 -3
  28. package/dist/component/{gitGraphDiagram-PVQCEYII-DYjn9Ff5.js → gitGraphDiagram-PVQCEYII-DLcn7CA-.js} +4 -4
  29. package/dist/component/{highlighted-body-OFNGDK62-D_TDzrFY.js → highlighted-body-OFNGDK62-C7pDeGQU.js} +2 -2
  30. package/dist/component/index.js +1 -1
  31. package/dist/component/{infoDiagram-5YYISTIA-CBPoKi7E.js → infoDiagram-5YYISTIA-BuR4-KVY.js} +2 -2
  32. package/dist/component/{ishikawaDiagram-YF4QCWOH-C3rChBg5.js → ishikawaDiagram-YF4QCWOH-DlsfzgFK.js} +2 -2
  33. package/dist/component/{journeyDiagram-JHISSGLW-DVTybrGG.js → journeyDiagram-JHISSGLW-D0rpdvR5.js} +5 -5
  34. package/dist/component/{kanban-definition-UN3LZRKU-DNMLC4NQ.js → kanban-definition-UN3LZRKU-Cz0Dixqc.js} +3 -3
  35. package/dist/component/{linear-B_oPUR6_.js → linear-BVVr39mA.js} +2 -2
  36. package/dist/component/{mermaid-GHXKKRXX-CjZr9GWr.js → mermaid-GHXKKRXX-BEhqkLaB.js} +20596 -20411
  37. package/dist/component/{mindmap-definition-RKZ34NQL-CErhrdm3.js → mindmap-definition-RKZ34NQL-wo3l0Jy7.js} +4 -4
  38. package/dist/component/{pieDiagram-4H26LBE5-Cno02n3_.js → pieDiagram-4H26LBE5-TtxT_WMN.js} +4 -4
  39. package/dist/component/{quadrantDiagram-W4KKPZXB-DQV7ytCz.js → quadrantDiagram-W4KKPZXB-DK6ShvdY.js} +3 -3
  40. package/dist/component/{requirementDiagram-4Y6WPE33-DBORDX5u.js → requirementDiagram-4Y6WPE33-Z0IavHMQ.js} +4 -4
  41. package/dist/component/{sankeyDiagram-5OEKKPKP-gNBaVNW1.js → sankeyDiagram-5OEKKPKP-C408nFHk.js} +2 -2
  42. package/dist/component/{sequenceDiagram-3UESZ5HK-BlxJztMa.js → sequenceDiagram-3UESZ5HK-CMFVhmkn.js} +4 -4
  43. package/dist/component/{stateDiagram-AJRCARHV-2ziF_Zes.js → stateDiagram-AJRCARHV-C6Z5V-Yt.js} +3 -3
  44. package/dist/component/{stateDiagram-v2-BHNVJYJU-BWmzKTMS.js → stateDiagram-v2-BHNVJYJU-CztCn1yf.js} +3 -3
  45. package/dist/component/{timeline-definition-PNZ67QCA-OcHhxXWM.js → timeline-definition-PNZ67QCA-D_9a8hKa.js} +3 -3
  46. package/dist/component/{vennDiagram-CIIHVFJN-Fl9VlPVe.js → vennDiagram-CIIHVFJN-HuWQgr4e.js} +2 -2
  47. package/dist/component/{wardleyDiagram-YWT4CUSO-BNHUW0Ex.js → wardleyDiagram-YWT4CUSO-CeUvdi76.js} +3 -3
  48. package/dist/component/{xychartDiagram-2RQKCTM6-Bog3Ddue.js → xychartDiagram-2RQKCTM6-DNmBGn_r.js} +3 -3
  49. package/dist/components/ui/badge.d.ts +1 -1
  50. package/dist/embed/slash-commands.d.ts +24 -7
  51. package/dist/embed/voice/call-roster-store.d.ts +1 -1
  52. package/dist/i18n/messages/en.d.ts +17 -2
  53. package/dist/i18n/messages/surfaces/stream.d.ts +46 -0
  54. package/dist/stream/ai-sdk-part-renderers.d.ts +23 -6
  55. package/dist/stream/belong-chat-transport.d.ts +57 -0
  56. package/dist/stream/belong-data-parts.d.ts +44 -1
  57. package/package.json +1 -1
@@ -1,6 +1,6 @@
1
- import { g as oe } from "./chunk-55IACEB6-Dg96dHvQ.js";
2
- import { s as ae } from "./chunk-2J33WTMH-Dkd9OyM1.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-CjZr9GWr.js";
1
+ import { g as oe } from "./chunk-55IACEB6-BOiOLlJY.js";
2
+ import { s as ae } from "./chunk-2J33WTMH-CUyqMMUN.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-BEhqkLaB.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-CErhrdm3.js.map
833
+ //# sourceMappingURL=mindmap-definition-RKZ34NQL-wo3l0Jy7.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-CjZr9GWr.js";
2
- import { p as gt } from "./chunk-4BX2VUAB-JbEXcQ3q.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-BEhqkLaB.js";
2
+ import { p as gt } from "./chunk-4BX2VUAB-4MjzMD47.js";
3
3
  import { p as dt } from "./wardley-L42UT6IY-HA1eSIS_.js";
4
- import { d as P } from "./arc-CtyXH_sw.js";
4
+ import { d as P } from "./arc-DpA4gw3l.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-Cno02n3_.js.map
166
+ //# sourceMappingURL=pieDiagram-4H26LBE5-TtxT_WMN.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-CjZr9GWr.js";
2
- import { l as te } from "./linear-B_oPUR6_.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-BEhqkLaB.js";
2
+ import { l as te } from "./linear-BVVr39mA.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-DQV7ytCz.js.map
1033
+ //# sourceMappingURL=quadrantDiagram-W4KKPZXB-DK6ShvdY.js.map
@@ -1,6 +1,6 @@
1
- import { g as Ge } from "./chunk-55IACEB6-Dg96dHvQ.js";
2
- import { s as ze } from "./chunk-2J33WTMH-Dkd9OyM1.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-CjZr9GWr.js";
1
+ import { g as Ge } from "./chunk-55IACEB6-BOiOLlJY.js";
2
+ import { s as ze } from "./chunk-2J33WTMH-CUyqMMUN.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-BEhqkLaB.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-DBORDX5u.js.map
888
+ //# sourceMappingURL=requirementDiagram-4Y6WPE33-Z0IavHMQ.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-CjZr9GWr.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-BEhqkLaB.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-gNBaVNW1.js.map
862
+ //# sourceMappingURL=sankeyDiagram-5OEKKPKP-C408nFHk.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-CjZr9GWr.js";
2
- import { a as pr, b as ee, g as dt, d as Er, e as re, f as ae } from "./chunk-ND2GUHAM-CEQj3so6.js";
3
- import { I as ur } from "./chunk-QZHKN3VN-BWgwT04-.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-BEhqkLaB.js";
2
+ import { a as pr, b as ee, g as dt, d as Er, e as re, f as ae } from "./chunk-ND2GUHAM-BAq6BoPv.js";
3
+ import { I as ur } from "./chunk-QZHKN3VN-DSE2KpkL.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-BlxJztMa.js.map
2897
+ //# sourceMappingURL=sequenceDiagram-3UESZ5HK-CMFVhmkn.js.map
@@ -1,5 +1,5 @@
1
- import { s as R, a as W, S as N } from "./chunk-AQP2D5EJ-DLX62MPh.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-CjZr9GWr.js";
1
+ import { s as R, a as W, S as N } from "./chunk-AQP2D5EJ-B4yIZLgM.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-BEhqkLaB.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-2ziF_Zes.js.map
266
+ //# sourceMappingURL=stateDiagram-AJRCARHV-C6Z5V-Yt.js.map
@@ -1,5 +1,5 @@
1
- import { s as e, b as r, a as s, S as t } from "./chunk-AQP2D5EJ-DLX62MPh.js";
2
- import { _ as l } from "./mermaid-GHXKKRXX-CjZr9GWr.js";
1
+ import { s as e, b as r, a as s, S as t } from "./chunk-AQP2D5EJ-B4yIZLgM.js";
2
+ import { _ as l } from "./mermaid-GHXKKRXX-BEhqkLaB.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-BWmzKTMS.js.map
19
+ //# sourceMappingURL=stateDiagram-v2-BHNVJYJU-CztCn1yf.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-CjZr9GWr.js";
2
- import { d as ot } from "./arc-CtyXH_sw.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-BEhqkLaB.js";
2
+ import { d as ot } from "./arc-DpA4gw3l.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-OcHhxXWM.js.map
1058
+ //# sourceMappingURL=timeline-definition-PNZ67QCA-D_9a8hKa.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-CjZr9GWr.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-BEhqkLaB.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-Fl9VlPVe.js.map
1560
+ //# sourceMappingURL=vennDiagram-CIIHVFJN-HuWQgr4e.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-CjZr9GWr.js";
2
- import { p as Bt } from "./chunk-4BX2VUAB-JbEXcQ3q.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-BEhqkLaB.js";
2
+ import { p as Bt } from "./chunk-4BX2VUAB-4MjzMD47.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-BNHUW0Ex.js.map
681
+ //# sourceMappingURL=wardleyDiagram-YWT4CUSO-CeUvdi76.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-CjZr9GWr.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-BEhqkLaB.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-B_oPUR6_.js";
4
+ import { l as Dt } from "./linear-BVVr39mA.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-Bog3Ddue.js.map
1375
+ //# sourceMappingURL=xychartDiagram-2RQKCTM6-DNmBGn_r.js.map
@@ -1,7 +1,7 @@
1
1
  import { VariantProps } from 'class-variance-authority';
2
2
  import * as React from "react";
3
3
  declare const badgeVariants: (props?: ({
4
- variant?: "default" | "link" | "destructive" | "outline" | "secondary" | "ghost" | "notice" | null | undefined;
4
+ variant?: "default" | "link" | "destructive" | "notice" | "outline" | "secondary" | "ghost" | null | undefined;
5
5
  } & import('class-variance-authority/types').ClassProp) | undefined) => string;
6
6
  declare function Badge({ className, variant, asChild, ...props }: React.ComponentProps<"span"> & VariantProps<typeof badgeVariants> & {
7
7
  asChild?: boolean;
@@ -1,12 +1,18 @@
1
1
  import { CommandSummary, SkillSummary } from '../api/skills.ts';
2
- /** The group label workspace-tree commands render under in the slash menu. */
2
+ /** Fallback group label for a workspace command the backend could not
3
+ * attribute to a plugin (flat project commands). Plugin-attributed commands
4
+ * render under their own section instead — see `cmd.group` below. */
3
5
  export declare const COMMAND_GROUP = "Commands";
4
6
  /**
5
7
  * Map a workspace-tree command onto the `SkillSummary` shape the picker
6
- * renders — display only. At submit time a command token is deliberately NOT
7
- * matched by {@link parseSlashSubmission} (commands aren't in the skills
8
- * list), so the draft falls through and posts as RAW text: the worker-side
9
- * Agent SDK parses the leading-slash message against its command registry.
8
+ * renders — display only. A command the backend attributed to a discovered
9
+ * plugin (`cmd.group` set e.g. "sk-data-lab", "implementation-playbook")
10
+ * renders under that plugin's own section; a flat command with no plugin
11
+ * falls back to the generic {@link COMMAND_GROUP}. At submit time a command
12
+ * token is deliberately NOT matched by {@link parseSlashSubmission} (commands
13
+ * aren't in the skills list), so the draft falls through and posts as RAW
14
+ * text: the worker-side Agent SDK parses the leading-slash message against
15
+ * its command registry.
10
16
  */
11
17
  export declare const commandOptions: (commands: readonly CommandSummary[]) => readonly SkillSummary[];
12
18
  /**
@@ -52,7 +58,10 @@ export declare const parseBuiltinCommand: (draft: string) => BuiltinCommand | nu
52
58
  /**
53
59
  * The slash menu's option list: built-ins merged ahead of the skills, ranked
54
60
  * by {@link filterSkills} (prefix matches first; input order — built-ins
55
- * before skills — breaks ties within each bucket).
61
+ * before skills — breaks ties within each bucket), then bucketed into
62
+ * contiguous per-group sections by {@link bucketByGroup} — see that
63
+ * function's comment for why grouping is a required SECOND pass over the
64
+ * ranked list, not something ranking alone gives you for free.
56
65
  *
57
66
  * Built-ins are offered for a token at ANY position (BEL-167). They used to be
58
67
  * withheld from a mid-message token because {@link parseBuiltinCommand} could
@@ -123,5 +132,13 @@ export declare const hoistCommandSubmission: (draft: string, commands: readonly
123
132
  * The argument-taking builtins ROTATE rather than splice — see below.
124
133
  */
125
134
  export declare const hoistBuiltinCommand: (draft: string) => string;
126
- /** Name-prefix matches first, then other name/description substring matches. */
135
+ /**
136
+ * Name-prefix matches first, then other name/description substring matches,
137
+ * then GROUP word-prefix matches (plugin-section search, ≥3 chars — see
138
+ * {@link GROUP_MATCH_MIN_QUERY_LENGTH}): typing "impl", "data", or a plugin's
139
+ * name (e.g. "sk-data-lab") surfaces every entry in that section even when
140
+ * the query hits neither the name nor the description. Ranked last so an
141
+ * entry actually named after the query still takes the top slot — a query
142
+ * that happens to also be a group name doesn't bump a direct name match down.
143
+ */
127
144
  export declare const filterSkills: (skills: readonly SkillSummary[], query: string) => readonly SkillSummary[];
@@ -46,7 +46,7 @@
46
46
  * same rule twice:
47
47
  *
48
48
  * - `titleForRole` falls back to a ROLE-derived phrase ("the main agent" /
49
- * "the data agent" / "the analyst") — never a switchboard
49
+ * "the CLI agent" / "the analyst") — never a switchboard
50
50
  * number. Every voice tool call carries a role (it is the operator's
51
51
  * entire addressing vocabulary — see `voice-call.ts`'s
52
52
  * `resolveRoleLine`), so this fallback is always reachable from a role
@@ -44,6 +44,14 @@ export declare const en: {
44
44
  readonly toolGenericDone: "Finished {{tool}}";
45
45
  readonly toolGenericFailed: "{{tool}} didn't complete";
46
46
  readonly toolGenericDetail: "Used the {{tool}} capability.";
47
+ readonly toolRememberRunning: "Saving a note";
48
+ readonly toolRememberDone: "Saved a note";
49
+ readonly toolRememberFailed: "Couldn't save the note";
50
+ readonly toolRememberDetail: "Saved a note about you for future conversations.";
51
+ readonly toolForgetRunning: "Forgetting a note";
52
+ readonly toolForgetDone: "Forgot a note";
53
+ readonly toolForgetFailed: "Couldn't forget the note";
54
+ readonly toolForgetDetail: "Deleted a saved note about you.";
47
55
  readonly browserSnapshot: "Took a snapshot";
48
56
  readonly browserRead: "Read the page";
49
57
  readonly browserClick: "Clicked an element";
@@ -58,6 +66,13 @@ export declare const en: {
58
66
  readonly executingTasks: "Working on it…";
59
67
  readonly workedSteps_one: "Worked · {{count}} step";
60
68
  readonly workedSteps_other: "Worked · {{count}} steps";
69
+ readonly subagentRunning: "Subagent · {{description}}…";
70
+ readonly subagentDone: "Subagent · {{description}}";
71
+ readonly subagentDoneSteps_one: "Subagent · {{description}} · {{count}} step";
72
+ readonly subagentDoneSteps_other: "Subagent · {{description}} · {{count}} steps";
73
+ readonly subagentFailed: "Subagent · {{description}} · didn't finish";
74
+ readonly subagentTimedOut: "Subagent · {{description}} · ran out of time";
75
+ readonly subagentVia: "via {{name}}";
61
76
  readonly cliAuthStop: {
62
77
  readonly noGrant: "Connect to Simetrik to continue";
63
78
  readonly reconnectFailed: "Couldn't connect to Simetrik";
@@ -505,8 +520,8 @@ export declare const en: {
505
520
  readonly lineLabel: "Agent {{line}}";
506
521
  readonly mainAgentLabel: "Main agent";
507
522
  readonly roleLabelMain: "Main agent";
508
- readonly roleLabelData: "{{product}} data agent";
509
- readonly roleLabelDataGeneric: "Data agent";
523
+ readonly roleLabelCli: "{{product}} CLI agent";
524
+ readonly roleLabelTerminal: "Terminal agent";
510
525
  readonly roleLabelAnalyst: "Analyst";
511
526
  readonly lineNeedsApproval: "Needs your OK";
512
527
  readonly lineWorking: "Working…";
@@ -44,6 +44,14 @@ export declare const streamEn: {
44
44
  readonly toolGenericDone: "Finished {{tool}}";
45
45
  readonly toolGenericFailed: "{{tool}} didn't complete";
46
46
  readonly toolGenericDetail: "Used the {{tool}} capability.";
47
+ readonly toolRememberRunning: "Saving a note";
48
+ readonly toolRememberDone: "Saved a note";
49
+ readonly toolRememberFailed: "Couldn't save the note";
50
+ readonly toolRememberDetail: "Saved a note about you for future conversations.";
51
+ readonly toolForgetRunning: "Forgetting a note";
52
+ readonly toolForgetDone: "Forgot a note";
53
+ readonly toolForgetFailed: "Couldn't forget the note";
54
+ readonly toolForgetDetail: "Deleted a saved note about you.";
47
55
  readonly browserSnapshot: "Took a snapshot";
48
56
  readonly browserRead: "Read the page";
49
57
  readonly browserClick: "Clicked an element";
@@ -58,6 +66,14 @@ export declare const streamEn: {
58
66
  readonly executingTasks: "Working on it…";
59
67
  readonly workedSteps_one: "Worked · {{count}} step";
60
68
  readonly workedSteps_other: "Worked · {{count}} steps";
69
+ readonly subagentRunning: "Subagent · {{description}}…";
70
+ readonly subagentDone: "Subagent · {{description}}";
71
+ readonly subagentDoneSteps_one: "Subagent · {{description}} · {{count}} step";
72
+ readonly subagentDoneSteps_other: "Subagent · {{description}} · {{count}} steps";
73
+ readonly subagentFailed: "Subagent · {{description}} · didn't finish";
74
+ readonly subagentTimedOut: "Subagent · {{description}} · ran out of time";
75
+ /** Attribution chip on an inner tool card. Attribution, not nesting. */
76
+ readonly subagentVia: "via {{name}}";
61
77
  readonly cliAuthStop: {
62
78
  readonly noGrant: "Connect to Simetrik to continue";
63
79
  readonly reconnectFailed: "Couldn't connect to Simetrik";
@@ -109,6 +125,14 @@ export declare const streamEs: {
109
125
  toolGenericDone: string;
110
126
  toolGenericFailed: string;
111
127
  toolGenericDetail: string;
128
+ toolRememberRunning: string;
129
+ toolRememberDone: string;
130
+ toolRememberFailed: string;
131
+ toolRememberDetail: string;
132
+ toolForgetRunning: string;
133
+ toolForgetDone: string;
134
+ toolForgetFailed: string;
135
+ toolForgetDetail: string;
112
136
  browserSnapshot: string;
113
137
  browserRead: string;
114
138
  browserClick: string;
@@ -123,6 +147,13 @@ export declare const streamEs: {
123
147
  executingTasks: string;
124
148
  workedSteps_one: string;
125
149
  workedSteps_other: string;
150
+ subagentRunning: string;
151
+ subagentDone: string;
152
+ subagentDoneSteps_one: string;
153
+ subagentDoneSteps_other: string;
154
+ subagentFailed: string;
155
+ subagentTimedOut: string;
156
+ subagentVia: string;
126
157
  cliAuthStop: {
127
158
  noGrant: string;
128
159
  reconnectFailed: string;
@@ -174,6 +205,14 @@ export declare const streamPt: {
174
205
  toolGenericDone: string;
175
206
  toolGenericFailed: string;
176
207
  toolGenericDetail: string;
208
+ toolRememberRunning: string;
209
+ toolRememberDone: string;
210
+ toolRememberFailed: string;
211
+ toolRememberDetail: string;
212
+ toolForgetRunning: string;
213
+ toolForgetDone: string;
214
+ toolForgetFailed: string;
215
+ toolForgetDetail: string;
177
216
  browserSnapshot: string;
178
217
  browserRead: string;
179
218
  browserClick: string;
@@ -188,6 +227,13 @@ export declare const streamPt: {
188
227
  executingTasks: string;
189
228
  workedSteps_one: string;
190
229
  workedSteps_other: string;
230
+ subagentRunning: string;
231
+ subagentDone: string;
232
+ subagentDoneSteps_one: string;
233
+ subagentDoneSteps_other: string;
234
+ subagentFailed: string;
235
+ subagentTimedOut: string;
236
+ subagentVia: string;
191
237
  cliAuthStop: {
192
238
  noGrant: string;
193
239
  reconnectFailed: string;
@@ -1,4 +1,26 @@
1
- import { BelongDataParts, BelongUIMessage, SandboxCommandData, ToolCallData } from './belong-data-parts.ts';
1
+ import { BelongDataParts, BelongUIMessage, SandboxCommandData, SubagentData, ToolCallData } from './belong-data-parts.ts';
2
+ /** One tool call in an activity run, paired (for shell) with its same-id output. */
3
+ export type ToolActivityItem = {
4
+ readonly tool: ToolCallData;
5
+ readonly output: SandboxCommandData | null;
6
+ };
7
+ /**
8
+ * BEL-199 — a delegated subagent in an activity run. It sits INSIDE the one
9
+ * collapsed line beside the tool items, never beside the group.
10
+ */
11
+ export type SubagentActivityItem = {
12
+ readonly kind: "subagent";
13
+ readonly subagentId: string;
14
+ readonly data: SubagentData;
15
+ };
16
+ /**
17
+ * Deliberate shape note: the TOOL variant carries no `kind` discriminant. It is
18
+ * the shape every existing fixture and story already builds, and a subagent item
19
+ * is distinguishable without one (`"kind" in item`) — so this stays a sound
20
+ * union while a required discriminant would have churned ~25 unrelated call
21
+ * sites across four story files for no safety the guard below doesn't give.
22
+ */
23
+ export type ActivityItem = ToolActivityItem | SubagentActivityItem;
2
24
  export declare const ActivityGroup: ({ items, live, }: {
3
25
  readonly items: readonly ActivityItem[];
4
26
  readonly live?: boolean | undefined;
@@ -44,11 +66,6 @@ export type PartRendererProps = {
44
66
  * `reasoning` parts.
45
67
  */
46
68
  export declare const PartRenderer: ({ part, onExecutePlan, historical }: PartRendererProps) => import("react").JSX.Element | null;
47
- /** One tool call in an activity run, paired (for shell) with its same-id output. */
48
- export type ActivityItem = {
49
- readonly tool: ToolCallData;
50
- readonly output: SandboxCommandData | null;
51
- };
52
69
  export type RenderGroup = {
53
70
  readonly kind: "part";
54
71
  readonly part: BelongMessagePart;
@@ -145,16 +145,19 @@ export declare const wireStreamPartSchema: z.ZodDiscriminatedUnion<"type", [z.Zo
145
145
  reason: z.ZodString;
146
146
  state: z.ZodEnum<["pending", "approved", "rejected", "amend_requested", "expired"]>;
147
147
  toolName: z.ZodOptional<z.ZodString>;
148
+ subagentId: z.ZodOptional<z.ZodString>;
148
149
  }, "strip", z.ZodTypeAny, {
149
150
  reason: string;
150
151
  approvalId: string;
151
152
  state: "pending" | "approved" | "rejected" | "amend_requested" | "expired";
152
153
  toolName?: string | undefined;
154
+ subagentId?: string | undefined;
153
155
  }, {
154
156
  reason: string;
155
157
  approvalId: string;
156
158
  state: "pending" | "approved" | "rejected" | "amend_requested" | "expired";
157
159
  toolName?: string | undefined;
160
+ subagentId?: string | undefined;
158
161
  }>;
159
162
  }, "strip", z.ZodTypeAny, {
160
163
  id: string;
@@ -163,6 +166,7 @@ export declare const wireStreamPartSchema: z.ZodDiscriminatedUnion<"type", [z.Zo
163
166
  approvalId: string;
164
167
  state: "pending" | "approved" | "rejected" | "amend_requested" | "expired";
165
168
  toolName?: string | undefined;
169
+ subagentId?: string | undefined;
166
170
  };
167
171
  type: "data-approval-request";
168
172
  }, {
@@ -172,6 +176,7 @@ export declare const wireStreamPartSchema: z.ZodDiscriminatedUnion<"type", [z.Zo
172
176
  approvalId: string;
173
177
  state: "pending" | "approved" | "rejected" | "amend_requested" | "expired";
174
178
  toolName?: string | undefined;
179
+ subagentId?: string | undefined;
175
180
  };
176
181
  type: "data-approval-request";
177
182
  }>, z.ZodObject<{
@@ -195,6 +200,7 @@ export declare const wireStreamPartSchema: z.ZodDiscriminatedUnion<"type", [z.Zo
195
200
  code: string;
196
201
  severity?: "error" | "stop" | undefined;
197
202
  }>>;
203
+ subagentId: z.ZodOptional<z.ZodString>;
198
204
  }, "strip", z.ZodTypeAny, {
199
205
  toolName: string;
200
206
  state: "completed" | "failed" | "started";
@@ -205,6 +211,7 @@ export declare const wireStreamPartSchema: z.ZodDiscriminatedUnion<"type", [z.Zo
205
211
  } | undefined;
206
212
  input?: Record<string, unknown> | undefined;
207
213
  output?: Record<string, unknown> | null | undefined;
214
+ subagentId?: string | undefined;
208
215
  }, {
209
216
  toolName: string;
210
217
  state: "completed" | "failed" | "started";
@@ -215,6 +222,7 @@ export declare const wireStreamPartSchema: z.ZodDiscriminatedUnion<"type", [z.Zo
215
222
  } | undefined;
216
223
  input?: Record<string, unknown> | undefined;
217
224
  output?: Record<string, unknown> | null | undefined;
225
+ subagentId?: string | undefined;
218
226
  }>;
219
227
  }, "strip", z.ZodTypeAny, {
220
228
  id: string;
@@ -228,6 +236,7 @@ export declare const wireStreamPartSchema: z.ZodDiscriminatedUnion<"type", [z.Zo
228
236
  } | undefined;
229
237
  input?: Record<string, unknown> | undefined;
230
238
  output?: Record<string, unknown> | null | undefined;
239
+ subagentId?: string | undefined;
231
240
  };
232
241
  type: "data-tool-call";
233
242
  }, {
@@ -242,8 +251,56 @@ export declare const wireStreamPartSchema: z.ZodDiscriminatedUnion<"type", [z.Zo
242
251
  } | undefined;
243
252
  input?: Record<string, unknown> | undefined;
244
253
  output?: Record<string, unknown> | null | undefined;
254
+ subagentId?: string | undefined;
245
255
  };
246
256
  type: "data-tool-call";
257
+ }>, z.ZodObject<{
258
+ type: z.ZodLiteral<"data-subagent">;
259
+ id: z.ZodString;
260
+ data: z.ZodObject<{
261
+ name: z.ZodString;
262
+ description: z.ZodString;
263
+ state: z.ZodEnum<["running", "finished", "failed"]>;
264
+ stepsUsed: z.ZodOptional<z.ZodNumber>;
265
+ summary: z.ZodOptional<z.ZodString>;
266
+ timedOut: z.ZodOptional<z.ZodBoolean>;
267
+ }, "strip", z.ZodTypeAny, {
268
+ name: string;
269
+ state: "failed" | "running" | "finished";
270
+ description: string;
271
+ stepsUsed?: number | undefined;
272
+ summary?: string | undefined;
273
+ timedOut?: boolean | undefined;
274
+ }, {
275
+ name: string;
276
+ state: "failed" | "running" | "finished";
277
+ description: string;
278
+ stepsUsed?: number | undefined;
279
+ summary?: string | undefined;
280
+ timedOut?: boolean | undefined;
281
+ }>;
282
+ }, "strip", z.ZodTypeAny, {
283
+ id: string;
284
+ data: {
285
+ name: string;
286
+ state: "failed" | "running" | "finished";
287
+ description: string;
288
+ stepsUsed?: number | undefined;
289
+ summary?: string | undefined;
290
+ timedOut?: boolean | undefined;
291
+ };
292
+ type: "data-subagent";
293
+ }, {
294
+ id: string;
295
+ data: {
296
+ name: string;
297
+ state: "failed" | "running" | "finished";
298
+ description: string;
299
+ stepsUsed?: number | undefined;
300
+ summary?: string | undefined;
301
+ timedOut?: boolean | undefined;
302
+ };
303
+ type: "data-subagent";
247
304
  }>, z.ZodObject<{
248
305
  type: z.ZodLiteral<"data-sandbox-command">;
249
306
  id: z.ZodString;
@@ -40,6 +40,12 @@ export type ApprovalRequestData = {
40
40
  * messages; render the generic label when undefined.
41
41
  */
42
42
  readonly toolName?: string | undefined;
43
+ /**
44
+ * BEL-199 attribution — the `data-subagent` part id whose gated call raised this
45
+ * card. The resolution event (`approval_state_changed`) carries no subagentId, so
46
+ * last-write-wins by part id drops it on resolve: pending-card-only by design.
47
+ */
48
+ readonly subagentId?: string | undefined;
43
49
  };
44
50
  /**
45
51
  * BEL-93 — a friendly question widget the agent emits instead of dumping a wall
@@ -105,6 +111,41 @@ export type ToolCallData = {
105
111
  readonly message: string;
106
112
  readonly severity?: ToolErrorSeverity | undefined;
107
113
  } | undefined;
114
+ /**
115
+ * BEL-199 — the `data-subagent` part id this call ran INSIDE. Absent on every
116
+ * main-loop call (and on every part emitted before BEL-199). The expanded
117
+ * activity group chips a matching item with a muted "via <name>" —
118
+ * attribution, not nesting.
119
+ */
120
+ readonly subagentId?: string | undefined;
121
+ };
122
+ /**
123
+ * BEL-199 — one delegated subagent. `running → finished | failed`, one part per
124
+ * subagent, reconciled by id like every other lifecycle part.
125
+ *
126
+ * It renders as an ACTIVITY ITEM: one thin line INSIDE the §42 collapsed
127
+ * activity line, never a card beside it. A failed subagent carries no
128
+ * `ToolErrorSeverity` — deliberately, so it can never reach the collapsed line:
129
+ * the parent agent reads the failure in its tool result and recovers, and
130
+ * surfacing it would read as breakage. Nothing about it is ever red.
131
+ */
132
+ export type SubagentState = "running" | "finished" | "failed";
133
+ export type SubagentData = {
134
+ /** Registry name, e.g. "general-purpose" — the "via <name>" chip's text. */
135
+ readonly name: string;
136
+ /** The model's own task label; this is what the line shows. */
137
+ readonly description: string;
138
+ readonly state: SubagentState;
139
+ readonly stepsUsed?: number | undefined;
140
+ readonly summary?: string | undefined;
141
+ /**
142
+ * The failure was the wall-clock budget, not an error — an optional EXTRA
143
+ * field rather than a fourth `state` (an unknown enum value would make an
144
+ * older dock drop the whole part; an unknown field it ignores). Lets the line
145
+ * say "ran out of time" in the reader's language instead of relaying English
146
+ * server prose.
147
+ */
148
+ readonly timedOut?: boolean | undefined;
108
149
  };
109
150
  export type SandboxCommandData = {
110
151
  readonly state: SandboxCommandState;
@@ -181,6 +222,8 @@ export type BelongDataParts = {
181
222
  "approval-request": ApprovalRequestData;
182
223
  "choice-request": ChoiceRequestData;
183
224
  "tool-call": ToolCallData;
225
+ /** BEL-199 — a delegated subagent, folded into the §42 activity line. */
226
+ subagent: SubagentData;
184
227
  "sandbox-command": SandboxCommandData;
185
228
  "ui-action": UiActionData;
186
229
  "cli-reconnect": CliReconnectData;
@@ -213,5 +256,5 @@ export type WireDataPart<NAME extends keyof BelongDataParts> = {
213
256
  readonly id: string;
214
257
  readonly data: BelongDataParts[NAME];
215
258
  };
216
- export type WireStreamPart = WireTextPart | WireDataPart<"reasoning"> | WireDataPart<"plan"> | WireDataPart<"approval-request"> | WireDataPart<"choice-request"> | WireDataPart<"tool-call"> | WireDataPart<"sandbox-command"> | WireDataPart<"ui-action"> | WireDataPart<"cli-reconnect"> | WireDataPart<"navigation"> | WireDataPart<"artifact"> | WireDataPart<"status"> | WireDataPart<"usage">;
259
+ export type WireStreamPart = WireTextPart | WireDataPart<"reasoning"> | WireDataPart<"plan"> | WireDataPart<"approval-request"> | WireDataPart<"choice-request"> | WireDataPart<"tool-call"> | WireDataPart<"subagent"> | WireDataPart<"sandbox-command"> | WireDataPart<"ui-action"> | WireDataPart<"cli-reconnect"> | WireDataPart<"navigation"> | WireDataPart<"artifact"> | WireDataPart<"status"> | WireDataPart<"usage">;
217
260
  export type WireStreamPartType = WireStreamPart["type"];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@belonguniverseai/react-sdk",
3
- "version": "0.5.0",
3
+ "version": "0.6.0",
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",