@belonguniverseai/react-sdk 0.6.1 → 0.6.3

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 (93) hide show
  1. package/dist/api/agent-grants.d.ts +6 -0
  2. package/dist/api/client.d.ts +88 -27
  3. package/dist/api/task-schedules.d.ts +138 -255
  4. package/dist/app/call-summary.d.ts +30 -0
  5. package/dist/component/abnfDiagram-N423BO3Z-C1O9dfJJ.js +90 -0
  6. package/dist/component/arc-Cpnt_LFj.js +86 -0
  7. package/dist/component/{architectureDiagram-3BPJPVTR-BVwa4QrX.js → architectureDiagram-T3A2C74G-iakL6yUj.js} +1872 -1785
  8. package/dist/component/{blockDiagram-GPEHLZMM-CKNImKL2.js → blockDiagram-VBNYF7ZC-D7t0jIvW.js} +895 -894
  9. package/dist/component/{c4Diagram-AAUBKEIU-BcbjcMPA.js → c4Diagram-5PPSVZJV-CRX1o0CJ.js} +3 -3
  10. package/dist/component/{channel-vtwXLQ1f.js → channel-DnM50Ep0.js} +2 -2
  11. package/dist/component/{chunk-ND2GUHAM-DfbE4oOG.js → chunk-2GRJ4B5K-ChTMjM-v.js} +5 -5
  12. package/dist/component/{chunk-QZHKN3VN-Y8mfHGtB.js → chunk-2Q5K7J3B-F2Rpvtwm.js} +2 -2
  13. package/dist/component/{chunk-AQP2D5EJ-DiS4043D.js → chunk-5RXB4S5H-B1WLx-ex.js} +399 -378
  14. package/dist/component/{chunk-FMBD7UC4-Bu05DXe4.js → chunk-5VM5RSS4-D35VMAuN.js} +2 -2
  15. package/dist/component/chunk-6Q2QTUOP-DGVp_gyk.js +673 -0
  16. package/dist/component/{chunk-727SXJPM-BTqmmKKN.js → chunk-GF5L2VYU-CZOQEv_q.js} +244 -239
  17. package/dist/component/{chunk-4BX2VUAB-DySNI9mv.js → chunk-JWPE2WC7-BbwyDj9g.js} +2 -2
  18. package/dist/component/{chunk-2J33WTMH-C6wmoOIl.js → chunk-KBJHAD2P-B9qL0VLM.js} +2 -2
  19. package/dist/component/chunk-RYQCIY6F-5eaMbXXL.js +316 -0
  20. package/dist/component/{chunk-55IACEB6-C4M2cG_c.js → chunk-XXDRQBXY-XJadTIK5.js} +2 -2
  21. package/dist/component/{classDiagram-4FO5ZUOK-ChO_m1Vd.js → classDiagram-JCYQIIEL-DVaEk7uT.js} +3 -3
  22. package/dist/component/{classDiagram-v2-Q7XG4LA2-ChO_m1Vd.js → classDiagram-v2-OCEON4UE-DVaEk7uT.js} +3 -3
  23. package/dist/component/{cose-bilkent-S5V4N54A-B1DDE26M.js → cose-bilkent-JH36ORCC-DZA30AqI.js} +2 -2
  24. package/dist/component/{wardley-L42UT6IY-HA1eSIS_.js → cynefin-VYW2F7L2-DAyxamLw.js} +9199 -7918
  25. package/dist/component/cynefinDiagram-MW4NZA55-CutZScTQ.js +302 -0
  26. package/dist/component/dagre-VZM6K2ZE-CelPLP8N.js +343 -0
  27. package/dist/component/diagram-7IWD3JNH-Cr5piwKc.js +353 -0
  28. package/dist/component/{diagram-KO2AKTUF-DD3KqnFb.js → diagram-B4RE2ZJO-DgLNdZkh.js} +24 -24
  29. package/dist/component/{diagram-LMA3HP47-D6-oakzD.js → diagram-LBJQPF4R-DxeIMTjN.js} +23 -23
  30. package/dist/component/{diagram-OG6HWLK6-DfxY1IE7.js → diagram-Q27KOJAE-WACyk_gr.js} +197 -197
  31. package/dist/component/diagram-UB23O5K3-DbhVYU5T.js +222 -0
  32. package/dist/component/ebnfDiagram-BXEA7PRR-DoGrYW10.js +112 -0
  33. package/dist/component/{erDiagram-TEJ5UH35-BDV1C23R.js → erDiagram-JOGREHBK-BgewA6fH.js} +142 -131
  34. package/dist/component/{flowDiagram-I6XJVG4X-mEwMtE2U.js → flowDiagram-UKHOOZJN-1YmYJYcE.js} +268 -258
  35. package/dist/component/ganttDiagram-PKOTCBZU-BFAEPYkH.js +2714 -0
  36. package/dist/component/{gitGraphDiagram-PVQCEYII-CIKPPQiC.js → gitGraphDiagram-DS77QQ5N-CSiPuE-l.js} +33 -33
  37. package/dist/component/{graph-BZLHvygk.js → graph-CWpEkm4G.js} +35 -35
  38. package/dist/component/{highlighted-body-OFNGDK62-DpP1DD9S.js → highlighted-body-OFNGDK62-CSJNGt18.js} +2 -2
  39. package/dist/component/index.js +2 -2
  40. package/dist/component/{infoDiagram-5YYISTIA-DKTrvjCm.js → infoDiagram-6WML65LV-CoMVfONe.js} +4 -4
  41. package/dist/component/{ishikawaDiagram-YF4QCWOH-BcuncMnU.js → ishikawaDiagram-WSZJBQD7-B2YEkQ4b.js} +27 -27
  42. package/dist/component/{journeyDiagram-JHISSGLW-BTTgY3Of.js → journeyDiagram-NVQOT4AX-B7b5ZwlF.js} +5 -5
  43. package/dist/component/{kanban-definition-UN3LZRKU-D9K5810E.js → kanban-definition-27J2QSJJ-C9GPAsBR.js} +35 -35
  44. package/dist/component/layout-Br2UjHRU.js +1522 -0
  45. package/dist/component/{linear-DondfmT2.js → linear-Bi0C-9d1.js} +13 -13
  46. package/dist/component/map-CdwokNh2.js +227 -0
  47. package/dist/component/{mermaid-GHXKKRXX-j_0KsvYs.js → mermaid-GHXKKRXX-BaBCeViM.js} +34453 -35613
  48. package/dist/component/{mindmap-definition-RKZ34NQL-DMC3vCUq.js → mindmap-definition-FAOFIHXS-tHIAo7Ms.js} +26 -26
  49. package/dist/component/pegDiagram-VL7TDLO6-Db_7lLRV.js +98 -0
  50. package/dist/component/pieDiagram-7S7Q4E2Y-C4fs4XCK.js +210 -0
  51. package/dist/component/{quadrantDiagram-W4KKPZXB-DMos-d69.js → quadrantDiagram-CIZ2JOQS-Bw7vXO0q.js} +14 -15
  52. package/dist/component/railroadDiagram-AXF67PYL-kY0VoZEg.js +80 -0
  53. package/dist/component/{requirementDiagram-4Y6WPE33-BpgIfnhZ.js → requirementDiagram-LRYGKXZP-BkNtSZm5.js} +15 -15
  54. package/dist/component/{sankeyDiagram-5OEKKPKP-xbJGp8Ms.js → sankeyDiagram-W5VNT64P-BK_C1BYE.js} +2 -2
  55. package/dist/component/{sequenceDiagram-3UESZ5HK-Bnlm4mVO.js → sequenceDiagram-SI44F4Z6-CEmgVZaE.js} +960 -963
  56. package/dist/component/sizeCapture-X5ZJPWSS-J5ZNXT4c.js +49 -0
  57. package/dist/component/{stateDiagram-AJRCARHV-BIooqMYf.js → stateDiagram-OKZ733FA-DrwrNuNs.js} +5 -5
  58. package/dist/component/{stateDiagram-v2-BHNVJYJU-C6WAOCCe.js → stateDiagram-v2-UEYNNEHI-DHD85VTD.js} +3 -3
  59. package/dist/component/swimlanes-SLNWSIFB-FOK5tys1.js +5335 -0
  60. package/dist/component/swimlanesDiagram-ULZ7WXOC-edTvZTge.js +16 -0
  61. package/dist/component/{timeline-definition-PNZ67QCA-lTe5jbcD.js → timeline-definition-Z64GVDOM-Cc4fTsjY.js} +15 -15
  62. package/dist/component/vennDiagram-T6HMQDX7-DYZl8srI.js +1581 -0
  63. package/dist/component/{wardleyDiagram-YWT4CUSO-BSz_UDND.js → wardleyDiagram-T6FBY63Y-BEvv3PjS.js} +15 -15
  64. package/dist/component/{xychartDiagram-2RQKCTM6-BmzhiB0a.js → xychartDiagram-ELKLHX3M-79AgTtk-.js} +464 -418
  65. package/dist/components/embed/BetaBadge.d.ts +12 -0
  66. package/dist/components/embed/DisclaimerGate.d.ts +16 -0
  67. package/dist/components/embed/LegalShortDisclaimer.d.ts +11 -0
  68. package/dist/components/embed/LocalePills.d.ts +18 -0
  69. package/dist/components/embed/WelcomeIntro.d.ts +3 -1
  70. package/dist/embed/brand-marks.d.ts +5 -5
  71. package/dist/embed/copy.d.ts +13 -0
  72. package/dist/embed/legal-disclaimer.d.ts +23 -0
  73. package/dist/embed/presets.d.ts +5 -1
  74. package/dist/embed/task-schedule-store.d.ts +3 -13
  75. package/dist/embed/voice/call-active-marker.d.ts +1 -20
  76. package/dist/embed/voice/line-slots.d.ts +37 -2
  77. package/dist/embed/voice/voice-token.d.ts +2 -12
  78. package/dist/embed/voice-call.d.ts +12 -0
  79. package/dist/i18n/messages/en.d.ts +1 -2
  80. package/dist/lib/web-storage.d.ts +8 -0
  81. package/dist/stream/belong-chat-transport.d.ts +101 -587
  82. package/dist/stream/message-metadata.d.ts +6 -36
  83. package/dist/stream/stream-state-store.d.ts +14 -25
  84. package/dist/types/public.d.ts +3 -0
  85. package/package.json +1 -1
  86. package/dist/component/arc-BziuP1aB.js +0 -86
  87. package/dist/component/dagre-BM42HDAG-BmujNepD.js +0 -448
  88. package/dist/component/diagram-2AECGRRQ-Cbck9DRQ.js +0 -220
  89. package/dist/component/diagram-5GNKFQAL-csRK5clZ.js +0 -126
  90. package/dist/component/ganttDiagram-6RSMTGT7-C_dcTMQX.js +0 -2709
  91. package/dist/component/layout-Bu6nRdWm.js +0 -1731
  92. package/dist/component/pieDiagram-4H26LBE5-DmYi_D3l.js +0 -166
  93. package/dist/component/vennDiagram-CIIHVFJN-5RYbksB1.js +0 -1560
