@belonguniverseai/react-sdk 0.6.24 → 0.6.25

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 (87) hide show
  1. package/dist/api/client.d.ts +98 -0
  2. package/dist/api/query-keys.d.ts +11 -0
  3. package/dist/component/{abnfDiagram-N423BO3Z-BZFjrvGh.js → abnfDiagram-N423BO3Z-D7OrqwMe.js} +4 -4
  4. package/dist/component/{arc-R371iLQK.js → arc-CZN7i2F-.js} +2 -2
  5. package/dist/component/{architectureDiagram-T3A2C74G-CcH5CU8G.js → architectureDiagram-T3A2C74G-CVX4aJSk.js} +3 -3
  6. package/dist/component/{blockDiagram-VBNYF7ZC-CO21oaME.js → blockDiagram-VBNYF7ZC-DrT23ReK.js} +4 -4
  7. package/dist/component/{c4Diagram-5PPSVZJV-DFdczxGA.js → c4Diagram-5PPSVZJV-yA6JuHOr.js} +3 -3
  8. package/dist/component/{channel-CTk2u27P.js → channel-vZcyyovp.js} +2 -2
  9. package/dist/component/{chunk-2GRJ4B5K-DLJBmRlE.js → chunk-2GRJ4B5K-C5DL0bNM.js} +2 -2
  10. package/dist/component/{chunk-2Q5K7J3B-Dn9FHNcv.js → chunk-2Q5K7J3B-B5BiYW__.js} +2 -2
  11. package/dist/component/{chunk-5RXB4S5H-C0lJsrjg.js → chunk-5RXB4S5H-wnHQNeJ5.js} +5 -5
  12. package/dist/component/{chunk-5VM5RSS4-DphP3gZj.js → chunk-5VM5RSS4-CdjvYb3M.js} +2 -2
  13. package/dist/component/{chunk-6Q2QTUOP-oYZ6WlsT.js → chunk-6Q2QTUOP-CNSvyjis.js} +2 -2
  14. package/dist/component/{chunk-GF5L2VYU-CX1jApqq.js → chunk-GF5L2VYU-D7BI1tvK.js} +6 -6
  15. package/dist/component/{chunk-JWPE2WC7-BsHiqT8c.js → chunk-JWPE2WC7-CeLQPuLU.js} +2 -2
  16. package/dist/component/{chunk-KBJHAD2P-JEN3NVHE.js → chunk-KBJHAD2P-DgAf9tRz.js} +2 -2
  17. package/dist/component/{chunk-RYQCIY6F-BJlZTS0d.js → chunk-RYQCIY6F-DjFej6-h.js} +2 -2
  18. package/dist/component/{chunk-XXDRQBXY-CftGkCaP.js → chunk-XXDRQBXY-CkNxuLox.js} +2 -2
  19. package/dist/component/{classDiagram-JCYQIIEL-BEAw2s9m.js → classDiagram-JCYQIIEL-TyORp-Xl.js} +3 -3
  20. package/dist/component/{classDiagram-v2-OCEON4UE-BEAw2s9m.js → classDiagram-v2-OCEON4UE-TyORp-Xl.js} +3 -3
  21. package/dist/component/{cose-bilkent-JH36ORCC-5g5ZQ1kH.js → cose-bilkent-JH36ORCC-C_lOBXUY.js} +2 -2
  22. package/dist/component/{cynefinDiagram-MW4NZA55-C0wLlDn3.js → cynefinDiagram-MW4NZA55-DqMIe0ZV.js} +3 -3
  23. package/dist/component/{dagre-VZM6K2ZE-V9qiC6Cs.js → dagre-VZM6K2ZE-B3HtBfbf.js} +3 -3
  24. package/dist/component/{diagram-7IWD3JNH-D-KPwOWp.js → diagram-7IWD3JNH-1uYIe-Fx.js} +4 -4
  25. package/dist/component/{diagram-B4RE2ZJO-CMiB6Lwu.js → diagram-B4RE2ZJO-DLvDbgTV.js} +3 -3
  26. package/dist/component/{diagram-LBJQPF4R-ve7EbpGW.js → diagram-LBJQPF4R-CdaGcjGt.js} +3 -3
  27. package/dist/component/{diagram-Q27KOJAE-DRINzJd4.js → diagram-Q27KOJAE-u24QPtAZ.js} +4 -4
  28. package/dist/component/{diagram-UB23O5K3-CL0SSPI6.js → diagram-UB23O5K3-D0YnNMp3.js} +3 -3
  29. package/dist/component/{ebnfDiagram-BXEA7PRR-BgU6lPC0.js → ebnfDiagram-BXEA7PRR-DdL9-qpf.js} +4 -4
  30. package/dist/component/{erDiagram-JOGREHBK-BDuqW50a.js → erDiagram-JOGREHBK-1mtJehIC.js} +5 -5
  31. package/dist/component/{flowDiagram-UKHOOZJN-KisN8EgK.js → flowDiagram-UKHOOZJN-BPwuBLmT.js} +7 -7
  32. package/dist/component/{ganttDiagram-PKOTCBZU-kZrnta4w.js → ganttDiagram-PKOTCBZU-C0dhxKZn.js} +3 -3
  33. package/dist/component/{gitGraphDiagram-DS77QQ5N-Dy1S71_C.js → gitGraphDiagram-DS77QQ5N-9pn8I5Ww.js} +4 -4
  34. package/dist/component/{highlighted-body-OFNGDK62-ChNAP6R7.js → highlighted-body-OFNGDK62-BtE2oU8T.js} +2 -2
  35. package/dist/component/index.js +1 -1
  36. package/dist/component/{infoDiagram-6WML65LV-C3CmzQkI.js → infoDiagram-6WML65LV-Un5rOho6.js} +2 -2
  37. package/dist/component/{ishikawaDiagram-WSZJBQD7-DBHVF-fV.js → ishikawaDiagram-WSZJBQD7-B_Q76Ncg.js} +2 -2
  38. package/dist/component/{journeyDiagram-NVQOT4AX-Cg3e2eDS.js → journeyDiagram-NVQOT4AX-CvjCKkXJ.js} +5 -5
  39. package/dist/component/{kanban-definition-27J2QSJJ-tIaMkhvn.js → kanban-definition-27J2QSJJ-DTk-MzTa.js} +3 -3
  40. package/dist/component/{linear-DQ23phHp.js → linear-Bjkwtb4n.js} +2 -2
  41. package/dist/component/{mermaid-GHXKKRXX-CssTT3y2.js → mermaid-GHXKKRXX-CUdhS07I.js} +43886 -41496
  42. package/dist/component/{mindmap-definition-FAOFIHXS-oSuksV41.js → mindmap-definition-FAOFIHXS-NMNGkbeM.js} +4 -4
  43. package/dist/component/{pegDiagram-VL7TDLO6-GLxZEQlj.js → pegDiagram-VL7TDLO6-DP8ndDG1.js} +4 -4
  44. package/dist/component/{pieDiagram-7S7Q4E2Y-4ghKg2jt.js → pieDiagram-7S7Q4E2Y-CneShL4n.js} +4 -4
  45. package/dist/component/{quadrantDiagram-CIZ2JOQS-DOnM2yX5.js → quadrantDiagram-CIZ2JOQS-DwKlYHP_.js} +3 -3
  46. package/dist/component/{railroadDiagram-AXF67PYL-DCf1AdeI.js → railroadDiagram-AXF67PYL-D7hQRdO5.js} +4 -4
  47. package/dist/component/{requirementDiagram-LRYGKXZP-BgUTRz25.js → requirementDiagram-LRYGKXZP-BLxtMc17.js} +4 -4
  48. package/dist/component/{sankeyDiagram-W5VNT64P-93-3TiEZ.js → sankeyDiagram-W5VNT64P-CXp6dM_4.js} +2 -2
  49. package/dist/component/{sequenceDiagram-SI44F4Z6-CjdXsQGo.js → sequenceDiagram-SI44F4Z6-Ce7VH5G7.js} +4 -4
  50. package/dist/component/{sizeCapture-X5ZJPWSS-BZcfJFgu.js → sizeCapture-X5ZJPWSS-CUTOnfZv.js} +2 -2
  51. package/dist/component/{stateDiagram-OKZ733FA-DqZxP_LE.js → stateDiagram-OKZ733FA-Bu73CVSq.js} +3 -3
  52. package/dist/component/{stateDiagram-v2-UEYNNEHI-bW3Xpzm_.js → stateDiagram-v2-UEYNNEHI-ktw3g3Qt.js} +3 -3
  53. package/dist/component/{swimlanes-SLNWSIFB-BCid9HHX.js → swimlanes-SLNWSIFB-DBKvCdnJ.js} +4 -4
  54. package/dist/component/{swimlanesDiagram-ULZ7WXOC-CUXpjQTA.js → swimlanesDiagram-ULZ7WXOC-CEWTxRuN.js} +3 -3
  55. package/dist/component/{timeline-definition-Z64GVDOM-Cl9JeVlC.js → timeline-definition-Z64GVDOM-C3MMj2z6.js} +3 -3
  56. package/dist/component/{vennDiagram-T6HMQDX7-A8wa9sfS.js → vennDiagram-T6HMQDX7-BRuneBor.js} +2 -2
  57. package/dist/component/{wardleyDiagram-T6FBY63Y-CYjNVqXL.js → wardleyDiagram-T6FBY63Y-Dyd4EEZv.js} +3 -3
  58. package/dist/component/{xychartDiagram-ELKLHX3M-CWTWyqQ8.js → xychartDiagram-ELKLHX3M-BDUULgvJ.js} +3 -3
  59. package/dist/components/ai-elements/terminal-task.d.ts +3 -1
  60. package/dist/components/embed/EarlierMessages.d.ts +17 -0
  61. package/dist/components/embed/EmbedConversation.d.ts +6 -1
  62. package/dist/components/embed/VirtualTranscript.d.ts +12 -0
  63. package/dist/components/embed/session-intent.d.ts +3 -0
  64. package/dist/components/embed/virtual-transcript-settings.d.ts +15 -0
  65. package/dist/components/feedback/feedback-votes.d.ts +3 -0
  66. package/dist/components/feedback/message-feedback.d.ts +2 -2
  67. package/dist/i18n/messages/en.d.ts +1 -0
  68. package/dist/lib/remembered-state.d.ts +9 -0
  69. package/dist/lib/use-remembered-disclosure.d.ts +2 -0
  70. package/dist/routes/chat/history-cache.d.ts +47 -0
  71. package/dist/routes/chat/history-paging.d.ts +61 -0
  72. package/dist/routes/chat/kept-chats.d.ts +39 -0
  73. package/dist/routes/chat/live-chats.d.ts +14 -0
  74. package/dist/routes/chat/transcript-pins.d.ts +4 -0
  75. package/dist/routes/chat/transcript-row.d.ts +49 -0
  76. package/dist/routes/chat/use-session-goal.d.ts +6 -1
  77. package/dist/routes/chat.d.ts +8 -21
  78. package/dist/stream/activity-items.d.ts +2 -0
  79. package/dist/stream/ai-sdk-part-renderers.d.ts +14 -1
  80. package/dist/stream/belong-chat-transport.d.ts +22 -0
  81. package/dist/stream/belong-data-parts.d.ts +13 -0
  82. package/dist/stream/dispatch-once.d.ts +12 -0
  83. package/dist/stream/sandbox-output-store.d.ts +14 -0
  84. package/dist/stream/sandbox-output.d.ts +8 -3
  85. package/dist/stream/select-session-usage.d.ts +15 -1
  86. package/dist/stream/tool-call-detail.d.ts +16 -0
  87. package/package.json +1 -1
