@tangle-network/sandbox-ui 2.0.17 → 2.0.18

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 (468) 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.d.ts +2 -139
  6. package/dist/hooks.js +2 -1
  7. package/dist/{index-BtR5Sc3u.d.ts → index-BnaVprN6.d.ts} +3 -66
  8. package/dist/index-D5Hig-j9.d.ts +155 -0
  9. package/dist/index.d.ts +3 -2
  10. package/dist/index.js +6 -3
  11. package/dist/run/live.d.ts +10 -0
  12. package/dist/run/live.js +389 -0
  13. package/dist/run.d.ts +2 -1
  14. package/dist/run.js +2 -1
  15. package/dist/runtime-viewer/AgentGraphCanvas-B74GN1o6-DC3EH_ss.js +8564 -0
  16. package/dist/runtime-viewer/abap-CJVxDCih.js +2 -0
  17. package/dist/runtime-viewer/actionscript-3-DxxSN0a_.js +2 -0
  18. package/dist/runtime-viewer/ada-Cl3FVDZo.js +2 -0
  19. package/dist/runtime-viewer/ahk-wK-qmFta.js +2 -0
  20. package/dist/runtime-viewer/ahk2-H2JA2Yl6.js +2 -0
  21. package/dist/runtime-viewer/andromeeda--b5O3zh8.js +134 -0
  22. package/dist/runtime-viewer/andromeeda-Gms6gP4X.js +3 -0
  23. package/dist/runtime-viewer/angular-html-rj1gmhWN.js +15 -0
  24. package/dist/runtime-viewer/angular-ts-Bqgem-S1.js +17 -0
  25. package/dist/runtime-viewer/apache-BUhlrTDV.js +2 -0
  26. package/dist/runtime-viewer/apex-BB9dj6FH.js +2 -0
  27. package/dist/runtime-viewer/apl-Bbo6_Uyo.js +15 -0
  28. package/dist/runtime-viewer/appendItems-Cd9l6s5M.js +709 -0
  29. package/dist/runtime-viewer/applescript-ADDjRuDN.js +2 -0
  30. package/dist/runtime-viewer/ara-qq1xXFYH.js +2 -0
  31. package/dist/runtime-viewer/asciidoc-DM4EX7__.js +2 -0
  32. package/dist/runtime-viewer/asm-BG-prohY.js +2 -0
  33. package/dist/runtime-viewer/astro-DLFBJCYZ.js +17 -0
  34. package/dist/runtime-viewer/aurora-x-9XZt7weA.js +3 -0
  35. package/dist/runtime-viewer/aurora-x-CUDrP6dl.js +148 -0
  36. package/dist/runtime-viewer/awk-CLViK1AN.js +2 -0
  37. package/dist/runtime-viewer/ayu-dark-Cn6mFqgG.js +3 -0
  38. package/dist/runtime-viewer/ayu-dark-KXkHEKeT.js +124 -0
  39. package/dist/runtime-viewer/ayu-light-CiMsj1GY.js +124 -0
  40. package/dist/runtime-viewer/ayu-light-DT1rcejT.js +3 -0
  41. package/dist/runtime-viewer/ayu-mirage-B9PABb6M.js +3 -0
  42. package/dist/runtime-viewer/ayu-mirage-D866knu2.js +124 -0
  43. package/dist/runtime-viewer/ballerina-CEQUp96R.js +2 -0
  44. package/dist/runtime-viewer/bash-CEf3P1Io.js +1 -0
  45. package/dist/runtime-viewer/bat-CZr3fv67.js +2 -0
  46. package/dist/runtime-viewer/beancount-VKRy3bBi.js +2 -0
  47. package/dist/runtime-viewer/berry-BwT4aLVg.js +2 -0
  48. package/dist/runtime-viewer/bibtex-CqljWi0V.js +2 -0
  49. package/dist/runtime-viewer/bicep-B4J9qq-Z.js +2 -0
  50. package/dist/runtime-viewer/bird2-aEHxasJz.js +2 -0
  51. package/dist/runtime-viewer/blade-CSrWCe1q.js +19 -0
  52. package/dist/runtime-viewer/bsl-BihRw6wC.js +4 -0
  53. package/dist/runtime-viewer/c-DqEbRro5.js +1 -0
  54. package/dist/runtime-viewer/c-nuWrC4_R.js +4 -0
  55. package/dist/runtime-viewer/c3-B1ecFreZ.js +2 -0
  56. package/dist/runtime-viewer/cadence-DRL7VEtm.js +2 -0
  57. package/dist/runtime-viewer/cairo-Mf356MxB.js +4 -0
  58. package/dist/runtime-viewer/catppuccin-frappe-CaZDpwbh.js +3 -0
  59. package/dist/runtime-viewer/catppuccin-frappe-D40A-eC-.js +253 -0
  60. package/dist/runtime-viewer/catppuccin-latte-BY0gIWQk.js +253 -0
  61. package/dist/runtime-viewer/catppuccin-latte-Cto1Jf_t.js +3 -0
  62. package/dist/runtime-viewer/catppuccin-macchiato-BshuwwL_.js +253 -0
  63. package/dist/runtime-viewer/catppuccin-macchiato-Da4JtJzk.js +3 -0
  64. package/dist/runtime-viewer/catppuccin-mocha-DDZ3zh14.js +253 -0
  65. package/dist/runtime-viewer/catppuccin-mocha-VxvWTjH_.js +3 -0
  66. package/dist/runtime-viewer/chapel-OTK-UUIg.js +4 -0
  67. package/dist/runtime-viewer/clarity-VQN67-z4.js +2 -0
  68. package/dist/runtime-viewer/clojure-CO3ptKNj.js +2 -0
  69. package/dist/runtime-viewer/cmake-Daw-aSZt.js +2 -0
  70. package/dist/runtime-viewer/cobol-Cf_qPd6-.js +9 -0
  71. package/dist/runtime-viewer/codeowners-RB6Ky2d_.js +2 -0
  72. package/dist/runtime-viewer/codeql-DWYIUtYc.js +2 -0
  73. package/dist/runtime-viewer/coffee-Ddb4DMEu.js +4 -0
  74. package/dist/runtime-viewer/common-lisp-Z5pdmE3i.js +2 -0
  75. package/dist/runtime-viewer/constants-BJYchxfN.js +3 -0
  76. package/dist/runtime-viewer/coq-JC5iWOqp.js +2 -0
  77. package/dist/runtime-viewer/core-CpUX80b1.js +3279 -0
  78. package/dist/runtime-viewer/cpp-ClbMDAkS.js +1 -0
  79. package/dist/runtime-viewer/cpp-DHh405em.js +15 -0
  80. package/dist/runtime-viewer/crystal-DO6lJkkC.js +17 -0
  81. package/dist/runtime-viewer/csharp-lEK6y4jq.js +2 -0
  82. package/dist/runtime-viewer/csharp-rZvb5Mvv.js +1 -0
  83. package/dist/runtime-viewer/css-CwgM346x.js +1 -0
  84. package/dist/runtime-viewer/css-D0s2ehNl.js +4 -0
  85. package/dist/runtime-viewer/csv-DDLVNpF_.js +2 -0
  86. package/dist/runtime-viewer/cue-D9icO3Iq.js +2 -0
  87. package/dist/runtime-viewer/cypher-CtaxHT1L.js +2 -0
  88. package/dist/runtime-viewer/d-D4yE5Vyh.js +2 -0
  89. package/dist/runtime-viewer/dark-plus-BrGvqa0b.js +132 -0
  90. package/dist/runtime-viewer/dark-plus-Fqa0GMhm.js +3 -0
  91. package/dist/runtime-viewer/dart-BQKGVcgZ.js +2 -0
  92. package/dist/runtime-viewer/dax-B_fglzFE.js +2 -0
  93. package/dist/runtime-viewer/desktop-D1YOnHEY.js +2 -0
  94. package/dist/runtime-viewer/diff-CiTjO3HD.js +1 -0
  95. package/dist/runtime-viewer/diff-Diuv0qGT.js +2 -0
  96. package/dist/runtime-viewer/docker-DbYJRRXH.js +4 -0
  97. package/dist/runtime-viewer/dockerfile-BFrtbjpQ.js +1 -0
  98. package/dist/runtime-viewer/dotenv-FA1qqDb1.js +2 -0
  99. package/dist/runtime-viewer/dracula-Btj3GSO9.js +3 -0
  100. package/dist/runtime-viewer/dracula-D8HPTJym.js +152 -0
  101. package/dist/runtime-viewer/dracula-soft-C8zQlEh_.js +102 -0
  102. package/dist/runtime-viewer/dracula-soft-D6LcM51i.js +3 -0
  103. package/dist/runtime-viewer/dream-maker-hpDz6By6.js +2 -0
  104. package/dist/runtime-viewer/edge-BB4FSmZo.js +11 -0
  105. package/dist/runtime-viewer/elixir-DuATaRNn.js +4 -0
  106. package/dist/runtime-viewer/elk.bundled-CqF3Dyp2.js +45979 -0
  107. package/dist/runtime-viewer/elm-82HhQ2nm.js +4 -0
  108. package/dist/runtime-viewer/emacs-lisp-C5QNYC99.js +2 -0
  109. package/dist/runtime-viewer/engine-javascript-0MH9JO7M.js +2372 -0
  110. package/dist/runtime-viewer/engine-oniguruma-7Bv9BGGj.js +237 -0
  111. package/dist/runtime-viewer/erb-YvvBNDWy.js +9 -0
  112. package/dist/runtime-viewer/erlang-X9awClOJ.js +4 -0
  113. package/dist/runtime-viewer/everforest-dark-CzXjGmbf.js +3 -0
  114. package/dist/runtime-viewer/everforest-dark-DPX_5Sj-.js +86 -0
  115. package/dist/runtime-viewer/everforest-light-BMqXq4Th.js +3 -0
  116. package/dist/runtime-viewer/everforest-light-D1PD4A7K.js +86 -0
  117. package/dist/runtime-viewer/fennel-f1xl4Q05.js +2 -0
  118. package/dist/runtime-viewer/fish-99YblEc7.js +2 -0
  119. package/dist/runtime-viewer/fluent-4LP_8ZRP.js +2 -0
  120. package/dist/runtime-viewer/formatCSSVariablePrefix-Dw8K8---.js +5 -0
  121. package/dist/runtime-viewer/fortran-fixed-form-CXgWKejO.js +4 -0
  122. package/dist/runtime-viewer/fortran-free-form-BJnwWphW.js +2 -0
  123. package/dist/runtime-viewer/fsharp-lb4HOh0M.js +4 -0
  124. package/dist/runtime-viewer/gdresource-B4QpWOUk.js +9 -0
  125. package/dist/runtime-viewer/gdscript-Dc0nUXdB.js +2 -0
  126. package/dist/runtime-viewer/gdshader-D7XodLZw.js +2 -0
  127. package/dist/runtime-viewer/genie-ufotYGgo.js +2 -0
  128. package/dist/runtime-viewer/gherkin-TDn2lJS-.js +2 -0
  129. package/dist/runtime-viewer/git-commit-Cp1Pt-h7.js +4 -0
  130. package/dist/runtime-viewer/git-rebase-CXUuGQB4.js +4 -0
  131. package/dist/runtime-viewer/github-dark-BsaUiyss.js +129 -0
  132. package/dist/runtime-viewer/github-dark-CzJ4LJRs.js +3 -0
  133. package/dist/runtime-viewer/github-dark-default-C6vmm66I.js +3 -0
  134. package/dist/runtime-viewer/github-dark-default-DHpmzBTU.js +75 -0
  135. package/dist/runtime-viewer/github-dark-dimmed-Bg7ahiYc.js +124 -0
  136. package/dist/runtime-viewer/github-dark-dimmed-CntRzgqu.js +3 -0
  137. package/dist/runtime-viewer/github-dark-high-contrast-BP5LnlnO.js +124 -0
  138. package/dist/runtime-viewer/github-dark-high-contrast-gviVHGeU.js +3 -0
  139. package/dist/runtime-viewer/github-light-2Z3gmJhd.js +3 -0
  140. package/dist/runtime-viewer/github-light-BAncjKrl.js +129 -0
  141. package/dist/runtime-viewer/github-light-default-kDVra9RT.js +124 -0
  142. package/dist/runtime-viewer/github-light-default-qgi3RC4t.js +3 -0
  143. package/dist/runtime-viewer/github-light-high-contrast-B2kY0DMu.js +124 -0
  144. package/dist/runtime-viewer/github-light-high-contrast-T0lGRgzi.js +3 -0
  145. package/dist/runtime-viewer/gleam-LV2mKtnv.js +2 -0
  146. package/dist/runtime-viewer/glimmer-js-BX9ckA-I.js +13 -0
  147. package/dist/runtime-viewer/glimmer-ts-DAfjLnWM.js +13 -0
  148. package/dist/runtime-viewer/glsl-BStsalM0.js +5 -0
  149. package/dist/runtime-viewer/gn-ChOGRsKV.js +2 -0
  150. package/dist/runtime-viewer/gnuplot-Di7UZXvs.js +2 -0
  151. package/dist/runtime-viewer/go-BrUQhiM2.js +1 -0
  152. package/dist/runtime-viewer/go-DM5FkVJr.js +2 -0
  153. package/dist/runtime-viewer/graphql-C8jzeQ3m.js +1 -0
  154. package/dist/runtime-viewer/graphql-C_WRV-qo.js +14 -0
  155. package/dist/runtime-viewer/groovy-DNa91fQJ.js +2 -0
  156. package/dist/runtime-viewer/gruvbox-dark-hard-BK-BcNOC.js +127 -0
  157. package/dist/runtime-viewer/gruvbox-dark-hard-fgme3GSG.js +3 -0
  158. package/dist/runtime-viewer/gruvbox-dark-medium-Btvv2ALk.js +127 -0
  159. package/dist/runtime-viewer/gruvbox-dark-medium-GM28AOs3.js +3 -0
  160. package/dist/runtime-viewer/gruvbox-dark-soft-D12Dlf7E.js +3 -0
  161. package/dist/runtime-viewer/gruvbox-dark-soft-ScIRFHp0.js +127 -0
  162. package/dist/runtime-viewer/gruvbox-light-hard-D0LtL2QG.js +3 -0
  163. package/dist/runtime-viewer/gruvbox-light-hard-D3d04bym.js +127 -0
  164. package/dist/runtime-viewer/gruvbox-light-medium-BUM64AiQ.js +127 -0
  165. package/dist/runtime-viewer/gruvbox-light-medium-Dbiuwhcl.js +3 -0
  166. package/dist/runtime-viewer/gruvbox-light-soft-BFyUZF8I.js +3 -0
  167. package/dist/runtime-viewer/gruvbox-light-soft-Deemyp2j.js +127 -0
  168. package/dist/runtime-viewer/hack-DrxrxETA.js +9 -0
  169. package/dist/runtime-viewer/haml-DtaFw5Wt.js +10 -0
  170. package/dist/runtime-viewer/handlebars-DdC6ISBc.js +13 -0
  171. package/dist/runtime-viewer/haskell-D6RgJWqJ.js +2 -0
  172. package/dist/runtime-viewer/haxe-CIYKU3E4.js +2 -0
  173. package/dist/runtime-viewer/hcl-B9zco17t.js +2 -0
  174. package/dist/runtime-viewer/highlights-Dcx2AVJg.js +1342 -0
  175. package/dist/runtime-viewer/hjson-sMCeQDUn.js +2 -0
  176. package/dist/runtime-viewer/hlsl-WeeDt2Wp.js +2 -0
  177. package/dist/runtime-viewer/horizon-B8n8qcHx.js +84 -0
  178. package/dist/runtime-viewer/horizon-aRqT-seq.js +3 -0
  179. package/dist/runtime-viewer/horizon-bright-DACv8zK_.js +84 -0
  180. package/dist/runtime-viewer/horizon-bright-DEevCdc_.js +3 -0
  181. package/dist/runtime-viewer/houston-CsNpjGGD.js +194 -0
  182. package/dist/runtime-viewer/houston-Dg2jxmDJ.js +3 -0
  183. package/dist/runtime-viewer/html-CPjHaxbO.js +1 -0
  184. package/dist/runtime-viewer/html-Di2iyAsX.js +10 -0
  185. package/dist/runtime-viewer/html-derivative-Rauq0RVM.js +4 -0
  186. package/dist/runtime-viewer/http-CkmWBydm.js +13 -0
  187. package/dist/runtime-viewer/hurl-BGjXa70x.js +11 -0
  188. package/dist/runtime-viewer/hxml-Bo5YTIXF.js +4 -0
  189. package/dist/runtime-viewer/hy-C-tRiv34.js +2 -0
  190. package/dist/runtime-viewer/imba-v7ELlTL6.js +2 -0
  191. package/dist/runtime-viewer/ini-DtrnrQj2.js +2 -0
  192. package/dist/runtime-viewer/java-DVlvG-lL.js +1 -0
  193. package/dist/runtime-viewer/java-DzBtATHG.js +4 -0
  194. package/dist/runtime-viewer/javascript--K52AMOb.js +4 -0
  195. package/dist/runtime-viewer/javascript-soGjNmbd.js +1 -0
  196. package/dist/runtime-viewer/jinja-CZBKZHkS.js +4 -0
  197. package/dist/runtime-viewer/jison-Bqt-LhEh.js +4 -0
  198. package/dist/runtime-viewer/json-DN-CB1kQ.js +4 -0
  199. package/dist/runtime-viewer/json-D_yoNICS.js +1 -0
  200. package/dist/runtime-viewer/json5-BdfUTtLp.js +2 -0
  201. package/dist/runtime-viewer/jsonc-ElU8pfhL.js +1 -0
  202. package/dist/runtime-viewer/jsonc-IKox2JSV.js +2 -0
  203. package/dist/runtime-viewer/jsonl-CfuX4G6U.js +2 -0
  204. package/dist/runtime-viewer/jsonnet-Yq9KcR8E.js +2 -0
  205. package/dist/runtime-viewer/jssm-BvR7SnkK.js +2 -0
  206. package/dist/runtime-viewer/jsx-D_XQMdaK.js +4 -0
  207. package/dist/runtime-viewer/jsx-snoZUiUS.js +1 -0
  208. package/dist/runtime-viewer/julia-C8lwf2tT.js +15 -0
  209. package/dist/runtime-viewer/just-CQnb5pIW.js +17 -0
  210. package/dist/runtime-viewer/kanagawa-dragon-Cx4OB0dC.js +3 -0
  211. package/dist/runtime-viewer/kanagawa-dragon-OValCvAZ.js +146 -0
  212. package/dist/runtime-viewer/kanagawa-lotus-C1sYcneT.js +146 -0
  213. package/dist/runtime-viewer/kanagawa-lotus-TwFRI7_8.js +3 -0
  214. package/dist/runtime-viewer/kanagawa-wave-BJYCyv2X.js +146 -0
  215. package/dist/runtime-viewer/kanagawa-wave-BiOn36ux.js +3 -0
  216. package/dist/runtime-viewer/kdl-D97SquIS.js +2 -0
  217. package/dist/runtime-viewer/kotlin-EmJjLeRz.js +2 -0
  218. package/dist/runtime-viewer/kotlin-LwxBtHgj.js +1 -0
  219. package/dist/runtime-viewer/kusto-DHanPw0g.js +2 -0
  220. package/dist/runtime-viewer/langs-D4STZqO4.js +1322 -0
  221. package/dist/runtime-viewer/laserwave-CV_0dg5c.js +71 -0
  222. package/dist/runtime-viewer/laserwave-PpzazpgI.js +3 -0
  223. package/dist/runtime-viewer/latest-events-iiWwpIck-BTK0vSlR.js +3657 -0
  224. package/dist/runtime-viewer/latex-Csew0MLK.js +4 -0
  225. package/dist/runtime-viewer/lean-E61_xvh-.js +2 -0
  226. package/dist/runtime-viewer/less-Bis9Y9oi.js +2 -0
  227. package/dist/runtime-viewer/lib-B7rl8i0A.js +1712 -0
  228. package/dist/runtime-viewer/light-plus-DOInvhGO.js +133 -0
  229. package/dist/runtime-viewer/light-plus-DnhX_5eg.js +3 -0
  230. package/dist/runtime-viewer/liquid-CuxywBoN.js +13 -0
  231. package/dist/runtime-viewer/llvm-DOIFdCJg.js +2 -0
  232. package/dist/runtime-viewer/loader-NcDPTN_h.js +79 -0
  233. package/dist/runtime-viewer/log-Awf6LbyY.js +2 -0
  234. package/dist/runtime-viewer/logo-Cn9nW1nw.js +2 -0
  235. package/dist/runtime-viewer/lua-BtojQCeL.js +5 -0
  236. package/dist/runtime-viewer/luau-DHSqpUrS.js +2 -0
  237. package/dist/runtime-viewer/make-CJ4tc-MS.js +2 -0
  238. package/dist/runtime-viewer/markdown-CNVZ8ok-.js +2 -0
  239. package/dist/runtime-viewer/markdown-Co5Krewy.js +1 -0
  240. package/dist/runtime-viewer/marko-CRIKirQp.js +13 -0
  241. package/dist/runtime-viewer/material-theme-D5uz9rje.js +3 -0
  242. package/dist/runtime-viewer/material-theme-darker-DbzCDLF8.js +92 -0
  243. package/dist/runtime-viewer/material-theme-darker-Dqalv5VE.js +3 -0
  244. package/dist/runtime-viewer/material-theme-lighter-CVJ0oH_V.js +3 -0
  245. package/dist/runtime-viewer/material-theme-lighter-CytgYJOd.js +92 -0
  246. package/dist/runtime-viewer/material-theme-ocean-BgKy5sU3.js +92 -0
  247. package/dist/runtime-viewer/material-theme-ocean-CRXu0cdY.js +3 -0
  248. package/dist/runtime-viewer/material-theme-palenight-C6iiJcUB.js +3 -0
  249. package/dist/runtime-viewer/material-theme-palenight-DZK7nXDy.js +92 -0
  250. package/dist/runtime-viewer/material-theme-yF3uaT0h.js +92 -0
  251. package/dist/runtime-viewer/matlab-Dn3Clolk.js +2 -0
  252. package/dist/runtime-viewer/mdc-D0bRQBcT.js +11 -0
  253. package/dist/runtime-viewer/mdx-C5T-IRbL.js +2 -0
  254. package/dist/runtime-viewer/mdx-DM8tlqVf.js +1 -0
  255. package/dist/runtime-viewer/mermaid-C4AYlmk3.js +2 -0
  256. package/dist/runtime-viewer/min-dark-BGA1sv8W.js +3 -0
  257. package/dist/runtime-viewer/min-dark-C1XOhi4b.js +109 -0
  258. package/dist/runtime-viewer/min-light-Bi5vyNSJ.js +109 -0
  259. package/dist/runtime-viewer/min-light-CYXBjZLR.js +3 -0
  260. package/dist/runtime-viewer/mipsasm-Bwfx99oh.js +2 -0
  261. package/dist/runtime-viewer/mojo-CRl08dek.js +2 -0
  262. package/dist/runtime-viewer/monokai-D9Ylqri2.js +149 -0
  263. package/dist/runtime-viewer/monokai-i6D4lZa3.js +3 -0
  264. package/dist/runtime-viewer/moonbit-CF1zF40g.js +2 -0
  265. package/dist/runtime-viewer/move-BP-e5w2W.js +2 -0
  266. package/dist/runtime-viewer/narrat-CrPIhy6S.js +2 -0
  267. package/dist/runtime-viewer/nextflow-D_hnf_jC.js +4 -0
  268. package/dist/runtime-viewer/nextflow-groovy-BLKP0md9.js +2 -0
  269. package/dist/runtime-viewer/nginx-87WOq-zh.js +4 -0
  270. package/dist/runtime-viewer/night-owl-BIeenDB2.js +175 -0
  271. package/dist/runtime-viewer/night-owl-NpADjULE.js +3 -0
  272. package/dist/runtime-viewer/night-owl-light-CPFD_YWe.js +3 -0
  273. package/dist/runtime-viewer/night-owl-light-cj7zoq2Q.js +176 -0
  274. package/dist/runtime-viewer/nim-CDdExumk.js +19 -0
  275. package/dist/runtime-viewer/nix-D_5rVnnj.js +2 -0
  276. package/dist/runtime-viewer/nord-DtfXNtHW.js +3 -0
  277. package/dist/runtime-viewer/nord-LUKuJt-q.js +115 -0
  278. package/dist/runtime-viewer/nsis-R3iO3ArE.js +2 -0
  279. package/dist/runtime-viewer/nushell-Ctp5mfhf.js +2 -0
  280. package/dist/runtime-viewer/objective-c-DPJeQfV6.js +2 -0
  281. package/dist/runtime-viewer/objective-cpp-1I3jYeMe.js +2 -0
  282. package/dist/runtime-viewer/ocaml-DOrLjeoA.js +2 -0
  283. package/dist/runtime-viewer/odin-CyrMbkLb.js +2 -0
  284. package/dist/runtime-viewer/one-dark-pro-CoHxEOhG.js +3 -0
  285. package/dist/runtime-viewer/one-dark-pro-DJGEbENq.js +111 -0
  286. package/dist/runtime-viewer/one-light-CTMiOsB9.js +137 -0
  287. package/dist/runtime-viewer/one-light-DRcvOwa6.js +3 -0
  288. package/dist/runtime-viewer/openscad-BdifjW6z.js +2 -0
  289. package/dist/runtime-viewer/org-DqaIvCPP.js +99 -0
  290. package/dist/runtime-viewer/pascal-CWF557wL.js +2 -0
  291. package/dist/runtime-viewer/perl-CNf3SVpk.js +15 -0
  292. package/dist/runtime-viewer/php-BPw4EY34.js +17 -0
  293. package/dist/runtime-viewer/php-CftiA0NJ.js +1 -0
  294. package/dist/runtime-viewer/pierre-dark-Bdb1mzqq.js +153 -0
  295. package/dist/runtime-viewer/pierre-dark-C6-jOUHM.js +3 -0
  296. package/dist/runtime-viewer/pierre-dark-protanopia-deuteranopia-DCuPErCj.js +153 -0
  297. package/dist/runtime-viewer/pierre-dark-protanopia-deuteranopia-duePIMEV.js +3 -0
  298. package/dist/runtime-viewer/pierre-dark-soft-BAcQZBxz.js +3 -0
  299. package/dist/runtime-viewer/pierre-dark-soft-BbEG7yMD.js +153 -0
  300. package/dist/runtime-viewer/pierre-dark-tritanopia-DOpkeqXJ.js +153 -0
  301. package/dist/runtime-viewer/pierre-dark-tritanopia-D_B2XvmS.js +3 -0
  302. package/dist/runtime-viewer/pierre-dark-vibrant-Cjjp0Ett.js +3 -0
  303. package/dist/runtime-viewer/pierre-dark-vibrant-wch72KIm.js +153 -0
  304. package/dist/runtime-viewer/pierre-light-BOFVfKvu.js +153 -0
  305. package/dist/runtime-viewer/pierre-light-LcifP5tb.js +3 -0
  306. package/dist/runtime-viewer/pierre-light-protanopia-deuteranopia-BQUu7m7e.js +153 -0
  307. package/dist/runtime-viewer/pierre-light-protanopia-deuteranopia-BwLihlmJ.js +3 -0
  308. package/dist/runtime-viewer/pierre-light-soft-BOBDofkU.js +153 -0
  309. package/dist/runtime-viewer/pierre-light-soft-X5R_lHC5.js +3 -0
  310. package/dist/runtime-viewer/pierre-light-tritanopia-DHKQqobW.js +153 -0
  311. package/dist/runtime-viewer/pierre-light-tritanopia-_xB326N3.js +3 -0
  312. package/dist/runtime-viewer/pierre-light-vibrant-BQ8t4eUq.js +153 -0
  313. package/dist/runtime-viewer/pierre-light-vibrant-CpysSVqa.js +3 -0
  314. package/dist/runtime-viewer/pkl-D57k4LLs.js +2 -0
  315. package/dist/runtime-viewer/plastic-B9GSmjqY.js +3 -0
  316. package/dist/runtime-viewer/plastic-BVwrkRXf.js +124 -0
  317. package/dist/runtime-viewer/plsql-CFYD0AaB.js +2 -0
  318. package/dist/runtime-viewer/po-3OOmP4Qc.js +2 -0
  319. package/dist/runtime-viewer/poimandres-BOYLUaPj.js +3 -0
  320. package/dist/runtime-viewer/poimandres-pq5u2ANt.js +111 -0
  321. package/dist/runtime-viewer/polar-B5m1_AiD.js +2 -0
  322. package/dist/runtime-viewer/postcss-DaNMuZdy.js +2 -0
  323. package/dist/runtime-viewer/powerquery-Ds3ATR9s.js +2 -0
  324. package/dist/runtime-viewer/powershell-C6Oz4_dd.js +2 -0
  325. package/dist/runtime-viewer/prisma-RRr5YdGg.js +2 -0
  326. package/dist/runtime-viewer/prolog-DSStdQTq.js +2 -0
  327. package/dist/runtime-viewer/proto-Chh6Q5CM.js +2 -0
  328. package/dist/runtime-viewer/pug-jgpaAltF.js +11 -0
  329. package/dist/runtime-viewer/puppet-BLsUK3yq.js +2 -0
  330. package/dist/runtime-viewer/purescript-B02W4seQ.js +2 -0
  331. package/dist/runtime-viewer/python-BHaXfePs.js +2 -0
  332. package/dist/runtime-viewer/python-CqjzihlT.js +1 -0
  333. package/dist/runtime-viewer/qml-LuB2sppG.js +4 -0
  334. package/dist/runtime-viewer/qmldir-COlmh4fX.js +2 -0
  335. package/dist/runtime-viewer/qss-DQUGDdeL.js +2 -0
  336. package/dist/runtime-viewer/r-DLQ-WMyZ.js +4 -0
  337. package/dist/runtime-viewer/racket-Dh3q-EfD.js +2 -0
  338. package/dist/runtime-viewer/raku-CdFQrZmh.js +2 -0
  339. package/dist/runtime-viewer/razor-DyYB-qxm.js +9 -0
  340. package/dist/runtime-viewer/rbs-jMgpabM7.js +2 -0
  341. package/dist/runtime-viewer/red-CCCMngeG.js +3 -0
  342. package/dist/runtime-viewer/red-Dab29wid.js +153 -0
  343. package/dist/runtime-viewer/reg-BY6GKaZK.js +2 -0
  344. package/dist/runtime-viewer/regexp-DGXwIvno.js +4 -0
  345. package/dist/runtime-viewer/rel-DjgjjaPM.js +2 -0
  346. package/dist/runtime-viewer/riscv-e0swiQQT.js +2 -0
  347. package/dist/runtime-viewer/rolldown-runtime-CwxnZyOB.js +22 -0
  348. package/dist/runtime-viewer/ron-Ba9vjMyp.js +2 -0
  349. package/dist/runtime-viewer/rose-pine-B-dgSkpN.js +3 -0
  350. package/dist/runtime-viewer/rose-pine-BtbnV2yy.js +123 -0
  351. package/dist/runtime-viewer/rose-pine-dawn-Bdn8gWo3.js +123 -0
  352. package/dist/runtime-viewer/rose-pine-dawn-wnKgbnkN.js +3 -0
  353. package/dist/runtime-viewer/rose-pine-moon-Bo6Tj-LK.js +3 -0
  354. package/dist/runtime-viewer/rose-pine-moon-f0wTyd2e.js +123 -0
  355. package/dist/runtime-viewer/rosmsg-33FkgZa7.js +2 -0
  356. package/dist/runtime-viewer/rst-B4Blahjm.js +21 -0
  357. package/dist/runtime-viewer/ruby-DYURXRgy.js +1 -0
  358. package/dist/runtime-viewer/ruby-ZzNzsyR7.js +29 -0
  359. package/dist/runtime-viewer/rust-CbGaYpW0.js +2 -0
  360. package/dist/runtime-viewer/rust-DesRWqWI.js +1 -0
  361. package/dist/runtime-viewer/sandbox-ui-z5RGk327.css +2 -0
  362. package/dist/runtime-viewer/sas-y9RoKb_L.js +4 -0
  363. package/dist/runtime-viewer/sass-B4OMkGSD.js +2 -0
  364. package/dist/runtime-viewer/scala--rETK160.js +2 -0
  365. package/dist/runtime-viewer/scheme-CvovbBgk.js +2 -0
  366. package/dist/runtime-viewer/scss-DcI9-N4n.js +1 -0
  367. package/dist/runtime-viewer/scss-DopO6P6Z.js +5 -0
  368. package/dist/runtime-viewer/sdbl-BibMD0HR.js +2 -0
  369. package/dist/runtime-viewer/shaderlab-TCf2V7Bu.js +4 -0
  370. package/dist/runtime-viewer/shellscript-CMmvhdtO.js +4 -0
  371. package/dist/runtime-viewer/shellsession-C-hBmRFA.js +4 -0
  372. package/dist/runtime-viewer/shiki-CKiqbkeh.js +472 -0
  373. package/dist/runtime-viewer/slack-dark-Cdsw60PX.js +71 -0
  374. package/dist/runtime-viewer/slack-dark-awEjS_Yb.js +3 -0
  375. package/dist/runtime-viewer/slack-ochin-BKdp7_AN.js +94 -0
  376. package/dist/runtime-viewer/slack-ochin-CabfdAmS.js +3 -0
  377. package/dist/runtime-viewer/smalltalk-DxjZ-YtB.js +2 -0
  378. package/dist/runtime-viewer/smithy-tPvbDXO4.js +2 -0
  379. package/dist/runtime-viewer/snazzy-light-BYOmyMID.js +80 -0
  380. package/dist/runtime-viewer/snazzy-light-DqG5DUoz.js +3 -0
  381. package/dist/runtime-viewer/solarized-dark-DW7IHQvx.js +3 -0
  382. package/dist/runtime-viewer/solarized-dark-DbW2e0tz.js +147 -0
  383. package/dist/runtime-viewer/solarized-light-CAggmb5U.js +147 -0
  384. package/dist/runtime-viewer/solarized-light-DHtUsXC-.js +3 -0
  385. package/dist/runtime-viewer/solidity-CzRNc7l4.js +2 -0
  386. package/dist/runtime-viewer/solidity-DcnQs1tt.js +1 -0
  387. package/dist/runtime-viewer/soy-Di0gqQmR.js +4 -0
  388. package/dist/runtime-viewer/sparql-9pWczk0C.js +4 -0
  389. package/dist/runtime-viewer/splunk-mpquMt_8.js +2 -0
  390. package/dist/runtime-viewer/sql-BKQgqUK-.js +4 -0
  391. package/dist/runtime-viewer/sql-CWnPlVS6.js +1 -0
  392. package/dist/runtime-viewer/ssh-config-DcnVpK-n.js +2 -0
  393. package/dist/runtime-viewer/stata-D1hxcba5.js +4 -0
  394. package/dist/runtime-viewer/stream-tokenizer-BWCJrHj9.js +97 -0
  395. package/dist/runtime-viewer/stylus-Bk8v-7oM.js +2 -0
  396. package/dist/runtime-viewer/surrealql-D20GSlYu.js +4 -0
  397. package/dist/runtime-viewer/svelte-C1MdtiIu.js +13 -0
  398. package/dist/runtime-viewer/swift-1fpvFsbf.js +2 -0
  399. package/dist/runtime-viewer/swift-DdLix5IB.js +1 -0
  400. package/dist/runtime-viewer/synthwave-84-DEoLt5E0.js +3 -0
  401. package/dist/runtime-viewer/synthwave-84-DYyyPr4g.js +397 -0
  402. package/dist/runtime-viewer/system-verilog-9E6eQ6kG.js +2 -0
  403. package/dist/runtime-viewer/systemd-CS6cln6J.js +2 -0
  404. package/dist/runtime-viewer/talonscript-COzgILOx.js +2 -0
  405. package/dist/runtime-viewer/tasl-CrL-TM3j.js +2 -0
  406. package/dist/runtime-viewer/tcl-BK--alTs.js +2 -0
  407. package/dist/runtime-viewer/templ-DKjVFvC3.js +11 -0
  408. package/dist/runtime-viewer/terraform-BKVT4lTN.js +2 -0
  409. package/dist/runtime-viewer/tex-BMGJ-FHF.js +5 -0
  410. package/dist/runtime-viewer/themes-D2drbHm6.js +235 -0
  411. package/dist/runtime-viewer/tokyo-night-BDW-4G1n.js +3 -0
  412. package/dist/runtime-viewer/tokyo-night-CnwkSle4.js +140 -0
  413. package/dist/runtime-viewer/toml-BygInOIB.js +1 -0
  414. package/dist/runtime-viewer/toml-CXAVGmfI.js +2 -0
  415. package/dist/runtime-viewer/ts-tags-BMg-6tE-.js +37 -0
  416. package/dist/runtime-viewer/tsv-r5fpGho9.js +2 -0
  417. package/dist/runtime-viewer/tsx-CdftCu0x.js +1 -0
  418. package/dist/runtime-viewer/tsx-sVSKAISV.js +4 -0
  419. package/dist/runtime-viewer/turtle-BbiQBLu0.js +2 -0
  420. package/dist/runtime-viewer/twig-09z_6B11.js +17 -0
  421. package/dist/runtime-viewer/typescript-COKJUNHB.js +4 -0
  422. package/dist/runtime-viewer/typescript-DCN8T-9u.js +1 -0
  423. package/dist/runtime-viewer/typespec-CtiCKN_c.js +2 -0
  424. package/dist/runtime-viewer/typst-D_sC_VAT.js +119 -0
  425. package/dist/runtime-viewer/unwrapDefault-CNWG9hDr.js +5 -0
  426. package/dist/runtime-viewer/v-BdhLiTpS.js +2 -0
  427. package/dist/runtime-viewer/vala-sKTZx7aP.js +2 -0
  428. package/dist/runtime-viewer/vb-BAyoHiqq.js +2 -0
  429. package/dist/runtime-viewer/verilog-DrDp-nNs.js +2 -0
  430. package/dist/runtime-viewer/vesper-BOAJeYxj.js +3 -0
  431. package/dist/runtime-viewer/vesper-DMgHxe32.js +83 -0
  432. package/dist/runtime-viewer/vhdl-D4xoRBgL.js +2 -0
  433. package/dist/runtime-viewer/viml-C41wSeLL.js +2 -0
  434. package/dist/runtime-viewer/vitesse-black-CxSugKJt.js +3 -0
  435. package/dist/runtime-viewer/vitesse-black-D8_Gc8uG.js +183 -0
  436. package/dist/runtime-viewer/vitesse-dark-Dg-H5YXt.js +183 -0
  437. package/dist/runtime-viewer/vitesse-dark-DvdlNt-O.js +3 -0
  438. package/dist/runtime-viewer/vitesse-light-BU-cJySG.js +183 -0
  439. package/dist/runtime-viewer/vitesse-light-q0_0oW1f.js +3 -0
  440. package/dist/runtime-viewer/vue-BbJX7dLK.js +20 -0
  441. package/dist/runtime-viewer/vue-html-DvOnaPby.js +4 -0
  442. package/dist/runtime-viewer/vue-vine-NYLtCzNK.js +17 -0
  443. package/dist/runtime-viewer/vyper-D4A1KnBn.js +2 -0
  444. package/dist/runtime-viewer/wasm-CVPYyV9Y.js +2 -0
  445. package/dist/runtime-viewer/wasm-DrbRUT8q.js +3 -0
  446. package/dist/runtime-viewer/wenyan-Czq8OMMr.js +2 -0
  447. package/dist/runtime-viewer/wgsl-C_l-ZpBu.js +2 -0
  448. package/dist/runtime-viewer/wikitext-B7epQZx2.js +2 -0
  449. package/dist/runtime-viewer/wit-DswQpcNx.js +2 -0
  450. package/dist/runtime-viewer/wolfram-CSEjVwta.js +2 -0
  451. package/dist/runtime-viewer/xml-CBKvpQFb.js +1 -0
  452. package/dist/runtime-viewer/xml-Ct7jrUZw.js +5 -0
  453. package/dist/runtime-viewer/xsl-DovPFRzJ.js +4 -0
  454. package/dist/runtime-viewer/yaml-BfN4AWuy.js +4 -0
  455. package/dist/runtime-viewer/yaml-DWRq8wls.js +1 -0
  456. package/dist/runtime-viewer/zenscript-YvYHF5y3.js +2 -0
  457. package/dist/runtime-viewer/zig-BgXWauKx.js +2 -0
  458. package/dist/styles.css +189 -150
  459. package/dist/tailwind.css +156 -150
  460. package/dist/{run-CJ48hJz0.js → trace-workspace-C8dHRBDV.js} +2 -3
  461. package/dist/use-document-D6Z9oFLm.js +120 -0
  462. package/dist/{workbench-BozOdGCX.js → workbench-Z9wbei53.js} +4 -172
  463. package/dist/workbench.js +2 -1
  464. package/dist/{workspace-CJnBqCqj.js → workspace-CzikYt_y.js} +5 -364
  465. package/dist/workspace-files-pane-DB9Nvwh4.js +367 -0
  466. package/dist/workspace-viewer.js +44403 -0
  467. package/dist/workspace.js +2 -1
  468. package/package.json +9 -4
