@tangle-network/sandbox-ui 2.0.17 → 2.0.19

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 (469) hide show
  1. package/README.md +2 -0
  2. package/dist/agent-stream-CBZ2fXJ2.d.ts +66 -0
  3. package/dist/code-view-BlhCS1SD.js +177 -0
  4. package/dist/globals.css +186 -150
  5. package/dist/hooks/use-document.d.ts +2 -0
  6. package/dist/hooks/use-document.js +142 -0
  7. package/dist/hooks.d.ts +2 -1
  8. package/dist/hooks.js +2 -1
  9. package/dist/{index-BtR5Sc3u.d.ts → index-BnaVprN6.d.ts} +3 -66
  10. package/dist/index.d.ts +2 -1
  11. package/dist/index.js +6 -3
  12. package/dist/run/live.d.ts +11 -0
  13. package/dist/run/live.js +412 -0
  14. package/dist/run.d.ts +2 -1
  15. package/dist/run.js +2 -1
  16. package/dist/runtime-viewer/AgentGraphCanvas-B74GN1o6-DC3EH_ss.js +8564 -0
  17. package/dist/runtime-viewer/abap-CJVxDCih.js +2 -0
  18. package/dist/runtime-viewer/actionscript-3-DxxSN0a_.js +2 -0
  19. package/dist/runtime-viewer/ada-Cl3FVDZo.js +2 -0
  20. package/dist/runtime-viewer/ahk-wK-qmFta.js +2 -0
  21. package/dist/runtime-viewer/ahk2-H2JA2Yl6.js +2 -0
  22. package/dist/runtime-viewer/andromeeda--b5O3zh8.js +134 -0
  23. package/dist/runtime-viewer/andromeeda-Gms6gP4X.js +3 -0
  24. package/dist/runtime-viewer/angular-html-rj1gmhWN.js +15 -0
  25. package/dist/runtime-viewer/angular-ts-Bqgem-S1.js +17 -0
  26. package/dist/runtime-viewer/apache-BUhlrTDV.js +2 -0
  27. package/dist/runtime-viewer/apex-BB9dj6FH.js +2 -0
  28. package/dist/runtime-viewer/apl-Bbo6_Uyo.js +15 -0
  29. package/dist/runtime-viewer/appendItems-Cd9l6s5M.js +709 -0
  30. package/dist/runtime-viewer/applescript-ADDjRuDN.js +2 -0
  31. package/dist/runtime-viewer/ara-qq1xXFYH.js +2 -0
  32. package/dist/runtime-viewer/asciidoc-DM4EX7__.js +2 -0
  33. package/dist/runtime-viewer/asm-BG-prohY.js +2 -0
  34. package/dist/runtime-viewer/astro-DLFBJCYZ.js +17 -0
  35. package/dist/runtime-viewer/aurora-x-9XZt7weA.js +3 -0
  36. package/dist/runtime-viewer/aurora-x-CUDrP6dl.js +148 -0
  37. package/dist/runtime-viewer/awk-CLViK1AN.js +2 -0
  38. package/dist/runtime-viewer/ayu-dark-Cn6mFqgG.js +3 -0
  39. package/dist/runtime-viewer/ayu-dark-KXkHEKeT.js +124 -0
  40. package/dist/runtime-viewer/ayu-light-CiMsj1GY.js +124 -0
  41. package/dist/runtime-viewer/ayu-light-DT1rcejT.js +3 -0
  42. package/dist/runtime-viewer/ayu-mirage-B9PABb6M.js +3 -0
  43. package/dist/runtime-viewer/ayu-mirage-D866knu2.js +124 -0
  44. package/dist/runtime-viewer/ballerina-CEQUp96R.js +2 -0
  45. package/dist/runtime-viewer/bash-CEf3P1Io.js +1 -0
  46. package/dist/runtime-viewer/bat-CZr3fv67.js +2 -0
  47. package/dist/runtime-viewer/beancount-VKRy3bBi.js +2 -0
  48. package/dist/runtime-viewer/berry-BwT4aLVg.js +2 -0
  49. package/dist/runtime-viewer/bibtex-CqljWi0V.js +2 -0
  50. package/dist/runtime-viewer/bicep-B4J9qq-Z.js +2 -0
  51. package/dist/runtime-viewer/bird2-aEHxasJz.js +2 -0
  52. package/dist/runtime-viewer/blade-CSrWCe1q.js +19 -0
  53. package/dist/runtime-viewer/bsl-BihRw6wC.js +4 -0
  54. package/dist/runtime-viewer/c-DqEbRro5.js +1 -0
  55. package/dist/runtime-viewer/c-nuWrC4_R.js +4 -0
  56. package/dist/runtime-viewer/c3-B1ecFreZ.js +2 -0
  57. package/dist/runtime-viewer/cadence-DRL7VEtm.js +2 -0
  58. package/dist/runtime-viewer/cairo-Mf356MxB.js +4 -0
  59. package/dist/runtime-viewer/catppuccin-frappe-CaZDpwbh.js +3 -0
  60. package/dist/runtime-viewer/catppuccin-frappe-D40A-eC-.js +253 -0
  61. package/dist/runtime-viewer/catppuccin-latte-BY0gIWQk.js +253 -0
  62. package/dist/runtime-viewer/catppuccin-latte-Cto1Jf_t.js +3 -0
  63. package/dist/runtime-viewer/catppuccin-macchiato-BshuwwL_.js +253 -0
  64. package/dist/runtime-viewer/catppuccin-macchiato-Da4JtJzk.js +3 -0
  65. package/dist/runtime-viewer/catppuccin-mocha-DDZ3zh14.js +253 -0
  66. package/dist/runtime-viewer/catppuccin-mocha-VxvWTjH_.js +3 -0
  67. package/dist/runtime-viewer/chapel-OTK-UUIg.js +4 -0
  68. package/dist/runtime-viewer/clarity-VQN67-z4.js +2 -0
  69. package/dist/runtime-viewer/clojure-CO3ptKNj.js +2 -0
  70. package/dist/runtime-viewer/cmake-Daw-aSZt.js +2 -0
  71. package/dist/runtime-viewer/cobol-Cf_qPd6-.js +9 -0
  72. package/dist/runtime-viewer/codeowners-RB6Ky2d_.js +2 -0
  73. package/dist/runtime-viewer/codeql-DWYIUtYc.js +2 -0
  74. package/dist/runtime-viewer/coffee-Ddb4DMEu.js +4 -0
  75. package/dist/runtime-viewer/common-lisp-Z5pdmE3i.js +2 -0
  76. package/dist/runtime-viewer/constants-BJYchxfN.js +3 -0
  77. package/dist/runtime-viewer/coq-JC5iWOqp.js +2 -0
  78. package/dist/runtime-viewer/core-CpUX80b1.js +3279 -0
  79. package/dist/runtime-viewer/cpp-ClbMDAkS.js +1 -0
  80. package/dist/runtime-viewer/cpp-DHh405em.js +15 -0
  81. package/dist/runtime-viewer/crystal-DO6lJkkC.js +17 -0
  82. package/dist/runtime-viewer/csharp-lEK6y4jq.js +2 -0
  83. package/dist/runtime-viewer/csharp-rZvb5Mvv.js +1 -0
  84. package/dist/runtime-viewer/css-CwgM346x.js +1 -0
  85. package/dist/runtime-viewer/css-D0s2ehNl.js +4 -0
  86. package/dist/runtime-viewer/csv-DDLVNpF_.js +2 -0
  87. package/dist/runtime-viewer/cue-D9icO3Iq.js +2 -0
  88. package/dist/runtime-viewer/cypher-CtaxHT1L.js +2 -0
  89. package/dist/runtime-viewer/d-D4yE5Vyh.js +2 -0
  90. package/dist/runtime-viewer/dark-plus-BrGvqa0b.js +132 -0
  91. package/dist/runtime-viewer/dark-plus-Fqa0GMhm.js +3 -0
  92. package/dist/runtime-viewer/dart-BQKGVcgZ.js +2 -0
  93. package/dist/runtime-viewer/dax-B_fglzFE.js +2 -0
  94. package/dist/runtime-viewer/desktop-D1YOnHEY.js +2 -0
  95. package/dist/runtime-viewer/diff-CiTjO3HD.js +1 -0
  96. package/dist/runtime-viewer/diff-Diuv0qGT.js +2 -0
  97. package/dist/runtime-viewer/docker-DbYJRRXH.js +4 -0
  98. package/dist/runtime-viewer/dockerfile-BFrtbjpQ.js +1 -0
  99. package/dist/runtime-viewer/dotenv-FA1qqDb1.js +2 -0
  100. package/dist/runtime-viewer/dracula-Btj3GSO9.js +3 -0
  101. package/dist/runtime-viewer/dracula-D8HPTJym.js +152 -0
  102. package/dist/runtime-viewer/dracula-soft-C8zQlEh_.js +102 -0
  103. package/dist/runtime-viewer/dracula-soft-D6LcM51i.js +3 -0
  104. package/dist/runtime-viewer/dream-maker-hpDz6By6.js +2 -0
  105. package/dist/runtime-viewer/edge-BB4FSmZo.js +11 -0
  106. package/dist/runtime-viewer/elixir-DuATaRNn.js +4 -0
  107. package/dist/runtime-viewer/elk.bundled-CqF3Dyp2.js +45979 -0
  108. package/dist/runtime-viewer/elm-82HhQ2nm.js +4 -0
  109. package/dist/runtime-viewer/emacs-lisp-C5QNYC99.js +2 -0
  110. package/dist/runtime-viewer/engine-javascript-0MH9JO7M.js +2372 -0
  111. package/dist/runtime-viewer/engine-oniguruma-7Bv9BGGj.js +237 -0
  112. package/dist/runtime-viewer/erb-YvvBNDWy.js +9 -0
  113. package/dist/runtime-viewer/erlang-X9awClOJ.js +4 -0
  114. package/dist/runtime-viewer/everforest-dark-CzXjGmbf.js +3 -0
  115. package/dist/runtime-viewer/everforest-dark-DPX_5Sj-.js +86 -0
  116. package/dist/runtime-viewer/everforest-light-BMqXq4Th.js +3 -0
  117. package/dist/runtime-viewer/everforest-light-D1PD4A7K.js +86 -0
  118. package/dist/runtime-viewer/fennel-f1xl4Q05.js +2 -0
  119. package/dist/runtime-viewer/fish-99YblEc7.js +2 -0
  120. package/dist/runtime-viewer/fluent-4LP_8ZRP.js +2 -0
  121. package/dist/runtime-viewer/formatCSSVariablePrefix-Dw8K8---.js +5 -0
  122. package/dist/runtime-viewer/fortran-fixed-form-CXgWKejO.js +4 -0
  123. package/dist/runtime-viewer/fortran-free-form-BJnwWphW.js +2 -0
  124. package/dist/runtime-viewer/fsharp-lb4HOh0M.js +4 -0
  125. package/dist/runtime-viewer/gdresource-B4QpWOUk.js +9 -0
  126. package/dist/runtime-viewer/gdscript-Dc0nUXdB.js +2 -0
  127. package/dist/runtime-viewer/gdshader-D7XodLZw.js +2 -0
  128. package/dist/runtime-viewer/genie-ufotYGgo.js +2 -0
  129. package/dist/runtime-viewer/gherkin-TDn2lJS-.js +2 -0
  130. package/dist/runtime-viewer/git-commit-Cp1Pt-h7.js +4 -0
  131. package/dist/runtime-viewer/git-rebase-CXUuGQB4.js +4 -0
  132. package/dist/runtime-viewer/github-dark-BsaUiyss.js +129 -0
  133. package/dist/runtime-viewer/github-dark-CzJ4LJRs.js +3 -0
  134. package/dist/runtime-viewer/github-dark-default-C6vmm66I.js +3 -0
  135. package/dist/runtime-viewer/github-dark-default-DHpmzBTU.js +75 -0
  136. package/dist/runtime-viewer/github-dark-dimmed-Bg7ahiYc.js +124 -0
  137. package/dist/runtime-viewer/github-dark-dimmed-CntRzgqu.js +3 -0
  138. package/dist/runtime-viewer/github-dark-high-contrast-BP5LnlnO.js +124 -0
  139. package/dist/runtime-viewer/github-dark-high-contrast-gviVHGeU.js +3 -0
  140. package/dist/runtime-viewer/github-light-2Z3gmJhd.js +3 -0
  141. package/dist/runtime-viewer/github-light-BAncjKrl.js +129 -0
  142. package/dist/runtime-viewer/github-light-default-kDVra9RT.js +124 -0
  143. package/dist/runtime-viewer/github-light-default-qgi3RC4t.js +3 -0
  144. package/dist/runtime-viewer/github-light-high-contrast-B2kY0DMu.js +124 -0
  145. package/dist/runtime-viewer/github-light-high-contrast-T0lGRgzi.js +3 -0
  146. package/dist/runtime-viewer/gleam-LV2mKtnv.js +2 -0
  147. package/dist/runtime-viewer/glimmer-js-BX9ckA-I.js +13 -0
  148. package/dist/runtime-viewer/glimmer-ts-DAfjLnWM.js +13 -0
  149. package/dist/runtime-viewer/glsl-BStsalM0.js +5 -0
  150. package/dist/runtime-viewer/gn-ChOGRsKV.js +2 -0
  151. package/dist/runtime-viewer/gnuplot-Di7UZXvs.js +2 -0
  152. package/dist/runtime-viewer/go-BrUQhiM2.js +1 -0
  153. package/dist/runtime-viewer/go-DM5FkVJr.js +2 -0
  154. package/dist/runtime-viewer/graphql-C8jzeQ3m.js +1 -0
  155. package/dist/runtime-viewer/graphql-C_WRV-qo.js +14 -0
  156. package/dist/runtime-viewer/groovy-DNa91fQJ.js +2 -0
  157. package/dist/runtime-viewer/gruvbox-dark-hard-BK-BcNOC.js +127 -0
  158. package/dist/runtime-viewer/gruvbox-dark-hard-fgme3GSG.js +3 -0
  159. package/dist/runtime-viewer/gruvbox-dark-medium-Btvv2ALk.js +127 -0
  160. package/dist/runtime-viewer/gruvbox-dark-medium-GM28AOs3.js +3 -0
  161. package/dist/runtime-viewer/gruvbox-dark-soft-D12Dlf7E.js +3 -0
  162. package/dist/runtime-viewer/gruvbox-dark-soft-ScIRFHp0.js +127 -0
  163. package/dist/runtime-viewer/gruvbox-light-hard-D0LtL2QG.js +3 -0
  164. package/dist/runtime-viewer/gruvbox-light-hard-D3d04bym.js +127 -0
  165. package/dist/runtime-viewer/gruvbox-light-medium-BUM64AiQ.js +127 -0
  166. package/dist/runtime-viewer/gruvbox-light-medium-Dbiuwhcl.js +3 -0
  167. package/dist/runtime-viewer/gruvbox-light-soft-BFyUZF8I.js +3 -0
  168. package/dist/runtime-viewer/gruvbox-light-soft-Deemyp2j.js +127 -0
  169. package/dist/runtime-viewer/hack-DrxrxETA.js +9 -0
  170. package/dist/runtime-viewer/haml-DtaFw5Wt.js +10 -0
  171. package/dist/runtime-viewer/handlebars-DdC6ISBc.js +13 -0
  172. package/dist/runtime-viewer/haskell-D6RgJWqJ.js +2 -0
  173. package/dist/runtime-viewer/haxe-CIYKU3E4.js +2 -0
  174. package/dist/runtime-viewer/hcl-B9zco17t.js +2 -0
  175. package/dist/runtime-viewer/highlights-Dcx2AVJg.js +1342 -0
  176. package/dist/runtime-viewer/hjson-sMCeQDUn.js +2 -0
  177. package/dist/runtime-viewer/hlsl-WeeDt2Wp.js +2 -0
  178. package/dist/runtime-viewer/horizon-B8n8qcHx.js +84 -0
  179. package/dist/runtime-viewer/horizon-aRqT-seq.js +3 -0
  180. package/dist/runtime-viewer/horizon-bright-DACv8zK_.js +84 -0
  181. package/dist/runtime-viewer/horizon-bright-DEevCdc_.js +3 -0
  182. package/dist/runtime-viewer/houston-CsNpjGGD.js +194 -0
  183. package/dist/runtime-viewer/houston-Dg2jxmDJ.js +3 -0
  184. package/dist/runtime-viewer/html-CPjHaxbO.js +1 -0
  185. package/dist/runtime-viewer/html-Di2iyAsX.js +10 -0
  186. package/dist/runtime-viewer/html-derivative-Rauq0RVM.js +4 -0
  187. package/dist/runtime-viewer/http-CkmWBydm.js +13 -0
  188. package/dist/runtime-viewer/hurl-BGjXa70x.js +11 -0
  189. package/dist/runtime-viewer/hxml-Bo5YTIXF.js +4 -0
  190. package/dist/runtime-viewer/hy-C-tRiv34.js +2 -0
  191. package/dist/runtime-viewer/imba-v7ELlTL6.js +2 -0
  192. package/dist/runtime-viewer/ini-DtrnrQj2.js +2 -0
  193. package/dist/runtime-viewer/java-DVlvG-lL.js +1 -0
  194. package/dist/runtime-viewer/java-DzBtATHG.js +4 -0
  195. package/dist/runtime-viewer/javascript--K52AMOb.js +4 -0
  196. package/dist/runtime-viewer/javascript-soGjNmbd.js +1 -0
  197. package/dist/runtime-viewer/jinja-CZBKZHkS.js +4 -0
  198. package/dist/runtime-viewer/jison-Bqt-LhEh.js +4 -0
  199. package/dist/runtime-viewer/json-DN-CB1kQ.js +4 -0
  200. package/dist/runtime-viewer/json-D_yoNICS.js +1 -0
  201. package/dist/runtime-viewer/json5-BdfUTtLp.js +2 -0
  202. package/dist/runtime-viewer/jsonc-ElU8pfhL.js +1 -0
  203. package/dist/runtime-viewer/jsonc-IKox2JSV.js +2 -0
  204. package/dist/runtime-viewer/jsonl-CfuX4G6U.js +2 -0
  205. package/dist/runtime-viewer/jsonnet-Yq9KcR8E.js +2 -0
  206. package/dist/runtime-viewer/jssm-BvR7SnkK.js +2 -0
  207. package/dist/runtime-viewer/jsx-D_XQMdaK.js +4 -0
  208. package/dist/runtime-viewer/jsx-snoZUiUS.js +1 -0
  209. package/dist/runtime-viewer/julia-C8lwf2tT.js +15 -0
  210. package/dist/runtime-viewer/just-CQnb5pIW.js +17 -0
  211. package/dist/runtime-viewer/kanagawa-dragon-Cx4OB0dC.js +3 -0
  212. package/dist/runtime-viewer/kanagawa-dragon-OValCvAZ.js +146 -0
  213. package/dist/runtime-viewer/kanagawa-lotus-C1sYcneT.js +146 -0
  214. package/dist/runtime-viewer/kanagawa-lotus-TwFRI7_8.js +3 -0
  215. package/dist/runtime-viewer/kanagawa-wave-BJYCyv2X.js +146 -0
  216. package/dist/runtime-viewer/kanagawa-wave-BiOn36ux.js +3 -0
  217. package/dist/runtime-viewer/kdl-D97SquIS.js +2 -0
  218. package/dist/runtime-viewer/kotlin-EmJjLeRz.js +2 -0
  219. package/dist/runtime-viewer/kotlin-LwxBtHgj.js +1 -0
  220. package/dist/runtime-viewer/kusto-DHanPw0g.js +2 -0
  221. package/dist/runtime-viewer/langs-D4STZqO4.js +1322 -0
  222. package/dist/runtime-viewer/laserwave-CV_0dg5c.js +71 -0
  223. package/dist/runtime-viewer/laserwave-PpzazpgI.js +3 -0
  224. package/dist/runtime-viewer/latest-events-iiWwpIck-BTK0vSlR.js +3657 -0
  225. package/dist/runtime-viewer/latex-Csew0MLK.js +4 -0
  226. package/dist/runtime-viewer/lean-E61_xvh-.js +2 -0
  227. package/dist/runtime-viewer/less-Bis9Y9oi.js +2 -0
  228. package/dist/runtime-viewer/lib-B7rl8i0A.js +1712 -0
  229. package/dist/runtime-viewer/light-plus-DOInvhGO.js +133 -0
  230. package/dist/runtime-viewer/light-plus-DnhX_5eg.js +3 -0
  231. package/dist/runtime-viewer/liquid-CuxywBoN.js +13 -0
  232. package/dist/runtime-viewer/llvm-DOIFdCJg.js +2 -0
  233. package/dist/runtime-viewer/loader-NcDPTN_h.js +79 -0
  234. package/dist/runtime-viewer/log-Awf6LbyY.js +2 -0
  235. package/dist/runtime-viewer/logo-Cn9nW1nw.js +2 -0
  236. package/dist/runtime-viewer/lua-BtojQCeL.js +5 -0
  237. package/dist/runtime-viewer/luau-DHSqpUrS.js +2 -0
  238. package/dist/runtime-viewer/make-CJ4tc-MS.js +2 -0
  239. package/dist/runtime-viewer/markdown-CNVZ8ok-.js +2 -0
  240. package/dist/runtime-viewer/markdown-Co5Krewy.js +1 -0
  241. package/dist/runtime-viewer/marko-CRIKirQp.js +13 -0
  242. package/dist/runtime-viewer/material-theme-D5uz9rje.js +3 -0
  243. package/dist/runtime-viewer/material-theme-darker-DbzCDLF8.js +92 -0
  244. package/dist/runtime-viewer/material-theme-darker-Dqalv5VE.js +3 -0
  245. package/dist/runtime-viewer/material-theme-lighter-CVJ0oH_V.js +3 -0
  246. package/dist/runtime-viewer/material-theme-lighter-CytgYJOd.js +92 -0
  247. package/dist/runtime-viewer/material-theme-ocean-BgKy5sU3.js +92 -0
  248. package/dist/runtime-viewer/material-theme-ocean-CRXu0cdY.js +3 -0
  249. package/dist/runtime-viewer/material-theme-palenight-C6iiJcUB.js +3 -0
  250. package/dist/runtime-viewer/material-theme-palenight-DZK7nXDy.js +92 -0
  251. package/dist/runtime-viewer/material-theme-yF3uaT0h.js +92 -0
  252. package/dist/runtime-viewer/matlab-Dn3Clolk.js +2 -0
  253. package/dist/runtime-viewer/mdc-D0bRQBcT.js +11 -0
  254. package/dist/runtime-viewer/mdx-C5T-IRbL.js +2 -0
  255. package/dist/runtime-viewer/mdx-DM8tlqVf.js +1 -0
  256. package/dist/runtime-viewer/mermaid-C4AYlmk3.js +2 -0
  257. package/dist/runtime-viewer/min-dark-BGA1sv8W.js +3 -0
  258. package/dist/runtime-viewer/min-dark-C1XOhi4b.js +109 -0
  259. package/dist/runtime-viewer/min-light-Bi5vyNSJ.js +109 -0
  260. package/dist/runtime-viewer/min-light-CYXBjZLR.js +3 -0
  261. package/dist/runtime-viewer/mipsasm-Bwfx99oh.js +2 -0
  262. package/dist/runtime-viewer/mojo-CRl08dek.js +2 -0
  263. package/dist/runtime-viewer/monokai-D9Ylqri2.js +149 -0
  264. package/dist/runtime-viewer/monokai-i6D4lZa3.js +3 -0
  265. package/dist/runtime-viewer/moonbit-CF1zF40g.js +2 -0
  266. package/dist/runtime-viewer/move-BP-e5w2W.js +2 -0
  267. package/dist/runtime-viewer/narrat-CrPIhy6S.js +2 -0
  268. package/dist/runtime-viewer/nextflow-D_hnf_jC.js +4 -0
  269. package/dist/runtime-viewer/nextflow-groovy-BLKP0md9.js +2 -0
  270. package/dist/runtime-viewer/nginx-87WOq-zh.js +4 -0
  271. package/dist/runtime-viewer/night-owl-BIeenDB2.js +175 -0
  272. package/dist/runtime-viewer/night-owl-NpADjULE.js +3 -0
  273. package/dist/runtime-viewer/night-owl-light-CPFD_YWe.js +3 -0
  274. package/dist/runtime-viewer/night-owl-light-cj7zoq2Q.js +176 -0
  275. package/dist/runtime-viewer/nim-CDdExumk.js +19 -0
  276. package/dist/runtime-viewer/nix-D_5rVnnj.js +2 -0
  277. package/dist/runtime-viewer/nord-DtfXNtHW.js +3 -0
  278. package/dist/runtime-viewer/nord-LUKuJt-q.js +115 -0
  279. package/dist/runtime-viewer/nsis-R3iO3ArE.js +2 -0
  280. package/dist/runtime-viewer/nushell-Ctp5mfhf.js +2 -0
  281. package/dist/runtime-viewer/objective-c-DPJeQfV6.js +2 -0
  282. package/dist/runtime-viewer/objective-cpp-1I3jYeMe.js +2 -0
  283. package/dist/runtime-viewer/ocaml-DOrLjeoA.js +2 -0
  284. package/dist/runtime-viewer/odin-CyrMbkLb.js +2 -0
  285. package/dist/runtime-viewer/one-dark-pro-CoHxEOhG.js +3 -0
  286. package/dist/runtime-viewer/one-dark-pro-DJGEbENq.js +111 -0
  287. package/dist/runtime-viewer/one-light-CTMiOsB9.js +137 -0
  288. package/dist/runtime-viewer/one-light-DRcvOwa6.js +3 -0
  289. package/dist/runtime-viewer/openscad-BdifjW6z.js +2 -0
  290. package/dist/runtime-viewer/org-DqaIvCPP.js +99 -0
  291. package/dist/runtime-viewer/pascal-CWF557wL.js +2 -0
  292. package/dist/runtime-viewer/perl-CNf3SVpk.js +15 -0
  293. package/dist/runtime-viewer/php-BPw4EY34.js +17 -0
  294. package/dist/runtime-viewer/php-CftiA0NJ.js +1 -0
  295. package/dist/runtime-viewer/pierre-dark-Bdb1mzqq.js +153 -0
  296. package/dist/runtime-viewer/pierre-dark-C6-jOUHM.js +3 -0
  297. package/dist/runtime-viewer/pierre-dark-protanopia-deuteranopia-DCuPErCj.js +153 -0
  298. package/dist/runtime-viewer/pierre-dark-protanopia-deuteranopia-duePIMEV.js +3 -0
  299. package/dist/runtime-viewer/pierre-dark-soft-BAcQZBxz.js +3 -0
  300. package/dist/runtime-viewer/pierre-dark-soft-BbEG7yMD.js +153 -0
  301. package/dist/runtime-viewer/pierre-dark-tritanopia-DOpkeqXJ.js +153 -0
  302. package/dist/runtime-viewer/pierre-dark-tritanopia-D_B2XvmS.js +3 -0
  303. package/dist/runtime-viewer/pierre-dark-vibrant-Cjjp0Ett.js +3 -0
  304. package/dist/runtime-viewer/pierre-dark-vibrant-wch72KIm.js +153 -0
  305. package/dist/runtime-viewer/pierre-light-BOFVfKvu.js +153 -0
  306. package/dist/runtime-viewer/pierre-light-LcifP5tb.js +3 -0
  307. package/dist/runtime-viewer/pierre-light-protanopia-deuteranopia-BQUu7m7e.js +153 -0
  308. package/dist/runtime-viewer/pierre-light-protanopia-deuteranopia-BwLihlmJ.js +3 -0
  309. package/dist/runtime-viewer/pierre-light-soft-BOBDofkU.js +153 -0
  310. package/dist/runtime-viewer/pierre-light-soft-X5R_lHC5.js +3 -0
  311. package/dist/runtime-viewer/pierre-light-tritanopia-DHKQqobW.js +153 -0
  312. package/dist/runtime-viewer/pierre-light-tritanopia-_xB326N3.js +3 -0
  313. package/dist/runtime-viewer/pierre-light-vibrant-BQ8t4eUq.js +153 -0
  314. package/dist/runtime-viewer/pierre-light-vibrant-CpysSVqa.js +3 -0
  315. package/dist/runtime-viewer/pkl-D57k4LLs.js +2 -0
  316. package/dist/runtime-viewer/plastic-B9GSmjqY.js +3 -0
  317. package/dist/runtime-viewer/plastic-BVwrkRXf.js +124 -0
  318. package/dist/runtime-viewer/plsql-CFYD0AaB.js +2 -0
  319. package/dist/runtime-viewer/po-3OOmP4Qc.js +2 -0
  320. package/dist/runtime-viewer/poimandres-BOYLUaPj.js +3 -0
  321. package/dist/runtime-viewer/poimandres-pq5u2ANt.js +111 -0
  322. package/dist/runtime-viewer/polar-B5m1_AiD.js +2 -0
  323. package/dist/runtime-viewer/postcss-DaNMuZdy.js +2 -0
  324. package/dist/runtime-viewer/powerquery-Ds3ATR9s.js +2 -0
  325. package/dist/runtime-viewer/powershell-C6Oz4_dd.js +2 -0
  326. package/dist/runtime-viewer/prisma-RRr5YdGg.js +2 -0
  327. package/dist/runtime-viewer/prolog-DSStdQTq.js +2 -0
  328. package/dist/runtime-viewer/proto-Chh6Q5CM.js +2 -0
  329. package/dist/runtime-viewer/pug-jgpaAltF.js +11 -0
  330. package/dist/runtime-viewer/puppet-BLsUK3yq.js +2 -0
  331. package/dist/runtime-viewer/purescript-B02W4seQ.js +2 -0
  332. package/dist/runtime-viewer/python-BHaXfePs.js +2 -0
  333. package/dist/runtime-viewer/python-CqjzihlT.js +1 -0
  334. package/dist/runtime-viewer/qml-LuB2sppG.js +4 -0
  335. package/dist/runtime-viewer/qmldir-COlmh4fX.js +2 -0
  336. package/dist/runtime-viewer/qss-DQUGDdeL.js +2 -0
  337. package/dist/runtime-viewer/r-DLQ-WMyZ.js +4 -0
  338. package/dist/runtime-viewer/racket-Dh3q-EfD.js +2 -0
  339. package/dist/runtime-viewer/raku-CdFQrZmh.js +2 -0
  340. package/dist/runtime-viewer/razor-DyYB-qxm.js +9 -0
  341. package/dist/runtime-viewer/rbs-jMgpabM7.js +2 -0
  342. package/dist/runtime-viewer/red-CCCMngeG.js +3 -0
  343. package/dist/runtime-viewer/red-Dab29wid.js +153 -0
  344. package/dist/runtime-viewer/reg-BY6GKaZK.js +2 -0
  345. package/dist/runtime-viewer/regexp-DGXwIvno.js +4 -0
  346. package/dist/runtime-viewer/rel-DjgjjaPM.js +2 -0
  347. package/dist/runtime-viewer/riscv-e0swiQQT.js +2 -0
  348. package/dist/runtime-viewer/rolldown-runtime-CwxnZyOB.js +22 -0
  349. package/dist/runtime-viewer/ron-Ba9vjMyp.js +2 -0
  350. package/dist/runtime-viewer/rose-pine-B-dgSkpN.js +3 -0
  351. package/dist/runtime-viewer/rose-pine-BtbnV2yy.js +123 -0
  352. package/dist/runtime-viewer/rose-pine-dawn-Bdn8gWo3.js +123 -0
  353. package/dist/runtime-viewer/rose-pine-dawn-wnKgbnkN.js +3 -0
  354. package/dist/runtime-viewer/rose-pine-moon-Bo6Tj-LK.js +3 -0
  355. package/dist/runtime-viewer/rose-pine-moon-f0wTyd2e.js +123 -0
  356. package/dist/runtime-viewer/rosmsg-33FkgZa7.js +2 -0
  357. package/dist/runtime-viewer/rst-B4Blahjm.js +21 -0
  358. package/dist/runtime-viewer/ruby-DYURXRgy.js +1 -0
  359. package/dist/runtime-viewer/ruby-ZzNzsyR7.js +29 -0
  360. package/dist/runtime-viewer/rust-CbGaYpW0.js +2 -0
  361. package/dist/runtime-viewer/rust-DesRWqWI.js +1 -0
  362. package/dist/runtime-viewer/sandbox-ui-z5RGk327.css +2 -0
  363. package/dist/runtime-viewer/sas-y9RoKb_L.js +4 -0
  364. package/dist/runtime-viewer/sass-B4OMkGSD.js +2 -0
  365. package/dist/runtime-viewer/scala--rETK160.js +2 -0
  366. package/dist/runtime-viewer/scheme-CvovbBgk.js +2 -0
  367. package/dist/runtime-viewer/scss-DcI9-N4n.js +1 -0
  368. package/dist/runtime-viewer/scss-DopO6P6Z.js +5 -0
  369. package/dist/runtime-viewer/sdbl-BibMD0HR.js +2 -0
  370. package/dist/runtime-viewer/shaderlab-TCf2V7Bu.js +4 -0
  371. package/dist/runtime-viewer/shellscript-CMmvhdtO.js +4 -0
  372. package/dist/runtime-viewer/shellsession-C-hBmRFA.js +4 -0
  373. package/dist/runtime-viewer/shiki-CKiqbkeh.js +472 -0
  374. package/dist/runtime-viewer/slack-dark-Cdsw60PX.js +71 -0
  375. package/dist/runtime-viewer/slack-dark-awEjS_Yb.js +3 -0
  376. package/dist/runtime-viewer/slack-ochin-BKdp7_AN.js +94 -0
  377. package/dist/runtime-viewer/slack-ochin-CabfdAmS.js +3 -0
  378. package/dist/runtime-viewer/smalltalk-DxjZ-YtB.js +2 -0
  379. package/dist/runtime-viewer/smithy-tPvbDXO4.js +2 -0
  380. package/dist/runtime-viewer/snazzy-light-BYOmyMID.js +80 -0
  381. package/dist/runtime-viewer/snazzy-light-DqG5DUoz.js +3 -0
  382. package/dist/runtime-viewer/solarized-dark-DW7IHQvx.js +3 -0
  383. package/dist/runtime-viewer/solarized-dark-DbW2e0tz.js +147 -0
  384. package/dist/runtime-viewer/solarized-light-CAggmb5U.js +147 -0
  385. package/dist/runtime-viewer/solarized-light-DHtUsXC-.js +3 -0
  386. package/dist/runtime-viewer/solidity-CzRNc7l4.js +2 -0
  387. package/dist/runtime-viewer/solidity-DcnQs1tt.js +1 -0
  388. package/dist/runtime-viewer/soy-Di0gqQmR.js +4 -0
  389. package/dist/runtime-viewer/sparql-9pWczk0C.js +4 -0
  390. package/dist/runtime-viewer/splunk-mpquMt_8.js +2 -0
  391. package/dist/runtime-viewer/sql-BKQgqUK-.js +4 -0
  392. package/dist/runtime-viewer/sql-CWnPlVS6.js +1 -0
  393. package/dist/runtime-viewer/ssh-config-DcnVpK-n.js +2 -0
  394. package/dist/runtime-viewer/stata-D1hxcba5.js +4 -0
  395. package/dist/runtime-viewer/stream-tokenizer-BWCJrHj9.js +97 -0
  396. package/dist/runtime-viewer/stylus-Bk8v-7oM.js +2 -0
  397. package/dist/runtime-viewer/surrealql-D20GSlYu.js +4 -0
  398. package/dist/runtime-viewer/svelte-C1MdtiIu.js +13 -0
  399. package/dist/runtime-viewer/swift-1fpvFsbf.js +2 -0
  400. package/dist/runtime-viewer/swift-DdLix5IB.js +1 -0
  401. package/dist/runtime-viewer/synthwave-84-DEoLt5E0.js +3 -0
  402. package/dist/runtime-viewer/synthwave-84-DYyyPr4g.js +397 -0
  403. package/dist/runtime-viewer/system-verilog-9E6eQ6kG.js +2 -0
  404. package/dist/runtime-viewer/systemd-CS6cln6J.js +2 -0
  405. package/dist/runtime-viewer/talonscript-COzgILOx.js +2 -0
  406. package/dist/runtime-viewer/tasl-CrL-TM3j.js +2 -0
  407. package/dist/runtime-viewer/tcl-BK--alTs.js +2 -0
  408. package/dist/runtime-viewer/templ-DKjVFvC3.js +11 -0
  409. package/dist/runtime-viewer/terraform-BKVT4lTN.js +2 -0
  410. package/dist/runtime-viewer/tex-BMGJ-FHF.js +5 -0
  411. package/dist/runtime-viewer/themes-D2drbHm6.js +235 -0
  412. package/dist/runtime-viewer/tokyo-night-BDW-4G1n.js +3 -0
  413. package/dist/runtime-viewer/tokyo-night-CnwkSle4.js +140 -0
  414. package/dist/runtime-viewer/toml-BygInOIB.js +1 -0
  415. package/dist/runtime-viewer/toml-CXAVGmfI.js +2 -0
  416. package/dist/runtime-viewer/ts-tags-BMg-6tE-.js +37 -0
  417. package/dist/runtime-viewer/tsv-r5fpGho9.js +2 -0
  418. package/dist/runtime-viewer/tsx-CdftCu0x.js +1 -0
  419. package/dist/runtime-viewer/tsx-sVSKAISV.js +4 -0
  420. package/dist/runtime-viewer/turtle-BbiQBLu0.js +2 -0
  421. package/dist/runtime-viewer/twig-09z_6B11.js +17 -0
  422. package/dist/runtime-viewer/typescript-COKJUNHB.js +4 -0
  423. package/dist/runtime-viewer/typescript-DCN8T-9u.js +1 -0
  424. package/dist/runtime-viewer/typespec-CtiCKN_c.js +2 -0
  425. package/dist/runtime-viewer/typst-D_sC_VAT.js +119 -0
  426. package/dist/runtime-viewer/unwrapDefault-CNWG9hDr.js +5 -0
  427. package/dist/runtime-viewer/v-BdhLiTpS.js +2 -0
  428. package/dist/runtime-viewer/vala-sKTZx7aP.js +2 -0
  429. package/dist/runtime-viewer/vb-BAyoHiqq.js +2 -0
  430. package/dist/runtime-viewer/verilog-DrDp-nNs.js +2 -0
  431. package/dist/runtime-viewer/vesper-BOAJeYxj.js +3 -0
  432. package/dist/runtime-viewer/vesper-DMgHxe32.js +83 -0
  433. package/dist/runtime-viewer/vhdl-D4xoRBgL.js +2 -0
  434. package/dist/runtime-viewer/viml-C41wSeLL.js +2 -0
  435. package/dist/runtime-viewer/vitesse-black-CxSugKJt.js +3 -0
  436. package/dist/runtime-viewer/vitesse-black-D8_Gc8uG.js +183 -0
  437. package/dist/runtime-viewer/vitesse-dark-Dg-H5YXt.js +183 -0
  438. package/dist/runtime-viewer/vitesse-dark-DvdlNt-O.js +3 -0
  439. package/dist/runtime-viewer/vitesse-light-BU-cJySG.js +183 -0
  440. package/dist/runtime-viewer/vitesse-light-q0_0oW1f.js +3 -0
  441. package/dist/runtime-viewer/vue-BbJX7dLK.js +20 -0
  442. package/dist/runtime-viewer/vue-html-DvOnaPby.js +4 -0
  443. package/dist/runtime-viewer/vue-vine-NYLtCzNK.js +17 -0
  444. package/dist/runtime-viewer/vyper-D4A1KnBn.js +2 -0
  445. package/dist/runtime-viewer/wasm-CVPYyV9Y.js +2 -0
  446. package/dist/runtime-viewer/wasm-DrbRUT8q.js +3 -0
  447. package/dist/runtime-viewer/wenyan-Czq8OMMr.js +2 -0
  448. package/dist/runtime-viewer/wgsl-C_l-ZpBu.js +2 -0
  449. package/dist/runtime-viewer/wikitext-B7epQZx2.js +2 -0
  450. package/dist/runtime-viewer/wit-DswQpcNx.js +2 -0
  451. package/dist/runtime-viewer/wolfram-CSEjVwta.js +2 -0
  452. package/dist/runtime-viewer/xml-CBKvpQFb.js +1 -0
  453. package/dist/runtime-viewer/xml-Ct7jrUZw.js +5 -0
  454. package/dist/runtime-viewer/xsl-DovPFRzJ.js +4 -0
  455. package/dist/runtime-viewer/yaml-BfN4AWuy.js +4 -0
  456. package/dist/runtime-viewer/yaml-DWRq8wls.js +1 -0
  457. package/dist/runtime-viewer/zenscript-YvYHF5y3.js +2 -0
  458. package/dist/runtime-viewer/zig-BgXWauKx.js +2 -0
  459. package/dist/styles.css +189 -150
  460. package/dist/tailwind.css +156 -150
  461. package/dist/{run-CJ48hJz0.js → trace-workspace-C8dHRBDV.js} +2 -3
  462. package/dist/use-document-DCXGpk0q.d.ts +16 -0
  463. package/dist/{workbench-BozOdGCX.js → workbench-Z9wbei53.js} +4 -172
  464. package/dist/workbench.js +2 -1
  465. package/dist/{workspace-CJnBqCqj.js → workspace-CzikYt_y.js} +5 -364
  466. package/dist/workspace-files-pane-DB9Nvwh4.js +367 -0
  467. package/dist/workspace-viewer.js +44446 -0
  468. package/dist/workspace.js +2 -1
  469. package/package.json +13 -4