@@ -0,0 +1,30 @@
1
+ /**
2
+ * What the call screen says the agent is DOING — one sentence, resolved from
3
+ * data already on the wire. No new tool, no model round-trip.
4
+ *
5
+ * The cascade degrades in the right direction: the more the agent told us
6
+ * about its own work, the better the line reads, and it never asserts
7
+ * something the run cannot support.
8
+ *
9
+ * Deliberately NOT `planStepLabel()` from stream/plan-progress.ts: that helper
10
+ * renders hardcoded English scaffolding ("Step 2 of 5 — <title>"), which would
11
+ * ship untranslated prose onto a localized surface. The step's own title is the
12
+ * agent's words; the count belongs in the rollup, where it is a number inside a
13
+ * translated string.
14
+ */
15
+ export type CallSummaryRollup = {
16
+ readonly key: string;
17
+ readonly params: Readonly<Record<string, number>>;
18
+ };
19
+ export type CallSummary = {
20
+ /** The sentence under the collapsed header, or null when there is nothing
21
+ * truthful to say. */
22
+ readonly headline: string | null;
23
+ /** i18n key + params for the rollup, or null before any action has run. */
24
+ readonly rollup: CallSummaryRollup | null;
25
+ };
26
+ export declare const callSummary: (input: {
27
+ readonly planStepTitle: string | null;
28
+ readonly dispatchedRequest: string | null;
29
+ readonly actionCount: number;
30
+ }) => CallSummary;
@@ -0,0 +1,90 @@
1
+ import { g as p, r as u, d as n } from "./chunk-6Q2QTUOP-DGVp_gyk.js";
2
+ import { p as f } from "./chunk-JWPE2WC7-BbwyDj9g.js";
3
+ import { _ as a, l as o } from "./mermaid-GHXKKRXX-BaBCeViM.js";
4
+ import { M as c, b as g } from "./cynefin-VYW2F7L2-DAyxamLw.js";
5
+ globalThis.process = globalThis.process || { env: {} };
6
+ globalThis.global = globalThis.global || globalThis;
7
+ var b = g().RailroadAbnf.parser.LangiumParser, l = /* @__PURE__ */ a((e) => {
8
+ const r = e.alternatives.map(d);
9
+ return r.length === 1 ? r[0] : {
10
+ type: "choice",
11
+ alternatives: r
12
+ };
13
+ }, "transformAlternation"), d = /* @__PURE__ */ a((e) => {
14
+ const r = e.elements.map(h);
15
+ return r.length === 1 ? r[0] : {
16
+ type: "sequence",
17
+ elements: r
18
+ };
19
+ }, "transformConcatenation"), v = /* @__PURE__ */ a((e) => {
20
+ if (e.includes("*")) {
21
+ const [t, s] = e.split("*"), i = t ? parseInt(t, 10) : 0, m = s ? parseInt(s, 10) : 1 / 0;
22
+ return { min: i, max: m };
23
+ }
24
+ const r = parseInt(e, 10);
25
+ return { min: r, max: r };
26
+ }, "parseRepeat"), h = /* @__PURE__ */ a((e) => {
27
+ const r = y(e.primary);
28
+ if (!e.repeat)
29
+ return r;
30
+ const { min: t, max: s } = v(e.repeat);
31
+ return t === 0 && s === 1 ? { type: "optional", element: r } : {
32
+ type: "repetition",
33
+ element: r,
34
+ min: t,
35
+ max: s
36
+ };
37
+ }, "transformElement"), y = /* @__PURE__ */ a((e) => {
38
+ switch (e.$type) {
39
+ case "AbnfStringLiteral":
40
+ return {
41
+ type: "terminal",
42
+ value: e.value
43
+ };
44
+ case "AbnfNumVal":
45
+ return {
46
+ type: "terminal",
47
+ value: e.value
48
+ };
49
+ case "AbnfRuleName":
50
+ return {
51
+ type: "nonterminal",
52
+ name: e.name
53
+ };
54
+ case "AbnfGroup":
55
+ return l(e.element);
56
+ case "AbnfOptionalGroup":
57
+ return {
58
+ type: "optional",
59
+ element: l(e.element)
60
+ };
61
+ default:
62
+ throw new Error(`Unsupported ABNF primary node: ${e.$type}`);
63
+ }
64
+ }, "transformPrimary"), A = /* @__PURE__ */ a((e) => ({
65
+ name: e.name,
66
+ definition: l(e.definition)
67
+ }), "transformRule"), P = /* @__PURE__ */ a((e) => {
68
+ f(e, n), e.title && n.setTitle(e.title), e.rules.map((r) => n.addRule(A(r)));
69
+ }, "populateDb"), R = {
70
+ parse: /* @__PURE__ */ a((e) => {
71
+ n.clear(), o.debug("[ABNF Parser] Starting Langium parse");
72
+ const r = b.parse(e);
73
+ if (r.lexerErrors.length > 0 || r.parserErrors.length > 0)
74
+ throw new c(r);
75
+ const t = r.value;
76
+ o.debug("[ABNF Parser] Parsed rules:", t.rules.length), P(t), o.debug("[ABNF Parser] Parse complete");
77
+ }, "parse"),
78
+ parser: {
79
+ yy: n
80
+ }
81
+ }, T = {
82
+ parser: R,
83
+ db: n,
84
+ renderer: u,
85
+ styles: p
86
+ };
87
+ export {
88
+ T as diagram
89
+ };
90
+ //# sourceMappingURL=abnfDiagram-N423BO3Z-C1O9dfJJ.js.map
@@ -0,0 +1,86 @@
1
+ import { H as ln, I as an, J as g, K as on, M as Q, N as w, O as _, P as sn, Q as rn, S as X, T as t, V as J, W as un, X as tn, Y as fn } from "./mermaid-GHXKKRXX-BaBCeViM.js";
2
+ globalThis.process = globalThis.process || { env: {} };
3
+ globalThis.global = globalThis.global || globalThis;
4
+ function cn(l) {
5
+ return l.innerRadius;
6
+ }
7
+ function gn(l) {
8
+ return l.outerRadius;
9
+ }
10
+ function yn(l) {
11
+ return l.startAngle;
12
+ }
13
+ function pn(l) {
14
+ return l.endAngle;
15
+ }
16
+ function dn(l) {
17
+ return l && l.padAngle;
18
+ }
19
+ function hn(l, x, S, I, v, T, K, a) {
20
+ var q = S - l, u = I - x, n = K - v, p = a - T, s = p * q - n * u;
21
+ if (!(s * s < g))
22
+ return s = (n * (x - T) - p * (l - v)) / s, [l + s * q, x + s * u];
23
+ }
24
+ function F(l, x, S, I, v, T, K) {
25
+ var a = l - S, q = x - I, u = (K ? T : -T) / X(a * a + q * q), n = u * q, p = -u * a, s = l + n, i = x + p, f = S + n, c = I + p, M = (s + f) / 2, o = (i + c) / 2, d = f - s, y = c - i, A = d * d + y * y, R = v - T, b = s * c - f * i, D = (y < 0 ? -1 : 1) * X(fn(0, R * R * A - b * b)), E = (b * y - d * D) / A, H = (-b * d - y * D) / A, P = (b * y + d * D) / A, h = (-b * d + y * D) / A, m = E - M, e = H - o, r = P - M, N = h - o;
26
+ return m * m + e * e > r * r + N * N && (E = P, H = h), {
27
+ cx: E,
28
+ cy: H,
29
+ x01: -n,
30
+ y01: -p,
31
+ x11: E * (v / R - 1),
32
+ y11: H * (v / R - 1)
33
+ };
34
+ }
35
+ function xn() {
36
+ var l = cn, x = gn, S = J(0), I = null, v = yn, T = pn, K = dn, a = null, q = ln(u);
37
+ function u() {
38
+ var n, p, s = +l.apply(this, arguments), i = +x.apply(this, arguments), f = v.apply(this, arguments) - an, c = T.apply(this, arguments) - an, M = sn(c - f), o = c > f;
39
+ if (a || (a = n = q()), i < s && (p = i, i = s, s = p), !(i > g)) a.moveTo(0, 0);
40
+ else if (M > on - g)
41
+ a.moveTo(i * Q(f), i * w(f)), a.arc(0, 0, i, f, c, !o), s > g && (a.moveTo(s * Q(c), s * w(c)), a.arc(0, 0, s, c, f, o));
42
+ else {
43
+ var d = f, y = c, A = f, R = c, b = M, D = M, E = K.apply(this, arguments) / 2, H = E > g && (I ? +I.apply(this, arguments) : X(s * s + i * i)), P = _(sn(i - s) / 2, +S.apply(this, arguments)), h = P, m = P, e, r;
44
+ if (H > g) {
45
+ var N = un(H / s * w(E)), Y = un(H / i * w(E));
46
+ (b -= N * 2) > g ? (N *= o ? 1 : -1, A += N, R -= N) : (b = 0, A = R = (f + c) / 2), (D -= Y * 2) > g ? (Y *= o ? 1 : -1, d += Y, y -= Y) : (D = 0, d = y = (f + c) / 2);
47
+ }
48
+ var V = i * Q(d), W = i * w(d), j = s * Q(R), z = s * w(R);
49
+ if (P > g) {
50
+ var B = i * Q(y), C = i * w(y), G = s * Q(A), L = s * w(A), O;
51
+ if (M < rn)
52
+ if (O = hn(V, W, G, L, B, C, j, z)) {
53
+ var U = V - O[0], Z = W - O[1], $ = B - O[0], k = C - O[1], nn = 1 / w(tn((U * $ + Z * k) / (X(U * U + Z * Z) * X($ * $ + k * k))) / 2), en = X(O[0] * O[0] + O[1] * O[1]);
54
+ h = _(P, (s - en) / (nn - 1)), m = _(P, (i - en) / (nn + 1));
55
+ } else
56
+ h = m = 0;
57
+ }
58
+ D > g ? m > g ? (e = F(G, L, V, W, i, m, o), r = F(B, C, j, z, i, m, o), a.moveTo(e.cx + e.x01, e.cy + e.y01), m < P ? a.arc(e.cx, e.cy, m, t(e.y01, e.x01), t(r.y01, r.x01), !o) : (a.arc(e.cx, e.cy, m, t(e.y01, e.x01), t(e.y11, e.x11), !o), a.arc(0, 0, i, t(e.cy + e.y11, e.cx + e.x11), t(r.cy + r.y11, r.cx + r.x11), !o), a.arc(r.cx, r.cy, m, t(r.y11, r.x11), t(r.y01, r.x01), !o))) : (a.moveTo(V, W), a.arc(0, 0, i, d, y, !o)) : a.moveTo(V, W), !(s > g) || !(b > g) ? a.lineTo(j, z) : h > g ? (e = F(j, z, B, C, s, -h, o), r = F(V, W, G, L, s, -h, o), a.lineTo(e.cx + e.x01, e.cy + e.y01), h < P ? a.arc(e.cx, e.cy, h, t(e.y01, e.x01), t(r.y01, r.x01), !o) : (a.arc(e.cx, e.cy, h, t(e.y01, e.x01), t(e.y11, e.x11), !o), a.arc(0, 0, s, t(e.cy + e.y11, e.cx + e.x11), t(r.cy + r.y11, r.cx + r.x11), o), a.arc(r.cx, r.cy, h, t(r.y11, r.x11), t(r.y01, r.x01), !o))) : a.arc(0, 0, s, R, A, o);
59
+ }
60
+ if (a.closePath(), n) return a = null, n + "" || null;
61
+ }
62
+ return u.centroid = function() {
63
+ var n = (+l.apply(this, arguments) + +x.apply(this, arguments)) / 2, p = (+v.apply(this, arguments) + +T.apply(this, arguments)) / 2 - rn / 2;
64
+ return [Q(p) * n, w(p) * n];
65
+ }, u.innerRadius = function(n) {
66
+ return arguments.length ? (l = typeof n == "function" ? n : J(+n), u) : l;
67
+ }, u.outerRadius = function(n) {
68
+ return arguments.length ? (x = typeof n == "function" ? n : J(+n), u) : x;
69
+ }, u.cornerRadius = function(n) {
70
+ return arguments.length ? (S = typeof n == "function" ? n : J(+n), u) : S;
71
+ }, u.padRadius = function(n) {
72
+ return arguments.length ? (I = n == null ? null : typeof n == "function" ? n : J(+n), u) : I;
73
+ }, u.startAngle = function(n) {
74
+ return arguments.length ? (v = typeof n == "function" ? n : J(+n), u) : v;
75
+ }, u.endAngle = function(n) {
76
+ return arguments.length ? (T = typeof n == "function" ? n : J(+n), u) : T;
77
+ }, u.padAngle = function(n) {
78
+ return arguments.length ? (K = typeof n == "function" ? n : J(+n), u) : K;
79
+ }, u.context = function(n) {
80
+ return arguments.length ? (a = n ?? null, u) : a;
81
+ }, u;
82
+ }
83
+ export {
84
+ xn as d
85
+ };
86
+ //# sourceMappingURL=arc-Cpnt_LFj.js.map