package/dist/hooks.d.ts CHANGED
@@ -1,141 +1,4 @@
1
1
  import { n as UsePtySessionReturn, r as usePtySession, t as UsePtySessionOptions } from "./use-pty-session-DSgtQyYX.js";
2
- import { t as Session } from "./sidecar-CNP4zXop.js";
2
+ import { $ as UseSandboxMetricsResult, A as useApiKey, B as useToolCallStream, C as UseRunGroupsOptions, D as UseSdkSessionReturn, E as UseSdkSessionOptions, F as useRealtimeSession, G as useSessions, H as useCreateSession, I as useRunCollapseState, J as SandboxMetrics, K as LatencyPercentiles, L as useRunGroups, M as useAutoScroll, N as useDropdownMenu, O as UseToolCallStreamReturn, P as useLiveTime, Q as UseSandboxMetricsOptions, R as useSSEStream, S as UseAuthResult, T as UseSSEStreamResult, U as useDeleteSession, V as useDocument, W as useRenameSession, X as SidecarMetricsPayload, Y as SandboxMetricsSample, Z as SystemMetricsSnapshot, _ as SdkSessionEvent, a as AutomationStreamEvent, b as TerminalStreamEvent, c as CompleteAssistantMessageOptions, d as RealtimeSessionRegistry, et as useSandboxMetrics, f as RealtimeSessionRegistryProps, g as SdkSessionAttachment, h as SSEEvent, i as AuthUser, j as useAuth, k as createAuthFetcher, l as ConnectionState, m as RealtimeSessionTarget, n as AppendUserMessageOptions, o as BeginAssistantMessageOptions, p as RealtimeSessionState, q as SandboxLatencyMetrics, r as ApplySdkEventOptions, s as BotStreamEvent, t as AgentStreamEvent, u as RealtimeSessionOptions, v as SdkSessionSeed, w as UseSSEStreamOptions, x as UseAuthOptions, y as TaskStreamEvent, z as useSdkSession } from "./index-D5Hig-j9.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 { 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
- * Sandbox-level telemetry collected by the sidecar from cgroup v2
7
- * (Docker) or /proc (Firecracker guest). `cpuPercent` is computed
8
- * server-side from consecutive samples; sections are null when the
9
- * source cannot provide them.
10
- */
11
- export interface SystemMetricsSnapshot {
12
- cpuPercent: number | null;
13
- cpuCores: number;
14
- memory: {
15
- usedBytes: number;
16
- totalBytes: number;
17
- } | null;
18
- disk: {
19
- usedBytes: number;
20
- totalBytes: number;
21
- path: string;
22
- } | null;
23
- source: "cgroup-v2" | "proc";
24
- }
25
- export interface LatencyPercentiles {
26
- p50: number | null;
27
- p95: number | null;
28
- sampleCount: number;
29
- }
30
- export interface SandboxLatencyMetrics {
31
- ttftMs: LatencyPercentiles;
32
- firstResponseMs: LatencyPercentiles;
33
- runDurationMs: LatencyPercentiles;
34
- }
35
- /**
36
- * Shape returned by the sidecar `/metrics/json` endpoint. Only the
37
- * fields read by this hook are modeled; the sidecar may add more.
38
- */
39
- export interface SidecarMetricsPayload {
40
- process?: {
41
- memoryBytes?: {
42
- rss?: number;
43
- heapTotal?: number;
44
- heapUsed?: number;
45
- external?: number;
46
- arrayBuffers?: number;
47
- };
48
- cpuSeconds?: {
49
- user?: number;
50
- system?: number;
51
- };
52
- };
53
- system?: SystemMetricsSnapshot | null;
54
- latency?: SandboxLatencyMetrics;
55
- }
56
- /**
57
- * One polled time-series point, sourced from the sandbox-level
58
- * `system` section. Null values mean the sidecar could not provide
59
- * that reading — charts must render a gap, not a zero.
60
- */
61
- export interface SandboxMetricsSample {
62
- /** Wall-clock ms when the sample was committed client-side. */
63
- at: number;
64
- cpuPercent: number | null;
65
- memoryUsedBytes: number | null;
66
- memoryTotalBytes: number | null;
67
- diskUsedBytes: number | null;
68
- diskTotalBytes: number | null;
69
- }
70
- export interface SandboxMetrics {
71
- /**
72
- * CPU% derived from consecutive samples. `null` on the first sample
73
- * because a delta is required. Can exceed 100 on multi-core hosts.
74
- */
75
- cpuPercent: number | null;
76
- rssBytes: number;
77
- heapUsedBytes: number;
78
- heapTotalBytes: number;
79
- }
80
- export interface UseSandboxMetricsOptions {
81
- /**
82
- * Sandbox API base URL, e.g. `https://api.tangle.tools`.
83
- * Use an empty string for same-origin requests.
84
- */
85
- apiBaseUrl: string;
86
- /** Sandbox id; when falsy the hook stays idle. */
87
- sandboxId?: string | null;
88
- /**
89
- * Optional bearer token. When omitted the fetch still sends
90
- * credentials so a cookie session can authenticate the proxy.
91
- */
92
- token?: string | null;
93
- /** Pause polling when false. Defaults to true. */
94
- enabled?: boolean;
95
- /** Poll cadence; clamped to a 500ms floor. Defaults to 3000. */
96
- intervalMs?: number;
97
- /** Max retained history samples for charting. Defaults to 120. */
98
- historyLimit?: number;
99
- }
100
- export interface UseSandboxMetricsResult {
101
- metrics: SandboxMetrics | null;
102
- /**
103
- * Sandbox-level (container/VM) telemetry. Null until the sidecar
104
- * reports a `system` section — older sidecars never will, and
105
- * consumers must surface that as "unavailable", not zeros.
106
- */
107
- system: SystemMetricsSnapshot | null;
108
- /** Agent latency percentiles (TTFT, first response, run duration). */
109
- latency: SandboxLatencyMetrics | null;
110
- /**
111
- * Rolling window of system samples (oldest first), capped at
112
- * `historyLimit`. Cleared when the target sandbox changes.
113
- */
114
- history: SandboxMetricsSample[];
115
- /**
116
- * True while waiting for the first successful metrics response for this
117
- * sandbox. Errors clear it so consumers can show the failure state.
118
- */
119
- loading: boolean;
120
- error: Error | null;
121
- /** Wall-clock ms of the last successful metrics response, or null. */
122
- lastUpdatedAt: number | null;
123
- }
124
- /**
125
- * Polls the sandbox's sidecar metrics through the API proxy and
126
- * derives a CPU% value from consecutive cumulative-CPU samples. Used
127
- * by the sandbox overview dashboard to drive live CPU/memory panels.
128
- */
129
- export declare function useSandboxMetrics({ apiBaseUrl, sandboxId, token, enabled, intervalMs, historyLimit }: UseSandboxMetricsOptions): UseSandboxMetricsResult;
130
- /** List all sessions for a sidecar. */
131
- export declare function useSessions(apiUrl: string, token: string | null): import("@tanstack/react-query").UseQueryResult<Session[], Error>;
132
- /** Create a new session. */
133
- export declare function useCreateSession(apiUrl: string, token: string | null): import("@tanstack/react-query").UseMutationResult<Session, Error, string, unknown>;
134
- /** Delete a session by ID. */
135
- export declare function useDeleteSession(apiUrl: string, token: string | null): import("@tanstack/react-query").UseMutationResult<unknown, Error, string, unknown>;
136
- /** Rename a session. */
137
- export declare function useRenameSession(apiUrl: string, token: string | null): import("@tanstack/react-query").UseMutationResult<Session, Error, {
138
- sessionId: string;
139
- title: string;
140
- }, 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 };
4
+ export { type AgentStreamEvent, type AppendUserMessageOptions, type ApplySdkEventOptions, type AuthUser, type AutomationStreamEvent, type BeginAssistantMessageOptions, type BotStreamEvent, type CompleteAssistantMessageOptions, type ConnectionState, LatencyPercentiles, type RealtimeSessionOptions, RealtimeSessionRegistry, type RealtimeSessionRegistryProps, type RealtimeSessionState, type RealtimeSessionTarget, SESSION_STREAM_RECONNECT_DELAY_MS, type SSEEvent, SandboxLatencyMetrics, SandboxMetrics, SandboxMetricsSample, type SdkSessionAttachment, type SdkSessionEvent, type SdkSessionSeed, SendMessageOptions, SessionDegradation, SessionInfo, SessionStreamError, SidecarAuth, SidecarMetricsPayload, SystemMetricsSnapshot, type TaskStreamEvent, type TerminalStreamEvent, type UseAuthOptions, type UseAuthResult, UsePtySessionOptions, UsePtySessionReturn, type UseRunGroupsOptions, type UseSSEStreamOptions, type UseSSEStreamResult, UseSandboxMetricsOptions, UseSandboxMetricsResult, type UseSdkSessionOptions, type UseSdkSessionReturn, UseSessionStreamOptions, UseSessionStreamResult, UseSidecarAuthOptions, type UseToolCallStreamReturn, createAuthFetcher, useApiKey, useAuth, useAutoScroll, useCreateSession, useDeleteSession, useDocument, useDropdownMenu, useLiveTime, usePtySession, useRealtimeSession, useRenameSession, useRunCollapseState, useRunGroups, useSSEStream, useSandboxMetrics, useSdkSession, useSessionStream, useSessions, 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 { t as useDocument } from "./use-document-D6Z9oFLm.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 };
@@ -0,0 +1,155 @@
1
+ import "./use-pty-session-DSgtQyYX.js";
2
+ import { t as Session } from "./sidecar-CNP4zXop.js";
3
+ import "./use-sidecar-auth-CPevSSEj.js";
4
+ 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
+ * Sandbox-level telemetry collected by the sidecar from cgroup v2
7
+ * (Docker) or /proc (Firecracker guest). `cpuPercent` is computed
8
+ * server-side from consecutive samples; sections are null when the
9
+ * source cannot provide them.
10
+ */
11
+ interface SystemMetricsSnapshot {
12
+ cpuPercent: number | null;
13
+ cpuCores: number;
14
+ memory: {
15
+ usedBytes: number;
16
+ totalBytes: number;
17
+ } | null;
18
+ disk: {
19
+ usedBytes: number;
20
+ totalBytes: number;
21
+ path: string;
22
+ } | null;
23
+ source: "cgroup-v2" | "proc";
24
+ }
25
+ interface LatencyPercentiles {
26
+ p50: number | null;
27
+ p95: number | null;
28
+ sampleCount: number;
29
+ }
30
+ interface SandboxLatencyMetrics {
31
+ ttftMs: LatencyPercentiles;
32
+ firstResponseMs: LatencyPercentiles;
33
+ runDurationMs: LatencyPercentiles;
34
+ }
35
+ /**
36
+ * Shape returned by the sidecar `/metrics/json` endpoint. Only the
37
+ * fields read by this hook are modeled; the sidecar may add more.
38
+ */
39
+ interface SidecarMetricsPayload {
40
+ process?: {
41
+ memoryBytes?: {
42
+ rss?: number;
43
+ heapTotal?: number;
44
+ heapUsed?: number;
45
+ external?: number;
46
+ arrayBuffers?: number;
47
+ };
48
+ cpuSeconds?: {
49
+ user?: number;
50
+ system?: number;
51
+ };
52
+ };
53
+ system?: SystemMetricsSnapshot | null;
54
+ latency?: SandboxLatencyMetrics;
55
+ }
56
+ /**
57
+ * One polled time-series point, sourced from the sandbox-level
58
+ * `system` section. Null values mean the sidecar could not provide
59
+ * that reading — charts must render a gap, not a zero.
60
+ */
61
+ interface SandboxMetricsSample {
62
+ /** Wall-clock ms when the sample was committed client-side. */
63
+ at: number;
64
+ cpuPercent: number | null;
65
+ memoryUsedBytes: number | null;
66
+ memoryTotalBytes: number | null;
67
+ diskUsedBytes: number | null;
68
+ diskTotalBytes: number | null;
69
+ }
70
+ interface SandboxMetrics {
71
+ /**
72
+ * CPU% derived from consecutive samples. `null` on the first sample
73
+ * because a delta is required. Can exceed 100 on multi-core hosts.
74
+ */
75
+ cpuPercent: number | null;
76
+ rssBytes: number;
77
+ heapUsedBytes: number;
78
+ heapTotalBytes: number;
79
+ }
80
+ interface UseSandboxMetricsOptions {
81
+ /**
82
+ * Sandbox API base URL, e.g. `https://api.tangle.tools`.
83
+ * Use an empty string for same-origin requests.
84
+ */
85
+ apiBaseUrl: string;
86
+ /** Sandbox id; when falsy the hook stays idle. */
87
+ sandboxId?: string | null;
88
+ /**
89
+ * Optional bearer token. When omitted the fetch still sends
90
+ * credentials so a cookie session can authenticate the proxy.
91
+ */
92
+ token?: string | null;
93
+ /** Pause polling when false. Defaults to true. */
94
+ enabled?: boolean;
95
+ /** Poll cadence; clamped to a 500ms floor. Defaults to 3000. */
96
+ intervalMs?: number;
97
+ /** Max retained history samples for charting. Defaults to 120. */
98
+ historyLimit?: number;
99
+ }
100
+ interface UseSandboxMetricsResult {
101
+ metrics: SandboxMetrics | null;
102
+ /**
103
+ * Sandbox-level (container/VM) telemetry. Null until the sidecar
104
+ * reports a `system` section — older sidecars never will, and
105
+ * consumers must surface that as "unavailable", not zeros.
106
+ */
107
+ system: SystemMetricsSnapshot | null;
108
+ /** Agent latency percentiles (TTFT, first response, run duration). */
109
+ latency: SandboxLatencyMetrics | null;
110
+ /**
111
+ * Rolling window of system samples (oldest first), capped at
112
+ * `historyLimit`. Cleared when the target sandbox changes.
113
+ */
114
+ history: SandboxMetricsSample[];
115
+ /**
116
+ * True while waiting for the first successful metrics response for this
117
+ * sandbox. Errors clear it so consumers can show the failure state.
118
+ */
119
+ loading: boolean;
120
+ error: Error | null;
121
+ /** Wall-clock ms of the last successful metrics response, or null. */
122
+ lastUpdatedAt: number | null;
123
+ }
124
+ /**
125
+ * Polls the sandbox's sidecar metrics through the API proxy and
126
+ * derives a CPU% value from consecutive cumulative-CPU samples. Used
127
+ * by the sandbox overview dashboard to drive live CPU/memory panels.
128
+ */
129
+ declare function useSandboxMetrics({ apiBaseUrl, sandboxId, token, enabled, intervalMs, historyLimit }: UseSandboxMetricsOptions): UseSandboxMetricsResult;
130
+ /** List all sessions for a sidecar. */
131
+ declare function useSessions(apiUrl: string, token: string | null): import("@tanstack/react-query").UseQueryResult<Session[], Error>;
132
+ /** Create a new session. */
133
+ declare function useCreateSession(apiUrl: string, token: string | null): import("@tanstack/react-query").UseMutationResult<Session, Error, string, unknown>;
134
+ /** Delete a session by ID. */
135
+ declare function useDeleteSession(apiUrl: string, token: string | null): import("@tanstack/react-query").UseMutationResult<unknown, Error, string, unknown>;
136
+ /** Rename a session. */
137
+ declare function useRenameSession(apiUrl: string, token: string | null): import("@tanstack/react-query").UseMutationResult<Session, Error, {
138
+ sessionId: string;
139
+ title: string;
140
+ }, unknown>;
141
+ /**
142
+ * Same-origin JSON with ETag revalidation. `poll` refetches every `poll` ms while set; turning polling on or off keeps
143
+ * the document. With `keepPrevious`, a new URL (a record's next digest) keeps showing the previous document until the
144
+ * new one arrives, so a run being written never blanks between versions. A response marked stale is refetched until it is current.
145
+ */
146
+ declare function useDocument<T>(url: string | null, poll?: number, keepPrevious?: boolean, fetcher?: typeof fetch): {
147
+ url: string | null;
148
+ data?: T;
149
+ error?: string;
150
+ status?: number;
151
+ loading: boolean;
152
+ stale?: boolean;
153
+ failing?: string;
154
+ };
155
+ export { UseSandboxMetricsResult as $, useApiKey as A, useToolCallStream as B, UseRunGroupsOptions as C, UseSdkSessionReturn as D, UseSdkSessionOptions as E, useRealtimeSession as F, useSessions as G, useCreateSession as H, useRunCollapseState as I, SandboxMetrics as J, LatencyPercentiles as K, useRunGroups as L, useAutoScroll as M, useDropdownMenu as N, UseToolCallStreamReturn as O, useLiveTime as P, UseSandboxMetricsOptions as Q, useSSEStream as R, UseAuthResult as S, UseSSEStreamResult as T, useDeleteSession as U, useDocument as V, useRenameSession as W, SidecarMetricsPayload as X, SandboxMetricsSample as Y, SystemMetricsSnapshot as Z, SdkSessionEvent as _, AutomationStreamEvent as a, TerminalStreamEvent as b, CompleteAssistantMessageOptions as c, RealtimeSessionRegistry as d, useSandboxMetrics as et, RealtimeSessionRegistryProps as f, SdkSessionAttachment as g, SSEEvent as h, AuthUser as i, useAuth as j, createAuthFetcher as k, ConnectionState as l, RealtimeSessionTarget as m, AppendUserMessageOptions as n, BeginAssistantMessageOptions as o, RealtimeSessionState as p, SandboxLatencyMetrics as q, ApplySdkEventOptions as r, BotStreamEvent as s, AgentStreamEvent as t, RealtimeSessionOptions as u, SdkSessionSeed as v, UseSSEStreamOptions as w, UseAuthOptions as x, TaskStreamEvent as y, useSdkSession as z };
package/dist/index.d.ts CHANGED
@@ -6,9 +6,9 @@ import { a as canonicalModelId, i as ProviderMark, n as ModelBrandStack, o as mo
6
6
  import { a as PricingPageProps, c as BillingBalance, d as BillingSubscription, f as BillingUsage, i as PricingPage, l as BillingDashboard, n as UsageChartProps, o as PricingTier, r as UsageDataPoint, s as formatPrice, t as UsageChart, u as BillingDashboardProps } from "./usage-chart-BFpdkqNq.js";
7
7
  import { A as configurePdfViewer, C as PdfViewerConfig, D as RichFileTreeGitStatus, E as RichFileTreeGitEntry, F as getFormatLabel, I as getSyntaxLanguage, L as parseCsv, M as fileExtension, N as filterFileTree, O as RichFileTreeProps, P as getCodeLanguage, R as resolveFilePreviewKind, S as PdfViewer, T as RichFileTree, _ as FileTabsProps, a as FileCardProps, b as FileTreeVisibilityOptions, c as FileList, d as FileNode, f as FilePreview, g as FileTabs, h as FileTabData, i as FileCard, j as detectFileFormat, k as RichFileTreeThemeVars, l as FileListItem, m as FilePreviewProps, n as FileArtifactPane, o as FileDetails, p as FilePreviewKind, r as FileArtifactPaneProps, s as FileFormat, t as CSV_PREVIEW_ROW_LIMIT, u as FileListProps, v as FileTree, w as PdfViewerProps, x as FileUploader, y as FileTreeProps } from "./index-BZJKLu3k.js";
8
8
  import { n as UsePtySessionReturn, r as usePtySession, t as UsePtySessionOptions } from "./use-pty-session-DSgtQyYX.js";
9
+ import { $ as UseSandboxMetricsResult, A as useApiKey, B as useToolCallStream, C as UseRunGroupsOptions, D as UseSdkSessionReturn, E as UseSdkSessionOptions, F as useRealtimeSession, G as useSessions, H as useCreateSession, I as useRunCollapseState, J as SandboxMetrics, L as useRunGroups, M as useAutoScroll, N as useDropdownMenu, O as UseToolCallStreamReturn, P as useLiveTime, Q as UseSandboxMetricsOptions, R as useSSEStream, S as UseAuthResult, T as UseSSEStreamResult, U as useDeleteSession, W as useRenameSession, X as SidecarMetricsPayload, _ as SdkSessionEvent, a as AutomationStreamEvent, b as TerminalStreamEvent, c as CompleteAssistantMessageOptions, d as RealtimeSessionRegistry, et as useSandboxMetrics, f as RealtimeSessionRegistryProps, g as SdkSessionAttachment, h as SSEEvent, i as AuthUser, j as useAuth, k as createAuthFetcher, m as RealtimeSessionTarget, n as AppendUserMessageOptions, o as BeginAssistantMessageOptions, p as RealtimeSessionState, r as ApplySdkEventOptions, s as BotStreamEvent, t as AgentStreamEvent, u as RealtimeSessionOptions, v as SdkSessionSeed, w as UseSSEStreamOptions, x as UseAuthOptions, y as TaskStreamEvent, z as useSdkSession } from "./index-D5Hig-j9.js";
9
10
  import { t as Session } from "./sidecar-CNP4zXop.js";
10
11
  import { d as useSessionStream, 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";
11
- import { AgentStreamEvent, AppendUserMessageOptions, ApplySdkEventOptions, AuthUser, AutomationStreamEvent, BeginAssistantMessageOptions, BotStreamEvent, CompleteAssistantMessageOptions, RealtimeSessionOptions, RealtimeSessionRegistry, RealtimeSessionRegistryProps, RealtimeSessionState, RealtimeSessionTarget, SSEEvent, SandboxMetrics, SdkSessionAttachment, SdkSessionEvent, SdkSessionSeed, SidecarMetricsPayload, TaskStreamEvent, TerminalStreamEvent, UseAuthOptions, UseAuthResult, UseRunGroupsOptions, UseSSEStreamOptions, UseSSEStreamResult, UseSandboxMetricsOptions, UseSandboxMetricsResult, UseSdkSessionOptions, UseSdkSessionReturn, UseToolCallStreamReturn, createAuthFetcher, useApiKey, useAuth, useAutoScroll, useCreateSession, useDeleteSession, useDropdownMenu, useLiveTime, useRealtimeSession, useRenameSession, useRunCollapseState, useRunGroups, useSSEStream, useSandboxMetrics, useSdkSession, useSessions, useToolCallStream } from "./hooks.js";
12
12
  import { $ as CollapsibleContent, $i as Logo, $n as Separator, $r as TabsContent, $t as FieldProps, A as BreadcrumbPage, Ai as WizardProps, An as PaginationProps, Ar as SidebarDropZone, At as DialogPortal, B as CardDescription, Bi as parseCalendarDate, Bn as SegmentedControl, Br as StatusTone, Bt as DropdownMenuLabel, C as Badge, Ci as TooltipContent, Cn as MetricStrip, Cr as SheetDescription, Ct as Dialog, D as BreadcrumbItem, Di as UploadProgress, Dn as PageShell, Dr as SheetPortal, Dt as DialogFooter, E as BreadcrumbEllipsis, Ei as UploadFile, En as PageHeaderProps, Er as SheetOverlay, Et as DialogDescription, F as Calendar, Fi as fieldMessageId, Fn as PopoverContent, Fr as Slider, Ft as DropdownMenu, G as CategoryTone, Gi as seriesMean, Gn as SelectGroup, Gr as TableCaption, Gt as DropdownMenuShortcut, H as CardHeader, Hi as seriesAreaPath, Hn as SegmentedControlProps, Hr as TONE_CLASSES, Ht as DropdownMenuRadioGroup, I as CalendarDate, Ii as formatCalendarDate, In as PopoverTrigger, Ir as StatCard, It as DropdownMenuCheckboxItem, J as Chip, Ji as useTheme, Jn as SelectScrollDownButton, Jr as TableHead, Jt as DropdownMenuSubTrigger, K as ChartReferenceLine, Ki as seriesScale, Kn as SelectItem, Kr as TableCell, Kt as DropdownMenuSub, L as CalendarProps, Li as initialsOf, Ln as Progress, Lr as StatCardProps, Lt as DropdownMenuContent, M as Button, Mi as WizardStepProps, Mn as Popover, Mr as Skeleton, Mt as DialogTrigger, N as ButtonProps, Ni as badgeVariants, Nn as PopoverAnchor, Nr as SkeletonCard, Nt as DropZone, O as BreadcrumbLink, Oi as UploadProgressProps, On as PageShellProps, Or as SheetTitle, Ot as DialogHeader, P as CATEGORY_TONES, Pi as buttonVariants, Pn as PopoverClose, Pr as SkeletonTable, Pt as DropZoneProps, Q as Collapsible, Qi as SectionTitleProps, Qn as SelectValue, Qr as Tabs, Qt as Field, R as Card, Ri as localToday, Rn as RadioGroup, Rr as StatusPill, Rt as DropdownMenuGroup, S as AvatarProps, Si as Tooltip, Sn as MetricProps, Sr as SheetContent, St as DatePickerProps, T as Breadcrumb, Ti as TooltipTrigger, Tn as PageHeader, Tr as SheetHeader, Tt as DialogContent, U as CardTitle, Ui as seriesExtent, Un as Select, Ur as Table, Ut as DropdownMenuRadioItem, V as CardFooter, Vi as periodDelta, Vn as SegmentedControlOption, Vr as Switch, Vt as DropdownMenuPortal, W as CardTitleProps, Wi as seriesLinePath, Wn as SelectContent, Wr as TableBody, Wt as DropdownMenuSeparator, X as CodeBlock, Xi as HeadingProps, Xn as SelectSeparator, Xr as TableProps, Xt as EmptyState, Y as ChipProps, Yi as useToast, Yn as SelectScrollUpButton, Yr as TableHeader, Yt as DropdownMenuTrigger, Z as CodeBlockProps, Zi as SectionTitle, Zn as SelectTrigger, Zr as TableRow, Zt as EmptyStateProps, _ as ArtifactPane, _i as ToastProvider, _n as InputProps, _r as SettingsRowProps, _t as ContextMenuSubContent, a as AlertDialogCancel, ai as TerminalDisplay, an as HelpTextProps, ar as SeriesSparklineProps, at as ContextMenu, b as AvatarFallback, bi as Toolbar, bn as MetricChart, br as Sheet, bt as CopyButton, c as AlertDialogFooter, ci as TextShimmer, cn as HoverCardDescription, cr as SettingsListColumns, ct as ContextMenuGroup, d as AlertDialogPortal, di as TextareaProps, dn as HoverCardTrigger, dr as SettingsListMenuItem, dt as ContextMenuPortal, ea as LogoProps, ei as TabsList, en as FilterField, er as SeriesExtent, et as CollapsibleTrigger, f as AlertDialogTitle, fi as ThemeToggle, fn as IconTile, fr as SettingsListProps, ft as ContextMenuRadioGroup, g as AlertTone, gi as ToastContainer, gn as Input, gr as SettingsRowLayout, gt as ContextMenuSub, h as AlertTitle, hi as Toast, hn as InlineCodeProps, hr as SettingsRow, ht as ContextMenuShortcut, i as AlertDialogAction, ii as TerminalCursor, in as HelpText, ir as SeriesSparkline, it as ComplianceStatus, j as BreadcrumbSeparator, ji as WizardStep, jn as PeriodDelta, jr as SidebarDropZoneProps, jt as DialogTitle, k as BreadcrumbList, ki as Wizard, kn as Pagination, kr as SheetTrigger, kt as DialogOverlay, l as AlertDialogHeader, li as TextShimmerProps, ln as HoverCardHeader, lr as SettingsListItem, lt as ContextMenuItem, m as AlertProps, mi as TimeSelectProps, mn as InlineCode, mr as SettingsNoteProps, mt as ContextMenuSeparator, n as AlertDescription, ni as Tag, nn as Heading, nr as SeriesPointInput, nt as ComplianceBadgeProps, o as AlertDialogContent, oi as TerminalInput, on as HoverCard, or as SettingsList, ot as ContextMenuCheckboxItem, p as AlertDialogTrigger, pi as TimeSelect, pn as IconTileProps, pr as SettingsNote, pt as ContextMenuRadioItem, q as Checkbox, qi as toneFor, qn as SelectLabel, qr as TableFooter, qt as DropdownMenuSubContent, r as AlertDialog, ri as TagProps, rn as HeadingVariant, rr as SeriesScale, rt as ComplianceProduct, s as AlertDialogDescription, sn as HoverCardContent, sr as SettingsListAction, st as ContextMenuContent, t as Alert, ta as TangleKnot, ti as TabsTrigger, tn as FilterFieldProps, tr as SeriesPoint, tt as ComplianceBadge, u as AlertDialogOverlay, ui as Textarea, un as HoverCardTitle, ur as SettingsListItemProps, ut as ContextMenuLabel, v as ArtifactPaneProps, vi as Tone, vn as Label, vr as SettingsSection, vt as ContextMenuSubTrigger, w as BadgeProps, wi as TooltipProvider, wn as MetricStripProps, wr as SheetFooter, wt as DialogClose, x as AvatarImage, xi as ToolbarProps, xn as MetricChartProps, xr as SheetClose, xt as DatePicker, y as Avatar, yi as ToneClasses, yn as Metric, yr as SettingsSectionProps, yt as ContextMenuTrigger, z as CardContent, zi as normalizeSeries, zn as RadioGroupItem, zr as StatusPillProps, zt as DropdownMenuItem } from "./index-CEtc2U5v.js";
13
13
  import { $ as StatusBar, A as createShellShouldRevalidate, B as SessionSidebarVariant, C as SandboxWorkbenchLayoutOptions, D as SandboxWorkbenchSessionProps, E as SandboxWorkbenchProps, F as SessionSidebarFilter, G as dispatchSessionCreated, H as SessionCreatedDetail, I as SessionSidebarGroupBy, J as RuntimePaneProps, K as useOptimisticSessionItems, L as SessionSidebarItem, M as formatRelativeAge, N as SessionSidebar, O as ShellShouldRevalidateArgs, P as SessionSidebarBadge, Q as ContextBadge, R as SessionSidebarLink, S as SandboxWorkbenchFileArtifact, T as SandboxWorkbenchOpenUIArtifact, U as SessionOptimisticController, V as SESSION_CREATED_EVENT, W as UseOptimisticSessionItemsOptions, X as TerminalPanel, Y as TerminalLine, Z as TerminalProps, _ as TaskBoardItem, _t as WorkspaceSurfaceTitle, a as WorkspaceFilesPane, at as DirectoryPaneProps, b as SandboxWorkbenchArtifact, bt as WorkspaceLayoutProps, c as ApprovalConfidenceStat, ct as ShellHeader, d as ApprovalQueueProps, dt as WorkspacePaneHeaderProps, et as StatusBarProps, f as CalendarEvent, ft as WorkspaceSurface, g as TaskBoardColumn, gt as WorkspaceSurfaceProps, h as TaskBoard, ht as WorkspaceSurfaceHeadingLevel, i as WorkspaceArtifactViewProps, it as DirectoryPane, j as shellShouldRevalidate, k as ShellShouldRevalidateOptions, l as ApprovalItem, lt as ShellHeaderProps, m as CalendarViewProps, mt as WorkspaceSurfaceFrameProps, nt as StatusBanner, o as WorkspaceFilesPaneProps, ot as SHELL_HEADER_HEIGHT, p as CalendarView, pt as WorkspaceSurfaceFrame, q as RuntimePane, r as WorkspaceArtifactView, rt as StatusBannerProps, s as WorkspaceFilesPreview, st as SHELL_INSET_GUTTER, tt as BannerType, u as ApprovalQueue, ut as WorkspacePaneHeader, v as TaskBoardProps, vt as WorkspaceSurfaceTitleProps, w as SandboxWorkbenchMarkdownArtifact, x as SandboxWorkbenchCustomArtifact, y as SandboxWorkbench, yt as WorkspaceLayout, z as SessionSidebarProps } from "./index-D2_4ONCz.js";
14
14
  import { i as VaultTreeProps, n as VAULT_TREE_CHILD_PAGE, r as VaultTree, t as FileChange } from "./vault-tree-CBS8qGT-.js";
@@ -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,10 @@
1
+ import { t as AgentStreamOpener } from "../agent-stream-CBZ2fXJ2.js";
2
+ export interface LiveRunTransport {
3
+ fetch?: typeof globalThis.fetch;
4
+ openEventSource?: AgentStreamOpener;
5
+ }
6
+ /** Both the Discovery host and agent-runtime-top mount this same stream consumer and shared run workspace. */
7
+ export declare function LiveRun(props: {
8
+ api: string;
9
+ transport?: LiveRunTransport;
10
+ }): import("react").JSX.Element;