@@ -0,0 +1,2 @@
1
+ import { t as useDocument } from "../use-document-DCXGpk0q.js";
2
+ export { useDocument };
@@ -0,0 +1,142 @@
1
+ import { useEffect, useRef, useState } from "react";
2
+ // src/hooks/use-document.ts
3
+ /** How soon a document the server marked stale (X-Workspace-Stale) is fetched again, backing off by half each time:
4
+ * about a minute in all, the longest a plays index takes to recompose on a loaded host. */
5
+ const STALE_RETRY_MS = 2500;
6
+ const STALE_RETRIES = 6;
7
+ const NETWORK_RETRIES = 4;
8
+ /**
9
+ * Same-origin JSON with ETag revalidation. `poll` refetches every `poll` ms while set; turning polling on or off keeps
10
+ * the document. With `keepPrevious`, a new URL (a record's next digest) keeps showing the previous document until the
11
+ * new one arrives, so a run being written never blanks between versions. A response marked stale is refetched until it is current.
12
+ */
13
+ function useDocument(url, poll, keepPrevious = false, fetcher = globalThis.fetch) {
14
+ const [state, setState] = useState({
15
+ url,
16
+ fetcher,
17
+ loading: !!url
18
+ });
19
+ const etag = useRef(null);
20
+ const shown = useRef(void 0);
21
+ useEffect(() => {
22
+ const sameAccount = shown.current?.fetcher === fetcher;
23
+ if (shown.current?.url !== url || !sameAccount) {
24
+ shown.current = {
25
+ url,
26
+ fetcher
27
+ };
28
+ etag.current = null;
29
+ setState((current) => sameAccount && keepPrevious && url && current.data !== void 0 ? {
30
+ ...current,
31
+ url,
32
+ loading: true,
33
+ error: void 0
34
+ } : {
35
+ url,
36
+ fetcher,
37
+ loading: !!url
38
+ });
39
+ }
40
+ if (!url) return;
41
+ let alive = true;
42
+ let timer = 0;
43
+ let stale = false;
44
+ let retries = 0;
45
+ let dropped = 0;
46
+ let lost = false;
47
+ const controller = new AbortController();
48
+ const load = async () => {
49
+ lost = false;
50
+ try {
51
+ const response = await fetcher(url, {
52
+ credentials: "same-origin",
53
+ cache: "no-store",
54
+ signal: controller.signal,
55
+ headers: etag.current ? { "If-None-Match": etag.current } : {}
56
+ });
57
+ if (!alive) return;
58
+ dropped = 0;
59
+ stale = response.headers.get("X-Workspace-Stale") === "1";
60
+ const failing = response.headers.get("X-Workspace-Compose-Error") ?? void 0;
61
+ if (!stale && (response.ok || response.status === 304)) retries = 0;
62
+ if (response.status === 304) {
63
+ setState((current) => !current.error && current.stale === stale && current.failing === failing ? current : {
64
+ ...current,
65
+ loading: false,
66
+ error: void 0,
67
+ status: 304,
68
+ stale,
69
+ failing
70
+ });
71
+ return;
72
+ }
73
+ if (!response.ok) {
74
+ let reason = `HTTP ${response.status}`;
75
+ try {
76
+ const body = await response.json();
77
+ if (body && typeof body === "object" && typeof body.reason === "string") reason = body.reason;
78
+ } catch {}
79
+ if (!alive) return;
80
+ const refused = [
81
+ 401,
82
+ 403,
83
+ 404
84
+ ].includes(response.status);
85
+ if (refused) etag.current = null;
86
+ setState((current) => ({
87
+ ...refused ? {
88
+ url,
89
+ fetcher
90
+ } : current,
91
+ loading: false,
92
+ error: reason,
93
+ status: response.status
94
+ }));
95
+ return;
96
+ }
97
+ etag.current = response.headers.get("ETag");
98
+ const data = await response.json();
99
+ if (alive) setState({
100
+ url,
101
+ fetcher,
102
+ data,
103
+ loading: false,
104
+ status: response.status,
105
+ stale,
106
+ failing
107
+ });
108
+ } catch (error) {
109
+ if (alive && !controller.signal.aborted && dropped < NETWORK_RETRIES) lost = true;
110
+ else if (alive && !controller.signal.aborted) setState((current) => ({
111
+ ...current,
112
+ loading: false,
113
+ error: error instanceof Error ? error.message : "Request failed"
114
+ }));
115
+ } finally {
116
+ if (alive && lost) {
117
+ timer = window.setTimeout(load, 1e3 * 2 ** dropped);
118
+ dropped += 1;
119
+ } else if (alive && stale && retries < STALE_RETRIES) {
120
+ timer = window.setTimeout(load, STALE_RETRY_MS * 1.5 ** retries);
121
+ retries += 1;
122
+ } else if (alive && poll) timer = window.setTimeout(load, poll);
123
+ }
124
+ };
125
+ load();
126
+ return () => {
127
+ alive = false;
128
+ controller.abort();
129
+ window.clearTimeout(timer);
130
+ };
131
+ }, [
132
+ url,
133
+ poll,
134
+ fetcher
135
+ ]);
136
+ return state.fetcher === fetcher && (keepPrevious || state.url === url) ? state : {
137
+ url,
138
+ fetcher,
139
+ loading: !!url
140
+ };
141
+ }
142
+ export { useDocument };
package/dist/hooks.d.ts CHANGED
@@ -1,6 +1,7 @@
1
1
  import { n as UsePtySessionReturn, r as usePtySession, t as UsePtySessionOptions } from "./use-pty-session-DSgtQyYX.js";
