@tangle-network/sandbox-cli 0.23.51 → 0.23.52
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/dist/{graph-CDrrlr4U.mjs → graph-Cb8lL7fi.mjs} +9 -9
- package/dist/{graph-learning-XjrAqpQA.mjs → graph-learning-v9-Gus1I.mjs} +1 -1
- package/dist/{graph-operating-evidence-W3dtTQ6O.mjs → graph-operating-evidence-DalCz7IF.mjs} +1 -1
- package/dist/{graph-profile-learning-DaoL53AA.mjs → graph-profile-learning-DCoDQi5u.mjs} +1 -1
- package/dist/graph-show/styles.css +1354 -607
- package/dist/index.mjs +1 -1
- package/package.json +9 -10
- package/dist/graph-viewer/Analytics-bWsqhurt.js +0 -1001
- package/dist/graph-viewer/AnswerStrip-COxV7gLW.js +0 -112
- package/dist/graph-viewer/Checks-CQGmKcQ0.js +0 -164
- package/dist/graph-viewer/Conversations-DgCshBAf.js +0 -627
- package/dist/graph-viewer/Files-CvIOGrAs.js +0 -441
- package/dist/graph-viewer/LiveRun-DHmsr6F7.js +0 -311
- package/dist/graph-viewer/Outputs-rwBg_x36.js +0 -803
- package/dist/graph-viewer/Overview-C150tkVa.js +0 -194
- package/dist/graph-viewer/RunOverview-CSqsunqf.js +0 -1720
- package/dist/graph-viewer/RunPage-F_prVwiV.js +0 -286
- package/dist/graph-viewer/Timeline-BFDywlmz.js +0 -335
- package/dist/graph-viewer/Today-BdDuqZGF.js +0 -623
- package/dist/graph-viewer/Topology-SAfGtd5u.js +0 -238
- package/dist/graph-viewer/Traces-BYqXaS_s.js +0 -254
- package/dist/graph-viewer/WallPages-MM70VZrC.js +0 -676
- package/dist/graph-viewer/agent-runtime.js +0 -2293
- package/dist/graph-viewer/anchor-C4i5SrB9.js +0 -23
- package/dist/graph-viewer/assessment.js +0 -117
- package/dist/graph-viewer/data-DTGmre1W.js +0 -251
- package/dist/graph-viewer/harness-sessions.js +0 -165
- package/dist/graph-viewer/index.js +0 -14957
- package/dist/graph-viewer/lazy-pages-BYuq_L_n.js +0 -23
- package/dist/graph-viewer/outputs-model-CHTx8rMz.js +0 -553
- package/dist/graph-viewer/plain-words-BrMHl0On.js +0 -22
- package/dist/graph-viewer/publication.js +0 -111
- package/dist/graph-viewer/receipt.js +0 -25
- package/dist/graph-viewer/record-CsP_3NJS.js +0 -612
- package/dist/graph-viewer/record-part-CuT9Xw37.js +0 -334
- package/dist/graph-viewer/record.js +0 -2
- package/dist/graph-viewer/report-viewer.js +0 -557
- package/dist/graph-viewer/report.js +0 -392
- package/dist/graph-viewer/research-publication.js +0 -35
- package/dist/graph-viewer/run-files-BckQDdTD.js +0 -82
- package/dist/graph-viewer/run-receipt-Bt2iXJUy.js +0 -1113
- package/dist/graph-viewer/schemas/agent-record.bundle.v1.json +0 -157
- package/dist/graph-viewer/schemas/agent-record.v1.json +0 -1025
- package/dist/graph-viewer/schemas/agent-trace-assessment.v1.json +0 -302
- package/dist/graph-viewer/schemas/agent-trace-assessments.v1.json +0 -335
- package/dist/graph-viewer/schemas/agent-trace-dimensions.v1.json +0 -131
- package/dist/graph-viewer/schemas/agent-workspace.play.v1.json +0 -8152
- package/dist/graph-viewer/schemas/agent-workspace.plays.v1.json +0 -1297
- package/dist/graph-viewer/schemas/agent-workspace.run.v1.json +0 -10908
- package/dist/graph-viewer/schemas/agent-workspace.version-graph.json +0 -1131
- package/dist/graph-viewer/schemas/discovery-lab.profile-graph.json +0 -2628
- package/dist/graph-viewer/schemas/evidence.snapshot.v1.json +0 -71
- package/dist/graph-viewer/styles.css +0 -16462
- package/dist/graph-viewer/trace-spans.js +0 -157
- package/dist/graph-viewer/ui-xa5w5bEN.js +0 -889
- package/dist/graph-viewer/use-file-text-BaE98QxE.js +0 -47
- package/dist/graph-viewer/viewer/AgentGraphCanvas-B74GN1o6-BZEumF7-.js +0 -8717
- package/dist/graph-viewer/viewer/Analytics-E3XS570U.js +0 -1002
- package/dist/graph-viewer/viewer/AnswerStrip-B7xMU57A.js +0 -45
- package/dist/graph-viewer/viewer/Checks-CJ5XSHbv.js +0 -165
- package/dist/graph-viewer/viewer/Conversations-AX8G7Qyl.js +0 -904
- package/dist/graph-viewer/viewer/Files-DxL1576V.js +0 -630
- package/dist/graph-viewer/viewer/LiveRun-B-BckyEj.js +0 -820
- package/dist/graph-viewer/viewer/Outputs-BoIpgfMv.js +0 -930
- package/dist/graph-viewer/viewer/Overview-Dzg5XJgy.js +0 -436
- package/dist/graph-viewer/viewer/RunPage-NtevWXBs.js +0 -285
- package/dist/graph-viewer/viewer/Scores-Dgv4WePL.js +0 -414
- package/dist/graph-viewer/viewer/Timeline-CzY3LVDu.js +0 -335
- package/dist/graph-viewer/viewer/Today-Bi9IIwuh.js +0 -623
- package/dist/graph-viewer/viewer/Topology-CzjqSFXH.js +0 -239
- package/dist/graph-viewer/viewer/Traces-CMX0H1VU.js +0 -254
- package/dist/graph-viewer/viewer/WallPages-Clj4bORg.js +0 -675
- package/dist/graph-viewer/viewer/abap-DF4NaQCD.js +0 -3
- package/dist/graph-viewer/viewer/actionscript-3-O89o1DyQ.js +0 -3
- package/dist/graph-viewer/viewer/ada-UiOHRbSd.js +0 -3
- package/dist/graph-viewer/viewer/addon-webgl-BSCscllv.js +0 -4027
- package/dist/graph-viewer/viewer/agent-record-BrP-ENHg.css +0 -2
- package/dist/graph-viewer/viewer/ahk-7eXkLipS.js +0 -3
- package/dist/graph-viewer/viewer/ahk2-BRygvKjG.js +0 -3
- package/dist/graph-viewer/viewer/andromeeda-CXE6Hd_y.js +0 -4
- package/dist/graph-viewer/viewer/andromeeda-D4hkA5d4.js +0 -135
- package/dist/graph-viewer/viewer/angular-html-CH3lfmUV.js +0 -16
- package/dist/graph-viewer/viewer/angular-ts-B687Yw-e.js +0 -18
- package/dist/graph-viewer/viewer/apache-zsgjHeYU.js +0 -3
- package/dist/graph-viewer/viewer/apex-DvIWVZE0.js +0 -3
- package/dist/graph-viewer/viewer/apl-MlL-eOOA.js +0 -16
- package/dist/graph-viewer/viewer/applescript-D_ETOzPj.js +0 -3
- package/dist/graph-viewer/viewer/ara-CXdsJbD3.js +0 -3
- package/dist/graph-viewer/viewer/asciidoc-CpqrUCBV.js +0 -3
- package/dist/graph-viewer/viewer/asm-DLrPCi7c.js +0 -3
- package/dist/graph-viewer/viewer/astro-CEu262ke.js +0 -18
- package/dist/graph-viewer/viewer/aurora-x-ByDc5ddl.js +0 -4
- package/dist/graph-viewer/viewer/aurora-x-DR-LXA3G.js +0 -149
- package/dist/graph-viewer/viewer/awk-452npsTH.js +0 -3
- package/dist/graph-viewer/viewer/ayu-dark-AY3FJIQr.js +0 -125
- package/dist/graph-viewer/viewer/ayu-dark-Bwg9SdAf.js +0 -4
- package/dist/graph-viewer/viewer/ayu-light-CDT1HkHg.js +0 -125
- package/dist/graph-viewer/viewer/ayu-light-DPCSrH1e.js +0 -4
- package/dist/graph-viewer/viewer/ayu-mirage-BrWHc4Mk.js +0 -125
- package/dist/graph-viewer/viewer/ayu-mirage-CArVigxm.js +0 -4
- package/dist/graph-viewer/viewer/ballerina-8wA0eHgr.js +0 -3
- package/dist/graph-viewer/viewer/bash-B3Pt0-io.js +0 -2
- package/dist/graph-viewer/viewer/bat-D5zNUOf1.js +0 -3
- package/dist/graph-viewer/viewer/beancount-BXtNUIgX.js +0 -3
- package/dist/graph-viewer/viewer/berry-oDXeVIfk.js +0 -3
- package/dist/graph-viewer/viewer/bibtex-CAeObnSR.js +0 -3
- package/dist/graph-viewer/viewer/bicep-udSZHxea.js +0 -3
- package/dist/graph-viewer/viewer/bird2-CeHO9zcD.js +0 -3
- package/dist/graph-viewer/viewer/blade-6Y8QadpX.js +0 -20
- package/dist/graph-viewer/viewer/bot-BaQU59LG.js +0 -40
- package/dist/graph-viewer/viewer/bsl-BYwMGpx9.js +0 -5
- package/dist/graph-viewer/viewer/c-CSBSx-ud.js +0 -2
- package/dist/graph-viewer/viewer/c-DAvbji88.js +0 -5
- package/dist/graph-viewer/viewer/c3-CWnhEhIf.js +0 -3
- package/dist/graph-viewer/viewer/cadence-C2DNIpxD.js +0 -3
- package/dist/graph-viewer/viewer/cairo-Be_WUhk8.js +0 -5
- package/dist/graph-viewer/viewer/catppuccin-frappe-BOyy9syt.js +0 -254
- package/dist/graph-viewer/viewer/catppuccin-frappe-XWBMtHoj.js +0 -4
- package/dist/graph-viewer/viewer/catppuccin-latte-BTeMSDF4.js +0 -254
- package/dist/graph-viewer/viewer/catppuccin-latte-CYOvCvxh.js +0 -4
- package/dist/graph-viewer/viewer/catppuccin-macchiato-BdFrVtzY.js +0 -254
- package/dist/graph-viewer/viewer/catppuccin-macchiato-Bl-TAIIg.js +0 -4
- package/dist/graph-viewer/viewer/catppuccin-mocha-BkEo6vVC.js +0 -4
- package/dist/graph-viewer/viewer/catppuccin-mocha-nwxgrdZf.js +0 -254
- package/dist/graph-viewer/viewer/ccount-8lyDUwnq.js +0 -1116
- package/dist/graph-viewer/viewer/chapel-BipHs2dR.js +0 -5
- package/dist/graph-viewer/viewer/chevron-right-Xn05jYLT.js +0 -14
- package/dist/graph-viewer/viewer/clarity-CYwjxkRS.js +0 -3
- package/dist/graph-viewer/viewer/clojure-g5hblQ59.js +0 -3
- package/dist/graph-viewer/viewer/cmake-D30WusUY.js +0 -3
- package/dist/graph-viewer/viewer/cobol-BSufitvZ.js +0 -10
- package/dist/graph-viewer/viewer/codeowners-a_Z0p9_y.js +0 -3
- package/dist/graph-viewer/viewer/codeql-BkSUw1F6.js +0 -3
- package/dist/graph-viewer/viewer/coffee-Cq8545xS.js +0 -5
- package/dist/graph-viewer/viewer/common-lisp-D2PkvS4V.js +0 -3
- package/dist/graph-viewer/viewer/coq-BLTGLocz.js +0 -3
- package/dist/graph-viewer/viewer/core-I74i0Bj-.js +0 -3283
- package/dist/graph-viewer/viewer/cpp--S2jMQNE.js +0 -16
- package/dist/graph-viewer/viewer/cpp-D1SvvKgJ.js +0 -2
- package/dist/graph-viewer/viewer/createLucideIcon-BSphcoOJ.js +0 -132
- package/dist/graph-viewer/viewer/crystal-CwAQylTf.js +0 -18
- package/dist/graph-viewer/viewer/csharp--dn-Xz3x.js +0 -3
- package/dist/graph-viewer/viewer/csharp-CFNIW_9w.js +0 -2
- package/dist/graph-viewer/viewer/css-DDvgy_Pj.js +0 -2
- package/dist/graph-viewer/viewer/css-OZkJJXvy.js +0 -5
- package/dist/graph-viewer/viewer/csv-DFU5sVkH.js +0 -3
- package/dist/graph-viewer/viewer/cue-cdFZcSz0.js +0 -3
- package/dist/graph-viewer/viewer/cypher-DRjO_s97.js +0 -3
- package/dist/graph-viewer/viewer/d-BTgKsJ9x.js +0 -3
- package/dist/graph-viewer/viewer/dark-plus-C3f5UfGH.js +0 -4
- package/dist/graph-viewer/viewer/dark-plus-DpxqFdZb.js +0 -133
- package/dist/graph-viewer/viewer/dart-D4omMRdb.js +0 -3
- package/dist/graph-viewer/viewer/dashboard-D3JhmRhe-DSl0zhkw.js +0 -371
- package/dist/graph-viewer/viewer/data-CVHeKhrh.js +0 -5464
- package/dist/graph-viewer/viewer/dax-DMzovUnU.js +0 -3
- package/dist/graph-viewer/viewer/desktop-0YG2NeB2.js +0 -3
- package/dist/graph-viewer/viewer/diff-Bqcnq92f.js +0 -2
- package/dist/graph-viewer/viewer/diff-D0WgTNQn.js +0 -3
- package/dist/graph-viewer/viewer/dist-4_KJz8ZM.js +0 -349
- package/dist/graph-viewer/viewer/dist-Dy-wrdTt.js +0 -1615
- package/dist/graph-viewer/viewer/docker-DzSfvS0u.js +0 -5
- package/dist/graph-viewer/viewer/dockerfile-CM1sLMN0.js +0 -2
- package/dist/graph-viewer/viewer/dotenv-BSNpOEA3.js +0 -3
- package/dist/graph-viewer/viewer/dracula-BfBOnDty.js +0 -4
- package/dist/graph-viewer/viewer/dracula-DhjcxBGE.js +0 -153
- package/dist/graph-viewer/viewer/dracula-soft-C8OuVugS.js +0 -103
- package/dist/graph-viewer/viewer/dracula-soft-D6ffXinY.js +0 -4
- package/dist/graph-viewer/viewer/dream-maker-Br_aTy0D.js +0 -3
- package/dist/graph-viewer/viewer/edge-BXg6ZoA5.js +0 -12
- package/dist/graph-viewer/viewer/elixir-BP4dycnf.js +0 -5
- package/dist/graph-viewer/viewer/elk.bundled-ZJBRnwyo.js +0 -46151
- package/dist/graph-viewer/viewer/elm-XJ6BGRhm.js +0 -5
- package/dist/graph-viewer/viewer/emacs-lisp-CaNYORYC.js +0 -3
- package/dist/graph-viewer/viewer/engine-javascript-CuJOa50W.js +0 -2400
- package/dist/graph-viewer/viewer/engine-oniguruma-CUxoKLbG.js +0 -238
- package/dist/graph-viewer/viewer/erb-Cny7ijxm.js +0 -10
- package/dist/graph-viewer/viewer/erlang-CcYvFpBd.js +0 -5
- package/dist/graph-viewer/viewer/es2015-utW4DTOJ.js +0 -3506
- package/dist/graph-viewer/viewer/everforest-dark-1Qcrb-nR.js +0 -4
- package/dist/graph-viewer/viewer/everforest-dark-B8sohDPe.js +0 -87
- package/dist/graph-viewer/viewer/everforest-light-CwMdzDa5.js +0 -87
- package/dist/graph-viewer/viewer/everforest-light-pWd_20u5.js +0 -4
- package/dist/graph-viewer/viewer/fennel-XqmdNU54.js +0 -3
- package/dist/graph-viewer/viewer/final-output-BYT-g-9j.js +0 -112
- package/dist/graph-viewer/viewer/fish-DnIfDEl-.js +0 -3
- package/dist/graph-viewer/viewer/flow-waterfall-model-DvrgPLGS-BdThSFH-.js +0 -2696
- package/dist/graph-viewer/viewer/fluent-Dv7iXi9Q.js +0 -3
- package/dist/graph-viewer/viewer/fortran-fixed-form-CclFI1c1.js +0 -5
- package/dist/graph-viewer/viewer/fortran-free-form-B6CnEX04.js +0 -3
- package/dist/graph-viewer/viewer/fsharp-KngoBKg1.js +0 -5
- package/dist/graph-viewer/viewer/gdresource-DmwEW6Q8.js +0 -10
- package/dist/graph-viewer/viewer/gdscript-DZvGV2HF.js +0 -3
- package/dist/graph-viewer/viewer/gdshader-C-YpNGc4.js +0 -3
- package/dist/graph-viewer/viewer/genie-eGJU5Fha.js +0 -3
- package/dist/graph-viewer/viewer/gherkin-DPafK1RH.js +0 -3
- package/dist/graph-viewer/viewer/git-branch-BzTbIcYL.js +0 -28
- package/dist/graph-viewer/viewer/git-commit-ic1koML8.js +0 -5
- package/dist/graph-viewer/viewer/git-rebase-Cv1EDRHu.js +0 -5
- package/dist/graph-viewer/viewer/github-dark-DDdIZDt9.js +0 -4
- package/dist/graph-viewer/viewer/github-dark-JXVciwdu.js +0 -130
- package/dist/graph-viewer/viewer/github-dark-default-BdQpbWGL.js +0 -76
- package/dist/graph-viewer/viewer/github-dark-default-Dqlx6Tfn.js +0 -4
- package/dist/graph-viewer/viewer/github-dark-dimmed-Cf-YKaPv.js +0 -4
- package/dist/graph-viewer/viewer/github-dark-dimmed-W_ejuONg.js +0 -125
- package/dist/graph-viewer/viewer/github-dark-high-contrast-BfhJh7Fv.js +0 -4
- package/dist/graph-viewer/viewer/github-dark-high-contrast-Dta6H4l1.js +0 -125
- package/dist/graph-viewer/viewer/github-light-D4EN-pJE.js +0 -130
- package/dist/graph-viewer/viewer/github-light-D7vUnDjY.js +0 -4
- package/dist/graph-viewer/viewer/github-light-default-CA96ogap.js +0 -125
- package/dist/graph-viewer/viewer/github-light-default-CbQ7dbx-.js +0 -4
- package/dist/graph-viewer/viewer/github-light-high-contrast-CWkjO7j1.js +0 -125
- package/dist/graph-viewer/viewer/github-light-high-contrast-Oc7ptxOl.js +0 -4
- package/dist/graph-viewer/viewer/gleam-DDi89CaZ.js +0 -3
- package/dist/graph-viewer/viewer/glimmer-js-B4XGl72Q.js +0 -14
- package/dist/graph-viewer/viewer/glimmer-ts-Cd-JLCfl.js +0 -14
- package/dist/graph-viewer/viewer/glsl-gcTBSfUq.js +0 -6
- package/dist/graph-viewer/viewer/gn-DMs_IqO4.js +0 -3
- package/dist/graph-viewer/viewer/gnuplot-Dwu09Wsa.js +0 -3
- package/dist/graph-viewer/viewer/go-BEdBk4fh.js +0 -3
- package/dist/graph-viewer/viewer/go-DHVK1MDf.js +0 -2
- package/dist/graph-viewer/viewer/graphql-CLsas7pB.js +0 -15
- package/dist/graph-viewer/viewer/graphql-hf2jeRF3.js +0 -2
- package/dist/graph-viewer/viewer/groovy-CmZ205Qh.js +0 -3
- package/dist/graph-viewer/viewer/gruvbox-dark-hard-C03xMCtB.js +0 -4
- package/dist/graph-viewer/viewer/gruvbox-dark-hard-D6fxqIcJ.js +0 -128
- package/dist/graph-viewer/viewer/gruvbox-dark-medium-CC6ndC01.js +0 -128
- package/dist/graph-viewer/viewer/gruvbox-dark-medium-ZTNTOYs1.js +0 -4
- package/dist/graph-viewer/viewer/gruvbox-dark-soft-1zGnpoEy.js +0 -4
- package/dist/graph-viewer/viewer/gruvbox-dark-soft-DBjjA89e.js +0 -128
- package/dist/graph-viewer/viewer/gruvbox-light-hard-CNtKpSCc.js +0 -128
- package/dist/graph-viewer/viewer/gruvbox-light-hard-Rq8jWy-t.js +0 -4
- package/dist/graph-viewer/viewer/gruvbox-light-medium-DT10IcB_.js +0 -128
- package/dist/graph-viewer/viewer/gruvbox-light-medium-qoNn8l_N.js +0 -4
- package/dist/graph-viewer/viewer/gruvbox-light-soft-BugAsRiM.js +0 -128
- package/dist/graph-viewer/viewer/gruvbox-light-soft-Dnxtmee2.js +0 -4
- package/dist/graph-viewer/viewer/hack-CDch_7MP.js +0 -10
- package/dist/graph-viewer/viewer/haml-BqkvTyZm.js +0 -11
- package/dist/graph-viewer/viewer/handlebars-RDj3fZHz.js +0 -14
- package/dist/graph-viewer/viewer/haskell-DSSJ-2AO.js +0 -3
- package/dist/graph-viewer/viewer/haxe-DrA0Xrjd.js +0 -3
- package/dist/graph-viewer/viewer/hcl-BxX70ue-.js +0 -3
- package/dist/graph-viewer/viewer/highlights-DWeSCtiR.js +0 -1351
- package/dist/graph-viewer/viewer/hjson-Znrrrv1t.js +0 -3
- package/dist/graph-viewer/viewer/hlsl-D-dP8z1U.js +0 -3
- package/dist/graph-viewer/viewer/horizon-CE4Yvsia.js +0 -4
- package/dist/graph-viewer/viewer/horizon-EI29cEvA.js +0 -85
- package/dist/graph-viewer/viewer/horizon-bright-BOLA2YFR.js +0 -4
- package/dist/graph-viewer/viewer/horizon-bright-hHpSmrYh.js +0 -85
- package/dist/graph-viewer/viewer/houston-CiDLA2oo.js +0 -4
- package/dist/graph-viewer/viewer/houston-CiUxf-HU.js +0 -195
- package/dist/graph-viewer/viewer/html-9DDE6S-h.js +0 -2
- package/dist/graph-viewer/viewer/html-D0TTaG52.js +0 -11
- package/dist/graph-viewer/viewer/html-derivative-Gg3E-n-U.js +0 -5
- package/dist/graph-viewer/viewer/http-BPgEi3D2.js +0 -14
- package/dist/graph-viewer/viewer/hurl-Sfhn3XgM.js +0 -12
- package/dist/graph-viewer/viewer/hxml-Dv3Zqri9.js +0 -5
- package/dist/graph-viewer/viewer/hy-Cd4h6N3W.js +0 -3
- package/dist/graph-viewer/viewer/imba-DdhTsO9l.js +0 -3
- package/dist/graph-viewer/viewer/ini-CmgEGOBJ.js +0 -3
- package/dist/graph-viewer/viewer/java-CgzoQF6Y.js +0 -5
- package/dist/graph-viewer/viewer/java-DnKlCRJQ.js +0 -2
- package/dist/graph-viewer/viewer/javascript-CHiBfg7Q.js +0 -2
- package/dist/graph-viewer/viewer/javascript-Du25Lw0B.js +0 -5
- package/dist/graph-viewer/viewer/jinja-CmKrofRU.js +0 -5
- package/dist/graph-viewer/viewer/jison-Bh7j04oA.js +0 -5
- package/dist/graph-viewer/viewer/json-Cd131axV.js +0 -2
- package/dist/graph-viewer/viewer/json-Cd3mvCHu.js +0 -5
- package/dist/graph-viewer/viewer/json5-D2Eltym1.js +0 -3
- package/dist/graph-viewer/viewer/jsonc-BPIJyZ7u.js +0 -3
- package/dist/graph-viewer/viewer/jsonc-DyuEwhdL.js +0 -2
- package/dist/graph-viewer/viewer/jsonl-BGkjXns2.js +0 -3
- package/dist/graph-viewer/viewer/jsonnet-DsRfEVPr.js +0 -3
- package/dist/graph-viewer/viewer/jssm-DP2pbfxn.js +0 -3
- package/dist/graph-viewer/viewer/jsx-BC18Lfga.js +0 -5
- package/dist/graph-viewer/viewer/jsx-CDweqMY2.js +0 -2
- package/dist/graph-viewer/viewer/jsx-runtime-DPT6sCLq.js +0 -319
- package/dist/graph-viewer/viewer/julia-DWXGq3n5.js +0 -16
- package/dist/graph-viewer/viewer/just-CPEDqFxc.js +0 -18
- package/dist/graph-viewer/viewer/kanagawa-dragon-D5ZXvoAT.js +0 -147
- package/dist/graph-viewer/viewer/kanagawa-dragon-m178euzh.js +0 -4
- package/dist/graph-viewer/viewer/kanagawa-lotus-BUmV0rdY.js +0 -147
- package/dist/graph-viewer/viewer/kanagawa-lotus-C4yCdgdL.js +0 -4
- package/dist/graph-viewer/viewer/kanagawa-wave-B6YTgVPM.js +0 -4
- package/dist/graph-viewer/viewer/kanagawa-wave-C4G5CGrn.js +0 -147
- package/dist/graph-viewer/viewer/kdl-BdIUXyK8.js +0 -3
- package/dist/graph-viewer/viewer/kotlin-BYbH5_qW.js +0 -2
- package/dist/graph-viewer/viewer/kotlin-CQsNEM2o.js +0 -3
- package/dist/graph-viewer/viewer/kusto-UWPUoeE5.js +0 -3
- package/dist/graph-viewer/viewer/langs-DKPMizJR.js +0 -1323
- package/dist/graph-viewer/viewer/laserwave-BHOyZkaw.js +0 -72
- package/dist/graph-viewer/viewer/laserwave-CWOG7haO.js +0 -4
- package/dist/graph-viewer/viewer/latex-H1oLZZMa.js +0 -5
- package/dist/graph-viewer/viewer/lazy-pages-ChiMJ8r_.js +0 -803
- package/dist/graph-viewer/viewer/lean-D3P_r_z_.js +0 -3
- package/dist/graph-viewer/viewer/less-9LYkHheD.js +0 -3
- package/dist/graph-viewer/viewer/lib-YfRUb5Qz.js +0 -633
- package/dist/graph-viewer/viewer/light-plus-BqoAVMwn.js +0 -4
- package/dist/graph-viewer/viewer/light-plus-mr4QmlNu.js +0 -134
- package/dist/graph-viewer/viewer/liquid-BIl6scjw.js +0 -14
- package/dist/graph-viewer/viewer/llvm-eWADufTp.js +0 -3
- package/dist/graph-viewer/viewer/loader-CJrlDBKq.js +0 -80
- package/dist/graph-viewer/viewer/log-DvQMOE69.js +0 -3
- package/dist/graph-viewer/viewer/logo-Cl5E_QyH.js +0 -3
- package/dist/graph-viewer/viewer/lua-2MenSe50.js +0 -6
- package/dist/graph-viewer/viewer/luau-7dQCidxK.js +0 -3
- package/dist/graph-viewer/viewer/make-CE9Hryyp.js +0 -3
- package/dist/graph-viewer/viewer/markdown-CSNMIXpG.js +0 -2
- package/dist/graph-viewer/viewer/markdown-lADwhD7y.js +0 -8220
- package/dist/graph-viewer/viewer/markdown-nUtTZkU8.js +0 -3
- package/dist/graph-viewer/viewer/marko-C5vBSh9z.js +0 -14
- package/dist/graph-viewer/viewer/material-theme-B36kIseS.js +0 -93
- package/dist/graph-viewer/viewer/material-theme-D46aZ2Q0.js +0 -4
- package/dist/graph-viewer/viewer/material-theme-darker-DPrN5MJM.js +0 -4
- package/dist/graph-viewer/viewer/material-theme-darker-iFXeHXKD.js +0 -93
- package/dist/graph-viewer/viewer/material-theme-lighter-2HJjoQcP.js +0 -4
- package/dist/graph-viewer/viewer/material-theme-lighter-BBaTLa5v.js +0 -93
- package/dist/graph-viewer/viewer/material-theme-ocean-D1aXUM1Z.js +0 -4
- package/dist/graph-viewer/viewer/material-theme-ocean-Dj5vMPI8.js +0 -93
- package/dist/graph-viewer/viewer/material-theme-palenight-B6DS-lbj.js +0 -4
- package/dist/graph-viewer/viewer/material-theme-palenight-EjN7Wy3X.js +0 -93
- package/dist/graph-viewer/viewer/matlab-fM7rwTZt.js +0 -3
- package/dist/graph-viewer/viewer/mdc-IFxaehab.js +0 -12
- package/dist/graph-viewer/viewer/mdx-DswfiFg4.js +0 -3
- package/dist/graph-viewer/viewer/mdx-e70j-_I5.js +0 -2
- package/dist/graph-viewer/viewer/mermaid-CAl3BhSL.js +0 -3
- package/dist/graph-viewer/viewer/min-dark-BAW8Cmrn.js +0 -4
- package/dist/graph-viewer/viewer/min-dark-BMrfDL-S.js +0 -110
- package/dist/graph-viewer/viewer/min-light-DMqORsIf.js +0 -110
- package/dist/graph-viewer/viewer/min-light-PpFL3JTA.js +0 -4
- package/dist/graph-viewer/viewer/mipsasm-DbPELTlh.js +0 -3
- package/dist/graph-viewer/viewer/model-brand-bTcMjQtB-RSb7EbGB.js +0 -476
- package/dist/graph-viewer/viewer/mojo-B8iEg1Sv.js +0 -3
- package/dist/graph-viewer/viewer/monokai-2mdc1PFC.js +0 -4
- package/dist/graph-viewer/viewer/monokai-b6RWCwKp.js +0 -150
- package/dist/graph-viewer/viewer/moonbit-BR88EIMx.js +0 -3
- package/dist/graph-viewer/viewer/move-CpCLo8d1.js +0 -3
- package/dist/graph-viewer/viewer/narrat-9pGDjQTI.js +0 -3
- package/dist/graph-viewer/viewer/nextflow-BEOXmhnx.js +0 -5
- package/dist/graph-viewer/viewer/nextflow-groovy-Cvo9WVFK.js +0 -3
- package/dist/graph-viewer/viewer/nginx-Dx1JJUel.js +0 -5
- package/dist/graph-viewer/viewer/night-owl-B66IhhIZ.js +0 -4
- package/dist/graph-viewer/viewer/night-owl-Dgg_EwNf.js +0 -176
- package/dist/graph-viewer/viewer/night-owl-light-C6oRQ1ih.js +0 -177
- package/dist/graph-viewer/viewer/night-owl-light-D2RFQCtQ.js +0 -4
- package/dist/graph-viewer/viewer/nim-CpR9PfF3.js +0 -20
- package/dist/graph-viewer/viewer/nix-CwcLdFnB.js +0 -3
- package/dist/graph-viewer/viewer/nord-BD48P4mW.js +0 -116
- package/dist/graph-viewer/viewer/nord-Sih_lPjv.js +0 -4
- package/dist/graph-viewer/viewer/nsis-Dn88_Onr.js +0 -3
- package/dist/graph-viewer/viewer/nushell-DDaptVCJ.js +0 -3
- package/dist/graph-viewer/viewer/objective-c-DK-EKgyd.js +0 -3
- package/dist/graph-viewer/viewer/objective-cpp-CXtEgxjw.js +0 -3
- package/dist/graph-viewer/viewer/ocaml-BO-0Wjtk.js +0 -3
- package/dist/graph-viewer/viewer/odin-BDNmOx6H.js +0 -3
- package/dist/graph-viewer/viewer/one-dark-pro-DFN4GD0H.js +0 -4
- package/dist/graph-viewer/viewer/one-dark-pro-MBgmHRam.js +0 -112
- package/dist/graph-viewer/viewer/one-light-Bi4vf2dv.js +0 -138
- package/dist/graph-viewer/viewer/one-light-zI0r8mzs.js +0 -4
- package/dist/graph-viewer/viewer/openscad-B8gTrm-E.js +0 -3
- package/dist/graph-viewer/viewer/org-SBzxSGZD.js +0 -100
- package/dist/graph-viewer/viewer/page-header-QbUg8F8i.js +0 -73
- package/dist/graph-viewer/viewer/pascal-CRtegPzh.js +0 -3
- package/dist/graph-viewer/viewer/perl-Cotj8Fvk.js +0 -16
- package/dist/graph-viewer/viewer/php-BCjZGKW5.js +0 -2
- package/dist/graph-viewer/viewer/php-DuQlfgak.js +0 -18
- package/dist/graph-viewer/viewer/pierre-dark-Dc3Ll6Hl.js +0 -154
- package/dist/graph-viewer/viewer/pierre-dark-eM2ca6q-.js +0 -4
- package/dist/graph-viewer/viewer/pierre-dark-protanopia-deuteranopia-FuOdjT6t.js +0 -4
- package/dist/graph-viewer/viewer/pierre-dark-protanopia-deuteranopia-h_4QkzS0.js +0 -154
- package/dist/graph-viewer/viewer/pierre-dark-soft-BFXGcQOC.js +0 -4
- package/dist/graph-viewer/viewer/pierre-dark-soft-DlFiKlWf.js +0 -154
- package/dist/graph-viewer/viewer/pierre-dark-tritanopia-D8Wgm6MB.js +0 -154
- package/dist/graph-viewer/viewer/pierre-dark-tritanopia-HphJrMfv.js +0 -4
- package/dist/graph-viewer/viewer/pierre-dark-vibrant-BxJmNTpB.js +0 -154
- package/dist/graph-viewer/viewer/pierre-dark-vibrant-CJwaYoBu.js +0 -4
- package/dist/graph-viewer/viewer/pierre-light-Bd7oPgtx.js +0 -4
- package/dist/graph-viewer/viewer/pierre-light-CFLGbwCM.js +0 -154
- package/dist/graph-viewer/viewer/pierre-light-protanopia-deuteranopia-BlBh_kV-.js +0 -154
- package/dist/graph-viewer/viewer/pierre-light-protanopia-deuteranopia-fUFGoRe8.js +0 -4
- package/dist/graph-viewer/viewer/pierre-light-soft-Ah2itsu1.js +0 -154
- package/dist/graph-viewer/viewer/pierre-light-soft-DobqmynA.js +0 -4
- package/dist/graph-viewer/viewer/pierre-light-tritanopia-Bpej1qhn.js +0 -154
- package/dist/graph-viewer/viewer/pierre-light-tritanopia-BrKH6xXA.js +0 -4
- package/dist/graph-viewer/viewer/pierre-light-vibrant-BjCO0blv.js +0 -154
- package/dist/graph-viewer/viewer/pierre-light-vibrant-COFDSNWf.js +0 -4
- package/dist/graph-viewer/viewer/pkl-C53Sb050.js +0 -3
- package/dist/graph-viewer/viewer/plain-words-BrMHl0On.js +0 -22
- package/dist/graph-viewer/viewer/plastic-BKBSI3T4.js +0 -4
- package/dist/graph-viewer/viewer/plastic-BtQ0IfLu.js +0 -125
- package/dist/graph-viewer/viewer/plsql-Bx7tup_v.js +0 -3
- package/dist/graph-viewer/viewer/po-DSTB2Mz9.js +0 -3
- package/dist/graph-viewer/viewer/poimandres-DaSN2vl7.js +0 -112
- package/dist/graph-viewer/viewer/poimandres-Dbcm0FXZ.js +0 -4
- package/dist/graph-viewer/viewer/polar-E3hAEXm5.js +0 -3
- package/dist/graph-viewer/viewer/postcss-BZib8l4b.js +0 -3
- package/dist/graph-viewer/viewer/powerquery-CJblX2B2.js +0 -3
- package/dist/graph-viewer/viewer/powershell-jc6OXU_u.js +0 -3
- package/dist/graph-viewer/viewer/primitives-znfPK9NP-B6UO7uDr.js +0 -346
- package/dist/graph-viewer/viewer/prisma-CBAWJppo.js +0 -3
- package/dist/graph-viewer/viewer/prolog-Ce1YjgEP.js +0 -3
- package/dist/graph-viewer/viewer/proto-DGLklcji.js +0 -3
- package/dist/graph-viewer/viewer/pug-CPAFvvT7.js +0 -12
- package/dist/graph-viewer/viewer/puppet-B2qoEJs2.js +0 -3
- package/dist/graph-viewer/viewer/purescript-Cq_6EhvO.js +0 -3
- package/dist/graph-viewer/viewer/python-BgSzeAZt.js +0 -2
- package/dist/graph-viewer/viewer/python-D0AaDoWC.js +0 -3
- package/dist/graph-viewer/viewer/qml-CAJAZclz.js +0 -5
- package/dist/graph-viewer/viewer/qmldir-BSWsNKCW.js +0 -3
- package/dist/graph-viewer/viewer/qss-CT2jsqXX.js +0 -3
- package/dist/graph-viewer/viewer/r-gNt6i8Zf.js +0 -5
- package/dist/graph-viewer/viewer/racket-B0_wXtli.js +0 -3
- package/dist/graph-viewer/viewer/raku-DKDZy5Ck.js +0 -3
- package/dist/graph-viewer/viewer/razor-CmVjd-Dh.js +0 -10
- package/dist/graph-viewer/viewer/rbs-DvNU-OQ_.js +0 -3
- package/dist/graph-viewer/viewer/react-DQ7E2Epi.js +0 -4254
- package/dist/graph-viewer/viewer/react-dom-BEusmvQH.js +0 -143
- package/dist/graph-viewer/viewer/record-DZnT6SWN-H-ul3U3a.js +0 -3523
- package/dist/graph-viewer/viewer/record-W39D5MO-.js +0 -1
- package/dist/graph-viewer/viewer/record-part-CbweyYoV.js +0 -335
- package/dist/graph-viewer/viewer/red-D-VJz2zz.js +0 -154
- package/dist/graph-viewer/viewer/red-DidxQpA-.js +0 -4
- package/dist/graph-viewer/viewer/reg-D6txjqBF.js +0 -3
- package/dist/graph-viewer/viewer/regexp-CJmLSLYE.js +0 -5
- package/dist/graph-viewer/viewer/rel-CY3GbSca.js +0 -3
- package/dist/graph-viewer/viewer/riscv-BKjM5F1V.js +0 -3
- package/dist/graph-viewer/viewer/rolldown-runtime-DArdT4gl.js +0 -23
- package/dist/graph-viewer/viewer/ron-DJgcWJZU.js +0 -3
- package/dist/graph-viewer/viewer/rose-pine-DN0mhTLO.js +0 -4
- package/dist/graph-viewer/viewer/rose-pine-dawn-C7BTe7Qj.js +0 -124
- package/dist/graph-viewer/viewer/rose-pine-dawn-wShSQEG_.js +0 -4
- package/dist/graph-viewer/viewer/rose-pine-moon-CXZ0x-tN.js +0 -4
- package/dist/graph-viewer/viewer/rose-pine-moon-DpdAjsWi.js +0 -124
- package/dist/graph-viewer/viewer/rose-pine-ndHcBYxH.js +0 -124
- package/dist/graph-viewer/viewer/rosmsg-BTByjkSH.js +0 -3
- package/dist/graph-viewer/viewer/rst-BNLuumiw.js +0 -22
- package/dist/graph-viewer/viewer/ruby-BPTDv07s.js +0 -30
- package/dist/graph-viewer/viewer/ruby-Dgthgv0F.js +0 -2
- package/dist/graph-viewer/viewer/rust-DCdaqFaU.js +0 -2
- package/dist/graph-viewer/viewer/rust-Dj2n2rl0.js +0 -3
- package/dist/graph-viewer/viewer/sas-DViflgLe.js +0 -5
- package/dist/graph-viewer/viewer/sass-CL6GLiPQ.js +0 -3
- package/dist/graph-viewer/viewer/scala-D9AnhX7I.js +0 -3
- package/dist/graph-viewer/viewer/scheme-BksZ4zIw.js +0 -3
- package/dist/graph-viewer/viewer/scss-7wpnG0B9.js +0 -2
- package/dist/graph-viewer/viewer/scss-DR3BWwkk.js +0 -6
- package/dist/graph-viewer/viewer/sdbl-CLOIgNSF.js +0 -3
- package/dist/graph-viewer/viewer/segmented-control-Di1mbQlP.js +0 -143
- package/dist/graph-viewer/viewer/shaderlab-BNI6l0C5.js +0 -5
- package/dist/graph-viewer/viewer/shellscript-JaF_7KS2.js +0 -5
- package/dist/graph-viewer/viewer/shellsession-BpXPWCuv.js +0 -5
- package/dist/graph-viewer/viewer/shiki-BfNNlmfZ.js +0 -488
- package/dist/graph-viewer/viewer/slack-dark-BxRxM-DA.js +0 -72
- package/dist/graph-viewer/viewer/slack-dark-eYrSWFNQ.js +0 -4
- package/dist/graph-viewer/viewer/slack-ochin-BkYWF81M.js +0 -95
- package/dist/graph-viewer/viewer/slack-ochin-DnDV13wS.js +0 -4
- package/dist/graph-viewer/viewer/smalltalk-OVt5uEUD.js +0 -3
- package/dist/graph-viewer/viewer/smithy-CseSvY8s.js +0 -3
- package/dist/graph-viewer/viewer/snazzy-light-CY4buyRs.js +0 -4
- package/dist/graph-viewer/viewer/snazzy-light-nzcYE5KK.js +0 -81
- package/dist/graph-viewer/viewer/solarized-dark-CJ28ehED.js +0 -4
- package/dist/graph-viewer/viewer/solarized-dark-CNL-YE5C.js +0 -148
- package/dist/graph-viewer/viewer/solarized-light-CPffzncm.js +0 -4
- package/dist/graph-viewer/viewer/solarized-light-CkLaeXvs.js +0 -148
- package/dist/graph-viewer/viewer/solidity-CGi7NMBq.js +0 -2
- package/dist/graph-viewer/viewer/solidity-CXjfwKeT.js +0 -3
- package/dist/graph-viewer/viewer/soy-BgMg3QC4.js +0 -5
- package/dist/graph-viewer/viewer/sparql-RY7y0-Jf.js +0 -5
- package/dist/graph-viewer/viewer/splunk-MGILMmew.js +0 -3
- package/dist/graph-viewer/viewer/sql-BIIYxsxo.js +0 -5
- package/dist/graph-viewer/viewer/sql-bbpzmmG9.js +0 -2
- package/dist/graph-viewer/viewer/ssh-config-CFmUyPR7.js +0 -3
- package/dist/graph-viewer/viewer/stata-W40nJXFi.js +0 -5
- package/dist/graph-viewer/viewer/status-meta-S0kV_RDp.js +0 -273
- package/dist/graph-viewer/viewer/stream-tokenizer-B5wWaM3U.js +0 -99
- package/dist/graph-viewer/viewer/stylus-Kh83dApl.js +0 -3
- package/dist/graph-viewer/viewer/surrealql-BvdRuViV.js +0 -5
- package/dist/graph-viewer/viewer/svelte-BIpAIvXq.js +0 -14
- package/dist/graph-viewer/viewer/swift-B7Z-rXzN.js +0 -3
- package/dist/graph-viewer/viewer/swift-CITNSfj8.js +0 -2
- package/dist/graph-viewer/viewer/synthwave-84-k9mB1wtO.js +0 -4
- package/dist/graph-viewer/viewer/synthwave-84-kUO_gAph.js +0 -398
- package/dist/graph-viewer/viewer/system-verilog-CQoMYllC.js +0 -3
- package/dist/graph-viewer/viewer/systemd-ArfzIYBi.js +0 -3
- package/dist/graph-viewer/viewer/talonscript-SIE54PtE.js +0 -3
- package/dist/graph-viewer/viewer/tasl-Ck4PO08m.js +0 -3
- package/dist/graph-viewer/viewer/tcl-DfkVwqLO.js +0 -3
- package/dist/graph-viewer/viewer/templ-CcrsYqs3.js +0 -12
- package/dist/graph-viewer/viewer/terraform-DccThf6s.js +0 -3
- package/dist/graph-viewer/viewer/tex-OxWF-6wM.js +0 -6
- package/dist/graph-viewer/viewer/themes-DuRxHiga.js +0 -238
- package/dist/graph-viewer/viewer/tokyo-night-pVep8RHB.js +0 -141
- package/dist/graph-viewer/viewer/tokyo-night-wSZ66vL4.js +0 -4
- package/dist/graph-viewer/viewer/toml-CIQJnU5u.js +0 -3
- package/dist/graph-viewer/viewer/toml-D2vAS7BS.js +0 -2
- package/dist/graph-viewer/viewer/ts-tags-CBuzNYes.js +0 -38
- package/dist/graph-viewer/viewer/tsv-AfvsdcL-.js +0 -3
- package/dist/graph-viewer/viewer/tsx-BjEV2c_V.js +0 -2
- package/dist/graph-viewer/viewer/tsx-utlJ2eBd.js +0 -5
- package/dist/graph-viewer/viewer/turtle-D1NNZBgy.js +0 -3
- package/dist/graph-viewer/viewer/twig-BojFE3iW.js +0 -18
- package/dist/graph-viewer/viewer/typescript-S9qHhxTN.js +0 -5
- package/dist/graph-viewer/viewer/typescript-ekZNylIf.js +0 -2
- package/dist/graph-viewer/viewer/typespec-M_tZhO7D.js +0 -3
- package/dist/graph-viewer/viewer/typst-D2koCOEy.js +0 -120
- package/dist/graph-viewer/viewer/ui-ByOBsvk7.js +0 -5
- package/dist/graph-viewer/viewer/ui-Co03nZUX.js +0 -889
- package/dist/graph-viewer/viewer/ui-CxK41KO5.js +0 -5
- package/dist/graph-viewer/viewer/utils-BuObIC0n.js +0 -1815
- package/dist/graph-viewer/viewer/v-DbYZLS97.js +0 -3
- package/dist/graph-viewer/viewer/vala-i5OYwFuH.js +0 -3
- package/dist/graph-viewer/viewer/vb-DRaXf86R.js +0 -3
- package/dist/graph-viewer/viewer/verilog-Dl3uFuBh.js +0 -3
- package/dist/graph-viewer/viewer/vesper-B2HI-Qu1.js +0 -84
- package/dist/graph-viewer/viewer/vesper-DgN5ShJZ.js +0 -4
- package/dist/graph-viewer/viewer/vhdl-UepOATuw.js +0 -3
- package/dist/graph-viewer/viewer/viml-DgaHry3T.js +0 -3
- package/dist/graph-viewer/viewer/vitesse-black-B09teiUx.js +0 -4
- package/dist/graph-viewer/viewer/vitesse-black-BLUtFdIS.js +0 -184
- package/dist/graph-viewer/viewer/vitesse-dark-CSebpMf5.js +0 -184
- package/dist/graph-viewer/viewer/vitesse-dark-CkA3-NtU.js +0 -4
- package/dist/graph-viewer/viewer/vitesse-light-DECVT8fj.js +0 -4
- package/dist/graph-viewer/viewer/vitesse-light-DJPcjfyV.js +0 -184
- package/dist/graph-viewer/viewer/vue-CiFPO7R5.js +0 -21
- package/dist/graph-viewer/viewer/vue-html-BZL30ZyU.js +0 -5
- package/dist/graph-viewer/viewer/vue-vine-CVQkz-vV.js +0 -18
- package/dist/graph-viewer/viewer/vyper-BiyGiCmH.js +0 -3
- package/dist/graph-viewer/viewer/wasm-BXdtUMGf.js +0 -4
- package/dist/graph-viewer/viewer/wasm-DXa1gtBd.js +0 -3
- package/dist/graph-viewer/viewer/wenyan-Ke6AN0BI.js +0 -3
- package/dist/graph-viewer/viewer/wgsl-Vcm3Lg52.js +0 -3
- package/dist/graph-viewer/viewer/wikitext-C4uDiSA9.js +0 -3
- package/dist/graph-viewer/viewer/wit-hbIPZwZR.js +0 -3
- package/dist/graph-viewer/viewer/wolfram-DGFnG0I5.js +0 -3
- package/dist/graph-viewer/viewer/workbench-E6_5q_oL.js +0 -28351
- package/dist/graph-viewer/viewer/workflows--mZpHYqo.js +0 -3298
- package/dist/graph-viewer/viewer/workspace-cKs9sGEO.js +0 -2468
- package/dist/graph-viewer/viewer/xml-C4j_mOgu.js +0 -6
- package/dist/graph-viewer/viewer/xml-SfvhYhbQ.js +0 -2
- package/dist/graph-viewer/viewer/xsl-CNv6nqtA.js +0 -5
- package/dist/graph-viewer/viewer/yaml-CS1e8wnG.js +0 -5
- package/dist/graph-viewer/viewer/yaml-CudzZ2m4.js +0 -2
- package/dist/graph-viewer/viewer/zenscript-BtXHY1aa.js +0 -3
- package/dist/graph-viewer/viewer/zig-BaU1vZRj.js +0 -3
- package/dist/graph-viewer/workspace-model-BkPl_J8E.js +0 -1541
- package/dist/graph-viewer/workspace-viewer.js +0 -24407
- package/dist/graph-viewer/workspace.js +0 -2
|
@@ -1,3298 +0,0 @@
|
|
|
1
|
-
import { i as e } from "./rolldown-runtime-DArdT4gl.js";
|
|
2
|
-
import { n as t, t as n } from "./jsx-runtime-DPT6sCLq.js";
|
|
3
|
-
import { t as r } from "./createLucideIcon-BSphcoOJ.js";
|
|
4
|
-
import { t as i } from "./bot-BaQU59LG.js";
|
|
5
|
-
import { r as a } from "./status-meta-S0kV_RDp.js";
|
|
6
|
-
import { t as o } from "./git-branch-BzTbIcYL.js";
|
|
7
|
-
import { g as s, s as c, t as l, v as u, w as d } from "./flow-waterfall-model-DvrgPLGS-BdThSFH-.js";
|
|
8
|
-
import { r as f, t as p } from "./model-brand-bTcMjQtB-RSb7EbGB.js";
|
|
9
|
-
//#region node_modules/.pnpm/lucide-react@1.61.0_@types+react@19.3.0_react@19.3.0/node_modules/lucide-react/dist/esm/icons/bell.mjs
|
|
10
|
-
var m = {
|
|
11
|
-
name: "bell",
|
|
12
|
-
size: 24,
|
|
13
|
-
node: [["path", {
|
|
14
|
-
d: "M10.268 21a2 2 0 0 0 3.464 0",
|
|
15
|
-
key: "vwvbt9"
|
|
16
|
-
}], ["path", {
|
|
17
|
-
d: "M3.262 15.326A1 1 0 0 0 4 17h16a1 1 0 0 0 .74-1.673C19.41 13.956 18 12.499 18 8A6 6 0 0 0 6 8c0 4.499-1.411 5.956-2.738 7.326",
|
|
18
|
-
key: "11g9vi"
|
|
19
|
-
}]]
|
|
20
|
-
};
|
|
21
|
-
m.node;
|
|
22
|
-
var h = r(m), g = {
|
|
23
|
-
name: "box",
|
|
24
|
-
size: 24,
|
|
25
|
-
node: [
|
|
26
|
-
["path", {
|
|
27
|
-
d: "M21 8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73l7 4a2 2 0 0 0 2 0l7-4A2 2 0 0 0 21 16Z",
|
|
28
|
-
key: "hh9hay"
|
|
29
|
-
}],
|
|
30
|
-
["path", {
|
|
31
|
-
d: "m3.3 7 8.7 5 8.7-5",
|
|
32
|
-
key: "g66t2b"
|
|
33
|
-
}],
|
|
34
|
-
["path", {
|
|
35
|
-
d: "M12 22V12",
|
|
36
|
-
key: "d0xqtd"
|
|
37
|
-
}]
|
|
38
|
-
]
|
|
39
|
-
};
|
|
40
|
-
g.node;
|
|
41
|
-
var _ = r(g), v = {
|
|
42
|
-
name: "cable",
|
|
43
|
-
size: 24,
|
|
44
|
-
node: [
|
|
45
|
-
["path", {
|
|
46
|
-
d: "M17 19a1 1 0 0 1-1-1v-2a2 2 0 0 1 2-2h2a2 2 0 0 1 2 2v2a1 1 0 0 1-1 1z",
|
|
47
|
-
key: "trhst0"
|
|
48
|
-
}],
|
|
49
|
-
["path", {
|
|
50
|
-
d: "M17 21v-2",
|
|
51
|
-
key: "ds4u3f"
|
|
52
|
-
}],
|
|
53
|
-
["path", {
|
|
54
|
-
d: "M19 14V6.5a1 1 0 0 0-7 0v11a1 1 0 0 1-7 0V10",
|
|
55
|
-
key: "1mo9zo"
|
|
56
|
-
}],
|
|
57
|
-
["path", {
|
|
58
|
-
d: "M21 21v-2",
|
|
59
|
-
key: "eo0ou"
|
|
60
|
-
}],
|
|
61
|
-
["path", {
|
|
62
|
-
d: "M3 5V3",
|
|
63
|
-
key: "1k5hjh"
|
|
64
|
-
}],
|
|
65
|
-
["path", {
|
|
66
|
-
d: "M4 10a2 2 0 0 1-2-2V6a1 1 0 0 1 1-1h4a1 1 0 0 1 1 1v2a2 2 0 0 1-2 2z",
|
|
67
|
-
key: "1dd30t"
|
|
68
|
-
}],
|
|
69
|
-
["path", {
|
|
70
|
-
d: "M7 5V3",
|
|
71
|
-
key: "1t1388"
|
|
72
|
-
}]
|
|
73
|
-
]
|
|
74
|
-
};
|
|
75
|
-
v.node;
|
|
76
|
-
var y = r(v), b = {
|
|
77
|
-
name: "camera",
|
|
78
|
-
size: 24,
|
|
79
|
-
node: [["path", {
|
|
80
|
-
d: "M13.997 4a2 2 0 0 1 1.76 1.05l.486.9A2 2 0 0 0 18.003 7H20a2 2 0 0 1 2 2v9a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2V9a2 2 0 0 1 2-2h1.997a2 2 0 0 0 1.759-1.048l.489-.904A2 2 0 0 1 10.004 4z",
|
|
81
|
-
key: "18u6gg"
|
|
82
|
-
}], ["circle", {
|
|
83
|
-
cx: "12",
|
|
84
|
-
cy: "13",
|
|
85
|
-
r: "3",
|
|
86
|
-
key: "1vg3eu"
|
|
87
|
-
}]]
|
|
88
|
-
};
|
|
89
|
-
b.node;
|
|
90
|
-
var x = r(b), S = {
|
|
91
|
-
name: "circle",
|
|
92
|
-
size: 24,
|
|
93
|
-
node: [["circle", {
|
|
94
|
-
cx: "12",
|
|
95
|
-
cy: "12",
|
|
96
|
-
r: "10",
|
|
97
|
-
key: "1mglay"
|
|
98
|
-
}]]
|
|
99
|
-
};
|
|
100
|
-
S.node;
|
|
101
|
-
var C = r(S), w = {
|
|
102
|
-
name: "clock",
|
|
103
|
-
size: 24,
|
|
104
|
-
node: [["circle", {
|
|
105
|
-
cx: "12",
|
|
106
|
-
cy: "12",
|
|
107
|
-
r: "10",
|
|
108
|
-
key: "1mglay"
|
|
109
|
-
}], ["path", {
|
|
110
|
-
d: "M12 6v6l4 2",
|
|
111
|
-
key: "mmk7yg"
|
|
112
|
-
}]]
|
|
113
|
-
};
|
|
114
|
-
w.node;
|
|
115
|
-
var T = r(w), E = {
|
|
116
|
-
name: "code",
|
|
117
|
-
size: 24,
|
|
118
|
-
node: [["path", {
|
|
119
|
-
d: "m16 18 6-6-6-6",
|
|
120
|
-
key: "eg8j8"
|
|
121
|
-
}], ["path", {
|
|
122
|
-
d: "m8 6-6 6 6 6",
|
|
123
|
-
key: "ppft3o"
|
|
124
|
-
}]]
|
|
125
|
-
};
|
|
126
|
-
E.node;
|
|
127
|
-
var D = r(E), O = {
|
|
128
|
-
name: "repeat",
|
|
129
|
-
size: 24,
|
|
130
|
-
node: [
|
|
131
|
-
["path", {
|
|
132
|
-
d: "m17 2 4 4-4 4",
|
|
133
|
-
key: "nntrym"
|
|
134
|
-
}],
|
|
135
|
-
["path", {
|
|
136
|
-
d: "M3 11v-1a4 4 0 0 1 4-4h14",
|
|
137
|
-
key: "84bu3i"
|
|
138
|
-
}],
|
|
139
|
-
["path", {
|
|
140
|
-
d: "m7 22-4-4 4-4",
|
|
141
|
-
key: "1wqhfi"
|
|
142
|
-
}],
|
|
143
|
-
["path", {
|
|
144
|
-
d: "M21 13v1a4 4 0 0 1-4 4H3",
|
|
145
|
-
key: "1rx37r"
|
|
146
|
-
}]
|
|
147
|
-
]
|
|
148
|
-
};
|
|
149
|
-
O.node;
|
|
150
|
-
var ee = r(O), k = {
|
|
151
|
-
name: "scan-search",
|
|
152
|
-
size: 24,
|
|
153
|
-
node: [
|
|
154
|
-
["path", {
|
|
155
|
-
d: "M3 7V5a2 2 0 0 1 2-2h2",
|
|
156
|
-
key: "aa7l1z"
|
|
157
|
-
}],
|
|
158
|
-
["path", {
|
|
159
|
-
d: "M17 3h2a2 2 0 0 1 2 2v2",
|
|
160
|
-
key: "4qcy5o"
|
|
161
|
-
}],
|
|
162
|
-
["path", {
|
|
163
|
-
d: "M21 17v2a2 2 0 0 1-2 2h-2",
|
|
164
|
-
key: "6vwrx8"
|
|
165
|
-
}],
|
|
166
|
-
["path", {
|
|
167
|
-
d: "M7 21H5a2 2 0 0 1-2-2v-2",
|
|
168
|
-
key: "ioqczr"
|
|
169
|
-
}],
|
|
170
|
-
["circle", {
|
|
171
|
-
cx: "12",
|
|
172
|
-
cy: "12",
|
|
173
|
-
r: "3",
|
|
174
|
-
key: "1v7zrd"
|
|
175
|
-
}],
|
|
176
|
-
["path", {
|
|
177
|
-
d: "m16 16-1.9-1.9",
|
|
178
|
-
key: "1dq9hf"
|
|
179
|
-
}]
|
|
180
|
-
]
|
|
181
|
-
};
|
|
182
|
-
k.node;
|
|
183
|
-
var A = r(k), te = {
|
|
184
|
-
name: "sparkles",
|
|
185
|
-
size: 24,
|
|
186
|
-
node: [
|
|
187
|
-
["path", {
|
|
188
|
-
d: "M11.017 2.814a1 1 0 0 1 1.966 0l1.051 5.558a2 2 0 0 0 1.594 1.594l5.558 1.051a1 1 0 0 1 0 1.966l-5.558 1.051a2 2 0 0 0-1.594 1.594l-1.051 5.558a1 1 0 0 1-1.966 0l-1.051-5.558a2 2 0 0 0-1.594-1.594l-5.558-1.051a1 1 0 0 1 0-1.966l5.558-1.051a2 2 0 0 0 1.594-1.594z",
|
|
189
|
-
key: "1s2grr"
|
|
190
|
-
}],
|
|
191
|
-
["path", {
|
|
192
|
-
d: "M20 2v4",
|
|
193
|
-
key: "1rf3ol"
|
|
194
|
-
}],
|
|
195
|
-
["path", {
|
|
196
|
-
d: "M22 4h-4",
|
|
197
|
-
key: "gwowj6"
|
|
198
|
-
}],
|
|
199
|
-
["circle", {
|
|
200
|
-
cx: "4",
|
|
201
|
-
cy: "20",
|
|
202
|
-
r: "2",
|
|
203
|
-
key: "6kqj1y"
|
|
204
|
-
}]
|
|
205
|
-
],
|
|
206
|
-
aliases: ["stars"]
|
|
207
|
-
};
|
|
208
|
-
te.node;
|
|
209
|
-
var ne = r(te), j = {
|
|
210
|
-
name: "user-check",
|
|
211
|
-
size: 24,
|
|
212
|
-
node: [
|
|
213
|
-
["path", {
|
|
214
|
-
d: "m16 11 2 2 4-4",
|
|
215
|
-
key: "9rsbq5"
|
|
216
|
-
}],
|
|
217
|
-
["path", {
|
|
218
|
-
d: "M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2",
|
|
219
|
-
key: "1yyitq"
|
|
220
|
-
}],
|
|
221
|
-
["circle", {
|
|
222
|
-
cx: "9",
|
|
223
|
-
cy: "7",
|
|
224
|
-
r: "4",
|
|
225
|
-
key: "nufk8"
|
|
226
|
-
}]
|
|
227
|
-
]
|
|
228
|
-
};
|
|
229
|
-
j.node;
|
|
230
|
-
var re = r(j), ie = {
|
|
231
|
-
name: "webhook",
|
|
232
|
-
size: 24,
|
|
233
|
-
node: [
|
|
234
|
-
["path", {
|
|
235
|
-
d: "M18 16.98h-5.99c-1.1 0-1.95.94-2.48 1.9A4 4 0 0 1 2 17c.01-.7.2-1.4.57-2",
|
|
236
|
-
key: "q3hayz"
|
|
237
|
-
}],
|
|
238
|
-
["path", {
|
|
239
|
-
d: "m6 17 3.13-5.78c.53-.97.1-2.18-.5-3.1a4 4 0 1 1 6.89-4.06",
|
|
240
|
-
key: "1go1hn"
|
|
241
|
-
}],
|
|
242
|
-
["path", {
|
|
243
|
-
d: "m12 6 3.13 5.73C15.66 12.7 16.9 13 18 13a4 4 0 0 1 0 8",
|
|
244
|
-
key: "qlwsc0"
|
|
245
|
-
}]
|
|
246
|
-
]
|
|
247
|
-
};
|
|
248
|
-
ie.node;
|
|
249
|
-
var ae = r(ie), oe = {
|
|
250
|
-
name: "wrench",
|
|
251
|
-
size: 24,
|
|
252
|
-
node: [["path", {
|
|
253
|
-
d: "M14.7 6.3a1 1 0 0 0 0 1.4l1.6 1.6a1 1 0 0 0 1.4 0l3.106-3.105c.32-.322.863-.22.983.218a6 6 0 0 1-8.259 7.057l-7.91 7.91a1 1 0 0 1-2.999-3l7.91-7.91a6 6 0 0 1 7.057-8.259c.438.12.54.662.219.984z",
|
|
254
|
-
key: "1ngwbx"
|
|
255
|
-
}]]
|
|
256
|
-
};
|
|
257
|
-
oe.node;
|
|
258
|
-
var se = r(oe), M = {
|
|
259
|
-
name: "zap",
|
|
260
|
-
size: 24,
|
|
261
|
-
node: [["path", {
|
|
262
|
-
d: "M15.914 4a1.5 1.5 0 00-2.474-1.561l-9 9A1.5 1.5 0 005.5 14h4.002a.5.5 0 01.471.666L8.086 20a1.5 1.5 0 002.475 1.56l9-9A1.5 1.5 0 0018.5 10h-3.997a.5.5 0 01-.472-.667z",
|
|
263
|
-
key: "1v7up4"
|
|
264
|
-
}]]
|
|
265
|
-
};
|
|
266
|
-
M.node;
|
|
267
|
-
var N = r(M), P = n(), F = /* @__PURE__ */ e(t(), 1);
|
|
268
|
-
function ce(e) {
|
|
269
|
-
if (!(e === void 0 || !Number.isFinite(e) || e < 0)) return e === 0 ? "$0" : e < .01 ? `$${e.toFixed(4)}` : `$${e.toFixed(2)}`;
|
|
270
|
-
}
|
|
271
|
-
function le(e) {
|
|
272
|
-
if (!(e == null || !Number.isFinite(e) || e < 0)) return e < 1e3 ? `${Math.round(e)} tok` : e < 1e6 ? `${(e / 1e3).toFixed(+(e < 1e4))}k tok` : `${(e / 1e6).toFixed(1)}M tok`;
|
|
273
|
-
}
|
|
274
|
-
function ue(e, t, n = !1) {
|
|
275
|
-
if (e == null || !Number.isFinite(e)) return "—";
|
|
276
|
-
if (n) return new Date(e).toLocaleTimeString([], {
|
|
277
|
-
hour: "2-digit",
|
|
278
|
-
minute: "2-digit",
|
|
279
|
-
hourCycle: "h23"
|
|
280
|
-
});
|
|
281
|
-
let r = Math.max(0, Math.floor((t - e) / 1e3));
|
|
282
|
-
return r < 5 ? "now" : r < 60 ? `${r}s` : r < 3600 ? `${Math.floor(r / 60)}m` : `${Math.floor(r / 3600)}h`;
|
|
283
|
-
}
|
|
284
|
-
var I = /* @__PURE__ */ new Set(), de = Date.now(), fe;
|
|
285
|
-
function L() {
|
|
286
|
-
de = Date.now();
|
|
287
|
-
for (let e of I) e();
|
|
288
|
-
fe = setTimeout(L, 1e3 - Date.now() % 1e3);
|
|
289
|
-
}
|
|
290
|
-
function pe(e) {
|
|
291
|
-
return I.add(e), I.size === 1 && L(), () => {
|
|
292
|
-
I.delete(e), I.size || clearTimeout(fe);
|
|
293
|
-
};
|
|
294
|
-
}
|
|
295
|
-
var R = () => () => {};
|
|
296
|
-
function me(e) {
|
|
297
|
-
let t = (0, F.useSyncExternalStore)(e === void 0 ? pe : R, () => e ?? de, () => e ?? 0);
|
|
298
|
-
return e ?? t;
|
|
299
|
-
}
|
|
300
|
-
var he = () => typeof matchMedia > "u" ? null : matchMedia("(prefers-reduced-motion: reduce)"), ge = (e) => {
|
|
301
|
-
let t = he();
|
|
302
|
-
return t?.addEventListener("change", e), () => t?.removeEventListener("change", e);
|
|
303
|
-
};
|
|
304
|
-
function _e() {
|
|
305
|
-
return (0, F.useSyncExternalStore)(ge, () => he()?.matches === !1, () => !1);
|
|
306
|
-
}
|
|
307
|
-
function ve(e, t) {
|
|
308
|
-
if (typeof document > "u") return 0;
|
|
309
|
-
let n = getComputedStyle(t ?? document.documentElement).getPropertyValue(e).trim();
|
|
310
|
-
return (parseFloat(n) || 0) * (n.endsWith("ms") ? 1 : 1e3);
|
|
311
|
-
}
|
|
312
|
-
var ye = { animation: "tangle-breathe var(--motion-ambient) infinite" };
|
|
313
|
-
function be(e) {
|
|
314
|
-
for (let t of e.currentTarget.getAnimations()) t.animationName === "tangle-breathe" && (t.startTime = 0);
|
|
315
|
-
}
|
|
316
|
-
function xe(e) {
|
|
317
|
-
let t = Number.isFinite(e.lastActivityAt) && Number.isFinite(e.medianEventGapMs) && e.medianEventGapMs >= 0 ? [] : (e.events ?? []).flatMap((e) => e.at != null && Number.isFinite(e.at) ? [e.at] : []).sort((e, t) => e - t), n = Number.isFinite(e.lastActivityAt) ? e.lastActivityAt : t.at(-1), r = t.slice(1).map((e, n) => e - t[n]).sort((e, t) => e - t), i = Math.floor(r.length / 2);
|
|
318
|
-
return {
|
|
319
|
-
lastActivityAt: n,
|
|
320
|
-
medianEventGapMs: Number.isFinite(e.medianEventGapMs) && e.medianEventGapMs >= 0 ? e.medianEventGapMs : r.length ? r.length % 2 ? r[i] : (r[i - 1] + r[i]) / 2 : 0
|
|
321
|
-
};
|
|
322
|
-
}
|
|
323
|
-
function Se(e, t) {
|
|
324
|
-
if (e.status !== "running") return null;
|
|
325
|
-
let { lastActivityAt: n, medianEventGapMs: r } = xe(e);
|
|
326
|
-
if (n == null || !Number.isFinite(n)) return null;
|
|
327
|
-
let { quietMs: i, quiet: a } = s(n, r, t);
|
|
328
|
-
return a ? {
|
|
329
|
-
quietMs: i,
|
|
330
|
-
label: `Quiet ${Math.floor(i / 6e4)}m`
|
|
331
|
-
} : null;
|
|
332
|
-
}
|
|
333
|
-
function Ce(e, t) {
|
|
334
|
-
let n = _e();
|
|
335
|
-
(0, F.useEffect)(() => {
|
|
336
|
-
let r = e.current;
|
|
337
|
-
if (!r || !n || t !== "needs-you" && t !== "failed") return;
|
|
338
|
-
let i = d(t).token, a = ve("--duration-ambient", r) * (t === "needs-you" ? .45 : .3);
|
|
339
|
-
r.dataset.attn = t;
|
|
340
|
-
let o = getComputedStyle(r).boxShadow, s = o === "none" ? "" : `, ${o}`, c = r.animate([{ boxShadow: `0 0 0 0 color-mix(in srgb, var(${i}) 40%, transparent)${s}` }, { boxShadow: `0 0 0 6px transparent${s}` }], {
|
|
341
|
-
duration: a,
|
|
342
|
-
iterations: t === "needs-you" ? 2 : 1,
|
|
343
|
-
easing: getComputedStyle(r).getPropertyValue("--ease-exit").trim() || "ease-out"
|
|
344
|
-
}), l = setTimeout(() => {
|
|
345
|
-
delete r.dataset.attn;
|
|
346
|
-
}, a * (t === "needs-you" ? 2 : 1));
|
|
347
|
-
return () => {
|
|
348
|
-
c.cancel(), clearTimeout(l), delete r.dataset.attn;
|
|
349
|
-
};
|
|
350
|
-
}, [
|
|
351
|
-
e,
|
|
352
|
-
t,
|
|
353
|
-
n
|
|
354
|
-
]);
|
|
355
|
-
}
|
|
356
|
-
function we(e, t = 2, n = 350) {
|
|
357
|
-
return e().catch((r) => {
|
|
358
|
-
if (t <= 0) throw r;
|
|
359
|
-
return new Promise((r, i) => {
|
|
360
|
-
setTimeout(() => we(e, t - 1, n).then(r, i), n);
|
|
361
|
-
});
|
|
362
|
-
});
|
|
363
|
-
}
|
|
364
|
-
var Te = class extends F.Component {
|
|
365
|
-
state = { hasError: !1 };
|
|
366
|
-
static getDerivedStateFromError() {
|
|
367
|
-
return { hasError: !0 };
|
|
368
|
-
}
|
|
369
|
-
render() {
|
|
370
|
-
return this.state.hasError ? this.props.fallback : this.props.children;
|
|
371
|
-
}
|
|
372
|
-
}, Ee;
|
|
373
|
-
function De() {
|
|
374
|
-
return Ee ??= import("./elk.bundled-ZJBRnwyo.js").then((t) => /* @__PURE__ */ e(t.default, 1)).then((e) => {
|
|
375
|
-
let t = e.default;
|
|
376
|
-
return new t();
|
|
377
|
-
}).catch(() => null), Ee;
|
|
378
|
-
}
|
|
379
|
-
var Oe = /* @__PURE__ */ new Set(/* @__PURE__ */ "ai.api.cd.ci.cli.cpu.css.csv.db.dns.gpu.html.http.https.id.io.ip.json.llm.mcp.ml.pr.qa.sdk.sla.sql.ssh.ui.url.uuid.vm.yaml".split("."));
|
|
380
|
-
function ke(e) {
|
|
381
|
-
return e.replace(/[._\-/]+/g, " ").replace(/([a-z0-9])([A-Z])/g, "$1 $2").replace(/([A-Z]+)([A-Z][a-z])/g, "$1 $2").trim().split(/\s+/).filter(Boolean);
|
|
382
|
-
}
|
|
383
|
-
function Ae(e, t = "sentence") {
|
|
384
|
-
let n = ke(e);
|
|
385
|
-
return n.length === 0 ? e : n.map((e, n) => {
|
|
386
|
-
let r = e.toLowerCase();
|
|
387
|
-
if (Oe.has(r)) return r.toUpperCase();
|
|
388
|
-
let i = r.charAt(0).toUpperCase() + r.slice(1);
|
|
389
|
-
return t === "title" ? i : n > 0 || t === "lower" ? r : i;
|
|
390
|
-
}).join(" ");
|
|
391
|
-
}
|
|
392
|
-
function je(e) {
|
|
393
|
-
let t = e.lastIndexOf("/");
|
|
394
|
-
return t === -1 ? e : e.slice(t + 1);
|
|
395
|
-
}
|
|
396
|
-
function Me(e) {
|
|
397
|
-
if (typeof document > "u" || typeof window > "u") return "light";
|
|
398
|
-
let t = window.getComputedStyle(e ?? document.documentElement).colorScheme;
|
|
399
|
-
return t.startsWith("dark") ? "dark" : t.startsWith("light") ? "light" : (e ?? document.documentElement).closest(".dark") ? "dark" : "light";
|
|
400
|
-
}
|
|
401
|
-
function Ne(e, t) {
|
|
402
|
-
let [n, r] = (0, F.useState)(() => Me(null));
|
|
403
|
-
return (0, F.useLayoutEffect)(() => {
|
|
404
|
-
let n = t ? e.current : null, i = () => r(Me(n));
|
|
405
|
-
i();
|
|
406
|
-
let a = new MutationObserver(i);
|
|
407
|
-
for (let e = n ?? document.documentElement; e; e = e.parentElement) a.observe(e, {
|
|
408
|
-
attributes: !0,
|
|
409
|
-
attributeFilter: [
|
|
410
|
-
"class",
|
|
411
|
-
"data-theme",
|
|
412
|
-
"data-sandbox-theme",
|
|
413
|
-
"style"
|
|
414
|
-
]
|
|
415
|
-
});
|
|
416
|
-
return () => a.disconnect();
|
|
417
|
-
}, [e, t]), n;
|
|
418
|
-
}
|
|
419
|
-
var Pe = {
|
|
420
|
-
outline: "1px solid hsl(var(--foreground) / .45)",
|
|
421
|
-
outlineOffset: 2
|
|
422
|
-
}, Fe = "inset 0 1px 0 hsl(var(--foreground) / 0.06), 0 1px 3px hsl(var(--shadow-color) / 0.08)", Ie = "hsl(var(--foreground) / 0.14)";
|
|
423
|
-
function Le(e) {
|
|
424
|
-
return e === "failed" || e === "waiting" ? `var(${d(e === "waiting" ? "needs-you" : "failed").token})` : "color-mix(in srgb, hsl(var(--muted-foreground)) 80%, transparent)";
|
|
425
|
-
}
|
|
426
|
-
//#endregion
|
|
427
|
-
//#region node_modules/.pnpm/@tangle-network+charts@2.0.16_@xyflow+react@12.12.0_@types+react-dom@19.3.0_@types+reac_70059c26b484216dc6013bae841a163d/node_modules/@tangle-network/charts/dist/latest-events-iiWwpIck.js
|
|
428
|
-
var Re = {
|
|
429
|
-
name: "bot",
|
|
430
|
-
size: 24,
|
|
431
|
-
node: [
|
|
432
|
-
["path", {
|
|
433
|
-
d: "M12 8V4H8",
|
|
434
|
-
key: "hb8ula"
|
|
435
|
-
}],
|
|
436
|
-
["rect", {
|
|
437
|
-
width: "16",
|
|
438
|
-
height: "12",
|
|
439
|
-
x: "4",
|
|
440
|
-
y: "8",
|
|
441
|
-
rx: "2",
|
|
442
|
-
key: "enze0r"
|
|
443
|
-
}],
|
|
444
|
-
["path", {
|
|
445
|
-
d: "M2 14h2",
|
|
446
|
-
key: "vft8re"
|
|
447
|
-
}],
|
|
448
|
-
["path", {
|
|
449
|
-
d: "M20 14h2",
|
|
450
|
-
key: "4cs60a"
|
|
451
|
-
}],
|
|
452
|
-
["path", {
|
|
453
|
-
d: "M15 13v2",
|
|
454
|
-
key: "1xurst"
|
|
455
|
-
}],
|
|
456
|
-
["path", {
|
|
457
|
-
d: "M9 13v2",
|
|
458
|
-
key: "rq6x2g"
|
|
459
|
-
}]
|
|
460
|
-
]
|
|
461
|
-
};
|
|
462
|
-
Re.node;
|
|
463
|
-
var ze = c(Re), Be = {
|
|
464
|
-
name: "wrench",
|
|
465
|
-
size: 24,
|
|
466
|
-
node: [["path", {
|
|
467
|
-
d: "M14.7 6.3a1 1 0 0 0 0 1.4l1.6 1.6a1 1 0 0 0 1.4 0l3.106-3.105c.32-.322.863-.22.983.218a6 6 0 0 1-8.259 7.057l-7.91 7.91a1 1 0 0 1-2.999-3l7.91-7.91a6 6 0 0 1 7.057-8.259c.438.12.54.662.219.984z",
|
|
468
|
-
key: "1ngwbx"
|
|
469
|
-
}]]
|
|
470
|
-
};
|
|
471
|
-
Be.node;
|
|
472
|
-
var Ve = c(Be), He = (0, F.createContext)({}), Ue = He.Provider;
|
|
473
|
-
function We({ agent: e, layout: t, size: n }) {
|
|
474
|
-
let { renderAgentMark: r } = (0, F.useContext)(He);
|
|
475
|
-
return e && r ? r(e, t, n) : /* @__PURE__ */ (0, P.jsx)(ze, {
|
|
476
|
-
size: t === "tree" ? n : 16,
|
|
477
|
-
"aria-hidden": !0
|
|
478
|
-
});
|
|
479
|
-
}
|
|
480
|
-
function Ge({ tool: e, label: t, size: n }) {
|
|
481
|
-
let { renderToolMark: r } = (0, F.useContext)(He);
|
|
482
|
-
return r ? r(e, t, n) : /* @__PURE__ */ (0, P.jsx)(Ve, {
|
|
483
|
-
size: n * .4,
|
|
484
|
-
"aria-hidden": !0
|
|
485
|
-
});
|
|
486
|
-
}
|
|
487
|
-
var Ke = {
|
|
488
|
-
width: 240,
|
|
489
|
-
height: 88
|
|
490
|
-
}, qe = {
|
|
491
|
-
width: 296,
|
|
492
|
-
height: 164
|
|
493
|
-
}, Je = 10, Ye = 12, Xe = 56, Ze = 24;
|
|
494
|
-
function Qe(e, t) {
|
|
495
|
-
let n = /* @__PURE__ */ new Set(), r = [];
|
|
496
|
-
for (let t of e) n.has(t.id) || (n.add(t.id), r.push(t.id));
|
|
497
|
-
let i = /* @__PURE__ */ new Set(), a = [], o = /* @__PURE__ */ new Map(), s = /* @__PURE__ */ new Map();
|
|
498
|
-
for (let e of t) {
|
|
499
|
-
if (e.kind !== "spawn" || e.from === e.to || !n.has(e.from) || !n.has(e.to)) continue;
|
|
500
|
-
let t = `${e.from}\u0000${e.to}`;
|
|
501
|
-
i.has(t) || (i.add(t), a.push({
|
|
502
|
-
from: e.from,
|
|
503
|
-
to: e.to
|
|
504
|
-
}), o.set(e.from, [...o.get(e.from) ?? [], e.to]), s.set(e.to, (s.get(e.to) ?? 0) + 1));
|
|
505
|
-
}
|
|
506
|
-
let c = [], l = /* @__PURE__ */ new Map();
|
|
507
|
-
for (let e of r) {
|
|
508
|
-
let t = (o.get(e) ?? []).filter((e) => !o.has(e) && s.get(e) === 1);
|
|
509
|
-
if (t.length < 4) continue;
|
|
510
|
-
let n = `agent-group:${e}`;
|
|
511
|
-
c.push({
|
|
512
|
-
id: n,
|
|
513
|
-
parentId: e,
|
|
514
|
-
memberIds: t
|
|
515
|
-
});
|
|
516
|
-
for (let e of t) l.set(e, n);
|
|
517
|
-
}
|
|
518
|
-
return {
|
|
519
|
-
key: JSON.stringify([r, a.map((e) => [e.from, e.to])]),
|
|
520
|
-
agentIds: r,
|
|
521
|
-
spawns: a,
|
|
522
|
-
groups: c,
|
|
523
|
-
groupOf: l
|
|
524
|
-
};
|
|
525
|
-
}
|
|
526
|
-
function $e(e, t, n, r = !1) {
|
|
527
|
-
if (r) return {
|
|
528
|
-
width: n.width + 24,
|
|
529
|
-
height: 80
|
|
530
|
-
};
|
|
531
|
-
let i = Math.max(1, Math.min(t, e)), a = Math.ceil(e / i);
|
|
532
|
-
return {
|
|
533
|
-
width: i * n.width + (i - 1) * Je + 24,
|
|
534
|
-
height: 80 + a * n.height + (a - 1) * Je + Ye
|
|
535
|
-
};
|
|
536
|
-
}
|
|
537
|
-
function et(e, t, n, r) {
|
|
538
|
-
let i = [], a = new Map(e.groups.map((e) => [e.parentId, e.id]));
|
|
539
|
-
for (let t of e.agentIds) !e.groupOf.has(t) && !a.has(t) && i.push({
|
|
540
|
-
id: t,
|
|
541
|
-
width: n.width,
|
|
542
|
-
height: n.height
|
|
543
|
-
});
|
|
544
|
-
for (let a of e.groups) i.push({
|
|
545
|
-
id: a.id,
|
|
546
|
-
...$e(a.memberIds.length, t, n, r.has(a.id))
|
|
547
|
-
});
|
|
548
|
-
let o = (t) => e.groupOf.get(t) ?? a.get(t) ?? t, s = /* @__PURE__ */ new Set(), c = [];
|
|
549
|
-
for (let t of e.spawns) {
|
|
550
|
-
let e = o(t.from), n = o(t.to), r = `${e}\u0000${n}`;
|
|
551
|
-
e === n || s.has(r) || (s.add(r), c.push({
|
|
552
|
-
from: e,
|
|
553
|
-
to: n
|
|
554
|
-
}));
|
|
555
|
-
}
|
|
556
|
-
return {
|
|
557
|
-
units: i,
|
|
558
|
-
links: c
|
|
559
|
-
};
|
|
560
|
-
}
|
|
561
|
-
async function tt(e, t, n) {
|
|
562
|
-
let r = await De();
|
|
563
|
-
if (!r) return null;
|
|
564
|
-
let i = {
|
|
565
|
-
id: "root",
|
|
566
|
-
layoutOptions: {
|
|
567
|
-
"elk.algorithm": "layered",
|
|
568
|
-
"elk.direction": n === "LR" ? "RIGHT" : "DOWN",
|
|
569
|
-
"elk.layered.considerModelOrder.strategy": "NODES_AND_EDGES",
|
|
570
|
-
"elk.layered.nodePlacement.strategy": "BRANDES_KOEPF",
|
|
571
|
-
"elk.layered.nodePlacement.bk.fixedAlignment": "BALANCED",
|
|
572
|
-
"elk.layered.spacing.nodeNodeBetweenLayers": String(Xe),
|
|
573
|
-
"elk.spacing.nodeNode": String(Ze),
|
|
574
|
-
"elk.spacing.componentComponent": "48",
|
|
575
|
-
"elk.separateConnectedComponents": "true",
|
|
576
|
-
"elk.padding": "[top=0,left=0,bottom=0,right=0]"
|
|
577
|
-
},
|
|
578
|
-
children: e.map((e) => ({
|
|
579
|
-
id: e.id,
|
|
580
|
-
width: e.width,
|
|
581
|
-
height: e.height
|
|
582
|
-
})),
|
|
583
|
-
edges: t.map((e, t) => ({
|
|
584
|
-
id: `e${t}`,
|
|
585
|
-
sources: [e.from],
|
|
586
|
-
targets: [e.to]
|
|
587
|
-
}))
|
|
588
|
-
};
|
|
589
|
-
try {
|
|
590
|
-
let e = await r.layout(i), t = /* @__PURE__ */ new Map();
|
|
591
|
-
for (let n of e.children ?? []) t.set(n.id, {
|
|
592
|
-
x: n.x ?? 0,
|
|
593
|
-
y: n.y ?? 0
|
|
594
|
-
});
|
|
595
|
-
return t;
|
|
596
|
-
} catch {
|
|
597
|
-
return null;
|
|
598
|
-
}
|
|
599
|
-
}
|
|
600
|
-
function nt(e, t, n) {
|
|
601
|
-
let r = /* @__PURE__ */ new Map();
|
|
602
|
-
for (let e of t) r.set(e.to, [...r.get(e.to) ?? [], e.from]);
|
|
603
|
-
let i = /* @__PURE__ */ new Map(), a = (e, t) => {
|
|
604
|
-
let n = i.get(e);
|
|
605
|
-
if (n !== void 0) return n;
|
|
606
|
-
if (t.has(e)) return 0;
|
|
607
|
-
t.add(e);
|
|
608
|
-
let o = Math.max(-1, ...(r.get(e) ?? []).map((e) => a(e, t))) + 1;
|
|
609
|
-
return t.delete(e), i.set(e, o), o;
|
|
610
|
-
}, o = [];
|
|
611
|
-
for (let t of e) (o[a(t.id, /* @__PURE__ */ new Set())] ??= []).push(t);
|
|
612
|
-
let s = (e) => n === "TB" ? e.width : e.height, c = (e) => n === "TB" ? e.height : e.width, l = o.map((e) => e.reduce((e, t) => e + s(t), 0) + (e.length - 1) * Ze), u = Math.max(...l), d = /* @__PURE__ */ new Map(), f = 0;
|
|
613
|
-
return o.forEach((e, t) => {
|
|
614
|
-
let r = (u - l[t]) / 2;
|
|
615
|
-
for (let t of e) d.set(t.id, n === "TB" ? {
|
|
616
|
-
x: r,
|
|
617
|
-
y: f
|
|
618
|
-
} : {
|
|
619
|
-
x: f,
|
|
620
|
-
y: r
|
|
621
|
-
}), r += s(t) + Ze;
|
|
622
|
-
f += Math.max(...e.map(c)) + Xe;
|
|
623
|
-
}), d;
|
|
624
|
-
}
|
|
625
|
-
async function rt(e, t, n, r = Ke, i = /* @__PURE__ */ new Set()) {
|
|
626
|
-
let { units: a, links: o } = et(e, n, r, i), s = await tt(a, o, t) ?? nt(a, o, t), c = /* @__PURE__ */ new Map(), l = [], u = 0, d = 0;
|
|
627
|
-
for (let e of a) {
|
|
628
|
-
let t = s.get(e.id) ?? {
|
|
629
|
-
x: 0,
|
|
630
|
-
y: 0
|
|
631
|
-
};
|
|
632
|
-
u = Math.max(u, t.x + e.width), d = Math.max(d, t.y + e.height), c.set(e.id, t);
|
|
633
|
-
}
|
|
634
|
-
for (let t of e.groups) {
|
|
635
|
-
let e = c.get(t.id) ?? {
|
|
636
|
-
x: 0,
|
|
637
|
-
y: 0
|
|
638
|
-
};
|
|
639
|
-
c.delete(t.id);
|
|
640
|
-
let a = i.has(t.id), o = $e(t.memberIds.length, n, r, a);
|
|
641
|
-
if (l.push({
|
|
642
|
-
group: t,
|
|
643
|
-
...e,
|
|
644
|
-
...o,
|
|
645
|
-
collapsed: a
|
|
646
|
-
}), c.set(t.parentId, {
|
|
647
|
-
x: e.x + Ye,
|
|
648
|
-
y: e.y + 8
|
|
649
|
-
}), a) continue;
|
|
650
|
-
let s = Math.max(1, Math.min(n, t.memberIds.length));
|
|
651
|
-
t.memberIds.forEach((t, n) => {
|
|
652
|
-
c.set(t, {
|
|
653
|
-
x: e.x + Ye + n % s * (r.width + Je),
|
|
654
|
-
y: e.y + 80 + Math.floor(n / s) * (r.height + Je)
|
|
655
|
-
});
|
|
656
|
-
});
|
|
657
|
-
}
|
|
658
|
-
return {
|
|
659
|
-
columns: n,
|
|
660
|
-
positions: c,
|
|
661
|
-
frames: l,
|
|
662
|
-
width: u,
|
|
663
|
-
height: d
|
|
664
|
-
};
|
|
665
|
-
}
|
|
666
|
-
function it({ entry: e, now: t, onSelect: n }) {
|
|
667
|
-
let r = d(e.observed ? e.status : "unknown"), i = ue(e.at, t);
|
|
668
|
-
return /* @__PURE__ */ (0, P.jsx)("li", { children: /* @__PURE__ */ (0, P.jsxs)("button", {
|
|
669
|
-
type: "button",
|
|
670
|
-
disabled: !n,
|
|
671
|
-
onClick: () => n?.(e),
|
|
672
|
-
title: e.name + ": " + e.label,
|
|
673
|
-
children: [
|
|
674
|
-
/* @__PURE__ */ (0, P.jsx)("span", {
|
|
675
|
-
className: "ag-latest-dot",
|
|
676
|
-
style: {
|
|
677
|
-
background: e.observed ? "var(" + r.token + ")" : "transparent",
|
|
678
|
-
border: e.observed ? void 0 : "1.5px solid var(" + r.token + ")"
|
|
679
|
-
},
|
|
680
|
-
"aria-hidden": !0
|
|
681
|
-
}),
|
|
682
|
-
/* @__PURE__ */ (0, P.jsx)("strong", { children: e.name }),
|
|
683
|
-
e.observed && /* @__PURE__ */ (0, P.jsxs)("span", {
|
|
684
|
-
className: "ag-latest-state",
|
|
685
|
-
style: { color: "var(" + r.token + ")" },
|
|
686
|
-
children: [e.status !== "running" && /* @__PURE__ */ (0, P.jsx)(l, {
|
|
687
|
-
status: e.status,
|
|
688
|
-
size: 14,
|
|
689
|
-
"aria-hidden": !0
|
|
690
|
-
}), r.label]
|
|
691
|
-
}),
|
|
692
|
-
/* @__PURE__ */ (0, P.jsx)("span", {
|
|
693
|
-
className: "ag-latest-label",
|
|
694
|
-
children: e.label
|
|
695
|
-
}),
|
|
696
|
-
/* @__PURE__ */ (0, P.jsxs)("time", { children: [
|
|
697
|
-
e.observed ? "Observed " : "",
|
|
698
|
-
i,
|
|
699
|
-
i !== "now" && i !== "—" ? " ago" : ""
|
|
700
|
-
] })
|
|
701
|
-
]
|
|
702
|
-
}) });
|
|
703
|
-
}
|
|
704
|
-
function at({ agents: e, n: t = 5, now: n, live: r = n === void 0, selectedId: i, onSelect: a }) {
|
|
705
|
-
let o = me(n), s = Number.isFinite(t) ? Math.max(1, Math.trunc(t)) : 5, c = (0, F.useMemo)(() => e.flatMap((e) => (e.events ?? []).map((t) => ({
|
|
706
|
-
id: e.id + ":" + t.id,
|
|
707
|
-
agentId: e.id,
|
|
708
|
-
name: e.label,
|
|
709
|
-
label: t.label,
|
|
710
|
-
at: t.at,
|
|
711
|
-
status: e.status
|
|
712
|
-
}))).sort((e, t) => (Number.isFinite(t.at) ? t.at : -Infinity) - (Number.isFinite(e.at) ? e.at : -Infinity) || e.id.localeCompare(t.id)).slice(0, s), [e, s]), [l, u] = (0, F.useState)(c), [f, p] = (0, F.useState)([]), [m, h] = (0, F.useState)(""), [g, _] = (0, F.useState)(!1), [v, y] = (0, F.useState)(!1), b = g || v, x = (0, F.useRef)(c), S = (0, F.useRef)(void 0), C = (0, F.useRef)(void 0), w = (0, F.useRef)(/* @__PURE__ */ new Map());
|
|
713
|
-
x.current = c;
|
|
714
|
-
let T = (0, F.useRef)(new Map(e.map((e) => [e.id, e.status])));
|
|
715
|
-
(0, F.useEffect)(() => {
|
|
716
|
-
let t = e.filter((e) => T.current.has(e.id) && T.current.get(e.id) !== e.status).map((e) => ({
|
|
717
|
-
id: e.id + ":status:" + o,
|
|
718
|
-
agentId: e.id,
|
|
719
|
-
name: e.label,
|
|
720
|
-
status: e.status,
|
|
721
|
-
label: e.result ?? e.turn ?? "Status changed",
|
|
722
|
-
at: o,
|
|
723
|
-
observed: !0
|
|
724
|
-
}));
|
|
725
|
-
if (T.current = new Map(e.map((e) => [e.id, e.status])), !r) {
|
|
726
|
-
p((e) => e.length ? [] : e), w.current.clear(), clearTimeout(C.current), C.current = void 0;
|
|
727
|
-
return;
|
|
728
|
-
}
|
|
729
|
-
let n = new Set(e.map((e) => e.id));
|
|
730
|
-
if (p((e) => {
|
|
731
|
-
let r = [...t, ...e.filter((e) => n.has(e.agentId) && !t.some((t) => t.agentId === e.agentId))].slice(0, s);
|
|
732
|
-
return !t.length && r.length === e.length ? e : r;
|
|
733
|
-
}), t.length) {
|
|
734
|
-
for (let e of t) w.current.set(e.agentId, e.name + ": " + d(e.status).label);
|
|
735
|
-
C.current === void 0 && (C.current = setTimeout(() => {
|
|
736
|
-
h([...w.current.values()].join("; ")), w.current.clear(), C.current = void 0;
|
|
737
|
-
}, ve("--duration-ambient")));
|
|
738
|
-
}
|
|
739
|
-
}, [
|
|
740
|
-
e,
|
|
741
|
-
o,
|
|
742
|
-
s,
|
|
743
|
-
r
|
|
744
|
-
]), (0, F.useEffect)(() => {
|
|
745
|
-
i && p((e) => e.filter((e) => e.agentId !== i));
|
|
746
|
-
}, [i]), (0, F.useEffect)(() => {
|
|
747
|
-
if (b) {
|
|
748
|
-
clearTimeout(S.current), S.current = void 0;
|
|
749
|
-
return;
|
|
750
|
-
}
|
|
751
|
-
S.current === void 0 && (S.current = setTimeout(() => {
|
|
752
|
-
u(x.current), S.current = void 0;
|
|
753
|
-
}, ve("--duration-ambient") / 2));
|
|
754
|
-
}, [c, b]), (0, F.useEffect)(() => () => {
|
|
755
|
-
clearTimeout(S.current), clearTimeout(C.current);
|
|
756
|
-
}, []);
|
|
757
|
-
let E = [...f, ...l.filter((e) => !f.some((t) => t.agentId === e.agentId))].slice(0, s), D = (0, F.useRef)(E);
|
|
758
|
-
(0, F.useLayoutEffect)(() => {
|
|
759
|
-
b || (D.current = E);
|
|
760
|
-
}, [E, b]);
|
|
761
|
-
let O = b ? D.current : E;
|
|
762
|
-
return /* @__PURE__ */ (0, P.jsxs)("section", {
|
|
763
|
-
className: "ag-latest",
|
|
764
|
-
"aria-label": "Latest activity",
|
|
765
|
-
tabIndex: 0,
|
|
766
|
-
onPointerEnter: () => _(!0),
|
|
767
|
-
onPointerLeave: () => _(!1),
|
|
768
|
-
onFocusCapture: () => y(!0),
|
|
769
|
-
onBlurCapture: (e) => {
|
|
770
|
-
e.currentTarget.contains(e.relatedTarget) || y(!1);
|
|
771
|
-
},
|
|
772
|
-
children: [
|
|
773
|
-
/* @__PURE__ */ (0, P.jsxs)("header", { children: [
|
|
774
|
-
/* @__PURE__ */ (0, P.jsx)("strong", { children: "Latest activity" }),
|
|
775
|
-
/* @__PURE__ */ (0, P.jsx)("span", { children: b ? "Paused while reading" : "Recorded events · age" }),
|
|
776
|
-
b && /* @__PURE__ */ (0, P.jsx)("button", {
|
|
777
|
-
type: "button",
|
|
778
|
-
onClick: () => {
|
|
779
|
-
u([...x.current]), D.current = [...f, ...x.current.filter((e) => !f.some((t) => t.agentId === e.agentId))].slice(0, s);
|
|
780
|
-
},
|
|
781
|
-
children: "Show latest"
|
|
782
|
-
})
|
|
783
|
-
] }),
|
|
784
|
-
/* @__PURE__ */ (0, P.jsx)("ol", {
|
|
785
|
-
tabIndex: 0,
|
|
786
|
-
"aria-label": "Recorded activity events",
|
|
787
|
-
children: O.length ? O.map((e) => /* @__PURE__ */ (0, P.jsx)(it, {
|
|
788
|
-
entry: e,
|
|
789
|
-
now: o,
|
|
790
|
-
onSelect: a ? (e) => {
|
|
791
|
-
p((t) => t.filter((t) => t.agentId !== e.agentId)), a(e.agentId);
|
|
792
|
-
} : void 0
|
|
793
|
-
}, e.id)) : /* @__PURE__ */ (0, P.jsx)("li", {
|
|
794
|
-
className: "ag-latest-empty",
|
|
795
|
-
children: "No activity events were reported."
|
|
796
|
-
})
|
|
797
|
-
}),
|
|
798
|
-
/* @__PURE__ */ (0, P.jsx)("span", {
|
|
799
|
-
className: "sr-only",
|
|
800
|
-
role: "status",
|
|
801
|
-
"aria-live": "polite",
|
|
802
|
-
children: m
|
|
803
|
-
})
|
|
804
|
-
]
|
|
805
|
-
});
|
|
806
|
-
}
|
|
807
|
-
//#endregion
|
|
808
|
-
//#region node_modules/.pnpm/@tangle-network+sandbox-ui@2.0.15_b185337ee4bca5ec0279ca525649b58b/node_modules/@tangle-network/sandbox-ui/dist/provider-logo-CPKRPHcS.js
|
|
809
|
-
function ot(e) {
|
|
810
|
-
return e.toLowerCase().replace(/[_\s]+/g, "-").replace(/-(business|oauth|api|app|mail|sms|pack|connector|v\d+)$/g, "");
|
|
811
|
-
}
|
|
812
|
-
var st = "data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2064%2064%22%3E%3Crect%20width%3D%2264%22%20height%3D%2264%22%20rx%3D%2212%22%20fill%3D%22%23ffffff%22%2F%3E%3Ctext%20x%3D%2232%22%20y%3D%2238.5%22%20text-anchor%3D%22middle%22%20textLength%3D%2250%22%20lengthAdjust%3D%22spacingAndGlyphs%22%20font-family%3D%22Inter%2C%20system-ui%2C%20-apple-system%2C%20Segoe%20UI%2C%20sans-serif%22%20font-size%3D%2219%22%20font-weight%3D%22500%22%20fill%3D%22%23533afd%22%3Eph0ny%3C%2Ftext%3E%3C%2Fsvg%3E", ct = {
|
|
813
|
-
gmail: "gmail",
|
|
814
|
-
googlemail: "gmail",
|
|
815
|
-
google: "google",
|
|
816
|
-
"google-drive": "googledrive",
|
|
817
|
-
"google-calendar": "googlecalendar",
|
|
818
|
-
"google-sheets": "googlesheets",
|
|
819
|
-
"google-docs": "googledocs",
|
|
820
|
-
"google-meet": "googlemeet",
|
|
821
|
-
"google-forms": "googleforms",
|
|
822
|
-
"google-ads": "googleads",
|
|
823
|
-
"google-analytics": "googleanalytics",
|
|
824
|
-
outlook: "microsoftoutlook",
|
|
825
|
-
"outlook-mail": "microsoftoutlook",
|
|
826
|
-
"microsoft-outlook": "microsoftoutlook",
|
|
827
|
-
"microsoft-calendar": "microsoftoutlook",
|
|
828
|
-
"microsoft-teams": "microsoftteams",
|
|
829
|
-
teams: "microsoftteams",
|
|
830
|
-
"microsoft-excel": "microsoftexcel",
|
|
831
|
-
excel: "microsoftexcel",
|
|
832
|
-
onedrive: "microsoftonedrive",
|
|
833
|
-
sharepoint: "microsoftsharepoint",
|
|
834
|
-
twitter: "x",
|
|
835
|
-
x: "x",
|
|
836
|
-
meta: "meta",
|
|
837
|
-
"stripe-pack": "stripe",
|
|
838
|
-
"twilio-sms": "twilio",
|
|
839
|
-
webhook: "webhooks",
|
|
840
|
-
webhooks: "webhooks",
|
|
841
|
-
hubspot: "hubspot",
|
|
842
|
-
salesforce: "salesforce",
|
|
843
|
-
pipedrive: "pipedrive",
|
|
844
|
-
zoho: "zoho",
|
|
845
|
-
quickbooks: "quickbooks",
|
|
846
|
-
intercom: "intercom",
|
|
847
|
-
zendesk: "zendesk",
|
|
848
|
-
freshdesk: "freshdesk",
|
|
849
|
-
monday: "mondaydotcom",
|
|
850
|
-
"monday-com": "mondaydotcom",
|
|
851
|
-
clickup: "clickup",
|
|
852
|
-
basecamp: "basecamp",
|
|
853
|
-
todoist: "todoist",
|
|
854
|
-
calendly: "calendly",
|
|
855
|
-
typeform: "typeform",
|
|
856
|
-
surveymonkey: "surveymonkey",
|
|
857
|
-
klaviyo: "klaviyo",
|
|
858
|
-
sendinblue: "brevo",
|
|
859
|
-
brevo: "brevo",
|
|
860
|
-
"constant-contact": "constantcontact",
|
|
861
|
-
"active-campaign": "activecampaign",
|
|
862
|
-
activecampaign: "activecampaign",
|
|
863
|
-
"google-chat": "googlechat",
|
|
864
|
-
whatsapp: "whatsapp",
|
|
865
|
-
telegram: "telegram",
|
|
866
|
-
bigquery: "googlebigquery",
|
|
867
|
-
snowflake: "snowflake",
|
|
868
|
-
postgres: "postgresql",
|
|
869
|
-
postgresql: "postgresql",
|
|
870
|
-
mysql: "mysql",
|
|
871
|
-
mongodb: "mongodb",
|
|
872
|
-
redis: "redis",
|
|
873
|
-
supabase: "supabase",
|
|
874
|
-
firebase: "firebase",
|
|
875
|
-
"aws-s3": "amazons3",
|
|
876
|
-
s3: "amazons3",
|
|
877
|
-
woocommerce: "woocommerce",
|
|
878
|
-
bigcommerce: "bigcommerce",
|
|
879
|
-
squarespace: "squarespace",
|
|
880
|
-
wix: "wix",
|
|
881
|
-
webflow: "webflow",
|
|
882
|
-
wordpress: "wordpress",
|
|
883
|
-
contentful: "contentful",
|
|
884
|
-
sanity: "sanity",
|
|
885
|
-
figma: "figma",
|
|
886
|
-
miro: "miro",
|
|
887
|
-
confluence: "confluence",
|
|
888
|
-
bitbucket: "bitbucket",
|
|
889
|
-
pagerduty: "pagerduty",
|
|
890
|
-
datadog: "datadog",
|
|
891
|
-
sentry: "sentry",
|
|
892
|
-
segment: "segment",
|
|
893
|
-
amplitude: "amplitude",
|
|
894
|
-
mixpanel: "mixpanel",
|
|
895
|
-
posthog: "posthog",
|
|
896
|
-
facebook: "facebook",
|
|
897
|
-
instagram: "instagram",
|
|
898
|
-
tiktok: "tiktok",
|
|
899
|
-
youtube: "youtube",
|
|
900
|
-
reddit: "reddit",
|
|
901
|
-
pinterest: "pinterest",
|
|
902
|
-
buffer: "buffer",
|
|
903
|
-
hootsuite: "hootsuite"
|
|
904
|
-
}, z = "https://cdn.activepieces.com/pieces", lt = {
|
|
905
|
-
adobesign: "https://www.google.com/s2/favicons?sz=64&domain_url=https://www.adobe.com/sign.html",
|
|
906
|
-
"cal-com": `${z}/cal.com.png`,
|
|
907
|
-
"customer-io": `${z}/customerio.png`,
|
|
908
|
-
anthropic: `${z}/claude.png`,
|
|
909
|
-
telegram: `${z}/telegram_bot.png`,
|
|
910
|
-
"twilio-sms": `${z}/twilio.png`,
|
|
911
|
-
"amazon-sqs": `${z}/aws-sqs.png`,
|
|
912
|
-
frame: `${z}/frameio.png`,
|
|
913
|
-
"jira-cloud": `${z}/jira.png`,
|
|
914
|
-
"jira-data-center": `${z}/jira.png`,
|
|
915
|
-
stripe: `${z}/stripe.png`,
|
|
916
|
-
"stripe-pack": `${z}/stripe.png`,
|
|
917
|
-
gemini: `${z}/google-gemini.png`,
|
|
918
|
-
"google-gemini": `${z}/google-gemini.png`,
|
|
919
|
-
bluesky: `${z}/bluesky.png`,
|
|
920
|
-
emailit: `${z}/emailit.svg`,
|
|
921
|
-
cloutly: `${z}/cloutly.svg`,
|
|
922
|
-
gistly: `${z}/gistly.svg`,
|
|
923
|
-
jotform: `${z}/jotform.svg`,
|
|
924
|
-
supadata: `${z}/supadata.svg`,
|
|
925
|
-
"hugging-face": `${z}/huggingface.svg`,
|
|
926
|
-
huggingface: `${z}/huggingface.svg`,
|
|
927
|
-
heygen: `${z}/heygen.jpg`,
|
|
928
|
-
instasent: `${z}/instasent.jpg`,
|
|
929
|
-
"chainalysis-api": `${z}/chainalysis-api.jpg`,
|
|
930
|
-
scrapegraphai: `${z}/scrapegraphai.jpg`,
|
|
931
|
-
localai: `${z}/localai.jpeg`,
|
|
932
|
-
talkable: "https://www.talkable.com/wp-content/uploads/2021/12/talkable-favicon.svg",
|
|
933
|
-
"facebook-leads": `${z}/facebook.png`,
|
|
934
|
-
"facebook-pages": `${z}/facebook.png`,
|
|
935
|
-
"whatsapp-business": `${z}/whatsapp.png`,
|
|
936
|
-
onedrive: `${z}/oneDrive.png`,
|
|
937
|
-
"microsoft-onedrive": `${z}/oneDrive.png`,
|
|
938
|
-
"outlook-mail": `${z}/microsoft-outlook.png`,
|
|
939
|
-
"microsoft-calendar": `${z}/microsoft-outlook.png`,
|
|
940
|
-
"microsoft-outlook-calendar": `${z}/microsoft-outlook.png`,
|
|
941
|
-
sharepoint: `${z}/microsoft-sharepoint.png`,
|
|
942
|
-
"notion-database": `${z}/notion.png`,
|
|
943
|
-
"slack-inbound": `${z}/slack.png`,
|
|
944
|
-
helpscout: `${z}/help-scout.png`,
|
|
945
|
-
figjam: `${z}/figma.png`,
|
|
946
|
-
webhook: `${z}/new-core/webhooks.svg`,
|
|
947
|
-
make: "https://cdn.simpleicons.org/make",
|
|
948
|
-
n8n: "https://cdn.simpleicons.org/n8n",
|
|
949
|
-
zapier: "https://cdn.simpleicons.org/zapier",
|
|
950
|
-
auth0: "https://cdn.simpleicons.org/auth0",
|
|
951
|
-
basecamp: "https://cdn.simpleicons.org/basecamp",
|
|
952
|
-
ebay: "https://cdn.simpleicons.org/ebay",
|
|
953
|
-
gusto: "https://cdn.simpleicons.org/gusto",
|
|
954
|
-
miro: "https://cdn.simpleicons.org/miro",
|
|
955
|
-
sanity: "https://cdn.simpleicons.org/sanity",
|
|
956
|
-
sentry: "https://cdn.simpleicons.org/sentry",
|
|
957
|
-
opsgenie: "https://cdn.simpleicons.org/opsgenie",
|
|
958
|
-
phony: st,
|
|
959
|
-
ph0ny: st,
|
|
960
|
-
docuseal: "https://www.google.com/s2/favicons?sz=64&domain_url=https://docuseal.com",
|
|
961
|
-
braze: "https://www.google.com/s2/favicons?sz=64&domain_url=https://braze.com",
|
|
962
|
-
pipedream: "https://www.google.com/s2/favicons?sz=64&domain_url=https://pipedream.com",
|
|
963
|
-
weaviate: "https://www.google.com/s2/favicons?sz=64&domain_url=https://weaviate.io",
|
|
964
|
-
"adobe-creative-cloud": "https://www.google.com/s2/favicons?sz=64&domain_url=https://adobe.com",
|
|
965
|
-
clio: "https://www.google.com/s2/favicons?sz=64&domain_url=https://clio.com",
|
|
966
|
-
marketo: "https://www.google.com/s2/favicons?sz=64&domain_url=https://marketo.com",
|
|
967
|
-
rippling: "https://www.google.com/s2/favicons?sz=64&domain_url=https://rippling.com",
|
|
968
|
-
"microsoft-graph": "https://www.google.com/s2/favicons?sz=64&domain_url=https://graph.microsoft.com"
|
|
969
|
-
}, ut = {
|
|
970
|
-
slack: "slack",
|
|
971
|
-
salesforce: "salesforce",
|
|
972
|
-
microsoftoutlook: "microsoft-outlook",
|
|
973
|
-
outlook: "microsoft-outlook",
|
|
974
|
-
microsoftteams: "microsoft-teams",
|
|
975
|
-
teams: "microsoft-teams",
|
|
976
|
-
microsoftexcel: "microsoft-excel",
|
|
977
|
-
excel: "microsoft-excel",
|
|
978
|
-
microsoftonedrive: "microsoft-onedrive",
|
|
979
|
-
onedrive: "microsoft-onedrive",
|
|
980
|
-
microsoftsharepoint: "microsoft-sharepoint",
|
|
981
|
-
sharepoint: "microsoft-sharepoint",
|
|
982
|
-
twilio: "twilio",
|
|
983
|
-
linkedin: "linkedin"
|
|
984
|
-
}, dt = /* @__PURE__ */ new Set([
|
|
985
|
-
"email",
|
|
986
|
-
"smtp",
|
|
987
|
-
"imap",
|
|
988
|
-
"webhook",
|
|
989
|
-
"webhooks",
|
|
990
|
-
"http"
|
|
991
|
-
]);
|
|
992
|
-
function ft(e) {
|
|
993
|
-
let t = [];
|
|
994
|
-
e.iconUrl && t.push(e.iconUrl);
|
|
995
|
-
let n = e.id.toLowerCase(), r = ot(n);
|
|
996
|
-
if (dt.has(n) || dt.has(r)) return t;
|
|
997
|
-
let i = ct[n] ?? ct[r], a = ut[n] ?? ut[r] ?? (i ? ut[i] : void 0);
|
|
998
|
-
a && t.push(`https://svgl.app/library/${a}.svg`);
|
|
999
|
-
let o = lt[n] ?? lt[r];
|
|
1000
|
-
o && t.push(o), n && t.push(`${z}/${encodeURIComponent(n)}.png`);
|
|
1001
|
-
let s = /* @__PURE__ */ new Set();
|
|
1002
|
-
i && s.add(i), s.add(r.replace(/-/g, "")), s.add(n.replace(/[-_\s]/g, ""));
|
|
1003
|
-
for (let e of s) e && t.push(`https://cdn.simpleicons.org/${e}`);
|
|
1004
|
-
return t;
|
|
1005
|
-
}
|
|
1006
|
-
function pt(e) {
|
|
1007
|
-
let t = [
|
|
1008
|
-
"#6366f1",
|
|
1009
|
-
"#8b5cf6",
|
|
1010
|
-
"#ec4899",
|
|
1011
|
-
"#f43f5e",
|
|
1012
|
-
"#f97316",
|
|
1013
|
-
"#eab308",
|
|
1014
|
-
"#22c55e",
|
|
1015
|
-
"#14b8a6",
|
|
1016
|
-
"#0ea5e9",
|
|
1017
|
-
"#3b82f6"
|
|
1018
|
-
], n = 0;
|
|
1019
|
-
for (let t = 0; t < e.length; t += 1) n = n * 31 + e.charCodeAt(t) >>> 0;
|
|
1020
|
-
return t[n % t.length];
|
|
1021
|
-
}
|
|
1022
|
-
function mt({ id: e, iconUrl: t, displayName: n, size: r = 24, className: i }) {
|
|
1023
|
-
let a = F.useMemo(() => ft({
|
|
1024
|
-
id: e,
|
|
1025
|
-
iconUrl: t
|
|
1026
|
-
}), [e, t]), [o, s] = F.useState(0), c = `${e} ${t ?? ""}`, [l, u] = F.useState(c);
|
|
1027
|
-
c !== l && (u(c), s(0));
|
|
1028
|
-
let d = (n ?? e).trim().charAt(0).toUpperCase() || "?", f = a[o], p = !t && ot(e) === "github";
|
|
1029
|
-
return f ? /* @__PURE__ */ (0, P.jsx)("img", {
|
|
1030
|
-
src: f,
|
|
1031
|
-
alt: "",
|
|
1032
|
-
width: r,
|
|
1033
|
-
height: r,
|
|
1034
|
-
loading: "lazy",
|
|
1035
|
-
className: `shrink-0 object-contain ${p ? "dark:invert [[data-sandbox-theme='']_&]:invert" : ""} ${i ?? ""}`,
|
|
1036
|
-
style: {
|
|
1037
|
-
width: r,
|
|
1038
|
-
height: r
|
|
1039
|
-
},
|
|
1040
|
-
onError: () => s((e) => e + 1)
|
|
1041
|
-
}) : /* @__PURE__ */ (0, P.jsx)("span", {
|
|
1042
|
-
className: `flex shrink-0 items-center justify-center font-semibold text-white ${i ?? ""}`,
|
|
1043
|
-
style: {
|
|
1044
|
-
width: r,
|
|
1045
|
-
height: r,
|
|
1046
|
-
backgroundColor: pt(e),
|
|
1047
|
-
fontSize: Math.round(r * .42)
|
|
1048
|
-
},
|
|
1049
|
-
"aria-hidden": !0,
|
|
1050
|
-
children: d
|
|
1051
|
-
});
|
|
1052
|
-
}
|
|
1053
|
-
//#endregion
|
|
1054
|
-
//#region node_modules/.pnpm/@tangle-network+charts@2.0.16_@xyflow+react@12.12.0_@types+react-dom@19.3.0_@types+reac_70059c26b484216dc6013bae841a163d/node_modules/@tangle-network/charts/dist/react/agent-graph/index.js
|
|
1055
|
-
var ht = {
|
|
1056
|
-
name: "user",
|
|
1057
|
-
size: 24,
|
|
1058
|
-
node: [["path", {
|
|
1059
|
-
d: "M19 21v-2a4 4 0 0 0-4-4H9a4 4 0 0 0-4 4v2",
|
|
1060
|
-
key: "975kel"
|
|
1061
|
-
}], ["circle", {
|
|
1062
|
-
cx: "12",
|
|
1063
|
-
cy: "7",
|
|
1064
|
-
r: "4",
|
|
1065
|
-
key: "17ys0d"
|
|
1066
|
-
}]]
|
|
1067
|
-
};
|
|
1068
|
-
ht.node;
|
|
1069
|
-
var gt = c(ht), _t = {
|
|
1070
|
-
name: "x",
|
|
1071
|
-
size: 24,
|
|
1072
|
-
node: [["path", {
|
|
1073
|
-
d: "M18 6 6 18",
|
|
1074
|
-
key: "1bl5f8"
|
|
1075
|
-
}], ["path", {
|
|
1076
|
-
d: "m6 6 12 12",
|
|
1077
|
-
key: "d8bk6v"
|
|
1078
|
-
}]]
|
|
1079
|
-
};
|
|
1080
|
-
_t.node;
|
|
1081
|
-
var vt = c(_t), yt = "\n.ag-root { --ag-surface: var(--bg-card); --ag-fg: var(--text-primary); --ag-muted: var(--text-muted); --ag-border: var(--border-default); --ag-accent: var(--brand-primary);\n color: var(--ag-fg); font-size: 12px; line-height: 16px; display: flex; flex-direction: column; gap: 12px; min-width: 0; }\n.ag-root * { box-sizing: border-box; }\n.ag-head, .ag-title, .ag-chip, .ag-legend li, .ag-pop-head, .ag-pop-foot { display: flex; align-items: center; gap: 8px; }\n.ag-head { flex-wrap: wrap; flex-shrink: 0; min-height: 40px; }\n.ag-title, .ag-pop-name { font-weight: 600; font-size: 14px; line-height: 20px; }\n.ag-title-mark { width: 6px; height: 6px; border-radius: var(--radius-pill); background: var(--ag-accent); }\n.ag-chip, .ag-pill { display: inline-flex; align-items: center; gap: 4px; padding: 0 8px; border: 1px solid var(--ag-border); border-radius: var(--radius-pill); font-size: 12px; font-weight: 500; min-height: 24px; background: transparent; color: var(--ag-muted); }\n.ag-chip { cursor: pointer; }\n.ag-chip-needs-you, .ag-pill-needs-you { color: var(--surface-warning-text); }\n.ag-chip-failed, .ag-pill-failed { color: var(--surface-danger-text); }\n.ag-pill-succeeded { color: var(--surface-success-text); }\n.ag-stats { margin-left: auto; display: flex; gap: 12px; flex-wrap: wrap; color: var(--ag-muted); font-variant-numeric: tabular-nums; }\n.ag-stats b, .ag-pop-call b, .ag-pop-foot b { color: var(--ag-fg); font-weight: 500; }\n.ag-canvas-wrap { position: relative; min-height: 0; border: 1px solid var(--ag-border); border-radius: var(--radius-container); background: var(--bg-root); overflow: auto; }\n.ag-canvas { position: absolute; inset: 0 auto auto 0; transform-origin: 0 0; }\n.ag-edges { position: absolute; inset: 0; overflow: visible; }\n.ag-edge { fill: none; stroke: color-mix(in srgb, var(--ag-muted) 80%, transparent); stroke-width: 1.25; }\n.ag-edge-live, .ag-flow { fill: none; stroke-linecap: round; }\n.ag-edge-live { stroke-width: 1.25; }\n.ag-flow { stroke-width: 2; }\n.ag-root g, .ag-node { transition: opacity var(--motion-control); }\n.ag-dimmed .ag-tile { opacity: .45; } .ag-edges .ag-dimmed { opacity: .32; }\n.ag-node { position: absolute; display: flex; flex-direction: column; align-items: center; width: 176px; margin-left: -88px; margin-top: calc(var(--ag-tile) / -2); padding: 0; border: 0; background: none; color: inherit; font: inherit; cursor: pointer; outline: none; }\n.ag-tile { position: relative; display: grid; place-items: center; width: var(--ag-tile); height: var(--ag-tile); flex-shrink: 0; border-radius: var(--radius-card); background: var(--ag-surface); border: 1px solid var(--ag-border); box-shadow: var(--shadow-card); transition: box-shadow var(--motion-control); }\n.ag-node:hover .ag-tile { box-shadow: var(--shadow-dropdown); }\n.ag-model-mark { display: grid; place-items: center; width: 20px; height: 20px; filter: grayscale(1) var(--tw-invert,); color: var(--ag-muted); } .ag-model-mark img, .ag-model-mark svg { max-width: 20px; max-height: 20px; } .ag-node:hover .ag-model-mark { filter: var(--tw-invert, none); } .ag-node:not(:hover) .ag-model-mark svg path { fill: currentColor; }\n.ag-node:focus-visible, .ag-selected .ag-tile, .ag-close:focus-visible, .ag-chip:focus-visible { outline: 2px solid color-mix(in srgb, var(--ag-fg) 70%, transparent); outline-offset: 2px; }\n.ag-node[style*=\"--ag-tone\"] .ag-tile { border: 1.5px solid var(--ag-tone); }\n.ag-node-you .ag-tile { background: var(--ag-fg); color: var(--ag-surface); }\n.ag-name, .ag-sub { max-width: 176px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }\n.ag-name { margin-top: 6px; font-size: 14px; font-weight: 600; line-height: 20px; }\n.ag-sub { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; white-space: normal; }\n.ag-node-tool .ag-name { max-width: 132px; }\n.ag-sub, .ag-node-tool .ag-name { font-size: 12px; font-weight: 400; color: var(--ag-muted); } .ag-canvas .ag-sub { font-size: 13px; line-height: 17px; }\n.ag-badge { position: absolute; top: -5px; right: -5px; display: grid; place-items: center; background: var(--ag-surface); border-radius: var(--radius-pill); box-shadow: 0 0 0 2px var(--ag-surface); }\n.ag-root [data-activity=\"quiet\"] .ag-running-dot { animation: none !important; }\n.ag-running-dot { display: inline-block; flex-shrink: 0; width: 6px; height: 6px; border-radius: var(--radius-pill); background: var(--surface-info-text); animation: tangle-breathe var(--motion-ambient) infinite; }\n.ag-legend { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 16px; color: var(--ag-muted); }\n.ag-legend-line { width: 14px; height: 2px; border-radius: var(--radius-pill); }\n.ag-popover { overflow: auto; position: absolute; z-index: 5; width: min(280px, calc(100% - 16px)); padding: 12px; border-radius: var(--radius-card); background: var(--bg-elevated); color: var(--ag-fg); border: 1px solid var(--ag-border); box-shadow: var(--shadow-overlay); animation: tangle-intro-enter var(--motion-arrive); }\n.ag-tile-mini { border-radius: var(--radius-control); box-shadow: none; }\n.ag-tile-micro { border: 0; border-radius: var(--radius-tag); background: none; box-shadow: none; }\n.ag-pop-title { display: flex; flex-direction: column; min-width: 0; flex: 1; }\n.ag-pop-sub, .ag-pop-call { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--ag-muted); }\n.ag-close { display: grid; place-items: center; width: 28px; height: 28px; border: 0; border-radius: var(--radius-control); background: none; color: var(--ag-muted); cursor: pointer; }\n.ag-close:hover { background: var(--bg-hover); color: var(--ag-fg); }\n.ag-pop-summary { overflow-wrap: anywhere; margin: 8px 0 0; font-size: 14px; line-height: 20px; }\n.ag-pop-calls { list-style: none; margin: 8px 0 0; padding: 8px 0 0; border-top: 1px solid var(--ag-border); display: grid; gap: 6px; }\n.ag-pop-calls li { display: flex; align-items: center; gap: 6px; min-width: 0; }\n.ag-pop-dir, .ag-pop-time { color: var(--ag-muted); flex-shrink: 0; }\n.ag-pop-call { flex: 1; min-width: 0; }\n.ag-pop-time { font-variant-numeric: tabular-nums; display: inline-flex; }\n.ag-pop-foot { margin: 8px 0 0; padding-top: 8px; border-top: 1px solid var(--ag-border); color: var(--ag-muted); }\n.ag-mobile { list-style: none; margin: 0; padding: 8px; display: grid; gap: 12px; }\n.ag-mobile .ag-node { position: relative; left: auto !important; top: auto !important; margin: 0; width: 100%; min-height: 48px; display: grid; grid-template-columns: 32px minmax(0,1fr); text-align: left; column-gap: 12px; }\n.ag-mobile .ag-tile { grid-row: span 2; }\n.ag-mobile .ag-name, .ag-mobile .ag-sub { max-width: 100%; width: 100%; margin: 0; }\n.ag-mobile .ag-sub { display: block; white-space: nowrap; }\n.ag-tools { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0 0 44px; }\n.ag-tools button { color: var(--ag-muted); background: transparent; border: 1px solid var(--ag-border); border-radius: var(--radius-pill); min-height: 28px; padding: 0 8px; font: inherit; cursor: pointer; }\n.ag-available { padding: 8px; border-top: 1px solid var(--ag-border); color: var(--ag-muted); } .ag-available .ag-tools { margin: 8px 0 0; }\n.ag-list-mode .ag-popover { overflow: auto; position: relative; left: auto !important; top: auto !important; width: auto; margin: 8px; }\n@media (prefers-reduced-motion: reduce) { .ag-root *, .ag-root *::before { animation: none !important; transition: opacity var(--duration-fast) !important; } .ag-root .ag-running-dot { animation: tangle-breathe var(--motion-ambient) infinite !important; } }\n", bt = {
|
|
1082
|
-
cellX: 184,
|
|
1083
|
-
cellY: 140,
|
|
1084
|
-
tile: 48,
|
|
1085
|
-
hubTile: 60,
|
|
1086
|
-
label: 34
|
|
1087
|
-
}, xt = (e, t) => `${e},${t}`;
|
|
1088
|
-
function St(e) {
|
|
1089
|
-
let t = [
|
|
1090
|
-
[-1, -1],
|
|
1091
|
-
[1, -1],
|
|
1092
|
-
[-1, 1],
|
|
1093
|
-
[1, 1],
|
|
1094
|
-
[-1, 0],
|
|
1095
|
-
[1, 0],
|
|
1096
|
-
[0, 1],
|
|
1097
|
-
[0, -1]
|
|
1098
|
-
];
|
|
1099
|
-
for (let n = 2; t.length < e; n++) {
|
|
1100
|
-
let e = [];
|
|
1101
|
-
for (let t = -n; t <= n; t++) for (let r = -n; r <= n; r++) Math.max(Math.abs(t), Math.abs(r)) === n && e.push([t, r]);
|
|
1102
|
-
e.sort((e, t) => Math.atan2(e[1], e[0]) - Math.atan2(t[1], t[0])), t.push(...e);
|
|
1103
|
-
}
|
|
1104
|
-
return t.slice(0, e);
|
|
1105
|
-
}
|
|
1106
|
-
function Ct(e, t) {
|
|
1107
|
-
let n = new Set(t.filter((e) => e.kind === "spawn").map((e) => e.to));
|
|
1108
|
-
return (e.find((e) => !n.has(e.id)) ?? e[0])?.id;
|
|
1109
|
-
}
|
|
1110
|
-
function wt(e) {
|
|
1111
|
-
let { nodes: t, edges: n, tools: r, calls: i, you: a } = e, o = Ct(t, n), s = [], c = /* @__PURE__ */ new Set(), l = (e, t, n, r) => {
|
|
1112
|
-
s.push({
|
|
1113
|
-
id: e,
|
|
1114
|
-
kind: t,
|
|
1115
|
-
col: n,
|
|
1116
|
-
row: r
|
|
1117
|
-
}), c.add(xt(n, r));
|
|
1118
|
-
};
|
|
1119
|
-
o && l(o, "hub", 0, 0);
|
|
1120
|
-
let u = t.filter((e) => e.id !== o);
|
|
1121
|
-
St(u.length).forEach(([e, t], n) => l(u[n].id, "agent", e, t));
|
|
1122
|
-
let d = Math.max(1, ...s.map((e) => Math.max(Math.abs(e.col), Math.abs(e.row))));
|
|
1123
|
-
if (a) {
|
|
1124
|
-
let e = -Math.min(d, 1), t = -d - 1;
|
|
1125
|
-
for (; c.has(xt(e, t));) t--;
|
|
1126
|
-
l("you", "you", e, t);
|
|
1127
|
-
}
|
|
1128
|
-
let f = new Map(s.map((e) => [e.id, e])), p = /* @__PURE__ */ new Map();
|
|
1129
|
-
for (let e of i) {
|
|
1130
|
-
let t = r.some((t) => t.id === e.to) ? e.to : r.some((t) => t.id === e.from) ? e.from : void 0, n = t === e.to ? e.from : e.to;
|
|
1131
|
-
t && f.has(n) && !p.has(t) && p.set(t, n);
|
|
1132
|
-
}
|
|
1133
|
-
for (let e of r) {
|
|
1134
|
-
let t = f.get(p.get(e.id) ?? o ?? ""), n = t?.col ?? 0, r = t?.row ?? 0, i = Math.sign(n) || 1, a = Math.sign(r) || 1, u = n === 0 ? [
|
|
1135
|
-
[0, a],
|
|
1136
|
-
[i, a],
|
|
1137
|
-
[-i, a],
|
|
1138
|
-
[i, 0]
|
|
1139
|
-
] : r === 0 ? [
|
|
1140
|
-
[i, 0],
|
|
1141
|
-
[i, -1],
|
|
1142
|
-
[i, 1],
|
|
1143
|
-
[0, -1]
|
|
1144
|
-
] : [
|
|
1145
|
-
[i, 0],
|
|
1146
|
-
[0, a],
|
|
1147
|
-
[i, a],
|
|
1148
|
-
[-i, a],
|
|
1149
|
-
[i, -a]
|
|
1150
|
-
], d;
|
|
1151
|
-
for (let e = 1; !d && e < 6; e++) for (let [t, i] of u) {
|
|
1152
|
-
let a = n + t * e, o = r + i * e;
|
|
1153
|
-
if (!c.has(xt(a, o))) {
|
|
1154
|
-
d = [a, o];
|
|
1155
|
-
break;
|
|
1156
|
-
}
|
|
1157
|
-
}
|
|
1158
|
-
l(e.id, "tool", d[0], d[1]), f.set(e.id, s.at(-1));
|
|
1159
|
-
}
|
|
1160
|
-
let m = [], h = /* @__PURE__ */ new Set(), g = (e, t) => {
|
|
1161
|
-
let n = [e, t].sort().join("|");
|
|
1162
|
-
e !== t && !h.has(n) && c.size && (h.add(n), m.push({
|
|
1163
|
-
from: e,
|
|
1164
|
-
to: t
|
|
1165
|
-
}));
|
|
1166
|
-
};
|
|
1167
|
-
a && o && g("you", o);
|
|
1168
|
-
for (let e of u) {
|
|
1169
|
-
let t = n.find((t) => t.kind === "spawn" && t.to === e.id)?.from;
|
|
1170
|
-
g(t && f.has(t) ? t : o, e.id);
|
|
1171
|
-
}
|
|
1172
|
-
for (let e of i) f.has(e.from) && f.has(e.to) && g(e.from, e.to);
|
|
1173
|
-
return {
|
|
1174
|
-
placements: s,
|
|
1175
|
-
links: m,
|
|
1176
|
-
minCol: Math.min(...s.map((e) => e.col)),
|
|
1177
|
-
maxCol: Math.max(...s.map((e) => e.col)),
|
|
1178
|
-
minRow: Math.min(...s.map((e) => e.row)),
|
|
1179
|
-
maxRow: Math.max(...s.map((e) => e.row))
|
|
1180
|
-
};
|
|
1181
|
-
}
|
|
1182
|
-
function Tt(e, t, n, r = 0, i = 10, a = []) {
|
|
1183
|
-
let o = (e, t) => a.every((n) => e.x === t.x ? e.x <= n.left || e.x >= n.right || Math.max(e.y, t.y) <= n.top || Math.min(e.y, t.y) >= n.bottom : e.y <= n.top || e.y >= n.bottom || Math.max(e.x, t.x) <= n.left || Math.min(e.x, t.x) >= n.right), s = [.../* @__PURE__ */ new Set([
|
|
1184
|
-
e.x + r,
|
|
1185
|
-
(e.x + t.x) / 2,
|
|
1186
|
-
...a.flatMap((e) => [e.left - 8, e.right + 8])
|
|
1187
|
-
])], c = [.../* @__PURE__ */ new Set([
|
|
1188
|
-
e.y + r,
|
|
1189
|
-
(e.y + t.y) / 2,
|
|
1190
|
-
...a.flatMap((e) => [e.top - 8, e.bottom + 8])
|
|
1191
|
-
])], l = [[
|
|
1192
|
-
e,
|
|
1193
|
-
{
|
|
1194
|
-
x: e.x,
|
|
1195
|
-
y: t.y
|
|
1196
|
-
},
|
|
1197
|
-
t
|
|
1198
|
-
], [
|
|
1199
|
-
e,
|
|
1200
|
-
{
|
|
1201
|
-
x: t.x,
|
|
1202
|
-
y: e.y
|
|
1203
|
-
},
|
|
1204
|
-
t
|
|
1205
|
-
]];
|
|
1206
|
-
for (let n of s) l.push([
|
|
1207
|
-
e,
|
|
1208
|
-
{
|
|
1209
|
-
x: n,
|
|
1210
|
-
y: e.y
|
|
1211
|
-
},
|
|
1212
|
-
{
|
|
1213
|
-
x: n,
|
|
1214
|
-
y: t.y
|
|
1215
|
-
},
|
|
1216
|
-
t
|
|
1217
|
-
]);
|
|
1218
|
-
for (let n of c) l.push([
|
|
1219
|
-
e,
|
|
1220
|
-
{
|
|
1221
|
-
x: e.x,
|
|
1222
|
-
y: n
|
|
1223
|
-
},
|
|
1224
|
-
{
|
|
1225
|
-
x: t.x,
|
|
1226
|
-
y: n
|
|
1227
|
-
},
|
|
1228
|
-
t
|
|
1229
|
-
]);
|
|
1230
|
-
for (let n of s) for (let r of c) l.push([
|
|
1231
|
-
e,
|
|
1232
|
-
{
|
|
1233
|
-
x: e.x,
|
|
1234
|
-
y: r
|
|
1235
|
-
},
|
|
1236
|
-
{
|
|
1237
|
-
x: n,
|
|
1238
|
-
y: r
|
|
1239
|
-
},
|
|
1240
|
-
{
|
|
1241
|
-
x: n,
|
|
1242
|
-
y: t.y
|
|
1243
|
-
},
|
|
1244
|
-
t
|
|
1245
|
-
], [
|
|
1246
|
-
e,
|
|
1247
|
-
{
|
|
1248
|
-
x: n,
|
|
1249
|
-
y: e.y
|
|
1250
|
-
},
|
|
1251
|
-
{
|
|
1252
|
-
x: n,
|
|
1253
|
-
y: r
|
|
1254
|
-
},
|
|
1255
|
-
{
|
|
1256
|
-
x: t.x,
|
|
1257
|
-
y: r
|
|
1258
|
-
},
|
|
1259
|
-
t
|
|
1260
|
-
]);
|
|
1261
|
-
let u = l[+!n], d = Infinity;
|
|
1262
|
-
for (let t of l) {
|
|
1263
|
-
let n = t.filter((e, n) => !n || e.x !== t[n - 1].x || e.y !== t[n - 1].y);
|
|
1264
|
-
if (!n.slice(1).every((e, t) => o(n[t], e))) continue;
|
|
1265
|
-
let i = n.slice(1).reduce((e, t, r) => e + Math.abs(t.x - n[r].x) + Math.abs(t.y - n[r].y), 0), a = n.find((e, t) => t && e.y !== n[t - 1].y)?.x ?? e.x, s = i + n.length + (r ? Math.abs(a - e.x - r) : 0);
|
|
1266
|
-
s < d && (d = s, u = n);
|
|
1267
|
-
}
|
|
1268
|
-
u = u.filter((e, t) => !t || t === u.length - 1 || !(u[t - 1].x === e.x && e.x === u[t + 1].x || u[t - 1].y === e.y && e.y === u[t + 1].y));
|
|
1269
|
-
let f = `M${e.x},${e.y}`, p = 0;
|
|
1270
|
-
for (let e = 1; e < u.length; e++) {
|
|
1271
|
-
let t = u[e - 1], n = u[e], r = u[e + 1], a = Math.hypot(n.x - t.x, n.y - t.y);
|
|
1272
|
-
if (p += a, !r) {
|
|
1273
|
-
f += ` L${n.x},${n.y}`;
|
|
1274
|
-
continue;
|
|
1275
|
-
}
|
|
1276
|
-
let o = Math.hypot(r.x - n.x, r.y - n.y), s = Math.min(i, a / 2, o / 2);
|
|
1277
|
-
f += ` L${n.x - Math.sign(n.x - t.x) * s},${n.y - Math.sign(n.y - t.y) * s} Q${n.x},${n.y} ${n.x + Math.sign(r.x - n.x) * s},${n.y + Math.sign(r.y - n.y) * s}`, p -= 2 * s - Math.PI * s / 2;
|
|
1278
|
-
}
|
|
1279
|
-
return {
|
|
1280
|
-
d: f,
|
|
1281
|
-
length: p
|
|
1282
|
-
};
|
|
1283
|
-
}
|
|
1284
|
-
var Et = {
|
|
1285
|
-
call: "var(--brand-primary)",
|
|
1286
|
-
answer: `var(${d("done").token})`,
|
|
1287
|
-
"needs-you": `var(${d("needs-you").token})`,
|
|
1288
|
-
failed: `var(${d("failed").token})`
|
|
1289
|
-
}, Dt = {
|
|
1290
|
-
call: "Call",
|
|
1291
|
-
answer: "Answer",
|
|
1292
|
-
"needs-you": d("needs-you").label,
|
|
1293
|
-
failed: d("failed").label
|
|
1294
|
-
};
|
|
1295
|
-
function Ot({ entity: e, size: t }) {
|
|
1296
|
-
return e.kind === "you" ? /* @__PURE__ */ (0, P.jsx)(gt, {
|
|
1297
|
-
size: t * .42,
|
|
1298
|
-
strokeWidth: 2.2,
|
|
1299
|
-
"aria-hidden": !0
|
|
1300
|
-
}) : e.kind === "tool" ? /* @__PURE__ */ (0, P.jsx)(Ge, {
|
|
1301
|
-
tool: e.tool,
|
|
1302
|
-
label: e.label,
|
|
1303
|
-
size: t
|
|
1304
|
-
}) : /* @__PURE__ */ (0, P.jsx)(We, {
|
|
1305
|
-
agent: e.agent,
|
|
1306
|
-
layout: "hub",
|
|
1307
|
-
size: t
|
|
1308
|
-
});
|
|
1309
|
-
}
|
|
1310
|
-
function kt({ status: e, quiet: t }) {
|
|
1311
|
-
return e ? /* @__PURE__ */ (0, P.jsx)("span", {
|
|
1312
|
-
className: "ag-badge",
|
|
1313
|
-
children: u(e) === "running" ? /* @__PURE__ */ (0, P.jsx)("span", {
|
|
1314
|
-
className: "ag-running-dot",
|
|
1315
|
-
"data-motion": "essential",
|
|
1316
|
-
"aria-label": "Running",
|
|
1317
|
-
style: t ? {
|
|
1318
|
-
animation: "none",
|
|
1319
|
-
background: "var(--ag-muted)"
|
|
1320
|
-
} : ye,
|
|
1321
|
-
onAnimationStart: be
|
|
1322
|
-
}) : /* @__PURE__ */ (0, P.jsx)(l, { status: e })
|
|
1323
|
-
}) : null;
|
|
1324
|
-
}
|
|
1325
|
-
function At({ entity: e, x: t, y: n, tile: r, dimmed: i, selected: a, buttonRef: o, onOpen: s, onHover: c, onKeyDown: l }) {
|
|
1326
|
-
let u = (0, F.useRef)(null);
|
|
1327
|
-
Ce(u, e.status ?? "unknown");
|
|
1328
|
-
let f = e.status === "needs-you" || e.status === "failed" ? `var(${d(e.status).token})` : void 0, p = e.quiet ?? (e.status === "needs-you" ? "Needs you · Respond" : e.status === "waiting" ? e.agent?.turn || "Waiting on peer" : e.status === "failed" ? e.agent?.result ?? e.agent?.turn ?? "Failure cause not recorded" : e.sub ? `${d(e.status ?? "unknown").label} · ${e.sub}` : e.status ? d(e.status).label : void 0);
|
|
1329
|
-
return /* @__PURE__ */ (0, P.jsxs)("button", {
|
|
1330
|
-
ref: (e) => {
|
|
1331
|
-
u.current = e, typeof o == "function" ? o(e) : o && (o.current = e);
|
|
1332
|
-
},
|
|
1333
|
-
type: "button",
|
|
1334
|
-
"data-agent-graph-node": e.id,
|
|
1335
|
-
"data-kind": e.kind,
|
|
1336
|
-
"data-status": e.status,
|
|
1337
|
-
"data-activity": e.quiet ? "quiet" : void 0,
|
|
1338
|
-
"aria-label": `${e.label}${e.sub ? `, ${e.sub}` : ""}${e.status ? `, ${e.status === "needs-you" ? "needs you" : e.status}` : ""}`,
|
|
1339
|
-
"aria-expanded": a,
|
|
1340
|
-
className: `ag-node ag-node-${e.kind}${i ? " ag-dimmed" : ""}${a ? " ag-selected" : ""}`,
|
|
1341
|
-
style: {
|
|
1342
|
-
left: t,
|
|
1343
|
-
top: n,
|
|
1344
|
-
"--ag-tile": `${r}px`,
|
|
1345
|
-
...f ? { "--ag-tone": f } : {}
|
|
1346
|
-
},
|
|
1347
|
-
onClick: s,
|
|
1348
|
-
onPointerEnter: () => c(!0),
|
|
1349
|
-
onPointerLeave: () => c(!1),
|
|
1350
|
-
onFocus: () => c(!0),
|
|
1351
|
-
onBlur: () => c(!1),
|
|
1352
|
-
onKeyDown: l,
|
|
1353
|
-
children: [
|
|
1354
|
-
/* @__PURE__ */ (0, P.jsxs)("span", {
|
|
1355
|
-
className: "ag-tile",
|
|
1356
|
-
children: [/* @__PURE__ */ (0, P.jsx)(Ot, {
|
|
1357
|
-
entity: e,
|
|
1358
|
-
size: r
|
|
1359
|
-
}), /* @__PURE__ */ (0, P.jsx)(kt, {
|
|
1360
|
-
status: e.status,
|
|
1361
|
-
quiet: e.quiet
|
|
1362
|
-
})]
|
|
1363
|
-
}),
|
|
1364
|
-
/* @__PURE__ */ (0, P.jsx)("span", {
|
|
1365
|
-
className: "ag-name",
|
|
1366
|
-
children: e.label
|
|
1367
|
-
}),
|
|
1368
|
-
p && /* @__PURE__ */ (0, P.jsx)("span", {
|
|
1369
|
-
className: "ag-sub",
|
|
1370
|
-
style: f ? { color: f } : void 0,
|
|
1371
|
-
children: e.quiet ? /* @__PURE__ */ (0, P.jsxs)(P.Fragment, { children: [
|
|
1372
|
-
d(e.status ?? "running").label,
|
|
1373
|
-
" · ",
|
|
1374
|
-
/* @__PURE__ */ (0, P.jsx)("span", {
|
|
1375
|
-
style: { color: "var(--surface-warning-text)" },
|
|
1376
|
-
children: p
|
|
1377
|
-
})
|
|
1378
|
-
] }) : p
|
|
1379
|
-
})
|
|
1380
|
-
]
|
|
1381
|
-
});
|
|
1382
|
-
}
|
|
1383
|
-
var jt = (e) => e < 1e3 ? `${Math.round(e / 100) * 100 || Math.round(e)}ms` : `${(e / 1e3).toFixed(+(e < 1e4))}s`;
|
|
1384
|
-
function Mt({ entity: e, entities: t, calls: n, now: r, left: i, top: a, summary: o, closeRef: s, onClose: c }) {
|
|
1385
|
-
let u = (0, F.useRef)(null), [f, p] = (0, F.useState)({
|
|
1386
|
-
left: i,
|
|
1387
|
-
top: a
|
|
1388
|
-
});
|
|
1389
|
-
(0, F.useLayoutEffect)(() => {
|
|
1390
|
-
let e = u.current, t = e?.parentElement;
|
|
1391
|
-
if (!e || !t) return;
|
|
1392
|
-
let n = () => {
|
|
1393
|
-
let n = getComputedStyle(e).position !== "absolute", r = Math.max(0, t.clientHeight - 16), o = Math.min(e.scrollHeight + e.offsetHeight - e.clientHeight, r), s = n ? {
|
|
1394
|
-
left: i,
|
|
1395
|
-
top: a
|
|
1396
|
-
} : {
|
|
1397
|
-
left: Math.max(t.scrollLeft + 8, Math.min(i, t.scrollLeft + t.clientWidth - e.offsetWidth - 8)),
|
|
1398
|
-
top: Math.max(t.scrollTop + 8, Math.min(a, t.scrollTop + t.clientHeight - o - 8)),
|
|
1399
|
-
maxHeight: r
|
|
1400
|
-
};
|
|
1401
|
-
p((e) => e.left === s.left && e.top === s.top && e.maxHeight === s.maxHeight ? e : s);
|
|
1402
|
-
};
|
|
1403
|
-
n();
|
|
1404
|
-
let r = new ResizeObserver(n);
|
|
1405
|
-
return r.observe(e), r.observe(t), () => r.disconnect();
|
|
1406
|
-
}, [i, a]);
|
|
1407
|
-
let m = (n ?? []).filter((t) => (t.from === e.id || t.to === e.id) && t.startedAt <= r).sort((e, t) => t.startedAt - e.startedAt), h = m.slice(0, 5), g = m.filter((e) => r - e.startedAt <= 6e4).length, _ = e.status ? d(e.status).label : void 0, v = e.agent?.costUsd;
|
|
1408
|
-
return /* @__PURE__ */ (0, P.jsxs)("div", {
|
|
1409
|
-
ref: u,
|
|
1410
|
-
role: "dialog",
|
|
1411
|
-
"aria-label": `${e.label} calls`,
|
|
1412
|
-
className: "ag-popover",
|
|
1413
|
-
style: f,
|
|
1414
|
-
onKeyDown: (e) => {
|
|
1415
|
-
e.key === "Escape" && (e.stopPropagation(), c());
|
|
1416
|
-
},
|
|
1417
|
-
children: [
|
|
1418
|
-
/* @__PURE__ */ (0, P.jsxs)("div", {
|
|
1419
|
-
className: "ag-pop-head",
|
|
1420
|
-
children: [
|
|
1421
|
-
/* @__PURE__ */ (0, P.jsx)("span", {
|
|
1422
|
-
className: "ag-tile ag-tile-mini",
|
|
1423
|
-
style: { "--ag-tile": "28px" },
|
|
1424
|
-
children: /* @__PURE__ */ (0, P.jsx)(Ot, {
|
|
1425
|
-
entity: e,
|
|
1426
|
-
size: 28
|
|
1427
|
-
})
|
|
1428
|
-
}),
|
|
1429
|
-
/* @__PURE__ */ (0, P.jsxs)("span", {
|
|
1430
|
-
className: "ag-pop-title",
|
|
1431
|
-
children: [/* @__PURE__ */ (0, P.jsx)("span", {
|
|
1432
|
-
className: "ag-pop-name",
|
|
1433
|
-
children: e.label
|
|
1434
|
-
}), (e.agent?.model || e.sub || e.tool?.detail) && /* @__PURE__ */ (0, P.jsx)("span", {
|
|
1435
|
-
className: "ag-pop-sub",
|
|
1436
|
-
children: e.agent?.model ?? e.tool?.detail ?? e.sub
|
|
1437
|
-
})]
|
|
1438
|
-
}),
|
|
1439
|
-
_ && /* @__PURE__ */ (0, P.jsxs)("span", {
|
|
1440
|
-
className: `ag-pill ag-pill-${e.status}`,
|
|
1441
|
-
children: [e.status === "running" && !e.quiet ? /* @__PURE__ */ (0, P.jsx)("span", {
|
|
1442
|
-
className: "ag-running-dot",
|
|
1443
|
-
"data-motion": "essential",
|
|
1444
|
-
style: ye,
|
|
1445
|
-
onAnimationStart: be
|
|
1446
|
-
}) : /* @__PURE__ */ (0, P.jsx)(l, {
|
|
1447
|
-
status: e.quiet ? "waiting" : e.status,
|
|
1448
|
-
"aria-hidden": !0
|
|
1449
|
-
}), e.quiet ?? _]
|
|
1450
|
-
}),
|
|
1451
|
-
/* @__PURE__ */ (0, P.jsx)("button", {
|
|
1452
|
-
ref: s,
|
|
1453
|
-
type: "button",
|
|
1454
|
-
className: "ag-close",
|
|
1455
|
-
"aria-label": "Close",
|
|
1456
|
-
onClick: c,
|
|
1457
|
-
children: /* @__PURE__ */ (0, P.jsx)(vt, { size: 14 })
|
|
1458
|
-
})
|
|
1459
|
-
]
|
|
1460
|
-
}),
|
|
1461
|
-
o && /* @__PURE__ */ (0, P.jsx)("p", {
|
|
1462
|
-
className: "ag-pop-summary",
|
|
1463
|
-
children: o
|
|
1464
|
-
}),
|
|
1465
|
-
h.length > 0 && /* @__PURE__ */ (0, P.jsx)("ul", {
|
|
1466
|
-
className: "ag-pop-calls",
|
|
1467
|
-
children: h.map((n) => {
|
|
1468
|
-
let r = n.from === e.id, i = t.get(r ? n.to : n.from), a = n.durationMs == null;
|
|
1469
|
-
return /* @__PURE__ */ (0, P.jsxs)("li", { children: [
|
|
1470
|
-
/* @__PURE__ */ (0, P.jsx)("span", {
|
|
1471
|
-
className: "ag-pop-dir",
|
|
1472
|
-
"aria-label": r ? "to" : "from",
|
|
1473
|
-
children: r ? "→" : "←"
|
|
1474
|
-
}),
|
|
1475
|
-
i && /* @__PURE__ */ (0, P.jsx)("span", {
|
|
1476
|
-
className: "ag-tile ag-tile-micro",
|
|
1477
|
-
style: { "--ag-tile": "16px" },
|
|
1478
|
-
children: /* @__PURE__ */ (0, P.jsx)(Ot, {
|
|
1479
|
-
entity: i,
|
|
1480
|
-
size: 16
|
|
1481
|
-
})
|
|
1482
|
-
}),
|
|
1483
|
-
/* @__PURE__ */ (0, P.jsxs)("span", {
|
|
1484
|
-
className: "ag-pop-call",
|
|
1485
|
-
children: [/* @__PURE__ */ (0, P.jsx)("b", { children: i?.label ?? (r ? n.to : n.from) }), n.label ? ` · ${n.label}` : ""]
|
|
1486
|
-
}),
|
|
1487
|
-
/* @__PURE__ */ (0, P.jsx)("span", {
|
|
1488
|
-
className: "ag-pop-time",
|
|
1489
|
-
style: n.kind === "failed" ? { color: Et.failed } : void 0,
|
|
1490
|
-
children: n.kind === "failed" ? "Failed" : a ? /* @__PURE__ */ (0, P.jsx)("span", {
|
|
1491
|
-
className: "ag-running-dot",
|
|
1492
|
-
"data-motion": "essential",
|
|
1493
|
-
"aria-label": "Running",
|
|
1494
|
-
style: ye,
|
|
1495
|
-
onAnimationStart: be
|
|
1496
|
-
}) : jt(n.durationMs)
|
|
1497
|
-
})
|
|
1498
|
-
] }, n.id);
|
|
1499
|
-
})
|
|
1500
|
-
}),
|
|
1501
|
-
/* @__PURE__ */ (0, P.jsxs)("p", {
|
|
1502
|
-
className: "ag-pop-foot",
|
|
1503
|
-
children: [v != null && /* @__PURE__ */ (0, P.jsx)("b", { children: ce(v) }), /* @__PURE__ */ (0, P.jsxs)("span", {
|
|
1504
|
-
title: n === void 0 ? "Call history not reported" : void 0,
|
|
1505
|
-
children: [
|
|
1506
|
-
n === void 0 ? "—" : g,
|
|
1507
|
-
" ",
|
|
1508
|
-
g === 1 ? "call" : "calls",
|
|
1509
|
-
" in the last minute"
|
|
1510
|
-
]
|
|
1511
|
-
})]
|
|
1512
|
-
})
|
|
1513
|
-
]
|
|
1514
|
-
});
|
|
1515
|
-
}
|
|
1516
|
-
var Nt = 84, Pt = 36;
|
|
1517
|
-
function Ft(e) {
|
|
1518
|
-
let [t, n] = (0, F.useState)(0);
|
|
1519
|
-
return (0, F.useLayoutEffect)(() => {
|
|
1520
|
-
let t = e.current;
|
|
1521
|
-
if (!t) return;
|
|
1522
|
-
n(t.clientWidth);
|
|
1523
|
-
let r = new ResizeObserver(([e]) => n(e.contentRect.width));
|
|
1524
|
-
return r.observe(t), () => r.disconnect();
|
|
1525
|
-
}, [e]), t;
|
|
1526
|
-
}
|
|
1527
|
-
function It({ call: e, d: t, length: n, now: r, forward: i, animate: a }) {
|
|
1528
|
-
let o = (0, F.useRef)(null), s = (0, F.useRef)(null), [c, l] = (0, F.useState)(), u = e.durationMs == null ? Infinity : e.startedAt + e.durationMs, d = r >= u;
|
|
1529
|
-
(0, F.useLayoutEffect)(() => {
|
|
1530
|
-
let e = s.current;
|
|
1531
|
-
if (!e) return;
|
|
1532
|
-
let t = e.getTotalLength() / 2, r = e.getPointAtLength(t), a = e.getPointAtLength(t - 1), o = e.getPointAtLength(t + 1), c = ve("--duration-ambient", e);
|
|
1533
|
-
l({
|
|
1534
|
-
x: r.x,
|
|
1535
|
-
y: r.y,
|
|
1536
|
-
angle: Math.atan2(o.y - a.y, o.x - a.x) * 180 / Math.PI + (i === d ? 180 : 0),
|
|
1537
|
-
travel: Math.min(c * .9, Math.max(c * .3, n / 320 * 1e3)),
|
|
1538
|
-
decay: c * 4
|
|
1539
|
-
});
|
|
1540
|
-
}, [
|
|
1541
|
-
t,
|
|
1542
|
-
n,
|
|
1543
|
-
i,
|
|
1544
|
-
d
|
|
1545
|
-
]), (0, F.useEffect)(() => {
|
|
1546
|
-
let t = o.current, s = c?.travel;
|
|
1547
|
-
if (!t || !a || e.kind === "failed" || !s) return;
|
|
1548
|
-
let l = r - (d ? u : e.startedAt);
|
|
1549
|
-
if (l > s) return;
|
|
1550
|
-
let f = i === d, p = t.animate([{
|
|
1551
|
-
strokeDashoffset: f ? -n : 24,
|
|
1552
|
-
opacity: .35
|
|
1553
|
-
}, {
|
|
1554
|
-
strokeDashoffset: f ? 24 : -n,
|
|
1555
|
-
opacity: .35
|
|
1556
|
-
}], {
|
|
1557
|
-
duration: s,
|
|
1558
|
-
easing: "linear"
|
|
1559
|
-
});
|
|
1560
|
-
return p.currentTime = Math.max(0, l), () => p.cancel();
|
|
1561
|
-
}, [
|
|
1562
|
-
e.id,
|
|
1563
|
-
d,
|
|
1564
|
-
a,
|
|
1565
|
-
n,
|
|
1566
|
-
i,
|
|
1567
|
-
c?.travel
|
|
1568
|
-
]);
|
|
1569
|
-
let f = Math.max(0, r - u), p = d ? Math.max(0, .55 * (1 - f / (c?.decay || 1))) : .55;
|
|
1570
|
-
return /* @__PURE__ */ (0, P.jsxs)("g", {
|
|
1571
|
-
"data-call-id": e.id,
|
|
1572
|
-
"data-direction": i === d ? "return" : "forward",
|
|
1573
|
-
style: { stroke: Et[e.kind] },
|
|
1574
|
-
children: [
|
|
1575
|
-
/* @__PURE__ */ (0, P.jsx)("path", {
|
|
1576
|
-
ref: s,
|
|
1577
|
-
d: t,
|
|
1578
|
-
className: "ag-edge-live",
|
|
1579
|
-
opacity: p
|
|
1580
|
-
}),
|
|
1581
|
-
c && /* @__PURE__ */ (0, P.jsx)("path", {
|
|
1582
|
-
"data-call-arrow": !0,
|
|
1583
|
-
opacity: d ? p / .55 : 1,
|
|
1584
|
-
d: "M-3,-3 L1,0 L-3,3",
|
|
1585
|
-
fill: "none",
|
|
1586
|
-
strokeWidth: 1.5,
|
|
1587
|
-
strokeLinecap: "round",
|
|
1588
|
-
strokeLinejoin: "round",
|
|
1589
|
-
transform: `translate(${c.x},${c.y}) rotate(${c.angle})`
|
|
1590
|
-
}),
|
|
1591
|
-
a && /* @__PURE__ */ (0, P.jsx)("path", {
|
|
1592
|
-
ref: o,
|
|
1593
|
-
d: t,
|
|
1594
|
-
className: "ag-flow",
|
|
1595
|
-
strokeDasharray: `24 ${n}`,
|
|
1596
|
-
opacity: 0
|
|
1597
|
-
})
|
|
1598
|
-
]
|
|
1599
|
-
});
|
|
1600
|
-
}
|
|
1601
|
-
function Lt(e) {
|
|
1602
|
-
let { nodes: t, edges: n, tools: r = [], calls: i = [], you: a, now: o, title: s = "Agent graph", selectedId: c, onSelect: u, className: f } = e, p = (0, F.useRef)(null), m = Ft(p), h = me(o), [g, _] = (0, F.useState)(null), [v, y] = (0, F.useState)(c ?? null), b = (0, F.useRef)(/* @__PURE__ */ new Map()), x = (0, F.useRef)(null), S = _e(), C = (0, F.useMemo)(() => i.filter((e) => e.startedAt <= h), [i, h]), w = (0, F.useMemo)(() => wt({
|
|
1603
|
-
nodes: t,
|
|
1604
|
-
edges: n,
|
|
1605
|
-
tools: r,
|
|
1606
|
-
calls: i,
|
|
1607
|
-
you: !!a
|
|
1608
|
-
}), [
|
|
1609
|
-
t,
|
|
1610
|
-
n,
|
|
1611
|
-
r,
|
|
1612
|
-
i,
|
|
1613
|
-
a
|
|
1614
|
-
]), T = JSON.stringify(w), E = (0, F.useRef)({
|
|
1615
|
-
key: T,
|
|
1616
|
-
layout: w
|
|
1617
|
-
});
|
|
1618
|
-
E.current.key !== T && (E.current = {
|
|
1619
|
-
key: T,
|
|
1620
|
-
layout: w
|
|
1621
|
-
});
|
|
1622
|
-
let D = E.current.layout, O = (0, F.useMemo)(() => {
|
|
1623
|
-
let e = {
|
|
1624
|
-
call: /* @__PURE__ */ new Map(),
|
|
1625
|
-
answer: /* @__PURE__ */ new Map(),
|
|
1626
|
-
"needs-you": /* @__PURE__ */ new Map()
|
|
1627
|
-
};
|
|
1628
|
-
for (let t of C) if (t.kind !== "failed") {
|
|
1629
|
-
let n = e[t.kind], r = t.kind === "call" ? t.to : t.from;
|
|
1630
|
-
(!n.has(r) || n.get(r).startedAt < t.startedAt) && n.set(r, t);
|
|
1631
|
-
}
|
|
1632
|
-
return e;
|
|
1633
|
-
}, [C]), ee = (e) => ({
|
|
1634
|
-
w: (D.maxCol - D.minCol) * e.cellX + 168,
|
|
1635
|
-
h: (D.maxRow - D.minRow) * e.cellY + 72 + e.hubTile + e.label
|
|
1636
|
-
}), k = bt, { w: A, h: te } = ee(k), ne = m > 0 && (m < 600 || m / A < .85), j = m ? Math.max(.85, Math.min(1, m / A)) : 1, re = (0, F.useMemo)(() => {
|
|
1637
|
-
let e = /* @__PURE__ */ new Map();
|
|
1638
|
-
for (let n of D.placements) if (n.kind === "you") e.set(n.id, {
|
|
1639
|
-
id: n.id,
|
|
1640
|
-
kind: "you",
|
|
1641
|
-
label: typeof a == "object" && a.label ? a.label : "You"
|
|
1642
|
-
});
|
|
1643
|
-
else if (n.kind === "tool") {
|
|
1644
|
-
let t = r.find((e) => e.id === n.id);
|
|
1645
|
-
e.set(n.id, {
|
|
1646
|
-
id: n.id,
|
|
1647
|
-
kind: "tool",
|
|
1648
|
-
label: t.label,
|
|
1649
|
-
tool: t
|
|
1650
|
-
});
|
|
1651
|
-
} else {
|
|
1652
|
-
let r = t.find((e) => e.id === n.id);
|
|
1653
|
-
e.set(n.id, {
|
|
1654
|
-
id: n.id,
|
|
1655
|
-
kind: n.kind,
|
|
1656
|
-
label: r.label,
|
|
1657
|
-
sub: (r.status === "succeeded" ? r.result ?? O.answer.get(r.id)?.label : void 0) ?? r.turn ?? (r.status === "needs-you" ? O["needs-you"].get(r.id)?.label : void 0) ?? O.call.get(r.id)?.label ?? void 0,
|
|
1658
|
-
status: r.status,
|
|
1659
|
-
quiet: Se(r, h)?.label,
|
|
1660
|
-
agent: r
|
|
1661
|
-
});
|
|
1662
|
-
}
|
|
1663
|
-
return e;
|
|
1664
|
-
}, [
|
|
1665
|
-
D,
|
|
1666
|
-
t,
|
|
1667
|
-
r,
|
|
1668
|
-
a,
|
|
1669
|
-
h,
|
|
1670
|
-
O
|
|
1671
|
-
]), { positions: ie, routes: ae } = (0, F.useMemo)(() => {
|
|
1672
|
-
let e = new Map(D.placements.map((e) => [e.id, {
|
|
1673
|
-
x: (e.col - D.minCol) * k.cellX + Nt,
|
|
1674
|
-
y: (e.row - D.minRow) * k.cellY + Pt + k.hubTile / 2,
|
|
1675
|
-
tile: e.kind === "hub" ? k.hubTile : e.kind === "you" ? k.tile - 8 : k.tile
|
|
1676
|
-
}])), t = D.placements.map((t) => {
|
|
1677
|
-
let { x: n, y: r, tile: i } = e.get(t.id);
|
|
1678
|
-
return {
|
|
1679
|
-
id: t.id,
|
|
1680
|
-
tile: {
|
|
1681
|
-
left: n - i / 2 - 4,
|
|
1682
|
-
right: n + i / 2 + 4,
|
|
1683
|
-
top: r - i / 2 - 4,
|
|
1684
|
-
bottom: r + i / 2 + 4
|
|
1685
|
-
},
|
|
1686
|
-
label: {
|
|
1687
|
-
left: n - (t.kind === "tool" || t.kind === "you" ? 70 : 92),
|
|
1688
|
-
right: n + (t.kind === "tool" || t.kind === "you" ? 70 : 92),
|
|
1689
|
-
top: r + i / 2 + 4,
|
|
1690
|
-
bottom: r + i / 2 + (t.kind === "tool" || t.kind === "you" ? 30 : 64)
|
|
1691
|
-
}
|
|
1692
|
-
};
|
|
1693
|
-
}), n = 0;
|
|
1694
|
-
return {
|
|
1695
|
-
positions: e,
|
|
1696
|
-
routes: new Map(D.links.map((r) => {
|
|
1697
|
-
let i = e.get(r.from), a = e.get(r.to), o = D.placements.find((e) => e.id === r.from)?.kind === "hub" ? (++n % 2 ? -1 : 1) * Math.ceil(n / 2) * 12 : 0;
|
|
1698
|
-
return [`${r.from}|${r.to}`, Tt(i, a, a.y < i.y, o, 10, t.flatMap((e) => [...e.id === r.from || e.id === r.to ? [] : [e.tile], e.label]))];
|
|
1699
|
-
}))
|
|
1700
|
-
};
|
|
1701
|
-
}, [D, k]), oe = (e) => ie.get(e), se = (e, t) => {
|
|
1702
|
-
let n;
|
|
1703
|
-
for (let r of C) (r.from === e && r.to === t || r.from === t && r.to === e) && (!n || r.startedAt > n.startedAt) && (n = r);
|
|
1704
|
-
if (n) return n;
|
|
1705
|
-
}, M = g ?? v, N = (0, F.useMemo)(() => {
|
|
1706
|
-
if (!M) return null;
|
|
1707
|
-
let e = /* @__PURE__ */ new Set([M]);
|
|
1708
|
-
for (let t of D.links) t.from === M && e.add(t.to), t.to === M && e.add(t.from);
|
|
1709
|
-
return e;
|
|
1710
|
-
}, [M, D]), le = r.filter((e) => !C.some((t) => t.from === e.id || t.to === e.id)), ue = C.filter((e) => h - e.startedAt <= 6e4).length, I = t.map((e) => e.costUsd), de = I.every((e) => e != null && Number.isFinite(e) && e >= 0) ? I.reduce((e, t) => e + (t ?? 0), 0) : void 0, fe = t.filter((e) => e.status === "needs-you" || e.status === "failed" || Se(e, h)), L = (e) => {
|
|
1711
|
-
let t = v === e ? null : e;
|
|
1712
|
-
y(t), t && u?.(t);
|
|
1713
|
-
};
|
|
1714
|
-
(0, F.useEffect)(() => {
|
|
1715
|
-
v && (x.current?.closest("[role=\"dialog\"]")?.scrollIntoView({ block: "nearest" }), x.current?.focus({ preventScroll: !0 }));
|
|
1716
|
-
}, [v]);
|
|
1717
|
-
let pe = (e) => (n) => {
|
|
1718
|
-
let r = {
|
|
1719
|
-
ArrowLeft: [-1, 0],
|
|
1720
|
-
ArrowRight: [1, 0],
|
|
1721
|
-
ArrowUp: [0, -1],
|
|
1722
|
-
ArrowDown: [0, 1]
|
|
1723
|
-
}[n.key];
|
|
1724
|
-
if (n.key === "Escape") {
|
|
1725
|
-
y(null), b.current.get(e)?.focus();
|
|
1726
|
-
return;
|
|
1727
|
-
}
|
|
1728
|
-
if (n.key === "Home") {
|
|
1729
|
-
n.preventDefault(), t[0] && b.current.get(t[0].id)?.focus();
|
|
1730
|
-
return;
|
|
1731
|
-
}
|
|
1732
|
-
if (!r) return;
|
|
1733
|
-
n.preventDefault();
|
|
1734
|
-
let i = oe(e), a, o = Infinity;
|
|
1735
|
-
for (let t of D.placements) {
|
|
1736
|
-
if (t.id === e) continue;
|
|
1737
|
-
let n = oe(t.id), s = n.x - i.x, c = n.y - i.y, l = s * r[0] + c * r[1];
|
|
1738
|
-
if (l <= 0) continue;
|
|
1739
|
-
let u = l + Math.abs(s * r[1] - c * r[0]) * 2;
|
|
1740
|
-
u < o && (o = u, a = t.id);
|
|
1741
|
-
}
|
|
1742
|
-
a && b.current.get(a)?.focus();
|
|
1743
|
-
}, R = v ? re.get(v) : void 0, he = R && (() => {
|
|
1744
|
-
let t = oe(R.id), n = (t.x + 140 + 280) * j < (m || A) ? (t.x + 40) * j : Math.max(8, (t.x - 40) * j - 280), r = ne ? 8 : Math.max(8, (t.y - k.hubTile / 2 - 8) * j), i = R.kind === "you" ? typeof a == "object" ? a.summary : void 0 : R.agent?.turn ?? R.sub ?? void 0;
|
|
1745
|
-
return /* @__PURE__ */ (0, P.jsx)(Mt, {
|
|
1746
|
-
entity: R,
|
|
1747
|
-
entities: re,
|
|
1748
|
-
calls: e.calls === void 0 ? void 0 : C,
|
|
1749
|
-
now: h,
|
|
1750
|
-
left: n,
|
|
1751
|
-
top: r,
|
|
1752
|
-
summary: i,
|
|
1753
|
-
closeRef: x,
|
|
1754
|
-
onClose: () => {
|
|
1755
|
-
let e = v;
|
|
1756
|
-
y(null), b.current.get(e)?.focus();
|
|
1757
|
-
}
|
|
1758
|
-
});
|
|
1759
|
-
})();
|
|
1760
|
-
return /* @__PURE__ */ (0, P.jsxs)("section", {
|
|
1761
|
-
className: `ag-root ${f ?? ""}`,
|
|
1762
|
-
"aria-label": typeof s == "string" ? s : "Agent graph",
|
|
1763
|
-
children: [
|
|
1764
|
-
/* @__PURE__ */ (0, P.jsx)("style", { children: yt }),
|
|
1765
|
-
/* @__PURE__ */ (0, P.jsxs)("header", {
|
|
1766
|
-
className: "ag-head",
|
|
1767
|
-
children: [
|
|
1768
|
-
/* @__PURE__ */ (0, P.jsxs)("span", {
|
|
1769
|
-
className: "ag-title",
|
|
1770
|
-
children: [/* @__PURE__ */ (0, P.jsx)("span", {
|
|
1771
|
-
className: "ag-title-mark",
|
|
1772
|
-
"aria-hidden": !0
|
|
1773
|
-
}), s]
|
|
1774
|
-
}),
|
|
1775
|
-
fe.map((e) => /* @__PURE__ */ (0, P.jsxs)("button", {
|
|
1776
|
-
type: "button",
|
|
1777
|
-
className: `ag-chip ag-chip-${e.status}`,
|
|
1778
|
-
onClick: () => L(e.id),
|
|
1779
|
-
children: [
|
|
1780
|
-
/* @__PURE__ */ (0, P.jsx)(l, {
|
|
1781
|
-
status: Se(e, h) ? "waiting" : e.status,
|
|
1782
|
-
"aria-hidden": !0
|
|
1783
|
-
}),
|
|
1784
|
-
e.label,
|
|
1785
|
-
" ",
|
|
1786
|
-
Se(e, h)?.label ?? d(e.status).label
|
|
1787
|
-
]
|
|
1788
|
-
}, e.id)),
|
|
1789
|
-
/* @__PURE__ */ (0, P.jsxs)("span", {
|
|
1790
|
-
className: "ag-stats",
|
|
1791
|
-
children: [
|
|
1792
|
-
/* @__PURE__ */ (0, P.jsxs)("span", { children: [
|
|
1793
|
-
/* @__PURE__ */ (0, P.jsx)("b", { children: t.length }),
|
|
1794
|
-
" ",
|
|
1795
|
-
t.length === 1 ? "agent" : "agents"
|
|
1796
|
-
] }),
|
|
1797
|
-
/* @__PURE__ */ (0, P.jsxs)("span", {
|
|
1798
|
-
title: e.tools === void 0 ? "Tool history not reported" : void 0,
|
|
1799
|
-
children: [
|
|
1800
|
-
/* @__PURE__ */ (0, P.jsx)("b", { children: e.tools?.length ?? "—" }),
|
|
1801
|
-
" ",
|
|
1802
|
-
r.length === 1 ? "tool" : "tools"
|
|
1803
|
-
]
|
|
1804
|
-
}),
|
|
1805
|
-
/* @__PURE__ */ (0, P.jsxs)("span", {
|
|
1806
|
-
title: e.calls === void 0 ? "Call history not reported" : void 0,
|
|
1807
|
-
children: [/* @__PURE__ */ (0, P.jsx)("b", { children: e.calls === void 0 ? "—" : ue }), " calls/min"]
|
|
1808
|
-
}),
|
|
1809
|
-
/* @__PURE__ */ (0, P.jsxs)("span", {
|
|
1810
|
-
title: de === void 0 ? "Not every agent recorded its cost" : "Total recorded agent cost",
|
|
1811
|
-
children: [/* @__PURE__ */ (0, P.jsx)("b", { children: de === void 0 ? "—" : ce(de) }), " cost"]
|
|
1812
|
-
})
|
|
1813
|
-
]
|
|
1814
|
-
})
|
|
1815
|
-
]
|
|
1816
|
-
}),
|
|
1817
|
-
/* @__PURE__ */ (0, P.jsxs)("div", {
|
|
1818
|
-
ref: p,
|
|
1819
|
-
className: `ag-canvas-wrap${ne ? " ag-list-mode" : ""}`,
|
|
1820
|
-
style: ne ? void 0 : { height: te * j },
|
|
1821
|
-
onKeyDown: (e) => {
|
|
1822
|
-
e.key === "Escape" && y(null);
|
|
1823
|
-
},
|
|
1824
|
-
children: [ne ? /* @__PURE__ */ (0, P.jsxs)(P.Fragment, { children: [/* @__PURE__ */ (0, P.jsx)("ul", {
|
|
1825
|
-
className: "ag-mobile",
|
|
1826
|
-
children: [...re.values()].filter((e) => e.agent).sort((e, t) => {
|
|
1827
|
-
let n = (e) => e.status === "needs-you" ? 0 : e.status === "failed" ? 1 : e.quiet ? 2 : e.status === "waiting" ? 3 : e.status === "running" ? 4 : 5;
|
|
1828
|
-
return n(e) - n(t);
|
|
1829
|
-
}).map((e) => /* @__PURE__ */ (0, P.jsxs)("li", { children: [/* @__PURE__ */ (0, P.jsx)(At, {
|
|
1830
|
-
entity: e,
|
|
1831
|
-
x: 0,
|
|
1832
|
-
y: 0,
|
|
1833
|
-
tile: 32,
|
|
1834
|
-
dimmed: !1,
|
|
1835
|
-
selected: v === e.id,
|
|
1836
|
-
buttonRef: (t) => {
|
|
1837
|
-
t ? b.current.set(e.id, t) : b.current.delete(e.id);
|
|
1838
|
-
},
|
|
1839
|
-
onOpen: () => L(e.id),
|
|
1840
|
-
onHover: () => {},
|
|
1841
|
-
onKeyDown: pe(e.id)
|
|
1842
|
-
}), /* @__PURE__ */ (0, P.jsx)("div", {
|
|
1843
|
-
className: "ag-tools",
|
|
1844
|
-
children: r.filter((t) => C.some((n) => n.from === e.id && n.to === t.id || n.to === e.id && n.from === t.id)).map((e) => /* @__PURE__ */ (0, P.jsx)("button", {
|
|
1845
|
-
type: "button",
|
|
1846
|
-
onClick: () => L(e.id),
|
|
1847
|
-
children: e.label
|
|
1848
|
-
}, e.id))
|
|
1849
|
-
})] }, e.id))
|
|
1850
|
-
}), le.length > 0 && /* @__PURE__ */ (0, P.jsxs)("div", {
|
|
1851
|
-
className: "ag-available",
|
|
1852
|
-
children: [/* @__PURE__ */ (0, P.jsx)("span", { children: "Available tools" }), /* @__PURE__ */ (0, P.jsx)("div", {
|
|
1853
|
-
className: "ag-tools",
|
|
1854
|
-
children: le.map((e) => /* @__PURE__ */ (0, P.jsx)("button", {
|
|
1855
|
-
type: "button",
|
|
1856
|
-
onClick: () => L(e.id),
|
|
1857
|
-
children: e.label
|
|
1858
|
-
}, e.id))
|
|
1859
|
-
})]
|
|
1860
|
-
})] }) : /* @__PURE__ */ (0, P.jsxs)("div", {
|
|
1861
|
-
className: "ag-canvas",
|
|
1862
|
-
style: {
|
|
1863
|
-
width: A,
|
|
1864
|
-
height: te,
|
|
1865
|
-
transform: `scale(${j})`
|
|
1866
|
-
},
|
|
1867
|
-
children: [/* @__PURE__ */ (0, P.jsx)("svg", {
|
|
1868
|
-
className: "ag-edges",
|
|
1869
|
-
width: A,
|
|
1870
|
-
height: te,
|
|
1871
|
-
"aria-hidden": !0,
|
|
1872
|
-
children: D.links.map((e) => {
|
|
1873
|
-
let { d: t, length: n } = ae.get(`${e.from}|${e.to}`), r = se(e.from, e.to), i = !N || N.has(e.from) && N.has(e.to), a = !r || r.from === e.from;
|
|
1874
|
-
return /* @__PURE__ */ (0, P.jsxs)("g", {
|
|
1875
|
-
className: i ? void 0 : "ag-dimmed",
|
|
1876
|
-
children: [/* @__PURE__ */ (0, P.jsx)("path", {
|
|
1877
|
-
d: t,
|
|
1878
|
-
className: "ag-edge"
|
|
1879
|
-
}), r && /* @__PURE__ */ (0, P.jsx)(It, {
|
|
1880
|
-
call: r,
|
|
1881
|
-
d: t,
|
|
1882
|
-
length: n,
|
|
1883
|
-
now: h,
|
|
1884
|
-
forward: a,
|
|
1885
|
-
animate: S
|
|
1886
|
-
})]
|
|
1887
|
-
}, `${e.from}-${e.to}`);
|
|
1888
|
-
})
|
|
1889
|
-
}), D.placements.map((e) => {
|
|
1890
|
-
let t = re.get(e.id), { x: n, y: r } = oe(e.id), i = e.kind === "hub" ? k.hubTile : e.kind === "you" ? k.tile - 8 : k.tile;
|
|
1891
|
-
return /* @__PURE__ */ (0, P.jsx)(At, {
|
|
1892
|
-
entity: t,
|
|
1893
|
-
x: n,
|
|
1894
|
-
y: r,
|
|
1895
|
-
tile: i,
|
|
1896
|
-
dimmed: !(!N || N.has(e.id)),
|
|
1897
|
-
selected: v === e.id,
|
|
1898
|
-
buttonRef: (t) => {
|
|
1899
|
-
t ? b.current.set(e.id, t) : b.current.delete(e.id);
|
|
1900
|
-
},
|
|
1901
|
-
onOpen: () => L(e.id),
|
|
1902
|
-
onHover: (t) => _((n) => t ? e.id : n === e.id ? null : n),
|
|
1903
|
-
onKeyDown: pe(e.id)
|
|
1904
|
-
}, e.id);
|
|
1905
|
-
})]
|
|
1906
|
-
}), he]
|
|
1907
|
-
}),
|
|
1908
|
-
!ne && /* @__PURE__ */ (0, P.jsx)("ul", {
|
|
1909
|
-
className: "ag-legend",
|
|
1910
|
-
"aria-label": "Edge colours",
|
|
1911
|
-
children: [
|
|
1912
|
-
"call",
|
|
1913
|
-
"answer",
|
|
1914
|
-
"needs-you",
|
|
1915
|
-
"failed"
|
|
1916
|
-
].map((e) => /* @__PURE__ */ (0, P.jsxs)("li", { children: [/* @__PURE__ */ (0, P.jsx)("span", {
|
|
1917
|
-
className: "ag-legend-line",
|
|
1918
|
-
style: { background: Et[e] }
|
|
1919
|
-
}), Dt[e]] }, e))
|
|
1920
|
-
})
|
|
1921
|
-
]
|
|
1922
|
-
});
|
|
1923
|
-
}
|
|
1924
|
-
function Rt() {
|
|
1925
|
-
return (0, F.lazy)(() => we(() => import("./AgentGraphCanvas-B74GN1o6-BZEumF7-.js").then((e) => ({ default: e.AgentGraphCanvas }))));
|
|
1926
|
-
}
|
|
1927
|
-
function zt({ nodes: e, selectedId: t, onSelect: n, className: r, onRetry: i }) {
|
|
1928
|
-
return /* @__PURE__ */ (0, P.jsxs)("div", {
|
|
1929
|
-
className: `agent-graph overflow-auto rounded-lg border border-border bg-background p-2 ${r ?? ""}`,
|
|
1930
|
-
children: [/* @__PURE__ */ (0, P.jsxs)("div", {
|
|
1931
|
-
className: "mb-1 flex items-center justify-between gap-2",
|
|
1932
|
-
children: [/* @__PURE__ */ (0, P.jsx)("p", {
|
|
1933
|
-
className: "text-muted-foreground text-xs",
|
|
1934
|
-
children: "Couldn't draw the graph — showing the agents."
|
|
1935
|
-
}), /* @__PURE__ */ (0, P.jsx)("button", {
|
|
1936
|
-
type: "button",
|
|
1937
|
-
onClick: i,
|
|
1938
|
-
className: "shrink-0 rounded border border-border px-1.5 py-0.5 text-muted-foreground text-xs transition hover:text-foreground",
|
|
1939
|
-
children: "Retry"
|
|
1940
|
-
})]
|
|
1941
|
-
}), /* @__PURE__ */ (0, P.jsx)("ul", {
|
|
1942
|
-
className: "space-y-0.5",
|
|
1943
|
-
children: e.map((e) => /* @__PURE__ */ (0, P.jsx)("li", { children: /* @__PURE__ */ (0, P.jsxs)("button", {
|
|
1944
|
-
type: "button",
|
|
1945
|
-
"aria-pressed": t === e.id,
|
|
1946
|
-
onClick: () => n?.(e.id),
|
|
1947
|
-
className: "flex w-full items-center justify-between gap-2 rounded px-2 py-1 text-left text-foreground text-xs hover:bg-muted aria-pressed:bg-muted",
|
|
1948
|
-
children: [/* @__PURE__ */ (0, P.jsx)("span", {
|
|
1949
|
-
className: "truncate",
|
|
1950
|
-
children: e.label
|
|
1951
|
-
}), /* @__PURE__ */ (0, P.jsx)("span", {
|
|
1952
|
-
className: "shrink-0 text-muted-foreground",
|
|
1953
|
-
children: e.status
|
|
1954
|
-
})]
|
|
1955
|
-
}) }, e.id))
|
|
1956
|
-
})]
|
|
1957
|
-
});
|
|
1958
|
-
}
|
|
1959
|
-
function Bt(e) {
|
|
1960
|
-
return e.layout === "hub" ? e.nodes.length === 0 && e.emptyState ? /* @__PURE__ */ (0, P.jsx)(P.Fragment, { children: e.emptyState }) : /* @__PURE__ */ (0, P.jsx)(Lt, { ...e }) : /* @__PURE__ */ (0, P.jsx)(Vt, { ...e });
|
|
1961
|
-
}
|
|
1962
|
-
function Vt(e) {
|
|
1963
|
-
let [t, n] = (0, F.useState)(0), r = (0, F.useMemo)(() => Rt(), [t]);
|
|
1964
|
-
return /* @__PURE__ */ (0, P.jsx)(Te, {
|
|
1965
|
-
fallback: /* @__PURE__ */ (0, P.jsx)(zt, {
|
|
1966
|
-
...e,
|
|
1967
|
-
onRetry: () => n((e) => e + 1)
|
|
1968
|
-
}),
|
|
1969
|
-
children: /* @__PURE__ */ (0, P.jsx)(F.Suspense, {
|
|
1970
|
-
fallback: /* @__PURE__ */ (0, P.jsx)("div", {
|
|
1971
|
-
className: `agent-graph flex items-center justify-center rounded-lg border border-border border-dashed text-muted-foreground text-xs ${e.className ?? ""}`,
|
|
1972
|
-
children: "Loading graph…"
|
|
1973
|
-
}),
|
|
1974
|
-
children: /* @__PURE__ */ (0, P.jsx)(r, { ...e })
|
|
1975
|
-
})
|
|
1976
|
-
}, t);
|
|
1977
|
-
}
|
|
1978
|
-
function Ht(e) {
|
|
1979
|
-
return /* @__PURE__ */ (0, P.jsx)(Ue, {
|
|
1980
|
-
value: e,
|
|
1981
|
-
children: /* @__PURE__ */ (0, P.jsx)(Bt, { ...e })
|
|
1982
|
-
});
|
|
1983
|
-
}
|
|
1984
|
-
//#endregion
|
|
1985
|
-
//#region node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/browser/dist/nodes/identity.js
|
|
1986
|
-
var Ut = Symbol.for("yaml.alias"), Wt = Symbol.for("yaml.document"), B = Symbol.for("yaml.map"), Gt = Symbol.for("yaml.pair"), Kt = Symbol.for("yaml.scalar"), qt = Symbol.for("yaml.seq"), V = Symbol.for("yaml.node.type"), Jt = (e) => !!e && typeof e == "object" && e[V] === Ut, Yt = (e) => !!e && typeof e == "object" && e[V] === Wt, Xt = (e) => !!e && typeof e == "object" && e[V] === B, H = (e) => !!e && typeof e == "object" && e[V] === Gt, U = (e) => !!e && typeof e == "object" && e[V] === Kt, Zt = (e) => !!e && typeof e == "object" && e[V] === qt;
|
|
1987
|
-
function W(e) {
|
|
1988
|
-
if (e && typeof e == "object") switch (e[V]) {
|
|
1989
|
-
case B:
|
|
1990
|
-
case qt: return !0;
|
|
1991
|
-
}
|
|
1992
|
-
return !1;
|
|
1993
|
-
}
|
|
1994
|
-
function G(e) {
|
|
1995
|
-
if (e && typeof e == "object") switch (e[V]) {
|
|
1996
|
-
case Ut:
|
|
1997
|
-
case B:
|
|
1998
|
-
case Kt:
|
|
1999
|
-
case qt: return !0;
|
|
2000
|
-
}
|
|
2001
|
-
return !1;
|
|
2002
|
-
}
|
|
2003
|
-
var Qt = (e) => (U(e) || W(e)) && !!e.anchor, K = Symbol("break visit"), $t = Symbol("skip children"), en = Symbol("remove node");
|
|
2004
|
-
function tn(e, t) {
|
|
2005
|
-
let n = nn(t);
|
|
2006
|
-
Yt(e) ? q(null, e.contents, n, Object.freeze([e])) === en && (e.contents = null) : q(null, e, n, Object.freeze([]));
|
|
2007
|
-
}
|
|
2008
|
-
tn.BREAK = K, tn.SKIP = $t, tn.REMOVE = en;
|
|
2009
|
-
function q(e, t, n, r) {
|
|
2010
|
-
let i = rn(e, t, n, r);
|
|
2011
|
-
if (G(i) || H(i)) return an(e, r, i), q(e, i, n, r);
|
|
2012
|
-
if (typeof i != "symbol") {
|
|
2013
|
-
if (W(t)) {
|
|
2014
|
-
r = Object.freeze(r.concat(t));
|
|
2015
|
-
for (let e = 0; e < t.items.length; ++e) {
|
|
2016
|
-
let i = q(e, t.items[e], n, r);
|
|
2017
|
-
if (typeof i == "number") e = i - 1;
|
|
2018
|
-
else if (i === K) return K;
|
|
2019
|
-
else i === en && (t.items.splice(e, 1), --e);
|
|
2020
|
-
}
|
|
2021
|
-
} else if (H(t)) {
|
|
2022
|
-
r = Object.freeze(r.concat(t));
|
|
2023
|
-
let e = q("key", t.key, n, r);
|
|
2024
|
-
if (e === K) return K;
|
|
2025
|
-
e === en && (t.key = null);
|
|
2026
|
-
let i = q("value", t.value, n, r);
|
|
2027
|
-
if (i === K) return K;
|
|
2028
|
-
i === en && (t.value = null);
|
|
2029
|
-
}
|
|
2030
|
-
}
|
|
2031
|
-
return i;
|
|
2032
|
-
}
|
|
2033
|
-
function nn(e) {
|
|
2034
|
-
return typeof e == "object" && (e.Collection || e.Node || e.Value) ? Object.assign({
|
|
2035
|
-
Alias: e.Node,
|
|
2036
|
-
Map: e.Node,
|
|
2037
|
-
Scalar: e.Node,
|
|
2038
|
-
Seq: e.Node
|
|
2039
|
-
}, e.Value && {
|
|
2040
|
-
Map: e.Value,
|
|
2041
|
-
Scalar: e.Value,
|
|
2042
|
-
Seq: e.Value
|
|
2043
|
-
}, e.Collection && {
|
|
2044
|
-
Map: e.Collection,
|
|
2045
|
-
Seq: e.Collection
|
|
2046
|
-
}, e) : e;
|
|
2047
|
-
}
|
|
2048
|
-
function rn(e, t, n, r) {
|
|
2049
|
-
if (typeof n == "function") return n(e, t, r);
|
|
2050
|
-
if (Xt(t)) return n.Map?.(e, t, r);
|
|
2051
|
-
if (Zt(t)) return n.Seq?.(e, t, r);
|
|
2052
|
-
if (H(t)) return n.Pair?.(e, t, r);
|
|
2053
|
-
if (U(t)) return n.Scalar?.(e, t, r);
|
|
2054
|
-
if (Jt(t)) return n.Alias?.(e, t, r);
|
|
2055
|
-
}
|
|
2056
|
-
function an(e, t, n) {
|
|
2057
|
-
let r = t[t.length - 1];
|
|
2058
|
-
if (W(r)) r.items[e] = n;
|
|
2059
|
-
else if (H(r)) e === "key" ? r.key = n : r.value = n;
|
|
2060
|
-
else if (Yt(r)) r.contents = n;
|
|
2061
|
-
else {
|
|
2062
|
-
let e = Jt(r) ? "alias" : "scalar";
|
|
2063
|
-
throw Error(`Cannot replace node with ${e} parent`);
|
|
2064
|
-
}
|
|
2065
|
-
}
|
|
2066
|
-
//#endregion
|
|
2067
|
-
//#region node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/browser/dist/doc/anchors.js
|
|
2068
|
-
function on(e) {
|
|
2069
|
-
if (/[\x00-\x19\s,[\]{}]/.test(e)) {
|
|
2070
|
-
let t = `Anchor must not contain whitespace or control characters: ${JSON.stringify(e)}`;
|
|
2071
|
-
throw Error(t);
|
|
2072
|
-
}
|
|
2073
|
-
return !0;
|
|
2074
|
-
}
|
|
2075
|
-
//#endregion
|
|
2076
|
-
//#region node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/browser/dist/doc/applyReviver.js
|
|
2077
|
-
function sn(e, t, n, r) {
|
|
2078
|
-
if (r && typeof r == "object") {
|
|
2079
|
-
if (Array.isArray(r)) for (let t = 0, n = r.length; t < n; ++t) {
|
|
2080
|
-
let n = r[t], i = sn(e, r, String(t), n);
|
|
2081
|
-
i === void 0 ? delete r[t] : i !== n && (r[t] = i);
|
|
2082
|
-
}
|
|
2083
|
-
else if (r instanceof Map) for (let t of Array.from(r.keys())) {
|
|
2084
|
-
let n = r.get(t), i = sn(e, r, t, n);
|
|
2085
|
-
i === void 0 ? r.delete(t) : i !== n && r.set(t, i);
|
|
2086
|
-
}
|
|
2087
|
-
else if (r instanceof Set) for (let t of Array.from(r)) {
|
|
2088
|
-
let n = sn(e, r, t, t);
|
|
2089
|
-
n === void 0 ? r.delete(t) : n !== t && (r.delete(t), r.add(n));
|
|
2090
|
-
}
|
|
2091
|
-
else for (let [t, n] of Object.entries(r)) {
|
|
2092
|
-
let i = sn(e, r, t, n);
|
|
2093
|
-
i === void 0 ? delete r[t] : i !== n && (r[t] = i);
|
|
2094
|
-
}
|
|
2095
|
-
}
|
|
2096
|
-
return e.call(t, n, r);
|
|
2097
|
-
}
|
|
2098
|
-
//#endregion
|
|
2099
|
-
//#region node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/browser/dist/nodes/toJS.js
|
|
2100
|
-
function J(e, t, n) {
|
|
2101
|
-
if (Array.isArray(e)) return e.map((e, t) => J(e, String(t), n));
|
|
2102
|
-
if (e && typeof e.toJSON == "function") {
|
|
2103
|
-
if (!n || !Qt(e)) return e.toJSON(t, n);
|
|
2104
|
-
let r = {
|
|
2105
|
-
aliasCount: 0,
|
|
2106
|
-
count: 1,
|
|
2107
|
-
res: void 0
|
|
2108
|
-
};
|
|
2109
|
-
n.anchors.set(e, r), n.onCreate = (e) => {
|
|
2110
|
-
r.res = e, delete n.onCreate;
|
|
2111
|
-
};
|
|
2112
|
-
let i = e.toJSON(t, n);
|
|
2113
|
-
return n.onCreate && n.onCreate(i), i;
|
|
2114
|
-
}
|
|
2115
|
-
return typeof e == "bigint" && !n?.keep ? Number(e) : e;
|
|
2116
|
-
}
|
|
2117
|
-
//#endregion
|
|
2118
|
-
//#region node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/browser/dist/nodes/Node.js
|
|
2119
|
-
var cn = class {
|
|
2120
|
-
constructor(e) {
|
|
2121
|
-
Object.defineProperty(this, V, { value: e });
|
|
2122
|
-
}
|
|
2123
|
-
clone() {
|
|
2124
|
-
let e = Object.create(Object.getPrototypeOf(this), Object.getOwnPropertyDescriptors(this));
|
|
2125
|
-
return this.range && (e.range = this.range.slice()), e;
|
|
2126
|
-
}
|
|
2127
|
-
toJS(e, { mapAsMap: t, maxAliasCount: n, onAnchor: r, reviver: i } = {}) {
|
|
2128
|
-
if (!Yt(e)) throw TypeError("A document argument is required");
|
|
2129
|
-
let a = {
|
|
2130
|
-
anchors: /* @__PURE__ */ new Map(),
|
|
2131
|
-
doc: e,
|
|
2132
|
-
keep: !0,
|
|
2133
|
-
mapAsMap: t === !0,
|
|
2134
|
-
mapKeyWarned: !1,
|
|
2135
|
-
maxAliasCount: typeof n == "number" ? n : 100
|
|
2136
|
-
}, o = J(this, "", a);
|
|
2137
|
-
if (typeof r == "function") for (let { count: e, res: t } of a.anchors.values()) r(t, e);
|
|
2138
|
-
return typeof i == "function" ? sn(i, { "": o }, "", o) : o;
|
|
2139
|
-
}
|
|
2140
|
-
}, ln = class extends cn {
|
|
2141
|
-
constructor(e) {
|
|
2142
|
-
super(Ut), this.source = e, Object.defineProperty(this, "tag", { set() {
|
|
2143
|
-
throw Error("Alias nodes cannot have tags");
|
|
2144
|
-
} });
|
|
2145
|
-
}
|
|
2146
|
-
resolve(e, t) {
|
|
2147
|
-
if (t?.maxAliasCount === 0) throw ReferenceError("Alias resolution is disabled");
|
|
2148
|
-
let n;
|
|
2149
|
-
t?.aliasResolveCache ? n = t.aliasResolveCache : (n = [], tn(e, { Node: (e, t) => {
|
|
2150
|
-
(Jt(t) || Qt(t)) && n.push(t);
|
|
2151
|
-
} }), t && (t.aliasResolveCache = n));
|
|
2152
|
-
let r;
|
|
2153
|
-
for (let e of n) {
|
|
2154
|
-
if (e === this) break;
|
|
2155
|
-
e.anchor === this.source && (r = e);
|
|
2156
|
-
}
|
|
2157
|
-
if (r && t) {
|
|
2158
|
-
let { anchors: e, doc: n, maxAliasCount: i } = t, a = e.get(r);
|
|
2159
|
-
/* istanbul ignore if */
|
|
2160
|
-
if (a ||= (J(r, null, t), e.get(r)), a?.res === void 0) throw ReferenceError("This should not happen: Alias anchor was not resolved?");
|
|
2161
|
-
if (i >= 0 && (a.count += 1, a.aliasCount === 0 && (a.aliasCount = un(n, r, e)), a.count * a.aliasCount > i)) throw ReferenceError("Excessive alias count indicates a resource exhaustion attack");
|
|
2162
|
-
}
|
|
2163
|
-
return r;
|
|
2164
|
-
}
|
|
2165
|
-
toJSON(e, t) {
|
|
2166
|
-
if (!t) return { source: this.source };
|
|
2167
|
-
let n = this.resolve(t.doc, t);
|
|
2168
|
-
if (!n) {
|
|
2169
|
-
let e = `Unresolved alias (the anchor must be set before the alias): ${this.source}`;
|
|
2170
|
-
throw ReferenceError(e);
|
|
2171
|
-
}
|
|
2172
|
-
return t.anchors.get(n).res;
|
|
2173
|
-
}
|
|
2174
|
-
toString(e, t, n) {
|
|
2175
|
-
let r = `*${this.source}`;
|
|
2176
|
-
if (e) {
|
|
2177
|
-
if (on(this.source), e.options.verifyAliasOrder && !e.anchors.has(this.source)) {
|
|
2178
|
-
let e = `Unresolved alias (the anchor must be set before the alias): ${this.source}`;
|
|
2179
|
-
throw Error(e);
|
|
2180
|
-
}
|
|
2181
|
-
if (e.implicitKey) return `${r} `;
|
|
2182
|
-
}
|
|
2183
|
-
return r;
|
|
2184
|
-
}
|
|
2185
|
-
};
|
|
2186
|
-
function un(e, t, n) {
|
|
2187
|
-
if (Jt(t)) {
|
|
2188
|
-
let r = t.resolve(e), i = n && r && n.get(r);
|
|
2189
|
-
return i ? i.count * i.aliasCount : 0;
|
|
2190
|
-
}
|
|
2191
|
-
if (W(t)) {
|
|
2192
|
-
let r = 0;
|
|
2193
|
-
for (let i of t.items) {
|
|
2194
|
-
let t = un(e, i, n);
|
|
2195
|
-
t > r && (r = t);
|
|
2196
|
-
}
|
|
2197
|
-
return r;
|
|
2198
|
-
}
|
|
2199
|
-
if (H(t)) {
|
|
2200
|
-
let r = un(e, t.key, n), i = un(e, t.value, n);
|
|
2201
|
-
return Math.max(r, i);
|
|
2202
|
-
}
|
|
2203
|
-
return 1;
|
|
2204
|
-
}
|
|
2205
|
-
//#endregion
|
|
2206
|
-
//#region node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/browser/dist/nodes/Scalar.js
|
|
2207
|
-
var dn = (e) => !e || typeof e != "function" && typeof e != "object", Y = class extends cn {
|
|
2208
|
-
constructor(e) {
|
|
2209
|
-
super(Kt), this.value = e;
|
|
2210
|
-
}
|
|
2211
|
-
toJSON(e, t) {
|
|
2212
|
-
return t?.keep ? this.value : J(this.value, e, t);
|
|
2213
|
-
}
|
|
2214
|
-
toString() {
|
|
2215
|
-
return String(this.value);
|
|
2216
|
-
}
|
|
2217
|
-
};
|
|
2218
|
-
Y.BLOCK_FOLDED = "BLOCK_FOLDED", Y.BLOCK_LITERAL = "BLOCK_LITERAL", Y.PLAIN = "PLAIN", Y.QUOTE_DOUBLE = "QUOTE_DOUBLE", Y.QUOTE_SINGLE = "QUOTE_SINGLE";
|
|
2219
|
-
//#endregion
|
|
2220
|
-
//#region node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/browser/dist/doc/createNode.js
|
|
2221
|
-
var fn = "tag:yaml.org,2002:";
|
|
2222
|
-
function pn(e, t, n) {
|
|
2223
|
-
if (t) {
|
|
2224
|
-
let e = n.filter((e) => e.tag === t), r = e.find((e) => !e.format) ?? e[0];
|
|
2225
|
-
if (!r) throw Error(`Tag ${t} not found`);
|
|
2226
|
-
return r;
|
|
2227
|
-
}
|
|
2228
|
-
return n.find((t) => t.identify?.(e) && !t.format);
|
|
2229
|
-
}
|
|
2230
|
-
function mn(e, t, n) {
|
|
2231
|
-
if (Yt(e) && (e = e.contents), G(e)) return e;
|
|
2232
|
-
if (H(e)) {
|
|
2233
|
-
let t = n.schema[B].createNode?.(n.schema, null, n);
|
|
2234
|
-
return t.items.push(e), t;
|
|
2235
|
-
}
|
|
2236
|
-
(e instanceof String || e instanceof Number || e instanceof Boolean || typeof BigInt < "u" && e instanceof BigInt) && (e = e.valueOf());
|
|
2237
|
-
let { aliasDuplicateObjects: r, onAnchor: i, onTagObj: a, schema: o, sourceObjects: s } = n, c;
|
|
2238
|
-
if (r && e && typeof e == "object") {
|
|
2239
|
-
if (c = s.get(e), c) return c.anchor ?? (c.anchor = i(e)), new ln(c.anchor);
|
|
2240
|
-
c = {
|
|
2241
|
-
anchor: null,
|
|
2242
|
-
node: null
|
|
2243
|
-
}, s.set(e, c);
|
|
2244
|
-
}
|
|
2245
|
-
t?.startsWith("!!") && (t = fn + t.slice(2));
|
|
2246
|
-
let l = pn(e, t, o.tags);
|
|
2247
|
-
if (!l) {
|
|
2248
|
-
if (e && typeof e.toJSON == "function" && (e = e.toJSON()), !e || typeof e != "object") {
|
|
2249
|
-
let t = new Y(e);
|
|
2250
|
-
return c && (c.node = t), t;
|
|
2251
|
-
}
|
|
2252
|
-
l = e instanceof Map ? o[B] : Symbol.iterator in Object(e) ? o[qt] : o[B];
|
|
2253
|
-
}
|
|
2254
|
-
a && (a(l), delete n.onTagObj);
|
|
2255
|
-
let u = l?.createNode ? l.createNode(n.schema, e, n) : typeof l?.nodeClass?.from == "function" ? l.nodeClass.from(n.schema, e, n) : new Y(e);
|
|
2256
|
-
return t ? u.tag = t : l.default || (u.tag = l.tag), c && (c.node = u), u;
|
|
2257
|
-
}
|
|
2258
|
-
//#endregion
|
|
2259
|
-
//#region node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/browser/dist/nodes/Collection.js
|
|
2260
|
-
function hn(e, t, n) {
|
|
2261
|
-
let r = n;
|
|
2262
|
-
for (let e = t.length - 1; e >= 0; --e) {
|
|
2263
|
-
let n = t[e];
|
|
2264
|
-
if (typeof n == "number" && Number.isInteger(n) && n >= 0) {
|
|
2265
|
-
let e = [];
|
|
2266
|
-
e[n] = r, r = e;
|
|
2267
|
-
} else r = /* @__PURE__ */ new Map([[n, r]]);
|
|
2268
|
-
}
|
|
2269
|
-
return mn(r, void 0, {
|
|
2270
|
-
aliasDuplicateObjects: !1,
|
|
2271
|
-
keepUndefined: !1,
|
|
2272
|
-
onAnchor: () => {
|
|
2273
|
-
throw Error("This should not happen, please report a bug.");
|
|
2274
|
-
},
|
|
2275
|
-
schema: e,
|
|
2276
|
-
sourceObjects: /* @__PURE__ */ new Map()
|
|
2277
|
-
});
|
|
2278
|
-
}
|
|
2279
|
-
var gn = (e) => e == null || typeof e == "object" && !!e[Symbol.iterator]().next().done, _n = class extends cn {
|
|
2280
|
-
constructor(e, t) {
|
|
2281
|
-
super(e), Object.defineProperty(this, "schema", {
|
|
2282
|
-
value: t,
|
|
2283
|
-
configurable: !0,
|
|
2284
|
-
enumerable: !1,
|
|
2285
|
-
writable: !0
|
|
2286
|
-
});
|
|
2287
|
-
}
|
|
2288
|
-
clone(e) {
|
|
2289
|
-
let t = Object.create(Object.getPrototypeOf(this), Object.getOwnPropertyDescriptors(this));
|
|
2290
|
-
return e && (t.schema = e), t.items = t.items.map((t) => G(t) || H(t) ? t.clone(e) : t), this.range && (t.range = this.range.slice()), t;
|
|
2291
|
-
}
|
|
2292
|
-
addIn(e, t) {
|
|
2293
|
-
if (gn(e)) this.add(t);
|
|
2294
|
-
else {
|
|
2295
|
-
let [n, ...r] = e, i = this.get(n, !0);
|
|
2296
|
-
if (W(i)) i.addIn(r, t);
|
|
2297
|
-
else if (i === void 0 && this.schema) this.set(n, hn(this.schema, r, t));
|
|
2298
|
-
else throw Error(`Expected YAML collection at ${n}. Remaining path: ${r}`);
|
|
2299
|
-
}
|
|
2300
|
-
}
|
|
2301
|
-
deleteIn(e) {
|
|
2302
|
-
let [t, ...n] = e;
|
|
2303
|
-
if (n.length === 0) return this.delete(t);
|
|
2304
|
-
let r = this.get(t, !0);
|
|
2305
|
-
if (W(r)) return r.deleteIn(n);
|
|
2306
|
-
throw Error(`Expected YAML collection at ${t}. Remaining path: ${n}`);
|
|
2307
|
-
}
|
|
2308
|
-
getIn(e, t) {
|
|
2309
|
-
let [n, ...r] = e, i = this.get(n, !0);
|
|
2310
|
-
return r.length === 0 ? !t && U(i) ? i.value : i : W(i) ? i.getIn(r, t) : void 0;
|
|
2311
|
-
}
|
|
2312
|
-
hasAllNullValues(e) {
|
|
2313
|
-
return this.items.every((t) => {
|
|
2314
|
-
if (!H(t)) return !1;
|
|
2315
|
-
let n = t.value;
|
|
2316
|
-
return n == null || e && U(n) && n.value == null && !n.commentBefore && !n.comment && !n.tag;
|
|
2317
|
-
});
|
|
2318
|
-
}
|
|
2319
|
-
hasIn(e) {
|
|
2320
|
-
let [t, ...n] = e;
|
|
2321
|
-
if (n.length === 0) return this.has(t);
|
|
2322
|
-
let r = this.get(t, !0);
|
|
2323
|
-
return W(r) ? r.hasIn(n) : !1;
|
|
2324
|
-
}
|
|
2325
|
-
setIn(e, t) {
|
|
2326
|
-
let [n, ...r] = e;
|
|
2327
|
-
if (r.length === 0) this.set(n, t);
|
|
2328
|
-
else {
|
|
2329
|
-
let e = this.get(n, !0);
|
|
2330
|
-
if (W(e)) e.setIn(r, t);
|
|
2331
|
-
else if (e === void 0 && this.schema) this.set(n, hn(this.schema, r, t));
|
|
2332
|
-
else throw Error(`Expected YAML collection at ${n}. Remaining path: ${r}`);
|
|
2333
|
-
}
|
|
2334
|
-
}
|
|
2335
|
-
}, vn = (e) => e.replace(/^(?!$)(?: $)?/gm, "#");
|
|
2336
|
-
function yn(e, t) {
|
|
2337
|
-
return /^\n+$/.test(e) ? e.substring(1) : t ? e.replace(/^(?! *$)/gm, t) : e;
|
|
2338
|
-
}
|
|
2339
|
-
var X = (e, t, n) => e.endsWith("\n") ? yn(n, t) : n.includes("\n") ? "\n" + yn(n, t) : (e.endsWith(" ") ? "" : " ") + n, bn = "flow", xn = "block", Sn = "quoted";
|
|
2340
|
-
function Cn(e, t, n = "flow", { indentAtStart: r, lineWidth: i = 80, minContentWidth: a = 20, onFold: o, onOverflow: s } = {}) {
|
|
2341
|
-
if (!i || i < 0) return e;
|
|
2342
|
-
i < a && (a = 0);
|
|
2343
|
-
let c = Math.max(1 + a, 1 + i - t.length);
|
|
2344
|
-
if (e.length <= c) return e;
|
|
2345
|
-
let l = [], u = {}, d = i - t.length;
|
|
2346
|
-
typeof r == "number" && (r > i - Math.max(2, a) ? l.push(0) : d = i - r);
|
|
2347
|
-
let f, p, m = !1, h = -1, g = -1, _ = -1;
|
|
2348
|
-
n === "block" && (h = wn(e, h, t.length), h !== -1 && (d = h + c));
|
|
2349
|
-
for (let r; r = e[h += 1];) {
|
|
2350
|
-
if (n === "quoted" && r === "\\") {
|
|
2351
|
-
switch (g = h, e[h + 1]) {
|
|
2352
|
-
case "x":
|
|
2353
|
-
h += 3;
|
|
2354
|
-
break;
|
|
2355
|
-
case "u":
|
|
2356
|
-
h += 5;
|
|
2357
|
-
break;
|
|
2358
|
-
case "U":
|
|
2359
|
-
h += 9;
|
|
2360
|
-
break;
|
|
2361
|
-
default: h += 1;
|
|
2362
|
-
}
|
|
2363
|
-
_ = h;
|
|
2364
|
-
}
|
|
2365
|
-
if (r === "\n") n === "block" && (h = wn(e, h, t.length)), d = h + t.length + c, f = void 0;
|
|
2366
|
-
else {
|
|
2367
|
-
if (r === " " && p && p !== " " && p !== "\n" && p !== " ") {
|
|
2368
|
-
let t = e[h + 1];
|
|
2369
|
-
t && t !== " " && t !== "\n" && t !== " " && (f = h);
|
|
2370
|
-
}
|
|
2371
|
-
if (h >= d) {
|
|
2372
|
-
if (f) l.push(f), d = f + c, f = void 0;
|
|
2373
|
-
else if (n === "quoted") {
|
|
2374
|
-
for (; p === " " || p === " ";) p = r, r = e[h += 1], m = !0;
|
|
2375
|
-
let t = h > _ + 1 ? h - 2 : g - 1;
|
|
2376
|
-
if (u[t]) return e;
|
|
2377
|
-
l.push(t), u[t] = !0, d = t + c, f = void 0;
|
|
2378
|
-
} else m = !0;
|
|
2379
|
-
}
|
|
2380
|
-
}
|
|
2381
|
-
p = r;
|
|
2382
|
-
}
|
|
2383
|
-
if (m && s && s(), l.length === 0) return e;
|
|
2384
|
-
o && o();
|
|
2385
|
-
let v = e.slice(0, l[0]);
|
|
2386
|
-
for (let r = 0; r < l.length; ++r) {
|
|
2387
|
-
let i = l[r], a = l[r + 1] || e.length;
|
|
2388
|
-
i === 0 ? v = `\n${t}${e.slice(0, a)}` : (n === "quoted" && u[i] && (v += `${e[i]}\\`), v += `\n${t}${e.slice(i + 1, a)}`);
|
|
2389
|
-
}
|
|
2390
|
-
return v;
|
|
2391
|
-
}
|
|
2392
|
-
function wn(e, t, n) {
|
|
2393
|
-
let r = t, i = t + 1, a = e[i];
|
|
2394
|
-
for (; a === " " || a === " ";) if (t < i + n) a = e[++t];
|
|
2395
|
-
else {
|
|
2396
|
-
do
|
|
2397
|
-
a = e[++t];
|
|
2398
|
-
while (a && a !== "\n");
|
|
2399
|
-
r = t, i = t + 1, a = e[i];
|
|
2400
|
-
}
|
|
2401
|
-
return r;
|
|
2402
|
-
}
|
|
2403
|
-
//#endregion
|
|
2404
|
-
//#region node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/browser/dist/stringify/stringifyString.js
|
|
2405
|
-
var Tn = (e, t) => ({
|
|
2406
|
-
indentAtStart: t ? e.indent.length : e.indentAtStart,
|
|
2407
|
-
lineWidth: e.options.lineWidth,
|
|
2408
|
-
minContentWidth: e.options.minContentWidth
|
|
2409
|
-
}), En = (e) => /^(%|---|\.\.\.)/m.test(e);
|
|
2410
|
-
function Dn(e, t, n) {
|
|
2411
|
-
if (!t || t < 0) return !1;
|
|
2412
|
-
let r = t - n, i = e.length;
|
|
2413
|
-
if (i <= r) return !1;
|
|
2414
|
-
for (let t = 0, n = 0; t < i; ++t) if (e[t] === "\n") {
|
|
2415
|
-
if (t - n > r) return !0;
|
|
2416
|
-
if (n = t + 1, i - n <= r) return !1;
|
|
2417
|
-
}
|
|
2418
|
-
return !0;
|
|
2419
|
-
}
|
|
2420
|
-
function On(e, t) {
|
|
2421
|
-
let n = JSON.stringify(e);
|
|
2422
|
-
if (t.options.doubleQuotedAsJSON) return n;
|
|
2423
|
-
let { implicitKey: r } = t, i = t.options.doubleQuotedMinMultiLineLength, a = t.indent || (En(e) ? " " : ""), o = "", s = 0;
|
|
2424
|
-
for (let e = 0, t = n[e]; t; t = n[++e]) if (t === " " && n[e + 1] === "\\" && n[e + 2] === "n" && (o += n.slice(s, e) + "\\ ", e += 1, s = e, t = "\\"), t === "\\") switch (n[e + 1]) {
|
|
2425
|
-
case "u":
|
|
2426
|
-
{
|
|
2427
|
-
o += n.slice(s, e);
|
|
2428
|
-
let t = n.substr(e + 2, 4);
|
|
2429
|
-
switch (t) {
|
|
2430
|
-
case "0000":
|
|
2431
|
-
o += "\\0";
|
|
2432
|
-
break;
|
|
2433
|
-
case "0007":
|
|
2434
|
-
o += "\\a";
|
|
2435
|
-
break;
|
|
2436
|
-
case "000b":
|
|
2437
|
-
o += "\\v";
|
|
2438
|
-
break;
|
|
2439
|
-
case "001b":
|
|
2440
|
-
o += "\\e";
|
|
2441
|
-
break;
|
|
2442
|
-
case "0085":
|
|
2443
|
-
o += "\\N";
|
|
2444
|
-
break;
|
|
2445
|
-
case "00a0":
|
|
2446
|
-
o += "\\_";
|
|
2447
|
-
break;
|
|
2448
|
-
case "2028":
|
|
2449
|
-
o += "\\L";
|
|
2450
|
-
break;
|
|
2451
|
-
case "2029":
|
|
2452
|
-
o += "\\P";
|
|
2453
|
-
break;
|
|
2454
|
-
default: t.substr(0, 2) === "00" ? o += "\\x" + t.substr(2) : o += n.substr(e, 6);
|
|
2455
|
-
}
|
|
2456
|
-
e += 5, s = e + 1;
|
|
2457
|
-
}
|
|
2458
|
-
break;
|
|
2459
|
-
case "n":
|
|
2460
|
-
if (r || n[e + 2] === "\"" || n.length < i) e += 1;
|
|
2461
|
-
else {
|
|
2462
|
-
for (o += n.slice(s, e) + "\n\n"; n[e + 2] === "\\" && n[e + 3] === "n" && n[e + 4] !== "\"";) o += "\n", e += 2;
|
|
2463
|
-
o += a, n[e + 2] === " " && (o += "\\"), e += 1, s = e + 1;
|
|
2464
|
-
}
|
|
2465
|
-
break;
|
|
2466
|
-
default: e += 1;
|
|
2467
|
-
}
|
|
2468
|
-
return o = s ? o + n.slice(s) : n, r ? o : Cn(o, a, Sn, Tn(t, !1));
|
|
2469
|
-
}
|
|
2470
|
-
function kn(e, t) {
|
|
2471
|
-
if (t.options.singleQuote === !1 || t.implicitKey && e.includes("\n") || /[ \t]\n|\n[ \t]/.test(e)) return On(e, t);
|
|
2472
|
-
let n = t.indent || (En(e) ? " " : ""), r = "'" + e.replace(/'/g, "''").replace(/\n+/g, `$&\n${n}`) + "'";
|
|
2473
|
-
return t.implicitKey ? r : Cn(r, n, bn, Tn(t, !1));
|
|
2474
|
-
}
|
|
2475
|
-
function An(e, t) {
|
|
2476
|
-
let { singleQuote: n } = t.options, r;
|
|
2477
|
-
if (n === !1) r = On;
|
|
2478
|
-
else {
|
|
2479
|
-
let t = e.includes("\""), i = e.includes("'");
|
|
2480
|
-
r = t && !i ? kn : i && !t ? On : n ? kn : On;
|
|
2481
|
-
}
|
|
2482
|
-
return r(e, t);
|
|
2483
|
-
}
|
|
2484
|
-
var jn;
|
|
2485
|
-
try {
|
|
2486
|
-
jn = /* @__PURE__ */ RegExp("(^|(?<!\n))\n+(?!\n|$)", "g");
|
|
2487
|
-
} catch {
|
|
2488
|
-
jn = /\n+(?!\n|$)/g;
|
|
2489
|
-
}
|
|
2490
|
-
function Mn({ comment: e, type: t, value: n }, r, i, a) {
|
|
2491
|
-
let { blockQuote: o, commentString: s, lineWidth: c } = r.options;
|
|
2492
|
-
if (!o || /\n[\t ]+$/.test(n)) return An(n, r);
|
|
2493
|
-
let l = r.indent || (r.forceBlockIndent || En(n) ? " " : ""), u = o === "literal" ? !0 : o === "folded" || t === Y.BLOCK_FOLDED ? !1 : t === Y.BLOCK_LITERAL || !Dn(n, c, l.length);
|
|
2494
|
-
if (!n) return u ? "|\n" : ">\n";
|
|
2495
|
-
let d, f;
|
|
2496
|
-
for (f = n.length; f > 0; --f) {
|
|
2497
|
-
let e = n[f - 1];
|
|
2498
|
-
if (e !== "\n" && e !== " " && e !== " ") break;
|
|
2499
|
-
}
|
|
2500
|
-
let p = n.substring(f), m = p.indexOf("\n");
|
|
2501
|
-
m === -1 ? d = "-" : n === p || m !== p.length - 1 ? (d = "+", a && a()) : d = "", p &&= (n = n.slice(0, -p.length), p[p.length - 1] === "\n" && (p = p.slice(0, -1)), p.replace(jn, `$&${l}`));
|
|
2502
|
-
let h = !1, g, _ = -1;
|
|
2503
|
-
for (g = 0; g < n.length; ++g) {
|
|
2504
|
-
let e = n[g];
|
|
2505
|
-
if (e === " ") h = !0;
|
|
2506
|
-
else if (e === "\n") _ = g;
|
|
2507
|
-
else break;
|
|
2508
|
-
}
|
|
2509
|
-
let v = n.substring(0, _ < g ? _ + 1 : g);
|
|
2510
|
-
v &&= (n = n.substring(v.length), v.replace(/\n+/g, `$&${l}`));
|
|
2511
|
-
let y = (h ? l ? "2" : "1" : "") + d;
|
|
2512
|
-
if (e && (y += " " + s(e.replace(/ ?[\r\n]+/g, " ")), i && i()), !u) {
|
|
2513
|
-
let e = n.replace(/\n+/g, "\n$&").replace(/(?:^|\n)([\t ].*)(?:([\n\t ]*)\n(?![\n\t ]))?/g, "$1$2").replace(/\n+/g, `$&${l}`), i = !1, a = Tn(r, !0);
|
|
2514
|
-
o !== "folded" && t !== Y.BLOCK_FOLDED && (a.onOverflow = () => {
|
|
2515
|
-
i = !0;
|
|
2516
|
-
});
|
|
2517
|
-
let s = Cn(`${v}${e}${p}`, l, xn, a);
|
|
2518
|
-
if (!i) return `>${y}\n${l}${s}`;
|
|
2519
|
-
}
|
|
2520
|
-
return n = n.replace(/\n+/g, `$&${l}`), `|${y}\n${l}${v}${n}${p}`;
|
|
2521
|
-
}
|
|
2522
|
-
function Nn(e, t, n, r) {
|
|
2523
|
-
let { type: i, value: a } = e, { actualString: o, implicitKey: s, indent: c, indentStep: l, inFlow: u } = t;
|
|
2524
|
-
if (s && a.includes("\n") || u && /[[\]{},]/.test(a)) return An(a, t);
|
|
2525
|
-
if (/^[\n\t ,[\]{}#&*!|>'"%@`]|^[?-]$|^[?-][ \t]|[\n:][ \t]|[ \t]\n|[\n\t ]#|[\n\t :]$/.test(a)) return s || u || !a.includes("\n") ? An(a, t) : Mn(e, t, n, r);
|
|
2526
|
-
if (!s && !u && i !== Y.PLAIN && a.includes("\n")) return Mn(e, t, n, r);
|
|
2527
|
-
if (En(a)) {
|
|
2528
|
-
if (c === "") return t.forceBlockIndent = !0, Mn(e, t, n, r);
|
|
2529
|
-
if (s && c === l) return An(a, t);
|
|
2530
|
-
}
|
|
2531
|
-
let d = a.replace(/\n+/g, `$&\n${c}`);
|
|
2532
|
-
if (o) {
|
|
2533
|
-
let e = (e) => e.default && e.tag !== "tag:yaml.org,2002:str" && e.test?.test(d), { compat: n, tags: r } = t.doc.schema;
|
|
2534
|
-
if (r.some(e) || n?.some(e)) return An(a, t);
|
|
2535
|
-
}
|
|
2536
|
-
return s ? d : Cn(d, c, bn, Tn(t, !1));
|
|
2537
|
-
}
|
|
2538
|
-
function Pn(e, t, n, r) {
|
|
2539
|
-
let { implicitKey: i, inFlow: a } = t, o = typeof e.value == "string" ? e : Object.assign({}, e, { value: String(e.value) }), { type: s } = e;
|
|
2540
|
-
s !== Y.QUOTE_DOUBLE && /[\x00-\x08\x0b-\x1f\x7f-\x9f\u{D800}-\u{DFFF}]/u.test(o.value) && (s = Y.QUOTE_DOUBLE);
|
|
2541
|
-
let c = (e) => {
|
|
2542
|
-
switch (e) {
|
|
2543
|
-
case Y.BLOCK_FOLDED:
|
|
2544
|
-
case Y.BLOCK_LITERAL: return i || a ? An(o.value, t) : Mn(o, t, n, r);
|
|
2545
|
-
case Y.QUOTE_DOUBLE: return On(o.value, t);
|
|
2546
|
-
case Y.QUOTE_SINGLE: return kn(o.value, t);
|
|
2547
|
-
case Y.PLAIN: return Nn(o, t, n, r);
|
|
2548
|
-
default: return null;
|
|
2549
|
-
}
|
|
2550
|
-
}, l = c(s);
|
|
2551
|
-
if (l === null) {
|
|
2552
|
-
let { defaultKeyType: e, defaultStringType: n } = t.options, r = i && e || n;
|
|
2553
|
-
if (l = c(r), l === null) throw Error(`Unsupported default string type ${r}`);
|
|
2554
|
-
}
|
|
2555
|
-
return l;
|
|
2556
|
-
}
|
|
2557
|
-
//#endregion
|
|
2558
|
-
//#region node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/browser/dist/stringify/stringify.js
|
|
2559
|
-
function Fn(e, t) {
|
|
2560
|
-
let n = Object.assign({
|
|
2561
|
-
blockQuote: !0,
|
|
2562
|
-
commentString: vn,
|
|
2563
|
-
defaultKeyType: null,
|
|
2564
|
-
defaultStringType: "PLAIN",
|
|
2565
|
-
directives: null,
|
|
2566
|
-
doubleQuotedAsJSON: !1,
|
|
2567
|
-
doubleQuotedMinMultiLineLength: 40,
|
|
2568
|
-
falseStr: "false",
|
|
2569
|
-
flowCollectionPadding: !0,
|
|
2570
|
-
indentSeq: !0,
|
|
2571
|
-
lineWidth: 80,
|
|
2572
|
-
minContentWidth: 20,
|
|
2573
|
-
nullStr: "null",
|
|
2574
|
-
simpleKeys: !1,
|
|
2575
|
-
singleQuote: null,
|
|
2576
|
-
trailingComma: !1,
|
|
2577
|
-
trueStr: "true",
|
|
2578
|
-
verifyAliasOrder: !0
|
|
2579
|
-
}, e.schema.toStringOptions, t), r;
|
|
2580
|
-
switch (n.collectionStyle) {
|
|
2581
|
-
case "block":
|
|
2582
|
-
r = !1;
|
|
2583
|
-
break;
|
|
2584
|
-
case "flow":
|
|
2585
|
-
r = !0;
|
|
2586
|
-
break;
|
|
2587
|
-
default: r = null;
|
|
2588
|
-
}
|
|
2589
|
-
return {
|
|
2590
|
-
anchors: /* @__PURE__ */ new Set(),
|
|
2591
|
-
doc: e,
|
|
2592
|
-
flowCollectionPadding: n.flowCollectionPadding ? " " : "",
|
|
2593
|
-
indent: "",
|
|
2594
|
-
indentStep: typeof n.indent == "number" ? " ".repeat(n.indent) : " ",
|
|
2595
|
-
inFlow: r,
|
|
2596
|
-
options: n
|
|
2597
|
-
};
|
|
2598
|
-
}
|
|
2599
|
-
function In(e, t) {
|
|
2600
|
-
if (t.tag) {
|
|
2601
|
-
let n = e.filter((e) => e.tag === t.tag);
|
|
2602
|
-
if (n.length > 0) return n.find((e) => e.format === t.format) ?? n[0];
|
|
2603
|
-
}
|
|
2604
|
-
let n, r;
|
|
2605
|
-
if (U(t)) {
|
|
2606
|
-
r = t.value;
|
|
2607
|
-
let i = e.filter((e) => e.identify?.(r));
|
|
2608
|
-
if (i.length > 1) {
|
|
2609
|
-
let e = i.filter((e) => e.test);
|
|
2610
|
-
e.length > 0 && (i = e);
|
|
2611
|
-
}
|
|
2612
|
-
n = i.find((e) => e.format === t.format) ?? i.find((e) => !e.format);
|
|
2613
|
-
} else r = t, n = e.find((e) => e.nodeClass && r instanceof e.nodeClass);
|
|
2614
|
-
if (!n) {
|
|
2615
|
-
let e = r?.constructor?.name ?? (r === null ? "null" : typeof r);
|
|
2616
|
-
throw Error(`Tag not resolved for ${e} value`);
|
|
2617
|
-
}
|
|
2618
|
-
return n;
|
|
2619
|
-
}
|
|
2620
|
-
function Ln(e, t, { anchors: n, doc: r }) {
|
|
2621
|
-
if (!r.directives) return "";
|
|
2622
|
-
let i = [], a = (U(e) || W(e)) && e.anchor;
|
|
2623
|
-
a && on(a) && (n.add(a), i.push(`&${a}`));
|
|
2624
|
-
let o = e.tag ?? (t.default ? null : t.tag);
|
|
2625
|
-
return o && i.push(r.directives.tagString(o)), i.join(" ");
|
|
2626
|
-
}
|
|
2627
|
-
function Rn(e, t, n, r) {
|
|
2628
|
-
if (H(e)) return e.toString(t, n, r);
|
|
2629
|
-
if (Jt(e)) {
|
|
2630
|
-
if (t.doc.directives) return e.toString(t);
|
|
2631
|
-
if (t.resolvedAliases?.has(e)) throw TypeError("Cannot stringify circular structure without alias nodes");
|
|
2632
|
-
t.resolvedAliases ? t.resolvedAliases.add(e) : t.resolvedAliases = /* @__PURE__ */ new Set([e]), e = e.resolve(t.doc);
|
|
2633
|
-
}
|
|
2634
|
-
let i, a = G(e) ? e : t.doc.createNode(e, { onTagObj: (e) => i = e });
|
|
2635
|
-
i ??= In(t.doc.schema.tags, a);
|
|
2636
|
-
let o = Ln(a, i, t);
|
|
2637
|
-
o.length > 0 && (t.indentAtStart = (t.indentAtStart ?? 0) + o.length + 1);
|
|
2638
|
-
let s = typeof i.stringify == "function" ? i.stringify(a, t, n, r) : U(a) ? Pn(a, t, n, r) : a.toString(t, n, r);
|
|
2639
|
-
return o ? U(a) || s[0] === "{" || s[0] === "[" ? `${o} ${s}` : `${o}\n${t.indent}${s}` : s;
|
|
2640
|
-
}
|
|
2641
|
-
//#endregion
|
|
2642
|
-
//#region node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/browser/dist/stringify/stringifyPair.js
|
|
2643
|
-
function zn({ key: e, value: t }, n, r, i) {
|
|
2644
|
-
let { allNullValues: a, doc: o, indent: s, indentStep: c, options: { commentString: l, indentSeq: u, simpleKeys: d } } = n, f = G(e) && e.comment || null;
|
|
2645
|
-
if (d) {
|
|
2646
|
-
if (f) throw Error("With simple keys, key nodes cannot have comments");
|
|
2647
|
-
if (W(e) || !G(e) && typeof e == "object") throw Error("With simple keys, collection cannot be used as a key value");
|
|
2648
|
-
}
|
|
2649
|
-
let p = !d && (!e || f && t == null && !n.inFlow || W(e) || (U(e) ? e.type === Y.BLOCK_FOLDED || e.type === Y.BLOCK_LITERAL : typeof e == "object"));
|
|
2650
|
-
n = Object.assign({}, n, {
|
|
2651
|
-
allNullValues: !1,
|
|
2652
|
-
implicitKey: !p && (d || !a),
|
|
2653
|
-
indent: s + c
|
|
2654
|
-
});
|
|
2655
|
-
let m = !1, h = !1, g = Rn(e, n, () => m = !0, () => h = !0);
|
|
2656
|
-
if (!p && !n.inFlow && g.length > 1024) {
|
|
2657
|
-
if (d) throw Error("With simple keys, single line scalar must not span more than 1024 characters");
|
|
2658
|
-
p = !0;
|
|
2659
|
-
}
|
|
2660
|
-
if (n.inFlow) {
|
|
2661
|
-
if (a || t == null) return m && r && r(), g === "" ? "?" : p ? `? ${g}` : g;
|
|
2662
|
-
} else if (a && !d || t == null && p) return g = `? ${g}`, f && !m ? g += X(g, n.indent, l(f)) : h && i && i(), g;
|
|
2663
|
-
m && (f = null), p ? (f && (g += X(g, n.indent, l(f))), g = `? ${g}\n${s}:`) : (g = `${g}:`, f && (g += X(g, n.indent, l(f))));
|
|
2664
|
-
let _, v, y;
|
|
2665
|
-
G(t) ? (_ = !!t.spaceBefore, v = t.commentBefore, y = t.comment) : (_ = !1, v = null, y = null, t && typeof t == "object" && (t = o.createNode(t))), n.implicitKey = !1, !p && !f && U(t) && (n.indentAtStart = g.length + 1), h = !1, !u && c.length >= 2 && !n.inFlow && !p && Zt(t) && !t.flow && !t.tag && !t.anchor && (n.indent = n.indent.substring(2));
|
|
2666
|
-
let b = !1, x = Rn(t, n, () => b = !0, () => h = !0), S = " ";
|
|
2667
|
-
if (f || _ || v) {
|
|
2668
|
-
if (S = _ ? "\n" : "", v) {
|
|
2669
|
-
let e = l(v);
|
|
2670
|
-
S += `\n${yn(e, n.indent)}`;
|
|
2671
|
-
}
|
|
2672
|
-
x === "" && !n.inFlow ? S === "\n" && y && (S = "\n\n") : S += `\n${n.indent}`;
|
|
2673
|
-
} else if (!p && W(t)) {
|
|
2674
|
-
let e = x[0], r = x.indexOf("\n"), i = r !== -1, a = n.inFlow ?? t.flow ?? t.items.length === 0;
|
|
2675
|
-
if (i || !a) {
|
|
2676
|
-
let t = !1;
|
|
2677
|
-
if (i && (e === "&" || e === "!")) {
|
|
2678
|
-
let n = x.indexOf(" ");
|
|
2679
|
-
e === "&" && n !== -1 && n < r && x[n + 1] === "!" && (n = x.indexOf(" ", n + 1)), (n === -1 || r < n) && (t = !0);
|
|
2680
|
-
}
|
|
2681
|
-
t || (S = `\n${n.indent}`);
|
|
2682
|
-
}
|
|
2683
|
-
} else (x === "" || x[0] === "\n") && (S = "");
|
|
2684
|
-
return g += S + x, n.inFlow ? b && r && r() : y && !b ? g += X(g, n.indent, l(y)) : h && i && i(), g;
|
|
2685
|
-
}
|
|
2686
|
-
//#endregion
|
|
2687
|
-
//#region node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/browser/dist/log.js
|
|
2688
|
-
function Bn(e, t) {
|
|
2689
|
-
(e === "debug" || e === "warn") && console.warn(t);
|
|
2690
|
-
}
|
|
2691
|
-
//#endregion
|
|
2692
|
-
//#region node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/browser/dist/schema/yaml-1.1/merge.js
|
|
2693
|
-
var Vn = "<<", Hn = {
|
|
2694
|
-
identify: (e) => e === Vn || typeof e == "symbol" && e.description === Vn,
|
|
2695
|
-
default: "key",
|
|
2696
|
-
tag: "tag:yaml.org,2002:merge",
|
|
2697
|
-
test: /^<<$/,
|
|
2698
|
-
resolve: () => Object.assign(new Y(Symbol(Vn)), { addToJSMap: Wn }),
|
|
2699
|
-
stringify: () => Vn
|
|
2700
|
-
}, Un = (e, t) => (Hn.identify(t) || U(t) && (!t.type || t.type === Y.PLAIN) && Hn.identify(t.value)) && e?.doc.schema.tags.some((e) => e.tag === Hn.tag && e.default);
|
|
2701
|
-
function Wn(e, t, n) {
|
|
2702
|
-
let r = Kn(e, n);
|
|
2703
|
-
if (Zt(r)) for (let n of r.items) Gn(e, t, n);
|
|
2704
|
-
else if (Array.isArray(r)) for (let n of r) Gn(e, t, n);
|
|
2705
|
-
else Gn(e, t, r);
|
|
2706
|
-
}
|
|
2707
|
-
function Gn(e, t, n) {
|
|
2708
|
-
let r = Kn(e, n);
|
|
2709
|
-
if (!Xt(r)) throw Error("Merge sources must be maps or map aliases");
|
|
2710
|
-
let i = r.toJSON(null, e, Map);
|
|
2711
|
-
for (let [e, n] of i) t instanceof Map ? t.has(e) || t.set(e, n) : t instanceof Set ? t.add(e) : Object.prototype.hasOwnProperty.call(t, e) || Object.defineProperty(t, e, {
|
|
2712
|
-
value: n,
|
|
2713
|
-
writable: !0,
|
|
2714
|
-
enumerable: !0,
|
|
2715
|
-
configurable: !0
|
|
2716
|
-
});
|
|
2717
|
-
return t;
|
|
2718
|
-
}
|
|
2719
|
-
function Kn(e, t) {
|
|
2720
|
-
return e && Jt(t) ? t.resolve(e.doc, e) : t;
|
|
2721
|
-
}
|
|
2722
|
-
//#endregion
|
|
2723
|
-
//#region node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/browser/dist/nodes/addPairToJSMap.js
|
|
2724
|
-
function qn(e, t, { key: n, value: r }) {
|
|
2725
|
-
if (G(n) && n.addToJSMap) n.addToJSMap(e, t, r);
|
|
2726
|
-
else if (Un(e, n)) Wn(e, t, r);
|
|
2727
|
-
else {
|
|
2728
|
-
let i = J(n, "", e);
|
|
2729
|
-
if (t instanceof Map) t.set(i, J(r, i, e));
|
|
2730
|
-
else if (t instanceof Set) t.add(i);
|
|
2731
|
-
else {
|
|
2732
|
-
let a = Jn(n, i, e), o = J(r, a, e);
|
|
2733
|
-
a in t ? Object.defineProperty(t, a, {
|
|
2734
|
-
value: o,
|
|
2735
|
-
writable: !0,
|
|
2736
|
-
enumerable: !0,
|
|
2737
|
-
configurable: !0
|
|
2738
|
-
}) : t[a] = o;
|
|
2739
|
-
}
|
|
2740
|
-
}
|
|
2741
|
-
return t;
|
|
2742
|
-
}
|
|
2743
|
-
function Jn(e, t, n) {
|
|
2744
|
-
if (t === null) return "";
|
|
2745
|
-
if (typeof t != "object") return String(t);
|
|
2746
|
-
if (G(e) && n?.doc) {
|
|
2747
|
-
let t = Fn(n.doc, {});
|
|
2748
|
-
t.anchors = /* @__PURE__ */ new Set();
|
|
2749
|
-
for (let e of n.anchors.keys()) t.anchors.add(e.anchor);
|
|
2750
|
-
t.inFlow = !0, t.inStringifyKey = !0;
|
|
2751
|
-
let r = e.toString(t);
|
|
2752
|
-
if (!n.mapKeyWarned) {
|
|
2753
|
-
let e = JSON.stringify(r);
|
|
2754
|
-
e.length > 40 && (e = e.substring(0, 36) + "...\""), Bn(n.doc.options.logLevel, `Keys with collection values will be stringified due to JS Object restrictions: ${e}. Set mapAsMap: true to use object keys.`), n.mapKeyWarned = !0;
|
|
2755
|
-
}
|
|
2756
|
-
return r;
|
|
2757
|
-
}
|
|
2758
|
-
return JSON.stringify(t);
|
|
2759
|
-
}
|
|
2760
|
-
//#endregion
|
|
2761
|
-
//#region node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/browser/dist/nodes/Pair.js
|
|
2762
|
-
function Yn(e, t, n) {
|
|
2763
|
-
return new Z(mn(e, void 0, n), mn(t, void 0, n));
|
|
2764
|
-
}
|
|
2765
|
-
var Z = class e {
|
|
2766
|
-
constructor(e, t = null) {
|
|
2767
|
-
Object.defineProperty(this, V, { value: Gt }), this.key = e, this.value = t;
|
|
2768
|
-
}
|
|
2769
|
-
clone(t) {
|
|
2770
|
-
let { key: n, value: r } = this;
|
|
2771
|
-
return G(n) && (n = n.clone(t)), G(r) && (r = r.clone(t)), new e(n, r);
|
|
2772
|
-
}
|
|
2773
|
-
toJSON(e, t) {
|
|
2774
|
-
return qn(t, t?.mapAsMap ? /* @__PURE__ */ new Map() : {}, this);
|
|
2775
|
-
}
|
|
2776
|
-
toString(e, t, n) {
|
|
2777
|
-
return e?.doc ? zn(this, e, t, n) : JSON.stringify(this);
|
|
2778
|
-
}
|
|
2779
|
-
};
|
|
2780
|
-
//#endregion
|
|
2781
|
-
//#region node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/browser/dist/stringify/stringifyCollection.js
|
|
2782
|
-
function Xn(e, t, n) {
|
|
2783
|
-
return (t.inFlow ?? e.flow ? Qn : Zn)(e, t, n);
|
|
2784
|
-
}
|
|
2785
|
-
function Zn({ comment: e, items: t }, n, { blockItemPrefix: r, flowChars: i, itemIndent: a, onChompKeep: o, onComment: s }) {
|
|
2786
|
-
let { indent: c, options: { commentString: l } } = n, u = Object.assign({}, n, {
|
|
2787
|
-
indent: a,
|
|
2788
|
-
type: null
|
|
2789
|
-
}), d = !1, f = [];
|
|
2790
|
-
for (let e = 0; e < t.length; ++e) {
|
|
2791
|
-
let i = t[e], o = null;
|
|
2792
|
-
if (G(i)) !d && i.spaceBefore && f.push(""), $n(n, f, i.commentBefore, d), i.comment && (o = i.comment);
|
|
2793
|
-
else if (H(i)) {
|
|
2794
|
-
let e = G(i.key) ? i.key : null;
|
|
2795
|
-
e && (!d && e.spaceBefore && f.push(""), $n(n, f, e.commentBefore, d));
|
|
2796
|
-
}
|
|
2797
|
-
d = !1;
|
|
2798
|
-
let s = Rn(i, u, () => o = null, () => d = !0);
|
|
2799
|
-
o && (s += X(s, a, l(o))), d && o && (d = !1), f.push(r + s);
|
|
2800
|
-
}
|
|
2801
|
-
let p;
|
|
2802
|
-
if (f.length === 0) p = i.start + i.end;
|
|
2803
|
-
else {
|
|
2804
|
-
p = f[0];
|
|
2805
|
-
for (let e = 1; e < f.length; ++e) {
|
|
2806
|
-
let t = f[e];
|
|
2807
|
-
p += t ? `\n${c}${t}` : "\n";
|
|
2808
|
-
}
|
|
2809
|
-
}
|
|
2810
|
-
return e ? (p += "\n" + yn(l(e), c), s && s()) : d && o && o(), p;
|
|
2811
|
-
}
|
|
2812
|
-
function Qn({ items: e }, t, { flowChars: n, itemIndent: r }) {
|
|
2813
|
-
let { indent: i, indentStep: a, flowCollectionPadding: o, options: { commentString: s } } = t;
|
|
2814
|
-
r += a;
|
|
2815
|
-
let c = Object.assign({}, t, {
|
|
2816
|
-
indent: r,
|
|
2817
|
-
inFlow: !0,
|
|
2818
|
-
type: null
|
|
2819
|
-
}), l = !1, u = 0, d = [];
|
|
2820
|
-
for (let n = 0; n < e.length; ++n) {
|
|
2821
|
-
let i = e[n], a = null;
|
|
2822
|
-
if (G(i)) i.spaceBefore && d.push(""), $n(t, d, i.commentBefore, !1), i.comment && (a = i.comment);
|
|
2823
|
-
else if (H(i)) {
|
|
2824
|
-
let e = G(i.key) ? i.key : null;
|
|
2825
|
-
e && (e.spaceBefore && d.push(""), $n(t, d, e.commentBefore, !1), e.comment && (l = !0));
|
|
2826
|
-
let n = G(i.value) ? i.value : null;
|
|
2827
|
-
n ? (n.comment && (a = n.comment), n.commentBefore && (l = !0)) : i.value == null && e?.comment && (a = e.comment);
|
|
2828
|
-
}
|
|
2829
|
-
a && (l = !0);
|
|
2830
|
-
let o = Rn(i, c, () => a = null);
|
|
2831
|
-
l ||= d.length > u || o.includes("\n"), n < e.length - 1 ? o += "," : t.options.trailingComma && (t.options.lineWidth > 0 && (l ||= d.reduce((e, t) => e + t.length + 2, 2) + (o.length + 2) > t.options.lineWidth), l && (o += ",")), a && (o += X(o, r, s(a))), d.push(o), u = d.length;
|
|
2832
|
-
}
|
|
2833
|
-
let { start: f, end: p } = n;
|
|
2834
|
-
if (d.length === 0) return f + p;
|
|
2835
|
-
if (!l) {
|
|
2836
|
-
let e = d.reduce((e, t) => e + t.length + 2, 2);
|
|
2837
|
-
l = t.options.lineWidth > 0 && e > t.options.lineWidth;
|
|
2838
|
-
}
|
|
2839
|
-
if (l) {
|
|
2840
|
-
let e = f;
|
|
2841
|
-
for (let t of d) e += t ? `\n${a}${i}${t}` : "\n";
|
|
2842
|
-
return `${e}\n${i}${p}`;
|
|
2843
|
-
}
|
|
2844
|
-
return `${f}${o}${d.join(" ")}${o}${p}`;
|
|
2845
|
-
}
|
|
2846
|
-
function $n({ indent: e, options: { commentString: t } }, n, r, i) {
|
|
2847
|
-
if (r && i && (r = r.replace(/^\n+/, "")), r) {
|
|
2848
|
-
let i = yn(t(r), e);
|
|
2849
|
-
n.push(i.trimStart());
|
|
2850
|
-
}
|
|
2851
|
-
}
|
|
2852
|
-
//#endregion
|
|
2853
|
-
//#region node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/browser/dist/nodes/YAMLMap.js
|
|
2854
|
-
function Q(e, t) {
|
|
2855
|
-
let n = U(t) ? t.value : t;
|
|
2856
|
-
for (let r of e) if (H(r) && (r.key === t || r.key === n || U(r.key) && r.key.value === n)) return r;
|
|
2857
|
-
}
|
|
2858
|
-
var $ = class extends _n {
|
|
2859
|
-
static get tagName() {
|
|
2860
|
-
return "tag:yaml.org,2002:map";
|
|
2861
|
-
}
|
|
2862
|
-
constructor(e) {
|
|
2863
|
-
super(B, e), this.items = [];
|
|
2864
|
-
}
|
|
2865
|
-
static from(e, t, n) {
|
|
2866
|
-
let { keepUndefined: r, replacer: i } = n, a = new this(e), o = (e, o) => {
|
|
2867
|
-
if (typeof i == "function") o = i.call(t, e, o);
|
|
2868
|
-
else if (Array.isArray(i) && !i.includes(e)) return;
|
|
2869
|
-
(o !== void 0 || r) && a.items.push(Yn(e, o, n));
|
|
2870
|
-
};
|
|
2871
|
-
if (t instanceof Map) for (let [e, n] of t) o(e, n);
|
|
2872
|
-
else if (t && typeof t == "object") for (let e of Object.keys(t)) o(e, t[e]);
|
|
2873
|
-
return typeof e.sortMapEntries == "function" && a.items.sort(e.sortMapEntries), a;
|
|
2874
|
-
}
|
|
2875
|
-
add(e, t) {
|
|
2876
|
-
let n;
|
|
2877
|
-
n = H(e) ? e : !e || typeof e != "object" || !("key" in e) ? new Z(e, e?.value) : new Z(e.key, e.value);
|
|
2878
|
-
let r = Q(this.items, n.key), i = this.schema?.sortMapEntries;
|
|
2879
|
-
if (r) {
|
|
2880
|
-
if (!t) throw Error(`Key ${n.key} already set`);
|
|
2881
|
-
U(r.value) && dn(n.value) ? r.value.value = n.value : r.value = n.value;
|
|
2882
|
-
} else if (i) {
|
|
2883
|
-
let e = this.items.findIndex((e) => i(n, e) < 0);
|
|
2884
|
-
e === -1 ? this.items.push(n) : this.items.splice(e, 0, n);
|
|
2885
|
-
} else this.items.push(n);
|
|
2886
|
-
}
|
|
2887
|
-
delete(e) {
|
|
2888
|
-
let t = Q(this.items, e);
|
|
2889
|
-
return t ? this.items.splice(this.items.indexOf(t), 1).length > 0 : !1;
|
|
2890
|
-
}
|
|
2891
|
-
get(e, t) {
|
|
2892
|
-
let n = Q(this.items, e)?.value;
|
|
2893
|
-
return (!t && U(n) ? n.value : n) ?? void 0;
|
|
2894
|
-
}
|
|
2895
|
-
has(e) {
|
|
2896
|
-
return !!Q(this.items, e);
|
|
2897
|
-
}
|
|
2898
|
-
set(e, t) {
|
|
2899
|
-
this.add(new Z(e, t), !0);
|
|
2900
|
-
}
|
|
2901
|
-
toJSON(e, t, n) {
|
|
2902
|
-
let r = n ? new n() : t?.mapAsMap ? /* @__PURE__ */ new Map() : {};
|
|
2903
|
-
t?.onCreate && t.onCreate(r);
|
|
2904
|
-
for (let e of this.items) qn(t, r, e);
|
|
2905
|
-
return r;
|
|
2906
|
-
}
|
|
2907
|
-
toString(e, t, n) {
|
|
2908
|
-
if (!e) return JSON.stringify(this);
|
|
2909
|
-
for (let e of this.items) if (!H(e)) throw Error(`Map items must all be pairs; found ${JSON.stringify(e)} instead`);
|
|
2910
|
-
return !e.allNullValues && this.hasAllNullValues(!1) && (e = Object.assign({}, e, { allNullValues: !0 })), Xn(this, e, {
|
|
2911
|
-
blockItemPrefix: "",
|
|
2912
|
-
flowChars: {
|
|
2913
|
-
start: "{",
|
|
2914
|
-
end: "}"
|
|
2915
|
-
},
|
|
2916
|
-
itemIndent: e.indent || "",
|
|
2917
|
-
onChompKeep: n,
|
|
2918
|
-
onComment: t
|
|
2919
|
-
});
|
|
2920
|
-
}
|
|
2921
|
-
}, er = {
|
|
2922
|
-
collection: "map",
|
|
2923
|
-
default: !0,
|
|
2924
|
-
nodeClass: $,
|
|
2925
|
-
tag: "tag:yaml.org,2002:map",
|
|
2926
|
-
resolve(e, t) {
|
|
2927
|
-
return Xt(e) || t("Expected a mapping for this tag"), e;
|
|
2928
|
-
},
|
|
2929
|
-
createNode: (e, t, n) => $.from(e, t, n)
|
|
2930
|
-
}, tr = class extends _n {
|
|
2931
|
-
static get tagName() {
|
|
2932
|
-
return "tag:yaml.org,2002:seq";
|
|
2933
|
-
}
|
|
2934
|
-
constructor(e) {
|
|
2935
|
-
super(qt, e), this.items = [];
|
|
2936
|
-
}
|
|
2937
|
-
add(e) {
|
|
2938
|
-
this.items.push(e);
|
|
2939
|
-
}
|
|
2940
|
-
delete(e) {
|
|
2941
|
-
let t = nr(e);
|
|
2942
|
-
return typeof t == "number" && this.items.splice(t, 1).length > 0;
|
|
2943
|
-
}
|
|
2944
|
-
get(e, t) {
|
|
2945
|
-
let n = nr(e);
|
|
2946
|
-
if (typeof n != "number") return;
|
|
2947
|
-
let r = this.items[n];
|
|
2948
|
-
return !t && U(r) ? r.value : r;
|
|
2949
|
-
}
|
|
2950
|
-
has(e) {
|
|
2951
|
-
let t = nr(e);
|
|
2952
|
-
return typeof t == "number" && t < this.items.length;
|
|
2953
|
-
}
|
|
2954
|
-
set(e, t) {
|
|
2955
|
-
let n = nr(e);
|
|
2956
|
-
if (typeof n != "number") throw Error(`Expected a valid index, not ${e}.`);
|
|
2957
|
-
let r = this.items[n];
|
|
2958
|
-
U(r) && dn(t) ? r.value = t : this.items[n] = t;
|
|
2959
|
-
}
|
|
2960
|
-
toJSON(e, t) {
|
|
2961
|
-
let n = [];
|
|
2962
|
-
t?.onCreate && t.onCreate(n);
|
|
2963
|
-
let r = 0;
|
|
2964
|
-
for (let e of this.items) n.push(J(e, String(r++), t));
|
|
2965
|
-
return n;
|
|
2966
|
-
}
|
|
2967
|
-
toString(e, t, n) {
|
|
2968
|
-
return e ? Xn(this, e, {
|
|
2969
|
-
blockItemPrefix: "- ",
|
|
2970
|
-
flowChars: {
|
|
2971
|
-
start: "[",
|
|
2972
|
-
end: "]"
|
|
2973
|
-
},
|
|
2974
|
-
itemIndent: (e.indent || "") + " ",
|
|
2975
|
-
onChompKeep: n,
|
|
2976
|
-
onComment: t
|
|
2977
|
-
}) : JSON.stringify(this);
|
|
2978
|
-
}
|
|
2979
|
-
static from(e, t, n) {
|
|
2980
|
-
let { replacer: r } = n, i = new this(e);
|
|
2981
|
-
if (t && Symbol.iterator in Object(t)) {
|
|
2982
|
-
let e = 0;
|
|
2983
|
-
for (let a of t) {
|
|
2984
|
-
if (typeof r == "function") {
|
|
2985
|
-
let n = t instanceof Set ? a : String(e++);
|
|
2986
|
-
a = r.call(t, n, a);
|
|
2987
|
-
}
|
|
2988
|
-
i.items.push(mn(a, void 0, n));
|
|
2989
|
-
}
|
|
2990
|
-
}
|
|
2991
|
-
return i;
|
|
2992
|
-
}
|
|
2993
|
-
};
|
|
2994
|
-
function nr(e) {
|
|
2995
|
-
let t = U(e) ? e.value : e;
|
|
2996
|
-
return t && typeof t == "string" && (t = Number(t)), typeof t == "number" && Number.isInteger(t) && t >= 0 ? t : null;
|
|
2997
|
-
}
|
|
2998
|
-
//#endregion
|
|
2999
|
-
//#region node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/browser/dist/schema/common/seq.js
|
|
3000
|
-
var rr = {
|
|
3001
|
-
collection: "seq",
|
|
3002
|
-
default: !0,
|
|
3003
|
-
nodeClass: tr,
|
|
3004
|
-
tag: "tag:yaml.org,2002:seq",
|
|
3005
|
-
resolve(e, t) {
|
|
3006
|
-
return Zt(e) || t("Expected a sequence for this tag"), e;
|
|
3007
|
-
},
|
|
3008
|
-
createNode: (e, t, n) => tr.from(e, t, n)
|
|
3009
|
-
};
|
|
3010
|
-
//#endregion
|
|
3011
|
-
//#region node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/browser/dist/schema/json/schema.js
|
|
3012
|
-
function ir(e) {
|
|
3013
|
-
return typeof e == "bigint" || Number.isInteger(e);
|
|
3014
|
-
}
|
|
3015
|
-
var ar = ({ value: e }) => JSON.stringify(e), or = [
|
|
3016
|
-
{
|
|
3017
|
-
identify: (e) => typeof e == "string",
|
|
3018
|
-
default: !0,
|
|
3019
|
-
tag: "tag:yaml.org,2002:str",
|
|
3020
|
-
resolve: (e) => e,
|
|
3021
|
-
stringify: ar
|
|
3022
|
-
},
|
|
3023
|
-
{
|
|
3024
|
-
identify: (e) => e == null,
|
|
3025
|
-
createNode: () => new Y(null),
|
|
3026
|
-
default: !0,
|
|
3027
|
-
tag: "tag:yaml.org,2002:null",
|
|
3028
|
-
test: /^null$/,
|
|
3029
|
-
resolve: () => null,
|
|
3030
|
-
stringify: ar
|
|
3031
|
-
},
|
|
3032
|
-
{
|
|
3033
|
-
identify: (e) => typeof e == "boolean",
|
|
3034
|
-
default: !0,
|
|
3035
|
-
tag: "tag:yaml.org,2002:bool",
|
|
3036
|
-
test: /^true$|^false$/,
|
|
3037
|
-
resolve: (e) => e === "true",
|
|
3038
|
-
stringify: ar
|
|
3039
|
-
},
|
|
3040
|
-
{
|
|
3041
|
-
identify: ir,
|
|
3042
|
-
default: !0,
|
|
3043
|
-
tag: "tag:yaml.org,2002:int",
|
|
3044
|
-
test: /^-?(?:0|[1-9][0-9]*)$/,
|
|
3045
|
-
resolve: (e, t, { intAsBigInt: n }) => n ? BigInt(e) : parseInt(e, 10),
|
|
3046
|
-
stringify: ({ value: e }) => ir(e) ? e.toString() : JSON.stringify(e)
|
|
3047
|
-
},
|
|
3048
|
-
{
|
|
3049
|
-
identify: (e) => typeof e == "number",
|
|
3050
|
-
default: !0,
|
|
3051
|
-
tag: "tag:yaml.org,2002:float",
|
|
3052
|
-
test: /^-?(?:0|[1-9][0-9]*)(?:\.[0-9]*)?(?:[eE][-+]?[0-9]+)?$/,
|
|
3053
|
-
resolve: (e) => parseFloat(e),
|
|
3054
|
-
stringify: ar
|
|
3055
|
-
}
|
|
3056
|
-
];
|
|
3057
|
-
[er, rr].concat(or, {
|
|
3058
|
-
default: !0,
|
|
3059
|
-
tag: "",
|
|
3060
|
-
test: /^/,
|
|
3061
|
-
resolve(e, t) {
|
|
3062
|
-
return t(`Unresolved plain scalar ${JSON.stringify(e)}`), e;
|
|
3063
|
-
}
|
|
3064
|
-
});
|
|
3065
|
-
//#endregion
|
|
3066
|
-
//#region node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/browser/dist/schema/yaml-1.1/pairs.js
|
|
3067
|
-
function sr(e, t, n) {
|
|
3068
|
-
let { replacer: r } = n, i = new tr(e);
|
|
3069
|
-
i.tag = "tag:yaml.org,2002:pairs";
|
|
3070
|
-
let a = 0;
|
|
3071
|
-
if (t && Symbol.iterator in Object(t)) for (let e of t) {
|
|
3072
|
-
typeof r == "function" && (e = r.call(t, String(a++), e));
|
|
3073
|
-
let o, s;
|
|
3074
|
-
if (Array.isArray(e)) {
|
|
3075
|
-
if (e.length === 2) o = e[0], s = e[1];
|
|
3076
|
-
else throw TypeError(`Expected [key, value] tuple: ${e}`);
|
|
3077
|
-
} else if (e && e instanceof Object) {
|
|
3078
|
-
let t = Object.keys(e);
|
|
3079
|
-
if (t.length === 1) o = t[0], s = e[o];
|
|
3080
|
-
else throw TypeError(`Expected tuple with one key, not ${t.length} keys`);
|
|
3081
|
-
} else o = e;
|
|
3082
|
-
i.items.push(Yn(o, s, n));
|
|
3083
|
-
}
|
|
3084
|
-
return i;
|
|
3085
|
-
}
|
|
3086
|
-
//#endregion
|
|
3087
|
-
//#region node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/browser/dist/schema/yaml-1.1/omap.js
|
|
3088
|
-
var cr = class e extends tr {
|
|
3089
|
-
constructor() {
|
|
3090
|
-
super(), this.add = $.prototype.add.bind(this), this.delete = $.prototype.delete.bind(this), this.get = $.prototype.get.bind(this), this.has = $.prototype.has.bind(this), this.set = $.prototype.set.bind(this), this.tag = e.tag;
|
|
3091
|
-
}
|
|
3092
|
-
toJSON(e, t) {
|
|
3093
|
-
if (!t) return super.toJSON(e);
|
|
3094
|
-
let n = /* @__PURE__ */ new Map();
|
|
3095
|
-
t?.onCreate && t.onCreate(n);
|
|
3096
|
-
for (let e of this.items) {
|
|
3097
|
-
let r, i;
|
|
3098
|
-
if (H(e) ? (r = J(e.key, "", t), i = J(e.value, r, t)) : r = J(e, "", t), n.has(r)) throw Error("Ordered maps must not include duplicate keys");
|
|
3099
|
-
n.set(r, i);
|
|
3100
|
-
}
|
|
3101
|
-
return n;
|
|
3102
|
-
}
|
|
3103
|
-
static from(e, t, n) {
|
|
3104
|
-
let r = sr(e, t, n), i = new this();
|
|
3105
|
-
return i.items = r.items, i;
|
|
3106
|
-
}
|
|
3107
|
-
};
|
|
3108
|
-
cr.tag = "tag:yaml.org,2002:omap";
|
|
3109
|
-
//#endregion
|
|
3110
|
-
//#region node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/browser/dist/schema/yaml-1.1/set.js
|
|
3111
|
-
var lr = class e extends $ {
|
|
3112
|
-
constructor(t) {
|
|
3113
|
-
super(t), this.tag = e.tag;
|
|
3114
|
-
}
|
|
3115
|
-
add(e) {
|
|
3116
|
-
let t;
|
|
3117
|
-
t = H(e) ? e : e && typeof e == "object" && "key" in e && "value" in e && e.value === null ? new Z(e.key, null) : new Z(e, null), Q(this.items, t.key) || this.items.push(t);
|
|
3118
|
-
}
|
|
3119
|
-
get(e, t) {
|
|
3120
|
-
let n = Q(this.items, e);
|
|
3121
|
-
return !t && H(n) ? U(n.key) ? n.key.value : n.key : n;
|
|
3122
|
-
}
|
|
3123
|
-
set(e, t) {
|
|
3124
|
-
if (typeof t != "boolean") throw Error(`Expected boolean value for set(key, value) in a YAML set, not ${typeof t}`);
|
|
3125
|
-
let n = Q(this.items, e);
|
|
3126
|
-
n && !t ? this.items.splice(this.items.indexOf(n), 1) : !n && t && this.items.push(new Z(e));
|
|
3127
|
-
}
|
|
3128
|
-
toJSON(e, t) {
|
|
3129
|
-
return super.toJSON(e, t, Set);
|
|
3130
|
-
}
|
|
3131
|
-
toString(e, t, n) {
|
|
3132
|
-
if (!e) return JSON.stringify(this);
|
|
3133
|
-
if (this.hasAllNullValues(!0)) return super.toString(Object.assign({}, e, { allNullValues: !0 }), t, n);
|
|
3134
|
-
throw Error("Set items must all have null values");
|
|
3135
|
-
}
|
|
3136
|
-
static from(e, t, n) {
|
|
3137
|
-
let { replacer: r } = n, i = new this(e);
|
|
3138
|
-
if (t && Symbol.iterator in Object(t)) for (let e of t) typeof r == "function" && (e = r.call(t, e, e)), i.items.push(Yn(e, null, n));
|
|
3139
|
-
return i;
|
|
3140
|
-
}
|
|
3141
|
-
};
|
|
3142
|
-
lr.tag = "tag:yaml.org,2002:set";
|
|
3143
|
-
//#endregion
|
|
3144
|
-
//#region node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/browser/dist/parse/cst-visit.js
|
|
3145
|
-
var ur = Symbol("break visit"), dr = Symbol("skip children"), fr = Symbol("remove item");
|
|
3146
|
-
function pr(e, t) {
|
|
3147
|
-
"type" in e && e.type === "document" && (e = {
|
|
3148
|
-
start: e.start,
|
|
3149
|
-
value: e.value
|
|
3150
|
-
}), mr(Object.freeze([]), e, t);
|
|
3151
|
-
}
|
|
3152
|
-
pr.BREAK = ur, pr.SKIP = dr, pr.REMOVE = fr, pr.itemAtPath = (e, t) => {
|
|
3153
|
-
let n = e;
|
|
3154
|
-
for (let [e, r] of t) {
|
|
3155
|
-
let t = n?.[e];
|
|
3156
|
-
if (t && "items" in t) n = t.items[r];
|
|
3157
|
-
else return;
|
|
3158
|
-
}
|
|
3159
|
-
return n;
|
|
3160
|
-
}, pr.parentCollection = (e, t) => {
|
|
3161
|
-
let n = pr.itemAtPath(e, t.slice(0, -1)), r = t[t.length - 1][0], i = n?.[r];
|
|
3162
|
-
if (i && "items" in i) return i;
|
|
3163
|
-
throw Error("Parent collection not found");
|
|
3164
|
-
};
|
|
3165
|
-
function mr(e, t, n) {
|
|
3166
|
-
let r = n(t, e);
|
|
3167
|
-
if (typeof r == "symbol") return r;
|
|
3168
|
-
for (let i of ["key", "value"]) {
|
|
3169
|
-
let a = t[i];
|
|
3170
|
-
if (a && "items" in a) {
|
|
3171
|
-
for (let t = 0; t < a.items.length; ++t) {
|
|
3172
|
-
let r = mr(Object.freeze(e.concat([[i, t]])), a.items[t], n);
|
|
3173
|
-
if (typeof r == "number") t = r - 1;
|
|
3174
|
-
else if (r === ur) return ur;
|
|
3175
|
-
else r === fr && (a.items.splice(t, 1), --t);
|
|
3176
|
-
}
|
|
3177
|
-
typeof r == "function" && i === "key" && (r = r(t, e));
|
|
3178
|
-
}
|
|
3179
|
-
}
|
|
3180
|
-
return typeof r == "function" ? r(t, e) : r;
|
|
3181
|
-
}
|
|
3182
|
-
//#endregion
|
|
3183
|
-
//#region node_modules/.pnpm/@tangle-network+sandbox-ui@2.0.15_b185337ee4bca5ec0279ca525649b58b/node_modules/@tangle-network/sandbox-ui/dist/AgentGraph-CqLe8WCH.js
|
|
3184
|
-
var hr = {
|
|
3185
|
-
github: "GitHub",
|
|
3186
|
-
gitlab: "GitLab",
|
|
3187
|
-
slack: "Slack",
|
|
3188
|
-
stripe: "Stripe",
|
|
3189
|
-
notion: "Notion",
|
|
3190
|
-
linear: "Linear",
|
|
3191
|
-
discord: "Discord"
|
|
3192
|
-
};
|
|
3193
|
-
function gr(e) {
|
|
3194
|
-
return hr[e.toLowerCase()] ?? Ae(e, "title");
|
|
3195
|
-
}
|
|
3196
|
-
var _r = {
|
|
3197
|
-
"agent.run": "hsl(var(--primary))",
|
|
3198
|
-
"script.run": "var(--surface-info-text)",
|
|
3199
|
-
"sandbox.spawn": "hsl(var(--muted-foreground))",
|
|
3200
|
-
"sandbox.snapshot": "hsl(var(--muted-foreground))",
|
|
3201
|
-
"integration.invoke": "var(--surface-info-text)",
|
|
3202
|
-
"line.send": "var(--surface-info-text)",
|
|
3203
|
-
notify: "var(--surface-info-text)"
|
|
3204
|
-
}, vr = (e) => e === "waiting" ? "needs-you" : e === "skipped" ? "stopped" : e, yr = (e) => a(vr(e)), br = [
|
|
3205
|
-
"queued",
|
|
3206
|
-
"running",
|
|
3207
|
-
"waiting",
|
|
3208
|
-
"succeeded",
|
|
3209
|
-
"failed",
|
|
3210
|
-
"skipped"
|
|
3211
|
-
];
|
|
3212
|
-
`${a("running").token}`;
|
|
3213
|
-
var xr = Object.fromEntries(br.map((e) => [e, `var(${yr(e).token})`]));
|
|
3214
|
-
Object.fromEntries(br.map((e) => [e, yr(e).label])), Object.fromEntries(br.map((e) => [e, {
|
|
3215
|
-
color: xr[e],
|
|
3216
|
-
background: "transparent",
|
|
3217
|
-
borderColor: "hsl(var(--border))"
|
|
3218
|
-
}]));
|
|
3219
|
-
var Sr = {
|
|
3220
|
-
schedule: T,
|
|
3221
|
-
provider_event: ae,
|
|
3222
|
-
webhook: ae,
|
|
3223
|
-
trigger: N,
|
|
3224
|
-
"agent.run": ne,
|
|
3225
|
-
"integration.invoke": y,
|
|
3226
|
-
notify: h,
|
|
3227
|
-
parallel: o,
|
|
3228
|
-
foreach: ee,
|
|
3229
|
-
decision: re,
|
|
3230
|
-
"sandbox.spawn": _,
|
|
3231
|
-
"sandbox.snapshot": x,
|
|
3232
|
-
"script.run": D,
|
|
3233
|
-
"trace.analyze": A
|
|
3234
|
-
};
|
|
3235
|
-
function Cr({ kind: e, provider: t, model: n, accent: r, tile: i }) {
|
|
3236
|
-
let a = e && Sr[e] || C, o = !t && n ? f(n) : null, s = Math.round(i * (t ? .58 : .5));
|
|
3237
|
-
return /* @__PURE__ */ (0, P.jsx)("span", {
|
|
3238
|
-
"aria-hidden": "true",
|
|
3239
|
-
className: "flex shrink-0 items-center justify-center overflow-hidden rounded-lg border border-border",
|
|
3240
|
-
style: {
|
|
3241
|
-
width: i,
|
|
3242
|
-
height: i,
|
|
3243
|
-
background: `color-mix(in srgb, ${r} 14%, hsl(var(--card)))`
|
|
3244
|
-
},
|
|
3245
|
-
children: t ? /* @__PURE__ */ (0, P.jsx)(mt, {
|
|
3246
|
-
id: t,
|
|
3247
|
-
displayName: gr(t),
|
|
3248
|
-
size: s,
|
|
3249
|
-
className: "rounded-[3px]"
|
|
3250
|
-
}) : o ? /* @__PURE__ */ (0, P.jsx)(p, {
|
|
3251
|
-
identity: o,
|
|
3252
|
-
size: o.combined || i >= 38 ? "md" : "sm"
|
|
3253
|
-
}) : /* @__PURE__ */ (0, P.jsx)(a, {
|
|
3254
|
-
size: s,
|
|
3255
|
-
strokeWidth: 1.75,
|
|
3256
|
-
style: { color: r }
|
|
3257
|
-
})
|
|
3258
|
-
});
|
|
3259
|
-
}
|
|
3260
|
-
function wr(e, t, n) {
|
|
3261
|
-
if (t === "tree") return /* @__PURE__ */ (0, P.jsx)(Cr, {
|
|
3262
|
-
kind: "agent.run",
|
|
3263
|
-
model: e.model ?? void 0,
|
|
3264
|
-
accent: _r["agent.run"],
|
|
3265
|
-
tile: n
|
|
3266
|
-
});
|
|
3267
|
-
let r = e.model ? f(e.model) : null;
|
|
3268
|
-
return r ? /* @__PURE__ */ (0, P.jsx)("span", {
|
|
3269
|
-
className: "ag-model-mark",
|
|
3270
|
-
children: /* @__PURE__ */ (0, P.jsx)(p, {
|
|
3271
|
-
identity: r,
|
|
3272
|
-
size: "sm"
|
|
3273
|
-
})
|
|
3274
|
-
}) : /* @__PURE__ */ (0, P.jsx)(i, {
|
|
3275
|
-
size: 16,
|
|
3276
|
-
"aria-hidden": !0
|
|
3277
|
-
});
|
|
3278
|
-
}
|
|
3279
|
-
function Tr(e, t, n) {
|
|
3280
|
-
return e?.provider ? /* @__PURE__ */ (0, P.jsx)(mt, {
|
|
3281
|
-
id: e.provider,
|
|
3282
|
-
displayName: t,
|
|
3283
|
-
size: Math.round(n * .46),
|
|
3284
|
-
className: "ag-model-mark"
|
|
3285
|
-
}) : /* @__PURE__ */ (0, P.jsx)(se, {
|
|
3286
|
-
size: n * .4,
|
|
3287
|
-
"aria-hidden": !0
|
|
3288
|
-
});
|
|
3289
|
-
}
|
|
3290
|
-
function Er(e) {
|
|
3291
|
-
return /* @__PURE__ */ (0, P.jsx)(Ht, {
|
|
3292
|
-
renderAgentMark: wr,
|
|
3293
|
-
renderToolMark: Tr,
|
|
3294
|
-
...e
|
|
3295
|
-
});
|
|
3296
|
-
}
|
|
3297
|
-
//#endregion
|
|
3298
|
-
export { Ce as C, me as E, ve as S, _e as T, ce as _, qe as a, je as b, Qe as c, Fe as d, Pe as f, Le as g, ye as h, We as i, rt as l, Se as m, mt as n, at as o, xe as p, Ke as r, Ve as s, Er as t, Ie as u, ue as v, Ne as w, be as x, le as y };
|