@@ -1,6 +1,6 @@
1
- import { g as oe } from "./chunk-XXDRQBXY-CftGkCaP.js";
2
- import { s as ae } from "./chunk-KBJHAD2P-JEN3NVHE.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-CssTT3y2.js";
1
+ import { g as oe } from "./chunk-XXDRQBXY-CkNxuLox.js";
2
+ import { s as ae } from "./chunk-KBJHAD2P-DgAf9tRz.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-CUdhS07I.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-oSuksV41.js.map
833
+ //# sourceMappingURL=mindmap-definition-FAOFIHXS-NMNGkbeM.js.map
@@ -1,6 +1,6 @@
1
- import { g as i, r as m, d as a } from "./chunk-6Q2QTUOP-oYZ6WlsT.js";
2
- import { p } from "./chunk-JWPE2WC7-BsHiqT8c.js";
3
- import { _ as t, l as o } from "./mermaid-GHXKKRXX-CssTT3y2.js";
1
+ import { g as i, r as m, d as a } from "./chunk-6Q2QTUOP-CNSvyjis.js";
2
+ import { p } from "./chunk-JWPE2WC7-CeLQPuLU.js";
3
+ import { _ as t, l as o } from "./mermaid-GHXKKRXX-CUdhS07I.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-GLxZEQlj.js.map
98
+ //# sourceMappingURL=pegDiagram-VL7TDLO6-DP8ndDG1.js.map
@@ -1,7 +1,7 @@
1
- import { p as at } from "./chunk-JWPE2WC7-BsHiqT8c.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-CssTT3y2.js";
1
+ import { p as at } from "./chunk-JWPE2WC7-CeLQPuLU.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-CUdhS07I.js";
3
3
  import { p as vt } from "./cynefin-VYW2F7L2-DAyxamLw.js";