2
2
  import { t as Session } from "./sidecar-CNP4zXop.js";
3
3
  import { a as SendMessageOptions, c as SessionStreamError, d as useSessionStream, i as SESSION_STREAM_RECONNECT_DELAY_MS, l as UseSessionStreamOptions, n as UseSidecarAuthOptions, o as SessionDegradation, r as useSidecarAuth, s as SessionInfo, t as SidecarAuth, u as UseSessionStreamResult } from "./use-sidecar-auth-CPevSSEj.js";
4
+ import { t as useDocument } from "./use-document-DCXGpk0q.js";
4
5
  import { AgentStreamEvent, AppendUserMessageOptions, ApplySdkEventOptions, AuthUser, AutomationStreamEvent, BeginAssistantMessageOptions, BotStreamEvent, CompleteAssistantMessageOptions, ConnectionState, RealtimeSessionOptions, RealtimeSessionRegistry, RealtimeSessionRegistryProps, RealtimeSessionState, RealtimeSessionTarget, SSEEvent, SdkSessionAttachment, SdkSessionEvent, SdkSessionSeed, TaskStreamEvent, TerminalStreamEvent, UseAuthOptions, UseAuthResult, UseRunGroupsOptions, UseSSEStreamOptions, UseSSEStreamResult, UseSdkSessionOptions, UseSdkSessionReturn, UseToolCallStreamReturn, createAuthFetcher, useApiKey, useAuth, useAutoScroll, useDropdownMenu, useLiveTime, useRealtimeSession, useRunCollapseState, useRunGroups, useSSEStream, useSdkSession, useToolCallStream } from "@tangle-network/ui/hooks";
