relay-ide 0.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +259 -0
- package/dist/bin/claude-remote-cli.js +390 -0
- package/dist/bin/relay-ide.js +390 -0
- package/dist/frontend/assets/abap-BdImnpbu.js +1 -0
- package/dist/frontend/assets/actionscript-3-CoDkCxhg.js +1 -0
- package/dist/frontend/assets/ada-bCR0ucgS.js +1 -0
- package/dist/frontend/assets/andromeeda-C4gqWexZ.js +1 -0
- package/dist/frontend/assets/angular-html-DA-rfuFy.js +1 -0
- package/dist/frontend/assets/angular-ts-BrjP3tb8.js +1 -0
- package/dist/frontend/assets/apache-Pmp26Uib.js +1 -0
- package/dist/frontend/assets/apex-D8_7TLub.js +1 -0
- package/dist/frontend/assets/apl-CORt7UWP.js +1 -0
- package/dist/frontend/assets/applescript-Co6uUVPk.js +1 -0
- package/dist/frontend/assets/ara-BRHolxvo.js +1 -0
- package/dist/frontend/assets/asciidoc-Ve4PFQV2.js +1 -0
- package/dist/frontend/assets/asm-D_Q5rh1f.js +1 -0
- package/dist/frontend/assets/astro-HNnZUWAn.js +1 -0
- package/dist/frontend/assets/aurora-x-D-2ljcwZ.js +1 -0
- package/dist/frontend/assets/awk-DMzUqQB5.js +1 -0
- package/dist/frontend/assets/ayu-dark-DYE7WIF3.js +1 -0
- package/dist/frontend/assets/ayu-light-BA47KaF1.js +1 -0
- package/dist/frontend/assets/ayu-mirage-32ctXXKs.js +1 -0
- package/dist/frontend/assets/ballerina-BFfxhgS-.js +1 -0
- package/dist/frontend/assets/bat-BkioyH1T.js +1 -0
- package/dist/frontend/assets/beancount-k_qm7-4y.js +1 -0
- package/dist/frontend/assets/berry-uYugtg8r.js +1 -0
- package/dist/frontend/assets/bibtex-CHM0blh-.js +1 -0
- package/dist/frontend/assets/bicep-Bmn6On1c.js +1 -0
- package/dist/frontend/assets/bird2-BIv1doCn.js +1 -0
- package/dist/frontend/assets/blade-BjGOyj-B.js +1 -0
- package/dist/frontend/assets/bsl-BO_Y6i37.js +1 -0
- package/dist/frontend/assets/c-BIGW1oBm.js +1 -0
- package/dist/frontend/assets/c3-eo99z4R2.js +1 -0
- package/dist/frontend/assets/cadence-Bv_4Rxtq.js +1 -0
- package/dist/frontend/assets/cairo-KRGpt6FW.js +1 -0
- package/dist/frontend/assets/catppuccin-frappe-DFWUc33u.js +1 -0
- package/dist/frontend/assets/catppuccin-latte-C9dUb6Cb.js +1 -0
- package/dist/frontend/assets/catppuccin-macchiato-DQyhUUbL.js +1 -0
- package/dist/frontend/assets/catppuccin-mocha-D87Tk5Gz.js +1 -0
- package/dist/frontend/assets/clarity-D53aC0YG.js +1 -0
- package/dist/frontend/assets/clojure-P80f7IUj.js +1 -0
- package/dist/frontend/assets/cmake-D1j8_8rp.js +1 -0
- package/dist/frontend/assets/cobol-nBiQ_Alo.js +1 -0
- package/dist/frontend/assets/codeowners-Bp6g37R7.js +1 -0
- package/dist/frontend/assets/codeql-DsOJ9woJ.js +1 -0
- package/dist/frontend/assets/coffee-Ch7k5sss.js +1 -0
- package/dist/frontend/assets/common-lisp-Cg-RD9OK.js +1 -0
- package/dist/frontend/assets/coq-DkFqJrB1.js +1 -0
- package/dist/frontend/assets/cpp-CofmeUqb.js +1 -0
- package/dist/frontend/assets/crystal-DNxU26gB.js +1 -0
- package/dist/frontend/assets/csharp-COcwbKMJ.js +1 -0
- package/dist/frontend/assets/css-CLj8gQPS.js +1 -0
- package/dist/frontend/assets/csv-fuZLfV_i.js +1 -0
- package/dist/frontend/assets/cue-D82EKSYY.js +1 -0
- package/dist/frontend/assets/cypher-COkxafJQ.js +1 -0
- package/dist/frontend/assets/d-85-TOEBH.js +1 -0
- package/dist/frontend/assets/dark-plus-C3mMm8J8.js +1 -0
- package/dist/frontend/assets/dart-bE4Kk8sk.js +1 -0
- package/dist/frontend/assets/dax-CEL-wOlO.js +1 -0
- package/dist/frontend/assets/desktop-BmXAJ9_W.js +1 -0
- package/dist/frontend/assets/diff-D97Zzqfu.js +1 -0
- package/dist/frontend/assets/docker-BcOcwvcX.js +1 -0
- package/dist/frontend/assets/dotenv-Da5cRb03.js +1 -0
- package/dist/frontend/assets/dracula-BzJJZx-M.js +1 -0
- package/dist/frontend/assets/dracula-soft-BXkSAIEj.js +1 -0
- package/dist/frontend/assets/dream-maker-BtqSS_iP.js +1 -0
- package/dist/frontend/assets/edge-FbVlp4U3.js +1 -0
- package/dist/frontend/assets/elixir-CkH2-t6x.js +1 -0
- package/dist/frontend/assets/elm-DbKCFpqz.js +1 -0
- package/dist/frontend/assets/emacs-lisp-CXvaQtF9.js +1 -0
- package/dist/frontend/assets/erb-BYCe7drp.js +1 -0
- package/dist/frontend/assets/erlang-DsQrWhSR.js +1 -0
- package/dist/frontend/assets/everforest-dark-BgDCqdQA.js +1 -0
- package/dist/frontend/assets/everforest-light-C8M2exoo.js +1 -0
- package/dist/frontend/assets/fennel-BYunw83y.js +1 -0
- package/dist/frontend/assets/fish-BvzEVeQv.js +1 -0
- package/dist/frontend/assets/fluent-C4IJs8-o.js +1 -0
- package/dist/frontend/assets/fortran-fixed-form-CkoXwp7k.js +1 -0
- package/dist/frontend/assets/fortran-free-form-BxgE0vQu.js +1 -0
- package/dist/frontend/assets/fsharp-CXgrBDvD.js +1 -0
- package/dist/frontend/assets/gdresource-BOOCDP_w.js +1 -0
- package/dist/frontend/assets/gdscript-C5YyOfLZ.js +1 -0
- package/dist/frontend/assets/gdshader-DkwncUOv.js +1 -0
- package/dist/frontend/assets/genie-D0YGMca9.js +1 -0
- package/dist/frontend/assets/gherkin-DyxjwDmM.js +1 -0
- package/dist/frontend/assets/git-commit-F4YmCXRG.js +1 -0
- package/dist/frontend/assets/git-rebase-r7XF79zn.js +1 -0
- package/dist/frontend/assets/github-dark-DHJKELXO.js +1 -0
- package/dist/frontend/assets/github-dark-default-Cuk6v7N8.js +1 -0
- package/dist/frontend/assets/github-dark-dimmed-DH5Ifo-i.js +1 -0
- package/dist/frontend/assets/github-dark-high-contrast-E3gJ1_iC.js +1 -0
- package/dist/frontend/assets/github-light-DAi9KRSo.js +1 -0
- package/dist/frontend/assets/github-light-default-D7oLnXFd.js +1 -0
- package/dist/frontend/assets/github-light-high-contrast-BfjtVDDH.js +1 -0
- package/dist/frontend/assets/gleam-BspZqrRM.js +1 -0
- package/dist/frontend/assets/glimmer-js-ByusRIyA.js +1 -0
- package/dist/frontend/assets/glimmer-ts-BfAWNZQY.js +1 -0
- package/dist/frontend/assets/glsl-DplSGwfg.js +1 -0
- package/dist/frontend/assets/gn-n2N0HUVH.js +1 -0
- package/dist/frontend/assets/gnuplot-DdkO51Og.js +1 -0
- package/dist/frontend/assets/go-C27-OAKa.js +1 -0
- package/dist/frontend/assets/graphql-ChdNCCLP.js +1 -0
- package/dist/frontend/assets/groovy-gcz8RCvz.js +1 -0
- package/dist/frontend/assets/gruvbox-dark-hard-CFHQjOhq.js +1 -0
- package/dist/frontend/assets/gruvbox-dark-medium-GsRaNv29.js +1 -0
- package/dist/frontend/assets/gruvbox-dark-soft-CVdnzihN.js +1 -0
- package/dist/frontend/assets/gruvbox-light-hard-CH1njM8p.js +1 -0
- package/dist/frontend/assets/gruvbox-light-medium-DRw_LuNl.js +1 -0
- package/dist/frontend/assets/gruvbox-light-soft-hJgmCMqR.js +1 -0
- package/dist/frontend/assets/hack-i7_Ulhet.js +1 -0
- package/dist/frontend/assets/haml-D5jkg6IW.js +1 -0
- package/dist/frontend/assets/handlebars-BpdQsYii.js +1 -0
- package/dist/frontend/assets/haskell-Df6bDoY_.js +1 -0
- package/dist/frontend/assets/haxe-CzTSHFRz.js +1 -0
- package/dist/frontend/assets/hcl-BWvSN4gD.js +1 -0
- package/dist/frontend/assets/hjson-D5-asLiD.js +1 -0
- package/dist/frontend/assets/hlsl-D3lLCCz7.js +1 -0
- package/dist/frontend/assets/horizon-BUw7H-hv.js +1 -0
- package/dist/frontend/assets/horizon-bright-CUuTKBJd.js +1 -0
- package/dist/frontend/assets/houston-DnULxvSX.js +1 -0
- package/dist/frontend/assets/html-derivative-DlHx6ybY.js +1 -0
- package/dist/frontend/assets/html-pp8916En.js +1 -0
- package/dist/frontend/assets/http-jrhK8wxY.js +1 -0
- package/dist/frontend/assets/hurl-irOxFIW8.js +1 -0
- package/dist/frontend/assets/hxml-Bvhsp5Yf.js +1 -0
- package/dist/frontend/assets/hy-DFXneXwc.js +1 -0
- package/dist/frontend/assets/imba-DGztddWO.js +1 -0
- package/dist/frontend/assets/ini-BEwlwnbL.js +1 -0
- package/dist/frontend/assets/java-CylS5w8V.js +1 -0
- package/dist/frontend/assets/javascript-wDzz0qaB.js +1 -0
- package/dist/frontend/assets/jinja-f2NsQr07.js +1 -0
- package/dist/frontend/assets/jison-wvAkD_A8.js +1 -0
- package/dist/frontend/assets/json-Cp-IABpG.js +1 -0
- package/dist/frontend/assets/json5-C9tS-k6U.js +1 -0
- package/dist/frontend/assets/jsonc-Des-eS-w.js +1 -0
- package/dist/frontend/assets/jsonl-DcaNXYhu.js +1 -0
- package/dist/frontend/assets/jsonnet-DFQXde-d.js +1 -0
- package/dist/frontend/assets/jssm-C2t-YnRu.js +1 -0
- package/dist/frontend/assets/jsx-g9-lgVsj.js +1 -0
- package/dist/frontend/assets/julia-CxzCAyBv.js +1 -0
- package/dist/frontend/assets/just-VxiPbLrw.js +1 -0
- package/dist/frontend/assets/kanagawa-dragon-CkXjmgJE.js +1 -0
- package/dist/frontend/assets/kanagawa-lotus-CfQXZHmo.js +1 -0
- package/dist/frontend/assets/kanagawa-wave-DWedfzmr.js +1 -0
- package/dist/frontend/assets/kdl-DV7GczEv.js +1 -0
- package/dist/frontend/assets/kotlin-BdnUsdx6.js +1 -0
- package/dist/frontend/assets/kusto-wEQ09or8.js +1 -0
- package/dist/frontend/assets/laserwave-DUszq2jm.js +1 -0
- package/dist/frontend/assets/latex-CWtU0Tv5.js +1 -0
- package/dist/frontend/assets/lean-BZvkOJ9d.js +1 -0
- package/dist/frontend/assets/less-B1dDrJ26.js +1 -0
- package/dist/frontend/assets/light-plus-B7mTdjB0.js +1 -0
- package/dist/frontend/assets/liquid-C0sCDyMI.js +1 -0
- package/dist/frontend/assets/llvm-DjAJT7YJ.js +1 -0
- package/dist/frontend/assets/log-2UxHyX5q.js +1 -0
- package/dist/frontend/assets/logo-BtOb2qkB.js +1 -0
- package/dist/frontend/assets/lua-BaeVxFsk.js +1 -0
- package/dist/frontend/assets/luau-C-HG3fhB.js +1 -0
- package/dist/frontend/assets/main-CL5_Wlhv.css +32 -0
- package/dist/frontend/assets/main-Czet4Z1x.js +371 -0
- package/dist/frontend/assets/make-CHLpvVh8.js +1 -0
- package/dist/frontend/assets/markdown-Cvjx9yec.js +1 -0
- package/dist/frontend/assets/marko-DjSrsDqO.js +1 -0
- package/dist/frontend/assets/material-theme-D5KoaKCx.js +1 -0
- package/dist/frontend/assets/material-theme-darker-BfHTSMKl.js +1 -0
- package/dist/frontend/assets/material-theme-lighter-B0m2ddpp.js +1 -0
- package/dist/frontend/assets/material-theme-ocean-CyktbL80.js +1 -0
- package/dist/frontend/assets/material-theme-palenight-Csfq5Kiy.js +1 -0
- package/dist/frontend/assets/matlab-D7o27uSR.js +1 -0
- package/dist/frontend/assets/mdc-DTYItulj.js +1 -0
- package/dist/frontend/assets/mdx-Cmh6b_Ma.js +1 -0
- package/dist/frontend/assets/mermaid-mWjccvbQ.js +1 -0
- package/dist/frontend/assets/min-dark-CafNBF8u.js +1 -0
- package/dist/frontend/assets/min-light-CTRr51gU.js +1 -0
- package/dist/frontend/assets/mipsasm-CKIfxQSi.js +1 -0
- package/dist/frontend/assets/mojo-rZm6bMo-.js +1 -0
- package/dist/frontend/assets/monokai-D4h5O-jR.js +1 -0
- package/dist/frontend/assets/moonbit-_H4v1dQx.js +1 -0
- package/dist/frontend/assets/move-IF9eRakj.js +1 -0
- package/dist/frontend/assets/narrat-DRg8JJMk.js +1 -0
- package/dist/frontend/assets/nextflow-C-mBbutL.js +1 -0
- package/dist/frontend/assets/nextflow-groovy-vE_lwT2v.js +1 -0
- package/dist/frontend/assets/nginx-BpAMiNFr.js +1 -0
- package/dist/frontend/assets/night-owl-C39BiMTA.js +1 -0
- package/dist/frontend/assets/night-owl-light-CMTm3GFP.js +1 -0
- package/dist/frontend/assets/nim-BIad80T-.js +1 -0
- package/dist/frontend/assets/nix-CwoSXNpI.js +1 -0
- package/dist/frontend/assets/nord-Ddv68eIx.js +1 -0
- package/dist/frontend/assets/nushell-Cz2AlsmD.js +1 -0
- package/dist/frontend/assets/objective-c-DXmwc3jG.js +1 -0
- package/dist/frontend/assets/objective-cpp-CLxacb5B.js +1 -0
- package/dist/frontend/assets/ocaml-C0hk2d4L.js +1 -0
- package/dist/frontend/assets/odin-BBf5iR-q.js +1 -0
- package/dist/frontend/assets/one-dark-pro-DVMEJ2y_.js +1 -0
- package/dist/frontend/assets/one-light-C3Wv6jpd.js +1 -0
- package/dist/frontend/assets/openscad-C4EeE6gA.js +1 -0
- package/dist/frontend/assets/pascal-D93ZcfNL.js +1 -0
- package/dist/frontend/assets/perl-NvoQZIq0.js +1 -0
- package/dist/frontend/assets/php-R6g_5hLQ.js +1 -0
- package/dist/frontend/assets/pkl-u5AG7uiY.js +1 -0
- package/dist/frontend/assets/plastic-3e1v2bzS.js +1 -0
- package/dist/frontend/assets/plsql-ChMvpjG-.js +1 -0
- package/dist/frontend/assets/po-BTJTHyun.js +1 -0
- package/dist/frontend/assets/poimandres-CS3Unz2-.js +1 -0
- package/dist/frontend/assets/polar-C0HS_06l.js +1 -0
- package/dist/frontend/assets/postcss-CXtECtnM.js +1 -0
- package/dist/frontend/assets/powerquery-CEu0bR-o.js +1 -0
- package/dist/frontend/assets/powershell-Dpen1YoG.js +1 -0
- package/dist/frontend/assets/prisma-Dd19v3D-.js +1 -0
- package/dist/frontend/assets/prolog-CbFg5uaA.js +1 -0
- package/dist/frontend/assets/proto-C7zT0LnQ.js +1 -0
- package/dist/frontend/assets/pug-DKIMFp6K.js +1 -0
- package/dist/frontend/assets/puppet-BMWR74SV.js +1 -0
- package/dist/frontend/assets/purescript-CklMAg4u.js +1 -0
- package/dist/frontend/assets/python-B6aJPvgy.js +1 -0
- package/dist/frontend/assets/qml-3beO22l8.js +1 -0
- package/dist/frontend/assets/qmldir-C8lEn-DE.js +1 -0
- package/dist/frontend/assets/qss-IeuSbFQv.js +1 -0
- package/dist/frontend/assets/r-Dspwwk_N.js +1 -0
- package/dist/frontend/assets/racket-BqYA7rlc.js +1 -0
- package/dist/frontend/assets/raku-DXvB9xmW.js +1 -0
- package/dist/frontend/assets/razor-BDqjjVU7.js +1 -0
- package/dist/frontend/assets/red-bN70gL4F.js +1 -0
- package/dist/frontend/assets/reg-C-SQnVFl.js +1 -0
- package/dist/frontend/assets/regexp-CDVJQ6XC.js +1 -0
- package/dist/frontend/assets/rel-C3B-1QV4.js +1 -0
- package/dist/frontend/assets/riscv-BM1_JUlF.js +1 -0
- package/dist/frontend/assets/ron-D8l8udqQ.js +1 -0
- package/dist/frontend/assets/rose-pine-dawn-DHQR4-dF.js +1 -0
- package/dist/frontend/assets/rose-pine-moon-D4_iv3hh.js +1 -0
- package/dist/frontend/assets/rose-pine-qdsjHGoJ.js +1 -0
- package/dist/frontend/assets/rosmsg-BJDFO7_C.js +1 -0
- package/dist/frontend/assets/rst-CRjBmOyv.js +1 -0
- package/dist/frontend/assets/ruby-Wjq7vjNf.js +1 -0
- package/dist/frontend/assets/rust-B1yitclQ.js +1 -0
- package/dist/frontend/assets/sas-cz2c8ADy.js +1 -0
- package/dist/frontend/assets/sass-Cj5Yp3dK.js +1 -0
- package/dist/frontend/assets/scala-C151Ov-r.js +1 -0
- package/dist/frontend/assets/scheme-C98Dy4si.js +1 -0
- package/dist/frontend/assets/scss-D5BDwBP9.js +1 -0
- package/dist/frontend/assets/sdbl-DVxCFoDh.js +1 -0
- package/dist/frontend/assets/shaderlab-Dg9Lc6iA.js +1 -0
- package/dist/frontend/assets/shellscript-Yzrsuije.js +1 -0
- package/dist/frontend/assets/shellsession-BADoaaVG.js +1 -0
- package/dist/frontend/assets/slack-dark-BthQWCQV.js +1 -0
- package/dist/frontend/assets/slack-ochin-DqwNpetd.js +1 -0
- package/dist/frontend/assets/smalltalk-BERRCDM3.js +1 -0
- package/dist/frontend/assets/snazzy-light-Bw305WKR.js +1 -0
- package/dist/frontend/assets/solarized-dark-DXbdFlpD.js +1 -0
- package/dist/frontend/assets/solarized-light-L9t79GZl.js +1 -0
- package/dist/frontend/assets/solidity-rGO070M0.js +1 -0
- package/dist/frontend/assets/soy-8wufbnw4.js +1 -0
- package/dist/frontend/assets/sparql-rVzFXLq3.js +1 -0
- package/dist/frontend/assets/splunk-BtCnVYZw.js +1 -0
- package/dist/frontend/assets/sql-BLtJtn59.js +1 -0
- package/dist/frontend/assets/ssh-config-_ykCGR6B.js +1 -0
- package/dist/frontend/assets/stata-BH5u7GGu.js +1 -0
- package/dist/frontend/assets/stylus-BEDo0Tqx.js +1 -0
- package/dist/frontend/assets/surrealql-Bq5Q-fJD.js +1 -0
- package/dist/frontend/assets/svelte-Cy7k_4gC.js +1 -0
- package/dist/frontend/assets/swift-D82vCrfD.js +1 -0
- package/dist/frontend/assets/synthwave-84-CbfX1IO0.js +1 -0
- package/dist/frontend/assets/system-verilog-CnnmHF94.js +1 -0
- package/dist/frontend/assets/systemd-4A_iFExJ.js +1 -0
- package/dist/frontend/assets/talonscript-CkByrt1z.js +1 -0
- package/dist/frontend/assets/tasl-QIJgUcNo.js +1 -0
- package/dist/frontend/assets/tcl-dwOrl1Do.js +1 -0
- package/dist/frontend/assets/templ-DhtptRzy.js +1 -0
- package/dist/frontend/assets/terraform-BETggiCN.js +1 -0
- package/dist/frontend/assets/tex-idrVyKtj.js +1 -0
- package/dist/frontend/assets/tokyo-night-hegEt444.js +1 -0
- package/dist/frontend/assets/toml-vGWfd6FD.js +1 -0
- package/dist/frontend/assets/ts-tags-DQrlYJgV.js +1 -0
- package/dist/frontend/assets/tsv-B_m7g4N7.js +1 -0
- package/dist/frontend/assets/tsx-COt5Ahok.js +1 -0
- package/dist/frontend/assets/turtle-BsS91CYL.js +1 -0
- package/dist/frontend/assets/twig-xg9kU7Mw.js +1 -0
- package/dist/frontend/assets/typescript-BPQ3VLAy.js +1 -0
- package/dist/frontend/assets/typespec-CAFt9gP4.js +1 -0
- package/dist/frontend/assets/typst-DHCkPAjA.js +1 -0
- package/dist/frontend/assets/v-BcVCzyr7.js +1 -0
- package/dist/frontend/assets/vala-CsfeWuGM.js +1 -0
- package/dist/frontend/assets/vb-D17OF-Vu.js +1 -0
- package/dist/frontend/assets/verilog-BQ8w6xss.js +1 -0
- package/dist/frontend/assets/vesper-DU1UobuO.js +1 -0
- package/dist/frontend/assets/vhdl-CeAyd5Ju.js +1 -0
- package/dist/frontend/assets/viml-CJc9bBzg.js +1 -0
- package/dist/frontend/assets/vitesse-black-Bkuqu6BP.js +1 -0
- package/dist/frontend/assets/vitesse-dark-D0r3Knsf.js +1 -0
- package/dist/frontend/assets/vitesse-light-CVO1_9PV.js +1 -0
- package/dist/frontend/assets/vue-D2xRrEX4.js +1 -0
- package/dist/frontend/assets/vue-html-AaS7Mt5G.js +1 -0
- package/dist/frontend/assets/vue-vine-BoDAl6tE.js +1 -0
- package/dist/frontend/assets/vyper-CDx5xZoG.js +1 -0
- package/dist/frontend/assets/wasm-CG6Dc4jp.js +1 -0
- package/dist/frontend/assets/wasm-MzD3tlZU.js +1 -0
- package/dist/frontend/assets/wenyan-BV7otONQ.js +1 -0
- package/dist/frontend/assets/wgsl-Dx-B1_4e.js +1 -0
- package/dist/frontend/assets/wikitext-BhOHFoWU.js +1 -0
- package/dist/frontend/assets/wit-5i3qLPDT.js +1 -0
- package/dist/frontend/assets/wolfram-lXgVvXCa.js +1 -0
- package/dist/frontend/assets/xml-sdJ4AIDG.js +1 -0
- package/dist/frontend/assets/xsl-CtQFsRM5.js +1 -0
- package/dist/frontend/assets/yaml-Buea-lGh.js +1 -0
- package/dist/frontend/assets/zenscript-DVFEvuxE.js +1 -0
- package/dist/frontend/assets/zig-VOosw3JB.js +1 -0
- package/dist/frontend/icon-192.png +0 -0
- package/dist/frontend/icon-512.png +0 -0
- package/dist/frontend/icon.svg +8 -0
- package/dist/frontend/index.html +30 -0
- package/dist/frontend/manifest.json +25 -0
- package/dist/frontend/sw.js +66 -0
- package/dist/server/agent-events.js +39 -0
- package/dist/server/analytics.js +885 -0
- package/dist/server/auth.js +65 -0
- package/dist/server/belayer/executor.js +200 -0
- package/dist/server/belayer/intake.js +27 -0
- package/dist/server/belayer/pipeline.js +97 -0
- package/dist/server/belayer/pr-lifecycle.js +69 -0
- package/dist/server/belayer/prompts.js +154 -0
- package/dist/server/belayer/types.js +23 -0
- package/dist/server/branch-linker.js +137 -0
- package/dist/server/browser-content.js +145 -0
- package/dist/server/clipboard.js +63 -0
- package/dist/server/codex-hooks-adapter.js +93 -0
- package/dist/server/config.js +325 -0
- package/dist/server/gh-routes.js +163 -0
- package/dist/server/gh.js +276 -0
- package/dist/server/git-routes.js +154 -0
- package/dist/server/git.js +694 -0
- package/dist/server/github-app.js +218 -0
- package/dist/server/github-graphql.js +178 -0
- package/dist/server/hooks.js +373 -0
- package/dist/server/index.js +1549 -0
- package/dist/server/integration-github.js +137 -0
- package/dist/server/integration-jira.js +210 -0
- package/dist/server/integration-linear.js +176 -0
- package/dist/server/logger.js +18 -0
- package/dist/server/mobile-input-pipeline.js +129 -0
- package/dist/server/opencode-relay.js +53 -0
- package/dist/server/org-dashboard.js +241 -0
- package/dist/server/output-parsers/claude-parser.js +56 -0
- package/dist/server/output-parsers/codex-parser.js +13 -0
- package/dist/server/output-parsers/index.js +14 -0
- package/dist/server/output-parsers/null-parser.js +12 -0
- package/dist/server/output-parsers/opencode-parser.js +77 -0
- package/dist/server/pty-handler.js +586 -0
- package/dist/server/push.js +84 -0
- package/dist/server/review-poller.js +237 -0
- package/dist/server/sdk-handler.js +539 -0
- package/dist/server/service.js +189 -0
- package/dist/server/sessions.js +638 -0
- package/dist/server/telemetry.js +236 -0
- package/dist/server/ticket-transitions.js +166 -0
- package/dist/server/types.js +146 -0
- package/dist/server/utils.js +23 -0
- package/dist/server/watcher.js +661 -0
- package/dist/server/webhook-manager.js +547 -0
- package/dist/server/webhooks.js +73 -0
- package/dist/server/workspace-groups.js +363 -0
- package/dist/server/workspaces.js +1207 -0
- package/dist/server/ws.js +192 -0
- package/dist/test/EmptyState.spec.js +51 -0
- package/dist/test/action-coverage.test.js +139 -0
- package/dist/test/actions/registry.test.js +59 -0
- package/dist/test/actions/shortcuts.test.js +79 -0
- package/dist/test/agent-events.test.js +151 -0
- package/dist/test/analytics.test.js +158 -0
- package/dist/test/attention.test.js +91 -0
- package/dist/test/auth.test.js +105 -0
- package/dist/test/backend-state.test.js +47 -0
- package/dist/test/belayer-executor.test.js +33 -0
- package/dist/test/belayer-intake.test.js +44 -0
- package/dist/test/belayer-pipeline.test.js +113 -0
- package/dist/test/belayer-pr-lifecycle.test.js +26 -0
- package/dist/test/belayer-prompts.test.js +60 -0
- package/dist/test/belayer-types.test.js +69 -0
- package/dist/test/bin/claude-remote-cli.js +214 -0
- package/dist/test/boot-state.test.js +133 -0
- package/dist/test/branch-lifecycle.test.js +75 -0
- package/dist/test/branch-linker.test.js +236 -0
- package/dist/test/branch-rename.test.js +45 -0
- package/dist/test/branch-watcher.test.js +115 -0
- package/dist/test/browser-cli.test.js +91 -0
- package/dist/test/browser-content.test.js +93 -0
- package/dist/test/browser-tabs-ui.test.js +39 -0
- package/dist/test/changed-files-api.test.js +140 -0
- package/dist/test/clipboard.test.js +12 -0
- package/dist/test/codex-hooks-adapter.test.js +237 -0
- package/dist/test/components/EmptyState.spec.js +51 -0
- package/dist/test/components/ErrorToast.spec.js +65 -0
- package/dist/test/components/TuiCheckbox.spec.js +120 -0
- package/dist/test/components/TuiInput.spec.js +186 -0
- package/dist/test/components/leaf-component-migration.spec.js +104 -0
- package/dist/test/config-freshness.test.js +63 -0
- package/dist/test/config.test.js +813 -0
- package/dist/test/diff-summary.test.js +98 -0
- package/dist/test/display-state.test.js +179 -0
- package/dist/test/event-message-types.test.js +32 -0
- package/dist/test/file-tree-utils.test.js +167 -0
- package/dist/test/framework-types.test.js +183 -0
- package/dist/test/frameworks-api.test.js +93 -0
- package/dist/test/frontend/src/lib/pr-state.js +114 -0
- package/dist/test/fs-browse.test.js +246 -0
- package/dist/test/fuzzy-scorer.test.js +145 -0
- package/dist/test/gh-routes.test.js +156 -0
- package/dist/test/git-changed-files.test.js +152 -0
- package/dist/test/git-routes.test.js +146 -0
- package/dist/test/git-utils.test.js +68 -0
- package/dist/test/git-watcher.test.js +110 -0
- package/dist/test/git.test.js +140 -0
- package/dist/test/github-app.test.js +455 -0
- package/dist/test/github-graphql.test.js +301 -0
- package/dist/test/greetings.test.js +83 -0
- package/dist/test/hooks-agent-event.test.js +412 -0
- package/dist/test/hooks.test.js +149 -0
- package/dist/test/integration-github.test.js +220 -0
- package/dist/test/integration-jira.test.js +238 -0
- package/dist/test/integration-linear.test.js +293 -0
- package/dist/test/mobile-input.test.js +235 -0
- package/dist/test/opencode-relay.test.js +107 -0
- package/dist/test/org-dashboard.test.js +349 -0
- package/dist/test/output-parser.test.js +217 -0
- package/dist/test/paths.test.js +32 -0
- package/dist/test/pr-state.test.js +407 -0
- package/dist/test/pr-status.test.js +82 -0
- package/dist/test/presets.test.js +242 -0
- package/dist/test/pty-handler-multi-agent.test.js +149 -0
- package/dist/test/pty-handler.test.js +146 -0
- package/dist/test/pull-requests.test.js +78 -0
- package/dist/test/review-poller.test.js +349 -0
- package/dist/test/server/analytics.js +121 -0
- package/dist/test/server/auth.js +63 -0
- package/dist/test/server/branch-linker.js +124 -0
- package/dist/test/server/clipboard.js +56 -0
- package/dist/test/server/config.js +137 -0
- package/dist/test/server/git.js +308 -0
- package/dist/test/server/hooks.js +196 -0
- package/dist/test/server/index.js +1124 -0
- package/dist/test/server/integration-github.js +117 -0
- package/dist/test/server/integration-jira.js +164 -0
- package/dist/test/server/integration-linear.js +176 -0
- package/dist/test/server/mobile-input-pipeline.js +123 -0
- package/dist/test/server/org-dashboard.js +184 -0
- package/dist/test/server/output-parsers/claude-parser.js +54 -0
- package/dist/test/server/output-parsers/codex-parser.js +13 -0
- package/dist/test/server/output-parsers/index.js +7 -0
- package/dist/test/server/pty-handler.js +310 -0
- package/dist/test/server/push.js +80 -0
- package/dist/test/server/review-poller.js +218 -0
- package/dist/test/server/service.js +169 -0
- package/dist/test/server/sessions.js +434 -0
- package/dist/test/server/ticket-transitions.js +216 -0
- package/dist/test/server/types.js +20 -0
- package/dist/test/server/utils.js +22 -0
- package/dist/test/server/watcher.js +139 -0
- package/dist/test/server/workspaces.js +657 -0
- package/dist/test/server/ws.js +152 -0
- package/dist/test/server-startup.test.js +62 -0
- package/dist/test/service.test.js +43 -0
- package/dist/test/session-analytics-api.test.js +123 -0
- package/dist/test/session-analytics.test.js +425 -0
- package/dist/test/session-intent.test.js +249 -0
- package/dist/test/sessions.test.js +1152 -0
- package/dist/test/sidebar-items.test.js +164 -0
- package/dist/test/stores/boot-state-store.test.js +165 -0
- package/dist/test/stores/sessions-logic.test.js +191 -0
- package/dist/test/stores/toasts-store.test.js +66 -0
- package/dist/test/stores/ui-store.test.js +203 -0
- package/dist/test/stores/unread-store.test.js +97 -0
- package/dist/test/telemetry-api.test.js +54 -0
- package/dist/test/telemetry-sync.test.js +68 -0
- package/dist/test/telemetry.test.js +295 -0
- package/dist/test/terminal-zoom.test.js +102 -0
- package/dist/test/test/analytics.test.js +152 -0
- package/dist/test/test/auth.test.js +95 -0
- package/dist/test/test/branch-linker.test.js +231 -0
- package/dist/test/test/branch-rename.test.js +45 -0
- package/dist/test/test/clipboard.test.js +12 -0
- package/dist/test/test/config.test.js +281 -0
- package/dist/test/test/fs-browse.test.js +202 -0
- package/dist/test/test/git.test.js +67 -0
- package/dist/test/test/hooks.test.js +139 -0
- package/dist/test/test/integration-github.test.js +203 -0
- package/dist/test/test/integration-jira.test.js +294 -0
- package/dist/test/test/integration-linear.test.js +293 -0
- package/dist/test/test/mobile-input.test.js +193 -0
- package/dist/test/test/org-dashboard.test.js +240 -0
- package/dist/test/test/output-parser.test.js +95 -0
- package/dist/test/test/paths.test.js +32 -0
- package/dist/test/test/pr-state.test.js +220 -0
- package/dist/test/test/pull-requests.test.js +67 -0
- package/dist/test/test/review-poller.test.js +235 -0
- package/dist/test/test/service.test.js +43 -0
- package/dist/test/test/sessions.test.js +750 -0
- package/dist/test/test/ticket-transitions.test.js +130 -0
- package/dist/test/test/version.test.js +34 -0
- package/dist/test/test/worktrees.test.js +256 -0
- package/dist/test/ticket-transitions.test.js +312 -0
- package/dist/test/unread.test.js +23 -0
- package/dist/test/version.test.js +34 -0
- package/dist/test/webhook-manager.test.js +484 -0
- package/dist/test/webhooks.test.js +208 -0
- package/dist/test/workspace-groups.test.js +377 -0
- package/dist/test/worktrees.test.js +531 -0
- package/package.json +88 -0
|
@@ -0,0 +1,156 @@
|
|
|
1
|
+
import { describe, it } from 'node:test';
|
|
2
|
+
import assert from 'node:assert/strict';
|
|
3
|
+
import { enrichBranches } from '../server/gh-routes.js';
|
|
4
|
+
function makeExec(responses) {
|
|
5
|
+
return async (file, args, _opts) => {
|
|
6
|
+
const key = `${file} ${args.slice(0, 3).join(' ')}`;
|
|
7
|
+
for (const [pattern, response] of Object.entries(responses)) {
|
|
8
|
+
if (key.startsWith(pattern)) {
|
|
9
|
+
return { stdout: response.stdout, stderr: response.stderr ?? '' };
|
|
10
|
+
}
|
|
11
|
+
}
|
|
12
|
+
throw new Error(`unexpected exec: ${file} ${args.join(' ')}`);
|
|
13
|
+
};
|
|
14
|
+
}
|
|
15
|
+
describe('enrichBranches', () => {
|
|
16
|
+
it('returns PR + staleness per branch keyed by repoPath::branchName', async () => {
|
|
17
|
+
const prList = JSON.stringify([
|
|
18
|
+
{
|
|
19
|
+
number: 42,
|
|
20
|
+
title: 'Add login',
|
|
21
|
+
url: 'https://github.com/o/r/pull/42',
|
|
22
|
+
state: 'OPEN',
|
|
23
|
+
headRefName: 'feat/login',
|
|
24
|
+
baseRefName: 'main',
|
|
25
|
+
isDraft: false,
|
|
26
|
+
reviewDecision: 'APPROVED',
|
|
27
|
+
additions: 10,
|
|
28
|
+
deletions: 2,
|
|
29
|
+
mergeable: 'MERGEABLE',
|
|
30
|
+
updatedAt: new Date().toISOString(),
|
|
31
|
+
},
|
|
32
|
+
]);
|
|
33
|
+
const results = await enrichBranches([{ repoPath: '/repos/my-repo', branchName: 'feat/login' }], makeExec({
|
|
34
|
+
'gh pr list': { stdout: prList },
|
|
35
|
+
'git rev-list': { stdout: '3\n' },
|
|
36
|
+
}));
|
|
37
|
+
const key = '/repos/my-repo::feat/login';
|
|
38
|
+
assert.ok(results[key], `expected key ${key} in results`);
|
|
39
|
+
assert.equal(results[key].pr.number, 42);
|
|
40
|
+
assert.equal(results[key].stale, false);
|
|
41
|
+
});
|
|
42
|
+
it('handles partial failure (one repo fails, others succeed)', async () => {
|
|
43
|
+
const prList = JSON.stringify([
|
|
44
|
+
{
|
|
45
|
+
number: 1,
|
|
46
|
+
title: 'Fix',
|
|
47
|
+
url: 'https://github.com/o/r/pull/1',
|
|
48
|
+
state: 'OPEN',
|
|
49
|
+
headRefName: 'fix/bug',
|
|
50
|
+
baseRefName: 'main',
|
|
51
|
+
isDraft: false,
|
|
52
|
+
reviewDecision: null,
|
|
53
|
+
additions: 1,
|
|
54
|
+
deletions: 1,
|
|
55
|
+
mergeable: 'MERGEABLE',
|
|
56
|
+
updatedAt: new Date().toISOString(),
|
|
57
|
+
},
|
|
58
|
+
]);
|
|
59
|
+
const exec = async (file, args, opts) => {
|
|
60
|
+
if (opts.cwd === '/repos/bad-repo' && file === 'gh') {
|
|
61
|
+
throw new Error('gh: not logged in');
|
|
62
|
+
}
|
|
63
|
+
if (file === 'gh' && args[0] === 'pr' && args[1] === 'list') {
|
|
64
|
+
return { stdout: prList, stderr: '' };
|
|
65
|
+
}
|
|
66
|
+
if (file === 'git' && args[0] === 'rev-list') {
|
|
67
|
+
return { stdout: '1\n', stderr: '' };
|
|
68
|
+
}
|
|
69
|
+
throw new Error(`unexpected: ${file} ${args.join(' ')}`);
|
|
70
|
+
};
|
|
71
|
+
const results = await enrichBranches([
|
|
72
|
+
{ repoPath: '/repos/good-repo', branchName: 'fix/bug' },
|
|
73
|
+
{ repoPath: '/repos/bad-repo', branchName: 'feat/x' },
|
|
74
|
+
], exec);
|
|
75
|
+
// Good repo should have data
|
|
76
|
+
assert.ok(results['/repos/good-repo::fix/bug']);
|
|
77
|
+
assert.equal(results['/repos/good-repo::fix/bug'].pr.number, 1);
|
|
78
|
+
// Bad repo should have null pr and default stale=false
|
|
79
|
+
assert.equal(results['/repos/bad-repo::feat/x'].pr, null);
|
|
80
|
+
assert.equal(results['/repos/bad-repo::feat/x'].stale, false);
|
|
81
|
+
});
|
|
82
|
+
it('returns empty results for empty input', async () => {
|
|
83
|
+
const results = await enrichBranches([], async () => ({
|
|
84
|
+
stdout: '',
|
|
85
|
+
stderr: '',
|
|
86
|
+
}));
|
|
87
|
+
assert.deepEqual(results, {});
|
|
88
|
+
});
|
|
89
|
+
it('degrades when gh CLI is missing (ENOENT)', async () => {
|
|
90
|
+
const exec = async (file, args) => {
|
|
91
|
+
if (file === 'gh') {
|
|
92
|
+
const err = new Error('spawn gh ENOENT');
|
|
93
|
+
err.code = 'ENOENT';
|
|
94
|
+
throw err;
|
|
95
|
+
}
|
|
96
|
+
if (file === 'git' && args[0] === 'rev-list') {
|
|
97
|
+
return { stdout: '0\n', stderr: '' };
|
|
98
|
+
}
|
|
99
|
+
throw new Error(`unexpected: ${file} ${args.join(' ')}`);
|
|
100
|
+
};
|
|
101
|
+
const results = await enrichBranches([{ repoPath: '/repos/my-repo', branchName: 'feat/x' }], exec);
|
|
102
|
+
const entry = results['/repos/my-repo::feat/x'];
|
|
103
|
+
assert.equal(entry.pr, null);
|
|
104
|
+
assert.equal(entry.stale, true); // 0 commits ahead = stale
|
|
105
|
+
});
|
|
106
|
+
it('batches PR lookups per unique repo (one gh call per repo)', async () => {
|
|
107
|
+
const callLog = [];
|
|
108
|
+
const prList = JSON.stringify([
|
|
109
|
+
{
|
|
110
|
+
number: 1,
|
|
111
|
+
title: 'A',
|
|
112
|
+
url: 'u',
|
|
113
|
+
state: 'OPEN',
|
|
114
|
+
headRefName: 'a',
|
|
115
|
+
baseRefName: 'main',
|
|
116
|
+
isDraft: false,
|
|
117
|
+
reviewDecision: null,
|
|
118
|
+
additions: 0,
|
|
119
|
+
deletions: 0,
|
|
120
|
+
mergeable: 'MERGEABLE',
|
|
121
|
+
updatedAt: new Date().toISOString(),
|
|
122
|
+
},
|
|
123
|
+
{
|
|
124
|
+
number: 2,
|
|
125
|
+
title: 'B',
|
|
126
|
+
url: 'u',
|
|
127
|
+
state: 'OPEN',
|
|
128
|
+
headRefName: 'b',
|
|
129
|
+
baseRefName: 'main',
|
|
130
|
+
isDraft: false,
|
|
131
|
+
reviewDecision: null,
|
|
132
|
+
additions: 0,
|
|
133
|
+
deletions: 0,
|
|
134
|
+
mergeable: 'MERGEABLE',
|
|
135
|
+
updatedAt: new Date().toISOString(),
|
|
136
|
+
},
|
|
137
|
+
]);
|
|
138
|
+
const exec = async (file, args, opts) => {
|
|
139
|
+
callLog.push(`${file} ${args[0]} ${args[1] ?? ''} [${opts.cwd}]`);
|
|
140
|
+
if (file === 'gh' && args[0] === 'pr' && args[1] === 'list') {
|
|
141
|
+
return { stdout: prList, stderr: '' };
|
|
142
|
+
}
|
|
143
|
+
if (file === 'git' && args[0] === 'rev-list') {
|
|
144
|
+
return { stdout: '1\n', stderr: '' };
|
|
145
|
+
}
|
|
146
|
+
throw new Error(`unexpected`);
|
|
147
|
+
};
|
|
148
|
+
await enrichBranches([
|
|
149
|
+
{ repoPath: '/repos/repo1', branchName: 'a' },
|
|
150
|
+
{ repoPath: '/repos/repo1', branchName: 'b' },
|
|
151
|
+
], exec);
|
|
152
|
+
// Should have exactly 1 gh pr list call for repo1 (not 2)
|
|
153
|
+
const ghCalls = callLog.filter((c) => c.startsWith('gh pr list'));
|
|
154
|
+
assert.equal(ghCalls.length, 1, `expected 1 gh pr list call, got ${ghCalls.length}`);
|
|
155
|
+
});
|
|
156
|
+
});
|
|
@@ -0,0 +1,152 @@
|
|
|
1
|
+
import { describe, it } from 'node:test';
|
|
2
|
+
import assert from 'node:assert/strict';
|
|
3
|
+
import { getChangedFiles, getFileDiff, getDefaultBranch, } from '../server/git.js';
|
|
4
|
+
describe('getChangedFiles', () => {
|
|
5
|
+
it('parses working tree changes from git status + numstat', async () => {
|
|
6
|
+
const files = await getChangedFiles('/tmp/repo', undefined, async (file, args, _opts) => {
|
|
7
|
+
if (args[0] === 'status') {
|
|
8
|
+
return {
|
|
9
|
+
stdout: ' M server/git.ts\0?? frontend/new.svelte\0 D old-file.js\0',
|
|
10
|
+
stderr: '',
|
|
11
|
+
};
|
|
12
|
+
}
|
|
13
|
+
if (args[0] === 'diff' && args.includes('--numstat')) {
|
|
14
|
+
return { stdout: '15\t3\tserver/git.ts\n', stderr: '' };
|
|
15
|
+
}
|
|
16
|
+
if (file === 'wc') {
|
|
17
|
+
return { stdout: ' 42 frontend/new.svelte', stderr: '' };
|
|
18
|
+
}
|
|
19
|
+
return { stdout: '', stderr: '' };
|
|
20
|
+
});
|
|
21
|
+
assert.equal(files.length, 3);
|
|
22
|
+
const gitTs = files.find((f) => f.path === 'server/git.ts');
|
|
23
|
+
assert.ok(gitTs);
|
|
24
|
+
assert.equal(gitTs.status, 'modified');
|
|
25
|
+
assert.equal(gitTs.additions, 15);
|
|
26
|
+
assert.equal(gitTs.deletions, 3);
|
|
27
|
+
assert.equal(gitTs.directory, 'server');
|
|
28
|
+
const newFile = files.find((f) => f.path === 'frontend/new.svelte');
|
|
29
|
+
assert.ok(newFile);
|
|
30
|
+
assert.equal(newFile.status, 'untracked');
|
|
31
|
+
assert.equal(newFile.additions, 42);
|
|
32
|
+
assert.equal(newFile.directory, 'frontend');
|
|
33
|
+
const deleted = files.find((f) => f.path === 'old-file.js');
|
|
34
|
+
assert.ok(deleted);
|
|
35
|
+
assert.equal(deleted.status, 'deleted');
|
|
36
|
+
assert.equal(deleted.directory, '.');
|
|
37
|
+
});
|
|
38
|
+
it('parses branch comparison with renames', async () => {
|
|
39
|
+
const files = await getChangedFiles('/tmp/repo', 'main', async (_file, args, _opts) => {
|
|
40
|
+
if (args[0] === 'diff' && args.includes('--name-status')) {
|
|
41
|
+
return {
|
|
42
|
+
stdout: 'M\tserver/git.ts\nA\tnew-file.ts\nR100\told-name.ts\tnew-name.ts\n',
|
|
43
|
+
stderr: '',
|
|
44
|
+
};
|
|
45
|
+
}
|
|
46
|
+
if (args[0] === 'diff' && args.includes('--numstat')) {
|
|
47
|
+
return {
|
|
48
|
+
stdout: '10\t2\tserver/git.ts\n50\t0\tnew-file.ts\n5\t5\tnew-name.ts\n',
|
|
49
|
+
stderr: '',
|
|
50
|
+
};
|
|
51
|
+
}
|
|
52
|
+
return { stdout: '', stderr: '' };
|
|
53
|
+
});
|
|
54
|
+
assert.equal(files.length, 3);
|
|
55
|
+
const renamed = files.find((f) => f.path === 'new-name.ts');
|
|
56
|
+
assert.ok(renamed);
|
|
57
|
+
assert.equal(renamed.status, 'renamed');
|
|
58
|
+
assert.equal(renamed.oldPath, 'old-name.ts');
|
|
59
|
+
});
|
|
60
|
+
it('throws on git failure', async () => {
|
|
61
|
+
await assert.rejects(() => getChangedFiles('/tmp/repo', undefined, async () => {
|
|
62
|
+
throw new Error('not a git repo');
|
|
63
|
+
}), { message: 'not a git repo' });
|
|
64
|
+
});
|
|
65
|
+
});
|
|
66
|
+
describe('getFileDiff', () => {
|
|
67
|
+
it('returns working tree diff for a file', async () => {
|
|
68
|
+
const diff = await getFileDiff('/tmp/repo', 'server/git.ts', undefined, async (_file, args) => {
|
|
69
|
+
assert.equal(args[0], 'diff');
|
|
70
|
+
assert.ok(args.includes('--unified=3'));
|
|
71
|
+
assert.ok(args.includes('--find-renames'));
|
|
72
|
+
assert.ok(args.includes('--'));
|
|
73
|
+
assert.ok(args.includes('server/git.ts'));
|
|
74
|
+
return {
|
|
75
|
+
stdout: 'diff --git a/server/git.ts b/server/git.ts\n--- a/server/git.ts\n+++ b/server/git.ts\n@@ -1,3 +1,4 @@\n+new line\n old\n',
|
|
76
|
+
stderr: '',
|
|
77
|
+
};
|
|
78
|
+
});
|
|
79
|
+
assert.ok(diff.includes('new line'));
|
|
80
|
+
});
|
|
81
|
+
it('returns staged diff when base is "cached"', async () => {
|
|
82
|
+
const diff = await getFileDiff('/tmp/repo', 'file.ts', 'cached', async (_file, args) => {
|
|
83
|
+
assert.ok(args.includes('--cached'));
|
|
84
|
+
return { stdout: 'staged diff output', stderr: '' };
|
|
85
|
+
});
|
|
86
|
+
assert.equal(diff, 'staged diff output');
|
|
87
|
+
});
|
|
88
|
+
it('returns branch comparison diff', async () => {
|
|
89
|
+
const diff = await getFileDiff('/tmp/repo', 'file.ts', 'main', async (_file, args) => {
|
|
90
|
+
assert.ok(args.includes('main...HEAD'));
|
|
91
|
+
return { stdout: 'branch diff output', stderr: '' };
|
|
92
|
+
});
|
|
93
|
+
assert.equal(diff, 'branch diff output');
|
|
94
|
+
});
|
|
95
|
+
it('falls back to --no-index for untracked files when first diff is empty', async () => {
|
|
96
|
+
let callCount = 0;
|
|
97
|
+
const diff = await getFileDiff('/tmp/repo', 'new-file.ts', undefined, async (_file, args) => {
|
|
98
|
+
callCount++;
|
|
99
|
+
if (callCount === 1) {
|
|
100
|
+
// First call: git diff returns empty (untracked file)
|
|
101
|
+
return { stdout: '', stderr: '' };
|
|
102
|
+
}
|
|
103
|
+
// Second call: git diff --no-index exits with code 1 but has stdout
|
|
104
|
+
assert.ok(args.includes('--no-index'));
|
|
105
|
+
const err = new Error('exit code 1');
|
|
106
|
+
err.stdout =
|
|
107
|
+
'diff --git a/dev/null b/new-file.ts\n+++ b/new-file.ts\n+content\n';
|
|
108
|
+
throw err;
|
|
109
|
+
});
|
|
110
|
+
assert.ok(diff.includes('+content'));
|
|
111
|
+
assert.equal(callCount, 2);
|
|
112
|
+
});
|
|
113
|
+
it('throws on git failure', async () => {
|
|
114
|
+
await assert.rejects(() => getFileDiff('/tmp/repo', 'file.ts', undefined, async () => {
|
|
115
|
+
throw new Error('git failed');
|
|
116
|
+
}), { message: 'git failed' });
|
|
117
|
+
});
|
|
118
|
+
});
|
|
119
|
+
describe('getDefaultBranch', () => {
|
|
120
|
+
it('returns default branch from symbolic-ref', async () => {
|
|
121
|
+
const branch = await getDefaultBranch('/tmp/repo', async (_file, args) => {
|
|
122
|
+
if (args[0] === 'symbolic-ref') {
|
|
123
|
+
return { stdout: 'refs/remotes/origin/main\n', stderr: '' };
|
|
124
|
+
}
|
|
125
|
+
return { stdout: '', stderr: '' };
|
|
126
|
+
});
|
|
127
|
+
assert.equal(branch, 'main');
|
|
128
|
+
});
|
|
129
|
+
it('falls back to checking rev-parse for main then master', async () => {
|
|
130
|
+
const branch = await getDefaultBranch('/tmp/repo', async (_file, args) => {
|
|
131
|
+
if (args[0] === 'symbolic-ref') {
|
|
132
|
+
throw new Error('not set');
|
|
133
|
+
}
|
|
134
|
+
if (args[0] === 'rev-parse' && args[1] === '--verify') {
|
|
135
|
+
if (args[2] === 'refs/heads/main') {
|
|
136
|
+
throw new Error('not found');
|
|
137
|
+
}
|
|
138
|
+
if (args[2] === 'refs/heads/master') {
|
|
139
|
+
return { stdout: 'abc123\n', stderr: '' };
|
|
140
|
+
}
|
|
141
|
+
}
|
|
142
|
+
return { stdout: '', stderr: '' };
|
|
143
|
+
});
|
|
144
|
+
assert.equal(branch, 'master');
|
|
145
|
+
});
|
|
146
|
+
it('returns "main" as ultimate fallback', async () => {
|
|
147
|
+
const branch = await getDefaultBranch('/tmp/repo', async () => {
|
|
148
|
+
throw new Error('everything fails');
|
|
149
|
+
});
|
|
150
|
+
assert.equal(branch, 'main');
|
|
151
|
+
});
|
|
152
|
+
});
|
|
@@ -0,0 +1,146 @@
|
|
|
1
|
+
import { describe, it } from 'node:test';
|
|
2
|
+
import assert from 'node:assert/strict';
|
|
3
|
+
import { scanWorktrees } from '../server/git-routes.js';
|
|
4
|
+
function makeDeps(overrides = {}) {
|
|
5
|
+
return {
|
|
6
|
+
getConfig: () => ({ rootDirs: ['/repos'], repos: [] }),
|
|
7
|
+
configPath: '/tmp/test-config.json',
|
|
8
|
+
execFileAsync: async () => ({ stdout: '', stderr: '' }),
|
|
9
|
+
readdirSync: () => [],
|
|
10
|
+
statSync: () => ({ isDirectory: () => true }),
|
|
11
|
+
readMeta: () => null,
|
|
12
|
+
...overrides,
|
|
13
|
+
};
|
|
14
|
+
}
|
|
15
|
+
describe('scanWorktrees', () => {
|
|
16
|
+
it('returns worktrees without PR data (no branchState, prNumber, prTitle)', async () => {
|
|
17
|
+
const deps = makeDeps({
|
|
18
|
+
getConfig: () => ({ rootDirs: ['/repos'], repos: [] }),
|
|
19
|
+
execFileAsync: async (file, args, opts) => {
|
|
20
|
+
if (file === 'git' && args[0] === 'worktree') {
|
|
21
|
+
return {
|
|
22
|
+
stdout: [
|
|
23
|
+
`worktree ${opts.cwd}`,
|
|
24
|
+
'HEAD abc123',
|
|
25
|
+
'branch refs/heads/main',
|
|
26
|
+
'',
|
|
27
|
+
`worktree ${opts.cwd}/.worktrees/feat`,
|
|
28
|
+
'HEAD def456',
|
|
29
|
+
'branch refs/heads/feat/login',
|
|
30
|
+
'',
|
|
31
|
+
].join('\n'),
|
|
32
|
+
stderr: '',
|
|
33
|
+
};
|
|
34
|
+
}
|
|
35
|
+
throw new Error(`unexpected: ${file} ${args.join(' ')}`);
|
|
36
|
+
},
|
|
37
|
+
readdirSync: (_dir) => [
|
|
38
|
+
{ name: 'my-repo', isDirectory: () => true },
|
|
39
|
+
],
|
|
40
|
+
statSync: () => ({ isDirectory: () => true }),
|
|
41
|
+
});
|
|
42
|
+
const items = await scanWorktrees(deps);
|
|
43
|
+
assert.ok(Array.isArray(items));
|
|
44
|
+
// parseWorktreeListPorcelain excludes the main worktree, so only child worktrees are returned
|
|
45
|
+
assert.equal(items.length, 1);
|
|
46
|
+
assert.equal(items[0].branchName, 'feat/login');
|
|
47
|
+
for (const wt of items) {
|
|
48
|
+
assert.equal(wt.branchState, undefined);
|
|
49
|
+
assert.equal(wt.prNumber, undefined);
|
|
50
|
+
assert.equal(wt.prTitle, undefined);
|
|
51
|
+
assert.ok(typeof wt.path === 'string');
|
|
52
|
+
assert.ok(typeof wt.branchName === 'string');
|
|
53
|
+
}
|
|
54
|
+
});
|
|
55
|
+
it('handles empty rootDirs gracefully', async () => {
|
|
56
|
+
const deps = makeDeps({
|
|
57
|
+
getConfig: () => ({ rootDirs: [], repos: [] }),
|
|
58
|
+
});
|
|
59
|
+
const items = await scanWorktrees(deps);
|
|
60
|
+
assert.deepEqual(items, []);
|
|
61
|
+
});
|
|
62
|
+
it('filters by repo param', async () => {
|
|
63
|
+
const deps = makeDeps({
|
|
64
|
+
execFileAsync: async (file, args, opts) => {
|
|
65
|
+
if (file === 'git' && args[0] === 'worktree') {
|
|
66
|
+
return {
|
|
67
|
+
stdout: [
|
|
68
|
+
`worktree ${opts.cwd}`,
|
|
69
|
+
'HEAD abc123',
|
|
70
|
+
'branch refs/heads/main',
|
|
71
|
+
'',
|
|
72
|
+
`worktree ${opts.cwd}/.worktrees/feat`,
|
|
73
|
+
'HEAD def456',
|
|
74
|
+
'branch refs/heads/feat/x',
|
|
75
|
+
'',
|
|
76
|
+
].join('\n'),
|
|
77
|
+
stderr: '',
|
|
78
|
+
};
|
|
79
|
+
}
|
|
80
|
+
throw new Error(`unexpected: ${file} ${args.join(' ')}`);
|
|
81
|
+
},
|
|
82
|
+
});
|
|
83
|
+
// parseWorktreeListPorcelain excludes the main worktree, so only the child is returned
|
|
84
|
+
const items = await scanWorktrees(deps, '/repos/my-repo');
|
|
85
|
+
assert.ok(Array.isArray(items));
|
|
86
|
+
assert.equal(items.length, 1);
|
|
87
|
+
assert.equal(items[0].branchName, 'feat/x');
|
|
88
|
+
});
|
|
89
|
+
it('deduplicates worktrees appearing via multiple repos', async () => {
|
|
90
|
+
const sharedWorktreePath = '/repos/my-repo/.worktrees/feat';
|
|
91
|
+
const deps = makeDeps({
|
|
92
|
+
getConfig: () => ({
|
|
93
|
+
rootDirs: ['/repos'],
|
|
94
|
+
repos: ['/repos/my-repo'],
|
|
95
|
+
}),
|
|
96
|
+
execFileAsync: async (file, args, opts) => {
|
|
97
|
+
if (file === 'git' && args[0] === 'worktree') {
|
|
98
|
+
return {
|
|
99
|
+
stdout: [
|
|
100
|
+
`worktree ${opts.cwd}`,
|
|
101
|
+
'HEAD abc123',
|
|
102
|
+
'branch refs/heads/main',
|
|
103
|
+
'',
|
|
104
|
+
`worktree ${sharedWorktreePath}`,
|
|
105
|
+
'HEAD def456',
|
|
106
|
+
'branch refs/heads/feat/x',
|
|
107
|
+
'',
|
|
108
|
+
].join('\n'),
|
|
109
|
+
stderr: '',
|
|
110
|
+
};
|
|
111
|
+
}
|
|
112
|
+
throw new Error(`unexpected: ${file} ${args.join(' ')}`);
|
|
113
|
+
},
|
|
114
|
+
readdirSync: () => [{ name: 'my-repo', isDirectory: () => true }],
|
|
115
|
+
statSync: () => ({ isDirectory: () => true }),
|
|
116
|
+
});
|
|
117
|
+
const items = await scanWorktrees(deps);
|
|
118
|
+
const paths = items.map((wt) => wt.path);
|
|
119
|
+
const uniquePaths = [...new Set(paths)];
|
|
120
|
+
assert.equal(paths.length, uniquePaths.length, 'should have no duplicate paths');
|
|
121
|
+
});
|
|
122
|
+
it('falls back to directory scanning when git worktree list fails', async () => {
|
|
123
|
+
const deps = makeDeps({
|
|
124
|
+
getConfig: () => ({ rootDirs: ['/repos'], repos: [] }),
|
|
125
|
+
execFileAsync: async () => {
|
|
126
|
+
throw new Error('git worktree list failed');
|
|
127
|
+
},
|
|
128
|
+
readdirSync: (dir) => {
|
|
129
|
+
if (dir === '/repos')
|
|
130
|
+
return [{ name: 'my-repo', isDirectory: () => true }];
|
|
131
|
+
if (dir.includes('.worktrees'))
|
|
132
|
+
return [{ name: 'feat-branch', isDirectory: () => true }];
|
|
133
|
+
return [];
|
|
134
|
+
},
|
|
135
|
+
statSync: () => ({ isDirectory: () => true }),
|
|
136
|
+
readMeta: () => ({
|
|
137
|
+
worktreePath: '/repos/my-repo/.worktrees/feat-branch',
|
|
138
|
+
displayName: 'Feature',
|
|
139
|
+
lastActivity: '',
|
|
140
|
+
branchName: 'feat-branch',
|
|
141
|
+
}),
|
|
142
|
+
});
|
|
143
|
+
const items = await scanWorktrees(deps);
|
|
144
|
+
assert.ok(items.length > 0, 'should fall back to directory scanning');
|
|
145
|
+
});
|
|
146
|
+
});
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
import { describe, it } from 'node:test';
|
|
2
|
+
import assert from 'node:assert/strict';
|
|
3
|
+
import { extractOwnerRepo } from '../server/git.js';
|
|
4
|
+
import { isStalePr } from '../server/gh.js';
|
|
5
|
+
describe('extractOwnerRepo', () => {
|
|
6
|
+
it('parses an SSH URL with .git suffix', () => {
|
|
7
|
+
assert.equal(extractOwnerRepo('git@github.com:donovan-yohan/claude-remote-cli.git'), 'donovan-yohan/claude-remote-cli');
|
|
8
|
+
});
|
|
9
|
+
it('parses an SSH URL without .git suffix', () => {
|
|
10
|
+
assert.equal(extractOwnerRepo('git@github.com:owner/repo'), 'owner/repo');
|
|
11
|
+
});
|
|
12
|
+
it('parses an HTTPS URL with .git suffix', () => {
|
|
13
|
+
assert.equal(extractOwnerRepo('https://github.com/owner/repo.git'), 'owner/repo');
|
|
14
|
+
});
|
|
15
|
+
it('parses an HTTPS URL without .git suffix', () => {
|
|
16
|
+
assert.equal(extractOwnerRepo('https://github.com/owner/repo'), 'owner/repo');
|
|
17
|
+
});
|
|
18
|
+
it('is host-agnostic and parses a non-GitHub HTTPS URL', () => {
|
|
19
|
+
assert.equal(extractOwnerRepo('https://gitlab.com/owner/repo.git'), 'owner/repo');
|
|
20
|
+
});
|
|
21
|
+
it('returns null for an empty string', () => {
|
|
22
|
+
assert.equal(extractOwnerRepo(''), null);
|
|
23
|
+
});
|
|
24
|
+
it('returns null for a malformed URL', () => {
|
|
25
|
+
assert.equal(extractOwnerRepo('not-a-url'), null);
|
|
26
|
+
});
|
|
27
|
+
});
|
|
28
|
+
function makePr(overrides = {}) {
|
|
29
|
+
return {
|
|
30
|
+
number: 1,
|
|
31
|
+
title: 'test',
|
|
32
|
+
url: '',
|
|
33
|
+
state: 'OPEN',
|
|
34
|
+
headRefName: 'main',
|
|
35
|
+
baseRefName: 'main',
|
|
36
|
+
isDraft: false,
|
|
37
|
+
reviewDecision: null,
|
|
38
|
+
additions: 0,
|
|
39
|
+
deletions: 0,
|
|
40
|
+
mergeable: 'UNKNOWN',
|
|
41
|
+
unresolvedCommentCount: 0,
|
|
42
|
+
updatedAt: '',
|
|
43
|
+
...overrides,
|
|
44
|
+
};
|
|
45
|
+
}
|
|
46
|
+
describe('isStalePr', () => {
|
|
47
|
+
it('OPEN PR is never stale regardless of age', () => {
|
|
48
|
+
assert.equal(isStalePr(makePr({ state: 'OPEN', updatedAt: '2020-01-01T00:00:00Z' })), false);
|
|
49
|
+
});
|
|
50
|
+
it('MERGED PR updated more than 1 day ago is stale', () => {
|
|
51
|
+
const twoDaysAgo = new Date(Date.now() - 2 * 86_400_000).toISOString();
|
|
52
|
+
assert.equal(isStalePr(makePr({ state: 'MERGED', updatedAt: twoDaysAgo })), true);
|
|
53
|
+
});
|
|
54
|
+
it('CLOSED PR updated more than 1 day ago is stale', () => {
|
|
55
|
+
const twoDaysAgo = new Date(Date.now() - 2 * 86_400_000).toISOString();
|
|
56
|
+
assert.equal(isStalePr(makePr({ state: 'CLOSED', updatedAt: twoDaysAgo })), true);
|
|
57
|
+
});
|
|
58
|
+
it('MERGED PR updated less than 1 day ago is not stale (grace period)', () => {
|
|
59
|
+
const oneHourAgo = new Date(Date.now() - 3_600_000).toISOString();
|
|
60
|
+
assert.equal(isStalePr(makePr({ state: 'MERGED', updatedAt: oneHourAgo })), false);
|
|
61
|
+
});
|
|
62
|
+
it('PR with empty updatedAt is stale', () => {
|
|
63
|
+
assert.equal(isStalePr(makePr({ state: 'MERGED', updatedAt: '' })), true);
|
|
64
|
+
});
|
|
65
|
+
it('PR with unparseable updatedAt is stale', () => {
|
|
66
|
+
assert.equal(isStalePr(makePr({ state: 'CLOSED', updatedAt: 'not-a-date' })), true);
|
|
67
|
+
});
|
|
68
|
+
});
|
|
@@ -0,0 +1,110 @@
|
|
|
1
|
+
import { describe, it, before, after } from 'node:test';
|
|
2
|
+
import assert from 'node:assert/strict';
|
|
3
|
+
import fs from 'node:fs';
|
|
4
|
+
import path from 'node:path';
|
|
5
|
+
import os from 'node:os';
|
|
6
|
+
import { GitWatcher } from '../server/watcher.js';
|
|
7
|
+
let tmpDir;
|
|
8
|
+
let repoDir;
|
|
9
|
+
before(() => {
|
|
10
|
+
tmpDir = fs.mkdtempSync(path.join(os.tmpdir(), 'git-watcher-test-'));
|
|
11
|
+
repoDir = path.join(tmpDir, 'repo');
|
|
12
|
+
fs.mkdirSync(path.join(repoDir, '.git'), { recursive: true });
|
|
13
|
+
fs.mkdirSync(path.join(repoDir, 'src'), { recursive: true });
|
|
14
|
+
fs.mkdirSync(path.join(repoDir, 'node_modules', 'dep'), { recursive: true });
|
|
15
|
+
// Create a HEAD file so the HEAD watcher can attach
|
|
16
|
+
fs.writeFileSync(path.join(repoDir, '.git', 'HEAD'), 'ref: refs/heads/main\n');
|
|
17
|
+
});
|
|
18
|
+
after(() => {
|
|
19
|
+
fs.rmSync(tmpDir, { recursive: true, force: true });
|
|
20
|
+
});
|
|
21
|
+
describe('GitWatcher', () => {
|
|
22
|
+
it('emits files-changed when a working-tree file changes', async () => {
|
|
23
|
+
const watcher = new GitWatcher();
|
|
24
|
+
let emitted = false;
|
|
25
|
+
let emittedPath = '';
|
|
26
|
+
watcher.on('files-changed', (data) => {
|
|
27
|
+
emitted = true;
|
|
28
|
+
emittedPath = data.workspacePath;
|
|
29
|
+
});
|
|
30
|
+
watcher.watch(repoDir);
|
|
31
|
+
// Write a source file (should trigger)
|
|
32
|
+
fs.writeFileSync(path.join(repoDir, 'src', 'index.ts'), 'export {}');
|
|
33
|
+
// Wait for debounce (1000ms) + buffer
|
|
34
|
+
await new Promise((resolve) => setTimeout(resolve, 1500));
|
|
35
|
+
assert.ok(emitted, 'should emit files-changed for working-tree file');
|
|
36
|
+
assert.equal(emittedPath, repoDir);
|
|
37
|
+
watcher.close();
|
|
38
|
+
});
|
|
39
|
+
it('does NOT emit for .git/ changes', async () => {
|
|
40
|
+
const watcher = new GitWatcher();
|
|
41
|
+
let emitCount = 0;
|
|
42
|
+
watcher.on('files-changed', () => {
|
|
43
|
+
emitCount++;
|
|
44
|
+
});
|
|
45
|
+
watcher.watch(repoDir);
|
|
46
|
+
// Write to .git/ (should be filtered)
|
|
47
|
+
fs.writeFileSync(path.join(repoDir, '.git', 'index'), 'fake');
|
|
48
|
+
await new Promise((resolve) => setTimeout(resolve, 1500));
|
|
49
|
+
// The HEAD watcher may fire from the before() setup, so we only check
|
|
50
|
+
// that .git/index specifically doesn't cause extra emissions.
|
|
51
|
+
// Reset and test again cleanly.
|
|
52
|
+
const countBefore = emitCount;
|
|
53
|
+
fs.writeFileSync(path.join(repoDir, '.git', 'index'), 'fake2');
|
|
54
|
+
await new Promise((resolve) => setTimeout(resolve, 1500));
|
|
55
|
+
assert.equal(emitCount, countBefore, 'should not emit for .git/index changes');
|
|
56
|
+
watcher.close();
|
|
57
|
+
});
|
|
58
|
+
it('does NOT emit for node_modules/ changes', async () => {
|
|
59
|
+
const watcher = new GitWatcher();
|
|
60
|
+
let emitted = false;
|
|
61
|
+
// Wait for any initial events to settle
|
|
62
|
+
watcher.watch(repoDir);
|
|
63
|
+
await new Promise((resolve) => setTimeout(resolve, 1500));
|
|
64
|
+
watcher.on('files-changed', () => {
|
|
65
|
+
emitted = true;
|
|
66
|
+
});
|
|
67
|
+
fs.writeFileSync(path.join(repoDir, 'node_modules', 'dep', 'index.js'), 'module.exports = {}');
|
|
68
|
+
await new Promise((resolve) => setTimeout(resolve, 1500));
|
|
69
|
+
assert.ok(!emitted, 'should not emit for node_modules/ changes');
|
|
70
|
+
watcher.close();
|
|
71
|
+
});
|
|
72
|
+
it('emits when .git/HEAD changes (commit or branch switch)', async () => {
|
|
73
|
+
const watcher = new GitWatcher();
|
|
74
|
+
let emitted = false;
|
|
75
|
+
watcher.watch(repoDir);
|
|
76
|
+
// Let initial events settle
|
|
77
|
+
await new Promise((resolve) => setTimeout(resolve, 1500));
|
|
78
|
+
watcher.on('files-changed', () => {
|
|
79
|
+
emitted = true;
|
|
80
|
+
});
|
|
81
|
+
// Simulate a branch switch
|
|
82
|
+
fs.writeFileSync(path.join(repoDir, '.git', 'HEAD'), 'ref: refs/heads/feature\n');
|
|
83
|
+
await new Promise((resolve) => setTimeout(resolve, 1500));
|
|
84
|
+
assert.ok(emitted, 'should emit when .git/HEAD changes');
|
|
85
|
+
watcher.close();
|
|
86
|
+
});
|
|
87
|
+
it('does not emit after close()', async () => {
|
|
88
|
+
const watcher = new GitWatcher();
|
|
89
|
+
let emitCount = 0;
|
|
90
|
+
watcher.on('files-changed', () => {
|
|
91
|
+
emitCount++;
|
|
92
|
+
});
|
|
93
|
+
watcher.watch(repoDir);
|
|
94
|
+
watcher.close();
|
|
95
|
+
fs.writeFileSync(path.join(repoDir, 'src', 'closed.ts'), 'export {}');
|
|
96
|
+
await new Promise((resolve) => setTimeout(resolve, 1500));
|
|
97
|
+
assert.equal(emitCount, 0);
|
|
98
|
+
});
|
|
99
|
+
it('deduplicates watchers for the same path via refCount', () => {
|
|
100
|
+
const watcher = new GitWatcher();
|
|
101
|
+
watcher.watch(repoDir);
|
|
102
|
+
watcher.watch(repoDir);
|
|
103
|
+
// Should not throw, refCount = 2
|
|
104
|
+
watcher.unwatch(repoDir);
|
|
105
|
+
// Still watching (refCount = 1)
|
|
106
|
+
watcher.unwatch(repoDir);
|
|
107
|
+
// Now closed (refCount = 0)
|
|
108
|
+
watcher.close();
|
|
109
|
+
});
|
|
110
|
+
});
|