4
- import { d as X } from "./arc-R371iLQK.js";
4
+ import { d as X } from "./arc-CZN7i2F-.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-4ghKg2jt.js.map
210
+ //# sourceMappingURL=pieDiagram-7S7Q4E2Y-CneShL4n.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-CssTT3y2.js";
2
- import { l as te } from "./linear-DQ23phHp.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-CUdhS07I.js";
2
+ import { l as te } from "./linear-Bjkwtb4n.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-DOnM2yX5.js.map
1032
+ //# sourceMappingURL=quadrantDiagram-CIZ2JOQS-DwKlYHP_.js.map
@@ -1,6 +1,6 @@
1
- import { g as o, r as i, d as t } from "./chunk-6Q2QTUOP-oYZ6WlsT.js";
2
- import { p } from "./chunk-JWPE2WC7-BsHiqT8c.js";
3
- import { _ as l, l as n } from "./mermaid-GHXKKRXX-CssTT3y2.js";
1
+ import { g as o, r as i, d as t } from "./chunk-6Q2QTUOP-CNSvyjis.js";
2
+ import { p } from "./chunk-JWPE2WC7-CeLQPuLU.js";
3
+ import { _ as l, l as n } from "./mermaid-GHXKKRXX-CUdhS07I.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-DCf1AdeI.js.map
80
+ //# sourceMappingURL=railroadDiagram-AXF67PYL-D7hQRdO5.js.map
@@ -1,6 +1,6 @@
1
- import { g as ze } from "./chunk-XXDRQBXY-CftGkCaP.js";
2
- import { s as Ge } from "./chunk-KBJHAD2P-JEN3NVHE.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-CssTT3y2.js";
1
+ import { g as ze } from "./chunk-XXDRQBXY-CkNxuLox.js";
2
+ import { s as Ge } from "./chunk-KBJHAD2P-DgAf9tRz.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-CUdhS07I.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-BgUTRz25.js.map
888
+ //# sourceMappingURL=requirementDiagram-LRYGKXZP-BLxtMc17.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-CssTT3y2.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-CUdhS07I.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-93-3TiEZ.js.map
862
+ //# sourceMappingURL=sankeyDiagram-W5VNT64P-CXp6dM_4.js.map
@@ -1,6 +1,6 @@
1
- import { I as tr } from "./chunk-2Q5K7J3B-Dn9FHNcv.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-CssTT3y2.js";
3
- import { a as Er, b as ae, g as dt, d as ur, c as se, e as ie } from "./chunk-2GRJ4B5K-DLJBmRlE.js";
1
+ import { I as tr } from "./chunk-2Q5K7J3B-B5BiYW__.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-CUdhS07I.js";
3
+ import { a as Er, b as ae, g as dt, d as ur, c as se, e as ie } from "./chunk-2GRJ4B5K-C5DL0bNM.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-CjdXsQGo.js.map
2894
+ //# sourceMappingURL=sequenceDiagram-SI44F4Z6-Ce7VH5G7.js.map
@@ -1,4 +1,4 @@
1
- import { _ as t } from "./mermaid-GHXKKRXX-CssTT3y2.js";
1
+ import { _ as t } from "./mermaid-GHXKKRXX-CUdhS07I.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-BZcfJFgu.js.map
49
+ //# sourceMappingURL=sizeCapture-X5ZJPWSS-CUTOnfZv.js.map
@@ -1,5 +1,5 @@
1
- import { s as R, a as W, S as N } from "./chunk-5RXB4S5H-C0lJsrjg.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-CssTT3y2.js";
1
+ import { s as R, a as W, S as N } from "./chunk-5RXB4S5H-wnHQNeJ5.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-CUdhS07I.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-DqZxP_LE.js.map
266
+ //# sourceMappingURL=stateDiagram-OKZ733FA-Bu73CVSq.js.map
@@ -1,5 +1,5 @@
1
- import { s as e, b as r, a as s, S as t } from "./chunk-5RXB4S5H-C0lJsrjg.js";
2
- import { _ as l } from "./mermaid-GHXKKRXX-CssTT3y2.js";
1
+ import { s as e, b as r, a as s, S as t } from "./chunk-5RXB4S5H-wnHQNeJ5.js";
2
+ import { _ as l } from "./mermaid-GHXKKRXX-CUdhS07I.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-bW3Xpzm_.js.map
19
+ //# sourceMappingURL=stateDiagram-v2-UEYNNEHI-ktw3g3Qt.js.map
@@ -1,5 +1,5 @@
1
- import { c as Tr } from "./chunk-RYQCIY6F-BJlZTS0d.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-CssTT3y2.js";
1
+ import { c as Tr } from "./chunk-RYQCIY6F-DjFej6-h.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-CUdhS07I.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-BZcfJFgu.js");
27
+ const { captureNodeSizes: I } = await import("./sizeCapture-X5ZJPWSS-CUTOnfZv.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-BCid9HHX.js.map
5335
+ //# sourceMappingURL=swimlanes-SLNWSIFB-DBKvCdnJ.js.map
@@ -1,5 +1,5 @@
1
- import { c as e, s as a } from "./flowDiagram-UKHOOZJN-KisN8EgK.js";
2
- import { _ as s } from "./mermaid-GHXKKRXX-CssTT3y2.js";
1
+ import { c as e, s as a } from "./flowDiagram-UKHOOZJN-BPwuBLmT.js";
2
+ import { _ as s } from "./mermaid-GHXKKRXX-CUdhS07I.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-CUXpjQTA.js.map
16
+ //# sourceMappingURL=swimlanesDiagram-ULZ7WXOC-CEWTxRuN.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-CssTT3y2.js";
2
- import { d as ot } from "./arc-R371iLQK.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-CUdhS07I.js";
2
+ import { d as ot } from "./arc-CZN7i2F-.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-Cl9JeVlC.js.map
1058
+ //# sourceMappingURL=timeline-definition-Z64GVDOM-C3MMj2z6.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-CssTT3y2.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-CUdhS07I.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-A8wa9sfS.js.map
1581
+ //# sourceMappingURL=vennDiagram-T6HMQDX7-BRuneBor.js.map
@@ -1,5 +1,5 @@
1
- import { p as St } from "./chunk-JWPE2WC7-BsHiqT8c.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-CssTT3y2.js";
1
+ import { p as St } from "./chunk-JWPE2WC7-CeLQPuLU.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-CUdhS07I.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-CYjNVqXL.js.map
681
+ //# sourceMappingURL=wardleyDiagram-T6FBY63Y-Dyd4EEZv.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-CssTT3y2.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-CUdhS07I.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-DQ23phHp.js";
4
+ import { l as vt } from "./linear-Bjkwtb4n.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-CWTWyqQ8.js.map
1421
+ //# sourceMappingURL=xychartDiagram-ELKLHX3M-BDUULgvJ.js.map
@@ -1,6 +1,8 @@
1
1
  import { SandboxCommandData, ToolCallData } from '../../stream/belong-data-parts.ts';
2
- export declare const TerminalTask: ({ command, output, live, }: {
2
+ export declare const TerminalTask: ({ command, output, live, toolCallId, }: {
3
3
  readonly command: ToolCallData;
4
4
  readonly output: SandboxCommandData | null;
5
5
  readonly live?: boolean;
6
+ /** The call's part id: a summarized history card fetches its full output by it. */
7
+ readonly toolCallId?: string | undefined;
6
8
  }) => import("react").JSX.Element;
@@ -0,0 +1,17 @@
1
+ /**
2
+ * The top edge of the transcript while older history is still on the server
3
+ * (`more`: the paged history has a page before the first loaded message).
4
+ * Nearing the top fetches it by itself; the button is the keyboard and
5
+ * screen-reader path. Renders INSIDE `<Conversation>` — it needs the
6
+ * stick-to-bottom scroller.
7
+ *
8
+ * Keeping the reader in place as the page lands is the virtualized list's job
9
+ * (`VirtualTranscript`, `anchorTo: "end"`), not this control's.
10
+ */
11
+ export declare function EarlierMessages({ more, loading, onShow, }: Readonly<{
12
+ /** Older messages exist on the server. */
13
+ more: boolean;
14
+ /** An older page is being fetched. */
15
+ loading?: boolean;
16
+ onShow: () => void;
17
+ }>): import("react").JSX.Element | null;
@@ -7,7 +7,7 @@
7
7
  * while generating) — no second Stop control here. Clearing the visible chat
8
8
  * is the `/clear` slash command — no toolbar button.
9
9
  */
10
- export declare function EmbedConversation({ streaming, agentName, scrollResize, centerContent, children, }: Readonly<{
10
+ export declare function EmbedConversation({ streaming, agentName, scrollResize, centerContent, hasOlderMessages, loadingEarlierMessages, onShowEarlierMessages, children, }: Readonly<{
11
11
  streaming: boolean;
12
12
  /**
13
13
  * Center the content vertically in the viewport — used by the first-run
@@ -27,5 +27,10 @@ export declare function EmbedConversation({ streaming, agentName, scrollResize,
27
27
  * glide), then settles it to "smooth" for live streaming growth.
28
28
  */
29
29
  scrollResize: "instant" | "smooth";
30
+ /** The paged history has older pages on the server (fetched from the top). */
31
+ hasOlderMessages?: boolean;
32
+ /** An older page is being fetched. */
33
+ loadingEarlierMessages?: boolean;
34
+ onShowEarlierMessages?: () => void;
30
35
  children: React.ReactNode;
31
36
  }>): import("react").JSX.Element;
@@ -0,0 +1,12 @@
1
+ import { ReactNode } from 'react';
2
+ export type VirtualTranscriptProps<T extends {
3
+ readonly id: string;
4
+ }> = {
5
+ readonly items: readonly T[];
6
+ readonly renderItem: (item: T, index: number) => ReactNode;
7
+ /** Rows that stay mounted while off screen: live or pending work. */
8
+ readonly pinnedIds: ReadonlySet<string>;
9
+ };
10
+ export declare function VirtualTranscript<T extends {
11
+ readonly id: string;
12
+ }>(props: VirtualTranscriptProps<T>): import("react").JSX.Element;
@@ -0,0 +1,3 @@
1
+ export declare const SessionIntentContext: import('react').Context<(sessionId: string) => void>;
2
+ /** How long the pointer or focus rests on a row before it counts as intent. */
3
+ export declare const SESSION_INTENT_DWELL_MS = 120;
@@ -0,0 +1,15 @@
1
+ /**
2
+ * Page-wide state of the virtualized transcript (`VirtualTranscript.tsx`), in
3
+ * a leaf module so the test setup can reach it without loading the list (and
4
+ * its scroll library) ahead of a test's mocks.
5
+ */
6
+ /**
7
+ * jsdom lays nothing out, so a virtualizer there mounts nothing. Unit tests of
8
+ * whole surfaces turn virtualization off and get every row (the test setup
9
+ * does); `VirtualTranscript`'s own tests turn it back on.
10
+ */
11
+ export declare const setTranscriptVirtualization: (enabled: boolean) => void;
12
+ export declare const isTranscriptVirtualized: () => boolean;
13
+ export declare const rememberRowHeight: (id: string, height: number) => void;
14
+ export declare const rememberedRowHeight: (id: string) => number | undefined;
15
+ export declare const __resetVirtualTranscriptForTest: () => void;
@@ -0,0 +1,3 @@
1
+ export type FeedbackSentiment = "up" | "down";
2
+ export declare const feedbackVotes: import('../../lib/remembered-state.ts').RememberedState<FeedbackSentiment | null>;
3
+ export declare const __resetFeedbackVotesForTest: () => void;
@@ -1,4 +1,5 @@
1
- export type FeedbackSentiment = "up" | "down";
1
+ import { FeedbackSentiment } from './feedback-votes.ts';
2
+ export type { FeedbackSentiment } from './feedback-votes.ts';
2
3
  type MessageFeedbackProps = {
3
4
  readonly sessionId: string;
4
5
  readonly taskId: string;
@@ -6,4 +7,3 @@ type MessageFeedbackProps = {
6
7
  readonly initialReason: string | null;
7
8
  };
8
9
  export declare const MessageFeedback: ({ sessionId, taskId, initialSentiment, initialReason, }: MessageFeedbackProps) => import("react").JSX.Element;
9
- export {};
@@ -1127,6 +1127,7 @@ export declare const en: {
1127
1127
  readonly thinking: "Thinking…";
1128
1128
  readonly followerBanner: "This conversation is open in another tab";
1129
1129
  readonly historyUnavailable: "Couldn't load this conversation — try reopening it.";
1130
+ readonly showEarlierMessages: "Show earlier messages";
1130
1131
  };
1131
1132
  readonly compaction: {
1132
1133
  readonly compacted: "Compacted {{count}} earlier messages into a summary.";
@@ -0,0 +1,9 @@
1
+ export type RememberedState<T> = {
2
+ /** `useState`, remembered under `key` across unmounts. */
3
+ readonly useRemembered: (key: string | undefined, initial: T) => readonly [T, (next: T) => void];
4
+ readonly peek: (key: string) => T | undefined;
5
+ readonly set: (key: string, value: T) => void;
6
+ readonly reset: () => void;
7
+ };
8
+ /** One typed store. `maxEntries` bounds a long page's memory; the oldest go first. */
9
+ export declare const createRememberedState: <T>(maxEntries?: number) => RememberedState<T>;
@@ -0,0 +1,2 @@
1
+ export declare const useRememberedDisclosure: (key: string | undefined, defaultOpen: boolean) => readonly [boolean, (open: boolean) => void];
2
+ export declare const __resetRememberedDisclosuresForTest: () => void;
@@ -0,0 +1,47 @@
1
+ import { QueryClient } from '@tanstack/react-query';
2
+ import { BelongUIMessage } from '../../stream/belong-data-parts.ts';
3
+ import { HistoryPageRead } from './history-paging.ts';
4
+ export type LoadedHistoryPage = HistoryPageRead<BelongUIMessage>;
5
+ export type HistoryPageResult = ({
6
+ readonly ok: true;
7
+ } & LoadedHistoryPage) | {
8
+ readonly ok: false;
9
+ readonly reason: "network" | "bad_status" | "bad_body" | "not_found";
10
+ };
11
+ /** Which chat a page belongs to. `workspaceKey`: the scoped id, or "". */
12
+ export type HistoryScope = {
13
+ readonly workspaceKey: string;
14
+ readonly sessionId: string;
15
+ };
16
+ /** A newest page read this recently is still good for a prefetch. */
17
+ export declare const PREFETCHED_PAGE_MAX_AGE_MS = 30000;
18
+ /**
19
+ * A page read this recently is the server's answer already: a chat opened
20
+ * right after the Chats list read it ahead (the pointer rested on its row)
21
+ * isn't read twice.
22
+ */
23
+ export declare const JUST_READ_MS = 2000;
24
+ /**
25
+ * Read one page through the cache: the newest (`before` undefined) or the one
26
+ * `before` names. `maxAgeMs` is how old a cached copy may be and still be
27
+ * returned without asking the server; 0 always asks, sharing a read already in
28
+ * flight.
29
+ */
30
+ export declare const readHistoryPage: (client: QueryClient, scope: HistoryScope, before: string | undefined, load: () => Promise<HistoryPageResult>, maxAgeMs: number) => Promise<HistoryPageResult>;
31
+ /**
32
+ * Read the newest page from the server now, never joining a read already in
33
+ * flight (it may predate what the caller is waiting for: a turn that just
34
+ * ended), and keep what it returns.
35
+ */
36
+ export declare const refreshNewestHistoryPage: (client: QueryClient, scope: HistoryScope, load: () => Promise<HistoryPageResult>) => Promise<HistoryPageResult>;
37
+ /**
38
+ * The newest page as the cache holds it, when it may be painted: read before,
39
+ * and not marked stale by a turn that finished since.
40
+ */
41
+ export declare const peekNewestHistoryPage: (client: QueryClient, scope: HistoryScope) => LoadedHistoryPage | null;
42
+ /** A turn finished: the cached newest page no longer holds the chat's end. */
43
+ export declare const markNewestHistoryPageStale: (client: QueryClient, scope: HistoryScope) => void;
44
+ /** Drop every cached page of one chat (deleted), in any workspace. */
45
+ export declare const forgetSessionHistory: (client: QueryClient, sessionId: string) => void;
46
+ /** Drop every cached page (sign-out). */
47
+ export declare const forgetHistoryCache: (client: QueryClient) => void;
@@ -0,0 +1,61 @@
1
+ import { SessionUsageBaseline } from '../../stream/select-session-usage.ts';
2
+ /** Turns per history page: a few screens, and a small read even when tool-heavy. */
3
+ export declare const HISTORY_PAGE_MESSAGES = 30;
4
+ export type HistoryPaging = {
5
+ /** A loaded page's first message id → the cursor of the page before it. */
6
+ readonly olderCursorByFirstMessageId: ReadonlyMap<string, string>;
7
+ /**
8
+ * Messages an OLDER page brought in (scrolled to, not opened on). What they
9
+ * hold is history to read: an unanswered question there must not re-arm the
10
+ * question card mid-scroll — it stays answerable from its record.
11
+ */
12
+ readonly olderPageMessageIds: ReadonlySet<string>;
13
+ /**
14
+ * The chat's usage total from the latest NEWEST-page read — the baseline
15
+ * `selectSessionUsage` adds live turns to. Undefined until a read carried one
16
+ * (an older server never does).
17
+ */
18
+ readonly sessionUsage: SessionUsageBaseline | null | undefined;
19
+ };
20
+ export declare const NO_HISTORY_PAGING: HistoryPaging;
21
+ export type HistoryPageRead<T extends {
22
+ readonly id: string;
23
+ } = {
24
+ readonly id: string;
25
+ }> = {
26
+ readonly messages: readonly T[];
27
+ /** The next older page's cursor; null once this page reached the start. */
28
+ readonly before: string | null;
29
+ readonly sessionUsage: SessionUsageBaseline | null | undefined;
30
+ };
31
+ /** Remember a page just read; `newest` reads also refresh the usage baseline. */
32
+ export declare const recordHistoryPage: (paging: HistoryPaging, page: HistoryPageRead, newest: boolean) => HistoryPaging;
33
+ /** The conversation without what older pages brought in (see `olderPageMessageIds`). */
34
+ export declare const withoutOlderPages: <T extends {
35
+ readonly id: string;
36
+ }>(paging: HistoryPaging, messages: readonly T[]) => readonly T[];
37
+ /** The cursor of the page before the first message on screen, if there is one. */
38
+ export declare const olderHistoryCursor: (paging: HistoryPaging, messages: readonly {
39
+ readonly id: string;
40
+ }[]) => string | undefined;
41
+ /**
42
+ * What a newest-page re-read must leave alone: the older pages the reader
43
+ * scrolled in ABOVE it. Found by the page's first row id; nothing when the
44
+ * page does not line up with the screen (then it is merged as a whole).
45
+ */
46
+ export declare const splitOlderPrefix: <T extends {
47
+ readonly id: string;
48
+ }>(loaded: readonly {
49
+ readonly id: string;
50
+ }[], current: readonly T[]) => {
51
+ readonly older: readonly T[];
52
+ readonly rest: readonly T[];
53
+ };
54
+ /**
55
+ * Put an older page above the conversation. Unless the conversation changed
56
+ * while it was fetched (a clear, a re-read that no longer lines up): then the
57
+ * page is dropped, and the next scroll-up fetches the right one.
58
+ */
59
+ export declare const prependHistoryPage: <T extends {
60
+ readonly id: string;
61
+ }>(older: readonly T[], current: T[], expectedFirstId: string) => T[];
@@ -0,0 +1,39 @@
1
+ import { Chat } from '@ai-sdk/react';
2
+ import { DataUIPart } from 'ai';
3
+ import { BelongChatTransport } from '../../stream/belong-chat-transport.ts';
4
+ import { BelongDataParts, BelongUIMessage } from '../../stream/belong-data-parts.ts';
5
+ import { HistoryPaging } from './history-paging.ts';
6
+ /** What the mount showing a chat does with its events. */
7
+ export type LiveChatHandlers = {
8
+ readonly onError: (error: Error) => void;
9
+ readonly onData: (part: DataUIPart<BelongDataParts>) => void;
10
+ };
11
+ export type LiveChat = {
12
+ readonly chat: Chat<BelongUIMessage>;
13
+ readonly transport: BelongChatTransport;
14
+ /**
15
+ * Route the chat's events to the mount showing it, until the returned
16
+ * release. Errors with no mount to show them are dropped: the chat keeps its
17
+ * `error` state for the next mount. Data parts keep reaching the last mount's
18
+ * handler, so a schedule a background turn creates still refreshes the list.
19
+ */
20
+ readonly show: (handlers: LiveChatHandlers) => () => void;
21
+ readonly isShown: () => boolean;
22
+ /** The older pages the chat's messages hold, so a mount taking it back keeps scrolling up from there. */
23
+ readonly paging: () => HistoryPaging;
24
+ readonly keepPaging: (paging: HistoryPaging) => void;
25
+ /**
26
+ * When each live message was first seen: its clock until history carries
27
+ * one. Kept with the chat so taking it back doesn't restamp every live turn.
28
+ */
29
+ readonly seenAtMs: Map<string, number>;
30
+ };
31
+ /** The chat kept for a session, whatever state it is in. */
32
+ export declare const peekKeptChat: (workspaceKey: string, sessionId: string) => LiveChat | null;
33
+ /** Keep `live` as the session's chat, the most recently used. */
34
+ export declare const keepLiveChat: (workspaceKey: string, sessionId: string, live: LiveChat) => void;
35
+ /** Drop a session's kept chat (deleted, or cleared elsewhere), in any workspace. */
36
+ export declare const forgetLiveChat: (sessionId: string) => void;
37
+ /** Drop every kept chat (sign-out, or the dock unmounting). */
38
+ export declare const forgetLiveChats: () => void;
39
+ export declare const __resetKeptChatsForTest: () => void;
@@ -0,0 +1,14 @@
1
+ import { BelongChatTransport } from '../../stream/belong-chat-transport.ts';
2
+ import { BelongUIMessage } from '../../stream/belong-data-parts.ts';
3
+ import { HistoryPaging } from './history-paging.ts';
4
+ import { LiveChat } from './kept-chats.ts';
5
+ export declare const createLiveChat: (input: {
6
+ readonly id: string;
7
+ readonly transport: BelongChatTransport;
8
+ readonly messages?: readonly BelongUIMessage[];
9
+ readonly paging?: HistoryPaging;
10
+ /** A request finished (a turn ended, or its stream closed). */
11
+ readonly onFinish: () => void;
12
+ }) => LiveChat;
13
+ /** The chat kept for a session, when it can be shown as it is. Reads only — safe during render. */
14
+ export declare const findLiveChat: (workspaceKey: string, sessionId: string) => LiveChat | null;
@@ -0,0 +1,4 @@
1
+ import { BelongUIMessage } from '../../stream/belong-data-parts.ts';
2
+ /** Newest messages always mounted. */
3
+ export declare const PINNED_TAIL_MESSAGES = 2;
4
+ export declare const transcriptPinnedIds: (messages: readonly BelongUIMessage[]) => ReadonlySet<string>;
@@ -0,0 +1,49 @@
1
+ import { ComponentProps, ReactNode } from 'react';
2
+ import { BelongUIMessage } from '../../stream/belong-data-parts.ts';
3
+ import { MessageParts } from '../../stream/message-parts.tsx';
4
+ import { PartRendererExtraPropsInput } from './part-renderer-extra-props.ts';
5
+ /** Separates the part keys in {@link TranscriptRowProps.goalSetPartKeys}. */
6
+ export declare const GOAL_SET_KEY_SEPARATOR = "\n";
7
+ /**
8
+ * The route-level wiring every row shares. `ChatRoute` memoizes it, and each
9
+ * field is stable while nothing it describes changes — a streamed chunk or a
10
+ * keystroke leaves it untouched, so settled rows skip their render.
11
+ */
12
+ export type TranscriptRowWiring = {
13
+ /** A run is streaming (any message) — gates the plan/goal CTAs. */
14
+ readonly isStreaming: boolean;
15
+ readonly lastUserMessageIndex: number;
16
+ /** The session the feedback route is scoped to; `null` hides the feedback row. */
17
+ readonly feedbackSessionId: string | null;
18
+ /** The message's display time (server-stamped, or first seen live). */
19
+ readonly messageTime: (message: BelongUIMessage) => number;
20
+ readonly onFollowContinuation: ComponentProps<typeof MessageParts>["onFollowContinuation"];
21
+ readonly continueConnectorFor: PartRendererExtraPropsInput["continueConnectorFor"];
22
+ readonly onExecutePlan: () => void;
23
+ readonly hasLiveGoal: boolean;
24
+ readonly goalDoor: PartRendererExtraPropsInput["goalDoor"];
25
+ readonly onOpenGoalView: (() => void) | undefined;
26
+ readonly goalFileCount: number;
27
+ readonly onGoalSchedule: (command: string) => void;
28
+ readonly onGoalGetFiles: (() => void) | undefined;
29
+ readonly onGoalStartAnother: () => void;
30
+ };
31
+ export type TranscriptRowProps = {
32
+ readonly message: BelongUIMessage;
33
+ /** This message's index in the FULL conversation (not the render window). */
34
+ readonly index: number;
35
+ /** The run is streaming into THIS message. */
36
+ readonly streaming: boolean;
37
+ /**
38
+ * This message's "Goal set" receipt keys (`<messageId>:<partId>`), joined by
39
+ * {@link GOAL_SET_KEY_SEPARATOR}: a string, so an unchanged receipt keeps
40
+ * the memo even though the session-wide set is rebuilt on every update.
41
+ */
42
+ readonly goalSetPartKeys: string;
43
+ /** The user message that started the session's goal ("Sent as goal"). */
44
+ readonly sentAsGoal: boolean;
45
+ /** The refused `/goal` card — only on the message it answers, else `null`. */
46
+ readonly goalRefusalCard: ReactNode;
47
+ readonly wiring: TranscriptRowWiring;
48
+ };
49
+ export declare const TranscriptRow: import('react').NamedExoticComponent<TranscriptRowProps>;