5
6
  /**
6
7
  * Sandbox-level telemetry collected by the sidecar from cgroup v2
@@ -138,4 +139,4 @@ export declare function useRenameSession(apiUrl: string, token: string | null):
138
139
  sessionId: string;
139
140
  title: string;
140
141
  }, unknown>;
141
- export { type AgentStreamEvent, type AppendUserMessageOptions, type ApplySdkEventOptions, type AuthUser, type AutomationStreamEvent, type BeginAssistantMessageOptions, type BotStreamEvent, type CompleteAssistantMessageOptions, type ConnectionState, type RealtimeSessionOptions, RealtimeSessionRegistry, type RealtimeSessionRegistryProps, type RealtimeSessionState, type RealtimeSessionTarget, SESSION_STREAM_RECONNECT_DELAY_MS, type SSEEvent, type SdkSessionAttachment, type SdkSessionEvent, type SdkSessionSeed, SendMessageOptions, SessionDegradation, SessionInfo, SessionStreamError, SidecarAuth, type TaskStreamEvent, type TerminalStreamEvent, type UseAuthOptions, type UseAuthResult, UsePtySessionOptions, UsePtySessionReturn, type UseRunGroupsOptions, type UseSSEStreamOptions, type UseSSEStreamResult, type UseSdkSessionOptions, type UseSdkSessionReturn, UseSessionStreamOptions, UseSessionStreamResult, UseSidecarAuthOptions, type UseToolCallStreamReturn, createAuthFetcher, useApiKey, useAuth, useAutoScroll, useDropdownMenu, useLiveTime, usePtySession, useRealtimeSession, useRunCollapseState, useRunGroups, useSSEStream, useSdkSession, useSessionStream, useSidecarAuth, useToolCallStream };
142
+ export { type AgentStreamEvent, type AppendUserMessageOptions, type ApplySdkEventOptions, type AuthUser, type AutomationStreamEvent, type BeginAssistantMessageOptions, type BotStreamEvent, type CompleteAssistantMessageOptions, type ConnectionState, type RealtimeSessionOptions, RealtimeSessionRegistry, type RealtimeSessionRegistryProps, type RealtimeSessionState, type RealtimeSessionTarget, SESSION_STREAM_RECONNECT_DELAY_MS, type SSEEvent, type SdkSessionAttachment, type SdkSessionEvent, type SdkSessionSeed, SendMessageOptions, SessionDegradation, SessionInfo, SessionStreamError, SidecarAuth, type TaskStreamEvent, type TerminalStreamEvent, type UseAuthOptions, type UseAuthResult, UsePtySessionOptions, UsePtySessionReturn, type UseRunGroupsOptions, type UseSSEStreamOptions, type UseSSEStreamResult, type UseSdkSessionOptions, type UseSdkSessionReturn, UseSessionStreamOptions, UseSessionStreamResult, UseSidecarAuthOptions, type UseToolCallStreamReturn, createAuthFetcher, useApiKey, useAuth, useAutoScroll, useDocument, useDropdownMenu, useLiveTime, usePtySession, useRealtimeSession, useRunCollapseState, useRunGroups, useSSEStream, useSdkSession, useSessionStream, useSidecarAuth, useToolCallStream };
package/dist/hooks.js CHANGED
@@ -1,5 +1,6 @@
1
1
  import { t as usePtySession } from "./use-pty-session-BHVQlSs-.js";
2
2
  import { i as useSessionStream, n as SESSION_STREAM_RECONNECT_DELAY_MS, r as SessionStreamError, t as useSidecarAuth } from "./use-sidecar-auth-D9BrWCg1.js";
3
+ import { useDocument } from "./hooks/use-document.js";
3
4
  import * as React$1 from "react";
4
5
  import { RealtimeSessionRegistry, createAuthFetcher, useApiKey, useAuth, useAutoScroll, useDropdownMenu, useLiveTime, useRealtimeSession, useRunCollapseState, useRunGroups, useSSEStream, useSdkSession, useToolCallStream } from "@tangle-network/ui/hooks";
5
6
  import { useMutation, useQuery, useQueryClient } from "@tanstack/react-query";
@@ -230,4 +231,4 @@ function useRenameSession(apiUrl, token) {
230
231
  }
231
232
  });
232
233
  }
233
- export { RealtimeSessionRegistry, SESSION_STREAM_RECONNECT_DELAY_MS, SessionStreamError, createAuthFetcher, useApiKey, useAuth, useAutoScroll, useCreateSession, useDeleteSession, useDropdownMenu, useLiveTime, usePtySession, useRealtimeSession, useRenameSession, useRunCollapseState, useRunGroups, useSSEStream, useSandboxMetrics, useSdkSession, useSessionStream, useSessions, useSidecarAuth, useToolCallStream };
234
+ export { RealtimeSessionRegistry, SESSION_STREAM_RECONNECT_DELAY_MS, SessionStreamError, createAuthFetcher, useApiKey, useAuth, useAutoScroll, useCreateSession, useDeleteSession, useDocument, useDropdownMenu, useLiveTime, usePtySession, useRealtimeSession, useRenameSession, useRunCollapseState, useRunGroups, useSSEStream, useSandboxMetrics, useSdkSession, useSessionStream, useSessions, useSidecarAuth, useToolCallStream };
@@ -1,7 +1,8 @@
1
1
  import { l as AgentGraphNode, u as AgentGraphProps$1 } from "./AgentGraph-P7l-jZwo.js";
2
+ import { t as AgentStreamOpener } from "./agent-stream-CBZ2fXJ2.js";
2
3
  import "./index-DRLVHl-o.js";
3
4
  import { ReactNode } from "react";
4
- import { ApprovalCard, ApprovalCardProps, ApprovalDiffFile, ApprovalDiffSummary, ApprovalPlanStep, ExpandedToolDetail as ExpandedToolDetail$1, ExpandedToolDetailProps, FeedSegment, InlineThinkingItem as InlineThinkingItem$1, InlineThinkingItemProps, InlineToolItem, InlineToolItemProps, LiveDuration, RunGroup, RunGroupProps, RunPhase, RunPhaseList, RunRowShell as RunRowShell$1, RunRowShellProps, RunRowStatus, RunRowStatusDot, RunStatus, RunStatusIcon as RunStatusIcon$1, RunStatusIconProps, StatusMeta, TaskList, TaskListItem, TaskListProps, TaskStatus, ToolCallData, ToolCallData as ToolCallData$1, ToolCallFeed, ToolCallFeedProps, ToolCallStatus, ToolCallType, parseToolEvent, runStatus as runStatus$1, showsTaskPriority, statusMeta as statusMeta$1, taskProgress, taskStatus } from "@tangle-network/ui/run";
5
+ import { ApprovalCard, ApprovalCardProps, ApprovalDiffFile, ApprovalDiffSummary, ApprovalPlanStep, ExpandedToolDetail as ExpandedToolDetail$1, ExpandedToolDetailProps, FeedSegment, InlineThinkingItem as InlineThinkingItem$1, InlineThinkingItemProps, InlineToolItem, InlineToolItemProps, LiveDuration, RunGroup, RunGroupProps, RunPhase, RunPhaseList, RunRowShell as RunRowShell$1, RunRowShellProps, RunRowStatus, RunRowStatusDot, RunStatus, RunStatusIcon as RunStatusIcon$1, RunStatusIconProps, StatusMeta, TaskList, TaskListItem, TaskListProps, TaskStatus, ToolCallData as ToolCallData$1, ToolCallFeed, ToolCallFeedProps, ToolCallStatus, ToolCallType, parseToolEvent, runStatus as runStatus$1, showsTaskPriority, statusMeta as statusMeta$1, taskProgress, taskStatus } from "@tangle-network/ui/run";
5
6
  import { FlowWaterfallProps } from "@tangle-network/charts/react";
6
7
  import { LatestEvents, LatestEventsProps } from "@tangle-network/charts/react/agent-graph";
7
8
  import { FlowMarker, FlowSpan, FlowTrace } from "@tangle-network/charts";
@@ -14,70 +15,6 @@ type TraceWaterfallProps = FlowWaterfallProps;
14
15
  * `traces convert` contract. Import `@tangle-network/charts/react/flow-waterfall.css` once.
15
16
  */
