@belonguniverseai/react-sdk 0.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +47 -0
- package/dist/api/agent-grants.d.ts +61 -0
- package/dist/api/api-context.d.ts +9 -0
- package/dist/api/client.d.ts +2053 -0
- package/dist/api/mutations.d.ts +3 -0
- package/dist/api/queries.d.ts +21 -0
- package/dist/api/query-keys.d.ts +13 -0
- package/dist/api/report-client-error.d.ts +23 -0
- package/dist/api/skills.d.ts +23 -0
- package/dist/api/workspace-files.d.ts +9 -0
- package/dist/app/BelongDock.d.ts +29 -0
- package/dist/app/VoiceOverlay.d.ts +18 -0
- package/dist/app/providers.d.ts +12 -0
- package/dist/app/router.d.ts +2 -0
- package/dist/browser/control-channel.d.ts +29 -0
- package/dist/browser/dom-bridge.d.ts +6 -0
- package/dist/browser/spa-navigate.d.ts +87 -0
- package/dist/component/BelongWidget.d.ts +27 -0
- package/dist/component/abap-BqLfTM3_.js +9 -0
- package/dist/component/abap-Dosx9LfS.js +9 -0
- package/dist/component/actionscript-3-CFt6EqSB.js +9 -0
- package/dist/component/actionscript-3-CShGOdtT.js +9 -0
- package/dist/component/ada-8tCnwMXx.js +9 -0
- package/dist/component/ada-DaqFF2jd.js +9 -0
- package/dist/component/andromeeda-BxBtQ0rC.js +7 -0
- package/dist/component/andromeeda-Dx5fm3r-.js +7 -0
- package/dist/component/angular-html-CAoRrq6i.js +35 -0
- package/dist/component/angular-html-DG52iVg8.js +35 -0
- package/dist/component/angular-ts-BvOrReBc.js +24 -0
- package/dist/component/angular-ts-LQyiJZqb.js +24 -0
- package/dist/component/apache-HdVsAIQf.js +9 -0
- package/dist/component/apache-c3M5d5MN.js +9 -0
- package/dist/component/apex-B-y6HhVC.js +9 -0
- package/dist/component/apex-DXDfZUnb.js +9 -0
- package/dist/component/apl-BnXq3ZtQ.js +19 -0
- package/dist/component/apl-D7VFrOyT.js +19 -0
- package/dist/component/applescript-BZbrjHcY.js +9 -0
- package/dist/component/applescript-Bo1adDet.js +9 -0
- package/dist/component/ara-C1QNxHcU.js +9 -0
- package/dist/component/ara-ZjRpP-93.js +9 -0
- package/dist/component/arc-DGQIe3ON.js +86 -0
- package/dist/component/architectureDiagram-3BPJPVTR-C3uLEfb1.js +4697 -0
- package/dist/component/asciidoc-2fV_Cv2j.js +9 -0
- package/dist/component/asciidoc-D7PshqvO.js +9 -0
- package/dist/component/asm-ClEowkZP.js +9 -0
- package/dist/component/asm-DmyJawQj.js +9 -0
- package/dist/component/astro-9MHfKoOi.js +21 -0
- package/dist/component/astro-Bi3QRBCO.js +21 -0
- package/dist/component/aurora-x-BGO53J2I.js +7 -0
- package/dist/component/aurora-x-C98he-36.js +7 -0
- package/dist/component/awk-CIiDOfUC.js +9 -0
- package/dist/component/awk-DnzYQYUx.js +9 -0
- package/dist/component/ayu-dark-CK1VRikm.js +7 -0
- package/dist/component/ayu-dark-J6FX8oSr.js +7 -0
- package/dist/component/ayu-light-DIKBJiwH.js +7 -0
- package/dist/component/ayu-light-x4Q5N51d.js +7 -0
- package/dist/component/ayu-mirage-C5_fPLwf.js +7 -0
- package/dist/component/ayu-mirage-DhPHVcGJ.js +7 -0
- package/dist/component/ballerina-CeqVHW9D.js +9 -0
- package/dist/component/ballerina-epCf0_WV.js +9 -0
- package/dist/component/bat-Cuej7k1C.js +9 -0
- package/dist/component/bat-Dai7pznF.js +9 -0
- package/dist/component/beancount-CpREEZMl.js +9 -0
- package/dist/component/beancount-CwiYx9PE.js +9 -0
- package/dist/component/berry-BoYGiG42.js +9 -0
- package/dist/component/berry-DFo_i8CN.js +9 -0
- package/dist/component/bibtex-2bgmGv5w.js +9 -0
- package/dist/component/bibtex-BkTrlnvh.js +9 -0
- package/dist/component/bicep-C80YQkEm.js +9 -0
- package/dist/component/bicep-DYkQKpr8.js +9 -0
- package/dist/component/bird2-5AxdId5f.js +9 -0
- package/dist/component/bird2-CjcgWn0f.js +9 -0
- package/dist/component/blade-BdUlKesy.js +23 -0
- package/dist/component/blade-DNMMxdfa.js +23 -0
- package/dist/component/blockDiagram-GPEHLZMM-YerYvLm_.js +2421 -0
- package/dist/component/bsl-CYB_gPZn.js +11 -0
- package/dist/component/bsl-DJ4bR5oi.js +11 -0
- package/dist/component/c-C4AMyX3G.js +9 -0
- package/dist/component/c-C7DfT4H8.js +9 -0
- package/dist/component/c3-DDixCt0K.js +9 -0
- package/dist/component/c3-xeavH2G2.js +9 -0
- package/dist/component/c4Diagram-AAUBKEIU-p8UR34Zq.js +1586 -0
- package/dist/component/cadence-Cy8toSoU.js +9 -0
- package/dist/component/cadence-xq71MyIp.js +9 -0
- package/dist/component/cairo-B1qo5_uz.js +11 -0
- package/dist/component/cairo-CZSJv_Y_.js +11 -0
- package/dist/component/catppuccin-frappe-BGDzipYl.js +7 -0
- package/dist/component/catppuccin-frappe-DZ2VPnzg.js +7 -0
- package/dist/component/catppuccin-latte-9zQ0xneh.js +7 -0
- package/dist/component/catppuccin-latte-CK4XjBXq.js +7 -0
- package/dist/component/catppuccin-macchiato-CIKuiG5O.js +7 -0
- package/dist/component/catppuccin-macchiato-D1xBlgUI.js +7 -0
- package/dist/component/catppuccin-mocha-CQk3ku6b.js +7 -0
- package/dist/component/catppuccin-mocha-Dr22M_MR.js +7 -0
- package/dist/component/channel-ahmILYyG.js +8 -0
- package/dist/component/chunk-2J33WTMH-CGaAxoSO.js +22 -0
- package/dist/component/chunk-4BX2VUAB-gRTK7Di9.js +11 -0
- package/dist/component/chunk-55IACEB6-XfJuuv6Y.js +11 -0
- package/dist/component/chunk-727SXJPM-Cy0hXMuO.js +1537 -0
- package/dist/component/chunk-AQP2D5EJ-CZHGw4se.js +1396 -0
- package/dist/component/chunk-FMBD7UC4-CyqtPCO0.js +22 -0
- package/dist/component/chunk-ND2GUHAM-CzTviSBV.js +71 -0
- package/dist/component/chunk-QZHKN3VN-CHDEerWv.js +21 -0
- package/dist/component/clarity-Dmd3VcKv.js +9 -0
- package/dist/component/clarity-FR-MQPIo.js +9 -0
- package/dist/component/classDiagram-4FO5ZUOK-BDzl1OcC.js +19 -0
- package/dist/component/classDiagram-v2-Q7XG4LA2-BDzl1OcC.js +19 -0
- package/dist/component/clojure-CZ5pqCKI.js +9 -0
- package/dist/component/clojure-DUXXPerS.js +9 -0
- package/dist/component/cmake-DeSLuBit.js +9 -0
- package/dist/component/cmake-Dh5RXd_q.js +9 -0
- package/dist/component/cobol-B0R9veOS.js +13 -0
- package/dist/component/cobol-DayClXiO.js +13 -0
- package/dist/component/codeowners-C5Gg1qBb.js +9 -0
- package/dist/component/codeowners-RGJbf4XS.js +9 -0
- package/dist/component/codeql-1OtYEVEY.js +9 -0
- package/dist/component/codeql-CoCy8yp4.js +9 -0
- package/dist/component/coffee-kdLRO3eV.js +11 -0
- package/dist/component/coffee-tRjJZw7o.js +11 -0
- package/dist/component/common-lisp-BeJe0ab6.js +9 -0
- package/dist/component/common-lisp-GbfS1OBj.js +9 -0
- package/dist/component/coq-B0RJLsKz.js +9 -0
- package/dist/component/coq-DMlFNAl3.js +9 -0
- package/dist/component/cose-bilkent-S5V4N54A-4R0ErgrZ.js +2611 -0
- package/dist/component/cpp-BpiKH-9I.js +21 -0
- package/dist/component/cpp-BwGJQL2p.js +21 -0
- package/dist/component/crystal-Bb_LifhW.js +21 -0
- package/dist/component/crystal-D0cTXans.js +21 -0
- package/dist/component/csharp-5kMbpBNi.js +9 -0
- package/dist/component/csharp-UFMQzTVu.js +9 -0
- package/dist/component/css-B2ckPEoZ.js +9 -0
- package/dist/component/css-MDiv-Xmm.js +9 -0
- package/dist/component/csv-Ba1T94jM.js +9 -0
- package/dist/component/csv-DZ-mzuKa.js +9 -0
- package/dist/component/cue-CtGb6f31.js +9 -0
- package/dist/component/cue-DbYr629m.js +9 -0
- package/dist/component/cypher-7eGqJtNJ.js +9 -0
- package/dist/component/cypher-pD9MnYc_.js +9 -0
- package/dist/component/cytoscape.esm-C31R6JOv.js +18772 -0
- package/dist/component/d-BefBLeap.js +9 -0
- package/dist/component/d-Dij3nCx4.js +9 -0
- package/dist/component/dagre-BM42HDAG-BcJQXGn3.js +448 -0
- package/dist/component/dark-plus-C9nS7rhq.js +7 -0
- package/dist/component/dark-plus-L3JON0ir.js +7 -0
- package/dist/component/dart-BWNSliXX.js +9 -0
- package/dist/component/dart-DCRAsZQK.js +9 -0
- package/dist/component/dax-CWdGoxkM.js +9 -0
- package/dist/component/dax-pykceZLM.js +9 -0
- package/dist/component/defaultLocale-BXpxsZAK.js +174 -0
- package/dist/component/desktop-4j8jFU02.js +9 -0
- package/dist/component/desktop-B3AeStqn.js +9 -0
- package/dist/component/diagram-2AECGRRQ-Cld7-k7F.js +220 -0
- package/dist/component/diagram-5GNKFQAL-d7JtHVRK.js +126 -0
- package/dist/component/diagram-KO2AKTUF-Avxzz4xw.js +464 -0
- package/dist/component/diagram-LMA3HP47-Cy_E5-rU.js +148 -0
- package/dist/component/diagram-OG6HWLK6-DUsJK7Js.js +534 -0
- package/dist/component/diff-DuoPSmgL.js +9 -0
- package/dist/component/diff-IyCSM08A.js +9 -0
- package/dist/component/docker-BSrvy0o9.js +9 -0
- package/dist/component/docker-Ca4vT6OJ.js +9 -0
- package/dist/component/dotenv-CUP-PB19.js +9 -0
- package/dist/component/dotenv-aA3GGxJM.js +9 -0
- package/dist/component/dracula-2BaSCSav.js +7 -0
- package/dist/component/dracula-Lg7_DbOD.js +7 -0
- package/dist/component/dracula-soft-AsPqNBvZ.js +7 -0
- package/dist/component/dracula-soft-n6R-sBGM.js +7 -0
- package/dist/component/dream-maker-B2xERNvR.js +9 -0
- package/dist/component/dream-maker-Jadq_Ln7.js +9 -0
- package/dist/component/edge-B-amp2rn.js +15 -0
- package/dist/component/edge-Bol1lNG-.js +15 -0
- package/dist/component/elixir-DSzpv_bE.js +11 -0
- package/dist/component/elixir-t5YY_ese.js +11 -0
- package/dist/component/elm-DNaka8RZ.js +11 -0
- package/dist/component/elm-JLsvCHy1.js +11 -0
- package/dist/component/emacs-lisp-C6XZT609.js +9 -0
- package/dist/component/emacs-lisp-DWDtb5kD.js +9 -0
- package/dist/component/erDiagram-TEJ5UH35-DEdqrWqp.js +905 -0
- package/dist/component/erb-BJ95qgrJ.js +13 -0
- package/dist/component/erb-rGIYAeIa.js +13 -0
- package/dist/component/erlang-By5grfmz.js +11 -0
- package/dist/component/erlang-rAClsghX.js +11 -0
- package/dist/component/everforest-dark-DBhTz0Lt.js +7 -0
- package/dist/component/everforest-dark-_A43rkLf.js +7 -0
- package/dist/component/everforest-light-Bep_XOgu.js +7 -0
- package/dist/component/everforest-light-DHbrW2te.js +7 -0
- package/dist/component/fennel-CeQPNUU9.js +9 -0
- package/dist/component/fennel-QllfYze1.js +9 -0
- package/dist/component/fish-BXP1eRyz.js +9 -0
- package/dist/component/fish-DkfR0DRL.js +9 -0
- package/dist/component/flowDiagram-I6XJVG4X-BWzYDsjP.js +1634 -0
- package/dist/component/fluent-Ih0R99Ix.js +9 -0
- package/dist/component/fluent-RduSrzCZ.js +9 -0
- package/dist/component/fortran-fixed-form-C3I8YlEU.js +11 -0
- package/dist/component/fortran-fixed-form-D7OlW0lw.js +11 -0
- package/dist/component/fortran-free-form-CXj2ku4f.js +9 -0
- package/dist/component/fortran-free-form-DifCDW_P.js +9 -0
- package/dist/component/fsharp-65O4P3S5.js +11 -0
- package/dist/component/fsharp-CXzwUWsC.js +11 -0
- package/dist/component/ganttDiagram-6RSMTGT7-DzfeVIgF.js +2709 -0
- package/dist/component/gdresource-Bn5VhPaI.js +13 -0
- package/dist/component/gdresource-kUFIn9eK.js +13 -0
- package/dist/component/gdscript-BNGA6E65.js +9 -0
- package/dist/component/gdscript-LjKsfw3O.js +9 -0
- package/dist/component/gdshader-C-Gp5-Ot.js +9 -0
- package/dist/component/gdshader-C1lRZRQz.js +9 -0
- package/dist/component/genie-B8viIUNC.js +9 -0
- package/dist/component/genie-eR37RVXX.js +9 -0
- package/dist/component/gherkin-BVA-IOor.js +9 -0
- package/dist/component/gherkin-CuORnKvF.js +9 -0
- package/dist/component/git-commit-BNPqpLhi.js +11 -0
- package/dist/component/git-commit-Dh7BfmB9.js +11 -0
- package/dist/component/git-rebase-B5TXZutB.js +11 -0
- package/dist/component/git-rebase-DhwWS8MC.js +11 -0
- package/dist/component/gitGraphDiagram-PVQCEYII-CKzbGWcQ.js +818 -0
- package/dist/component/github-dark-5b4g_bOp.js +7 -0
- package/dist/component/github-dark-default-6zDGR7DJ.js +7 -0
- package/dist/component/github-dark-default-H56pGX_M.js +7 -0
- package/dist/component/github-dark-dimmed-B1iXBBmo.js +7 -0
- package/dist/component/github-dark-dimmed-DjYa1rhk.js +7 -0
- package/dist/component/github-dark-high-contrast-BuNi_Wj5.js +7 -0
- package/dist/component/github-dark-high-contrast-DvpYRI-4.js +7 -0
- package/dist/component/github-dark-mxHsWyJ4.js +7 -0
- package/dist/component/github-light-CTdjTVPf.js +7 -0
- package/dist/component/github-light-KqdY1rAV.js +7 -0
- package/dist/component/github-light-default-BlRYTBRQ.js +7 -0
- package/dist/component/github-light-default-Drw5Jl_p.js +7 -0
- package/dist/component/github-light-high-contrast-9d8ktz0h.js +7 -0
- package/dist/component/github-light-high-contrast-ColFVC7A.js +7 -0
- package/dist/component/gleam-BXQHq2ZT.js +9 -0
- package/dist/component/gleam-RfA2dpfH.js +9 -0
- package/dist/component/glimmer-js-BHZ1FuRp.js +17 -0
- package/dist/component/glimmer-js-Gdq_UYVf.js +17 -0
- package/dist/component/glimmer-ts-D6H7q5ls.js +17 -0
- package/dist/component/glimmer-ts-DdmgeZua.js +17 -0
- package/dist/component/glsl-D1RRylbk.js +11 -0
- package/dist/component/glsl-MDSU_3-y.js +11 -0
- package/dist/component/gn-D8VPrt1o.js +9 -0
- package/dist/component/gn-DJpTAp5e.js +9 -0
- package/dist/component/gnuplot-BNzwvBx5.js +9 -0
- package/dist/component/gnuplot-Iqvzplz-.js +9 -0
- package/dist/component/go-D-G7cxeA.js +9 -0
- package/dist/component/go-TNOI7pQc.js +9 -0
- package/dist/component/graph-BZLHvygk.js +1548 -0
- package/dist/component/graphql-CW6tYk7X.js +17 -0
- package/dist/component/graphql-DGugpl40.js +17 -0
- package/dist/component/groovy-5_UI-q3N.js +9 -0
- package/dist/component/groovy-D7GH48W8.js +9 -0
- package/dist/component/gruvbox-dark-hard-Ch2GYDcJ.js +7 -0
- package/dist/component/gruvbox-dark-hard-Dpxv_Il6.js +7 -0
- package/dist/component/gruvbox-dark-medium-DqoxKYPx.js +7 -0
- package/dist/component/gruvbox-dark-medium-eGVEUM8W.js +7 -0
- package/dist/component/gruvbox-dark-soft-BA9DdijB.js +7 -0
- package/dist/component/gruvbox-dark-soft-DRaJAZcW.js +7 -0
- package/dist/component/gruvbox-light-hard-BJXIrqpz.js +7 -0
- package/dist/component/gruvbox-light-hard-_qNpoYJy.js +7 -0
- package/dist/component/gruvbox-light-medium-39dkJwxv.js +7 -0
- package/dist/component/gruvbox-light-medium-IkDFQhcB.js +7 -0
- package/dist/component/gruvbox-light-soft-DWPQo7Dn.js +7 -0
- package/dist/component/gruvbox-light-soft-Dpz5D6wP.js +7 -0
- package/dist/component/hack-BSrzyV-l.js +13 -0
- package/dist/component/hack-CJNnfXZh.js +13 -0
- package/dist/component/haml-DL-NAYVg.js +13 -0
- package/dist/component/haml-DYkTKupK.js +13 -0
- package/dist/component/handlebars-B2Z6CWhc.js +17 -0
- package/dist/component/handlebars-Cwj0qzUo.js +17 -0
- package/dist/component/haskell-Cj3J4fKD.js +9 -0
- package/dist/component/haskell-h36TjJLk.js +9 -0
- package/dist/component/haxe-CcifGI6O.js +9 -0
- package/dist/component/haxe-Coqw0Tt8.js +9 -0
- package/dist/component/hcl-BPVqiZDb.js +9 -0
- package/dist/component/hcl-DaPl6lOC.js +9 -0
- package/dist/component/highlighted-body-OFNGDK62-BkGwwkHo.js +22 -0
- package/dist/component/hjson-CfcQXz3-.js +9 -0
- package/dist/component/hjson-DsTgWNxt.js +9 -0
- package/dist/component/hlsl-CLzjZIQL.js +9 -0
- package/dist/component/hlsl-DVyuzW8h.js +9 -0
- package/dist/component/horizon-DaNatiIz.js +7 -0
- package/dist/component/horizon-bright-CthJh1Qp.js +7 -0
- package/dist/component/horizon-bright-DMKA6ab6.js +7 -0
- package/dist/component/horizon-q20CuJTh.js +7 -0
- package/dist/component/houston-CjpgGYwZ.js +7 -0
- package/dist/component/houston-DnIZxOiF.js +7 -0
- package/dist/component/html-DSjghx6n.js +13 -0
- package/dist/component/html-derivative-CxizaS1Z.js +11 -0
- package/dist/component/html-derivative-DDrVhQXu.js +11 -0
- package/dist/component/html-tY6fNMOn.js +13 -0
- package/dist/component/http-CLvA54iU.js +17 -0
- package/dist/component/http-CPkD6MSf.js +17 -0
- package/dist/component/hurl-CuuCK9Id.js +15 -0
- package/dist/component/hurl-LcD0R7wh.js +15 -0
- package/dist/component/hxml-CJz9SfqN.js +11 -0
- package/dist/component/hxml-DLsAgg8X.js +11 -0
- package/dist/component/hy-CAEey4h7.js +9 -0
- package/dist/component/hy-Dm2IGIb-.js +9 -0
- package/dist/component/imba-5G9Fs_nr.js +9 -0
- package/dist/component/imba-CH2D1ce9.js +9 -0
- package/dist/component/index.d.ts +3 -0
- package/dist/component/index.js +8 -0
- package/dist/component/infoDiagram-5YYISTIA-D9xN-Pqc.js +27 -0
- package/dist/component/ini-Dt2l3RWi.js +9 -0
- package/dist/component/ini-kgvXisvj.js +9 -0
- package/dist/component/init-BOu0eQYQ.js +19 -0
- package/dist/component/ishikawaDiagram-YF4QCWOH--YDYWDwv.js +627 -0
- package/dist/component/java-BKLcvtEM.js +9 -0
- package/dist/component/java-oSN7P0Od.js +9 -0
- package/dist/component/javascript-CyaMmpOO.js +9 -0
- package/dist/component/javascript-DFm3DOoX.js +9 -0
- package/dist/component/jinja-Ch28RrFG.js +14 -0
- package/dist/component/jinja-CsTh8Ahj.js +14 -0
- package/dist/component/jison-Bu0o8a1Z.js +11 -0
- package/dist/component/jison-DLgrOJpy.js +11 -0
- package/dist/component/journeyDiagram-JHISSGLW-B9-CHfSv.js +837 -0
- package/dist/component/json-D-WsbO45.js +9 -0
- package/dist/component/json-rmrBoeO_.js +9 -0
- package/dist/component/json5-B1J6XVPd.js +9 -0
- package/dist/component/json5-B3-n7IrD.js +9 -0
- package/dist/component/jsonc-BgfI3zjg.js +9 -0
- package/dist/component/jsonc-HFvGREK8.js +9 -0
- package/dist/component/jsonl-DHttz8sH.js +9 -0
- package/dist/component/jsonl-l_eIcPip.js +9 -0
- package/dist/component/jsonnet-D6SNIhw0.js +9 -0
- package/dist/component/jsonnet-DO8Zfk6p.js +9 -0
- package/dist/component/jssm-CKRLojKZ.js +9 -0
- package/dist/component/jssm-Dy1zjXNg.js +9 -0
- package/dist/component/jsx-CpVvoVGp.js +9 -0
- package/dist/component/jsx-si2wS7pt.js +9 -0
- package/dist/component/julia-BPzvBJ4R.js +19 -0
- package/dist/component/julia-CfyFig21.js +19 -0
- package/dist/component/just-D5rIv9U4.js +21 -0
- package/dist/component/just-fRm_weEQ.js +21 -0
- package/dist/component/kanagawa-dragon-BOBo9JLg.js +7 -0
- package/dist/component/kanagawa-dragon-BWPCHB_7.js +7 -0
- package/dist/component/kanagawa-lotus-8m_3LhhF.js +7 -0
- package/dist/component/kanagawa-lotus-B5o1JCNj.js +7 -0
- package/dist/component/kanagawa-wave-BSP7z6KH.js +7 -0
- package/dist/component/kanagawa-wave-ClYLx7ql.js +7 -0
- package/dist/component/kanban-definition-UN3LZRKU-Cmh8twbq.js +727 -0
- package/dist/component/kdl-GafIF83C.js +9 -0
- package/dist/component/kdl-_X6wsgV0.js +9 -0
- package/dist/component/kotlin-B3jfEOcv.js +9 -0
- package/dist/component/kotlin-BWMoZeA3.js +9 -0
- package/dist/component/kusto-Bkz9eBch.js +9 -0
- package/dist/component/kusto-ohiqZ64l.js +9 -0
- package/dist/component/laserwave-BmajecBZ.js +7 -0
- package/dist/component/laserwave-Bp21zlIO.js +7 -0
- package/dist/component/latex-BYzveWoN.js +11 -0
- package/dist/component/latex-Bi4Lg68B.js +11 -0
- package/dist/component/layout-Bu6nRdWm.js +1731 -0
- package/dist/component/lean-BBkk0btj.js +9 -0
- package/dist/component/lean-DFmhzmny.js +9 -0
- package/dist/component/less-ChX34X5W.js +9 -0
- package/dist/component/less-kqPRXL1K.js +9 -0
- package/dist/component/light-plus-DFxAowZg.js +7 -0
- package/dist/component/light-plus-_t1yKirF.js +7 -0
- package/dist/component/linear-BDyEUcVD.js +262 -0
- package/dist/component/liquid-Bri_C9oi.js +17 -0
- package/dist/component/liquid-f2WMwCDi.js +17 -0
- package/dist/component/llvm-COuD10ql.js +9 -0
- package/dist/component/llvm-dub2631B.js +9 -0
- package/dist/component/log-A8St-vyh.js +9 -0
- package/dist/component/log-g58LFxM8.js +9 -0
- package/dist/component/logo-DZmThwvl.js +9 -0
- package/dist/component/logo-x6YxnKST.js +9 -0
- package/dist/component/lua-Bj2G8q-Z.js +11 -0
- package/dist/component/lua-CyXCKT0u.js +11 -0
- package/dist/component/luau-B8fyn01D.js +9 -0
- package/dist/component/luau-C5q2C4N6.js +9 -0
- package/dist/component/make-DOTJ8IeI.js +9 -0
- package/dist/component/make-DTiRnfNf.js +9 -0
- package/dist/component/markdown-D3u32LKS.js +9 -0
- package/dist/component/markdown-DHm1k_6p.js +9 -0
- package/dist/component/marko-CUgdvzuR.js +17 -0
- package/dist/component/marko-SwZmWzIv.js +17 -0
- package/dist/component/material-theme-BIfRQKI0.js +7 -0
- package/dist/component/material-theme-CxS7GniW.js +7 -0
- package/dist/component/material-theme-darker-DKP5DIOi.js +7 -0
- package/dist/component/material-theme-darker-DkNB3xjL.js +7 -0
- package/dist/component/material-theme-lighter-3I4JYnlq.js +7 -0
- package/dist/component/material-theme-lighter-D5xivCfx.js +7 -0
- package/dist/component/material-theme-ocean-B31yuEXO.js +7 -0
- package/dist/component/material-theme-ocean-rw0kJPZg.js +7 -0
- package/dist/component/material-theme-palenight-BfunK0Uo.js +7 -0
- package/dist/component/material-theme-palenight-COTbh91p.js +7 -0
- package/dist/component/matlab-CkKSQcnX.js +9 -0
- package/dist/component/matlab-DCF6d5YL.js +9 -0
- package/dist/component/mdc-D92XwdT9.js +15 -0
- package/dist/component/mdc-gb_v49HI.js +15 -0
- package/dist/component/mdx-C6kH9TSz.js +9 -0
- package/dist/component/mdx-Dqb5H0t-.js +9 -0
- package/dist/component/mermaid-0bkYzXfL.js +9 -0
- package/dist/component/mermaid-GHXKKRXX-C5Y3BZXR.js +107122 -0
- package/dist/component/mermaid-N7-yWHiu.js +9 -0
- package/dist/component/min-dark-CqEfelDe.js +7 -0
- package/dist/component/min-dark-FAglrjWz.js +7 -0
- package/dist/component/min-light-BmdYN58_.js +7 -0
- package/dist/component/min-light-CcJCxfWw.js +7 -0
- package/dist/component/mindmap-definition-RKZ34NQL-CnFpVFpl.js +833 -0
- package/dist/component/mipsasm-BYNReuUT.js +9 -0
- package/dist/component/mipsasm-CKzkMNWr.js +9 -0
- package/dist/component/mojo-0URGVph7.js +9 -0
- package/dist/component/mojo-C563AncR.js +9 -0
- package/dist/component/monokai-D3_c3OUm.js +7 -0
- package/dist/component/monokai-ugSJFofr.js +7 -0
- package/dist/component/moonbit-BkJk2kyS.js +9 -0
- package/dist/component/moonbit-DlIX78rk.js +9 -0
- package/dist/component/move-BQAHOJb2.js +9 -0
- package/dist/component/move-eiW4QYDW.js +9 -0
- package/dist/component/narrat-2oVindvn.js +9 -0
- package/dist/component/narrat-Dc4cTFeW.js +9 -0
- package/dist/component/nextflow-B4caLl5A.js +11 -0
- package/dist/component/nextflow-Bk0ryO1R.js +11 -0
- package/dist/component/nextflow-groovy-BnXf2WiC.js +9 -0
- package/dist/component/nextflow-groovy-DIMIAEOy.js +9 -0
- package/dist/component/nginx-BaGEfT9r.js +11 -0
- package/dist/component/nginx-Dprlne5J.js +11 -0
- package/dist/component/night-owl-B6L5FL5v.js +7 -0
- package/dist/component/night-owl-CB_IXuNH.js +7 -0
- package/dist/component/night-owl-light-BZxeyl5X.js +7 -0
- package/dist/component/night-owl-light-CoPr05P4.js +7 -0
- package/dist/component/nim-BKvvFCe_.js +23 -0
- package/dist/component/nim-CQZqLxeE.js +23 -0
- package/dist/component/nix-Cp8a0vy5.js +12 -0
- package/dist/component/nix-DEY1zukk.js +12 -0
- package/dist/component/nord-D3PAEvHH.js +7 -0
- package/dist/component/nord-DPPgRakM.js +7 -0
- package/dist/component/nushell-BdsblUId.js +9 -0
- package/dist/component/nushell-DUUbmBaO.js +9 -0
- package/dist/component/objective-c-CNN3tl1v.js +9 -0
- package/dist/component/objective-c-D_6I2dsG.js +9 -0
- package/dist/component/objective-cpp-BjicYcS7.js +9 -0
- package/dist/component/objective-cpp-z4LTaUcg.js +9 -0
- package/dist/component/ocaml-BnD9haV8.js +9 -0
- package/dist/component/ocaml-DZseEUty.js +9 -0
- package/dist/component/odin-CnsCKboc.js +9 -0
- package/dist/component/odin-P2WSXO4H.js +9 -0
- package/dist/component/one-dark-pro-C_eaQ16k.js +7 -0
- package/dist/component/one-dark-pro-OimEv0Ou.js +7 -0
- package/dist/component/one-light-B0ti6b9S.js +7 -0
- package/dist/component/one-light-j3UfPQB3.js +7 -0
- package/dist/component/openscad-2vaKslxR.js +9 -0
- package/dist/component/openscad-jE6oRbDv.js +9 -0
- package/dist/component/ordinal-D0x7izaa.js +64 -0
- package/dist/component/pascal-8jl8irAj.js +9 -0
- package/dist/component/pascal-d7SASCGO.js +9 -0
- package/dist/component/perl-DHC1BZ_5.js +19 -0
- package/dist/component/perl-DVm7Pq-D.js +19 -0
- package/dist/component/php-BF_l-EgM.js +21 -0
- package/dist/component/php-BtpW2-DO.js +21 -0
- package/dist/component/pieDiagram-4H26LBE5-u-blLkni.js +166 -0
- package/dist/component/pkl-CoBnC_8G.js +9 -0
- package/dist/component/pkl-DZdA2Trc.js +9 -0
- package/dist/component/plastic-3IjBbwNP.js +7 -0
- package/dist/component/plastic-CixB-AlW.js +7 -0
- package/dist/component/plsql-Cv-ZxhCL.js +9 -0
- package/dist/component/plsql-CzeGyK0m.js +9 -0
- package/dist/component/po-eb_Amfj2.js +9 -0
- package/dist/component/po-moSB12fi.js +9 -0
- package/dist/component/poimandres-C03Jy3KZ.js +7 -0
- package/dist/component/poimandres-CKZ3f48N.js +7 -0
- package/dist/component/polar-BKFAKBSA.js +9 -0
- package/dist/component/polar-CsPCUbKt.js +9 -0
- package/dist/component/postcss-CytNqPC0.js +9 -0
- package/dist/component/postcss-D3_LY2LH.js +9 -0
- package/dist/component/powerquery-CpTndMW_.js +9 -0
- package/dist/component/powerquery-f-cemdrG.js +9 -0
- package/dist/component/powershell-B-JkstDq.js +9 -0
- package/dist/component/powershell-BkDB3ZO9.js +9 -0
- package/dist/component/prisma-B4mlcaEB.js +9 -0
- package/dist/component/prisma-BX88wNNq.js +9 -0
- package/dist/component/prolog-ZYcjPjsY.js +9 -0
- package/dist/component/prolog-ftPRGVaT.js +9 -0
- package/dist/component/proto-B5SG7zCc.js +9 -0
- package/dist/component/proto-DpTcjJFH.js +9 -0
- package/dist/component/pug-BziTjzcZ.js +15 -0
- package/dist/component/pug-XUdLuJ2s.js +15 -0
- package/dist/component/puppet-BeyD5DhV.js +9 -0
- package/dist/component/puppet-DjFvC8zy.js +9 -0
- package/dist/component/purescript-BBRU0YyZ.js +9 -0
- package/dist/component/purescript-Bf3WPYAV.js +9 -0
- package/dist/component/python-C7yusFoO.js +9 -0
- package/dist/component/python-CuNbg5wx.js +9 -0
- package/dist/component/qml-Cu9RjXOs.js +11 -0
- package/dist/component/qml-Z-uvElxQ.js +11 -0
- package/dist/component/qmldir-BHp2usxt.js +9 -0
- package/dist/component/qmldir-C6P--W6X.js +9 -0
- package/dist/component/qss-CgcBaeYL.js +9 -0
- package/dist/component/qss-iWzt-Nzy.js +9 -0
- package/dist/component/quadrantDiagram-W4KKPZXB-Bpq-EoMM.js +1033 -0
- package/dist/component/r-8lH98zbN.js +9 -0
- package/dist/component/r-CyFkAlMF.js +9 -0
- package/dist/component/racket-DaWPCRlQ.js +9 -0
- package/dist/component/racket-effgGH8q.js +9 -0
- package/dist/component/raku-DXM7wT4g.js +9 -0
- package/dist/component/raku-GZVvT-nH.js +9 -0
- package/dist/component/razor-CYq4jbLW.js +13 -0
- package/dist/component/razor-DQFDiXM1.js +13 -0
- package/dist/component/red-B9TgEgRC.js +7 -0
- package/dist/component/red-BNC90Lxb.js +7 -0
- package/dist/component/reg-C62uOG3A.js +9 -0
- package/dist/component/reg-CQgRgzkw.js +9 -0
- package/dist/component/regexp-D8jeZrvm.js +9 -0
- package/dist/component/regexp-UNvxOND4.js +9 -0
- package/dist/component/rel-BRyuNjQD.js +9 -0
- package/dist/component/rel-Cyzm_Cno.js +9 -0
- package/dist/component/requirementDiagram-4Y6WPE33-B8V7mLRY.js +888 -0
- package/dist/component/riscv-BHdC-Wfh.js +9 -0
- package/dist/component/riscv-BZ9l50bA.js +9 -0
- package/dist/component/ron--0kZyCV0.js +9 -0
- package/dist/component/ron-CJx-eqt3.js +9 -0
- package/dist/component/rose-pine-XHcBRH-D.js +7 -0
- package/dist/component/rose-pine-dawn-Bz77Igqs.js +7 -0
- package/dist/component/rose-pine-dawn-RL42yTas.js +7 -0
- package/dist/component/rose-pine-ksWn8nuO.js +7 -0
- package/dist/component/rose-pine-moon-BtSW__9n.js +7 -0
- package/dist/component/rose-pine-moon-QJS0aJgR.js +7 -0
- package/dist/component/rosmsg-BPUqDEe2.js +9 -0
- package/dist/component/rosmsg-CM65NRE0.js +9 -0
- package/dist/component/rst-CqXkCW5F.js +25 -0
- package/dist/component/rst-DQATMrFw.js +25 -0
- package/dist/component/ruby-B09XKrLg.js +33 -0
- package/dist/component/ruby-BJtrPIFQ.js +33 -0
- package/dist/component/rust-3aEF0O7t.js +9 -0
- package/dist/component/rust-XKBJng8W.js +9 -0
- package/dist/component/sankeyDiagram-5OEKKPKP-C-TbMbsr.js +862 -0
- package/dist/component/sas-COkwgxe_.js +11 -0
- package/dist/component/sas-DDLczODn.js +11 -0
- package/dist/component/sass-BIT8Mghp.js +9 -0
- package/dist/component/sass-CbXM5obh.js +9 -0
- package/dist/component/scala-CWyCExvl.js +9 -0
- package/dist/component/scala-DmAjX8OM.js +9 -0
- package/dist/component/scheme-BLXiZF3M.js +9 -0
- package/dist/component/scheme-ERi8vGmO.js +9 -0
- package/dist/component/scss-BX4eQ0c3.js +11 -0
- package/dist/component/scss-Biq-xkEY.js +11 -0
- package/dist/component/sdbl-B4TEJKGi.js +9 -0
- package/dist/component/sdbl-tnLxE-ur.js +9 -0
- package/dist/component/sequenceDiagram-3UESZ5HK-UHhixLbD.js +2897 -0
- package/dist/component/shaderlab-DMYXUCqo.js +11 -0
- package/dist/component/shaderlab-DqcfJRqk.js +11 -0
- package/dist/component/shellscript-B533aeAq.js +9 -0
- package/dist/component/shellscript-B8M9FK6Q.js +9 -0
- package/dist/component/shellsession-CvrLJEnp.js +11 -0
- package/dist/component/shellsession-Cy0cdv3D.js +11 -0
- package/dist/component/slack-dark-9TBiD8mL.js +7 -0
- package/dist/component/slack-dark-DN-r2Kgp.js +7 -0
- package/dist/component/slack-ochin-9pgdwMdj.js +7 -0
- package/dist/component/slack-ochin-DoqPjNJD.js +7 -0
- package/dist/component/smalltalk-Bbm0pJzJ.js +9 -0
- package/dist/component/smalltalk-BgwWJ0LQ.js +9 -0
- package/dist/component/snazzy-light-CRiZMLw1.js +7 -0
- package/dist/component/snazzy-light-D2QxPpzI.js +7 -0
- package/dist/component/solarized-dark-CpiZBbF-.js +7 -0
- package/dist/component/solarized-dark-DrZ258Kz.js +7 -0
- package/dist/component/solarized-light-940Q0ET-.js +7 -0
- package/dist/component/solarized-light-CZjXGjG0.js +7 -0
- package/dist/component/solidity-BiVIJAyo.js +9 -0
- package/dist/component/solidity-DsGO0zKs.js +9 -0
- package/dist/component/soy-B8d9iNux.js +11 -0
- package/dist/component/soy-CrWxFFIL.js +11 -0
- package/dist/component/sparql-C9-sbVPb.js +11 -0
- package/dist/component/sparql-D4y9QLpW.js +11 -0
- package/dist/component/splunk-8ZGt17T1.js +9 -0
- package/dist/component/splunk-CoLR9YoS.js +9 -0
- package/dist/component/sql-kcHmCqqm.js +9 -0
- package/dist/component/sql-vg8sPfqQ.js +9 -0
- package/dist/component/ssh-config-CaXR5cZI.js +9 -0
- package/dist/component/ssh-config-DIPB8nWv.js +9 -0
- package/dist/component/stata-DTwlvRC-.js +11 -0
- package/dist/component/stata-wXDnjjLv.js +11 -0
- package/dist/component/stateDiagram-AJRCARHV-DBGVr_mf.js +266 -0
- package/dist/component/stateDiagram-v2-BHNVJYJU-BasSd11t.js +19 -0
- package/dist/component/stylus-BVi_fesw.js +9 -0
- package/dist/component/stylus-WAexVQ6f.js +9 -0
- package/dist/component/surrealql-BMPoOZ16.js +11 -0
- package/dist/component/surrealql-CoR3cmJl.js +11 -0
- package/dist/component/svelte-BXoajfvD.js +17 -0
- package/dist/component/svelte-CSNEH6tH.js +17 -0
- package/dist/component/swift-C1L5BrdG.js +9 -0
- package/dist/component/swift-DvqRLmJa.js +9 -0
- package/dist/component/synthwave-84-CjU0tbaA.js +7 -0
- package/dist/component/synthwave-84-D0HCetP1.js +7 -0
- package/dist/component/system-verilog-BlCQhLvC.js +9 -0
- package/dist/component/system-verilog-NfYSOS9X.js +9 -0
- package/dist/component/systemd-C-VULMOV.js +9 -0
- package/dist/component/systemd-DPQeba_a.js +9 -0
- package/dist/component/talonscript-0iKTliWA.js +9 -0
- package/dist/component/talonscript-Dcq0YJ69.js +9 -0
- package/dist/component/tasl-CBnjmw_u.js +9 -0
- package/dist/component/tasl-DPTcRLbU.js +9 -0
- package/dist/component/tcl-B8YZq0wg.js +9 -0
- package/dist/component/tcl-D3IfUIUn.js +9 -0
- package/dist/component/templ-BWrZoBOl.js +15 -0
- package/dist/component/templ-CNKcDxHw.js +15 -0
- package/dist/component/terraform-BBGJbbOd.js +9 -0
- package/dist/component/terraform-CpHfbII0.js +9 -0
- package/dist/component/tex-Do7cxq2n.js +11 -0
- package/dist/component/tex-DotwMf2L.js +11 -0
- package/dist/component/timeline-definition-PNZ67QCA-BTzUH3cf.js +1058 -0
- package/dist/component/tokyo-night-50KL4qXP.js +7 -0
- package/dist/component/tokyo-night-CFdInRHE.js +7 -0
- package/dist/component/toml-BgG8u2uy.js +9 -0
- package/dist/component/toml-Cdrl1XDU.js +9 -0
- package/dist/component/ts-tags-CZ_-X2Or.js +44 -0
- package/dist/component/ts-tags-JQGxDVZd.js +44 -0
- package/dist/component/tsv-CH-Gpfzn.js +9 -0
- package/dist/component/tsv-DXq61Z_y.js +9 -0
- package/dist/component/tsx-B6WYiHjH.js +9 -0
- package/dist/component/tsx-BI2vzHzF.js +9 -0
- package/dist/component/turtle-BLh3UAZ1.js +9 -0
- package/dist/component/turtle-DuS0HQ9p.js +9 -0
- package/dist/component/twig-BA9yPOhQ.js +21 -0
- package/dist/component/twig-F0j_PXgJ.js +21 -0
- package/dist/component/typescript-Bt_Em9TU.js +9 -0
- package/dist/component/typescript-BxspRrVw.js +9 -0
- package/dist/component/typespec-CBQfkfKg.js +9 -0
- package/dist/component/typespec-ChsG4DJP.js +9 -0
- package/dist/component/typst-CLNdxZpy.js +9 -0
- package/dist/component/typst-rCvFF3Ml.js +9 -0
- package/dist/component/v-Bc8b7HcA.js +9 -0
- package/dist/component/v-DkBTCxRz.js +9 -0
- package/dist/component/vala-Bf6duLsN.js +9 -0
- package/dist/component/vala-D3NFAJvZ.js +9 -0
- package/dist/component/vb-CbCKaE0V.js +9 -0
- package/dist/component/vb-DoG_86dU.js +9 -0
- package/dist/component/vennDiagram-CIIHVFJN-CVh3weJ2.js +1560 -0
- package/dist/component/verilog-BsnhA3AJ.js +9 -0
- package/dist/component/verilog-nZodAh2g.js +9 -0
- package/dist/component/vesper-C9xEuBGK.js +7 -0
- package/dist/component/vesper-DGjNIaCs.js +7 -0
- package/dist/component/vhdl-D19XVLHt.js +9 -0
- package/dist/component/vhdl-mXcQB2Fg.js +9 -0
- package/dist/component/viml-8k_5DKNK.js +9 -0
- package/dist/component/viml-COJbZm0U.js +9 -0
- package/dist/component/vitesse-black-Bct4R3m4.js +7 -0
- package/dist/component/vitesse-black-heVxAgDf.js +7 -0
- package/dist/component/vitesse-dark-DdWh6SFL.js +7 -0
- package/dist/component/vitesse-dark-DiXBkaTo.js +7 -0
- package/dist/component/vitesse-light-CerMU32A.js +7 -0
- package/dist/component/vitesse-light-Eee3KZAP.js +7 -0
- package/dist/component/vue-DjB6jmJ7.js +34 -0
- package/dist/component/vue-YqIdEku3.js +34 -0
- package/dist/component/vue-html-BkvRG1qx.js +11 -0
- package/dist/component/vue-html-CXFz0iVx.js +11 -0
- package/dist/component/vue-vine-CFD4nsF4.js +21 -0
- package/dist/component/vue-vine-lE-jUeB6.js +21 -0
- package/dist/component/vyper-DTCkLS2f.js +9 -0
- package/dist/component/vyper-_vSvOdCD.js +9 -0
- package/dist/component/wardley-L42UT6IY-HA1eSIS_.js +23141 -0
- package/dist/component/wardleyDiagram-YWT4CUSO-Uu5KXQum.js +681 -0
- package/dist/component/wasm-BEUtLzBq.js +10 -0
- package/dist/component/wasm-Bw9k5bmy.js +9 -0
- package/dist/component/wasm-NiufRxKC.js +9 -0
- package/dist/component/wasm-rA9i46L9.js +10 -0
- package/dist/component/wenyan-BAnK6VvJ.js +9 -0
- package/dist/component/wenyan-EBJbIPqf.js +9 -0
- package/dist/component/wgsl-B9MSpOv3.js +9 -0
- package/dist/component/wgsl-Dlg8zdV4.js +9 -0
- package/dist/component/wikitext-C8AvgBS7.js +9 -0
- package/dist/component/wikitext-sNd9wc1e.js +9 -0
- package/dist/component/wit-BM4EHoLb.js +9 -0
- package/dist/component/wit-BUXWAgVD.js +9 -0
- package/dist/component/wolfram-Ba-Qm5eW.js +9 -0
- package/dist/component/wolfram-CKRVXwGa.js +9 -0
- package/dist/component/xml-CE4MTCb-.js +11 -0
- package/dist/component/xml-DXvCmeFI.js +11 -0
- package/dist/component/xsl-BrFD-9o5.js +11 -0
- package/dist/component/xsl-CHBQO4kd.js +11 -0
- package/dist/component/xychartDiagram-2RQKCTM6-IkxwUbCF.js +1375 -0
- package/dist/component/yaml-CF4mYNnF.js +9 -0
- package/dist/component/yaml-XzfbPk1C.js +9 -0
- package/dist/component/zenscript-C0pvNsdh.js +9 -0
- package/dist/component/zenscript-xkkNgCqg.js +9 -0
- package/dist/component/zig-Bz6GLPWH.js +9 -0
- package/dist/component/zig-oixaTxav.js +9 -0
- package/dist/components/ai-elements/attachments.d.ts +54 -0
- package/dist/components/ai-elements/code-block.d.ts +46 -0
- package/dist/components/ai-elements/conversation.d.ts +23 -0
- package/dist/components/ai-elements/copy-button.d.ts +6 -0
- package/dist/components/ai-elements/file-tree.d.ts +26 -0
- package/dist/components/ai-elements/link-safety-modal.d.ts +8 -0
- package/dist/components/ai-elements/message.d.ts +38 -0
- package/dist/components/ai-elements/plan.d.ts +25 -0
- package/dist/components/ai-elements/prompt-input.d.ts +158 -0
- package/dist/components/ai-elements/reasoning.d.ts +26 -0
- package/dist/components/ai-elements/shell-highlight.d.ts +3 -0
- package/dist/components/ai-elements/shimmer.d.ts +9 -0
- package/dist/components/ai-elements/suggestion.d.ts +10 -0
- package/dist/components/ai-elements/task.d.ts +14 -0
- package/dist/components/ai-elements/terminal-task.d.ts +5 -0
- package/dist/components/ai-elements/tool.d.ts +31 -0
- package/dist/components/embed/AgentGrantCard.d.ts +25 -0
- package/dist/components/embed/AtMentionMenu.d.ts +13 -0
- package/dist/components/embed/BelongMark.d.ts +4 -0
- package/dist/components/embed/BrandMark.d.ts +11 -0
- package/dist/components/embed/CapabilityHints.d.ts +1 -0
- package/dist/components/embed/ComposerMenu.d.ts +36 -0
- package/dist/components/embed/CsvTable.d.ts +10 -0
- package/dist/components/embed/EmbedAvatar.d.ts +35 -0
- package/dist/components/embed/EmbedComposer.d.ts +31 -0
- package/dist/components/embed/EmbedConversation.d.ts +31 -0
- package/dist/components/embed/EmbedFiles.d.ts +28 -0
- package/dist/components/embed/EmbedHeader.d.ts +11 -0
- package/dist/components/embed/EmbedLogin.d.ts +11 -0
- package/dist/components/embed/EmbedRail.d.ts +49 -0
- package/dist/components/embed/EmbedSessions.d.ts +23 -0
- package/dist/components/embed/FilePreview.d.ts +12 -0
- package/dist/components/embed/FilePreviewDialog.d.ts +19 -0
- package/dist/components/embed/MentionInput.d.ts +23 -0
- package/dist/components/embed/MentionPill.d.ts +25 -0
- package/dist/components/embed/OnboardingOverlay.d.ts +21 -0
- package/dist/components/embed/OnboardingTour.d.ts +24 -0
- package/dist/components/embed/OnboardingWelcome.d.ts +23 -0
- package/dist/components/embed/PlanCue.d.ts +9 -0
- package/dist/components/embed/PlanPanel.d.ts +13 -0
- package/dist/components/embed/PlanView.d.ts +16 -0
- package/dist/components/embed/PoweredByBelong.d.ts +7 -0
- package/dist/components/embed/PreviewContent.d.ts +26 -0
- package/dist/components/embed/PreviewPanel.d.ts +17 -0
- package/dist/components/embed/ProgressRing.d.ts +13 -0
- package/dist/components/embed/SlashCommandMenu.d.ts +13 -0
- package/dist/components/embed/UploadedFiles.d.ts +9 -0
- package/dist/components/embed/UsageMeter.d.ts +9 -0
- package/dist/components/embed/WelcomeIntro.d.ts +10 -0
- package/dist/components/embed/WorkspaceTree.d.ts +22 -0
- package/dist/components/embed/__plan-test-utils__.d.ts +13 -0
- package/dist/components/embed/dev-runtime-bar.d.ts +21 -0
- package/dist/components/embed/embed-composer.fixtures.d.ts +3 -0
- package/dist/components/embed/embed-rail.fixtures.d.ts +3 -0
- package/dist/components/embed/file-preview-kind.d.ts +7 -0
- package/dist/components/embed/onboarding-story-dock.d.ts +20 -0
- package/dist/components/embed/onboarding.fixtures.d.ts +9 -0
- package/dist/components/embed/parse-csv.d.ts +10 -0
- package/dist/components/embed/preview-content-kind.d.ts +15 -0
- package/dist/components/embed/use-panel-resize.d.ts +4 -0
- package/dist/components/embed/use-preview-bytes.d.ts +39 -0
- package/dist/components/feedback/feedback-metadata.d.ts +37 -0
- package/dist/components/feedback/message-feedback.d.ts +9 -0
- package/dist/components/ui/accordion.d.ts +7 -0
- package/dist/components/ui/alert.d.ts +9 -0
- package/dist/components/ui/avatar.d.ts +11 -0
- package/dist/components/ui/badge.d.ts +9 -0
- package/dist/components/ui/button-group.d.ts +11 -0
- package/dist/components/ui/button.d.ts +10 -0
- package/dist/components/ui/card.d.ts +9 -0
- package/dist/components/ui/carousel.d.ts +19 -0
- package/dist/components/ui/checkbox.d.ts +4 -0
- package/dist/components/ui/collapsible.d.ts +5 -0
- package/dist/components/ui/command.d.ts +18 -0
- package/dist/components/ui/dialog.d.ts +17 -0
- package/dist/components/ui/dropdown-menu.d.ts +25 -0
- package/dist/components/ui/hover-card.d.ts +6 -0
- package/dist/components/ui/input-group.d.ts +16 -0
- package/dist/components/ui/input.d.ts +3 -0
- package/dist/components/ui/popover.d.ts +10 -0
- package/dist/components/ui/progress.d.ts +4 -0
- package/dist/components/ui/radio-group.d.ts +5 -0
- package/dist/components/ui/scroll-area.d.ts +5 -0
- package/dist/components/ui/select.d.ts +15 -0
- package/dist/components/ui/separator.d.ts +4 -0
- package/dist/components/ui/spinner.d.ts +2 -0
- package/dist/components/ui/switch.d.ts +6 -0
- package/dist/components/ui/tabs.d.ts +11 -0
- package/dist/components/ui/textarea.d.ts +3 -0
- package/dist/components/ui/tooltip.d.ts +7 -0
- package/dist/dev-main.d.ts +0 -0
- package/dist/embed/agent-grant-refresh.d.ts +37 -0
- package/dist/embed/at-mentions.d.ts +80 -0
- package/dist/embed/auth0-refresh.d.ts +78 -0
- package/dist/embed/auto-embed.d.ts +19 -0
- package/dist/embed/bootstrap.d.ts +10 -0
- package/dist/embed/brand-marks.d.ts +11 -0
- package/dist/embed/build-info.d.ts +30 -0
- package/dist/embed/build-version.d.ts +28 -0
- package/dist/embed/chat-mode.d.ts +46 -0
- package/dist/embed/composer-focus.d.ts +14 -0
- package/dist/embed/copy.d.ts +84 -0
- package/dist/embed/custom-css.d.ts +2 -0
- package/dist/embed/debug-overrides.d.ts +11 -0
- package/dist/embed/dev-mode.d.ts +56 -0
- package/dist/embed/dock-layout.d.ts +30 -0
- package/dist/embed/dock-state.d.ts +32 -0
- package/dist/embed/download-url.d.ts +9 -0
- package/dist/embed/file-type-icon.d.ts +29 -0
- package/dist/embed/format-bytes.d.ts +2 -0
- package/dist/embed/global.d.ts +79 -0
- package/dist/embed/locale.d.ts +18 -0
- package/dist/embed/logo.d.ts +1 -0
- package/dist/embed/mic-press.d.ts +27 -0
- package/dist/embed/onboarding-prefs.d.ts +52 -0
- package/dist/embed/onboarding-steps.d.ts +27 -0
- package/dist/embed/onboarding-store.d.ts +39 -0
- package/dist/embed/plan-auto-open.d.ts +8 -0
- package/dist/embed/plan-decision.d.ts +10 -0
- package/dist/embed/plan-intent.d.ts +17 -0
- package/dist/embed/portal-container.d.ts +23 -0
- package/dist/embed/presets.d.ts +29 -0
- package/dist/embed/session-record.d.ts +16 -0
- package/dist/embed/shadow-mount.d.ts +37 -0
- package/dist/embed/slash-commands.d.ts +49 -0
- package/dist/embed/theme.d.ts +40 -0
- package/dist/embed/universe-origin.d.ts +24 -0
- package/dist/embed/use-workspace-file-download.d.ts +16 -0
- package/dist/embed/voice/audio-forwarder.worklet.d.ts +22 -0
- package/dist/embed/voice/audio-utils.d.ts +38 -0
- package/dist/embed/voice/deepgram-stt.d.ts +69 -0
- package/dist/embed/voice/mic-capture.d.ts +34 -0
- package/dist/embed/voice/sentence-split.d.ts +11 -0
- package/dist/embed/voice/voice-http.d.ts +8 -0
- package/dist/embed/voice/voice-token.d.ts +40 -0
- package/dist/embed/voice-bus.d.ts +75 -0
- package/dist/embed/voice-config.d.ts +52 -0
- package/dist/embed/voice-fillers.d.ts +2 -0
- package/dist/embed/voice-prefs.d.ts +55 -0
- package/dist/embed/voice-tts.d.ts +101 -0
- package/dist/embed/workspace-paths.d.ts +9 -0
- package/dist/infrastructure/telemetry/session-span-processor.d.ts +11 -0
- package/dist/infrastructure/telemetry/web-sdk.d.ts +29 -0
- package/dist/lib/belong.d.ts +12 -0
- package/dist/lib/tab-leadership.d.ts +46 -0
- package/dist/lib/use-tab-leadership.d.ts +8 -0
- package/dist/lib/utils.d.ts +9 -0
- package/dist/public-api.d.ts +3 -0
- package/dist/routes/chat-attachment-chip.d.ts +9 -0
- package/dist/routes/chat.d.ts +29 -0
- package/dist/routes/documents.d.ts +16 -0
- package/dist/routes/files.d.ts +14 -0
- package/dist/routes/sample-artifact.d.ts +7 -0
- package/dist/routes/sessions.d.ts +4 -0
- package/dist/routes/static-chat-fixture.d.ts +26 -0
- package/dist/stream/ai-sdk-part-renderers.d.ts +66 -0
- package/dist/stream/belong-chat-transport.d.ts +679 -0
- package/dist/stream/belong-data-parts.d.ts +207 -0
- package/dist/stream/chat-upload.d.ts +35 -0
- package/dist/stream/plan-panel-store.d.ts +11 -0
- package/dist/stream/plan-progress-store.d.ts +4 -0
- package/dist/stream/plan-progress.d.ts +25 -0
- package/dist/stream/plan-store.d.ts +16 -0
- package/dist/stream/preview-panel-store.d.ts +50 -0
- package/dist/stream/sandbox-output.d.ts +32 -0
- package/dist/stream/select-latest-plan.d.ts +17 -0
- package/dist/stream/select-session-usage.d.ts +23 -0
- package/dist/stream/session-title.d.ts +15 -0
- package/dist/stream/stream-state-store.d.ts +67 -0
- package/dist/stream/tool-io.d.ts +7 -0
- package/dist/test/render.d.ts +23 -0
- package/dist/test-setup.d.ts +1 -0
- package/dist/types/public.d.ts +189 -0
- package/package.json +38 -0
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { Select as SelectPrimitive } from 'radix-ui';
|
|
2
|
+
import * as React from "react";
|
|
3
|
+
declare function Select({ ...props }: React.ComponentProps<typeof SelectPrimitive.Root>): React.JSX.Element;
|
|
4
|
+
declare function SelectGroup({ ...props }: React.ComponentProps<typeof SelectPrimitive.Group>): React.JSX.Element;
|
|
5
|
+
declare function SelectValue({ ...props }: React.ComponentProps<typeof SelectPrimitive.Value>): React.JSX.Element;
|
|
6
|
+
declare function SelectTrigger({ className, size, children, ...props }: React.ComponentProps<typeof SelectPrimitive.Trigger> & {
|
|
7
|
+
size?: "sm" | "default";
|
|
8
|
+
}): React.JSX.Element;
|
|
9
|
+
declare function SelectContent({ className, children, position, align, ...props }: React.ComponentProps<typeof SelectPrimitive.Content>): React.JSX.Element;
|
|
10
|
+
declare function SelectLabel({ className, ...props }: React.ComponentProps<typeof SelectPrimitive.Label>): React.JSX.Element;
|
|
11
|
+
declare function SelectItem({ className, children, ...props }: React.ComponentProps<typeof SelectPrimitive.Item>): React.JSX.Element;
|
|
12
|
+
declare function SelectSeparator({ className, ...props }: React.ComponentProps<typeof SelectPrimitive.Separator>): React.JSX.Element;
|
|
13
|
+
declare function SelectScrollUpButton({ className, ...props }: React.ComponentProps<typeof SelectPrimitive.ScrollUpButton>): React.JSX.Element;
|
|
14
|
+
declare function SelectScrollDownButton({ className, ...props }: React.ComponentProps<typeof SelectPrimitive.ScrollDownButton>): React.JSX.Element;
|
|
15
|
+
export { Select, SelectContent, SelectGroup, SelectItem, SelectLabel, SelectScrollDownButton, SelectScrollUpButton, SelectSeparator, SelectTrigger, SelectValue, };
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { Switch as SwitchPrimitive } from 'radix-ui';
|
|
2
|
+
import * as React from "react";
|
|
3
|
+
declare function Switch({ className, size, ...props }: React.ComponentProps<typeof SwitchPrimitive.Root> & {
|
|
4
|
+
size?: "sm" | "default";
|
|
5
|
+
}): React.JSX.Element;
|
|
6
|
+
export { Switch };
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { VariantProps } from 'class-variance-authority';
|
|
2
|
+
import { Tabs as TabsPrimitive } from 'radix-ui';
|
|
3
|
+
import * as React from "react";
|
|
4
|
+
declare function Tabs({ className, orientation, ...props }: React.ComponentProps<typeof TabsPrimitive.Root>): React.JSX.Element;
|
|
5
|
+
declare const tabsListVariants: (props?: ({
|
|
6
|
+
variant?: "default" | "line" | null | undefined;
|
|
7
|
+
} & import('class-variance-authority/types').ClassProp) | undefined) => string;
|
|
8
|
+
declare function TabsList({ className, variant, ...props }: React.ComponentProps<typeof TabsPrimitive.List> & VariantProps<typeof tabsListVariants>): React.JSX.Element;
|
|
9
|
+
declare function TabsTrigger({ className, ...props }: React.ComponentProps<typeof TabsPrimitive.Trigger>): React.JSX.Element;
|
|
10
|
+
declare function TabsContent({ className, ...props }: React.ComponentProps<typeof TabsPrimitive.Content>): React.JSX.Element;
|
|
11
|
+
export { Tabs, TabsList, TabsTrigger, TabsContent, tabsListVariants };
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { Tooltip as TooltipPrimitive } from 'radix-ui';
|
|
2
|
+
import * as React from "react";
|
|
3
|
+
declare function TooltipProvider({ delayDuration, ...props }: React.ComponentProps<typeof TooltipPrimitive.Provider>): React.JSX.Element;
|
|
4
|
+
declare function Tooltip({ ...props }: React.ComponentProps<typeof TooltipPrimitive.Root>): React.JSX.Element;
|
|
5
|
+
declare function TooltipTrigger({ ...props }: React.ComponentProps<typeof TooltipPrimitive.Trigger>): React.JSX.Element;
|
|
6
|
+
declare function TooltipContent({ className, sideOffset, children, ...props }: React.ComponentProps<typeof TooltipPrimitive.Content>): React.JSX.Element;
|
|
7
|
+
export { Tooltip, TooltipTrigger, TooltipContent, TooltipProvider };
|
|
File without changes
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import { AgentGrantStatusView } from '../api/agent-grants.ts';
|
|
2
|
+
import { ChatMode } from './chat-mode.ts';
|
|
3
|
+
/**
|
|
4
|
+
* Re-grant once an active grant has this long or less until expiry.
|
|
5
|
+
* Deliberately larger than the status poll cadence (`grantStatusPollMs`,
|
|
6
|
+
* ~30 min) so at least one poll lands inside the window before expiry.
|
|
7
|
+
*/
|
|
8
|
+
export declare const DEFAULT_GRANT_REFRESH_WINDOW_MS: number;
|
|
9
|
+
/**
|
|
10
|
+
* The active refresh window, with a per-session diagnostic override
|
|
11
|
+
* (`localStorage["belong:grant-refresh-window-ms"]`) — set it very large in one
|
|
12
|
+
* tab to refresh on every poll and exercise the loop live (BEL-79). The shipped
|
|
13
|
+
* default stays safe for every other dock.
|
|
14
|
+
*/
|
|
15
|
+
export declare const grantRefreshWindowMs: () => number;
|
|
16
|
+
/**
|
|
17
|
+
* The grant the dock should preemptively refresh now, or null. Pure: the caller
|
|
18
|
+
* supplies `nowMs`, the last-attempted id, and the (possibly overridden)
|
|
19
|
+
* `windowMs`.
|
|
20
|
+
*
|
|
21
|
+
* Only Auto ("bypass") mode auto-refreshes — it is the unattended mode where a
|
|
22
|
+
* silent re-grant matches the existing auto-consent (BEL-75); the other modes
|
|
23
|
+
* have a human present who reconnects via the card. `none`/`expired` belong to
|
|
24
|
+
* the consent effect (and a re-grant there would be a connect, not a refresh);
|
|
25
|
+
* `revoked` is the explicit kill switch and must never auto-reconnect.
|
|
26
|
+
*
|
|
27
|
+
* Returns the `grantId` so the caller can fire at most once per active grant:
|
|
28
|
+
* a successful refresh yields a new grant id, which naturally re-arms the next
|
|
29
|
+
* cycle (~once per grant lifetime — low churn).
|
|
30
|
+
*/
|
|
31
|
+
export declare const grantIdToRefresh: (input: {
|
|
32
|
+
readonly mode: ChatMode;
|
|
33
|
+
readonly view: AgentGrantStatusView;
|
|
34
|
+
readonly nowMs: number;
|
|
35
|
+
readonly lastAttemptedGrantId: string | null;
|
|
36
|
+
readonly windowMs: number;
|
|
37
|
+
}) => string | null;
|
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
import { WorkspaceFile } from '../api/workspace-files.ts';
|
|
2
|
+
/** An active `@`-mention token: the `@` at [start], caret at [end], `query` between. */
|
|
3
|
+
export type AtMentionMatch = {
|
|
4
|
+
readonly query: string;
|
|
5
|
+
readonly start: number;
|
|
6
|
+
readonly end: number;
|
|
7
|
+
};
|
|
8
|
+
/** Default rows shown in the picker — enough to scan, few enough to not scroll. */
|
|
9
|
+
export declare const AT_MENTION_LIMIT = 8;
|
|
10
|
+
/**
|
|
11
|
+
* A picked path is embedded in the draft as `@<escaped-path>`, where spaces and
|
|
12
|
+
* backslashes are backslash-escaped (`a b` → `a\ b`, `a\b` → `a\\b`). That keeps
|
|
13
|
+
* a path containing spaces a SINGLE token — only the trailing UNescaped space
|
|
14
|
+
* commits it — which is exactly how Claude Code escapes its `@`-referenced
|
|
15
|
+
* paths, so the text the agent receives reads the same. {@link unescapeMentionPath}
|
|
16
|
+
* reverses it; the chip/pill always display the unescaped (real) path. Pure.
|
|
17
|
+
*/
|
|
18
|
+
export declare const escapeMentionPath: (path: string) => string;
|
|
19
|
+
/** Reverse {@link escapeMentionPath}: a backslash makes the next char literal. Pure. */
|
|
20
|
+
export declare const unescapeMentionPath: (token: string) => string;
|
|
21
|
+
/**
|
|
22
|
+
* Detect a `@`-mention being typed at `caret` within `text`. Returns the `@`
|
|
23
|
+
* position, the caret, and the query (the run between them) — or null when the
|
|
24
|
+
* caret is not inside a `@token`. The `@` must start the text or follow
|
|
25
|
+
* whitespace (so an email like `user@host` never triggers), and the run from `@`
|
|
26
|
+
* to the caret must contain no whitespace (a space ends the token). The query may
|
|
27
|
+
* be empty — bare `@` opens the picker with the default rows.
|
|
28
|
+
*/
|
|
29
|
+
export declare const atMentionMatch: (text: string, caret: number) => AtMentionMatch | null;
|
|
30
|
+
/**
|
|
31
|
+
* Rank the workspace files for the typed query: filename-prefix matches first,
|
|
32
|
+
* then any path-substring match, capped at `limit`. An EMPTY query (bare `@`)
|
|
33
|
+
* surfaces the most-recently-modified files — typically what the agent just
|
|
34
|
+
* wrote, which is what the user most often wants to reference. Pure.
|
|
35
|
+
*/
|
|
36
|
+
export declare const filterWorkspaceFiles: (files: readonly WorkspaceFile[], query: string, limit?: number) => readonly WorkspaceFile[];
|
|
37
|
+
/**
|
|
38
|
+
* Replace the matched `@query` token with `@<escaped-path> ` (a trailing space
|
|
39
|
+
* commits the token so the picker closes and typing continues after it). The
|
|
40
|
+
* path is escaped ({@link escapeMentionPath}) so spaces in the filename don't
|
|
41
|
+
* split the token. Returns the new draft and the caret position just past the
|
|
42
|
+
* inserted space. A space already at the splice point is absorbed so we never
|
|
43
|
+
* leave `@path rest`. Pure.
|
|
44
|
+
*/
|
|
45
|
+
export declare const applyMention: (text: string, match: AtMentionMatch, path: string) => {
|
|
46
|
+
readonly text: string;
|
|
47
|
+
readonly caret: number;
|
|
48
|
+
};
|
|
49
|
+
/** A `@<path>` reference span in the draft: `text.slice(start, end)` is `@<path>`. */
|
|
50
|
+
export type MentionToken = {
|
|
51
|
+
readonly start: number;
|
|
52
|
+
readonly end: number;
|
|
53
|
+
};
|
|
54
|
+
/**
|
|
55
|
+
* Every committed `@<path>` reference in the draft — a `@` at start-of-text or
|
|
56
|
+
* after whitespace, followed by ≥1 char up to the first UNescaped whitespace.
|
|
57
|
+
* A backslash escapes the next char, so a `\ ` inside the path stays part of the
|
|
58
|
+
* token (see {@link escapeMentionPath}); `text.slice(start+1, end)` is the
|
|
59
|
+
* escaped path, which the caller unescapes for display. These are what the
|
|
60
|
+
* composer renders as chips and deletes atomically. Pure. (The reference being
|
|
61
|
+
* actively TYPED — the one the picker is open for — is excluded by the caller via
|
|
62
|
+
* its start offset; here we just find every `@token` shape.)
|
|
63
|
+
*/
|
|
64
|
+
export declare const findMentionTokens: (text: string) => readonly MentionToken[];
|
|
65
|
+
/**
|
|
66
|
+
* The range a Backspace/Delete should remove so a whole `@<path>` reference goes
|
|
67
|
+
* at once (the chip is one unit) — or null to fall through to normal character
|
|
68
|
+
* deletion. Only acts on a COLLAPSED caret adjacent to a committed reference;
|
|
69
|
+
* `activeStart` (the reference currently being typed, if any) is never atomic —
|
|
70
|
+
* you're editing it. Pure. The contentEditable editor drives this explicitly
|
|
71
|
+
* because native chip deletion is unreliable (leading atoms resist a keystroke).
|
|
72
|
+
*
|
|
73
|
+
* • Backspace: caret just past a reference's trailing space → drop reference +
|
|
74
|
+
* space; caret exactly at a reference's end → drop it.
|
|
75
|
+
* • Delete: caret at a reference's `@` → drop it (and a following space).
|
|
76
|
+
*/
|
|
77
|
+
export declare const atomicMentionDeletion: (text: string, caret: number, direction: "backward" | "forward", activeStart: number | null) => {
|
|
78
|
+
readonly from: number;
|
|
79
|
+
readonly to: number;
|
|
80
|
+
} | null;
|
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Proactive Auth0 token refresh for hosts whose SPA signs the user in with
|
|
3
|
+
* `@auth0/auth0-spa-js` (e.g. Simetrik).
|
|
4
|
+
*
|
|
5
|
+
* The problem: the dock reads the host's access token straight from the Auth0
|
|
6
|
+
* SPA's localStorage cache (auto-embed.ts). But the host SPA only rotates that
|
|
7
|
+
* token LAZILY, on its own API calls. While the user is idle, the host makes no
|
|
8
|
+
* calls, the cached token expires (~50 min TTL), and the dock's long-lived
|
|
9
|
+
* paths — the browser-control relay and the chat SSE stream — fail to
|
|
10
|
+
* reconnect with a 401 ("No browser is attached").
|
|
11
|
+
*
|
|
12
|
+
* The fix (refresh-at-boundary): construct OUR OWN `Auth0Client` keyed to the
|
|
13
|
+
* SAME `clientId` / `audience` / `scope` the host uses. With
|
|
14
|
+
* `cacheLocation: "localstorage"` it shares the EXACT same `@@auth0spajs@@`
|
|
15
|
+
* cache entry AND the same `browser-tabs-lock`, so `getTokenSilently()`:
|
|
16
|
+
* - returns the cached token when it's still valid (cheap, no network);
|
|
17
|
+
* - rotates it via the refresh token when stale, writing the fresh token
|
|
18
|
+
* back into the shared cache — lock-safely, without racing the host app.
|
|
19
|
+
*
|
|
20
|
+
* The per-request hot path stays the synchronous cache read (`peekBelongToken`,
|
|
21
|
+
* unchanged); this module is awaited only at staleness boundaries
|
|
22
|
+
* (`ensureFreshBelongToken`, called before relay/stream reconnect) plus a
|
|
23
|
+
* low-frequency idle keepalive. So a token the idle host stopped rotating is
|
|
24
|
+
* refreshed BEFORE the request that would otherwise 401.
|
|
25
|
+
*
|
|
26
|
+
* Degrades to a no-op when the host isn't Auth0-SPA-based (no matching cache
|
|
27
|
+
* entry) — the dock then behaves exactly as before (sync cache read only).
|
|
28
|
+
*/
|
|
29
|
+
/**
|
|
30
|
+
* The config needed to construct an `Auth0Client` that shares the host's cache.
|
|
31
|
+
* `clientId` / `audience` / `scope` come from the cache KEY; `domain` from the
|
|
32
|
+
* access token's `iss` claim.
|
|
33
|
+
*/
|
|
34
|
+
export type Auth0RefreshConfig = {
|
|
35
|
+
readonly domain: string;
|
|
36
|
+
readonly clientId: string;
|
|
37
|
+
readonly audience: string;
|
|
38
|
+
readonly scope: string;
|
|
39
|
+
};
|
|
40
|
+
/**
|
|
41
|
+
* A minimal client surface so tests can inject a fake (no real network).
|
|
42
|
+
*
|
|
43
|
+
* The real `Auth0Client.getTokenSilently` returns the access-token STRING by
|
|
44
|
+
* default, or the full token response when `detailedResponse: true`. We use the
|
|
45
|
+
* detailed form on the force path so we can read the freshly-minted
|
|
46
|
+
* `access_token` and detect the host-side "no rotation" case (see
|
|
47
|
+
* `forceMintFreshToken`). The return type is `unknown` because the two modes
|
|
48
|
+
* resolve to different shapes; the force path parses it.
|
|
49
|
+
*/
|
|
50
|
+
export type TokenRefreshClient = {
|
|
51
|
+
readonly getTokenSilently: (options?: {
|
|
52
|
+
readonly cacheMode?: "on" | "off" | "cache-only";
|
|
53
|
+
readonly detailedResponse?: boolean;
|
|
54
|
+
}) => Promise<unknown>;
|
|
55
|
+
};
|
|
56
|
+
/**
|
|
57
|
+
* Derive the Auth0 config from the host's `@@auth0spajs@@` localStorage cache.
|
|
58
|
+
* Returns null when no entry matches `audience` (host isn't Auth0-SPA, or the
|
|
59
|
+
* user isn't signed in for this API) — the caller then degrades to a no-op.
|
|
60
|
+
*/
|
|
61
|
+
export declare const deriveAuth0RefreshConfig: (audience: string) => Auth0RefreshConfig | null;
|
|
62
|
+
export type InstallAuth0RefreshOptions = {
|
|
63
|
+
/** The API audience whose token the dock sends (matches auto-embed's). */
|
|
64
|
+
readonly audience: string;
|
|
65
|
+
/** Idle keepalive cadence; defaults to 10 min. */
|
|
66
|
+
readonly keepaliveIntervalMs?: number;
|
|
67
|
+
/** Injected in tests so no real Auth0Client / network is constructed. */
|
|
68
|
+
readonly createClient?: (config: Auth0RefreshConfig) => TokenRefreshClient;
|
|
69
|
+
};
|
|
70
|
+
/**
|
|
71
|
+
* Wire proactive refresh for the current host. Registers the async refresher
|
|
72
|
+
* (`ensureFreshBelongToken` then rotates on demand) and runs a low-frequency
|
|
73
|
+
* idle keepalive plus refresh-on-refocus/reconnect. Returns a disposer.
|
|
74
|
+
*
|
|
75
|
+
* No-op (returns an empty disposer) when the host isn't Auth0-SPA-based, so it
|
|
76
|
+
* is always safe to call from auto-embed.
|
|
77
|
+
*/
|
|
78
|
+
export declare const installAuth0Refresh: (options: InstallAuth0RefreshOptions) => (() => void);
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* One-script-tag auto-embed.
|
|
3
|
+
*
|
|
4
|
+
* Lets a host drop the dock in with a single tag and no glue JS:
|
|
5
|
+
*
|
|
6
|
+
* <script src="https://…/belong-a3s-sdk.js" id="belong-sdk-script"
|
|
7
|
+
* data-backend="https://api.example.com"></script>
|
|
8
|
+
*
|
|
9
|
+
* On load we find that tag, read `data-backend`, and — for hosts that sign the
|
|
10
|
+
* user in with Auth0 (e.g. Simetrik) — read the user's EXISTING access token
|
|
11
|
+
* straight from the Auth0 SPA's localStorage cache and forward it to the dock.
|
|
12
|
+
* No second sign-in, no `window.__auth0` global required. The token is
|
|
13
|
+
* re-read periodically + on tab focus, so when the Auth0 SPA rotates/refreshes
|
|
14
|
+
* it the dock follows.
|
|
15
|
+
*
|
|
16
|
+
* Hosts that init programmatically (`window.belong.init(...)`) simply omit
|
|
17
|
+
* `data-backend`; this then no-ops.
|
|
18
|
+
*/
|
|
19
|
+
export declare const autoEmbed: () => void;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Side-effect bootstrap. Imported by `public-api.ts` so that any host
|
|
3
|
+
* script that imports the SDK gets `window.belong` automatically.
|
|
4
|
+
*
|
|
5
|
+
* Mounting the React tree is deferred to `init` so the host can wire
|
|
6
|
+
* the token + base URL before we render. The shadow-DOM + CSS-isolation
|
|
7
|
+
* mechanics live in `embed/shadow-mount.ts` (shared with the React component
|
|
8
|
+
* `component/BelongWidget.tsx`).
|
|
9
|
+
*/
|
|
10
|
+
export {};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Brand marks as inline SVG data-URLs. The Belong mark is the existing
|
|
3
|
+
* multicolour organic glyph (moved here from BelongMark.tsx so the component
|
|
4
|
+
* and the Belong preset's logo build from one source). The Simetrik mark is
|
|
5
|
+
* the official Simetrik logo (a two-blob "S" in the brand indigo #3B3AF3),
|
|
6
|
+
* supplied as the real asset.
|
|
7
|
+
* Both are static strings: nothing host-controlled reaches the DOM.
|
|
8
|
+
*/
|
|
9
|
+
export declare const BELONG_INNER = "<defs><linearGradient id=\"g0\" gradientUnits=\"userSpaceOnUse\" x1=\"103\" y1=\"17\" x2=\"30\" y2=\"41\"><stop offset=\"0\" stop-color=\"#0F1B2E\"></stop><stop offset=\"1\" stop-color=\"#0F1B2E\"></stop></linearGradient><linearGradient id=\"g1\" gradientUnits=\"userSpaceOnUse\" x1=\"103\" y1=\"17\" x2=\"154\" y2=\"81\"><stop offset=\"0\" stop-color=\"#0F1B2E\"></stop><stop offset=\"1\" stop-color=\"#2D6F66\"></stop></linearGradient><linearGradient id=\"g2\" gradientUnits=\"userSpaceOnUse\" x1=\"154\" y1=\"81\" x2=\"112\" y2=\"142\"><stop offset=\"0\" stop-color=\"#2D6F66\"></stop><stop offset=\"1\" stop-color=\"#D9A441\"></stop></linearGradient><linearGradient id=\"g3\" gradientUnits=\"userSpaceOnUse\" x1=\"112\" y1=\"142\" x2=\"34\" y2=\"124\"><stop offset=\"0\" stop-color=\"#D9A441\"></stop><stop offset=\"1\" stop-color=\"#E06A4F\"></stop></linearGradient><linearGradient id=\"g4\" gradientUnits=\"userSpaceOnUse\" x1=\"34\" y1=\"124\" x2=\"30\" y2=\"41\"><stop offset=\"0\" stop-color=\"#E06A4F\"></stop><stop offset=\"1\" stop-color=\"#0F1B2E\"></stop></linearGradient></defs>\n <g>\n <path d=\"M 102.3,6.5 L 100.4,7.3 L 98.5,8.1 L 96.6,8.9 L 94.7,9.7 L 92.9,10.5 L 91.0,11.3 L 89.2,12.1 L 87.4,12.9 L 85.6,13.7 L 83.9,14.5 L 82.1,15.3 L 80.4,16.1 L 78.6,16.9 L 76.9,17.6 L 75.2,18.4 L 73.5,19.1 L 71.8,19.8 L 70.1,20.5 L 68.4,21.2 L 66.8,21.9 L 65.1,22.5 L 63.3,23.1 L 61.6,23.6 L 59.8,24.1 L 58.1,24.5 L 56.3,24.9 L 54.5,25.3 L 52.7,25.7 L 50.9,26.1 L 49.0,26.4 L 47.2,26.8 L 45.3,27.1 L 43.4,27.5 L 41.5,27.8 L 39.6,28.1 L 37.6,28.4 L 35.6,28.8 L 33.6,29.1 L 31.6,29.4 L 29.6,29.7 L 27.5,30.0 L 25.4,30.3 L 23.3,30.7 L 36.7,51.3 L 37.6,49.7 L 38.6,48.1 L 39.7,46.5 L 40.7,45.0 L 41.8,43.5 L 43.0,42.1 L 44.2,40.7 L 45.4,39.3 L 46.7,38.0 L 48.0,36.7 L 49.3,35.5 L 50.7,34.3 L 52.1,33.2 L 53.5,32.1 L 55.0,31.1 L 56.5,30.1 L 58.0,29.2 L 59.5,28.3 L 61.1,27.5 L 62.7,26.8 L 64.4,26.2 L 66.0,25.6 L 67.8,25.2 L 69.5,24.8 L 71.2,24.5 L 73.0,24.2 L 74.8,24.0 L 76.6,23.9 L 78.4,23.8 L 80.2,23.8 L 82.0,23.8 L 83.8,23.9 L 85.6,24.0 L 87.4,24.2 L 89.2,24.4 L 91.1,24.6 L 92.9,24.9 L 94.7,25.2 L 96.5,25.6 L 98.3,26.0 L 100.1,26.5 L 101.9,27.0 L 103.7,27.5 Z\" fill=\"url(#g0)\"></path>\n <path d=\"M 96.7,25.4 L 98.6,26.0 L 100.4,26.6 L 102.3,27.3 L 104.1,28.0 L 105.9,28.7 L 107.7,29.5 L 109.5,30.3 L 111.2,31.2 L 112.9,32.1 L 114.6,33.0 L 116.3,34.0 L 117.9,35.0 L 119.5,36.1 L 121.0,37.2 L 122.6,38.3 L 124.1,39.5 L 125.5,40.7 L 126.9,42.0 L 128.3,43.3 L 129.6,44.6 L 130.9,46.0 L 132.0,47.5 L 133.1,49.1 L 134.2,50.6 L 135.1,52.3 L 136.0,53.9 L 136.9,55.6 L 137.7,57.3 L 138.4,59.1 L 139.1,60.9 L 139.8,62.7 L 140.3,64.5 L 140.9,66.3 L 141.4,68.2 L 141.8,70.1 L 142.2,72.0 L 142.5,73.9 L 142.8,75.8 L 143.0,77.8 L 143.2,79.8 L 143.3,81.7 L 143.4,83.7 L 143.4,85.7 L 164.6,76.3 L 163.0,74.7 L 161.4,73.2 L 159.9,71.6 L 158.4,70.1 L 156.8,68.6 L 155.3,67.1 L 153.8,65.7 L 152.3,64.2 L 150.9,62.7 L 149.4,61.3 L 148.0,59.8 L 146.6,58.4 L 145.2,57.0 L 143.8,55.6 L 142.4,54.1 L 141.1,52.7 L 139.7,51.3 L 138.4,49.9 L 137.1,48.4 L 135.8,47.0 L 134.6,45.5 L 133.4,44.0 L 132.2,42.5 L 131.1,40.9 L 130.0,39.3 L 128.9,37.7 L 127.8,36.1 L 126.7,34.5 L 125.6,32.8 L 124.5,31.2 L 123.4,29.5 L 122.3,27.8 L 121.2,26.1 L 120.0,24.4 L 118.9,22.7 L 117.8,21.0 L 116.6,19.2 L 115.4,17.5 L 114.2,15.7 L 113.0,14.0 L 111.8,12.2 L 110.6,10.4 L 109.3,8.6 Z\" fill=\"url(#g1)\"></path>\n <path d=\"M 143.1,77.1 L 143.3,78.9 L 143.4,80.7 L 143.5,82.5 L 143.5,84.3 L 143.5,86.1 L 143.4,87.8 L 143.3,89.6 L 143.1,91.4 L 142.9,93.1 L 142.6,94.8 L 142.3,96.6 L 141.9,98.3 L 141.5,99.9 L 141.0,101.6 L 140.5,103.2 L 139.9,104.9 L 139.3,106.5 L 138.6,108.0 L 137.9,109.6 L 137.0,111.1 L 136.2,112.5 L 135.2,113.9 L 134.2,115.3 L 133.0,116.6 L 131.9,117.8 L 130.7,119.0 L 129.4,120.2 L 128.1,121.3 L 126.8,122.4 L 125.4,123.5 L 124.0,124.5 L 122.5,125.5 L 121.1,126.4 L 119.5,127.3 L 118.0,128.2 L 116.5,129.0 L 114.9,129.8 L 113.3,130.6 L 111.6,131.3 L 110.0,132.0 L 108.3,132.6 L 106.6,133.2 L 104.9,133.8 L 119.1,150.2 L 120.1,148.4 L 121.0,146.7 L 122.0,144.9 L 122.9,143.1 L 123.8,141.4 L 124.7,139.7 L 125.6,138.0 L 126.5,136.3 L 127.4,134.6 L 128.2,133.0 L 129.1,131.3 L 129.9,129.7 L 130.8,128.1 L 131.7,126.5 L 132.5,124.9 L 133.4,123.3 L 134.2,121.8 L 135.1,120.3 L 136.0,118.7 L 136.9,117.3 L 137.9,115.8 L 138.8,114.3 L 139.9,112.9 L 141.0,111.6 L 142.1,110.2 L 143.2,108.8 L 144.3,107.5 L 145.5,106.1 L 146.7,104.8 L 147.9,103.4 L 149.1,102.0 L 150.3,100.7 L 151.6,99.3 L 152.8,97.9 L 154.1,96.5 L 155.4,95.1 L 156.7,93.7 L 158.1,92.3 L 159.4,90.9 L 160.7,89.4 L 162.1,87.9 L 163.5,86.5 L 164.9,84.9 Z\" fill=\"url(#g2)\"></path>\n <path d=\"M 111.7,131.1 L 109.9,131.9 L 108.1,132.5 L 106.3,133.2 L 104.5,133.8 L 102.6,134.4 L 100.8,134.9 L 98.9,135.4 L 97.1,135.8 L 95.2,136.2 L 93.4,136.5 L 91.5,136.8 L 89.6,137.0 L 87.8,137.2 L 85.9,137.4 L 84.0,137.4 L 82.2,137.5 L 80.3,137.4 L 78.4,137.3 L 76.6,137.2 L 74.8,137.0 L 72.9,136.7 L 71.2,136.2 L 69.4,135.7 L 67.6,135.1 L 65.9,134.4 L 64.2,133.7 L 62.5,132.9 L 60.9,132.1 L 59.3,131.1 L 57.7,130.2 L 56.1,129.1 L 54.6,128.1 L 53.1,126.9 L 51.6,125.8 L 50.1,124.5 L 48.7,123.3 L 47.3,121.9 L 46.0,120.6 L 44.6,119.2 L 43.4,117.7 L 42.1,116.2 L 40.9,114.7 L 39.7,113.1 L 28.3,134.9 L 30.5,135.1 L 32.7,135.3 L 34.8,135.4 L 37.0,135.6 L 39.1,135.8 L 41.2,135.9 L 43.3,136.1 L 45.3,136.3 L 47.3,136.4 L 49.3,136.6 L 51.3,136.8 L 53.3,137.0 L 55.3,137.2 L 57.2,137.4 L 59.1,137.7 L 61.0,137.9 L 62.9,138.1 L 64.8,138.4 L 66.7,138.7 L 68.6,139.0 L 70.4,139.4 L 72.2,139.8 L 74.1,140.3 L 75.9,140.8 L 77.7,141.4 L 79.5,142.0 L 81.3,142.5 L 83.2,143.1 L 85.0,143.8 L 86.9,144.4 L 88.7,145.0 L 90.6,145.7 L 92.5,146.3 L 94.4,147.0 L 96.3,147.6 L 98.2,148.3 L 100.2,148.9 L 102.2,149.6 L 104.1,150.3 L 106.1,150.9 L 108.2,151.6 L 110.2,152.2 L 112.3,152.9 Z\" fill=\"url(#g3)\"></path>\n <path d=\"M 45.8,120.3 L 44.4,118.8 L 43.1,117.2 L 41.9,115.6 L 40.7,114.0 L 39.5,112.4 L 38.4,110.7 L 37.3,109.0 L 36.3,107.3 L 35.3,105.6 L 34.4,103.8 L 33.6,102.1 L 32.8,100.3 L 32.0,98.5 L 31.3,96.6 L 30.7,94.8 L 30.1,93.0 L 29.6,91.1 L 29.2,89.2 L 28.8,87.3 L 28.5,85.4 L 28.3,83.5 L 28.2,81.6 L 28.2,79.7 L 28.3,77.8 L 28.5,75.9 L 28.8,74.0 L 29.1,72.1 L 29.5,70.2 L 29.9,68.3 L 30.5,66.4 L 31.0,64.6 L 31.7,62.7 L 32.4,60.9 L 33.1,59.1 L 33.9,57.3 L 34.7,55.5 L 35.6,53.7 L 36.6,52.0 L 37.6,50.2 L 38.6,48.5 L 39.7,46.8 L 40.9,45.2 L 42.1,43.5 L 17.9,38.5 L 18.3,40.7 L 18.7,42.9 L 19.1,45.1 L 19.5,47.3 L 19.9,49.5 L 20.3,51.6 L 20.7,53.7 L 21.1,55.8 L 21.4,57.9 L 21.8,59.9 L 22.2,62.0 L 22.5,64.0 L 22.8,66.0 L 23.2,68.0 L 23.5,70.0 L 23.8,72.0 L 24.1,73.9 L 24.3,75.9 L 24.6,77.9 L 24.8,79.8 L 24.9,81.8 L 25.0,83.7 L 25.1,85.7 L 25.0,87.6 L 25.0,89.6 L 24.9,91.6 L 24.8,93.6 L 24.7,95.6 L 24.6,97.6 L 24.5,99.6 L 24.3,101.6 L 24.2,103.7 L 24.0,105.8 L 23.8,107.9 L 23.7,110.0 L 23.5,112.1 L 23.3,114.3 L 23.1,116.5 L 22.9,118.6 L 22.8,120.9 L 22.6,123.1 L 22.4,125.4 L 22.2,127.7 Z\" fill=\"url(#g4)\"></path>\n <circle cx=\"30\" cy=\"41\" r=\"17\" fill=\"#0F1B2E\"></circle>\n <circle cx=\"103\" cy=\"17\" r=\"14.5\" fill=\"#0F1B2E\"></circle>\n <circle cx=\"154\" cy=\"81\" r=\"16\" fill=\"#2D6F66\"></circle>\n <circle cx=\"112\" cy=\"142\" r=\"15\" fill=\"#D9A441\"></circle>\n <circle cx=\"34\" cy=\"124\" r=\"17\" fill=\"#E06A4F\"></circle>\n </g>";
|
|
10
|
+
export declare const BELONG_MARK_DATA_URL: string;
|
|
11
|
+
export declare const SIMETRIK_MARK_DATA_URL: string;
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* SDK build provenance, baked into the bundle by `define` (vite.config.ts) on
|
|
3
|
+
* the build machine:
|
|
4
|
+
*
|
|
5
|
+
* __BELONG_SDK_VERSION__ "<git short sha>+<build date>", e.g. "8dbb882+2026-06-24"
|
|
6
|
+
* __BELONG_SDK_BUILT_AT__ full ISO-8601 build timestamp, e.g. "2026-06-24T15:45:02.317Z"
|
|
7
|
+
*
|
|
8
|
+
* The release workflow builds and uploads the bundle in one CI job, so the
|
|
9
|
+
* build timestamp is our closest client-visible proxy for "when did this deploy
|
|
10
|
+
* go live" — surfaced as the deploy datetime in the dev panel
|
|
11
|
+
* (components/embed/dev-runtime-bar.tsx) and logged once at init (bootstrap.ts).
|
|
12
|
+
*
|
|
13
|
+
* Both constants are declared module-locally (not only in vite-env.d.ts) so
|
|
14
|
+
* consumers that typecheck the SDK FROM SOURCE — fakesaas resolves
|
|
15
|
+
* `types: ./src/public-api.ts` and never loads that ambient file — stay green.
|
|
16
|
+
* Surfaces that bypass vite.config.ts (Storybook's isolated pipeline) don't
|
|
17
|
+
* substitute the constants, so each read guards with `typeof`, which is
|
|
18
|
+
* uniquely safe on an undeclared identifier (yields "undefined", never throws).
|
|
19
|
+
*/
|
|
20
|
+
/** `<git short sha>+<build date>`, or "dev" on surfaces that don't bake it in. */
|
|
21
|
+
export declare const SDK_VERSION: string;
|
|
22
|
+
/** ISO-8601 build timestamp, or null when the bundle didn't bake one in. */
|
|
23
|
+
export declare const SDK_BUILT_AT: string | null;
|
|
24
|
+
/**
|
|
25
|
+
* The build timestamp formatted for the dev panel in the viewer's locale (a
|
|
26
|
+
* developer wants "when did this deploy go out, my time"), or null when there's
|
|
27
|
+
* no valid timestamp to show. The raw ISO string stays on SDK_BUILT_AT so the
|
|
28
|
+
* panel can keep it as an unambiguous hover title.
|
|
29
|
+
*/
|
|
30
|
+
export declare const formatBuiltAt: (iso: string | null) => string | null;
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Build version stamp — a UTC timestamp compressed to consecutive digits:
|
|
3
|
+
* `YYMMDDHHmmssSSS` (15 digits; every field is 2 digits except the 3-digit
|
|
4
|
+
* millisecond). Monotonically increasing, so a larger number is always a newer
|
|
5
|
+
* build.
|
|
6
|
+
*
|
|
7
|
+
* Computed once at Vite config-eval time and baked into the bundle via
|
|
8
|
+
* `define` — never recomputed in the browser. It is therefore regenerated on
|
|
9
|
+
* every `vp build` (the deployed SDK bundle) and every SDK dev-server start.
|
|
10
|
+
* Surfaced in the dock avatar menu directly above "Log out" (see
|
|
11
|
+
* EmbedAvatar.tsx) and logged once at init (embed/bootstrap.ts).
|
|
12
|
+
*
|
|
13
|
+
* Config-time tooling, NOT part of the runtime graph: the dock reads the
|
|
14
|
+
* injected `__BELONG_SDK_BUILD__` constant, never this module. It is imported
|
|
15
|
+
* only by the SDK's own Vite config (packages/belong-sdk/vite.config.ts), so it
|
|
16
|
+
* is tree-shaken out of the browser bundle. Co-located here with the embed
|
|
17
|
+
* surface that displays it. A host that serves the SDK from SOURCE rather than
|
|
18
|
+
* the built bundle (e.g. the fakesaas dev harness) compiles these files through
|
|
19
|
+
* its own Vite and so does not substitute the constant — the dock then shows
|
|
20
|
+
* "Build dev" via the `typeof` guard, exactly as __BELONG_SDK_VERSION__ does.
|
|
21
|
+
*/
|
|
22
|
+
/**
|
|
23
|
+
* Format an explicit date as the 15-digit build stamp. Pure + deterministic
|
|
24
|
+
* (UTC), so it is the unit-tested entry point.
|
|
25
|
+
*/
|
|
26
|
+
export declare const formatBuildVersion: (date: Date) => string;
|
|
27
|
+
/** Stamp for "now" — called once per build/dev-server start from the Vite configs. */
|
|
28
|
+
export declare const resolveBuildVersion: () => string;
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The dock's execution mode (BEL-75, unified with P0's autonomy dial) — the
|
|
3
|
+
* composer selector that controls how much human-in-the-loop a message gets:
|
|
4
|
+
*
|
|
5
|
+
* plan → the agent PROPOSES: read-only investigation + `propose_plan`,
|
|
6
|
+
* mutating tools blocked server-side.
|
|
7
|
+
* approve → ask first: every consequential tool raises an approval card the
|
|
8
|
+
* user resolves before the call runs.
|
|
9
|
+
* balanced → ask once per kind of action: the first consequential call of a
|
|
10
|
+
* kind raises an approval; resolving with "always allow" records a
|
|
11
|
+
* consent so later calls of that kind run without asking.
|
|
12
|
+
* bypass → run without asking (the historical "execute" behavior, and the
|
|
13
|
+
* default).
|
|
14
|
+
*
|
|
15
|
+
* Mode rides on each posted message (`postMessageSchema.mode`), so this is
|
|
16
|
+
* pure client UI state. Persisted best-effort to localStorage SCOPED TO THE
|
|
17
|
+
* SESSION (`{ sessionId, mode }`, zod-validated at the storage perimeter via
|
|
18
|
+
* the generic session-record store) so a reload of the same conversation
|
|
19
|
+
* resumes in the same mode, while a new chat / a different session opens in the
|
|
20
|
+
* bypass default. Deliberately a sibling key to `belong:stream-state` rather
|
|
21
|
+
* than a field on it: the stream cursor is written by the transport on every
|
|
22
|
+
* SSE tick and gated by a 120s resume window — neither of which applies to the
|
|
23
|
+
* mode, which the chat route owns and which must restore regardless of age.
|
|
24
|
+
* Private-mode / disabled storage — and a record persisted by a pre-unification
|
|
25
|
+
* build (`mode: "execute"`, or the old `autonomy` values, which fail the parse
|
|
26
|
+
* below) — just mean the dock opens back in the default.
|
|
27
|
+
*/
|
|
28
|
+
export type ChatMode = "plan" | "approve" | "balanced" | "bypass";
|
|
29
|
+
/** The mode for new sessions and unparseable/legacy persisted records. */
|
|
30
|
+
export declare const DEFAULT_CHAT_MODE: "bypass";
|
|
31
|
+
/** The active conversation's mode (bypass until a chat route reads/writes). */
|
|
32
|
+
export declare const peekCurrentChatMode: () => ChatMode;
|
|
33
|
+
export declare const subscribeChatMode: (listener: () => void) => (() => void);
|
|
34
|
+
/**
|
|
35
|
+
* The persisted mode for `sessionId`, or the bypass default when nothing is
|
|
36
|
+
* stored, the stored record belongs to a different session, or the value is
|
|
37
|
+
* corrupted / from an older build (the pre-session-scoped bare string, the
|
|
38
|
+
* pre-BEL-75 `"execute"` value, or a pre-unification `autonomy` value). Reading
|
|
39
|
+
* also publishes the resolved mode to the in-memory current-mode store so the
|
|
40
|
+
* dock shell follows the active conversation.
|
|
41
|
+
*/
|
|
42
|
+
export declare const readChatMode: (sessionId: string) => ChatMode;
|
|
43
|
+
/** Persist `mode` as the choice for `sessionId` (replaces any prior record). */
|
|
44
|
+
export declare const writeChatMode: (sessionId: string, mode: ChatMode) => void;
|
|
45
|
+
/** Test-only: reset the in-memory current mode + listeners between tests. */
|
|
46
|
+
export declare const __resetChatModeForTest: () => void;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* A 1-shot "focus the composer editor" signal.
|
|
3
|
+
*
|
|
4
|
+
* The composer (`EmbedComposer`) subscribes and focuses its contentEditable
|
|
5
|
+
* editor when fired. Callers elsewhere request focus without prop-drilling a
|
|
6
|
+
* ref through the dock — e.g. the voice-dictation flow drops a transcript into
|
|
7
|
+
* the draft and then `requestComposerFocus()` so the user can immediately edit
|
|
8
|
+
* the text or press Enter to send. A module-level emitter mirrors the
|
|
9
|
+
* voice-bus / plan-store external-store idiom used across the dock.
|
|
10
|
+
*/
|
|
11
|
+
/** Subscribe to focus requests; returns an unsubscribe. */
|
|
12
|
+
export declare const subscribeComposerFocus: (listener: () => void) => (() => void);
|
|
13
|
+
/** Ask the mounted composer to focus its editor (no-op when none is mounted). */
|
|
14
|
+
export declare const requestComposerFocus: () => void;
|
|
@@ -0,0 +1,84 @@
|
|
|
1
|
+
import { Locale } from './locale.ts';
|
|
2
|
+
import { TourStep, TourStepId } from './onboarding-steps.ts';
|
|
3
|
+
export type WelcomeCapabilityIcon = "exchange" | "command" | "microphone";
|
|
4
|
+
export type WelcomeCardCopy = {
|
|
5
|
+
readonly greeting: (brandName: string) => string;
|
|
6
|
+
readonly subtitle: string;
|
|
7
|
+
readonly capabilities: readonly {
|
|
8
|
+
readonly icon: WelcomeCapabilityIcon;
|
|
9
|
+
readonly label: string;
|
|
10
|
+
}[];
|
|
11
|
+
readonly tourCta: string;
|
|
12
|
+
readonly skipCta: string;
|
|
13
|
+
readonly close: string;
|
|
14
|
+
readonly languageHint: string;
|
|
15
|
+
};
|
|
16
|
+
export type TourLabels = {
|
|
17
|
+
readonly counter: (current: number, total: number) => string;
|
|
18
|
+
readonly back: string;
|
|
19
|
+
readonly next: string;
|
|
20
|
+
readonly finish: string;
|
|
21
|
+
readonly skip: string;
|
|
22
|
+
};
|
|
23
|
+
export type TourCopy = TourLabels & {
|
|
24
|
+
readonly steps: Readonly<Record<TourStepId, {
|
|
25
|
+
readonly title: string;
|
|
26
|
+
readonly body: string;
|
|
27
|
+
}>>;
|
|
28
|
+
};
|
|
29
|
+
export type HintItem = {
|
|
30
|
+
readonly keyLabel: string;
|
|
31
|
+
readonly label: string;
|
|
32
|
+
};
|
|
33
|
+
export type MenuCopy = {
|
|
34
|
+
readonly signedInAs: (user: string) => string;
|
|
35
|
+
readonly notSignedIn: string;
|
|
36
|
+
readonly darkMode: string;
|
|
37
|
+
readonly lightMode: string;
|
|
38
|
+
readonly moveLeft: string;
|
|
39
|
+
readonly moveRight: string;
|
|
40
|
+
readonly voice: string;
|
|
41
|
+
readonly pushToTalk: string;
|
|
42
|
+
readonly pressAnyKey: string;
|
|
43
|
+
readonly change: string;
|
|
44
|
+
readonly reset: string;
|
|
45
|
+
readonly style: string;
|
|
46
|
+
readonly appearance: string;
|
|
47
|
+
readonly accentColor: string;
|
|
48
|
+
readonly customCss: string;
|
|
49
|
+
readonly logOut: string;
|
|
50
|
+
};
|
|
51
|
+
export type DockCopy = {
|
|
52
|
+
readonly welcomeCard: WelcomeCardCopy;
|
|
53
|
+
readonly tour: TourCopy;
|
|
54
|
+
readonly hints: {
|
|
55
|
+
readonly commands: HintItem;
|
|
56
|
+
readonly files: HintItem;
|
|
57
|
+
readonly voice: HintItem;
|
|
58
|
+
};
|
|
59
|
+
readonly replayMenu: string;
|
|
60
|
+
readonly language: {
|
|
61
|
+
readonly label: string;
|
|
62
|
+
readonly english: string;
|
|
63
|
+
readonly spanish: string;
|
|
64
|
+
};
|
|
65
|
+
readonly menu: MenuCopy;
|
|
66
|
+
readonly intro: {
|
|
67
|
+
readonly greeting: (brandName: string) => string;
|
|
68
|
+
readonly body: string;
|
|
69
|
+
};
|
|
70
|
+
readonly suggestions: readonly string[];
|
|
71
|
+
readonly composer: {
|
|
72
|
+
readonly placeholderDefault: string;
|
|
73
|
+
readonly placeholderPlan: string;
|
|
74
|
+
readonly voiceHint: (keyLabel: string) => string;
|
|
75
|
+
readonly micNotSupported: string;
|
|
76
|
+
readonly micNotConfigured: string;
|
|
77
|
+
readonly micTooltip: (keyLabel: string) => string;
|
|
78
|
+
readonly viewPlan: string;
|
|
79
|
+
readonly hidePlan: string;
|
|
80
|
+
};
|
|
81
|
+
};
|
|
82
|
+
export declare const DOCK_COPY: Record<Locale, DockCopy>;
|
|
83
|
+
/** Merge the locale-independent step defs with this locale's titles/bodies. */
|
|
84
|
+
export declare const buildTourSteps: (locale: Locale) => readonly TourStep[];
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Dev/test diagnostic overrides, read from `localStorage`.
|
|
3
|
+
*
|
|
4
|
+
* The shipped SDK bundle carries SAFE production defaults; these let a single
|
|
5
|
+
* browser session opt into different values WITHOUT a separate build — so we
|
|
6
|
+
* can, e.g., tighten the agent-grant refresh cadence to verify the loop live
|
|
7
|
+
* (BEL-79) in one tab without making every other dock on the shared dev bundle
|
|
8
|
+
* re-grant aggressively. Absent / unparseable / non-positive → the default.
|
|
9
|
+
*/
|
|
10
|
+
/** A positive-integer-ms override from `localStorage[key]`, else `fallbackMs`. */
|
|
11
|
+
export declare const readMsOverride: (key: string, fallbackMs: number) => number;
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The dock's hidden DEV MODE — a cheat code typed into the chat composer
|
|
3
|
+
* (`belong:dev`) toggles a small panel for selecting which agent RUNTIME
|
|
4
|
+
* serves this chat's turns (mastra / claude-managed / claude-agent-sdk /
|
|
5
|
+
* fake), overriding the deployment default per message.
|
|
6
|
+
*
|
|
7
|
+
* Pure client UI state: the selection rides each posted message
|
|
8
|
+
* (`postMessageSchema.runtime`) and the WORKER enforces the gate — the
|
|
9
|
+
* override is honored only on non-production deployments, so exposing the
|
|
10
|
+
* toggle in the shipped bundle is safe. Persisted best-effort to
|
|
11
|
+
* localStorage so a reload keeps the developer's setup.
|
|
12
|
+
*/
|
|
13
|
+
export declare const DEV_CHEAT_CODE = "belong:dev";
|
|
14
|
+
export declare const AGENT_RUNTIMES: readonly ["mastra", "claude-managed", "claude-agent-sdk", "fake"];
|
|
15
|
+
export type AgentRuntime = (typeof AGENT_RUNTIMES)[number];
|
|
16
|
+
/**
|
|
17
|
+
* LLM providers the dev panel can swap the model to. Honored by the MASTRA
|
|
18
|
+
* runtime only (its model resolves per turn); the other runtimes own their
|
|
19
|
+
* model wiring and ignore the override. `gateway` is the generic router
|
|
20
|
+
* (Vercel AI Gateway): pair it with a free-typed `provider/model` slug
|
|
21
|
+
* (e.g. `deepseek/deepseek-v4-pro`) to reach any model the gateway serves.
|
|
22
|
+
*/
|
|
23
|
+
export declare const LLM_PROVIDERS: readonly ["anthropic", "google", "openai", "cerebras", "gateway"];
|
|
24
|
+
export type LlmProvider = (typeof LLM_PROVIDERS)[number];
|
|
25
|
+
/**
|
|
26
|
+
* A free-typed model id must be safe to ride the wire verbatim: bounded, no
|
|
27
|
+
* whitespace, provider-id charset only (mirrors the backend's perimeter
|
|
28
|
+
* schema so a typo fails HERE, not as a 400 on send).
|
|
29
|
+
*/
|
|
30
|
+
export declare const isValidLlmModelId: (value: string) => boolean;
|
|
31
|
+
/** True when the typed text is the cheat code (trim + case-insensitive). */
|
|
32
|
+
export declare const isDevCheatCode: (text: string) => boolean;
|
|
33
|
+
/** `useSyncExternalStore` subscribe — fires on any dev-mode state change. */
|
|
34
|
+
export declare const subscribeDevMode: (listener: () => void) => (() => void);
|
|
35
|
+
/**
|
|
36
|
+
* Dev mode is "unlocked" (the rail shows its button) once the cheat code has
|
|
37
|
+
* been typed once in this browser — end users never see the affordance.
|
|
38
|
+
*/
|
|
39
|
+
export declare const readDevUnlocked: () => boolean;
|
|
40
|
+
/** Toggle the panel (cheat code or rail button); first use unlocks the rail button. */
|
|
41
|
+
export declare const toggleDevPanel: () => void;
|
|
42
|
+
export declare const readDevPanelOpen: () => boolean;
|
|
43
|
+
export declare const writeDevPanelOpen: (open: boolean) => void;
|
|
44
|
+
/** The persisted runtime override; null = the deployment default. */
|
|
45
|
+
export declare const readDevRuntime: () => AgentRuntime | null;
|
|
46
|
+
export declare const writeDevRuntime: (runtime: AgentRuntime | null) => void;
|
|
47
|
+
/** The persisted LLM provider override; null = the deployment's model. */
|
|
48
|
+
export declare const readDevLlmProvider: () => LlmProvider | null;
|
|
49
|
+
export declare const writeDevLlmProvider: (provider: LlmProvider | null) => void;
|
|
50
|
+
/**
|
|
51
|
+
* The persisted free-typed model id; null = the deployment's env-pinned
|
|
52
|
+
* model. Only a wire-valid id is ever returned — a stored value that fails
|
|
53
|
+
* the charset check (old garbage, manual edits) reads as null.
|
|
54
|
+
*/
|
|
55
|
+
export declare const readDevLlmModel: () => string | null;
|
|
56
|
+
export declare const writeDevLlmModel: (model: string | null) => void;
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Pure geometry + state transitions for the dock's three resize states.
|
|
3
|
+
* No DOM, no React — unit-testable. The shell (BelongDock) owns the React
|
|
4
|
+
* state and applies the resolved width; the host <body> margin reservation
|
|
5
|
+
* uses the same resolver so the dock never overlaps host content.
|
|
6
|
+
*/
|
|
7
|
+
export type DockResizeState = "collapsed" | "expanded" | "modal";
|
|
8
|
+
/** The always-visible rail strip. Reference spec: 52px. */
|
|
9
|
+
export declare const RAIL_WIDTH_PX = 52;
|
|
10
|
+
/** Fixed panel width in modal state. Reference spec: 760px panel. */
|
|
11
|
+
export declare const MODAL_PANEL_WIDTH_PX = 760;
|
|
12
|
+
/** Lower bound for a user-dragged expanded panel width. */
|
|
13
|
+
export declare const MIN_PANEL_WIDTH_PX = 320;
|
|
14
|
+
/** Upper bound for a user-dragged expanded panel width. */
|
|
15
|
+
export declare const MAX_PANEL_WIDTH_PX = 720;
|
|
16
|
+
/** Clamp a dragged panel width to [MIN, min(MAX, 90% of viewport)]. */
|
|
17
|
+
export declare const clampPanelWidth: (px: number, viewportPx: number) => number;
|
|
18
|
+
/** Total dock width (panel + rail) for a state, given the expanded panel width. */
|
|
19
|
+
export declare const resolveDockWidthPx: (state: DockResizeState, panelWidth: number) => number;
|
|
20
|
+
/**
|
|
21
|
+
* The panel's OWN width for a state. While collapsed this is the width the
|
|
22
|
+
* panel would reveal to (the dock container clips it), so the panel keeps a
|
|
23
|
+
* stable layout and the expand animation is a clean wipe — never a continuous
|
|
24
|
+
* reflow of text at every intermediate width.
|
|
25
|
+
*/
|
|
26
|
+
export declare const resolvePanelWidthPx: (state: DockResizeState, panelWidth: number) => number;
|
|
27
|
+
/** Collapse toggle: any open state → collapsed; collapsed → expanded. */
|
|
28
|
+
export declare const nextOnToggleCollapse: (state: DockResizeState) => DockResizeState;
|
|
29
|
+
/** Modal toggle: expanded ↔ modal; no-op while collapsed. */
|
|
30
|
+
export declare const nextOnToggleModal: (state: DockResizeState) => DockResizeState;
|