16
17
  declare function TraceWaterfall({ renderIcon, ...props }: TraceWaterfallProps): import("react").JSX.Element;
17
- /** Host-owned authenticated streams keep their own reconnect and session lifecycle. */
18
- interface AgentStreamSource {
19
- addEventListener(type: string, listener: (event: MessageEvent<string>) => void): void;
20
- close(): void;
21
- }
22
- type AgentStreamOpener = (url: string, onLiveChange?: (live: boolean) => void) => AgentStreamSource;
23
- /** One row of an agent's message stream (tangle-tools `/api/discovery/runs/<run>/agents/<agent>/stream`). */
24
- interface AgentStreamRow {
25
- seq: number;
26
- /** ISO time the event happened. */
27
- at: string;
28
- stream?: string;
29
- attempt?: number;
30
- event: {
31
- kind: "text" | "reasoning" | "tool-call" | "tool-result" | "user" | "notice" | (string & {});
32
- text?: string;
33
- /** A notice's origin: the agent's `delegated-input`, its `recorded-result`, or a capture fact such as `capture-unavailable`. */
34
- provenance?: string;
35
- toolCallId?: string;
36
- toolName?: string;
37
- args?: unknown;
38
- result?: unknown;
39
- };
40
- }
41
- /** A transcript entry with the time it began, so a time cursor can show the conversation as of any moment. */
42
- type AgentTranscriptEntry = {
43
- id: string;
44
- at: number;
45
- kind: "message";
46
- role: "assistant" | "user";
47
- content: string;
48
- sealed?: true;
49
- } | {
50
- id: string;
51
- at: number;
52
- kind: "reasoning";
53
- text: string;
54
- } | {
55
- id: string;
56
- at: number;
57
- kind: "tool";
58
- call: ToolCallData;
59
- } | {
60
- id: string;
61
- at: number;
62
- kind: "notice";
63
- text: string;
64
- };
65
- interface AgentStreamState {
66
- generation?: string | number;
67
- entries: AgentTranscriptEntry[];
68
- lastSeq: number;
69
- /** The agent is still producing output. */
70
- alive: boolean;
71
- /** Why the stream shows nothing new; a reconnect that delivers rows clears it. */
72
- error?: string;
73
- }
74
- /** Fold stream rows into transcript entries: text of one turn merges, a tool call becomes a row its result completes. */
75
- declare function foldAgentRows(entries: AgentTranscriptEntry[], rows: readonly AgentStreamRow[]): AgentTranscriptEntry[];
76
- /**
77
- * Follow one agent's message stream over Server-Sent Events: `rows`, `reset` and `end` events, reconnecting with
78
- * `?after=<lastSeq>` when the server closes the connection, so a long turn streams without gaps or repeats.
79
- */
80
- declare function useAgentStream(url: string | undefined, openEventSource?: AgentStreamOpener): AgentStreamState;
81
18
  /** A moment on the run's event track: a release, a check verdict, a spawn, a crash or a steer. */
82
19
  interface TraceEvent extends FlowMarker {}
83
20
  interface TraceWorkspaceProps extends Omit<TraceWaterfallProps, "trace" | "markers" | "onSelect" | "onTimeChange" | "selectedId" | "onDeselect" | "graph" | "latestEvents"> {
@@ -119,4 +56,4 @@ interface TraceWorkspaceProps extends Omit<TraceWaterfallProps, "trace" | "marke
119
56
  * every panel shows what was true at the cursor, and the conversation shows what had been said by then.
120
57
  */
121
58
  declare function TraceWorkspace({ trace, streamUrl, openEventSource, events, onTimeChange, files, scoreboard, selectedAgentId, conversationOpen, onSelectAgent, agentCards, agentGraph, className, ...waterfall }: TraceWorkspaceProps): import("react").JSX.Element;
122
- export { TraceWaterfall as $, ToolCallData$1 as A, taskStatus as B, RunStatusIcon$1 as C, TaskListItem as D, TaskList as E, parseToolEvent as F, TraceWorkspaceProps as G, LatestEventsProps as H, runStatus$1 as I, AgentStreamSource as J, AgentStreamOpener as K, showsTaskPriority as L, ToolCallFeedProps as M, ToolCallStatus as N, TaskListProps as O, ToolCallType as P, useAgentStream as Q, statusMeta$1 as R, RunStatus as S, StatusMeta as T, TraceEvent as U, LatestEvents as V, TraceWorkspace as W, AgentTranscriptEntry as X, AgentStreamState as Y, foldAgentRows as Z, RunPhaseList as _, ApprovalPlanStep as a, RunRowStatus as b, FeedSegment as c, InlineToolItem as d, TraceWaterfallProps as et, InlineToolItemProps as f, RunPhase as g, RunGroupProps as h, ApprovalDiffSummary as i, ToolCallFeed as j, TaskStatus as k, InlineThinkingItem$1 as l, RunGroup as m, ApprovalCardProps as n, ExpandedToolDetail$1 as o, LiveDuration as p, AgentStreamRow as q, ApprovalDiffFile as r, ExpandedToolDetailProps as s, ApprovalCard as t, traceSpanMark as tt, InlineThinkingItemProps as u, RunRowShell$1 as v, RunStatusIconProps as w, RunRowStatusDot as x, RunRowShellProps as y, taskProgress as z };
59
+ export { ToolCallData$1 as A, taskStatus as B, RunStatusIcon$1 as C, TaskListItem as D, TaskList as E, parseToolEvent as F, TraceWorkspaceProps as G, LatestEventsProps as H, runStatus$1 as I, traceSpanMark as J, TraceWaterfall as K, showsTaskPriority as L, ToolCallFeedProps as M, ToolCallStatus as N, TaskListProps as O, ToolCallType as P, statusMeta$1 as R, RunStatus as S, StatusMeta as T, TraceEvent as U, LatestEvents as V, TraceWorkspace as W, RunPhaseList as _, ApprovalPlanStep as a, RunRowStatus as b, FeedSegment as c, InlineToolItem as d, InlineToolItemProps as f, RunPhase as g, RunGroupProps as h, ApprovalDiffSummary as i, ToolCallFeed as j, TaskStatus as k, InlineThinkingItem$1 as l, RunGroup as m, ApprovalCardProps as n, ExpandedToolDetail$1 as o, LiveDuration as p, TraceWaterfallProps as q, ApprovalDiffFile as r, ExpandedToolDetailProps as s, ApprovalCard as t, InlineThinkingItemProps as u, RunRowShell$1 as v, RunStatusIconProps as w, RunRowStatusDot as x, RunRowShellProps as y, taskProgress as z };
package/dist/index.d.ts CHANGED
@@ -16,7 +16,8 @@ import { C as ChangedFile, D as SandboxArtifactTerminal, E as SandboxArtifactPan
16
16
  import { n as DiffViewProps, t as DiffView } from "./diff-view-DDHWtR6X.js";
17
17
  import { a as PreviewReadiness, i as PreviewAccess, n as EmbeddedAppView, r as EmbeddedAppViewProps, t as EmbeddedApp } from "./embedded-app-view-Ta5GI4hx.js";
18
18
  import { OPENUI_NODE_JSON_SCHEMA, OPENUI_NODE_TYPES, OpenUIAction, OpenUIActionsNode, OpenUIArtifactRenderer, OpenUIArtifactRendererProps, OpenUIBadgeNode, OpenUICardNode, OpenUICodeNode, OpenUIComponentNode, OpenUIGridNode, OpenUIHeadingNode, OpenUIKeyValueNode, OpenUIMarkdownNode, OpenUIPrimitive, OpenUISchemaIssue, OpenUISchemaValidation, OpenUISeparatorNode, OpenUIStackNode, OpenUIStatNode, OpenUITableNode, OpenUITextNode, findUnsupportedOpenUINode, validateOpenUIJsonArtifact, validateOpenUIJsonNode } from "./openui.js";
19
- import { $ as TraceWaterfall, A as ToolCallData, B as taskStatus, C as RunStatusIcon, D as TaskListItem, E as TaskList, F as parseToolEvent, G as TraceWorkspaceProps, H as LatestEventsProps, I as runStatus, J as AgentStreamSource, K as AgentStreamOpener, L as showsTaskPriority, M as ToolCallFeedProps, N as ToolCallStatus, O as TaskListProps, P as ToolCallType, Q as useAgentStream, R as statusMeta, S as RunStatus, T as StatusMeta, U as TraceEvent, V as LatestEvents, W as TraceWorkspace, X as AgentTranscriptEntry, Y as AgentStreamState, Z as foldAgentRows, _ as RunPhaseList, a as ApprovalPlanStep, b as RunRowStatus, c as FeedSegment, d as InlineToolItem, et as TraceWaterfallProps, f as InlineToolItemProps, g as RunPhase, h as RunGroupProps, i as ApprovalDiffSummary, j as ToolCallFeed, k as TaskStatus, l as InlineThinkingItem, m as RunGroup, n as ApprovalCardProps, o as ExpandedToolDetail, p as LiveDuration, q as AgentStreamRow, r as ApprovalDiffFile, s as ExpandedToolDetailProps, t as ApprovalCard, tt as traceSpanMark, u as InlineThinkingItemProps, v as RunRowShell, w as RunStatusIconProps, x as RunRowStatusDot, y as RunRowShellProps, z as taskProgress } from "./index-BtR5Sc3u.js";
19
+ import { A as ToolCallData, B as taskStatus, C as RunStatusIcon, D as TaskListItem, E as TaskList, F as parseToolEvent, G as TraceWorkspaceProps, H as LatestEventsProps, I as runStatus, J as traceSpanMark, K as TraceWaterfall, L as showsTaskPriority, M as ToolCallFeedProps, N as ToolCallStatus, O as TaskListProps, P as ToolCallType, R as statusMeta, S as RunStatus, T as StatusMeta, U as TraceEvent, V as LatestEvents, W as TraceWorkspace, _ as RunPhaseList, a as ApprovalPlanStep, b as RunRowStatus, c as FeedSegment, d as InlineToolItem, f as InlineToolItemProps, g as RunPhase, h as RunGroupProps, i as ApprovalDiffSummary, j as ToolCallFeed, k as TaskStatus, l as InlineThinkingItem, m as RunGroup, n as ApprovalCardProps, o as ExpandedToolDetail, p as LiveDuration, q as TraceWaterfallProps, r as ApprovalDiffFile, s as ExpandedToolDetailProps, t as ApprovalCard, u as InlineThinkingItemProps, v as RunRowShell, w as RunStatusIconProps, x as RunRowStatusDot, y as RunRowShellProps, z as taskProgress } from "./index-BnaVprN6.js";
20
+ import { a as AgentTranscriptEntry, i as AgentStreamState, n as AgentStreamRow, o as foldAgentRows, r as AgentStreamSource, s as useAgentStream, t as AgentStreamOpener } from "./agent-stream-CBZ2fXJ2.js";
20
21
  import { a as EventFlag, c as indexRecord, d as ConversationNode, f as ConversationRecord, i as ConversationProps, l as model_d_exports, n as withPrompts, o as RecordIndex, r as Conversation, s as ToolCall, t as VirtualList, u as ConversationEvent } from "./index-DRLVHl-o.js";
21
22
  import { n as filterFileNodes, t as fileTreeFromPaths } from "./index-CrN4d8gd.js";
22
23
  import { ActiveProjectActivity, ActiveSessionActivityOptions, ActiveSessionConnectionOptions, ActiveSessionConnectionState, ActiveSessionReconnectState, ActiveSessionRecord, ActiveSessionStatus, ActiveSessionTransportMode, ActiveSessionsState, ChatSession, RegisterActiveSessionOptions, SessionProjectKey, activeSessionsAtom, addMessage, addParts, bumpActiveSessionActivity, clearChat, connectSession, disconnectSession, getActiveSession, getAllActiveSessions, getAllProjectActivity, getSessionsByActivity, getSessionsForNavbar, getSessionsForProject, getTotalRunningSessionCount, hasBackgroundRunningSessions, isStreamingAtom, messagesAtom, partMapAtom, registerActiveSession, resetActiveSessions, sessionAtom, setActiveSessionAttention, setActiveSessionConnection, setActiveSessionError, setActiveSessionRunning, setForegroundActiveSession, unregisterActiveSession, updateActiveSessionMeta, updatePart, useActiveSession, useActiveSessions, useActiveSessionsState, useHasBackgroundRunningSessions, useNavbarSessions, useProjectActivity, useProjectSessions, useSessionsByActivity, useTotalRunningSessions } from "./stores.js";
package/dist/index.js CHANGED
@@ -1,19 +1,22 @@
1
1
  import { $ as ContextMenuShortcut, $n as TabsContent, $t as Popover, A as Card, An as SheetHeader, Ar as seriesAreaPath, At as DropdownMenuSubTrigger, B as CollapsibleContent, Bn as StatCard, Br as TangleKnot, Bt as HoverCardHeader, C as BreadcrumbLink, Cn as SettingsRow, Cr as fieldMessageId, Ct as DropdownMenuPortal, D as Button, Dn as SheetContent, Dr as normalizeSeries, Dt as DropdownMenuShortcut, E as BreadcrumbSeparator, En as SheetClose, Er as localToday, Et as DropdownMenuSeparator, F as CardTitle, Fn as SidebarDropZone, Fr as toneFor, Ft as Heading, G as ContextMenuContent, Gn as TableBody, Gt as Input, H as ComplianceBadge, Hn as Switch, Ht as HoverCardTrigger, I as Checkbox, In as Skeleton, Ir as useTheme, It as HelpText, J as ContextMenuLabel, Jn as TableFooter, Jt as MetricChart, K as ContextMenuGroup, Kn as TableCaption, Kt as Label, L as Chip, Ln as SkeletonCard, Lr as useToast, Lt as HoverCard, M as CardDescription, Mn as SheetPortal, Mr as seriesLinePath, Mt as EmptyState, N as CardFooter, Nn as SheetTitle, Nr as seriesMean, Nt as Field, O as CATEGORY_TONES, On as SheetDescription, Or as parseCalendarDate, Ot as DropdownMenuSub, P as CardHeader, Pn as SheetTrigger, Pr as seriesScale, Pt as FilterField, Q as ContextMenuSeparator, Qn as Tabs, Qt as Pagination, R as CodeBlock, Rn as SkeletonTable, Rr as SectionTitle, Rt as HoverCardContent, S as BreadcrumbItem, Sn as SettingsNote, Sr as buttonVariants, St as DropdownMenuLabel, T as BreadcrumbPage, Tn as Sheet, Tr as initialsOf, Tt as DropdownMenuRadioItem, U as ContextMenu, Un as TONE_CLASSES, Ut as IconTile, V as CollapsibleTrigger, Vn as StatusPill, Vt as HoverCardTitle, W as ContextMenuCheckboxItem, Wn as Table, Wt as InlineCode, X as ContextMenuRadioGroup, Xn as TableHeader, Xt as PageHeader, Y as ContextMenuPortal, Yn as TableHead, Yt as MetricStrip, Z as ContextMenuRadioItem, Zn as TableRow, Zt as PageShell, _ as AvatarFallback, _n as SelectValue, _r as TooltipTrigger, _t as DropdownMenu, a as AlertDialogCancel, an as RadioGroup, ar as TerminalInput, at as DatePicker, b as Breadcrumb, bn as SettingsList, br as WizardStep, bt as DropdownMenuGroup, c as AlertDialogFooter, cn as Select, cr as Textarea, ct as DialogContent, d as AlertDialogPortal, dn as SelectItem, dr as ToastContainer, dt as DialogHeader, en as PopoverAnchor, er as TabsList, et as ContextMenuSub, f as AlertDialogTitle, fn as SelectLabel, fr as ToastProvider, ft as DialogOverlay, g as Avatar, gn as SelectTrigger, gr as TooltipProvider, gt as DropZone, h as ArtifactPane, hn as SelectSeparator, hr as TooltipContent, ht as DialogTrigger, i as AlertDialogAction, in as Progress, ir as TerminalDisplay, it as CopyButton, j as CardContent, jn as SheetOverlay, jr as seriesExtent, jt as DropdownMenuTrigger, k as Calendar, kn as SheetFooter, kr as periodDelta, kt as DropdownMenuSubContent, l as AlertDialogHeader, ln as SelectContent, lr as ThemeToggle, lt as DialogDescription, m as AlertTitle, mn as SelectScrollUpButton, mr as Tooltip, mt as DialogTitle, n as AlertDescription, nn as PopoverContent, nr as Tag, nt as ContextMenuSubTrigger, o as AlertDialogContent, on as RadioGroupItem, or as TerminalLine, ot as Dialog, p as AlertDialogTrigger, pn as SelectScrollDownButton, pr as Toolbar, pt as DialogPortal, q as ContextMenuItem, qn as TableCell, qt as Metric, r as AlertDialog, rn as PopoverTrigger, rr as TerminalCursor, rt as ContextMenuTrigger, s as AlertDialogDescription, sn as SegmentedControl, sr as TextShimmer, st as DialogClose, t as Alert, tn as PopoverClose, tr as TabsTrigger, tt as ContextMenuSubContent, u as AlertDialogOverlay, un as SelectGroup, ur as TimeSelect, ut as DialogFooter, v as AvatarImage, vn as Separator, vr as UploadProgress, vt as DropdownMenuCheckboxItem, w as BreadcrumbList, wn as SettingsSection, wr as formatCalendarDate, wt as DropdownMenuRadioGroup, x as BreadcrumbEllipsis, xn as SettingsListItem, xr as badgeVariants, xt as DropdownMenuItem, y as Badge, yn as SeriesSparkline, yr as Wizard, yt as DropdownMenuContent, z as Collapsible, zn as Slider, zr as Logo, zt as HoverCardDescription } from "./primitives-znfPK9NP.js";
2
2
  import { i as WorkspacePaneHeader, n as SHELL_INSET_GUTTER, r as ShellHeader, t as SHELL_HEADER_HEIGHT } from "./shell-header-CwqDzC4I.js";
3
- import { C as WorkspaceSurfaceTitle, S as WorkspaceSurfaceFrame, _ as StatusBar, a as TaskBoard, b as WorkspaceLayout, c as createShellShouldRevalidate, d as SESSION_CREATED_EVENT, f as dispatchSessionCreated, g as TerminalPanel, h as RuntimePane, i as CalendarView, l as shellShouldRevalidate, m as formatRelativeAge, n as WorkspaceFilesPane, o as SandboxWorkbench, p as useOptimisticSessionItems, r as ApprovalQueue, s as WorkspaceArtifactView, u as SessionSidebar, v as StatusBanner, x as WorkspaceSurface, y as DirectoryPane } from "./workspace-CJnBqCqj.js";
3
+ import { S as WorkspaceSurfaceTitle, _ as StatusBanner, a as SandboxWorkbench, b as WorkspaceSurface, c as shellShouldRevalidate, d as dispatchSessionCreated, f as useOptimisticSessionItems, g as StatusBar, h as TerminalPanel, i as TaskBoard, l as SessionSidebar, m as RuntimePane, n as ApprovalQueue, o as WorkspaceArtifactView, p as formatRelativeAge, r as CalendarView, s as createShellShouldRevalidate, u as SESSION_CREATED_EVENT, v as DirectoryPane, x as WorkspaceSurfaceFrame, y as WorkspaceLayout } from "./workspace-CzikYt_y.js";
4
4
  import { i as VaultTree, n as filterFileNodes, r as VAULT_TREE_CHILD_PAGE, t as fileTreeFromPaths } from "./tree-data-C8CNt4WE.js";
5
+ import { t as WorkspaceFilesPane } from "./workspace-files-pane-DB9Nvwh4.js";
5
6
  import { $ as useSidebar, A as parseInsufficientBalance, B as SidebarPanel, C as SandboxStatusPill, D as ResourceMeter, E as ResourceSnapshot, F as RailHeader, G as SidebarRailNav, H as SidebarPanelHeader, I as RailModeButton, J as SIDEBAR_PANEL_WIDTH, K as RailTooltip, L as RailSeparator, M as RailButton, N as RailExpandable, O as INSUFFICIENT_BALANCE_CODE, P as RailFlyout, Q as SidebarProvider, R as Sidebar, S as SANDBOX_STATUS, T as ActivityFeed, U as SidebarRail, V as SidebarPanelContent, W as SidebarRailFooter, X as SIDEBAR_RAIL_WIDTH, Y as SIDEBAR_RAIL_LABELED_WIDTH, Z as SIDEBAR_TOTAL_WIDTH, _ as BackendSelector, a as PortsList, b as SandboxCard, c as SystemLogsViewer, d as DashboardLayout, f as HARNESS_OPTIONS, g as HarnessLogo, h as HARNESS_BRAND, i as TemplateCard, j as ProfileAvatar, k as OutOfCreditsModal, l as MetricAreaChart, m as chatCapableHarnesses, n as SnapshotList, o as GitPanel, p as HarnessPicker, q as SIDEBAR_MOBILE_WIDTH, r as ProcessList, s as UsageSummary, t as PromoBanner, u as SidebarLayout, v as SandboxTable, w as sandboxStatus, x as canAdminSandbox, y as NewSandboxCard, z as SidebarContent } from "./dashboard-exTS8tta.js";
6
7
  import { i as modelBrandFor, n as ProviderMark, r as canonicalModelId, t as ModelBrandStack } from "./model-brand-BQlarCIo.js";
7
8
  import { a as formatPrice, i as PricingPage, n as SandboxPageShell, o as BillingDashboard, r as UsageChart, t as DashboardPageHeader } from "./page-layout-CuOpvZys.js";
8
9
  import { t as usePtySession } from "./use-pty-session-BHVQlSs-.js";
9
- import { a as DiffStatsBadge, c as PillTabs, i as FileBreadcrumb, n as SandboxArtifactPane, o as GitStatusBadge, r as CodeView, s as PanelHeader, t as ChangesPane } from "./workbench-BozOdGCX.js";
10
+ import { a as PanelHeader, i as GitStatusBadge, n as SandboxArtifactPane, o as PillTabs, r as DiffStatsBadge, t as ChangesPane } from "./workbench-Z9wbei53.js";
10
11
  import { CSV_PREVIEW_ROW_LIMIT, FileArtifactPane, FileCard, FileList, FilePreview, FileTabs, FileTree, PdfViewer, RichFileTree, configurePdfViewer, detectFileFormat, fileExtension, filterFileTree, getCodeLanguage, getFormatLabel, getSyntaxLanguage, parseCsv, resolveFilePreviewKind } from "./files.js";
11
12
  import { a as CodeSurface, i as CODE_THEME, n as buildUnifiedPatch, r as computeDiffStats, t as DiffView } from "./diff-view-B9mNeTLF.js";
13
+ import { n as FileBreadcrumb, t as CodeView } from "./code-view-BlhCS1SD.js";
12
14
  import { n as PreviewView, t as EmbeddedAppView } from "./embedded-app-view-DXsoPale.js";
13
15
  import { OPENUI_NODE_JSON_SCHEMA, OPENUI_NODE_TYPES, OpenUIArtifactRenderer, findUnsupportedOpenUINode, validateOpenUIJsonArtifact, validateOpenUIJsonNode } from "./openui.js";
14
16
  import { S as ReasoningLevelPicker, _ as modelProvider, a as ChatMessage, b as DEFAULT_REASONING_LEVEL_OPTIONS, c as SpeakerHeader, d as UserMessage, f as agentTimelineStepKind, g as ArtifactAgentDock, h as partitionBySpeaker, i as ChatContainer, l as TRANSCRIPT_TEXT, m as isViewerMessage, n as AgentTimelineColumn, o as MessageAuthor, p as foldSummary, r as AgentTimelineStep, s as MessageList, t as AgentTimeline, u as ThinkingIndicator, v as snapHarnessToModel, x as HARNESS_REASONING_OPTIONS, y as AgentProfilePicker } from "./chat-BU39pb2j.js";
15
- import { C as useAgentStream, S as foldAgentRows, T as traceSpanMark, _ as statusMeta, a as InlineToolItem, b as TraceWorkspace, c as RunPhaseList, d as RunStatusIcon, f as TaskList, g as showsTaskPriority, h as runStatus, i as InlineThinkingItem, l as RunRowShell, m as parseToolEvent, n as ApprovalDiffSummary, o as LiveDuration, p as ToolCallFeed, r as ExpandedToolDetail, s as RunGroup, t as ApprovalCard, u as RunRowStatusDot, v as taskProgress, w as TraceWaterfall, x as LatestEvents, y as taskStatus } from "./run-CJ48hJz0.js";
17
+ import { a as TraceWaterfall, i as useAgentStream, n as LatestEvents, o as traceSpanMark, r as foldAgentRows, t as TraceWorkspace } from "./trace-workspace-C8dHRBDV.js";
16
18
  import { a as VirtualList, i as model_exports, n as Conversation, r as indexRecord, t as withPrompts } from "./record-Bqt1kE_Q.js";
19
+ import { ApprovalCard, ApprovalDiffSummary, ExpandedToolDetail, InlineThinkingItem, InlineToolItem, LiveDuration, RunGroup, RunPhaseList, RunRowShell, RunRowStatusDot, RunStatusIcon, TaskList, ToolCallFeed, parseToolEvent, runStatus, showsTaskPriority, statusMeta, taskProgress, taskStatus } from "./run.js";
17
20
  import "./vault-tree.js";
18
21
  import { a as TangleLoginButton, i as UserMenu, n as GitHubLoginButton, r as LoginLayout, t as AuthHeader } from "./auth-BDpoZ_2f.js";
19
22
  import { t as AgentMessagingConnection } from "./connections-DymjzHe_.js";
@@ -0,0 +1,11 @@
1
+ import { t as AgentStreamOpener } from "../agent-stream-CBZ2fXJ2.js";
2
+ /** Keep one transport identity per authenticated account; changing it discards the previous view. */
3
+ export interface LiveRunTransport {
4
+ fetch?: typeof globalThis.fetch;
5
+ openEventSource?: AgentStreamOpener;
6
+ }
7
+ /** Both the Discovery host and agent-runtime-top mount this same stream consumer and shared run workspace. */
8
+ export declare function LiveRun(props: {
9
+ api: string;
10
+ transport?: LiveRunTransport;
11
+ }): import("react").JSX.Element;